:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans JP,Meiryo,sans-serif;color:#233b35;background:#f4f5f0;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;font-size:14px;font-weight:400}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{opacity:.42;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #bd5d2f;outline-offset:3px}input:focus,select:focus{outline:2px solid #4a7864;outline-offset:1px}button{min-height:44px;border:0;border-radius:12px;background:transparent}svg{width:24px;height:24px;flex-shrink:0}p{line-height:1.7}h1,h2,p{overflow-wrap:anywhere}h1{letter-spacing:-.03em}h2{font-size:17px}small,.muted{color:#65766c}.app{max-width:480px;margin:0 auto;min-height:100dvh;background:#fafbf7;padding:env(safe-area-inset-top) 18px max(14px,env(safe-area-inset-bottom));border-inline:1px solid #e9ece4}.app-header{height:70px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #e1e6dc}.app-header>strong{font-size:17px;flex:1;line-height:1.2;display:flex;align-items:center;min-height:24px}.icon-button svg{display:block;width:20px;height:20px;flex:none}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e9eddf;color:#16493a}.brand-mark svg{width:27px;height:27px}.local-badge{font-size:10px;border:1px solid #dbe2d6;border-radius:20px;padding:5px 7px;white-space:nowrap;color:#63775f}.icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;padding:8px;margin-left:-8px}.workspace{border:0;margin:0;padding:0;min-width:0}.save-status{height:18px;font-size:10px;color:#56715e;text-align:right;padding-top:3px}.hero{position:relative;padding:26px 2px 28px;overflow:hidden}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.17em;color:#6a7f65}.hero h1{font-size:32px;line-height:1.6;font-weight:700;position:relative;z-index:1;margin:16px 0 10px}.hero p,.menu-card small{font-size:12px}.hero p{position:relative;z-index:1;color:#6d7d70;margin:0}.court-art{position:absolute;right:-29px;top:8px;width:150px;height:176px;border:1px solid transparent;border-radius:10px;transform:rotate(-18deg);opacity:.85;color:#dfe5d3}.court-art .court-diagram{position:absolute;left:calc(-40% - 18px);top:calc(-40% + 18px);width:180%;height:180%;pointer-events:none}.court-diagram :is(path,circle,rect){vector-effect:non-scaling-stroke}.court-art b{position:absolute;width:38px;height:38px;right:30px;bottom:14px;background:#ece3c6;border-radius:50%}.section-label{font-weight:600;font-size:12px;letter-spacing:.07em;margin:22px 0 12px;color:#697860}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.menu-card{text-align:left;position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;border:1px solid #dfe5d8;padding:20px 16px;background:#fff;min-height:144px;border-radius:16px;box-shadow:0 3px #eef0e8}.menu-card:nth-child(2){background:#163e36;color:#fff;border-color:#163e36}.menu-card:nth-child(2) small{color:#b8cfc0}.menu-card svg{width:28px;height:28px;margin-bottom:7px}.menu-card strong{font-size:17px}.menu-card small{line-height:1.5;overflow-wrap:anywhere}.arrow{position:absolute;right:15px;top:17px;color:#8b9d8b}.resume{display:flex;align-items:center;gap:12px;width:100%;background:#e7efdf;border:1px solid #cadabe;text-align:left;padding:15px}.resume>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}.resume strong{font-size:17px}.resume small{font-size:11px}.live-dot{width:9px;height:9px;background:#47834e;border-radius:50%}.backup-link{display:flex;align-items:center;gap:10px;padding:19px 0;width:100%;margin-top:16px;border-radius:0;border-bottom:1px solid #e0e5d9;text-align:left;font-size:12px}.backup-link>span:nth-child(2){flex:1}.backup-link svg{width:20px}.footnote{font-size:11px;color:#6c786a;line-height:1.8;margin:16px 0}.app>footer{align-items:baseline;margin-top:32px;border-top:1px solid #e4e8de;padding:17px 0 8px;color:#7d8b77;font-size:10px;display:flex;justify-content:space-between;gap:8px;white-space:nowrap;font-size:9px}.page-title{font-size:23px;margin:16px 0 9px;line-height:1.5}.page-heading h1{font-size:24px;margin:12px 0}.page-heading{padding:12px 0 20px}.page-heading p{color:#65766c}.title-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.title-row>.primary{flex-shrink:0;padding-inline:12px;font-size:13px}.primary,.secondary,.end-button,.confirm-action{display:inline-flex;align-items:center;justify-content:center;gap:8px}.name-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.name-fields .field{margin:10px 0}.watch-end{display:block;margin:20px auto 0;min-height:44px;padding:10px 18px;font-size:12px;text-decoration:underline;color:#657365}.bench-edit-button{position:static;margin-top:12px;font-size:12px}dialog.bench-editor{width:440px;max-width:calc(100% - 24px);max-height:calc(100dvh - 32px);padding:16px;overflow-y:auto}.bench-editor .full{margin-top:12px}.bench-editor .row-end{font-size:12px}.bench-editor .player-row:disabled[aria-pressed=true]{opacity:1}.title-row .muted{margin:0 0 15px}.primary{background:#163e36;color:#fff;font-weight:600;padding:12px 17px}.secondary{border:1px solid #cbd5c6;background:#fff;padding:11px 15px;font-weight:500}.full{width:100%;margin-top:12px;min-height:48px}.field{display:flex;flex-direction:column;gap:8px;margin:18px 0;min-width:0}.field>span{font-size:12px;font-weight:600}.field input,.field select,.filters>input{border:1px solid #cbd5c6;background:#fff;color:#233b35;border-radius:9px;padding:12px;min-height:46px;width:100%;min-width:0;font-size:16px}.form-grid{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px}.form-grid .field{margin:0}.check-field{display:flex;align-items:center;gap:9px;min-height:48px;margin-top:16px}.check-field input{width:20px;height:20px;accent-color:#1c5042}.filters{margin:16px 0 12px}.segments{display:flex;gap:5px;background:#ebeee5;padding:4px;border-radius:10px;margin:10px 0 6px}.segments button{flex:1;min-height:40px;border-radius:7px;font-size:12px}.segments .selected{background:#fff;color:#164333;font-weight:700;box-shadow:0 1px 3px #d9dfd3}.filters small{font-size:10px;display:block;width:46px;text-align:center}.player-list{display:flex;flex-direction:column;gap:8px}.player-row{display:flex;align-items:center;gap:12px;text-align:left;padding:11px 12px;background:#fff;border:1px solid #e0e5d8;min-height:68px;width:100%}.jersey{font-size:26px;font-weight:750;min-width:40px;max-width:65px;flex-shrink:0;text-align:center;font-variant-numeric:tabular-nums;letter-spacing:-.04em}.player-info{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.player-info strong{font-size:15px;overflow-wrap:anywhere;line-height:1.35}.player-info>span{font-size:11px;color:#657365;line-height:1.35;overflow-wrap:anywhere}.player-info>.live-name-line{color:inherit}.player-info b{font-size:10px;font-weight:650;margin-left:6px;color:#527266}.dot{margin:0 4px;color:#abb6a4}.row-end{font-size:11px;color:#6a8064;flex-shrink:0}.chosen{background:#e5efdb!important;border-color:#477349!important;box-shadow:inset 0 0 0 1px #477349}.child-mark{font-size:12px;color:#b46444}.empty{text-align:center;padding:40px 8px;color:#74816a}.empty svg{width:38px;height:38px;color:#16493a}.empty p{font-size:14px}.empty button{display:block;margin:20px auto}.danger-link{color:#a84b34;display:block;margin:14px auto;text-decoration:underline;font-size:12px}.steps{display:flex;justify-content:space-between;gap:5px;font-size:11px;margin:10px 0 24px;color:#87917e}.steps button{border-bottom:2px solid #dfe5d8;padding:10px 1px;flex:1;text-align:center;border-radius:0;font-size:11px}.steps .done{color:#45674a;border-color:#9aaf8a;background:#eff3e9}.steps .current{color:#254f3b;border-color:#254f3b;font-weight:700}.sticky-heading{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#fafbf7;z-index:2;padding:6px 0}.sticky-heading h1{margin:8px 0}.count{white-space:nowrap;font-size:15px;color:#2b5b41}.bottom-actions{position:sticky;bottom:0;background:#fafbf7ee;padding:0 0 max(10px,env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);margin-top:12px}.bottom-actions .secondary{min-height:44px;margin-top:7px}.notice{background:#f5ecd4;color:#735526;padding:12px;border-radius:10px;font-size:12px;line-height:1.7}.notice.error{background:#fae9e2;color:#9d382a}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.match-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.match-heading>div{min-width:0}.match-heading h1{font-size:18px;margin:3px 0;line-height:1.4}.match-heading p{font-size:12px;margin:4px 0;color:#64705f}.match-state{background:#ecefe6;border-radius:5px;font-size:10px;padding:7px 8px;white-space:nowrap}.recording{color:#306541;background:#e3eddb}.quarter-heading{display:flex;align-items:center;justify-content:space-between;margin:12px 0 10px}.quarter-heading strong{font-size:21px;color:#274733}.quarter-heading>span{font-size:10px;letter-spacing:.12em;color:#7a896c}.court-players{display:flex;flex-direction:column;gap:6px}.court-player{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;min-height:66px;text-align:left;border:1px solid #dce4d3;border-left:4px solid #3d6149;background:#fff;border-radius:10px}.court-player .jersey{font-size:30px;min-width:40px}.court-player .player-info strong{font-size:16px}.swap-indicator{font-size:18px;color:#99a88b;flex-shrink:0}.swap-hint{font-size:10px;color:#657f5b;margin:9px 0 5px;min-height:18px}.bench-heading{display:flex;align-items:center;gap:8px;font-size:12px;margin:1px 0 6px}.bench-heading>span{font-size:10px;color:#7c896e}.text-button{font-size:10px;text-decoration:underline;margin-left:auto;padding:4px 0;min-height:36px}.bench-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.bench-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#eff1e9;border:1px solid #dfe4d6;border-radius:8px;min-height:58px;padding:4px 2px;gap:3px;min-width:0}.bench-grid b{font-size:22px;line-height:1.1}.bench-grid span{display:block;font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.end-button{background:#eee6d7;border:1px solid #dacdb5;color:#6c5836;font-weight:600;margin-top:12px}.selection-count{color:#466b3e;margin:12px 0;font-weight:600}.result-table{background:#fff;border:1px solid #e0e5d8;border-radius:12px;overflow:hidden;margin-top:12px}.result-table table{width:100%;border-collapse:collapse;table-layout:fixed}.result-table th,.result-table td{padding:10px 2px;text-align:center;font-size:var(--time-font, 10px);border-bottom:1px solid #edf0e8;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.6}.result-table th:first-child{text-align:center;width:19%;padding:10px 2px;white-space:normal;overflow-wrap:anywhere}.result-table tbody th,.result-table thead th{font-size:10px}.pause-button{margin-bottom:10px}.pause-button:not(.paused){background:#e4edf3;color:#284b63;border-color:#adc3d0}.paused,.pause-notice{color:#71531e;background:#fff2cd}.pause-notice{padding:10px;border-radius:10px;font-size:12px}.result-table tbody th span{color:#839074;font-size:10px;font-weight:400}.result-table thead{background:#eef1e7;color:#627456}.result-table tbody tr:last-child>*{border:0}.pill{display:inline-block;background:#e7efdf;border-radius:5px;padding:6px 10px;font-size:11px;color:#577344}details{border:1px solid #dae1d2;border-radius:10px;padding:8px 12px;margin:14px 0}summary{cursor:pointer;font-size:12px;min-height:35px;padding:8px 0}.event-log{font-size:11px;padding:10px 0;border-top:1px solid #e4e8dc}.event-log p{margin:5px 0}.child-card{background:#e6edda;display:flex;align-items:center;gap:12px;padding:22px 14px;border-radius:14px}.child-card>svg{color:#6e7d4f}.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stats-grid>div{background:#fff;border:1px solid #dfe5d8;border-radius:12px;padding:17px 12px;display:flex;flex-direction:column;gap:9px}.stats-grid strong{font-size:20px;color:#234e3d;overflow-wrap:anywhere}.stats-grid small{font-size:11px}.stats-grid em{font-size:11px;font-style:normal;margin-left:5px}.game-list{display:flex;flex-direction:column;gap:9px}.game-list button{display:flex;flex-direction:column;align-items:flex-start;position:relative;gap:7px;text-align:left;border:1px solid #dfe5d8;background:#fff;padding:15px;min-width:0}.game-list strong{font-size:15px;max-width:100%;overflow-wrap:anywhere}.game-list span{font-size:12px;color:#6f7b63}.game-list b{align-self:flex-end;font-size:13px;color:#315c3e}.game-list small{font-size:10px}.data-section{border-bottom:1px solid #dfe5d8;padding:12px 0 20px}.data-section p{font-size:12px;color:#68785d}.file-button{position:relative;display:block;overflow:hidden;background:#e6ecdd;border:1px solid #cdd9bd;padding:15px;border-radius:10px;text-align:center;font-weight:600;font-size:13px;cursor:pointer}.file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-button:focus-within{outline:2px solid #315c3e}dialog{max-width:calc(100% - 36px);width:380px;border:1px solid #d7dfcb;border-radius:18px;padding:24px;color:#233b35;background:#fafbf7;box-shadow:0 20px 80px #102c3455}dialog::backdrop{background:#172d2b99}dialog h2{font-size:20px;margin:0 0 15px}dialog p{font-size:13px;color:#65735c}.confirm-action{background:#b7552f;color:#fff;font-weight:650}@media(min-width:700px){.app{margin-top:24px;margin-bottom:24px;border-radius:22px;min-height:calc(100dvh - 48px);box-shadow:0 10px 50px #1d322c0c}}@media(max-width:374px){.app{padding-inline:12px}.hero h1{font-size:29px}.menu-card{padding:17px 13px}.court-player{padding:9px;min-height:64px}.court-player .player-info strong{font-size:15px}.player-info>span{font-size:10px}.app-header>strong{font-size:16px}.stats-grid strong{font-size:18px}}.offline-status{font-size:10px;color:#5e7954;margin:10px 0}.furigana{font-size:11px;color:#657365}.date-control{position:relative;display:block}.date-control input{color:transparent;caret-color:transparent}.date-control input::-webkit-datetime-edit{visibility:hidden}.date-control input::-webkit-date-and-time-value{color:transparent}.date-display{position:absolute;inset:1px 42px 1px 12px;display:flex;align-items:center;pointer-events:none;font-size:16px;font-weight:400;color:#233b35;background:#fff}.import-preview{margin-top:18px;padding:14px;background:#eff3e9;border:1px solid #cad8bf;border-radius:12px}.import-preview h3{font-size:16px}.import-options{border:0;padding:0;margin:16px 0 0}.import-options legend{font-size:13px;font-weight:600}.compact-player{gap:0;padding:0;min-height:74px;align-items:stretch;overflow:hidden;border-radius:9px}.compact-player .jersey{flex:0 0 44px;width:44px;min-width:44px;max-width:44px;font-size:22px;display:grid;place-items:center;background:#edf1e8;border-right:1px solid #dce4d4}.position-badge{flex:0 0 36px;width:36px;padding:0;border-radius:0;display:grid;place-items:center;background:#ceddc6;color:#294b36;font-size:22px;font-weight:750;white-space:nowrap;text-align:center}.compact-details{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px;justify-content:center;padding:12px 8px 12px 12px}.compact-name-line{display:flex;align-items:baseline;gap:6px;min-width:0}.compact-name-line .player-name{flex:0 0 auto;max-width:calc(100% - 22px);min-width:0;overflow-wrap:anywhere;font-size:16px;line-height:1.35}.compact-name-line .furigana{flex:1 1 0;min-width:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:#6c7c68;line-height:1.35}.compact-meta-line{display:flex;align-items:baseline;gap:7px;min-width:0;font-size:11px;line-height:1.35;color:#657365}.player-grade{flex:0 0 auto;white-space:nowrap}.player-school{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.compact-player .row-end{flex:0 0 44px;width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;border-left:1px solid #edf0e8}.field-error{color:#9d382a;font-size:12px;margin:-8px 0 18px}.field input[aria-invalid=true]{border-color:#9d382a}.roster-review{background:#f5f0e3}.roster-review summary{font-weight:600}.roster-issue{padding:12px 0;border-top:1px solid #ddd9cb;font-size:12px;overflow-wrap:anywhere}.roster-issue p{margin:6px 0}.match-review{border-top:1px solid #cad8bf;margin-top:12px}.match-review select{max-width:100%}.history-card{position:relative;background:#fff;border:1px solid #dfe5d8;border-radius:12px;padding:15px;cursor:pointer;min-width:0}.history-card .game-open{width:100%;padding:0 76px 0 0;border:0;border-radius:0}.history-actions{display:grid;grid-template-columns:minmax(44px,1fr) auto minmax(44px,1fr);align-items:center;margin-top:12px;gap:8px}.history-actions .delete-game{position:absolute;top:8px;right:8px;min-height:44px;padding:9px 10px;border:0;background:transparent;color:#a54130;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;border-radius:8px}.history-actions .delete-game:before{content:"";position:absolute;inset:4px;border:1px solid #bd7667;border-radius:6px;pointer-events:none}.history-actions .delete-game span{color:inherit}.delete-game svg{width:18px;height:18px}.history-actions .game-arrow{grid-column:3;justify-self:end;align-items:center;justify-content:center;width:44px;min-height:44px;padding:0;border:0;font-size:18px}dialog p{white-space:pre-line}.grade-actions{margin-top:24px;display:grid;gap:10px}.grade-update-button{color:#284e63;background:#e7eff4;border:1px solid #8ca8b8}.retire-seniors-button{color:#675027;background:#f2ebda;border:1px solid #baa56e}.grade-actions .dialog-actions{display:flex;flex-wrap:wrap;gap:8px}.grade-actions .dialog-actions button{flex:1}.grade-counts{padding-left:20px;line-height:1.9}
