*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:#f6f8fb;color:var(--bike-ink, #384e68);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;font-size:15px;-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;color:inherit}a{color:inherit;text-decoration:none}svg{display:block}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--bike-accent, #175ed4);outline-offset:4px}[hidden]{display:none!important}.app-shell{max-width:1080px;margin:auto;padding:0 40px}.topbar{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eef2f7;gap:16px}.brand{display:flex;gap:11px;align-items:center;font-size:21px;line-height:1.1;font-weight:850;letter-spacing:2.5px}.brand-caption{display:block;font-size:8px;letter-spacing:1.9px;color:var(--bike-muted, #5d7fa8);margin-top:6px;font-weight:500}.header-actions{display:flex;gap:20px;align-items:center}.local-pill{font-size:11px;color:var(--bike-muted, #597da6);display:flex;gap:7px;align-items:center}.local-pill i{width:5px;height:5px;background:var(--bike-muted, #4a6789);border-radius:50%}.icon-button{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:#f0f4f8;color:var(--bike-muted, #4b688b)}.icon-button svg{width:19px;height:19px}.icon-button:hover{background:#ebf0f5}.storage-warning{background:var(--bike-muted, #7794b6);color:var(--bike-accent-ink, #175ed4);padding:14px;border-radius:10px;margin-top:16px;font-size:12px;line-height:1.6}main{padding:43px 0 54px;min-height:75vh;outline:0}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:29px}.eyebrow{font-size:9px;letter-spacing:2px;color:var(--bike-muted, #5c7ea7);font-weight:550;text-transform:uppercase}.page-heading h1{font-size:42px;letter-spacing:-1.6px;margin:10px 0 9px;font-weight:650;line-height:1.1}.page-heading p{color:var(--bike-muted, #5a7da6);font-size:12px;margin:0;line-height:1.6}.count{font-size:12px;letter-spacing:0;color:var(--bike-muted, #5b7ea7);vertical-align:middle;font-weight:400;background:#f1f4f8;border-radius:7px;padding:5px 8px;margin-left:10px}.button{min-height:46px;border-radius:11px;background:var(--bike-accent, #175ed4);color:#f1f4f8;font-size:12px;font-weight:650;display:inline-flex;justify-content:center;align-items:center;gap:9px;padding:13px 18px;transition:background .15s,transform .15s}.button:hover{background:var(--bike-accent, #175ed4)}.button:active{transform:translateY(1px)}.button svg{width:17px;height:17px}.button.secondary{background:#eef2f7;color:var(--bike-ink, #3e5774)}.button.danger{background:#ebf0f5;color:var(--bike-accent-ink, #175ed4)}.button.full{width:100%}.button.large{min-height:51px;font-size:13px}.bike-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.bike-tab{border:1px solid #ebf0f6;border-radius:9px;padding:10px 13px;background:transparent;color:var(--bike-muted, #587ba4);font-size:12px}.bike-tab.active{background:#eef2f7;border-color:var(--bike-muted, #6f8db1);color:var(--bike-accent-ink, #175ed4)}.garage-grid{display:grid;grid-template-columns:1.13fr 1fr;gap:22px;align-items:start}.panel{border:1px solid #ecf0f6;background:#f3f6f9;border-radius:18px;overflow:hidden}.bike-card{background:radial-gradient(ellipse at 85% 5%,var(--bike-muted, #7794b6) 0,transparent 70%),#f0f3f8;position:relative;padding:25px 26px 23px;border-color:var(--bike-muted, #7794b6);isolation:isolate}.bike-card:before{content:'';position:absolute;inset:0;background:url('assets/contours.svg') center/cover;opacity:.19;z-index:-1;pointer-events:none}.bike-top{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.bike-top h2{font-size:25px;line-height:1.2;letter-spacing:-.8px;margin:9px 0 5px;overflow-wrap:anywhere}.bike-kicker{display:flex;align-items:center;gap:6px;font-size:9px;letter-spacing:1.5px;color:var(--bike-accent-ink, #175ed4)}.bike-kicker:before{content:'';width:4px;height:4px;background:var(--bike-accent, #175ed4);border-radius:50%}.bike-top .icon-button{width:33px;height:33px;background:#122f5209;border:1px solid #122f5212;color:var(--bike-muted, #456080)}.bike-subtitle{color:var(--bike-muted, #577aa2);font-size:10px}.bike-art{position:relative;height:239px;margin:2px -13px -10px;display:flex;align-items:center}.bike-art>svg{width:100%;height:100%;overflow:visible;z-index:1;position:relative;filter:drop-shadow(0 10px 8px #fcfcfd4)}.art-number{position:absolute;top:25px;right:5px;font-size:120px;font-weight:900;letter-spacing:-9px;line-height:1;color:#175ed40a}.meter-row{border-top:1px solid #51719622;padding-top:18px;display:flex;align-items:flex-end;justify-content:space-between;gap:10px}.meter-label{font-size:10px;color:var(--bike-muted, #4d6b8f);display:flex;align-items:center;gap:6px}.meter-label svg{width:13px;height:13px}.meter{font-size:57px;font-weight:550;letter-spacing:-2.7px;line-height:1.1;margin-top:5px;font-variant-numeric:tabular-nums}.meter small{font-size:14px;font-weight:400;letter-spacing:0;color:var(--bike-muted, #55769e);margin-left:5px}.meter-note{font-size:10px;line-height:1.6;color:var(--bike-muted, #577aa2);text-align:right;padding-bottom:6px}.bike-card .button{margin-top:22px}.log-panel{padding:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:21px}.section-heading h2{font-size:17px;font-weight:550;letter-spacing:-.4px;margin:0}.entry-count{font-size:9px;color:var(--bike-muted, #587aa3);background:#eef2f7;border-radius:6px;padding:5px 7px;white-space:nowrap}.log-item{position:relative;display:flex;gap:14px;padding:18px 0;border-bottom:1px solid #ecf0f6;align-items:center}.log-item:first-child{padding-top:3px}.log-item:last-child{border-bottom:none;padding-bottom:1px}.log-icon{width:35px;height:35px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;background:#edf2f7;color:var(--bike-muted, #4d6b8f)}.log-icon svg{width:16px;height:16px}.log-content{flex:1;min-width:0}.log-title{font-size:13px;line-height:1.4;font-weight:500}.log-date{color:var(--bike-muted, #5e80a8);font-size:10px;line-height:1.5;margin-top:5px}.log-reading{font-size:14px;text-align:right;color:var(--bike-ink, #425c7a);font-variant-numeric:tabular-nums;white-space:nowrap}.log-reading small{color:var(--bike-muted, #5c7fa7);font-size:9px;display:block;margin-top:5px}.log-delete{display:grid;place-items:center;width:27px;height:32px;border-radius:8px;background:none;color:var(--bike-muted, #6c8bb0);margin-right:-7px}.log-delete svg{width:14px;height:14px}.log-delete:hover{background:#edf1f6;color:var(--bike-accent-ink, #175ed4)}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:18px}.stat{border:1px solid #ecf0f6;border-radius:13px;padding:18px;background:#f3f6f9}.stat-label{font-size:10px;color:var(--bike-muted, #587ba4);display:flex;align-items:center;gap:7px}.stat-label svg{width:14px;height:14px}.stat-value{font-size:25px;letter-spacing:-.7px;margin-top:12px;font-weight:550}.stat-value small{font-size:11px;font-weight:400;color:var(--bike-muted, #6384ab);letter-spacing:0}.stat-caption{font-size:9px;line-height:1.6;color:var(--bike-muted, #6d8cb1);margin-top:6px}.empty-log{text-align:center;padding:30px 5px 20px}.empty-log .log-icon{margin:0 auto 15px;width:45px;height:45px}.empty-log h3{font-size:14px;font-weight:500}.empty-log p{font-size:11px;line-height:1.8;color:var(--bike-muted, #5c7fa7);max-width:245px;margin:0 auto}.initial-reading{margin-top:20px;padding-top:15px;border-top:1px dashed var(--bike-muted, #7794b6);font-size:10px;color:var(--bike-muted, #6384ab);display:flex;justify-content:space-between;gap:10px}.save-note{margin:22px 0 0;font-size:10px;line-height:1.7;color:var(--bike-muted, #6a89af);display:flex;gap:7px;align-items:center;justify-content:center}.save-note svg{width:12px;height:12px}.welcome{display:grid;grid-template-columns:1.15fr 1fr;gap:35px;align-items:center;padding:30px 0 55px}.welcome-art{border:1px solid var(--bike-muted, #7794b6);border-radius:20px;background:radial-gradient(ellipse at 70% 0%,var(--bike-muted, #7794b6),transparent 80%),#f0f3f8;position:relative;overflow:hidden;padding:30px 15px 10px;min-height:370px;display:flex;align-items:center}.welcome-art:before{content:'';position:absolute;inset:0;opacity:.2;background:url('assets/contours.svg') center/cover}.welcome-art>svg{position:relative;width:100%;height:290px;filter:drop-shadow(0 12px 9px #fcfcfd4)}.welcome-art .art-number{top:23px;right:30px;font-size:160px}.welcome-art-label{position:absolute;left:24px;bottom:21px;font-size:8px;letter-spacing:2px;color:var(--bike-muted, #517297);display:flex;align-items:center;gap:7px}.welcome-art-label:before{content:'';height:4px;width:4px;border-radius:50%;background:var(--bike-accent, #175ed4)}.welcome-copy h2{font-size:36px;letter-spacing:-1.2px;line-height:1.15;margin:14px 0 17px;font-weight:550}.welcome-copy h2 em{font-style:normal;color:var(--bike-accent-ink, #175ed4)}.welcome-copy p{font-size:13px;line-height:1.9;color:var(--bike-muted, #5779a2);max-width:300px;margin:0 0 25px}.welcome-steps{display:flex;gap:18px;margin-top:30px;border-top:1px solid #edf1f6;padding-top:22px}.welcome-steps>div{font-size:10px;line-height:1.7;color:var(--bike-muted, #6183aa);flex:1}.step-num{font-size:9px;color:var(--bike-accent-ink, #175ed4);display:block;letter-spacing:1px;margin-bottom:7px}footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #eef2f7;padding:22px 0 28px;color:var(--bike-muted, #7492b4);font-size:9px}footer .footer-brand{font-size:8px;letter-spacing:1.5px}dialog{color:var(--bike-ink, #384e68);position:fixed;inset:0;margin:auto;padding:28px;width:min(calc(100% - 32px),460px);height:fit-content;max-height:90dvh;border:1px solid var(--bike-muted, #7794b6);background:#f2f5f9;border-radius:22px;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 10px 70px #fcfcfd5}dialog::backdrop{background:#fafbfcbf;backdrop-filter:blur(5px)}.sheet-grip{display:none}.sheet-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:27px}.sheet-header h2{font-size:25px;letter-spacing:-.7px;margin:9px 0 0;line-height:1.2;font-weight:550}.sheet-header .icon-button{width:32px;height:32px}.sheet-header .icon-button svg{width:16px;height:16px}.field{display:flex;flex-direction:column;gap:9px;margin-bottom:20px}.field label{font-size:12px;color:var(--bike-muted, #486485)}.field input{width:100%;min-height:49px;background:#f5f8fa;border:1px solid var(--bike-muted, #7794b6);border-radius:11px;padding:13px;color:var(--bike-accent-ink, #175ed4);font-size:16px;outline-offset:2px}.field input::placeholder{color:var(--bike-muted, #7592b5)}.field-hint{font-size:10px;line-height:1.7;color:var(--bike-muted, #5a7da6)}.form-note{font-size:12px;line-height:1.8;color:var(--bike-muted, #56779f);margin:0 0 22px}.form-buttons{display:flex;gap:10px;margin-top:26px}.form-buttons .button{flex:1}.form-error{background:var(--bike-muted, #7794b6);color:var(--bike-accent-ink, #175ed4);padding:12px;border-radius:9px;font-size:12px;line-height:1.6;margin:0 0 17px}.big-input{position:relative}.big-input input{font-size:46px;letter-spacing:-1.5px;padding:14px 65px 14px 17px;line-height:1.2;min-height:91px;font-weight:500}.big-input>span{position:absolute;right:19px;bottom:24px;color:var(--bike-muted, #597ca6);font-size:13px}.delta-preview{font-size:12px;color:var(--bike-accent-ink, #175ed4);line-height:1.6;margin-top:0;min-height:20px}.info-box{padding:17px;background:#eef2f7;border-radius:12px;color:var(--bike-muted, #4f6e93);font-size:12px;line-height:1.9}.info-box strong{font-weight:500;color:var(--bike-accent-ink, #175ed4)}.info-box+p{font-size:11px;color:var(--bike-muted, #5b7ea7);line-height:1.8;margin-top:18px}.action-list{display:grid;gap:10px}.info-export{margin-top:20px}.info-note{font-size:10px;color:var(--bike-muted, #6787ad);line-height:1.8}.settings-button{width:100%;display:flex;align-items:center;gap:13px;padding:16px;background:#eff3f7;border-radius:11px;text-align:left;font-size:13px}.settings-button svg{width:18px;height:18px;color:var(--bike-muted, #4b688b)}.settings-button.danger{color:var(--bike-accent-ink, #175ed4);background:#eef2f7}.confirm-copy{color:var(--bike-muted, #4c6b8e);font-size:13px;line-height:1.8}.confirm-copy strong{font-weight:500;color:var(--bike-ink, #3b536e)}.skip{position:absolute;left:16px;top:-100px;z-index:100;background:var(--bike-accent, #175ed4);color:#f4f7fa;padding:12px}.skip:focus{top:16px}#toast{position:fixed;z-index:100;bottom:calc(24px + env(safe-area-inset-bottom,0px));left:50%;transform:translate(-50%,12px);max-width:calc(100% - 32px);width:max-content;background:var(--bike-accent, #175ed4);color:#f0f4f8;border-radius:11px;padding:13px 18px;font-size:12px;line-height:1.5;box-shadow:0 7px 35px #fcfcfd6;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}.log-more{margin-top:20px;width:100%;background:none;border:1px solid var(--bike-muted, #7794b6);color:var(--bike-muted, #4c6a8e);padding:11px;border-radius:9px;font-size:11px}.month-caption{margin:5px 0 0;font-size:10px;color:var(--bike-muted, #6787ad)}
@media(max-width:700px){.app-shell{padding:0 20px}.topbar{height:77px}.brand{font-size:18px;letter-spacing:2px}.brand img{width:31px;height:31px}.brand-caption{font-size:7px;letter-spacing:1.6px}.header-actions{gap:10px}.local-pill{font-size:0;gap:0}.local-pill i{width:5px;height:5px}.icon-button{width:34px;height:34px}main{padding:30px 0 36px;min-height:calc(100dvh - 143px)}.page-heading{margin-bottom:23px;gap:10px}.page-heading h1{font-size:33px;letter-spacing:-1.1px;margin-top:10px}.page-heading p{font-size:11px}.page-heading .button{font-size:11px;min-height:39px;padding:11px 13px}.page-heading .button svg{width:15px;height:15px}.count{font-size:10px;margin-left:7px;padding:4px 7px}.eyebrow{font-size:8px;letter-spacing:1.7px}.garage-grid{grid-template-columns:1fr;gap:19px}.bike-card{padding:22px 22px 20px;border-radius:17px}.bike-top h2{font-size:25px}.bike-art{height:200px;margin:4px -14px -7px}.art-number{font-size:105px;top:20px}.meter{font-size:53px}.meter-row{padding-top:17px}.meter-note{font-size:9px}.bike-card .button{margin-top:20px}.button.large{min-height:48px;font-size:12px}.stats-grid{gap:11px;margin-top:13px}.stat{padding:16px}.stat-value{font-size:25px;margin-top:10px}.stat-label{font-size:10px}.stat-caption{font-size:9px}.log-panel{padding:21px}.section-heading{margin-bottom:19px}.section-heading h2{font-size:16px}.log-item{padding:17px 0;gap:11px}.log-title{font-size:12px}.log-reading{font-size:13px}.log-date{font-size:10px}.log-icon{width:33px;height:33px}.save-note{margin-top:20px;font-size:9px}.bike-tabs{gap:7px;margin-bottom:15px}.bike-tab{font-size:11px;padding:9px 11px}.welcome{grid-template-columns:1fr;gap:24px;padding:0 0 5px}.welcome-art{min-height:247px;padding:15px 8px 10px;border-radius:17px}.welcome-art>svg{height:226px}.welcome-art .art-number{font-size:125px;top:15px;right:28px}.welcome-art-label{font-size:7px;bottom:18px;left:20px}.welcome-copy{padding:0 3px}.welcome-copy h2{font-size:31px;letter-spacing:-1px;margin:12px 0 13px}.welcome-copy p{font-size:12px;line-height:1.8;max-width:330px;margin-bottom:20px}.welcome-copy .button{width:100%}.welcome-steps{margin-top:25px;padding-top:20px;gap:14px}.welcome-steps>div{font-size:9px}.step-num{font-size:8px;margin-bottom:5px}footer{font-size:8px;padding:20px 0 calc(23px + env(safe-area-inset-bottom,0px));gap:8px}footer .footer-brand{font-size:7px;letter-spacing:1px}dialog{inset:auto 0 0;margin:0;width:100%;max-height:92dvh;padding:25px 22px calc(27px + env(safe-area-inset-bottom,0px));border-radius:24px 24px 0 0}.sheet-grip{display:block;width:33px;height:4px;background:var(--bike-muted, #7794b6);border-radius:3px;margin:-12px auto 24px}.sheet-header h2{font-size:24px}.form-note{font-size:12px}.big-input input{font-size:44px}.field{margin-bottom:20px}.button{min-height:47px}.empty-log{padding:22px 5px 14px}.info-box{font-size:12px}}
@media(max-width:350px){.app-shell{padding:0 14px}.page-heading h1{font-size:30px}.bike-art{height:180px}.bike-card{padding:19px 19px 18px}.meter{font-size:48px}.welcome-copy h2{font-size:28px}.welcome-art>svg{height:208px}.welcome-art{min-height:228px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

body{background:#f4f7fc;color:var(--bike-ink, #132e50)} .topbar{height:86px}.brand-caption{color:var(--bike-muted, #60748c)}.button{background:var(--bike-accent, #155bd5);color:white}.button:hover{background:var(--bike-accent, #104bb6)}.button.secondary,.icon-button{background:#e9eff9;color:var(--bike-accent-ink, #174c9c)}.button.secondary:hover{background:var(--bike-soft, #dae6fb)}.panel,.stat{background:white;border-color:var(--bike-line, #dce5f0)}.bike-card,.welcome-art{background:linear-gradient(145deg,#fff,var(--bike-soft, #e3edfc));border-color:var(--bike-line, #ccdaf1)}.bike-card:before,.welcome-art:before{opacity:.05}.bike-top h2{color:var(--bike-ink, #102f56)}.meter{color:var(--bike-ink, #103567)}.art-number{color:#c5d6ed66}.bike-top .icon-button{color:var(--bike-accent-ink, #174c9c);background:#fff}.button.danger{background:#fff0ed;color:#ad3525}.bike-tab.active{background:var(--bike-accent, #155bd5);color:#fff;border-color:var(--bike-accent, #155bd5)}.welcome-copy h2 em{color:var(--bike-accent-ink, #155bd5)}.local-pill i{background:var(--bike-accent, #2563df)}dialog{background:#fff;color:var(--bike-ink, #17334f);border-color:var(--bike-line, #d5e2f3)}input,select,textarea{font:inherit;color:var(--bike-ink, #153554);background:#f6f9fe;border:1px solid var(--bike-line, #cbd9eb);border-radius:10px;padding:13px;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid var(--bike-accent, #2c6fe1);outline-offset:1px}.bottom-nav{position:sticky;bottom:12px;z-index:5;margin:0 auto 20px;display:flex;max-width:390px;padding:6px;background:#fff;border:1px solid var(--bike-line, #d5e2f3);box-shadow:0 8px 35px #12396c18;border-radius:18px;gap:5px}.bottom-nav button{flex:1;background:transparent;border-radius:12px;padding:13px;color:var(--bike-muted, #66809e)}.bottom-nav button.active{background:var(--bike-accent, #155bd5);color:#fff}.service-area{margin-top:26px}.service-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.service-heading h2{font-size:21px;margin:0}.muted{color:var(--bike-muted, #6b7f99);font-size:12px;line-height:1.7}.service-card{padding:18px 0;border-bottom:1px solid #e4eaf3;display:flex;justify-content:space-between;gap:12px;align-items:center}.service-card strong{display:block;margin-bottom:6px;overflow-wrap:anywhere}.service-card .button{min-height:34px;padding:9px;font-size:11px}.status{display:inline-block;font-size:11px;background:var(--bike-soft, #eaf1ff);color:var(--bike-accent-ink, #155bd5);border-radius:6px;padding:5px 8px;margin-top:5px}.status.overdue{background:#fff0ee;color:#a93427}.service-panel{padding:23px;margin-bottom:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field textarea{min-height:85px;resize:vertical}.race-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.race-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.race-card{display:block;text-align:left;background:#fff;color:var(--bike-ink, #17334f);border:1px solid var(--bike-line, #d8e3f2);border-radius:18px;overflow:hidden;padding:0;width:100%}.race-visual{height:130px;position:relative;background:linear-gradient(140deg,var(--bike-ink, #102e56),var(--bike-accent, #2861a5));overflow:hidden;color:white;padding:22px}.race-visual:after{content:'';position:absolute;width:260px;height:140px;right:-50px;bottom:-90px;border:25px solid #ffffff20;transform:rotate(-25deg)}.race-visual .race-day{font-size:42px;font-weight:800;line-height:1;letter-spacing:-2px}.race-visual span{display:block;font-size:12px;margin-top:6px;color:var(--bike-soft, #d7e8ff)}.race-body{padding:21px}.race-body h2{font-size:21px;margin:10px 0}.race-body p{font-size:12px;line-height:1.8;color:var(--bike-muted, #627996)}.race-card:hover{border-color:var(--bike-accent, #2861bf);box-shadow:0 6px 20px #173c7010}.race-detail{margin:-4px 0 20px;border-radius:12px}.race-detail h3{font-size:20px}.race-meta{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.race-meta strong{display:block;margin-top:6px}.empty-state{padding:35px 20px;text-align:center;border:1px dashed var(--bike-line, #bdcde4);border-radius:18px;background:#fff}.hint-box{padding:14px;border-radius:12px;background:#edf3ff;font-size:12px;line-height:1.8;color:var(--bike-muted, #3a5f92)}.service-panel h3{font-size:16px}#toast{background:var(--bike-ink, #143e7a);color:#fff}.info-box{background:#edf3ff;color:var(--bike-ink, #16447f)}.big-input{background:#f6f9fe;border-color:var(--bike-line, #cbd9eb)}.big-input input{color:var(--bike-ink, #14396a)}.form-error{color:#aa3023;background:#fff0ee}.delta-preview{color:var(--bike-accent-ink, #155bd5)}.race-card:focus-visible{outline:3px solid var(--bike-accent, #175ed4);outline-offset:3px}footer{margin-bottom:0}@media(max-width:650px){.app-shell{padding:0 20px}.race-grid{grid-template-columns:1fr}.service-panel{padding:19px}.race-filters{grid-template-columns:1fr 1fr}.service-heading h2{font-size:19px}.page-heading h1{font-size:34px}.bottom-nav{bottom:10px}.local-pill{font-size:9px}.race-visual{height:115px}}
/* Compact mobile layout */
html{color-scheme:light}body{background:#f4f7fc;color:var(--bike-ink, #142e50);font-size:15px}.app-shell{max-width:820px;padding:0 18px}main{padding:8px 0 110px;min-height:100dvh}.compact-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.compact-heading h1{font-size:29px;line-height:1.15;letter-spacing:-.8px;margin:0;color:var(--bike-ink, #102e55)}.compact-heading .icon-button{width:40px;height:40px}.bottom-nav{position:fixed;z-index:10;bottom:max(10px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(calc(100% - 36px),390px);margin:0;padding:5px;background:#fff;box-shadow:0 6px 26px #173a6a25;border:1px solid var(--bike-line, #dce6f4);border-radius:17px}.bottom-nav button{font-size:14px;font-weight:700;min-height:47px;padding:11px;border-radius:12px}.storage-warning{font-size:14px}.welcome-compact{padding:22px;text-align:center}.welcome-compact h2{font-size:22px;margin:0 0 8px}.welcome-compact p{font-size:15px;line-height:1.5;color:var(--bike-muted, #617893);margin:0 0 20px}.welcome-illustration{height:170px;display:flex;align-items:center}.welcome-illustration svg{width:100%;height:100%}.bike-track{position:relative;display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y}.bike-track::-webkit-scrollbar{display:none}.bike-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;padding:20px;background:linear-gradient(145deg,#fff 30%,var(--bike-soft, #e3edfc));border:1px solid var(--bike-line, #d5e3f5);border-radius:20px}.slide-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.slide-head h2{font-size:23px;line-height:1.15;letter-spacing:-.5px;overflow-wrap:anywhere;margin:5px 0 0}.card-label{font-weight:700;letter-spacing:.08em;color:var(--bike-muted, #6480a2);font-size:11px}.slide-content{display:flex;align-items:center;justify-content:space-between;min-height:116px;gap:10px}.meter-label{font-size:14px;color:var(--bike-muted, #627d9d)}.meter{font-size:48px;font-weight:700;color:var(--bike-ink, #153c72);margin-top:5px;white-space:nowrap}.meter small{font-size:16px;color:var(--bike-muted, #6180a4)}.slide-art{width:52%;height:125px;display:flex;align-items:center}.slide-art svg{width:100%;height:100%}.add-slide{min-height:230px;display:grid;place-items:center;text-align:center;background:#edf3fc}.add-slide h2{font-size:19px;margin:8px 0 16px}.add-symbol{display:grid;place-items:center;margin:auto;border-radius:50%;width:46px;height:46px;background:var(--bike-soft, #d9e8fe);color:var(--bike-accent-ink, #155bd5);font-size:32px;line-height:1}.carousel-controls{display:flex;justify-content:center;align-items:center;margin:-4px 0 0;height:32px}.carousel-dot{position:relative;background:transparent;width:32px;height:32px;padding:0}.carousel-dot:after{content:'';position:absolute;left:12px;top:12px;width:8px;height:8px;border-radius:5px;background:#c1cee0}.carousel-dot.active:after{background:var(--bike-accent, #155bd5)}.service-panel{margin:0 0 12px;padding:18px;border-radius:16px}.service-heading{margin-bottom:14px}.service-heading h2{font-size:19px;font-weight:700;letter-spacing:-.4px}.text-button{min-height:40px;background:none;color:var(--bike-accent-ink, #155bd5);font-weight:700;padding:6px;font-size:14px}.maintenance-state{display:flex;gap:12px;align-items:center;padding:13px;border-radius:12px;background:#f1f5fc}.maintenance-state strong{font-size:15px}.maintenance-state p{margin:4px 0 0;color:var(--bike-muted, #5d7593);font-size:13px}.state-icon{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:11px;background:var(--bike-soft, #deebff);color:var(--bike-accent-ink, #155bd5)}.state-icon svg{width:19px;height:19px}.setup-link{margin:6px 0 0}.history-details{border-top:1px solid #e1e9f3;margin-top:14px}.history-details summary{cursor:pointer;min-height:48px;display:flex;align-items:center;gap:8px;font-weight:650;font-size:14px;list-style:none}.history-details summary::-webkit-details-marker{display:none}.history-details summary:before{content:'›';font-size:24px;color:var(--bike-muted, #6c86a6);transform:rotate(90deg)}.history-details[open] summary:before{transform:rotate(-90deg)}.history-details summary span{margin-left:auto;background:#eef3fa;color:var(--bike-muted, #5d789b);padding:4px 9px;border-radius:8px}.history-content .log-item{padding:12px 0}.log-title,.log-reading{font-size:14px}.log-date,.initial-reading{font-size:12px}.log-delete{width:44px;height:44px}.service-card{padding:14px 0}.service-card strong,.muted{font-size:14px}.no-records{margin:0;color:var(--bike-muted, #6a8099)}.race-tabs{display:flex;border-bottom:1px solid var(--bike-line, #dce5f0);margin-bottom:15px;gap:18px}.race-tabs button{background:transparent;color:var(--bike-muted, #72849b);padding:0 2px 12px;font-size:15px;font-weight:700;border-bottom:2px solid transparent}.race-tabs button.active{color:var(--bike-accent-ink, #155bd5);border-color:var(--bike-accent, #155bd5)}.race-tabs span{background:var(--bike-soft, #e8f0fe);border-radius:8px;padding:2px 7px;font-size:12px}.nearby{min-height:40px;padding:9px 12px;font-size:13px}.geo-status{font-size:13px;line-height:1.4;color:var(--bike-muted, #657d9b)}.geo-status:empty{display:none}.race-filters{grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}.race-filters .field{display:block;margin:0;color:var(--bike-muted, #566f8e);font-size:13px}.race-filters select,.race-filters input{margin-top:5px;min-height:44px;font-size:14px;padding:10px;width:100%;background:#fff;border:1px solid var(--bike-line, #d4dfec);color:var(--bike-ink, #173657)}.race-filters input{max-width:100%;min-width:0}.month-field{min-width:0}.reset-filter{align-self:end;justify-self:end}.race-list-heading{font-size:14px;font-weight:700;color:var(--bike-muted, #667c98);margin:6px 0 10px}.race-grid{display:grid;grid-template-columns:1fr;gap:10px}.race-card{position:relative;border-radius:15px;background:#fff;border:1px solid var(--bike-line, #dde7f3);box-shadow:0 2px 8px #193e6c08;overflow:hidden}.race-main{display:block;text-align:left;width:100%;min-height:122px;padding:16px 55px 16px 16px;color:var(--bike-ink, #183457);background:transparent}.race-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.race-top h2{font-size:17px;line-height:1.25;letter-spacing:-.2px;margin:0;overflow-wrap:anywhere}.race-top time{font-size:12px;line-height:1.3;white-space:nowrap;color:var(--bike-muted, #526e91);font-weight:700}.race-type{display:inline-block;border-radius:7px;background:#eaf1fe;color:var(--bike-accent-ink, #215fca);font-size:12px;font-weight:700;margin-top:8px;padding:4px 7px}.race-main p{font-size:13px;line-height:1.45;color:var(--bike-muted, #607793);margin:9px 0 0}.favorite-star{position:absolute;bottom:9px;right:8px;width:44px;height:44px;border-radius:50%;background:transparent;color:var(--bike-muted, #6883a4);font-size:29px;line-height:1}.favorite-star.saved{color:var(--bike-accent-ink, #155bd5)}.favorite-star:focus-visible{outline:2px solid var(--bike-accent, #155bd5)}.source-note{font-size:12px;line-height:1.5;color:var(--bike-muted, #70849e);margin:18px 2px}.empty-state{padding:23px 16px}.empty-state p{margin-bottom:0}dialog{font-size:15px}.field label{font-size:14px}.field-hint,.form-note,.info-note{font-size:13px}.button{font-size:14px;min-height:46px}.button.large{font-size:14px}.sheet-header h2{font-size:23px}.log-more{font-size:14px}@media(min-width:700px){.race-grid{grid-template-columns:1fr 1fr}.bike-slide{flex-basis:100%}.bike-track{scroll-padding-left:0}.slide-art{height:150px}}@media(max-width:370px){.app-shell{padding:0 14px}.slide-art{width:47%}.meter{font-size:42px}.race-top{display:block}.race-top time{display:block;margin-top:5px}}
/* Align the bottom sheet to the viewport and keep its contents within it. */
dialog{box-sizing:border-box;max-width:calc(100vw - 32px);margin:auto;overflow-x:hidden;overscroll-behavior:contain}dialog::backdrop{background:rgba(10,25,45,.48);backdrop-filter:none}.sheet-header{align-items:center;gap:12px;margin-bottom:19px}.sheet-header .icon-button{width:44px;height:44px}.sheet-header .icon-button svg{width:19px;height:19px}#sheet-body,#sheet-body form,.form-grid,.field{min-width:0;max-width:100%}.form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.field input,.field textarea,.field select{min-width:0;max-width:100%}input[type=date]{min-width:0;width:100%;-webkit-appearance:none;appearance:none}
@media(max-width:700px){dialog{position:fixed;top:auto;left:0;right:0;bottom:0;inset-block-end:0;width:100%;max-width:100%;margin:0 auto;max-height:min(92dvh,100%);padding:20px 18px calc(20px + env(safe-area-inset-bottom,0px));border-radius:20px 20px 0 0}.sheet-grip{margin:-9px auto 16px}.form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:350px){.form-grid{grid-template-columns:minmax(0,1fr)}}
/* Reduce vertical space while preserving readable controls. */
.bike-slide{padding:16px}.slide-content{min-height:86px}.slide-art{height:88px}.slide-head h2{margin-top:3px}.meter{font-size:44px}.carousel-controls{height:38px}.carousel-dot{width:44px;height:44px;flex:0 0 44px}.carousel-dot:after{left:18px;top:18px}.carousel-controls{overflow-x:auto;justify-content:safe center}.add-slide{min-height:205px}.favorite-star{top:8px;bottom:auto;right:8px}.race-main{padding:16px 58px 16px 16px}.race-top{display:block}.race-top time{display:block;margin-top:5px}.compact-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.compact-filters.favorites-controls{grid-template-columns:minmax(0,1fr)}.compact-filters .field{min-width:0}.compact-filters select{max-width:100%}@media(min-width:700px){.slide-art{height:110px}}
@media(max-width:699px){.bike-slide{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* One complete bike per viewport; compact mobile navigation. */
.bike-carousel{min-width:0;max-width:100%;overflow:hidden}
.bike-track{width:100%;padding:0;scroll-padding:0}
.bike-slide{flex:0 0 100%;width:100%;max-width:100%;scroll-snap-stop:always}
.compact-heading{margin-bottom:12px}
.race-toolbar{display:flex;align-items:center;gap:8px;min-width:0;margin:0 0 12px}
.region-control{position:relative;display:flex;align-items:center;flex:1;min-width:0;background:#fff;border:1px solid var(--bike-line, #d6e2f0);border-radius:12px;height:44px}
.region-control>svg{position:absolute;left:11px;width:17px;height:17px;pointer-events:none;color:var(--bike-muted, #5b769b)}
.region-control select{height:100%;width:100%;max-width:100%;min-width:0;border:0;border-radius:12px;background:transparent;color:var(--bike-ink, #173c6c);font:inherit;font-size:14px;padding:0 25px 0 35px;text-overflow:ellipsis;cursor:pointer}
.race-toolbar-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-left:auto}
.sort-trigger{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:var(--bike-soft, #e5edfb);color:var(--bike-accent-ink, #155bd5)}
.sort-trigger svg{width:21px;height:21px}
.location-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 11px;border:1px solid var(--bike-line, #d6e2f0);border-radius:12px;background:white;color:var(--bike-accent-ink, #295b99);font-size:12px;white-space:nowrap}
.location-button svg{width:16px;height:16px}
.location-button:disabled{opacity:.65;cursor:wait}
.saved-count{font-size:14px;color:var(--bike-muted, #5a7496)}
.race-list-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:13px}
.current-sort{font-weight:400;color:var(--bike-muted, #667d9b);font-size:12px}
.sort-options{display:grid;gap:8px}
.sort-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:66px;text-align:left;padding:13px 15px;border:1px solid var(--bike-line, #dce5f2);border-radius:12px;background:#fff;color:var(--bike-ink, #183e6d)}
.sort-option.selected{border-color:var(--bike-line, #8bb0eb);background:#edf3ff}
.sort-option strong{font-size:15px;font-weight:650;display:block}
.sort-option small{font-size:13px;color:var(--bike-muted, #667f9f);display:block;margin-top:4px}
.sort-option-check{width:22px;height:22px;flex-shrink:0;color:var(--bike-accent-ink, #155bd5)}
.sort-option-check svg{width:22px;height:22px}
.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}
@media(max-width:370px){.location-button{padding:0 8px;font-size:11px;gap:4px}.race-toolbar,.race-toolbar-actions{gap:6px}.region-control select{font-size:13px;padding-left:29px}.region-control>svg{left:8px;width:15px;height:15px}}

/* Fixed 2T schedule and typed service records. */
.schedule-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 6px}
.schedule-header>strong{font-size:14px;font-weight:650}
.schedule-header>.service-engine-type{color:var(--bike-accent, #456d9c);font-size:11px;font-weight:650;text-align:right;white-space:nowrap}
.schedule-item{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;padding:13px 0;border-top:1px solid #e5ebf4;background:transparent;text-align:left}
.schedule-item:first-child{border-top:0}
.schedule-task{flex:1;min-width:0}
.schedule-task strong{display:block;font-size:14px;font-weight:550;line-height:1.4}
.schedule-task small{display:block;margin-top:4px;font-size:12px;color:var(--bike-muted, #69809d);line-height:1.4}
.schedule-status{flex-shrink:0;font-size:12px;font-weight:650;color:var(--bike-accent-ink, #175ed4);text-align:right;line-height:1.45}
.schedule-status.unknown{font-weight:500;color:var(--bike-muted, #5e7aa0)}
.schedule-status.soon{color:#9a5a04}
.schedule-status.overdue{color:#b83c27}
.work-next-preview{font-size:13px;line-height:1.6;color:var(--bike-accent-ink, #2458a0);background:#edf3ff;border:1px solid var(--bike-line, #dce7f9);padding:11px 12px;border-radius:10px;margin:0 0 18px}
#work-type{font-size:16px;max-width:100%;min-width:0}

.race-description{font-size:15px;line-height:1.65}
.race-schedule{padding-left:19px;font-size:14px;line-height:1.7;color:var(--bike-muted, #566f8e)}
.race-detail-actions{display:grid;gap:10px;margin-top:20px}

.service-expander{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;width:100%;padding:10px 12px;margin-top:6px;border:0;border-radius:10px;background:#f0f5fd;color:var(--bike-accent-ink, #155bd5);font-size:14px;font-weight:600}
.service-expander>span{font-size:19px;line-height:1}
.sheet-hour-history .history-details{border:0;margin:0}
.sheet-hour-history .history-details>summary{display:none}
.sheet-hour-history .log-item:first-child{padding-top:0}

@media(max-width:700px){.sheet-header,.sheet-grip{touch-action:pan-x}.sheet-dragging{will-change:transform;user-select:none;-webkit-user-select:none}}

.service-expander .attention-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 5px;border-radius:50%;background:#c53032;color:#fff;font-size:12px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}

.race-radius-row{display:flex;align-items:center;margin:-3px 0 8px}
.race-radius-chip{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid var(--bike-line, #d6e2f0);border-radius:11px;background:#fff;color:var(--bike-muted, #4d698e);font-size:13px;font-weight:550}
.race-radius-chip.active{background:var(--bike-soft, #e8f0fe);border-color:var(--bike-line, #b5cef4);color:var(--bike-accent-ink, #155bd5)}
.race-radius-chip svg{width:16px;height:16px}
.radius-note{margin:0 0 10px;color:var(--bike-muted, #667d9b);font-size:12px;line-height:1.45}
.radius-hint{font-size:13px;color:var(--bike-muted, #5d7695);line-height:1.5;margin:0 0 16px}
.radius-presets{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.radius-preset{min-height:42px;padding:9px 13px;border:1px solid var(--bike-line, #d7e2f0);border-radius:10px;background:#fff;color:var(--bike-muted, #224c80);font-size:14px}
.radius-preset.active{border-color:var(--bike-line, #84aceb);background:var(--bike-soft, #e8f0fe);color:var(--bike-accent-ink, #155bd5)}
.radius-reset{display:block;margin:12px auto 0;padding:10px 14px;min-height:44px;background:transparent;color:var(--bike-muted, #536f93);font-size:14px}

/* Matching filter buttons and a scrollable, multi-select region sheet. */
.race-filter-buttons{display:flex;flex:1;min-width:0;gap:7px}
.race-filter-button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;height:44px;padding:0 9px;border:1px solid var(--bike-line, #d6e2f0);border-radius:12px;background:#fff;color:var(--bike-ink, #31577f);font-size:13px;font-weight:600}
.race-filter-button>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.race-filter-button.active{background:var(--bike-soft, #e8f0fe);border-color:var(--bike-line, #b5cef4);color:var(--bike-accent-ink, #155bd5)}
.filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:50%;background:var(--bike-accent, #155bd5);color:white;font-size:11px;flex-shrink:0}
.location-button.location-icon{width:44px;min-width:44px;height:44px;padding:0}
.location-icon svg{width:19px;height:19px}
.region-list{max-height:min(48dvh,420px);overflow-y:auto;overscroll-behavior:contain;border-top:1px solid #e1e9f3;margin-bottom:15px}
.region-option{display:flex;align-items:center;justify-content:space-between;gap:16px;position:relative;min-height:49px;padding:11px 2px;border-bottom:1px solid #e1e9f3;color:var(--bike-ink, #173657);font-size:15px;cursor:pointer}
.region-option input{position:absolute;right:0;width:25px;height:25px;margin:0;opacity:0}
.region-checkmark{display:grid;place-items:center;width:22px;height:22px;flex-shrink:0;border:1.5px solid var(--bike-line, #a6b9d2);border-radius:6px;background:#fff}
.region-option input:checked+.region-checkmark{background:var(--bike-accent, #155bd5);border-color:var(--bike-accent, #155bd5)}
.region-option input:checked+.region-checkmark:after{content:'';width:10px;height:6px;border-left:2px solid white;border-bottom:2px solid white;transform:rotate(-45deg) translate(1px,-1px)}
.region-option input:focus-visible+.region-checkmark{outline:2px solid var(--bike-accent, #175ed4);outline-offset:3px}
.region-apply{margin-top:2px}
@media(max-width:370px){.race-filter-buttons,.race-toolbar-actions,.race-toolbar{gap:5px}.race-filter-button{padding:0 5px;font-size:12px}.location-button.location-icon,.sort-trigger{width:42px;min-width:42px;flex-basis:42px}}

.region-search{margin:0 0 10px}.region-search input{min-height:44px;background:#f6f9fd;color:var(--bike-ink, #173657);border:1px solid var(--bike-line, #d6e2f0);border-radius:10px;padding:10px 12px;font-size:16px}.region-list{max-height:min(42dvh,360px)}

/* Bike images and form */
.slide-art{color:var(--bike-muted, #91a9c8);justify-content:center}.slide-art>svg{max-width:175px}.bike-photo{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center}.bike-photo img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.photo-fallback{width:100%;height:100%}.welcome-illustration{color:var(--bike-muted, #91a9c8)}.welcome-illustration svg{max-width:240px;margin:auto}.field select{font:inherit}.race-schedule li{margin-bottom:4px}

/* Give motorcycle photography the full card width. */
.bike-slide:not(.add-slide) .slide-content{display:block;min-height:0;margin:4px 0 9px}.bike-slide:not(.add-slide) .slide-art{width:100%;height:clamp(140px,42vw,205px);justify-content:center}.slide-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.slide-reading{min-width:0;flex:0 1 auto}.slide-reading .meter-label{font-size:12px;line-height:1.1}.slide-reading .meter{font-size:clamp(23px,7vw,32px);line-height:1.1;margin-top:3px}.slide-reading .meter small{font-size:13px;margin-left:3px}.slide-bottom .button{flex:0 1 175px;min-width:0;padding:11px 9px;gap:6px;line-height:1.15;font-size:12px}.slide-bottom .button svg{flex:0 0 17px}

/* Compact garage card: the bike sits behind the name and hours. */
.bike-slide:not(.add-slide) .slide-scene{position:relative;min-height:142px;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:12px;isolation:isolate}.bike-slide:not(.add-slide) .slide-art{position:absolute;z-index:0;right:0;bottom:4px;width:57%;height:132px;display:flex;align-items:center;justify-content:center}.slide-scene .slide-head{position:relative;z-index:1;pointer-events:none}.slide-scene .slide-head>div{flex:1;min-width:0}.slide-scene .slide-head h2{overflow-wrap:anywhere;text-shadow:0 1px 3px #f4f7fc,0 0 5px #f4f7fc}.slide-scene .slide-head .icon-button{pointer-events:auto}.slide-scene .slide-reading{position:relative;z-index:1;align-self:flex-start;pointer-events:none;margin-top:12px;text-shadow:0 1px 3px #f4f7fc,0 0 5px #f4f7fc}.slide-scene .slide-reading .meter-label{font-size:14px}.slide-scene .slide-reading .meter{font-size:clamp(34px,10vw,44px);line-height:1;margin-top:5px}.slide-scene .slide-reading .meter small{font-size:15px}.bike-slide:not(.add-slide)>.button{position:relative;z-index:1}

.race-schedule .schedule-day{list-style:none;margin:14px 0 5px -19px;color:var(--bike-ink, #173453);font-weight:700}.race-schedule .schedule-day:first-child{margin-top:0}.schedule-source,.race-data-notice{color:var(--bike-muted, #6b7f99);font-size:12px;line-height:1.45}.schedule-source{margin:4px 0 12px}.race-data-notice{margin:2px 0 10px}

/* Telegram-only entry */
.entry-gate{min-height:100dvh;padding:32px 20px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 0%,var(--bike-soft, #dceaff) 0,transparent 60%),#f4f7fc}.entry-card{width:min(100%,390px);text-align:center;padding:32px 25px 28px;background:#fff;border:1px solid var(--bike-line, #dce7f5);border-radius:24px;box-shadow:0 18px 55px #244a7c10}.entry-mark{width:62px;height:62px;margin:0 auto 20px;display:grid;place-items:center;border-radius:19px;background:var(--bike-accent, #175ed4);color:white;font-size:31px;font-weight:800}.entry-label{font-size:11px;font-weight:750;letter-spacing:.13em;color:var(--bike-muted, #6480a2)}.entry-card h1{margin:12px 0 11px;color:var(--bike-ink, #102e55);font-size:27px;letter-spacing:-.7px;line-height:1.15}.entry-card p{margin:0 auto 24px;color:var(--bike-muted, #617893);font-size:15px;line-height:1.55;max-width:300px}.entry-button{width:100%;font-size:15px}.entry-button+.entry-button{margin-top:10px}.cloud-retry{margin-left:8px;background:transparent;color:inherit;text-decoration:underline;font-weight:700}

/* Four destinations keep the bottom bar usable on narrow phones. */
.bottom-nav button{min-width:0;padding:10px 2px;font-size:12px;white-space:nowrap}
.catalog-category-tabs{gap:10px}
.catalog-category-tabs button{flex:1;min-width:0;min-height:44px;padding:0 0 11px;font-size:14px;line-height:1.3;text-align:center}
.personal-race-tabs{width:100%;gap:10px}
.personal-race-tabs button{flex:1;min-width:0;text-align:center}
.rider-account{padding:20px;margin-bottom:18px}
.rider-account .rider-identity h2{font-size:23px}
.profile-history-link{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;background:transparent;border-top:1px solid var(--bike-line,#dde1d9);margin-top:17px;padding:15px 0 0;text-align:left;font-size:14px;font-weight:650;color:var(--bike-ink,#292c2a)}
.profile-history-link small{display:block;font-size:12px;font-weight:400;color:var(--bike-muted,#747a76);margin-top:6px}
.profile-history-link svg{width:18px;height:18px}
.profile-section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:23px 0 12px}
.profile-section-heading h2{font-size:19px;line-height:1.2;letter-spacing:-.4px;margin:0}
.profile-links{padding:0 17px}
.profile-links button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0;text-align:left;background:none;border-bottom:1px solid var(--bike-line,#dde1d9);font-size:14px;color:var(--bike-ink,#292c2a)}
.profile-links button:last-child{border-bottom:0}
.profile-links button small{display:block;color:var(--bike-muted,#747a76);font-size:12px;margin-top:5px}
.profile-links svg{width:17px;height:17px}
.rider-auto-sync{font-size:12px;line-height:1.5;color:var(--bike-muted,#747a76)}
.rider-history-filters{margin-bottom:15px}
.rider-history-filters .race-filter-button:only-child{flex:0 1 calc(50% - 3px)}
.catalog-intro{margin:-8px 0 18px;color:var(--bike-muted, #68809e);font-size:14px;line-height:1.45}.catalog-card .race-main{min-height:104px;padding-right:16px}.catalog-card .race-top h2{padding-right:8px}.catalog-card .race-type{margin-top:8px}.catalog-count{font-size:13px;color:var(--bike-muted, #70849e);margin:8px 0 12px}.catalog-empty{padding:29px 18px;text-align:center;background:#fff;border:1px solid var(--bike-line, #dce7f5);border-radius:16px}.catalog-empty strong{color:var(--bike-ink, #173b68);font-size:16px}.catalog-empty p{margin:8px auto 0;max-width:270px;color:var(--bike-muted, #6b809a);font-size:14px;line-height:1.5}.catalog-detail-copy{white-space:pre-line;line-height:1.55}.catalog-detail-actions{display:grid;gap:10px;margin-top:20px}.catalog-detail-actions .button{width:100%}

/* Selected motorcycle themes. No variables are set for the original theme. */
html[data-bike-theme="ktm"]{--bike-bg:#f4f3f0;--bike-ink:#21211e;--bike-muted:#6d655a;--bike-accent:#ed6600;--bike-accent-ink:#a34000;--bike-soft:#fff0e4;--bike-line:#e9ddd1;--bike-action-ink:#1e1c19}
html[data-bike-theme="husqvarna"]{--bike-bg:#f1f3f5;--bike-ink:#1b2b41;--bike-muted:#627187;--bike-accent:#1c355b;--bike-accent-ink:#1c355b;--bike-soft:#eaf0f7;--bike-line:#d8e0ea;--bike-action-ink:#fff}
html[data-bike-theme="gasgas"]{--bike-bg:#f5f2f1;--bike-ink:#282120;--bike-muted:#766464;--bike-accent:#d51e30;--bike-accent-ink:#ad1525;--bike-soft:#fbeded;--bike-line:#ecdcdb;--bike-action-ink:#fff}
html[data-bike-theme="gr"]{--bike-bg:#f1f7fb;--bike-ink:#1c3447;--bike-muted:#57778d;--bike-accent:#205dab;--bike-accent-ink:#155195;--bike-soft:#e7f4fc;--bike-line:#d5e8f3;--bike-action-ink:#fff;--bike-detail:#006d9b}
html[data-bike-theme="beta"]{--bike-bg:#f3f5fb;--bike-ink:#1d2e48;--bike-muted:#65758a;--bike-accent:#0750bf;--bike-accent-ink:#134aaa;--bike-soft:#edf2ff;--bike-line:#dce3f4;--bike-action-ink:#fff;--bike-detail:#b72d20}
html[data-bike-theme="gr"] :is(.card-label,.bike-kicker,.race-type,.text-button),html[data-bike-theme="beta"] :is(.card-label,.bike-kicker,.race-type,.text-button){color:var(--bike-detail)}
html[data-bike-theme] body{background:var(--bike-bg);color:var(--bike-ink)}
html[data-bike-theme] .bike-slide:not(.add-slide){background:linear-gradient(145deg,#fff 30%,var(--bike-soft));border-color:var(--bike-line)}
html[data-bike-theme] .button:not(.secondary):not(.danger),html[data-bike-theme] .bottom-nav button.active,html[data-bike-theme] #toast{color:var(--bike-action-ink)}
html[data-bike-theme] .slide-scene .slide-head h2,html[data-bike-theme] .slide-scene .slide-reading{text-shadow:0 1px 3px #fff,0 0 5px #fff}
html[data-bike-theme] .storage-warning{background:var(--bike-soft);color:var(--bike-ink)}

.service-guidance{font-size:12px;line-height:1.5;color:var(--bike-muted, #667d9b);margin:7px 0 11px}.service-reference{border-top:1px solid var(--bike-line, #e1e9f3);margin-top:12px;padding-top:11px;font-size:12px;line-height:1.55;color:var(--bike-muted, #667d9b)}.service-reference summary{cursor:pointer;font-weight:650;color:var(--bike-accent-ink, #175ed4)}.service-reference p{margin:9px 0}.service-reference a{color:var(--bike-accent-ink, #175ed4);text-decoration:underline}.schedule-task small{line-height:1.4}

/* Stone palette for motorcycles without a brand-specific theme. */
html:not([data-bike-theme]){--bike-bg:#f3f3f1;--bike-ink:#292c2a;--bike-muted:#747a76;--bike-accent:#454b48;--bike-accent-ink:#454b48;--bike-soft:#e9eae7;--bike-line:#e0e2de;--bike-action-ink:#fff}
html:not([data-bike-theme]) body{background:var(--bike-bg);color:var(--bike-ink)}
html:not([data-bike-theme]) .bike-slide:not(.add-slide){background:linear-gradient(145deg,#fff 33%,#e9eae7);border-color:var(--bike-line)}
html:not([data-bike-theme]) .add-slide{background:#eeeeeb;border-color:var(--bike-line)}
html:not([data-bike-theme]) .button:not(.secondary):not(.danger),html:not([data-bike-theme]) .bottom-nav button.active,html:not([data-bike-theme]) #toast{color:#fff}
html:not([data-bike-theme]) .button.secondary,html:not([data-bike-theme]) .icon-button{background:#eeeeec;color:var(--bike-accent-ink)}
html:not([data-bike-theme]) .icon-button:hover,html:not([data-bike-theme]) .button.secondary:hover{background:#e2e3e0}
html:not([data-bike-theme]) .bottom-nav{background:#fff;box-shadow:0 8px 28px #292c2a1a}
html:not([data-bike-theme]) .race-card{box-shadow:0 2px 9px #292c2a08}
html:not([data-bike-theme]) .race-type,html:not([data-bike-theme]) .sort-option.selected,html:not([data-bike-theme]) .work-next-preview,html:not([data-bike-theme]) .service-expander,html:not([data-bike-theme]) .hint-box,html:not([data-bike-theme]) .info-box,html:not([data-bike-theme]) .maintenance-state{background:var(--bike-soft)}
html:not([data-bike-theme]) input,html:not([data-bike-theme]) select,html:not([data-bike-theme]) textarea,html:not([data-bike-theme]) .big-input{background:#f8f8f6}
html:not([data-bike-theme]) .history-details,html:not([data-bike-theme]) .schedule-item,html:not([data-bike-theme]) .service-card,html:not([data-bike-theme]) .region-option,html:not([data-bike-theme]) .region-list{border-color:var(--bike-line)}
html:not([data-bike-theme]) .history-details summary span,html:not([data-bike-theme]) .settings-button{background:#f0f1ee}
html:not([data-bike-theme]) .slide-scene .slide-head h2,html:not([data-bike-theme]) .slide-scene .slide-reading{text-shadow:0 1px 3px #fff,0 0 5px #fff}
html:not([data-bike-theme]) .entry-gate{background:radial-gradient(ellipse at 50% 0%,#e6e7e4 0,transparent 60%),var(--bike-bg)}
html:not([data-bike-theme]) .entry-card{box-shadow:0 18px 55px #292c2a10}
html:not([data-bike-theme]) .storage-warning{background:var(--bike-soft);color:var(--bike-ink)}
.personal-race-tabs{gap:0;justify-content:space-between}
.personal-race-tabs button{font-size:14px;min-height:44px;padding:0 5px 11px;white-space:nowrap}
.personal-races{padding:3px 0 12px}
.rider-empty{padding:30px 22px;text-align:center;border-radius:20px}
.rider-empty-symbol{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 23px;border-radius:20px;background:var(--bike-soft,#e8ede6);color:var(--bike-accent-ink,#49644e)}
.rider-empty-symbol svg{width:31px;height:31px}
.rider-empty h2{margin:10px auto 12px;max-width:310px;font-size:26px;letter-spacing:-.6px;line-height:1.15}
.rider-empty p{margin:0 auto 25px;max-width:340px;font-size:15px;line-height:1.6;color:var(--bike-muted,#697269)}
.rider-empty .text-button{display:block;margin:12px auto 0;max-width:100%}
.rider-empty-footnote{display:block;font-size:12px;line-height:1.5;color:var(--bike-muted,#697269);margin:15px auto 0}
.rider-section-heading h2,.rider-history-heading h2{font-size:25px;letter-spacing:-.6px;margin:3px 0 9px;line-height:1.2}
.rider-section-heading p{font-size:14px;line-height:1.55;color:var(--bike-muted,#697269);margin:0 0 22px}
.rider-back{margin:0 0 15px;padding-left:0}
.rider-source-card{padding:20px;border-radius:18px;margin-bottom:12px}
.rider-source-card>h3{font-size:23px;letter-spacing:-.4px;margin:8px 0}
.rider-source-card>.muted{line-height:1.6;margin:8px 0 20px}
.rider-source-label{font-size:11px;letter-spacing:.06em;font-weight:700;color:var(--bike-muted,#697269)}
.rider-identity{display:flex;align-items:flex-start;gap:15px;min-width:0}
.rider-avatar{position:relative;display:grid;place-items:center;width:58px;height:58px;flex:0 0 58px;border-radius:18px;overflow:hidden;background:var(--bike-soft,#e8ede6);color:var(--bike-accent-ink,#49644e);font-weight:750;font-size:22px}
.rider-avatar img{position:absolute;width:100%;height:100%;object-fit:cover;inset:0}
.rider-avatar.large{width:100px;height:100px;flex-basis:100px;border-radius:28px;font-size:34px;margin-bottom:8px}
.rider-identity-copy{min-width:0}
.rider-identity h2{font-size:19px;line-height:1.25;margin:4px 0 9px;letter-spacing:-.3px;overflow-wrap:anywhere}
.rider-identity p{font-size:13px;margin:6px 0;line-height:1.5;overflow-wrap:anywhere}
.rider-identity p>span{color:var(--bike-muted,#697269);margin-right:7px}
.rider-source-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;border-top:1px solid var(--bike-line,#dde1d9);padding-top:10px;margin-top:14px}
.rider-source-actions .text-button{font-size:13px;text-align:left;padding-left:0}
.rider-sync-note{font-size:12px;color:var(--bike-muted,#697269);line-height:1.5;margin:14px 0 0}
.rider-muted-button{color:var(--bike-muted,#697269)}
.rider-explanation{font-size:12px;line-height:1.65;color:var(--bike-muted,#697269);margin:20px 3px;overflow-wrap:anywhere}
.rider-confirm-heading{margin:11px 3px 23px}
.rider-confirm-heading h2{font-size:29px;line-height:1.15;letter-spacing:-.7px;margin:8px 0 10px}
.rider-confirm-heading p{font-size:14px;line-height:1.5;color:var(--bike-muted,#697269);margin:0}
.rider-confirm-card{padding:25px;border-radius:21px;margin-bottom:27px}
.confirm-identity{flex-direction:column;align-items:center;text-align:center;gap:8px}
.confirm-identity h2{font-size:24px;line-height:1.2;letter-spacing:-.6px;margin:8px 0 15px}
.confirm-identity p{font-size:14px;margin:8px 0}
.rider-recent>h3{font-size:15px;margin:0 2px 12px}
.rider-actions{display:grid;gap:10px}
.rider-actions .button{width:100%}
.rider-notice{padding:14px 16px;border-radius:13px;font-size:14px;line-height:1.5;margin-bottom:15px;background:var(--bike-soft,#edf1e9)}
.rider-notice.error{color:#8b3d28;background:#fff0e8}
.rider-notice .text-button{font-size:13px;padding:6px 0;color:inherit;text-decoration:underline}
.rider-history-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:9px 0 20px}
.rider-history-heading .text-button{display:flex;gap:7px;align-items:center;font-size:13px}
.rider-history-heading svg{width:18px;height:18px}
.rider-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--bike-line,#dde1d9);border-radius:17px;padding:19px 7px;background:#fff;margin-bottom:20px}
.rider-stats>div{text-align:center;border-left:1px solid var(--bike-line,#dde1d9)}
.rider-stats>div:first-child{border:0}
.rider-stats strong{display:block;font-size:28px;letter-spacing:-.7px;line-height:1.2;font-weight:700}
.rider-stats span{display:block;font-size:12px;margin-top:6px;color:var(--bike-muted,#697269)}
.rider-history-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 23px}
.rider-history-tools .button{font-size:13px;padding:10px 13px;min-height:42px}
.rider-history-tools .text-button{font-size:13px}
.rider-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-bottom:15px}
.rider-filters label{font-size:12px;line-height:1.5;color:var(--bike-muted,#697269);min-width:0}
.rider-filters select{font:inherit;font-size:14px;min-height:44px;background:#fff;border:1px solid var(--bike-line,#dde1d9);border-radius:11px;color:var(--bike-ink,#292f2c);padding:9px;width:100%;margin-top:5px}
.rider-results{display:grid;gap:11px}
.rider-result-card{display:block;width:100%;text-align:left;background:#fff;border:1px solid var(--bike-line,#dde1d9);color:var(--bike-ink,#292f2c);border-radius:16px;padding:17px;margin:0}
.rider-result-card:focus-visible{outline:3px solid var(--bike-accent,#49644e);outline-offset:3px}
.rider-result-card.compact{opacity:1;cursor:default;margin-bottom:10px;padding:15px}
.rider-result-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.rider-result-top time{font-size:12px;color:var(--bike-muted,#697269)}
.rider-source-tag{display:inline-block;font-size:10px;font-weight:600;padding:4px 7px;border-radius:6px;background:var(--bike-soft,#edf1e9);color:var(--bike-muted,#697269)}
.rider-result-card h3{font-size:17px;line-height:1.4;letter-spacing:-.25px;margin:11px 0 15px;overflow-wrap:anywhere}
.rider-result-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;line-height:1.4;flex-wrap:wrap}
.rider-result-bottom>span{color:var(--bike-muted,#697269)}
.rider-result-bottom strong{font-weight:650}
.podium-position{color:var(--bike-accent-ink,#49644e)}
.rider-result-detail>strong{font-size:29px;display:block;margin:22px 0 12px;line-height:1.2}
.rider-result-detail time{font-size:14px;color:var(--bike-muted,#697269)}
.rider-result-detail p{font-size:15px;margin:0 0 25px}
.rider-ready-banner{display:block;width:100%;background:var(--bike-soft,#edf1e9);color:var(--bike-accent-ink,#49644e);border:1px solid var(--bike-line,#dde1d9);border-radius:12px;padding:14px;font-size:14px;font-weight:600;text-align:left;line-height:1.5;margin-bottom:18px}
.rider-empty.small{padding:22px 17px}
.rider-empty.small h3{margin:0 0 10px;font-size:19px}
.rider-empty.small p{margin-bottom:0}
@media(min-width:700px){.rider-results{grid-template-columns:repeat(2,minmax(0,1fr))}.rider-empty{padding:42px}.rider-confirm-card,.rider-confirm-heading,.rider-recent,.personal-races>.rider-actions{max-width:520px;margin-left:auto;margin-right:auto}.personal-race-tabs{justify-content:flex-start;gap:30px}}
.browser-logout{font-size:14px;min-height:46px;margin:18px 0 0;flex-shrink:0}
#browser-auth-retry{display:block;margin:4px auto 10px;font-size:13px}
#browser-login:disabled{opacity:.65;cursor:wait}

.rider-application-status{display:inline-flex;align-items:center;max-width:100%;padding:6px 9px;border-radius:8px;font-size:12px;font-weight:650;line-height:1.35;background:var(--bike-soft,#e9ece6);color:var(--bike-accent-ink,#454b48)}
.rider-application-status.pending{background:#fff1d7;color:#77571c}.rider-application-status.confirmed{background:#e7f1e4;color:#3d6536}.rider-application-status.rejected{background:#fce9e5;color:#913f31}.rider-application-status.cancelled{background:#efefed;color:#626762}
.rider-application-card .rider-application-place{margin:12px 0 15px;color:var(--bike-muted,#626963);font-size:13px;line-height:1.45;overflow-wrap:anywhere}.rider-application-open{font-size:12px;font-weight:600;white-space:nowrap}
