/* Kuticon · Pop. Thick ink, hard shadows, five sticker inks.
   Source of truth: this <style> block in mockups/index.html.
   Copy to web/static/desk.css with: node web/copy-static.js */
    @font-face {
      font-family: "Bricolage Grotesque";
      font-style: normal;
      font-weight: 500 800;
      font-display: swap;
      src: url("/static/fonts/bricolage-grotesque-latin.woff2?v=a79fdb52d4a5") format("woff2");
    }
    @font-face {
      font-family: "DM Mono";
      font-style: normal;
      font-weight: 500;
      font-display: swap;
      src: url("/static/fonts/dm-mono-500-latin.woff2?v=9964608a8493") format("woff2");
    }
    :root, html[data-theme="light"] {
      --paper: #fff5e1;
      --sheet: #ffffff;
      --ink: #16131c;
      --soft: #4f4858;
      --faint: #645c6e;
      --line: #16131c;
      --shadow: #16131c;
      --rule: rgba(22, 19, 28, 0.18);
      --dots: rgba(22, 19, 28, 0.09);
      --chip: #16131c;
      --seg-bg: #ffffff;
      --placeholder: #7b7385;
      --yellow: #ffd43b;
      --blue: #4d6bff;
      --pink: #ff8ac4;
      --mint: #46d9a0;
      --orange: #ff7a3d;
      --lilac: #b9a6ff;
      --on-ink: #16131c;
      --alert: #b3261e;
      --selection: rgba(77, 107, 255, 0.25);
      --checker-a: #fffaf0;
      --checker-b: #f4ead6;
      --stage-edge: rgba(22, 19, 28, 0.35);
      --disc: rgba(22, 19, 28, 0.1);
      --stage-plate: rgba(255, 212, 59, 0.55);
      --sw: 1.7;
      --cap: round;
      --join: round;
      --pop: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
      --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
      color-scheme: light;
    }
    html[data-theme="dark"] {
      --paper: #17141e;
      --sheet: #221e2c;
      --ink: #fff5e1;
      --soft: #cfc6db;
      --faint: #b0a7bd;
      --line: #fff5e1;
      --shadow: #000000;
      --rule: rgba(255, 245, 225, 0.2);
      --dots: rgba(255, 245, 225, 0.07);
      --chip: #fff5e1;
      --seg-bg: #221e2c;
      --placeholder: #8f86a0;
      --yellow: #ffce2e;
      --blue: #7088ff;
      --alert: #ff8a80;
      --selection: rgba(112, 136, 255, 0.35);
      --checker-a: #2a2536;
      --checker-b: #1f1b28;
      --stage-edge: rgba(255, 245, 225, 0.4);
      --disc: rgba(22, 19, 28, 0.14);
      --stage-plate: rgba(255, 206, 46, 0.35);
      color-scheme: dark;
    }
    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      background-color: var(--paper);
      background-image: radial-gradient(var(--dots) 1.2px, transparent 1.2px);
      background-size: 22px 22px;
      color: var(--ink);
      font-family: var(--pop);
      font-weight: 500;
      font-size: 16px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }
    main { flex: 1; }
    button, textarea, input, select { font: inherit; color: inherit; }
    button { cursor: pointer; }
    ::selection { background: var(--selection); }
    :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
    a { color: inherit; }
    .wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
    .box, .desk form, .request, .pack, .legal, .stage, .code {
      background: var(--sheet);
      border: 2.5px solid var(--line);
      border-radius: 18px;
      box-shadow: 6px 6px 0 var(--shadow);
    }

    /* header */
    header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 2.5px solid var(--line); }
    .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 16px; }
    .brand {
      justify-self: start; display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
      font-weight: 800; font-size: 1.6rem; letter-spacing: -0.035em;
    }
    .mark {
      width: 42px; height: 42px; display: block; padding: 7px;
      background: var(--yellow); border: 2.5px solid var(--line); border-radius: 12px;
      box-shadow: 3px 3px 0 var(--shadow); transform: rotate(-6deg);
    }
    .mark path { fill: #16131c; }
    .brand:hover .mark { transform: rotate(4deg); }
    .nav { display: flex; gap: 6px; }
    .nav a {
      text-decoration: none; font-weight: 700; font-size: 0.95rem; color: var(--ink);
      padding: 8px 16px; border-radius: 999px; border: 2.5px solid transparent;
    }
    .nav a:hover { border-color: var(--line); }
    .nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
    .end { justify-self: end; display: flex; align-items: center; gap: 14px; }
    .theme {
      border: 2.5px solid var(--line); background: var(--sheet); border-radius: 999px;
      padding: 7px 16px; font-weight: 700; font-size: 0.9rem; box-shadow: 3px 3px 0 var(--shadow);
    }
    .theme::before { content: "◐ "; }
    .theme:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
    .theme:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
    .host {
      margin: 0; font-family: var(--mono); font-size: 0.75rem; color: var(--on-ink);
      background: var(--mint); border: 2px solid var(--line); border-radius: 999px; padding: 3px 10px;
    }

    /* studio hero */
    .hero { padding: 48px 0 30px; text-align: center; position: relative; }
    .kicker {
      display: inline-block; margin: 0 0 18px; font-family: var(--mono); font-size: 0.8rem;
      color: var(--on-ink); background: var(--mint); border: 2.5px solid var(--line); border-radius: 999px;
      padding: 4px 14px; box-shadow: 3px 3px 0 var(--shadow); transform: rotate(-2deg);
    }
    h1 {
      margin: 0; font-weight: 800; font-size: clamp(2.8rem, 6.6vw, 6.2rem); line-height: 0.92; letter-spacing: -0.045em;
    }
    .hero h1 { margin-inline: auto; max-width: 11em; }
    h1 em {
      font-style: normal; display: inline-block; background: var(--yellow); color: var(--on-ink);
      padding: 0 0.14em 0.04em; border: 2.5px solid var(--line); border-radius: 0.18em;
      box-shadow: 5px 5px 0 var(--shadow); transform: rotate(-1.5deg);
    }
    .deck { margin: 22px auto 0; max-width: 40rem; color: var(--soft); font-size: 1.15rem; line-height: 1.5; }
    .page .deck { margin-inline: 0; }
    .more { margin: 14px 0 0; }
    .more a { font-weight: 700; text-underline-offset: 4px; }
    .stickers { position: absolute; inset: 0; pointer-events: none; }
    .stickers span {
      position: absolute; width: 84px; height: 84px; display: grid; place-items: center; color: var(--on-ink);
      border: 2.5px solid var(--line); border-radius: 22px; box-shadow: 4px 4px 0 var(--shadow);
    }
    .stickers svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .stickers span:nth-child(1) { left: 0; top: 60px; background: var(--yellow); transform: rotate(-8deg); }
    .stickers span:nth-child(2) { left: 6%; top: 200px; background: var(--pink); transform: rotate(6deg); }
    .stickers span:nth-child(3) { left: 1%; top: 330px; background: var(--mint); transform: rotate(-4deg); }
    .stickers span:nth-child(4) { right: 1%; top: 50px; background: var(--blue); color: #fff; transform: rotate(7deg); }
    .stickers span:nth-child(5) { right: 7%; top: 195px; background: var(--orange); transform: rotate(-6deg); }
    .stickers span:nth-child(6) { right: 0; top: 330px; background: var(--lilac); transform: rotate(5deg); }

    /* composer */
    .desk { padding: 6px 0 34px; position: relative; z-index: 1; }
    .desk form { width: min(1000px, calc(100% - 48px)); padding: 22px 24px 20px; }
    .lbl { margin: 0 0 8px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
    textarea {
      display: block; width: 100%; min-height: 84px; resize: none; border: 0; padding: 4px 0 12px; background: transparent;
      font-weight: 700; font-size: 1.65rem; line-height: 1.25; letter-spacing: -0.02em;
    }
    textarea::placeholder { color: var(--placeholder); }
    textarea:focus { outline: none; }
    .desk form:focus-within { box-shadow: 8px 8px 0 var(--shadow); }
    .chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; border-bottom: 2.5px dashed var(--rule); }
    .chips button {
      border: 2px solid var(--line); border-radius: 999px; min-height: 34px; padding: 0 13px;
      font-weight: 700; font-size: 0.85rem; color: var(--on-ink); background: var(--pink);
    }
    .chips button:nth-child(3n+2) { background: var(--mint); }
    .chips button:nth-child(3n) { background: var(--lilac); }
    .chips button:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow); }
    .toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 18px; margin-top: 18px; }
    .controls { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
    .ctrl .lbl { margin-bottom: 6px; }
    .seg {
      display: inline-flex; border: 2.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--seg-bg);
    }
    .seg button {
      border: 0; background: transparent; min-height: 36px; padding: 0 14px; font-weight: 700; font-size: 0.9rem; color: var(--ink);
    }
    .seg button + button { border-left: 2.5px solid var(--line); }
    .seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
    .seg[aria-label="Corner"] button[aria-pressed="true"] { background: var(--yellow); color: var(--on-ink); }
    .seg[aria-label="Plate"] button[aria-pressed="true"],
    .seg[aria-label="Pack or one icon"] button[aria-pressed="true"] { background: var(--lilac); color: var(--on-ink); }
    /* Draw: an oversized orange pill that breaks out of the ticket, with a Free badge. */
    .draw {
      position: relative; display: block; width: calc(100% + 44px); margin: 16px -22px 0; min-height: 64px; padding: 14px 12px;
      border: 3.5px solid var(--line); border-radius: 999px; background: var(--orange); color: #16131c;
      font-weight: 800; font-size: 1.55rem; letter-spacing: -0.015em; cursor: pointer;
      box-shadow: 0 7px 0 var(--shadow); transition: transform 0.08s, box-shadow 0.08s, background-color 0.12s;
      animation: draw-press 2.4s ease-in-out infinite;
    }
    .draw::before { content: "✎ " / ""; }
    .draw::after {
      content: "FREE" / ""; position: absolute; top: -14px; right: 16px; padding: 3px 9px;
      font: 800 0.7rem/1 var(--mono); letter-spacing: 0.04em; color: #16131c; background: var(--mint);
      border: 2.5px solid var(--line); border-radius: 999px; box-shadow: 2px 2px 0 var(--shadow); transform: rotate(8deg);
    }
    .draw:hover { background: var(--pink); }
    .draw:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
    .draw:active { animation: none; transform: translateY(6px); box-shadow: 0 1px 0 var(--shadow); }
    .draw:disabled { opacity: 0.6; cursor: progress; animation: none; transform: none; }
    .draw.is-busy,
    .draw.is-busy:disabled { opacity: 1; cursor: progress; animation: none; background: var(--yellow); transform: translateY(5px); box-shadow: 0 2px 0 var(--shadow); }
    @keyframes draw-press {
      0%, 80%, 100% { transform: translateY(0); box-shadow: 0 7px 0 var(--shadow); }
      88% { transform: translateY(5px); box-shadow: 0 2px 0 var(--shadow); }
    }
    @media (prefers-reduced-motion: reduce) {
      .draw { animation: none; transition: none; }
    }
    .hint { min-height: 1.3em; margin: 14px 0 0; font-family: var(--mono); font-size: 0.8rem; color: var(--faint); }
    .fuse:not([hidden]) + .hint {
      display: table; margin: 18px auto 0; font-family: var(--pop); font-weight: 700; font-size: 0.95rem; color: var(--on-ink);
      background: var(--yellow); border: 2.5px solid var(--line); border-radius: 999px; padding: 5px 16px; box-shadow: 3px 3px 0 var(--shadow);
    }
    .hint.is-alert {
      color: var(--on-ink); background: var(--pink); border: 2px solid var(--line); border-radius: 10px;
      padding: 6px 10px; display: inline-block; font-family: var(--pop); font-weight: 700; font-size: 0.9rem;
    }
    .nudge { display: inline-flex; align-items: center; border: 2.5px solid var(--line); border-radius: 999px; background: var(--seg-bg); }
    .nudge button { border: 0; background: transparent; min-height: 36px; min-width: 40px; font-weight: 800; font-size: 1.2rem; line-height: 1; color: var(--ink); }
    .nudge button:hover { color: var(--blue); }
    .nudge button:disabled { opacity: 0.3; cursor: default; }
    .nudge b { min-width: 2.4ch; text-align: center; font-weight: 800; font-size: 1.2rem; }
    .nudge.is-off { opacity: 0.45; }
    .px { display: flex; flex-wrap: wrap; gap: 6px; }
    .px button {
      border: 2px solid var(--line); background: var(--sheet); border-radius: 10px; min-height: 34px; min-width: 44px; padding: 0 9px;
      font-family: var(--mono); font-size: 0.82rem; color: var(--ink);
    }
    .px button[aria-pressed="true"] { background: var(--mint); color: var(--on-ink); box-shadow: 2px 2px 0 var(--shadow); }
    .px button:disabled { opacity: 0.35; cursor: default; }
    .px.is-off { opacity: 0.45; }
    .sample { display: flex; align-items: center; gap: 20px; margin-top: 18px; padding-top: 18px; border-top: 2.5px dashed var(--rule); }
    .pen {
      position: relative; display: grid; place-items: center; flex: 0 0 auto; max-width: 100%;
      width: var(--px, 256px); height: var(--px, 256px); color: var(--ink);
      background: var(--paper); border: 2.5px solid var(--line); border-radius: 16px;
      background-image: radial-gradient(var(--dots) 1.5px, transparent 1.5px); background-size: 16px 16px;
    }
    .pen .disc { width: 72%; height: 72%; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--stage-plate); }
    .pen svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: var(--sw); stroke-linecap: var(--cap); stroke-linejoin: var(--join); position: relative; }
    .pen.png svg { stroke: #16131c; }
    .pen.looked > svg, .pen-look[hidden], .sheet[hidden] { display: none; }
    .pen-look { display: contents; }
    .looks { border: 0; margin: 18px 0 4px; padding: 0; min-width: 0; --sw: 1.7; --cap: round; --join: round; }
    .looks legend { padding: 0; }
    .look-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .look-card {
      position: relative; display: grid; gap: 4px; padding: 12px 12px 14px; cursor: pointer;
      background: var(--sheet); border: 2.5px solid var(--line); border-radius: 18px; box-shadow: 4px 4px 0 var(--shadow);
      transition: transform 0.1s, box-shadow 0.1s;
    }
    .look-card:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
    .look-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
    .look-card:has(input:checked) { background: var(--yellow); color: var(--on-ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
    .look-card:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
    .look-card:has(input:checked) .look-name::after { content: " ✓"; }
    .look-prev { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 10px 6px; background: var(--paper); }
    .look-card-blueprint .look-prev { background: #e8f1ff; }
    .look-card-neon .look-prev { background: #2a2136; }
    .look-card-clay .look-prev { background: #f4ecff; }
    .look-card-pixel .look-prev { background: #eef1f6; }
    .look-pen { display: grid; grid-template-columns: repeat(3, 1fr); place-items: center; }
    .look-pen[hidden] { display: none; }
    .look-ic { display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-width: 76px; }
    .look-ic svg { width: 72%; height: 72%; }
    .look-card-outline .look-ic svg { width: 58%; height: 58%; color: var(--ink); stroke-width: var(--sw); stroke-linecap: var(--cap); stroke-linejoin: var(--join); }
    .look-card:has(input:checked) .look-card-outline .look-ic svg, .look-card-outline:has(input:checked) .look-ic svg { color: #16131c; }
    .look-name { font-weight: 800; font-size: 1.15rem; margin-top: 6px; }
    .look-blurb { font-size: 0.85rem; color: var(--soft); line-height: 1.3; }
    .look-card:has(input:checked) .look-blurb { color: var(--on-ink); opacity: 0.8; }
    .look-noscript a { font-weight: 800; margin-right: 8px; }
    @media (max-width: 640px) {
      .look-cards { grid-template-columns: 1fr; gap: 10px; }
      .look-card { grid-template-columns: 132px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; align-items: start; }
      .look-prev { grid-row: 1 / span 2; padding: 6px 2px; }
      .look-name { margin-top: 2px; }
    }
    .cell svg.look { width: 56%; height: 56%; }
    .cell svg.look-blueprint, .cell svg.look-neon { width: 48%; height: 48%; }
    .cell svg.look-clay { width: 62%; height: 62%; }
    .cell svg.look-pixel { width: 52%; height: 52%; }
    .pen .pen-look svg.look { width: 72%; height: 72%; }
    .pen .pen-look svg { fill: initial; stroke: initial; }
    .pen.sharp svg { stroke-miterlimit: 2.2; }
    .sample p { margin: 0; max-width: 28rem; color: var(--faint); font-size: 0.9rem; }
    .sample strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }

    /* draw wait: a slash, twelve stickers, one word */
    .fuse { display: grid; justify-items: center; margin-top: 22px; animation: fuse-veil 3.6s linear infinite; }
    @keyframes fuse-veil {
      0% { opacity: 0; }
      7%, 86% { opacity: 1; }
      95%, 100% { opacity: 0; }
    }
    .fuse-slash { width: min(820px, 100%); height: 78px; margin: 0 0 4px; display: block; position: relative; z-index: 2; }
    .fuse-slash path {
      fill: none; stroke: var(--yellow); stroke-width: 16; stroke-linecap: round;
      pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0;
      animation: fuse-slash 3.6s linear infinite;
    }
    @keyframes fuse-slash {
      0%, 6% { stroke-dashoffset: 1; }
      78%, 88% { stroke-dashoffset: 0; }
      100% { stroke-dashoffset: 1; }
    }
    .fuse-row { width: min(820px, 100%); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; position: relative; z-index: 1; }
    .fuse-cell {
      aspect-ratio: 1; display: grid; place-items: center; color: var(--on-ink);
      border: 2px solid var(--line); border-radius: 12px; background: var(--sheet);
      animation: fuse-hot 3.6s linear infinite; animation-delay: calc((var(--i) + 1) * 0.216s);
    }
    .fuse-cell:nth-child(6n+1) { background: var(--yellow); }
    .fuse-cell:nth-child(6n+2) { background: var(--pink); }
    .fuse-cell:nth-child(6n+3) { background: var(--mint); }
    .fuse-cell:nth-child(6n+4) { background: var(--blue); color: #fff; }
    .fuse-cell:nth-child(6n+5) { background: var(--orange); }
    .fuse-cell:nth-child(6n) { background: var(--lilac); }
    @keyframes fuse-hot {
      0%, 6% { transform: translateY(-6px) rotate(-4deg); box-shadow: 3px 3px 0 var(--shadow); }
      14%, 100% { transform: none; box-shadow: none; }
    }
    .fuse-cell svg { width: 62%; height: 62%; }
    .fuse-cell path {
      fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
      pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0;
      animation: fuse-ink 3.6s linear infinite backwards; animation-delay: calc((var(--i) + 1) * 0.216s);
    }
    @keyframes fuse-ink {
      0% { stroke-dashoffset: 1; }
      5% { stroke-dashoffset: 0; }
      88% { stroke-dashoffset: 0; }
      100% { stroke-dashoffset: 1; }
    }
    .fuse-word {
      margin: 18px 0 0; font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.04em;
      background: var(--yellow); color: var(--on-ink); border: 2.5px solid var(--line); border-radius: 14px;
      padding: 0 16px 4px; box-shadow: 4px 4px 0 var(--shadow); transform: rotate(-2deg);
      animation: fuse-word 3.6s ease infinite;
    }
    .fuse-word::after { content: "…"; }
    @keyframes fuse-word {
      0%, 74% { opacity: 0; transform: translateY(6px) rotate(-2deg); }
      82%, 88% { opacity: 1; transform: rotate(-2deg); }
      100% { opacity: 0; }
    }

    /* api block */
    .api { padding: 40px 0 8px; }
    .api .kicker { background: var(--lilac); }
    .api h2, .spec-head h2, .legal h2 { margin: 0; font-weight: 800; letter-spacing: -0.035em; }
    .api h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; }
    .api .deck { margin: 10px 0 0; max-width: 42rem; }
    .request { margin-top: 20px; overflow: hidden; }
    .req-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 2.5px solid var(--line); background: var(--yellow); color: var(--on-ink); }
    .verb { font-family: var(--mono); font-size: 0.85rem; }
    .copy {
      border: 2px solid var(--line); background: #fff; color: #16131c; border-radius: 999px; min-height: 32px; padding: 0 14px;
      font-weight: 700; font-size: 0.82rem;
    }
    .copy:hover { box-shadow: 2px 2px 0 var(--shadow); }
    pre.payload { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 0.86rem; line-height: 1.6; color: var(--ink); white-space: pre; }
    .api-steps { margin: 18px 0 0; padding: 0; list-style: none; max-width: 44rem; color: var(--soft); counter-reset: s; }
    .api-steps li { margin: 0 0 8px; padding-left: 36px; position: relative; }
    .api-steps li::before {
      counter-increment: s; content: counter(s); position: absolute; left: 0; top: -1px; width: 26px; height: 26px;
      display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--mint);
      color: var(--on-ink); font-weight: 800; font-size: 0.8rem;
    }
    .api-steps code, .fields code, .legal code { font-family: var(--mono); font-size: 0.86em; }
    .fields { margin: 18px 0 8px; max-width: 44rem; }
    .fields div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px 14px; padding: 10px 0; border-top: 2px dashed var(--rule); font-size: 0.95rem; }
    .fields dt { color: var(--faint); }
    .fields dd { margin: 0; }

    /* sheets of icons */
    .specimen { padding: 16px 0 72px; }
    .spec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 30px 0 16px; }
    .spec-head h2 { font-size: 2.2rem; }
    .spec-head p { margin: 0; font-family: var(--mono); color: var(--faint); font-size: 0.82rem; }
    .sheet { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
    .cell {
      position: relative; aspect-ratio: 1; padding: 0; display: grid; place-items: center; text-decoration: none;
      border: 2.5px solid var(--line); border-radius: 18px; color: var(--on-ink); background: var(--yellow);
      box-shadow: 4px 4px 0 var(--shadow); transition: transform 0.1s;
    }
    .cell:nth-child(6n+2) { background: var(--pink); }
    .cell:nth-child(6n+3) { background: var(--mint); }
    .cell:nth-child(6n+4) { background: var(--blue); color: #fff; }
    .cell:nth-child(6n+5) { background: var(--orange); }
    .cell:nth-child(6n) { background: var(--lilac); }
    .cell:hover { transform: rotate(-2deg) scale(1.03); }
    .cell.is-on { outline: 4px solid var(--ink); outline-offset: 4px; }
    .cell:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
    .cell svg { width: 42%; height: 42%; stroke-width: var(--sw); stroke-linecap: var(--cap); stroke-linejoin: var(--join); position: relative; }
    body.sharp .sheet svg,
    body.sharp #stage-icon svg { stroke-miterlimit: 2.2; }
    .idx { position: absolute; top: 9px; left: 12px; font-family: var(--mono); font-size: 0.68rem; opacity: 0.7; }
    .nm { position: absolute; left: 8px; right: 8px; bottom: 10px; text-align: center; font-weight: 700; font-size: 0.85rem; }
    .disc { display: none; position: absolute; width: 58%; height: 58%; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
    body.plate .disc { display: block; }

    /* inner pages */
    .page { padding: 40px 0 76px; }
    .page h1 { max-width: 13em; font-size: clamp(2.6rem, 6vw, 5.4rem); }
    .lead { margin: 16px 0 0; max-width: 42rem; color: var(--soft); font-size: 1.12rem; }
    .back {
      display: inline-block; margin-bottom: 20px; text-decoration: none; font-weight: 700; font-size: 0.9rem;
      border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--sheet);
    }
    .back:hover { box-shadow: 3px 3px 0 var(--shadow); }
    .page .kicker { display: table; transform: rotate(-2deg); }
    .quote { margin: 16px 0 0; max-width: 46rem; font-weight: 700; font-size: 1.3rem; line-height: 1.4; color: var(--soft); }
    .quote::before { content: "“"; }
    .quote::after { content: "”"; }
    .status { min-height: 1.2em; margin: 14px 0 0; font-weight: 700; font-size: 1rem; }
    .status:not(:empty) {
      display: inline-flex; align-items: center; gap: 10px; border: 2.5px solid var(--line); border-radius: 999px;
      padding: 6px 16px 6px 12px; background: var(--yellow); color: var(--on-ink); box-shadow: 3px 3px 0 var(--shadow);
    }
    .status:not(:empty)::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--on-ink); animation: blink 1s ease-in-out infinite alternate; }
    @keyframes blink { to { opacity: 0.2; } }
    body[data-status="ready"] .status:not(:empty) { background: var(--mint); }
    body[data-status="ready"] .status:not(:empty)::before { animation: none; }
    body[data-status="failed"] .status:not(:empty) { background: var(--pink); }
    body[data-status="failed"] .status:not(:empty)::before { animation: none; }
    .meta-line, .page .lead.meta { font-family: var(--mono); font-size: 0.85rem; }
    .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 100%; margin-top: 22px; }
    .actions .btn {
      display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; text-decoration: none;
      border: 2.5px solid var(--line); border-radius: 14px; background: var(--sheet); color: var(--ink);
      font-weight: 800; font-size: 0.98rem; box-shadow: 4px 4px 0 var(--shadow);
    }
    .actions .btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
    .actions .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
    .actions .btn.fill { background: var(--blue); color: #fff; font-size: 1.08rem; min-height: 52px; padding: 0 22px; }
    .actions .btn.fill[href*="download"]::before { content: "↓ "; white-space: pre; }
    .btn {
      min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--sheet);
      color: var(--ink); font-weight: 700; font-size: 0.92rem;
    }
    .btn:hover { box-shadow: 3px 3px 0 var(--shadow); }
    .btn.fill { background: var(--ink); color: var(--paper); }
    .sizes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
    .sizes .lbl { margin: 0; }
    .sizes .seg button[aria-pressed="true"] { background: var(--pink); color: var(--on-ink); }
    #view-pack .sheet { margin-top: 26px; }
    .detail {
      display: grid; grid-template-columns: 300px 1fr; gap: 28px; margin-top: 34px; align-items: start;
      padding: 22px; background: var(--sheet); border: 2.5px solid var(--line); border-radius: 18px; box-shadow: 6px 6px 0 var(--shadow);
    }
    .stage-wrap { width: 300px; }
    .stage {
      width: 300px; height: 300px; display: grid; place-items: center; box-shadow: none; border-radius: 14px;
      background-color: var(--checker-a);
      background-image:
        linear-gradient(45deg, var(--checker-b) 25%, transparent 25%),
        linear-gradient(-45deg, var(--checker-b) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--checker-b) 75%),
        linear-gradient(-45deg, transparent 75%, var(--checker-b) 75%);
      background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    }
    #stage-icon { outline: 1.5px dashed var(--stage-edge); display: grid; place-items: center; color: var(--ink); background: transparent; }
    body.plate #stage-icon { background: radial-gradient(circle, var(--stage-plate) 0 68%, transparent 70%); }
    #stage-icon svg { width: 100%; height: 100%; display: block; stroke-width: var(--sw); stroke-linecap: var(--cap); stroke-linejoin: var(--join); }
    .stage-cap { margin: 10px 0 0; font-family: var(--mono); font-size: 0.78rem; color: var(--faint); }
    .detail h3 { margin: 16px 0 0; font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: -0.04em; }
    .file-note { margin: 8px 0 0; color: var(--soft); font-size: 0.95rem; }
    .code {
      margin: 14px 0 0; max-height: 210px; overflow: auto; padding: 12px 14px; box-shadow: none; border-width: 2px; border-radius: 12px;
      background: var(--paper); font-family: var(--mono); font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-all;
    }

    /* gallery rows on older pages */
    .grow { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 18px; align-items: center; text-decoration: none; padding: 18px 0; border-top: 2px dashed var(--rule); }
    .grow strong { display: block; font-weight: 800; font-size: 1.7rem; letter-spacing: -0.03em; }
    .grow:hover strong { color: var(--blue); }
    .grow span { color: var(--soft); font-size: 0.92rem; }
    .mini { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
    .mini div { background: var(--sheet); border: 2px solid var(--line); border-radius: 10px; aspect-ratio: 1; display: grid; place-items: center; }
    .mini svg { width: 48%; height: 48%; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

    /* license and contact */
    .legal { max-width: 46rem; margin-top: 30px; padding: 8px 30px 28px; }
    .legal h2 { margin: 1.4em 0 0.4em; font-size: 1.6rem; }
    .legal h2:first-child { margin-top: 0.9em; }
    .legal p, .legal li { color: var(--soft); }
    .legal ul { margin: 0.4em 0 0; padding-left: 1.2em; }
    .legal li::marker { color: var(--orange); }
    .legal li + li { margin-top: 0.4em; }
    .legal a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
    .legal .file { font-family: var(--mono); font-size: 0.86em; }
    .deed { margin: 8px 0 0; font-family: var(--mono); font-size: 0.8rem; line-height: 1.5; word-break: break-all; }
    .mail { margin: 26px 0 0; font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.035em; }
    .mail a {
      display: inline-block; text-decoration: none; background: var(--pink); color: var(--on-ink); border: 2.5px solid var(--line);
      border-radius: 16px; padding: 4px 18px 8px; box-shadow: 5px 5px 0 var(--shadow); transform: rotate(-1deg);
    }
    .mail a:hover { transform: rotate(1deg); }

    /* not found */
    .lost { text-align: center; padding: 70px 0 90px; }
    .lost h1 { margin-inline: auto; }
    .lost .lead { margin-inline: auto; }
    .lost .actions { justify-content: center; }
    .lost-tile {
      width: 120px; height: 120px; margin: 0 auto 26px; display: grid; place-items: center; background: var(--lilac); color: var(--on-ink);
      border: 2.5px solid var(--line); border-radius: 28px; box-shadow: 5px 5px 0 var(--shadow); transform: rotate(-6deg);
      font-weight: 800; font-size: 2.6rem; letter-spacing: -0.04em;
    }

    /* footer */
    footer { border-top: 2.5px solid var(--line); margin-top: auto; background: var(--paper); }
    .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding: 24px 0 36px; font-size: 0.88rem; color: var(--soft); }
    .foot p { margin: 0; max-width: 38rem; }
    .foot p a { text-decoration: none; font-family: var(--mono); font-size: 0.8rem; color: var(--on-ink); background: var(--yellow); border: 2px solid var(--line); border-radius: 6px; padding: 0 6px; }
    .foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
    .foot nav a { color: var(--soft); font-weight: 700; text-underline-offset: 3px; }
    .foot nav a:hover { color: var(--ink); }
    .foot .ver { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); }
    .foot a[aria-current="page"] { color: var(--ink); }

    /* gallery */
    .find { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: end; margin-top: 26px; }
    .find label { display: flex; flex-direction: column; gap: 6px; color: var(--faint); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; }
    .find input, .find select {
      color: var(--ink); background: var(--sheet); border: 2.5px solid var(--line); border-radius: 14px; padding: 8px 14px; min-height: 48px;
      letter-spacing: 0; text-transform: none; font-family: var(--pop); font-weight: 700; font-size: 1.05rem; box-shadow: 4px 4px 0 var(--shadow);
    }
    .find input:focus, .find select:focus { outline: none; box-shadow: 4px 4px 0 var(--blue); }
    .find label:first-child { flex: 1 1 18rem; max-width: 30rem; }
    .find input { width: 100%; }
    .find select { min-width: 15rem; }
    .find .count {
      margin: 0 0 6px auto; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0; text-transform: none; color: var(--on-ink);
      background: var(--lilac); border: 2px solid var(--line); border-radius: 999px; padding: 3px 12px;
    }
    .find .count:empty { display: none; }
    .browse { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: 8px 34px; align-items: start; margin-top: 30px; }
    .cat-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; margin: 0; max-height: calc(100vh - 112px); overflow: auto; padding: 3px; }
    .cat-nav a { display: block; padding: 6px 12px; border: 2px solid transparent; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.92rem; }
    .cat-nav a:hover { border-color: var(--line); }
    .cat-nav a.sub { margin-left: 12px; font-weight: 500; font-size: 0.86rem; color: var(--soft); }
    .cat-nav a[aria-current="true"] { background: var(--ink); color: var(--paper); }
    .cat { margin-top: 30px; }
    .cat:first-child { margin-top: 0; }
    .cat h2, .cat h3 { margin: 0; }
    .cat h2 a, .cat h3 a { text-decoration: none; font-weight: 800; letter-spacing: -0.035em; }
    .cat h2 a { font-size: 2.2rem; }
    .cat h3 a { font-size: 1.4rem; }
    .cat h2 a:hover, .cat h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
    .browse-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin: 0; }
    .browse-head p { margin: 0; font-family: var(--mono); font-size: 0.82rem; color: var(--soft); }
    .pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
    .pager:empty { display: none; }
    .pager .btn { min-width: 42px; }
    .pager .btn[aria-current="page"] { background: var(--ink); color: var(--paper); }
    .pager .btn:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
    .pager .gap { color: var(--faint); padding: 0 2px; }
    .cat > .pack { margin-top: 14px; padding: 0 0 18px; overflow: hidden; }
    .cat > .pack > .browse-head { justify-content: space-between; padding: 12px 18px; margin-bottom: 16px; border-bottom: 2.5px solid var(--line); background: var(--yellow); color: var(--on-ink); }
    .cat > .pack > .browse-head p { color: var(--on-ink); }
    .cat > .pack:nth-of-type(6n+2) > .browse-head { background: var(--pink); }
    .cat > .pack:nth-of-type(6n+3) > .browse-head { background: var(--mint); }
    .cat > .pack:nth-of-type(6n+4) > .browse-head { background: var(--blue); color: #fff; }
    .cat > .pack:nth-of-type(6n+4) > .browse-head p { color: #fff; }
    .cat > .pack:nth-of-type(6n+5) > .browse-head { background: var(--orange); }
    .cat > .pack:nth-of-type(6n) > .browse-head { background: var(--lilac); }
    .cat > .pack .tiles { padding: 0 18px; }
    .pack + .pack { margin-top: 26px; }
    .tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 12px; }
    .tile { margin: 0; text-align: center; }
    .tile .face {
      position: relative; background: var(--sheet); border: 2px solid var(--line); border-radius: 14px; aspect-ratio: 1;
      display: grid; place-items: center; color: var(--ink); transition: transform 0.1s;
    }
    .tile:hover .face { transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--shadow); background: var(--paper); }
    .tile .dl {
      position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; min-height: 0; padding: 0;
      border: 2px solid var(--line); border-radius: 8px; background: var(--yellow); color: #16131c;
      opacity: 0; pointer-events: none; display: grid; place-items: center;
    }
    .tile .dl svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; }
    .tile:hover .dl,
    .tile:focus-within .dl { opacity: 1; pointer-events: auto; }
    .tile .dl:hover,
    .tile .dl:focus-visible { background: var(--mint); color: #16131c; box-shadow: none; }
    .tile svg { width: 44%; height: 44%; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .tile figcaption, .tile .figcaption { display: block; margin-top: 6px; font-size: 0.8rem; font-weight: 700; color: var(--soft); word-break: break-word; }
    a.tile.more { text-decoration: none; color: inherit; }
    a.tile.more .face { background: var(--ink); color: var(--paper); font-weight: 800; font-size: 1rem; }
    a.tile.more:hover .face { background: var(--blue); color: #fff; }
    #empty { margin: 18px 0; display: inline-block; font-weight: 700; background: var(--pink); color: var(--on-ink); border: 2px solid var(--line); border-radius: 12px; padding: 8px 14px; }
    #empty[hidden] { display: none; }
    #view-gallery h1, #gallery-app h1 { max-width: none; }
    #gallery-app .actions { margin-top: 18px; }
    #missing { font-weight: 700; }
    .look-strip { margin: 20px 0 6px; min-width: 0; }
    .ls-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
    .ls-head .lbl { margin: 0; }
    .ls-cur { font-weight: 800; font-size: 1rem; color: var(--ink); }
    .ls-cur::before { content: "·"; margin-right: 8px; color: var(--muted, #8a8090); }
    .ls-arrows { margin-left: auto; display: flex; gap: 8px; align-self: center; }
    .ls-btn {
      width: 34px; height: 34px; border-radius: 999px; border: 2.5px solid var(--line); background: var(--sheet); color: var(--ink);
      font: 800 1rem/1 inherit; cursor: pointer; box-shadow: 2px 2px 0 var(--shadow); display: grid; place-items: center; padding: 0;
    }
    .ls-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow); }
    .ls-btn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
    .ls-row {
      display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0;
      padding: 8px 0 10px; margin: 0; scrollbar-width: none; overscroll-behavior-x: contain;
      --fl: 0px; --fr: 0px;
      -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
              mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
    }
    .ls-row::-webkit-scrollbar { display: none; }
    .ls-row.fade-l { --fl: 48px; }
    .ls-row.fade-r { --fr: 48px; }
    .ls-card {
      flex: none; width: 100px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 9px;
      padding: 6px 4px 4px; text-decoration: none; color: var(--ink); border-radius: 18px; transition: transform .14s ease;
    }
    .ls-tile {
      width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; overflow: hidden;
      background: #fffaf0; border: 2.5px solid var(--line); color: #16131c; stroke-width: 1.7;
      transition: box-shadow .14s ease, transform .14s ease;
    }
    .ls-tile svg { width: 44px; height: 44px; display: block; }
    .ls-outline .ls-tile svg { stroke-linecap: round; stroke-linejoin: round; fill: none; }
    .ls-neon .ls-tile { background: #16131c; }
    .ls-blueprint .ls-tile { background: #1c4f9c; }
    .ls-name { font-weight: 700; font-size: 0.86rem; line-height: 1.15; white-space: nowrap; padding-bottom: 3px; border-bottom: 3px solid transparent; }
    .ls-card:hover { transform: translateY(-3px); }
    .ls-card:hover .ls-tile { box-shadow: 3px 3px 0 var(--shadow); }
    .ls-card:focus-visible { outline: none; }
    .ls-card:focus-visible .ls-tile { outline: 3px solid var(--blue); outline-offset: 3px; }
    .ls-card[aria-current="true"] .ls-tile { border-width: 3px; box-shadow: 3px 3px 0 var(--blue); transform: translate(-1px, -1px); }
    .ls-card[aria-current="true"] .ls-name { font-weight: 800; border-bottom-color: var(--pink); }
    html[data-theme="dark"] .ls-tile { border-color: #fff5e1; }
    html[data-theme="dark"] .ls-card:hover .ls-tile { box-shadow: 3px 3px 0 #000; }
    .ls-btn[hidden] { display: none; }
    @media (max-width: 720px) { .ls-arrows { display: none; } }
    @media (max-width: 480px) {
      .ls-row { gap: 2px; }
      .ls-card { width: 80px; padding-inline: 2px; }
      .ls-tile { width: 62px; height: 62px; border-radius: 16px; }
      .ls-tile svg { width: 40px; height: 40px; }
      .ls-name { font-size: 0.8rem; }
    }
    #gallery-app[data-look="sticker"] .tile .face > svg { width: 62%; height: 62%; }
    #gallery-app[data-look="blueprint"] .tile .face > svg, #gallery-app[data-look="neon"] .tile .face > svg { width: 58%; height: 58%; }
    #gallery-app[data-look="clay"] .tile .face > svg { width: 66%; height: 66%; }
    #gallery-app[data-look="pixel"] .tile .face > svg { width: 56%; height: 56%; }

    @media (hover: none) {
      .nm { opacity: 1; }
      .tile .dl { opacity: 1; pointer-events: auto; }
    }
    @media (max-width: 1240px) {
      .stickers { display: none; }
    }
    @media (max-width: 960px) {
      .sheet { grid-template-columns: repeat(4, 1fr); }
      .detail { grid-template-columns: 1fr; }
      .stage, .stage-wrap { width: min(300px, 100%); }
      .stage { height: auto; aspect-ratio: 1; }
      .tiles { grid-template-columns: repeat(5, 1fr); }
    }
    @media (max-width: 720px) {
      .wrap { width: calc(100% - 32px); }
      .desk form { width: calc(100% - 32px); padding: 16px; }
      .bar { display: flex; flex-wrap: wrap; padding: 12px 0; min-height: 0; gap: 10px; }
      .brand { font-size: 1.35rem; }
      .mark { width: 36px; height: 36px; padding: 6px; }
      .end { margin-left: auto; }
      .host { display: none; }
      .nav { order: 3; width: 100%; gap: 4px; }
      .nav a { padding: 6px 14px; }
      .hero { padding-top: 26px; }
      h1, .page h1 { font-size: 2.7rem; }
      .deck { font-size: 1.02rem; }
      textarea { font-size: 1.3rem; }
      .sheet { grid-template-columns: repeat(3, 1fr); gap: 12px; }
      .mini { grid-template-columns: repeat(3, 1fr); }
      .grow { grid-template-columns: 1fr; gap: 10px; }
      .toolbar { display: block; }
      .sample { flex-direction: column; align-items: flex-start; }
      .spec-head { flex-direction: column; align-items: flex-start; }
      .fuse-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
      .fuse-slash { height: 52px; }
      .actions .btn { flex: 1 1 auto; justify-content: center; }
      .detail { padding: 16px; }
      .legal { padding: 4px 18px 20px; }
      .nm { font-size: 0.72rem; bottom: 6px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      * { transition: none !important; animation: none !important; }
      .fuse, .fuse-word { opacity: 1; transform: none; }
      .fuse-slash path, .fuse-cell path { stroke-dashoffset: 0; }
      .cell:hover, .tile:hover .face { transform: none; }
    }
    @media (max-width: 720px) {
      .tiles { grid-template-columns: repeat(3, 1fr); }
      .find .count { margin-left: 0; }
      .browse { grid-template-columns: 1fr; }
      .cat-nav { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; }
      .cat-nav a.sub { display: none; }
      .cat h2 a { font-size: 1.8rem; }
    }

    /* waiting pack page: twelve empty stickers that bob in turn */
    .wait-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin-top: 34px; max-width: 960px; }
    .wait-row span {
      aspect-ratio: 1; border: 2.5px dashed var(--line); border-radius: 16px; opacity: 0.55;
      background: repeating-linear-gradient(45deg, transparent 0 8px, var(--dots) 8px 16px);
      animation: bob 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 0.2s);
    }
    @keyframes bob { 0%, 70%, 100% { transform: none; } 35% { transform: translateY(-8px) rotate(-4deg); opacity: 1; } }
    .wait-note { margin: 18px 0 0; color: var(--soft); max-width: 40rem; }
    @media (max-width: 720px) { .wait-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; } }
    @media (prefers-reduced-motion: reduce) { .wait-row span { animation: none; } }

    /* Icon pages and the crawlable gallery directory. */
    .crumbs { font-weight: 700; font-size: 0.9rem; margin-bottom: 14px; }
    .crumbs a { color: inherit; }
    .icon-page h1 { margin-top: 6px; }
    .icon-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0 28px; }
    .icon-style { margin: 0; }
    .icon-style .face { display: grid; place-items: center; aspect-ratio: 1; background: var(--sheet); border: 2.5px solid var(--line); border-radius: 20px; box-shadow: 5px 5px 0 var(--shadow); }
    .icon-style .face svg { width: 52%; height: 52%; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .icon-style-outline .face svg { width: 44%; height: 44%; }
    .icon-style figcaption { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
    .icon-style h2 { font-size: 1.2rem; margin: 0; }
    .icon-facts, .icon-related { margin-top: 26px; }
    .icon-related a.tile { text-decoration: none; color: inherit; }
    .icon-related .tile .face { display: grid; }
    .tile figcaption a { color: inherit; text-decoration: none; }
    .tile figcaption a:hover { text-decoration: underline; }
    .dir h2 { margin: 18px 0 8px; }
    .dir-packs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
    .dir-packs a { font-weight: 800; }
    .dir-packs span { color: var(--soft); font-size: 0.85rem; }
    @media (max-width: 640px) { .icon-styles { grid-template-columns: 1fr; } }
    /* Studio desk: two columns, the "Your pack" ticket keeps Draw in view. */
    .desk form.desk-grid { width: min(1180px, calc(100% - 48px)); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
    .desk-main { min-width: 0; }
    .desk-grid .look-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
    .desk-grid .look-card { padding: 6px; }
    .desk-grid .look-prev { padding: 6px 4px; }
    .desk-grid .look-pen { grid-template-columns: repeat(2, 1fr); }
    .desk-grid .look-ic:nth-child(3), .desk-grid .look-blurb { display: none; }
    .desk-grid .look-name { font-size: 1rem; }
    .opts { margin-top: 16px; border-top: 2.5px dashed var(--rule); }
    .opts > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 0 0; border-radius: 10px; }
    .opts > summary::-webkit-details-marker { display: none; }
    .opts > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
    .opts-tog { font-weight: 800; margin-right: 4px; }
    .opts-tog::before { content: "⚙ "; }
    .opts-tog::after { content: " ▾"; display: inline-block; transition: transform 0.15s; }
    .opts[open] .opts-tog::after { transform: rotate(180deg); }
    .opts-sum { display: contents; }
    .sm { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; padding: 3px 10px; font-family: var(--mono); font-size: 0.74rem; background: var(--sheet); white-space: nowrap; }
    .opts .toolbar { margin-top: 14px; }
    .ticket { position: sticky; top: 16px; border: 2.5px solid var(--line); border-radius: 20px; background: var(--yellow); color: #16131c; padding: 16px; box-shadow: 6px 6px 0 var(--shadow); }
    .t-h { margin: 0 0 10px; font-family: var(--mono); text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.05em; }
    .ticket .sample { display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 0; padding: 0; border: 0; }
    .ticket .pen { width: 84px; height: 84px; flex: 0 0 84px; background: #fff5e1; color: #16131c; }
    .ticket .sample p { color: #16131c; font-size: 0.78rem; }
    .ticket .sample strong { color: #16131c; font-size: 1.05rem; }
    .t-l { margin: 14px 0 0; border-top: 2px dashed rgba(22, 19, 28, 0.35); }
    .t-l div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 2px dashed rgba(22, 19, 28, 0.35); }
    .t-l dt { font-weight: 600; }
    .t-l dd { margin: 0; font-weight: 800; }
    .t-f { margin: 10px 0 0; text-align: center; font-family: var(--mono); font-size: 0.72rem; }
    @media (max-width: 860px) {
      .desk form.desk-grid { width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr); padding: 16px; }
      .desk-grid .look-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .desk-grid .look-card { display: block; }
      .ticket { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; border-radius: 20px 20px 0 0; border-bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 0 var(--shadow); }
      .ticket .t-h, .ticket .t-l, .ticket .t-f { display: none; }
      .ticket .pen { width: 48px; height: 48px; flex-basis: 48px; }
      .ticket .sample strong { font-size: 0.95rem; white-space: nowrap; }
      .ticket .t-cap { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .ticket .sample { min-width: 0; }
      .ticket .sample p { min-width: 0; }
      .ticket { padding-top: 18px; }
      .ticket .draw { width: auto; margin: 0; min-height: 54px; padding: 10px 18px; font-size: 1.15rem; white-space: nowrap; box-shadow: 0 5px 0 var(--shadow); }
      .ticket .draw::after { top: -12px; right: 10px; }
      .ticket .sample p { font-size: 0.74rem; }
      body:has(.ticket) { padding-bottom: 110px; }
      .desk:has(.ticket) { padding-bottom: 24px; }
    }
    /* Compact studio hero: the desk and its ticket start high enough to fit 1280x800. */
    .hero { padding: 18px 0 14px; }
    .hero .kicker { margin-bottom: 10px; font-size: 0.74rem; }
    .hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.7rem); max-width: none; }
    .hero h1 em { box-shadow: 4px 4px 0 var(--shadow); }
    .hero .deck { margin-top: 10px; font-size: 1rem; max-width: 34rem; }
    .hero .stickers span { width: 58px; height: 58px; border-radius: 16px; box-shadow: 3px 3px 0 var(--shadow); }
    .hero .stickers span:nth-child(3), .hero .stickers span:nth-child(6) { display: none; }
    .hero .stickers span:nth-child(1) { left: 2%; top: 22px; }
    .hero .stickers span:nth-child(2) { left: 9%; top: 104px; }
    .hero .stickers span:nth-child(4) { right: 2%; top: 18px; }
    .hero .stickers span:nth-child(5) { right: 9%; top: 100px; }
    .desk { padding-top: 0; }
    @media (min-width: 861px) { .ticket { top: 12px; padding: 14px; } }
    .t-l div { padding: 6px 0; }
    @media (max-width: 720px) {
      .hero { padding: 14px 0 10px; }
      .hero h1 { font-size: 2.1rem; }
      .hero .deck { font-size: 0.92rem; margin-top: 8px; }
      .hero .kicker { margin-bottom: 8px; }
    }
    /* Dark theme: the ticket stays a yellow sticker, so it keeps ink lines inside and pops with a pink shadow. */
    html[data-theme="dark"] .ticket { --line: #16131c; --shadow: #16131c; --blue: #16131c; border-color: #fff5e1; box-shadow: 6px 6px 0 var(--pink); }
    html[data-theme="dark"] .ticket .draw::after { box-shadow: 2px 2px 0 #16131c; }
    html[data-theme="dark"] .look-card-outline:has(input:checked) .look-prev { background: #fff5e1; }
    @media (max-width: 860px) {
      html[data-theme="dark"] .ticket { box-shadow: 0 -4px 0 var(--pink); }
    }
    /* Files: multi-select chips, one per export kind. */
    .ctrl-files { flex-basis: 100%; }
    .fmt { display: flex; flex-wrap: wrap; gap: 8px; }
    .fmt button {
      min-height: 36px; padding: 0 14px; border: 2.5px solid var(--line); border-radius: 999px;
      background: var(--seg-bg, var(--sheet)); color: var(--ink); font-weight: 700; font-size: 0.92rem; cursor: pointer;
      transition: transform 0.08s, box-shadow 0.08s;
    }
    .fmt button::before { content: "+ " / ""; opacity: 0.6; }
    .fmt button[aria-pressed="true"] { background: var(--pink); color: #16131c; box-shadow: 2px 2px 0 var(--shadow); transform: translate(-1px, -1px); }
    .fmt button[aria-pressed="true"]::before { content: "✓ " / ""; opacity: 1; }
    .fmt button:nth-child(n+3)[aria-pressed="true"] { background: var(--lilac); }
    .fmt button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
    .fmt-note { margin: 8px 0 0; font-family: var(--mono); font-size: 0.74rem; color: var(--faint); }
    .fmt-note::before { content: "ⓘ " / ""; }

    /* GitHub links to the open-source CLI */
    .gh { flex: none; vertical-align: -3px; }
    .ghlink {
      display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink);
      border: 2.5px solid var(--line); background: var(--sheet); border-radius: 999px;
      padding: 6px 14px 6px 11px; font-weight: 700; font-size: 0.9rem; box-shadow: 3px 3px 0 var(--shadow);
    }
    .ghlink:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
    .ghlink:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
    .foot nav a.foot-gh { display: inline-flex; align-items: center; gap: 6px; }
    .gh-cta-row { margin: 4px 0 22px; }
    .gh-cta {
      display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; text-decoration: none;
      color: var(--on-ink); background: var(--lilac); border: 2.5px solid var(--line); border-radius: 16px;
      padding: 12px 20px; font-weight: 800; font-size: 1.05rem; box-shadow: 5px 5px 0 var(--shadow);
    }
    .gh-cta:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); }
    .gh-cta:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
    .gh-cta-meta { font-family: var(--mono); font-weight: 400; font-size: 0.78rem; background: var(--paper); color: var(--ink); border: 2px solid var(--line); border-radius: 999px; padding: 1px 9px; }
    @media (max-width: 720px) {
      .ghlink { padding: 6px 9px; }
      .ghlink span { display: none; }
      .gh-cta { font-size: 0.95rem; padding: 10px 14px; }
    }
    .browse > div { min-width: 0; }

/* Home: CLI and MCP setup */
.cli h3 { font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; color: var(--muted, #6b6070); }
.cli-install { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; margin-top: 26px; }
.cli-step { width: 34px; height: 34px; border-radius: 999px; border: 2.5px solid var(--line); background: var(--mint, #7fe0b5); color: #16131c; font-weight: 800; display: grid; place-items: center; box-shadow: 2px 2px 0 var(--shadow); }
.cli-lead { margin: 4px 0 12px; font-size: 1.02rem; }
.cli-hint { margin: 0 0 12px; color: var(--ink); opacity: .85; max-width: 62ch; }
.cli .request.cli-code { margin: 0; }
.cli .payload { white-space: pre; overflow-x: auto; }
.cli-one { display: flex; align-items: center; gap: 10px; padding-right: 10px; }
.cli-one .payload { flex: 1; min-width: 0; margin: 0; overflow-x: auto; white-space: pre; scrollbar-width: thin; }
@media (max-width: 480px) {
  .cli .payload { white-space: pre-wrap; overflow-wrap: normal; font-size: 0.78rem; padding: 12px 14px; }
  .cli-one { display: block; padding: 0; }
  .cli-one .copy { display: block; margin: 0 14px 12px auto; }
  .cli .req-bar { padding-left: 14px; }
}
.cli-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cli-tab {
  font: 700 0.92rem/1 inherit; color: var(--ink); background: var(--sheet); border: 2.5px solid var(--line); border-radius: 999px;
  padding: 9px 14px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.cli-tab:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--shadow); }
.cli-tab[aria-selected="true"] { background: var(--yellow, #ffd23f); color: #16131c; box-shadow: 3px 3px 0 var(--shadow); font-weight: 800; }
.cli-tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cli-panel[hidden] { display: none; }
.cli-prompt { position: relative; }
.cli-prompt.folded .payload { max-height: 8.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.cli-more {
  position: relative; z-index: 1; display: block; margin: 2px auto 14px; font: 800 0.88rem/1 inherit; color: var(--ink); background: var(--sheet);
  border: 2.5px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; box-shadow: 2px 2px 0 var(--shadow);
}
.cli-btn { display: inline-block; font-weight: 800; color: #16131c; background: var(--pink); border: 2.5px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: none; box-shadow: 2px 2px 0 var(--shadow); }
.cli-ref { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 28px; margin: 34px 0 8px; padding-top: 24px; border-top: 2px dashed var(--line); }
.cli-chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px; }
.cli-chips code { display: inline-block; background: var(--sheet); border: 2px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: 0.85rem; }
.cli-api { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cli-api li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cli-api code { font-size: 0.86rem; font-weight: 700; }
.cli-api span { opacity: .75; font-size: 0.92rem; }
@media (max-width: 720px) {
  .cli-install { display: block; margin-top: 22px; }
  .cli-step { float: left; width: 28px; height: 28px; font-size: .85rem; margin: 0 10px 0 0; }
  .cli-lead { min-height: 28px; }
  .cli-tabs { gap: 6px; }
  .cli-tab { padding: 8px 11px; font-size: 0.86rem; }
  .cli-ref { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
.cli-prompt .payload { white-space: pre-wrap; }

/* Home hero: try box + agent demo */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 44px 0 48px; align-items: start; }
.home-hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.45rem); line-height: 1.04; letter-spacing: -0.03em; margin: 10px 0 14px; max-width: 18ch; }
.home-hero .deck { font-size: 1.1rem; max-width: 46ch; margin: 0; }
.try { margin-top: 22px; background: var(--sheet); border: 2.5px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: 5px 5px 0 var(--blue); }
.try-l { display: block; font-weight: 800; margin: 0 0 8px; }
.try-row { display: flex; align-items: center; gap: 10px; border: 2.5px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; background: var(--paper); }
.try-row input { flex: 1; min-width: 0; border: 0; background: none; font: 600 1rem/1.4 inherit; color: var(--ink); outline: none; padding: 6px 0; }
.try-row:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.try-go { flex: none; font: 800 .95rem/1 inherit; color: #fff; background: var(--blue); border: 2.5px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; box-shadow: 2px 2px 0 var(--shadow); }
.try-go:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow); }
.try.is-busy .try-go { opacity: .6; pointer-events: none; }
.try-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.try-chips button { font: 700 .82rem/1 inherit; color: var(--ink); border: 2px solid var(--line); border-radius: 999px; padding: 6px 10px; background: var(--paper); cursor: pointer; }
.try-chips button:hover { background: var(--yellow); color: #16131c; }
.try-looks { border: 0; padding: 0; margin: 12px 0 0; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.try-looks legend { float: left; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; opacity: .7; padding: 0; }
.tl { position: relative; cursor: pointer; }
.tl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tl-tile { width: 32px; height: 32px; border-radius: 9px; border: 2px solid var(--line); background: #fffaf0; display: grid; place-items: center; color: #16131c; stroke-width: 1.7; transition: transform .12s ease, box-shadow .12s ease; }
.tl-tile svg { width: 22px; height: 22px; display: block; }
.tl-outline svg, .st-outline svg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tl-neon .tl-tile, .st-neon span { background: #16131c; }
.tl-blueprint .tl-tile, .st-blueprint span { background: #1c4f9c; }
.tl-neon svg, .tl-blueprint svg { width: 30px; height: 30px; }
.tl-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tl input:checked + .tl-tile { border-width: 2.5px; box-shadow: 2px 2px 0 var(--blue); transform: translate(-1px, -1px); }
.tl input:focus-visible + .tl-tile { outline: 3px solid var(--blue); outline-offset: 2px; }
.tl:hover .tl-tile { transform: translateY(-2px); }
.try-hint { font-size: .88rem; margin: 12px 0 0; opacity: .85; }
.try-hint.is-alert { color: var(--ink); opacity: 1; font-weight: 700; background: var(--pink); border: 2px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.hh-demo { display: grid; gap: 0; min-width: 0; }
.term { background: #16131c; color: #f6efe2; border: 2.5px solid var(--line); border-radius: 18px; box-shadow: 6px 6px 0 var(--blue); overflow: hidden; font-family: var(--mono); font-size: .84rem; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1.5px solid #3a3346; color: #a99fb8; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff8ac4; } .term-bar i:nth-child(2) { background: #ffd43b; } .term-bar i:nth-child(3) { background: #46d9a0; }
.term-bar span { margin-left: 8px; }
.term-body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.term-body p { margin: 0; line-height: 1.5; }
.term-body .u b { color: #ffd43b; margin-right: 8px; }
.term-body .a { color: #d9d0e6; }
.term-body .call { border: 1.5px solid #4b4260; border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.term-body .tool { color: #46d9a0; font-weight: 700; }
.term-body code { color: #ffd9ec; overflow-wrap: anywhere; background: none; border: 0; padding: 0; font-size: inherit; }
.term-body .res { color: #46d9a0; }
.term-icons { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.term-icons span { background: #fffaf0; border-radius: 10px; aspect-ratio: 1; display: grid; place-items: center; color: #16131c; }
.term-icons svg { width: 70%; height: 70%; }
.phone { background: #fffaf0; border: 2.5px solid var(--line); border-radius: 24px; box-shadow: 6px 6px 0 var(--shadow); padding: 16px; color: #16131c; max-width: 360px; width: 100%; box-sizing: border-box; justify-self: end; margin: 18px 8px 0 0; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; }
.phone-top svg { width: 24px; height: 24px; display: block; }
.phone-rows { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.phone-rows li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; border: 2px solid #16131c; border-radius: 14px; padding: 8px 10px; font-weight: 700; }
.phone-rows .ic { width: 40px; height: 40px; border-radius: 12px; background: #fff3df; display: grid; place-items: center; }
.phone-rows .ic svg { width: 26px; height: 26px; }
.phone-rows .st { font-weight: 600; font-size: .8rem; opacity: .7; }
.phone-tabs { list-style: none; padding: 8px 4px 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid #16131c; }
.phone-tabs li { display: grid; justify-items: center; gap: 4px; font-size: .75rem; font-weight: 700; opacity: .6; }
.phone-tabs li.on { opacity: 1; }
.phone-tabs svg { width: 26px; height: 26px; }
.phone-cap { margin: 10px 0 0; font-family: var(--mono); font-size: .72rem; opacity: .6; text-align: center; }
html[data-theme="dark"] .term, html[data-theme="dark"] .phone { border-color: #fff5e1; }
html[data-theme="dark"] .phone { box-shadow: 6px 6px 0 #000; }
.ask-quote { margin: 0; font-size: 1.05rem; font-weight: 600; border-left: 4px solid var(--pink); padding-left: 12px; max-width: 52ch; }
.home-sec { padding: 48px 0; border-top: 2px dashed var(--line); }
.home-sec h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; margin: 8px 0 22px; max-width: 26ch; }
.studio-head { padding-bottom: 0; }
.studio-head h2 { margin-bottom: 8px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs > div { border: 2.5px solid var(--line); border-radius: 18px; padding: 18px; background: var(--sheet); }
.vs-tag { display: inline-block; font-weight: 800; border: 2px solid var(--line); border-radius: 999px; padding: 3px 10px; margin: 0 0 14px; color: #16131c; }
.vs-tag.bad { background: var(--pink); } .vs-tag.good { background: var(--mint); }
.vs-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.vs-row span { aspect-ratio: 1; border-radius: 14px; background: #fffaf0; border: 2px solid #16131c; display: grid; place-items: center; color: #16131c; stroke-width: 1.7; }
.vs-row span:nth-child(2) { background: #16131c; }
.vs > div:last-child .vs-row span:nth-child(2) { background: #fffaf0; }
.vs-row svg { width: 62%; height: 62%; }
.vs > div:first-child .vs-row span:nth-child(4) svg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vs-note { font-size: .9rem; opacity: .8; margin: 12px 0 0; }
.style-tiles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; }
.style-tiles a { display: grid; justify-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--ink); text-decoration: none; }
.style-tiles span { width: 100%; aspect-ratio: 1; border-radius: 18px; border: 2.5px solid var(--line); background: #fffaf0; display: grid; place-items: center; color: #16131c; stroke-width: 1.7; transition: transform .12s ease, box-shadow .12s ease; }
.style-tiles a:hover span { transform: translateY(-3px); box-shadow: 3px 3px 0 var(--shadow); }
.style-tiles svg { width: 62%; height: 62%; }
.st-neon svg, .st-blueprint svg { width: 100%; height: 100%; }
@media (max-width: 960px) {
  .home-hero, .vs { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .phone { justify-self: center; margin-right: 0; }
  .style-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .home-hero { padding: 26px 0 32px; }
  .home-hero h1 { font-size: 2.35rem; }
  .home-hero h1 br { display: none; }
  .home-hero .deck { font-size: 1rem; }
  .try { padding: 12px; box-shadow: 4px 4px 0 var(--blue); }
  .try-row { flex-wrap: wrap; padding: 6px; } .try-row input { flex-basis: 100%; padding: 6px 8px; } .try-go { width: 100%; }
  .try-looks legend { display: none; }
  .try-looks { gap: 3px; flex-wrap: nowrap; justify-content: space-between; }
  .tl-tile { width: 28px; height: 28px; border-radius: 8px; } .tl-tile svg { width: 19px; height: 19px; }
  .tl-neon svg, .tl-blueprint svg { width: 26px; height: 26px; }
  .term { font-size: .76rem; box-shadow: 4px 4px 0 var(--blue); }
  .term-icons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vs-row { gap: 6px; }
}
@media (max-width: 860px) {
  .ticket { transition: transform .2s ease; }
  body.try-in-view .ticket { transform: translateY(115%); }
}
.cli-alt { margin: 10px 0 0; font-size: .88rem; color: var(--ink); opacity: .8; max-width: 70ch; overflow-wrap: anywhere; }
.cli-alt code { font-size: .82rem; }
.cli-panel .cli-one + .request { margin-top: 12px; }
.cli-alt + .cli-alt { margin-top: 4px; }
@media (max-width: 600px) {
  .cli-panel .request:not(.cli-one) .payload { white-space: pre-wrap; overflow-wrap: anywhere; }
}
/* Home: New icons, the newest live icons (newest first). */
.new-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.new-head h2 { margin-bottom: 8px; }
.new-head .new-all { margin-bottom: 12px; }
.new-all { font-weight: 800; color: var(--ink); text-decoration: none; border: 2.5px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--sheet); white-space: nowrap; }
.new-all:hover { box-shadow: 3px 3px 0 var(--shadow); transform: translateY(-1px); }
#new-icons .deck { margin: 0 0 20px; }
.new-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px 12px; }
.new-tiles a { display: grid; justify-items: center; gap: 6px; color: var(--ink); text-decoration: none; min-width: 0; }
.new-tiles span { width: 100%; aspect-ratio: 1; border-radius: 16px; border: 2.5px solid var(--line); background: #fffaf0; display: grid; place-items: center; color: #16131c; stroke-width: 1.7; transition: transform .12s ease, box-shadow .12s ease; overflow: hidden; }
.new-tiles a:hover span, .new-tiles a:focus-visible span { transform: translateY(-3px) rotate(-2deg); box-shadow: 3px 3px 0 var(--shadow); }
.new-tiles svg { width: 54%; height: 54%; }
.new-tiles .nt-neon svg, .new-tiles .nt-blueprint svg { width: 100%; height: 100%; }
.new-tiles b { font-size: .8rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 960px) { .new-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 600px) { .new-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; } .new-tiles b { font-size: .72rem; } }
/* Gallery: the New filter heads the category list. */
.cat-nav a.new { border-color: var(--line); background: var(--yellow); color: #16131c; }
.cat-nav a.new[aria-current="true"] { background: var(--ink); color: var(--paper); }
.cat-nav a.sub .n { opacity: .8; }
/* Icon cart: header button, tile toggles, the cart panel (web/static/cart.js). */
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: .9rem; border: 2.5px solid var(--line); background: var(--yellow); color: #16131c; border-radius: 999px; padding: 6px 14px 6px 11px; box-shadow: 3px 3px 0 var(--shadow); }
.cart-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.cart-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.cart-count { position: absolute; top: -10px; right: -10px; min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--pink); color: #16131c; border: 2px solid var(--line); font: 500 .78rem var(--mono); }
.tile, .new-tiles li, .icon-related .tile { position: relative; }
.cart-tog { position: absolute; top: 4px; left: 4px; z-index: 2; width: 28px; height: 28px; min-height: 0; padding: 0; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 8px; background: var(--sheet); color: var(--ink); cursor: pointer; opacity: 0; pointer-events: none; transition: transform .1s ease; }
.cart-tog svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover > .cart-tog, .tile:focus-within > .cart-tog, .new-tiles li:hover > .cart-tog, .new-tiles li:focus-within > .cart-tog, .cart-tog[aria-pressed="true"] { opacity: 1; pointer-events: auto; }
.cart-tog:hover { background: var(--yellow); color: #16131c; transform: scale(1.08); }
.cart-tog[aria-pressed="true"] { background: var(--mint); color: #16131c; }
.cart-tog[aria-pressed="true"]:hover { background: var(--pink); }
.tile.in-cart .face { box-shadow: 3px 3px 0 var(--mint); }
.new-tiles li.in-cart span { box-shadow: 3px 3px 0 var(--mint); }
.new-tiles li > .cart-tog { top: 6px; left: 6px; }
@media (hover: none) { .cart-tog { opacity: 1; pointer-events: auto; } }
.btn.cart-all, .btn.cart-add { cursor: pointer; }
.btn.cart-all.on, .btn.cart-add.on { background: var(--mint); color: #16131c; }
.icon-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.icon-head .cart-add { min-height: 46px; padding: 0 20px; border-width: 2.5px; font-weight: 800; font-size: .98rem; box-shadow: 4px 4px 0 var(--shadow); background: var(--yellow); color: #16131c; }
.icon-head .cart-add.on { background: var(--mint); }
html.cart-lock, html.cart-lock body { overflow: hidden; }
.cart-shade { position: fixed; inset: 0; z-index: 40; background: rgba(22, 19, 28, .45); display: flex; justify-content: flex-end; }
.cart-panel { width: min(560px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--paper); border-left: 2.5px solid var(--line); box-shadow: -8px 0 0 var(--shadow); animation: cart-in .18s ease-out; }
@keyframes cart-in { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cart-panel { animation: none; } }
.cart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 2.5px solid var(--line); background: var(--yellow); color: #16131c; }
.cart-head h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.03em; }
.cart-sub { margin: 2px 0 0; font: 500 .8rem var(--mono); }
.cart-x { width: 40px; height: 40px; border: 2.5px solid #16131c; border-radius: 12px; background: #fff; color: #16131c; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 #16131c; }
.cart-x:hover { background: var(--pink); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px 20px; overscroll-behavior: contain; }
.cart-opts { display: grid; gap: 12px; padding: 14px; background: var(--sheet); border: 2.5px solid var(--line); border-radius: 16px; box-shadow: 4px 4px 0 var(--shadow); }
.cart-opt { display: grid; gap: 6px; }
.cart-lbl { font: 500 .74rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.cart-row { display: flex; flex-wrap: wrap; gap: 6px; }
.cart-chip { border: 2px solid var(--line); background: var(--sheet); color: var(--ink); border-radius: 999px; padding: 5px 11px; font-weight: 700; font-size: .84rem; cursor: pointer; }
.cart-chip.mono { font: 500 .78rem var(--mono); }
.cart-chip:hover { box-shadow: 2px 2px 0 var(--shadow); }
.cart-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cart-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0 10px; }
.cart-selinfo { margin: 0; font-weight: 700; }
.cart-selinfo b { font: 500 1.05rem var(--mono); background: var(--blue); color: #fff; border: 2px solid var(--line); border-radius: 8px; padding: 0 7px; }
.cart-hint { color: var(--faint); font-weight: 500; font-size: .82rem; }
.cart-toolbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.cart-tool { border: 2px solid var(--line); background: var(--sheet); color: var(--ink); border-radius: 10px; padding: 4px 10px; font-weight: 700; font-size: .82rem; cursor: pointer; }
.cart-tool:hover:not(:disabled) { background: var(--yellow); color: #16131c; }
.cart-tool.warn:hover:not(:disabled) { background: var(--pink); }
.cart-tool:disabled { opacity: .4; cursor: default; }
.cart-note { margin: 0 0 10px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--mint); color: #16131c; font-weight: 700; font-size: .88rem; }
.cart-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.cart-cell { position: relative; }
.cart-pick { width: 100%; display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; font: inherit; user-select: none; }
.cart-face { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border: 2.5px solid var(--line); border-radius: 14px; background: var(--sheet); color: var(--ink); overflow: hidden; opacity: .5; filter: grayscale(.6); transition: transform .1s ease, opacity .1s ease; }
.cart-face svg { width: 46%; height: 46%; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-face.wait { background: repeating-linear-gradient(45deg, var(--sheet) 0 8px, var(--checker-b) 8px 16px); }
.cart-cell.on .cart-face { opacity: 1; filter: none; background: var(--sheet); box-shadow: 3px 3px 0 var(--blue); border-color: var(--line); }
.cart-pick:hover .cart-face { transform: rotate(-2deg); }
.cart-pick:focus-visible { outline: none; }
.cart-pick:focus-visible .cart-face { outline: 3px solid var(--blue); outline-offset: 2px; }
.cart-box { position: absolute; top: 6px; left: 6px; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 6px; background: var(--sheet); color: #fff; }
.cart-box svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-cell.on .cart-box { background: var(--blue); }
.cart-name { max-width: 100%; font-size: .74rem; font-weight: 700; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-rm { position: absolute; top: 4px; right: 4px; z-index: 1; width: 24px; height: 24px; padding: 0; border: 2px solid var(--line); border-radius: 7px; background: var(--sheet); color: var(--ink); font-size: 1rem; line-height: 1; cursor: pointer; opacity: 0; }
.cart-cell:hover .cart-rm, .cart-rm:focus-visible { opacity: 1; }
.cart-rm:hover { background: var(--pink); color: #16131c; }
@media (hover: none) { .cart-rm { opacity: 1; } }
.cart-grid[data-look="sticker"] .cart-face svg { width: 64%; height: 64%; }
.cart-grid[data-look="blueprint"] .cart-face svg, .cart-grid[data-look="neon"] .cart-face svg { width: 60%; height: 60%; }
.cart-grid[data-look="clay"] .cart-face svg { width: 68%; height: 68%; }
.cart-grid[data-look="pixel"] .cart-face svg { width: 58%; height: 58%; }
.cart-empty { padding: 34px 18px; text-align: center; border: 2.5px dashed var(--line); border-radius: 16px; margin-top: 8px; }
.cart-empty p { margin: 6px 0; }
.cart-pill { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 6px; background: var(--yellow); color: #16131c; font-weight: 800; }
.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 2.5px solid var(--line); background: var(--sheet); }
.cart-summary { margin: 0; font: 500 .76rem var(--mono); color: var(--soft); }
.cart-dl { flex: none; min-height: 50px; padding: 0 20px; border: 2.5px solid var(--line); border-radius: 14px; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.02rem; cursor: pointer; box-shadow: 4px 4px 0 var(--shadow); }
.cart-dl::before { content: "\2193  "; white-space: pre; }
.cart-dl:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.cart-dl:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.cart-dl:disabled { background: var(--checker-b); color: var(--faint); cursor: default; box-shadow: none; }
.cart-toast { position: fixed; left: 50%; bottom: 22px; z-index: 50; transform: translateX(-50%); margin: 0; padding: 10px 16px; border: 2.5px solid var(--line); border-radius: 14px; background: var(--ink); color: var(--paper); font-weight: 700; box-shadow: 4px 4px 0 var(--yellow); max-width: calc(100% - 32px); }
@media (max-width: 720px) {
  .cart-word { display: none; }
  .cart-btn { padding: 6px 10px; }
  .cart-panel { width: 100%; border-left: 0; box-shadow: none; }
  .cart-head { padding: 14px 16px 12px; }
  .cart-body { padding: 14px 16px 18px; }
  .cart-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .cart-foot { flex-direction: column; align-items: stretch; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .cart-dl { width: 100%; }
  .cart-hint { display: none; }
}
@media (max-width: 400px) { .cart-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Illustrations: /illustrations and /illustrations/{slug}. */
.illus-page h1 { max-width: 16em; }
.illus-frame { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sheet); border: 2.5px solid var(--line); border-radius: 18px; box-shadow: 5px 5px 0 var(--shadow); }
.illus-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.illus-feature { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 30px 0 36px; }
.illus-feature .illus-frame { border-radius: 22px; box-shadow: 7px 7px 0 var(--shadow); }
.illus-feature .illus-frame:hover, .illus-card a:hover .illus-frame, .illus-nb:hover .illus-frame { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--shadow); }
.illus-feature h2 { margin: 6px 0 4px; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; }
.illus-feature h2 a { color: inherit; text-decoration: none; }
.illus-feature h2 a:hover { text-decoration: underline; }
.illus-tag { display: inline-block; margin: 0; border: 2px solid var(--line); border-radius: 999px; padding: 2px 10px; background: var(--yellow); color: #16131c; font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; }
.illus-year { font-family: var(--mono); color: var(--soft); }
.illus-feature .illus-year { margin: 0; font-size: 1.05rem; }
.illus-mood { color: var(--soft); }
.illus-feature .illus-mood { margin: 8px 0 0; font-size: 1.05rem; }
.illus-actions { margin-top: 20px; }
.illus-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.illus-card a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 10px; color: inherit; text-decoration: none; }
.illus-card .illus-frame { grid-column: 1 / -1; margin-bottom: 8px; transition: transform 0.12s, box-shadow 0.12s; }
.illus-name { font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.illus-card .illus-year { font-size: 0.9rem; }
.illus-one h1 { margin-top: 6px; }
.illus-sub { margin: 10px 0 0; font-size: 1.1rem; }
.illus-hero { margin: 24px 0 0; }
.illus-hero .illus-frame { border-radius: 22px; box-shadow: 7px 7px 0 var(--shadow); max-width: 1024px; }
.illus-hero figcaption { margin-top: 14px; max-width: 46rem; color: var(--soft); }
.illus-facts { margin-top: 30px; }
.illus-palette, .illus-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.illus-palette li { display: inline-flex; align-items: center; gap: 6px; }
.illus-palette .sw { width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 6px; }
.illus-tags li { border: 2px solid var(--line); border-radius: 999px; padding: 1px 10px; font-size: 0.85rem; background: var(--sheet); }
.illus-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 36px 0 22px; }
.illus-nb { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: center; color: inherit; text-decoration: none; font-weight: 800; }
.illus-nb.next { grid-template-columns: minmax(0, 1fr) 140px; text-align: right; }
.illus-nb.next .illus-frame { order: 2; }
.illus-nb .illus-frame { border-radius: 12px; box-shadow: 3px 3px 0 var(--shadow); transition: transform 0.12s, box-shadow 0.12s; }
.illus-nb small { display: block; font-family: var(--mono); font-weight: 500; color: var(--soft); font-size: 0.74rem; text-transform: uppercase; }
@media (max-width: 960px) { .illus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .illus-feature { grid-template-columns: 1fr; gap: 18px; margin: 22px 0 28px; }
  .illus-grid { grid-template-columns: 1fr; gap: 24px; }
  .illus-pager { grid-template-columns: 1fr; gap: 14px; }
  .illus-nb, .illus-nb.next { grid-template-columns: 110px minmax(0, 1fr); text-align: left; }
  .illus-nb.next .illus-frame { order: 0; }
}
@media (prefers-reduced-motion: reduce) { .illus-card .illus-frame, .illus-nb .illus-frame { transition: none; } }
.illus-line { grid-column: 1 / -1; color: var(--soft); font-size: 0.92rem; line-height: 1.4; }
.illus-story { margin-top: 30px; max-width: 44rem; }
.illus-story h2, .illus-facts h2 { margin: 0 0 10px; }
.illus-summary { margin: 0 0 14px; font-weight: 700; font-size: 1.15rem; line-height: 1.45; }
.illus-body p { margin: 0 0 14px; line-height: 1.6; }
.illus-head .illus-sub { margin-top: 10px; }
.illus-head { position: static; z-index: auto; background: none; border-bottom: 0; }
