/* Admin dialog chrome only; TV iframe contents are never restyled. */
body[data-cc-overview-drawer="display"] .cc-shell[data-active-page="overview"] #cc-console-theme { width:min(1040px,92vw); height:min(720px,calc(100dvh - 48px)); max-height:calc(100dvh - 48px); display:flex !important; flex-direction:column; gap:12px; padding:20px; overflow:hidden; border:1px solid #dfe6ee; border-radius:14px; box-shadow:0 18px 60px #0c182629; }
body[data-cc-overview-drawer="display"] #cc-console-theme > .cc-panel-heading { position:static; flex:none; margin:0; padding:0 0 14px; border-bottom:1px solid #e6ebf1; background:white; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-panel-heading h2 { font-size:20px; color:#1b2937; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-panel-heading p { color:#ab803e; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-source-note { flex:none; margin:0; padding:9px 12px; border:0; border-radius:7px; background:#f4f6f9; color:#64748a; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-source-note span { background:#faf5ec; color:#947039; font-size:11px; white-space:nowrap; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-source-note p { font-size:12px; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-settings-layout { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,.88fr) minmax(0,1fr); gap:20px; align-items:start; overflow:hidden; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-settings-preview { position:static; min-width:0; max-height:100%; overflow:auto; padding:0; border:0; border-radius:0; background:white; box-shadow:none; }
body[data-cc-overview-drawer="display"] #cc-console-theme #cc-theme-settings-status { margin-left:auto; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-settings-editor { display:block; min-width:0; height:100%; overflow:auto; padding:0 3px 4px; overscroll-behavior:contain; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-editor-tabs { display:flex; gap:4px; position:sticky; top:0; z-index:2; padding:4px; margin-bottom:14px; background:#f3f5f8; border-radius:8px; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-editor-tabs button { flex:1; border:0; color:#64748a; background:transparent; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-editor-tabs button[aria-selected="true"] { color:#7d6239; background:#faf5ec; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-main-form { display:grid; gap:12px; margin:0; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-main-form > .cc-theme-section:first-child .cc-theme-form-section-heading { display:none; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-section { gap:12px; padding:0; border:0; border-radius:0; background:white; box-shadow:none; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-advanced-form { margin:0; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-advanced-group { padding:12px 0; border:0; border-bottom:1px solid #e6ebf1; border-radius:0; background:white; }
body[data-cc-overview-drawer="display"] #cc-console-theme[data-editor-tab="content"] [data-editor-section]:not([data-editor-section="content"]),
body[data-cc-overview-drawer="display"] #cc-console-theme[data-editor-tab="voice"] [data-editor-section]:not([data-editor-section="voice"]),
body[data-cc-overview-drawer="display"] #cc-console-theme[data-editor-tab="advanced"] [data-editor-section]:not([data-editor-section="advanced"]) { display:none; }
body[data-cc-overview-drawer="display"] #cc-console-theme :is(.cc-theme-section,.cc-theme-advanced-group)[hidden] { display:none; }
body[data-cc-overview-drawer="display"] #cc-console-theme :is(input:not([type=file]):not([type=checkbox]),select) { min-height:38px; height:38px; padding:0 10px; border:1px solid #dfe6ee; border-radius:8px; font-size:14px; color:#243346; background:white; width:100%; min-width:0; }
body[data-cc-overview-drawer="display"] #cc-console-theme button { min-height:38px; padding:0 12px; border:1px solid #dfe6ee; border-radius:8px; font-size:13px; color:#43546a; background:white; box-shadow:none; }
body[data-cc-overview-drawer="display"] #cc-console-theme #cc-open-theme-market { border-color:#dfe6ee !important; color:#43546a !important; background:white !important; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-field-grid { gap:10px 14px; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-main-form label { gap:6px; }
body[data-cc-overview-drawer="display"] #cc-console-theme :is(.cc-theme-assets-shortcut,.cc-theme-voice-preview) { color:#43546a; background:white; min-height:38px; height:38px; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-content-heading strong { font-size:15px; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-content-heading small,
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-content-heading > span { display:none; }
body[data-cc-overview-drawer="display"] #cc-console-theme :is(.cc-theme-content-heading,.cc-theme-form-section-heading) { margin:0; padding:0; border:0; }
#cc-console-theme .de-preview-caption { margin:10px 0; font-size:12px; color:#64748a; line-height:1.6; }
#cc-console-theme .de-field-help { padding:10px 0; border-top:1px solid #e6ebf1; color:#64748a; font-size:12px; }
#cc-console-theme .de-field-help summary { cursor:pointer; }
#cc-console-theme .de-help-notes { display:grid; gap:8px; margin-top:10px; line-height:1.6; }
#cc-console-theme .de-help-notes p { margin:0; }
#cc-console-theme .de-field-help .cc-theme-field-profile { margin:10px 0 0; padding:10px; border-radius:7px; background:#f6f8fb; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-drawer-footer { position:static; flex:none; margin:0; padding:12px 0 0; border-top:1px solid #e6ebf1; background:white; gap:10px; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-drawer-footer .cc-primary-button { color:#ecd4a8; background:#1b2937; border-color:#1b2937; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-save-status { max-width:360px; font-size:12px; line-height:1.5; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-save-status[data-state="draft"] { color:#947039; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-save-status[data-state="error"] { color:#bb3644; }
body[data-cc-overview-drawer="display"] #cc-console-theme :is(input,select,button,summary):focus-visible { outline:2px solid #b8945c; outline-offset:2px; }
/* Scoped asset controls; preserve the TV preview and existing dialog geometry. */
#cc-console-theme { --de-ink:#1b2937; --de-gold:#ecd4a8; --de-muted:#64748a; --de-line:#dfe6ee; --de-surface:#f8fafc; --de-danger:#a72e3b; }
#cc-console-theme .cc-logo-editor-body { display:grid; grid-template-columns:80px minmax(0,1fr); gap:12px; align-items:start; }
#cc-console-theme .cc-logo-editor-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px; }
#cc-console-theme .cc-logo-editor-heading > div { display:grid; gap:4px; }
#cc-console-theme .cc-logo-editor-heading span { font-size:12px; color:var(--de-muted); }
#cc-console-theme #cc-logo-state { font-size:12px; font-style:normal; }
#cc-console-theme .cc-logo-preview { display:grid; grid-template-rows:minmax(0,1fr) auto; place-items:center; gap:4px; height:84px; min-height:0; padding:8px; border:1px dashed var(--de-line); border-radius:8px; font-size:11px; color:var(--de-muted); }
#cc-console-theme .cc-logo-preview img { width:100%; height:46px; object-fit:contain; }
#cc-console-theme .cc-logo-upload-control { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:0; border:0; align-content:start; min-width:0; }
#cc-console-theme .cc-logo-file-trigger { display:grid; place-items:center; min-height:38px !important; padding:0 12px; border:1px solid var(--de-line) !important; border-radius:8px !important; background:white !important; color:var(--de-ink) !important; font-size:13px; cursor:pointer; }
#cc-console-theme #cc-upload-logo { height:38px; min-height:38px !important; padding:0 12px !important; border:1px solid var(--de-ink) !important; border-radius:8px !important; background:var(--de-ink) !important; color:var(--de-gold) !important; font-size:13px; }
#cc-console-theme #cc-upload-logo:disabled { opacity:.45; cursor:not-allowed; }
#cc-console-theme #cc-upload-logo[aria-busy=true] { cursor:wait; }
#cc-console-theme .cc-logo-file-trigger:hover { border-color:#b8945c !important; color:var(--de-ink) !important; }
#cc-console-theme .cc-logo-file-trigger[aria-disabled=true] { opacity:.45; cursor:wait; }
#cc-console-theme #cc-logo-file-name { grid-column:1/-1; text-align:left; font-size:12px; color:var(--de-muted); white-space:normal; overflow-wrap:anywhere; }
#cc-console-theme .cc-logo-upload-control:focus-within .cc-logo-file-trigger { outline:2px solid #b8945c; outline-offset:2px; }
#cc-console-theme #cc-chip-list { display:grid; gap:10px; }
#cc-console-theme .cc-chip-row { display:grid; position:relative; grid-template-columns:52px minmax(0,1fr) auto; gap:10px; padding:12px; border:1px solid var(--de-line); border-radius:9px; background:var(--de-surface); scroll-margin-top:64px; }
#cc-console-theme .cc-chip-index { grid-column:1; grid-row:2; align-self:center; text-align:center; color:var(--de-muted); font-size:11px; }
#cc-console-theme .cc-chip-image-preview { grid-column:1; grid-row:1; width:44px; height:44px; align-self:end; box-shadow:none; }
#cc-console-theme .cc-chip-fields { display:grid; grid-column:2/-1; grid-row:1; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; min-width:0; }
#cc-console-theme .cc-chip-fields label { display:grid; gap:6px; min-width:0; }
#cc-console-theme .cc-chip-fields small { font-size:12px; color:var(--de-muted); white-space:nowrap; }
#cc-console-theme .cc-chip-image-actions { display:flex; grid-column:2; grid-row:2; flex-wrap:wrap; gap:8px; min-width:0; align-items:center; }
#cc-console-theme .cc-chip-image-actions small { flex-basis:100%; font-size:11px; white-space:normal; overflow-wrap:anywhere; color:var(--de-muted); }
#cc-console-theme .cc-chip-image-picker { position:relative; display:grid; place-items:center; min-height:38px; padding:0 10px; border:1px solid var(--de-line); border-radius:8px; background:white; color:var(--de-ink); font-size:12px; cursor:pointer; }
#cc-console-theme .cc-chip-image-picker:focus-within { outline:2px solid #b8945c; outline-offset:2px; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-chip-delete { grid-column:3; grid-row:2; align-self:start; color:var(--de-danger); background:white; font-size:12px; }
#cc-console-theme .cc-chip-delete:hover { border-color:var(--de-danger); }
#cc-console-theme .cc-theme-settings-editor :is(input,select,button,label) { scroll-margin-top:64px; }
@media(max-width:760px) {
 #cc-console-theme .cc-chip-row { grid-template-columns:44px minmax(0,1fr) auto; padding:10px; }
 #cc-console-theme .cc-chip-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #cc-console-theme .cc-chip-fields label:last-child { grid-column:1/-1; }
 #cc-console-theme :is(.cc-logo-file-trigger,.cc-chip-image-picker) { min-height:44px !important; }
 #cc-console-theme #cc-upload-logo { height:44px; min-height:44px !important; }
 #cc-console-theme .cc-logo-upload-control { grid-template-columns:1fr; }
 #cc-console-theme .cc-chip-image-actions { grid-column:2/-1; padding-right:0; }
 #cc-console-theme .cc-chip-delete { grid-row:3; }
 body[data-cc-overview-drawer="display"] .cc-shell[data-active-page="overview"] #cc-console-theme { width:calc(100vw - 20px); height:calc(100dvh - 20px); max-height:calc(100dvh - 20px); padding:14px; }
 body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-settings-layout { display:block; overflow:auto; }
 body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-settings-preview { max-height:none; margin-bottom:16px; }
 body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-settings-editor { height:auto; overflow:visible; }
 body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-field-grid { grid-template-columns:1fr; }
 body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-source-note p { line-height:1.5; }
 body[data-cc-overview-drawer="display"] #cc-console-theme :is(input:not([type=file]),select,button) { min-height:44px; }
 body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-drawer-footer { flex-wrap:wrap; }
 body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-save-status { order:4; width:100%; }
}
@media(prefers-reduced-motion:reduce) { body[data-cc-overview-drawer="display"] #cc-console-theme, body[data-cc-overview-drawer="display"] #cc-console-theme * { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }

/* Projection Logo removal reuses the existing versioned state update. */
#cc-console-theme .cc-logo-editor-heading{flex-wrap:wrap}
#cc-console-theme .cc-logo-editor-heading>div{margin-right:auto}
#cc-console-theme #cc-remove-logo{min-height:38px;padding:0 10px;border:1px solid #e3ccca;border-radius:8px;background:#fff;color:#a34239;font-size:13px;cursor:pointer}
#cc-console-theme #cc-remove-logo:hover{background:#fff6f5}
#cc-console-theme #cc-remove-logo:disabled{opacity:.45;cursor:wait}
#cc-console-theme #cc-remove-logo[hidden]{display:none!important}
@media(max-width:600px){#cc-console-theme #cc-remove-logo{min-height:44px}}

/* Keep mobile editing usable while the on-screen keyboard reduces available height. */
@media (max-width:760px) {
 body[data-cc-overview-drawer="display"] .cc-shell[data-active-page="overview"] #cc-console-theme { height:var(--de-mobile-height,calc(100dvh - 20px));max-height:var(--de-mobile-height,calc(100dvh - 20px));top:var(--de-mobile-top,50%); }
 body[data-cc-overview-drawer="display"] #cc-console-theme :is(input:not([type=file]):not([type=checkbox]),select,textarea) { font-size:16px; }
}
@media (max-width:760px) {
 body[data-cc-overview-drawer="display"] .cc-shell[data-active-page="overview"] #cc-console-theme[data-mobile-short="true"] { padding:10px;gap:8px; }
 body[data-cc-overview-drawer="display"] #cc-console-theme[data-mobile-short="true"] > .cc-panel-heading { padding-bottom:8px; }
 body[data-cc-overview-drawer="display"] #cc-console-theme[data-mobile-short="true"] .cc-panel-heading h2 { font-size:18px; }
 body[data-cc-overview-drawer="display"] #cc-console-theme[data-mobile-short="true"] .cc-panel-heading p,
 body[data-cc-overview-drawer="display"] #cc-console-theme[data-mobile-short="true"] .cc-theme-source-note,
 body[data-cc-overview-drawer="display"] #cc-console-theme[data-mobile-short="true"] .cc-theme-settings-preview,
 body[data-cc-overview-drawer="display"] #cc-console-theme[data-mobile-short="true"] .cc-theme-drawer-footer .cc-theme-market-link { display:none; }
 body[data-cc-overview-drawer="display"] #cc-console-theme[data-mobile-short="true"] .cc-theme-editor-tabs { margin-bottom:8px; }
 body[data-cc-overview-drawer="display"] #cc-console-theme[data-mobile-short="true"] .cc-theme-drawer-footer { padding-top:8px;gap:8px; }
 body[data-cc-overview-drawer="display"] #cc-console-theme[data-mobile-short="true"] .cc-theme-save-status { margin:0;font-size:12px;line-height:1.4; }
}
