:root{font-family:Yu Gothic UI,Hiragino Sans,Meiryo,sans-serif;color:#173047;background:#eaf0f4;font-synthesis:none;--paper:#fff;--canvas:#f5f8fb;--blue:#205784;--line:#e5ebf0;--muted:#53677a;--pale:#e6f1fa;--nav:64px}*,*:before,*:after{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit;background:none;border:0;padding:0}button:disabled{opacity:.45;cursor:default}button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #3887be;outline-offset:2px}svg{flex:none;vertical-align:middle}h1,h2,p,dl,dd{margin:0}small{font-size:13px}time{font-variant-numeric:tabular-nums}.shell{max-width:850px;min-height:100dvh;margin:auto;background:var(--canvas);padding-bottom:calc(var(--nav) + env(safe-area-inset-bottom) + 16px)}.app-header{height:54px;padding:0 17px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}.app-header>strong{font-size:17px}.wordmark{display:flex;align-items:center;gap:7px;font-weight:780;font-size:17px;letter-spacing:-.35px}.wordmark svg,.wordmark b{color:#2874a6}.store{font-size:13px;color:var(--muted);padding-left:10px;border-left:1px solid #d7e1e9}.demo{margin-left:auto;color:var(--muted);font-size:12px}main{padding:12px 14px 4px}.home-hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;padding:11px 15px;background:#e1f0fb;border-radius:14px}.home-hero h1{font-size:17px;font-weight:650}.home-hero p{font-size:28px;font-weight:750;letter-spacing:-.06em}.bike-scene{width:101px;height:60px;position:relative;display:grid;place-items:center;color:#2c6089}.bike-scene:before,.bike-scene i{content:"";position:absolute;bottom:5px;background:#bad8ee;width:15px;height:31px;border-radius:4px 4px 0 0;right:4px}.bike-scene i{background:#bfdaaa;right:auto;left:4px;height:29px;border-radius:55% 55% 28% 28%}.bike-scene svg{z-index:1}.metrics{display:grid;grid-template-columns:repeat(3,1fr);margin:9px 0 10px;border-radius:11px;overflow:hidden;background:#e9f3fa}.metrics>div{text-align:center;padding:6px;color:#245783}.metrics>div:nth-child(2){background:#e6f2e7;color:#246045}.metrics>div:nth-child(3){background:#eee8f6;color:#634581}.metrics dt{display:flex;justify-content:center;gap:5px;align-items:center;font-size:13px}.metrics dd{font-size:22px;font-weight:720;line-height:1.14}.metrics dd small{margin-left:2px;font-weight:500}.page-title,.date-row,.section-title{display:flex;align-items:center;justify-content:space-between;gap:7px}.page-title{margin:2px 0 9px}.page-title h1{font-size:25px;letter-spacing:-.045em}.page-title .primary{padding:0 10px}.date-row{margin:1px 0 5px}.date-row h2{flex:1;text-align:center;font-weight:720;font-size:19px;letter-spacing:-.04em}.icon{display:inline-grid;place-items:center;min-width:40px;min-height:44px}.app-header .icon{margin-left:-9px;min-width:33px}.icon svg{width:21px}.today{height:44px;min-width:45px;color:var(--blue);font-size:14px;border-left:1px solid var(--line)}.segments{display:grid;grid-template-columns:repeat(3,1fr);padding:3px;gap:2px;background:#e5edf4;border-radius:10px;margin-bottom:10px}.segments button{display:flex;justify-content:center;align-items:center;gap:6px;min-height:40px;font-size:14px;color:#395570}.segments button[aria-pressed=true]{background:#fff;color:#164d78;font-weight:700;border-radius:7px}.visits{background:#fff;border-radius:10px;overflow:clip}.visit+.visit,.empty-slot+.visit,.visit+.empty-slot,.empty-slot+.empty-slot{border-top:1px solid var(--line)}.visit-head{display:grid;grid-template-columns:52px minmax(0,1fr) auto 14px;align-items:center;gap:6px;width:100%;text-align:left;padding:8px 9px;min-height:51px}.visit-head time,.empty-slot time{font-size:17px;font-weight:700}.visit-text{min-width:0}.visit-text strong,.work-text strong{font-size:15px;font-weight:650;display:block}.visit-text small,.requests small,.vehicle-info small,.work-text small{color:var(--muted);display:block}.visit-text small{display:flex;align-items:center;gap:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.visit-text small span{overflow:hidden;text-overflow:ellipsis}.status{font-size:12px;display:inline-flex;align-items:center;gap:3px;white-space:nowrap}.done{color:#23674b}.next,.booked{color:#205784}.late{color:#8a500d}.follow{color:#69438a}.cancelled{color:#536577}.next-visit{background:#e5f1fb}.next-visit .visit-head time{color:#165986}.visit.is-open{border:2px solid #377aac;border-radius:11px;overflow:hidden;margin:4px 0;background:#e7f2fa}.is-open .visit-head{background:#205784;color:#fff}.is-open .visit-head :is(time,.status){color:#fff}.is-open .disclosure{transform:rotate(180deg)}.visit-body{padding:10px}.address,.customer p{display:flex;align-items:flex-start;gap:6px}.address{font-size:15px}.tools,.secondary-actions,.home-actions{display:flex;align-items:center;gap:5px}.tools button,.secondary-actions button,.home-actions button,.add-work,.section-title button,.chart-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;font-size:14px}.tools button{padding:0 9px;color:#1b547d}.tools svg,.secondary-actions svg{width:16px;height:16px}.requests{background:#fff;border-radius:7px;padding:5px 9px;margin:2px 0 9px;list-style:none}.requests li{display:flex;align-items:center;gap:8px;padding:6px 0}.requests li+li{border-top:1px solid var(--line)}.requests strong{font-size:15px;font-weight:640}.secondary-actions{justify-content:space-around;border-bottom:1px solid #c9dce9}.secondary-actions button{font-size:13px}.danger-link{color:#9b262b;min-height:44px;width:100%;font-size:13px}.primary,.danger{display:inline-flex;justify-content:center;align-items:center;gap:7px;border-radius:8px;background:var(--blue);color:#fff;min-height:44px;padding:0 14px;font-weight:680}.danger{background:#a22232}.wide{width:100%;min-height:44px}.empty{padding:12px;color:var(--muted)}.empty-slot{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:6px;width:100%;min-height:44px;padding:0 10px;text-align:left;color:#53677a}.empty-slot span{font-size:13px}.visits summary{padding:10px;color:var(--muted)}.home-actions{margin-top:10px}.home-actions button{flex:1}.home-actions button+button{background:#eee8f6;color:#634581;border-radius:8px}.week{width:100%;table-layout:fixed;border-spacing:2px;border-collapse:separate}.week th:first-child{width:41px;font-size:12px;color:var(--muted);font-weight:550;text-align:left}.week th button,.week td button{width:100%;min-height:42px;border-radius:5px}.week th button{font-weight:650}.week th small{display:block;font-size:12px;font-weight:500}.week th:nth-child(7),.month>span:nth-child(6){color:#245a8b}.week th:last-child,.month>span:nth-child(7){color:#943647}.week [data-selected=true]{background:#d4e8f8}.week [data-today=true]{box-shadow:inset 0 -2px var(--blue)}.week-empty{background:#edf2f6;color:#64798b}.week-booked{background:#dbeaf7;padding:3px 0}.week-booked.done{background:#ddf0e2}.week-booked.follow{background:#eee4f6}.week-booked.late{background:#f8ecd7}.week-booked[aria-pressed=true]{outline:2px solid var(--blue)}.week-booked strong,.week-booked small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.week-booked small{font-weight:450}.month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;background:#fff;border-radius:10px;padding:8px}.month>span{text-align:center;font-size:13px;color:var(--muted);padding:5px 0}.month>button{min-height:50px;display:grid;place-content:center;line-height:1.15;gap:3px;border-radius:7px}.month strong{font-weight:620}.month small{font-size:12px}.month [data-load=some]{background:#e4eff8}.month [data-load=busy]{background:#bcdaf1;color:#123c5e}.month [data-today=true] strong{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}.month [aria-pressed=true]{outline:2px solid var(--blue);outline-offset:-2px}.record{background:#fff;border-radius:13px;overflow:hidden}.customer{padding:11px 13px 4px;background:#e4f0f9}.customer h1{font-size:24px;letter-spacing:-.045em;margin-bottom:4px}.customer h1 small{font-weight:500;font-size:15px}.customer p{font-size:14px;margin-top:3px}.customer p svg{margin-top:2px;color:#2a5e86}.customer .customer-request{margin-top:4px;color:#2d516d}.customer .tools button{padding:0 8px}.vehicle{padding:8px 13px 1px}.section-title h2{display:flex;align-items:center;gap:6px;font-size:17px;font-weight:680}.section-title h2 svg{color:#2e6085}.section-title button,.add-work{color:var(--blue)}.section-title small{color:var(--muted)}.vehicle-tabs{display:flex;gap:6px;overflow:auto}.vehicle-tabs button{background:#eef3f7;border-radius:7px;min-height:40px;min-width:76px;font-size:14px}.vehicle-tabs button[aria-pressed=true]{color:#185585;background:#e3eff8;box-shadow:inset 0 -2px #1f5b85;font-weight:700}.vehicle-info,.ink-button{width:100%;text-align:left;padding:8px 1px;color:inherit;border-bottom:1px solid var(--line)}.vehicle-info,.ink-button>span{display:flex;align-items:center;justify-content:space-between;gap:5px}.vehicle-info{min-height:48px}.vehicle-info strong{font-size:15px;font-weight:620}.ink-button>span{justify-content:flex-start;min-height:25px;font-size:15px;font-weight:650}.ink-button>span svg:last-child{margin-left:auto}.ink-button>small{color:var(--muted);display:block;margin:1px 0 4px}.ink{width:100%;display:block;background:#f8fbfd;border-radius:5px}.work-title{margin:10px 0 5px}.work-list{background:#f6f0e5;border-radius:8px;overflow:hidden}.work-row{display:flex;align-items:center;text-align:left;gap:8px;width:100%;min-height:51px;padding:7px 8px}.work-row+.work-row{border-top:1px solid #e8dcc6}.work-number{font-size:12px;color:#775935}.work-text{flex:1;min-width:0}.work-status{font-size:12px;white-space:nowrap}.add-work{width:100%}.chart-actions{border-top:1px solid var(--line);padding:0 13px 10px}.chart-actions p,.chart-actions>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.chart-actions p{font-size:13px;color:var(--muted)}.chart-actions>div button:first-child{border:1px solid #c9dce9;border-radius:8px;padding:0 13px}.chart-actions>div .primary{flex:1}.bottom{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:min(850px,100%);height:calc(var(--nav) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid #dfe8ef;z-index:2}.bottom button{display:grid;justify-items:center;align-content:center;gap:3px;font-size:12px;color:#4a6074}.bottom button[aria-current=page]{color:#1a5f91;font-weight:700;background:#eef6fc}dialog{max-width:460px;width:calc(100% - 20px);border:0;border-radius:13px;padding:15px;color:inherit;max-height:calc(100dvh - 36px);overflow:auto}dialog::backdrop{background:#182b3b88}dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}dialog h2{font-size:21px}dialog p{margin-bottom:9px}dialog form{display:grid;gap:10px}dialog label{display:grid;gap:4px;font-size:14px}dialog :is(input:not([type=radio]),select,textarea){width:100%;min-height:43px;border:1px solid #cbdbe7;border-radius:6px;padding:6px 8px;background:#fff;color:inherit;font-size:16px}dialog fieldset{border:0;padding:0;margin:0}dialog legend{font-size:14px;margin-bottom:3px}.radio-row{display:flex;flex-wrap:wrap;gap:4px}.radio-row label{display:flex;align-items:center;padding:5px;min-height:38px;background:#eef4f8;border-radius:6px}.radio-row label:has(input:checked){background:#dbeefa}.date-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dialog-link{display:flex;justify-content:space-between;width:100%;padding:10px 0;border-bottom:1px solid var(--line);text-align:left}.ink-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.ink-tools button{min-height:42px;background:#e7f0f8;border-radius:6px;padding:0 7px}.ink-scroll{overflow:auto}.draw-surface{touch-action:none;cursor:crosshair}.draw-surface .ink{pointer-events:none}.toast{position:fixed;left:50%;bottom:calc(var(--nav) + 8px);transform:translate(-50%);z-index:3;display:flex;align-items:center;gap:8px;background:#1c405a;color:#fff;padding:5px 9px;border-radius:7px;white-space:nowrap}.toast button{min-width:38px;min-height:36px}@media(min-width:680px){main{padding-inline:26px}.app-header{padding-inline:26px}.visit-head{grid-template-columns:68px minmax(0,1fr) auto 20px;min-height:58px}.week td button{min-height:48px}.week-booked strong,.week-booked small{font-size:14px}.month>button{min-height:58px}.record .ink{max-height:170px}}@media(max-width:355px){.visit-head{grid-template-columns:45px minmax(0,1fr) auto 13px;gap:4px}.visit-head time{font-size:15px}.status svg{display:none}.week th:first-child{width:34px}.week-booked small{display:none}}.home-actions{margin:0 0 9px}.home-actions button:first-child{flex:1.3}.week th:first-child,.week-booked strong{font-size:13px}.draw-surface:has(.ink){max-width:none}html{scroll-padding-bottom:calc(var(--nav) + 110px)}.record{margin-bottom:85px}.chart-actions{position:fixed;bottom:calc(var(--nav) + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:min(850px,100%);z-index:2;background:#fff;padding-inline:14px}.chart-actions p button{min-height:30px}.toast{bottom:auto;top:57px;min-height:34px;pointer-events:none}@media(max-width:560px){dialog{margin:auto 0 0;width:100%;max-width:none;border-radius:18px 18px 0 0;padding-bottom:calc(17px + env(safe-area-inset-bottom))}}@media(max-width:560px){.ink-button:has(.ink){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);column-gap:8px;align-content:center}.ink-button:has(.ink)>span{grid-column:1;line-height:1.2;font-size:14px}.ink-button:has(.ink)>span svg:last-child{display:none}.ink-button:has(.ink)>small{grid-column:1;margin:0}.ink-button>.ink{grid-column:2;grid-row:1/span 2;align-self:center;min-height:52px}}.metrics button{width:100%;min-height:44px;border-radius:6px}.metrics button[aria-pressed=true]{outline:2px solid currentColor;outline-offset:-2px}.metrics button span{display:flex;align-items:center;justify-content:center;gap:4px;font-size:13px}.metrics button strong{display:block;font-size:21px;line-height:1.12}.metrics button small{margin-left:2px;font-weight:500}.work-status strong{display:block;text-align:right;color:#173047;font-variant-numeric:tabular-nums}.minor{display:inline-flex;gap:5px;align-items:center;justify-content:center;color:var(--blue);min-height:44px;padding:4px 8px;font-size:14px}.subtle{font-size:13px;color:var(--muted)}.edit-fold{border-top:1px solid var(--line);padding:7px 0}.edit-fold summary{min-height:32px;color:var(--blue);cursor:pointer}.edit-fold h3,.edit-heading h3{font-size:15px;margin:5px 0}.edit-heading,.edit-buttons,.preset-row{display:flex;align-items:center;justify-content:space-between;gap:6px}.field-stack,.estimate-editor{display:grid;gap:8px}.line-section,.product-picker{background:var(--canvas);padding:8px;border-radius:8px}.line-item{padding:7px 0;border-bottom:1px solid var(--line)}.line-numbers{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.6fr) auto 34px;gap:5px;align-items:end}.line-numbers span{align-self:center;font-size:14px}.line-numbers .icon{min-width:34px}.picker-list,.quote-group ul{list-style:none;padding:0;margin:0}.picker-list li,.quote-group li,.quote-total,.quote-totals>div{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid var(--line)}.picker-list li strong{font-size:14px}.picker-list li small,.quote-group li small{display:block;color:var(--muted)}.picker-list li button{min-height:44px;white-space:nowrap;color:var(--blue);background:#fff;padding:5px;border-radius:6px}.picker-list li span{min-width:0;overflow-wrap:anywhere}dialog label.check-option{display:flex;align-items:center;min-height:40px;gap:8px}dialog input[type=checkbox]{width:19px;min-height:19px;margin:0;flex:none;accent-color:var(--blue)}.radio-row label:has(input[type=checkbox]){min-height:44px}.radio-row input[type=checkbox]{width:16px;min-height:16px}.inline-error{color:#962d33;font-size:14px}.quote-body h3,.quote-body h4{margin:.5rem 0 .25rem}.quote-body h3{font-size:17px}.quote-body h4{font-size:15px}.quote-body h3 small,.quote-body p{font-weight:450;color:var(--muted);font-size:13px}.quote-body>section,.quote-totals{background:var(--canvas);padding:8px 10px;border-radius:8px;margin:5px 0}.quote-total,.quote-totals{font-variant-numeric:tabular-nums}.quote-totals div:last-child{border-bottom:0;color:var(--blue);font-weight:700}.customer-estimate h1{font-size:23px}.customer-estimate main>.minor{margin-top:12px}.customer-estimate .quote-body{max-width:540px}.shell[hidden]{display:none}.estimate-editor>fieldset{padding:6px 0}.estimate-editor>fieldset legend{font-weight:700}.quote-totals dd{white-space:nowrap}@media(max-width:560px){dialog{max-height:calc(var(--visible-height,100dvh) - 12px);margin-bottom:var(--keyboard-gap,0px);overscroll-behavior:contain;scroll-padding-block:12px}}dialog>header{position:sticky;top:-15px;z-index:1;background:#fff;padding:3px 0;border-bottom:1px solid var(--line)}dialog:has(.edit-submit){scroll-padding-block:60px 66px}.edit-submit{position:sticky;bottom:-3px;z-index:1;background:#fff;padding:6px 0}@media(max-width:560px){dialog:has(:is(input,textarea):focus) .edit-submit{position:static}}
