/* Admin presentation only. Never load in the TV shell or theme-preview iframe. */
:root { --match-admin-ink:#1b2937; --match-admin-muted:#64748a; --match-admin-line:#dfe6ee; --match-admin-gold:#ab803e; --match-admin-soft:#faf5ec; }
.cc-shell[data-active-page] .cc-content { background:#f4f7fb; }
.cc-shell[data-active-page]:not([data-active-page="overview"]) .cc-content { background:#f4f7fb; }
.cc-shell[data-active-page] .cc-content > .cc-panel { border-color:var(--match-admin-line); border-radius:12px; box-shadow:none; }
.cc-shell[data-active-page] .cc-content :is(.cc-panel-heading,.cc-section-heading) h2 { color:var(--match-admin-ink); }
.cc-shell[data-active-page] .cc-kicker { color:var(--match-admin-gold); }
.cc-shell[data-active-page] .cc-content > .cc-panel > .cc-panel-heading > div > p { color:var(--match-admin-gold); }
.cc-shell[data-active-page] .cc-nav a.is-active { color:#ecd4a8; background:#253242; box-shadow:inset 3px 0 #c9a66c; }
.cc-shell[data-active-page] .cc-nav a.is-active::before { background:#c9a66c; }
.cc-shell[data-active-page="overview"] .cc-overview-event-bar[hidden] { display:none; }
.cc-shell[data-active-page] :is(button,a,input,select,textarea,summary):focus-visible { outline:2px solid #b8945c; outline-offset:3px; }
.cc-modal-backdrop { box-sizing:border-box; padding:24px; background:#08132166; backdrop-filter:blur(3px); overflow:auto; overscroll-behavior:contain; }
.cc-modal-backdrop[hidden] { display:none; }
body.cc-legacy-modal-open { overflow:hidden; }
.cc-modal-backdrop > .cc-confirm-modal { box-sizing:border-box; max-height:calc(100dvh - 48px); overflow:auto; padding:24px; border:1px solid var(--match-admin-line); border-radius:14px; color:var(--match-admin-ink); background:#fff; box-shadow:0 18px 60px #0c182629; overscroll-behavior:contain; }
.cc-confirm-modal .cc-kicker { margin:0 0 6px; color:var(--match-admin-gold); font-size:11px; letter-spacing:.06em; }
.cc-confirm-modal h2 { font-size:22px; line-height:1.4; letter-spacing:0; }
.cc-confirm-modal > p:not(.cc-kicker) { color:var(--match-admin-muted); font-size:13px; line-height:1.65; }
.cc-confirm-modal .cc-confirm-mark { width:36px; height:36px; margin-bottom:14px; background:#faf0e0; color:#96713a; box-shadow:none; }
.cc-confirm-modal .cc-confirm-details > div { padding:10px 12px; border-color:var(--match-admin-line); background:#f6f8fb; }
.cc-confirm-modal .cc-confirm-details > div.is-emphasis { border-color:#dec79f; background:var(--match-admin-soft); }
.cc-confirm-modal .cc-confirm-details span { color:var(--match-admin-muted); font-size:12px; letter-spacing:0; }
.cc-confirm-modal .cc-confirm-details strong { color:var(--match-admin-ink); font-size:14px; overflow-wrap:anywhere; }
.cc-confirm-modal :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { box-sizing:border-box; min-width:0; border:1px solid var(--match-admin-line); border-radius:8px; color:var(--match-admin-ink); background:#fff; font-size:14px; }
.cc-confirm-modal .cc-confirm-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.cc-confirm-modal .cc-confirm-actions :is(button,a) { flex:0 1 auto; min-height:40px; padding:9px 18px; border:1px solid var(--match-admin-line); border-radius:8px; background:#fff; color:#43546a; font-size:14px; line-height:1.4; font-weight:600; box-shadow:none; }
.cc-confirm-modal .cc-confirm-actions :is(.cc-confirm-submit,#cc-market-install) { color:#ecd4a8; background:var(--match-admin-ink); border-color:var(--match-admin-ink); }
.cc-confirm-modal .cc-confirm-actions .is-danger { color:#fff; background:#c53642; border-color:#c53642; }
.cc-confirm-modal .cc-form-error { color:#bb3644; font-size:13px; overflow-wrap:anywhere; }
.cc-confirm-modal .cc-form-error:empty { display:none; }
.cc-confirm-modal :is(button,a,input,select,textarea):focus-visible { outline:2px solid #b8945c; outline-offset:3px; }
.cc-confirm-modal button:disabled { opacity:.45; cursor:not-allowed; }
.cc-template-modal { width:min(1100px,calc(100vw - 48px)); }
.cc-template-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.cc-modal-close { display:grid; width:36px; height:36px; min-height:36px; flex:none; place-items:center; padding:0; border:1px solid var(--match-admin-line); border-radius:8px; color:#617187; background:#fff; font-size:22px; cursor:pointer; }
.cc-template-modal .cc-template-workflow-hint { margin:14px 0 18px; padding:10px 12px; border:0; border-left:3px solid #c5a365; border-radius:0 6px 6px 0; color:var(--match-admin-muted); background:#f6f8fb; font-size:13px; }
.cc-template-modal > form > label { gap:6px; }
.cc-template-modal > form > label > span { color:var(--match-admin-muted); font-size:13px; font-weight:600; }
.cc-template-modal :is(input,select) { height:38px; padding:0 10px; font-size:14px; border-radius:8px; }
.cc-template-modal :is(input,select):focus { border-color:#b8945c; box-shadow:0 0 0 2px #b8945c22; }
#cc-template-modal #cc-template-form :is(input,select):focus { border-color:#b8945c; box-shadow:0 0 0 2px #b8945c22; }
#cc-template-modal #cc-template-form :is(input,select):focus-visible { outline:2px solid #b8945c; outline-offset:2px; }
.cc-template-modal .cc-template-editor-head,.cc-template-modal .cc-template-level-row { grid-template-columns:122px minmax(105px,1.1fr) repeat(4,minmax(84px,1fr)) 38px; gap:8px; }
.cc-template-modal .cc-template-editor-head { margin-top:18px; padding:10px 0; border-radius:8px; background:#f3f5f8; font-size:12px; color:var(--match-admin-muted); }
.cc-template-modal .cc-template-editor-head span { padding-inline:10px; }
.cc-template-modal .cc-template-editor-head span:last-child { padding:0; text-align:center; }
.cc-template-modal .cc-template-editor-list { max-height:min(44vh,420px); margin-top:10px; gap:7px; padding:3px 3px 5px; }
.cc-template-modal .cc-template-level-row { padding:0; border:0; background:none; border-radius:0; }
.cc-template-modal .cc-template-level-row button { min-width:38px; min-height:38px; border:1px solid #efced3; border-radius:8px; color:#bf3949; background:#fff8f9; font-size:20px; }
.cc-template-modal .cc-template-level-row input:disabled { color:#8994a4; background:#f3f5f8; }
.cc-template-modal .cc-template-editor-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; }
.cc-template-modal .cc-template-editor-actions button { min-height:36px; padding:7px 12px; border:1px solid var(--match-admin-line); border-radius:8px; color:#43546a; background:#fff; font-size:13px; }
.cc-template-summary { margin-left:auto; color:var(--match-admin-muted); font-size:12px; }
.cc-template-modal .cc-confirm-actions { position:sticky; bottom:-24px; z-index:1; margin:18px 0 -24px; padding:14px 0 24px; border-top:1px solid #e6ebf1; background:#fff; }
.cc-template-modal .cc-confirm-actions button { min-height:40px; }
.cc-template-modal [aria-invalid=true] { border-color:#c53642; }
.cc-mode-modal .cc-mode-options > button { border:1px solid var(--match-admin-line); background:#f6f8fb; color:var(--match-admin-ink); box-shadow:none; }
.cc-mode-modal .cc-mode-options :is(small,em) { color:var(--match-admin-muted); }
.cc-feature-upgrade-modal::before { display:none; }
.cc-feature-upgrade-modal ul { color:var(--match-admin-muted); }
.cc-shell[data-active-page="interaction"] .cc-panel .cc-confirm-actions button:first-child,
.cc-shell[data-active-page="apk"] .cc-apk-body > a { background:var(--match-admin-ink); border-color:var(--match-admin-ink); color:#ecd4a8; box-shadow:none; }
.cc-shell[data-active-page="apk"] .cc-apk-icon { color:var(--match-admin-gold); background:var(--match-admin-soft); }
.cc-shell[data-active-page="apk"] .cc-apk-guide-topics li { padding:14px; border-radius:8px; }
.cc-shell[data-active-page="apk"] .cc-apk-guide-topics li > span { color:var(--match-admin-gold); }
.cc-shell[data-active-page="apk"] .cc-apk-body { padding:20px 22px; }
.cc-shell[data-active-page="apk"] :is(.cc-apk-page,.cc-apk-guide) > .cc-panel-heading { padding:16px 22px; }
/* Shared asset/device windows inherit the same chrome, not the TV preview. */
:is(.pc-modal-panel,.poster-asset-dialog,.ad-device-dialog) { border-color:var(--match-admin-line); border-radius:14px; color:var(--match-admin-ink); background:#fff; box-shadow:0 18px 60px #0c182629; }
.ad-device-dialog :is(input,select):focus { outline:2px solid #b8945c; outline-offset:2px; border-color:#b8945c; box-shadow:0 0 0 2px #b8945c22; }
.pc-modal { background:#08132166; backdrop-filter:blur(3px); overscroll-behavior:contain; }
.pc-modal-panel > button[data-pc="close"] { float:right; background:#fff; color:#617187; }
.pc-modal-panel h3 { font-size:18px; line-height:1.5; margin:0 70px 18px 0; }
body[data-cc-overview-drawer="display"] #cc-console-theme .cc-theme-drawer-footer .cc-primary-button,
.cc-shell[data-active-page="overview"] #cc-tournament-create-form > button { background:var(--match-admin-ink); border-color:var(--match-admin-ink); color:#ecd4a8; box-shadow:none; }
body[data-cc-overview-drawer="display"] #cc-console-theme :is(input,select):focus-visible,
body[data-cc-overview-drawer="tv"] .cc-tv-routing-item :is(input,select,button,a):focus-visible { outline:2px solid #b8945c; outline-offset:3px; }
#cc-console-theme .cc-panel-heading > div > p { color:var(--match-admin-gold); }
#cc-open-theme-market { border-color:var(--match-admin-line); color:#43546a; background:#f6f8fb; }
.cc-market-modal-close { border-color:var(--match-admin-line); color:#617187; background:#fff; box-shadow:none; }
@media(max-width:1050px) {
  .cc-template-modal .cc-template-editor-head { display:none; }
  .cc-template-modal .cc-template-editor-list { margin-top:14px; }
  .cc-template-modal .cc-template-level-row { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:12px; border:1px solid var(--match-admin-line); border-radius:8px; background:#fafbfc; }
  .cc-template-modal .cc-template-level-field { display:grid; gap:5px; }
  .cc-template-modal .cc-template-level-field > span { display:block; color:var(--match-admin-muted); font-size:12px; }
  .cc-template-modal .cc-template-level-row button { grid-column:1/-1; justify-self:end; width:auto; min-height:36px; padding:7px 12px; font-size:13px; }
}
@media(max-width:640px) {
  .cc-modal-backdrop { padding:10px; }
  .cc-modal-backdrop > .cc-confirm-modal { padding:18px; max-height:calc(100dvh - 20px); }
  .cc-template-modal { width:100%; }
  .cc-template-modal .cc-template-level-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cc-template-modal :is(input,select) { height:44px; font-size:16px; }
  .cc-template-summary { margin:4px 0 0; width:100%; }
  .cc-template-modal .cc-confirm-actions { bottom:-18px; margin-bottom:-18px; padding:12px 0 18px; }
  .cc-confirm-modal .cc-confirm-actions { flex-wrap:wrap; }
  .cc-confirm-modal .cc-confirm-actions :is(button,a) { min-height:44px; }
}
@media(pointer:coarse) { .cc-template-modal :is(button,input,select),.cc-modal-close { min-height:44px; } }
@media(prefers-reduced-motion:reduce) { .cc-modal-backdrop,.cc-modal-backdrop > *,.cc-template-modal :is(input,select,button) { animation:none!important; transition:none!important; } }
