@import"https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800&family=Nunito+Sans:wght@600;700;800&display=swap";:root{color:#172033;background:#f4f7fb;font-family:Noto Sans TC,Nunito Sans,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;min-width:320px;background:linear-gradient(135deg,#f8fafc,#edf2f8)}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid rgba(50,116,235,.32);outline-offset:2px}#header{min-height:76px;padding:14px 32px;display:flex;align-items:center;justify-content:space-between;color:#fff;background:linear-gradient(110deg,#101b32,#1d3768);box-shadow:0 2px 12px #0d1d3b2e}.brand{display:flex;gap:12px;align-items:center}.brand-mark{display:grid;place-items:center;width:42px;height:42px;font-size:23px;border-radius:12px;background:#ffffff21}.brand h1{margin:0;font-family:Nunito Sans,sans-serif;font-size:19px;letter-spacing:.1px}.brand p{margin:2px 0 0;color:#b9c8e6;font-size:12px}.header-status{display:flex;align-items:center;gap:8px;color:#cad7ef;font-size:13px}.header-status span{width:8px;height:8px;border-radius:50%;background:#48d597;box-shadow:0 0 0 4px #48d59721}#sidebar{display:flex;flex-direction:column;min-height:calc(100vh - 76px);padding:24px 14px 16px;color:#d7e0f1;background:#17243e}.sidebar-label{margin:0 12px 10px;color:#8293b2;font-size:11px;font-weight:700;letter-spacing:.1em}.sidebar-nav ul{margin:0;padding:0;list-style:none}.sidebar-nav li{margin:3px 0}.nav-link{width:100%;display:flex;align-items:center;gap:11px;padding:11px 12px;border:0;border-radius:9px;color:#cdd8ea;text-align:left;background:transparent;transition:.16s ease}.nav-link span{width:18px;color:#90a5c8;text-align:center}.nav-link:hover:not(:disabled),.nav-link.active{color:#fff;background:#2c4c80}.nav-link.active span{color:#71a7ff}.nav-link:disabled{cursor:not-allowed;opacity:.45}.nav-link em{margin-left:auto;color:#93a4c2;font-size:10px;font-style:normal}.sidebar-footer{margin:auto 10px 0;padding-top:16px;border-top:1px solid rgba(255,255,255,.09);color:#8393af;font-size:11px;line-height:1.6}.page-intro{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;min-height:205px;padding:34px 40px;border-radius:18px;color:#fff;background:linear-gradient(115deg,#1c3566,#2f69ae);box-shadow:0 15px 35px #29528b38}.page-intro:after{content:"";position:absolute;width:260px;height:260px;right:-75px;bottom:-150px;border:45px solid rgba(255,255,255,.08);border-radius:50%}.eyebrow{margin:0 0 8px;color:#a9caff;font-family:Nunito Sans,sans-serif;font-size:12px;font-weight:800;letter-spacing:.15em}.page-intro h2{margin:0;font-size:clamp(28px,4vw,38px);letter-spacing:-.04em}.page-intro>div:first-child>p:last-child{margin:12px 0 0;color:#dbe9ff}.dashboard-ball{position:relative;z-index:1;display:grid;place-items:center;width:92px;height:92px;margin-right:20px;border-radius:50%;font-size:49px;background:#ffffff21;transform:rotate(-12deg)}.dashboard-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px}.action-card{display:flex;align-items:center;gap:15px;padding:21px;border:1px solid #e0e7f0;border-radius:14px;color:#202d44;text-align:left;background:#fff;box-shadow:0 3px 10px #1831550d;transition:transform .16s ease,box-shadow .16s ease}.action-card:hover{transform:translateY(-3px);box-shadow:0 12px 24px #1831551f}.action-card span:nth-child(2){display:grid;gap:3px}.action-card strong{font-size:17px}.action-card small{color:#72819a;font-size:12px}.action-card b{margin-left:auto;color:#3274d7;font-size:20px}.action-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;font-size:22px;background:#eaf2ff}.dashboard-backup{margin-top:24px}.player-page,.lineup-page{max-width:1050px}.player-page-header,.lineup-page-header,.lineup-form,.lineup-card{border:1px solid #e0e7f0;border-radius:14px;background:#fff;box-shadow:0 4px 15px #1831550f}.player-page-header,.lineup-page-header{padding:24px 28px;margin-bottom:18px;border-left:5px solid #3377db}.player-page h2,.lineup-page h2{margin:0;color:#192a45;font-size:25px}.player-page-header p,.lineup-page-header p{margin:7px 0 0;color:#72819a}.player-form-container,.player-list-container,.lineup-form-container,.lineup-card-container{margin-bottom:18px}.lineup-form,.lineup-card{padding:22px}.lineup-form-header,.lineup-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:16px;border-bottom:1px solid #e9eef5}.lineup-card-header button{flex-shrink:0}.lineup-form h3,.lineup-card h3{margin:0;color:#1e3151}.lineup-form p,.lineup-card p{margin:5px 0 0;color:#74829a;font-size:13px}.lineup-form-player-count{padding:7px 11px;border-radius:999px;color:#285ba8;font-size:13px;background:#eaf2ff}.lineup-form-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.lineup-form-row{display:flex;align-items:center;gap:9px;padding:8px;border:1px solid #e1e8f2;border-radius:9px;background:#fafcff}.lineup-form-order{width:31px;color:#2c67bd;text-align:center}.lineup-form-order strong{display:block;font-size:18px;line-height:1}.lineup-form-order span{font-size:11px}.lineup-form-status{min-width:18px;font-size:12px}.lineup-form-status.ok{color:#20966d}.lineup-form-status.error{color:#d1495b}.lineup-form-actions{display:flex;justify-content:flex-end;gap:10px}.lineup-form-actions button,.lineup-card-edit-btn{padding:10px 15px;border-radius:8px;font-weight:700}.lineup-form-ai-btn,.lineup-card-edit-btn{border:1px solid #b9cdf0;color:#2866bd;background:#f4f8ff}.lineup-form-save-btn{border:1px solid #2768c3;color:#fff;background:#2f74ce}.lineup-form-message{display:none}.lineup-form-message:not(:empty){display:flex;gap:9px;margin-top:15px;padding:10px 12px;border-radius:8px;font-size:13px}.lineup-form-message.error{color:#9d2736;background:#fff0f1}.lineup-form-message.warning{color:#8b6416;background:#fff8df}.lineup-form-message.success{color:#177657;background:#e9faf3}.lineup-form-clear-btn{padding:8px 16px;border:1px solid #e0e7f0;border-radius:8px;background:#fff;color:#72819a;font-size:13px;font-weight:600;cursor:pointer;transition:.16s ease}.lineup-form-clear-btn:hover{border-color:#d1495b;color:#d1495b;background:#fff0f1}.game-page{max-width:860px}.game-page-header,.game-form-card,.live-score{margin-bottom:18px;padding:24px;border:1px solid #e0e7f0;border-radius:14px;background:#fff;box-shadow:0 4px 15px #1831550f}.game-page-header{border-left:5px solid #3377db}.game-page h2{margin:0;color:#192a45;font-size:27px}.game-page-header>div>p:last-child{margin:7px 0 0;color:#72819a}.query-tabs{display:flex;gap:10px;margin-bottom:18px}.query-tab{padding:10px 18px;border:1px solid #e0e7f0;border-radius:999px;color:#547097;font-weight:700;background:#fff;cursor:pointer}.query-tab.active{color:#fff;border-color:#2f74ce;background:#2f74ce}.query-panel{padding:22px;border:1px solid #e0e7f0;border-radius:14px;background:#fff;box-shadow:0 4px 15px #1831550f}.query-filters{margin-bottom:16px}.query-filters input,.query-filters select{width:100%;max-width:320px;padding:10px 12px;border:1px solid #ccd8e8;border-radius:8px;background:#fff}.query-empty{padding:30px 10px;color:#72819a;text-align:center}.query-game-list{display:flex;flex-direction:column;gap:10px}.query-game-item{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:16px;padding:14px 16px;border:1px solid #e9eef5;border-radius:10px;background:#fafcff}.query-game-main{display:flex;flex-direction:column;gap:4px}.query-game-main strong{color:#1e3151}.query-game-meta{color:#72819a;font-size:13px}.query-game-score strong{color:#1f3560;font-size:20px}.query-game-noscore{color:#9bacbf;font-size:13px}.query-badge{padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700}.query-badge.complete{color:#177657;background:#e9faf3}.query-badge.draft{color:#8b6416;background:#fff8df}.query-player-stats h4{margin:18px 0 10px;color:#1e3151}.query-player-stats h4:first-child{margin-top:0}.query-stats-table{width:100%;border-collapse:collapse}.query-stats-table th,.query-stats-table td{padding:10px 8px;border-bottom:1px solid #e9eef5;text-align:center}.query-stats-table th{color:#547097;font-size:12px;font-weight:700;background:#f6f9fd}.query-stats-table td{color:#28354b;font-weight:700}.game-form-header{padding-bottom:16px;border-bottom:1px solid #e9eef5}.game-form-header h3,.live-score h3{margin:0;color:#1e3151}.game-form-header p,.live-score-header>div>p:last-child{margin:5px 0 0;color:#74829a;font-size:13px}.game-form-fields{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:12px;margin-top:17px}.game-form-fields label{display:grid;gap:6px;color:#43516a;font-size:13px;font-weight:700}.game-form-fields input,.game-form-fields select{min-width:0;padding:10px;border:1px solid #ccd8e8;border-radius:8px;background:#fff}.game-form-actions{display:flex;justify-content:flex-end;margin-top:16px}.game-form-actions button,.live-score-actions button{padding:10px 15px;border:1px solid #2768c3;border-radius:8px;color:#fff;font-weight:700;background:#2f74ce}.game-form-message:not(:empty){margin-top:14px;padding:9px 11px;border-radius:8px;font-size:13px}.game-form-message.error{color:#9d2736;background:#fff0f1}.game-form-message.success{color:#177657;background:#e9faf3}.live-score-header{display:flex;justify-content:space-between;align-items:start;padding-bottom:16px;border-bottom:1px solid #e9eef5}.inning-badge{padding:7px 10px;border-radius:999px;color:#285ba8;font-size:13px;font-weight:700;background:#eaf2ff}.score-grid{display:grid;grid-template-columns:1fr 48px 1fr;align-items:center;margin:18px 0;text-align:center}.score-team{display:grid;gap:7px}.score-team>span{overflow:hidden;color:#66758d;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.score-team strong{color:#1f3560;font-family:Nunito Sans,sans-serif;font-size:52px;line-height:1}.score-team div{display:flex;justify-content:center;gap:7px}.score-team button{width:31px;height:29px;border:1px solid #c7d5e8;border-radius:7px;color:#2b67bc;font-size:18px;background:#f6f9fd}.score-divider{color:#9bacbf;font-size:32px;font-weight:700}.live-score-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:15px;border-top:1px solid #e9eef5}.live-score.empty{min-height:190px;display:grid;place-content:center;text-align:center}.live-score.empty>div{font-size:38px}.live-score.empty p{color:#74829a}.live-score.completed{opacity:.8;background:#f8fafc}.end-game-btn{padding:10px 15px;border:1px solid #d1495b;border-radius:8px;color:#fff;font-weight:700;background:#e74c3c;cursor:pointer}.end-game-btn:hover{background:#c0392b;border-color:#c0392b}.new-game-btn{padding:10px 15px;border:1px solid #2768c3;border-radius:8px;color:#fff;font-weight:700;background:#2f74ce;cursor:pointer}.game-history{margin-top:24px}.game-history h3{margin:0 0 16px;color:#1e3151;font-size:20px}.game-history-list{display:flex;flex-direction:column;gap:12px}.game-history-item{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border:1px solid #e0e7f0;border-radius:12px;background:#fff;box-shadow:0 2px 8px #1831550a}.game-history-info{display:flex;gap:12px;align-items:center}.game-history-opponent{font-weight:700;color:#1e3151}.game-history-date,.game-history-venue{color:#72819a;font-size:13px}.game-history-score{display:flex;gap:12px;align-items:center}.game-history-result{padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700}.game-history-result.win{color:#177657;background:#e9faf3}.game-history-result.loss{color:#9d2736;background:#fff0f1}.game-history-result.tie{color:#8b6416;background:#fff8df}.game-history-scores{font-family:Nunito Sans,sans-serif;font-size:18px;font-weight:700;color:#1e3151}.game-history-actions{display:flex;gap:8px}.game-edit-btn,.game-delete-btn{padding:6px 12px;border:1px solid #e0e7f0;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;transition:.16s ease}.game-edit-btn{color:#2866bd;background:#f4f8ff}.game-edit-btn:hover{border-color:#2768c3;background:#e8f0ff}.game-delete-btn{color:#d1495b;background:#fff0f1}.game-delete-btn:hover{border-color:#c0392b;background:#ffe5e6}@media (max-width: 600px){.game-history-item{flex-direction:column;align-items:flex-start;gap:12px}.game-history-score{width:100%;justify-content:space-between}.game-history-actions{width:100%;justify-content:flex-end}}.lineup-player-select{flex:1;min-width:0;padding:8px;border:1px solid #ccd8e8;border-radius:7px;color:#28354b;background:#fff}.lineup-card-list{display:flex;flex-direction:column;gap:10px}.lineup-card-item{display:grid;grid-template-columns:36px 55px 70px 1fr 30px;align-items:center;gap:10px;padding:12px;background:#fff;border:1px solid #ddd;border-radius:10px;transition:transform .25s ease,opacity .25s ease,box-shadow .25s ease,border-color .25s ease;-webkit-user-select:none;user-select:none}.lineup-card-item[draggable=true]{cursor:grab}.lineup-card-item:active{cursor:grabbing}.lineup-card-dragging{opacity:.45;transform:scale(.97);box-shadow:0 8px 20px #0000001f}.lineup-card-drop-target{transform:translateY(-4px);border-color:#777;box-shadow:0 8px 18px #00000024}.lineup-card-drag-handle{font-size:20px;text-align:center;opacity:.55}.lineup-card-order{display:flex;align-items:baseline;gap:3px}.lineup-card-order strong{font-size:24px}.lineup-card-order span{font-size:12px}.lineup-card-number{font-weight:700}.lineup-card-player strong{display:block;font-size:17px}.lineup-card-meta{display:flex;gap:8px;margin-top:4px;font-size:13px}.lineup-card-status{font-weight:700}.lineup-card-warning{border-style:dashed}.lineup-card-missing{opacity:.7}.lineup-card-drag-indicator{opacity:.4;text-align:center}.lineup-card-save-notice{position:relative;margin-bottom:10px;padding:10px 14px;border-radius:8px;background:#222;color:#fff;opacity:0;transform:translateY(-8px);pointer-events:none;transition:opacity .25s ease,transform .25s ease}.lineup-card-save-notice.show{opacity:1;transform:translateY(0)}.lineup-card-empty{padding:40px 20px;text-align:center}.lineup-card-empty>div{font-size:42px;margin-bottom:10px}.lineup-card-footer{display:flex;justify-content:space-between;margin-top:12px;font-size:13px}.lineup-card-complete,.lineup-card-incomplete{font-weight:700}@media (max-width: 600px){.lineup-card-item{grid-template-columns:28px 45px 55px 1fr 20px;gap:6px;padding:10px}.lineup-card-order strong{font-size:20px}.lineup-card-player strong{font-size:15px}}.dashboard-new .dashboard-hero{display:flex;justify-content:space-between;align-items:center;padding:28px 30px;background:linear-gradient(115deg,#1c3566,#2f69ae);color:#fff;border-radius:12px;margin-bottom:18px}.dashboard-new .hero-content h1{margin:0;font-size:24px}.dashboard-new .hero-content .lead{margin:6px 0 0;color:#ffffffe6}.dashboard-new .hero-actions{display:flex;gap:10px}.btn-primary{padding:10px 14px;border-radius:8px;background:#ffd37a;color:#7a4f00;border:0;font-weight:700}.dashboard-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:18px}.card{padding:18px;border-radius:12px;background:#fff;box-shadow:0 6px 18px #0f1e370f}.card h3{margin:0 0 6px}.card p{margin:0 0 12px;color:#576b85;font-size:13px}.card-btn{padding:8px 12px;border-radius:8px;background:#2f74ce;color:#fff;border:0;font-weight:700}.ai-suggestion{padding:16px;background:#f7fbff;border-radius:10px;border:1px solid #e6f0ff}.ai-suggestion ol{margin:8px 0 0 18px}.ai-suggestion .small{color:#6d7b92;font-size:12px}.app-layout{display:grid;grid-template-columns:250px minmax(0,1fr);grid-template-rows:auto 1fr;min-height:100vh}#header{grid-column:1 / -1}#sidebar{grid-column:1}.content{grid-column:2;min-width:0;padding:36px clamp(24px,4vw,64px)}@media (max-width: 760px){.app-layout{grid-template-columns:1fr}#sidebar{grid-column:1}.content{grid-column:1;padding:24px 18px 36px}}.player-page{padding:0}.player-form{padding:22px;border:1px solid #e0e7f0;border-radius:14px;background:#fff;box-shadow:0 4px 15px #1831550f}.player-form-header{padding-bottom:16px;border-bottom:1px solid #e9eef5}.player-form-header h3{margin:0;color:#1e3151}.player-form-header p{margin:5px 0 0;color:#74829a;font-size:13px}.player-form-field{display:grid;gap:6px;margin-top:15px}.player-form-field label{color:#43516a;font-size:13px;font-weight:700}.player-form-field input,.player-form-field select,.player-form-field textarea{width:100%;padding:10px 11px;border:1px solid #ccd8e8;border-radius:8px;color:#26344d;background:#fff}.player-form-field textarea{resize:vertical}.player-form-status{display:flex;gap:18px;margin-top:16px}.player-form-status label{display:flex;align-items:center;gap:6px;color:#53627a;font-size:13px}.stats-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.import-stats-btn{padding:6px 12px;border:1px solid #2768c3;border-radius:6px;color:#fff;background:#2f74ce;font-size:12px;font-weight:600;cursor:pointer;transition:.16s ease}.import-stats-btn:hover{background:#2768c3}.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:8px}.stat-field{display:grid;gap:4px}.stat-field label{color:#43516a;font-size:12px;font-weight:600}.stat-field input{width:100%;padding:8px 10px;border:1px solid #ccd8e8;border-radius:6px;color:#26344d;background:#fff;font-size:13px}.player-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.player-form-actions button{padding:10px 15px;border-radius:8px;font-weight:700}.player-form-add-btn{border:1px solid #2768c3;color:#fff;background:#2f74ce}.player-form-cancel-btn{border:1px solid #c9d4e4;color:#53627a;background:#fff}.player-form-message:not(:empty){margin-top:15px;padding:10px 12px;border-radius:8px;font-size:13px}.player-form-message.error{color:#9d2736;background:#fff0f1}.player-form-message.success{color:#177657;background:#e9faf3}.player-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.player-list-empty{padding:35px;border:1px dashed #cbd6e5;border-radius:12px;color:#77849b;text-align:center;background:#f9fbfd}.player-card{display:grid;gap:13px;padding:16px;border:1px solid #e0e7f0;border-radius:12px;background:#fff;box-shadow:0 3px 10px #1831550a}.player-card-unavailable{background:#fffdf9}.player-card-main{display:flex;flex-direction:column;gap:8px}.player-card-name{display:flex;align-items:baseline;gap:8px;color:#26344d;font-size:17px;font-weight:800;line-height:1.3}.player-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.player-card-number{color:#2766bf;font-size:17px;font-weight:800}.player-card-status{display:flex;gap:6px}.player-status{padding:4px 7px;border-radius:5px;font-size:11px}.player-status.injured{color:#9d6b16;background:#fff5db}.player-status.suspended{color:#a12e3e;background:#ffecef}.player-card-note{color:#697890;font-size:12px;line-height:1.5}.player-card-actions{display:flex;gap:8px;padding-top:11px;border-top:1px solid #edf1f6}.player-card-actions button{padding:7px 9px;border-radius:7px;font-size:12px}.player-edit-btn{border:1px solid #bfd2f0;color:#2866bd;background:#f4f8ff}.player-delete-btn{border:1px solid #f0c9d0;color:#b24252;background:#fff7f8}.positions-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-top:8px}.position-item{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #e0e7f0;border-radius:8px;background:#fff;transition:border-color .16s ease}.position-item:hover{border-color:#b9cdf0}.position-checkbox{display:flex;align-items:center;gap:8px;cursor:pointer}.position-checkbox-input{width:18px;height:18px;cursor:pointer}.position-code{font-weight:700;color:#1e3151;font-size:14px}.position-name{color:#72819a;font-size:12px}.position-rating{display:flex;align-items:center;gap:8px;padding-top:4px;border-top:1px solid #f1f5f9}.rating-label{font-size:11px;color:#72819a;font-weight:600}.rating-select{flex:1;padding:4px 8px;border:1px solid #ccd8e8;border-radius:6px;font-size:12px;background:#fff;cursor:pointer}.rating-select:disabled{background:#f8fafc;color:#9bacbf;cursor:not-allowed}.position-help{margin:8px 0 0;color:#72819a;font-size:12px;font-style:italic}.player-card-rating{display:inline-block;padding:4px 8px;border-radius:999px;background:#fff4db;color:#8a5b00;font-weight:800;font-size:12px;box-shadow:0 1px #00000008}.player-card-position{padding:4px 8px;border-radius:999px;color:#547097;font-size:12px;background:#eff4fa}.score-sheet-page{padding:20px;max-width:100%;margin:0 auto}.score-sheet-page-header{margin-bottom:18px;padding:24px 28px;border:1px solid #e0e7f0;border-left:5px solid #3377db;border-radius:14px;background:#fff;box-shadow:0 4px 15px #1831550f}.score-sheet-page-header h2{margin:0;color:#192a45;font-size:25px}.score-sheet-page-header p{margin:7px 0 0;color:#72819a;font-size:14px}.score-sheet-actions{display:flex;gap:12px;margin-bottom:24px}.score-sheet-linked-notice{margin-bottom:18px;padding:12px 16px;border:1px solid #bcd7ff;border-radius:10px;color:#1e4d8f;font-size:13px;background:#eef5ff}.score-sheet-history-empty{padding:40px 20px;color:#72819a;text-align:center}.score-sheet-history-list{display:flex;flex-direction:column;gap:10px}.score-sheet-history-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border:1px solid #e0e7f0;border-radius:12px;background:#fff}.score-sheet-history-info{display:flex;flex-direction:column;gap:4px}.score-sheet-history-info strong{color:#1e3151}.score-sheet-history-info span{color:#72819a;font-size:13px}.score-sheet-draft-badge{display:inline-block;padding:2px 8px;border-radius:999px;color:#8b6416;font-size:11px;background:#fff8df}.score-sheet-history-note{flex-shrink:0;max-width:220px;color:#72819a;font-size:12px;text-align:right}.score-sheet-history-actions{display:flex;flex-shrink:0;gap:8px}.score-sheet-history-actions .btn-danger{padding:8px 14px;border:1px solid #f3c2c2;border-radius:8px;color:#b3261e;font-size:13px;font-weight:600;background:#fdeeee;cursor:pointer}.score-sheet-history-actions .btn-danger:hover{background:#fadede}.btn-primary{padding:10px 20px;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:.16s ease;color:#fff;background:#2f74ce}.btn-primary:hover{background:#2768c3}.btn-secondary{padding:10px 20px;border:1px solid #c9d4e4;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:.16s ease;color:#53627a;background:#fff}.btn-secondary:hover{background:#f8fafc}.btn-small{padding:6px 12px;border:1px solid #c9d4e4;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;transition:.16s ease;color:#53627a;background:#fff}.btn-small:hover{background:#f8fafc}.score-sheet-form{background:#fff;border:1px solid #e0e7f0;border-radius:12px;padding:24px}.score-sheet-form h3{margin:0 0 16px;color:#1e3151;font-size:18px;border-bottom:2px solid #e9eef5;padding-bottom:8px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}.form-field{display:flex;flex-direction:column;gap:6px}.form-field label{color:#43516a;font-size:13px;font-weight:600}.form-field input,.form-field select{padding:10px 12px;border:1px solid #ccd8e8;border-radius:8px;color:#26344d;background:#fff;font-size:14px}.inning-section,.batting-section,.pitching-section{margin-bottom:32px}.lineup-selector{display:flex;align-items:center;gap:8px;margin-bottom:12px}.lineup-selector label{color:#43516a;font-size:13px;font-weight:600}.lineup-selector select{padding:6px 10px;border:1px solid #ccd8e8;border-radius:6px;color:#26344d;background:#fff;font-size:13px}.inning-table,.batting-table,.pitching-table{width:100%;border-collapse:collapse;font-size:12px}.inning-table th,.batting-table th,.pitching-table th{padding:6px 4px;background:#f8fafc;border:1px solid #e0e7f0;color:#43516a;font-weight:600;text-align:center;white-space:nowrap;min-width:40px;font-size:11px}.inning-table td,.batting-table td,.pitching-table td{padding:4px 2px;border:1px solid #e0e7f0;text-align:center;min-width:40px;font-size:11px}.inning-table input,.batting-table input,.pitching-table input{width:100%;padding:2px 4px;border:1px solid #ccd8e8;border-radius:4px;color:#26344d;background:#fff;font-size:11px;text-align:center;min-width:25px}.batting-table select,.pitching-table select{width:100%;padding:4px 6px;border:1px solid #ccd8e8;border-radius:4px;color:#26344d;background:#fff;font-size:11px;min-width:50px;max-width:100px;cursor:pointer}.batting-table select option,.pitching-table select option{padding:4px 6px;color:#26344d;background:#fff;font-size:11px}.batting-table td:nth-child(3),.batting-table td:nth-child(4),.batting-table td:nth-child(5){min-width:50px}.pitching-table th:nth-child(1),.pitching-table td:nth-child(1){width:50px;min-width:50px}.pitching-table th:nth-child(2),.pitching-table td:nth-child(2){width:60px;min-width:60px}.pitching-table th:nth-child(3),.pitching-table td:nth-child(3){width:40px;min-width:40px}.pitching-table th:nth-child(n+4),.pitching-table td:nth-child(n+4){width:35px;min-width:35px}.batting-table th:nth-child(1),.batting-table td:nth-child(1){width:30px;min-width:30px}.batting-table th:nth-child(2),.batting-table td:nth-child(2){width:70px;min-width:70px}.batting-table th:nth-child(3),.batting-table td:nth-child(3){width:50px;min-width:50px}.batting-table th:nth-child(4),.batting-table td:nth-child(4){width:60px;min-width:60px}.batting-table th:nth-child(5),.batting-table td:nth-child(5){width:60px;min-width:60px}.batting-table th:nth-child(n+6):nth-child(-n+14),.batting-table td:nth-child(n+6):nth-child(-n+14){width:30px;min-width:30px}.batting-table th:nth-child(n+15),.batting-table td:nth-child(n+15){width:30px;min-width:30px}.team-total-row td{white-space:nowrap}.pitching-table td:nth-child(2),.pitching-table td:nth-child(3){min-width:80px}.batting-table,.pitching-table{min-width:auto;table-layout:auto;width:100%}@media (max-width: 768px){.batting-section,.pitching-section{overflow-x:auto;width:100%}}@media (min-width: 769px){.batting-section,.pitching-section{overflow-x:visible}}.jersey-number{font-weight:600;color:#1e3151;display:inline-block;margin-right:4px}.edit-jersey-btn{background:none;border:none;cursor:pointer;font-size:12px;padding:2px 4px;border-radius:4px;color:#74829a;transition:.16s ease}.edit-jersey-btn:hover{background:#f8fafc;color:#2f74ce}.jersey-cell{min-width:60px;text-align:center}.coach-substitution-section{background:#f8fafc;border:1px solid #e0e7f0;border-radius:8px;padding:16px;margin-bottom:24px}.coach-substitution-section h4{margin:0 0 12px;color:#43516a;font-size:14px;font-weight:600}.coach-substitution-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.coach-substitution-form .form-field{flex:1;min-width:120px}.coach-substitution-form .form-field label{display:block;margin-bottom:4px;color:#43516a;font-size:12px;font-weight:500}.coach-substitution-form .form-field input,.coach-substitution-form .form-field select{width:100%;padding:6px 8px;border:1px solid #ccd8e8;border-radius:4px;color:#26344d;background:#fff;font-size:13px}.coach-substitution-form button{padding:8px 16px;background:#2f74ce;color:#fff;border:none;border-radius:4px;font-size:13px;cursor:pointer;font-weight:500}.coach-substitution-form button:hover{background:#2568b8}.position-code-legend{margin-top:12px;padding:8px 12px;background:#fff;border:1px solid #e0e7f0;border-radius:4px;font-size:11px;color:#43516a}.position-code-legend p{margin:0;line-height:1.4}.substitute-player-row{background:#fafbfc}.add-substitute-btn{padding:4px 8px;border:1px solid #2f74ce;border-radius:4px;font-size:10px;cursor:pointer;color:#2f74ce;background:#fff}.add-substitute-btn:hover{background:#f0f7ff}.remove-row-btn{padding:4px 8px;border:1px solid #f0c9d0;border-radius:4px;font-size:10px;cursor:pointer;color:#b24252;background:#fff7f8}.remove-row-btn:hover{background:#ffecef}.remove-pitcher-btn{padding:4px 8px;border:1px solid #f0c9d0;border-radius:4px;font-size:10px;cursor:pointer;color:#b24252;background:#fff7f8}.remove-pitcher-btn:hover{background:#ffecef}.batting-average,.era{font-weight:600;color:#1e3151}.team-total-row{background:#f8fafc;font-weight:600}.team-total-row td{border-top:2px solid #e0e7f0;color:#1e3151}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:16px;border-top:1px solid #e9eef5}@media (max-width: 768px){.score-sheet-page{padding:16px}.score-sheet-page .page-intro{flex-direction:column;align-items:flex-start;gap:16px}.score-sheet-actions{flex-direction:column}.form-grid{grid-template-columns:1fr}.score-sheet-form{overflow-x:auto}.batting-table,.pitching-table{min-width:1200px;table-layout:fixed}.inning-table,.batting-table,.pitching-table{font-size:10px}.inning-table th,.batting-table th,.pitching-table th,.inning-table td,.batting-table td,.pitching-table td{padding:3px 2px;min-width:30px}.inning-table input,.batting-table input,.pitching-table input{font-size:10px;padding:2px 3px}.batting-table select,.pitching-table select{font-size:10px;padding:3px 4px;min-width:40px}}@media (min-width: 769px) and (max-width: 1024px){.batting-table,.pitching-table{min-width:auto;table-layout:auto}.inning-table th,.batting-table th,.pitching-table th,.inning-table td,.batting-table td,.pitching-table td{font-size:11px;padding:4px 3px}.inning-table input,.batting-table input,.pitching-table input{font-size:11px;padding:3px 4px}.batting-table select,.pitching-table select{font-size:11px;padding:4px 6px}}@media (min-width: 1025px){.batting-table,.pitching-table{min-width:auto;table-layout:auto}.inning-table th,.batting-table th,.pitching-table th,.inning-table td,.batting-table td,.pitching-table td{font-size:12px;padding:6px 4px}.inning-table input,.batting-table input,.pitching-table input{font-size:12px;padding:4px 6px}.batting-table select,.pitching-table select{font-size:12px;padding:6px 8px}}.backup-page{max-width:1050px}.backup-page .page-intro{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;min-height:205px;padding:34px 40px;border-radius:18px;color:#fff;background:linear-gradient(115deg,#1c3566,#2f69ae);box-shadow:0 15px 35px #29528b38;margin-bottom:24px}.backup-page .page-intro:after{content:"";position:absolute;width:260px;height:260px;right:-75px;bottom:-150px;border:45px solid rgba(255,255,255,.08);border-radius:50%}.backup-page .dashboard-ball{position:relative;z-index:1;display:grid;place-items:center;width:92px;height:92px;margin-right:20px;border-radius:50%;font-size:49px;background:#ffffff21;transform:rotate(-12deg)}.backup-panel{padding:22px;border:1px solid #e0e7f0;border-radius:14px;background:#fff;box-shadow:0 4px 15px #1831550f;margin-bottom:20px}.backup-danger-zone{border-color:#f3c2c2;background:#fffaf9}.backup-danger-zone .btn-danger{margin-top:16px;padding:10px 18px;border:1px solid #e2a3a3;border-radius:8px;color:#b3261e;font-weight:700;background:#fdeeee;cursor:pointer}.backup-danger-zone .btn-danger:hover{background:#fadede}.backup-panel-header h3{margin:0;color:#1e3151}.backup-panel-header>div>p:last-child{margin:5px 0 0;color:#74829a;font-size:13px}.backup-actions{display:flex;gap:10px;margin-top:16px}.backup-actions button{padding:10px 15px;border-radius:8px;font-weight:700}.backup-export-btn{border:1px solid #b9cdf0;color:#2866bd;background:#f4f8ff}.backup-import-btn{border:1px solid #2768c3;color:#fff;background:#2f74ce}.backup-note{margin:14px 0 0;color:#74829a;font-size:12px}.backup-message:not(:empty){margin-top:14px;padding:9px 11px;border-radius:8px;font-size:13px}.backup-message.success{color:#177657;background:#e9faf3}.backup-message.warning{color:#8b6416;background:#fff8df}.backup-message.error{color:#9d2736;background:#fff0f1}.record-query-page{padding:20px;max-width:1050px;margin:0 auto}.record-query-header{margin-bottom:18px;padding:24px 28px;border:1px solid #e0e7f0;border-left:5px solid #3377db;border-radius:14px;background:#fff;box-shadow:0 4px 15px #1831550f}.record-query-header h2{margin:0;color:#192a45;font-size:25px}.record-query-header p{margin:7px 0 0;color:#72819a;font-size:14px}.record-query-tabs{display:flex;gap:10px;margin-bottom:18px}.record-query-tab{padding:10px 18px;border:1px solid #d7e2f2;border-radius:999px;color:#4a5b7a;font-size:14px;font-weight:600;background:#fff;cursor:pointer}.record-query-tab.active{color:#fff;border-color:#3377db;background:#3377db}.record-query-panel{display:none}.record-query-panel.active{display:block}.record-query-empty,.record-query-empty-inline{padding:24px;color:#72819a;text-align:center}.record-query-empty-inline{padding:12px 0}.record-query-game-list{display:flex;flex-direction:column;gap:12px}.record-query-game-item{border:1px solid #e0e7f0;border-radius:12px;background:#fff;overflow:hidden}.record-query-game-summary{display:flex;align-items:center;gap:16px;padding:14px 18px}.record-query-result{display:inline-grid;place-items:center;width:30px;height:30px;flex-shrink:0;border-radius:8px;color:#72819a;font-weight:800;background:#eef2f8}.record-query-result.win{color:#177657;background:#e9faf3}.record-query-result.loss{color:#9d2736;background:#fff0f1}.record-query-result.tie{color:#8b6416;background:#fff8df}.record-query-game-info{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.record-query-game-info strong{color:#1e3151}.record-query-game-info span{color:#72819a;font-size:13px}.record-query-game-score{font-size:18px;font-weight:800;color:#1e3151}.record-query-game-detail{padding:0 18px 18px;border-top:1px solid #eef2f8}.record-query-table{width:100%;margin-top:12px;border-collapse:collapse;font-size:13px}.record-query-table th,.record-query-table td{padding:8px 10px;border-bottom:1px solid #eef2f8;text-align:center}.record-query-table th{color:#72819a;font-weight:700;background:#f8fafd}.record-query-search{margin-bottom:16px}.record-query-search input{width:100%;max-width:320px;padding:10px 14px;border:1px solid #ccd8e8;border-radius:8px;font-size:14px}.record-query-page h3{margin:20px 0 4px;color:#1e3151;font-size:16px}.record-query-page h3:first-child{margin-top:0}
