/* D1 "quiet" design (2026-11-01; mock-ups in the Shabba home,
   mockups/app-navigation/d1-quiet*.html). The app header with the profile
   circle and round menu button, the shots page (body.d1-page) and the shot
   page frame: breadcrumbs, title, related shots. Colours are d1- tokens so
   the rest of the app keeps its own. */
:root {
    --d1-bg: #ffffff;
    --d1-paper: #ebf2fa;
    --d1-paper-2: #dbe6f3;
    --d1-card: #ffffff;
    --d1-ink: #1f1b1c;
    --d1-ink-2: #424b56;
    --d1-muted: #5d6875;
    --d1-line: #e3e8ef;
    --d1-line-2: #cfd8e3;
    --d1-blue: #0864c0;
    --d1-blue-soft: #e4effb;
    --d1-pink: #ff4fa8;
    --d1-pink-text: #b0216f;
    --d1-yellow: #f2c200;
    --d1-shadow-lg: 0 2px 6px rgba(20, 30, 50, .08), 0 18px 48px rgba(20, 30, 50, .16);
    --d1-logo-filter: none;
}
:root[data-theme="dark"] {
    --d1-bg: #12161c;
    --d1-paper: #1a2029;
    --d1-paper-2: #232b36;
    --d1-card: #1a2029;
    --d1-ink: #eef2f7;
    --d1-ink-2: #c3ccd7;
    --d1-muted: #98a3b1;
    --d1-line: #2a323d;
    --d1-line-2: #3a4452;
    --d1-blue: #6aaef5;
    --d1-blue-soft: #1d2c3f;
    --d1-pink-text: #ff8cc6;
    --d1-shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .5);
    --d1-logo-filter: invert(1) hue-rotate(180deg);
}

/* ---------- page ---------- */
body.d1-page { background: var(--d1-bg); color: var(--d1-ink); }
body.d1-page::before, body.d1-page::after { display: none !important; }
.d1-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }

/* ---------- header ---------- */
.d1-top { position: static; background: transparent; border: 0; }
.d1-top-row { max-width: 1320px; margin: 0 auto; padding: 26px 32px 6px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.d1-logo { height: 30px; width: auto; display: block; filter: var(--d1-logo-filter); }
.d1-corner { display: flex; align-items: center; gap: 6px; position: relative; }
.d1-avatar { position: relative; overflow: hidden; width: 36px; height: 36px; border-radius: 50%; background: var(--d1-ink); color: var(--d1-bg); display: grid; place-items: center; font: 700 14px/1 var(--sans); text-decoration: none; flex: none; }
.d1-avatar:hover { color: var(--d1-bg); outline: 2px solid var(--d1-blue); outline-offset: 2px; }
.d1-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* With a photo, no letter colour behind it: the dark fill showed as a jagged fringe round the clipped edge. */
.d1-avatar:has(img) { background: transparent; color: transparent; overflow: visible; }
.d1-burger { position: relative; width: 36px; height: 36px; min-width: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--d1-line-2); background: var(--d1-card); color: var(--d1-ink); display: grid; place-items: center; cursor: pointer; box-sizing: border-box; }
.d1-burger svg { display: block; width: 28px; height: 28px; }
.d1-burger:hover, .d1-burger[aria-expanded="true"] { background: var(--d1-paper); }
.d1-badge { position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--d1-pink); border: 2px solid var(--d1-bg); box-sizing: border-box; }

.d1-panel.dropdown-menu { width: 300px; margin-top: 10px !important; padding: 8px 0; background: var(--d1-card); color: var(--d1-ink); border: 1px solid var(--d1-line); border-radius: 16px; box-shadow: var(--d1-shadow-lg); font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; z-index: 1050; max-height: calc(100vh - 90px); overflow-y: auto; }
.d1-panel.dropdown-menu.show { right: 0; left: auto; top: 100%; }
.d1-menu-head { padding: 10px 18px 12px; display: grid; gap: 2px; border-bottom: 1px solid var(--d1-line); }
.d1-menu-head b { font-size: 15px; }
.d1-menu-head span { color: var(--d1-muted); font-size: 13px; overflow-wrap: anywhere; }
.d1-usage { display: grid; gap: 6px; width: 100%; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--d1-line); background: none; color: inherit; text-align: left; cursor: pointer; }
.d1-usage:hover { background: var(--d1-paper); }
.d1-usage-row { display: flex; justify-content: space-between; font-size: 13px; }
.d1-usage-bar { height: 6px; background: var(--d1-paper-2); border-radius: 99px; overflow: hidden; }
.d1-usage-bar span { display: block; height: 100%; background: var(--d1-blue); }
.d1-usage-bar[data-usage-state="warn"] span { background: #c98a00; }
.d1-usage-bar[data-usage-state="out"] span { background: #b8301d; }
.d1-usage-meta { color: var(--d1-muted); font-size: 12px; }
.d1-menu-links { display: grid; padding: 4px 0; }
.d1-menu-links form { margin: 0; }
.d1-menu-links a, .d1-menu-links button { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 9px 18px; text-decoration: none; font-size: 14px; color: var(--d1-ink); background: none; border: 0; text-align: left; cursor: pointer; }
.d1-menu-links a:hover, .d1-menu-links button:hover, .d1-menu-links a:focus-visible, .d1-menu-links button:focus-visible { background: var(--d1-paper); color: var(--d1-ink); }
.d1-menu-links em { font-style: normal; font-size: 12px; color: var(--d1-pink-text); font-weight: 600; }
.d1-menu-links em.d1-new::after { content: " new"; }
.d1-menu-links em[hidden] { display: none; }
.d1-menu-links kbd { font: 11px var(--mono); color: var(--d1-muted); background: none; border: 1px solid var(--d1-line-2); border-radius: 4px; padding: 1px 5px; }
.d1-menu-links hr { border: 0; border-top: 1px solid var(--d1-line); margin: 4px 0; opacity: 1; }
.d1-menu-label { padding: 6px 18px 2px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--d1-muted); }
.d1-to-light { display: none; }
:root[data-theme="dark"] .d1-to-light { display: inline; }
:root[data-theme="dark"] .d1-to-dark { display: none; }

.d1-theme-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--d1-line-2); background: var(--d1-card); color: var(--d1-ink); cursor: pointer; }
.d1-theme-fab span { font-size: 13.5px; font-weight: 600; }
/* The x sits on the pill's top-right edge, so the pointer moves onto it without leaving the pill. */
.d1-theme-fab-close { position: fixed; right: 14px; bottom: 50px; z-index: 71; width: 22px; height: 22px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--d1-line-2); background: var(--d1-card); color: var(--d1-muted); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .12s, visibility 0s .12s; }
.d1-theme-fab:hover + .d1-theme-fab-close, .d1-theme-fab-close:hover, .d1-theme-fab-close:focus-visible { opacity: 1; visibility: visible; transition: opacity .12s; }
.d1-theme-fab-close:hover { color: var(--d1-ink); }
:root[data-theme-fab="hidden"] .d1-theme-fab, :root[data-theme-fab="hidden"] .d1-theme-fab-close { display: none; }

/* ---------- shared bits ---------- */
.d1-h1 { font: 800 clamp(30px, 3.6vw, 42px)/1.06 var(--sans); letter-spacing: -.015em; margin: 0 0 6px; color: var(--d1-ink); }
.d1-h1 .d1-name { color: var(--d1-blue); }
.d1-h1.sm { font-size: clamp(26px, 2.8vw, 34px); }
.d1-h2 { font: 700 21px/1.2 var(--sans); margin: 0; color: var(--d1-ink); }
.d1-sub { color: var(--d1-muted); margin: 0; font-size: 16px; }
.over { position: relative; display: inline-grid; }
.over .glyph { grid-area: 1 / 1; mix-blend-mode: multiply; }
:root[data-theme="dark"] .over .glyph { mix-blend-mode: screen; }
.over .glyph:first-child { color: var(--d1-pink); transform: translate(3.75%, 2.5%); } /* scales with size: 3px/2px at 80px, ~1px at 26px */
.over .glyph:last-child { color: var(--d1-blue); }
.d1-facts { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--d1-muted); }
.d1-facts .chg { color: var(--d1-pink-text); font-weight: 600; }
.d1-tag { display: inline-block; font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; background: #ffe14d; color: #1f1b1c; padding: 3px 6px; border-radius: 4px; }

/* ---------- shots page ---------- */
.d1-hello { padding: 72px 0 8px; }
.d1-status { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 34px; }
.d1-st { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font-size: 14px; color: var(--d1-ink-2); text-decoration: none; cursor: pointer; }
.d1-st > .glyph { width: 18px; height: 18px; color: var(--d1-muted); stroke-width: 3; flex: none; }
.d1-st b { font-size: 14px; font-weight: 600; color: var(--d1-ink); }
.d1-st:hover b { color: var(--d1-blue); text-decoration: underline; }
.d1-st span { font-size: 13.5px; color: var(--d1-muted); }
.d1-st span::before { content: "·"; margin-right: 6px; }
.d1-pip { font: 700 11.5px/1 system-ui, sans-serif; font-style: normal; background: var(--d1-blue-soft); color: var(--d1-blue); border-radius: 99px; padding: 3px 7px; }
.d1-setup { margin-top: 34px; max-width: 460px; }

.d1-while { margin-top: 48px; }
.d1-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.d1-chip { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--d1-line-2); background: var(--d1-card); color: var(--d1-ink); text-decoration: none; font-size: 14px; }
.d1-chip:hover { border-color: var(--d1-blue); color: var(--d1-blue); }
.d1-chip em { font-style: normal; color: var(--d1-muted); font-size: 13px; }

.d1-area { margin-top: 52px; }
.d1-area-h { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.d1-area-h > .over, .d1-area-h > .glyph { width: 30px; height: 30px; flex: none; }
.d1-area-h > .over .glyph { width: 30px; height: 30px; }
.d1-area-h p { margin: 2px 0 0; color: var(--d1-muted); font-size: 14px; }
.d1-star-h { width: 30px; text-align: center; color: var(--d1-pink-text); font-size: 24px; flex: none; }
.d1-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
.d1-card { position: relative; display: grid; gap: 9px; align-content: start; }
.d1-card > a { color: inherit; text-decoration: none; display: grid; gap: 9px; }
.d1-thumb { aspect-ratio: 4 / 3; border-radius: 16px; background: var(--d1-paper); position: relative; overflow: hidden; display: grid; place-items: center; }
.d1-thumb > .over { position: relative; z-index: 1; }
.d1-thumb .glyph { width: 80px; height: 80px; stroke-width: 1.7; }
.d1-thumb .d1-tag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.d1-card h3 { margin: 0; display: flex; justify-content: space-between; gap: 10px; font: 650 15.5px/1.3 system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--d1-ink); }
.d1-card > a:hover h3 > span { color: var(--d1-blue); }
.d1-card h3 small { font-weight: 400; color: var(--d1-muted); font-size: 13px; white-space: nowrap; }
.d1-card h3 small.never { color: var(--d1-pink-text); }
.d1-card h3 small.failed { color: #b8301d; }
.d1-card p { margin: 0; color: var(--d1-ink-2); font-size: 14px; }
.d1-card .d1-note { color: var(--d1-pink-text); font-size: 13px; }
.d1-star-form { position: absolute; top: 10px; right: 10px; z-index: 3; margin: 0; }
.d1-star { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #55616f; font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.d1-star[aria-pressed="true"] { color: #b0216f; }
.d1-star:hover { color: #1f1b1c; }
.d1-card.is-roadmap .d1-thumb { opacity: .55; }
.d1-vote-form { margin: 2px 0 0; }
.d1-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--d1-line-2); background: var(--d1-card); color: var(--d1-ink); font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.d1-btn:hover, .d1-btn[aria-pressed="true"] { border-color: var(--d1-blue); color: var(--d1-blue); }
.d1-banner { margin-top: 28px; padding: 12px 16px; border-radius: 12px; border: 1px solid #f0d58a; background: #fff8e1; color: #5c4400; font-size: 14px; }
:root[data-theme="dark"] .d1-banner { background: #43391a; border-color: #6b5a24; color: #ffe4a3; }
.d1-banner a { color: inherit; font-weight: 600; margin-left: 6px; }
.d1-wish { margin-top: 48px; color: var(--d1-muted); font-size: 14px; }
.d1-wish a { color: var(--d1-blue); font-weight: 600; }

/* Corner decorations, varied per card */
.d1-deco { position: absolute; pointer-events: none; }
.d1-deco.k-pink { --k: var(--d1-pink); } .d1-deco.k-blue { --k: var(--d1-blue); } .d1-deco.k-yellow { --k: var(--d1-yellow); }
.d1-deco.disc { width: 130px; height: 130px; border-radius: 50%; background: var(--k); opacity: .14; }
.d1-deco.ring { width: 140px; height: 140px; border-radius: 50%; border: 18px solid var(--k); opacity: .14; }
.d1-deco.dots { width: 150px; height: 150px; border-radius: 50%; background-image: radial-gradient(circle, var(--k) 32%, transparent 35%); background-size: 10px 10px; opacity: .28; }
.d1-deco.quarter { width: 120px; height: 120px; background: var(--k); opacity: .12; }
.d1-deco.br { right: -40px; bottom: -44px; } .d1-deco.bl { left: -40px; bottom: -44px; } .d1-deco.tr { right: -40px; top: -44px; } .d1-deco.tl { left: -40px; top: -44px; }
.d1-deco.quarter.br { right: 0; bottom: 0; border-top-left-radius: 100%; } .d1-deco.quarter.bl { left: 0; bottom: 0; border-top-right-radius: 100%; }
.d1-deco.quarter.tr { right: 0; top: 0; border-bottom-left-radius: 100%; } .d1-deco.quarter.tl { left: 0; top: 0; border-bottom-right-radius: 100%; }

.d1-foot { margin-top: 80px; border-top: 1px solid var(--d1-line); padding: 18px 0 90px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--d1-muted); }
.d1-foot a { color: var(--d1-muted); }

/* ---------- shot page frame ---------- */
.d1-shot-head { padding-top: 56px; }
.d1-crumbs { display: flex; gap: 8px; font-size: 13.5px; color: var(--d1-muted); flex-wrap: wrap; }
.d1-crumbs a { color: var(--d1-muted); }
.d1-crumbs b { color: var(--d1-ink); font-weight: 600; }
.d1-shot-title { display: flex; gap: 16px; align-items: center; margin: 14px 0 22px; }
.d1-shot-acts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
@media (max-width: 640px) { .d1-shot-title:has(.d1-shot-acts) { flex-wrap: wrap; } .d1-shot-acts { margin-left: 0; width: 100%; justify-content: flex-start; } }
.d1-shot-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13.5px; color: var(--d1-muted); }
.d1-shot-facts .tool-top-bar-guide { padding: 0; border: 0; background: none; color: var(--d1-blue); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: 13.5px; }
/* A shot's own links beside How this works (layouts/tool.html block shot_facts_links), styled like it. */
.d1-shot-facts .tool-top-bar-runs { color: var(--d1-blue); font-weight: 600; text-decoration: underline; font-size: 13.5px; }
/* "Last run" (tools/_shared/last_run.html): rows and price of the latest finished run, "Failed" in red only when it failed; the details show at once on hover or focus (the Labs badge's tip) */
.d1-shot-facts .shot-last-run { position: relative; display: inline-flex; align-items: baseline; gap: 5px; color: var(--d1-ink-2); text-decoration: none; font-size: 13.5px; }
.d1-shot-facts .shot-last-run:hover .shot-last-run-label, .d1-shot-facts .shot-last-run:focus-visible .shot-last-run-label { text-decoration: underline; }
.d1-shot-facts .shot-last-run-label { color: var(--d1-muted); }
.d1-shot-facts .shot-last-run-failed { color: var(--red); font-weight: 600; }
.d1-shot-facts .shot-last-run:hover .lab-badge-tip, .d1-shot-facts .shot-last-run:focus .lab-badge-tip { display: block; }
.d1-shot-facts .shot-last-run.lab-badge-dismissed .lab-badge-tip { display: none; }
.d1-next { margin-top: 44px; }
.d1-next-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.d1-next-card { display: flex; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--d1-line); background: var(--d1-card); color: var(--d1-ink); text-decoration: none; }
.d1-next-card:hover { border-color: var(--d1-blue); color: var(--d1-ink); }
.d1-ni { width: 52px; height: 52px; border-radius: 10px; background: var(--d1-paper); display: grid; place-items: center; color: var(--d1-blue); flex: none; }
.d1-next-card b { display: block; font-size: 15px; }
.d1-next-card em { display: block; font-style: normal; font-size: 13px; color: var(--d1-ink-2); margin: 2px 0 4px; }
.d1-next-card small { font-size: 12.5px; color: var(--d1-muted); }
.d1-next-all { margin-top: 14px; font-size: 14px; }
.d1-next-all a { color: var(--d1-blue); font-weight: 600; text-decoration: none; }
.d1-next-all a:hover { text-decoration: underline; }

@media (max-width: 1100px) { .d1-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
    .d1-top-row { padding: 16px 16px 6px; }
    .d1-wrap { padding: 0 16px; }
    .d1-hello { padding-top: 40px; }
    .d1-shot-head { padding-top: 32px; }
    .d1-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .d1-next-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .d1-panel.dropdown-menu.show { position: fixed !important; left: 12px; right: 12px; top: 64px; width: auto; max-height: calc(100vh - 80px); }
    .d1-theme-fab, .d1-theme-fab-close { display: none; }
    .d1-cards { gap: 20px 12px; }
    .d1-thumb .glyph { width: 54px; height: 54px; }
    .d1-card p, .d1-card .d1-facts { display: none; }
    .d1-card h3 { flex-direction: column; gap: 2px; font-size: 14px; }
}

/* Shot pages: the tool's canvas lines up with the header and breadcrumbs.
   The shot's title is for screen readers only (the shot tabs name it). */
/* Shot pages use the full window width (2026-11-02, docs/shot-tabs.md). The header
   row goes full width too (2026-11-03), so the logo lines up with the first tab
   and the menu with the right edge; the footer matches it. */
body.tool-layout.d1-page .d1-top-row { max-width: none; }
body.tool-layout.d1-page .tool-page.tool-canvas { max-width: none; margin: 0 auto; padding: 0 32px 40px; }
body.tool-layout.d1-page .d1-wrap:is(.d1-shot-head, .d1-next), body.tool-layout.d1-page footer.d1-wrap { max-width: none; }
/* ?embed=1: a shot tab in a frame (docs/shot-tabs.md). Side by side it is a
   slim pane (its title bar names it); shown on its own (shot-solo) it keeps
   the shot page's own margins, so it looks the same as the page itself. */
body.shot-embed .impersonation-banner { display: none; }
body.shot-embed:not(.shot-solo) .d1-wrap.d1-shot-head, body.shot-embed:not(.shot-solo) .tool-page.tool-canvas { padding-left: 16px; padding-right: 16px; }
body.shot-embed .d1-shot-head { padding-top: 14px; }
body.d1-page .app-footer { background: transparent; border-top: 1px solid var(--d1-line); color: var(--d1-muted); }
@media (max-width: 900px) { body.tool-layout.d1-page .tool-page.tool-canvas { padding: 0 16px 32px; } }
.setup.d1-setup { justify-self: start; align-self: start; max-width: 420px; background: var(--d1-card); border: 1px solid var(--d1-line-2); border-radius: 14px; }

/* ---------- shots panel (header, left of the profile circle) ---------- */
:root { --d1-blue-mid: #6aaef5; }
:root[data-theme="dark"] { --d1-blue-mid: #2f78c8; }
.d1-shots { position: static; }
.d1-apps { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: none; display: grid; place-items: center; cursor: pointer; }
.d1-apps svg { display: block; width: 26px; height: 26px; }
.d1-apps:hover, .d1-apps[aria-expanded="true"] { background: var(--d1-paper); }
.d1-launch.dropdown-menu { width: 344px; margin-top: 10px !important; padding: 0; background: var(--d1-card); color: var(--d1-ink); border: 1px solid var(--d1-line); border-radius: 16px; box-shadow: var(--d1-shadow-lg); z-index: 1050; }
.d1-launch.dropdown-menu.show { right: 84px; left: auto; top: 100%; }
.d1-launch-s { padding: 14px 16px 12px; }
.d1-launch-s + .d1-launch-s { border-top: 1px solid var(--d1-line); }
.d1-launch-h { margin: 0 0 8px; font: 400 18px/1 var(--sans); color: var(--d1-pink-text); }
.d1-launch-g { display: grid; grid-template-columns: repeat(5, 52px); gap: 10px; justify-content: space-between; }
.d1-lt { width: 52px; height: 52px; border-radius: 12px; background: var(--d1-paper); display: grid; place-items: center; text-decoration: none; border: 1px solid transparent; box-sizing: border-box; }
.d1-lt:hover, .d1-lt:focus-visible { border-color: var(--d1-blue); background: var(--d1-blue-soft); }
.d1-lt-here { box-shadow: inset 0 0 0 2px var(--d1-blue); }
.d1-lt .over .glyph { width: 26px; height: 26px; }
.d1-launch-empty { min-height: 52px; display: flex; align-items: center; margin: 0; font-size: 13px; color: var(--d1-muted); }
.d1-launch-soon { margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--d1-line); font-size: 13px; color: var(--d1-muted); text-align: center; }
.d1-lt-tip { position: fixed; z-index: 2000; max-width: 260px; padding: 6px 9px; border-radius: 8px; background: var(--d1-ink); color: var(--d1-bg); font-size: 12.5px; line-height: 1.4; pointer-events: none; box-shadow: var(--d1-shadow-lg); }
.d1-lt-tip b { display: block; font-weight: 600; }
.d1-lt-tip span { opacity: .75; }
.d1-lt-tip[hidden] { display: none; }
@media (max-width: 560px) {
    .d1-launch.dropdown-menu.show { position: fixed !important; left: 12px; right: 12px; top: 64px; width: auto; max-height: calc(100vh - 80px); overflow-y: auto; }
    .d1-launch-g { grid-template-columns: repeat(auto-fill, 52px); }
}

/* ---------- Shot pages: header height ----------
   Not sticky; the header and shot head always show. */
body.tool-layout .d1-top { height: 68px; }
@media (max-width: 900px) { body.tool-layout .d1-top { height: 58px; } }

/* ---------- Shot pages: breathing room after the report (design rules 2026-11-02) ----------
   A long pause (140px) before "Missing something in this report?", which
   only shows once a report is on screen; then five times that (700px)
   before Related shots, so they read as a separate area. */
body.tool-layout .tool-feedback-line { margin-top: 140px; padding-top: 28px; text-align: center; }
body.tool-layout #tool-results[hidden] ~ .tool-feedback-line { display: none; }
body.tool-layout .d1-next { margin-top: 700px; }

/* The coming-soon card (app/services/tools/release.py): the size of a shot
   card, after the shots, with a dashed picture. No link and no hover; it is
   rendered by the server, so it never pops in. */
.d1-card-soon { cursor: default; }
.d1-thumb-soon { background: var(--d1-card); border: 1px dashed var(--d1-line-2, #cfd8e3); }
.d1-card-soon h3 > span { color: var(--d1-ink); }

/* Admins' "Show unreleased shots" switch: one quiet line above the shots,
   always there for admins, so the page never moves. */
.d1-unreleased-switch { margin: 40px 0 0; display: flex; gap: 8px; font-size: 13.5px; color: var(--d1-muted); }
.d1-unreleased-switch a { color: var(--d1-blue); }

/* The admins' Unreleased tag: the Labs badge's shape and tip, in blue. */
.lab-badge.unreleased-badge {
    background: var(--d1-blue-soft);
    color: var(--d1-blue);
    border-color: var(--d1-line);
    font-size: 10.5px;
    padding: 3px 6px;
}
