/* ============================================================================
   Chicago Real Estate Photography — Lead Terminal
   ----------------------------------------------------------------------------
   Brand values taken from chicagorealestatephotography.com, not invented:
     black #000000, gold #E3B456 (their dominant accent), white, Mulish.
   The logo is a metallic gradient rather than flat gold, so the interface
   treats gold as a material — gradients, hairlines, low glows — never a
   flat fill. That is what separates it from a generic dark dashboard.
   ============================================================================ */

:root {
  /* Surfaces — near-black, layered so depth reads without borders everywhere */
  --void: #000000;
  --ink: #08080A;
  --ink-2: #0C0C0F;
  --ink-3: #121216;
  --ink-4: #191920;
  --ink-5: #22222B;

  /* Lines */
  --line: #1E1E25;
  --line-2: #2A2A34;
  --line-gold: rgba(227, 180, 86, .22);

  /* Type */
  --paper: #F4F2ED;
  --paper-dim: #9A9AA6;
  --paper-faint: #63636F;

  /* Brand gold — their #E3B456, plus the metallic range for gradients */
  --gold: #E3B456;
  --gold-hi: #F5D897;
  --gold-lo: #A87F32;
  --gold-deep: #6B4E1C;
  --gold-glow: rgba(227, 180, 86, .13);
  --metal: linear-gradient(135deg, var(--gold-lo) 0%, var(--gold-hi) 38%, var(--gold) 62%, var(--gold-lo) 100%);

  /* Status */
  --go: #5FC38C;
  --wait: #E0A93C;
  --gone: #D2615A;
  --cool: #7FA0CE;

  --r: 4px;
  --r-lg: 10px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  background: var(--void);
  color: var(--paper);
  font-family: 'Mulish', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1100px 620px at 78% -12%, rgba(227, 180, 86, .07), transparent 62%),
    radial-gradient(820px 520px at -8% 108%, rgba(227, 180, 86, .035), transparent 60%);
  background-attachment: fixed;
}

/* Film grain — this is a photography company */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 99; opacity: .42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
svg { display: block; }
[hidden] { display: none !important; }

/* Metallic text — used sparingly, on figures that matter */
.metal {
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

::selection { background: rgba(227, 180, 86, .28); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ================================================================= LOGIN === */

.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; z-index: 2; }

.gate-card {
  width: 100%; max-width: 400px; padding: 44px 40px 38px;
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .03);
  position: relative; overflow: hidden;
}
/* Hairline of gold along the top edge — the one flourish on the page */
.gate-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .7;
}

.gate-logo { width: 100%; max-width: 240px; height: auto; display: block; margin: 0 auto 30px; }

.gate h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px; font-weight: 400; letter-spacing: -.01em; text-align: center;
}
.gate .sub {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .28em;
  color: var(--paper-faint); margin-top: 9px; margin-bottom: 30px; text-align: center;
}

.field { margin-bottom: 15px; }
.field label {
  display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .2em;
  color: var(--paper-faint); margin-bottom: 8px; font-weight: 700;
}
.field input {
  width: 100%; background: var(--void); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 12px 14px; color: var(--paper); font-family: inherit; font-size: 14px;
  outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus {
  border-color: var(--gold-lo); box-shadow: 0 0 0 3px var(--gold-glow); outline: none;
}
.gate .btn-key { width: 100%; justify-content: center; margin-top: 10px; padding: 13px; }
.gate-msg { font-size: 12px; color: var(--gone); margin-top: 15px; min-height: 17px; text-align: center; }

/* ================================================================= SHELL === */

.shell { display: grid; grid-template-columns: 64px 1fr; min-height: 100vh; }

.rail {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 5px;
  position: sticky; top: 0; height: 100vh;
}
.mark { width: 34px; height: 34px; margin-bottom: 20px; border-radius: var(--r); overflow: hidden; }
.mark img { width: 100%; height: 100%; object-fit: contain; }

.rbtn {
  width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center;
  color: var(--paper-faint); cursor: pointer; border: 1px solid transparent; background: none;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.rbtn:hover { color: var(--paper); background: var(--ink-4); }
.rbtn.on { color: var(--gold); background: var(--gold-glow); border-color: var(--line-gold); }
.rail .sp { flex: 1; }

/* ================================================================ HEADER === */

.top {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 10, .86); backdrop-filter: blur(18px) saturate(1.3);
  position: sticky; top: 0; z-index: 40;
}
.top-in { display: flex; align-items: center; gap: 20px; padding: 0 28px; height: 68px; }
.brandline { display: flex; align-items: center; gap: 14px; }
.brandline img { height: 30px; width: auto; }
.brandline .divider-v { width: 1px; height: 24px; background: var(--line-2); }
.brandline .sub {
  font-size: 9px; text-transform: uppercase; letter-spacing: .26em; color: var(--paper-faint); font-weight: 700;
}
.top .sp { flex: 1; }

.stat-live {
  display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--paper-dim);
  padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--ink-2);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--go); animation: pulse 2.6s infinite; }
.dot.stale { background: var(--wait); animation: none; }
.dot.off { background: var(--paper-faint); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(95, 195, 140, .45); }
  70% { box-shadow: 0 0 0 8px rgba(95, 195, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 195, 140, 0); }
}

.btn {
  font-family: inherit; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 10px 17px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--ink-3); color: var(--paper);
  cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.btn:hover:not(:disabled) { background: var(--ink-4); border-color: var(--paper-faint); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn-key {
  background: var(--metal); color: #171104; border: 0; font-weight: 800;
  box-shadow: 0 2px 18px rgba(227, 180, 86, .2);
}
.btn-key:hover:not(:disabled) { box-shadow: 0 3px 26px rgba(227, 180, 86, .34); background: var(--metal); }

/* ========================================================= REFRESH STRIP === */

.strip {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  padding: 11px 28px; display: flex; align-items: center; gap: 15px;
  font-size: 11.5px; color: var(--paper-dim);
}
.strip .tag {
  color: var(--gold); font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; font-size: 9.5px;
}
.bar { flex: 1; height: 2px; background: var(--ink-5); border-radius: 99px; overflow: hidden; max-width: 340px; }
.bar i {
  display: block; height: 100%; background: var(--metal); border-radius: 99px;
  box-shadow: 0 0 12px rgba(227, 180, 86, .55); transition: width .5s var(--ease);
}
.bar.indet i { animation: crawl 2.8s ease-in-out infinite; }
@keyframes crawl { 0%, 100% { width: 34%; transform: translateX(-4%); } 50% { width: 66%; transform: translateX(46%); } }

/* ================================================================== KPIS === */

.kpis { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.kpi { padding: 22px 24px 20px; border-right: 1px solid var(--line); position: relative; overflow: hidden; }
.kpi:last-child { border-right: 0; }
.kpi::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.kpi:hover::before { opacity: .6; }
.kpi .lab {
  font-size: 9px; text-transform: uppercase; letter-spacing: .2em;
  color: var(--paper-faint); font-weight: 700; margin-bottom: 12px;
}
.kpi .val {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px; font-weight: 500; line-height: .95; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.kpi .foot { font-size: 10.5px; color: var(--paper-faint); margin-top: 11px; display: flex; gap: 5px; }
.up { color: var(--go); }

/* =============================================================== FILTERS === */

.filters {
  display: flex; align-items: center; gap: 8px; padding: 14px 28px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.chip {
  font-size: 11.5px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px;
  color: var(--paper-dim); cursor: pointer; background: var(--ink-2); white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.chip:hover { border-color: var(--paper-faint); color: var(--paper); }
.chip.on { background: var(--gold-glow); border-color: var(--line-gold); color: var(--gold); }
.chip.lock { cursor: default; }
.divider { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }

.search { flex: 1; min-width: 160px; max-width: 260px; position: relative; }
.search input {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: 99px;
  padding: 9px 14px 9px 34px; color: var(--paper); font-family: inherit; font-size: 12px;
  outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search input::placeholder { color: var(--paper-faint); }
.search input:focus { border-color: var(--gold-lo); box-shadow: 0 0 0 3px var(--gold-glow); outline: none; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--paper-faint); }

/* ============================================================== AREA BAR === */

.areabar {
  display: flex; align-items: center; gap: 13px; padding: 12px 28px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap; background: rgba(12, 12, 15, .6);
}
.areabar .cap {
  font-size: 9px; text-transform: uppercase; letter-spacing: .2em;
  color: var(--paper-faint); font-weight: 700;
}
.seg {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r);
  overflow: hidden; background: var(--ink-2); max-width: 100%; overflow-x: auto;
}
.seg button {
  font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--paper-dim);
  background: transparent; border: 0; border-right: 1px solid var(--line); padding: 9px 15px;
  cursor: pointer; display: flex; align-items: center; gap: 9px; white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--paper); background: var(--ink-3); }
.seg button.on { background: var(--gold-glow); color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.seg button .ct {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px;
  font-variant-numeric: tabular-nums; color: var(--paper-faint);
  background: var(--ink-4); padding: 2px 7px; border-radius: 99px;
}
.seg button.on .ct { color: var(--gold); background: rgba(227, 180, 86, .16); }

.addloc {
  font-size: 11.5px; padding: 8px 14px; border: 1px dashed var(--line-2); border-radius: var(--r);
  color: var(--paper-faint); background: transparent; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 7px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.addloc:hover { border-color: var(--gold-lo); color: var(--gold); }

/* ================================================================= TABLE === */

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1200px; }
thead th {
  font-size: 9px; text-transform: uppercase; letter-spacing: .18em; color: var(--paper-faint);
  font-weight: 800; text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-2);
  background: var(--ink-2); position: sticky; top: 68px; z-index: 20; white-space: nowrap;
  user-select: none; transition: color .15s var(--ease);
}
thead th.s { cursor: pointer; }
thead th.s:hover { color: var(--paper-dim); }
thead th.srt { color: var(--gold); }
thead th .car { opacity: .8; margin-left: 5px; font-size: 8px; }

tbody tr { border-bottom: 1px solid rgba(30, 30, 37, .7); transition: background .15s var(--ease); }
tbody tr:hover { background: var(--ink-2); }
tbody tr:hover .act { opacity: 1; transform: translateX(0); }
td { padding: 13px 16px; vertical-align: middle; }

.who { display: flex; align-items: center; gap: 13px; }
.pfp {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line-2); flex: none; background: var(--ink-3);
}
.who .nm { font-weight: 700; font-size: 13px; letter-spacing: -.005em; }
.who .br { font-size: 11px; color: var(--paper-faint); margin-top: 2px; }

.num {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums;
  font-size: 14px; font-weight: 500;
}
.num.hot { color: var(--gold); }
.num.out { color: var(--gone); }
.sub { font-size: 10.5px; color: var(--paper-faint); font-family: 'JetBrains Mono', ui-monospace, monospace; }

.spark { display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.spark i { width: 4px; background: var(--line-2); border-radius: 1px; transition: background .2s var(--ease); }
tr:hover .spark i { background: var(--gold-deep); }
.spark i.pk { background: var(--gold); }
.spark-none { font-size: 10px; color: var(--line-2); font-family: 'JetBrains Mono', ui-monospace, monospace; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; padding: 4px 11px; border-radius: 99px;
  border: 1px solid; cursor: pointer; font-family: inherit; background: transparent;
  transition: opacity .15s var(--ease);
}
.p-new { color: var(--gold); border-color: var(--line-gold); background: var(--gold-glow); }
.p-called { color: var(--cool); border-color: rgba(127, 160, 206, .3); background: rgba(127, 160, 206, .1); }
.p-offered { color: var(--wait); border-color: rgba(224, 169, 60, .3); background: rgba(224, 169, 60, .1); }
.p-booked { color: var(--go); border-color: rgba(95, 195, 140, .32); background: rgba(95, 195, 140, .1); }
.p-client { color: var(--go); border-color: var(--go); background: rgba(95, 195, 140, .18); }
.p-no_answer { color: var(--paper-faint); border-color: var(--line-2); }
.p-not_interested { color: var(--gone); border-color: rgba(210, 97, 90, .3); background: rgba(210, 97, 90, .08); }
.p-dropped { color: var(--gone); border-color: rgba(210, 97, 90, .3); background: rgba(210, 97, 90, .08); }

.ig {
  display: inline-flex; align-items: center; gap: 7px; color: var(--paper-dim);
  font-size: 12px; text-decoration: none; transition: color .18s var(--ease);
}
.ig:hover { color: var(--gold); }
.ig svg { opacity: .5; flex: none; transition: opacity .18s var(--ease); }
.ig:hover svg { opacity: 1; }

.act { display: flex; gap: 6px; opacity: 0; transform: translateX(6px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.ibtn {
  width: 30px; height: 30px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--ink-3); color: var(--paper-dim); display: grid; place-items: center;
  cursor: pointer; text-decoration: none;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.ibtn:hover { color: var(--gold); border-color: var(--gold-lo); background: var(--gold-glow); }

.fresh { width: 2px; height: 30px; border-radius: 2px; background: var(--metal); box-shadow: 0 0 10px var(--gold); }

tbody tr { animation: rise .4s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.empty { padding: 80px 28px; text-align: center; color: var(--paper-faint); }
.empty b {
  display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 25px;
  color: var(--paper-dim); font-weight: 400; margin-bottom: 10px;
}

/* ================================================================ FOOTER === */

.foot {
  display: flex; align-items: center; gap: 20px; padding: 16px 28px; font-size: 11.5px;
  color: var(--paper-faint); border-top: 1px solid var(--line); flex-wrap: wrap;
}
.perpage { display: flex; align-items: center; gap: 9px; }
.perpage label { font-size: 9px; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }
.sel { position: relative; display: inline-flex; align-items: center; }
.sel select {
  appearance: none; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px;
  font-variant-numeric: tabular-nums; background: var(--ink-2); border: 1px solid var(--line-2);
  border-radius: var(--r); color: var(--paper); padding: 7px 29px 7px 12px; cursor: pointer;
  outline: none; transition: border-color .18s var(--ease);
}
.sel select:hover { border-color: var(--paper-faint); }
.sel select:focus { border-color: var(--gold-lo); box-shadow: 0 0 0 3px var(--gold-glow); }
.sel svg { position: absolute; right: 10px; pointer-events: none; color: var(--paper-faint); }
.foot .sp { flex: 1; }
.count b { color: var(--paper); font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.pg { display: flex; gap: 5px; align-items: center; }
.pg button {
  padding: 6px 11px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
  font-weight: 500; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px;
  background: var(--ink-2); color: var(--paper-dim);
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.pg button:hover:not(:disabled):not(.on) { border-color: var(--paper-faint); color: var(--paper); }
.pg button.on { background: var(--gold-glow); border-color: var(--line-gold); color: var(--gold); }
.pg button:disabled { opacity: .3; cursor: not-allowed; }
.pg .gap { color: var(--paper-faint); padding: 0 3px; }

/* ================================================================= MODAL === */

.scrim {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .78); backdrop-filter: blur(5px);
  z-index: 200; display: grid; place-items: center; padding: 24px;
  animation: fade .2s var(--ease);
}
@keyframes fade { from { opacity: 0; } }

.modal {
  width: 100%; max-width: 480px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .75); max-height: 86vh; overflow-y: auto;
  animation: pop .26s var(--ease); position: relative;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55;
}
.modal header {
  padding: 22px 26px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.modal header h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 400; }
.modal .body { padding: 24px 26px; }
.modal .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; font-size: 13px; border-bottom: 1px solid rgba(30, 30, 37, .8);
}
.modal .row:last-child { border-bottom: 0; }
.modal .row span { color: var(--paper-faint); }
.modal footer { padding: 18px 26px; border-top: 1px solid var(--line); display: flex; gap: 10px; }

.stages { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
textarea.notes {
  width: 100%; background: var(--void); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 13px; color: var(--paper); font-family: inherit; font-size: 13px;
  resize: vertical; min-height: 90px; outline: none; line-height: 1.6;
  transition: border-color .2s var(--ease);
}
textarea.notes:focus { border-color: var(--gold-lo); box-shadow: 0 0 0 3px var(--gold-glow); }

.loclist { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.locrow {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--void);
}
.locrow .nm { flex: 1; font-size: 13px; }
.locrow .slug { font-size: 10.5px; color: var(--paper-faint); font-family: 'JetBrains Mono', ui-monospace, monospace; margin-top: 2px; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 13px 20px; font-size: 13px; z-index: 300;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .65); animation: rise .3s var(--ease);
}
.toast.bad { border-color: rgba(210, 97, 90, .5); color: var(--gone); }
.toast.good { border-color: rgba(95, 195, 140, .42); color: var(--go); }

/* ============================================================= UTILITIES === */
/* The CSP forbids inline style attributes (style-src-attr), so anything that
   would have been style="..." lives here. Genuinely dynamic values — sparkline
   heights, stagger delays — are applied via the CSSOM in app.js, which CSP
   does permit. Never add 'unsafe-inline' to work around this. */
.col-flag { width: 26px; }
.col-act { width: 78px; }
.dimmed { opacity: .55; }
.grow { flex: 1; justify-content: center; }
.stage-off { opacity: .4; }
.row-plain { border: 0; padding-top: 18px; }
.note-hint { font-size: 11.5px; color: var(--paper-faint); line-height: 1.65; }
.note-empty { color: var(--paper-faint); font-size: 13px; }
.phone-link { font-size: 12px; }
.state-done { color: var(--go); }
.state-failed { color: var(--gone); }
.state-other { color: var(--paper-dim); }
.danger { color: var(--gone); }

/* ============================================================ RESPONSIVE === */

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } .kpi { border-bottom: 1px solid var(--line); } }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; height: 58px;
    flex-direction: row; justify-content: space-around; align-items: center; padding: 0;
    border-right: 0; border-top: 1px solid var(--line); z-index: 60;
    background: rgba(8, 8, 10, .96); backdrop-filter: blur(18px);
  }
  .rail .mark, .rail .sp { display: none; }
  main { padding-bottom: 58px; }
  .top-in { height: auto; padding: 14px 18px; flex-wrap: wrap; gap: 10px; }
  .brandline { width: 100%; }
  .top .sp { display: none; }
  .stat-live { flex: 1; }
  thead th { top: 0; }
  .strip { padding: 11px 18px; flex-wrap: wrap; gap: 10px; }
  .bar { max-width: none; flex-basis: 100%; }
  .filters, .areabar, .foot { padding-left: 18px; padding-right: 18px; }
  .seg { width: 100%; }
  .foot { flex-direction: column; gap: 12px; align-items: flex-start; }
  .foot .sp { display: none; }
  .kpi .val { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
