.competition-dialog{width:min(92vw,680px);max-height:88vh;overflow:auto;border:1px solid #ccd5df;border-radius:14px;padding:22px;color:#18334d;background:white}.competition-dialog::backdrop{background:#0008}.competition-dialog label{display:block;margin:10px 0}.competition-dialog select,.competition-dialog input[type=number]{display:block;width:100%;padding:10px;box-sizing:border-box}.competition-dialog button,.edit-score,#runningOrderButton{padding:8px 12px;margin:4px;border:1px solid #c5d2df;border-radius:6px;background:#edf3f8;color:#163858;cursor:pointer}.competition-dialog button:disabled{opacity:.45}.score-fields{display:flex;gap:12px;align-items:center}.score-fields label{flex:1;min-width:0}.order-list{max-height:38vh;overflow:auto;padding-left:26px}.order-list li{padding:7px 0;border-bottom:1px solid #ddd}.order-list li span{display:block}.match-score{margin:6px 10px;font-size:14px}.match-score b{font-size:18px}.match-score small{font-size:11px;color:#64748b}.competition-dialog .status{color:#b42318}

.card-score-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:8px 0}.card-score-controls>div{min-width:0;text-align:center}.card-score-controls small{display:block;overflow-wrap:anywhere;font-size:11px}.card-score-controls>div>div{display:flex;gap:8px;align-items:center;justify-content:center}.card-score-controls button{min-width:30px;min-height:36px;padding:4px;border:1px solid #c5d2df;border-radius:5px;background:#edf3f8;color:#174f94;font-size:20px}.card-score-controls b{font-size:20px}.card-score-status{font-size:12px;color:#a32626}

.running-order-dialog{width:min(94vw,900px);box-sizing:border-box;padding:20px}.running-order-dialog h2{font-size:21px;margin:0 0 12px}.running-order-dialog h3{font-size:17px;margin:16px 0 8px}.running-order-dialog .order-help{font-size:13px;line-height:1.65;overflow-wrap:anywhere}.order-pickers,.order-range{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.order-pickers label,.order-range label{min-width:0}.running-order-dialog select{font-size:14px;min-height:44px;max-width:100%;background:#fff;color:#18334d;border:1px solid #c5d2df;border-radius:6px}.running-order-dialog button{min-height:44px;min-width:44px;margin:0;padding:8px 12px;touch-action:manipulation}.order-stage-list,.order-global-list{margin:0;padding:0;list-style:none;max-height:40vh;overflow-y:auto}.order-global-list{counter-reset:runningOrder;max-height:32vh}.order-stage-list .order-match-row,.order-global-list .order-match-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:10px;border:1px solid #d8e1ea;border-radius:8px;margin:0 0 8px;align-items:center;background:#f8fafc}.order-global-list .order-match-content:before{counter-increment:runningOrder;content:counter(runningOrder) '번째';display:block;font-size:12px;font-weight:700;color:#245da1;margin-bottom:3px}.order-match-content{min-width:0}.order-match-title,.order-match-players,.order-match-tags{display:block;overflow-wrap:anywhere;line-height:1.55}.order-match-title{font-size:14px}.order-match-players{font-size:13px;color:#42566c}.order-match-tags{font-size:12px;font-weight:700;color:#a32626}.order-match-buttons{display:flex;gap:6px;align-items:end;flex-wrap:wrap}.running-order-dialog .order-position-label{margin:0;font-size:11px;color:#42566c}.order-position{width:92px;min-height:44px;font-size:14px}.running-order-dialog input.order-position{width:76px;padding:8px;color:#18334d;background:white;border:1px solid #c5d2df;border-radius:6px}.order-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.order-range .order-add{grid-column:1/-1;justify-self:start}.order-global-review{margin-top:16px}.order-global-review summary{cursor:pointer;font-size:16px;font-weight:700;min-height:44px;display:flex;align-items:center}.order-count{font-size:13px;color:#42566c}.running-order-dialog .order-confirmation{display:flex;gap:10px;align-items:flex-start;line-height:1.6;font-size:14px}.order-confirmation input{width:22px;height:22px;flex:none;margin-top:1px}.order-save{background:#174f94!important;color:white!important}.order-status{font-size:13px;overflow-wrap:anywhere}
@media(max-width:520px){.running-order-dialog{padding:14px;width:calc(100vw - 16px);max-height:90vh}.running-order-dialog h2{font-size:19px}.order-stage-list .order-match-row,.order-global-list .order-match-row{grid-template-columns:minmax(0,1fr);gap:8px;padding:9px}.order-match-buttons{justify-content:flex-end}.order-position{width:88px}.order-pickers,.order-range{gap:8px}.order-pickers label,.order-range label{font-size:13px}.order-buttons>*{flex:1}.order-buttons .order-save{flex:2}.order-stage-list,.order-global-list{max-height:38vh}}
@media(max-width:360px){.running-order-dialog{padding:12px}.running-order-dialog button{padding:8px}.order-match-buttons{gap:5px}.order-position{width:80px}.order-match-title{font-size:13px}.order-match-players{font-size:12px}}

.match-running-order{display:inline-block;font-size:11px;font-weight:600;color:#174f94;background:#eaf2fc;padding:2px 6px;border-radius:4px;white-space:nowrap;margin:2px 0}
#runningOrderStatus{color:#174f94;font-size:13px;line-height:1.55;margin:6px 10px;overflow-wrap:anywhere}#runningOrderStatus:empty{display:none}

.details-order-toolbar{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:8px 0}.details-stage-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.details-stage-heading>h2{margin:0;min-width:0;overflow-wrap:anywhere}.details-order-button,#detailsOrderButton{min-height:44px;padding:8px 12px;border:1px solid #c5d2df;border-radius:6px;background:#edf3f8;color:#163858;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer;touch-action:manipulation;flex:none;max-width:100%;overflow-wrap:anywhere}.details-order-button:disabled,#detailsOrderButton:disabled{opacity:.45;cursor:default}.details-order-button[hidden],#detailsOrderButton[hidden],#detailsOrderToolbar[hidden]{display:none!important}
@media(max-width:360px){.details-stage-heading{gap:6px}.details-order-button,#detailsOrderButton{padding:8px;font-size:12px}}

/* The operation draft is compact by default; individual bouts open on demand. */
.running-order-dialog .order-bundle-count{font-size:15px;font-weight:800;margin:16px 0 8px}.order-bundle-finder{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin-bottom:10px}.running-order-dialog .order-bundle-finder label{min-width:0;margin:0;font-size:12px}.order-bundle-finder select{width:100%;min-width:0}.order-bundle-list{list-style:none;margin:0;padding:0;max-height:52vh;max-height:52dvh;overflow-y:auto;overscroll-behavior:contain;scroll-padding:8px}.order-bundle-row{min-width:0;padding:12px;margin:0 0 10px;border:1px solid #cbd9e8;border-radius:10px;background:#f6f9fd}.order-bundle-heading{min-width:0;line-height:1.55;overflow-wrap:anywhere}.order-bundle-number,.order-bundle-title,.order-bundle-state{display:block}.order-bundle-number{font-size:11px;color:#42658a;font-weight:800}.order-bundle-title{font-size:15px;color:#173d65}.order-bundle-state{font-size:12px;color:#53667c;margin:4px 0 8px}.order-bundle-buttons{display:flex;align-items:end;gap:6px;flex-wrap:wrap}.running-order-dialog .order-bundle-buttons label{margin:0;font-size:11px;color:#42566c}.running-order-dialog input.order-bundle-position{width:74px;min-height:44px;font-size:16px;background:#fff;border:1px solid #b9c9dc;border-radius:6px;padding:8px}.running-order-dialog .order-bundle-toggle{display:block;width:100%;margin-top:10px;background:#fff;font-size:13px}.order-bundle-matches{list-style:none;padding:0;margin:10px 0 0;max-height:45vh;overflow-y:auto;overscroll-behavior:contain}.order-bundle-matches[hidden]{display:none}.order-bundle-matches .order-match-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;margin-bottom:8px;border:1px solid #d8e1ea;border-radius:8px;background:#fff}.order-bundle-day{list-style:none;padding:6px 2px 10px;line-height:1.5}.running-order-dialog .order-bundle-day h3{margin:4px 0;font-size:16px}.order-bundle-day-state{font-size:12px;font-weight:700;color:#315b83}.order-bundle-empty{font-size:13px;line-height:1.6;padding:14px;color:#52667e;background:#f6f9fd;border-radius:8px}.order-bundle-notice{font-size:13px;line-height:1.55;overflow-wrap:anywhere;color:#a32626}.order-bundle-notice:empty{display:none}.order-stage-review,.order-global-review{margin-top:12px;border-top:1px solid #d9e2ed;padding-top:4px}.order-stage-review>summary,.order-global-review>summary{min-height:44px;cursor:pointer;align-content:center;font-size:14px;font-weight:700;line-height:1.5}.order-stage-review>summary:focus-visible,.order-global-review>summary:focus-visible,.order-bundle-row button:focus-visible{outline:3px solid #c99525;outline-offset:2px}
@media(max-width:520px){.order-bundle-row{padding:10px}.order-bundle-matches .order-match-row{grid-template-columns:minmax(0,1fr);gap:8px;padding:9px}.order-bundle-title{font-size:14px}.order-bundle-list{max-height:50vh;max-height:50dvh}.order-bundle-matches{max-height:42vh}.order-bundle-state{font-size:11px}.order-bundle-finder select{font-size:14px}.order-bundle-finder{gap:6px}}
@media(max-width:360px){.order-bundle-row{padding:8px}.order-bundle-buttons{gap:5px}.running-order-dialog input.order-bundle-position{width:68px}.order-bundle-title{font-size:13px}.order-bundle-state{line-height:1.6}}
