@font-face{font-family:'Barlow Condensed';src:url('/fonts/BarlowCondensed-SemiBold.ttf') format('truetype');font-weight:600;font-display:swap}@font-face{font-family:'Barlow Condensed';src:url('/fonts/BarlowCondensed-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
.cg-page{color:#16263d;padding-bottom:40px}.cg-intro{padding:22px 0 28px}.cg-intro>span,.cg-label{font-size:10px;letter-spacing:.16em;font-weight:800;color:#b1843d}.cg-intro h1{font-size:clamp(34px,4vw,52px);letter-spacing:-1.6px;margin:13px 0}.cg-intro p{font-size:14px;color:#74839a;line-height:1.7}.cg-event-form{display:flex;gap:18px;align-items:flex-end;padding:20px;background:#eaf0f7;border-radius:8px;margin-bottom:25px}.cg-page label{display:grid;gap:9px;font-size:11px;font-weight:700}.cg-event-form label:first-child{width:170px}.cg-event-form label:nth-child(2){flex:1}.cg-page select{width:100%;border:1px solid #c1ccdc;padding:12px;background:white;color:#172b45;border-radius:5px;min-width:0;height:44px;font:inherit;font-size:12px}.cg-page button{border:0;background:#b18a48;color:#fff;padding:14px 20px;cursor:pointer;border-radius:5px;font-size:12px;font-weight:700;min-height:44px}.cg-page button:hover{background:#967137}.cg-page button:disabled{opacity:.5;cursor:wait}.cg-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);gap:30px;align-items:start}.cg-controls{background:#fff;border:1px solid #dce3ed;border-top:3px solid #b18a48;border-radius:8px;padding:23px;position:sticky;top:18px}.cg-controls h2{font-size:24px;letter-spacing:-.6px;margin:12px 0 25px}.cg-controls>label{margin-bottom:20px}.cg-controls .cg-check{display:flex;align-items:center;gap:10px;margin:23px 0;font-size:11px}.cg-check input{accent-color:#b18a48;width:16px;height:16px}.cg-controls>button{width:100%}.cg-controls [role=status]{font-size:10px;line-height:1.7;color:#697c94;min-height:34px}.cg-facts{border-top:1px solid #e4eaf2;padding-top:18px;margin-top:15px}.cg-facts>b{font-size:13px}.cg-facts p{font-size:10px;line-height:1.8;color:#7b8b9f}.cg-preview{padding:20px;background:#dfe5ed;border-radius:8px;display:flex;justify-content:center}.cg-preview canvas{display:block;width:100%;max-width:580px;height:auto;box-shadow:0 12px 35px #14263e22;background:#0b101a}.cg-source{margin:25px 0;border:1px solid #dce3ed;padding:20px;border-radius:7px;background:#fff}.cg-source summary{font-size:12px;font-weight:700;cursor:pointer}.cg-source h2{font-size:17px;margin-top:25px}.cg-source li{padding:9px;font-size:13px}.cg-source small{font-size:10px;color:#7b8b9f;margin-left:12px}.cg-page :focus-visible{outline:3px solid #dcae63;outline-offset:3px}.cg-empty{padding:30px;background:white;color:#7b8b9f}@media(max-width:800px){.cg-workspace{grid-template-columns:210px minmax(0,1fr);gap:18px}.cg-controls{padding:18px}.cg-preview{padding:12px}}@media(max-width:600px){.cg-event-form{flex-wrap:wrap;padding:15px;gap:15px}.cg-event-form label:first-child{width:100%}.cg-event-form label:nth-child(2){flex-basis:100%}.cg-event-form button{width:100%}.cg-workspace{grid-template-columns:1fr}.cg-controls{position:static;display:grid;grid-template-columns:1fr 1fr;gap:15px}.cg-controls>.cg-label,.cg-controls>h2,.cg-controls>.cg-check,.cg-controls>button,.cg-controls>[role=status]{grid-column:1/-1;margin:0}.cg-controls>label{margin:0}.cg-controls>label:nth-of-type(3){grid-column:1/-1}.cg-facts{display:none}.cg-preview{padding:9px}.cg-intro h1{font-size:36px}.cg-intro p{font-size:12px}.cg-source li{font-size:11px}.cg-source small{display:block;margin:5px 0 0}}

.cg-background{padding:15px 0;border-top:1px solid #e4eaf2;border-bottom:1px solid #e4eaf2;margin:0 0 20px}.cg-background input[type=file]{font-size:10px;max-width:100%;width:100%;padding:10px 0;color:#657b95}.cg-background input::file-selector-button{background:#edf1f7;color:#233e60;border:1px solid #c5d0df;border-radius:4px;padding:9px;cursor:pointer;font-size:10px;margin-right:7px}.cg-background p{font-size:10px;line-height:1.7;margin:10px 0;color:#5d728e}.cg-background strong{color:#172b45}.cg-background small{font-size:9px;color:#7b8c9f;line-height:1.7;display:block}.cg-background [data-cg-background-status]:empty{display:none}.cg-background .cg-background-dim{font-size:10px;margin:15px 0}.cg-background input[type=range]{width:100%;accent-color:#b18a48}.cg-background button{font-size:10px;background:#edf1f7;color:#233e60;border:1px solid #c5d0df;min-height:34px;padding:8px 12px}.cg-background [hidden]{display:none!important}@media(max-width:600px){.cg-controls>.cg-background{grid-column:1/-1;width:100%;margin:0}.cg-background input[type=file]{font-size:11px}}
.cg-editor{margin:0 0 24px;background:#fff;border:1px solid #c8d3e1;border-radius:8px;padding:20px}.cg-editor summary{font-size:18px;font-weight:800;cursor:pointer}.cg-editor p{font-size:13px;line-height:1.6;color:#62758e}.cg-editor [role=status]{color:#253f66;font-weight:700;position:sticky;top:0;background:#fff;padding:8px;z-index:1}.ce-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.ce-meta,.ce-fighters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.ce-fighters{grid-template-columns:repeat(2,minmax(0,1fr))}.cg-editor input:not([type=checkbox]){width:100%;box-sizing:border-box;border:1px solid #bccbdd;border-radius:5px;padding:12px;font:inherit;font-size:14px;background:#fff;color:#172b45}.ce-section{margin:24px 0}.ce-section header,.ce-bout-tools,.ce-bout-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.ce-section header{justify-content:space-between}.ce-section h3{font-size:20px}.ce-section h3 small{color:#71829a;font-size:13px}.ce-bout{padding:18px;margin:12px 0;border:1px solid #d4ddea;background:#f6f8fc;border-radius:7px}.ce-bout-tools{margin-bottom:16px}.ce-bout-tools strong{margin-right:auto}.ce-bout-tools label{min-width:140px}.ce-bout-meta{margin-top:16px}.ce-bout-meta label:first-child{flex:1}.ce-bout-meta label:last-child{display:flex;align-items:center}.ce-matches{display:flex;gap:6px;flex-wrap:wrap;font-size:12px;margin-top:8px}.ce-matches button{background:#e2e9f2;color:#1c375a}.ce-fighters button{margin-top:8px}.cg-editor button:disabled{opacity:.4;cursor:not-allowed}@media(max-width:650px){.ce-meta,.ce-fighters{grid-template-columns:1fr}.cg-editor{padding:14px}.ce-bout{padding:12px}.ce-bout-tools strong{width:100%}}
.ce-section-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.ce-section-tabs button{background:#e9eef6;color:#243e60;border:1px solid #bfcde0}.ce-section-tabs button[aria-pressed=true]{background:#243e60;color:white;border-color:#243e60}.ce-section[hidden]{display:none}.ce-fighters>div{position:relative}.ce-matches[hidden]{display:none}.ce-matches{position:absolute;top:69px;left:0;right:0;z-index:5;margin:0;display:block;padding:5px;border:1px solid #bac9dc;border-radius:5px;background:white;box-shadow:0 8px 24px #13284233;color:#243e60}.ce-matches button{display:block;text-align:left;width:100%;margin:0;background:white;color:#1c375a;border-radius:3px;font-size:14px}.ce-matches button:hover,.ce-matches button[aria-selected=true]{background:#e5edf9;color:#153e80}
.ce-photo{display:flex;align-items:center;gap:14px;margin-top:14px;padding:14px;border:1px solid #d4ddea;background:#fff;border-radius:7px;min-width:0}.ce-photo-preview{display:flex;align-items:center;justify-content:center;flex:0 0 68px;height:82px;overflow:hidden;background:linear-gradient(135deg,#eaf0f7,#d8e3ef);border:1px solid #d4ddea;border-radius:5px;color:#5d7594;font-size:22px;font-weight:800}.ce-photo-preview img{width:100%;height:100%;object-fit:contain;object-position:bottom}.ce-photo-controls{min-width:0;flex:1}.ce-photo-controls>span{font-size:11px;color:#536984;font-weight:700}.ce-photo-buttons{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}.ce-photo-buttons button{font-size:11px;padding:9px 11px;margin:0;min-height:36px}.ce-photo-buttons [data-photo-reset]{background:#edf1f7;color:#243e60;border:1px solid #c5d0df}.ce-photo-controls [role=status]{position:static;display:block;background:transparent;padding:0;margin-top:7px;font-size:11px;line-height:1.5;font-weight:500;min-height:0}.ce-photo-controls [role=status]:empty{display:none}.ce-photo [hidden]{display:none!important}.cg-controls>.cg-photo-edit{background:#edf1f7;color:#243e60;border:1px solid #bccbdd;margin-bottom:12px}.cg-controls>.cg-photo-edit:hover{background:#dce6f3}
html[data-theme=dark] .cg-editor,html[data-theme=dark] .cg-source{background:#142337;color:#e2ecfa;border-color:#30455f}html[data-theme=dark] .cg-editor p{color:#acc0d9}html[data-theme=dark] .cg-editor [data-editor-status]{background:#142337;color:#c4dcff}html[data-theme=dark] .ce-bout{background:#102033;border-color:#30455f}html[data-theme=dark] .ce-photo{background:#182c43;border-color:#38516c}html[data-theme=dark] .ce-photo-preview{background:linear-gradient(135deg,#304a65,#20364d);border-color:#47617d;color:#c0d4ed}html[data-theme=dark] .ce-photo-controls>span{color:#b9cce2}html[data-theme=dark] .ce-photo-controls [role=status]{background:transparent;color:#c4dcff}html[data-theme=dark] .cg-editor input:not([type=checkbox]),html[data-theme=dark] .cg-editor select{background:#0d1b2c;color:#edf4ff;border-color:#47617d}html[data-theme=dark] .ce-section h3 small{color:#a6bad3}
@media(max-width:650px){.ce-photo{padding:11px;gap:11px}.ce-photo-preview{flex-basis:60px;height:76px}.ce-photo-buttons button{min-height:40px}.cg-controls>.cg-photo-edit{grid-column:1/-1;margin:0}.ce-photo-controls [role=status]{font-size:11px}}
.ce-photo-preview canvas{display:block;width:100%;height:100%;object-fit:contain}

/* Creator text remains readable when the global dark theme is active. */
[data-theme="dark"] .cg-page{color:#edf4ff}[data-theme="dark"] .cg-intro h1{color:#f4f7ff}[data-theme="dark"] .cg-intro p{color:#b8c9df}[data-theme="dark"] .cg-intro>span{color:#efc878}[data-theme="dark"] .cg-controls,[data-theme="dark"] .cg-event-form,[data-theme="dark"] .cg-editor,[data-theme="dark"] .cg-source{background:#15283e;color:#e9f2ff;border-color:#3b5472}[data-theme="dark"] .cg-page label,[data-theme="dark"] .cg-source summary,[data-theme="dark"] .cg-editor summary{color:#e9f2ff}[data-theme="dark"] .cg-page select{background:#0f2034;border-color:#4b6485;color:#eef5ff}[data-theme="dark"] .cg-facts,[data-theme="dark"] .cg-facts p,[data-theme="dark"] .cg-controls p{color:#b9cce4}
