/* klecksograph™ — single-viewport app layout.
   Base skin: paper cream, ink black, rorschach red as the only accent.
   Corporate skin: off-white, institutional blue.
*/

:root {
  --paper:        #F3ECDB;
  --paper-deeper: #EBE2CC;
  --paper-card:   #F8F2E0;
  --ink:          #161210;
  --ink-soft:     #3A2F26;
  --ink-faint:    #8A7F6F;
  --accent:       #8F2A24;
  --accent-soft:  rgba(143, 42, 36, 0.14);
  --rule:         #C8BBA0;
  --shadow:       rgba(35, 24, 10, 0.18);
  --serif:        'Spectral', 'EB Garamond', Georgia, serif;
  --grotesk:      'Inter', 'Helvetica Neue', Arial, sans-serif;
}
body.is-corporate {
  --paper:        #F6F1E8;
  --paper-deeper: #ECE6DC;
  --paper-card:   #FBF6EB;
  --ink:          #1D222E;
  --ink-soft:     #3F4656;
  --ink-faint:    #7B8397;
  --accent:       #3E6BA3;
  --accent-soft:  rgba(62, 107, 163, 0.14);
  --rule:         #CFD4DE;
  --shadow:       rgba(29, 34, 46, 0.15);
  --serif:        'Lora', 'Tiempos Text', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body { display: flex; flex-direction: column; }

/* When the renato.design markup toolbar is injected (local dev), it adds a
   44px fixed bar at the top of the viewport and a pad div at the start of
   body. Ensure the pad holds its height inside the app's flex column so the
   bar doesn't overlap the site chrome. */
#rd-body-pad { flex: 0 0 44px; height: 44px; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
a:hover { border-bottom-color: var(--accent); }

/* ═══════════════ site chrome ═══════════════ */

.site-chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  height: 50px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  gap: 16px;
}
.chrome-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

/* Session progress — ten dots next to the wordmark */
.session-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--grotesk);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.session-progress[hidden] { display: none; }
.session-progress .prog-label {
  text-transform: uppercase;
  margin-right: 8px;
}
.session-progress .prog-count {
  margin-left: 8px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.prog-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rule);
  display: inline-block;
}
.prog-dot.done    { background: var(--ink); }
.prog-dot.current {
  background: var(--accent);
  width: 8px; height: 8px;
  box-shadow: 0 0 0 2px var(--accent-soft);
}

/* Session-control cluster (pause / continue / new session) */
.session-control { display: inline-flex; gap: 6px; margin-right: 6px; }
.session-control[hidden] { display: none; }
.btn-end-session {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 5px 10px;
  color: var(--ink-soft);
  font: inherit;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 3px;
}
.btn-end-session:hover { color: var(--accent); border-color: var(--accent); }
.btn-end-session[hidden] { display: none; }

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--ink);
}
.wordmark .wm-sup {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: super;
  color: var(--accent);
  font-style: italic;
  margin-left: 2px;
}
.wordmark .wm-tm {
  font-size: 9px;
  font-family: var(--grotesk);
  font-weight: 400;
  vertical-align: super;
  margin-left: 2px;
  color: var(--ink-faint);
}

.chrome-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--grotesk);
  font-size: 11px;
}
.chrome-nav > button {
  background: transparent;
  border: none;
  padding: 6px 10px;
  color: var(--ink-soft);
  font: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 3px;
}
.chrome-nav > button:hover { background: var(--accent-soft); color: var(--accent); }

.mode-switch-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 10px;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  font-family: var(--grotesk);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: lowercase;
}
.mode-switch {
  width: 32px; height: 18px;
  border-radius: 10px;
  background: var(--paper-deeper);
  border: 1px solid var(--rule);
  position: relative;
  cursor: pointer;
  padding: 0;
}
.mode-switch .ms-thumb {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink);
  top: 2px; left: 2px;
  transition: left 160ms ease, background 160ms ease;
}
.mode-switch.is-corporate .ms-thumb { left: 17px; background: var(--accent); }
.mode-lock {
  width: 18px; height: 18px;
  border: none; background: transparent;
  color: var(--ink-faint);
  cursor: pointer; font-size: 14px; padding: 0;
}
.mode-lock.is-locked { color: var(--accent); }

/* ═══════════════ session root — fills remaining height ═══════════════ */

.session-root {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ═══════════════ intro — fits one viewport ═══════════════ */

.intro {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 620px;
  margin: 0 auto;
  padding: 30px 32px;
  width: 100%;
  overflow-y: auto;
}
.intro-mark-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.intro-plate {
  width: 48px; height: 64px;
  display: grid; place-items: center;
  color: var(--ink-faint);
}
.intro-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.92;
}
.intro-eyebrow {
  font-family: var(--grotesk);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.intro-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}
.intro-lede {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 24px 0;
  max-width: 520px;
}

.intro-mode-group, .intro-doc-group {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px;
  font-family: var(--grotesk);
  font-size: 13px;
  width: 100%;
  max-width: 520px;
}
.intro-mode {
  display: grid;
  grid-template-columns: auto 88px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  cursor: pointer;
}
.intro-mode:hover { background: var(--accent-soft); }
.intro-mode-desc { color: var(--ink-faint); font-size: 12px; }
.intro-doc-label {
  font-family: var(--grotesk);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 2px;
}
.intro-doc-group label {
  display: flex; align-items: baseline; gap: 8px;
  padding: 3px 0;
  cursor: pointer;
}

.intro-btn {
  font-family: var(--grotesk);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 32px;
  background: var(--ink);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 140ms ease;
}
.intro-btn:hover { background: var(--accent); }
.intro-foot {
  margin-top: 16px;
  color: var(--ink-faint);
  font-size: 12px;
  font-style: italic;
}
.intro-backend-note {
  margin-top: 12px;
  font-family: var(--grotesk);
  font-size: 11px;
  color: var(--ink-faint);
}
.intro-backend-note .dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-faint);
  margin-right: 6px;
  vertical-align: middle;
}
.intro-backend-note.is-live .dot { background: var(--accent); }

/* ═══════════════ session two-column ═══════════════ */

.session-grid {
  display: grid;
  grid-template-columns: minmax(360px, 520px) 1fr;
  gap: 0;
  height: 100%;
  min-height: 0;
}
.session-grid.with-nerd {
  grid-template-columns: minmax(320px, 460px) 1fr minmax(280px, 380px);
}

.session-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 28px 28px;
  border-right: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
  min-height: 0;
  min-width: 0;
}
.plate-frame {
  position: relative;
  width: min(100%, calc((100vh - 140px) * 0.82));
  aspect-ratio: 0.82 / 1;
  background: var(--paper-deeper);
  border: 1px solid var(--rule);
  padding: 8px;
  box-shadow: 0 1px 0 var(--rule), 0 10px 28px rgba(35, 24, 10, 0.12);
  overflow: hidden;
}
/* Kerner scans are book pages — the text under each blot has been cropped
   away in the source asset. The mono-deck frame goes landscape so the blot
   fills it. */
.plate-frame.mono-deck {
  width: min(100%, calc((100vh - 140px) * 1.37));
  aspect-ratio: 1.37 / 1;
}
.plate-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  /* Paper-integrated: multiply blends scan whites into the paper */
  mix-blend-mode: multiply;
  filter: contrast(1.05);
}
.plate-roman {
  position: absolute;
  top: 8px;
  left: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-faint);
  line-height: 1;
}
.plate-progress {
  position: absolute;
  bottom: 10px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  font-family: var(--grotesk);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

body:not(.is-corporate) .plate-frame.red-accent {
  box-shadow: 0 1px 0 var(--rule), 0 8px 24px rgba(35, 24, 10, 0.10), 0 0 0 3px var(--accent-soft);
}

/* Reveal mark — positioned at the plate's bottom-right corner */
.reveal-mark {
  position: absolute;
  bottom: 36px;
  right: 24px;
  width: 20px;
  height: 9px;
  border: none;
  padding: 0;
  background: radial-gradient(ellipse at center, var(--ink) 10%, transparent 75%);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 400ms ease, transform 220ms ease;
  border-radius: 50%;
  transform: rotate(-18deg);
  z-index: 5;
}
.reveal-mark:hover { opacity: 0.9; transform: rotate(-18deg) scale(1.2); }

/* ═══════════════ transcript pane (right) ═══════════════ */

.session-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--paper);
  position: relative;
}
.transcript {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 32px 8px;
  scroll-behavior: smooth;
}
.transcript-inner { max-width: 620px; margin: 0 auto; }

.exchange {
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--rule);
}
.exchange:last-child { border-bottom: 0; }
.exchange-header {
  font-family: var(--grotesk);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.exchange-card { color: var(--accent); }
.exchange-seer p, .exchange-examiner p {
  margin: 2px 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}
.exchange-examiner p {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 14px;
  margin-left: 18px;
  margin-top: 4px;
}
.exchange-voice {
  display: none;   /* the italic distinction does the work; no chatty labels */
}
.exchange-tags {
  display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle;
}
.exchange-tags .tag {
  font-family: var(--grotesk);
  font-size: 9px;
  padding: 0 4px;
  border: 1px solid var(--rule);
  color: var(--ink-faint);
  border-radius: 2px;
}
.exchange-closing {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 14px;
}

.thinking {
  color: var(--ink-faint);
  font-family: var(--grotesk);
  font-size: 12px;
  font-style: italic;
  padding: 6px 0;
}

/* Input / advance controls pinned at the bottom of the transcript pane */
.session-controls {
  flex: 0 0 auto;
  padding: 12px 32px 16px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.session-controls-inner {
  max-width: 620px;
  margin: 0 auto;
}
.seer-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.seer-input-row textarea {
  font: inherit;
  font-size: 15px;
  background: var(--paper-deeper);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 10px;
  resize: none;
  min-height: 56px;
  width: 100%;
}
.seer-input-label {
  font-family: var(--grotesk);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 4px;
}
.seer-input-hint {
  font-family: var(--grotesk);
  font-size: 10px;
  color: var(--ink-faint);
  margin-top: 4px;
}

.btn {
  font-family: var(--grotesk);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: var(--ink);
  color: #ffffff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); }
.btn-subtle {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
}
.btn-subtle:hover { color: var(--accent); border-color: var(--accent); background: transparent; }

.advance-row { display: flex; justify-content: flex-end; }

/* ═══════════════ reveal view — takes over the whole session area ═══════════════ */

.reveal {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.reveal-tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--rule);
  padding: 0 32px;
  height: 46px;
}
.reveal-tab {
  font-family: var(--grotesk);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 14px;
  background: transparent;
  border: none;
  color: var(--ink-faint);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.reveal-tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.reveal-spacer { flex: 1; }
.reveal-action {
  font-family: var(--grotesk);
  font-size: 11px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  cursor: pointer;
  text-transform: lowercase;
}
.reveal-action:hover { color: var(--accent); border-color: var(--accent); }

.reveal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 28px 32px 40px;
}
.reveal-piece { max-width: 680px; margin: 0 auto; }
.reveal-proof { max-width: 960px; margin: 0 auto; }

.reveal-piece p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 18px 0;
  text-wrap: pretty;
}
body.is-corporate .reveal-piece p {
  font-size: 15px;
  line-height: 1.65;
}

.proof-row {
  display: grid;
  grid-template-columns: 160px 1fr 1.2fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.proof-row.has-frame-break {
  background: var(--accent-soft);
  margin: 0 -12px;
  padding: 18px 12px;
}
.proof-card-roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.proof-card img {
  max-width: 100%;
  border: 1px solid var(--rule);
  background: var(--paper-deeper);
  mix-blend-mode: multiply;
}
.proof-label {
  font-family: var(--grotesk);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.proof-label.small { margin-top: 8px; }
.proof-response p, .proof-passage p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.proof-examiner { font-style: italic; color: var(--ink-soft); }

/* ═══════════════ nerd panel ═══════════════ */

.nerd-panel {
  border-left: 1px solid var(--rule);
  padding: 20px 22px;
  font-size: 13px;
  overflow-y: auto;
  min-height: 0;
  background: var(--paper);
}
.nerd-weather {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.meter { display: flex; flex-direction: column; gap: 3px; }
.meter-label {
  font-family: var(--grotesk);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.meter-bar {
  display: block;
  height: 3px;
  background: var(--paper-deeper);
  position: relative;
  border-radius: 1px;
  overflow: hidden;
}
.meter-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 400ms ease;
}
.nerd-passage {
  padding: 10px 0;
  border-bottom: 1px dotted var(--rule);
}
.nerd-passage-label {
  font-family: var(--grotesk);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.nerd-passage-body {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

/* ═══════════════ panel overlay ═══════════════ */

.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 30px 20px;
}
.panel-overlay[hidden] { display: none; }
.panel {
  width: min(880px, 100%);
  max-height: 85vh;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 36px var(--shadow);
  display: flex;
  flex-direction: column;
}
.panel > header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 24px 10px;
  border-bottom: 1px solid var(--rule);
}
.panel > header h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
}
.panel-close {
  background: transparent; border: none; font-size: 22px;
  color: var(--ink-faint); cursor: pointer; padding: 0 4px;
}
.panel-close:hover { color: var(--accent); }
.panel-body { overflow-y: auto; padding: 18px 24px 24px; }

/* Concordance */
.concord-controls {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--grotesk); font-size: 11px;
}
.concord-controls label {
  display: inline-flex; align-items: center; gap: 5px; margin-right: 10px;
}
.concord-entries { display: grid; gap: 14px; }
.concord-entry { padding: 10px 0; border-bottom: 1px dotted var(--rule); }
.concord-entry header {
  display: flex; gap: 10px;
  font-family: var(--grotesk); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 5px;
}
.concord-date { color: var(--accent); }
.concord-entry h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 15px; margin: 0 0 5px 0;
}
.concord-entry p {
  margin: 0; font-size: 14px; line-height: 1.55;
  color: var(--ink); text-wrap: pretty;
}
.concord-foot {
  margin-top: 16px; padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-family: var(--grotesk); font-size: 10px;
  color: var(--ink-faint);
}

/* Help */
.help-entries { display: grid; gap: 14px; }
.help-entry h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 15px; margin: 0 0 5px 0;
}
.help-entry p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }

/* Notebook */
.notebook-empty { color: var(--ink-faint); font-style: italic; font-size: 14px; }
.notebook-list { display: grid; gap: 10px; }
.notebook-entry {
  display: block;
  text-align: left;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--paper-deeper);
  font: inherit;
  cursor: pointer;
  position: relative;
  transition: border-color 120ms ease, background 120ms ease;
}
.notebook-entry:hover {
  border-color: var(--accent);
  background: var(--paper-card);
}
.notebook-entry header {
  font-family: var(--grotesk); font-size: 10px;
  letter-spacing: 0.12em; color: var(--ink-faint);
  margin-bottom: 4px;
}
.notebook-entry p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.notebook-arrow {
  position: absolute;
  top: 12px; right: 14px;
  font-family: var(--grotesk);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 120ms ease;
}
.notebook-entry:hover .notebook-arrow { opacity: 1; }
.notebook-foot { margin-top: 16px; }

/* Settings */
.settings h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 15px; margin: 6px 0 4px;
}
.settings-note { color: var(--ink-soft); font-size: 13px; margin: 0 0 10px; }
.settings-row {
  display: flex; gap: 18px;
  padding: 8px 0 14px;
  font-family: var(--grotesk); font-size: 12px;
}
.settings-field {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.settings-field span {
  font-family: var(--grotesk); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.settings-field input {
  font-family: var(--grotesk); font-size: 12px;
  padding: 7px 9px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule);
}
.settings-hint { font-size: 11px; color: var(--ink-faint); margin: 3px 0 14px 0; }
.settings-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--grotesk); font-size: 12px;
  padding: 6px 0;
}

/* About */
.about p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.about-fine { color: var(--ink-faint); font-size: 12px; }

/* Konami */
.konami-ping {
  position: fixed;
  top: 60px; right: 22px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-family: var(--grotesk);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  animation: konami-in 400ms ease;
}
@keyframes konami-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════ responsive ═══════════════ */

@media (max-width: 900px) {
  .site-chrome { padding: 0 12px; }
  .chrome-nav { font-size: 10px; gap: 0; }
  .session-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 42%) 1fr;
  }
  .session-grid.with-nerd {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(200px, 36%) 1fr minmax(140px, 30%);
  }
  .session-plate { border-right: 0; border-bottom: 1px solid var(--rule); padding: 14px; }
  .transcript, .session-controls { padding-left: 16px; padding-right: 16px; }
  .nerd-panel { border-left: 0; border-top: 1px solid var(--rule); }
  .reveal-body { padding: 20px 16px 40px; }
  .proof-row { grid-template-columns: 1fr; gap: 8px; }
}
