/* ═══════════════════════════════════════════════════════════════════════
   RIPTIDE DIGITAL — Workbench
   The site as a working bench: rulers, edit boxes, size labels and a
   deploy log. Warm espresso-black, amber accent, one pink for annotations.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #15130F;
  --bg-alt: #18160F;
  --panel: #1F1C17;
  --panel-hi: #2A2519;
  --line: #2E2A23;
  --line-2: #3A352D;
  --text: #EFE8DC;
  --text-soft: #D9D1C3;
  --muted: #B5AC9E;
  --dim: #8A8276;
  --accent: #F5A524;
  --ink-on-accent: #15130F;
  --note: #FF4D8D;
  --ok: #7FD18B;
  --font-body: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1280px;
  --pad: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink-on-accent); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; }
p { margin: 0; }
.mono { font-family: var(--font-mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--ink-on-accent); padding: 10px 14px; font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }

/* ─── Ruler ─── */
.ruler {
  display: flex; height: 20px; background-color: var(--panel); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 9px; color: var(--dim); overflow: hidden;
}
.ruler-corner {
  flex: 0 0 auto; padding: 4px 10px 0; background: #2A2620; color: var(--muted);
  border-right: 1px solid var(--line-2); white-space: nowrap;
}
.ruler-ticks {
  flex: 1 1 auto; display: flex; overflow: hidden;
  background-image: repeating-linear-gradient(90deg, rgba(239,232,220,0.22) 0 1px, transparent 1px 10px);
  background-size: 100% 6px; background-repeat: no-repeat; background-position: 0 100%;
}
.ruler-ticks span { flex: 0 0 100px; padding: 3px 0 0 3px; border-left: 1px solid #4A443A; }

/* ─── Header ─── */
.site-header .wrap {
  padding-top: 24px; padding-bottom: 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark { width: 14px; height: 14px; background: var(--accent); display: block; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; font-family: var(--font-mono); font-size: 13px; }
.site-nav a { text-decoration: none; }
.site-nav .nav-cta { border: 1px solid var(--text); padding: 11px 16px; border-radius: 3px; }
.site-nav .nav-cta:hover { border-color: var(--accent); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 15px 26px; border-radius: 3px; font-family: var(--font-body); font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1.2;
  transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--accent); color: var(--ink-on-accent); }
.btn-solid:hover { color: var(--ink-on-accent); background: #FFB940; }
.btn-ghost { background: transparent; color: var(--text); border-color: #5A5348; font-weight: 600; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Hero ─── */
.hero .wrap { padding-top: 48px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.hero-main { flex: 3 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 30px; padding-top: 34px; }
.edit-box { position: relative; align-self: flex-start; max-width: 100%; }
.edit-tag {
  position: absolute; left: -1px; bottom: 100%; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--ink-on-accent);
  background: var(--accent); padding: 4px 8px; border-radius: 3px; white-space: nowrap;
}
.edit-frame { border: 1.5px solid var(--accent); padding: 6px 10px 10px; position: relative; }
.handle { position: absolute; width: 8px; height: 8px; background: var(--bg); border: 1.5px solid var(--accent); }
.handle.tl { left: -5px; top: -5px; } .handle.tr { right: -5px; top: -5px; }
.handle.bl { left: -5px; bottom: -5px; } .handle.br { right: -5px; bottom: -5px; }
.hero h1 { font-size: clamp(40px, 4.9vw, 72px); line-height: 1; font-weight: 750; letter-spacing: -0.03em; text-wrap: balance; }
.caret { display: inline-block; width: 4px; height: 0.8em; background: var(--accent); margin-left: 6px; vertical-align: baseline; }
.hero-lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.measured { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.size-note { font-family: var(--font-mono); font-size: 10px; color: var(--note); }
.owner-cursor { position: relative; width: 120px; height: 54px; }
.owner-cursor svg { position: absolute; left: 10px; top: 10px; }
.owner-cursor span {
  position: absolute; left: 26px; top: 30px; background: var(--accent); color: var(--ink-on-accent);
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 2px 9px 9px 9px; white-space: nowrap;
}

.hero-side { flex: 2 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding-top: 34px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.panel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--dim);
}
.terminal { font-family: var(--font-mono); font-size: 13px; line-height: 1.9; padding: 16px 18px 20px; overflow-x: auto; }
.terminal .prompt { color: var(--accent); }
.terminal .step { color: var(--muted); }
.terminal .tick { color: var(--ok); }
.terminal .done { margin-top: 6px; }
.terminal .done a { color: var(--accent); }
.term-caret {
  display: inline-block; width: 8px; height: 15px; background: var(--text);
  margin-left: 4px; vertical-align: -2px; animation: term-blink 1.06s steps(1) infinite;
}
@keyframes term-blink { 50% { opacity: 0; } }

.spec { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.spec > div { background: var(--bg); padding: 14px 16px; }
.spec dt, .label { font-family: var(--font-mono); font-size: 10px; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; }
.spec dd { margin: 6px 0 0; font-size: 15px; font-weight: 600; }

/* ─── Sections ─── */
.section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); }
.section > .wrap { padding-top: 80px; padding-bottom: 96px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-body { flex: 2 1 560px; min-width: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.section h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1; }
.intro-text { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 420px; }

/* Work */
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.work-head > div { display: flex; flex-direction: column; gap: 12px; }
.feature { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; margin-bottom: 48px; }
.feature-shot { flex: 3 1 560px; min-width: 0; position: relative; padding-top: 28px; }
.shot-tags { position: absolute; left: 0; top: 0; display: flex; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.tag-live { background: var(--ok); color: var(--ink-on-accent); padding: 3px 7px; border-radius: 3px; }
.tag-plain { background: #2A2620; color: var(--text); padding: 3px 7px; border-radius: 3px; }
.feature-shot a { display: block; border: 1.5px solid var(--accent); }
.feature-shot img { width: 100%; }
.feature-shot .size-note { display: block; margin-top: 8px; }
.feature-copy { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.feature-copy h3 { font-size: 32px; letter-spacing: -0.02em; }
.feature-copy p { color: var(--muted); line-height: 1.65; }
.diff { margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 12px; line-height: 2.1; color: var(--muted); }
.diff li::before { content: '+ '; color: var(--accent); }
.text-link { font-size: 16px; font-weight: 600; }
.concepts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.concept { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.concept img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--line-2); transition: border-color .2s; }
.concept:hover img { border-color: var(--accent); }
.concept-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.concept-meta strong { font-size: 18px; }
.concept-meta span { font-family: var(--font-mono); font-size: 10px; color: var(--dim); }

/* Services — layers panel */
.layer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; padding: 22px 20px; border-bottom: 1px solid var(--line); }
.layer:last-child { border-bottom: none; }
.layer.selected { background: var(--panel-hi); outline: 1.5px solid var(--accent); outline-offset: -1.5px; }
.layer-index { flex: 0 0 34px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.layer.selected .layer-index { color: var(--accent); }
.layer-body { flex: 1 1 300px; min-width: 0; }
.layer-body h3 { font-size: 22px; letter-spacing: -0.02em; }
.layer-body p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.layer-price { font-family: var(--font-mono); font-size: 12px; color: var(--text); white-space: nowrap; }
.layer-price.accent { color: var(--accent); }

/* Process — commit history */
.commits { margin: 0; padding: 0; list-style: none; }
.commit { display: flex; gap: 20px; padding-bottom: 34px; position: relative; }
.commit:not(:last-child)::before { content: ''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line-2); }
.commit-dot { flex: 0 0 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); }
.commit.head .commit-dot { background: var(--accent); }
.commit-meta { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.commit.head .commit-meta { color: var(--accent); }
.commit h3 { margin-top: 4px; font-size: 24px; letter-spacing: -0.02em; }
.commit p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* About — README */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.readme { flex: 3 1 520px; min-width: 0; }
.readme-body { padding: 28px 30px 32px; display: flex; flex-direction: column; gap: 18px; }
.readme h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
.readme h2 .hash { font-family: var(--font-mono); font-weight: 500; color: var(--dim); }
.readme p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.readme h3 { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0; margin-top: 4px; }
.promises { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--text-soft); }
.promises li { display: flex; gap: 12px; }
.promises li::before { content: '-'; font-family: var(--font-mono); color: var(--accent); }
.photo-slot { flex: 2 1 340px; min-width: 0; position: relative; padding-top: 28px; }
.photo-slot .edit-tag { bottom: auto; top: 0; margin: 0; }
.photo-frame {
  border: 1.5px dashed var(--accent); aspect-ratio: 4 / 5; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--dim); background: #1A1814;
}
.photo-slot .size-note { display: block; margin-top: 8px; }

/* Contact */
.contact-list { margin: 8px 0 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.contact-list dd { margin: 4px 0 0; }
.form-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.field .req { color: var(--accent); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 3px; padding: 12px 14px; min-height: 48px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #6E675C; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,165,36,0.18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-foot small { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.form-status { display: none; font-family: var(--font-mono); font-size: 13px; padding: 12px 14px; border-radius: 3px; }
.form-status.ok { display: block; color: var(--ok); background: rgba(127,209,139,0.1); border: 1px solid rgba(127,209,139,0.35); }
.form-status.err { display: block; color: #FF8A80; background: rgba(255,138,128,0.08); border: 1px solid rgba(255,138,128,0.35); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-top: 28px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-family: var(--font-mono); font-size: 12px; color: var(--dim);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.link-button { all: unset; cursor: pointer; color: var(--muted); }
.link-button:hover { color: var(--accent); }
.link-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The live-build effect only runs on desktop pointers with motion allowed */
@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .needs-build-fx { display: none !important; }
}
/* any-pointer, not pointer: Firefox reports a coarse primary pointer when a pen tablet is attached */
@media not all and (any-pointer: fine) {
  .needs-build-fx { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .term-caret { animation: none; }
  .btn:hover { transform: none; }
}

/* ─── Small screens ─── */
@media (max-width: 760px) {
  :root { --pad: 20px; }
  .hero .wrap { padding-top: 32px; padding-bottom: 56px; gap: 40px; }
  .hero-lede { font-size: 17px; }
  .owner-cursor { display: none; }
  .section > .wrap { padding-top: 56px; padding-bottom: 64px; }
  .readme-body { padding: 22px 20px 26px; }
  .spec { grid-template-columns: 1fr; }
  .site-nav { gap: 10px 18px; }
}

/* ═══ Inner pages & shared pieces ═══ */
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta[aria-current="page"] { border-color: var(--accent); }

.page-hero .wrap { padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.page-hero .edit-box { margin-top: 30px; }
.page-hero h1 { font-size: clamp(38px, 4.4vw, 64px); line-height: 1; font-weight: 750; letter-spacing: -0.03em; text-wrap: balance; }
.page-hero .hero-lede { max-width: 640px; }

.more-link { font-family: var(--font-mono); font-size: 13px; text-decoration: none; color: var(--accent); align-self: flex-start; }
.more-link:hover { text-decoration: underline; color: var(--accent); }
.section-foot { margin-top: 32px; }

/* Floating "watch this page get built" button (injected by riptide-build.js) */
body .rb-trigger {
  background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 3px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0;
  padding: 11px 14px; box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
body .rb-trigger svg { color: var(--accent); }
body .rb-trigger:hover { background: var(--accent); color: var(--ink-on-accent); border-color: var(--accent); }
body .rb-trigger:hover svg { color: var(--ink-on-accent); }

/* Detailed service blocks */
.service-block { display: flex; flex-wrap: wrap; gap: 24px 56px; padding: 40px 0; border-top: 1px solid var(--line); }
.service-block:first-child { border-top: none; padding-top: 0; }
.service-head { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.service-head .layer-index { flex: none; }
.service-head h2, .service-head h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.price-chip { align-self: flex-start; font-family: var(--font-mono); font-size: 13px; color: var(--ink-on-accent); background: var(--accent); padding: 5px 10px; border-radius: 3px; }
.price-chip.quiet { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.service-detail { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.service-detail > p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 28px; }
.checklist li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.checklist li::before { content: '+'; font-family: var(--font-mono); color: var(--accent); flex: 0 0 auto; }

/* Cards (values, terms) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.card .label { color: var(--accent); }
.card h3 { font-size: 22px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px;
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--accent); font-weight: 500; }
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 0 24px; color: var(--muted); line-height: 1.7; max-width: 760px; }

/* CTA band */
.cta-band .wrap { padding-top: 72px; padding-bottom: 80px; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 36px 36px; }
.cta-inner h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; }
.cta-inner p { color: var(--muted); margin-top: 10px; }

/* Case study */
.case { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.case-shot { flex: 3 1 560px; min-width: 0; position: relative; padding-top: 28px; }
.case-shot a { display: block; border: 1.5px solid var(--accent); }
.case-shot .size-note { display: block; margin-top: 8px; }
.case-notes { flex: 2 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.case-notes dl { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.case-notes dd { margin: 8px 0 0; color: var(--muted); line-height: 1.7; }
.case-notes dd ul { margin: 0; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { font-family: var(--font-mono); font-size: 12px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--text-soft); }
.chips li.home { border-color: var(--accent); color: var(--accent); }

/* Select field */
.field select {
  font-family: var(--font-body); font-size: 16px; color: var(--text); background-color: var(--bg);
  border: 1px solid var(--line-2); border-radius: 3px; padding: 12px 40px 12px 14px; min-height: 48px; width: 100%;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23F5A524' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,165,36,0.18); }

/* Concept viewer */
.viewer { width: min(1200px, 94vw); height: min(820px, 88vh); padding: 0; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); color: var(--text); overflow: hidden; }
.viewer::backdrop { background: rgba(10, 9, 7, 0.82); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.viewer-bar .viewer-title { color: var(--text); }
.viewer-actions { display: flex; gap: 8px; }
.viewer-actions a, .viewer-actions button { all: unset; cursor: pointer; font-family: var(--font-mono); font-size: 12px; color: var(--text); padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 3px; }
.viewer-actions a:hover, .viewer-actions button:hover { border-color: var(--accent); color: var(--accent); }
.viewer-actions a:focus-visible, .viewer-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.viewer iframe { width: 100%; height: calc(100% - 47px); border: 0; display: block; background: #0d0d0d; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
