/* Guides (/guides/…): the reading column, the Mac / Windows and Codex /
   Claude Code switches, and the mockups of ZigZag and the terminal.
   Mockups are plain HTML, so they follow light and dark, and any part can be
   picked out: put .hl on it and .spot on the mockup to dim the rest. */

:root {
  /* ZigZag's own light theme. */
  --ui-bg: #f4f4f5;
  --ui-panel: #f7f7f8;
  --ui-head: #ececee;
  --ui-line: #dcdce0;
  --ui-text: #1d1d1f;
  --ui-dim: #8a8a90;
  --ui-field: #ffffff;
  --ui-accent: #1677f2;
  --ui-you: #cfe0fb;
  --ui-card: #ececee;
  --ui-warn: #f0a020;
  --ui-warn-bg: #f8eadb;
  --ui-canvas: #ece5d8;
  --ui-btn: #ffffff;
  --ui-dark-btn: #1d1d1f;
  /* The macOS terminal, following the page. */
  --term-bg: #ffffff;
  --term-bar: #ececec;
  --term-text: #1d1d1f;
  --term-dim: #8a8a90;
  --term-ok: #1a7f37;
  --note: #f6f1e4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ui-bg: #1c1c1e;
    --ui-panel: #232326;
    --ui-head: #2b2b2f;
    --ui-line: #3a3a3f;
    --ui-text: #ececf0;
    --ui-dim: #8e8e96;
    --ui-field: #2c2c30;
    --ui-accent: #3d8bfd;
    --ui-you: #24406a;
    --ui-card: #2e2e33;
    --ui-warn: #f2a93b;
    --ui-warn-bg: #3a2f22;
    --ui-canvas: #2a2a2d;
    --ui-btn: #34343a;
    --ui-dark-btn: #ececf0;
    --term-bg: #1e1e1e;
    --term-bar: #323232;
    --term-text: #e6e6e6;
    --term-dim: #8e8e8e;
    --term-ok: #3fb950;
    --note: #252a33;
  }
}

/* The page */
.guide { max-width: 760px; margin: 0 auto; padding: 8px 0 80px; }
.guide h1 { margin: 24px 0 12px; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.guide .lede { margin: 0 0 8px; font-size: 1.2rem; color: var(--muted); text-wrap: pretty; }
.guide h2 { margin: 64px 0 12px; font-size: 1.6rem; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
.guide h3 { margin: 40px 0 8px; font-size: 1.15rem; letter-spacing: -.015em; }
.guide p, .guide li { text-wrap: pretty; }
.guide ul, .guide ol { padding-left: 1.3em; }
.guide li + li { margin-top: 6px; }
.guide code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; padding: .1em .35em; border-radius: 5px; background: rgba(var(--ink-rgb), .07); }
.guide kbd { font-family: inherit; font-size: .85em; padding: .1em .45em; border: 1px solid var(--hair); border-bottom-width: 2px; border-radius: 6px; white-space: nowrap; }
.guide a { text-underline-offset: 3px; }
.crumbs { margin-top: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.meta { margin: 18px 0 0; }

/* A step: a number, a heading, what to do. */
.step { position: relative; margin-top: 44px; padding-left: 52px; }
.step > .n {
  position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: rgb(var(--thread-rgb)); color: rgb(var(--on-thread-rgb));
}
.step h3 { margin-top: 0; padding-top: 4px; }
@media (max-width: 560px) {
  .step { padding-left: 0; }
  .step > .n { position: static; margin-bottom: 10px; }
}

.callout { margin: 22px 0; padding: 16px 20px; border-radius: 12px; background: var(--note); }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.callout strong:first-child { display: block; margin-bottom: 2px; }

/* The switches: which computer, which assistant. */
.choose { display: grid; gap: 14px; margin: 28px 0 8px; padding: 18px 20px; border: 1px solid var(--hair); border-radius: 14px; }
.choose .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.choose .label { min-width: 7.5em; color: var(--muted); font-size: 15px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(var(--ink-rgb), .07); }
.seg button {
  border: 0; border-radius: 8px; padding: 7px 14px; background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); font-weight: 600; }

/* Only the chosen computer's and assistant's steps show. */
html:not([data-platform="windows"]) .win-only,
html[data-platform="windows"] .mac-only,
html:not([data-tool="claude"]) .claude-only,
html[data-tool="claude"] .codex-only { display: none !important; }

/* Codex and Claude Code side by side */
.compare-table { margin: 22px 0 8px; overflow-x: auto; border: 1px solid var(--hair); border-radius: 14px; }
.compare-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--hair); }
.compare-table thead th { border-top: 0; font-size: 16px; }
.compare-table tbody th { width: 26%; color: var(--muted); font-weight: 500; }
.cmd-for { margin: 18px 0 -8px; font-weight: 600; font-size: 15px; }

/* Which one to pick */
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.pick > div { padding: 16px 18px; border: 1px solid var(--hair); border-radius: 12px; }
.pick h4 { margin: 0 0 4px; font-size: 1rem; }
.pick p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .pick { grid-template-columns: 1fr; } }

/* A command to copy */
.cmd {
  display: flex; align-items: center; gap: 10px; margin: 16px 0; padding: 6px 6px 6px 16px;
  border-radius: 12px; background: #1c2839; color: #e2ebf7;
}
.cmd code { flex: 1; min-width: 0; padding: 6px 0; background: none; color: inherit; font-size: 14px; overflow-wrap: anywhere; user-select: all; }
.cmd button {
  flex: none; border: 0; border-radius: 8px; padding: 8px 12px; background: #2b3b50; color: #e2ebf7;
  font: inherit; font-size: 14px; cursor: pointer;
}
.cmd button:hover, .cmd button:focus-visible { background: #3a4f6b; color: #fff; }
.cmd-alt { margin-top: -6px; font-size: 15px; color: var(--muted); }

/* Prompts worth trying */
.prompts { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.prompts li { margin: 0 !important; padding: 12px 16px; border-radius: 12px; background: rgba(var(--ink-rgb), .05); }
.prompts li q { font-weight: 600; quotes: "“" "”"; }
.prompts li span { display: block; color: var(--muted); font-size: 15px; }

/* The other way to do it, folded away */
.guide details.alt { margin: 44px 0 8px; padding: 0 22px 8px; border: 1px solid var(--hair); border-radius: 14px; }
.guide details.alt > summary { cursor: pointer; padding: 18px 0; font-weight: 650; font-size: 1.1rem; letter-spacing: -.01em; }
.guide details.alt[open] > summary { border-bottom: 1px solid var(--hair); margin-bottom: 12px; }
.guide details.alt .step { margin-top: 32px; }

/* Under a mockup */
figure.mock-fig { margin: 22px 0 26px; }
figure.mock-fig figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* ── Mockups ───────────────────────────────────────────────────────── */

.mock {
  --r: 12px;
  position: relative; overflow: hidden; border-radius: var(--r);
  border: 1px solid var(--ui-line); background: var(--ui-bg); color: var(--ui-text);
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  container-type: inline-size;
  user-select: none;
}
.mock * { box-sizing: border-box; }
.mock .dim { color: var(--ui-dim); }

/* Spotlight: dim everything but .hl, and ring .hl. */
.mock.spot .dimmable { opacity: .38; filter: saturate(.6); }
.mock .hl { position: relative; z-index: 1; opacity: 1 !important; filter: none !important; box-shadow: 0 0 0 2px var(--ui-accent), 0 0 0 6px color-mix(in srgb, var(--ui-accent) 22%, transparent); border-radius: 8px; }
.mock .callout-tag {
  position: absolute; z-index: 2; padding: 4px 9px; border-radius: 7px; white-space: nowrap;
  background: var(--ui-accent); color: #fff; font-size: 12px; font-weight: 600;
}

/* The studio window */
.studio { display: grid; grid-template-rows: 30px 1fr 28px; height: 480px; }
.studio .titlebar { display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--ui-bg); border-bottom: 1px solid var(--ui-line); }
.studio .lights { display: flex; gap: 7px; }
.studio .lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.studio .lights i:nth-child(2) { background: #febc2e; }
.studio .lights i:nth-child(3) { background: #28c840; }
.studio .wintitle { margin-left: auto; display: flex; gap: 14px; color: var(--ui-dim); font-size: 12px; }
.studio .wintitle b { width: 9px; height: 1px; background: currentColor; display: inline-block; vertical-align: middle; }
.studio .body { display: grid; grid-template-columns: 36px 272px 1fr 180px; min-height: 0; }
.studio.no-agent .body { grid-template-columns: 36px 1fr 180px; }
.studio.no-agent .agent { display: none; }
.studio.no-side .body { grid-template-columns: 36px 272px 1fr; }
.studio.no-side .side { display: none; }
.canvas .art { position: relative; width: min(78%, 300px); }
.canvas .art svg.design { width: 100%; }
.studio .tools { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-right: 1px solid var(--ui-line); background: var(--ui-bg); }

.studio .canvas { position: relative; display: grid; place-items: center; background: var(--ui-canvas); min-width: 0; overflow: hidden; }
.studio .canvas svg.design { width: min(78%, 300px); height: auto; }
.studio .tabbar { position: absolute; inset: 0 0 auto 0; height: 26px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--ui-bg); border-bottom: 1px solid var(--ui-line); font-size: 12px; }
.studio .tabbar span:first-child { padding: 0 10px; border-right: 1px solid var(--ui-line); }
.studio .side { border-left: 1px solid var(--ui-line); background: var(--ui-panel); overflow: hidden; }
.mock .ph { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 10px; background: var(--ui-head); border-bottom: 1px solid var(--ui-line); font-weight: 500; }
.studio .layers { padding: 6px 10px; display: grid; gap: 6px; }
.studio .layers div { display: flex; align-items: center; gap: 7px; }
.studio .layers u { text-decoration: none; margin-left: auto; color: var(--ui-dim); font-variant-numeric: tabular-nums; }
.studio .layers .w { color: var(--ui-warn); margin-left: auto; margin-right: -2px; font-size: 11px; }
.studio .layers .w + u { margin-left: 4px; }
.sw { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.studio .status { display: flex; align-items: center; gap: 12px; padding: 0 12px; border-top: 1px solid var(--ui-line); background: var(--ui-bg); color: var(--ui-dim); font-size: 12px; white-space: nowrap; overflow: hidden; }
.studio .status .bar { flex: 0 1 160px; height: 4px; border-radius: 2px; background: var(--ui-accent); }
.studio .status .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.studio .status .warn { display: inline-flex; align-items: center; gap: 4px; color: var(--ui-warn); font-weight: 600; padding: 1px 6px; }
.studio .status .ok { color: #2a9d5c; font-weight: 700; }
@container (max-width: 700px) {
  .studio .body { grid-template-columns: 30px 230px 1fr; }
  .studio.no-agent .body { grid-template-columns: 30px 1fr; }
  .studio .side, .studio .status .hide-narrow { display: none; }
}
/* On a phone: the tool strip and either the panel or (.canvas-first) the canvas. */
@container (max-width: 470px) {
  .studio { height: 420px; }
  .studio .body, .studio.no-side .body, .studio.no-agent .body { grid-template-columns: 30px 1fr; }
  .studio .body > .canvas { display: none; }
  .studio.canvas-first .body > .agent { display: none; }
  .studio.canvas-first .body > .canvas { display: grid; }
}

/* The Agent panel */
.agent { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--ui-line); background: var(--ui-panel); }
.agent .ph .name { color: var(--ui-dim); font-weight: 400; }
.agent .ph .name b { color: var(--ui-text); font-weight: 500; }
.agent .ph .icons { display: flex; gap: 10px; color: var(--ui-dim); }
.agent .log { flex: 1; min-height: 0; overflow: hidden; padding: 12px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.agent .log.top { justify-content: flex-start; }
.agent .you { align-self: stretch; padding: 8px 10px; border-radius: 8px; background: var(--ui-you); }
.agent .said { margin: 0; }
.agent .steps { color: var(--ui-text); font-size: 12px; }
.agent .steps::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--ui-accent); vertical-align: 1px; }
.agent .steps b { margin-left: 3px; }
.agent .steps b { color: var(--ui-dim); font-weight: 400; }
.agent .working { color: var(--ui-dim); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.agent .working::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ui-accent); border-right-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .agent .working::before { animation: none; } }
.agent .choice { padding: 10px 11px; border-radius: 10px; background: var(--ui-card); border: 1px solid var(--ui-line); }
.agent .choice p { margin: 0 0 6px; }
.agent .choice .dim { font-size: 12px; }
.agent .choice .btns { display: flex; gap: 6px; margin-top: 8px; }
.ui-btn { display: inline-block; padding: 4px 10px; border-radius: 7px; border: 1px solid var(--ui-line); background: var(--ui-btn); color: var(--ui-text); font-size: 12px; white-space: nowrap; }
.ui-btn.primary { background: var(--ui-dark-btn); color: var(--ui-bg); border-color: transparent; }
.ui-btn.blue { background: var(--ui-accent); color: #fff; border-color: transparent; }
.agent .compare { display: flex; justify-content: flex-end; gap: 2px; color: var(--ui-dim); }
/* Before, After, Side by Side: icons, the one showing blue on a tint. */
.agent .compare .cmp { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; }
.agent .compare .cmp .ui-i { width: 16px; height: 16px; }
.agent .compare .cmp.on { color: var(--ui-accent); background: color-mix(in srgb, var(--ui-accent) 20%, transparent); }
/* The platform switch, inside the terminal steps. */
details.alt .choose { margin: 4px 0 18px; }
.agent .empty { flex: 1; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 14px; text-align: center; color: var(--ui-dim); }
.agent .empty .ui-btn { color: var(--ui-text); border-radius: 999px; padding: 4px 11px; }
.agent .prompt { display: flex; align-items: center; gap: 8px; margin: 0 10px 10px; padding: 8px 4px 0; border-top: 1px solid var(--ui-line); color: var(--ui-dim); }
.agent .prompt .typed { color: var(--ui-text); }
.agent .prompt .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent .prompt .note-btn { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.agent .prompt .note-btn.on { background: var(--ui-accent); color: #fff; }
.agent .prompt .note-btn svg { width: 12px; height: 12px; }
.agent .prompt .send { width: 20px; height: 20px; border-radius: 50%; background: var(--ui-dim); color: var(--ui-bg); display: grid; place-items: center; font-size: 12px; }
.agent .prompt .send.ready { background: var(--ui-dark-btn); }

/* Not installed */
.agent .missing { flex: 1; padding: 16px 14px; display: grid; align-content: start; gap: 9px; }
.agent .missing h5 { margin: 6px 0 0; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.agent .missing .copyblock { display: grid; gap: 4px; }
.agent .missing .copyblock div { display: flex; justify-content: space-between; align-items: center; color: var(--ui-dim); font-size: 12px; }
.agent .missing pre { margin: 0; padding: 7px 9px; border: 1px solid var(--ui-line); border-radius: 7px; background: var(--ui-field); font: 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.agent .missing .btns { display: flex; flex-wrap: wrap; gap: 6px; }

/* A panel on its own (no window around it) */
.mock.panel-only { max-width: 360px; margin-inline: auto; }
.mock.panel-only .agent { border-right: 0; min-height: 0; }

/* On the canvas: an agent at work, a note */
.canvas .busy { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); padding: 3px 8px; border-radius: 6px; background: var(--ui-accent); color: #fff; font-size: 11px; font-weight: 600; }
.canvas .marching { position: absolute; left: 50%; top: 55%; width: 36%; height: 26%; transform: translate(-50%, -50%); border: 1.5px dashed var(--ui-accent); border-radius: 6px; }
.canvas .pin { position: absolute; width: 22px; height: 22px; border-radius: 50% 50% 50% 4px; background: var(--ui-accent); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.canvas .note { position: absolute; max-width: 170px; padding: 7px 9px; border-radius: 9px; background: var(--ui-field); border: 1px solid var(--ui-line); box-shadow: 0 4px 14px rgba(0, 0, 0, .14); font-size: 12px; }
.canvas .annot { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 4px 10px; border-radius: 9px; background: var(--ui-field); border: 1px solid var(--ui-line); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); font-size: 12px; white-space: nowrap; }
.canvas.pair { grid-template-columns: 1fr 1fr; gap: 4%; padding: 0 4%; }
.canvas.pair > div { display: grid; justify-items: center; gap: 6px; }
.canvas.pair svg.design { width: 100%; }
.canvas.pair .lbl { font-size: 11px; color: var(--ui-dim); }

/* The Issues list */
.issues { position: absolute; right: 10px; bottom: 34px; width: min(300px, 90%); border-radius: 10px; border: 1px solid var(--ui-line); background: var(--ui-field); box-shadow: 0 8px 26px rgba(0, 0, 0, .18); overflow: hidden; }
.issues .ih { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: var(--ui-head); }
.issues .ih .ui-btn { margin-left: auto; padding: 1px 10px; border-radius: 999px; }
.issues .it { display: flex; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--ui-line); font-size: 12px; }
.issues .it b { display: block; font-weight: 500; }
.issues .it .tri { color: var(--ui-warn); flex: none; }

/* Settings › Agent */
.settings { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px; }
.settings .nav { display: grid; align-content: start; gap: 2px; padding: 6px; border-radius: 10px; background: var(--ui-head); }
.settings .nav span { padding: 5px 9px; border-radius: 6px; }
.settings .nav .on { background: var(--ui-accent); color: #fff; }
.settings .form { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; }
.settings .form h5 { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.settings .form .k { color: var(--ui-dim); text-align: right; }
.settings .form .help { grid-column: 2; margin-top: -6px; color: var(--ui-dim); font-size: 12px; }
.useg { display: inline-flex; padding: 2px; border-radius: 7px; background: var(--ui-head); border: 1px solid var(--ui-line); width: fit-content; }
.useg span { padding: 2px 10px; border-radius: 5px; }
.useg .on { background: var(--ui-field); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
@container (max-width: 470px) {
  .settings { grid-template-columns: 1fr; }
  .settings .nav { display: none; }
}

/* Terminals */
.term { border-radius: 10px; overflow: hidden; border: 1px solid var(--ui-line); box-shadow: 0 10px 30px rgba(0, 0, 0, .1); font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.term .bar { display: flex; align-items: center; height: 30px; padding: 0 12px; font: 12.5px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.term pre { margin: 0; padding: 14px 16px 18px; min-height: 150px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.term .c { color: var(--term-dim); }
.term .ok { color: var(--term-ok); }
.term .sel { display: inline-block; padding: 0 4px; margin-left: -4px; border-radius: 3px; }
.term .cursor { display: inline-block; width: .6em; height: 1.15em; vertical-align: -.2em; background: currentColor; opacity: .7; }
/* macOS Terminal */
.term.mac { background: var(--term-bg); color: var(--term-text); }
.term.mac .bar { background: var(--term-bar); color: var(--term-dim); justify-content: center; position: relative; }
.term.mac .bar .lights { position: absolute; left: 12px; display: flex; gap: 7px; }
.term.mac .bar .lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term.mac .bar .lights i:nth-child(2) { background: #febc2e; }
.term.mac .bar .lights i:nth-child(3) { background: #28c840; }
.term.mac .sel { background: color-mix(in srgb, var(--ui-accent) 22%, transparent); }
/* Windows Terminal (dark, as it comes) */
.term.win { background: #0c0c0c; color: #cccccc; border-color: #333; }
.term.win .bar { background: #202020; color: #ddd; gap: 10px; padding: 0; }
.term.win .bar .tab { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px; background: #0c0c0c; border-radius: 8px 8px 0 0; margin: 5px 0 0 6px; }
.term.win .bar .tab svg { width: 13px; height: 13px; }
.term.win .bar .ctl { margin-left: auto; display: flex; gap: 22px; padding-right: 16px; color: #aaa; }
.term.win .c { color: #8a8a8a; }
.term.win .ok { color: #16c60c; }
.term.win .sel { background: #264f78; }
.term.win .ps { color: #cccccc; }

/* The browser, for signing in */
.browser { border-radius: 10px; overflow: hidden; border: 1px solid var(--ui-line); background: var(--ui-field); color: var(--ui-text); box-shadow: 0 10px 30px rgba(0, 0, 0, .1); font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.browser .bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: var(--ui-head); }
.browser .url { flex: 1; max-width: 320px; margin: 0 auto; padding: 3px 12px; border-radius: 7px; background: var(--ui-field); color: var(--ui-dim); text-align: center; font-size: 12px; }
.browser .page { display: grid; justify-items: center; gap: 10px; padding: 34px 20px 38px; text-align: center; }
.browser .page .box { width: min(260px, 100%); display: grid; gap: 8px; }
.browser .page .field { height: 30px; border-radius: 7px; border: 1px solid var(--ui-line); }
.browser .page .go { height: 30px; border-radius: 7px; background: var(--ui-dark-btn); }
.browser .page .ok-mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #2a9d5c 18%, transparent); color: #2a9d5c; font-size: 20px; font-weight: 700; }

/* The guides list */
.guide-list { display: grid; gap: 14px; margin: 28px 0; padding: 0; list-style: none; }
.guide-list a { display: block; padding: 20px 22px; border: 1px solid var(--hair); border-radius: 14px; text-decoration: none; transition: border-color .15s; }
.guide-list a:hover { border-color: var(--ink); }
.guide-list h2 { margin: 0 0 4px; font-size: 1.2rem; letter-spacing: -.015em; }
.guide-list p { margin: 0; color: var(--muted); }
.guide-list .mono { display: block; margin-top: 10px; }
.guide-list li.soon a { pointer-events: none; opacity: .55; }

/* Shared by every guide page */
.top-guides { display: flex; gap: 22px; align-items: center; }

/* ── Icons and the setup cards (as in ZigZag) ─────────────────────────── */

.mock .ui-i { width: 14px; height: 14px; flex: none; color: inherit; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mock .logo { width: 18px; height: 18px; flex: none; color: var(--ui-text); }
.studio .tools .t { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--ui-dim); }
.studio .tools .t .ui-i { width: 15px; height: 15px; }
.studio .tools .t.on { color: var(--ui-accent); background: color-mix(in srgb, var(--ui-accent) 14%, transparent); }
.studio .tools .sparkle { margin-top: auto; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--ui-accent); background: color-mix(in srgb, var(--ui-accent) 14%, transparent); }
.studio .tools .sparkle .ui-i { width: 15px; height: 15px; }
.mock .ph .icons { display: flex; align-items: center; gap: 9px; color: var(--ui-dim); }
.mock .ph .icons .ui-i { width: 13px; height: 13px; }
.mock .ph > .ui-i { width: 13px; height: 13px; color: var(--ui-dim); }
.mock .ph .name { display: inline-flex; align-items: center; gap: 3px; }
.mock .chev { width: 11px !important; height: 11px !important; color: var(--ui-dim); }
.agent .prompt .note-btn .ui-i { width: 13px; height: 13px; }
.agent .prompt .send .ui-i { width: 11px; height: 11px; }
.agent .empty .big { width: 20px; height: 20px; color: var(--ui-dim); }
.agent .empty .pill { border-radius: 999px; padding: 4px 11px; color: var(--ui-text); }
.agent.tall { min-height: 330px; }

/* Layers rows */
.studio .layers div { gap: 6px; }
.studio .layers .eye { width: 12px; height: 12px; color: var(--ui-dim); }
.studio .layers .ln { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .layers .w { display: inline-flex; color: var(--ui-warn); margin-left: auto; }
.studio .layers .w .ui-i { width: 11px; height: 11px; }
.studio .layers .ph { margin: -6px -10px 2px; }

/* Status bar */
.studio .status .ui-i { width: 11px; height: 11px; }
.studio .status .warn { gap: 4px; border-radius: 6px; }
.studio .status .warn .ui-i { width: 12px; height: 12px; }
.studio .status .ok { display: inline-flex; color: #2a9d5c; }
.studio .status .ok .ui-i { width: 13px; height: 13px; }

/* Set up an AI assistant */
.setup { flex: 1; display: grid; align-content: start; gap: 8px; padding: 14px 12px; }
.setup h5 { margin: 0; font-size: 13.5px; font-weight: 600; }
.setup p { margin: 0; color: var(--ui-dim); font-size: 12.5px; }
.setup .svc-list { margin-top: 4px; border: 1px solid var(--ui-line); border-radius: 8px; background: var(--ui-field); overflow: hidden; }
.setup .svc { display: flex; align-items: center; gap: 10px; padding: 9px 10px; }
.setup .svc + .svc { border-top: 1px solid var(--ui-line); }
.setup .svc .nm { display: grid; min-width: 0; line-height: 1.3; }
.setup .svc .nm b { font-weight: 600; font-size: 12.5px; }
.setup .svc .nm span { color: var(--ui-dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setup .svc .act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.setup .lnk { color: var(--ui-accent); }
.setup .disc { display: flex; align-items: center; gap: 5px; margin-top: 2px; color: var(--ui-dim); }
.setup .disc .ui-i { width: 11px; height: 11px; margin-left: -2px; }
/* The guide, a row of its own: outlined in blue, a book beside it. */
.setup .guide-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--ui-accent); border-radius: 8px; }
.setup .guide-row .ui-i { width: 18px; height: 18px; flex: none; color: var(--ui-accent); }
.setup .guide-row > span { display: grid; line-height: 1.35; font-size: 12.5px; }
.setup .guide-row b { font-weight: 600; }
/* Signing in: where it stands, in a tinted bar across the top. */
.setup .statusbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--ui-accent) 14%, transparent); font-size: 12.5px; margin-bottom: 2px; }
.setup .links { display: flex; gap: 16px; margin-top: 2px; font-size: 12.5px; }
.setup .tlink { color: var(--ui-accent); text-decoration: underline; text-underline-offset: 2px; }
.setup .tlink.quiet { color: var(--ui-dim); }
/* Buttons the app's size, and a quiet one with a spinner while installing. */
.setup .ui-btn { min-width: 58px; padding: 5px 12px; text-align: center; border-radius: 6px; }
.setup .ui-btn.busy { display: inline-grid; place-items: center; height: 26px; padding: 0; box-sizing: border-box; }
.setup .si-head { display: flex; align-items: center; gap: 9px; }
.setup .si-head .logo { width: 20px; height: 20px; }
.setup .btns { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.setup .working { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.setup .working::before, .setup .statusbar::before, .setup .spin { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ui-accent); border-right-color: transparent; animation: spin 1s linear infinite; flex: none; }
.setup .spin { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .setup .working::before, .setup .statusbar::before, .setup .spin { animation: none; } }

/* The canvas */
.canvas .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; width: 86%; }
.canvas .pair > div { display: grid; justify-items: center; gap: 6px; }
.canvas .pair svg.design { width: 100%; }
.canvas .pair .lbl { font-size: 11px; color: var(--ui-dim); }
.canvas .annot .x { transform: rotate(45deg); width: 11px; height: 11px; }
.canvas .art .marching { left: 50%; top: 23%; width: 70%; height: 17%; transform: translateX(-50%); border-radius: 999px 999px 8px 8px; }
.canvas .art .busy { left: 50%; top: 13%; transform: translateX(-50%); white-space: nowrap; }
.issues .it .tri { width: 12px; height: 12px; color: var(--ui-warn); margin-top: 2px; }

/* The services' names, with their marks */
.svc-name { display: inline-flex; align-items: center; gap: 8px; }
.svc-name .logo, .cmd-for .logo, .b-logo .logo { width: 18px; height: 18px; flex: none; }
.cmd-for { display: flex; align-items: center; gap: 8px; }
.browser .b-logo { color: var(--ui-text); }
.browser .b-logo .logo { width: 26px; height: 26px; }
.compare-table table { min-width: 640px; }
.compare-table tbody th { width: 19%; }
.agent .compare { align-self: flex-end; width: fit-content; padding: 3px 5px; }
.canvas .art { width: min(86%, 300px); }
.studio .canvas .art svg.design { width: 100%; }
