        :root { color-scheme: light; }
        body {
            background: #f6f7f9;
            color: #172033;
            font-family: 'Manrope', sans-serif;
        }
        .page-shell { width: min(1320px, calc(100% - 32px)); margin-inline: auto; }
        .page-shell-wide { width: min(1520px, calc(100% - 32px)); }
        .article-card { transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
        .article-card:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(23, 32, 51, 0.10); }
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 1rem;
        }
        .tools-directory-card {
            min-height: 100%;
        }
        @media (min-width: 1280px) {
            .tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        }
        @media (min-width: 1800px) {
            .tools-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
        }
        .prose-content h2, .prose-content h3 { font-family: 'Source Serif 4', serif; color: #172033; }
        .prose-content h2 { font-size: 1.75rem; line-height: 1.2; margin-top: 2rem; margin-bottom: 0.75rem; }
        .prose-content h3 { font-size: 1.35rem; line-height: 1.25; margin-top: 1.5rem; margin-bottom: 0.5rem; }
        .prose-content p, .prose-content li { color: #374151; line-height: 1.78; }
        .prose-content a { color: #0f766e; text-decoration: underline; text-underline-offset: 3px; }
        .prose-content blockquote { margin: 1.25rem 0; padding: 1rem 1rem 1rem 1.1rem; border-left: 4px solid #0f766e; background: #f3eadb; border-radius: 0 12px 12px 0; }
        .prose-content blockquote p:last-child { margin-bottom: 0; }
        .prose-content .table-scroll { margin: 1.5rem 0; overflow-x: auto; border: 1px solid #ded6c8; border-radius: 14px; background: #fffdf7; }
        .prose-content table { width: 100%; border-collapse: collapse; min-width: 560px; }
        .prose-content th, .prose-content td { padding: 0.9rem 1rem; border-bottom: 1px solid #e8e1d5; text-align: left; vertical-align: top; }
        .prose-content th { background: #f7f3ea; color: #172033; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
        .prose-content tbody tr:last-child td { border-bottom: 0; }
        .prose-content pre,
        .prose-content pre[class*="language-"] {
            position: relative;
            margin: 1.4rem 0;
            padding: 2.9rem 1rem 1rem;
            overflow: auto;
            background: #101827 !important;
            border-radius: 12px;
            border: 1px solid rgba(23, 32, 51, 0.18);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }
        .prose-content pre code,
        .prose-content pre[class*="language-"] code {
            display: block;
            color: #e6edf7 !important;
            background: transparent !important;
            text-shadow: none !important;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.92rem;
            line-height: 1.7;
            white-space: pre;
        }
        .prose-content code { font-family: 'JetBrains Mono', monospace; }
        .prose-content :not(pre) > code {
            padding: 0.15rem 0.45rem;
            border-radius: 6px;
            background: #eef2f7;
            color: #1f2a44;
            font-size: 0.92em;
        }
        .prose-content .token.comment,
        .prose-content .token.prolog,
        .prose-content .token.doctype,
        .prose-content .token.cdata { color: #7f8fa8 !important; }
        .prose-content .token.punctuation { color: #cfd8e3 !important; }
        .prose-content .token.property,
        .prose-content .token.tag,
        .prose-content .token.constant,
        .prose-content .token.symbol,
        .prose-content .token.deleted { color: #f78c6c !important; }
        .prose-content .token.boolean,
        .prose-content .token.number { color: #f9ae58 !important; }
        .prose-content .token.selector,
        .prose-content .token.attr-name,
        .prose-content .token.string,
        .prose-content .token.char,
        .prose-content .token.builtin,
        .prose-content .token.inserted { color: #c3e88d !important; }
        .prose-content .token.operator,
        .prose-content .token.entity,
        .prose-content .token.url,
        .prose-content .language-css .token.string,
        .prose-content .style .token.string { color: #89ddff !important; }
        .prose-content .token.atrule,
        .prose-content .token.attr-value,
        .prose-content .token.keyword { color: #c792ea !important; }
        .prose-content .token.function,
        .prose-content .token.class-name { color: #82aaff !important; }
        .prose-content .token.regex,
        .prose-content .token.important,
        .prose-content .token.variable { color: #f07178 !important; }
        .code-block-copy {
            position: absolute;
            top: 0.7rem;
            right: 0.7rem;
            z-index: 2;
            border: 1px solid rgba(230, 237, 247, 0.18);
            border-radius: 999px;
            background: rgba(23, 32, 51, 0.88);
            color: #e6edf7;
            padding: 0.35rem 0.75rem;
            font: 700 0.76rem/1 'Manrope', sans-serif;
            letter-spacing: 0.01em;
            cursor: pointer;
            transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
        }
        .code-block-copy:hover {
            background: rgba(15, 118, 110, 0.9);
            border-color: rgba(195, 232, 141, 0.3);
            transform: translateY(-1px);
        }
        .code-block-copy.is-copied {
            background: rgba(27, 94, 32, 0.92);
            border-color: rgba(195, 232, 141, 0.5);
        }
        .category-chip {
            border-color: #ded6c8;
            background: #fffdf7;
            color: #5f6674;
            transition: color 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
        }
        .category-chip:hover {
            border-color: #0f766e;
            color: #0f766e;
        }
        .category-chip.is-active {
            border-color: #172033;
            background: #172033;
            color: #fffdf7;
            box-shadow: 0 10px 26px rgba(23, 32, 51, 0.14);
        }
        .category-chip.is-active span {
            color: rgba(255, 253, 247, 0.78);
        }
        .skip-link {
            position: fixed;
            left: 1rem;
            top: 1rem;
            z-index: 80;
            transform: translateY(-160%);
            border-radius: 8px;
            background: #172033;
            color: #fffdf7;
            padding: 0.65rem 0.9rem;
            font-weight: 800;
            transition: transform 150ms ease;
        }
        .skip-link:focus { transform: translateY(0); }
        .reading-progress {
            position: fixed;
            inset: 0 auto auto 0;
            z-index: 70;
            height: 3px;
            width: 100%;
            transform: scaleX(0);
            transform-origin: left center;
            background: linear-gradient(90deg, #0f766e, #b45309);
            pointer-events: none;
        }
        .return-panel-card {
            display: block;
            border: 1px solid #ded6c8;
            border-radius: 10px;
            background: #fffdf7;
            padding: 1rem;
            transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
        }
        .return-panel-card:hover {
            border-color: #0f766e;
            box-shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
            transform: translateY(-1px);
        }
        .guide-action.is-saved {
            border-color: #0f766e;
            background: rgba(15, 118, 110, 0.1);
            color: #0f766e;
        }
        .no-scrollbar::-webkit-scrollbar { display: none; }
        .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
        .home-hero {
            background: #132238;
            color: #f8fafc;
            overflow: hidden;
        }
        .home-hero-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
            gap: clamp(2rem, 6vw, 7rem);
            align-items: center;
            padding-block: clamp(3.5rem, 8vw, 7rem);
        }
        .home-hero-copy h1,
        .directory-hero h1 {
            max-width: 12ch;
            margin-top: 1rem;
            font-family: 'Source Serif 4', serif;
            font-size: clamp(3rem, 6vw, 5.8rem);
            font-weight: 700;
            letter-spacing: 0;
            line-height: 0.98;
        }
        .home-hero-copy > p { max-width: 34rem; margin-top: 1.5rem; color: #cbd5e1; font-size: 1.12rem; line-height: 1.8; }
        .eyebrow { color: #0f766e; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
        .eyebrow-light { display: inline-flex; align-items: center; gap: 0.5rem; color: #8edbd1; }
        .home-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
        .button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.8rem; border-radius: 7px; padding: 0.7rem 1rem; font-size: 0.9rem; font-weight: 800; transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease; }
        .button:hover { transform: translateY(-1px); }
        .button-primary { background: #8edbd1; color: #132238; }
        .button-primary:hover { background: #fff; }
        .button-ghost { border: 1px solid rgba(255,255,255,0.28); color: #f8fafc; }
        .button-ghost:hover { border-color: #8edbd1; color: #8edbd1; }
        .button-dark { background: #172033; color: #fff; }
        .button-dark:hover { background: #0f766e; }
        .home-proof-row { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2.5rem; color: #94a3b8; font-size: 0.78rem; font-weight: 700; }
        .home-proof-row span { display: inline-flex; align-items: center; gap: 0.35rem; }
        .home-proof-row strong { color: #f8fafc; font-size: 1rem; }
        .home-search-panel { border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; background: #f8fafc; color: #172033; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 24px 80px rgba(0,0,0,0.22); }
        .home-search-heading h2 { margin-top: 0.5rem; font-family: 'Source Serif 4', serif; font-size: 2rem; font-weight: 700; line-height: 1.1; }
        .home-search-heading p { margin-top: 0.55rem; color: #64748b; font-size: 0.9rem; line-height: 1.6; }
        .search-kicker { color: #0f766e; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
        .home-search-input, .directory-search { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.25rem; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; padding: 0.85rem 1rem; color: #64748b; }
        .home-search-input:focus-within, .directory-search:focus-within { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15,118,110,0.12); }
        .home-search-input input, .directory-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: #172033; font-size: 0.95rem; }
        kbd { border: 1px solid #cbd5e1; border-radius: 4px; background: #f1f5f9; padding: 0.15rem 0.4rem; color: #64748b; font: 700 0.72rem 'JetBrains Mono', monospace; }
        .home-search-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin-top: 0.9rem; color: #64748b; font-size: 0.78rem; }
        .home-search-suggestions a { border-bottom: 1px solid #cbd5e1; color: #334155; font-weight: 700; }
        .home-search-suggestions a:hover { border-color: #0f766e; color: #0f766e; }
        .section-tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
        .section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
        .section-heading-row h2, .home-editorial-band h2 { margin-top: 0.45rem; color: #172033; font-family: 'Source Serif 4', serif; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 700; line-height: 1.05; }
        .section-note { max-width: 32rem; color: #64748b; font-size: 0.9rem; line-height: 1.65; }
        .text-link { display: inline-flex; align-items: center; gap: 0.45rem; color: #0f766e; font-size: 0.88rem; font-weight: 800; white-space: nowrap; }
        .text-link:hover { color: #172033; }
        .install-app-button { display: none; align-items: center; gap: .45rem; border: 1px solid #ded6c8; border-radius: 7px; background: #fffdf7; padding: .55rem .7rem; color: #172033; font-size: .78rem; font-weight: 800; }
        .install-app-button.is-ready { display: inline-flex; }
        .install-app-button:hover { border-color: #0f766e; color: #0f766e; }
        .home-paths { border-block: 1px solid #dbe1e8; background: #eef2f5; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
        .intent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
        .latest-guides-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
        .latest-guide-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.5rem; border: 1px solid #ded6c8; border-radius: 8px; background: #fffdf7; padding: 1rem 1.1rem; transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease; }
        .latest-guide-link:hover { border-color: #0f766e; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(23,32,51,.07); }
        .latest-guide-link strong, .latest-guide-link small { display: block; }
        .latest-guide-link strong { color: #172033; font-size: .95rem; line-height: 1.35; }
        .latest-guide-link small { margin-top: .35rem; color: #5f6674; font-size: .78rem; line-height: 1.5; }
        .intent-card { display: flex; min-height: 14rem; flex-direction: column; border: 1px solid #d5dce4; border-radius: 8px; background: #fff; padding: 1.25rem; color: #172033; transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease; }
        .intent-card:hover { border-color: #0f766e; box-shadow: 0 12px 28px rgba(23,32,51,0.08); transform: translateY(-2px); }
        .intent-card-dark { border-color: #172033; background: #172033; color: #fff; }
        .intent-icon { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 6px; background: rgba(15,118,110,0.12); color: #0f766e; }
        .intent-card-dark .intent-icon { background: rgba(142,219,209,0.14); color: #8edbd1; }
        .intent-label { margin-top: 1.7rem; color: #64748b; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
        .intent-card-dark .intent-label { color: #94a3b8; }
        .intent-card strong { margin-top: 0.45rem; font-family: 'Source Serif 4', serif; font-size: 1.35rem; line-height: 1.15; }
        .intent-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; padding-top: 1.5rem; color: #0f766e; font-size: 0.82rem; font-weight: 800; }
        .intent-card-dark .intent-link { color: #8edbd1; }
        .personalized-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
        .personalized-panel { border: 1px solid #d5dce4; border-radius: 8px; background: #fff; padding: 1.25rem; }
        .inline-filter { display: flex; align-items: center; gap: 0.6rem; min-width: 17rem; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; padding: 0.7rem 0.85rem; color: #64748b; }
        .inline-filter input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 0.85rem; }
        .home-editorial-band { border-top: 1px solid #dbe1e8; background: #fff; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
        .editorial-band-grid { display: grid; grid-template-columns: 1fr 0.85fr; align-items: center; gap: 3rem; }
        .home-editorial-band p:not(.eyebrow) { max-width: 38rem; margin-top: 1rem; color: #64748b; line-height: 1.8; }
        .editorial-checklist { display: grid; gap: 0.75rem; border-left: 2px solid #8edbd1; padding-left: 1.25rem; }
        .editorial-checklist div { display: flex; align-items: center; gap: 0.65rem; color: #334155; font-size: 0.9rem; font-weight: 700; }
        .editorial-checklist i { color: #0f766e; }
        .directory-hero { border-bottom: 1px solid #dbe1e8; background: #fff; }
        .directory-hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3rem; padding-block: clamp(3rem, 6vw, 5.5rem); }
        .directory-hero h1 { max-width: 15ch; font-size: clamp(2.8rem, 5vw, 5rem); }
        .directory-hero p:not(.eyebrow) { max-width: 38rem; margin-top: 1.2rem; color: #64748b; font-size: 1.05rem; line-height: 1.8; }
        .directory-summary { display: grid; min-width: 12rem; gap: 0.25rem; border-left: 2px solid #8edbd1; padding-left: 1.25rem; }
        .directory-summary strong { color: #172033; font: 700 3rem/1 'Source Serif 4', serif; }
        .directory-summary span { color: #64748b; font-size: 0.85rem; font-weight: 700; }
        .directory-summary .text-link { margin-top: 1.25rem; }
        .directory-controls { display: flex; align-items: center; gap: 1rem; }
        .directory-search { flex: 1; max-width: 42rem; margin-top: 0; }
        .directory-count { color: #64748b; font-size: 0.85rem; white-space: nowrap; }
        .directory-count strong { color: #172033; }
        .directory-filters { display: flex; gap: 0.55rem; margin-block: 1rem 1.5rem; overflow-x: auto; padding-bottom: 0.25rem; }
        .directory-note-band { border-top: 1px solid #dbe1e8; background: #eef2f5; padding-block: 3rem; }
        .directory-note-band h2 { color: #172033; font: 700 1.25rem/1.1 'Source Serif 4', serif; }
        .directory-note-band p { margin-top: 0.55rem; color: #64748b; font-size: 0.88rem; line-height: 1.65; }
        .guide-card-save { cursor: pointer; }
        .guide-card-save.is-saved { border-color: #0f766e; background: rgba(15,118,110,0.1); color: #0f766e; }
        .related-tools-band { border-top: 1px solid #dbe1e8; border-bottom: 1px solid #dbe1e8; background: #eef2f5; padding-block: 2.5rem; }
        .related-tools-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
        .related-tools-heading h2 { margin-top: 0.45rem; color: #172033; font: 700 clamp(1.8rem, 3vw, 2.5rem)/1.05 'Source Serif 4', serif; }
        .related-tools-heading > p { max-width: 22rem; color: #64748b; font-size: 0.88rem; line-height: 1.65; }
        .related-tools-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
        .related-tool-link { display: flex; align-items: center; gap: 0.75rem; border: 1px solid #d5dce4; border-radius: 8px; background: #fff; padding: 0.9rem; color: #172033; transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease; }
        .related-tool-link:hover { border-color: #0f766e; box-shadow: 0 10px 24px rgba(23,32,51,0.07); transform: translateY(-1px); }
        .related-tool-link strong, .related-tool-link small { display: block; }
        .related-tool-link strong { font-size: 0.9rem; }
        .related-tool-link small { margin-top: 0.25rem; overflow: hidden; color: #64748b; font-size: 0.76rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
        [data-tool-card].is-hidden { display: none; }
        .mobile-nav[hidden] { display: none; }
        .tool-hero { letter-spacing: 0; }
        .tool-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 300px;
            gap: 2rem;
            align-items: start;
        }
        .tool-workspace {
            display: grid;
            grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
            gap: 1rem;
        }
        .tool-panel,
        .tool-side-card {
            border: 1px solid #ded6c8;
            border-radius: 8px;
            background: #fffdf7;
            box-shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
        }
        .tool-panel { padding: 1.25rem; }
        .tool-side-card { padding: 1.25rem; }
        .tool-side-card h2 {
            color: #172033;
            font-family: 'Source Serif 4', serif;
            font-size: 1.35rem;
            font-weight: 700;
            line-height: 1.2;
        }
        .tool-side-card p { margin-top: 0.75rem; color: #5f6674; font-size: 0.9rem; line-height: 1.75; }
        .tool-aside { display: grid; gap: 1rem; position: sticky; top: 6rem; }
        .tool-panel-header {
            display: flex;
            align-items: start;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 1.1rem;
        }
        .tool-panel-header h2 {
            color: #172033;
            font-size: 1rem;
            font-weight: 800;
            line-height: 1.25;
        }
        .tool-panel-header p { margin-top: 0.25rem; color: #5f6674; font-size: 0.88rem; line-height: 1.55; }
        .tool-live-note {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            border: 1px solid rgba(15, 118, 110, 0.18);
            border-radius: 999px;
            background: rgba(15, 118, 110, 0.08);
            color: #0f766e;
            padding: 0.35rem 0.65rem;
            font-size: 0.75rem;
            font-weight: 800;
            white-space: nowrap;
        }
        .tool-field-grid { display: grid; gap: 0.9rem; }
        .tool-field { display: grid; gap: 0.45rem; }
        .tool-field.is-wide { grid-column: 1 / -1; }
        .tool-label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            color: #172033;
            font-size: 0.86rem;
            font-weight: 800;
        }
        .tool-input {
            width: 100%;
            border: 1px solid #ded6c8;
            border-radius: 8px;
            background: #f7f3ea;
            color: #172033;
            padding: 0.75rem 0.85rem;
            font-size: 0.95rem;
            line-height: 1.45;
            outline: none;
            transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
        }
        .tool-input:focus {
            border-color: #0f766e;
            background: #fffdf7;
            box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
        }
        .tool-textarea { min-height: 11rem; resize: vertical; font-family: 'JetBrains Mono', monospace; font-size: 0.88rem; line-height: 1.7; }
        .tool-input[type="color"] { min-height: 3rem; padding: 0.25rem; cursor: pointer; }
        .tool-input[type="range"] { padding-inline: 0; accent-color: #0f766e; }
        .tool-input[type="file"] { cursor: pointer; }
        .tool-range-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; }
        .tool-range-value {
            min-width: 3.5rem;
            border-radius: 6px;
            background: #172033;
            color: #fffdf7;
            padding: 0.45rem 0.6rem;
            text-align: center;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.82rem;
            font-weight: 700;
        }
        .tool-checkbox {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            border: 1px solid #ded6c8;
            border-radius: 8px;
            background: #f7f3ea;
            padding: 0.8rem 0.85rem;
            color: #172033;
            font-size: 0.92rem;
            font-weight: 700;
        }
        .tool-checkbox input { width: 1rem; height: 1rem; accent-color: #0f766e; }
        .tool-action-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
        .tool-action-row.compact { margin-top: 0; }
        .tool-button,
        .tool-icon-button,
        .tool-chip-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
            border-radius: 8px;
            font-weight: 800;
            transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
        }
        .tool-button { min-height: 2.55rem; padding: 0.65rem 0.9rem; font-size: 0.9rem; }
        .tool-button:hover,
        .tool-icon-button:hover,
        .tool-chip-button:hover { transform: translateY(-1px); }
        .tool-button-primary { border: 1px solid #0f766e; background: #0f766e; color: #fffdf7; }
        .tool-button-primary:hover { background: #172033; border-color: #172033; }
        .tool-button-secondary,
        .tool-icon-button,
        .tool-chip-button { border: 1px solid #ded6c8; background: #f7f3ea; color: #172033; }
        .tool-button-secondary:hover,
        .tool-icon-button:hover,
        .tool-chip-button:hover { border-color: #0f766e; color: #0f766e; }
        .tool-icon-button { width: 2.45rem; height: 2.45rem; padding: 0; }
        .tool-icon-button[hidden] { display: none; }
        .tool-quick-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
        .tool-chip-button { min-height: 2.15rem; padding: 0.45rem 0.7rem; font-size: 0.8rem; }
        .tool-result-panel { min-width: 0; }
        .tool-result {
            min-height: 23rem;
            max-height: 42rem;
            overflow: auto;
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 8px;
            background: #101827;
            color: #e6edf7;
            padding: 1rem;
            white-space: pre-wrap;
            word-break: break-word;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.88rem;
            line-height: 1.7;
        }
        .tool-result.is-error { border-color: rgba(192, 38, 38, 0.35); color: #fecaca; }
        .tool-result-extra { margin-top: 1rem; }
        .tool-preview {
            border: 1px solid #ded6c8;
            border-radius: 8px;
            background: #fffdf7;
            color: #172033;
            padding: 1rem;
            font-size: 0.95rem;
            line-height: 1.7;
        }
        .tool-preview h1,
        .tool-preview h2,
        .tool-preview h3 { margin: 0.7rem 0 0.35rem; color: #172033; font-weight: 800; line-height: 1.2; }
        .tool-preview h1 { font-size: 1.45rem; }
        .tool-preview h2 { font-size: 1.2rem; }
        .tool-preview h3 { font-size: 1.05rem; }
        .tool-preview p { margin: 0.5rem 0; color: #374151; }
        .tool-preview ul { margin: 0.5rem 0; padding-left: 1.2rem; list-style: disc; }
        .tool-preview code { border-radius: 5px; background: #eef2f7; padding: 0.12rem 0.35rem; font-family: 'JetBrains Mono', monospace; font-size: 0.9em; }
        .tool-swatch {
            min-height: 5rem;
            border: 1px solid #ded6c8;
            border-radius: 8px;
        }
        .tool-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
        .tool-stat { border: 1px solid #ded6c8; border-radius: 8px; background: #f7f3ea; padding: 0.75rem; }
        .tool-stat strong { display: block; color: #172033; font-size: 1.1rem; }
        .tool-stat span { display: block; margin-top: 0.2rem; color: #5f6674; font-size: 0.78rem; font-weight: 700; }
        @media (max-width: 1080px) {
            .home-hero-grid { grid-template-columns: 1fr; }
            .intent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .latest-guides-list { grid-template-columns: 1fr; }
            .directory-hero-grid { grid-template-columns: 1fr; }
            .tool-layout { grid-template-columns: 1fr; }
            .tool-aside { position: static; }
        }
        @media (max-width: 840px) {
            .section-heading-row, .directory-controls { align-items: start; flex-direction: column; }
            .inline-filter, .directory-search { width: 100%; max-width: none; }
            .personalized-home-grid, .editorial-band-grid { grid-template-columns: 1fr; }
            .related-tools-heading { align-items: start; flex-direction: column; gap: 0.75rem; }
            .related-tools-list { grid-template-columns: 1fr; }
            .tool-workspace { grid-template-columns: 1fr; }
            .tool-result { min-height: 18rem; }
        }
        @media (max-width: 520px) {
            .home-hero-grid { gap: 1rem; padding-block: 1.75rem 1.25rem; }
            .home-hero-copy h1, .directory-hero h1 { font-size: 3rem; }
            .home-hero-copy > p { margin-top: 1rem; font-size: 1rem; line-height: 1.6; }
            .home-hero-actions { margin-top: 1.4rem; }
            .home-proof-row { margin-top: 1.35rem; font-size: 0.7rem; }
            .home-search-panel { padding: 1rem; }
            .home-search-heading h2 { font-size: 1.65rem; }
            .home-search-heading p { display: none; }
            .home-search-input { margin-top: 0.9rem; }
            .home-proof-row { gap: 0.7rem; }
            .intent-grid { grid-template-columns: 1fr; }
            .latest-guide-link { min-height: 0; }
            .tool-panel { padding: 1rem; }
            .tool-panel-header { flex-direction: column; }
            .tool-action-row { width: 100%; }
            .tool-button { flex: 1 1 8rem; }
            .tool-stat-grid { grid-template-columns: 1fr; }
        }
        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }
            .article-card, .return-panel-card, .category-chip, .code-block-copy, .tool-button, .tool-icon-button, .tool-chip-button { transition: none; }
            .tool-button:hover, .tool-icon-button:hover, .tool-chip-button:hover { transform: none; }
        }