/* ───────────────────────── The Market Calendar ───────────────────────── */
:root {
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: 'Share Tech Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace; /* display face: terminal-style headings */
  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07090d;
  --bg-2: #0b0e14;
  --panel: #0f131b;
  --panel-2: #141924;
  --panel-3: #1a2030;
  --line: rgba(255, 255, 255, .065);
  --line-2: rgba(255, 255, 255, .11);
  --text: #e8ebf1;
  --text-2: #b4bccb;
  --muted: #7d8699;
  --faint: #4d5566;
  --gold: #d9b46a;
  --gold-2: #f1d595;
  --accent: #7aa2ff;
  --bull: #22c581;
  --bear: #f0475e;
  --watch: #f5b83d;
  --bull-rgb: 34, 197, 129;
  --bear-rgb: 240, 71, 94;
  --cell-empty: rgba(255, 255, 255, .025);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .35);
  --glow: 0 0 0 1px rgba(217, 180, 106, .5), 0 0 18px rgba(217, 180, 106, .35);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f7;
  --bg-2: #eceef3;
  --panel: #ffffff;
  --panel-2: #f7f8fb;
  --panel-3: #eef0f5;
  --line: rgba(14, 20, 34, .08);
  --line-2: rgba(14, 20, 34, .14);
  --text: #121723;
  --text-2: #3b4456;
  --muted: #6b7486;
  --faint: #a3aab8;
  --gold: #a87a26;
  --gold-2: #8a6119;
  --accent: #3461e0;
  --bull: #0f9f63;
  --bear: #dc2f4a;
  --watch: #c98a06;
  --bull-rgb: 15, 159, 99;
  --bear-rgb: 220, 47, 74;
  --cell-empty: rgba(14, 20, 34, .03);
  --shadow: 0 20px 50px -24px rgba(20, 30, 50, .35), 0 2px 6px rgba(20, 30, 50, .08);
  --glow: 0 0 0 1px rgba(168, 122, 38, .6), 0 0 14px rgba(168, 122, 38, .3);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01', 'tnum';
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(122, 162, 255, .07), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(217, 180, 106, .06), transparent 60%);
  z-index: 0;
}
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
kbd {
  font-family: var(--mono); font-size: 10px; line-height: 1;
  padding: 3px 5px; border-radius: 5px;
  border: 1px solid var(--line-2); color: var(--muted); background: var(--panel-2);
}
.mono { font-family: var(--mono); font-feature-settings: 'tnum', 'zero'; }
.up { color: var(--bull); }
.dn { color: var(--bear); }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 400; }

.app { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* ── Top bar ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand-mark .bm-bull { fill: var(--bull); }
.brand-mark .bm-bear { fill: var(--bear); }
.brand-mark .bm-dim { fill: var(--faint); }
.brand-name { letter-spacing: -.02em; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1; white-space: nowrap; }
.brand-sub { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; }

.tabs {
  display: flex; gap: 2px; padding: 3px; margin-left: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
}
.tabs button {
  border: 0; background: none; padding: 7px 13px; border-radius: 8px;
  color: var(--muted); font-weight: 500; font-size: 13px;
  display: flex; align-items: center; gap: 8px; transition: color .15s, background .15s;
}
.tabs button kbd { opacity: 0; transition: opacity .15s; padding: 2px 4px; }
.tabs button:hover { color: var(--text); }
.tabs button:hover kbd { opacity: .8; }
.tabs button.active { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.year-switch {
  display: flex; align-items: center; height: 34px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
}
.year-switch button { border: 0; background: none; width: 28px; height: 100%; color: var(--muted); font-size: 16px; }
.year-switch button:hover { color: var(--text); }
.year-switch span { font-family: var(--mono); font-weight: 600; font-size: 13px; min-width: 40px; text-align: center; }
.search-btn {
  height: 34px; display: flex; align-items: center; gap: 8px;
  padding: 0 8px 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px;
}
.search-btn:hover { border-color: var(--line-2); color: var(--text-2); }
.search-btn svg, .icon-btn svg, .palette-input svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.search-btn span { min-width: 110px; text-align: left; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--muted);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }

/* ── Status bar ─────────────────────────────────────── */
.statusbar {
  display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none;
  padding: 0 24px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  font-size: 12px; white-space: nowrap;
}
.statusbar::-webkit-scrollbar { display: none; }
.sb-item { display: flex; align-items: center; gap: 8px; padding: 9px 18px 9px 0; margin-right: 18px; border-right: 1px solid var(--line); }
.sb-item:last-child { border-right: 0; }
.sb-label { color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: 10px; }
.sb-val { font-family: var(--mono); font-weight: 500; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bull); box-shadow: 0 0 0 0 rgba(var(--bull-rgb), .6); animation: pulse 2s infinite; }
.live-dot.closed { background: var(--muted); animation: none; }
.live-dot.offline { background: var(--watch); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--bull-rgb), .55); } 70% { box-shadow: 0 0 0 7px rgba(var(--bull-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--bull-rgb), 0); } }
.sb-btn { border: 1px solid var(--line-2); background: var(--panel); border-radius: 7px; padding: 3px 8px; font-size: 11px; color: var(--text-2); }
.sb-btn:hover { color: var(--text); }
.ds-select { display: flex; align-items: center; gap: 6px; }
.ds-select select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line-2); background: var(--panel);
  border-radius: 7px; padding: 3px 22px 3px 8px; font-size: 12px; font-weight: 600;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 11px) 50%, calc(100% - 7px) 50%; background-size: 4px 4px; background-repeat: no-repeat;
}

/* ── Layout ─────────────────────────────────────────── */
.layout {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px;
  padding: 20px 24px 8px; align-items: start;
}
.main { min-width: 0; }
.brief { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 128px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px; }
.brief > * { flex: none; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 24px 22px; color: var(--faint); font-size: 11.5px; }

.card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 100%, transparent), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset;
}
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 0; }
.card-note { font-size: 12px; color: var(--muted); }

.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 2px 0 16px; flex-wrap: wrap; }
.view-head h1 { letter-spacing: -.02em; font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1; margin: 0; }
.view-head h1 em { color: var(--gold); }
.view-head .sub { margin: 8px 0 0; color: var(--muted); font-size: 13px; max-width: 640px; }
.view-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel);
  color: var(--muted); font-size: 12px; font-weight: 500; transition: all .15s;
  user-select: none;
}
.chip:hover { color: var(--text); }
.chip.on { color: var(--text); background: var(--panel-3); border-color: color-mix(in srgb, var(--gold) 45%, var(--line-2)); }
.chip .sw { width: 9px; height: 9px; border-radius: 3px; }
.chip.small { height: 24px; padding: 0 9px; font-size: 11px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; }
.seg button { border: 0; background: none; border-radius: 7px; padding: 5px 10px; font-size: 12px; color: var(--muted); font-weight: 500; }
.seg button.on { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ── Heatmap ─────────────────────────────────────────── */
.hm-wrap { padding: 14px; overflow-x: auto; }
.hm {
  display: grid;
  grid-template-columns: 38px repeat(12, minmax(56px, 1fr)) 60px;
  grid-auto-rows: 25px;
  gap: 2px;
  min-width: 860px;
  position: relative;
  user-select: none;
}
.hm .h { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.hm .h.cur { color: var(--gold); }
.hm .dl { display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.hm .dl.cur { color: var(--gold); font-weight: 700; }
.c {
  position: relative; display: flex; align-items: center; justify-content: center;
  border-radius: 5px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: -.2px;
  background: var(--c, var(--cell-empty)); color: var(--ct, var(--text));
  cursor: pointer; transition: transform .08s, box-shadow .12s;
}
.c:hover { box-shadow: 0 0 0 1.5px var(--text); z-index: 3; }
.c.nil { background: repeating-linear-gradient(135deg, var(--cell-empty) 0 4px, transparent 4px 8px); cursor: default; color: var(--faint); font-size: 9px; }
.c.void { background: transparent; cursor: default; }
.c.nil:hover, .c.void:hover { box-shadow: none; }
.c.today { box-shadow: var(--glow); z-index: 4; }
.c.today::after { content: ''; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.c.sel { box-shadow: 0 0 0 2px var(--accent); z-index: 4; }
.c.brush { box-shadow: 0 0 0 2px var(--accent) inset; filter: brightness(1.15); }
.c .nd { position: absolute; left: 3px; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.c .lv { position: absolute; right: 3px; bottom: 3px; width: 4px; height: 4px; border-radius: 1px; background: var(--gold); opacity: .9; }
.c.flash { animation: flash 1.6s var(--ease) 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 2px var(--gold), 0 0 22px var(--gold); } }
.hm .ra, .hm .fa { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10.5px; border-radius: 5px; }
.hm .ra { color: var(--text-2); background: var(--panel-2); }
.hm .fl { display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.hm .fa { background: var(--panel-2); font-weight: 600; }
.hm .sep { grid-column: 1 / -1; height: 1px; background: var(--line); align-self: center; }

.hm-stack { position: relative; min-width: 860px; }
.hm-ov { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.ov { position: relative; pointer-events: none; border-radius: 7px; z-index: 5; margin: -2px; }
.ov.auto.bull { border: 1.5px dashed rgba(var(--bull-rgb), .9); background: rgba(var(--bull-rgb), .05); }
.ov.auto.bear { border: 1.5px dashed rgba(var(--bear-rgb), .95); background: rgba(var(--bear-rgb), .05); }
.ov.mark { border: 2.5px solid var(--text); box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 6px 20px rgba(0,0,0,.35); }
.ov.mark.bull { border-color: var(--bull); }
.ov.mark.bear { border-color: var(--bear); }
.ov.mark.watch { border-color: var(--watch); }
.ov-tag {
  position: absolute; top: -9px; left: 4px; max-width: 170px; z-index: 2;
  font-family: var(--font); font-size: 9.5px; font-weight: 700; letter-spacing: .3px;
  padding: 1px 6px; border-radius: 5px; color: #0b0d12; background: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ov.bull .ov-tag { background: var(--bull); }
.ov.bear .ov-tag { background: var(--bear); color: #fff; }
.ov.watch .ov-tag { background: var(--watch); }

.legend { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
.legend .bar { width: 160px; height: 8px; border-radius: 99px; }
.hm-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 16px 14px; flex-wrap: wrap; }
.hm-hint { font-size: 11.5px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.hm-hint b { color: var(--text-2); font-weight: 600; }

/* ── KPI tiles ─────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; }
.kpi .k-label { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.kpi .k-val { font-family: var(--mono); font-size: 22px; font-weight: 600; margin-top: 6px; letter-spacing: -.5px; }
.kpi .k-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ── Desk calendar ─────────────────────────────────── */
.mon { padding: 14px 14px 12px; }
.mon.cur { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.mon-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mon-name { letter-spacing: -.02em; font-family: var(--serif); font-size: 18px; line-height: 1; }
.mon-stat { font-family: var(--mono); font-size: 11.5px; }
.mon-stat .muted { font-family: var(--font); font-size: 10.5px; margin-left: 4px; }
.mon-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mon-grid .wd { text-align: center; font-size: 9.5px; letter-spacing: .8px; color: var(--faint); font-weight: 600; padding-bottom: 3px; }
.dc {
  position: relative; aspect-ratio: 1 / .92; border-radius: 6px; border: 0;
  background: var(--c, var(--cell-empty)); color: var(--ct, var(--text));
  display: flex; flex-direction: column; justify-content: space-between; padding: 3px 4px;
  font-size: 10px; text-align: left; min-width: 0;
}
.dc .dn { font-weight: 600; font-size: 10.5px; line-height: 1; }
.dc .dv { font-family: var(--mono); font-size: 8.5px; opacity: .9; line-height: 1; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; }
.dc:hover { box-shadow: 0 0 0 1.5px var(--text); z-index: 2; }
.dc.we { background: transparent; color: var(--faint); cursor: default; }
.dc.we:hover, .dc.blank:hover { box-shadow: none; }
.dc.blank { background: transparent; cursor: default; }
.dc.hol { background: repeating-linear-gradient(135deg, var(--cell-empty) 0 3px, transparent 3px 6px); color: var(--muted); }
.dc.today { box-shadow: var(--glow); z-index: 3; }
.dc.sel { box-shadow: 0 0 0 2px var(--accent); z-index: 3; }
.dc .dots { position: absolute; top: 3px; right: 3px; display: flex; gap: 2px; }
.dc .dots i { width: 4px; height: 4px; border-radius: 50%; }
.dc .sb { position: absolute; left: 2px; right: 2px; bottom: -3px; height: 2.5px; border-radius: 2px; }
.dc .sb.bull { background: var(--bull); }
.dc .sb.bear { background: var(--bear); }
.dc .sb.watch { background: var(--watch); }
.i-fomc { background: #b18cff; }
.i-opex { background: var(--accent); }
.i-note { background: var(--gold); }
.i-hol { background: var(--muted); }
.i-qe { background: #3ccfe0; }
.desk-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--muted); }
.desk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.desk-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.desk-legend b { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }


/* ── Desk calendar · single month ──────────────────── */
.mh { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 14px; }
.mh-left { display: flex; align-items: center; gap: 14px; }
.mh-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); font-size: 22px; line-height: 1; display: grid; place-items: center; transition: all .15s; }
.mh-arrow:hover { color: var(--text); border-color: var(--gold); transform: scale(1.04); }
.mh-title { min-width: 210px; text-align: center; }
.mh-month { letter-spacing: -.03em; font-family: var(--serif); font-size: 49px; line-height: .95; }
.mh-year { font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.ystrip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.ys { border: 1px solid var(--line); border-radius: 9px; padding: 6px 4px 5px; background: var(--c, var(--panel)); color: var(--ct, var(--text)); display: flex; flex-direction: column; align-items: center; gap: 1px; transition: transform .12s; position: relative; }
.ys span { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.ys b { font-family: var(--mono); font-size: 10px; font-weight: 500; opacity: .85; }
.ys:hover { transform: translateY(-1px); border-color: var(--line-2); }
.ys.on { outline: 2px solid var(--text); outline-offset: 1px; }
.ys.now::after { content: ''; position: absolute; top: 4px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.month-card { padding: 12px; }
.mw { display: grid; grid-template-columns: .62fr repeat(5, minmax(0, 1fr)) .62fr; gap: 6px; margin-bottom: 6px; }
.mw-head > div { text-align: center; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 4px 0 2px; }
.mw-head > div.we { color: var(--faint); }
.dl-short { display: none; }
.mc {
  position: relative; min-height: 138px; border-radius: 12px; padding: 10px 11px 9px;
  background: var(--c, var(--panel-2)); color: var(--ct, var(--text)); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; user-select: none;
  transition: transform .12s var(--ease), box-shadow .15s;
}
.mc:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(0,0,0,.6), 0 0 0 1.5px var(--text); z-index: 3; }
.mc.out { background: transparent; border: 0; cursor: default; }
.mc.out:hover, .mc.we:hover { transform: none; box-shadow: none; }
.mc.we { background: transparent; border: 1px dashed var(--line); color: var(--faint); cursor: pointer; }
.mc.hol { background: repeating-linear-gradient(135deg, var(--cell-empty) 0 6px, transparent 6px 12px); color: var(--muted); }
.mc-closed { margin-top: auto; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.mc-hn { font-size: 11.5px; }
.mc-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mc-d { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.mc-v { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: -.8px; line-height: 1.1; margin-top: 4px; }
.mc-sub { font-size: 10.5px; opacity: .72; font-family: var(--mono); }
.mc-flag { font-size: 9.5px; font-weight: 700; letter-spacing: .3px; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--panel) 72%, transparent); white-space: nowrap; }
.mc-today { font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px; padding: 2px 7px; border-radius: 6px; background: var(--gold); color: #17130a; }
.mc.today { border-color: var(--gold); box-shadow: var(--glow); z-index: 2; }
.mc.sel { outline: 2px solid var(--accent); outline-offset: 1px; }
.mc.brush { outline: 2px solid var(--accent); outline-offset: -2px; filter: brightness(1.12); }
.mc-evs { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; padding-top: 6px; }
.mc-ev { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 6px; color: var(--text); background: color-mix(in srgb, var(--panel) 78%, transparent); border: 1px solid transparent; white-space: nowrap; }
.mc-ev i { width: 6px; height: 6px; border-radius: 50%; background: var(--e); flex: none; }
.mc-ev.high { border-color: var(--e); }
.mc-ev em { font-style: normal; opacity: .65; font-family: var(--mono); font-weight: 500; }
.mc-ev.more { color: var(--muted); }
.mc-act { display: flex; align-items: center; gap: 6px; font-size: 10.5px; margin-top: 5px; padding: 3px 7px; border-radius: 7px; background: color-mix(in srgb, var(--panel) 78%, transparent); color: var(--text); }
.mc-act span { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.mc-act b { font-family: var(--mono); font-weight: 600; }
.mc-act i { margin-left: auto; font-style: normal; font-weight: 800; font-size: 10px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; }
.mc-act i.ok { background: rgba(var(--bull-rgb), .2); color: var(--bull); }
.mc-act i.no { background: rgba(var(--bear-rgb), .2); color: var(--bear); }
.mc-act .live-dot { width: 6px; height: 6px; }
.mc-note { position: absolute; right: 9px; bottom: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--panel) 60%, transparent); }

.month-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 4px 2px; }
.imp { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--gold); margin-left: 4px; }

.acc-big { display: flex; gap: 18px; align-items: center; }
.acc-ring { --p: 50; width: 112px; height: 112px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--panel-3) 0); position: relative; }
.acc-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--panel); }
.acc-ring span { position: relative; font-family: var(--mono); font-size: 24px; font-weight: 700; }
.acc-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; min-width: 0; }
.acc-parts > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.acc-parts span { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.acc-parts b { font-family: var(--mono); font-size: 16px; margin-top: 2px; }
.acc-parts small { font-size: 10.5px; color: var(--muted); }
.acc-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; margin-top: 16px; }
.am { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.am-bar { width: 100%; height: 54px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); display: flex; align-items: flex-end; overflow: hidden; }
.am-bar div { width: 100%; border-radius: 4px 4px 0 0; opacity: .85; }
.am span { font-size: 10px; color: var(--muted); font-weight: 600; }
.am.on span { color: var(--gold); }
.am.on .am-bar { border-color: var(--gold); }

@media (max-width: 900px) {
  .mh-month { font-size: 40px; }
  .mh-title { min-width: 0; }
  .ystrip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mw { grid-template-columns: .25fr repeat(5, minmax(0, 1fr)) .25fr; gap: 3px; }
  .mc { min-height: 96px; padding: 6px; border-radius: 8px; }
  .mc.we > *, .mw-head .we { visibility: hidden; }
  .mc-v { font-size: 14px; }
  .mc-sub, .mc-flag, .mc-act span { display: none; }
  .mc-ev { font-size: 8.5px; padding: 1px 4px; }
  .mc-ev em { display: none; }
  .dl-long { display: none; }
  .dl-short { display: inline; }
  .mw-head > div { letter-spacing: .5px; font-size: 9.5px; }
  .mc-act { padding: 2px 4px; font-size: 9px; }
  .mc-act i { width: 12px; height: 12px; font-size: 8px; }
  .mc-act b { overflow: hidden; }
  .mc-today { font-size: 0; padding: 0; width: 7px; height: 7px; border-radius: 50%; }
  .mc-d { font-size: 12px; }
  .acc-big { flex-direction: column; align-items: stretch; }
  .acc-ring { margin: 0 auto; }
}

/* ── Analytics ─────────────────────────────────────── */
.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.an-grid .span2 { grid-column: 1 / -1; }
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.chart .grid line { stroke: var(--line); }
.chart .zero { stroke: var(--line-2); }
.rank-list { display: grid; gap: 4px; }
.rank-row { display: grid; grid-template-columns: 20px 1fr auto 70px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.rank-row:hover { background: var(--panel-2); }
.rank-row .rn { font-family: var(--mono); color: var(--faint); font-size: 11px; }
.rank-row .rb { height: 6px; border-radius: 3px; }
.rank-row .rv { font-family: var(--mono); text-align: right; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.slider-row { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
input[type="range"] { accent-color: var(--gold); }
.win-list { display: grid; gap: 6px; }
.win { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; cursor: pointer; }
.win:hover { border-color: var(--line-2); }
.win .wv { font-family: var(--mono); font-weight: 600; }
.win button { border: 0; background: none; color: var(--muted); font-size: 11px; padding: 2px 6px; border-radius: 6px; }
.win button:hover { color: var(--text); background: var(--panel-3); }

/* ── Brief (right rail) ────────────────────────────── */
.br-hero { padding: 18px; position: relative; overflow: hidden; }
.br-hero::after {
  content: ''; position: absolute; inset: auto -40px -60px auto; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow, rgba(217, 180, 106, .18)), transparent 70%);
  pointer-events: none;
}
.br-greet { letter-spacing: -.02em; font-family: var(--serif); font-size: 21px; line-height: 1.05; }
.br-date { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.br-big { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 18px; gap: 10px; }
.br-big .lbl { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.br-big .val { font-family: var(--mono); font-size: 36px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.05; margin-top: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .3px; border: 1px solid var(--line-2); background: var(--panel-2); white-space: nowrap; }
.pill.bull { color: var(--bull); border-color: rgba(var(--bull-rgb), .35); background: rgba(var(--bull-rgb), .1); }
.pill.bear { color: var(--bear); border-color: rgba(var(--bear-rgb), .35); background: rgba(var(--bear-rgb), .1); }
.pill.watch { color: var(--watch); border-color: color-mix(in srgb, var(--watch) 40%, transparent); background: color-mix(in srgb, var(--watch) 12%, transparent); }
.pill.neutral { color: var(--text-2); }
.br-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.br-meta > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.br-meta .t { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.br-meta .v { font-family: var(--mono); font-weight: 600; font-size: 13px; margin-top: 2px; }
.live-box { margin-top: 14px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel-2); display: flex; align-items: center; gap: 12px; }
.live-box .lb-t { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.live-box .lb-v { font-family: var(--mono); font-weight: 600; font-size: 15px; margin-top: 2px; }
.live-box svg { flex: 1; height: 34px; }

.horizon { display: grid; gap: 10px; }
.hz { display: grid; grid-template-columns: 82px 1fr 64px; align-items: center; gap: 10px; font-size: 12px; }
.hz .hz-l { color: var(--text-2); }
.hz .hz-l small { display: block; color: var(--muted); font-size: 10.5px; }
.hz .track { position: relative; height: 8px; background: var(--panel-3); border-radius: 99px; overflow: hidden; }
.hz .track::before { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line-2); }
.hz .fill { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.hz .hz-v { font-family: var(--mono); text-align: right; font-weight: 600; }

.regime { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; }
.regime + .regime { margin-top: 8px; }
.regime:hover { border-color: var(--line-2); }
.regime .rg-bar { width: 4px; align-self: stretch; border-radius: 4px; }
.regime .rg-t { font-weight: 600; font-size: 13px; }
.regime .rg-s { color: var(--muted); font-size: 12px; margin-top: 2px; }

.ev-list { display: grid; gap: 2px; }
.ev { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.ev:hover { background: var(--panel-2); }
.ev .ev-d { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ev .ev-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ev .ev-n span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .ev-n i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ev .ev-v { font-family: var(--mono); font-size: 11.5px; }
.quick-note { display: flex; gap: 8px; margin-top: 12px; }
.quick-note input { flex: 1; min-width: 0; height: 34px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); outline: none; font-size: 12.5px; }
.quick-note input:focus { border-color: var(--accent); }
.btn {
  height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--panel-2); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { opacity: .9; }
.btn.gold { background: var(--gold); color: #17130a; border-color: var(--gold); }
.btn.bull { background: rgba(var(--bull-rgb), .14); color: var(--bull); border-color: rgba(var(--bull-rgb), .4); }
.btn.bear { background: rgba(var(--bear-rgb), .14); color: var(--bear); border-color: rgba(var(--bear-rgb), .4); }
.btn.watch { background: color-mix(in srgb, var(--watch) 14%, transparent); color: var(--watch); border-color: color-mix(in srgb, var(--watch) 40%, transparent); }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 11.5px; }
.note-mini { padding: 9px 11px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; }
.note-mini + .note-mini { margin-top: 6px; }
.note-mini .nm-h { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.change-log { display: grid; gap: 6px; font-size: 12px; }
.change-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px dashed var(--line); cursor: pointer; }
.change-row:last-child { border-bottom: 0; }
.change-row .cr-d { font-family: var(--mono); color: var(--muted); font-size: 11px; }
.change-row .cr-v { font-family: var(--mono); font-size: 11.5px; }

/* ── Drawer ─────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(3, 5, 9, .55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 60; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); z-index: 61;
  background: var(--panel); border-left: 1px solid var(--line-2); box-shadow: var(--shadow);
  transform: translateX(104%); transition: transform .32s var(--ease); overflow-y: auto;
}
.drawer.open { transform: none; }
.dr-head { position: sticky; top: 0; z-index: 2; padding: 18px 22px 14px; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.dr-head .dr-title { flex: 1; min-width: 0; }
.dr-head .dr-dow { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.dr-head .dr-date { letter-spacing: -.02em; font-family: var(--serif); font-size: 22px; line-height: 1.05; }
.dr-body { padding: 18px 22px 40px; display: grid; gap: 18px; }
.dr-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dr-hero .val { font-family: var(--mono); font-size: 44px; font-weight: 600; letter-spacing: -1.5px; line-height: 1; }
.dr-hero .lbl { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-grid > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.stat-grid .t { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.stat-grid .v { font-family: var(--mono); font-size: 14px; font-weight: 600; margin-top: 3px; }
.section-t { font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.tagrow { display: flex; gap: 6px; flex-wrap: wrap; }
.editor textarea { width: 100%; min-height: 96px; resize: vertical; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel-2); padding: 11px 12px; outline: none; line-height: 1.5; font-size: 13px; }
.editor textarea:focus { border-color: var(--accent); }
.editor .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.check input { accent-color: var(--gold); }
.note-card { padding: 12px 13px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.note-card + .note-card { margin-top: 8px; }
.note-card .nc-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 11.5px; color: var(--muted); }
.note-card .nc-t { white-space: pre-wrap; font-size: 13px; }
.note-card .nc-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: 10.5px; padding: 2px 7px; border-radius: 6px; background: var(--panel-3); color: var(--text-2); border: 1px solid var(--line); }
.nc-actions { display: flex; gap: 2px; }
.nc-actions button { border: 0; background: none; color: var(--muted); font-size: 11.5px; padding: 3px 6px; border-radius: 6px; }
.nc-actions button:hover { color: var(--text); background: var(--panel-3); }
.ev-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.ev-chip i { width: 7px; height: 7px; border-radius: 50%; }

/* ── Modals ─────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding: 10vh 16px 16px; background: rgba(3, 5, 9, .55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .18s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card { width: min(640px, 100%); max-height: 80vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); transform: translateY(8px) scale(.985); transition: transform .2s var(--ease); }
.modal.open .modal-card { transform: none; }
.palette-card { width: min(600px, 100%); overflow: hidden; display: flex; flex-direction: column; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-input input { flex: 1; border: 0; background: none; outline: none; font-size: 15px; color: var(--text); }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.pi { display: flex; align-items: center; gap: 12px; padding: 9px 11px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.pi.on { background: var(--panel-3); }
.pi .pi-k { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); width: 58px; flex: none; }
.pi .pi-t { flex: 1; min-width: 0; }
.pi .pi-v { font-family: var(--mono); font-size: 12px; }
.set-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.set-head h2 { letter-spacing: -.02em; font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0; }
.set-body { padding: 8px 22px 22px; }
.set-sec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.set-sec:last-child { border-bottom: 0; }
.set-sec h3 { font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 7px 0; font-size: 13px; }
.set-row .sr-d { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.set-row input[type="range"] { width: 160px; }
.set-row .rv { font-family: var(--mono); font-size: 12px; min-width: 46px; text-align: right; }
.text-in { height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); outline: none; font-size: 12.5px; }
.text-in:focus { border-color: var(--accent); }
.ds-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 6px; font-size: 12.5px; }

/* ── Selection bar ─────────────────────────────────── */
.selbar {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 50;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  transition: transform .28s var(--ease); max-width: calc(100vw - 24px); flex-wrap: wrap;
}
.selbar.open { transform: translate(-50%, 0); }
.selbar .sl-range { font-weight: 600; font-size: 13px; white-space: nowrap; }
.selbar .sl-stats { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.selbar input { height: 30px; width: 150px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); outline: none; font-size: 12.5px; }

/* ── Tooltip / toast ───────────────────────────────── */
.tip {
  position: fixed; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .1s;
  background: color-mix(in srgb, var(--panel-3) 96%, transparent); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 9px 11px; font-size: 12px; box-shadow: var(--shadow); max-width: 280px; backdrop-filter: blur(8px);
}
.tip.show { opacity: 1; }
.tip .tt { font-weight: 600; margin-bottom: 4px; display: flex; justify-content: space-between; gap: 16px; }
.tip .tr { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.tip .tr b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.tip .tn { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--text-2); }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: grid; gap: 8px; }
.toast { padding: 10px 14px; border-radius: 11px; background: var(--panel-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 12.5px; animation: tin .3s var(--ease); max-width: 340px; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }

.empty { padding: 36px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty .serif { letter-spacing: -.02em; font-size: 19px; color: var(--text); display: block; margin-bottom: 6px; }

.journal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.j-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.j-month { letter-spacing: -.02em; margin: 14px 0 8px; font-family: var(--serif); font-size: 16px; }
.mark-row { display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 6px; cursor: pointer; }
.mark-row .mr-b { align-self: stretch; border-radius: 4px; }
.mark-row .mr-t { font-weight: 600; font-size: 13px; }
.mark-row .mr-s { font-size: 11.5px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }

.skeleton { position: relative; overflow: hidden; }
.loading-line { height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); background-size: 200% 100%; animation: load 1.2s linear infinite; }
@keyframes load { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1240px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .brief { position: static; max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .search-btn span { display: none; }
  .search-btn kbd { display: none; }
}
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .tabs { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .tabs button { flex: 1; justify-content: center; white-space: nowrap; }
  .tabs button kbd { display: none; }
  .layout { padding: 14px 16px 8px; }
  .statusbar { padding: 0 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-grid, .two-col, .journal-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .view-head h1 { font-size: 28px; }
  .brief { grid-template-columns: minmax(0, 1fr); }
  .foot { padding: 14px 16px 22px; }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 19px; }
}

@media print {
  .topbar, .statusbar, .brief, .foot, .view-tools, .selbar, .hm-foot .hm-hint { display: none !important; }
  .layout { display: block; padding: 0; }
  body { background: #fff; }
  body::before { display: none; }
  .card { border-color: #ddd; break-inside: avoid; }
}


/* ═════════════ Kept from later passes: status bar, stretch highlights, crypto, store ═════════════ */
.statusbar { overflow: hidden; }
.sb-item { flex: none; }
.sb-end { margin-left: auto; margin-right: 0; padding-right: 0; border-right: 0; }
@media (max-width: 1420px) { .sb-method { display: none; } }
@media (max-width: 1560px) { .sb-acc { display: none; } }
.icon-btn { position: relative; }
.cart-n { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--gold); color: #17130a; font-size: 10px; font-weight: 800; display: none; place-items: center; }
.cart-btn.has .cart-n { display: grid; }
.layout.no-brief { grid-template-columns: minmax(0, 1fr); }
.layout.no-brief .brief { display: none; }

/* Desk: stretch outline — one glowing frame around the run of days (sits in the gutters) */
.mw { gap: 8px; margin-bottom: 8px; }
.month-card.crypto .mw { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mw > .mc { grid-row: 1; }
.so { position: relative; pointer-events: none; z-index: 4; margin: -3px; border-radius: 15px; border: 1.75px solid; }
.so.bull { border-color: rgba(var(--bull-rgb), .95); box-shadow: 0 0 16px rgba(var(--bull-rgb), .3), inset 0 0 14px rgba(var(--bull-rgb), .1); }
.so.bear { border-color: rgba(var(--bear-rgb), .95); box-shadow: 0 0 16px rgba(var(--bear-rgb), .3), inset 0 0 14px rgba(var(--bear-rgb), .1); }
.so.watch { border-color: var(--watch); box-shadow: 0 0 16px color-mix(in srgb, var(--watch) 35%, transparent); }
.so.mark { border-width: 2.5px; }
.so.ol { border-left-style: dashed; border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.so.or { border-right-style: dashed; border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.so.bull.ol { border-left-color: rgba(var(--bull-rgb), .45); }
.so.bull.or { border-right-color: rgba(var(--bull-rgb), .45); }
.so.bear.ol { border-left-color: rgba(var(--bear-rgb), .45); }
.so.bear.or { border-right-color: rgba(var(--bear-rgb), .45); }
.so-tag {
  position: absolute; top: -10px; left: 14px; max-width: calc(100% - 28px); pointer-events: auto; cursor: default;
  font-size: 10px; font-weight: 700; letter-spacing: .2px; padding: 1px 9px; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #08130d; box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.so.bull .so-tag { background: var(--bull); }
.so.bear .so-tag { background: var(--bear); color: #fff; }
.so.watch .so-tag { background: var(--watch); }
.month-card .mw-head { margin-bottom: 10px; }
.lg-out { width: 16px !important; height: 10px !important; border-radius: 4px !important; background: transparent !important; border: 1.5px solid; }
.lg-out.bull { border-color: var(--bull); box-shadow: 0 0 6px rgba(var(--bull-rgb), .6); }
.lg-out.bear { border-color: var(--bear); box-shadow: 0 0 6px rgba(var(--bear-rgb), .6); }

/* Heatmap: solid, glowing stretch outlines */
.sw-auto { border: 1.5px solid var(--bull); box-shadow: 0 0 5px rgba(var(--bull-rgb), .7); }
.sw-mark { border: 2px solid var(--text); }
.ov { margin: -2px; border-radius: 6px; }
.ov.auto.bull { border: 2px solid rgba(var(--bull-rgb), .95); background: rgba(var(--bull-rgb), .07); box-shadow: 0 0 0 1px rgba(var(--bull-rgb), .2), 0 0 14px rgba(var(--bull-rgb), .4); }
.ov.auto.bear { border: 2px solid rgba(var(--bear-rgb), .95); background: rgba(var(--bear-rgb), .07); box-shadow: 0 0 0 1px rgba(var(--bear-rgb), .2), 0 0 14px rgba(var(--bear-rgb), .4); }
.ov.mark { border-width: 3px; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .55), 0 0 22px rgba(255, 255, 255, .12); }
:root[data-theme="light"] .ov.auto.bull, :root[data-theme="light"] .ov.auto.bear { box-shadow: none; }
.hm .fl { white-space: nowrap; }

/* ── Store ─────────────────────────────────────────── */
.store { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); gap: 22px; align-items: stretch; min-height: calc(100vh - var(--hdr, 90px) - 32px); }
.st-stage { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 24px 18px; min-height: 520px;
  background: radial-gradient(120% 90% at 50% 30%, color-mix(in srgb, var(--panel-3) 90%, transparent), var(--panel) 70%); }
.st-glow { position: absolute; inset: auto 10% 6% 10%; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(6px); }
.st-mock { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; width: 100%; transition: opacity .18s, transform .18s; perspective: 1400px; }
.st-mock.turn { opacity: 0; transform: translateY(6px) scale(.99); }
.st-months { position: relative; z-index: 1; display: flex; gap: 3px; margin-top: 14px; flex-wrap: wrap; justify-content: center; min-height: 26px; }
.st-months button { border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font-size: 10.5px; font-weight: 600; border-radius: 7px; padding: 4px 8px; }
.st-months button.on { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.st-info { display: flex; flex-direction: column; padding: 6px 2px 0; min-width: 0; }
.st-badge { align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); padding: 3px 9px; border-radius: 99px; }
.st-name { letter-spacing: -.02em; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; margin: 12px 0 8px; }
.st-tag { color: var(--text-2); margin: 0 0 16px; font-size: 14px; max-width: 460px; }
.st-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.st-price b { font-family: var(--mono); font-size: 28px; font-weight: 600; letter-spacing: -.8px; }
.st-price s { color: var(--muted); font-family: var(--mono); }
.st-opt { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.st-opt > span { font-size: 10.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); width: 56px; }
.st-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.st-list li { position: relative; padding-left: 24px; font-size: 13px; color: var(--text-2); }
.st-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: var(--bull); background: rgba(var(--bull-rgb), .14); }
.st-buy { display: flex; gap: 10px; margin-bottom: 22px; }
.st-add { flex: 1; justify-content: center; height: 46px; font-size: 14px; border-radius: 11px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 11px; background: var(--panel-2); height: 46px; }
.qty button { border: 0; background: none; width: 38px; height: 100%; font-size: 17px; color: var(--text-2); }
.qty span { min-width: 22px; text-align: center; font-family: var(--mono); font-weight: 600; }
.qty.sm { height: 28px; border-radius: 8px; margin-top: 6px; }
.qty.sm button { width: 26px; font-size: 14px; }
.st-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.st-p { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 8px 8px 9px; text-align: left; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, transform .15s; }
.st-p:hover { transform: translateY(-2px); border-color: var(--line-2); }
.st-p.on { border-color: var(--gold); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent); }
.st-thumb { height: 78px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--panel-2); margin-bottom: 6px; }
.st-thumb .pm { transform: scale(.2); transform-origin: center; }
.st-pn { font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.st-pp { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Product mockups */
.pm { position: relative; }
.pm-page { position: relative; border-radius: 6px; padding: 20px 20px 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 2px 0 rgba(255, 255, 255, .04) inset; }
.v-midnight .pm-page { background: linear-gradient(180deg, #121826, #0c111b); color: #e8ebf1; }
.v-ivory .pm-page { background: linear-gradient(180deg, #fbf8f1, #f1ece1); color: #1b1d22; }
.pm-hd { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; opacity: .7; font-weight: 600; }
.pm-month { letter-spacing: -.02em; font-family: var(--serif); font-size: 30px; line-height: 1; margin: 8px 0 12px; }
.v-midnight .pm-month { color: #f1d595; }
.v-ivory .pm-month { color: #8a6119; }
.pm-grid { display: grid; grid-template-columns: .55fr repeat(5, 1fr) .55fr; gap: 3px; }
.pm-grid b { font-size: 7.5px; text-align: center; opacity: .5; font-weight: 700; padding-bottom: 2px; }
.pm-grid i { position: relative; aspect-ratio: 1.25; border-radius: 3px; font-style: normal; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 3px; }
.pm-grid i.x { background: transparent; }
.pm-grid i.we { background: transparent !important; outline: 1px dashed rgba(127, 127, 127, .25); outline-offset: -1px; }
.pm-grid em { font-style: normal; font-size: 7.5px; font-weight: 700; }
.pm-grid small { font-family: var(--mono); font-size: 6.5px; opacity: .85; }
.pm-grid u { position: absolute; right: 3px; top: 3px; width: 4px; height: 4px; border-radius: 50%; }
.pm-ft { margin-top: 10px; font-size: 7px; letter-spacing: 1.4px; text-transform: uppercase; opacity: .5; text-align: center; }
.pm.wall { width: 340px; }
.pm.wall .pm-page { padding-top: 26px; }
.pm-rings { position: absolute; top: -6px; left: 14px; right: 14px; z-index: 2; display: flex; justify-content: space-between; }
.pm-rings span { width: 5px; height: 14px; border-radius: 3px; background: linear-gradient(180deg, #d7d9de, #8b9099); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.pm-cover { margin: -4px -6px 12px; border-radius: 4px; overflow: hidden; padding: 8px; background: rgba(127, 127, 127, .08); }
.pm.wall .pm-hd { margin-bottom: 8px; }
.pm-heat { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; }
.pm-heat i { aspect-ratio: 2.4; border-radius: 1px; }
.pm.print .pm-frame { width: 330px; padding: 12px; border-radius: 3px; background: linear-gradient(135deg, #2b2b2e, #111114); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .05); }
.pm-mat { background: #f6f3ec; padding: 22px 26px 16px; color: #1b1d22; }
.pm-ptitle { letter-spacing: -.02em; font-family: var(--serif); font-size: 12px; text-align: center; margin-bottom: 10px; }
.pm-psub { font-size: 6.5px; letter-spacing: 1.6px; text-transform: uppercase; text-align: center; opacity: .55; margin-top: 10px; }
.pm.print .pm-heat i { aspect-ratio: 2.1; }
.pm.bundle { width: 520px; height: 420px; }
.pm.bundle > .pm.print { position: absolute; right: 0; top: 0; transform: scale(.82); transform-origin: top right; }
.pm.bundle > .pm.desk { position: absolute; left: 0; bottom: 20px; transform: scale(.8) rotateX(6deg); transform-origin: bottom left; }

/* Cart drawer */
.drawer.cart { width: min(440px, 100vw); }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.ci-thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--panel-3); }
.ci-thumb .pm { transform: scale(.16); }
.ci-n { font-weight: 600; font-size: 13px; }
.ci-v { font-size: 11.5px; color: var(--muted); }
.ci-p { font-family: var(--mono); font-weight: 600; text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.nc-actions-btn { border: 0; background: none; color: var(--muted); font-size: 11px; font-family: var(--font); padding: 0; }
.nc-actions-btn:hover { color: var(--bear); }
.cart-sum { display: grid; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.cart-sum > div:first-child { display: flex; justify-content: space-between; font-size: 15px; }
.cart-sum b { font-family: var(--mono); }


.st-mock { position: relative; min-height: 0; align-self: stretch; }
.st-mock .pm-scale, .st-thumb .pm-scale, .ci-thumb .pm-scale { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--s, 1)); transform-origin: center; }
.st-thumb, .ci-thumb { position: relative; }
.st-thumb .pm, .ci-thumb .pm { transform: none; }
.store { height: calc(100vh - var(--hdr, 90px) - 30px); min-height: 540px; }
.st-stage { min-height: 0; padding: 18px 20px 14px; }
.st-info { overflow-y: auto; scrollbar-width: none; }
.st-info::-webkit-scrollbar { display: none; }
.st-name { font-size: 40px; margin: 10px 0 6px; }
.st-tag { margin-bottom: 12px; }
.st-price { margin-bottom: 12px; }
.st-opt { margin-bottom: 12px; }
.st-list { gap: 6px; margin-bottom: 14px; }
.st-buy { margin-bottom: 14px; }
.st-thumb { height: 64px; }
.st-products { gap: 8px; }
@media (max-width: 900px) { .store { height: auto; } .st-stage { min-height: 380px; } .st-mock { min-height: 320px; } }

@media (max-width: 900px) {
  .store { grid-template-columns: minmax(0, 1fr); }
  .st-stage { min-height: 380px; }
  .st-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-name { font-size: 34px; }
  .so-tag { font-size: 8.5px; padding: 1px 6px; left: 6px; }
  .so { border-radius: 10px; }
}

/* ═════════════ Desk refinements: 3-month strip, compact stats, 25% smaller squares ═════════════ */
/* Three-month strip in the filter row — scroll sideways for the rest */
.ystrip3 {
  display: flex; gap: 5px; width: 206px; flex: none; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 2px; margin-right: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%);
}
.ystrip3::-webkit-scrollbar { display: none; }
.ystrip3 .ys { flex: 0 0 64px; height: 30px; padding: 0; scroll-snap-align: start; flex-direction: row; justify-content: center; align-items: baseline; gap: 5px; border-radius: 8px; }
.ystrip3 .ys span { font-size: 9.5px; letter-spacing: .6px; }
.ystrip3 .ys b { font-size: 9px; }
.ystrip3 .ys:hover { transform: none; border-color: var(--line-2); }
.ystrip3 .ys.on { outline: 1.5px solid var(--text); outline-offset: -1px; }
.ystrip3 .ys.now::after { top: 3px; right: 4px; width: 4px; height: 4px; }
.ystrip3 .ys { line-height: 30px; }

/* Desk stat cards — 35% more compact */
.desk-kpis { gap: 8px; margin-bottom: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.desk-kpis .kpi { padding: 9px 11px; border-radius: 10px; }
.desk-kpis .k-label { font-size: 8.5px; letter-spacing: 1px; }
.desk-kpis .k-val { font-size: 14.5px; margin-top: 3px; letter-spacing: -.3px; }
.desk-kpis .k-sub { font-size: 9px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Calendar squares — 25% smaller, weekends the same size as weekdays */
.mw { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.month-card { padding: 10px; }
.month-card .mw-head { margin-bottom: 8px; }
.mw-head > div { font-size: 9px; }
.mc { min-height: 104px; border-radius: 9px; padding: 7px 8px 7px; gap: 2px; }
.mc:hover { transform: translateY(-1px); }
.mc-d { font-size: 11.5px; }
.mc-v { font-size: 16.5px; margin-top: 3px; letter-spacing: -.6px; }
.mc-sub { font-size: 8px; }
.mc-flag { font-size: 7.5px; padding: 1.5px 4.5px; border-radius: 5px; }
.mc-today { font-size: 7.5px; padding: 1.5px 5px; border-radius: 5px; letter-spacing: 1px; }
.mc-evs { gap: 2px; padding-top: 4px; }
.mc-ev { font-size: 8px; padding: 1.5px 4.5px; border-radius: 5px; gap: 3px; }
.mc-ev i { width: 5px; height: 5px; }
.mc-act { font-size: 8px; margin-top: 4px; padding: 2px 5px; border-radius: 5px; gap: 4px; }
.mc-act i { width: 12px; height: 12px; font-size: 7.5px; }
.mc-act .live-dot { width: 5px; height: 5px; }
.mc-note { right: 7px; bottom: 7px; width: 5.5px; height: 5.5px; }
.mc-closed { font-size: 8.5px; }
.mc-hn { font-size: 9px; }
.mc.we .mc-d { color: var(--faint); }
.so { border-radius: 12px; }
.so-tag { font-size: 8.5px; padding: 1px 7px; top: -9px; left: 10px; }

/* Brief: tighter bias card */
.bias-card { padding: 14px 16px; }
.bias-card .card-head { margin-bottom: 10px; }
.bias-card .horizon { gap: 8px; }

/* Period / cycle filters */
.sb-filters { gap: 14px; }
.ds-select.on select { border-color: color-mix(in srgb, var(--gold) 60%, var(--line-2)); color: var(--gold); }
.flt-pill { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 9%, transparent); white-space: nowrap; }
.mh-flt { margin-top: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); text-align: center; opacity: .9; }

/* ═════════════ Accounts, pricing & Pro locks ═════════════ */
.acct { display: flex; align-items: center; gap: 6px; }
.acct .btn.sm { height: 32px; }
.acct-av { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); font-weight: 700; font-size: 13px; color: var(--text); }
.acct-av.pro { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 25%, transparent); }
.acct-av i { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 7.5px; font-weight: 800; letter-spacing: .6px; padding: 1px 4px; border-radius: 4px; background: var(--gold); color: #17130a; }
.acct-menu { position: fixed; z-index: 90; width: 250px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 13px; box-shadow: var(--shadow); padding: 6px; display: grid; gap: 2px; animation: tin .18s var(--ease); }
.acct-menu .am-head { padding: 10px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.am-email { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.am-plan { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.am-plan.pro { color: var(--gold); }
.acct-menu button, .acct-menu a { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.acct-menu button:hover, .acct-menu a:hover { background: var(--panel-2); color: var(--text); }
.acct-menu .am-gold { color: var(--gold); font-weight: 600; }

.acct-modal { place-items: center; padding: 16px; z-index: 85; }
.acct-modal .modal-card { position: relative; max-height: 92vh; }
.am-x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.auth-card { width: min(420px, 100%); }
.auth { padding: 30px 30px 26px; }
.auth-brand { font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.auth h2, .pr-head h2 { letter-spacing: -.02em; font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 8px 0 14px; line-height: 1.05; }
.auth-note { color: var(--text-2); font-size: 13px; margin: -4px 0 14px; }
.auth-seg { width: 100%; margin-bottom: 16px; }
.auth-seg button { flex: 1; }
.auth form { display: grid; gap: 12px; }
.auth label { display: grid; gap: 6px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.auth input { height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); padding: 0 12px; font-size: 14px; outline: none; text-transform: none; letter-spacing: 0; color: var(--text); }
.auth input:focus { border-color: var(--gold); }
.auth-err { color: var(--bear); font-size: 12.5px; min-height: 2px; }
.auth-go { height: 44px; justify-content: center; font-size: 14px; }
.auth-link { display: inline-block; margin-top: 14px; font-size: 12.5px; color: var(--text-2); }
.auth-fine { font-size: 11px; color: var(--faint); margin: 14px 0 0; line-height: 1.5; }

.pricing-card { width: min(920px, 100%); }
.pricing { padding: 30px 30px 22px; }
.pr-head { text-align: center; }
.pr-head h2 em { color: var(--gold); }
.pr-head p { color: var(--text-2); margin: -4px auto 22px; max-width: 560px; font-size: 13.5px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 18px; border-radius: 15px; border: 1px solid var(--line-2); background: var(--panel-2); }
.plan.feat { border-color: var(--gold); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent), 0 20px 50px -24px color-mix(in srgb, var(--gold) 45%, transparent); }
.plan.life { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 10%, var(--panel-2)), var(--panel-2) 60%); }
.plan-badge { position: absolute; top: -10px; left: 18px; font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: var(--gold); color: #17130a; }
.plan-name { font-weight: 600; font-size: 13px; color: var(--text-2); }
.plan-price b { font-family: var(--mono); font-size: 30px; letter-spacing: -1px; }
.plan-price span { color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.plan-blurb { font-size: 12.5px; color: var(--text-2); min-height: 36px; }
.plan-sub { font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.plan-seats { font-size: 11.5px; color: var(--gold); display: grid; gap: 5px; }
.seat-bar { height: 5px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.seat-bar i { display: block; height: 100%; background: var(--gold); }
.plan-go { margin-top: auto; justify-content: center; height: 40px; }
.plan-go[disabled] { opacity: .5; cursor: not-allowed; }
.pr-feats { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pr-feats h4 { margin: 0 0 10px; font-size: 10.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }
.pr-feats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pr-feats li { position: relative; padding-left: 22px; font-size: 13px; color: var(--text-2); }
.pr-feats li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: var(--gold); background: color-mix(in srgb, var(--gold) 15%, transparent); }
.pr-feats ul.free li::before { color: var(--muted); background: var(--panel-3); }
.pr-cal { font-size: 12px; color: var(--gold); margin: 14px 0 0; }
.pr-note { text-align: center; color: var(--gold); font-size: 13px; margin: 16px 0 0; }
.pr-fine { text-align: center; font-size: 11px; color: var(--faint); margin: 16px 0 0; }

.pro-tag { font-style: normal; font-size: 8px; font-weight: 800; letter-spacing: .6px; padding: 1px 4px; border-radius: 4px; background: var(--gold); color: #17130a; vertical-align: 1px; }
.kpi-locked { cursor: pointer; position: relative; }
.kpi-locked .k-val, .kpi-locked .k-sub { filter: blur(5px); user-select: none; }
.kpi-locked::after { content: 'PRO'; position: absolute; top: 9px; right: 10px; font-size: 8px; font-weight: 800; letter-spacing: .8px; padding: 1px 5px; border-radius: 4px; background: var(--gold); color: #17130a; }

.locked { position: relative; }
.locked > *:not(.lock-ov) { filter: blur(7px) saturate(.85); pointer-events: none; user-select: none; }
.lock-ov { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; border-radius: inherit;
  background: radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 25%, transparent)); }
.lock-card { max-width: 380px; text-align: center; padding: 26px 26px 20px; border-radius: 18px; background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line-2)); box-shadow: var(--shadow); display: grid; gap: 8px; justify-items: center; position: sticky; top: 140px; }
.lock-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
.lock-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.lock-card h3 { letter-spacing: -.02em; font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 4px 0 0; }
.lock-card p { margin: 0 0 8px; color: var(--text-2); font-size: 13px; }
.lock-card .btn.gold { width: 100%; justify-content: center; height: 42px; }

@media (max-width: 900px) {
  .plans, .pr-feats { grid-template-columns: minmax(0, 1fr); }
  .pricing, .auth { padding: 24px 18px 18px; }
  .acct .btn.ghost { display: none; }
}

/* ═════════════ Crypto checkout ═════════════ */
.cx-card { width: min(480px, 100%); }
.cx { padding: 28px 28px 22px; }
.cx h2 { letter-spacing: -.02em; font-family: var(--serif); font-weight: 400; font-size: 25px; margin: 8px 0 12px; line-height: 1.05; }
.cx-sum { border: 1px solid var(--line); background: var(--panel-2); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--text-2); display: grid; gap: 3px; margin-bottom: 16px; }
.cx-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; color: var(--text); }
.cx-total b { font-family: var(--mono); }
.cx form { display: grid; gap: 10px; }
.cx-label { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 4px; }
.cx-assets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cx-asset { position: relative; cursor: pointer; }
.cx-asset input { position: absolute; opacity: 0; }
.cx-asset span { display: grid; gap: 1px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel-2); transition: border-color .15s; }
.cx-asset b { font-size: 13.5px; }
.cx-asset i { font-style: normal; font-size: 11px; color: var(--gold); font-weight: 600; }
.cx-asset small { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.cx-asset input:checked + span { border-color: var(--gold); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent); }
.cx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cx-grid .span2 { grid-column: 1 / -1; }
.cx-f { display: grid; gap: 4px; font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cx-f input, .cx-f select { height: 38px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); padding: 0 10px; font-size: 13.5px; outline: none; color: var(--text); text-transform: none; letter-spacing: 0; }
.cx-f input:focus, .cx-f select:focus { border-color: var(--gold); }
.cx-amt { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cx-amt b { font-family: var(--mono); font-size: 30px; letter-spacing: -1px; }
.cx-amt span { color: var(--gold); font-weight: 700; }
.cx-amt .btn { margin-left: auto; align-self: center; }
.cx-usd { color: var(--muted); font-size: 12.5px; margin: 2px 0 16px; }
.cx-usd b { color: var(--text-2); }
.cx-pay { display: grid; grid-template-columns: 172px 1fr; gap: 16px; align-items: center; }
.cx-qr { width: 172px; height: 172px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.cx-qr img, .cx-qr canvas { display: block; }
.cx-to { min-width: 0; display: grid; gap: 6px; }
.cx-addr { font-size: 12px; word-break: break-all; padding: 9px 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); line-height: 1.45; }
.cx-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-btns a.btn { text-decoration: none; }
.cx-status { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; }
.cx-status.conf { border-color: color-mix(in srgb, var(--bull) 45%, transparent); color: var(--bull); }
.cx-timer { font-size: 12px; color: var(--muted); margin-top: 8px; }
.cx-timer b { font-family: var(--mono); color: var(--text-2); }
.cx-tx { margin-top: 12px; font-size: 12.5px; }
.cx-tx summary { cursor: pointer; color: var(--text-2); }
.cx-tx form { display: flex; gap: 6px; margin-top: 8px; }
.cx-tx input { flex: 1; min-width: 0; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); padding: 0 10px; font-family: var(--mono); font-size: 12px; outline: none; color: var(--text); }
.cx-done { text-align: center; padding: 10px 0 4px; }
.cx-ic { width: 54px; height: 54px; margin: 8px auto 4px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.cx-done.ok .cx-ic { background: rgba(var(--bull-rgb), .15); color: var(--bull); }
.cx-done.rev .cx-ic { background: color-mix(in srgb, var(--watch) 15%, transparent); color: var(--watch); }
.cx-done.exp .cx-ic { background: rgba(var(--bear-rgb), .15); color: var(--bear); }
.cx-done p { color: var(--text-2); font-size: 13.5px; }
.plan-crypto { border: 0; background: none; color: var(--muted); font-size: 11.5px; padding: 6px 0 0; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.plan-crypto:hover { color: var(--gold); }
.plan-crypto-sp { height: 23px; }
@media (max-width: 560px) { .cx-pay { grid-template-columns: minmax(0, 1fr); justify-items: center; } .cx-assets, .cx-grid { grid-template-columns: minmax(0, 1fr); } }
.cx-tok { width: 100%; }
.cx-tok label { flex: 1; position: relative; }
.cx-tok input { position: absolute; opacity: 0; }
.cx-tok span { display: block; text-align: center; padding: 6px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.cx-tok input:checked + span { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.cx-assets { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.cx-timer { line-height: 1.45; }

/* Compact Pro lock for individual cards */
.locked-mini { min-height: 92px; }
.locked-mini > *:not(.lock-ov) { filter: blur(5px) saturate(.8); opacity: .55; }
.lock-ov.mini { background: none; padding: 10px; }
.lock-pill { display: flex; align-items: center; gap: 10px; max-width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line-2)); background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow); color: var(--text); transition: transform .12s, border-color .15s; }
.lock-pill:hover { transform: translateY(-1px); border-color: var(--gold); }
.lock-pill svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; }
.lock-pill span { display: grid; gap: 1px; min-width: 0; }
.lock-pill b { font-size: 12.5px; font-weight: 600; }
.lock-pill small { font-size: 11px; color: var(--muted); }
.lock-pill i { font-style: normal; flex: none; font-size: 8.5px; font-weight: 800; letter-spacing: .8px; padding: 2px 6px; border-radius: 5px; background: var(--gold); color: #17130a; }

/* Month strip: exactly three months, no scrolling */
.ystrip3 { width: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 0; scroll-snap-type: none; }
.ystrip3 .ys { flex: 0 0 auto; padding: 0 12px; gap: 6px; }

/* "Month at a glance" card under Good morning */
.ms-card { padding: 14px 16px; }
.ms-card .card-head { margin-bottom: 10px; }
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ms-grid > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 1px; min-width: 0; }
.ms-grid span { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-grid b { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.ms-grid small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Good morning: the day's economic data */
.br-big { align-items: flex-end; }
.br-data { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 52%; }
.br-data-t { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.br-ev { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line-2); white-space: nowrap; }
.br-ev i { width: 6px; height: 6px; border-radius: 50%; background: var(--e); }
.br-ev.high { border-color: var(--e); }
.br-ev em { font-style: normal; font-family: var(--mono); font-weight: 500; color: var(--muted); }
.br-ev.none { color: var(--muted); font-weight: 500; }

/* ═════════════ Product mockups: leather desk calendar, wall calendar, tear-away ═════════════ */
.pm-grid i.we { outline-color: rgba(90, 80, 60, .22); }
/* Wall calendar: month stats & facts on top */
.pm.wall .pm-page { background: linear-gradient(180deg, #fbf8f1, #f2ede2); color: #1b1d22; }
.pm-stats { border-bottom: 1px solid rgba(138, 97, 25, .25); padding-bottom: 12px; margin-bottom: 12px; }
.pm-stats-h { display: flex; justify-content: space-between; align-items: baseline; }
.pm-stats-h .pm-month { letter-spacing: -.02em; color: #8a6119; margin: 0; font-size: 27px; }
.pm-stats-h > span:last-child { font-size: 10px; letter-spacing: 2px; color: #6b5a3c; }
.pm-kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 8px; }
.pm-kv div { display: grid; gap: 1px; }
.pm-kv b { font-family: var(--mono); font-size: 12.5px; }
.pm-kv span { font-size: 6.8px; letter-spacing: .8px; text-transform: uppercase; color: #8a7a5c; }
.pm-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.pm-facts li { font-size: 8.5px; color: #3b3424; padding-left: 10px; position: relative; }
.pm-facts li::before { content: '◆'; position: absolute; left: 0; color: #b8913f; font-size: 6px; top: 1px; }

/* Daily tear-away block */
.pm.tear { width: 230px; position: relative; padding-bottom: 14px; }
.pm-block { position: absolute; left: 4px; right: 4px; bottom: 0; height: 100%; }
.pm-block i { position: absolute; left: 0; right: 0; height: 100%; border-radius: 6px; background: #ece5d6; box-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.pm-block i:nth-child(1) { bottom: 0; } .pm-block i:nth-child(2) { bottom: 3px; } .pm-block i:nth-child(3) { bottom: 6px; } .pm-block i:nth-child(4) { bottom: 9px; } .pm-block i:nth-child(5) { bottom: 12px; }
.pm-block { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); }
.pm-sheet { position: relative; border-radius: 6px; background: linear-gradient(180deg, #fffdf7, #f6f1e5); color: #1b1d22; padding: 20px 18px 16px; text-align: center; }
.pm-perf { position: absolute; top: 10px; left: 10px; right: 10px; border-top: 2px dotted rgba(90, 80, 60, .3); }
.pm-dow { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: #8a6119; margin-top: 6px; font-weight: 700; }
.pm-day { letter-spacing: -.02em; font-family: var(--serif); font-size: 67px; line-height: .95; }
.pm-mon { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #6b5a3c; }
.pm-avg { margin: 12px auto 6px; border-radius: 8px; padding: 7px 10px; display: grid; }
.pm-avg b { font-family: var(--mono); font-size: 20px; }
.pm-avg span { font-size: 7.5px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(27, 29, 34, .7); }
.pm-meta { font-size: 9px; color: #5a5040; }
.pm-on { margin-top: 8px; font-size: 8.5px; color: #3b3424; border-top: 1px solid rgba(138, 97, 25, .2); padding-top: 7px; }

/* The set */
.pm.bundle { width: 760px; height: 560px; position: relative; }
.pb-wall { position: absolute; left: 0; top: 0; transform: scale(.78); transform-origin: top left; }
.pb-desk { position: absolute; left: 90px; bottom: 0; transform: scale(.68); transform-origin: bottom left; }
.pb-tear { position: absolute; right: 0; top: 40px; transform: scale(.82); transform-origin: top right; }
.st-ed { font-size: 13px; color: var(--text); }

/* Stretch accuracy */
.sa-sum { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.sa-sum > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: grid; min-width: 120px; }
.sa-sum span { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.sa-sum b { font-family: var(--mono); font-size: 18px; }
.sa-sum small { font-size: 10.5px; color: var(--muted); }
.sa-table { display: grid; gap: 2px; }
.sa-row { display: grid; grid-template-columns: minmax(150px, 1.4fr) 44px 80px minmax(120px, 1fr) 96px minmax(170px, 1.2fr); gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; font-size: 12.5px; cursor: pointer; }
.sa-row:hover { background: var(--panel-2); }
.sa-row i { font-style: normal; }
.sa-h { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); cursor: default; }
.sa-h:hover { background: none; }
.sa-bar { position: relative; height: 18px; border-radius: 6px; background: var(--panel-3); overflow: hidden; display: flex; align-items: center; }
.sa-bar i { position: absolute; left: 0; top: 0; bottom: 0; opacity: .55; }
.sa-bar b { position: relative; padding-left: 7px; font-size: 11px; }
.sa-recent { display: flex; gap: 3px; flex-wrap: wrap; }
.sa-recent i { font-family: var(--mono); font-size: 9.5px; padding: 1px 4px; border-radius: 4px; }
.sa-recent i.ok { background: rgba(var(--bull-rgb), .16); color: var(--bull); }
.sa-recent i.no { background: rgba(var(--bear-rgb), .16); color: var(--bear); }
@media (max-width: 900px) { .sa-row { grid-template-columns: 1fr 70px 90px; } .sa-row > span:nth-child(2), .sa-row > span:nth-child(5), .sa-row > span:nth-child(6) { display: none; } }

/* Desk header: fixed-width title so changing months never moves the filters or the calendar */
.mh .mh-left { flex: none; }
.mh .mh-title { width: 262px; min-width: 0; }
.mh .mh-month { white-space: nowrap; }
.mh-year a { color: var(--gold); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.mh-year a:hover { border-bottom-color: var(--gold); }
.mh { flex-wrap: nowrap; }
.mh .view-tools { flex: none; flex-wrap: nowrap; gap: 6px; }
.ystrip3 { gap: 4px; }
.ystrip3 .ys { flex: 0 0 72px; width: 72px; padding: 0; gap: 4px; }
.mh .seg button { padding: 5px 9px; }
@media (max-width: 1240px) { .mh { flex-wrap: wrap; } }

/* Single one-time offer */
.pricing.one .one-grid { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; gap: 26px; align-items: start; }
.pricing.one .plan { padding: 24px 22px 20px; }
.pricing.one .plan-price b { font-size: 40px; }
.pricing.one .plan-blurb { min-height: 0; margin-bottom: 8px; }
.pricing.one .plan-go { height: 46px; font-size: 14px; margin-top: 8px; }
.pricing.one .plan-go[disabled] { opacity: .6; }
.pricing.one .one-feats { margin-top: 0; padding-top: 4px; border-top: 0; grid-template-columns: 1fr; gap: 16px; }
.pricing-card:has(.pricing.one) { width: min(820px, 100%); }
@media (max-width: 760px) { .pricing.one .one-grid { grid-template-columns: minmax(0, 1fr); } }

/* ═════════════ Research ═════════════ */
.rs-top .view-tools { gap: 10px; }
.rs-offer { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 22px 24px; margin-bottom: 18px; align-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 9%, var(--panel)), var(--panel) 60%); border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); }
.rs-offer h3 { letter-spacing: -.02em; font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 6px 0 6px; }
.rs-offer p { color: var(--text-2); margin: 0 0 10px; font-size: 13.5px; max-width: 560px; }
.rs-offer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.rs-offer li { font-size: 12.5px; color: var(--text-2); }
.rs-offer li::before { content: '✓ '; color: var(--gold); font-weight: 700; }
.rs-offer-r { display: grid; justify-items: center; gap: 8px; min-width: 180px; }
.rs-price b { font-family: var(--mono); font-size: 34px; letter-spacing: -1px; }
.rs-price span { color: var(--muted); margin-left: 4px; }
.rs-sub { width: 100%; justify-content: center; height: 44px; }
.rs-offer-r small { color: var(--muted); font-size: 11px; }
.rs-offer.compact { grid-template-columns: 1fr; text-align: left; margin: 14px 0 0; }
.rs-offer.compact .rs-offer-r { justify-items: start; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.rs-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.rs-card:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); transform: translateY(-2px); }
.rs-card h2 { letter-spacing: -.02em; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.1; margin: 4px 0 0; }
.rs-meta { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.rs-draft { color: var(--watch); font-weight: 700; }
.rs-lock { color: var(--gold); }
.rs-card .rs-sub { color: var(--text-2); font-size: 14px; margin: 0; height: auto; width: auto; display: block; }
.rs-ex { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 4px 0 0; }
.rs-read { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--gold); font-weight: 600; }
.rs-article { max-width: 760px; margin: 0 auto; padding: 4px 4px 40px; }
.rs-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.rs-back { color: var(--text-2); text-decoration: none; font-size: 13px; }
.rs-back:hover { color: var(--text); }
.rs-article h1 { letter-spacing: -.02em; font-family: var(--serif); font-weight: 400; font-size: 37px; line-height: 1.05; margin: 10px 0 10px; }
.rs-dek { font-size: 19px; color: var(--text-2); margin: 0 0 26px; line-height: 1.45; }
.rs-body { font-size: 17px; line-height: 1.75; color: var(--text); }
.rs-body p { margin: 0 0 1.15em; }
.rs-body h2 { letter-spacing: -.02em; font-family: var(--serif); font-weight: 400; font-size: 25px; margin: 1.6em 0 .5em; }
.rs-body h3 { font-size: 19px; margin: 1.4em 0 .4em; }
.rs-body h4 { font-size: 16px; margin: 1.2em 0 .4em; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.rs-body blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 3px solid var(--gold); color: var(--text-2); font-style: italic; }
.rs-body ul, .rs-body ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.rs-body li { margin: .3em 0; }
.rs-body a { color: var(--gold); }
.rs-body img { max-width: 100%; border-radius: 10px; margin: .6em 0; }
.rs-body code { font-family: var(--mono); font-size: .85em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.rs-body pre { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; font-size: 13px; }
.rs-body pre code { background: none; border: 0; padding: 0; }
.rs-body hr { border: 0; border-top: 1px solid var(--line-2); margin: 2em 0; }
.rs-body.locked-teaser { position: relative; max-height: 420px; overflow: hidden; }
.rs-body.locked-teaser::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(transparent, var(--bg)); }
.rs-wall { text-align: center; margin-top: 8px; display: grid; justify-items: center; gap: 6px; }
.rs-wall h3 { letter-spacing: -.02em; font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 4px 0 0; }
.rs-signin { color: var(--muted); font-size: 13px; }
.rs-signin a { color: var(--gold); }
.rs-editor { width: min(900px, 100%); padding: 18px 20px 16px; display: grid; gap: 10px; max-height: 92vh; overflow-y: auto; }
.rs-ed-head { display: flex; justify-content: space-between; align-items: center; }
.rs-in { height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); padding: 0 12px; font-size: 14px; color: var(--text); outline: none; }
.rs-in.rs-title { letter-spacing: -.02em; font-family: var(--serif); font-size: 19px; height: 48px; }
.rs-in:focus, .rs-text:focus { border-color: var(--gold); }
.rs-tabs { justify-self: start; }
.rs-text { min-height: 48vh; resize: vertical; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); padding: 14px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--text); outline: none; }
.rs-preview { min-height: 48vh; border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; background: var(--bg-2); }
.rs-preview h1 { letter-spacing: -.02em; font-family: var(--serif); font-weight: 400; font-size: 29px; margin: 0 0 8px; }
.rs-ed-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rs-ed-foot .rs-save { margin-left: auto; height: 40px; }
@media (max-width: 760px) { .rs-offer { grid-template-columns: 1fr; } .rs-article h1 { font-size: 34px; } .rs-body { font-size: 16px; } }

/* ═════════════ Desk pad (tear-off desk blotter) ═════════════ */
.pm.desk { width: 780px; color: #16181d; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .55)); }
.dp-bar { position: relative; height: 34px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #23252a, #0d0e10); display: flex; justify-content: space-around; align-items: center; }
.dp-bar span { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f3f0e8, #a9a59a 55%, #6f6b62); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25), 0 0 0 2px #3a3c41; }
.dp-sheet { position: relative; display: grid; grid-template-columns: 1fr 172px; gap: 14px; padding: 12px 14px 34px; background: #fdfcf8;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, .05), transparent 10px); }
.dp-title { text-align: center; white-space: nowrap; margin: 2px 0 8px; }
.dp-title span { font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif; font-weight: 900; font-size: 36px; letter-spacing: -.5px; line-height: 1; }
.dp-brand { letter-spacing: -.02em; margin-top: auto; padding-top: 8px; font-family: var(--serif); font-size: 9px; text-align: center; }
.dp-brand small { display: block; font-family: var(--sans, inherit); font-size: 5.5px; letter-spacing: 1px; text-transform: uppercase; color: #6b6a64; margin-top: 1px; }
.dp-dow { display: grid; grid-template-columns: repeat(7, 1fr); background: #121316; }
.dp-dow b { color: #f4f2ec; font-size: 9px; font-weight: 700; text-align: center; padding: 3px 0; border-left: 1px solid #3a3b40; }
.dp-dow b:first-child { border-left: 0; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid #2b2c30; border-top: 1px solid #2b2c30; }
.dp-c { border-right: 1px solid #2b2c30; border-bottom: 1px solid #2b2c30; padding: 3px 4px 2px; min-height: 64px; display: flex; flex-direction: column; }
.dp-c.dp-x { background: #f6f4ee; }
.dp-top { display: flex; align-items: flex-start; gap: 3px; margin-bottom: 2px; min-height: 15px; }
.dp-top b { font-family: Georgia, 'Times New Roman', serif; font-size: 15px; font-weight: 400; line-height: 1; }
.dp-tag { flex: 1; min-width: 0; font-size: 5.5px; line-height: 1.15; color: #4a4943; padding-top: 1px; overflow: hidden; }
.dp-c[style] { background: color-mix(in srgb, var(--dc) 22%, #fdfcf8); }
.dp-c > em { display: block; margin: 1px -4px -2px; padding: 2px 4px; background: var(--dc); font-style: normal; font-family: var(--mono); font-size: 7.5px; font-weight: 700; text-align: right; color: #16181d; }
.dp-c > i { display: block; flex: 1; border-bottom: 1px solid rgba(40, 42, 48, .18); min-height: 10px; }
.dp-c > i:last-child { border-bottom: 0; }
.dp-side { display: flex; flex-direction: column; padding-top: 6px; }
.dp-h { font-size: 8.5px; font-weight: 700; text-align: center; letter-spacing: .4px; margin: 6px 0 3px; }
.dp-h:first-child { margin-top: 0; }
.dp-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 4px; }
.dp-kv div { border: 1px solid rgba(40, 42, 48, .25); border-radius: 3px; padding: 3px 4px; display: grid; }
.dp-kv span { font-size: 5.5px; letter-spacing: .8px; text-transform: uppercase; color: #6b6a64; }
.dp-kv b { font-family: var(--mono); font-size: 9.5px; }
.dp-lines i { display: flex; align-items: flex-end; gap: 4px; height: 11.5px; }
.dp-lines i::after { content: ''; flex: 1; border-bottom: 1px dotted rgba(40, 42, 48, .55); }
.dp-lines s { width: 6px; height: 6px; border: 1px solid rgba(40, 42, 48, .6); flex: none; }
.dp-mini { padding-top: 6px; }
.dp-mini-h { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 2px; }
.dp-mini-g { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 6.5px; text-align: center; row-gap: 1px; }
.dp-mini-g b { font-weight: 700; }
.dp-corner { position: absolute; bottom: 0; width: 110px; height: 52px; background: linear-gradient(180deg, #1d1f23, #0b0c0e); }
.dp-corner.l { left: 0; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.dp-corner.r { right: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* Research: plan toggle, coming-soon preview */
.rs-plans { margin-bottom: 2px; }
.rs-plans button { white-space: nowrap; }
.rs-save { font-size: 10px; color: var(--bull); font-weight: 700; margin-left: 2px; }
.rs-plans button.on .rs-save { color: inherit; }
.rs-pm { font-size: 11.5px; color: var(--muted); margin-top: -6px; }
.rs-offer-r .plan-crypto { margin-top: -2px; }
.rs-admin-note { padding: 12px 16px; margin-bottom: 14px; font-size: 13px; color: var(--text-2); border-color: color-mix(in srgb, var(--watch) 45%, var(--line)); }
.rs-soon { position: relative; min-height: 440px; }
.rs-soon-blur { filter: blur(7px); opacity: .55; pointer-events: none; user-select: none; }
.rs-soon-card { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: min(440px, calc(100% - 32px)); padding: 26px 28px; text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); }
.rs-soon-card h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.02em; margin: 6px 0 8px; }
.rs-soon-card p { color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.55; }
.rs-offer { grid-template-columns: minmax(0, 1fr) 280px; }
.rs-offer-r small { text-align: center; line-height: 1.45; }
.rs-offer.compact { grid-template-columns: 1fr; }
@media (max-width: 760px) { .rs-offer { grid-template-columns: 1fr; } }

/* ═════════════ Phone calendar (kept last so it wins over the desktop sizing above) ═════════════ */
@media (max-width: 700px) {
  .mh { flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
  .mh .mh-left { width: 100%; justify-content: space-between; gap: 8px; }
  .mh .mh-title { width: auto; flex: 1; }
  .mh-month { font-size: 34px; }
  .mh-arrow { width: 36px; height: 36px; font-size: 20px; }
  .mh .view-tools { width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .mh .view-tools::-webkit-scrollbar { display: none; }
  .mh .view-tools > * { flex: none; }
  .ystrip3 .ys { flex: 0 0 64px; width: 64px; }

  .month-card { padding: 8px 6px; }
  /* Weekdays only for stock indexes: weekend columns collapse to nothing */
  .month-card:not(.crypto) .mw { grid-template-columns: 0 repeat(5, minmax(0, 1fr)) 0; column-gap: 4px; margin: 0 -4px 4px; }
  .month-card:not(.crypto) .mc.we, .month-card:not(.crypto) .mw-head > .we { display: none; }
  .month-card:not(.crypto) .mw > .mc[style^="grid-column:1;"], .month-card:not(.crypto) .mw > .mc[style^="grid-column:7;"] { display: none; }
  .month-card:not(.crypto) .mw-head > :nth-child(2) { grid-column: 2; } .month-card:not(.crypto) .mw-head > :nth-child(3) { grid-column: 3; }
  .month-card:not(.crypto) .mw-head > :nth-child(4) { grid-column: 4; } .month-card:not(.crypto) .mw-head > :nth-child(5) { grid-column: 5; }
  .month-card:not(.crypto) .mw-head > :nth-child(6) { grid-column: 6; }
  .month-card.crypto .mw { gap: 3px; margin-bottom: 3px; }
  .month-card .mw-head { margin-bottom: 4px; }
  .mw-head > div { font-size: 9.5px; letter-spacing: .8px; }

  .mc { min-height: 64px; padding: 5px 5px 4px; border-radius: 8px; gap: 0; }
  .mc:hover { transform: none; }
  .mc-top { justify-content: flex-start; }
  .mc-d { font-size: 11px; opacity: .85; }
  .mc-v { font-size: 13.5px; letter-spacing: -.5px; margin-top: auto; text-align: center; padding-bottom: 2px; }
  .month-card.crypto .mc-v { font-size: 10.5px; letter-spacing: -.6px; }
  .mc-v .pc, .mc-sub, .mc-flag, .mc-today, .mc-act, .mc-hn { display: none; }
  .mc.today { box-shadow: 0 0 0 2px var(--gold); }
  .mc-evs { position: absolute; top: 6px; right: 5px; padding: 0; margin: 0; gap: 2px; flex-wrap: nowrap; }
  .mc-ev { font-size: 0; padding: 0; border: 0; background: none; gap: 0; }
  .mc-ev i { width: 6px; height: 6px; }
  .mc-ev em { display: none; }
  .mc-closed { font-size: 7.5px; letter-spacing: .5px; margin-top: auto; text-align: center; }
  .so { margin: -2px; border-width: 1.5px; border-radius: 10px; }
  .so-tag { display: none; }

  .month-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .desk-legend { gap: 6px 12px; font-size: 11px; }
}
@media (max-width: 900px) { .tabs { scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; } }
.plan-paywith { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: -2px; }
