:root{font-family:system-ui,-apple-system,'Noto Sans JP',sans-serif;color:#1c332d;background:#f5f7f2;font-synthesis:none;--green:#285b49;--dark:#173d30;--muted:#657a70;--line:#e2e9e0;--lime:#e2edb9}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #e2974c;outline-offset:2px}[hidden]{display:none!important}
.header-actions,.list-actions{display:flex;align-items:center;gap:8px}.header-export{height:44px;padding:0 12px;border:1px solid #dce6da;border-radius:14px;background:#fff;color:#365f4c;font-size:12px;font-weight:700;white-space:nowrap}.list-actions{gap:10px}
.app-shell{max-width:760px;margin:auto;padding:22px 20px 48px}.header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.eyebrow,.overline{font-size:10px;font-weight:800;letter-spacing:.16em;color:#6b8474;margin:0 0 6px}.header h1{font-size:21px;letter-spacing:.02em;margin:0}.header h1 span{font-weight:500;margin-left:6px;color:#668172}.icon-button{width:44px;height:44px;border:1px solid #dce6da;border-radius:14px;background:#fff;color:#365f4c;font-size:23px;display:grid;place-items:center;flex:none}
.hero{border-radius:23px;background:#285b49;color:#fff;min-height:164px;padding:23px 24px;display:flex;align-items:center;justify-content:space-between;overflow:hidden}.hero .overline{color:#c7dfc4}.hero h2{font-size:22px;letter-spacing:.03em;line-height:1.45;margin:0}.hero-copy>p:last-child{font-size:12px;color:#d0dfd3;margin:11px 0 0}.hero-badge{width:98px;height:98px;border:1px solid #84aa8f;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(9deg);color:#deefcb;background:#ffffff0d;flex:none}.hero-badge span{font-size:52px;font-weight:800;line-height:1}.hero-badge small{font-size:8px;font-weight:800;letter-spacing:.15em}
.stats{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid #e8eee6;border-radius:18px;padding:16px 4px;margin:-1px 0 0;box-shadow:0 8px 22px #28412c09}.stats>div{padding:0 12px;min-width:0}.stats>div+div{border-left:1px solid var(--line)}.stats span{display:block;font-size:11px;color:var(--muted);white-space:nowrap}.stats strong{display:block;font-size:23px;line-height:1.4;font-variant-numeric:tabular-nums}.stats small{font-size:11px;margin-left:3px;font-weight:600}.setup-note,.storage-warning{font-size:12px;line-height:1.6;border-radius:12px;margin:16px 0 0;padding:11px 13px;background:#edf3e7;color:#53715c}.storage-warning{background:#fff0dd;color:#824515}.section-heading{display:flex;align-items:end;justify-content:space-between;margin:28px 0 12px}.section-heading h2,.export-section h2{font-size:20px;margin:0}.text-button{border:0;background:transparent;color:var(--green);font-size:13px;font-weight:700;min-height:44px;padding:0 4px}.table-card{background:#fff;border:1px solid #e4ebe1;border-radius:17px;overflow:hidden}.table-head,.lap-row{display:grid;grid-template-columns:66px minmax(0,1fr) minmax(84px,auto) 18px;align-items:center;gap:6px}.table-head{height:42px;background:#edf3e9;color:#71877a;font-size:11px;font-weight:700;padding:0 16px}.lap-row{width:100%;min-height:58px;border:0;border-top:1px solid #edf1eb;background:#fff;text-align:left;padding:7px 16px;color:#20382e}.lap-row:active{background:#eff5e9}.lap-number{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}.lap-number small{font-size:10px;font-weight:500;color:#84958b;margin-left:2px}.lap-rider{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px}.lap-time{font-weight:750;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}.lap-empty{color:#9aa99c;font-weight:500;font-size:13px}.lap-arrow{color:#b5c5b7;text-align:right;font-size:18px}.table-hint,.footer-note{font-size:11px;line-height:1.6;color:#7e9084}.table-hint{margin:10px 4px}.export-section{margin-top:32px;padding:21px;background:#eaf1e5;border-radius:18px}.export-section p:not(.overline){font-size:12px;line-height:1.5;color:#657b6e}.export-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.footer-note{text-align:center;margin:23px 8px 0}
.overlay{position:fixed;inset:0;background:#152c25a6;display:flex;align-items:flex-end;justify-content:center;z-index:10}.sheet{width:min(100%,760px);max-height:94dvh;overflow-y:auto;overscroll-behavior:contain;background:#fafbf8;border-radius:24px 24px 0 0;padding:9px 22px max(22px,env(safe-area-inset-bottom));box-shadow:0 -12px 40px #10241d33}.sheet-handle{width:37px;height:4px;border-radius:9px;background:#cad7ca;margin:0 auto 17px}.sheet-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.sheet-header h2{font-size:23px;margin:0}.close-button{background:#eff4ed;border:0;font-size:27px}.editor-state,.settings-intro{font-size:12px;color:#718477;line-height:1.5;margin:0 0 17px}.field-label{display:block;font-size:13px;font-weight:750;margin-bottom:8px}.rider-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:20px}.rider-button{height:47px;border:1px solid #dce6dc;border-radius:12px;color:#527163;background:white;font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 4px}.rider-button[aria-pressed=true]{border-color:#285b49;background:#285b49;color:#fff}.time-heading,.slider-heading{display:flex;justify-content:space-between;align-items:center}.time-heading span{color:#285b49;font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}.time-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.time-fields>div,.laps-input{display:flex;align-items:center;gap:9px}.time-fields input,.laps-input input,.setting-row input{min-width:0;border:1px solid #d9e4d8;border-radius:11px;background:#fff;color:#193e30;outline:none}.time-fields input{height:54px;width:100%;font-size:25px;font-weight:750;text-align:center;font-variant-numeric:tabular-nums}.time-fields span,.laps-input span{font-size:13px;color:#6b8071;white-space:nowrap}.field-hint{font-size:11px;color:#829489;margin:7px 0}.slider-heading{font-size:12px;color:#687e70;margin-top:18px}.slider-heading strong{color:#285b49}input[type=range]{width:100%;height:38px;margin:3px 0 0;accent-color:#2c6952}.slider-labels{display:flex;justify-content:space-between;font-size:10px;color:#8b9b8f}.sheet-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:8px;margin-top:20px}.primary-button,.secondary-button{min-height:50px;border-radius:13px;font-size:14px;font-weight:750;padding:10px 12px}.primary-button{background:#285b49;color:white;border:1px solid #285b49}.primary-button span{margin-left:5px}.secondary-button{background:#fff;color:#315e49;border:1px solid #d0dfd0}.delete-link{display:block;margin:13px auto 0;border:0;background:transparent;color:#a75d50;font-size:12px;min-height:34px}.form-error{font-size:12px;color:#ac3e2e;line-height:1.5;margin:9px 0}
.settings-sheet{padding-bottom:28px}.settings-column-labels{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:8px;font-size:11px;color:#7b9082;margin-bottom:5px}.setting-row{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:8px;margin-bottom:9px}.setting-row input{height:45px;padding:0 9px;width:100%;font-size:14px}.setting-time{display:flex;align-items:center;gap:4px}.setting-time input{text-align:center;padding:0 3px}.setting-time span{font-size:12px;color:#718477}.laps-setting{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;margin-top:17px;padding-top:17px}.laps-input{width:98px}.laps-input input{width:70px;height:44px;text-align:center}.settings-save{width:100%;margin-top:19px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:20;background:#183d30;color:#fff;padding:11px 18px;border-radius:99px;font-size:13px;white-space:nowrap;box-shadow:0 4px 20px #193e3033}
.reset-link{display:block;min-height:44px;margin:12px auto 0;padding:0 12px;border:0;background:transparent;color:#8b655c;font-size:12px;text-decoration:underline;text-underline-offset:3px}.confirm-overlay{align-items:center;padding:22px;z-index:20}.confirm-dialog{width:min(100%,420px);padding:24px;border-radius:20px;background:#fff;box-shadow:0 12px 36px #10241d33}.confirm-dialog h2{margin:0 0 12px;font-size:19px}.confirm-dialog p:not(.form-error){margin:0;color:#60766b;font-size:13px;line-height:1.75}.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:22px}.danger-button{min-height:50px;border:1px solid #a54f43;border-radius:13px;background:#a54f43;color:white;font-size:14px;font-weight:750;padding:10px 12px}
.riders-heading{display:flex;align-items:center;justify-content:space-between;margin:4px 0}.riders-heading .field-label{margin:0}.riders-heading small{font-size:11px;font-weight:500;color:#72887a}.text-button:disabled{opacity:.4;cursor:default}.setting-row,.settings-column-labels{grid-template-columns:minmax(0,1fr) 145px 40px}.rider-remove{min-height:44px;width:40px;padding:0;border:1px solid #e2e9e0;border-radius:11px;background:#fff;color:#936a60;font-size:22px}.rider-remove:disabled{opacity:.35;cursor:default}.notice-button{width:100%;margin-top:22px}.confirm-dialog .import-note{margin-top:12px!important;color:#865349!important}.footer-note a{color:#53715c}.export-section .export-actions{margin-top:10px}
.toast{max-width:calc(100% - 32px);white-space:normal;text-align:center;line-height:1.5}
@media(max-width:360px){.app-shell{padding-left:14px;padding-right:14px}.hero{padding:19px}.hero-badge{width:78px;height:78px}.hero-badge span{font-size:42px}.hero h2{font-size:19px}.stats>div{padding:0 8px}.stats span{font-size:10px}.sheet{padding-left:16px;padding-right:16px}.table-head,.lap-row{grid-template-columns:55px minmax(0,1fr) minmax(76px,auto) 14px;gap:4px;padding-left:12px;padding-right:12px}.setting-row,.settings-column-labels{grid-template-columns:minmax(0,1fr) 130px 40px;gap:4px}}
@media(min-width:640px){.overlay{align-items:center;padding:20px}.sheet{border-radius:24px;max-height:90dvh}.hero{min-height:180px}.hero h2{font-size:26px}}
