/* Consilium demo — single-page app styles.
   Voice: dark Midnight Labs shell, light document for the artefact view.
   Typography: Inter for UI, Newsreader for the artefact (gives the
   memo-like, re-readable feel that the artefact differentiator argues for).

   Brand: Consilium sub-brand of Midnight Labs (per
   synth-board/docs/brand_decision_v0.1.md v0.3). Signature accent is
   warm amber #E8A04D — same value the synth-board landing pages use,
   distinct from Midnight Labs' magenta/pink. The artefact reads as
   "editorial decision memo," so the brand colour is also the document's
   important-bit colour: deliberate convergence, not coincidence. */

:root {
  --midnight: #262024;
  --midnight-deep: #1a181c;
  --midnight-surface: #2e2b30;
  --midnight-elev: #36323a;
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.92);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-06: rgba(255, 255, 255, 0.06);
  --white-04: rgba(255, 255, 255, 0.04);

  /* Consilium signature accent (amber). The brand colour. Use this for
     wordmark, primary CTAs, eyebrows, active states, and the artefact
     pill. Anything that says "this is Consilium" is amber. */
  --amber: #E8A04D;
  --amber-bright: #F0B466;
  --amber-deep: #B97D2E;
  --amber-glow: rgba(232, 160, 77, 0.22);
  --amber-soft: rgba(232, 160, 77, 0.08);
  --amber-line: rgba(232, 160, 77, 0.45);

  /* Midnight Labs / supporting palette. Kept available but not used as
     Consilium brand accents anymore (per brand decision v0.3). */
  --pink: #df3b92;
  --hot-pink: #fa3f77;
  --blue: #2463de;
  --cyan: #3ec5ed;
  --purple: #9c29e4;
  --green: #4ade80;
  --red: #f87171;

  /* Role-card accents on the "How it works" screen. */
  --role-strategic: #6BA8FF;
  --role-technical: #4ade80;
  --role-ethical: #7CD7B6;
  --role-critic: #E04E5C;
  --role-synth: var(--amber);
  --role-intake: #94a3b8;

  /* Artefact document palette (light memo on dark canvas). */
  --doc-bg: #f8f6f2;
  --doc-ink: #1a1a1a;
  --doc-ink-2: #3f3f46;
  --doc-ink-3: #71717a;
  --doc-line: #e4e4e7;
  --doc-accent: #b91c1c;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--midnight);
  color: var(--white-90);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }

/* ----------------------------------------------------------------------
   Splash
---------------------------------------------------------------------- */
.splash {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--midnight);
  z-index: 9999;
  transition: opacity 0.4s ease-out;
}
.splash.fade-out { opacity: 0; pointer-events: none; }
.splash-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35; pointer-events: none;
}
.splash-orb.orb-1 { width: 480px; height: 480px; background: var(--amber); top: -120px; right: -100px; }
.splash-orb.orb-2 { width: 380px; height: 380px; background: var(--amber-deep); bottom: -50px; left: -100px; opacity: 0.28; }
.splash-mark {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.splash-name {
  font-size: 32px; font-weight: 300; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--amber-bright), var(--amber-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.splash-sub { font-size: 12px; color: var(--white-40); letter-spacing: 0.08em; text-transform: uppercase; }

/* ----------------------------------------------------------------------
   Login screen
---------------------------------------------------------------------- */
.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; padding: 40px 20px;
}
.orb {
  position: fixed; border-radius: 50%;
  filter: blur(100px); pointer-events: none; z-index: 0;
}
.login-orb-1 { width: 600px; height: 600px; background: var(--amber); top: -220px; right: -160px; opacity: 0.16; }
.login-orb-2 { width: 500px; height: 500px; background: var(--amber-deep); bottom: -160px; left: -160px; opacity: 0.13; }

.login-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  background: var(--white-06);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.login-mark {
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 36px;
}
.login-name {
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--amber-bright), var(--amber-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.login-sub { font-size: 11px; color: var(--white-40); letter-spacing: 0.1em; text-transform: uppercase; }
.login-h {
  font-size: 28px; font-weight: 400; line-height: 1.2;
  letter-spacing: -0.015em; margin: 0 0 14px;
}
.login-lede {
  font-size: 14px; color: var(--white-60); line-height: 1.65;
  margin: 0 0 32px;
}
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-label {
  font-size: 12px; font-weight: 500; color: var(--white-70);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.login-form input[type="password"] {
  background: var(--midnight-deep);
  border: 1px solid var(--white-20);
  border-radius: var(--radius-sm);
  color: var(--white);
  font: inherit; font-size: 16px;
  padding: 14px 16px;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.login-form input[type="password"]:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  padding: 12px 20px;
  transition: opacity 0.15s, transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--amber);
  color: var(--midnight-deep);
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(232, 160, 77, 0.22);
}
.btn-primary:hover:not(:disabled) {
  background: var(--amber-bright);
  transform: translateY(-1px);
}
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost {
  background: var(--white-06);
  border: 1px solid var(--white-10);
  color: var(--white-70);
}
.btn-ghost:hover { color: var(--white); border-color: var(--white-20); background: var(--white-10); }

#login-submit { padding: 14px 20px; font-size: 15px; margin-top: 4px; }
.login-error {
  font-size: 13px; color: var(--red); padding-top: 4px;
}
.login-fineprint {
  font-size: 12px; color: var(--white-40); margin: 18px 0 0; line-height: 1.55;
}
.login-fineprint a { color: var(--white-60); text-decoration: underline; text-underline-offset: 3px; }
.login-back {
  position: fixed; top: 22px; left: 28px; z-index: 5;
  font-size: 13px; color: var(--white-40); text-decoration: none;
  transition: color 0.15s;
}
.login-back:hover { color: var(--white-70); }

/* ----------------------------------------------------------------------
   App shell
---------------------------------------------------------------------- */
.app { display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 14px 32px;
  background: rgba(38, 32, 36, 0.78);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--white-10);
}
.brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.brand-logo {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--amber-bright), var(--amber-deep));
  flex: none;
}
.brand-mark { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 500; color: var(--white); letter-spacing: -0.01em; font-size: 15px; }
.brand-lineage {
  font-size: 9.5px; color: var(--white-40);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 2px;
}
.brand-tag {
  font-size: 10.5px; color: var(--amber); letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 8px;
  border: 1px solid var(--amber-line); border-radius: 999px;
}
.topbar-nav {
  display: flex; gap: 24px; flex: 1;
}
.topbar-link {
  font-size: 13px; color: var(--white-60); text-decoration: none;
  transition: color 0.15s;
}
.topbar-link:hover, .topbar-link.active { color: var(--white); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-btn {
  background: transparent; border: 1px solid var(--white-10);
  color: var(--white-60); font: inherit; font-size: 12.5px;
  padding: 7px 14px; border-radius: 6px; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.topbar-btn:hover { color: var(--white); border-color: var(--white-20); background: var(--white-06); }

.screen { display: none; padding: 56px 32px 80px; max-width: 1180px; margin: 0 auto; width: 100%; }
.screen.active, .screen:not([hidden]) { display: block; }
.screen[hidden] { display: none !important; }

.eyebrow {
  font-size: 11px; font-weight: 600; color: var(--amber);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; display: block; width: 22px; height: 1px; background: var(--amber);
}

/* ----------------------------------------------------------------------
   Cases screen
---------------------------------------------------------------------- */
.cases-head { max-width: 720px; margin: 0 0 48px; }
.cases-head h1 {
  font-size: clamp(32px, 4.5vw, 48px); font-weight: 300;
  letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 18px;
}
.cases-head .lede {
  font-size: 16px; color: var(--white-60); line-height: 1.7; margin: 0;
}
.cases-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.case-card {
  background: var(--white-04);
  border: 1px solid var(--white-10);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
  cursor: pointer; text-align: left;
  font: inherit; color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.case-card:hover {
  border-color: var(--amber-line); background: var(--white-06);
  transform: translateY(-2px);
}
.case-protocol {
  font-size: 10.5px; font-weight: 600; color: var(--amber);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.case-title {
  font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
  line-height: 1.3; margin: 0;
}
.case-subtitle {
  font-size: 13.5px; color: var(--white-60); line-height: 1.55; margin: 0;
}
.case-foot {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; color: var(--white-40);
  margin-top: auto; padding-top: 4px;
}
.case-foot .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.case-panel-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.case-panel-pill {
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px;
  border: 1px solid var(--white-10); color: var(--white-60);
}
.cases-foot {
  margin-top: 56px; padding: 24px 28px;
  background: var(--white-04); border: 1px solid var(--white-10);
  border-radius: var(--radius); font-size: 13.5px; color: var(--white-60);
  line-height: 1.65;
}
.cases-foot a { color: var(--amber); text-decoration: none; }
.cases-foot a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------------
   How-it-works screen
---------------------------------------------------------------------- */
.how-wrap { max-width: 880px; }
.how-wrap h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 300;
  letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 36px;
}
.how-grid {
  display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr);
  margin-bottom: 56px;
}
.how-card {
  background: var(--white-04);
  border: 1px solid var(--white-10);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.how-num {
  font-size: 11px; color: var(--white-40); letter-spacing: 0.1em; margin-bottom: 18px;
}
.how-card h3 { font-size: 16px; font-weight: 500; margin: 0 0 10px; letter-spacing: -0.01em; }
.how-card p { font-size: 13.5px; color: var(--white-60); line-height: 1.65; margin: 0; }

.how-sub {
  font-size: 22px; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 18px;
}
.roles-grid {
  display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr);
}
.role-card {
  background: var(--white-04);
  border: 1px solid var(--white-10);
  border-radius: var(--radius);
  padding: 22px 22px;
  display: grid; grid-template-columns: 36px 1fr; row-gap: 8px; column-gap: 14px;
  align-items: start;
}
.role-card.role-card-critic { border-color: rgba(224, 78, 92, 0.35); background: rgba(224, 78, 92, 0.05); }
.role-icon {
  width: 32px; height: 32px; border-radius: 8px; grid-row: span 2;
}
.role-icon-strategic { background: linear-gradient(135deg, var(--role-strategic), #2563eb); }
.role-icon-technical { background: linear-gradient(135deg, var(--role-technical), #15803d); }
.role-icon-ethical { background: linear-gradient(135deg, var(--role-ethical), #2f9d76); }
.role-icon-critic { background: linear-gradient(135deg, var(--role-critic), #b91c1c); }
.role-name { font-weight: 500; align-self: end; font-size: 14px; }
.role-card p { margin: 0; grid-column: 2; font-size: 13px; color: var(--white-60); line-height: 1.6; }

/* ----------------------------------------------------------------------
   Player screen
---------------------------------------------------------------------- */
.back-link {
  background: transparent; border: 0; color: var(--white-60);
  font: inherit; font-size: 13px; cursor: pointer; padding: 0;
  margin-bottom: 24px; transition: color 0.15s;
}
.back-link:hover { color: var(--white); }

.player-head { margin-bottom: 24px; max-width: 820px; }
.player-meta {
  display: flex; gap: 14px; align-items: center;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white-40); margin-bottom: 14px;
}
.player-protocol { color: var(--amber); }
.player-head h1 {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 400;
  letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 10px;
}
.player-subtitle { font-size: 14.5px; color: var(--white-60); margin: 0; }

.player-problem-wrap {
  background: var(--white-04); border: 1px solid var(--white-10);
  border-radius: var(--radius); padding: 22px 24px 20px;
  margin-bottom: 28px;
}
.player-problem-label {
  font-size: 10.5px; font-weight: 600; color: var(--amber);
  letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 10px;
}
.player-problem {
  font-size: 14.5px; color: var(--white-90); line-height: 1.65; margin: 0;
}

.player-controls {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
}
.player-progress {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.player-progress-bar {
  height: 5px; background: var(--white-10); border-radius: 999px; overflow: hidden;
}
.player-progress-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber-bright));
  width: 0%; transition: width 0.4s ease-out;
}
.player-progress-meta {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--white-40);
  letter-spacing: 0.04em;
}

.player-stage {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
}
@media (max-width: 880px) {
  .player-stage { grid-template-columns: 1fr; }
}
.player-roles {
  display: flex; flex-direction: column; gap: 8px;
}
.player-role {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--white-10); border-radius: var(--radius-sm);
  background: var(--white-04);
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}
.player-role-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--white-20); flex: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.player-role[data-state="pending"] { opacity: 0.5; }
.player-role[data-state="active"] {
  border-color: var(--amber); background: var(--amber-soft);
}
.player-role[data-state="active"] .player-role-dot {
  background: var(--amber); box-shadow: 0 0 12px var(--amber);
  animation: pulse 1.4s ease-in-out infinite;
}
.player-role[data-state="done"] { color: var(--white-60); }
.player-role[data-state="done"] .player-role-dot { background: var(--green); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px var(--amber); }
  50% { box-shadow: 0 0 18px var(--amber), 0 0 4px var(--amber-glow); }
}
.player-role-name { flex: 1; font-weight: 500; }
.player-role-tag { font-size: 10.5px; color: var(--white-40); letter-spacing: 0.06em; text-transform: uppercase; }

.player-transcript {
  display: flex; flex-direction: column; gap: 16px;
  min-height: 360px;
}
.transcript-empty {
  border: 1px dashed var(--white-10); border-radius: var(--radius);
  padding: 60px 28px; text-align: center;
  font-size: 13.5px; color: var(--white-40);
}
.transcript-bubble {
  background: var(--white-04); border: 1px solid var(--white-10);
  border-radius: var(--radius); padding: 18px 22px;
  animation: bubble-in 0.4s ease-out;
}
.transcript-bubble.from-critic {
  border-color: rgba(224, 78, 92, 0.4); background: rgba(224, 78, 92, 0.06);
}
.transcript-bubble.from-synth {
  border-color: var(--amber-line); background: var(--amber-soft);
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.bubble-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px;
}
.bubble-name { font-weight: 600; font-size: 13px; color: var(--white); }
.bubble-tag {
  font-size: 10.5px; color: var(--white-40); letter-spacing: 0.06em; text-transform: uppercase;
}
.bubble-summary { font-size: 14px; color: var(--white-90); line-height: 1.6; margin: 0; }
.bubble-detail {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--white-10);
  display: flex; flex-direction: column; gap: 10px;
}
.bubble-detail-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  font-size: 13px; color: var(--white-70); line-height: 1.55;
}
.bubble-detail-row dt {
  font-size: 10.5px; color: var(--white-40); letter-spacing: 0.06em;
  text-transform: uppercase; margin: 0; padding-top: 1px;
}
.bubble-detail-row dd { margin: 0; color: var(--white-70); }
.bubble-detail-row ul { margin: 0; padding-left: 18px; }
.bubble-detail-row li + li { margin-top: 5px; }

/* ----------------------------------------------------------------------
   Artefact screen — light document on dark canvas
---------------------------------------------------------------------- */
.screen-artefact { padding-bottom: 100px; }
.artefact-tag {
  display: inline-block; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber);
  padding: 5px 12px; border: 1px solid var(--amber-line);
  border-radius: 999px; margin-bottom: 18px;
}
.artefact-doc {
  background: var(--doc-bg);
  color: var(--doc-ink);
  border-radius: var(--radius);
  padding: 56px 64px 64px;
  max-width: 820px; margin: 0 auto;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 16.5px; line-height: 1.7;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 6px 18px rgba(0, 0, 0, 0.2);
}
@media (max-width: 720px) {
  .artefact-doc { padding: 40px 28px; font-size: 15.5px; }
}
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-family: 'Inter', sans-serif; font-size: 11.5px;
  color: var(--doc-ink-3); letter-spacing: 0.04em;
  padding-bottom: 24px; margin-bottom: 28px;
  border-bottom: 1px solid var(--doc-line);
}
.doc-meta strong { color: var(--doc-ink); font-weight: 600; }
.doc-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.doc-h1 {
  font-size: 30px; font-weight: 600; line-height: 1.15;
  letter-spacing: -0.01em; margin: 0 0 6px;
}
.doc-sub {
  font-style: italic; color: var(--doc-ink-3);
  font-size: 15px; margin: 0 0 32px;
}
.doc-section { margin-bottom: 28px; }
.doc-h2 {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--doc-accent);
  margin: 0 0 12px;
}
.doc-section p { margin: 0 0 10px; }
.doc-section ul, .doc-section ol { margin: 6px 0 10px; padding-left: 22px; }
.doc-section li + li { margin-top: 4px; }

.doc-headline {
  font-size: 19px; font-weight: 600; color: var(--doc-ink);
  background: rgba(185, 28, 28, 0.05);
  border-left: 3px solid var(--doc-accent);
  padding: 16px 20px; margin: 0 0 16px;
  font-style: normal;
}

.doc-disagreement {
  background: var(--white); border: 1px solid var(--doc-line);
  border-radius: 8px; padding: 16px 20px; margin-bottom: 12px;
}
.doc-disagreement-issue {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  color: var(--doc-ink); margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.doc-disagreement-pos {
  font-size: 14.5px; line-height: 1.55; padding: 6px 0;
}
.doc-disagreement-pos + .doc-disagreement-pos {
  border-top: 1px dashed var(--doc-line); margin-top: 6px; padding-top: 10px;
}
.doc-disagreement-who {
  font-family: 'Inter', sans-serif; font-size: 11px;
  font-weight: 600; color: var(--doc-accent);
  letter-spacing: 0.06em; text-transform: uppercase; margin-right: 8px;
}
.doc-confidence {
  display: flex; align-items: center; gap: 16px; margin-bottom: 12px;
}
.doc-confidence-bar {
  flex: 1; height: 8px; background: var(--doc-line); border-radius: 999px; overflow: hidden;
}
.doc-confidence-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--doc-accent), var(--amber));
}
.doc-confidence-num {
  font-family: 'Inter', sans-serif; font-size: 13px;
  font-weight: 600; color: var(--doc-ink);
  font-variant-numeric: tabular-nums;
}
.doc-question {
  font-style: italic; font-size: 17px; color: var(--doc-ink);
  border-left: 2px solid var(--doc-ink-3);
  padding: 4px 0 4px 16px; margin: 6px 0 0;
}

.artefact-actions {
  max-width: 820px; margin: 28px auto 0;
  display: flex; gap: 12px; justify-content: space-between;
}
@media (max-width: 540px) {
  .artefact-actions { flex-direction: column; }
}

/* ----------------------------------------------------------------------
   Footer (sub-brand parent link, per brand decision v0.3)
---------------------------------------------------------------------- */
.appfoot {
  margin-top: auto;
  padding: 28px 32px 36px;
  border-top: 1px solid var(--white-10);
  font-size: 12px; color: var(--white-40);
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
}
.appfoot a {
  color: var(--white-60); text-decoration: none;
  border-bottom: 1px solid var(--white-10);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.appfoot a:hover { color: var(--white); border-bottom-color: var(--white-40); }
