/* Gabzy HQ: "HBK Night" (10/11/2026). The brand-dashboard method on Gabzy's own palette, the one he wrote in his HBK brief:
   charcoal black, deep browns, stone grey, cream, dark navy, soft silver, warm skin tones. "No bright colours. Everything
   should feel timeless. Mature, luxury but simple." Light comes from warm skin and bronze on a charcoal ground, a navy glow
   underneath, cream type, and a serif for the one sentence that matters. Dark is the default; the light theme stays calm.
   Loaded after app.css and classic-map.css. Two parts: TOKENS + SHELL (the whole app, dark only) and KIT (the home, .dn). */

/* ============================================================ BRAND TOKENS */
:root {
  --brand-1: #C9925F; --brand-1-deep: #6E452A; --brand-1-rgb: 201, 146, 95;      /* warm skin, bronze; deep brown */
  --brand-2: #6B80B3; --brand-2-deep: #1B2540; --brand-2-rgb: 107, 128, 179;     /* dark navy, lit enough to glow */
  --brand-2-deep-rgb: 27, 37, 64;
  --brand-3: #C4C8CE; --brand-3-rgb: 196, 200, 206;                               /* soft silver */
  --cream: #EFE6D6; --stone: #9A9289;
  --night: #0B0A09;                                                               /* charcoal black */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
}
[data-theme="dark"] {
  --canvas: #0B0A09; --side: #0D0C0B; --surface: #151311; --surface-2: #1B1916; --surface-3: #25221E;
  --line: rgba(239, 230, 214, 0.10); --line-2: rgba(239, 230, 214, 0.065);
  --ink: #EFE6D6; --ink-2: #C9BFB1; --ink-3: #9A9289; --ink-4: #6E6860;
  --acc: #C9925F; --acc-hover: #D8A574; --acc-ink: #1A110A; --acc-soft: rgba(201, 146, 95, 0.14); --acc-text: #DDAB7E; --acc-line: rgba(201, 146, 95, 0.45);
  --ok: #7DBE95; --ok-soft: rgba(125, 190, 149, 0.13); --warn: #D6A65A; --warn-soft: rgba(214, 166, 90, 0.13); --bad: #D9806A; --bad-soft: rgba(217, 128, 106, 0.13);
  --c1: #8FA4D0; --c2: #C9925F; --c3: #D6B98A; --c4: #C98E86; --c5: #9A9289; --c6: #7DBE95;
  --t1: rgba(143, 164, 208, 0.14); --t2: rgba(201, 146, 95, 0.15); --t3: rgba(214, 185, 138, 0.14); --t4: rgba(201, 142, 134, 0.14); --t5: rgba(239, 230, 214, 0.07); --t6: rgba(125, 190, 149, 0.13);
  --data: #EFE6D6; --data-soft: rgba(239, 230, 214, 0.08);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 22px 54px rgba(0, 0, 0, 0.62), 0 2px 8px rgba(0, 0, 0, 0.4);
  --scrim: rgba(5, 4, 3, 0.62);
  --glass: linear-gradient(180deg, rgba(239, 230, 214, 0.045), rgba(239, 230, 214, 0.012));
  --edge: rgba(239, 230, 214, 0.085); --edge-hi: rgba(239, 230, 214, 0.15);
  --card-ground: #121110;
}

/* ============================================================ SHELL (dark only) */
[data-theme="dark"] body {
  background:
    radial-gradient(900px 560px at 88% -10%, rgba(var(--brand-1-rgb), 0.15), transparent 62%),
    radial-gradient(820px 600px at 6% 108%, rgba(var(--brand-2-rgb), 0.17), transparent 62%),
    radial-gradient(700px 460px at 50% 42%, rgba(var(--brand-2-deep-rgb), 0.32), transparent 72%),
    var(--night);
  background-attachment: fixed;
}
[data-theme="dark"] .side { background: rgba(11, 10, 9, 0.78); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-right: 1px solid rgba(239, 230, 214, 0.06); }
[data-theme="dark"] .top { background: rgba(11, 10, 9, 0.55); border-bottom: 1px solid rgba(239, 230, 214, 0.05); }
[data-theme="dark"] .ws .n { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: 0.005em; }
[data-theme="dark"] .search-btn { background: rgba(239, 230, 214, 0.035); border-color: var(--edge); box-shadow: none; }
[data-theme="dark"] .nav a:hover { background: rgba(239, 230, 214, 0.05); }
[data-theme="dark"] .nav a[aria-current="page"] { color: var(--cream); background: linear-gradient(90deg, rgba(var(--brand-1-rgb), 0.24), rgba(var(--brand-2-rgb), 0.10) 85%); box-shadow: inset 0 0 0 1px rgba(var(--brand-1-rgb), 0.22); }
[data-theme="dark"] .nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-1); box-shadow: 0 0 12px 1px rgba(var(--brand-1-rgb), 0.7); }
[data-theme="dark"] .nav a[aria-current="page"] .i { color: var(--brand-1); }
[data-theme="dark"] .count.hot { background: linear-gradient(180deg, #D7A06C, #9A6338); color: #1A110A; }
[data-theme="dark"] .btn.pri { background: linear-gradient(180deg, #D7A06C, #9A6338); color: #1A110A; box-shadow: 0 8px 22px -10px rgba(var(--brand-1-rgb), 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
[data-theme="dark"] .btn.pri:hover { background: linear-gradient(180deg, #E2AE7C, #A86E42); }
[data-theme="dark"] .btn.sec { background: rgba(239, 230, 214, 0.04); border-color: var(--edge); box-shadow: none; }
[data-theme="dark"] .btn.sec:hover { border-color: var(--edge-hi); background: rgba(239, 230, 214, 0.07); }
[data-theme="dark"] .seg { background: rgba(239, 230, 214, 0.04); box-shadow: inset 0 0 0 1px var(--edge); }
[data-theme="dark"] .seg button[aria-pressed="true"] { color: #1A110A; background: linear-gradient(180deg, #D7A06C, #A86E42); box-shadow: 0 4px 14px -6px rgba(var(--brand-1-rgb), 0.8); }
[data-theme="dark"] .panel, [data-theme="dark"] .strip { background: var(--glass), var(--card-ground); border-color: var(--edge); box-shadow: 0 1px 0 rgba(239, 230, 214, 0.03) inset, 0 18px 40px -28px rgba(0, 0, 0, 0.9); }
[data-theme="dark"] .ph h1 { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.08; letter-spacing: -0.005em; color: var(--cream); }
[data-theme="dark"] .chip.acc { background: rgba(var(--brand-1-rgb), 0.16); color: var(--acc-text); }
/* the original views inside Focus (classic) */
[data-theme="dark"] .cx .card, [data-theme="dark"] .cx .panel { background: var(--glass), var(--card-ground); border-color: var(--edge); }
[data-theme="dark"] .cx .btn.pri { background: linear-gradient(180deg, #D7A06C, #9A6338); color: #1A110A; border-color: transparent; box-shadow: 0 8px 22px -10px rgba(var(--brand-1-rgb), 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
[data-theme="dark"] .cx .fx-vh h2 { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -0.003em; color: var(--cream); }
[data-theme="dark"] .cx .seg button.on { color: #1A110A; background: linear-gradient(180deg, #D7A06C, #A86E42); }

/* a quiet spinner for work in progress (videos being cut) */
.spin, .cx .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--acc) 25%, transparent); border-top-color: var(--acc); animation: spin 0.9s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin, .cx .spin { animation-duration: 2.4s; } }

/* ============================================================ KIT: the home (.dn) */
.dn {
  --f-ui: var(--font); --text: var(--ink); --text-2: var(--ink-2); --text-3: var(--ink-3);
  --hi: var(--ink); --card: var(--glass), var(--card-ground);
  --red: var(--brand-1); --red-2: var(--brand-1-deep); --violet: var(--brand-2); --violet-2: var(--brand-2-deep); --blue: var(--brand-3);
  --amber: #D6A65A; --green: #7DBE95;
  position: relative;
}
[data-theme="light"] .dn { --card: var(--surface); --edge: var(--line); --edge-hi: var(--ink-4); --amber: #9C5A00; --green: #1E7F48; }
.dn-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 2px 0 24px; }
.dn-h h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -0.005em; color: var(--hi); margin: 0; }
.dn-grad { background: linear-gradient(92deg, #F1D3B0 0%, var(--brand-1) 45%, #8E9FC8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; padding-right: 0.08em; }
[data-theme="light"] .dn-grad { background: linear-gradient(92deg, #8A5A38, #6E452A 55%, #1B2540); -webkit-background-clip: text; background-clip: text; }
.dn-h p { margin: 8px 0 0; font-size: 14.5px; color: var(--text-2); max-width: 74ch; }
.dn-h p b { color: var(--hi); font-weight: 600; }
.dn-h-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dn-live { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--cream);
  background: linear-gradient(90deg, rgba(var(--brand-2-rgb), 0.26), rgba(var(--brand-1-rgb), 0.18)); border: 1px solid rgba(var(--brand-1-rgb), 0.28); white-space: nowrap; }
[data-theme="light"] .dn-live { color: var(--ink); }
.dn-live i, .dn-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(125, 190, 149, 0.6); animation: dnPulse 2.2s infinite; display: inline-block; flex: none; }
@keyframes dnPulse { 70% { box-shadow: 0 0 0 7px rgba(125, 190, 149, 0); } 100% { box-shadow: 0 0 0 0 rgba(125, 190, 149, 0); } }

/* tones: bronze (brand-1), navy (brand-2), silver (brand-3), attention, good */
.dn .t-red { --t: var(--red); --t2: var(--red-2); --tg: rgba(var(--brand-1-rgb), 0.17); --ti: #FFF6EA; }
.dn .t-violet { --t: var(--violet); --t2: var(--violet-2); --tg: rgba(var(--brand-2-rgb), 0.18); --ti: #F3F5FB; }
.dn .t-blue { --t: var(--blue); --t2: #6F757E; --tg: rgba(var(--brand-3-rgb), 0.13); --ti: #121316; }
.dn .t-amber { --t: var(--amber); --t2: #8E6426; --tg: rgba(214, 166, 90, 0.14); --ti: #1A1206; }
.dn .t-green { --t: var(--green); --t2: #3E7A55; --tg: rgba(125, 190, 149, 0.14); --ti: #0C1A11; }
.dn-tile { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--ti);
  background: linear-gradient(135deg, var(--t), var(--t2)); box-shadow: 0 8px 20px -8px var(--t), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.dn-tile .i { width: 17px; height: 17px; stroke-width: 2; }
.dn-tile.sm { width: 28px; height: 28px; border-radius: 9px; }
.dn-tile.sm .i { width: 14px; height: 14px; }
.dn-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--t); background: var(--tg); border: 1px solid color-mix(in srgb, var(--t) 30%, transparent); white-space: nowrap; }
[data-theme="light"] .dn .t-blue { --t: #4A5260; }
.dn-delta { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dn-delta.up { color: var(--green); background: rgba(125, 190, 149, 0.13); }
.dn-delta.down { color: var(--brand-1); background: rgba(var(--brand-1-rgb), 0.13); }
.dn-delta.flat { color: var(--text-3); background: rgba(239, 230, 214, 0.06); }

/* KPI cards, each lit by its own tone from the top corner */
.dn-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.dn-kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 17px 18px 17px; border-radius: 16px; background: var(--card); border: 1px solid var(--edge); min-width: 0; }
.dn-kpi::before { content: ""; position: absolute; inset: -45% -20% auto auto; width: 75%; height: 125%; background: radial-gradient(closest-side, var(--tg, transparent), transparent); pointer-events: none; }
.dn-kpi::after { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--t, transparent), transparent); opacity: 0.75; }
.dn-kpi-h { display: flex; align-items: center; gap: 10px; position: relative; }
.dn-kl { font-size: 13px; color: var(--text-2); flex: 1; min-width: 0; line-height: 1.3; }
.dn-kv { position: relative; font: 650 32px/1 var(--f-ui); letter-spacing: -0.035em; color: var(--hi); font-variant-numeric: tabular-nums; }
.dn-kv small { font-size: 15px; font-weight: 600; color: var(--text-3); letter-spacing: 0; margin-left: 3px; }
.dn-kd { position: relative; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; line-height: 1.35; }
.dn-kpi .tag { position: relative; }

/* rows and cards */
.dn-row { display: grid; gap: 14px; margin-bottom: 14px; }
.dn-r1 { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.dn-r2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dn-r3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1fr); }
.dn-card { position: relative; overflow: hidden; padding: 17px 18px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--edge); min-width: 0; }
.dn-ch { position: relative; display: flex; align-items: center; gap: 10px; min-height: 28px; margin-bottom: 14px; flex-wrap: wrap; }
.dn-ch h2 { font: 600 14.5px/1.2 var(--f-ui); letter-spacing: -0.01em; color: var(--hi); margin: 0 auto 0 0; }
.dn-sub { font-size: 12px; color: var(--text-3); }
.dn-more { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--text-2); }
.dn-more .i { width: 13px; height: 13px; }
.dn-more:hover { color: var(--hi); }

/* the chart */
.dn-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: -4px 0 8px; }
.dn-big b { font: 650 30px/1 var(--f-ui); letter-spacing: -0.035em; color: var(--hi); font-variant-numeric: tabular-nums; }
.dn-big span { font-size: 12.5px; color: var(--text-3); }
.dn-plot { position: relative; }
.dn-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dn-grid { stroke: rgba(239, 230, 214, 0.06); stroke-width: 1; }
[data-theme="light"] .dn-grid { stroke: var(--line-2); }
.dn-ax { fill: var(--text-3); font: 10.5px var(--f-ui); font-variant-numeric: tabular-nums; }
.dn-cur { fill: none; stroke: url(#dnLine); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dn-dot, .dn-hov { fill: var(--cream); stroke: var(--brand-1); stroke-width: 2.5; }
.dn-halo { fill: rgba(var(--brand-1-rgb), 0.28); animation: dnHalo 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dnHalo { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.dn-cross { stroke: rgba(239, 230, 214, 0.2); stroke-dasharray: 3 3; }
.dn-hit { fill: transparent; cursor: crosshair; }
.dn-tip { position: absolute; top: 2px; min-width: 150px; padding: 9px 11px; border-radius: 10px; background: rgba(18, 16, 14, 0.94); border: 1px solid var(--edge-hi); backdrop-filter: blur(10px);
  font-size: 12px; color: #C9BFB1; display: flex; flex-direction: column; gap: 3px; pointer-events: none; font-variant-numeric: tabular-nums; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.9); z-index: 2; }
.dn-tip[hidden] { display: none; }
.dn-tip b { color: #EFE6D6; font-weight: 600; }
.dn-empty { height: 220px; display: grid; place-items: center; text-align: center; color: var(--text-3); font-size: 13.5px; border: 1px dashed var(--edge); border-radius: 12px; padding: 16px; }
.dn-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.dn-m { position: relative; padding: 10px 12px 10px 14px; border-radius: 12px; background: rgba(239, 230, 214, 0.03); border: 1px solid var(--edge); display: flex; flex-direction: column; gap: 2px; overflow: hidden; min-width: 0; }
.dn-m::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--t), var(--t2)); }
.dn-m span { font-size: 11.5px; color: var(--text-3); }
.dn-m b { font: 650 18px/1.2 var(--f-ui); color: var(--hi); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dn-m small { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the move of the day: lit from warm skin to navy, his serif */
.dn-next { display: flex; flex-direction: column; background: linear-gradient(158deg, rgba(var(--brand-1-rgb), 0.34) 0%, rgba(var(--brand-2-deep-rgb), 0.78) 58%, rgba(var(--brand-2-rgb), 0.30) 100%), var(--card-ground, #121110); border-color: rgba(var(--brand-1-rgb), 0.28); }
[data-theme="light"] .dn-next { --hi: #EFE6D6; --text-2: #D9CFC2; --text-3: #B9AEA1; color: #EFE6D6; background: linear-gradient(158deg, #8A5A38 0%, #1B2540 62%, #34466F 100%); }
.dn-glow { position: absolute; inset: auto -30% -55% auto; width: 85%; height: 95%; background: radial-gradient(closest-side, rgba(var(--brand-2-rgb), 0.42), transparent); pointer-events: none; }
.dn-glow.b { inset: -45% auto auto -30%; background: radial-gradient(closest-side, rgba(241, 211, 176, 0.22), transparent); }
.dn-eyebrow { position: relative; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(239, 230, 214, 0.72); }
.dn-q { position: relative; font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.08; letter-spacing: -0.005em; color: #F6EEE2; margin: 12px 0 10px; text-wrap: balance; }
.dn-angle { position: relative; font-size: 13.5px; line-height: 1.55; color: rgba(239, 230, 214, 0.78); }
.dn-proof { position: relative; display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.26); border: 1px solid rgba(239, 230, 214, 0.1); font-size: 12.5px; line-height: 1.5; color: rgba(239, 230, 214, 0.84); }
.dn-proof .i { width: 15px; height: 15px; color: #E7C08F; flex: none; margin-top: 2px; }
.dn-proof b { color: #F6EEE2; font-weight: 600; }
.dn-acts { position: relative; display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; flex-wrap: wrap; }
.dn-next .btn.ghost { color: rgba(239, 230, 214, 0.86); }
.dn-next .btn.ghost:hover { background: rgba(239, 230, 214, 0.08); color: #F6EEE2; }
.dn-next .btn.pri { background: linear-gradient(180deg, #E9C79E, #B98252); color: #1A110A; box-shadow: 0 10px 26px -10px rgba(var(--brand-1-rgb), 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35); }

/* lists */
.dn-list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dn-li { display: flex; align-items: center; gap: 11px; padding: 8px; margin: 0 -8px; border-radius: 10px; color: var(--text-2); font-size: 13px; line-height: 1.4; transition: background-color 0.15s; min-width: 0; }
a.dn-li:hover, button.dn-li:hover { background: rgba(239, 230, 214, 0.045); color: var(--hi); }
[data-theme="light"] a.dn-li:hover { background: var(--surface-3); }
.dn-li.tall { align-items: flex-start; }
.dn-lt { flex: 1; min-width: 0; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dn-lt small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.dn-lm { flex: none; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dn-rank { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 12px; font-weight: 700; color: #F6EEE2; background: linear-gradient(135deg, rgba(var(--brand-1-rgb), 0.55), rgba(var(--brand-2-rgb), 0.45)); font-variant-numeric: tabular-nums; }
.dn-th { flex: none; width: 40px; height: 40px; border-radius: 9px; overflow: hidden; background: rgba(239, 230, 214, 0.06); display: grid; place-items: center; color: var(--text-3); }
.dn-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dn-x { flex: none; align-self: center; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #1A110A; background: linear-gradient(90deg, #B98252, #E2B88A); box-shadow: 0 4px 14px -6px var(--brand-1); font-variant-numeric: tabular-nums; }
.dn-none { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 13px; color: var(--text-3); line-height: 1.45; }
.dn-none .i { width: 15px; height: 15px; flex: none; }

/* bars */
.dn-bars { display: flex; flex-direction: column; gap: 15px; }
.dn-bar { display: flex; flex-direction: column; gap: 7px; }
.dn-bl { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.dn-bl b { font-weight: 650; color: var(--hi); font-variant-numeric: tabular-nums; }
.dn-track { height: 6px; border-radius: 6px; background: rgba(239, 230, 214, 0.06); overflow: hidden; }
[data-theme="light"] .dn-track { background: var(--surface-3); }
.dn-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--t2), var(--t)); box-shadow: 0 0 12px -2px var(--t); }

/* best on record */
.dn-best { background: linear-gradient(160deg, rgba(241, 211, 176, 0.13), rgba(var(--brand-1-rgb), 0.08) 58%, transparent), var(--card); }
.dn-hero { position: relative; display: block; font: 650 44px/1 var(--f-ui); letter-spacing: -0.045em; background: linear-gradient(92deg, #F6E3C6, #D9A574 55%, #9A6338); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: 2px; font-variant-numeric: tabular-nums; }
[data-theme="light"] .dn-hero { background: linear-gradient(92deg, #8A5A38, #6E452A); -webkit-background-clip: text; background-clip: text; }
.dn-best .dn-sub { position: relative; display: block; margin: 6px 0 12px; }
.dn-best .dn-angle { color: var(--text-2); }

/* team and system */
.dn-faces { display: flex; }
.dn-faces > * + * { margin-left: -7px; }
.dn-faces .face, .dn-faces .av { box-shadow: 0 0 0 2px var(--card-ground, #121110); }
.dn-kvl { position: relative; display: flex; flex-direction: column; margin: 0; }
.dn-kvl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(239, 230, 214, 0.055); font-size: 13px; }
[data-theme="light"] .dn-kvl div { border-color: var(--line-2); }
.dn-kvl div:first-child { border-top: 0; padding-top: 2px; }
.dn-kvl dt { color: var(--text-3); }
.dn-kvl dd { margin: 0; color: var(--hi); font-variant-numeric: tabular-nums; text-align: right; }
.dn-office { position: relative; display: block; height: 104px; margin: 2px 0 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--edge); }
.dn-office img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.dn-office:hover img { transform: scale(1.04); }
.dn-office::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 9, 0) 20%, rgba(11, 10, 9, 0.8)); }
.dn-office span { position: absolute; left: 12px; bottom: 10px; z-index: 1; color: #F6EEE2; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }

.dn-foot { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 4px 2px 0; font-size: 12px; color: var(--text-3); }
.dn-foot .i { width: 13px; height: 13px; }

/* the door: the app icon, his serif, the bronze key (also the first screen of the installed app) */
.lock { padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); }
[data-theme="dark"] .lock { background: radial-gradient(80% 42% at 88% 0%, rgba(var(--brand-1-rgb), 0.22), transparent 72%), radial-gradient(80% 42% at 0% 100%, rgba(var(--brand-2-rgb), 0.17), transparent 72%), var(--night); }
.lock-card { max-width: 360px; text-align: center; }
.lock-icon { display: block; width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 18px; box-shadow: 0 18px 44px -14px rgba(var(--brand-1-rgb), 0.6), 0 0 0 1px rgba(239, 230, 214, 0.08); }
.lock-card h1 { font-family: var(--font-display); font-weight: 600; font-size: 46px; line-height: 1; letter-spacing: -0.005em; margin: 0 0 12px; }
.lock-card .lock-sub { margin: 0 auto; max-width: 30ch; color: var(--ink-3); font-size: 15px; line-height: 1.5; }
.lock-card form { margin-top: 30px; gap: 12px; }
.lock-card .input { height: 52px; border-radius: 14px; text-align: center; font-size: 17px; }
.lock-card .btn { height: 52px; border-radius: 14px; font-size: 16px; justify-content: center; }
.lock-card .err { text-align: center; }

@media (max-width: 1280px) { .dn-r3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .dn-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dn-r1 { grid-template-columns: minmax(0, 1fr); }
  .dn-r2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dn-r2 > .dn-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .dn-kpis, .dn-r2, .dn-r3 { grid-template-columns: minmax(0, 1fr); }
  .dn-r2 > .dn-card:last-child { grid-column: auto; }
  .dn-kv { font-size: 28px; }
  .dn-mini { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dn-mini .dn-m:last-child { grid-column: 1 / -1; }
  .dn-h h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .dn-live i, .dn-pulse, .dn-halo { animation: none; } .dn-office img { transition: none; } }
