:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#313b4d;background:#f6f6fc;font-synthesis:none;--purple:#7162b8;--border:#e1e5ee}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #536ce0}input,select,textarea{width:100%;border:1.5px solid var(--border);border-radius:9px;background:#f9fafc;color:#313b4d;padding:11px 12px;min-height:44px}input:focus,select:focus,textarea:focus{outline:2px solid #99a4fa;border-color:#7283ec}textarea{resize:vertical;line-height:1.7}label{display:block;font-size:13px;font-weight:600;margin:17px 0 8px}label:first-child{margin-top:0}button{border:0;border-radius:8px;font-weight:600;padding:11px 15px;min-height:42px;transition:background .15s}.primary{background:linear-gradient(110deg,#7185ed,#8a63b4);color:white}.secondary{background:#f4f5fa;border:1px solid var(--border);color:#536078}.danger{background:#fff0f0;color:#ba4949;border:1px solid #f3d6d6}.link-button{background:none;border:0;padding:0;min-height:30px;font-size:12px;color:#7162b8;font-weight:600;text-decoration:none;display:inline-flex;align-items:center}.primary:hover{filter:brightness(.96)}.secondary:hover{background:#eaedf6}.app{display:grid;grid-template-columns:420px minmax(0,1fr);min-height:100vh}.sidebar{background:#f7f8fd}.brand{background:linear-gradient(115deg,#667eea,#7952a8);padding:18px 30px 27px;color:white}.brand .back{color:#fff;font-size:12px;text-decoration:none;opacity:.85}.brand h1{margin:19px 0 7px;font-size:25px;font-weight:700}.brand p{margin:0;font-size:12px;opacity:.8}.controls{padding:22px}.card{padding:22px;background:white;border-radius:14px;margin-bottom:20px;box-shadow:0 4px 18px #262a4810}.card h2{font-size:17px;margin:0 0 20px;display:flex;gap:10px;align-items:center}.card h2>span{font-size:10px;font-weight:600;background:#f0edf9;color:#7862ae;width:26px;height:26px;display:grid;place-items:center;border-radius:50%}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}.section-heading h2{margin:0}.hint{font-size:12px;line-height:1.8;color:#7c8596;margin:11px 0}.row{display:flex;gap:9px;align-items:center}.row>.primary{flex:1}.compact{justify-content:space-between;margin:12px 0}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.two-columns label{margin-top:0}.score-summary{display:flex;justify-content:space-between;align-items:center;margin-top:20px;padding:14px 18px;background:#f7f6fc;border-radius:9px}.score-summary span{font-size:12px;color:#7c8596}.score-summary strong{font-size:26px;color:#7465bb;letter-spacing:3px}.check-inline{display:flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap;font-weight:400;margin:0}.check-inline input{width:14px;min-height:14px;accent-color:var(--purple)}.lineup-tabs{display:flex;gap:6px;padding:4px;background:#f2f3f9;border-radius:9px;margin:14px 0}.lineup-tabs button{flex:1;min-width:0;background:none;color:#83899a;font-size:13px;padding:9px 5px;overflow-wrap:anywhere}.lineup-tabs button.active{background:white;color:#705daf;box-shadow:0 2px 5px #31364c12}.lineup-tabs span{font-size:10px;display:block;margin-top:3px;font-weight:400}.lineup-actions{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.lineup-actions .link-button{font-size:11px}.lineup-list{max-height:256px;overflow:auto}.player-check{display:flex;align-items:center;gap:10px;margin:0;padding:9px 5px;border-bottom:1px solid #f0f1f6;font-size:13px;font-weight:400;cursor:pointer}.player-check input{width:16px;min-height:16px;accent-color:var(--purple)}.player-number{background:#f0edf9;color:#7966ae;min-width:30px;padding:4px;text-align:center;border-radius:5px;font-size:12px}.empty{padding:22px 10px;text-align:center;color:#9199a9;font-size:12px;line-height:1.9}.save-status{text-align:center;color:#8991a1;font-size:11px;line-height:1.8;padding:0 10px 15px}.preview{background:linear-gradient(130deg,#787ed4,#8163b0);min-width:0}.preview-header{position:sticky;top:0;z-index:2;min-height:100px;padding:22px 30px;background:#fafaff;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #ffffff33}.preview-header h2{font-size:18px;margin:0 0 6px}.preview-header p{font-size:12px;color:#9198a7;margin:0}.preview-actions{display:flex;gap:8px;flex-wrap:wrap}.preview-actions button{font-size:12px}.preview-body{padding:34px;position:sticky;top:105px;max-height:calc(100vh - 105px);overflow:auto}.poster-wrap{max-width:850px;margin:0 auto}.preview-note{color:#e4def1;text-align:center;font-size:11px;line-height:1.8;margin:18px 0}#poster{background:white;padding:32px;border-radius:14px;box-shadow:0 15px 45px #3531521a}#poster svg{display:block;width:100%;height:auto}.event-item{padding:12px 0;border-bottom:1px solid #eef0f5}.event-top{display:flex;align-items:center;justify-content:space-between;gap:5px}.event-time{font-size:12px;font-weight:700;color:#7462b7;background:#f2eff9;padding:4px 7px;border-radius:4px}.event-actions{display:flex;gap:4px}.event-actions button{min-height:28px;padding:4px 6px;font-size:11px;background:#f5f6fa;color:#7c8596}.event-details{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;line-height:1.9;margin-top:7px}.event-details img{width:15px;height:15px;object-fit:contain}.event-details small{color:#939aaa}.event-item.dragging{opacity:.4}.event-item.drag-over{border-top:2px solid var(--purple)}dialog{width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:16px;background:white;color:#313b4d;box-shadow:0 25px 100px #15132e40;overflow:auto}dialog::backdrop{background:#1b183c80;backdrop-filter:blur(4px)}.dialog-header{position:sticky;top:0;z-index:1;background:linear-gradient(110deg,#7185ed,#8158af);color:white;padding:22px 26px;display:flex;justify-content:space-between;align-items:center;gap:10px}.dialog-header h2{margin:0;font-size:20px}.dialog-header p{font-size:9px;letter-spacing:2px;margin:0 0 8px;opacity:.7}.close{background:#ffffff22;color:white;border-radius:50%;min-height:34px;width:34px;padding:0;font-size:23px;font-weight:400}.dialog-body{padding:24px 26px}.dialog-body>.hint:first-child{margin-top:0}.dialog-footer{position:sticky;bottom:0;background:#fafbfe;border-top:1px solid #eef0f6;padding:17px 26px;display:flex;justify-content:flex-end;gap:10px}.dialog-footer>.primary{min-width:160px}.file-drop{padding:16px;background:#f5f5fc;border:1px dashed #c7c1e2;border-radius:10px;margin:20px 0}.file-drop input{font-size:12px;padding:8px;background:white}.file-drop label{font-size:13px}.file-drop p{margin-bottom:0}.import-preview{font-size:12px;line-height:1.9;background:#f5f7fa;border:1px solid #e8ebf1;border-radius:9px;padding:15px;margin-top:16px;max-height:220px;overflow:auto;overflow-wrap:anywhere}.import-preview table{width:100%;border-collapse:collapse;text-align:left}.import-preview td,.import-preview th{padding:5px 8px;border-bottom:1px solid #e0e3ec}.import-preview th{color:#7462ad}.error{color:#bd4242!important;font-size:12px}.library-header{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eef0f5;padding-top:10px;margin-top:20px}.library-header h3{font-size:14px}.library-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;font-size:12px}.library-item small{display:block;color:#9299a8;margin-top:5px}.library-item button{padding:4px 8px;min-height:30px;font-size:11px;background:#fff1f1;color:#b95151}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#343447;color:white;border-radius:10px;font-size:13px;box-shadow:0 5px 24px #0002;z-index:10;max-width:90%;line-height:1.7}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@media(min-width:1600px){.app{grid-template-columns:460px minmax(0,1fr)}.controls{padding:26px}.card{padding:26px}.preview-body{padding:45px}#poster{padding:45px}}
@media(max-width:1100px){.app{grid-template-columns:370px minmax(0,1fr)}.controls{padding:16px}.card{padding:18px}.preview-header{padding:18px;align-items:flex-start;flex-direction:column;gap:12px;position:relative}.preview-body{padding:20px;top:0;max-height:100vh}#poster{padding:18px}.preview-actions{gap:6px}}
@media(max-width:760px){.app{display:flex;flex-direction:column}.brand{padding:16px 22px 22px}.brand h1{margin-top:14px}.controls{padding:16px}.preview{min-height:60vh}.preview-header{padding:18px 20px}.preview-body{position:relative;max-height:none;padding:20px 14px}#poster{padding:12px}.card{margin-bottom:15px;padding:20px}.lineup-list{max-height:230px}.preview-actions{width:100%}.preview-actions .primary{flex:1}.dialog-body{padding:20px}.dialog-header{padding:20px}.dialog-footer{padding:16px 20px}.dialog-body .two-columns,#custom-match-fields .two-columns{grid-template-columns:1fr}.preview-note{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.lineup-list{max-height:360px}.player-row{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #eef0f5}.player-row .player-check{min-width:0;border-bottom:0;padding:0;line-height:1.6;overflow-wrap:anywhere}.player-row .player-check input{flex-shrink:0}.number-editor .match-number{padding:8px;min-height:38px;text-align:center;font-size:12px;background:#faf9fe}.last-number{display:flex;justify-content:space-between;align-items:center;gap:4px;margin-top:5px;color:#8c849e;font-size:10px;min-height:20px}.last-number .link-button{min-height:20px;font-size:10px}.last-number span{white-space:nowrap}

.association-footer{display:flex;align-items:center;justify-content:center;gap:20px;padding:24px;background:#fff;border-top:1px solid #e5e7ef;color:#8c0019}.association-footer img{display:block;width:112px;height:112px;object-fit:contain}.association-footer span{font-size:16px;font-weight:600;letter-spacing:.5px}@media(max-width:760px){.association-footer{gap:14px;padding:20px}.association-footer img{width:88px;height:88px}.association-footer span{font-size:14px}}
