/* DeltaBias V6 — "Trading Desk Terminal".
   Amber-on-void Bloomberg/CRT aesthetic: scanlines, vignette, mono type, hard
   terminal frames. Drives the same engine as V2 (shares v2.js — all IDs match). */

:root {
  --void: #0B0906; --void-2: #100D08; --void-3: #16110a;
  --amber: #FFB000; --amber-mid: #C98A18; --amber-dim: #8A6516; --amber-faint: #4F3C12;
  --green: #54D17A; --red: #FF5C4D;
  --maxw: 940px;
  --mono: "IBM Plex Mono", "Consolas", "DejaVu Sans Mono", monospace;
  --disp: "Space Mono", "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void); color: var(--amber); font-family: var(--mono);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; position: relative; min-height: 100vh;
}
/* CRT vignette + scanlines */
body::before { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%); }
body::after { content: ""; position: fixed; inset: 0; z-index: 51; pointer-events: none; opacity: .31;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.32) 3px, rgba(0,0,0,0) 4px); }
.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: var(--void); }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 7px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--amber-faint); }
::-webkit-scrollbar-thumb:hover { background: var(--amber-dim); }

/* blinking cursor */
.cur { display: inline-block; width: .62em; height: 1.05em; background: var(--amber); transform: translateY(.16em);
  margin-left: .12em; animation: blink 1.06s steps(1) infinite; box-shadow: 0 0 8px rgba(255,176,0,.5); }
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

/* ----------------------------- status bar ------------------------------- */
.statusbar { border-bottom: 1px solid var(--amber-faint); display: flex; align-items: center; gap: 14px;
  padding: 11px 0; font-size: 12px; letter-spacing: .06em; color: var(--amber-mid); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--amber); font-weight: 700; }
.brand .glyph { width: 26px; height: 26px; display: grid; place-items: center; color: var(--amber);
  filter: drop-shadow(0 0 5px rgba(255,176,0,.4)); }
.brand .glyph svg { width: 26px; height: 26px; display: block; }
.brand .nm { font-family: var(--disp); font-weight: 700; letter-spacing: .08em; }
.statusbar .sep { color: var(--amber-faint); }
.statusbar .live { display: inline-flex; align-items: center; gap: 7px; color: var(--green); }
.statusbar .live i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 8px var(--green); animation: beat 2.2s infinite; }
@keyframes beat { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.statusbar .howto { margin-left: auto; color: var(--amber-mid); border-bottom: 1px dotted var(--amber-dim); }
.statusbar .howto:hover { color: var(--amber); }

/* ----------------------------- live tape -------------------------------- */
.tape { border-bottom: 1px solid var(--amber-faint); overflow: hidden; white-space: nowrap; background: rgba(0,0,0,.25); }
.tape .track { display: inline-block; padding: 7px 0; font-size: 12.5px; letter-spacing: .04em; color: var(--amber-mid); animation: scroll 46s linear infinite; }
.tape .tk { margin: 0 20px; }
.tape .tk b { color: var(--amber); font-weight: 600; }
.tape .up { color: var(--green); }
.tape .dn { color: var(--red); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----------------------------- hero ------------------------------------- */
.hero { padding: 54px 0 34px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.hero-left { flex: 1; min-width: 0; }
.prompt { font-size: 13px; color: var(--amber-dim); letter-spacing: .04em; margin-bottom: 22px; }
.prompt b { color: var(--green); font-weight: 400; }
h1 { font-family: var(--disp); font-weight: 700; font-size: clamp(38px, 7.2vw, 70px); line-height: 1; letter-spacing: -.01em;
  text-transform: uppercase; text-shadow: 0 0 14px rgba(255,176,0,.22); margin-bottom: 22px; }
h1 .l2 { color: var(--amber); }
.sub { max-width: 560px; font-size: 15px; line-height: 1.6; color: var(--amber-mid); }
.sub b { color: var(--amber); font-weight: 500; }

.logo-plate { flex: none; width: 184px; border: 1px solid var(--amber-faint); padding: 20px 16px 14px; text-align: center;
  background: rgba(255,176,0,.025); position: relative; }
.logo-plate::before { content: "◢"; position: absolute; top: -1px; left: -1px; font-size: 10px; color: var(--amber-dim); line-height: 1; }
.logo-plate::after { content: "◣"; position: absolute; bottom: -2px; right: 1px; font-size: 10px; color: var(--amber-dim); line-height: 1; }
.logo-mark { width: 80px; height: 80px; display: block; margin: 0 auto 13px; color: var(--amber); filter: drop-shadow(0 0 7px rgba(255,176,0,.28)); }
.logo-domain { font-family: var(--disp); font-weight: 700; font-size: 16px; letter-spacing: .09em; color: var(--amber); text-shadow: 0 0 10px rgba(255,176,0,.3); }
.logo-domain .tld { color: var(--amber-mid); }
.logo-tag { font-size: 9px; letter-spacing: .24em; color: var(--amber-dim); margin-top: 8px; padding-top: 8px; border-top: 1px dotted var(--amber-faint); }
@media (max-width: 680px) {
  .hero-top { flex-direction: column; align-items: flex-start; gap: 22px; }
  .logo-plate { width: auto; display: inline-flex; align-items: center; gap: 13px; text-align: left; padding: 11px 16px 11px 13px; }
  .logo-mark { width: 42px; height: 42px; margin: 0; }
  .logo-tag { display: none; }
  .logo-plate::before, .logo-plate::after { display: none; }
}

/* ----------------------------- terminal --------------------------------- */
.term { margin-top: 38px; border: 1px solid var(--amber-faint); background: var(--void-2);
  box-shadow: 0 0 0 1px rgba(255,176,0,.04), 0 30px 70px -40px #000; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--amber-faint);
  font-size: 11.5px; letter-spacing: .08em; color: var(--amber-dim); background: rgba(255,176,0,.03); }
.term-bar .blk { width: 9px; height: 9px; border: 1px solid var(--amber-dim); }
.term-bar .blk.f { background: var(--amber-dim); }
.term-bar .path { margin-left: 6px; }
.term-bar .right { margin-left: auto; color: var(--amber-faint); }

/* ----------------------------- form ------------------------------------- */
.form { padding: 24px 22px 20px; }
.fields { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.field label { display: block; font-size: 11px; letter-spacing: .18em; color: var(--amber-dim); margin-bottom: 7px; }
.inwrap { display: flex; align-items: center; border: 1px solid var(--amber-faint); background: var(--void); padding: 0 12px; }
.inwrap:focus-within { border-color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255,176,0,.25); }
.inwrap .chev { color: var(--amber-dim); font-size: 14px; margin-right: 8px; }
.input { flex: 1; background: transparent; border: none; color: var(--amber); font-family: var(--mono); font-size: 16px;
  letter-spacing: .06em; padding: 13px 0; outline: none; width: 100%; text-transform: uppercase; }
.input::placeholder { color: var(--amber-faint); }
input[type=date].input { color-scheme: dark; text-transform: none; }
.inwrap.bad { border-color: var(--red); box-shadow: inset 0 0 0 1px rgba(255,92,77,.3); }
.inwrap.select { position: relative; }
select.input { appearance: none; -webkit-appearance: none; cursor: pointer; text-transform: none; padding-right: 22px; }
select.input::-ms-expand { display: none; }
select.input option, select.input optgroup { background: var(--void); color: var(--amber); text-transform: none; }
select.input optgroup { color: var(--amber-dim); font-style: normal; font-weight: 600; }
.inwrap .caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--amber-dim); font-size: 11px; pointer-events: none; }
.run { margin-top: 18px; width: 100%; cursor: pointer; font-family: var(--disp); font-weight: 700; font-size: 15px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--void); background: var(--amber); border: 1px solid var(--amber); padding: 14px; transition: .13s;
  box-shadow: 0 0 18px -4px rgba(255,176,0,.5); }
.run:hover { background: var(--void); color: var(--amber); text-shadow: 0 0 8px rgba(255,176,0,.6); }
.run:active { transform: translateY(1px); }
.run:disabled { opacity: .7; cursor: default; }
.run.mini { width: auto; margin-top: 0; padding: 9px 15px; font-size: 12px; box-shadow: none; }
.run.ghost { background: transparent; color: var(--amber-mid); border-color: var(--amber-faint); }
.run.ghost:hover { color: var(--amber); border-color: var(--amber-dim); text-shadow: none; }
.err { font-size: 12px; color: var(--red); min-height: 15px; margin-top: 11px; letter-spacing: .03em; }
.adnote { margin-top: 12px; font-size: 12px; color: var(--amber-dim); letter-spacing: .02em; }
.adnote span { color: var(--amber-mid); }

/* ----------------------------- reports panel ---------------------------- */
.reports { border-top: 1px solid var(--amber-faint); padding: 18px 22px 22px; background: rgba(0,0,0,.18); }
.rep-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 13px; }
.rep-head .t { font-size: 11px; letter-spacing: .18em; color: var(--amber-dim); }
.rep-head .c { font-size: 12px; color: var(--amber-mid); letter-spacing: .04em; }
.rep-list { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; border: 1px solid var(--amber-faint); }
/* note-cards rendered by v2.js, styled as terminal rows */
.note-card { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-bottom: 1px dotted var(--amber-faint); cursor: pointer; transition: background .12s; }
.note-card:last-child { border-bottom: none; }
.note-card:hover { background: rgba(255,176,0,.05); }
.note-card .nc-tkr { font-family: var(--mono); font-weight: 600; color: var(--amber); width: 92px; flex: none; letter-spacing: .04em; }
.note-card .nc-date { color: var(--amber-dim); font-size: 12px; flex: none; }
.note-card .nc-rating { margin-left: auto; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; padding: 3px 9px; border: 1px solid currentColor; }
.note-card .nc-rating.bullish { color: var(--green); }
.note-card .nc-rating.bearish { color: var(--red); }
.note-card .nc-rating.neutral { color: var(--amber-mid); }
.rep-empty, .empty-list { padding: 22px 13px; text-align: center; color: var(--amber-dim); font-size: 12.5px; }
.rep-cta { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin-top: 13px; padding: 11px 14px; border: 1px solid var(--amber-faint); background: rgba(255,176,0,.03); }
.rep-cta .msg { flex: 1; min-width: 190px; font-size: 12px; color: var(--amber-mid); letter-spacing: .02em; line-height: 1.5; }
.rep-cta .msg b { color: var(--amber); font-weight: 500; }
.cta-btn { flex: none; cursor: pointer; font-family: var(--disp); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--void); background: var(--amber); border: 1px solid var(--amber); padding: 9px 15px; transition: .13s; }
.cta-btn:hover { background: var(--void); color: var(--amber); text-shadow: 0 0 8px rgba(255,176,0,.5); }
@media (max-width: 560px) { .note-card .nc-date { font-size: 11px; } .note-card .nc-tkr { width: 74px; } }

/* ----------------------------- roster ----------------------------------- */
.roster { padding: 62px 0 8px; }
.roster h2 { font-family: var(--disp); font-weight: 700; font-size: clamp(20px, 3.4vw, 28px); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 8px; }
.roster p { color: var(--amber-mid); font-size: 13.5px; max-width: 540px; margin-bottom: 26px; }
.team { margin-bottom: 22px; }
.team-h { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .18em; color: var(--amber-dim); margin-bottom: 9px; }
.team-h::after { content: ""; flex: 1; height: 1px; background: var(--amber-faint); }
.member { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--amber-faint); align-items: baseline; }
.member:last-child { border-bottom: none; }
.member .ix { color: var(--amber-dim); flex: none; }
.member .nm { color: var(--amber); flex: none; width: 175px; white-space: nowrap; }
.member .ds { color: var(--amber-mid); font-size: 12.5px; line-height: 1.5; }
.member .ds b { color: var(--amber); }

footer { margin-top: 60px; border-top: 1px solid var(--amber-faint); padding: 20px 0 44px; display: flex; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--amber-dim); letter-spacing: .04em; }
footer .l { color: var(--amber-mid); }

/* ----------------------------- ad gate ---------------------------------- */
.gate { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5,4,2,.86); }
.panel { width: 100%; max-width: 430px; border: 1px solid var(--amber); background: var(--void-2);
  box-shadow: 0 0 0 1px rgba(255,176,0,.15), 0 40px 90px -30px #000; animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--amber-faint);
  font-size: 11px; letter-spacing: .14em; color: var(--amber-dim); }
.panel-bar .x { cursor: pointer; background: none; border: none; color: var(--amber-mid); font-size: 16px; line-height: 1; padding: 2px 4px; }
.panel-bar .x:hover { color: var(--amber); }
.panel-body { padding: 22px 20px 24px; }
.adframe { border: 1px solid var(--amber-faint); margin-bottom: 16px; }
.adframe .tag { font-size: 10px; letter-spacing: .2em; color: var(--amber-dim); padding: 6px 10px; border-bottom: 1px solid var(--amber-faint); }
.ad-frame:empty { display: none; }
.ad-frame { display: flex; justify-content: center; padding: 12px 0; border-bottom: 1px solid var(--amber-faint); min-height: 0; }
.adframe .screen { aspect-ratio: 16/9; display: grid; place-items: center; text-align: center; }
.adframe .count { font-family: var(--disp); font-weight: 700; font-size: 46px; color: var(--amber); text-shadow: 0 0 16px rgba(255,176,0,.35); }
.adframe .sm { font-size: 11px; color: var(--amber-dim); letter-spacing: .06em; margin-top: 2px; }
.adframe .adstart { display: grid; place-items: center; gap: 10px; padding: 0 16px; }
.adplay { font-family: var(--disp); font-weight: 700; font-size: 15px; letter-spacing: .04em;
  color: #0a0e0a; background: var(--amber); border: none; padding: 12px 24px; cursor: pointer;
  box-shadow: 0 0 18px rgba(255,176,0,.35); transition: filter .12s ease; }
.adplay:hover { filter: brightness(1.08); }
.gmsg { font-size: 12.5px; color: var(--amber-mid); line-height: 1.55; margin-bottom: 16px; }
.gmsg b { color: var(--amber); font-weight: 500; }
.unlock { width: 100%; cursor: pointer; font-family: var(--disp); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  padding: 13px; border: 1px solid var(--amber-faint); background: transparent; color: var(--amber-faint); transition: .13s; }
.unlock:not(:disabled) { border-color: var(--green); color: var(--void); background: var(--green); box-shadow: 0 0 18px -4px rgba(84,209,122,.6); }
.unlock:not(:disabled):hover { background: var(--void); color: var(--green); text-shadow: 0 0 8px rgba(84,209,122,.6); }

/* ----------------------------- report view ------------------------------ */
/* Lift the report above the CRT scanline/vignette overlays (z 50/51) so the
   paper document reads clean — no hard scanlines on the report. */
#report { padding-top: 26px; position: relative; z-index: 52; }
.report-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.report-actions .spacer { flex: 1; }
.report-actions .status { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-mid); }
.linkbtn { font-size: 12px; letter-spacing: .04em; background: none; border: none; color: var(--amber-mid); cursor: pointer; padding: 8px 4px; border-bottom: 1px dotted var(--amber-dim); }
.linkbtn:hover { color: var(--amber); }

.note.term { margin-top: 0; position: relative; }
/* faint CRT scanlines scoped to the report (much softer than the global ones) */
.note.term::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .09;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.32) 3px, rgba(0,0,0,0) 4px);
}
.letterhead { display: flex; align-items: center; gap: 16px; padding: 22px; border-bottom: 1px solid var(--amber-faint); }
.letterhead .glyph { width: 46px; height: 46px; flex: none; color: var(--amber); filter: drop-shadow(0 0 6px rgba(255,176,0,.3)); }
.letterhead .glyph svg { width: 46px; height: 46px; }
.letterhead .lh-text .firm { font-family: var(--disp); font-weight: 700; font-size: 22px; letter-spacing: .06em; color: var(--amber); }
.letterhead .lh-text .firm .tld { color: var(--amber-mid); }
.letterhead .lh-text .kind { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-dim); margin-top: 4px; }
.letterhead .lh-meta { margin-left: auto; text-align: right; font-size: 12px; color: var(--amber-dim); }
.letterhead .lh-meta .big { font-family: var(--disp); font-weight: 700; font-size: 20px; color: var(--amber); letter-spacing: .04em; }

.note-meta { display: flex; flex-wrap: wrap; gap: 6px 26px; padding: 12px 22px; border-bottom: 1px solid var(--amber-faint); font-size: 12px; color: var(--amber-dim); letter-spacing: .03em; }
.note-meta b { color: var(--amber); font-weight: 600; }

.desks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 22px; border-bottom: 1px solid var(--amber-faint); }
.desk { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--amber-dim); display: flex; align-items: center; gap: 7px; }
.desk .lamp { width: 8px; height: 8px; border: 1px solid var(--amber-dim); }
.desk.in_progress .lamp { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: beat 1s infinite; }
.desk.in_progress { color: var(--amber); }
.desk.completed .lamp { background: var(--green); border-color: var(--green); box-shadow: 0 0 6px rgba(84,209,122,.5); }
.desk.completed { color: var(--amber-mid); }

.progress-line { padding: 12px 22px; font-size: 12px; color: var(--amber-mid); border-bottom: 1px solid var(--amber-faint); letter-spacing: .02em; }
.progress-bar { height: 3px; background: var(--amber-faint); margin-top: 9px; }
.progress-bar > i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .3s linear; box-shadow: 0 0 8px rgba(255,176,0,.5); }
.prog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.prog-pct { font-family: var(--disp); font-weight: 700; font-size: 30px; color: var(--amber); letter-spacing: .03em; text-shadow: 0 0 12px rgba(255,176,0,.3); }
.prog-eta { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-dim); }

/* report section nav: fixed sidebar on wide screens, sticky top bar otherwise */
.report-nav.hidden { display: none; }
.rn-item { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; line-height: 1;
  color: var(--amber-mid); background: var(--void-2); border: 1px solid var(--amber-faint);
  padding: 8px 11px; cursor: pointer; white-space: nowrap; transition: .12s; }
.rn-item:hover, .rn-item.active { color: var(--void); background: var(--amber); border-color: var(--amber); }
.rn-item.lead { border-color: var(--amber-dim); color: var(--amber); font-weight: 600; }
.rn-item.lead.active { color: var(--void); }
@media (min-width: 1240px) {
  .report-nav { position: fixed; z-index: 60; right: 18px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 6px; max-height: 84vh; overflow-y: auto; }
  .rn-item { text-align: right; }
}
@media (max-width: 1239px) {
  .report-nav { position: sticky; top: 0; z-index: 60; display: flex; gap: 6px; overflow-x: auto;
    padding: 8px 0; margin-bottom: 4px; background: var(--void); border-bottom: 1px solid var(--amber-faint);
    -webkit-overflow-scrolling: touch; }
  .report-nav::-webkit-scrollbar { height: 0; }
}

/* verdict */
.verdict-wrap { padding: 22px; border-bottom: 1px solid var(--amber-faint); }
.rep-verdict { text-align: center; padding: 2px 0 14px; }
.rep-verdict .lab { font-size: 10px; letter-spacing: .2em; color: var(--amber-dim); }
.stamp { display: inline-block; margin-top: 6px; }
.stamp .big { font-family: var(--disp); font-weight: 700; font-size: 34px; letter-spacing: .04em; color: var(--amber-mid); }
.stamp.bullish .big { color: var(--green); text-shadow: 0 0 16px rgba(84,209,122,.3); }
.stamp.bearish .big { color: var(--red); text-shadow: 0 0 16px rgba(255,92,77,.3); }
.stamp.neutral .big { color: var(--amber-mid); }
.signatures { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; margin-top: 6px; }
.sig { text-align: center; }
.sig .ink { display: block; font-family: var(--disp); font-weight: 700; font-size: 13px; color: var(--amber); letter-spacing: .04em; }
.sig .role { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-dim); }

/* report body rendered as a readable "PDF" page: dark ink on warm paper, with a
   tiled DeltaBias.Com watermark — long documents stay legible. */
.note-body { position: relative; padding: 0; background: #f4eed9; }
.note-body::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='330'%20height='190'%3E%3Ctext%20x='165'%20y='105'%20fill='%231c1408'%20fill-opacity='0.063'%20font-family='monospace'%20font-size='23'%20font-weight='700'%20text-anchor='middle'%20transform='rotate(-26%20165%20105)'%3EDeltaBias.Com%3C/text%3E%3C/svg%3E");
  background-size: 792px 456px;
}
.note-body > * { position: relative; z-index: 1; }
.note-body .md { font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.85; color: #211a0e; }
.note-body .md h1, .note-body .md h2, .note-body .md h3 { font-family: var(--disp); color: #2f2407; text-transform: uppercase; letter-spacing: .01em; text-shadow: none; }
.note-body .md h1 { font-size: 19px; border-bottom: 1px solid #cdbb8e; padding-bottom: 6px; margin: 2px 0 12px; }
.note-body .md h2 { font-size: 16px; border-bottom: 1px dotted #cdbb8e; padding-bottom: 4px; margin: 22px 0 10px; }
.note-body .md h3 { font-size: 14.5px; margin: 16px 0 7px; }
.note-body .md strong, .note-body .md b { color: #1c1408; font-weight: 700; }
.note-body .md a { color: #8a6516; border-bottom: 1px dotted #8a6516; }
.note-body .md code { font-family: var(--mono); background: #e6dcbf; color: #5a4410; padding: 1px 5px; }
.note-body .md pre { font-family: var(--mono); background: #ece2c6; border: 1px solid #cdbb8e; color: #2a2008; padding: 11px; overflow-x: auto; font-size: 12.5px; }
.note-body .md table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 13px; }
.note-body .md th, .note-body .md td { border: 1px solid #cdbb8e; padding: 6px 10px; text-align: left; }
.note-body .md th { color: #2f2407; background: #e6dcbf; }
.note-body .md blockquote { border-left: 3px solid #b8941f; margin: 10px 0; padding: 3px 14px; color: #5a4c26; }
.note-body .md ul, .note-body .md ol { padding-left: 22px; }

.note-section { position: relative; padding: 26px 30px; border-bottom: 1px solid #cdbb8e; }
.note-section:last-child { border-bottom: none; }
.note-section > h2 { font-family: var(--disp); font-size: 16px; text-transform: uppercase; color: #2f2407; margin: 0 0 10px; border-bottom: 1px dotted #cdbb8e; padding-bottom: 5px; }
.note-section .pending { font-family: var(--mono); font-size: 12.5px; color: #7a6a3e; }
.note-section .pending::after { content: "_"; animation: blink 1s steps(1) infinite; }

/* the Portfolio Manager Decision leads the document, boxed + highlighted */
.note-section.lead { margin: 16px; padding: 22px 26px; background: #fbf6e6; border: 2px solid #b8941f; box-shadow: inset 0 0 0 4px rgba(184,148,31,.08); }
.note-section.lead::before { content: "\25A3  PRIMARY \00B7 THE DESK VERDICT"; display: block; font-family: var(--disp); font-size: 10px; letter-spacing: .18em; color: #8a6516; margin-bottom: 10px; }
.note-section.lead > h2 { color: #1c1408; font-size: 18px; border-bottom-color: #b8941f; }

.note-disc { padding: 18px 22px 0; font-size: 10.5px; color: var(--amber-faint); line-height: 1.6; letter-spacing: .02em; }
.worklog-toggle { padding: 8px 22px 0; }
.worklog { margin: 10px 22px 0; max-height: 0; overflow: hidden; transition: max-height .3s; font-size: 12px; color: var(--amber-mid);
  background: #000; border: 1px solid var(--amber-faint); }
.worklog.open { max-height: 240px; overflow-y: auto; padding: 11px 13px; }
.worklog .l { white-space: pre-wrap; word-break: break-word; }
.worklog .l .tg { color: var(--amber-dim); }

@media (max-width: 600px) {
  .fields { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 22px; }
  .statusbar .howto { display: none; }
  .member .nm { width: auto; white-space: normal; }
  .member { flex-wrap: wrap; gap: 4px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .cur { opacity: 1; }
}
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ----------------------------- back to top ------------------------------ */
.backtop {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; cursor: pointer;
  font-family: var(--disp); font-weight: 700; font-size: 11px; letter-spacing: .12em;
  color: var(--void); background: var(--amber); border: 1px solid var(--amber); padding: 9px 12px;
  box-shadow: 0 0 18px -4px rgba(255,176,0,.55);
}
.backtop:hover { background: var(--void); color: var(--amber); text-shadow: 0 0 8px rgba(255,176,0,.6); }

/* ----------------------------- ad-blocker warning ----------------------- */
.adblock-warn { text-align: center; }
.abw-title { font-family: var(--disp); font-weight: 700; color: var(--red); letter-spacing: .12em; margin-bottom: 10px; }
.adblock-warn p { font-size: 12.5px; color: var(--amber-mid); line-height: 1.6; margin-bottom: 16px; }

/* ----------------------------- sign in ---------------------------------- */
.sso {
  width: 100%; display: block; text-align: center; cursor: pointer; margin-top: 10px; padding: 13px;
  font-family: var(--mono); font-size: 13.5px; letter-spacing: .03em; color: var(--amber);
  background: var(--void); border: 1px solid var(--amber-faint); transition: .12s;
}
.sso:hover { border-color: var(--amber); }
.sso-google { border-left: 3px solid #4285F4; }
.sso-apple { border-left: 3px solid #d9d9d9; }
.sso-email { border-left: 3px solid var(--amber-dim); }
.sso-note { margin-top: 14px; font-size: 12px; color: var(--green); min-height: 14px; letter-spacing: .02em; }

@media print {
  body { background: #fff; color: #000; }
  body::before, body::after, .statusbar, .tape, .report-actions, .desks, .progress-line, .worklog, .worklog-toggle, #adwall, .backtop, .report-nav { display: none !important; }
  .note.term { border: none; box-shadow: none; }
  .note-body { background: #fff; }
  .note-body::before { opacity: .5; }
}
