
      button, [role="button"], select, summary, input:not([type="checkbox"], [type="radio"]), a { min-height: 2.25rem; }
      * { box-sizing: border-box; }
      :root {
        color-scheme: dark;
        --bg: #0c1210;
        --bg-soft: #111a17;
        --surface: #15201c;
        --surface-2: #1a2721;
        --ink: #edf4f0;
        --ink-2: #c3d2ca;
        --muted: #93a89c;
        --line: #2a3a33;
        --accent: #2fbf9f;
        --accent-strong: #5fd3b6;
        --accent-soft: #173b32;
        --amber: #f0b45a;
        --amber-soft: #3a2f14;
        --shadow: 0 10px 30px rgba(0,0,0,.35);
        --radius: 16px;
      }
      html { scroll-behavior: smooth; }
      @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        * { animation: none !important; transition: none !important; }
      }
      body {
        margin: 0;
        background: var(--bg);
        color: var(--ink);
        font-family: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
        font-size: 16px;
        line-height: 1.55;
        -webkit-font-smoothing: antialiased;
      }
      .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
      :focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

      /* ---------- top nav (the mockup site's own header) ---------- */
      .site-nav {
        position: sticky; top: 0; z-index: 50;
        background: color-mix(in srgb, var(--bg) 88%, transparent);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--line);
      }
      .site-nav-inner {
        max-width: 1200px; margin: 0 auto; padding: 10px 20px;
        display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
      }
      .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 2.25rem; }
      .brand-logo { height: 60px; width: auto; max-width: 260px; display: block; }
      @media (max-width: 560px) { .brand-logo { height: 46px; max-width: 190px; } }
      .brand-mark {
        width: 38px; height: 38px; border-radius: 10px; flex: none;
        background: var(--accent); color: #0c1210;
        display: grid; place-items: center;
        font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 19px;
      }
      .brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; line-height: 1.1; }
      .brand-name span { color: var(--accent-strong); }
      .brand-tag { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
      .nav-links { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
      .nav-links a {
        display: inline-flex; align-items: center; padding: 6px 12px;
        color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; border-radius: 8px;
      }
      .nav-links a:hover { background: var(--surface); color: var(--ink); }

      .wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

      /* ---------- hero ---------- */
      .hero { padding: 46px 0 6px; max-width: 820px; }
      .hero h1 {
        font-size: clamp(32px, 4.6vw, 50px); line-height: 1.06; letter-spacing: -.02em;
        font-weight: 900; margin: 0 0 14px;
      }
      .hero h1 em { font-style: normal; color: var(--accent-strong); }
      .hero-sub { font-size: 18px; color: var(--ink-2); margin: 0 0 24px; max-width: 36em; }
      .search-box {
        display: flex; gap: 8px; background: var(--surface); border: 1.5px solid var(--line);
        border-radius: 14px; padding: 6px; box-shadow: var(--shadow);
      }
      .search-box input {
        flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
        font: inherit; font-size: 17px; padding: 8px 10px;
      }
      .search-box input:focus { outline: none; }
      .search-box:focus-within { border-color: var(--accent); }
      .btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        background: var(--accent); color: #0c1210; border: 0; cursor: pointer;
        font: inherit; font-weight: 700; font-size: 15.5px;
        padding: 10px 20px; border-radius: 10px; text-decoration: none;
      }
      .btn:hover { background: var(--accent-strong); }
      .search-meta { margin: 10px 2px 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }
      .stat-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; }
      .stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
      .stat span { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
      .audience-line { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }
      .audience-line b { color: var(--ink); }

      /* ---------- filter pills ---------- */
      .filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 32px 0 2px; }
      .filter-bar .f-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
      .pill {
        font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
        padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line);
        background: var(--surface); color: var(--ink-2);
      }
      .pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0c1210; }

      /* ---------- sections & popular ---------- */
      .section-head { margin: 42px 0 6px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
      .section-head h2, .section-head h3 { font-size: clamp(24px, 3vw, 31px); font-weight: 800; letter-spacing: -.015em; margin: 0; }
      .section-head p { margin: 0; color: var(--muted); font-size: 15.5px; }
      .popular-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
      .pop-card {
        text-align: left; font: inherit; cursor: pointer; color: var(--ink);
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow);
        transition: transform .15s ease, border-color .15s ease;
      }
      .pop-card:hover { border-color: var(--accent); transform: translateY(-2px); }
      .pop-card .pop-name { font-weight: 700; font-size: 16.5px; }
      .pop-card .pop-sub { font-size: 13.5px; color: var(--muted); }
      .pop-card .pop-go { margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--accent-strong); }

      /* ---------- category blocks ---------- */
      .cat-block { margin-top: 34px; }
      .cat-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
      .cat-icon {
        width: 46px; height: 46px; border-radius: 13px; flex: none; color: #fff;
        display: grid; place-items: center;
      }
      .cat-icon svg { width: 24px; height: 24px; }
      .cat-head h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
      .cat-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
      .cat-link:hover { color: var(--accent-strong); text-decoration: underline; }
      .cat-open { margin-left: auto; font-size: 13.5px; font-weight: 700; color: var(--accent-strong); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; }
      .cat-open:hover { text-decoration: underline; }
      .cat-head .cat-count { font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 600; color: var(--muted); }
      .cat-blurb { margin: 0 0 14px 60px; color: var(--ink-2); font-size: 15px; max-width: 46em; }
      .tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 0 60px; padding: 0; list-style: none; }
      .tool-item {
        display: flex; align-items: center; gap: 8px;
        background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
        padding: 9px 12px; font-size: 14.5px; font-weight: 500; line-height: 1.3; min-height: 44px;
      }
      .tool-item .t-arrow { margin-left: auto; color: var(--muted); font-size: 13px; flex: none; }
      .tool-item:hover { border-color: var(--accent); }
      .tool-item.flash { animation: flash 1.8s ease; }
      @keyframes flash { 0%, 55% { background: var(--amber-soft); border-color: var(--amber); } 100% { background: var(--surface); } }
      .no-results {
        display: none; margin: 26px 0 0; padding: 22px; text-align: center;
        background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-2);
      }
      .no-results.show { display: block; }

      /* ---------- audiences ---------- */
      .aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
      .aud-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
      .aud-card h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 700; }
      .aud-card p { margin: 0; font-size: 14px; color: var(--ink-2); }

      /* ---------- footer ---------- */
      footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--bg-soft); }
      .footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 20px 36px; display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
      .footer-inner .f-brand { font-weight: 800; font-size: 17px; }
      .footer-inner p { margin: 4px 0 0; font-size: 14px; color: var(--muted); max-width: 42em; }
      .footer-links { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
      .footer-links a { padding: 6px 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; }
      .footer-links a:hover { color: var(--ink); }

      /* ---------- working tool dialog ---------- */
      .tool-item { cursor: pointer; text-align: left; width: 100%; font: inherit; color: var(--ink); }
      .tool-item:hover .t-open { color: var(--accent-strong); }
      .tool-overlay {
        position: fixed; inset: 0; z-index: 100; display: none;
        background: rgba(8, 14, 12, .58); padding: 16px; overflow-y: auto;
      }
      .tool-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
      .tool-dialog {
        background: var(--surface); color: var(--ink); border-radius: 18px;
        width: 100%; max-width: 580px; margin: auto; padding: 24px;
        box-shadow: 0 24px 60px rgba(0,0,0,.3); border: 1px solid var(--line);
        display: flex; flex-direction: column; max-height: calc(100dvh - 32px);
      }
      .tool-dialog-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 4px; flex: none; }
      .tool-scroll { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
      .tool-dialog-head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
      .tool-kind { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 4px; }
      .tool-close {
        margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 10px;
        border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
        font-size: 20px; cursor: pointer; line-height: 1;
      }
      .tool-close:hover { border-color: var(--accent); }
      .tf { margin-top: 14px; }
      .tf label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 5px; }
      .tf input, .tf select, .tf textarea {
        width: 100%; font: inherit; font-size: 16px; color: var(--ink);
        background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px;
      }
      .tf textarea { min-height: 84px; resize: vertical; }
      .tf input:focus, .tf select:focus, .tf textarea:focus { outline: none; border-color: var(--accent); }
      .tf .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
      .tool-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
      .tool-inline { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
      .tool-inline .tool-result { margin-top: 14px; }
      .btn-ghost {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        background: var(--surface-2); color: var(--ink); border: 1.5px solid var(--line); cursor: pointer;
        font: inherit; font-weight: 700; font-size: 15.5px; padding: 10px 18px; border-radius: 10px;
      }
      .btn-ghost:hover { border-color: var(--accent); }
      .tool-result {
        display: none; margin-top: 18px; background: var(--accent-soft);
        border-radius: 12px; padding: 16px 18px; font-size: 16px; line-height: 1.55;
        scroll-margin: 10px 0;
      }
      .tool-result.show { display: block; animation: resultIn .3s ease; }
      @keyframes resultIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
      .tool-result .big { font-size: 24px; font-weight: 800; letter-spacing: -.01em; display: block; margin-bottom: 2px; }
      .tool-result table { border-collapse: collapse; margin-top: 8px; width: 100%; }
      .tool-result td, .tool-result th { text-align: left; padding: 4px 10px 4px 0; font-size: 15px; vertical-align: top; }
      .tool-result .note { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
      .qr-box { display: grid; place-items: center; padding: 10px; background: #fff; border-radius: 12px; margin-top: 6px; }
      .habit-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
      .habit-day {
        font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer;
        padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--line);
        background: var(--surface-2); color: var(--ink-2);
      }
      .habit-day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0c1210; }
      .timer-face { font-family: "IBM Plex Mono", monospace; font-size: 44px; font-weight: 600; text-align: center; margin: 10px 0 2px; }

      @media (max-width: 960px) {
        .popular-grid, .aud-grid { grid-template-columns: repeat(2, 1fr); }
        .tool-grid { grid-template-columns: repeat(2, 1fr); margin-left: 0; }
        .cat-blurb { margin-left: 0; }
      }
      @media (max-width: 560px) {
        .popular-grid, .aud-grid, .tool-grid { grid-template-columns: 1fr; }
        .hero { padding-top: 28px; }
        .stat-row { gap: 18px; }
        .tool-overlay { padding: 10px; }
        .tool-dialog { padding: 18px; max-height: calc(100dvh - 20px); }
      }

      /* ---------- multi-page expansion: views, hubs, ad slots, article pages ---------- */
      [hidden] { display: none !important; }
      .ad-slot {
        margin: 26px 0; border: 1.5px dashed var(--line); border-radius: 12px;
        background: var(--surface-2); color: var(--muted);
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        text-align: center; padding: 18px 14px;
      }
      .ad-slot .ad-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
      .ad-slot .ad-size { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
      .ad-slot .ad-note { font-size: 13px; }
      .ad-leaderboard { min-height: 110px; }
      .ad-infeed { min-height: 120px; }
      .ad-sidebar { min-height: 250px; margin: 0 0 18px; }
      .crumbs { margin: 26px 0 4px; font-size: 14px; color: var(--muted); }
      .crumbs a { color: var(--accent-strong); font-weight: 600; text-decoration: none; }
      .crumbs a:hover { text-decoration: underline; }
      .page-hero { display: flex; gap: 16px; align-items: flex-start; margin-top: 10px; }
      .page-hero h2, .toolpage-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 8px; }
      .page-hero p { margin: 0; color: var(--ink-2); font-size: 16.5px; max-width: 44em; }
      .page-stats { margin-top: 8px !important; font-size: 13.5px !important; color: var(--muted) !important; font-weight: 600; }
      .hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
      .hub-card {
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 15px 16px; text-decoration: none; color: var(--ink);
        display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow);
      }
      .hub-card:hover { border-color: var(--accent); }
      .hub-dot { width: 12px; height: 12px; border-radius: 4px; margin-bottom: 4px; }
      .hub-name { font-weight: 800; font-size: 16.5px; letter-spacing: -.01em; }
      .hub-meta { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
      .hub-go { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent-strong); }
      .ctool-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
      .ctool {
        display: flex; align-items: center; gap: 10px; background: var(--surface);
        border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
      }
      .ctool-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
      .ctool-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
      .btn-small { padding: 7px 14px; font-size: 14px; border-radius: 8px; }
      .page-link { font-size: 13.5px; font-weight: 700; color: var(--accent-strong); text-decoration: none; white-space: nowrap; }
      .page-link:hover { text-decoration: underline; }
      .layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 14px; align-items: start; }
      .side-col { position: sticky; top: 84px; }
      .side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
      .side-box h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
      .side-box p { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
      .side-box a { color: var(--accent-strong); font-weight: 700; font-size: 14.5px; text-decoration: none; line-height: 2; }
      .side-box a:hover { text-decoration: underline; }
      .toolpage-lede { font-size: 17.5px; color: var(--ink-2); max-width: 40em; margin: 0 0 6px; }
      .subhead { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 26px 0 8px; }
      .steps { margin: 0; padding-left: 22px; color: var(--ink-2); }
      .steps li { margin-bottom: 6px; }
      .rel-list { display: flex; flex-direction: column; gap: 2px; }
      .rel-list a { color: var(--accent-strong); font-weight: 600; text-decoration: none; padding: 7px 0; border-bottom: 1px solid var(--line); }
      .rel-list a:hover { text-decoration: underline; }
      .guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
      .guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 5px; box-shadow: var(--shadow); }
      .guide-card:hover { border-color: var(--accent); }
      .guide-card h3 { margin: 0; font-size: 17.5px; font-weight: 800; line-height: 1.3; }
      .guide-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
      .guide-card .g-meta { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-strong); }
      .guide-card .hub-go { margin-top: auto; padding-top: 6px; }
      .guide-article p { color: var(--ink-2); font-size: 16.5px; max-width: 42em; }
      .guide-article h3 { font-size: 20px; font-weight: 800; margin: 26px 0 6px; }
      .guide-article .formula { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; font-size: 17px; color: var(--ink); }
      .guide-table { border-collapse: collapse; margin: 10px 0 16px; width: 100%; max-width: 560px; }
      .guide-table th, .guide-table td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; vertical-align: top; }
      .guide-table th { font-weight: 700; white-space: nowrap; }
      .footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; width: 100%; margin-top: 18px; }
      .footer-cols h4 { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
      .footer-cols a { display: block; padding: 3px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
      .footer-cols a:hover { color: var(--ink); }
      @media (max-width: 960px) {
        .hub-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
        .layout-2col { grid-template-columns: 1fr; }
        .side-col { position: static; }
        .footer-cols { grid-template-columns: repeat(2, 1fr); }
      }
      @media (max-width: 560px) {
        .hub-grid, .guide-grid, .ctool-list, .footer-cols { grid-template-columns: 1fr; }
        .page-hero { flex-direction: column; }
      }

    .faq{margin:26px 0 6px}.faq-item{margin:0 0 16px}.faq-q{font-weight:700;margin:0 0 4px;color:#edf4f0}.faq-a{margin:0;color:#c3d2ca}.noscript-wrap{max-width:860px;margin:0 auto;padding:28px 20px}.noscript-wrap h2{font-size:1.5rem;margin:0 0 12px}.noscript-wrap h3{margin:28px 0 8px}.noscript-wrap h4{margin:18px 0 4px}.noscript-wrap ul{columns:2;column-gap:28px;margin:6px 0 10px;padding-left:18px}.noscript-wrap li{margin:0 0 3px}

    /* ============ Calculful front-page redesign (mockup theme, 2026-11-27) ============
       Light, Omni-style theme applied over the existing stylesheet. The original
       rules stay in place (tool dialog, router views, tool engine); these
       overrides re-theme the homepage to the approved mockup. */
    :root {
      color-scheme: light;
      --bg: #f4f7fa;
      --bg-soft: #eef3f8;
      --surface: #ffffff;
      --surface-2: #eef3f8;
      --ink: #182230;
      --ink-2: #3d4c61;
      --muted: #66788e;
      --line: #d9e2ec;
      --accent: #2563eb;
      --accent-strong: #1d4ed8;
      --accent-soft: #e9f0fd;
      --amber: #d97706;
      --amber-soft: #fef3c7;
      --ad-bg: #edf1f6;
      --shadow: 0 8px 28px rgba(24, 42, 74, .07);
      --radius: 14px;
    }
    @media (prefers-color-scheme: dark) {
      :root {
        color-scheme: dark;
        --bg: #0e151f;
        --bg-soft: #131e2b;
        --surface: #16212f;
        --surface-2: #1b2939;
        --ink: #edf3f9;
        --ink-2: #c2d0df;
        --muted: #93a7bc;
        --line: #2a3b4f;
        --accent: #6ea3ff;
        --accent-strong: #93bcff;
        --accent-soft: #1d3049;
        --amber: #f0b45a;
        --amber-soft: #3a2f14;
        --ad-bg: #131e2b;
        --shadow: 0 8px 28px rgba(0,0,0,.35);
      }
      .btn, .search-btn, .nav-cta, .pill[aria-pressed="true"], .habit-day[aria-pressed="true"] { color: #0e151f; }
    }
    :focus-visible { outline-color: var(--accent); }
    .wrap { max-width: 1180px; }
    /* header */
    .site-nav { background: var(--surface); }
    .site-nav-inner { max-width: 1180px; }
    .brand-mark { width: 38px; height: 38px; border-radius: 9px; flex: none; background: var(--accent); color: #fff; display: grid; place-items: center; }
    .brand-mark svg { width: 21px; height: 21px; }
    .brand-name { font-weight: 900; font-size: 22px; letter-spacing: -.02em; line-height: 1; }
    .brand-name span { color: var(--accent); }
    .nav-cta { background: var(--accent) !important; color: #fff !important; font-weight: 700 !important; padding: 8px 16px !important; margin-left: 6px; }
    .nav-cta:hover { background: var(--accent-strong) !important; }
    /* hero */
    .hero { padding: 52px 0 10px; max-width: none; }
    .hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 34px; align-items: center; }
    .hero-eyebrow { font-size: 17px; font-weight: 700; margin: 0 0 2px; color: var(--ink); }
    .hero h1 { font-size: clamp(40px, 5.4vw, 58px); line-height: 1.04; }
    .hero h1 .blue { color: var(--accent); display: block; }
    .hero h1 .plain { display: block; }
    .hero-sub { font-size: 17px; max-width: 34em; }
    .search-card { position: relative; }
    .search-box { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px; }
    .search-box input { font-size: 17px; padding: 8px 14px; }
    .search-btn { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); color: #fff; display: grid; place-items: center; }
    .search-btn:hover { background: var(--accent-strong); }
    .search-btn svg { width: 21px; height: 21px; }
    .quick-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
    .quick-row .q-label { font-size: 13.5px; font-weight: 700; color: var(--muted); }
    .chip { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; display: inline-flex; align-items: center; }
    .chip:hover { border-color: var(--accent); color: var(--accent-strong); }
    .stat-row { margin-top: 34px; gap: 34px; }
    .stat b { font-size: 25px; font-weight: 900; }
    .stat b i { font-style: normal; color: var(--accent); }
    .stat span { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
    /* ads */
    .ad-slot { background: var(--ad-bg); margin: 28px 0; }
    .ad-slot .ad-label { letter-spacing: .14em; }
    .ad-slot .ad-size { font-size: 15px; }
    .ad-leaderboard { min-height: 110px; }
    .ad-infeed { min-height: 118px; }
    /* section heads */
    .section-head { margin: 44px 0 6px; }
    .section-head h2 { font-size: clamp(25px, 3.2vw, 33px); font-weight: 900; letter-spacing: -.02em; }
    /* categories panel */
    .cat-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); margin-top: 18px; }
    #categories-hub .hub-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 0; }
    .hub-card { align-items: center; text-align: center; padding: 22px 14px 18px; border-radius: var(--radius); }
    .hub-card:hover { background: var(--accent-soft); }
    .hub-dot { width: 14px; height: 14px; border-radius: 5px; margin-bottom: 6px; }
    .hub-name { font-size: 16.5px; line-height: 1.25; }
    .hub-ex { font-size: 13px; color: var(--muted); line-height: 1.45; }
    .hub-meta { font-size: 13px; }
    .hub-go { margin-top: 6px; }
    /* demo */
    .demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; align-items: stretch; }
    .demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
    .demo-card .tool-kind { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 4px; }
    .demo-card h3 { margin: 0 0 6px; font-size: 22px; font-weight: 900; letter-spacing: -.015em; }
    .demo-card > p { margin: 0; color: var(--ink-2); font-size: 15px; }
    .formula-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
    .formula-card h3 { margin: 0; font-size: 17px; font-weight: 800; }
    .formula-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; font-size: 19px; }
    .formula-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
    .formula-card ul { margin: 0; padding-left: 19px; font-size: 14.5px; color: var(--ink-2); }
    .formula-card li { margin-bottom: 4px; }
    /* popular */
    .popular-grid { margin-top: 18px; }
    .pop-card { padding: 18px; gap: 6px; }
    .pop-card .pop-name { font-weight: 800; }
    .pop-card .pop-sub { font-size: 14px; color: var(--ink-2); }
    .pop-card .pop-go { color: var(--accent); }
    /* classroom + guides */
    #classroom .aud-grid { grid-template-columns: 1fr 1fr; }
    #classroom .aud-card { padding: 22px; }
    #classroom .aud-card h3 { font-size: 18.5px; font-weight: 800; margin-bottom: 6px; }
    #classroom .aud-card p { font-size: 14.5px; }
    #classroom .aud-card ul { margin: 10px 0 0; padding-left: 19px; font-size: 14.5px; color: var(--ink-2); }
    .guide-card .g-meta { color: var(--accent); }
    /* about */
    .about { text-align: center; max-width: 760px; margin: 56px auto 0; }
    .about h2 { font-size: clamp(24px, 3vw, 31px); font-weight: 900; letter-spacing: -.02em; margin: 0 0 12px; }
    .about p { color: var(--ink-2); font-size: 16.5px; margin: 0 0 14px; }
    .about .big-line { font-size: clamp(21px, 2.8vw, 28px); font-weight: 800; color: var(--ink); line-height: 1.35; }
    /* buttons + pills */
    .btn { background: var(--accent); color: #fff; }
    .btn:hover { background: var(--accent-strong); }
    .pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
    /* footer */
    footer { background: var(--surface); }
    .footer-inner { max-width: 1180px; padding: 34px 20px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
    .footer-inner .f-brand { font-weight: 900; font-size: 19px; }
    .footer-inner .f-brand span { color: var(--accent); }
    .footer-inner h4 { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
    .footer-inner ul { list-style: none; margin: 0; padding: 0; }
    .footer-inner ul a { display: inline-flex; align-items: center; padding: 4px 0; font-size: 14.5px; color: var(--muted); text-decoration: none; }
    .footer-inner ul a:hover { color: var(--accent-strong); }
    .footer-note { border-top: 1px solid var(--line); }
    .footer-note .wrap { padding-top: 14px; padding-bottom: 18px; font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; max-width: 1180px; }
    .footer-note b { color: var(--ink-2); }
    /* faq colours (were hardcoded for the dark theme) */
    .faq-q { color: var(--ink); }
    .faq-a { color: var(--ink-2); }
    @media (max-width: 980px) {
      .hero-grid { grid-template-columns: 1fr; gap: 22px; }
      #categories-hub .hub-grid { grid-template-columns: repeat(3, 1fr); }
      .pop-grid, .popular-grid { grid-template-columns: repeat(2, 1fr); }
      .footer-inner { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 640px) {
      .hero { padding-top: 32px; }
      #categories-hub .hub-grid { grid-template-columns: repeat(2, 1fr); }
      .cat-panel { padding: 14px; }
      .demo-grid, #classroom .aud-grid, .guide-grid { grid-template-columns: 1fr; }
      .popular-grid { grid-template-columns: 1fr; }
      .stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
    }
        .formula-box{margin:22px 0;padding:16px 18px;border:1px solid #22362e;border-radius:12px;background:#101a16}
    .formula-box .formula{font-size:1.15rem;font-weight:700;color:#f5c518;margin:4px 0 10px}
    .formula-box p{margin:0 0 8px;color:#c3d2ca}
    .formula-box p:last-child{margin-bottom:0}

/* Generated pages only: category/index pages promote the page-hero h2 to h1;
   same size/weight as the .page-hero h2 rule above. */
.page-hero h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 8px; }

/* homepage rules carried in the live homepage inline style block */
#categories-hub .cat-panel {background: transparent; border: 0; box-shadow: none; padding: 0;}
#categories-hub .hub-card {text-align: left; align-items: flex-start;}
#categories-hub .hub-card:hover {background: var(--surface); border-color: var(--accent); box-shadow: 0 6px 18px rgba(37,99,235,.12);}
#categories-hub .hub-meta {display: inline-block; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-top: 10px;}
#search-results {display: none; margin-top: 14px;}
#search-results.show {display: block;}
#search-results .tool-grid {margin: 0; grid-template-columns: repeat(2, 1fr);}
#search-results-count {margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ink);}
.hero-badges {display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px;}
.hero-badges .badge {background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600;}
.search-card .filter-bar {margin: 16px 0 0;}
.search-card .no-results {margin-top: 14px;}
@media (max-width: 560px) { #search-results .tool-grid {grid-template-columns: 1fr;} }

/* ===== Calculful 25,000 additions (runtime elements in the site design language) ===== */
.mega-banner { margin: 26px auto 0; max-width: 1120px; background: var(--accent); color: #fff; border-radius: 18px; padding: 22px 26px; text-align: center; box-shadow: 0 10px 30px rgba(37,99,235,.25); }
.mega-banner-num { display: block; font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -0.01em; line-height: 1.1; }
.mega-banner-claim { display: block; font-size: clamp(16px, 2.2vw, 21px); font-weight: 800; margin-top: 6px; }
.mega-banner-tag { display: block; font-size: 15px; font-weight: 600; opacity: .92; margin-top: 4px; }
.hub-more { text-align: center; margin-top: 18px; font-weight: 700; }
.guide-link { margin: 6px 0 0; font-size: 14.5px; }
.guide-link a { font-weight: 700; }
a.tool-item { text-decoration: none; }
a.tool-item.tool-more { color: var(--accent-strong); font-weight: 700; border-style: dashed; }
#tool-root .tf textarea { font-family: inherit; }
#tool-root #output { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13.5px; }
#error:not(:empty) { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 14px; margin-top: 14px; font-weight: 600; font-size: 14.5px; }
@media (prefers-color-scheme: dark) { #error:not(:empty) { background: #2a1416; color: #fca5a5; border-color: #5b2126; } }
#result:not(:empty) { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
#result .result-big, #result .big { display: block; font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
#result .result-note, #result .note { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; }
#result table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
#result th, #result td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: left; }
#result th { color: var(--muted); font-weight: 700; }
.disclaimer-box, .tax-note, .note-box, .example-box { border-radius: 12px; padding: 14px 16px; margin: 18px 0 0; font-size: 14.5px; }
.disclaimer-box, .tax-note { background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--ink); }
.note-box, .example-box { background: var(--accent-soft); color: var(--ink); }
.num-table, .amort-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.num-table th, .num-table td, .amort-table th, .amort-table td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.num-table th, .amort-table th { background: var(--surface-2); }
.num-line td.hl { background: var(--accent-soft); font-weight: 800; color: var(--accent-strong); }
.quiz-q { font-size: 19px; font-weight: 800; margin: 14px 0 4px; }
.aud { display: inline-block; background: var(--accent-soft); color: var(--accent-strong); border-radius: 999px; padding: 2px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: none; vertical-align: middle; margin-left: 8px; }
.cat-tag { color: var(--muted); font-size: 13px; }
.qr-wrap { text-align: center; margin-top: 16px; }
.qr-wrap svg, .qr-wrap img { background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--line); max-width: 280px; width: 100%; height: auto; }
.preview-box { margin-top: 16px; }
.preview-box img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
#search-results { display: block; margin-top: 14px; }
#search-results-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 8px; }
@media (max-width: 560px) { #search-results-list { grid-template-columns: 1fr; } }
.tool-row { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tool-row a { font-weight: 700; font-size: 15px; }
.tool-row p { color: var(--muted); font-size: 13.5px; margin: 3px 0 0; }
.tool-row:hover { border-color: var(--accent); }
