.duo.graphite {
  --base:#111111;--text:#f5f4f1;--muted:#b6b4b0;--subtle:#a5a29c;
  --accent:#f1c780;--accent-ink:#21180a;--line:#ffffff1c;--line-strong:#ffffff42;
  --sheet:#222221;--control:#282827;--dark:#0b0b0b;--field:#171716;--raised:#34332f;
  --surface-shadow:0 18px 38px #0004,inset 0 1px #ffffff13;
  --panel:radial-gradient(ellipse at 3% 0,#ffffff14,transparent 54%),linear-gradient(150deg,#242424,#1a1a19);
  background:radial-gradient(ellipse 1050px 460px at 100% 0,#252524,transparent),var(--base);
}
.duo.graphite::before { content:none }
.graphite .appbar-inner,.graphite .app-shell { width:min(1176px,calc(100% - 64px)) }
.graphite .appbar-inner { min-height:86px }
.graphite .app-identity strong {font-size:21px}
.graphite .status-dot.ok {background:#a3b29e}
.graphite .palette,.graphite .back,.graphite .source-bubble {
  background:#292928d9;border-color:var(--line);box-shadow:inset 0 1px #ffffff1c;
}
.graphite .palette,.graphite .back {width:44px;height:44px}
.graphite .app-shell { gap:16px }
.graphite .capture,.graphite .app-shell:has(.preview.show) .capture {
  max-width:none;padding:clamp(24px,5vw,66px);border:1px solid var(--line);
  border-radius:34px;background:var(--panel);box-shadow:var(--surface-shadow);overflow:hidden;
}
.graphite .capture {min-height:322px;grid-template-columns:minmax(0,1.55fr) minmax(230px,1fr);column-gap:36px}
.graphite .capture h1 {font-size:clamp(36px,6vw,72px);letter-spacing:-.045em}
.graphite .capture p {margin-block-start:10px;color:var(--muted)}
.graphite .app-shell:has(.preview.show) .capture {
  min-height:0;padding:10px 14px;display:block;border-radius:25px
}
.graphite .capture-heading {margin-block-end:19px}
.graphite .app-shell:has(.preview.show) .capture-heading {margin-block-end:5px}
.graphite .url-box {background:var(--field);box-shadow:inset 0 1px #ffffff14;border-color:var(--line)}
.graphite .url-box:focus-within {border-color:var(--accent)}
.graphite .url-box .inspect-btn,.graphite .command-dock .dock-download {
  color:#171715;background:#f1f0eb;border:1px solid #fff7;box-shadow:0 3px 9px #0002;
}
.graphite .url-box .inspect-btn:hover,.graphite .command-dock .dock-download:hover {background:#fff;color:#171715}
.graphite .waiting,.graphite .directory {
  max-width:none;border-radius:24px;background:var(--panel);border-color:var(--line);box-shadow:none;
}
.graphite .waiting { padding:18px 22px }
.graphite .waiting-platforms span {border-radius:100px;padding:6px 11px;background:var(--field)}
.graphite .screen {
  padding:0;border:0;box-shadow:none;background:none;border-radius:0;
  grid-template-columns:minmax(320px,.97fr) minmax(0,1.3fr);
  grid-template-rows:auto;gap:16px;align-items:start;
}
.graphite .film-card,.graphite .video-tools {
  min-width:0;border:1px solid var(--line);border-radius:29px;background:var(--panel);box-shadow:var(--surface-shadow);
}
.graphite .film-card {grid-column:2;grid-row:1;padding:10px}
.graphite .video-tools {grid-column:1;grid-row:1;padding:18px;display:grid;gap:14px}
.graphite .screen-stage {min-height:0;border-radius:21px;border:1px solid #ffffff12;background:var(--dark)}
.graphite .screen-stage::before {background:linear-gradient(0deg,#0b0b0b83,transparent 35%)}
.graphite .media-atmosphere {opacity:.39;filter:blur(38px) saturate(70%)}
.graphite .player-wrap.portrait {height:clamp(240px,52dvh,470px)}
.graphite .screen-meta {padding:1px 2px 3px}
.graphite .screen-meta h2 {font-size:clamp(18px,2.5vw,26px)}
.graphite .screen-meta .meta {color:var(--muted);margin-block-start:7px}
.graphite .glass-transport {
  margin-block-start:8px;padding:8px 10px;display:grid;grid-template-columns:auto minmax(0,1fr);
  border-radius:17px;background:var(--field);box-shadow:inset 0 1px #ffffff12;border-color:var(--line);
}
.graphite .transport-buttons {gap:3px}
.graphite .transport-buttons button {width:44px;min-height:44px;background:#ffffff0a;border-color:var(--line)}
.graphite .transport-buttons .main-play {background:var(--accent);border-color:transparent;color:var(--accent-ink)}
.graphite .volume {grid-column:1/-1;background:var(--control)}
.graphite .tools-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.graphite .tools-grid button {
  min-width:0;min-height:101px;text-align:start;display:grid;justify-items:start;align-content:start;gap:4px;
  padding:12px;border-radius:19px;border-color:var(--line);
  background:radial-gradient(ellipse at 100% 0,#ffffff14,transparent 61%),var(--control);
  box-shadow:inset 0 1px #ffffff15;
}
.graphite .tools-grid button:hover,.graphite .tools-grid button:focus-visible {border-color:#f1c78078;background:var(--raised)}
.graphite .tools-grid button svg {
  width:34px;height:34px;padding:7px;margin-block-end:3px;border-radius:11px;
  background:#f1c78018;color:var(--accent);border:1px solid #f1c7802b
}
.graphite .tools-grid button span {font-size:15px;font-weight:700}
.graphite .tools-grid button small {font-size:11px;color:var(--muted)}
.graphite .command-dock {
  width:100%;padding:0;gap:7px;border:0;box-shadow:none;background:transparent;
}
.graphite .command-dock button {min-height:47px;display:flex;justify-content:center;align-items:center;gap:7px}
.graphite .command-dock button:not(.dock-download) {background:var(--control);border:1px solid var(--line)}
.graphite .command-dock button svg {width:17px;height:17px}
.graphite .player-options {border-block-start:1px solid var(--line)}
.graphite .player-options summary {cursor:pointer;min-height:44px;align-content:center;color:var(--muted);font-size:13px}
.graphite .preview-selector {margin:0 0 4px;min-width:0}
.graphite .preview-modes {background:var(--field)}
.graphite .tool-dialog {background:#222221;border-color:var(--line)}
.graphite.light {
  --base:#edece8;--text:#22211f;--muted:#534f49;--subtle:#615d55;
  --accent:#735013;--accent-ink:#fff9eb;--line:#1614112b;--line-strong:#16141154;
  --sheet:#fcfaf4;--control:#e5e2d9;--dark:#191918;--field:#f8f6f0;--raised:#ded8cb;
  --panel:linear-gradient(150deg,#fdfbf6,#eae7df);
  background:var(--base);
}
.graphite.light .capture .url-box,.graphite.light .directory,.graphite.light .waiting,
.graphite.light .preview-modes,.graphite.light .volume,.graphite.light .palette,.graphite.light .back {background:var(--field)}
.graphite.light .screen,.graphite.light .command-dock {background:transparent}
.graphite.light .tool-dialog {background:var(--sheet)}
.graphite.light .command-dock .dock-download,.graphite.light .url-box .inspect-btn {background:#242322;color:#fff}
.graphite.light .tools-grid button svg {border-color:#73501338}
@media (max-width:860px) {
  .graphite .appbar-inner,.graphite .app-shell {width:calc(100% - 26px)}
  .graphite .screen {grid-template-columns:minmax(0,1fr);gap:12px}
  .graphite .film-card,.graphite .video-tools {grid-column:1;grid-row:auto}
  .graphite .video-tools {padding:12px}
  .graphite .appbar-inner {min-height:69px}
  .graphite .app-identity strong {font-size:17px}
}
@media (max-width:600px) {
  .graphite .capture {min-height:0;grid-template-columns:minmax(0,1fr);gap:0;padding:18px;border-radius:26px}
  .graphite .capture-heading {margin-block-end:12px}
  .graphite .capture h1 {font-size:37px}
  .graphite .app-shell:has(.preview.show) .capture {padding:8px}
  .graphite .waiting {padding:12px}
  .graphite .glass-transport {grid-template-columns:minmax(0,1fr);padding:7px}
  .graphite .transport-buttons {justify-content:center}
  .graphite .player-wrap.portrait {height:clamp(232px,43dvh,390px)}
  .graphite .tools-grid button {min-height:96px}
}

/* Quiet desk: the link is the only primary action before inspection. */
.duo.graphite:not(.light) {
  --base:var(--bg-0);--text:var(--text-1);--muted:var(--text-2);--subtle:var(--text-3);
  --accent:#fff;--accent-ink:var(--bg-0);--line:var(--hairline);--line-strong:var(--hairline-strong);
  --sheet:var(--surface-1);--control:var(--surface-2);--field:var(--surface-2);--raised:var(--surface-3);
  --panel:linear-gradient(160deg,#1c1c1c,#151515);
  background:radial-gradient(120% 80% at 50% -10%,var(--surface-2),transparent 60%),var(--bg-0)
}
.graphite .appbar-inner {min-height:64px}
.graphite .capture {min-height:0;grid-template-columns:minmax(0,1fr);justify-items:center}
.graphite .capture > :not(.import-figure) {grid-column:1;max-width:720px}
.graphite .capture:not(:has(.app-shell .preview.show)) .capture-heading {justify-content:center}
.graphite .capture-heading > div {text-align:center}
.graphite .capture h1 {
  font-size:clamp(40px,7vw,80px);letter-spacing:normal;line-height:1.16;
  background:linear-gradient(#fff,#d9d9d9 45%,#8c8c8c);background-clip:text;color:transparent;
}
.graphite.light .capture h1 {background:none;color:var(--text)}
.graphite .url-box {min-height:64px}
.graphite .url-box .inspect-btn {min-height:52px}
.graphite .capture:not(:has(+ .waiting + .preview.show)) .notice-strip {width:100%}
.graphite .app-shell:has(.preview.show) .capture-heading {justify-content:flex-start}
.graphite .screen {grid-template-columns:minmax(0,1fr);gap:0;width:min(100%,920px);margin-inline:auto}
.graphite .film-card,.graphite .video-tools {grid-column:1;grid-row:auto}
.graphite .film-card {border-end-start-radius:0;border-end-end-radius:0;border-block-end:0}
.graphite .video-tools {border-start-start-radius:0;border-start-end-radius:0;border-block-start:0}
.graphite .film-card .player-wrap.portrait {height:clamp(240px,49dvh,430px)}
.graphite .tools-grid {display:flex;flex-wrap:wrap}
.graphite .tools-grid button {
  min-height:44px;flex:1 1 auto;display:flex;align-items:center;justify-content:center;gap:7px;
  padding:5px 10px;border-radius:var(--r-pill);border-color:var(--hairline);
  background:var(--control);
}
.graphite .tools-grid button:hover,.graphite .tools-grid button:focus-visible {border-color:var(--line-strong)}
.graphite .tools-grid button svg {padding:0;margin:0;width:17px;height:17px;background:none;border:0}
.graphite .tools-grid button span {font-size:13px}
.graphite .tools-grid button small {display:none}
.graphite .platform-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
.graphite #versionBadge {font-size:12px;text-align:center;color:var(--muted)}
@media(max-width:600px) {
  .graphite .appbar-inner,.graphite .app-shell {width:calc(100% - 32px)}
  .graphite .capture {padding:24px 12px}
  .graphite .capture h1 {font-size:40px}
  .graphite .platform-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .graphite .command-dock {flex-wrap:wrap}
  .graphite .command-dock .dock-download {flex-basis:100%}
}
.graphite .app-shell {min-width:0}
.graphite .capture {width:min(100%,920px);justify-self:center}
.graphite .app-shell:has(.preview.show) .capture {width:100%}
.graphite .volume {display:flex;align-items:center;gap:8px;padding:0 10px;min-height:44px;border-radius:var(--r-pill);color:var(--muted)}
.graphite .volume input {flex:1;direction:ltr}
.graphite .main-play {background:var(--accent);color:var(--accent-ink)}
.graphite .skip-media.forward svg {transform:scaleX(-1)}
.graphite .transport-buttons {direction:ltr}
.graphite .appbar .palette,.graphite .appbar .back {background:var(--surface-3)}
.graphite.light .appbar .palette,.graphite.light .appbar .back {background:var(--field)}
