/* ── NosRaider – nosapki.com inspired design ── */

:root {
  /* Exact nosapki colors */
  --nav-from:    rgb(250, 92,  40);
  --nav-to:      rgb(250, 133, 62);
  --nav-icon-bg: rgb(187, 102,  0);
  --body-bg:     #dedede;
  --panel-bg:    rgba(0,0,0,0.84);
  --panel-bg2:   rgba(10,10,10,0.97);
  --panel-title: linear-gradient(rgb(70,70,70), rgb(0,0,0));
  --border-panel: rgb(140,140,140);
  --border-dark:  #616266;

  /* Text */
  --text-white:  #fff;
  --text-gold:   #f5c478;
  --text-orange: #ff862c;
  --text-dim:    #aaa;
  --text-dark:   #ccc;

  /* Accents */
  --orange:      #F80;
  --orange-lt:   #FA7;
  --orange-dk:   #D83;
  --yellow:      #FFA;
  --blue:        #7AF;
  --red:         #f44;
  --green:       #4F4;

  /* Input */
  --input-bg:    #333337;
  --input-border:#999;

  /* Table */
  --table-head:  #111518;
  --table-row:   linear-gradient(#1e1c1f, #161616);

  --font: Tahoma, 'Segoe UI', sans-serif;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--body-bg);
  background-image:
    radial-gradient(ellipse at top, rgba(250,133,62,.07) 0%, transparent 50%);
  color: var(--text-white);
  font-family: var(--font);
  font-size: 12px;
  min-height: 100vh;
}

a { color: var(--text-gold); text-decoration: none; }
a:hover { color: var(--orange-lt); text-decoration: underline; }

/* ── Navigation ─────────────────────────────────── */
header {
  background: linear-gradient(180deg, var(--nav-from) 0%, var(--nav-to) 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000;
  letter-spacing: .03em;
}
.logo:hover { text-decoration: none; color: var(--text-gold); }
.logo .logo-icon { font-size: 18px; }
.logo .logo-sub {
  font-size: 9px; font-weight: normal;
  color: rgba(255,255,255,0.7);
  display: block; line-height: 1;
  text-shadow: 1px 1px 1px #000;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 1px;
}

nav { display: flex; gap: 4px; align-items: center; }
nav a {
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0);
  transition: background .15s, border-color .15s;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
  font-weight: bold;
}
nav a:hover  { background: rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.3); text-decoration: none; color: #fff; }
nav a.active { background: rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.4); color: var(--text-gold); }

/* ── Page ───────────────────────────────────────── */
.page { max-width: 1240px; margin: 0 auto; padding: 16px 12px; }

/* ── NT Window (oknoNT style) ───────────────────── */
.nt-window {
  background: var(--panel-bg);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px #000, 0 0 4px 2px rgba(0,0,0,0.6);
  overflow: hidden;
  margin-bottom: 12px;
}

.nt-window-title {
  background: var(--panel-title);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  color: var(--text-gold);
  text-shadow: 1px 1px 2px #000;
  border-bottom: 1px solid #333;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nt-window-body { padding: 12px; }

/* ── Section title ──────────────────────────────── */
.section-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-gold);
  text-shadow: 1px 1px 2px #000;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Orange button (.nt-button.orange style) ─────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  transition: filter .12s, transform .1s;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.15); text-decoration: none; }
.btn:active { transform: scale(.97); }

.btn-primary {
  border: 1px solid #740;
  background: linear-gradient(var(--orange-lt), var(--orange-dk), var(--orange-lt));
  color: #FEC;
}
.btn-danger {
  border: 1px solid #600;
  background: linear-gradient(#F88, #f44, #F77);
  color: #FCC;
}
.btn-ghost {
  border: 1px solid #666;
  background: linear-gradient(#555, #333, #555);
  color: #CCC;
}
.btn-ghost:hover { color: #fff; }

/* ── Filters / tag pills ────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.filter-btn {
  padding: 3px 10px;
  border-radius: var(--radius);
  border: 1px solid #555;
  background: linear-gradient(#444, #222);
  color: #ccc;
  cursor: pointer;
  font-family: var(--font);
  font-size: 11px;
  font-weight: bold;
  transition: all .12s;
  text-shadow: 1px 1px 1px #000;
}
.filter-btn:hover { border-color: #888; color: #fff; }
.filter-btn.active {
  border: 1px solid #740;
  background: linear-gradient(var(--orange-lt), var(--orange-dk), var(--orange-lt));
  color: #FEC;
}

/* ── Page banner ────────────────────────────────── */
.page-banner {
  text-align: center;
  padding: 12px 0 16px;
}
.page-banner h1 {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-gold);
  text-shadow: 2px 2px 4px #000, 0 0 20px rgba(250,133,62,0.4);
  letter-spacing: .06em;
}
.page-banner p { color: #555; font-size: 11px; margin-top: 3px; }

/* ── Raids grid ─────────────────────────────────── */
.raids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.raid-card {
  background: rgba(0,0,0,0.84);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px #000, 0 0 3px rgba(0,0,0,0.5);
  padding: 0;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color .15s, box-shadow .15s;
  overflow: hidden;
}
.raid-card:hover {
  border-color: var(--orange);
  box-shadow: 0 0 12px rgba(250,133,62,0.25), inset 0 0 0 1px #000;
  text-decoration: none;
}

.raid-card-title-bar {
  background: var(--panel-title);
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #333;
}
.raid-card-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-gold);
  text-shadow: 1px 1px 2px #000;
}
.raid-card-category {
  font-size: 10px;
  color: var(--text-dim);
  margin-left: 6px;
}
.raid-card-body { padding: 8px 10px; }
.raid-card-meta { display: flex; gap: 10px; font-size: 11px; color: var(--text-dim); margin-bottom: 7px; }

.difficulty-stars { font-size: 11px; letter-spacing: .05em; }
.diff-1 { color: #7c7; }
.diff-2 { color: #cc7; }
.diff-3 { color: #c97; }
.diff-4 { color: #c77; }
.diff-5 { color: #f55; }

.player-count { font-size: 11px; color: var(--text-dim); }
.player-count strong { color: #fff; }

/* ── Progress bar ───────────────────────────────── */
.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-dk), var(--orange));
  border-radius: 2px;
  transition: width .3s;
}
.progress-bar-fill.full { background: linear-gradient(90deg, #800, var(--red)); }

/* ── Badges ─────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: bold;
}
.badge-cat  { background: rgba(255,136,0,0.2); color: var(--orange); border: 1px solid rgba(255,136,0,0.4); }
.badge-full { background: rgba(255,68,68,0.2);  color: #f88;         border: 1px solid rgba(255,68,68,0.4); }

/* ── Forms ──────────────────────────────────────── */
.form-group { margin-bottom: 10px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  color: var(--text-gold);
  margin-bottom: 4px;
  text-shadow: 1px 1px 1px #000;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  color: #fff;
  padding: 5px 8px;
  font-size: 12px;
  font-family: var(--font);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: #ddd; }
.form-group textarea { resize: vertical; min-height: 70px; }
.form-group select option    { background: #333337; }
.form-group select optgroup  { background: #1a1a1a; color: var(--orange); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── Raid detail header ─────────────────────────── */
.raid-detail-header {
  background: rgba(0,0,0,0.86);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px #000, 0 0 6px rgba(0,0,0,0.6);
  overflow: hidden;
  margin-bottom: 14px;
}
.raid-detail-title-bar {
  background: var(--panel-title);
  padding: 7px 12px;
  border-bottom: 1px solid #333;
}
.raid-detail-title {
  font-size: 17px;
  font-weight: bold;
  color: var(--text-gold);
  text-shadow: 2px 2px 3px #000;
  letter-spacing: .03em;
}
.raid-detail-body { padding: 10px 14px; }
.raid-detail-sub {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 6px;
}
.raid-detail-sub strong { color: var(--text-gold); }
.raid-detail-notes {
  margin-top: 8px;
  padding: 7px 10px;
  background: rgba(255,136,0,0.07);
  border: 1px solid rgba(255,136,0,0.2);
  border-radius: var(--radius);
  font-size: 11px;
  color: #ccc;
  border-left: 3px solid var(--orange);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ── NT item slot style for SPs ─────────────────── */
.sp-grid { display: flex; flex-wrap: wrap; gap: 5px; }

.sp-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 2px;
  /* item-slot look */
  background: linear-gradient(135deg, #2a2014 0%, #1a1208 100%);
  border: 1px solid #5a4010;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 4px rgba(0,0,0,0.8);
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
  width: 68px;
}
.sp-chip:hover { border-color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.sp-chip.selected {
  border-color: #EF0;
  box-shadow: inset 0 0 5px 1px #EF0;
}
.sp-chip img { width: 44px; height: 44px; object-fit: contain; }
.sp-chip span { font-size: 9px; text-align: center; color: #aaa; line-height: 1.2; width: 100%; }
.sp-chip.selected span { color: var(--text-gold); }

/* "None" chip */
.none-chip {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2px;
  border-radius: 2px;
  background: linear-gradient(135deg, #1a1a1a, #111);
  border: 1px solid #444;
  box-shadow: inset 0 0 0 1px #000;
  cursor: pointer; font-size: 9px; text-align: center; color: #777;
  transition: all .12s;
}
.none-chip:hover { border-color: #888; color: #aaa; }
.none-chip.selected { border-color: #EF0; box-shadow: inset 0 0 5px 1px #EF0; color: var(--text-gold); }

/* ── Class tabs ─────────────────────────────────── */
.sp-class-tabs { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.sp-tab {
  padding: 3px 10px;
  border-radius: var(--radius);
  border: 1px solid #555;
  background: linear-gradient(#333, #1a1a1a);
  color: #aaa;
  cursor: pointer;
  font-family: var(--font);
  font-size: 11px;
  font-weight: bold;
  text-shadow: 1px 1px 1px #000;
  transition: all .12s;
}
.sp-tab:hover { border-color: #888; color: #fff; }
.sp-tab.active {
  border: 1px solid #740;
  background: linear-gradient(var(--orange-lt), var(--orange-dk));
  color: #FEC;
}

/* ── Signups list ───────────────────────────────── */
.signups-list { display: flex; flex-direction: column; gap: 4px; }
.signup-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--table-row);
  border-top: 1px solid #38383a;
  border-bottom: 1px solid #020202;
  padding: 5px 8px;
  font-size: 11px;
}
.signup-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.signup-row:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.signup-player { font-weight: bold; color: #fff; flex: 1; min-width: 0; }
.signup-sp { display: flex; align-items: center; gap: 4px; color: var(--text-dim); }
.signup-sp img { width: 28px; height: 28px; object-fit: contain; }
.signup-remove {
  background: none; border: none; color: #666; cursor: pointer;
  font-size: 11px; padding: 2px 5px; border-radius: 2px;
  transition: color .12s, background .12px;
}
.signup-remove:hover { color: #f88; background: rgba(255,68,68,0.1); }

/* ── Summary rows ───────────────────────────────── */
.summary-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--table-row);
  border-top: 1px solid #38383a;
  border-bottom: 1px solid #020202;
  padding: 5px 8px; margin-bottom: 3px;
  border-radius: var(--radius);
}
.summary-row img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.summary-name    { font-size: 11px; font-weight: bold; color: #fff; }
.summary-players { font-size: 10px; color: var(--text-dim); }
.summary-badge {
  margin-left: auto; flex-shrink: 0;
  background: linear-gradient(var(--orange-lt), var(--orange-dk));
  border: 1px solid #740;
  color: #FEC; border-radius: 2px;
  padding: 1px 7px; font-size: 11px; font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* ── Modal ──────────────────────────────────────── */
.selector-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 12px;
}
.selector-modal.hidden { display: none; }
.selector-box {
  background: rgba(20,20,20,0.97);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px #000, 0 0 30px rgba(0,0,0,0.9);
  width: 100%; max-width: 700px; max-height: 88vh; overflow-y: auto;
  overflow-x: hidden;
}
.selector-box-title {
  background: var(--panel-title);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: bold;
  color: var(--text-gold);
  text-shadow: 1px 1px 2px #000;
  border-bottom: 1px solid #333;
}
.selector-box-body { padding: 12px; }
.partner-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.partner-chip {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 4px; border-radius: 2px; width: 76px;
  background: linear-gradient(135deg, #2a2014, #1a1208);
  border: 1px solid #5a4010;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 4px rgba(0,0,0,0.8);
  cursor: pointer; transition: all .12s;
}
.partner-chip:hover { border-color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.partner-chip.selected { border-color: #EF0; box-shadow: inset 0 0 5px 1px #EF0; }
.partner-chip img { width: 50px; height: 50px; object-fit: contain; }
.partner-chip span { font-size: 9px; text-align: center; color: #999; line-height: 1.2; }
.partner-chip.selected span { color: var(--text-gold); }

.modal-actions {
  display: flex; gap: 6px; justify-content: flex-end;
  padding: 8px 12px; border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.3);
}

/* ── SP selected preview ────────────────────────── */
.sp-select-preview {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #2a2014, #1a1208);
  border: 1px solid var(--orange);
  box-shadow: inset 0 0 0 1px #000;
  border-radius: 2px; padding: 4px 8px;
  cursor: pointer; transition: box-shadow .12s;
}
.sp-select-preview:hover { box-shadow: inset 0 0 0 2px var(--orange), 0 0 8px rgba(255,136,0,0.2); }
.sp-select-preview img { width: 32px; height: 32px; object-fit: contain; }
.sp-select-preview .sp-name   { font-size: 11px; color: var(--text-gold); font-weight: bold; }
.sp-select-preview .sp-change { font-size: 10px; color: var(--text-dim); }

/* ── Already signed notice ──────────────────────── */
.already-signed-notice {
  background: rgba(255,136,0,0.1);
  border: 1px solid rgba(255,136,0,0.35);
  border-radius: var(--radius);
  padding: 6px 10px; font-size: 11px; margin-bottom: 10px;
  color: var(--text-gold); font-weight: bold;
}

/* ── Join form ──────────────────────────────────── */
.join-form {
  background: rgba(0,0,0,0.84);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px #000;
  overflow: hidden;
  margin-bottom: 12px;
}
.join-form-title {
  background: var(--panel-title);
  padding: 5px 10px;
  font-size: 12px; font-weight: bold;
  color: var(--text-gold);
  text-shadow: 1px 1px 2px #000;
  border-bottom: 1px solid #333;
}
.join-form-body { padding: 10px 12px; }

/* ── Toast ──────────────────────────────────────── */
#toast {
  position: fixed; bottom: 14px; right: 14px;
  background: rgba(20,20,20,0.97);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px #000, 0 0 12px rgba(0,0,0,0.8);
  padding: 7px 14px; font-size: 12px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .22s, transform .22s;
  z-index: 999; pointer-events: none; max-width: 300px;
}
#toast.show    { opacity: 1; transform: translateY(0); }
#toast.success { border-color: #4a4; color: #7f7; }
#toast.error   { border-color: #a44; color: #f88; }

/* ── Empty state ────────────────────────────────── */
.empty-state { text-align: center; padding: 40px 20px; color: #444; }
.empty-state h3 { font-size: 14px; margin-bottom: 6px; color: #222; }

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ── Waitlist ───────────────────────────────────── */
.waitlist-row {
  display:flex; align-items:center; gap:8px;
  background: linear-gradient(#1a1410, #110e08);
  border-top:1px solid #3a2a10; border-bottom:1px solid #020202;
  padding:5px 8px; font-size:11px;
}
.waitlist-pos {
  font-weight:bold; color:var(--orange); font-size:12px;
  width:20px; text-align:center; flex-shrink:0;
}
.waitlist-player { font-weight:bold; color:#ccc; flex:1; }

/* ── Calendar ───────────────────────────────────── */
.cal-grid {
  display:grid; grid-template-columns:repeat(7,1fr); gap:2px;
}
.cal-header-cell {
  background:var(--panel-title); text-align:center;
  padding:5px 2px; font-size:11px; font-weight:bold;
  color:var(--text-gold); text-shadow:1px 1px 1px #000;
}
.cal-cell {
  background:rgba(0,0,0,0.78); border:1px solid #222;
  min-height:80px; padding:4px; position:relative;
  vertical-align:top;
}
.cal-cell.other-month { background:rgba(0,0,0,0.25); opacity:.5; }
.cal-cell.today { border-color:var(--orange); }
.cal-day-num {
  font-size:10px; font-weight:bold; color:#999; margin-bottom:3px;
}
.cal-cell.today .cal-day-num { color:var(--orange); }
.cal-raid-pill {
  display:block; background:linear-gradient(var(--orange-lt),var(--orange-dk));
  border:1px solid #740; border-radius:2px; color:#FEC;
  font-size:9px; font-weight:bold; padding:1px 4px; margin-bottom:2px;
  text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  text-shadow:1px 1px 1px rgba(0,0,0,.5);
}
.cal-raid-pill:hover { filter:brightness(1.15); text-decoration:none; }
.cal-nav {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:10px;
}
.cal-nav h2 {
  font-size:14px; font-weight:bold; color:var(--text-gold);
  text-shadow:1px 1px 2px #000; letter-spacing:.04em;
}

/* ── Stats ──────────────────────────────────────── */
.stats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:12px; }
@media(max-width:700px){ .stats-grid{ grid-template-columns:1fr; } }
.stat-card {
  background:rgba(0,0,0,0.55); border:1px solid var(--border-panel);
  border-radius:var(--radius); padding:14px; text-align:center;
  box-shadow:inset 0 0 0 1px #000;
}
.stat-num { font-size:28px; font-weight:bold; color:var(--text-gold); text-shadow:0 0 20px rgba(250,133,62,.4); line-height:1; }
.stat-label { font-size:10px; color:var(--text-dim); margin-top:4px; text-transform:uppercase; letter-spacing:.08em; }

.bar-row { display:flex; align-items:center; gap:8px; margin-bottom:5px; }
.bar-label { font-size:11px; color:#ccc; width:130px; flex-shrink:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bar-track { flex:1; height:12px; background:rgba(255,255,255,.07); border-radius:2px; overflow:hidden; }
.bar-fill  { height:100%; background:linear-gradient(90deg,var(--orange-dk),var(--orange)); border-radius:2px; transition:width .4s; }
.bar-count { font-size:10px; color:var(--orange); font-weight:bold; width:24px; text-align:right; flex-shrink:0; }

/* ── Edit modal ─────────────────────────────────── */
.edit-modal { position:fixed; inset:0; background:rgba(0,0,0,.75); display:flex; align-items:center; justify-content:center; z-index:200; padding:12px; }
.edit-modal.hidden { display:none; }
.edit-box {
  background:rgba(20,20,20,.97); border:1px solid var(--border-panel);
  border-radius:var(--radius); box-shadow:inset 0 0 0 1px #000, 0 0 30px rgba(0,0,0,.9);
  width:100%; max-width:500px; overflow:hidden;
}
