.th-root{--th-bg:#0B1020;--th-panel:#141B2E;--th-raised:#1B2650;--th-inset:#0B1020;--th-hover:#1B2650;--th-line:#2A3350;--th-line-2:#34427A;--th-line-side:#2A3350;--th-line-input:#34427A;--th-line-btn:#34427A;--th-ink:#E8ECF8;--th-body:#B4BDD6;--th-soft:#B4BDD6;--th-muted:#8E99B8;--th-faint:#8E99B8;--th-btn:#2748D8;--th-btn-hover:#3A5BE0;--th-btn-ink:#ffffff;--th-accent:#9DB0FF;--th-link:#9DB0FF;--th-link-hover:#C5D0FF;--th-meter:#2748D8;--th-logo-bg:#2748D8;--th-nav-on:#1B2650;--th-ok:#6fe0b0;--th-ok-dot:#3ecf8e;--th-ok-bg:#123528;--th-warn:#f0b866;--th-warn-soft:#f0d49a;--th-warn-bg:#2a2620;--th-warn-line:#4a3a1e;--th-danger:#f19a9a;--th-danger-line:#5a2b2b;--th-info-bg:#1B2650;--th-info-ink:#E8ECF8;--th-avatar:#2748D8;--th-r:14px;--th-r-btn:12px;color:var(--th-ink);background:var(--th-bg);min-height:100vh;font:14px/1.5 Inter,-apple-system,Segoe UI,system-ui,sans-serif;-webkit-font-smoothing:antialiased;color-scheme:dark}
.th-root *,.th-root :after,.th-root :before{box-sizing:border-box}
.th-root button,.th-root input,.th-root select,.th-root textarea{font-family:inherit}
.th-root button{cursor:pointer}
.th-root a{color:var(--th-link)}
.th-root a:hover{color:var(--th-link-hover)}
.th-root h1{font-size:28px;line-height:1.25}
.th-root h1,.th-root h2{margin:0;color:var(--th-ink)}
.th-root h2{font-size:16px}
.th-root :focus-visible{outline:2px solid var(--th-accent);outline-offset:2px}
.th-shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh;position:relative}
.th-side{border-right:1px solid var(--th-line-side);padding:20px 16px;display:flex;flex-direction:column;gap:6px;position:sticky;top:0;height:100vh;overflow-y:auto;background:var(--th-panel);z-index:22}
.th-logo{gap:10px;padding:0 8px 16px;text-decoration:none!important;color:var(--th-ink)!important}
.th-logo,.th-logo-mark{display:flex;align-items:center}
.th-logo-mark{width:34px;height:34px;border-radius:9px;background:var(--th-logo-bg);justify-content:center;flex:none}
.th-logo-name{font-weight:700;color:var(--th-ink);font-size:18px;line-height:1.25}
.th-logo-by{font-size:12px;color:var(--th-muted)}
.th-nav{display:flex;flex-direction:column;gap:4px}
.th-root a.th-nav-link{display:flex;align-items:center;gap:12px;height:44px;padding:0 12px;border-radius:12px;color:var(--th-body);text-decoration:none;font-weight:500;font-size:15px}
.th-root a.th-nav-link svg{flex:none;opacity:.9}
.th-root a.th-nav-link:hover{background:var(--th-hover);color:#fff}
.th-root a.th-nav-link.is-active{background:var(--th-nav-on);color:var(--th-accent);font-weight:700}
.th-side-extra{display:flex;flex-direction:column;gap:6px;padding:0 6px}
.th-side-extra-title{font-size:12px;color:var(--th-muted);font-weight:600;letter-spacing:.04em}
.th-root a.th-side-item{display:block;padding:8px 10px;border-radius:8px;color:var(--th-soft);text-decoration:none}
.th-root a.th-side-item:hover{background:var(--th-hover)}
.th-root a.th-side-item.is-active{background:var(--th-hover);color:var(--th-ink);font-weight:600}
.th-side-foot{margin-top:auto;gap:12px}
.th-plan-card,.th-side-foot{display:flex;flex-direction:column}
.th-plan-card{padding:14px;gap:0;background:var(--th-inset)!important}
.th-plan-card b{font-weight:700;font-size:14px}
.th-user{gap:10px;padding:0 4px}
.th-avatar,.th-user{display:flex;align-items:center}
.th-avatar{width:32px;height:32px;border-radius:50%;background:var(--th-avatar);justify-content:center;font-weight:700;font-size:14px;flex:none;color:#fff}
.th-user-text{min-width:0}
.th-user-name{font-weight:600;font-size:14px}
.th-user-mail,.th-user-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-user-mail{font-size:13px;color:var(--th-muted)}
.th-linkish{border:0;background:none;padding:0;color:var(--th-link);font-weight:600;font-size:13px;text-align:left;text-decoration:none}
.th-linkish:hover{color:var(--th-link-hover);text-decoration:underline}
.th-main{min-width:0;display:flex;flex-direction:column}
.th-topbar{display:none}
.th-page{flex:1 1;padding:32px 40px;display:flex;flex-direction:column;gap:0;width:100%;max-width:1240px}
.th-foot{margin-top:auto;padding-top:18px;border-top:1px solid var(--th-line-side);color:var(--th-muted);font-size:13px}
.th-scrim{position:fixed;inset:0;background:rgba(0,0,0,.6);border:0;z-index:21}
@media (max-width:880px){.th-shell{grid-template-columns:minmax(0,1fr)}
.th-side{position:fixed;inset:0 auto 0 0;width:280px;transform:translateX(-102%);transition:transform .18s ease}
.th-shell.is-side-open .th-side{transform:none}
.th-topbar{display:flex;align-items:center;gap:12px;height:56px;padding:0 16px;border-bottom:1px solid var(--th-line-side);position:sticky;top:0;background:var(--th-bg);z-index:5}
.th-page{padding:20px 16px 40px}
}
.th-card{background:var(--th-panel);border:1px solid var(--th-line);border-radius:var(--th-r)}
.th-card--warn{border-color:var(--th-warn-line)}
.th-card-pad{padding:18px 20px}
.th-stack{gap:14px}
.th-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.th-muted{color:var(--th-muted)}
.th-soft{color:var(--th-soft)}
.th-small{font-size:13px}
.th-tiny{font-size:12px}
.th-strong{font-weight:700}
.th-spacer{flex:1 1}
.th-mono{font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace}
.th-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.th-page-head{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.th-page-head-main{flex:1 1 300px;min-width:0}
.th-page-sub{color:var(--th-muted);margin-top:4px}
.th-back{font-size:13px}
.th-back,.th-btn,.th-root a.th-btn{font-weight:600;text-decoration:none}
.th-btn,.th-root a.th-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border-radius:var(--th-r-btn);border:1px solid var(--th-line);background:var(--th-panel);color:var(--th-ink);font-size:15px;white-space:nowrap}
.th-btn:hover,.th-root a.th-btn:hover{background:var(--th-hover);color:var(--th-ink)}
.th-btn--primary,.th-btn-primary,.th-root a.th-btn--primary,.th-root a.th-btn-primary{background:var(--th-btn);border-color:var(--th-btn);color:var(--th-btn-ink);font-weight:600}
.th-btn--primary:hover,.th-btn-primary:hover,.th-root a.th-btn--primary:hover,.th-root a.th-btn-primary:hover{background:var(--th-btn-hover);border-color:var(--th-btn-hover);color:var(--th-btn-ink)}
.th-btn--danger,.th-btn-danger{border-color:var(--th-danger-line);color:var(--th-danger)}
.th-btn--danger:hover,.th-btn-danger:hover{background:#2a1515}
.th-btn--lg,.th-btn-lg{height:44px;font-size:15px}
.th-btn--sm,.th-btn-sm{height:40px;padding:0 12px;border-radius:12px;font-size:14px}
.th-btn--icon,.th-btn-icon{width:36px;padding:0;height:36px;border-radius:8px}
.th-btn--block,.th-btn-block{width:100%}
.th-btn[aria-disabled=true],.th-btn[disabled]{opacity:.5;cursor:default;pointer-events:none}
.th-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.th-field>span.th-label{font-weight:600}
.th-input,.th-select,.th-textarea{height:40px;border-radius:10px;border:1px solid var(--th-line-input);background:var(--th-bg);color:#fff;padding:0 12px;font-size:14px;width:100%;min-width:0}
.th-select{padding:0 10px}
.th-input--sm,.th-select--sm{height:34px;border-radius:8px;border-color:var(--th-line-btn);color:var(--th-ink);padding:0 8px}
.th-input--center,.th-input--code{text-align:center}
.th-input--code{height:52px;font-size:26px;font-weight:700;letter-spacing:6px;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;text-transform:uppercase}
.th-textarea{height:auto;padding:10px 12px;min-height:84px;resize:vertical}
.th-input:disabled,.th-select:disabled,.th-textarea:disabled{opacity:.55}
.th-check{display:flex;gap:10px;align-items:flex-start;padding:7px 0;cursor:pointer}
.th-check input{width:18px;height:18px;margin-top:2px;accent-color:#3fa58a;flex:none}
.th-check-hint{color:var(--th-muted);font-size:13px;display:block}
.th-check input:disabled+span{opacity:.6}
.th-form-error{color:var(--th-danger);font-size:13px}
.th-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;background:#262a31;color:var(--th-soft)}
.th-pill--ok{background:var(--th-ok-bg);color:var(--th-ok)}
.th-pill--warn{background:var(--th-warn-bg);color:var(--th-warn)}
.th-pill--sm{padding:3px 9px}
.th-dot{width:8px;height:8px;border-radius:50%;background:var(--th-faint);flex:none;display:inline-block}
.th-dot--ok{background:var(--th-ok-dot)}
.th-dot--warn{background:var(--th-warn)}
.th-meter{height:6px;border-radius:999px;background:var(--th-line);overflow:hidden}
.th-meter>i{display:block;height:100%;background:var(--th-meter);border-radius:999px}
.th-meter>i.is-full{background:var(--th-warn)}
.th-meter--lg{height:8px;border-radius:8px}
.th-banner{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;padding:12px 16px;border-radius:12px;background:var(--th-info-bg);color:var(--th-info-ink);line-height:1.5}
.th-banner--warn{background:var(--th-warn-bg);color:var(--th-warn-soft);border:1px solid var(--th-warn-line)}
.th-banner--err{background:#2a1515;color:var(--th-danger);border:1px solid var(--th-danger-line)}
.th-banner-text{flex:1 1 260px;min-width:0}
.th-note{padding:10px 12px;background:var(--th-inset);color:var(--th-soft);font-size:13px}
.th-info,.th-note{border-radius:10px}
.th-info{display:flex;gap:10px;padding:12px 14px;background:var(--th-info-bg);color:var(--th-info-ink);line-height:1.5}
.th-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}
.th-stat{padding:18px 20px}
.th-stat-label{color:var(--th-soft)}
.th-stat-value{font-size:32px;font-weight:700;margin-top:10px;line-height:1.2}
.th-stat-value small{font-size:18px;color:var(--th-muted);font-weight:600}
.th-stat-value--ok{color:var(--th-ok)}
.th-stat-value--warn{color:var(--th-warn)}
.th-table-wrap{overflow-x:auto}
.th-table{width:100%;border-collapse:collapse;min-width:680px}
.th-table th{color:var(--th-muted);font-size:12px;text-align:left;font-weight:600;padding:12px 8px}
.th-table td:first-child,.th-table th:first-child{padding-left:20px}
.th-table td:last-child,.th-table th:last-child{padding-right:20px}
.th-table td{padding:14px 8px;border-top:1px solid var(--th-line-2);vertical-align:middle}
.th-table td.th-actions{text-align:right;white-space:nowrap}
.th-table th.th-actions{text-align:right}
.th-root a.th-cell-link{color:var(--th-ink);text-decoration:none;font-weight:600;display:inline-flex;align-items:center;gap:8px}
.th-root a.th-cell-link:hover{color:#fff;text-decoration:underline}
.th-card-head{padding:14px 20px;font-weight:700;font-size:16px}
.th-card-foot{border-top:1px solid var(--th-line-2);padding:14px 20px;gap:10px;justify-content:space-between;color:var(--th-muted)}
.th-attn,.th-card-foot{display:flex;flex-wrap:wrap}
.th-attn{align-items:center;gap:12px}
.th-attn-text{color:var(--th-muted);flex:1 1 240px;min-width:0}
.th-steps{display:flex;flex-wrap:wrap;gap:18px;padding:16px 20px;color:var(--th-soft)}
.th-step{flex:1 1 220px}
.th-step b{display:block;color:var(--th-ink)}
.th-empty{padding:28px 24px;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
.th-empty h2{font-size:18px}
.th-empty p{margin:0;max-width:460px;color:var(--th-soft)}
.th-skeleton{height:14px;border-radius:6px;background:linear-gradient(90deg,#1b1f26,#242932,#1b1f26);background-size:200% 100%;animation:th-shimmer 1.4s linear infinite}
@keyframes th-shimmer{to{background-position:-200% 0}
}
.th-modal-root{position:fixed;inset:0;z-index:60}
.th-modal-scrim{position:absolute;inset:0;background:rgba(0,0,0,.6);border:0;width:100%}
.th-modal-backdrop{position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(5,10,24,.65)}
.th-modal{position:absolute;top:90px;left:50%;transform:translateX(-50%);width:min(460px,92%);max-height:calc(100vh - 120px);overflow-y:auto;padding:22px;display:flex;flex-direction:column;gap:16px;background:var(--th-raised);border:1px solid var(--th-line);border-radius:var(--th-r)}
.th-modal-backdrop .th-modal{position:relative;top:auto;left:auto;transform:none}
.th-modal-head{display:flex;align-items:center}
.th-modal-title{flex:1 1;font-size:20px;font-weight:700;margin:0}
.th-x{border:0;background:transparent;color:var(--th-muted);font-size:20px;width:36px;height:36px;border-radius:8px}
.th-x:hover{background:var(--th-hover);color:var(--th-ink)}
.th-drawer{position:fixed;top:0;bottom:0;width:min(400px,100%);border-left:1px solid #2c3139;padding:22px;display:flex;flex-direction:column;gap:16px;box-shadow:-12px 0 30px rgba(0,0,0,.4);overflow-y:auto;z-index:50}
.th-drawer,.th-menu{right:0;background:var(--th-raised)}
.th-menu{position:absolute;top:36px;min-width:170px;border:1px solid var(--th-line);border-radius:10px;padding:4px;z-index:10;text-align:left;box-shadow:0 10px 30px rgba(0,0,0,.45)}
.th-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;color:var(--th-ink);padding:8px 10px;border-radius:7px;font-size:14px}
.th-menu button:hover{background:var(--th-hover)}
.th-menu button.is-danger{color:var(--th-danger)}
.th-menu-wrap{position:relative;display:inline-block}
.th-tabs{display:flex;gap:4px;border-bottom:1px solid var(--th-line);flex-wrap:wrap}
.th-tab{height:42px;padding:0 16px;border:0;border-bottom:2px solid transparent;background:transparent;font-weight:600;font-size:14px;color:var(--th-muted)}
.th-tab.is-active{border-bottom-color:var(--th-meter);color:var(--th-ink)}
.th-rule{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:var(--th-inset);border:1px solid var(--th-line-2)}
.th-rule.is-drop{border-color:var(--th-meter)}
.th-grab{border:0;background:transparent;color:var(--th-faint);cursor:grab;padding:4px;letter-spacing:-2px}
.th-days{display:inline-flex;gap:4px}
.th-day{height:30px;min-width:36px;padding:0 6px;border-radius:7px;border:1px solid var(--th-line-btn);background:transparent;color:var(--th-muted);font-size:12px;font-weight:600}
.th-day.is-on{background:var(--th-nav-on);color:var(--th-accent);border-color:var(--th-btn)}
.th-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;max-width:980px}
.th-settings-grid>.th-span{grid-column:1/-1}
.th-log-row{display:flex;gap:14px;padding:12px 20px;border-bottom:1px solid var(--th-line-2)}
.th-log-row:last-child{border-bottom:0}
.th-log-time{width:120px;flex:none;color:var(--th-muted)}
.th-title-input{height:44px;width:min(100%,520px);margin-left:-8px;padding:0 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--th-ink);font-size:28px;font-weight:700}
.th-title-input:focus,.th-title-input:hover:not(:disabled){border-color:var(--th-line-input);background:var(--th-bg)}
.th-items{overflow:hidden}
.th-item{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--th-line-2)}
.th-item:last-child{border-bottom:0}
.th-item.is-selected{background:#16201d}
.th-item.is-drop{box-shadow:inset 0 2px 0 var(--th-meter)}
.th-item.is-off{opacity:.55}
.th-badge{flex:none;min-width:62px;text-align:center;padding:4px 8px;border-radius:6px;font-size:11px;font-weight:700;color:#cfd3d8;background:#262a31;letter-spacing:.03em}
.th-badge--kpi{color:#8fdcc6;background:var(--th-info-bg)}
.th-badge--announce{color:var(--th-warn-soft);background:var(--th-warn-bg)}
.th-badge--clock{color:#a9c1ff;background:#1b2238}
.th-badge--qr{color:#d9c8ff;background:#241d38}
.th-badge--countdown{color:#ffc9b0;background:#2f221c}
.th-item-main{flex:1 1 220px;min-width:0}
.th-item-title{font-weight:600}
.th-item-sub{font-size:13px;color:var(--th-muted)}
.th-add-row{display:flex;flex-wrap:wrap;gap:8px}
.th-add{height:36px;padding:0 12px;border-radius:9px;border:1px dashed var(--th-line-input);background:transparent;color:var(--th-link);font-weight:600}
.th-add:hover{background:var(--th-hover)}
.th-add[disabled]{opacity:.45;cursor:default}
.th-progress{height:8px;border-radius:8px;background:#1d3a30;overflow:hidden;width:100%}
.th-progress>i{display:block;height:100%;background:var(--th-meter);transition:width .3s}
.th-preview{border-radius:10px;background:#000;border:1px solid var(--th-line);aspect-ratio:16/9;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px;overflow:hidden;gap:4px;word-break:break-word}
.th-preview--light{background:#f5f6f8;color:#111}
.th-preview-big{font-size:28px;font-weight:700}
.th-price{font-size:32px;font-weight:800;line-height:1.1}
.th-price small{font-size:14px;color:var(--th-muted);font-weight:500}
.th-price-equiv{font-size:13px;color:var(--th-muted);min-height:1.2em}
.th-plan-head{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap}
.th-plan-head>div:first-child{flex:1 1;min-width:200px}
.th-period{display:inline-flex;padding:4px;border-radius:14px;background:color-mix(in srgb,var(--th-line) 70%,transparent);gap:4px;margin-left:auto}
.th-period__btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:11px;font-size:15px;font-weight:600;border:1px solid transparent;background:transparent;color:var(--th-muted);cursor:pointer}
.th-period__btn.is-on{background:var(--th-panel,var(--th-card,#141b2e));border-color:var(--th-line);color:var(--th-ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.th-period__save{padding:1px 8px;border-radius:999px;background:color-mix(in srgb,var(--th-btn) 22%,transparent);color:var(--th-btn);font-size:12px;font-weight:700}
.th-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:960px}
@media (max-width:900px){.th-plan-grid{grid-template-columns:1fr}
.th-period{margin-left:0}
}
.th-plan-pane{padding:20px;display:flex;flex-direction:column;gap:10px;min-height:100%}
.th-plan-pane--premium{border:2px solid var(--th-btn)}
.th-plan-pane--current{box-shadow:0 0 0 1px var(--th-btn)}
.th-plan-title-row{display:flex;align-items:center;gap:8px}
.th-plan-title{font-size:18px;font-weight:700}
.th-plan-badge{padding:2px 10px;border-radius:999px;background:color-mix(in srgb,var(--th-line) 80%,transparent);color:var(--th-muted);font-size:12px;font-weight:700}
.th-plan-features{display:flex;flex-direction:column;gap:8px;flex:1 1;margin:2px 0 8px}
.th-plan-check{display:flex;gap:10px;align-items:center;font-size:14px;color:var(--th-ink)}
.th-plan-check__icon{color:#15803d;display:inline-flex;flex:none}
.th-btn--muted{background:transparent!important;color:var(--th-muted)!important;border:1px solid var(--th-line)!important;cursor:default}
.th-plan-pane .th-btn,.th-plan-pane .th-google{width:100%;margin-top:auto}
.th-eyebrow{font-size:12px;font-weight:600;letter-spacing:.08em;color:var(--th-muted)}
.th-stack{display:flex;flex-direction:column}
.th-tiny{font-size:13px}
.th-google,.th-small{font-size:14px}
.th-google{background:#fff!important;color:#1f1f1f!important;display:inline-flex;align-items:center;justify-content:center;gap:10px;height:44px;padding:0 18px;border-radius:var(--th-r-btn);border:1px solid #dadce0;background:#fff;color:#1f1f1f;font-weight:600}
.th-google:hover{background:#f1f3f4}
.th-google[disabled]{opacity:.6;cursor:default}
.th-google--block{width:100%}
.th-google--sm{height:38px;font-size:13px}
@media (prefers-reduced-motion:reduce){.th-skeleton{animation:none}
.th-progress>i,.th-side{transition:none}
}
.th-dash-head{display:flex;align-items:center;gap:12px}
.th-dash-head h1{letter-spacing:-.3px}
.th-dash-meta{margin-left:auto;font-size:13px;color:var(--th-muted)}
.th-stats-row{margin-top:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.th-stat{padding:12px 10px;text-align:center;background:var(--th-panel);border:1px solid var(--th-line);border-radius:var(--th-r)}
.th-stat b{display:block;font-size:22px;font-weight:700;color:var(--th-btn);line-height:1.1}
.th-stat span{display:block;margin-top:4px;font-size:12px;color:var(--th-muted)}
.th-plan-meter{margin-top:20px;padding-top:4px}
.th-plan-meter__row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:6px}
.th-plan-meter__bar{height:6px;border-radius:999px;background:#dde2ec;overflow:hidden}
.th-plan-meter__bar>i{display:block;height:100%;border-radius:999px;background:var(--th-btn)}
.th-quickbar{gap:10px;padding:14px;flex-wrap:wrap}
.th-play-again,.th-quickbar{margin-top:16px;display:flex;background:var(--th-panel);border:1px solid var(--th-line);border-radius:var(--th-r);align-items:center}
.th-play-again{gap:14px;padding:14px 16px}
.th-play-again__title{font-size:18px;font-weight:700;margin-top:2px}
.th-play-again__meta{font-size:13px;font-weight:500;color:var(--th-muted)}
.th-section-head{margin-top:18px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.th-tpl-row{margin-top:10px;display:flex;gap:12px;flex-wrap:wrap}
.th-tpl-card{flex:1 1;min-width:200px;background:var(--th-panel);border:1px solid var(--th-line);border-radius:var(--th-r);overflow:hidden;display:flex;flex-direction:column}
.th-tpl-card__hero{height:74px;display:flex;align-items:flex-end;justify-content:space-between;padding:10px 14px;gap:8px}
.th-tpl-card__hero-title{font-size:17px;font-weight:800;color:#fff;letter-spacing:-.2px;line-height:1.2}
.th-tpl-card__badge{padding:1px 9px;border-radius:999px;background:var(--th-panel);color:var(--th-ok);font-size:12px;font-weight:700;flex:none}
.th-tpl-card__badge.is-seasonal{color:var(--th-accent)}
.th-tpl-card__badge.is-trending{color:#0b1220;background:#f5d76e}
.th-tpl-card__body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:8px;flex:1 1}
.th-tpl-card__count{font-size:13px;font-weight:600;color:var(--th-muted)}
.th-tpl-card__desc{font-size:14px;line-height:1.4;color:var(--th-body);flex:1 1}
.th-tpl-card__actions{display:flex;gap:8px}
.th-tpl-card__actions .th-btn,.th-tpl-card__actions .th-btn-play{flex:1 1;height:40px;padding:0 12px}
.th-btn-play{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--th-line);border-radius:var(--th-r);background:#fff;color:#0b1220;font:inherit;font-weight:700;font-size:14px;text-decoration:none;cursor:pointer}
.th-btn-play:hover{background:#f3f5f9}
.th-tpl-layout{margin-top:22px;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.th-tpl-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.th-tpl-tile{padding:16px;border:1px solid var(--th-line);background:var(--th-panel);border-radius:var(--th-r);display:flex;flex-direction:column;gap:6px;text-align:left;cursor:pointer;color:inherit;width:100%}
.th-tpl-tile.is-selected{border:2px solid var(--th-btn);background:var(--th-raised)}
.th-tpl-tile__title{font-size:17px;font-weight:700}
.th-tpl-tile__desc{font-size:14px;line-height:1.4;color:var(--th-body)}
.th-tpl-tile__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:2px;font-size:13px;color:var(--th-muted)}
.th-tpl-preview{padding:18px;background:var(--th-panel);border:1px solid var(--th-line);border-radius:var(--th-r);display:flex;flex-direction:column;min-height:360px;max-height:calc(100vh - 180px);overflow:hidden}
.th-tpl-preview__list{margin-top:8px;flex:1 1;min-height:0;overflow:auto}
.th-tpl-preview__q{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #222b45;font-size:14px;line-height:1.4}
.th-tpl-preview__q span.n{flex:none;width:22px;font-size:14px;font-weight:700;color:var(--th-muted)}
.th-tpl-preview__actions{margin-top:14px;display:flex;gap:10px}
.th-tpl-preview__actions .th-btn{flex:1 1}
@media (max-width:960px){.th-tpl-layout{grid-template-columns:1fr}
.th-tpl-preview{max-height:none}
}
