@font-face {
  font-family: "Helvetica Now Display";
  src: url("assets/HelveticaNowDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Display";
  src: url("assets/HelveticaNowDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Display";
  src: url("assets/HelveticaNowDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Arcmira app dark tokens and dashboard surface dimensions. */
:root {
  color-scheme: dark;
  --bg: #121212;
  --panel: #242424;
  --inset: #202020;
  --line: #363636;
  --text: #f5f5f5;
  --muted: #aaa;
  --green: #187246;
  font-family: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
button, a, summary { cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid #b3b3b3;
  outline-offset: 3px;
}
button:disabled { cursor: default; opacity: .5; }
main, footer { max-width: 1200px; margin: auto; padding-inline: 32px; }
.masthead {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: 32px;
  background: #000;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand img { display: block; width: 25px; height: 25px; flex-shrink: 0; }
.logo-text {
  font-family: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 28.5px;
  margin-left: 10px;
  letter-spacing: 0;
  color: #fff;
}
.masthead nav { display: flex; align-items: center; gap: 24px; color: #f5f5f5; }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }
.intro { padding: 32px 0 24px; }
.eyebrow { margin: 0; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--muted); }
.intro > .eyebrow { margin-bottom: 8px; }
h1 { font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.lede { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.prompt-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--inset);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.prompt-panel .eyebrow { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.prompt-panel #prompt { margin: 0; max-width: 780px; color: #ccc; font-size: 14px; line-height: 1.5; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid #454545;
  border-radius: 7px;
  background: var(--panel);
  color: #e5e5e5;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 150ms, border-color 150ms;
}
.button:hover:not(:disabled) { background: #303030; border-color: #565656; }
.play { background: var(--green); border-color: var(--green); color: #fff; min-width: 122px; }
.play:hover:not(:disabled) { background: #125e39; border-color: #125e39; }
.query-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.query { font-size: 18px; font-weight: 500; }
.query-meta { font-size: 12px; color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.stage {
  min-height: 232px;
  background: #191919;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stage-top, .stage-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-variant-numeric: tabular-nums; }
.stage figure { margin: 0; padding: 30px 0 26px; }
.quote-mark {
  display: block;
  height: 32px;
  color: #91b29b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: .9;
  margin-left: -3px;
  margin-bottom: 10px;
}
blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 2.7vw, 38px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: #f4f1e9;
  text-wrap: pretty;
  margin: 0 0 26px;
}
.stage figcaption { border-left: 2px solid #759a80; padding-left: 12px; }
.stage-top .eyebrow { letter-spacing: .1em; text-transform: uppercase; font-size: 10px; }
.stage-bottom { border-top: 1px solid var(--line); padding-top: 14px; }
figcaption { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12px; }
figcaption strong { font-size: 14px; font-weight: 500; }
.muted, .stage-bottom { color: var(--muted); }
.stage-bottom { font-size: 12px; }
.source-dot { display: none; }
.transport { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.sequence-note { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
.transport .sequence-note { margin: 0; }
.source-player { margin-top: 16px; aspect-ratio: 16 / 9; min-height: 200px; background: #000; }
.source-player iframe { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; }
.sources { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.source-heading { display: flex; justify-content: space-between; font-size: 14px; padding: 0 8px 12px; }
.source-option {
  width: 100%; min-height: 46px; display: grid;
  grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px;
  padding: 10px 8px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text); text-align: left; font-size: 13px;
}
.source-option:hover { background: #2a2a2a; }
.source-option[aria-pressed="true"] { background: #363636; }
.source-option .number, .source-option .time { color: var(--muted); font-size: 12px; }
.source-option .channel-name { font-weight: 400; }
.source-detail { border-top: 1px solid var(--line); padding: 18px 8px 4px; margin-top: 16px; }
.source-detail > .eyebrow { margin-bottom: 8px; }
.source-detail > a { display: block; font-size: 14px; line-height: 1.45; text-decoration: none; }
.source-detail > a:hover { text-decoration: underline; }
.source-detail dl { margin: 16px 0; font-size: 12px; }
.source-detail dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.source-detail dt { color: var(--muted); }
.source-detail dd { margin: 0; }
.source-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; }
.source-actions a, .source-actions button { display: inline-flex; align-items: center; min-height: 36px; }
.source-actions button { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.status { min-height: 18px; margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.provenance { border-top: 1px solid var(--line); padding: 16px 0; margin-top: 8px; font-size: 12px; color: var(--muted); }
summary { min-height: 32px; width: fit-content; color: var(--text); font-size: 14px; }
.provenance p { max-width: 850px; line-height: 1.65; }
.provenance a { color: var(--text); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; margin-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer > a:first-child { color: var(--text); font-weight: 500; text-decoration: none; }
#copy-fallback { margin: 18px 0; }
#copy-text { display: block; width: 100%; margin-top: 8px; background: var(--panel); color: var(--text); border: 1px solid #454545; border-radius: 7px; padding: 12px; }
.skip { position: absolute; top: -100px; left: 16px; background: #fff; color: #121212; padding: 12px; z-index: 10; }
.skip:focus { top: 12px; }
@media (max-width: 760px) {
  .masthead, main, footer { padding-inline: 20px; }
  .masthead nav { gap: 16px; font-size: 12px; }
  .intro { padding-top: 24px; }
  h1 { font-size: 28px; }
  .prompt-panel { flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px; }
  .query-row { flex-wrap: wrap; gap: 6px 16px; }
  .workspace { grid-template-columns: 1fr; }
  .stage { padding: 18px 20px; }
  .source-heading { padding-bottom: 8px; }
  .source-player { min-height: 200px; }
  .source-option, .button, .source-actions a, .source-actions button { min-height: 44px; }
  footer { flex-wrap: wrap; }
  footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
