/* Dossier */
.dossier {
  position: fixed; z-index: 14; top: 0; right: 0; bottom: 0; width: min(620px, 100%);
  background: var(--panel-solid); border-left: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -20px 0 60px rgba(0,0,0,.35);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: from-right .28s ease-out;
}
.d-head {
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 24px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 30%, var(--panel-solid)), var(--panel-solid));
  display: grid; gap: 8px; position: relative;
}
/* Pinned so the close button stays reachable while the dossier scrolls (the dossier is anchored right, so this sits inside it). */
.d-head .x {
  position: fixed; right: 22px; top: calc(env(safe-area-inset-top, 0px) + 14px); z-index: 4;
  width: 44px; height: 44px; background: var(--panel-solid); box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.d-kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-right: 48px; }
.d-head h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 6vw, 44px); line-height: 1; color: var(--pc); text-wrap: balance; padding-right: 40px; }
.d-tag { margin: 0; font-size: 17px; max-width: 52ch; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.d-chips span { font-family: var(--f-mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.d-chips span.live { color: var(--pc-ink); background: var(--pc); border-color: transparent; font-weight: 600; }
.d-sec { padding: 0 24px; display: grid; gap: 14px; }
.shot { margin: 0; display: grid; gap: 6px; }
.shot .frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0a1222; aspect-ratio: 16 / 9; max-width: 100%; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.shot-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shot-bar .sp { flex: 1; }
.shot-name { display: none; font-family: var(--f-display); color: var(--pc); font-size: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--pc); color: var(--pc-ink); }
.tool { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 700; text-decoration: none; }
.tool:hover { border-color: var(--pc); }
/* The site renders at desktop width and is scaled down to fit; "full" lifts it to cover the viewport. */
.site { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; border: 0; transform-origin: 0 0; background: #fff; }
.site-wait {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  background: #0a1222; font-family: var(--f-mono); font-size: 12px; color: var(--muted);
}
.shot.full {
  position: fixed; inset: 0; z-index: 30; background: var(--panel-solid);
  display: flex; flex-direction: column; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
}
.shot.full .shot-name { display: block; }
.shot.full .frame { flex: 1; aspect-ratio: auto; }
.shot.full .site { width: 100% !important; height: 100% !important; transform: none !important; }
.shot.full figcaption { display: none; }
.ghcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.ghcards a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 2 / 1; max-width: 100%; }
.ghcards img { width: 100%; height: 100%; object-fit: cover; display: block; }
.links { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.lrow:first-child { border-top: 0; }
.lk { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lv { font-family: var(--f-mono); font-size: 13px; overflow-wrap: anywhere; color: var(--paper); text-decoration-color: color-mix(in srgb, var(--pc) 70%, transparent); text-underline-offset: 3px; }
.lv.none { color: var(--muted); font-family: var(--f-body); }
.copy { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 12px; }
.callout { border: 1px dashed color-mix(in srgb, var(--pc) 60%, var(--line)); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.tabs {
  position: sticky; top: 0; z-index: 2; margin-top: 20px;
  display: flex; gap: 4px; padding: 0 72px 0 24px; background: var(--panel-solid);
  border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
}
.tabs button {
  background: none; border: 0; border-bottom: 3px solid transparent;
  padding: 12px 10px 10px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--pc); }
.d-body { padding: 20px 24px 28px; display: grid; gap: 18px; }
.d-body h3 { margin: 0 0 6px; font-size: 13px; font-family: var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pc); font-weight: 600; }
.d-body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.d-body li { max-width: 64ch; }
.d-body p { margin: 0; max-width: 64ch; }
.oneliner { font-size: 20px; line-height: 1.35; font-style: italic; }
.pitch { margin: 0; display: grid; gap: 14px; }
.pitch div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
.pitch dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.pitch dd { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 22px; color: var(--pc); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-top: 1px solid var(--line); }
tr:first-child th, tr:first-child td { border-top: 0; }
th { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); width: 32%; }
.code { position: relative; }
.code pre {
  margin: 0; background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; padding-right: 70px; overflow-x: auto;
  font-family: var(--f-mono); font-size: 13px; line-height: 1.6; color: #d8e4f5;
}
.code .copy { position: absolute; top: 8px; right: 8px; }
.code-t { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.d-foot { display: flex; justify-content: space-between; gap: 10px; padding: 0 24px 28px; flex-wrap: wrap; }
.d-foot button { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 13px; }
.d-foot button:hover { border-color: var(--pc); }


