/* C theme for platform templates; no article/editor styles are imported here. */
.c-shell{color-scheme:dark;--canvas:#0a0f1e;--surface:#111a2d;--surface-soft:#182339;--line:#28344b;--line-strong:#3b4961;--ink:#edf2fc;--ink-soft:#b3c0d3;--ink-muted:#9cacc3;--muted:#9cacc3;--xh-heading:#f3f6ff;--xh-primary:#00e676;--xh-primary-dark:#6cf7ac;--xh-primary-bg:#10362f;--xh-sidebar-bg:#080d18;--success:#48ec9c;--success-bg:#0b352a;--warning:#ffd16b;--warning-bg:#3a2e18;--danger:#ff858b;--danger-bg:#3a202c;--info:#83bbff;--info-bg:#192e4b;--radius-sm:7px;--radius-md:14px;--shadow:none;background:var(--canvas);font-size:13px}
.c-shell :focus-visible{outline:3px solid #7ef9b7;outline-offset:3px}
.c-shell [hidden]{display:none!important}
.c-shell .app-shell{grid-template-columns:244px minmax(0,1fr);align-items:start}
.c-shell .sidebar{position:sticky;top:0;height:100dvh;min-height:0;overflow-y:auto;padding:28px 16px 20px}
.c-shell .brand{padding:0 8px 28px;color:var(--ink)}
.c-shell .brand-mark{border-radius:10px;background:var(--xh-primary);color:#05251b;border:0;width:34px;height:34px}
.c-shell .sidebar-nav{display:block;flex:1;margin-top:26px}
.c-shell .nav-group{margin-bottom:28px}
.c-shell .nav-group__label{display:block;font-size:11px;padding-bottom:9px;color:#8b9cb5}
.c-shell .nav-link{display:flex;align-items:center;gap:12px;min-height:42px;padding:10px 12px;font-size:13px;border-radius:8px;border-left-width:2px;color:var(--ink-soft)}
.c-shell .nav-link::before{content:"";width:12px;height:12px;border:1.5px solid currentColor;border-radius:3px;opacity:.75;flex:none}
.c-shell .nav-link:hover{background:#152035;color:#fff}
.c-shell .nav-link.is-active{background:#0e302c;color:var(--xh-primary);border-left-color:var(--xh-primary)}
.c-shell .nav-link.is-active::before{box-shadow:inset 0 3px currentColor}
.c-shell .sidebar-footer{font-size:11px;color:#9cacc3}
.c-event-card{display:block;padding:14px 15px;border:1px solid var(--line);background:#121a2a;border-radius:12px;color:var(--ink)}
.c-event-card>span{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin-bottom:5px}
.c-event-card strong{display:block;overflow-wrap:anywhere;font-size:13px;line-height:1.6}
.c-event-card small{display:block;color:var(--xh-primary);font-size:11px;margin-top:6px}
.c-shell .topbar{min-height:64px;padding:12px 30px;background:#0c1323;gap:16px;flex-wrap:wrap}
.c-shell .topbar__context{flex-wrap:wrap;gap:8px;font-size:12px}
.c-shell .topbar__context strong{white-space:normal;overflow-wrap:anywhere}
.c-shell .topbar__actions{flex-wrap:wrap;gap:8px}
.c-shell .topbar__actions>*{padding-left:10px;margin-left:0}
.c-shell .topbar-action{color:var(--ink-soft);white-space:nowrap}
.c-shell .topbar-action--button{background:transparent;color:var(--ink-soft)}
.c-shell .user-chip__avatar{background:#134939;color:#66ffb0}
.c-shell .environment-badge{background:#273024;color:#f5cc77}
.c-shell .page-main{width:100%;max-width:1760px;padding:28px 32px 48px}
.c-shell h1{font-size:26px;letter-spacing:-.04em;font-weight:800}
.c-shell .page-header{align-items:start;gap:24px;margin-bottom:22px}
.c-shell .page-header__copy{min-width:205px;padding-top:2px}
.c-shell .page-summary{font-size:12px;line-height:1.8;color:var(--ink-soft)}
.c-shell .breadcrumb{margin-bottom:12px;font-size:11px}
.c-shell .page-header__actions{align-items:start;gap:9px;max-width:750px}
.c-shell .button,.c-shell button{border-radius:8px;min-height:36px;font-size:12px;font-weight:650;white-space:nowrap;transition:background .15s,border-color .15s}
.c-shell .button--primary,.c-shell button[type=submit]{background:var(--xh-primary);color:#04271b;border:1px solid var(--xh-primary)}
.c-shell .button--primary:hover,.c-shell button[type=submit]:hover{background:#66f4ab;color:#04271b}
.c-shell .button--secondary{border:1px solid var(--line-strong);background:#18243b;color:var(--ink)}
.c-shell .button--secondary:hover{border-color:#6f869f;background:#21314b;color:#fff}
.c-shell .button--quiet{background:transparent;color:var(--ink-soft);font-weight:500}
.c-shell .button--quiet:hover{background:#21314b;color:#fff}
.c-shell button:disabled,.c-shell [aria-disabled=true]{opacity:.45;cursor:not-allowed;pointer-events:none}
.c-shell input,.c-shell select,.c-shell textarea{background:#1b2639;border:1px solid var(--line-strong);color:var(--ink);border-radius:8px;min-height:36px;max-width:100%}
.c-shell input::placeholder{color:#9aabc2}
.c-shell .wechat-report-entry{display:grid;grid-template-columns:repeat(3,max-content);gap:8px;flex-basis:100%;width:100%;padding:14px 16px;background:#111b2b;border:1px solid var(--line);border-radius:12px}
.c-shell .wechat-report-entry>label,.c-shell .wechat-report-entry>select,.c-shell .wechat-report-entry>[role=status]{grid-column:1/-1;width:100%;max-width:100%}
.c-shell .wechat-report-entry>label{font-size:11px;color:var(--ink-soft);margin:0}
.c-shell .wechat-report-entry>[role=status]{font-size:11px;line-height:1.7;overflow-wrap:anywhere;white-space:normal}
.c-shell .filter-toolbar{padding:17px;background:var(--surface);gap:12px;border-radius:14px;margin-bottom:16px}
.c-shell .filter-field--search{flex:1 1 260px}
.c-shell .filter-field label{font-size:11px;color:var(--ink-soft);margin-bottom:6px}
.c-shell .filter-field:not(.filter-field--search){flex:0 1 130px;min-width:110px}
.c-filter-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 16px;border:1px solid var(--line);border-radius:13px;background:var(--surface);margin-bottom:16px}
.c-filter-tabs button{background:#182239;color:#b3c0d3;border:1px solid #34415b;padding:7px 15px;border-radius:24px}
.c-filter-tabs button[aria-pressed=true]{background:#0c382e;border-color:#00a962;color:#48f6a0}
.c-filter-count{margin-left:auto;color:var(--muted);font-size:11px}
.c-dot{width:6px;height:6px;border-radius:50%;display:inline-block;margin-right:8px}
.c-dot--green{background:#00e676}.c-dot--amber{background:#ffcc67}
.c-shell .panel__header{padding:18px 20px;background:#182239;border-radius:14px 14px 0 0}
.c-shell .panel__title{font-size:15px;color:var(--ink)}
.c-shell .table-wrap{border-radius:0 0 14px 14px;scrollbar-color:#526684 #111a2d;scrollbar-width:thin}
.c-shell .matches-table{min-width:1020px;table-layout:fixed}
.c-shell .matches-table th,.c-shell .matches-table td{padding:14px 12px;white-space:normal;border-bottom:1px solid #26324a;font-size:12px}
.c-shell .matches-table th{background:#131e32;color:#a9b8ce;font-size:11px;font-weight:500}
.c-shell .matches-table th:nth-child(1){width:106px}
.c-shell .matches-table th:nth-child(2){width:140px}
.c-shell .matches-table th:nth-child(4){width:88px}
.c-shell .matches-table th:nth-child(5){width:114px}
.c-shell .matches-table th:nth-child(6){width:246px}
.c-shell .matches-table tbody tr:hover,.c-shell .matches-table tbody tr:hover td{background:#18263b}
.c-shell .match-row--pending td{background:transparent}
.c-shell .match-row--pending td:first-child{border-left:0;padding-left:12px}
.c-shell .c-match-time strong{display:block;font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}
.c-shell .c-match-time small,.c-shell .c-match-round small{display:block;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.5}
.c-shell .c-match-round>span{display:inline-block;padding:2px 7px;border:1px solid #3b4961;border-radius:6px;background:#1c283e;font-size:11px;color:#c5cfe0}
.c-fixture,.c-fixture-head{display:grid;grid-template-columns:minmax(70px,1fr) 112px minmax(70px,1fr);gap:12px;align-items:center}
.c-shell th.c-fixture-head{display:table-cell}
.c-fixture-head>span{display:inline-block;text-align:center;width:calc((100% - 112px)/2)}
.c-fixture-head>span:nth-child(2){width:112px}
.c-home{text-align:right}.c-away{text-align:left}
.c-fixture strong{font-size:13px;font-weight:650;overflow-wrap:anywhere;line-height:1.6}
.c-shell .matches-table .score-display{display:flex;align-items:center;justify-content:center;min-height:40px;width:112px;padding:7px 5px;background:#202b40;border:1px solid #435068;border-radius:8px;font-size:16px;color:#f3f6ff;font-variant-numeric:tabular-nums;text-align:center;overflow-wrap:anywhere}
.c-shell .matches-table .score-display--empty{font-size:11px;color:#b1bed1;background:transparent;border-style:dashed}
.c-shell .matches-table .score-display--review{font-size:12px;color:var(--warning);background:var(--warning-bg);border-color:#8b702c}
.c-shell .table-actions{gap:4px;justify-content:flex-end;flex-wrap:wrap}
.c-shell .table-actions .button{font-size:11px;min-height:30px;padding:5px 8px}
.c-shell .table-actions button[data-confirm]{color:#ff858b;border:1px solid #904453;background:#38222d}
.c-shell .c-actions-head{text-align:right}
.c-shell .badge{font-size:10px;padding:3px 7px;white-space:normal;line-height:1.4;border-radius:20px}
.c-shell .badge--neutral{background:var(--info-bg);color:var(--info);border-color:#365784}
.c-scroll-hint{margin:0;padding:9px 16px;color:#6cf7ac;background:#0d3029;font-size:12px}
.c-shell .pager{margin-top:18px;color:var(--muted);font-size:12px}
.c-menu-toggle,.c-menu-close,.c-menu-backdrop{display:none}
@media(min-width:1600px){.c-shell .page-header__actions{max-width:850px}.c-shell .wechat-report-entry{grid-template-columns:repeat(3,max-content)}}
@media(max-width:1250px){.c-shell .app-shell{grid-template-columns:220px minmax(0,1fr)}.c-shell .page-main{padding:24px}.c-shell .page-header{flex-wrap:wrap}.c-shell .page-header__actions{justify-content:flex-start;max-width:none;width:100%}.c-shell .wechat-report-entry{flex-basis:100%}}
@media(max-width:900px){.c-shell .app-shell{display:block}.c-shell .sidebar{position:fixed;z-index:51;inset:0 auto 0 0;width:min(300px,85vw);height:100dvh;transform:translateX(-100%);visibility:hidden;transition:transform .2s,visibility .2s}.c-shell.c-menu-open .sidebar{transform:none;visibility:visible}.c-shell .sidebar-nav{display:block}.c-shell .nav-group__label{display:block}.c-shell .nav-group{margin-bottom:24px}.c-shell .brand{padding-bottom:24px}.c-shell .topbar{position:relative;display:flex;padding:12px 16px}.c-shell .topbar__context{flex:1;min-width:180px}.c-shell .topbar__actions{width:100%;justify-content:flex-end}.c-shell .runtime-build{white-space:normal}.c-shell .c-menu-toggle,.c-shell .c-menu-close{display:inline-flex;background:#17243a;color:var(--ink);border:1px solid var(--line-strong)}.c-shell .c-menu-close{align-self:flex-end;margin-bottom:18px}.c-shell .c-menu-backdrop{display:block;position:fixed;inset:0;z-index:50;border:0;border-radius:0;background:#0009;width:100%;height:100%;cursor:default}.c-shell.c-menu-open{overflow:hidden}.c-shell .page-main{padding:22px 16px 36px}.c-shell .c-filter-count{width:100%;margin:4px 0 0}}
@media(max-width:480px){.c-shell .wechat-report-entry{grid-template-columns:1fr 1fr;padding:12px}.c-shell .wechat-report-entry .button{white-space:normal;min-height:42px;padding:8px}.c-shell .wechat-report-entry .button:nth-of-type(3){grid-column:1/-1}.c-shell .filter-toolbar{gap:10px;padding:14px}.c-shell .filter-field:not(.filter-field--search){flex:1 1 110px}.c-shell .topbar__actions>.user-chip{margin-right:auto}.c-shell .topbar__actions>*{padding-left:0;border:0}.c-shell .c-filter-tabs{padding:10px;gap:6px}.c-shell .c-filter-tabs button{padding:7px 12px}.c-shell .page-header__actions{gap:8px}}

.c-shell .nav-link::before{display:none}.c-shell .c-nav-icon{width:16px;height:16px;flex:none;opacity:.85}.c-sidebar-account{border-top:1px solid var(--line);padding:18px 8px 0;margin-top:12px}.c-sidebar-account .button-row{gap:2px;margin-top:10px}.c-shell .c-sidebar-account .button--quiet[type=submit]{background:transparent;border-color:transparent;color:var(--ink-soft)}

/* Shared C components: operational pages keep their existing forms and data. */
.c-shell .panel{min-width:0;margin-bottom:20px;overflow:visible}
.c-shell .panel__header{flex-wrap:wrap;gap:12px}
.c-shell .panel__body{padding:22px}
.c-shell .panel__body>h2:first-child{margin-top:0}
.c-shell .panel__body>p:last-child{margin-bottom:0}
.c-shell .panel__header .button-row{gap:6px}
.c-shell .panel__header .button{min-height:32px}
.c-shell .panel__footer{padding-top:4px}
.c-shell .section-heading{align-items:center;gap:12px;flex-wrap:wrap;margin:26px 0 12px}
.c-shell .section-heading h2{margin:0;font-size:15px;color:var(--ink)}
.c-shell .filter-toolbar+.panel{margin-top:16px}
.c-shell .form-grid,.c-shell .two-column,.c-shell .summary-list{min-width:0}
.c-shell .form-field,.c-shell .form-field>*,.c-shell .form-grid>*{min-width:0}
.c-shell .form-field label{margin-bottom:7px}
.c-shell .form-field{gap:7px}
.c-shell .form-help,.c-shell .field-help{line-height:1.8;color:var(--muted)}
.c-shell label{line-height:1.6;color:var(--ink-soft)}
.c-shell textarea{min-height:120px;line-height:1.7;padding:12px;resize:vertical}
.c-shell input[type=checkbox],.c-shell input[type=radio]{width:17px;height:17px;min-height:0;padding:0;accent-color:var(--xh-primary);vertical-align:middle}
.c-shell input[type=file]{height:auto;min-height:58px;padding:12px;border-style:dashed;line-height:1.8}
.c-shell input::file-selector-button{font:inherit;padding:6px 12px;border:1px solid var(--line-strong);border-radius:6px;background:#26364e;color:var(--ink);margin-right:12px;cursor:pointer}
.c-shell input:disabled,.c-shell select:disabled,.c-shell textarea:disabled{background:#182133;color:#a4afc1;border-color:#354159;opacity:.7;cursor:not-allowed}
.c-shell .button--danger,.c-shell button.button--danger[type=submit],.c-shell button.danger[type=submit]{background:var(--danger-bg);border-color:#98444f;color:#ffadb1}
.c-shell .button--danger:hover,.c-shell button.button--danger[type=submit]:hover,.c-shell button.danger[type=submit]:hover{background:#532637;border-color:#e26b77;color:#ffd9dc}
.c-shell button.button--secondary[type=submit]{background:#18243b;border-color:var(--line-strong);color:var(--ink)}
.c-shell button.button--secondary[type=submit]:hover{background:#263850;border-color:#6f869f}
.c-shell button.button--quiet[type=submit],.c-shell .topbar button.topbar-action--button[type=submit]{background:transparent;border-color:transparent;color:var(--ink-soft)}
.c-shell button.button--quiet[type=submit]:hover,.c-shell .topbar button.topbar-action--button[type=submit]:hover{background:#21314b;color:var(--ink)}
.c-shell button:active:not(:disabled),.c-shell .button:active:not([aria-disabled=true]){transform:translateY(1px)}
.c-shell .notice{border:1px solid #355d83;border-left:3px solid #83bbff;background:#142c46;color:#c5e2ff;border-radius:9px;line-height:1.8}
.c-shell .alert,.c-shell .error{padding:14px 16px;border:1px solid #9b4651;border-left:3px solid var(--danger);background:#35202d;color:#ffd3d5;border-radius:9px;line-height:1.8;margin:16px 0}
.c-shell .alert--warning,.c-shell .import-warnings{border-color:#806637;border-left:3px solid var(--warning);background:var(--warning-bg);color:#ffe0a2;border-radius:9px;padding:13px 16px;line-height:1.8}
.c-shell .alert--info{border-color:#355d83;background:#142c46;color:#c5e2ff}
.c-shell .badge--muted{background:#222c3e;border-color:#42516b;color:#b7c4d8}
.c-shell .badge--success{border-color:#277958}
.c-shell .badge--warning{border-color:#887033}
.c-shell .badge--danger{border-color:#93434e}
.c-shell .badge--info{border-color:#406693}
.c-shell .badge{max-width:100%}
.c-shell table:not(.matches-table) th{background:#172239;color:#a9bad2;font-size:11px;font-weight:600;line-height:1.6;padding:12px 14px}
.c-shell table:not(.matches-table) td{font-size:13px;line-height:1.7;padding:13px 14px}
.c-shell tbody tr:hover{background:#19263c}
.c-shell table:not(.matches-table) td.primary-cell{color:var(--ink);white-space:normal;overflow-wrap:anywhere;min-width:140px}
.c-shell .technical-cell{font-size:11px;color:var(--muted)}
.c-shell .numeric{font-variant-numeric:tabular-nums}
.c-shell .event-option{background:#151f33;border-color:#34435b;padding:20px;gap:20px}
.c-shell .event-option:hover{border-color:#688577;background:#172d31}
.c-shell .event-option__name{font-size:16px;line-height:1.6;overflow-wrap:anywhere}
.c-shell .event-option__meta{margin-top:10px;gap:8px}
.c-shell .event-option>.form-actions{flex-shrink:0;align-items:center;margin-top:0}
.c-shell .event-list{gap:12px}
.c-shell .metric-strip{border-radius:14px;margin-bottom:22px;background:#121d31}
.c-shell .metric-group__title{padding:16px 20px 2px;color:#b8c7dc;font-size:12px;letter-spacing:.04em}
.c-shell .metric{padding:18px 20px}
.c-shell .metric dd{font-size:30px;font-weight:750;letter-spacing:-.035em}
.c-shell .metric dt{font-size:11px}
.c-shell .metric-group__status{padding:12px 20px;font-size:11px;line-height:1.8}
.c-shell .summary-list{gap:18px 24px}
.c-shell .summary-list dd{margin-top:7px;color:var(--ink);line-height:1.7;overflow-wrap:anywhere}
.c-shell .summary-list dt{font-size:11px}
.c-shell .summary-list dd .badge{vertical-align:middle}
.c-shell .match-detail-score .match-scoreline{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:18px;line-height:1.7;overflow-wrap:anywhere}
.c-shell .match-detail-score .match-scoreline .score-display{font-size:28px;padding:10px 18px;border:1px solid #42516b;background:#202d43;border-radius:10px;text-align:center;white-space:normal}
.c-shell .match-detail-score .match-scoreline .score-display--empty{font-size:14px}
.c-shell .danger-zone{border-color:#7c3c49}
.c-shell .danger-zone .panel__header{background:#302031}
.c-shell .danger-zone .panel__title{color:#ffb5bd}
.c-shell .admin-management__body{background:#172238;border-color:#3c4c66}
.c-shell .admin-action{background:#111b2d}
.c-shell .admin-action h3{color:#d7e3f5}
.c-shell details summary{cursor:pointer;line-height:1.7}
.c-shell .import-bind-form select:disabled{color:#a4afc1;background:#182133;border-color:#354159}
.c-shell .import-actions .button--primary:disabled,.c-shell .import-bind-form button:disabled{color:#b1bdd0;background:#24334b;border-color:#394962;opacity:.65}
.c-shell .import-summary__grid strong{font-size:21px;color:var(--ink)}
.c-shell .import-events-details{padding-top:10px}
.c-shell .stack>*+*{margin-top:12px}
.c-shell .schedule-batch__row{padding:16px;background:#182238;gap:12px}
.c-shell .event-editor__row{padding:18px 0;gap:12px}
.c-shell .referee-template-candidate{background:#182238;border-color:#3c4c66;padding:16px}
.c-shell .empty-state{padding:48px 24px}
.c-shell .empty-state__mark{border-radius:10px;color:#81e9b2;background:#132d29;border-color:#27684c}
.c-shell.auth-body{background:#0a0f1e}
.c-shell .auth-shell{min-height:100dvh;padding:24px}
.c-shell .auth-card{background:#111c30;border:1px solid #34455e;border-radius:18px;padding:36px;box-shadow:0 24px 80px #0005}
.c-shell .auth-card__eyebrow{color:#79dba8;letter-spacing:.08em}
.c-shell .auth-card h1{color:var(--ink);font-size:26px}
.c-shell .auth-card input{min-height:44px}
.c-shell .auth-card button[type=submit]{min-height:44px}
.c-shell .auth-card .muted{line-height:1.8}
@media(max-width:1100px){.c-shell .two-column{grid-template-columns:1fr}.c-shell .event-editor__row{grid-template-columns:repeat(2,minmax(0,1fr))}.c-shell .event-editor__remove{justify-self:start}}
@media(max-width:700px){.c-shell .panel__body{padding:17px}.c-shell .panel__header{padding:15px 17px}.c-shell .summary-list,.c-shell .match-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.c-shell .metric-strip{grid-template-columns:1fr}.c-shell .metric-group{grid-column:1/-1;border-right:0;border-top:1px solid var(--line)}.c-shell .metric-group:first-child{border-top:0}.c-shell .metric-group--competition .metric-group__items{grid-template-columns:repeat(3,minmax(0,1fr))}.c-shell .metric dd{font-size:27px}.c-shell .event-option{flex-wrap:wrap;padding:16px}.c-shell .event-option .form-actions{flex-wrap:wrap;gap:8px}.c-shell .schedule-batch__row{grid-template-columns:1fr}.c-shell .page-header__copy{min-width:0}.c-shell .page-header__actions{max-width:100%}.c-shell .import-summary__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.c-shell .match-detail-score .match-scoreline{gap:10px;font-size:14px}.c-shell .match-detail-score .match-scoreline .score-display{padding:10px;font-size:23px}.c-shell .form-actions{flex-wrap:wrap;gap:10px}}
@media(max-width:420px){.c-shell .summary-list,.c-shell .match-detail-facts,.c-shell .form-grid,.c-shell .event-editor__row{grid-template-columns:1fr}.c-shell .auth-card{padding:26px 22px}.c-shell .metric{padding:16px}.c-shell .event-option .form-actions{width:100%}}

/* Full-width form footer avoids stretched buttons beside multiline fields. */
.c-shell .form-grid>.form-actions{grid-column:1/-1;align-items:center;justify-content:flex-end;border-top:1px solid var(--line);padding-top:18px;margin-top:6px}
.c-shell .form-grid>label:has(textarea){grid-column:1/-1}
.c-shell fieldset{min-width:0;margin:0;border:1px solid var(--line-strong);border-radius:9px;padding:12px 16px}
.c-shell fieldset legend{font-size:12px;color:var(--ink-soft);padding:0 6px}
.c-shell fieldset label:has(input[type=radio]){display:inline-flex;align-items:center;gap:7px;margin-right:20px}
.c-shell .admin-management summary{color:var(--ink-soft);border:1px solid var(--line-strong);border-radius:7px;padding:4px 10px}
.c-shell .admin-management summary:hover{color:var(--ink);background:#26364d}

.c-shell .match-detail-score .match-scoreline>strong:first-child{text-align:right}.c-shell .match-detail-score .match-scoreline>strong:last-child{text-align:left}
