/* Shared local-packet typography. Site accent is set on :root / html[data-accent]. */
html[data-accent="P"] { --accent: #E85D04; --accent-ink: #151021; --bg: #16121c; --card: #221c2a; --text: #f4f1ea; --muted: #c6bdb0; --border: #3a3344; }
html[data-accent="C"] { --accent: #B6FF3B; --accent-ink: #12150c; --bg: #14180f; --card: #1e2418; --text: #f3f6ea; --muted: #c3cbb3; --border: #3a4330; }
html[data-accent="F"] { --accent: #C9A15B; --accent-ink: #15110c; --bg: #16130f; --card: #221e18; --text: #f4f1ea; --muted: #c6bdb0; --border: #3d362c; }
html[data-accent="L"] { --accent: #9D7BFF; --accent-ink: #141021; --bg: #16121c; --card: #221c2a; --text: #f4f1ea; --muted: #c6bdb0; --border: #3a3344; }
html[data-accent="M"] { --accent: #2F7A77; --accent-ink: #f7efe7; --bg: #f7efe7; --card: #fffaf4; --text: #1c1814; --muted: #5a534b; --border: #d4c8ba; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  line-height: 1.55;
}
.wrap { max-width: 52rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
header, footer { margin: 0 0 1.5rem; }
.edu-flag, .kicker, .lead, .fd-note, .gk-cam-note, .meta, .live, .caption {
  color: var(--muted);
  font-size: 0.95rem;
}
h1 { font-size: 1.85rem; line-height: 1.2; margin: 0.25rem 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 0 0 0.4rem; }
a { color: var(--accent); }
.toolbar, .fd-tools, .progress-row, .pack, .notice {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 1rem 0;
}
button {
  min-width: 44px; min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0 0.9rem;
}
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
section, .notice, .pack {
  margin: 1.75rem 0;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
}
.notice { border-style: dashed; }
.scene-svg { width: 100%; height: auto; display: block; background: color-mix(in srgb, var(--bg) 70%, #000 10%); border-radius: 12px; }
html[data-accent="M"] .scene-svg { background: #efe6da; }
.caption { min-height: 1.4em; margin: 0.6rem 0 0; }
.badge {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.lock-choice, .fd-choices button {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 12px;
  margin: 0.35rem 0;
}
.lock-choice[aria-checked="true"] {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
#export-json, .record {
  white-space: pre-wrap;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.75rem;
  border-radius: 10px;
  color: var(--text);
  overflow: auto;
}
.static-still { opacity: 1; }
[data-fourd="off"] .fd-timeline,
[data-fourd="off"] .fd-tools.fd-live-only { display: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}

.preview-banner, .fourd-off-label {
  display: block;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px dashed var(--accent);
  border-radius: 12px;
  color: var(--text);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  font-size: 0.95rem;
}
.fourd-off-label { border-style: solid; }
.agent-loop ol, .gi-debug ol { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.gi-debug pre { max-height: 10rem; }
.gi-glass {
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--border));
  background: color-mix(in srgb, var(--card) 65%, transparent);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}
.kb-help { color: var(--muted); font-size: 0.95rem; }
