/* Extracted from /_design-samples/editorial/ and used by the real multisite theme loader. */
/* =========================================================
       EDITORIAL CREAM ג€” design tokens
       ========================================================= */
    :root {
        --bg:        #f7f1e6;   /* warm cream paper */
        --bg-soft:   #f1e9d9;   /* slightly deeper cream */
        --bg-elev:   #fdfaf3;   /* near-white cream cards */

        --ink:       #1a1410;   /* deep coffee for primary text */
        --ink-soft:  #3d3127;
        --ink-mid:   #6b5b4e;
        --ink-faint: #998777;
        --ink-muted: #c4b6a4;

        --rule:        #e3d8c4;   /* line/border color */
        --rule-strong: #d4c5ac;

        --accent:        #c2410c;  /* terracotta / burnt orange */
        --accent-soft:   #ea580c;
        --accent-strong: #9a3412;
        --accent-tint:   #fef0e6;
        --accent-glow:   rgba(194, 65, 12, 0.18);

        --teal:       #0f766e;    /* complement for variety */
        --teal-soft:  #14b8a6;
        --teal-tint:  #ccfbf1;

        --shadow-sm: 0 1px 2px 0 rgba(26, 20, 16, 0.05);
        --shadow:    0 2px 8px -2px rgba(26, 20, 16, 0.08), 0 1px 3px -1px rgba(26, 20, 16, 0.04);
        --shadow-md: 0 8px 20px -4px rgba(26, 20, 16, 0.12);
        --shadow-lg: 0 20px 40px -8px rgba(26, 20, 16, 0.18);

        --radius-lg: 14px;
        --radius-md: 10px;
        --radius-sm: 6px;
    }

    * { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; min-height: 100vh; }

    body {
        font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
        color: var(--ink);
        background: var(--bg);
        -webkit-font-smoothing: antialiased;
        overflow-x: hidden;
    }

    /* Subtle paper texture so cream feels real */
    .paper-grain {
        position: fixed; inset: 0;
        pointer-events: none;
        z-index: 0;
        opacity: 0.5;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.3  0 0 0 0 0.2  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    }
    /* Warm radial highlight at top */
    .paper-glow {
        position: fixed;
        top: -25%; left: 30%;
        width: 80vw; height: 60vh;
        background: radial-gradient(ellipse, rgba(254, 215, 170, 0.4) 0%, transparent 60%);
        pointer-events: none;
        z-index: 0;
        filter: blur(50px);
    }

    nav, section, .container, .sample-footer, .theme-switcher { position: relative; z-index: 1; }

    h1, h2, h3, h4, .home-cat {
        font-family: "Fraunces", Georgia, serif;
        font-weight: 700;
        letter-spacing: -0.025em;
        color: var(--ink);
        font-variation-settings: "opsz" 144;
    }

    a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
    a:hover { color: var(--accent-strong); }

    /* =========================================================
       THEME SWITCHER
       ========================================================= */
    .theme-switcher {
        position: fixed;
        top: 14px;
        right: 14px;
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 5px 8px;
        background: var(--bg-elev);
        border: 1px solid var(--rule);
        border-radius: 999px;
        z-index: 1100;
        box-shadow: var(--shadow);
    }
    .theme-switcher a { border: none; }
    .theme-switcher-label {
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 11px;
        font-weight: 500;
        color: var(--ink-faint);
        padding: 0 8px;
    }
    .theme-switch-btn {
        font-size: 12px;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 999px;
        color: var(--ink-mid);
        transition: all 0.15s ease;
    }
    .theme-switch-btn:hover { color: var(--ink); background: var(--bg-soft); }
    .theme-switch-btn.is-active {
        background: var(--ink);
        color: var(--bg-elev);
        font-weight: 700;
    }
    .theme-switch-home { padding: 6px 10px; opacity: 0.5; font-size: 14px; }

    /* =========================================================
       NAVBAR
       ========================================================= */
    .navbar {
        background: rgba(247, 241, 230, 0.92);
        backdrop-filter: blur(12px) saturate(140%);
        -webkit-backdrop-filter: blur(12px) saturate(140%);
        border-bottom: 1px solid var(--rule);
        padding: 16px 0;
    }
    .navbar a { border: none; }
    .navbar-brand {
        font-family: "Fraunces", serif;
        font-size: 22px;
        font-weight: 700;
        color: var(--ink) !important;
        letter-spacing: -0.02em;
        font-variation-settings: "opsz" 144;
    }
    .brand-star { color: var(--accent); }
    .nav-link {
        color: var(--ink-mid) !important;
        font-weight: 500;
        font-size: 14px;
        transition: color 0.15s ease;
    }
    .nav-link:hover { color: var(--ink) !important; }

    .navbar { color-scheme: light; }
    .navbar .navbar-toggler-icon { filter: invert(0.7); }
    .navbar .dropdown-menu {
        background: var(--bg-elev);
        border: 1px solid var(--rule);
        box-shadow: var(--shadow-md);
    }
    .navbar .dropdown-item { color: var(--ink); }
    .navbar .dropdown-item:hover { background: var(--bg-soft); color: var(--ink); }
    .navbar .dropdown-item.active { background: var(--accent-tint); color: var(--accent); }
    .navbar .dropdown-divider { border-color: var(--rule); }

    /* =========================================================
       HERO
       ========================================================= */
    .model-hero { padding: 110px 0 60px; }
    .model-hero-inner {
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        gap: 56px;
        align-items: center;
    }
    @media (max-width: 900px) { .model-hero-inner { grid-template-columns: 1fr; } }

    .model-hero-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 4px 14px;
        border-radius: 0;
        background: transparent;
        border: none;
        border-top: 1px solid var(--accent);
        border-bottom: 1px solid var(--accent);
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 13px;
        font-weight: 500;
        color: var(--accent);
        margin-bottom: 28px;
        letter-spacing: 0.02em;
    }

    .model-hero-title {
        font-family: "Fraunces", serif;
        font-size: clamp(50px, 8vw, 92px);
        font-weight: 600;
        font-variation-settings: "opsz" 144, "SOFT" 50;
        letter-spacing: -0.04em;
        line-height: 0.95;
        margin: 0 0 28px;
        color: var(--ink);
    }
    .model-hero-title em {
        font-style: italic;
        font-weight: 500;
        color: var(--accent);
    }

    .model-hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 18px;
        font-weight: 500;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        color: var(--accent);
        vertical-align: middle;
        margin-left: 16px;
        font-variation-settings: "opsz" 14;
    }
    .model-hero-badge::before { content: 'ג€” '; opacity: 0.5; }

    .model-hero-desc {
        font-size: 19px;
        line-height: 1.65;
        color: var(--ink-soft);
        max-width: 56ch;
        margin: 0 0 40px;
        font-weight: 400;
    }

    .model-hero-stats {
        display: flex;
        gap: 36px;
        flex-wrap: wrap;
        padding-top: 24px;
        border-top: 1px solid var(--rule);
    }
    .stat { display: flex; flex-direction: column; gap: 4px; }
    .stat-num {
        font-family: "Fraunces", serif;
        font-size: 30px;
        font-weight: 600;
        color: var(--ink);
        letter-spacing: -0.03em;
        font-variation-settings: "opsz" 144;
    }
    .stat-num .fa-star { color: var(--accent); font-size: 18px; margin-left: 4px; }
    .stat-label {
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 13px;
        font-weight: 400;
        color: var(--ink-faint);
    }

    .model-hero-art { position: relative; height: 380px; }
    .hero-art-tile {
        position: absolute;
        border-radius: 12px;
        background-size: cover;
        box-shadow: var(--shadow-lg);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
    .hero-art-tile-1 { top: 8%;   left: 5%;  width: 48%; height: 58%;
        background: linear-gradient(135deg, #c2410c, #ea580c); }
    .hero-art-tile-2 { top: 4%;   right: 6%; width: 38%; height: 44%;
        background: linear-gradient(135deg, #0f766e, #14b8a6); }
    .hero-art-tile-3 { bottom: 6%; left: 28%; width: 38%; height: 42%;
        background: linear-gradient(135deg, #92400e, #c2410c); }
    .hero-art-tile-4 { bottom: 10%; right: 4%; width: 32%; height: 38%;
        background: linear-gradient(135deg, #f59e0b, #c2410c); }

    /* =========================================================
       PANELS
       ========================================================= */
    .panel {
        background: var(--bg-elev);
        border: 1px solid var(--rule);
        border-radius: var(--radius-lg);
        padding: 36px;
        --panel-pad-x: 36px;
        box-shadow: var(--shadow-sm);
    }
    .panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 28px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--rule);
    }
    .panel-title {
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 18px;
        font-weight: 500;
        margin: 0;
        color: var(--ink);
        display: flex;
        align-items: center;
        gap: 10px;
        text-transform: lowercase;
        font-variation-settings: "opsz" 14;
    }
    .panel-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--rule);
        margin-left: 6px;
    }
    .panel-icon-btn {
        font-size: 14px;
        color: var(--ink-faint);
        cursor: pointer;
        padding: 7px;
        border-radius: 6px;
        transition: all 0.15s ease;
    }
    .panel-icon-btn:hover { color: var(--accent); background: var(--bg-soft); }

    /* =========================================================
       FORM ELEMENTS
       ========================================================= */
    .form-group { margin-bottom: 26px; }
    .form-group > label > strong {
        font-family: "Fraunces", serif;
        font-size: 17px;
        font-weight: 600;
        color: var(--ink);
        letter-spacing: -0.01em;
        font-variation-settings: "opsz" 14;
    }
    /* Boolean checkbox fields are rendered with .form-check-label instead of
       .form-group > label. Match the same serif title treatment so editorial
       forms do not mix title styles field-by-field. */
    .form-check-label strong {
        font-family: "Fraunces", serif;
        font-size: 17px;
        font-weight: 600;
        color: var(--ink);
        letter-spacing: -0.01em;
        font-variation-settings: "opsz" 14;
    }
    .description {
        font-size: 14px;
        line-height: 1.55;
        color: var(--ink-mid);
        margin: 6px 0 14px;
        font-style: italic;
    }
    .form-control, .form-select {
        background: var(--bg) !important;
        border: 1px solid var(--rule-strong) !important;
        border-radius: var(--radius-sm) !important;
        color: var(--ink) !important;
        padding: 11px 14px !important;
        font-family: inherit;
        font-size: 14px;
        transition: all 0.15s ease;
    }
    .form-control:focus, .form-select:focus {
        border-color: var(--accent) !important;
        background: var(--bg-elev) !important;
        box-shadow: 0 0 0 3px var(--accent-glow) !important;
        outline: none;
    }
    textarea.form-control { min-height: 140px; resize: vertical; line-height: 1.6; }
    .form-control::placeholder { color: var(--ink-muted); font-style: italic; }

    .file-upload {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 36px 16px;
        border: 1.5px dashed var(--rule-strong);
        border-radius: var(--radius-md);
        background: var(--bg);
        cursor: pointer;
        transition: all 0.15s ease;
        color: var(--ink-mid);
        font-size: 14px;
        font-style: italic;
    }
    .file-upload:hover {
        border-color: var(--accent);
        border-style: solid;
        background: var(--accent-tint);
        color: var(--ink);
    }
    .file-upload .fa-upload { font-size: 16px; color: var(--accent); }
    .file-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

    .btn-enhance {
        margin-top: 14px;
        background: transparent !important;
        color: var(--ink) !important;
        border: 1px solid var(--ink) !important;
        border-radius: 999px !important;
        padding: 9px 20px !important;
        font-family: "Inter", sans-serif !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        transition: all 0.15s ease;
    }
    .btn-enhance:hover { background: var(--ink) !important; color: var(--bg-elev) !important; }
    .btn-enhance .fa-wand-magic-sparkles { color: var(--accent); }
    .btn-enhance:hover .fa-wand-magic-sparkles { color: var(--accent-soft); }

    .btn-group .btn-outline-light {
        background: var(--bg-elev) !important;
        border-color: var(--rule-strong) !important;
        color: var(--ink-mid) !important;
        padding: 12px 8px !important;
        font-weight: 500;
        font-size: 14px;
        transition: all 0.12s ease;
    }
    .btn-group .btn-outline-light:hover { color: var(--ink) !important; background: var(--bg) !important; border-color: var(--ink-faint) !important; }
    .btn-check:checked + .btn-outline-light {
        background: var(--ink) !important;
        border-color: var(--ink) !important;
        color: var(--bg-elev) !important;
    }
    .btn-group .btn-outline-light small { color: inherit; opacity: 0.75; font-size: 11px; font-style: italic; }

    .ratio-row { gap: 8px; }
    .ratio-row input[type="radio"] { display: none; }
    .ratio-box {
        width: 80px; height: 80px;
        border-radius: 10px;
        background: var(--bg);
        border: 1px solid var(--rule-strong);
        display: flex; align-items: center; justify-content: center;
        cursor: pointer;
        transition: all 0.15s ease;
    }
    .ratio-row label:hover .ratio-box { border-color: var(--ink); transform: translateY(-2px); }
    .ratio-shape {
        background: var(--bg-soft);
        color: var(--ink-mid);
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 11px;
        font-weight: 500;
        display: flex; align-items: center; justify-content: center;
        border-radius: 3px;
        transition: all 0.15s ease;
    }
    .circle-ratio .ratio-shape { border-radius: 50%; }
    input[type="radio"]:checked + label .ratio-box {
        background: var(--accent-tint);
        border-color: var(--accent);
    }
    input[type="radio"]:checked + label .ratio-shape { background: var(--accent); color: var(--bg-elev); }

    .form-check-input {
        background-color: var(--bg) !important;
        border-color: var(--rule-strong) !important;
        cursor: pointer;
    }
    .form-check-input:checked {
        background-color: var(--accent) !important;
        border-color: var(--accent) !important;
    }
    .form-check-input:focus { box-shadow: 0 0 0 3px var(--accent-glow) !important; }

    /* Advanced field accent styling lives in themes/base.css (#input-form.mode-advanced). */

    /* RUN BUTTON ג€” terracotta with serif label */
    .run-row { display: flex; align-items: center; margin-top: 32px; }
    .super-button {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 16px 36px;
        background: var(--ink);
        border: none;
        border-radius: 999px;
        color: var(--bg-elev);
        font-family: "Fraunces", serif;
        font-size: 17px;
        font-weight: 500;
        font-style: italic;
        letter-spacing: 0;
        cursor: pointer;
        box-shadow: var(--shadow-md);
        transition: all 0.2s ease;
        font-variation-settings: "opsz" 14;
    }
    .super-button:hover {
        background: var(--accent);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    .super-button:active { transform: translateY(0); }
    .super-button .arrow { width: 20px; height: 20px; color: var(--bg-elev); transition: transform 0.2s ease; }
    .super-button:hover .arrow { transform: translateX(6px); }
    html[dir="rtl"] .super-button .arrow { transform: scaleX(-1); }
    html[dir="rtl"] .super-button:hover .arrow { transform: scaleX(-1) translateX(6px); }

    .allowance {
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 14px;
        color: var(--ink-faint);
        margin-top: 16px;
    }

    /* OUTPUT */
    .output-container {
        min-height: 540px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
    }
    .output-empty { text-align: center; color: var(--ink-mid); }
    .output-empty-icon {
        width: 72px; height: 72px;
        border-radius: 14px;
        background: var(--bg);
        border: 1px solid var(--rule);
        display: flex; align-items: center; justify-content: center;
        font-size: 28px;
        color: var(--accent);
        margin: 0 auto 20px;
    }
    .output-empty h3 {
        font-family: "Fraunces", serif;
        font-size: 24px;
        font-weight: 600;
        margin: 0 0 8px;
        color: var(--ink);
        font-variation-settings: "opsz" 144;
    }
    .output-empty p { font-size: 15px; max-width: 36ch; margin: 0 auto; line-height: 1.55; font-style: italic; }
    .output-thumbs {
        display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
        width: 100%; max-width: 320px;
    }
    .output-thumb { aspect-ratio: 1; border-radius: 10px; box-shadow: var(--shadow-sm); border: 1px solid rgba(255, 255, 255, 0.5); }
    .output-thumb-1 { background: linear-gradient(135deg, #c2410c, #ea580c); }
    .output-thumb-2 { background: linear-gradient(135deg, #0f766e, #14b8a6); }
    .output-thumb-3 { background: linear-gradient(135deg, #92400e, #c2410c); }
    .output-thumb-4 { background: linear-gradient(135deg, #f59e0b, #c2410c); }

    /* CREATIONS */
    .creations-section { margin-top: 80px; }
    .creations-header {
        display: flex; align-items: center; gap: 14px;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--rule);
    }
    .creations-header h3 {
        font-family: "Fraunces", serif;
        margin: 0;
        font-size: 32px;
        font-weight: 600;
        color: var(--ink);
        letter-spacing: -0.02em;
        font-variation-settings: "opsz" 144;
    }
    .creations-icons { display: flex; gap: 10px; margin-left: auto; }
    .creation-header-icon {
        font-size: 14px;
        color: var(--ink-faint);
        cursor: pointer;
        padding: 7px;
        border-radius: 6px;
        transition: all 0.15s ease;
    }
    .creation-header-icon:hover { color: var(--accent); background: var(--bg-soft); }

    .thumbnails-row { gap: 10px 0; }
    .thumbnail-wrapper { padding: 5px; position: relative; cursor: pointer; }
    .thumb-fake {
        width: 110px; height: 110px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: var(--shadow-sm);
        transition: all 0.2s ease;
    }
    .thumbnail-wrapper:hover .thumb-fake { transform: translateY(-3px); box-shadow: var(--shadow-md); }
    .thumb-fake-1 { background: linear-gradient(135deg, #c2410c, #ea580c); }
    .thumb-fake-2 { background: linear-gradient(135deg, #0f766e, #14b8a6); }
    .thumb-fake-3 { background: linear-gradient(135deg, #92400e, #c2410c); }
    .thumb-fake-4 { background: linear-gradient(135deg, #f59e0b, #c2410c); }
    .thumb-fake-5 { background: linear-gradient(135deg, #14b8a6, #f59e0b); }
    .thumb-fake-6 { background: linear-gradient(135deg, #c2410c, #14b8a6); }
    .thumb-fake-7 { background: linear-gradient(135deg, #92400e, #14b8a6); }
    .thumb-fake-8 { background: linear-gradient(135deg, #ea580c, #f59e0b); }

    .public-example-badge {
        position: absolute; top: 11px; left: 11px;
        width: 22px; height: 22px;
        border-radius: 5px;
        background: var(--bg-elev);
        border: 1px solid var(--rule-strong);
        display: inline-flex; align-items: center; justify-content: center;
        color: var(--accent); font-size: 10px; z-index: 2;
        box-shadow: var(--shadow-sm);
    }
    .thumbnail-output-count {
        position: absolute; top: 11px; left: 11px; right: auto;
        width: 22px; height: 22px;
        padding: 0 8px;
        border-radius: 5px;
        background: var(--ink);
        font-family: "Fraunces", serif;
        display: inline-flex; align-items: center; justify-content: center;
        font-size: 11px; font-weight: 600; color: var(--bg-elev); z-index: 2;
    }

    /* PRICING */
    .pricing-section { padding: 110px 0 60px; background: var(--bg-soft); margin-top: 60px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
    .pricing-intro { text-align: center; max-width: 720px; margin: 0 auto 60px; }
    .pricing-intro a { border: none; }
    .pricing-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 4px 14px;
        border-top: 1px solid var(--accent);
        border-bottom: 1px solid var(--accent);
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 13px;
        font-weight: 500;
        color: var(--accent);
        margin-bottom: 24px;
    }
    .pricing-title {
        font-family: "Fraunces", serif;
        font-size: clamp(44px, 5.5vw, 68px);
        font-weight: 600;
        letter-spacing: -0.04em;
        line-height: 1.05;
        margin: 0 0 16px;
        color: var(--ink);
        font-variation-settings: "opsz" 144;
    }
    .pricing-title em { font-style: italic; color: var(--accent); }
    .pricing-sub {
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 19px;
        color: var(--ink-mid);
        margin: 0 0 28px;
    }
    .compare-plans-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 22px;
        border-radius: 999px;
        background: var(--bg-elev);
        border: 1px solid var(--rule-strong);
        color: var(--ink);
        font-weight: 600;
        font-size: 14px;
        box-shadow: var(--shadow-sm);
        transition: all 0.15s ease;
    }
    .compare-plans-link:hover {
        border-color: var(--ink);
        background: var(--ink);
        color: var(--bg-elev);
    }

    .pricing-grid { gap: 24px 0; }
    .pricing-card {
        position: relative;
        background: var(--bg-elev);
        border: 1px solid var(--rule);
        border-radius: var(--radius-lg);
        padding: 40px 32px;
        height: 100%;
        display: flex;
        flex-direction: column;
        box-shadow: var(--shadow);
        transition: all 0.2s ease;
    }
    .pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
    .pricing-card-ultimate {
        background: var(--ink);
        border-color: var(--ink);
        color: var(--bg-elev);
        box-shadow: var(--shadow-lg);
    }
    .pricing-card-ultimate .plan-name,
    .pricing-card-ultimate .price-amount,
    .pricing-card-ultimate strong { color: var(--bg-elev); }
    .pricing-card-ultimate .price-was { color: var(--ink-faint); }
    .pricing-card-ultimate .price-per,
    .pricing-card-ultimate .plan-tag,
    .pricing-card-ultimate .plan-features li { color: rgba(247, 241, 230, 0.85); }
    .pricing-card-ultimate .plan-features .fa-check { color: var(--accent-soft); }
    .pricing-card-ultimate .plan-features .fa-xmark { color: var(--ink-faint); }

    .recommended-ribbon {
        position: absolute;
        top: -14px; left: 50%;
        transform: translateX(-50%);
        padding: 5px 18px;
        background: var(--accent);
        color: var(--bg-elev);
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 13px;
        font-weight: 600;
        border-radius: 999px;
        box-shadow: var(--shadow-md);
        font-variation-settings: "opsz" 14;
    }

    .plan-name {
        font-family: "Fraunces", serif;
        font-size: 24px;
        font-weight: 600;
        margin: 0 0 16px;
        color: var(--ink);
        letter-spacing: -0.02em;
        font-variation-settings: "opsz" 144;
    }
    .plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
    .price-was { font-family: "Fraunces", serif; font-style: italic; font-size: 18px; color: var(--ink-faint); }
    .price-amount {
        font-family: "Fraunces", serif;
        font-size: 52px;
        font-weight: 600;
        letter-spacing: -0.04em;
        color: var(--ink);
        line-height: 1;
        font-variation-settings: "opsz" 144;
    }
    .price-per { font-family: "Fraunces", serif; font-style: italic; font-size: 14px; color: var(--ink-mid); }
    .plan-tag {
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 14px;
        color: var(--ink-mid);
        margin: 8px 0 28px;
    }

    .plan-features {
        list-style: none; padding: 0; margin: 0 0 32px;
        font-size: 14px; flex: 1;
    }
    .plan-features li {
        display: flex; align-items: flex-start; gap: 12px;
        padding: 10px 0;
        color: var(--ink);
        line-height: 1.45;
        border-bottom: 1px dotted var(--rule);
    }
    .plan-features li.muted { color: var(--ink-faint); }
    .plan-features .fa-check { color: var(--accent); margin-top: 4px; font-size: 12px; }
    .plan-features .fa-xmark { color: var(--ink-muted); margin-top: 4px; }

    .plan-btn {
        display: inline-flex; align-items: center; justify-content: center;
        width: 100%;
        padding: 13px 20px;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0;
        border: 1px solid transparent;
        cursor: pointer;
        transition: all 0.15s ease;
    }
    .plan-btn-ghost {
        background: var(--bg);
        color: var(--ink-mid);
        border-color: var(--rule-strong);
    }
    .plan-btn-primary {
        background: var(--bg-elev);
        color: var(--ink);
        border-color: var(--ink);
    }
    .plan-btn-primary:hover { background: var(--ink); color: var(--bg-elev); }
    .plan-btn-accent {
        background: var(--accent);
        color: var(--bg-elev);
        font-weight: 700;
    }
    .plan-btn-accent:hover { background: var(--accent-strong); transform: translateY(-1px); }

    /* COMPARISON */
    .compare-section { padding: 80px 0 100px; }
    .compare-head { text-align: center; margin-bottom: 40px; }
    .compare-title {
        font-family: "Fraunces", serif;
        font-size: clamp(36px, 4.5vw, 54px);
        font-weight: 600;
        letter-spacing: -0.03em;
        margin: 0 0 8px;
        color: var(--ink);
        font-variation-settings: "opsz" 144;
    }
    .compare-sub {
        font-family: "Fraunces", serif;
        font-style: italic;
        color: var(--ink-mid);
        font-size: 17px;
    }

    .cmp-table-wrap {
        background: var(--bg-elev);
        border: 1px solid var(--rule);
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }
    .cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .cmp-table thead th {
        position: sticky; top: 0;
        background: var(--bg-soft);
        padding: 22px 22px;
        text-align: left;
        font-weight: 600;
        border-bottom: 1px solid var(--rule);
        z-index: 2;
    }
    .cmp-feature-th {
        font-family: "Fraunces", serif;
        font-style: italic;
        color: var(--ink-faint);
        font-size: 13px;
        font-weight: 500;
        font-variation-settings: "opsz" 14;
    }
    .cmp-plan-th { text-align: center !important; }
    .cmp-plan-name {
        font-family: "Fraunces", serif;
        display: block;
        font-size: 20px;
        color: var(--ink);
        margin-bottom: 2px;
        letter-spacing: -0.01em;
        font-variation-settings: "opsz" 144;
    }
    .cmp-plan-price {
        display: block;
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 13px;
        color: var(--ink-faint);
        font-weight: 500;
    }
    .cmp-plan-pro .cmp-plan-name { color: var(--accent); }
    .cmp-plan-ult .cmp-plan-name { color: var(--ink); }

    .cmp-table tbody tr { border-top: 1px solid var(--rule); }
    .cmp-table tbody tr:hover { background: var(--bg); }
    .cmp-table td {
        padding: 18px 22px;
        vertical-align: top;
        text-align: center;
        color: var(--ink);
        line-height: 1.55;
    }
    .cmp-feature-td {
        text-align: left !important;
        font-family: "Fraunces", serif;
        color: var(--ink);
        font-weight: 500;
        font-size: 16px;
        font-variation-settings: "opsz" 14;
    }
    .cmp-line { display: block; }
    .cmp-line + .cmp-line { color: var(--ink-mid); font-size: 13px; margin-top: 2px; font-style: italic; }
    .cmp-dash { color: var(--ink-muted); font-size: 18px; }
    .cmp-tag {
        display: inline-block;
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 12px;
        padding: 1px 8px;
        border-radius: 999px;
        background: var(--accent-tint);
        color: var(--accent);
        font-weight: 500;
        margin-left: 6px;
        vertical-align: middle;
    }

    @media (max-width: 720px) {
        .cmp-table thead { display: none; }
        .cmp-table tbody, .cmp-table tr, .cmp-table td { display: block; width: 100%; }
        .cmp-table tr { padding: 18px 20px; border-top: 1px solid var(--rule); }
        .cmp-table td { padding: 6px 0; text-align: left !important; }
        .cmp-table td[data-plan]::before {
            content: attr(data-plan) ":";
            display: inline-block;
            min-width: 80px;
            font-family: "Fraunces", serif;
            font-style: italic;
            color: var(--accent);
            font-weight: 500;
            font-size: 13px;
            margin-right: 10px;
        }
        .cmp-feature-td { font-size: 18px; padding-bottom: 8px !important; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
    }

    /* SIGN-IN */
    .signin-section { padding: 60px 0 110px; }
    .signin-card {
        max-width: 480px;
        margin: 0 auto;
        text-align: center;
        background: var(--bg-elev);
        border: 1px solid var(--rule);
        border-radius: var(--radius-lg);
        padding: 60px 40px;
        box-shadow: var(--shadow-md);
    }
    .signin-card a { border: none; }
    .signin-logo { margin-bottom: 26px; }
    .brand-star-lg { color: var(--accent); }
    .signin-title {
        font-family: "Fraunces", serif;
        font-size: 36px;
        font-weight: 600;
        letter-spacing: -0.03em;
        margin: 0 0 10px;
        color: var(--ink);
        font-variation-settings: "opsz" 144;
    }
    .signin-title em { font-style: italic; color: var(--accent); }
    .signin-sub {
        font-family: "Fraunces", serif;
        font-style: italic;
        color: var(--ink-mid);
        margin: 0 0 32px;
        font-size: 17px;
        line-height: 1.55;
    }
    /* .signin-language pill now lives in base.css, shared across every theme. */
    .signin-terms {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
        font-size: 13px;
        color: var(--ink-mid);
        margin: 0 0 24px;
        line-height: 1.45;
    }
    .signin-terms a { color: var(--accent); border-bottom: 1px solid currentColor; }
    .login-with-google-btn-wrap { display: block; }
    .login-with-google-btn {
        width: 100%;
        padding: 13px 24px 13px 50px;
        border: 1px solid var(--ink);
        border-radius: 999px;
        background: var(--bg-elev) url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTcuNiA5LjJsLS4xLTEuOEg5djMuNGg0LjhDMTMuNiAxMiAxMyAxMyAxMiAxMy42djIuMmgzYTguOCA4LjggMCAwIDAgMi42LTYuNnoiIGZpbGw9IiM0Mjg1RjQiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05IDE4YzIuNCAwIDQuNS0uOCA2LTIuMmwtMy0yLjJhNS40IDUuNCAwIDAgMS04LTIuOUgxVjEzYTkgOSAwIDAgMCA4IDV6IiBmaWxsPSIjMzRBODUzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNCAxMC43YTUuNCA1LjQgMCAwIDEgMC0zLjRWNUgxYTkgOSAwIDAgMCAwIDhsMy0yLjN6IiBmaWxsPSIjRkJCQzA1IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNOSAzLjZjMS4zIDAgMi41LjQgMy40IDEuM0wxNSAyLjNBOSA5IDAgMCAwIDEgNWwzIDIuNGE1LjQgNS40IDAgMCAxIDUtMy43eiIgZmlsbD0iI0VBNDMzNSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTAgMGgxOHYxOEgweiIvPjwvZz48L3N2Zz4=") no-repeat 18px center;
        color: var(--ink);
        font-family: "Inter", sans-serif;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
    }
    .login-with-google-btn:hover { background-color: var(--ink); color: var(--bg-elev); transform: translateY(-1px); }
    .signin-foot {
        margin-top: 22px;
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 13px;
        color: var(--ink-faint);
    }

    .sample-footer {
        padding: 36px 0;
        text-align: center;
        font-family: "Fraunces", serif;
        font-style: italic;
        font-size: 14px;
        color: var(--ink-faint);
        background: var(--bg-soft);
        border-top: 1px solid var(--rule);
    }
    .sample-footer a { border: none; color: var(--ink-mid); }
    .sample-footer a:hover { color: var(--accent); }

/* Production overrides for live output controls.
   The sample page did not include every real model-page action button. Keep
   these controls visibly above the warm paper background on ai770/editorial. */
body[data-theme="editorial"] #output-nav-buttons .panel-icon-btn,
body[data-theme="editorial"] .reaction-control.reaction-control-overlay .btn {
    background: var(--ink) !important;
    border: 1px solid var(--ink) !important;
    color: var(--bg-elev) !important;
    box-shadow: var(--shadow-md) !important;
}

body[data-theme="editorial"] #output-nav-buttons .panel-icon-btn:hover,
body[data-theme="editorial"] .reaction-control.reaction-control-overlay .btn:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--bg-elev) !important;
}

body[data-theme="editorial"] #generate-button.super-button {
    background: var(--ink) !important;
    border: 1px solid var(--ink) !important;
    color: var(--bg-elev) !important;
    box-shadow: var(--shadow-md) !important;
}

body[data-theme="editorial"] #generate-button.super-button::before,
body[data-theme="editorial"] #generate-button.super-button::after {
    content: none !important;
    display: none !important;
    animation: none !important;
}

body[data-theme="editorial"] #generate-button.super-button:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}
