/* raghav.it palette and type. Layout: headline with totals, sticky category filter, one section per category.
     Each card shows a drawing of the product, its direct links, and a "Know more" button that opens the full details. */
  :root {
    --bg: #0a0a09; --surface: #111110; --surface2: #1a1a18; --text: #e8e4dc; --muted: #9c9890; --faint: #6b6860; --line: rgba(255, 255, 255, 0.1);
    --accent: #e8a030; --green: #6ab187;
    --gold: #e8a030; --teal: #5ec4b6; --green-h: #6ab187; --amber: #e8a030; --violet: #a98be0; --indigo: #7d8ce8; --coral: #e07a5f; --blue: #5b8fd4;
    --font-display: "Fraunces", Georgia, serif; --font-body: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  html { scroll-padding-top: 120px; }
  body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 14px; line-height: 1.55; }
  a { color: inherit; }
  header.site { position: fixed; inset: 0 0 auto 0; z-index: 10; background: rgba(10, 10, 9, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .site-in { max-width: 1100px; height: 56px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .gm { display: grid; grid-template-columns: 11px 11px; gap: 3px; }
  .gc { position: relative; width: 11px; height: 11px; border-radius: 1.5px; background: #161616; border: 0.5px solid #242424; }
  .gc.on { background: var(--accent); border: 0; }
  .gc .d { position: absolute; left: 3.5px; top: 3.5px; width: 4px; height: 4px; border-radius: 50%; background: #0a0a0a; }
  .wm { display: flex; flex-direction: column; font-size: 13px; line-height: 1.05; }
  .wm .tld { color: var(--accent); font-weight: 300; }
  header.site nav { display: flex; gap: 4px; }
  header.site nav a { font-size: 10.9px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); text-decoration: none; padding: 6.4px 12px; border-radius: 4px; }
  header.site nav a:hover { color: var(--text); }
  header.site nav a[aria-current] { color: var(--text); background: var(--surface2); }
  .wrap { max-width: 68rem; margin: 0 auto; padding: 0 24px; }

  /* headline + totals */
  .hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding: 120px 0 36px; align-items: end; border-bottom: 1px solid var(--line); }
  .eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
  .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
  h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.5rem, 6.5vw, 4.2rem); line-height: 1.03; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
  h1 em { color: var(--accent); }
  .lead { color: var(--muted); margin: 16px 0 0; max-width: 46ch; }
  .links-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 0.8rem; }
  .links-row a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
  .links-row a:hover { border-color: var(--accent); }
  .total { font-family: var(--font-display); font-weight: 300; font-size: 4.5rem; line-height: 1; color: var(--accent); }
  .total-l { color: var(--muted); margin: 4px 0 18px; }
  .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; list-style: none; margin: 0; padding: 0; }
  .stats li { min-width: 0; padding: 14px 14px 13px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
  .stats li:first-child { border-left: 0; }
  .stats b { font-family: var(--font-display); font-weight: 300; font-size: 2rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
  .stats li.live b { color: var(--green); }
  .stats span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* filter + category sections */
  .filters { position: sticky; top: 56px; z-index: 4; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .f { font: inherit; font-size: 0.82rem; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
  .f[aria-pressed="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }
  .cat { padding: 44px 0 4px; }
  .cat-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
  h2 { font-family: var(--font-display); font-weight: 300; font-size: 2.2rem; margin: 0; }
  h2 .n { font-family: var(--font-body); font-size: 0.8rem; color: var(--accent); margin-left: 10px; vertical-align: middle; }
  .cat-note { color: var(--muted); margin: 0; }
  .cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 16px; }
  .cat[hidden] { display: none; }

  /* card */
  .card { --hue: var(--accent); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .2s, transform .2s; }
  .card:hover { border-color: color-mix(in srgb, var(--hue) 60%, transparent); }
  .stage { position: relative; height: 236px; overflow: hidden; display: grid; justify-items: center; align-items: start; padding: 26px 22px 0; cursor: pointer; border: 0; width: 100%; font: inherit; color: inherit; text-align: left;
           background: radial-gradient(90% 85% at 75% 0%, color-mix(in srgb, var(--hue) 30%, transparent), transparent 70%), #0d0d0c;
           -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .stage .m { transition: transform .35s ease; }
  .card:hover .stage .m { transform: translateY(-6px); }
  .stage:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .stage.design .m { filter: saturate(0.6); opacity: 0.85; }
  .stage.design .win, .stage.design .phone { border-style: dashed; }
  .concept { position: absolute; right: 14px; top: 12px; font-size: 0.66rem; color: var(--accent); border: 1px dashed var(--accent); border-radius: 999px; padding: 2px 9px; }
  .body { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; flex: 1; }
  .top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
  .card h3 { font-family: var(--font-display); font-weight: 300; font-size: 1.55rem; line-height: 1.1; margin: 0; }
  .meta { color: var(--muted); font-size: 0.75rem; margin-top: 3px; }
  .status { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 999px; padding: 3px 10px; white-space: nowrap; flex: none; }
  .status.live { color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 50%, transparent); }
  .status.wip { color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
  .status.design { color: var(--muted); border: 1px dashed var(--line); }
  .status.internal { color: var(--blue); border: 1px solid color-mix(in srgb, var(--blue) 50%, transparent); }
  .status.review { color: var(--ochre, #d7a94e); border: 1px solid color-mix(in srgb, var(--ochre, #d7a94e) 50%, transparent); }
  .s-kick i.internal { background: var(--blue); }
  .s-kick i.review { background: var(--ochre, #d7a94e); }
  .stats li.internal b { color: var(--blue); }
  .tag { margin: 0; font-size: 0.88rem; color: #cfcac0; }
  .feats { list-style: none; margin: 0; padding: 0; display: none; gap: 6px; }
  .feats li { font-size: 0.78rem; color: var(--muted); padding-left: 14px; position: relative; }
  .feats li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--hue); }
  .feats b { color: var(--text); font-weight: 500; }
  .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; align-items: center; }
  .btn { display: inline-block; text-decoration: none; border-radius: 999px; padding: 7px 14px; font-size: 0.8rem; font-weight: 500; font-family: inherit; line-height: 1.3; }
  .btn.go { color: var(--bg); background: var(--accent); }
  .btn.code { color: var(--text); border: 1px solid var(--line); }
  .btn.code:hover { border-color: var(--accent); }
  .btn.off { color: var(--muted); border: 1px dashed var(--line); font-weight: 400; }
  .btn.more { margin-left: auto; color: var(--text); background: transparent; border: 1px solid color-mix(in srgb, var(--hue) 55%, transparent); cursor: pointer; }
  .btn.more:hover { background: color-mix(in srgb, var(--hue) 16%, transparent); }

  /* wide cards (Platforms): drawing beside the text */
  .card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .card.wide .stage { height: 100%; min-height: 320px; align-items: center; padding: 28px; -webkit-mask-image: none; mask-image: none; }
  .card.wide .body { padding: 26px 28px; justify-content: center; }
  .card.wide h3 { font-size: 2.2rem; }
  .card.wide .feats { display: grid; }
  .card.wide:nth-of-type(even) .stage { order: 2; }
  .card.wide .stage:has(.phone) { align-items: start; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }

  /* sizes of the drawings inside cards */
  .stage .m { max-width: 430px; }
  .stage .phone { width: 196px; }
  .stage .board { width: min(100%, 250px); }
  .stage .b-ttt { width: 200px; }
  .stage .b-ttt span { font-size: 34px; }

  /* "Know more" sheet */
  dialog.sheet { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); overflow: auto; overscroll-behavior: contain; }
  dialog.sheet::backdrop { background: rgba(5, 5, 4, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  [data-cat="Platforms"] { --pat: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 22px 22px; }
  [data-cat="Apps"] { --pat: radial-gradient(circle, rgba(255,255,255,.12) 1.6px, transparent 2px) 0 0 / 16px 16px; }
  [data-cat="Tools"] { --pat: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 1px, transparent 1px 12px); }
  [data-cat="Google Workspace"] { --pat: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 46px 18px, linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 46px 18px; }
  [data-cat="Bots"] { --pat: radial-gradient(ellipse 9px 6px, rgba(255,255,255,.1) 98%, transparent) 0 0 / 34px 26px; }
  [data-cat="Games"] { --pat: conic-gradient(rgba(255,255,255,.07) 25%, transparent 0 50%, rgba(255,255,255,.07) 0 75%, transparent 0) 0 0 / 20px 20px; }
  .s-head { position: relative; padding: 26px 26px 20px; background: var(--pat, none), radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--hue) 40%, transparent), transparent 65%), var(--surface2); border-bottom: 1px solid var(--line); }
  .s-kick { display: flex; gap: 8px; align-items: center; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
  .s-kick i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
  .s-kick i.live { background: var(--green); } .s-kick i.design { background: transparent; border: 1px solid var(--accent); }
  .s-head h2 { font-size: 2.4rem; line-height: 1; margin: 8px 0 10px; }
  .s-head p { margin: 0; max-width: 52ch; }
  .close { position: absolute; right: 14px; top: 14px; font: inherit; font-size: 0.78rem; color: var(--text); background: rgba(10, 10, 9, 0.5); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
  .s-stage { padding: 26px; display: grid; place-items: center; border-bottom: 1px solid var(--line); background: radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--hue) 20%, transparent), transparent 70%), #0d0d0c; }
  .s-body { padding: 22px 26px 26px; display: grid; gap: 18px; }
  .lbl { font-size: 0.7rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
  .s-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 10px 18px; }
  .s-feats li { font-size: 0.8rem; color: var(--muted); border-left: 2px solid var(--hue); padding-left: 10px; }
  .s-feats b { display: block; color: var(--text); font-weight: 500; }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .chip { font-size: 0.72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
  .chip.int { border-style: dashed; }
  .s-how { font-size: 0.78rem; color: var(--muted); margin: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .s-how b { color: var(--text); font-weight: 500; }

  /* "Add to your Sheet" guide: its own lighter pop-up */
  .g-head { position: relative; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--hue) 28%, transparent), transparent 65%), var(--surface2); }
  .g-head .s-kick { margin-bottom: 6px; padding-right: 96px; }
  .s-head .s-kick { padding-right: 96px; }
  .g-head h2 { font-size: 2rem; line-height: 1.05; margin: 0 0 6px; }
  .g-head p { margin: 0; color: var(--muted); font-size: 0.82rem; max-width: 48ch; }
  .g-body { padding: 20px 24px 24px; }
  .g-body .setup { border: 0; padding: 0; background: none; }
  .g-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
  .g-foot .sp { flex: 1; }
  .btn.ghost { color: var(--text); background: transparent; border: 1px solid var(--line); cursor: pointer; }
  .btn.ghost:hover { border-color: var(--accent); }
  /* "Set it up" steps */
  .setup { border: 1px solid color-mix(in srgb, var(--hue) 45%, var(--line)); border-radius: 14px; padding: 18px; background: color-mix(in srgb, var(--hue) 6%, #0d0d0c); }
  .setup h3 { font-family: var(--font-display); font-weight: 300; font-size: 1.45rem; margin: 0 0 4px; }
  .setup .intro { margin: 0 0 14px; color: var(--muted); font-size: 0.8rem; }
  .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: st; }
  .steps > li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; counter-increment: st; }
  .steps > li::before { content: counter(st); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 500; color: var(--bg); background: var(--hue); }
  .steps .st-t { display: block; font-weight: 500; font-size: 0.85rem; }
  .steps .st-d { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
  .steps .st-d b { color: var(--text); font-weight: 500; }
  .st-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .steps .btn { padding: 5px 12px; font-size: 0.75rem; }
  .s-body > *, .steps > li > div, .setup { min-width: 0; }
  .codebox { max-width: 100%; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #0a0a09; }
  .cb-top { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border-bottom: 1px solid var(--line); background: #141413; font-size: 0.72rem; color: var(--muted); }
  .cb-top b { color: var(--text); font-weight: 500; }
  .cb-top .sp { flex: 1; }
  .copy { font: inherit; font-size: 0.75rem; font-weight: 500; color: var(--bg); background: var(--accent); border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; white-space: nowrap; }
  .copy.done { background: var(--green); }
  .codebox pre { margin: 0; padding: 12px; max-height: 190px; overflow: auto; font: 11.5px/1.55 var(--font-body); color: #cfcac0; white-space: pre; tab-size: 2; }
  .codebox.open pre { max-height: 60vh; }
  .cb-more { display: block; width: 100%; font: inherit; font-size: 0.72rem; color: var(--muted); background: #141413; border: 0; border-top: 1px solid var(--line); padding: 6px; cursor: pointer; }
  .cb-more:hover { color: var(--text); }
  .note { margin-top: 16px; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line); font-size: 0.78rem; color: var(--muted); }
  .note b { color: var(--text); font-weight: 500; }
  details.alt { margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
  details.alt summary { cursor: pointer; color: var(--text); }
  details.alt p { margin: 8px 0 0; }
  details.alt p b { color: var(--text); font-weight: 500; }
  .setup .src { margin: 14px 0 0; font-size: 0.75rem; color: var(--muted); }
  .setup .src a { color: var(--text); }
  footer { margin-top: 56px; padding: 24px 0 48px; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.8rem; }
  footer a { text-decoration: none; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

  .m { --c: var(--hue); width: 100%; max-width: 440px; font-size: 10px; color: var(--text); }
  .m * { box-sizing: border-box; }
  .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
  .bar.c { background: color-mix(in srgb, var(--c) 70%, transparent); }
  /* browser */
  .win { border-radius: 12px; background: #0e0e0d; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); overflow: hidden; }
  .win-top { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #171715; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .win-top i { width: 8px; height: 8px; border-radius: 50%; background: #333; }
  .url { margin-left: 10px; flex: 1; background: #0e0e0d; border-radius: 6px; padding: 3px 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .win-body { display: grid; grid-template-columns: 34% 1fr; min-height: 200px; }
  .side { border-right: 1px solid rgba(255, 255, 255, 0.07); padding: 12px 10px; display: grid; align-content: start; gap: 4px; }
  .side .brand { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-weight: 500; }
  .side .brand i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
  .nav-i { padding: 5px 7px; border-radius: 5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-i.on { background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--text); }
  .main { padding: 14px; display: grid; gap: 10px; align-content: start; }
  .main h4 { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 15px; }
  .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .kpi { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; padding: 7px; display: grid; gap: 5px; }
  .kpi b { font-family: var(--font-display); font-weight: 300; font-size: 15px; }
  .chart { display: flex; align-items: end; gap: 4px; height: 56px; padding-top: 4px; }
  .chart span { flex: 1; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--c) 55%, transparent); }
  .lines { display: grid; gap: 6px; }
  /* desktop tool window */
  .win.app .win-top { justify-content: space-between; }
  .win.app .ttl { color: var(--muted); }
  .tool-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  .panel { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; padding: 8px; display: grid; gap: 6px; align-content: start; }
  .panel .h { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; }
  .code { font-size: 9.5px; color: var(--muted); line-height: 1.7; white-space: pre; overflow: hidden; }
  .code .k { color: var(--c); }
  /* phone */
  .phone { width: 212px; margin: 0 auto; border-radius: 30px; padding: 9px; background: #1b1b19; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75); }
  .scr > * { min-width: 0; }
  .scr { overflow: hidden; border-radius: 22px; background: #0d0d0c; min-height: 360px; padding: 14px 12px; display: grid; gap: 8px; align-content: start; }
  .notch { width: 64px; height: 16px; border-radius: 10px; background: #1b1b19; margin: -6px auto 4px; }
  .p-title { font-family: var(--font-display); font-weight: 300; font-size: 19px; }
  .p-sub { color: var(--muted); }
  .p-hero { border-radius: 14px; padding: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 10%, transparent)); display: grid; gap: 6px; }
  .p-hero b { font-family: var(--font-display); font-weight: 300; font-size: 22px; }
  .p-card { border-radius: 10px; padding: 9px 10px; background: #161614; display: flex; gap: 8px; align-items: center; }
  .p-card i { flex: none; width: 22px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--c) 35%, transparent); }
  .p-card span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabs { display: flex; justify-content: space-around; margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .tabs i { width: 14px; height: 14px; border-radius: 4px; background: #2a2a27; }
  .tabs i:first-child { background: var(--c); }
  /* sheet */
  .sheet-ui { display: grid; grid-template-columns: 1fr 34%; }
  .grid { display: grid; grid-template-columns: 22px repeat(3, 1fr); font-size: 9.5px; }
  .grid div { border-right: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 5px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 22px; }
  .grid .hd { background: #171715; color: var(--faint); text-align: center; }
  .grid .sel { outline: 1.5px solid var(--c); outline-offset: -1.5px; }
  .grid .ok { color: var(--green); }
  .addon { border-left: 1px solid rgba(255, 255, 255, 0.08); padding: 10px; display: grid; gap: 7px; align-content: start; background: #121211; }
  .addon .h { font-weight: 500; display: flex; gap: 6px; align-items: center; }
  .addon .h i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
  .addon .btnm { margin-top: 4px; border-radius: 5px; padding: 6px; text-align: center; background: var(--c); color: #0a0a09; font-weight: 500; }
  .chk { display: flex; gap: 6px; align-items: center; color: var(--muted); white-space: nowrap; overflow: hidden; }
  .chk::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2px; border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 40%, transparent); }
  /* chat */
  .chat { display: grid; gap: 8px; padding: 12px; min-height: 230px; align-content: end; background: #0e0e0d; }
  .msg { max-width: 78%; padding: 7px 10px; border-radius: 12px; line-height: 1.45; }
  .msg.me { justify-self: end; background: color-mix(in srgb, var(--c) 40%, #1b1b19); border-bottom-right-radius: 4px; }
  .msg.bot { background: #1b1b19; border-bottom-left-radius: 4px; }
  .msg .file { display: flex; gap: 7px; align-items: center; margin-bottom: 4px; }
  .msg .file i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); }
  .kb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .kb span { text-align: center; padding: 5px; border-radius: 6px; background: #232320; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* boards */
  .board { display: grid; gap: 4px; width: min(100%, 300px); margin: 0 auto; padding: 10px; border-radius: 14px; background: #0e0e0d; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
  .board span { aspect-ratio: 1; border-radius: 3px; display: grid; place-items: center; font-family: var(--font-display); background: #1a1a18; }
  .b-ttt span { font-size: 40px; color: var(--c); border-radius: 8px; }
  .b-ttt span.o { color: var(--text); }
  .b-ttt span.win { background: color-mix(in srgb, var(--c) 22%, #1a1a18); }
  .b-mine span { font-family: var(--font-body); font-size: 12px; font-weight: 500; }
  .b-mine span.open { background: #121211; }
  .b-mine span.n1 { color: var(--teal); } .b-mine span.n2 { color: var(--green); } .b-mine span.n3 { color: var(--accent); }
  .b-mine span.flag::after { content: ""; width: 40%; height: 40%; background: var(--c); clip-path: polygon(0 0, 100% 30%, 0 60%); }
  .b-bomb span.wall { background: #2b2b28; }
  .b-bomb span.brick { background: color-mix(in srgb, var(--c) 30%, #1a1a18); }
  .b-bomb span.me::after { content: ""; width: 60%; height: 60%; border-radius: 50%; background: var(--text); }
  .b-bomb span.bomb::after { content: ""; width: 55%; height: 55%; border-radius: 50%; background: #0a0a09; box-shadow: 0 0 0 2px var(--accent); }
  .b-bomb span.fire { background: color-mix(in srgb, var(--accent) 60%, #1a1a18); }
  .b-qr { gap: 2px; }
  .b-qr span { border-radius: 1px; background: #1a1a18; }
  .b-qr span.on { background: var(--text); }
  .b-qr span.flip { background: var(--c); }

  @media (max-width: 900px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats li:nth-child(3) { border-left: 0; }
    .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  }
  @media (max-width: 860px) {
    .card.wide { grid-template-columns: 1fr; }
    .card.wide .stage { order: 0 !important; height: 260px; min-height: 0; align-items: start; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
    .card.wide .body { padding: 16px 20px 20px; }
    .card.wide h3 { font-size: 1.8rem; }
  }
  @media (max-width: 720px) {
    .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 96px; }
    .site-in { padding: 0 16px; }
    .wrap { padding: 0 16px; }
    header.site nav { overflow-x: auto; scrollbar-width: none; min-width: 0; }
    header.site nav a { padding: 6px 7px; letter-spacing: 0.04em; white-space: nowrap; flex: none; }
    .wm { display: none; }
    .card.wide .feats { display: none; }
    .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .f { flex: none; }
    .win-body { grid-template-columns: 1fr; }
    .side { display: none; }
    .sheet-ui { grid-template-columns: 1fr; }
    .addon { display: none; }
    .tool-body { grid-template-columns: 1fr; }
    .s-stage .addon { display: grid; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .s-head, .s-body, .s-stage { padding-left: 18px; padding-right: 18px; }
  }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Shared main-nav CTA (from site-nav.js) */
header.site nav a.nav-cta,
.site-in nav a.nav-cta {
  margin-left: 0.35rem;
  border: 1px solid var(--line, rgba(255,255,255,0.12));
  color: var(--text, #e8e4dc) !important;
}
header.site nav a.nav-cta:hover,
.site-in nav a.nav-cta:hover {
  border-color: var(--accent, #e8a030) !important;
  color: var(--accent, #e8a030) !important;
  background: transparent;
}
