/* playground-theme.html — page-specific styles (extracted from inline) */

.tb-hero{position:relative;overflow:hidden;padding:10rem 0 5rem;background:var(--bg);}
    .tb-hero .blob--1{width:500px;height:500px;top:-100px;right:-80px;}
    .tb-hero .blob--2{width:400px;height:400px;bottom:-60px;left:-60px;}
    .tb-hero__inner{position:relative;z-index:2;}
    .tb-hero__kicker{display:inline-flex;align-items:center;gap:.6rem;font-family:var(--font-mono);font-size:.68rem;color:var(--text-muted);background:var(--surface);border:1px solid var(--border);padding:.4rem 1rem;border-radius:var(--radius-pill);margin-bottom:2rem;letter-spacing:.08em;}
    .tb-hero__title{font-family:var(--font-display);font-size:clamp(3.5rem,8vw,9rem);line-height:.9;letter-spacing:.02em;margin-bottom:1.5rem;}
    .tb-hero__sub{font-size:1.05rem;font-weight:300;line-height:1.7;color:var(--text-muted);max-width:480px;font-style:italic;}

    .tb-studio{padding:4rem 0 8rem;}
    .tb-layout{display:grid;grid-template-columns:420px 1fr;gap:3rem;align-items:start;}
    @media(max-width:1100px){.tb-layout{grid-template-columns:360px 1fr;}}
    @media(max-width:900px){.tb-layout{grid-template-columns:1fr;}}

    .tb-controls{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-xl);padding:2rem;display:flex;flex-direction:column;gap:0;position:sticky;top:90px;max-height:calc(100vh - 110px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--border) transparent;}
    .tb-controls::-webkit-scrollbar{width:4px;}
    .tb-controls::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px;}
    .tb-controls__title{font-family:var(--font-display);font-size:1.5rem;letter-spacing:.06em;padding-bottom:1.2rem;border-bottom:1px solid var(--border);margin-bottom:1.5rem;flex-shrink:0;}

    .ctrl-section{border-bottom:1px solid var(--border);}
    .ctrl-section:last-of-type{border-bottom:none;}
    .ctrl-section__header{display:flex;align-items:center;justify-content:space-between;padding:.9rem 0;cursor:pointer;font-family:var(--font-mono);font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);transition:color .2s;user-select:none;}
    .ctrl-section__header:hover{color:var(--text);}
    .ctrl-section__arrow{transition:transform .25s;font-size:.8rem;}
    .ctrl-section.open .ctrl-section__arrow{transform:rotate(180deg);}
    .ctrl-section__body{display:none;flex-direction:column;gap:1.1rem;padding-bottom:1.2rem;}
    .ctrl-section.open .ctrl-section__body{display:flex;}

    .ctrl-row{display:flex;flex-direction:column;gap:.5rem;}
    .ctrl-label{font-family:var(--font-mono);font-size:.6rem;color:var(--text-muted);letter-spacing:.12em;text-transform:uppercase;display:flex;align-items:center;justify-content:space-between;}
    .ctrl-label-val{color:var(--orange);}

    .color-row{display:flex;gap:.6rem;align-items:center;}
    .color-swatch{width:36px;height:36px;border-radius:var(--radius-sm);border:1px solid var(--border);cursor:pointer;flex-shrink:0;transition:transform .15s;position:relative;overflow:hidden;}
    .color-swatch:hover{transform:scale(1.08);}
    .color-swatch input[type=color]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;border:none;}
    .color-hex-input{flex:1;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.45rem .8rem;font-family:var(--font-mono);font-size:.78rem;color:var(--text);outline:none;transition:border-color .2s;}
    .color-hex-input:focus{border-color:rgba(108,78,243,.45);}

    .preset-grid{display:flex;flex-wrap:wrap;gap:.4rem;}
    .preset-dot{width:26px;height:26px;border-radius:50%;cursor:pointer;border:2px solid transparent;transition:all .18s;flex-shrink:0;}
    .preset-dot:hover,.preset-dot.active{border-color:var(--text);transform:scale(1.15);}

    .chip-row{display:flex;flex-wrap:wrap;gap:.35rem;}
    .chip{font-family:var(--font-mono);font-size:.62rem;letter-spacing:.04em;padding:.28rem .7rem;border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--bg-alt);color:var(--text-muted);cursor:pointer;transition:all .18s;}
    .chip:hover{border-color:var(--border-strong);color:var(--text);}
    .chip.on{background:rgba(108,78,243,.15);border-color:rgba(108,78,243,.35);color:#a78bfa;}

    .ctrl-slider{height:4px;background:var(--border);border-radius:2px;outline:none;-webkit-appearance:none;cursor:pointer;width:100%;}
    .ctrl-slider::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:var(--orange);cursor:pointer;box-shadow:0 0 6px rgba(249,130,25,.4);}

    .toggle-row{display:flex;align-items:center;justify-content:space-between;}
    .toggle-label{font-family:var(--font-mono);font-size:.65rem;color:var(--text-muted);letter-spacing:.08em;}
    .toggle-switch{width:40px;height:22px;background:var(--border);border-radius:11px;cursor:pointer;position:relative;transition:background .2s;flex-shrink:0;}
    .toggle-switch::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .2s;}
    .toggle-switch.on{background:var(--orange);}
    .toggle-switch.on::after{transform:translateX(18px);}

    .font-preview{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.7rem 1rem;color:var(--text);transition:font-family .2s;}

    .export-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:.6rem;background:linear-gradient(135deg,var(--orange),#e06c00);color:#fff;font-size:.88rem;font-weight:500;padding:.85rem;border-radius:var(--radius-md);transition:all .25s;box-shadow:0 0 24px rgba(249,130,25,.3);cursor:pointer;margin-top:1.5rem;border:none;font-family:var(--font-body);}
    .export-btn:hover{transform:translateY(-2px);box-shadow:0 8px 32px rgba(249,130,25,.5);}

    /* Preview */
    .tb-preview{border-radius:var(--radius-xl);overflow:hidden;border:1px solid var(--border);position:sticky;top:90px;}
    .preview-browser-bar{display:flex;align-items:center;gap:.5rem;padding:.65rem 1rem;}
    .browser-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;}
    .browser-url{flex:1;border-radius:var(--radius-pill);padding:.25rem .9rem;margin-left:.4rem;font-family:var(--font-mono);font-size:.62rem;letter-spacing:.04em;}
    #livePreview{padding:2.5rem;min-height:680px;transition:background .35s,color .35s;}
    .lp-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:2.5rem;padding-bottom:1rem;}
    .lp-logo{font-size:1.6rem;letter-spacing:.08em;line-height:1;}
    .lp-links{display:flex;gap:1.2rem;font-size:.82rem;}
    .lp-cta-sm{font-size:.78rem;padding:.42rem 1.1rem;border-radius:100px;font-weight:500;}
    .lp-hero{margin-bottom:2.5rem;}
    .lp-badge{display:inline-flex;align-items:center;gap:.5rem;font-size:.63rem;padding:.32rem .85rem;border-radius:100px;margin-bottom:1.3rem;letter-spacing:.06em;}
    .lp-title{font-size:clamp(2.5rem,5vw,4.5rem);line-height:.92;letter-spacing:.02em;margin-bottom:1rem;}
    .lp-sub{font-size:.9rem;font-weight:300;line-height:1.7;max-width:440px;margin-bottom:1.6rem;}
    .lp-actions{display:flex;gap:.8rem;flex-wrap:wrap;align-items:center;margin-bottom:2rem;}
    .lp-btn-p{font-size:.84rem;font-weight:500;padding:.68rem 1.4rem;border-radius:100px;cursor:default;color:#fff;}
    .lp-btn-g{font-size:.84rem;padding:.68rem 1.4rem;border-radius:100px;cursor:default;background:transparent;}
    .lp-stats{display:flex;gap:2rem;margin-bottom:2.5rem;padding-top:1.5rem;}
    .lp-stat{display:flex;flex-direction:column;gap:.2rem;}
    .lp-stat__num{font-size:2rem;line-height:1;font-weight:700;}
    .lp-stat__label{font-size:.68rem;letter-spacing:.08em;}
    .lp-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin-bottom:2rem;}
    @media(max-width:640px){.lp-cards{grid-template-columns:1fr;}}
    .lp-card{padding:1.2rem;border-radius:14px;}
    .lp-card__icon{font-size:1.3rem;margin-bottom:.6rem;}
    .lp-card__title{font-size:1rem;font-weight:600;margin-bottom:.3rem;letter-spacing:.02em;}
    .lp-card__text{font-size:.78rem;line-height:1.6;}
    .lp-form{padding:1.4rem;border-radius:14px;margin-top:.5rem;}
    .lp-form__title{font-size:.85rem;font-weight:600;margin-bottom:1rem;letter-spacing:.04em;}
    .lp-input{width:100%;padding:.55rem .85rem;border-radius:8px;font-size:.82rem;outline:none;margin-bottom:.6rem;display:block;border-width:1px;border-style:solid;}
    .lp-form-row{display:grid;grid-template-columns:1fr auto;gap:.6rem;margin-top:.4rem;}
    .lp-submit{padding:.55rem 1.2rem;border-radius:8px;font-size:.82rem;font-weight:500;cursor:default;color:#fff;white-space:nowrap;border:none;}
    .lp-tags{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1rem;}
    .lp-tag{font-size:.65rem;padding:.22rem .65rem;border-radius:100px;letter-spacing:.04em;}

    /* Export modal */
    .export-modal{display:none;position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.85);backdrop-filter:blur(8px);align-items:center;justify-content:center;padding:2rem;}
    .export-modal.open{display:flex;}
    .export-box{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-xl);padding:2.5rem;max-width:640px;width:100%;max-height:82vh;overflow-y:auto;}
    .export-tabs{display:flex;gap:.5rem;margin-bottom:1.5rem;}
    .export-tab{font-family:var(--font-mono);font-size:.68rem;letter-spacing:.08em;padding:.4rem 1rem;border-radius:var(--radius-pill);border:1px solid var(--border);background:transparent;color:var(--text-muted);cursor:pointer;transition:all .2s;}
    .export-tab.active{background:rgba(108,78,243,.15);border-color:rgba(108,78,243,.35);color:#a78bfa;}
    .export-code{background:var(--code-bg);border:1px solid var(--border);border-radius:var(--radius-md);padding:1.4rem;font-family:'JetBrains Mono',monospace;font-size:.72rem;line-height:1.85;color:var(--text-muted);white-space:pre;overflow-x:auto;margin-bottom:1.4rem;}
    .export-actions{display:flex;gap:.8rem;flex-wrap:wrap;}
    .modal-close{float:right;background:none;border:none;color:var(--text-muted);font-size:1.4rem;cursor:pointer;margin-top:-.5rem;}

    .back-bar{padding:2rem 0 0;text-align:center;}
    .back-btn{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--font-mono);font-size:.72rem;color:var(--text-muted);background:var(--surface);border:1px solid var(--border);padding:.5rem 1.2rem;border-radius:var(--radius-pill);transition:all .25s;letter-spacing:.05em;}
    .back-btn:hover{color:var(--text);border-color:var(--border-strong);}
