:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#1e293b;background:#eef5f3;line-height:1.45}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top left,#f9fdfb 0,#eef5f3 48%,#e5efec 100%);min-height:100vh}.container{max-width:1500px;width:calc(100% - 40px);margin:auto;padding:32px 20px 52px}header{margin-bottom:18px}h1{margin:0;color:#075c4a;font-size:clamp(1.65rem,2.4vw,2.25rem);letter-spacing:-.04em}h2{font-size:1.08rem;margin:0;color:#122c29}.app-header{border-bottom:1px solid #d8e7e2;padding-bottom:16px}.card{background:#fff;border:1px solid #dce9e5;border-radius:16px;padding:20px;margin-top:16px;box-shadow:0 10px 28px rgba(21,70,58,.06)}.tabs{display:flex;gap:5px;border-bottom:0;margin-top:16px}.tab{border:0;border-radius:9px;padding:9px 14px;color:#46635c;background:transparent;font-weight:650}.tab:hover{background:#deeee8}.tab.active{background:#08755b;color:#fff;box-shadow:0 4px 10px #08755b33}.controls,.player-form,.inline-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.controls label,.player-form label,.inline-form label{display:grid;gap:5px;font-size:.82rem;font-weight:650;color:#516a64}button,select,input{font:inherit;padding:9px 11px;border:1px solid #bdd0ca;border-radius:9px;background:#fff;color:#1f3731;transition:border-color .15s,box-shadow .15s,background .15s}select{min-height:39px}button{cursor:pointer;font-weight:650}button:hover{border-color:#08755b;background:#f4fbf8}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #65c7a866;outline-offset:2px;border-color:#08755b}.primary{background:#08755b;color:#fff;border-color:#08755b;box-shadow:0 3px 8px #08755b2b}.primary:hover{background:#06644d;color:#fff;border-color:#06644d}.danger{color:#bd3030;border-color:#e3b4b4}.danger:hover{background:#fff5f5;border-color:#bd3030}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.round-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(500px,1.08fr);gap:18px;align-items:start}.round-grid>.card{min-width:0;margin-top:16px}.round-grid .table-wrap{max-height:calc(100vh - 240px);overflow:auto;border:1px solid #e4eeeb;border-radius:10px;margin-top:14px}.round-grid .card:nth-child(2){position:sticky;top:12px;max-height:calc(100vh - 36px);overflow:auto}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.9rem}th{position:sticky;top:0;background:#f3f8f6;color:#31544b;font-size:.78rem;letter-spacing:.02em;text-transform:uppercase;z-index:1}th,td{padding:10px 9px;text-align:left;border-bottom:1px solid #e5efeb}tbody tr:nth-child(even){background:#fbfdfc}tbody tr:hover{background:#f0f8f4}tbody tr:last-child td{border-bottom:0}#currentRound{display:grid;gap:18px;margin-top:14px}#currentRound>div{overflow:hidden;border:1px solid #c7dfd7;border-radius:14px;padding:14px;background:#fff;box-shadow:0 7px 18px rgba(21,70,58,.07)}#currentRound>div>.round-heading-row{margin:-14px -14px 14px;padding:12px 14px;background:#e6f3ee;border-bottom:1px solid #c7dfd7}#currentRound>div>.round-heading-row strong{color:#075c4a;font-size:1rem}.court{border-left:5px solid #14a077;padding:15px 16px;margin:12px 0;background:linear-gradient(135deg,#f5fbf8,#edf7f3);border-radius:0 12px 12px 0;font-size:1rem}.court strong{display:block;margin-bottom:8px;color:#24564a}.court-result{margin-top:12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.court-result input{width:110px}.court-result select{min-width:175px}.rest{margin:12px 0;color:#8a5c00;font-size:.92rem;font-weight:600}.empty,.hint{color:#667b75}.hint{margin:.35rem 0 0;font-size:.9rem}.round-history{margin:16px 0;padding-top:16px;border-top:1px solid #e4eeeb}.round-history:first-child{padding-top:0;border-top:0}.list{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.list button.selected{background:#d9f1e7;border-color:#08755b;color:#075c4a}.list .danger{margin-left:auto}.round-heading-row{margin-bottom:8px}.round-delete{flex:0 0 auto}.info-button{flex:0 0 auto}@media(max-width:900px){.round-grid{grid-template-columns:1fr}.round-grid .card:nth-child(2){position:static;max-height:none}.round-grid .table-wrap{max-height:none}}@media(max-width:600px){.container{width:100%;padding:20px 12px}.card{padding:15px;border-radius:13px}.tabs{overflow-x:auto}.tab{white-space:nowrap}.court{padding:13px}.court-result{gap:6px}.court-result select{min-width:145px}.court-result input{width:70px}}
:root.dark{color-scheme:dark;color:#e3eeeb;background:#10211f}:root.dark body{background:radial-gradient(circle at top left,#193530 0,#10211f 50%,#0b1716 100%)}:root.dark h1{color:#74d6b8}:root.dark h2,:root.dark .court strong{color:#e5f6f0}:root.dark .app-header{border-color:#294641}:root.dark .card,:root.dark #currentRound>div{background:#172d29;border-color:#35514b;box-shadow:0 10px 28px #0004}:root.dark button,:root.dark select,:root.dark input{background:#1d3732;color:#e3eeeb;border-color:#496861}:root.dark button:hover{background:#284940;border-color:#74d6b8}:root.dark .tab{color:#b6cec6}:root.dark .tab:hover{background:#284940}:root.dark .tab.active,:root.dark .primary{background:#15916f;border-color:#15916f;color:#fff}:root.dark th{background:#203c36;color:#c7ddd6}:root.dark th,:root.dark td{border-color:#35514b}:root.dark tbody tr:nth-child(even){background:#1a312d}:root.dark tbody tr:hover{background:#24443d}:root.dark .round-grid .table-wrap{border-color:#35514b}:root.dark #currentRound>div>.round-heading-row{background:#23453d;border-color:#35514b}:root.dark .court{background:linear-gradient(135deg,#1d3832,#19312d);border-left-color:#36b890}:root.dark .hint,:root.dark .empty{color:#adc3bc}:root.dark .rest{color:#f1c56e}:root.dark .list button.selected{background:#254b40;color:#9be2c8;border-color:#36b890}:root.dark .round-builder #makeRound,:root.dark .round-court-count{background:#1d3732!important;border-color:#496861!important;color:#bfe6d8!important}:root.dark .round-court-count select{background:transparent!important;border-color:#496861!important;color:#bfe6d8!important}:root.dark .round-status{color:#75d8b9}:root.dark .builder-status{color:#b7c9c3}
