/* ============================================================
   SHU HA RI viewer — layout + components
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }

/* ---------- app shell ---------- */
.app {
  display: grid;
  grid-template-columns: 232px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
  height: 100vh;
}

/* ---------- sidebar ---------- */
.sidebar {
  grid-area: sidebar;
  border-right: 1px solid var(--panel-border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}
.brand {
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--hairline);
}
.brand .mark {
  font-family: var(--f-display);
  font-size: var(--fs-h);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  color: var(--text-strong);
}
.brand .tag {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  margin-top: 3px;
}
.nav { padding: 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.nav a {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  color: var(--text-muted);
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: color .12s, border-color .12s, background .12s;
}
.nav a:hover { color: var(--text); border-color: var(--panel-border); }
.nav a.active {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.nav a .soon {
  font-family: var(--f-data);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2px 5px;
}
.sidebar .foot {
  margin-top: auto;
  padding: 14px 20px;
  border-top: 1px solid var(--hairline);
  font-family: var(--f-data);
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- topbar ---------- */
.topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--panel-border);
  background: var(--surface);
}
.topbar h1 {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  color: var(--text-strong);
  margin: 0;
}
.topbar .sub {
  font-family: var(--f-data);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: var(--ls-tight);
}
.topbar .spacer { flex: 1; }

.theme-toggle {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle:hover { border-color: var(--accent-line); color: var(--text-strong); }

/* ---------- main ---------- */
.main {
  grid-area: main;
  overflow-y: auto;
  padding: 22px 24px 40px;
  min-height: 0;
}
.section-title {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 4px 0 14px;
}
.section + .section { margin-top: 30px; }

/* ---------- cards / panels ---------- */
.card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--surface);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--panel-border-soft);
}
.card-head .t {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text);
  text-transform: uppercase;
}
.card-body { padding: 16px; }

/* ---------- KPI tiles ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.kpi {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 14px 16px;
}
.kpi .label {
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.kpi .value {
  font-family: var(--f-data);
  font-size: var(--fs-kpi);
  font-weight: 700;
  color: var(--text-strong);
  margin-top: 6px;
  line-height: 1;
}
.kpi .value.pos { color: var(--pos); }
.kpi .value.neg { color: var(--neg); }
.kpi .foot {
  font-family: var(--f-data);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.06em;
}

/* the n-badge — statistical honesty, always visible */
.nbadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-data);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2px 7px;
}
.nbadge.ok { color: var(--accent); border-color: var(--accent-line); }

/* ---------- session / contrast cards ---------- */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.scard {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scard.is-warn { border-color: var(--warn-line); background: var(--warn-soft); }
.scard .s-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.scard .s-name {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-strong);
}
.scard .s-net {
  font-family: var(--f-data);
  font-size: 20px;
  font-weight: 700;
}
.scard .s-net.pos { color: var(--pos); }
.scard .s-net.neg { color: var(--neg); }
.scard .s-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.scard .s-stats .cell { }
.scard .s-stats .cell .k {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scard .s-stats .cell .v {
  font-family: var(--f-data);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 3px;
}

/* ---------- warning badge ---------- */
.warn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-data);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 4px 8px;
  background: var(--warn-soft);
}
.warn-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warn);
}

/* ---------- contrast / leak block ---------- */
.leak {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.leak .pane { padding: 4px 2px; }
.leak .pane .k {
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.leak .pane .v {
  font-family: var(--f-data);
  font-size: 26px;
  font-weight: 700;
  margin-top: 6px;
}
.leak .pane .v.pos { color: var(--pos); }
.leak .pane .v.neg { color: var(--neg); }
.leak .pane .m {
  font-family: var(--f-data);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}
.leak .vs {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* ---------- table ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-data);
  font-size: var(--fs-data);
}
table.tbl th {
  text-align: right;
  font-family: var(--f-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--panel-border);
  white-space: nowrap;
}
table.tbl th:first-child, table.tbl td:first-child { text-align: left; }
table.tbl td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  white-space: nowrap;
}
table.tbl tr:hover td { background: var(--surface); }
table.tbl td.pos { color: var(--pos); font-weight: 600; }
table.tbl td.neg { color: var(--neg); font-weight: 600; }
table.tbl td .rowname { font-family: var(--f-display); font-weight: 600; color: var(--text-strong); letter-spacing: 0.04em; }
table.tbl tr.is-warn td { background: var(--warn-soft); }

/* ---------- calendar heatmap ---------- */
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal .dow {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding-bottom: 2px;
}
.cal .cell {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 54px;
}
.cal .cell.empty { border-color: transparent; background: transparent; }
.cal .cell .d { font-family: var(--f-data); font-size: 10px; color: var(--text-muted); }
.cal .cell .p { font-family: var(--f-data); font-size: 11px; font-weight: 700; }
.cal .cell .p.pos { color: var(--pos); }
.cal .cell .p.neg { color: var(--neg); }
.cal .cell .n { font-family: var(--f-data); font-size: 8px; color: var(--text-muted); }

/* ---------- chart holder ---------- */
.chart-holder { position: relative; height: 240px; }

/* ---------- placeholder screens ---------- */
.placeholder {
  border: 1px dashed var(--panel-border);
  border-radius: var(--radius);
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
}
.placeholder .big {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text);
  text-transform: uppercase;
}
.placeholder .sm { margin-top: 10px; font-size: 13px; }

/* ============================================================
   SENSEI — coach chat + voice picker
   ============================================================ */
.sensei-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

/* ---------- chat card ---------- */
.chat-card { display: flex; flex-direction: column; min-height: 0; }
.chat-head-controls { display: flex; align-items: center; gap: 10px; }

.speak-toggle {
  font-family: var(--f-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .12s, border-color .12s, background .12s;
}
.speak-toggle.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.speak-toggle:hover { color: var(--text-strong); }

.chat-thread {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 52vh;
  min-height: 320px;
  overflow-y: auto;
}
.msg { display: flex; flex-direction: column; gap: 5px; max-width: 82%; }
.msg .who {
  font-family: var(--f-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.msg .bubble {
  border: 1px solid var(--panel-border-soft);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: var(--fs-body);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.sensei { align-self: flex-start; }
.msg.sensei .bubble { background: var(--surface-2); color: var(--text); border-left: 2px solid var(--accent-line); }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.user .bubble { background: var(--accent-soft); color: var(--text-strong); border-color: var(--accent-line); }
.msg .tts-note {
  font-family: var(--f-data);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--warn);
}

.thinking { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); }
.thinking .dots { display: inline-flex; gap: 3px; }
.thinking .dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: sensei-blink 1.1s infinite ease-in-out both;
}
.thinking .dots i:nth-child(2) { animation-delay: .18s; }
.thinking .dots i:nth-child(3) { animation-delay: .36s; }
@keyframes sensei-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- composer ---------- */
.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--panel-border-soft);
}
.composer textarea {
  flex: 1;
  resize: none;
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  max-height: 140px;
  min-height: 42px;
}
.composer textarea:focus { outline: none; border-color: var(--accent-line); }
.composer textarea::placeholder { color: var(--text-muted); }

.icon-btn, .send-btn {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color .12s, border-color .12s, background .12s;
}
.icon-btn {
  font-size: 15px;
  color: var(--text-mid);
  background: transparent;
  border: 1px solid var(--panel-border);
  height: 42px;
  width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { color: var(--text-strong); border-color: var(--accent-line); }
.icon-btn.listening { color: var(--neg); border-color: var(--neg-line); background: var(--neg-soft); animation: sensei-pulse 1.1s infinite; }
@keyframes sensei-pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.send-btn {
  font-size: var(--fs-label);
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  height: 42px;
  padding: 0 18px;
}
.send-btn:hover { filter: brightness(1.08); }
.send-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- voice picker ---------- */
.voice-note {
  font-family: var(--f-data);
  font-size: 11px;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--panel-border-soft);
  line-height: 1.5;
}
.voice-toggle-head {
  cursor: pointer;
  user-select: none;
}
.voice-toggle-head .chev { font-family: var(--f-data); color: var(--text-muted); transition: transform .15s; }
.voice-card.collapsed .chev { transform: rotate(-90deg); }
.voice-card.collapsed .voice-body { display: none; }

.voice-list { display: flex; flex-direction: column; }
.voice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}
.voice-row:last-child { border-bottom: none; }
.voice-row.selected { background: var(--accent-soft); }
.voice-row .v-main { flex: 1; min-width: 0; }
.voice-row .v-name {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}
.gender-chip {
  font-family: var(--f-data);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2px 6px;
}
.voice-row .v-desc { font-family: var(--f-data); font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.voice-row .v-pending {
  font-family: var(--f-data);
  font-size: 10px;
  color: var(--warn);
  margin-top: 4px;
}
.voice-row .v-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.play-btn, .select-btn {
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 7px 11px;
  cursor: pointer;
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--panel-border);
  transition: color .12s, border-color .12s, background .12s;
}
.play-btn:hover:not(:disabled), .select-btn:hover:not(:disabled) { color: var(--text-strong); border-color: var(--accent-line); }
.play-btn:disabled, .select-btn:disabled { opacity: .4; cursor: not-allowed; }
.select-btn.active {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
  cursor: default;
}

/* ---------- misc ---------- */
.hint {
  font-family: var(--f-data);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.6;
}
.error {
  border: 1px solid var(--neg-line);
  background: var(--neg-soft);
  color: var(--neg);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13px;
}

/* ============================================================
   Login screen — full-screen gate shown before the app shell.
   Uses the same tokens (dark default + light overrides).
   ============================================================ */
#login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 5vw;
  background: #0A0A0B;
  overflow: hidden;
  z-index: 1000;
}
/* Torii-gate hero ("calm mind, sharp execution" — from the brand board's
   alternate heroes), blurred into atmosphere; the gate sits on the right,
   the card lives in the mist on the left. */
#login-overlay::before {
  content: "";
  position: absolute;
  inset: -48px;
  background: url('../img/hero-torii.jpg') center 62% / cover no-repeat;
  filter: blur(7px) brightness(0.92) saturate(0.9);
  transform: scale(1.06);
  z-index: 0;
}
#login-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,6,7,0.90) 0%, rgba(6,6,7,0.55) 38%, rgba(6,6,7,0.22) 70%, rgba(6,6,7,0.38) 100%);
  z-index: 1;
}
#login-overlay .login-card { position: relative; z-index: 2; }
.login-card {
  width: 100%;
  max-width: 380px;
  border: 1px solid rgba(224, 224, 220, 0.14);
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}
/* the hero is a dark image — pin the card to dark-theme colours in BOTH themes */
#login-overlay .login-mark { color: #E0E0DC; }
#login-overlay .login-tag { color: #9a9a95; }
#login-overlay .login-label { color: #b9b9b4; }
#login-overlay .login-input {
  color: #E0E0DC;
  background: rgba(22, 22, 24, 0.85);
  border-color: rgba(224, 224, 220, 0.16);
}
#login-overlay .login-toggle,
#login-overlay .login-divider,
#login-overlay .login-hint { color: #9a9a95; }
@media (max-width: 760px) {
  #login-overlay { justify-content: center; padding: 24px; }
}
.login-brand { text-align: center; margin-bottom: 28px; }
.login-mark {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  color: var(--text-strong);
}
.login-tag {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  margin-top: 6px;
}
.login-form { display: flex; flex-direction: column; }
.login-label {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  color: var(--text-mid);
  margin: 14px 0 6px;
}
.login-input {
  font-family: var(--f-data);
  font-size: var(--fs-data);
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 11px 12px;
}
.login-input:focus { outline: none; border-color: var(--accent-line); }
.login-error {
  min-height: 16px;
  margin: 12px 0 4px;
  font-family: var(--f-data);
  font-size: 11px;
  color: var(--neg);
  letter-spacing: var(--ls-tight);
}
.login-btn {
  margin-top: 8px;
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
}
.login-btn:hover { filter: brightness(1.08); }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }

/* register / sign-in mode toggle */
.login-toggle {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: none;
  border: none;
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  color: var(--text-mid);
  cursor: pointer;
  text-align: center;
}
.login-toggle:hover { color: var(--text); }

/* OR divider above the Google button */
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 14px;
}
.login-divider-line {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.login-divider-text {
  font-family: var(--f-display);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-wide);
  color: var(--text-muted);
}

/* Continue with Google */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 11px 14px;
  cursor: pointer;
}
.google-btn:hover:not(:disabled) { border-color: var(--accent-line); }
.google-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.google-g {
  display: inline-flex;
  align-items: center;
}
.google-caption {
  margin-top: 8px;
  text-align: center;
  font-family: var(--f-data);
  font-size: 11px;
  letter-spacing: var(--ls-tight);
  color: var(--text-muted);
}

/* logout control in the sidebar footer */
.side-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}
.side-user {
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  color: var(--text-mid);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logout-btn {
  font-family: var(--f-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 5px 9px;
  cursor: pointer;
  flex-shrink: 0;
}
.logout-btn:hover { border-color: var(--neg-line); color: var(--neg); }

/* ============================================================
   STUDY — Best / Worst / Breakeven trade-review cards
   ============================================================ */

/* segmented tabs */
.study-tabs {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 3px;
}
.study-tab {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-mid);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .12s, background .12s;
}
.study-tab:hover { color: var(--text); }
.study-tab.active {
  color: var(--bg);
  background: var(--accent);
}
.study-tab-n {
  font-family: var(--f-data);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-mid);
}
.study-tab.active .study-tab-n {
  background: rgba(0, 0, 0, 0.18);
  color: var(--bg);
}

/* card list */
.study-list { display: flex; flex-direction: column; gap: 16px; }
.study-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 18px 18px;
}
.study-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.study-card-id { display: flex; flex-direction: column; gap: 5px; }
.study-tag {
  font-family: var(--f-data);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.study-title {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-strong);
}
.study-net { text-align: right; display: flex; flex-direction: column; gap: 3px; }
.study-net-k {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.study-net-v {
  font-family: var(--f-data);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.study-net-v.pos { color: var(--pos); }
.study-net-v.neg { color: var(--neg); }

.study-lead {
  font-family: var(--f-data);
  font-size: 12px;
  color: var(--text-mid);
  margin: 12px 0 10px;
  letter-spacing: 0.02em;
}

/* chart */
.study-chart-wrap {
  border: 1px solid var(--panel-border-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 6px 8px;
}
.study-chart { display: block; width: 100%; height: auto; }
.study-chart .c-body-up { fill: var(--pos); stroke: var(--pos); stroke-width: 0.5; }
.study-chart .c-body-dn { fill: var(--neg); stroke: var(--neg); stroke-width: 0.5; }
.study-chart .c-wick-up { stroke: var(--pos); stroke-width: 1; }
.study-chart .c-wick-dn { stroke: var(--neg); stroke-width: 1; }
.study-chart .c-entry { stroke: var(--text-strong); stroke-width: 1.4; }
.study-chart .c-exit  { stroke: var(--text-mid); stroke-width: 1.2; stroke-dasharray: 7 4; }
.study-chart .c-fav   { stroke: var(--pos); stroke-width: 1; stroke-dasharray: 1.5 4; opacity: 0.85; }
.study-chart .c-adv   { stroke: var(--neg); stroke-width: 1; stroke-dasharray: 1.5 4; opacity: 0.85; }
.study-chart .c-vmark { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.55; }
.study-chart .c-vlabel {
  font-family: var(--f-data);
  font-size: 9px;
  letter-spacing: 0.12em;
  fill: var(--text-muted);
}
.study-chart .c-price {
  font-family: var(--f-data);
  font-size: 11px;
  font-weight: 600;
}
.study-chart .c-lbl-entry { fill: var(--text-strong); }
.study-chart .c-lbl-exit  { fill: var(--text-mid); }
.study-chart .c-lbl-fav   { fill: var(--pos); }
.study-chart .c-lbl-adv   { fill: var(--neg); }
.study-chart .c-nodata {
  font-family: var(--f-data);
  font-size: 12px;
  fill: var(--text-muted);
}
/* setup vs trade zones — setup is the 3h of context read INTO the entry */
.study-chart .c-setup-zone { fill: var(--text-muted); opacity: 0.04; }
.study-chart .c-trade-zone { fill: var(--accent); opacity: 0.08; }
.study-chart .c-zone-label {
  font-family: var(--f-data);
  font-size: 9px;
  letter-spacing: 0.14em;
  fill: var(--text-muted);
}
.study-chart .c-zone-trade { fill: var(--accent); opacity: 0.9; }
/* axes */
.study-chart .c-grid { stroke: var(--hairline); stroke-width: 1; opacity: 0.5; }
.study-chart .c-axis-y,
.study-chart .c-axis-x {
  font-family: var(--f-data);
  font-size: 9px;
  fill: var(--text-muted);
}
.study-chart .c-axis-unit {
  font-family: var(--f-data);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--text-muted);
  opacity: 0.7;
}
/* key levels (prior-day H/L/C) */
.study-chart .c-level { stroke: var(--warn, #C9A227); stroke-width: 1; stroke-dasharray: 6 5; opacity: 0.55; }
.study-chart .c-level-tag {
  font-family: var(--f-data);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: var(--warn, #C9A227);
  opacity: 0.9;
}
.study-chart .c-lbl-level { fill: var(--warn, #C9A227); }
/* replay playhead */
.study-chart .c-playhead { stroke: var(--text-strong); stroke-width: 1; opacity: 0.5; stroke-dasharray: 3 3; }
.study-chart .c-playprice { stroke: var(--text-strong); stroke-width: 1; opacity: 0.3; }
.study-chart .c-playdot { fill: var(--text-strong); }
.study-chart .c-lbl-play { fill: var(--text-strong); font-weight: 700; }

/* replay controls */
.study-replay-btn {
  font-family: var(--f-data);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 4px 11px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.study-replay-btn:hover { background: var(--accent); color: #fff; }
.replay-status { min-height: 30px; margin-top: 6px; }
.replay-scan { font-size: 11px; color: var(--text-muted); font-family: var(--f-data); }
.replay-count { color: var(--text-mid); }
.replay-decide {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--warn, #C9A227);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--warn, #C9A227) 12%, transparent);
  font-size: 12px; line-height: 1.4; color: var(--text);
}
.rp-reveal {
  flex: none;
  font-family: var(--f-display); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--ls-wide); text-transform: uppercase; color: #fff;
  background: var(--accent); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 7px 12px; cursor: pointer;
}
.replay-outcome {
  padding: 8px 12px; border-radius: var(--radius);
  font-family: var(--f-data); font-size: 13px; font-weight: 600;
  border: 1px solid var(--panel-border-soft); background: var(--surface-2);
}
.replay-outcome.pos { color: var(--pos); }
.replay-outcome.neg { color: var(--neg); }
.replay-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rp-btn {
  font-family: var(--f-data); font-size: 13px; line-height: 1;
  color: var(--text-mid); background: var(--surface-2);
  border: 1px solid var(--panel-border-soft); border-radius: var(--radius);
  padding: 6px 9px; cursor: pointer; min-width: 30px;
}
.rp-btn:hover { color: var(--text); border-color: var(--panel-border); }
.rp-play.on { color: var(--accent); border-color: var(--accent-line); }
.rp-speed { min-width: 34px; }
.rp-exit { margin-left: auto; }
.replay-scrub { flex: 1; accent-color: var(--accent); cursor: pointer; }

/* blind mode — while replaying, mask everything that would spoil the outcome */
.replay-blind .outcome-cell .v { filter: blur(7px); opacity: 0.45; user-select: none; }
.replay-blind .study-net-v,
.replay-blind .study-lead { filter: blur(7px); opacity: 0.45; user-select: none; }
.replay-blind .study-col-read { position: relative; }
.replay-blind .study-col-read .study-sensei {
  filter: blur(9px);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}
.replay-blind .study-col-read::after {
  content: "hidden until you've made your call";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-data); font-size: 12px; letter-spacing: 0.04em;
  color: var(--text-muted); text-align: center;
}

/* timeframe switcher */
.study-tf {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 8px;
}
.study-tf-btn {
  font-family: var(--f-data);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--surface-2);
  border: 1px solid var(--panel-border-soft);
  border-radius: var(--radius);
  padding: 4px 11px;
  cursor: pointer;
  transition: color .12s, border-color .12s, background .12s;
}
.study-tf-btn:hover { color: var(--text); border-color: var(--panel-border); }
.study-tf-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.study-tf-hint {
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.study-date {
  display: block;
  margin-top: 3px;
  font-family: var(--f-data);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
@media (max-width: 720px) { .study-tf-hint { display: none; } }

/* stat strip */
.study-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 14px 0;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.study-strip .cell { display: flex; flex-direction: column; gap: 4px; }
.study-strip .cell .k {
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.study-strip .cell .v {
  font-family: var(--f-data);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.study-strip .cell .v.pos { color: var(--pos); }
.study-strip .cell .v.neg { color: var(--neg); }
.study-strip .cell .v .pos { color: var(--pos); }
.study-strip .cell .v .neg { color: var(--neg); }

/* Sensei's pre-computed read — readable offline, theme-aware */
.study-sensei {
  margin: 16px 0 2px;
  padding: 0;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  overflow: hidden;
}
.study-sensei-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--accent-line);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.study-sensei-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent);
}
.study-sensei-head::before {
  content: "守";
  font-size: 15px;
  line-height: 1;
  opacity: 0.8;
}
.s-grades { display: flex; gap: 8px; }
.s-grade {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 10px;
  border: 1px solid var(--panel-border-soft);
  border-radius: 999px;
  background: var(--surface-1);
}
.s-grade-k {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.s-grade-v {
  font-family: var(--f-data);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.s-grade-v.g-pos { color: var(--pos); }
.s-grade-v.g-mid { color: var(--warn, #C9A227); }
.s-grade-v.g-neg { color: var(--neg); }
.study-sensei-body {
  padding: 14px 16px;
  font-family: var(--f-data);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.study-sensei-body p { margin: 0 0 10px; }
.study-sensei-body p:last-child { margin-bottom: 0; }
.study-sensei-body .s-lead { color: var(--text-strong); font-weight: 600; }
.s-lesson {
  margin: 12px 0 2px;
  padding: 11px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.s-lesson-k {
  display: block;
  font-family: var(--f-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.s-lesson p { margin: 0; }

/* study card body: chart 2/3 left, Sensei's comments 1/3 right (desktop).
   Columns are equal height; the chart centres vertically in its column so the
   stat strip bottom-aligns with the bottom of Sensei's read. */
.study-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 10px;
}
.study-col-chart, .study-col-read { min-width: 0; } /* let the SVG shrink, no overflow */
.study-col-read .study-sensei { margin: 0; }
@media (max-width: 900px) {
  .study-main { grid-template-columns: 1fr; }
}

/* reflection → live coaching loop */
.study-reflect {
  margin: 14px 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--panel-border-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.study-reflect-head {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-strong);
  margin-bottom: 4px;
}
.study-reflect-sub {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.study-reflect-sub em { color: var(--text-mid); font-style: italic; }
.study-reflect-input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--f-data);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface-1);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  resize: vertical;
}
.study-reflect-input:focus {
  outline: none;
  border-color: var(--accent-line);
}
.study-reflect-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.study-coach {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 9px 16px;
  cursor: pointer;
  transition: opacity .12s;
}
.study-coach:hover { opacity: 0.9; }
.study-coach:disabled { opacity: 0.55; cursor: default; }
.study-reflect-note { font-size: 12px; color: var(--neg); }
.study-coach-out {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--accent-line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-family: var(--f-data);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.study-coach-head {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.study-coach-out p { margin: 0 0 8px; }
.study-coach-out p:last-child { margin-bottom: 0; }
.study-coach-stamp {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ask sensei */
.study-ask {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 9px 16px;
  cursor: pointer;
  transition: color .12s, border-color .12s, background .12s;
}
.study-ask:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

@media (max-width: 720px) {
  .study-strip { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Stop / Exit Lab ---------- */
.el-intro { margin-bottom: 16px; }
.el-method { font-family: var(--f-data); font-size: 12px; line-height: 1.5; color: var(--text-muted); margin: 0 0 10px; }
.el-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--text-mid); font-family: var(--f-data); }
.el-meta b { color: var(--text-strong); }
.el-headline {
  padding: 16px 18px; border: 1px solid var(--accent-line);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  background: var(--accent-soft);
}
.el-headline-k { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.el-headline-v { font-size: 17px; font-weight: 600; color: var(--text); }
.el-vs { font-size: 13px; color: var(--text-muted); font-weight: 400; margin-left: 6px; }
.el-caveat { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin: 10px 0 0; }
.el-tablewrap { overflow-x: auto; }
.el-table { width: 100%; border-collapse: collapse; font-family: var(--f-data); font-size: 13px; }
.el-table th {
  text-align: left; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--hairline);
}
.el-table th.num, .el-table td.num { text-align: right; }
.el-table td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); color: var(--text); white-space: nowrap; }
.el-table .num { font-variant-numeric: tabular-nums; }
.el-table .pos { color: var(--pos); }
.el-table .neg { color: var(--neg); }
.el-table .muted { color: var(--text-muted); }
.el-strat { font-weight: 600; }
.row-actual td { color: var(--text-mid); background: var(--surface-2); }
.row-actual .el-strat { color: var(--text); }
.row-best td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.el-tag { margin-left: 8px; font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-line); border-radius: 999px; padding: 2px 7px; }
.el-verdict { font-size: 10px; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--panel-border-soft); }
.el-verdict.v-robust { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 40%, transparent); }
.el-verdict.v-fitonly { color: var(--warn, #C9A227); border-color: color-mix(in srgb, var(--warn, #C9A227) 40%, transparent); }
.el-verdict.v-neg { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 40%, transparent); }
.el-verdict.v-insuf { color: var(--text-muted); }
.el-note { margin-top: 14px; font-size: 11px; line-height: 1.5; color: var(--text-muted); font-family: var(--f-data); }
.el-verdict.v-valonly { color: var(--text-mid); border-color: var(--panel-border); }

/* ---------- Journal ---------- */
.jn-intro { font-family: var(--f-data); font-size: 12px; color: var(--text-muted); margin: 0 0 16px; }
.jn-list { display: flex; flex-direction: column; gap: 14px; }
.jn-card { border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; }
.jn-trade { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.jn-tag { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--hairline); border-radius: 999px; padding: 2px 8px; }
.jn-sym { font-family: var(--f-display); font-size: 15px; font-weight: 600; color: var(--text-strong); }
.jn-date { font-family: var(--f-data); font-size: 11px; color: var(--text-muted); }
.jn-net { margin-left: auto; font-family: var(--f-data); font-size: 16px; font-weight: 700; }
.jn-net.pos { color: var(--pos); } .jn-net.neg { color: var(--neg); }
.jn-note-k, .jn-coach-k { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.jn-note { font-family: var(--f-data); font-size: 13px; line-height: 1.55; color: var(--text); }
.jn-note p { margin: 0; }
.jn-coach { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--accent-soft); }
.jn-coach-k { color: var(--accent); }
.jn-coach p { margin: 0 0 8px; font-family: var(--f-data); font-size: 13px; line-height: 1.55; color: var(--text); }
.jn-coach p:last-child { margin-bottom: 0; }
.jn-stamp { margin-top: 6px; font-size: 10px; letter-spacing: 0.08em; color: var(--text-muted); }
.jn-uncoached { margin-top: 12px; font-family: var(--f-data); font-size: 12px; color: var(--text-muted); }
.jn-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.jn-empty-big { font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-mid); margin-bottom: 10px; }
.jn-empty p { max-width: 460px; margin: 0 auto 18px; font-size: 13px; line-height: 1.6; }
.jn-cta { display: inline-block; font-family: var(--f-display); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 9px 16px; background: var(--accent-soft); }

/* ---------- Briefing ---------- */
.bf-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bf-count { padding: 14px 20px; border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--surface-2); min-width: 240px; }
.bf-count-k { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.bf-count-v { font-family: var(--f-data); font-size: 30px; font-weight: 700; color: var(--text-strong); margin-top: 4px; font-variant-numeric: tabular-nums; }
.bf-open .bf-count-v { color: var(--pos); }
.bf-closed .bf-count-v { color: var(--text-muted); }
.bf-arm { font-family: var(--f-data); font-size: 13px; color: var(--text-muted); padding: 12px 16px; border: 1px dashed var(--panel-border); border-radius: var(--radius); }
.bf-arm a { color: var(--accent); text-decoration: underline; }
.bf-arm.is-armed { color: var(--pos); border-style: solid; border-color: color-mix(in srgb, var(--pos) 40%, transparent); background: color-mix(in srgb, var(--pos) 8%, transparent); }
.bf-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .bf-grid { grid-template-columns: 1fr; } }
.bf-reads p { margin: 0 0 12px; font-family: var(--f-data); font-size: 13px; line-height: 1.6; color: var(--text); }
.bf-reads p:last-child { margin-bottom: 0; }
.bf-asof { font-family: var(--f-data); font-size: 10px; color: var(--text-muted); letter-spacing: 0.06em; }
.bf-level { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.bf-level:last-child { border-bottom: 0; }
.bf-level-tag { font-family: var(--f-data); font-size: 11px; font-weight: 700; color: var(--warn, #C9A227); min-width: 38px; }
.bf-level-price { font-family: var(--f-data); font-size: 16px; font-weight: 700; color: var(--text-strong); }
.bf-level-note { font-size: 11px; color: var(--text-muted); }
.bf-contract { display: flex; flex-direction: column; gap: 10px; }
.bf-rule { display: flex; gap: 14px; align-items: baseline; }
.bf-rule .k { font-size: 9px; letter-spacing: 0.14em; color: var(--text-muted); min-width: 130px; }
.bf-rule .v { font-family: var(--f-data); font-size: 13px; color: var(--text); }
.bf-rule .v.neg { color: var(--neg); }

/* ---------- Checklist ---------- */
.cl-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cl-motto { font-family: var(--f-display); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-strong); }
.cl-score { font-family: var(--f-data); font-size: 12px; color: var(--text-muted); }
.cl-score b { color: var(--pos); font-size: 15px; }
.cl-sub { font-size: 12px; color: var(--text-muted); margin: 8px 0 0; }
.cl-gates { display: flex; flex-direction: column; gap: 12px; }
.cl-gate { border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--surface); padding: 14px 18px; }
.cl-gate.is-green { border-color: color-mix(in srgb, var(--pos) 45%, transparent); background: color-mix(in srgb, var(--pos) 5%, var(--surface)); }
.cl-gate-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.cl-num { font-family: var(--f-data); font-size: 12px; color: var(--text-muted); }
.cl-title { font-family: var(--f-display); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-strong); }
.cl-gsub { font-size: 11px; color: var(--text-muted); }
.cl-light { margin-left: auto; font-size: 14px; color: var(--text-muted); }
.cl-gate.is-green .cl-light { color: var(--pos); }
.cl-item { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "cb t" ". n"; column-gap: 10px; padding: 7px 0; cursor: pointer; }
.cl-item input { grid-area: cb; accent-color: var(--pos); width: 15px; height: 15px; margin-top: 2px; }
.cl-item-t { grid-area: t; font-family: var(--f-data); font-size: 13px; color: var(--text); }
.cl-item-n { grid-area: n; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cl-item.is-auto { cursor: default; opacity: 0.95; }
.cl-armrow { display: flex; align-items: center; gap: 14px; }
.cl-arm { font-family: var(--f-display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 13px 22px; border-radius: var(--radius); border: 1px solid var(--pos); background: var(--pos); color: #fff; cursor: pointer; }
.cl-arm:disabled { background: transparent; color: var(--text-muted); border-color: var(--panel-border); cursor: not-allowed; }
.cl-armed { font-family: var(--f-data); font-size: 14px; font-weight: 600; color: var(--pos); padding: 12px 18px; border: 1px solid color-mix(in srgb, var(--pos) 45%, transparent); border-radius: var(--radius); background: color-mix(in srgb, var(--pos) 8%, transparent); }
.cl-disarm { font-size: 11px; color: var(--text-muted); background: none; border: 1px solid var(--panel-border-soft); border-radius: var(--radius); padding: 8px 12px; cursor: pointer; }

/* ---------- Weekly Debrief ---------- */
.wk-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.wk-nav { font-size: 18px; line-height: 1; padding: 8px 14px; background: var(--surface-2); color: var(--text-mid); border: 1px solid var(--panel-border-soft); border-radius: var(--radius); cursor: pointer; }
.wk-nav:disabled { opacity: 0.35; cursor: default; }
.wk-title .wk-k { font-size: 9px; letter-spacing: 0.18em; color: var(--text-muted); }
.wk-title .wk-range { font-family: var(--f-display); font-size: 18px; font-weight: 700; color: var(--text-strong); }
.wk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.wk-stat { border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--surface-2); padding: 13px 16px; }
.wk-stat .k { font-size: 9px; letter-spacing: 0.14em; color: var(--text-muted); }
.wk-stat .v { font-family: var(--f-data); font-size: 24px; font-weight: 700; color: var(--text-strong); margin-top: 4px; }
.wk-stat .v.pos { color: var(--pos); } .wk-stat .v.neg { color: var(--neg); }
.wk-sub { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.wk-note { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
.wk-grade.g-A { color: var(--pos); } .wk-grade.g-B { color: var(--accent); }
.wk-grade.g-C { color: var(--warn, #C9A227); } .wk-grade.g-D, .wk-grade.g-F { color: var(--neg); }
.wk-gradenote { font-size: 11px; color: var(--text-muted); margin: 10px 0 0; }
.wk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .wk-cols { grid-template-columns: 1fr; } }
.wk-list p { margin: 0 0 10px; font-family: var(--f-data); font-size: 13px; line-height: 1.55; }
.wk-list p:last-child { margin-bottom: 0; }
.wk-list .pos-mark { color: var(--text); } .wk-list .neg-mark { color: var(--text); }
.wk-list .pos-mark::first-letter { color: var(--pos); }
.wk-list .neg-mark::first-letter { color: var(--warn, #C9A227); }
.wk-focus { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wk-focus-k { font-size: 10px; letter-spacing: 0.16em; color: var(--text-muted); }
.wk-chip { font-family: var(--f-data); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 999px; padding: 6px 13px; }

/* ---------- Goals ---------- */
.gl-k { font-size: 9px; letter-spacing: 0.18em; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.gl-edit { font-size: 10px; color: var(--text-muted); background: none; border: 1px solid var(--panel-border-soft); border-radius: var(--radius); padding: 3px 9px; cursor: pointer; }
.gl-edit:hover { color: var(--text); }
.gl-north-t { font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.45; color: var(--text-strong); margin: 10px 0 8px; }
.gl-quote { font-size: 12px; color: var(--text-muted); font-style: italic; }
.gl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .gl-grid { grid-template-columns: 1fr; } }
.gl-target { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gl-target-v { font-family: var(--f-data); font-size: 28px; font-weight: 700; color: var(--text-strong); }
.gl-target-sub { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.gl-target-cur { font-size: 12px; color: var(--text-muted); }
.gl-bar { height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--hairline); margin: 10px 0 14px; overflow: hidden; }
.gl-bar-fill { height: 100%; background: var(--accent); }
.gl-months { display: flex; flex-direction: column; gap: 7px; }
.gl-mrow { display: grid; grid-template-columns: 64px 1fr 90px; align-items: center; gap: 10px; font-family: var(--f-data); font-size: 12px; }
.gl-mk { color: var(--text-muted); }
.gl-mbar { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.gl-mfill { display: block; height: 100%; }
.pos-bg { background: var(--pos); } .neg-bg { background: var(--neg); }
.gl-mv { text-align: right; }
.gl-curnote { margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.gl-contract { display: flex; flex-direction: column; gap: 10px; }
.gl-crow { display: flex; gap: 10px; font-family: var(--f-data); font-size: 13px; line-height: 1.55; color: var(--text); }
.gl-cnum { color: var(--accent); font-weight: 700; }
.gl-sign { margin-top: 8px; font-size: 11px; color: var(--text-muted); font-style: italic; }

/* ---------- Live Session Guardian ---------- */
.lv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.lv-k { font-family: var(--f-display); font-size: 15px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-strong); }
.lv-sub2 { font-size: 12px; color: var(--text-muted); margin-top: 4px; max-width: 520px; }
.lv-savedbox { text-align: right; padding: 12px 18px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); }
.lv-savedbox .k { font-size: 9px; letter-spacing: 0.16em; color: var(--accent); }
.lv-savedbox .v { font-family: var(--f-data); font-size: 26px; font-weight: 700; color: var(--pos); margin-top: 2px; }
.lv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.lv-stat { border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--surface-2); padding: 10px 14px; }
.lv-stat .k { font-size: 8px; letter-spacing: 0.14em; color: var(--text-muted); }
.lv-stat .v { font-family: var(--f-data); font-size: 17px; font-weight: 700; color: var(--text-strong); margin-top: 3px; }
.lv-stat .v.pos { color: var(--pos); } .lv-stat .v.neg { color: var(--neg); }
.lv-sub { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.lv-locked { border-color: var(--neg); background: color-mix(in srgb, var(--neg) 10%, transparent); }
.lv-locked .v { color: var(--neg); }
.lv-cols { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .lv-cols { grid-template-columns: 1fr; } }
.lv-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.lv-lbl { font-size: 9px; letter-spacing: 0.14em; color: var(--text-muted); min-width: 70px; }
.lv-size { width: 90px; font-family: var(--f-data); font-size: 14px; color: var(--text); background: var(--surface-2); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 9px 10px; }
.lv-btn { font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; border-radius: var(--radius); padding: 11px 16px; cursor: pointer; border: 1px solid transparent; }
.lv-long { background: var(--pos); color: #fff; }
.lv-short { background: var(--neg); color: #fff; }
.lv-exit { background: transparent; color: var(--text); border-color: var(--panel-border); }
.lv-btns { gap: 8px; }
.lv-hint { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin: 4px 0 14px; }
.lv-demo { font-family: var(--f-data); font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; }
.lv-demo:hover { background: var(--accent); color: #fff; }
.lv-reset { font-size: 10px; color: var(--text-muted); background: none; border: 1px solid var(--panel-border-soft); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; }
.lv-feed { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; }
.lv-empty { font-size: 12px; color: var(--text-muted); }
.lv-ev { border: 1px solid var(--panel-border-soft); border-left: 3px solid var(--text-muted); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface-2); padding: 10px 14px; }
.lv-ev-head { display: flex; justify-content: space-between; gap: 10px; }
.lv-ev-title { font-family: var(--f-data); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: var(--text-strong); }
.lv-ev-ts { font-family: var(--f-data); font-size: 10px; color: var(--text-muted); }
.lv-ev-body { margin-top: 6px; }
.lv-ev-body p { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: var(--text); }
.lv-sensei { font-style: italic; }
.lv-jp { font-size: 14px; }
.lv-saved { font-family: var(--f-data); color: var(--pos); font-size: 11px; }
.lv-ev.is-ok { border-left-color: var(--pos); }
.lv-ev.is-warn { border-left-color: var(--warn, #C9A227); }
.lv-ev.is-block { border-left-color: var(--neg); background: color-mix(in srgb, var(--neg) 6%, var(--surface-2)); }
.lv-ev.is-meltdown { border-left-color: var(--neg); background: color-mix(in srgb, var(--neg) 12%, var(--surface-2)); }
.lv-ev.is-note { border-left-color: var(--panel-border); opacity: 0.85; }
.lv-ev.is-note .lv-ev-title { color: var(--text-muted); font-weight: 400; }

/* ---------- The Path (belts) ---------- */
.kpi-link { display: block; text-decoration: none; cursor: pointer; }
.kpi-link:hover { border-color: var(--accent-line); }
.bp-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.bp-badge { width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 10%, transparent); }
.bp-badge-kanji { font-size: 44px; color: var(--accent); line-height: 1; }
.bp-now { font-family: var(--f-display); font-size: 26px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-strong); }
.bp-note { font-size: 13px; color: var(--text-mid); margin-top: 4px; }
.bp-stats { display: flex; gap: 18px; margin-top: 10px; font-family: var(--f-data); font-size: 12px; color: var(--text-muted); }
.bp-stats b { color: var(--text-strong); font-size: 15px; }
.bp-next { margin-left: auto; padding: 12px 16px; border: 1px dashed var(--panel-border); border-radius: var(--radius); }
.bp-next .k { font-size: 9px; letter-spacing: 0.14em; color: var(--text-muted); }
.bp-next .v { font-family: var(--f-data); font-size: 13px; color: var(--text); margin-top: 4px; }
.bp-rule { font-size: 12px; color: var(--text-muted); margin: 16px 0 0; line-height: 1.55; }
.bp-rule b { color: var(--text-mid); }
.bp-ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.bp-step { border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--surface-2); padding: 12px 14px; text-align: center; opacity: 0.55; }
.bp-step.is-past { opacity: 0.85; border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.bp-step.is-now { opacity: 1; border-color: var(--accent); background: var(--accent-soft); }
.bp-kanji { display: block; font-size: 22px; color: var(--accent); }
.bp-name { display: block; font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-strong); margin-top: 4px; }
.bp-req { display: block; font-family: var(--f-data); font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.bp-days { display: flex; gap: 5px; flex-wrap: wrap; }
.bp-day { width: 16px; height: 16px; border-radius: 3px; display: inline-block; }
.bp-day.is-clean { background: var(--pos); opacity: 0.85; }
.bp-day.is-dirty { background: var(--neg); opacity: 0.6; }
.bp-dirty { margin-top: 14px; }
.bp-dirty p { margin: 0 0 6px; font-family: var(--f-data); font-size: 12px; color: var(--text-mid); }
.bp-cleanmsg { margin-top: 14px; font-size: 12px; color: var(--pos); }

/* ---------- calibration capture + voice debrief ---------- */
.study-grade-k { font-size: 9px; letter-spacing: 0.14em; color: var(--text-muted); }
.study-grades { display: inline-flex; gap: 4px; margin-right: 8px; }
.study-grade-btn { width: 30px; height: 30px; font-family: var(--f-data); font-size: 13px; font-weight: 700;
  color: var(--text-mid); background: var(--surface-2); border: 1px solid var(--panel-border-soft);
  border-radius: var(--radius); cursor: pointer; }
.study-grade-btn.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.rp-calls { display: inline-flex; gap: 4px; }
.rp-call { font-family: var(--f-data); font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--text-mid); background: var(--surface-2); border: 1px solid var(--panel-border-soft);
  border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.rp-call.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.wk-voice { font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--radius); padding: 12px 18px; cursor: pointer; }
.wk-voice:hover { background: var(--accent); color: #fff; }
.wk-voice:disabled { opacity: 0.6; }
.wk-voice-note { margin-left: 12px; font-size: 11px; color: var(--text-muted); }
.jn-cal .jn-cal-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.jn-cal .jn-cal-row:last-of-type { border-bottom: 0; }
.jn-cal-k { font-family: var(--f-data); font-size: 12px; font-weight: 700; color: var(--text-strong); }
.jn-cal-v { font-family: var(--f-data); font-size: 12px; color: var(--text); }
.jn-cal-note { margin: 10px 0 0; font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* ---------- ZEN concentration audio ---------- */
#zen-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 20px; line-height: 1; cursor: pointer;
  color: var(--accent); background: var(--surface);
  border: 1px solid var(--accent-line);
  box-shadow: 0 8px 26px rgba(0,0,0,0.4);
}
#zen-fab:hover { background: var(--accent-soft); }
#zen-panel {
  position: fixed; right: 22px; bottom: 78px; z-index: 900;
  width: 300px; padding: 16px;
  border: 1px solid var(--panel-border); border-radius: var(--radius);
  background: var(--surface); box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.zen-head { margin-bottom: 12px; }
.zen-title { font-family: var(--f-display); font-size: 14px; font-weight: 700; letter-spacing: 0.4em; color: var(--text-strong); }
.zen-sub { display: block; font-family: var(--f-data); font-size: 9px; color: var(--text-muted); margin-top: 3px; letter-spacing: 0.06em; }
.zen-modes { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.zen-mode { text-align: left; font-family: var(--f-data); font-size: 11px; color: var(--text-mid);
  background: var(--surface-2); border: 1px solid var(--panel-border-soft); border-radius: var(--radius);
  padding: 8px 11px; cursor: pointer; }
.zen-mode.active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.zen-play { width: 100%; font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 11px; cursor: pointer; margin-bottom: 10px; }
.zen-play.on { background: var(--surface-2); color: var(--accent); }
.zen-row { display: flex; align-items: center; gap: 9px; font-size: 9px; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 9px; }
.zen-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.zen-check { align-items: flex-start; letter-spacing: 0.02em; }
.zen-check span { font-size: 11px; color: var(--text); line-height: 1.45; }
.zen-check em { color: var(--text-muted); font-style: normal; font-size: 10px; }
.zen-check b { color: var(--accent); }
.zen-custom { width: 100%; box-sizing: border-box; font-family: var(--f-data); font-size: 11px;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--panel-border-soft);
  border-radius: var(--radius); padding: 8px; resize: vertical; margin-bottom: 8px; }
.zen-note { font-size: 10px; line-height: 1.5; color: var(--text-muted); margin: 0; }
.lv-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.lv-zen { font-family: var(--f-data); font-size: 11px; font-weight: 600; color: var(--accent);
  background: transparent; border: 1px solid var(--accent-line); border-radius: 999px;
  padding: 6px 13px; cursor: pointer; }
.lv-zen:hover { background: var(--accent-soft); }

/* ---------- Data Sync ---------- */
.ds-nowgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.ds-nowgrid .k { font-size: 9px; letter-spacing: 0.14em; color: var(--text-muted); }
.ds-nowgrid .v { font-family: var(--f-data); font-size: 20px; font-weight: 700; color: var(--text-strong); margin-top: 3px; }
.ds-nowgrid .v.ds-small { font-size: 12px; font-weight: 400; color: var(--text-mid); }
.ds-drop { border: 2px dashed var(--panel-border); border-radius: var(--radius); background: var(--surface);
  padding: 44px 24px; text-align: center; transition: border-color .15s, background .15s; }
.ds-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.ds-drop-big { font-size: 34px; color: var(--accent); }
.ds-drop-t { font-size: 15px; color: var(--text); margin: 10px 0 4px; }
.ds-drop-s { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.ds-pick { font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 11px 22px; cursor: pointer; }
.ds-hint { max-width: 640px; margin: 16px auto 0; font-size: 11.5px; line-height: 1.6; color: var(--text-muted); }
.ds-result { margin-top: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--panel-border); background: var(--surface-2); font-family: var(--f-data); font-size: 13px; line-height: 1.6; }
.ds-result.is-good { border-color: color-mix(in srgb, var(--pos) 45%, transparent); }
.ds-result.is-bad { border-color: color-mix(in srgb, var(--neg) 55%, transparent); }
.ds-result p { margin: 6px 0 0; }
.ds-warn { color: var(--warn, #C9A227); }
.ds-busy { color: var(--text-mid); }
.ds-reload { margin-top: 12px; font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 10px 16px; cursor: pointer; }
.ds-status .ds-strow { display: flex; justify-content: space-between; gap: 14px; font-family: var(--f-data); font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--hairline); }
.ds-status .ds-strow:last-child { border-bottom: 0; }
.ds-status .pos { color: var(--pos); } .ds-status .neg { color: var(--neg); } .ds-status .mut { color: var(--text-muted); }
.ds-note { margin-top: 14px; font-size: 11.5px; line-height: 1.6; color: var(--text-muted); }
