/* Dark Emerald opt-in primitives. Applies to static and metadata-rendered UI through semantic classes. */
:root{--tv-bg:#071116;--tv-surface:#0d1b22;--tv-elevated:#12232c;--tv-border:#23343d;--tv-primary:#17c943;--tv-primary-hover:#11a936;--tv-text:#f4f7fb;--tv-muted:#b5c3d3;--tv-live:#ef1734;--tv-warning:#f2b91b;--tv-danger:#ef3651;--tv-radius-control:12px;--tv-radius-card:16px;--tv-radius-panel:20px;--tv-space-1:4px;--tv-space-2:8px;--tv-space-3:12px;--tv-space-4:16px;--tv-space-6:24px;--tv-space-8:32px}
.tv-dark-emerald{color-scheme:dark;background:var(--tv-bg);color:var(--tv-text);font-family:Inter,Segoe UI,Arial,sans-serif}
.tv-dark-emerald .tv-section,.tv-dark-emerald .tv-card,.tv-dark-emerald .tv-editor-panel{background:linear-gradient(145deg,var(--tv-surface),var(--tv-elevated));border:1px solid var(--tv-border);border-radius:var(--tv-radius-card);min-width:0}
.tv-dark-emerald .tv-section{padding:var(--tv-space-4);margin-block:var(--tv-space-3)}
.tv-dark-emerald .tv-section-header{display:flex;align-items:center;justify-content:space-between;gap:var(--tv-space-3);margin-bottom:var(--tv-space-3)}
.tv-dark-emerald .tv-card{padding:var(--tv-space-4);overflow:hidden}
.tv-dark-emerald .tv-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--tv-space-2);min-height:44px;padding:10px 16px;border-radius:var(--tv-radius-control);border:1px solid var(--tv-border);background:var(--tv-elevated);color:var(--tv-text);cursor:pointer}
.tv-dark-emerald .tv-button--primary,.tv-dark-emerald .tv-tab[aria-selected=true]{background:linear-gradient(135deg,#075e25,var(--tv-primary-hover));border-color:var(--tv-primary);color:#fff}
.tv-dark-emerald .tv-button--primary:hover{background:var(--tv-primary-hover)}
.tv-dark-emerald .tv-tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:thin;padding:4px;background:var(--tv-surface);border:1px solid var(--tv-border);border-radius:var(--tv-radius-control)}
.tv-dark-emerald .tv-tab{flex:0 0 auto;min-height:44px;padding:10px 16px;border-radius:10px;background:transparent;border:0;color:var(--tv-text)}
.tv-dark-emerald .tv-hero{position:relative;isolation:isolate;overflow:hidden;border-radius:var(--tv-radius-panel);background:#10262b;min-height:180px}
.tv-dark-emerald .tv-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(3,13,17,.96),rgba(3,13,17,.12))}
.tv-dark-emerald .tv-status--live{background:var(--tv-live);color:#fff}
.tv-dark-emerald .tv-status--success{background:#075e25;color:#fff;border:1px solid var(--tv-primary)}
.tv-dark-emerald :is(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #9affb4;outline-offset:2px}
@media(min-width:1100px){.tv-dark-emerald .tv-editor-layout{display:grid;grid-template-columns:minmax(210px,1fr) minmax(0,3fr) minmax(270px,1.2fr);gap:var(--tv-space-4)}}
@media(max-width:767px){.tv-dark-emerald .tv-section{padding:12px}.tv-dark-emerald .tv-card{padding:12px}.tv-dark-emerald .tv-editor-layout{display:flex;flex-direction:column;gap:12px}}
@media(prefers-reduced-motion:reduce){.tv-dark-emerald *, .tv-dark-emerald *::before,.tv-dark-emerald *::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Metadata runtime: semantic variants use exactly the same visual tokens as authored pages. */
.tv-dark-emerald .tv-app-shell{background:var(--tv-bg);color:var(--tv-text)}
.tv-dark-emerald .tv-editor-panel,.tv-dark-emerald .tv-data-form,.tv-dark-emerald .tv-data-grid,.tv-dark-emerald .tv-entity-card,.tv-dark-emerald .tv-activity-row,.tv-dark-emerald .tv-stat{background:var(--tv-surface);color:var(--tv-text);border:1px solid var(--tv-border);border-radius:var(--tv-radius-card)}
.tv-dark-emerald .tv-action-button{border-radius:var(--tv-radius-control);min-height:44px}
.tv-dark-emerald .tv-status-pill{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;padding:3px 12px}
.tv-dark-emerald .tv-data-grid{overflow-x:auto}
.tv-dark-emerald .tv-activity-row{display:flex;align-items:center;gap:var(--tv-space-3);padding:var(--tv-space-3)}
.tv-dark-emerald .tv-stat{padding:var(--tv-space-3);font-variant-numeric:tabular-nums}
.tv-dark-emerald .tv-entity-card,.tv-dark-emerald .tv-data-form,.tv-dark-emerald .tv-editor-panel{padding:var(--tv-space-4)}
.tv-dark-emerald .tv-hero{color:var(--tv-text)}
.tv-dark-emerald .tv-section{color:var(--tv-text)}
.tv-dark-emerald .tv-tabs{color:var(--tv-text)}
