/* Line-art identity: light paper, thin ink strokes, mustard titles, sky-blue badges, small coloured
   play triangles and uppercase labels with a dotted arrow. Purple stays the brand and action colour. */
:root {
  color-scheme: light;
  --dots: #9fa5a7; --hover: #fff3d4; --press: #fbe2a6; --bar: #f7f7f5; --glow: #fafaf9; --edge: #e6e7e5; --shadow: #2f343855;
  --title-stroke: #2f3438; --notice: #fdecea; --notice-text: #7a2b22; --warn: #a86a00; --err: #c0392b; --beacon: #4c86a8;
  --log-bg: #fff; --log: #3b4246; --log-time: #9aa1a4;
  --page: #f2f2f0; --paper: #fbfbfa; --ink: #2f3438; --line: #c9cccd; --muted: #6f7679;
  --text: #2f3438; --accent: #5a2bd6; --accent-text: #5a2bd6; --mustard: #f5c158; --sky: #a6dcf5;
  --coral: #f08f84; --leaf: #a9d46f; --mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
  --sans: "Avenir Next", "Montserrat", "Segoe UI", "Helvetica Neue", sans-serif;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 10'%3E%3Cpath d='M1 5h18' stroke='%232f3438' stroke-width='1.3' stroke-dasharray='1.3 2.2' fill='none'/%3E%3Cpath d='M23 5h39M57 1l5 4-5 4' stroke='%232f3438' stroke-width='1.3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  font: 15px var(--sans); color: var(--text);
  background: var(--page);
}
:root[data-theme=dark] {
  color-scheme: dark;
  --page: #15181b; --paper: #1d2125; --ink: #e4e1da; --line: #3a4045; --muted: #9ba3a7; --text: #e4e1da;
  --accent-text: #a98bff; --dots: #5b6368; --hover: #3a3222; --press: #4a3d22; --bar: #181b1e;
  --glow: #1d2226; --edge: #101214; --shadow: #000000aa; --title-stroke: #0d0f11;
  --notice: #3b2525; --notice-text: #ffc9c1; --warn: #f3cd7c; --err: #ff9d91; --beacon: #8fc3e3;
  --log-bg: #14181b; --log: #d1d6d4; --log-time: #7d878b;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 10'%3E%3Cpath d='M1 5h18' stroke='%23d9d6cf' stroke-width='1.3' stroke-dasharray='1.3 2.2' fill='none'/%3E%3Cpath d='M23 5h39M57 1l5 4-5 4' stroke='%23d9d6cf' stroke-width='1.3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% 30%, var(--glow) 0, var(--page) 62%, var(--edge) 100%) no-repeat; background-size: 100% 100vh; }
button, select, input { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1.4px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 7px 15px; font-size: .74rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
button:hover:enabled, select:hover:enabled { background: var(--hover); }
button:active:enabled, button.pressed { transform: translateY(1px); background: var(--press); }
button:focus-visible, select:focus-visible, input:focus-visible, canvas:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled, select:disabled { opacity: .38; cursor: default; }
[hidden] { display: none !important; }
.top { border-bottom: 1.4px dotted var(--dots); background: var(--bar); }
.top-inner, main { width: min(1240px, calc(100% - 80px)); margin: auto; }
.top-inner { height: 63px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.3rem; letter-spacing: -.04em; color: var(--ink); }
.mark { width: 29px; height: 29px; transform: rotate(-3deg); }
.product { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.product { border-left: 1.4px dotted var(--dots); padding-left: 18px; }
.language { margin-left: auto; display: inline-flex; }
.language select { height: 34px; padding: 0 30px 0 13px; border: 1.4px solid var(--ink); border-radius: 999px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%236f7679' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center / 10px; appearance: none; -webkit-appearance: none; font: 600 .7rem var(--mono); letter-spacing: .04em; color: var(--ink); }
/* The credit sits centred in the device toolbar, between the run buttons and the screen options. */
.device-tools .screen-options { justify-self: end; }
.device-tools { container-type: inline-size; }
@container (max-width: 600px) { .creator-label { display: none; } }
@container (max-width: 470px) { .creator { display: none; } }
.creator { display: inline-flex; align-items: baseline; gap: 8px; border-radius: 4px; color: var(--accent-text); text-decoration: none; font-size: .78rem; white-space: nowrap; }
.creator-label { color: var(--muted); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.creator-mail { font: 600 .8rem var(--mono); }
.creator:hover .creator-mail { text-decoration: underline; text-underline-offset: 3px; }
.creator:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-toggle { flex-shrink: 0; width: 34px; height: 34px; padding: 0; border-radius: 50%; letter-spacing: 0; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun, :root[data-theme=dark] .theme-toggle .moon { display: none; }
:root[data-theme=dark] .theme-toggle .sun { display: block; }
.trail .tip { fill: var(--ink); }
main { padding: 26px 0 40px; }
.heading, .panel-head, .device-tools, .files, .transport, .screen-options, .console-tools { display: flex; align-items: center; }
.heading { position: relative; justify-content: space-between; gap: 12px; margin-bottom: 26px; padding: 10px 0 14px; }
.heading > div:first-child { position: relative; z-index: 1; }
.heading .files { position: relative; z-index: 1; }
.trail { position: absolute; inset: 0 -40px; width: calc(100% + 80px); height: 100%; overflow: visible; pointer-events: none; }
.trail .ink { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.trail .dots { fill: none; stroke: var(--dots); stroke-width: 1.3; stroke-dasharray: 1.3 4; stroke-linecap: round; }
.trail .ring { fill: none; stroke: var(--dots); stroke-width: 1.2; stroke-dasharray: 2 2.6; }
h1, h2, p { margin: 0; }
h1 { font: 800 clamp(1.9rem, 3.4vw, 2.75rem) / 1.1 var(--sans); letter-spacing: .01em; text-transform: uppercase; color: var(--mustard); -webkit-text-stroke: 1.4px var(--title-stroke); paint-order: stroke fill; }
#project-name { display: flex; align-items: center; gap: 10px; margin-top: 9px; color: var(--muted); font: .78rem var(--mono); overflow-wrap: anywhere; }
#project-name::after { content: ""; flex: none; width: 64px; height: 10px; background: var(--arrow) no-repeat center / contain; opacity: .8; }
.files, .transport, .screen-options, .console-tools { gap: 8px; }
.files button { min-height: 38px; }
.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.primary:hover:enabled { background: #6c3ff0; border-color: #6c3ff0; }
.subtle { background: transparent; border-color: transparent; color: var(--muted); }
.subtle:hover:enabled { background: transparent; color: var(--ink); text-decoration: underline dotted; text-underline-offset: 4px; }
.folder-icon { width: 15px; height: 10px; border: 1.4px solid currentColor; border-radius: 2px; position: relative; }
.folder-icon::before { content: ""; position: absolute; top: -4px; left: -1.4px; width: 7px; height: 3px; border: 1.4px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
#notice { padding: 11px 15px; margin-bottom: 14px; border: 1.4px solid var(--coral); border-radius: 12px; background: var(--notice); color: var(--notice-text); }
.workbench { display: grid; grid-template-columns: minmax(0, 2.65fr) minmax(232px, 1fr); gap: 18px; }
.panel { border: 1.4px solid var(--ink); background: var(--paper); border-radius: 18px; overflow: hidden; min-width: 0; box-shadow: 0 10px 28px -18px var(--shadow); }
.panel-head { min-height: 52px; padding: 9px 17px; justify-content: space-between; gap: 12px; border-bottom: 1.4px dotted var(--dots); }
h2 { display: flex; align-items: center; gap: 11px; font-size: .84rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
h2::after { content: ""; width: 52px; height: 9px; background: var(--arrow) no-repeat center / contain; }
.screen-icon, .prompt-icon { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.screen-icon { position: relative; background: var(--sky); }
.screen-icon::before { content: ""; width: 14px; height: 9px; border: 1.4px solid #2f3438; border-radius: 2px; background: #fff; margin-top: -3px; }
.screen-icon::after { content: ""; width: 7px; height: 1.4px; position: absolute; left: 11.5px; bottom: 8px; background: #2f3438; }
#status { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border: 1.2px dotted var(--dots); border-radius: 999px; font: .68rem var(--mono); color: var(--muted); }
#status::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent currentColor; }
#status[data-state=running] { color: var(--accent-text); border-color: #b9a6f2; } #status[data-state=paused] { color: var(--warn); border-color: var(--mustard); } #status[data-state=error] { color: var(--err); border-color: var(--coral); }
.viewport { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #0c1013; display: grid; place-items: center; isolation: isolate; }
.viewport:fullscreen { width: 100vw; height: 100vh; }
#display, #player { grid-area: 1 / 1; max-width: 100%; max-height: 100%; }
#display { z-index: 1; outline-offset: -2px; }
/* Invisible field that receives typed text (accents, paste) for the app's text fields. The outline stays on the screen. */
#typing { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; resize: none; overflow: hidden; pointer-events: none; font-size: 16px; }
.viewport:has(#typing:focus-visible) #display { outline: 2px solid var(--accent, currentColor); }
.typing-hint { margin-left: auto; color: inherit; white-space: nowrap; }
.typing-hint[hidden] { display: none; }
@media (max-width: 700px) { .typing-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
#player { display: none; }
#empty-screen { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; background: #101519; color: #a3adb3; font: .85rem var(--mono); }
.device-tools { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; min-height: 54px; padding: 8px 14px; border-top: 1.4px dotted var(--dots); }
.device-tools button, select, .console-tools button { font-size: .68rem; padding: 6px 12px; }
.device-tools button span { font-size: 13px; } #stop span { font-size: 9px; }
#restart span { color: var(--accent-text); } #stop span { color: #d0584c; }
select { border: 1.4px solid var(--ink); background: var(--paper); border-radius: 999px; }
.resolution { font: .68rem var(--mono); padding: 6px 11px; border: 1.2px dotted var(--dots); border-radius: 999px; color: var(--muted); }
.device-tools .square { font: 1.1rem var(--mono); width: 32px; height: 30px; padding: 0; border-radius: 50%; letter-spacing: 0; }
.remote { display: flex; flex-direction: column; min-width: 0; }
.remote-body { display: flex; flex: 1; align-items: center; justify-content: center; padding: 6px 10px; }
/* Remote control drawn in the reference photo's own pixels (body 258 px wide); #remote scales it with --rc-zoom. */
.rc { touch-action: none; user-select: none; }
.rc-shell { zoom: var(--rc-zoom, .6); position: relative; width: 258px; padding: 64px 20px 92px; display: flex; flex-direction: column; align-items: center; border-radius: 129px 129px 129px 129px / 96px 96px 112px 112px; background: #1d1d1f; box-shadow: inset 0 0 0 1px #2c2c2f, inset 5px 0 9px -4px #ffffff10, inset -6px 0 10px -4px #0000008c, 0 2px 0 #050505, 0 18px 34px #0000009c; }
.rc-grip { display: none; }
.rc-row { display: grid; justify-content: center; }
.rc .k { padding: 0; gap: 0; color: #f4f4f4; background: #151517; border: 1.5px solid #3c3c40; border-radius: 11px; box-shadow: inset 0 1px 0 #ffffff12, 0 1px 1px #000; font: 600 13px "Segoe UI", Arial, sans-serif; }
.rc .k:hover:enabled { background: #1f1f22; border-color: #55555a; }
.rc .k:active:enabled, .rc .k.pressed { transform: none; background: #0c0c0d; border-color: #6b6b70; box-shadow: inset 0 1px 3px #000; }
.rc button:disabled { opacity: 1; }
.rc button:disabled > * { opacity: .55; }
.rc button, .rc button:disabled { cursor: pointer; }
.rc .k.text { font-size: 12px; letter-spacing: .02em; }
.rc .k.num { font: 400 21px "Segoe UI", Arial, sans-serif; }
.rc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rc svg .f { fill: currentColor; stroke: none; }
.rc .k.power { color: #e0262b; }
.rc .k.power svg { width: 19px; height: 19px; stroke-width: 2.6; }
/* Power / Guide */
.rc-top { grid-template-columns: 100px 100px; column-gap: 14px; }
.rc-top .k { height: 32px; }
.rc-logo { height: 92px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #e4e7e5; font: 650 21px "Inter", "Segoe UI", sans-serif; letter-spacing: -.055em; opacity: .92; }
.rc .rc-logo svg { width: 30px; height: 30px; stroke: none; transform: rotate(-3deg); }
.rc-logo b { font-weight: inherit; color: #9d7dff; }
/* Back / Home */
.rc-nav { grid-template-columns: 100px 100px; column-gap: 14px; }
.rc-nav .k { height: 40px; border-radius: 13px; }
.rc-nav svg { width: 22px; height: 22px; }
/* Volume rocker / D-pad / Channel rocker */
.rc-mid { position: relative; width: 214px; height: 160px; margin-top: 30px; }
.rocker { position: absolute; top: 0; width: 64px; height: 160px; }
.rocker:first-child { left: 0; } .rocker:last-child { right: 0; }
/* Rocker outline follows the D-pad cross: it wraps the side arm with the same gap all around. */
.rc .rocker-shape { position: absolute; inset: 0; width: 64px; height: 160px; overflow: visible; filter: drop-shadow(0 1px 1px #000); }
.rc .rocker-shape.mirror { transform: scaleX(-1); }
.rc .rocker-shape .half { fill: #151517; stroke: none; }
.rc .rocker-shape .edge { fill: none; stroke: #3c3c40; stroke-width: 1.5; }
.rc .rocker-shape .sep { fill: none; stroke: #050506; stroke-width: 2; stroke-linecap: round; }
.rc .rocker-shape .sep-hi { fill: none; stroke: #ffffff1c; stroke-width: 1; stroke-linecap: round; }
.rocker:has(.k:nth-of-type(1):hover:enabled) .half:nth-of-type(1), .rocker:has(.k:nth-of-type(2):hover:enabled) .half:nth-of-type(2) { fill: #1f1f22; }
.rocker:has(.k:nth-of-type(1):active:enabled) .half:nth-of-type(1), .rocker:has(.k:nth-of-type(2):active:enabled) .half:nth-of-type(2),
.rocker:has(.k:nth-of-type(1).pressed) .half:nth-of-type(1), .rocker:has(.k:nth-of-type(2).pressed) .half:nth-of-type(2) { fill: #0c0c0d; }
.rc .rocker .k, .rc .rocker .k:hover:enabled, .rc .rocker .k:active:enabled { position: absolute; left: 0; width: 64px; height: 80px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.rc .rocker .k:nth-of-type(1) { top: 0; align-items: flex-start; padding-top: 10px; }
.rc .rocker .k:nth-of-type(2) { bottom: 0; align-items: flex-end; padding-bottom: 10px; }
.rc .rocker .k svg { width: 21px; height: 21px; }
.dpad { position: absolute; left: 41px; top: 14px; width: 132px; height: 132px; z-index: 2; pointer-events: none; }
.dpad button { pointer-events: auto; }
.rc .dpad-shape { position: absolute; inset: 0; width: 132px; height: 132px; filter: drop-shadow(0 1px 2px #0008); }
.rc .dpad-shape path { fill: #5a2bd6; stroke: #ffffff1a; stroke-width: 1; }
.dpad button { position: absolute; z-index: 1; padding: 0; border: 0; border-radius: 14px; background: transparent; color: #fff; }
.dpad button svg { width: 22px; height: 22px; stroke-width: 2.4; }
.dpad button:hover:enabled { background: #ffffff14; }
.dpad button:active:enabled, .dpad button.pressed { background: #00000038; transform: none; }
.dpad [data-key=up] { left: 35px; right: 35px; top: 2px; height: 40px; }
.dpad [data-key=down] { left: 35px; right: 35px; bottom: 2px; height: 40px; }
.dpad [data-key=left] { top: 35px; bottom: 35px; left: 2px; width: 40px; }
.dpad [data-key=right] { top: 35px; bottom: 35px; right: 2px; width: 40px; }
.dpad [data-key=select] { left: 45px; top: 45px; width: 42px; height: 42px; border-radius: 50%; background: #5a2bd6; box-shadow: 0 0 0 1.5px #4a1fbd, inset 0 1px 0 #ffffff26; font: 600 16px "Segoe UI", Arial, sans-serif; }
.dpad [data-key=select]:hover:enabled { background: #6634e3; }
/* Replay / Mute / Options */
.rc-three { grid-template-columns: repeat(3, 62px); column-gap: 14px; margin-top: 28px; }
.rc-three .k { height: 32px; }
/* Rew / Play / Fwd */
.rc-media { grid-template-columns: 48px 90px 48px; column-gap: 14px; margin-top: 18px; }
.rc-media .k { height: 50px; border-radius: 13px; }
.rc-media svg { width: 17px; height: 17px; }
.rc-media .k:nth-child(2) svg { width: 24px; height: 24px; }
/* Colour keys */
.rc-colors { grid-template-columns: repeat(4, 43px); column-gap: 14px; margin-top: 42px; }
.rc .k.c { height: 26px; border: 0; border-radius: 8px; box-shadow: inset 0 1px 0 #ffffff40, inset 0 -1px 0 #0000002e, 0 1px 1px #000; }
.rc .k.red, .rc .k.red:hover:enabled { background: #d8433f; } .rc .k.green, .rc .k.green:hover:enabled { background: #3cb44b; }
.rc .k.yellow, .rc .k.yellow:hover:enabled { background: #ead934; } .rc .k.blue, .rc .k.blue:hover:enabled { background: #1f97dc; }
/* Number pad */
.rc-pad { grid-template-columns: repeat(3, 62px); gap: 13px 14px; margin-top: 32px; }
.rc-pad .k { height: 35px; }
.rc-pad .k.text { font-size: 11px; }
/* Fullscreen: the channel covers the page, and the remote and a pinned console float on top. The rest is hidden, so
   that it cannot be reached with the keyboard either. */
:root:fullscreen { overflow: hidden; background: #000; }
.is-fullscreen :is(.top, .heading, .page-end, .privacy, #notice, .device .panel-head, .device-tools, .console:not(.pinned)) { visibility: hidden; }
.is-fullscreen .viewport { position: fixed; inset: 0; z-index: 10; width: 100vw; height: 100vh; aspect-ratio: auto; background: #000; }
.is-fullscreen .rc { position: fixed; z-index: 20; left: 0; top: 0; cursor: grab; }
.is-fullscreen .rc-shell { box-shadow: inset 0 0 0 1px #2c2c2f, inset 5px 0 9px -4px #ffffff10, inset -6px 0 10px -4px #0000008c, 0 0 0 1px #000, 0 22px 50px #000d; }
.is-fullscreen .rc.dragging { cursor: grabbing; }
/* Over the channel, the remote and the pinned console are see-through until the mouse is over them, each one on its
   own. Without a mouse (touch) they stay opaque, as does a console expanded over the whole screen. */
@media (hover: hover) {
  .is-fullscreen { --remote-opacity: .35; --console-opacity: .45; }
  .is-fullscreen :is(.rc, .console.pinned) { transition: opacity .18s ease-out; }
  .is-fullscreen .rc:not(:hover, .dragging) { opacity: var(--remote-opacity); }
  .is-fullscreen .console.pinned:not(:hover, .dragging, .expanded) { opacity: var(--console-opacity); }
}
.is-fullscreen .rc-grip { display: block; position: absolute; top: 24px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: #ffffff30; }
.console { margin-top: 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.window-tools { display: inline-flex; gap: 6px; margin-left: 4px; padding-left: 10px; border-left: 1.4px dotted var(--dots); }
.console-tools .square { width: 30px; height: 30px; padding: 0; border-radius: 50%; letter-spacing: 0; }
.console-tools .square svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.console-tools .square[hidden] { display: none; }
#console-detach .in, .console.floating #console-detach .out { display: none; }
.console.floating #console-detach .in { display: block; }
#console-pin[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; }
#console-pin[aria-pressed=true] svg { fill: currentColor; }
/* Detached console: a floating window over the page, dragged by its title bar and resized by its corner */
.console.floating { position: absolute; z-index: 40; margin: 0; display: flex; flex-direction: column; min-width: 320px; min-height: 170px; max-width: calc(100vw - 16px); resize: both; box-shadow: 0 24px 60px -18px var(--shadow), 0 0 0 1px var(--edge); }
.console.floating .panel-head { cursor: grab; user-select: none; touch-action: none; flex-wrap: wrap; }
.console.floating.dragging .panel-head { cursor: grabbing; }
.console.floating #output { flex: 1; height: auto; min-height: 60px; }
.console.pinned { position: fixed; z-index: 60; border-color: var(--accent); }
.console.expanded, .console.floating.expanded { position: fixed; z-index: 80; inset: 16px !important; margin: 0; width: auto !important; height: auto !important; max-width: none; display: flex; flex-direction: column; resize: none; box-shadow: 0 0 0 100vmax #0007, 0 30px 80px -20px #000; }
.console.expanded .panel-head { cursor: default; }
.console.expanded #output { flex: 1; height: auto; }
#console-expand .shrink, .console.expanded #console-expand .grow { display: none; }
.console.expanded #console-expand .shrink { display: block; }
#console-expand[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; }
.console.pinned .panel-head { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.prompt-icon { background: var(--mustard); color: #2f3438; font: 700 .82rem var(--mono); letter-spacing: -.05em; text-transform: none; }
#output { height: 160px; overflow: auto; padding: 10px 17px; scrollbar-color: var(--dots) transparent; background: var(--log-bg); }
.line { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 10px; color: var(--log); font: .77rem/1.6 var(--mono); }
.line time { color: var(--log-time); user-select: none; } .line span { white-space: pre-wrap; overflow-wrap: anywhere; }
.line[data-level=warning] span { color: var(--warn); } .line[data-level=error] span { color: var(--err); } .line[data-level=system] span, .line[data-level=command] span { color: var(--accent-text); } .line[data-level=beacon] span { color: var(--beacon); }
#debug-form { display: flex; align-items: center; gap: 12px; padding: 8px 17px; border-top: 1.4px dotted var(--dots); color: var(--accent-text); }
#command { flex: 1; min-width: 0; border: 0; background: transparent; padding: 5px; font: .8rem var(--mono); } #command::placeholder { color: var(--log-time); }
#send { font-size: .66rem; padding: 5px 11px; }
/* Cookie notice (public site): both answers look the same. The page gets room below, so nothing stays under it. */
.page-end { width: min(1240px, calc(100% - 34px)); margin: -18px auto 18px; text-align: center; }
.page-end button { font-size: .66rem; }
.privacy { position: fixed; z-index: 70; right: 16px; bottom: 16px; left: 16px; max-width: 620px; max-height: calc(100vh - 32px); margin: auto; padding: 16px 20px; overflow: auto; border: 1.4px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 0 24px 60px -18px var(--shadow), 0 0 0 1px var(--edge); font-size: .86rem; line-height: 1.5; }
.privacy h2::after { display: none; }
.privacy p { margin-top: 8px; }
.privacy details { margin-top: 8px; color: var(--muted); font-size: .8rem; }
.privacy summary { width: fit-content; border-radius: 4px; color: var(--accent-text); cursor: pointer; }
.privacy summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.privacy-status { color: var(--muted); font-size: .8rem; }
.privacy-actions { display: flex; gap: 10px; margin-top: 14px; }
.privacy-actions button { flex: 1; min-height: 40px; }
body:has(.privacy:not([hidden])) { padding-bottom: 230px; }
/* Console tabs and the Network tab: the list of requests, and the details of the selected one beside it */
#console-title::after { display: none; }
.console .panel-head > h2 { flex: none; }
.console-tabs { display: flex; gap: 4px; }
.console .panel-head .console-tabs { margin-right: auto; }
.console-tabs button { border-color: transparent; background: transparent; color: var(--muted); font-size: .72rem; padding: 6px 12px; }
.console-tabs button[aria-selected=true] { border-color: var(--accent); color: var(--accent-text); }
.count { padding: 1px 6px; border-radius: 999px; background: var(--press); color: var(--ink); font: 600 .64rem var(--mono); letter-spacing: 0; }
#console-view { display: flex; flex-direction: column; min-height: 0; }
#network { display: flex; flex-direction: column; height: clamp(320px, 48vh, 560px); min-height: 0; container-type: inline-size; background: var(--log-bg); }
.console.floating :is(#console-view, #network), .console.expanded :is(#console-view, #network) { flex: 1; height: auto; min-height: 0; }
.net-tools { display: flex; gap: 8px; padding: 8px 17px; border-bottom: 1.4px dotted var(--dots); background: var(--paper); }
#network-search { flex: 1; min-width: 0; padding: 5px 12px; border: 1.2px solid var(--line); border-radius: 999px; background: transparent; font: .76rem var(--mono); }
/* Its own arrow, as in the language selector: the browser's sits against the edge. Hovering keeps it. */
#network-filter { flex: none; padding: 6px 34px 6px 14px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%236f7679' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 10px; appearance: none; -webkit-appearance: none; }
#network-filter:hover:enabled { background-color: var(--hover); }
.net-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 0; }
.with-detail .net-body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.net-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#network-rows { flex: 1; min-height: 0; overflow-y: auto; scrollbar-color: var(--dots) transparent; scrollbar-gutter: stable; outline-offset: -2px; }
#network-rows:empty { flex: none; }
.net-row { display: grid; grid-template-columns: 74px 58px minmax(0, 1fr) 72px 70px; gap: 10px; padding: 3px 17px; border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent); color: var(--log); font: .75rem/1.6 var(--mono); cursor: pointer; }
.net-row > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.net-row > :nth-child(n+4) { text-align: right; }
.net-row:hover { background: var(--hover); }
.net-row[aria-selected=true] { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.net-row[data-state=failed] { color: var(--err); }
.net-row:is([data-state=pending], [data-state=canceled]) .net-status { color: var(--warn); }
.net-head, .net-head:hover { padding-right: 30px; background: var(--paper); color: var(--muted); font-size: .68rem; cursor: default; }
.net-host { color: var(--log-time); }
.net-note { padding: 10px 17px; color: var(--muted); font-size: .8rem; }
.net-detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1.4px dotted var(--dots); background: var(--paper); }
.net-title { display: flex; align-items: center; gap: 6px; padding: 7px 12px; }
.net-address { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: .75rem var(--mono); }
.net-detail .small { flex: none; padding: 3px 10px; border-color: var(--line); font-size: .62rem; }
.net-detail .small[aria-pressed=true] { border-color: var(--accent); color: var(--accent-text); }
.net-detail .square { flex: none; width: 26px; height: 26px; padding: 0; font-size: 1rem; letter-spacing: 0; border-color: transparent; }
.net-tabs { padding: 0 8px 7px; border-bottom: 1.4px dotted var(--dots); }
.net-tabs button { padding: 4px 11px; font-size: .66rem; }
.net-content { flex: 1; min-height: 0; overflow: auto; padding: 4px 0 14px; scrollbar-color: var(--dots) transparent; }
.net-content h3 { margin: 10px 17px 5px; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.net-content > .small { margin: 8px 17px; }
.net-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 17px; }
.net-pairs { display: grid; grid-template-columns: minmax(90px, max-content) minmax(0, 1fr); gap: 3px 14px; margin: 0; padding: 0 17px; font: .75rem/1.55 var(--mono); }
.net-pairs dt { max-width: 220px; color: var(--accent-text); overflow-wrap: anywhere; }
.net-pairs dd { margin: 0; color: var(--log); white-space: pre-wrap; overflow-wrap: anywhere; }
.net-text { margin: 4px 17px 0; padding: 10px 12px; border-radius: 10px; background: var(--log-bg); color: var(--log); font: .75rem/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.json-key { color: var(--accent-text); } .json-string { color: var(--beacon); } .json-number { color: var(--warn); } .json-word { color: var(--err); }
.net-image { display: block; max-width: calc(100% - 34px); max-height: 320px; margin: 8px 17px; border: 1px solid var(--line); }
@container (max-width: 760px) {
  .with-detail .net-body { grid-template-columns: minmax(0, 1fr); }
  .with-detail .net-list { display: none; }
  .net-detail { border-left: 0; }
}
@container (max-width: 520px) {
  .net-row { grid-template-columns: 62px 48px minmax(0, 1fr) 60px; }
  .net-row > :nth-child(5) { display: none; }
  .net-title { flex-wrap: wrap; }
  .net-address { flex-basis: 100%; }
}
@media (min-width: 1500px) { main { padding-top: 34px; } }
@media (max-width: 860px) { .top-inner, main { width: calc(100% - 34px); } .workbench { grid-template-columns: minmax(0, 2fr) 224px; gap: 10px; } .trail { inset: 0 -17px; width: calc(100% + 34px); } }
@media (max-width: 660px) { main { padding-top: 20px; } .top-inner { height: 50px; gap: 12px; } .product { display: none; } .language select { width: 58px; padding: 0 22px 0 9px; background-position: right 8px center; } .heading { align-items: flex-start; flex-direction: column; gap: 13px; } .trail { display: none; } .workbench { grid-template-columns: 1fr; } .console .panel-head { flex-wrap: wrap; } .console-tools { gap: 4px; } h2::after { display: none; } }
@media (max-width: 480px) { .top-inner { gap: 8px; } .brand-name { display: none; } }
