/* ==========================================================================
   GroupThinQ — modern classic
   A gallery, not a tomb: warm ivory surfaces, ink typography, gold-leaf
   accents, hairline rules, generous air. The Pantheon stays a dark,
   dramatic band — the one place the lights go down.
   ========================================================================== */

:root {
  /* canvas */
  --bg: #f5f0e6;
  --bg-deep: #ede5d4;
  --surface: #fffdf7;
  --line: #e0d5bd;
  --line-strong: #c9b88f;

  /* ink */
  --ink: #1d1810;
  --ink-soft: #3a3225;
  --muted: #7a6f5a;

  /* accents */
  --gold: #9c7c2e;
  --gold-bright: #c9a350;
  --gold-pale: #f0e3c2;
  --terracotta: #b35a37;
  --terracotta-deep: #8d3f24;
  --laurel: #5d7242;
  --laurel-deep: #44542f;

  /* the dark band (pantheon, footer of plinths) */
  --night: #171310;
  --night-2: #221c14;
  --night-text: #e9dec4;
  --night-muted: #a8987a;

  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --ui: "Inter", system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(50, 40, 20, .06), 0 4px 14px rgba(50, 40, 20, .07);
  --shadow-md: 0 2px 6px rgba(50, 40, 20, .08), 0 14px 38px rgba(50, 40, 20, .12);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 500px at 50% -8%, #fbf7ee 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* whisper of paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(120, 100, 60, .05) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* ---------- masthead ---------- */
.masthead {
  display: flex; align-items: center; gap: 2.2rem;
  padding: .95rem 2.4rem; position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 230, .85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(1.1);
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--gold); }
.brand-word { font-family: var(--display); font-size: 1.3rem; letter-spacing: .05em; }
.brand-word em { font-style: normal; color: var(--gold); }
.navlinks { display: flex; gap: 1.8rem; margin-left: .6rem; }
.navlinks a {
  color: var(--muted); text-decoration: none; font-family: var(--ui);
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: .3rem 0 .35rem; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s;
}
.navlinks a:hover, .navlinks a.active { color: var(--ink); border-bottom-color: var(--gold); }
.navlinks a.disabled { opacity: .35; pointer-events: none; }
.mode-badge {
  margin-left: auto; font-family: var(--ui); font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .38rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--gold); background: var(--surface);
}

/* Greek key band — a quiet signature, not a shout */
.meander {
  height: 10px; opacity: .4;
  background-image: repeating-linear-gradient(90deg,
    var(--gold) 0 2px, transparent 2px 8px,
    var(--gold) 8px 10px, transparent 10px 14px,
    var(--gold) 14px 22px, transparent 22px 28px);
  background-size: 28px 100%;
  mask-image: linear-gradient(to bottom, transparent 0 2px, #000 2px 8px, transparent 8px);
}

main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 2.4rem 2rem 4.5rem; }

/* ---------- typographic primitives ---------- */
h1.pagetitle {
  font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.1rem);
  text-align: center; color: var(--ink); letter-spacing: .04em; margin: 1.1rem 0 .5rem;
}
.pagesub {
  text-align: center; color: var(--muted); font-style: italic;
  font-size: 1.15rem; max-width: 640px; margin: 0 auto 2.6rem;
}

.section-title {
  font-family: var(--ui); font-weight: 700; font-size: .74rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 1rem; margin: 2.8rem 0 1.1rem;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, var(--line-strong), transparent); }

.rule-orn { display: flex; align-items: center; gap: 1rem; margin: 1.4rem auto; max-width: 420px; color: var(--gold); }
.rule-orn::before, .rule-orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--line-strong), transparent); }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.9rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card.parchment { box-shadow: var(--shadow-md); }
.card.parchment::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid var(--gold-pale); border-radius: calc(var(--radius) - 7px);
  pointer-events: none;
}

/* ---------- forms ---------- */
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.15rem 1.4rem; position: relative; }
.field label {
  display: block; font-family: var(--ui); font-weight: 600; font-size: .68rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--serif); font-size: 1.05rem; color: var(--ink);
  background: #fffefb; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: .6rem .8rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(156, 124, 46, .15);
}

.btn {
  font-family: var(--ui); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  font-size: .78rem; color: var(--bg); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px; padding: .85rem 2.1rem; cursor: pointer;
  text-decoration: none; display: inline-block;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(50, 40, 20, .2); background: #2e2618; }
.btn:disabled { opacity: .45; cursor: wait; transform: none; }
.btn.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none;
}
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn.small { padding: .5rem 1.2rem; font-size: .7rem; }

/* ---------- atrium hero ---------- */
.hero { text-align: center; padding: 2.4rem 0 .4rem; }
.hero .laurel { width: 110px; opacity: .85; margin-bottom: .4rem; }
.hero-claims { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; margin: 2rem auto .8rem; }
.claim { text-align: center; padding: 0 2rem; position: relative; }
.claim + .claim::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: var(--line-strong); }
.claim b { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--ink); display: block; }
.claim span { font-size: .8rem; color: var(--muted); font-family: var(--ui); }

/* ---------- model mix builder ---------- */
.mix-block { grid-column: 1 / -1; border-top: 1px dashed var(--line-strong); padding-top: 1.15rem; }
.mix-head { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; margin-bottom: .7rem; }
.mix-head label { margin-bottom: 0; }
.mix-tally { font-family: var(--ui); font-size: .74rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); margin-left: auto; }
.mix-tally.ok { color: var(--laurel); }
.mix-tally.bad { color: var(--terracotta-deep); }
.mix-rows { display: grid; gap: .55rem; }
.mix-row { display: grid; grid-template-columns: 1fr 92px 38px; gap: .6rem; align-items: center; }
.mix-row select, .mix-row input {
  font-family: var(--ui); font-size: .88rem; color: var(--ink);
  background: #fffefb; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: .55rem .7rem; outline: none; width: 100%;
}
.mix-row select:focus, .mix-row input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(156,124,46,.15); }
.mix-remove {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--muted); cursor: pointer; font-size: .85rem;
  transition: all .2s;
}
.mix-remove:hover { border-color: var(--terracotta); color: var(--terracotta); }
.mix-actions { display: flex; gap: .8rem; align-items: center; margin-top: .75rem; flex-wrap: wrap; }
.mix-add, .mix-even {
  font-family: var(--ui); font-size: .73rem; font-weight: 600; letter-spacing: .08em;
  background: transparent; border: 1px dashed var(--line-strong); border-radius: 999px;
  color: var(--muted); padding: .45rem 1.1rem; cursor: pointer; transition: all .2s;
}
.mix-add:hover, .mix-even:hover { border-color: var(--gold); color: var(--gold); }
.mix-why { font-family: var(--ui); font-size: .72rem; color: var(--muted); font-style: italic; margin-top: .55rem; min-height: 1em; }

/* model chips */
.model-chip {
  display: inline-block; font-family: var(--ui); font-size: .66rem; font-weight: 600;
  letter-spacing: .04em; padding: .2rem .62rem; border-radius: 999px;
  background: var(--gold-pale); color: #6b5418; border: 1px solid #ddc88f;
  white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}

/* population roster */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.pop-card { cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.pop-card:hover { transform: translateY(-3px); border-color: var(--gold-bright); box-shadow: var(--shadow-md); }
.pop-card h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.18rem; margin-bottom: .4rem; }
.pop-card .meta { font-family: var(--ui); font-size: .74rem; color: var(--muted); display: flex; gap: .45rem .9rem; flex-wrap: wrap; align-items: center; }
.status-pill { font-family: var(--ui); font-weight: 600; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .65rem; border-radius: 999px; border: 1px solid; }
.status-ready  { color: var(--laurel); border-color: #a9bd8d; background: #f0f4e8; }
.status-building { color: var(--gold); border-color: var(--gold-bright); background: var(--gold-pale); animation: pulse 1.6s infinite; }
.status-error { color: var(--terracotta-deep); border-color: #d8a18a; background: #f9ece5; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- THE PANTHEON (dark band, rotating wall) ---------- */
.pantheon-stage {
  position: relative; height: 560px; margin: 1.6rem 0 0; overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(900px 380px at 50% -10%, #2c2418 0%, transparent 65%),
    var(--night);
  border: 1px solid #322a1d;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .55), var(--shadow-md);
  perspective: 1400px; perspective-origin: 50% 42%;
  -webkit-user-select: none; user-select: none;
  cursor: grab;
}
.pantheon-stage:active { cursor: grabbing; }
.pantheon-stage::after {  /* floor glow */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 130px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(201, 163, 80, .16), transparent 70%);
  pointer-events: none;
}
.ring { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; will-change: transform; }
.face-frame {
  position: absolute; width: 150px; height: 196px; left: -75px; top: -98px;
  transform-style: preserve-3d; cursor: pointer;
  transition: filter .25s;
}
.face-frame .plinth {
  width: 100%; height: 100%; border-radius: 75px 75px 12px 12px; overflow: hidden;
  background: linear-gradient(170deg, #3a2f1f, #241b10);
  border: 1.5px solid rgba(201, 163, 80, .6);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .6), 0 12px 28px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column;
}
.face-frame svg { width: 100%; flex: 1; display: block; }

.face-holder { position: relative; width: 100%; height: 100%; flex: 1; }
.face-holder svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.face-holder .portrait {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .6s ease;
  filter: sepia(.22) saturate(.92) contrast(1.02);
}
.face-holder .portrait.loaded { opacity: 1; }
.face-frame .nameplate {
  font-family: var(--display); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  text-align: center; color: var(--gold-bright); padding: .32rem .2rem .42rem;
  background: linear-gradient(180deg, rgba(201, 163, 80, .18), rgba(201, 163, 80, .05));
  border-top: 1px solid rgba(201, 163, 80, .4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.face-frame:hover { filter: brightness(1.25) drop-shadow(0 0 14px rgba(232, 201, 122, .45)); }
.face-frame.verdict-pos .plinth { border-color: #8ea86a; box-shadow: inset 0 0 26px rgba(0,0,0,.6), 0 0 22px rgba(111,127,85,.55); }
.face-frame.verdict-neg .plinth { border-color: #c0674a; box-shadow: inset 0 0 26px rgba(0,0,0,.6), 0 0 22px rgba(179,90,55,.55); }
.pantheon-hint { text-align: center; color: var(--muted); font-style: italic; font-size: .95rem; margin-top: .8rem; }
.pantheon-toolbar { display: flex; justify-content: center; gap: 1rem; margin-top: 1.3rem; flex-wrap: wrap; }

/* ---------- drawer (agent dossier) ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer[aria-hidden="false"] { pointer-events: auto; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(25, 20, 12, .45); opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.drawer[aria-hidden="false"] .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 94vw);
  background: var(--surface);
  color: var(--ink); box-shadow: -24px 0 60px rgba(30, 24, 12, .3);
  transform: translateX(102%); transition: transform .38s cubic-bezier(.22, .9, .3, 1);
  overflow-y: auto; border-left: 1px solid var(--line);
}
.drawer[aria-hidden="false"] .drawer-panel { transform: translateX(0); }
.drawer-close {
  position: sticky; top: 14px; margin-left: calc(100% - 52px); z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--muted); font-size: .95rem; cursor: pointer;
  transition: all .2s;
}
.drawer-close:hover { color: var(--terracotta); border-color: var(--terracotta); }
.dossier { padding: 0 2rem 2.4rem; margin-top: -24px; }
.dossier-head { text-align: center; padding-top: .6rem; }
.dossier-head .cameo-lg {
  width: 168px; height: 168px; margin: 0 auto .5rem; border-radius: 50%; overflow: hidden;
  border: 3px double var(--gold-bright); box-shadow: var(--shadow-md); background: #241b10;
}
.dossier-head .cameo-lg svg { width: 100%; height: 100%; }
.dossier-head h2 { font-family: var(--display); font-weight: 600; font-size: 1.65rem; color: var(--ink); }
.dossier-head .epithet { font-style: italic; color: var(--terracotta); margin-bottom: .35rem; }
.dossier-head .demoline { font-family: var(--ui); font-size: .78rem; color: var(--muted); }
.dossier-head .mindline { margin-top: .45rem; }

.dossier .tabs { display: flex; justify-content: center; gap: .4rem; margin: 1.25rem 0; }
.dossier .tabs button {
  font-family: var(--ui); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .68rem;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: .48rem 1.25rem;
  color: var(--muted); cursor: pointer; transition: all .2s;
}
.dossier .tabs button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.trait-grid { display: grid; grid-template-columns: 196px 1fr; gap: 1.4rem; align-items: center; }
@media (max-width: 560px) { .trait-grid { grid-template-columns: 1fr; } }
.facet-list { display: grid; gap: .42rem; }
.facet-row { display: grid; grid-template-columns: 130px 1fr 38px; align-items: center; gap: .6rem; font-family: var(--ui); font-size: .74rem; color: var(--ink-soft); }
.facet-bar { height: 7px; border-radius: 4px; background: var(--bg-deep); overflow: hidden; }
.facet-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--laurel), var(--gold-bright)); }

.bio { font-size: 1.08rem; line-height: 1.68; margin: 1rem 0; color: var(--ink-soft); }
.tagrows { display: grid; gap: .75rem; margin-top: .8rem; }
.tagrow b { font-family: var(--ui); font-weight: 700; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .3rem; }
.tag { display: inline-block; font-family: var(--ui); font-size: .74rem; background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: .24rem .72rem; margin: 0 .3rem .3rem 0; color: var(--ink-soft); }

.reaction-quote {
  border-left: 3px solid var(--gold-bright); background: var(--bg); padding: .9rem 1.1rem;
  border-radius: 0 10px 10px 0; font-style: italic; margin: .8rem 0; line-height: 1.6; color: var(--ink-soft);
}

/* chat + voice */
.voicebar { display: flex; align-items: center; gap: .8rem; margin-bottom: .4rem; }
.voice-toggle {
  font-family: var(--ui); font-weight: 600; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: .42rem 1rem;
  color: var(--muted); cursor: pointer; transition: all .2s;
}
.voice-toggle.on { background: var(--laurel); color: #f3f0e4; border-color: var(--laurel-deep); }
.voice-toggle:disabled { opacity: .45; cursor: not-allowed; }
.voice-hint { font-family: var(--ui); font-size: .68rem; color: var(--muted); font-style: italic; }
.mic-btn {
  width: 46px; height: 42px; flex: none; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--terracotta-deep); font-size: 1.05rem; cursor: pointer;
  transition: all .2s;
}
.mic-btn.recording { background: var(--terracotta); color: #fff4e3; animation: pulse 1.2s infinite; }
.mic-btn:disabled { opacity: .5; cursor: wait; }
.bubble-play {
  display: inline-block; margin-left: .5rem; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; color: var(--terracotta-deep);
  font-size: .6rem; cursor: pointer; vertical-align: middle;
}
.bubble-play:hover { background: var(--gold-pale); }
.chatlog { display: flex; flex-direction: column; gap: .7rem; margin: 1rem 0; min-height: 180px; }
.bubble { max-width: 86%; padding: .72rem 1.05rem; border-radius: 14px; line-height: 1.5; font-size: 1rem; }
.bubble.user { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.bubble.agent { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.typing { font-style: italic; color: var(--muted); background: var(--bg-deep); }
.chatbar { display: flex; gap: .6rem; position: sticky; bottom: 0; background: var(--surface); padding-top: .4rem; }
.chatbar input { flex: 1; }

/* ---------- forum / results ---------- */
.runrow { display: flex; align-items: center; gap: 1rem; padding: .85rem .4rem; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; transition: background .15s; }
.runrow:last-child { border-bottom: none; }
.runrow:hover { background: var(--bg); }
.runrow .stim { flex: 1; font-style: italic; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.verdict-grid { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; align-items: stretch; }
@media (max-width: 860px) { .verdict-grid { grid-template-columns: 1fr; } }
.bigstat { text-align: center; padding: .9rem 0; }
.bigstat b { font-family: var(--display); font-weight: 600; font-size: 2.4rem; color: var(--ink); display: block; line-height: 1.1; }
.bigstat span { font-family: var(--ui); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.statrow { display: flex; justify-content: space-around; flex-wrap: wrap; }

.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 860px) { .voices { grid-template-columns: 1fr; } }
.voices-coltitle {
  font-family: var(--ui); font-weight: 700; font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: .7rem;
}
.voices-coltitle.pos { color: var(--laurel); }
.voices-coltitle.neg { color: var(--terracotta-deep); }
.voice-card {
  padding: 1.1rem 1.3rem; border-radius: var(--radius); cursor: pointer;
  transition: transform .18s, box-shadow .2s; background: var(--surface);
  box-shadow: var(--shadow-sm); margin-bottom: .9rem;
}
.voice-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.voice-card.pos { border: 1px solid #b6c89a; border-left: 4px solid var(--laurel); }
.voice-card.neg { border: 1px solid #ddb39e; border-left: 4px solid var(--terracotta); }
.voice-card .vc-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .55rem; }
.voice-card .vc-cameo { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--gold-bright); flex: none; background: #241b10; }
.voice-card .vc-cameo svg { width: 100%; height: 100%; }
.voice-card .vc-name { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.voice-card .vc-sub { font-size: .7rem; color: var(--muted); font-family: var(--ui); }
.voice-card .vc-score { margin-left: auto; font-family: var(--ui); font-weight: 700; font-size: .8rem; color: var(--gold); }
.voice-card .vc-text { font-style: italic; font-size: .98rem; line-height: 1.58; color: var(--ink-soft); }

.segment-table { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: .85rem; }
.segment-table th, .segment-table td { padding: .6rem .8rem; text-align: center; border-bottom: 1px solid var(--line); }
.segment-table tr:last-child td { border-bottom: none; }
.segment-table th { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .66rem; color: var(--gold); }
.segment-table td:first-child, .segment-table th:first-child { text-align: left; }
.segment-table td:first-child { color: var(--ink); font-weight: 500; }
.delta-pos { color: var(--laurel); font-weight: 600; } .delta-neg { color: var(--terracotta-deep); font-weight: 600; }

/* per-model breakdown bars */
.model-table { display: grid; gap: .85rem; }
.model-line { display: grid; grid-template-columns: minmax(160px, 240px) 1fr 110px; gap: 1rem; align-items: center; font-family: var(--ui); font-size: .8rem; }
.model-line .ml-bar { height: 10px; border-radius: 6px; background: var(--bg-deep); overflow: hidden; }
.model-line .ml-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold-bright), var(--laurel)); }
.model-line .ml-stats { text-align: right; color: var(--muted); white-space: nowrap; }
.model-line .ml-stats b { color: var(--ink); font-size: .92rem; }

.tiernote {
  margin-top: 1.5rem; padding: .95rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: 12px;
  font-size: .92rem; color: var(--muted); font-style: italic; background: rgba(255, 253, 247, .6);
}

.loading-temple { text-align: center; padding: 4.5rem 0; color: var(--muted); }
.loading-temple .spin {
  width: 52px; height: 52px; margin: 0 auto 1.1rem; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--gold); animation: rot 1.1s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }
.progress-script { font-style: italic; font-size: 1.05rem; }

.error-note { color: var(--terracotta-deep); font-family: var(--ui); font-size: .82rem; margin-top: .6rem; }

.colophon { text-align: center; padding: 1.8rem 1rem 2.4rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); margin-top: 2rem; background: rgba(255,253,247,.5); }
.colophon .sep { margin: 0 .5rem; color: var(--gold-bright); }

::selection { background: rgba(201, 163, 80, .35); }
