:root{--navy:#10184a;--blue:#28359a;--yellow:#f4c430;--yellow2:#ffd84d;--bg:#f4f6fb;--line:#dfe3eb;--muted:#667085;--danger:#b42318;--success:#067647;--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:var(--bg);color:#101828;font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;-webkit-text-size-adjust:100%;overscroll-behavior-y:none}
body{min-height:100dvh}
button,input,select,textarea{font:inherit;font-size:16px}
button{touch-action:manipulation}
.hidden{display:none!important}
.offline-banner{position:fixed;inset:0 0 auto;z-index:10000;padding:8px 14px;background:#b42318;color:#fff;text-align:center;font-weight:800;font-size:13px}
.login-view{min-height:100dvh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,var(--navy),var(--blue))}
.login-card{width:min(440px,100%);background:#fff;border-radius:24px;padding:26px;box-shadow:0 24px 70px #0005}
.login-logo{display:block;width:min(260px,80%);height:92px;object-fit:contain;margin:0 auto 8px}
.login-card h1{text-align:center;margin:8px 0 4px;color:var(--navy)}
.login-card>p{text-align:center;color:var(--muted);margin:0 0 22px}
label{display:block;font-size:13px;font-weight:850;margin:14px 0 6px;color:var(--navy)}
input,select,textarea{width:100%;min-height:48px;padding:11px 12px;border:1px solid #cfd4dc;border-radius:12px;background:#fff;color:#101828}
textarea{min-height:100px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:3px solid #f4c43055;border-color:#d1a800}
.password-row{display:grid;grid-template-columns:1fr 50px;gap:8px}
.icon-button,.close-button{min-width:48px;min-height:48px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--navy);font-weight:900}
.check-row{display:flex;gap:9px;align-items:center;font-weight:650;color:#344054}.check-row input{width:22px;min-height:22px}
.button{min-height:48px;border:0;border-radius:12px;padding:11px 16px;font-weight:850;color:var(--navy);background:#fff;border:1px solid var(--line)}
.button.primary{background:var(--yellow);border-color:var(--yellow)}
.button.danger{background:#fff1f0;color:var(--danger);border-color:#fecdca}
.button.wide{width:100%;margin-top:18px}
.button:disabled{opacity:.6}
.desktop-link{display:block;text-align:center;margin-top:18px;color:var(--navy);font-weight:750}
.form-error{margin-top:12px;padding:10px;border-radius:10px;background:#fff1f0;color:var(--danger);font-weight:700}
.app-view{min-height:100dvh;padding-bottom:calc(78px + var(--safe-bottom))}
.mobile-header{position:sticky;top:0;z-index:30;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:78px;padding:10px 14px;background:var(--yellow);border-bottom:3px solid var(--navy);box-shadow:0 5px 18px #10184a18}
.eyebrow{font-size:10px;letter-spacing:.09em;font-weight:900;color:#475467}
.mobile-header h1,.sheet-header h2{margin:2px 0;color:var(--navy);font-size:clamp(20px,5vw,28px)}
.subtitle{font-size:12px;color:#475467;font-weight:650}
.header-actions{display:flex;align-items:center;gap:8px}.header-logo{width:98px;height:54px;object-fit:contain}
.sync-badge{font-size:11px;padding:5px 8px;border-radius:999px;background:#ffffffaa;color:var(--navy);font-weight:800;white-space:nowrap}
.sync-badge.saving{background:#fff4cc}.sync-badge.error{background:#fee4e2;color:var(--danger)}
.main-content{padding:14px;max-width:1180px;margin:auto}
.view{min-height:calc(100dvh - 170px)}
.date-toolbar{display:grid;grid-template-columns:48px 1fr 48px;gap:8px;align-items:center;margin-bottom:12px}
.date-toolbar button{min-height:48px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--navy);font-size:24px;font-weight:900}
.date-toolbar input{font-weight:800;text-align:center;color:var(--navy)}
.section-title{display:flex;justify-content:space-between;align-items:end;gap:10px;margin:16px 0 8px}.section-title h2{margin:0;color:var(--navy);font-size:18px}.section-title small{color:var(--muted)}
.driver-group,.panel{background:#fff;border:1px solid var(--line);border-radius:17px;margin-bottom:12px;overflow:hidden;box-shadow:0 5px 18px #10184a0d}
.driver-head{display:flex;justify-content:space-between;align-items:center;padding:11px 13px;background:#f9fafb;border-bottom:1px solid var(--line)}
.driver-name{display:flex;align-items:center;gap:9px;font-weight:900;color:var(--navy)}
.driver-dot{width:12px;height:12px;border-radius:50%;background:var(--driver-color,var(--blue))}.count{font-size:12px;color:var(--muted);font-weight:800}
.service-list{padding:8px}.service-card{position:relative;margin:6px 0;padding:12px 12px 12px 16px;border:1px solid var(--line);border-radius:13px;background:var(--service-bg,#fff);color:var(--service-text,#101828);overflow:hidden;touch-action:pan-y}
.service-card::before{content:"";position:absolute;inset:0 auto 0 0;width:6px;background:var(--accent,var(--yellow))}
.service-card h3{font-size:15px;margin:0 30px 5px 0;line-height:1.25;overflow-wrap:anywhere}.service-card p{margin:3px 0;font-size:12px;opacity:.88;overflow-wrap:anywhere}.service-card .order{position:absolute;right:9px;top:9px;min-width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--navy);font-weight:900;font-size:12px;box-shadow:0 2px 8px #0002}.service-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.pill{display:inline-flex;align-items:center;min-height:25px;padding:3px 8px;border-radius:999px;background:#f2f4f7;color:#344054;font-size:11px;font-weight:800}.service-card[style*="--service-text:#fff"] .pill,.service-card[style*="--service-text:#ffffff"] .pill{background:#ffffffcc}
.empty{padding:26px 18px;text-align:center;color:var(--muted)}
.week-days{display:grid;gap:12px}.week-day{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden}.week-day-head{display:flex;justify-content:space-between;padding:12px 14px;background:#f9fafb;font-weight:900;color:var(--navy)}
.memo-card,.expiry-card{padding:13px;border-bottom:1px solid var(--line)}.memo-card:last-child,.expiry-card:last-child{border:0}.memo-card h3,.expiry-card h3{margin:0 0 5px;font-size:15px;color:var(--navy)}.memo-card p,.expiry-card p{margin:3px 0;color:#475467;font-size:13px}.urgent{border-left:6px solid #d92d20}.todo{border-left:6px solid #f79009}.info{border-left:6px solid #2e90fa}.done{border-left:6px solid #12b76a;opacity:.75}
.more-grid{display:grid;gap:12px}.more-action{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:62px;padding:12px 14px;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--navy);font-weight:850;text-align:left}.more-action span{font-size:22px}.user-card{padding:16px;background:var(--navy);color:#fff;border-radius:17px;margin-bottom:14px}.user-card h2{margin:0 0 5px}.user-card p{margin:0;opacity:.8}
.bottom-nav{position:fixed;z-index:40;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,1fr);padding:5px 5px calc(5px + var(--safe-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -10px 28px #10184a18}
.bottom-nav button{min-width:0;min-height:58px;border:0;border-radius:12px;background:transparent;color:#667085;font-size:10px;font-weight:800;padding:5px 2px}.bottom-nav button span{display:block;font-size:20px;line-height:22px}.bottom-nav button.active{background:#fff4c2;color:var(--navy)}
.fab{position:fixed;z-index:45;right:18px;bottom:calc(80px + var(--safe-bottom));width:58px;height:58px;border:0;border-radius:50%;background:var(--yellow);color:var(--navy);font-size:34px;line-height:1;box-shadow:0 10px 26px #10184a55;font-weight:700}
.sheet-backdrop{position:fixed;z-index:80;inset:0;background:#10182888;backdrop-filter:blur(2px)}
.sheet{position:fixed;z-index:90;inset:0;background:#fff;display:flex;flex-direction:column;min-height:100dvh;max-height:100dvh}
.sheet-header{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:calc(12px + env(safe-area-inset-top,0px)) 14px 12px;background:var(--yellow);border-bottom:3px solid var(--navy)}
.sheet-body{flex:1 1 auto;overflow-y:auto;padding:14px 14px calc(92px + var(--safe-bottom));overscroll-behavior:contain}
.form-grid{display:grid;gap:1px 14px}.form-grid .full{grid-column:1/-1}.form-actions{position:fixed;z-index:95;inset:auto 0 0;display:grid;grid-template-columns:1fr 1.4fr;gap:9px;padding:10px 14px calc(10px + var(--safe-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 24px #10184a18}.form-actions.three{grid-template-columns:.8fr 1fr 1.3fr}.form-help{font-size:12px;color:var(--muted);margin:6px 0}.quick-grid{display:grid;grid-template-columns:1fr;gap:11px}.quick-grid button{min-height:70px;text-align:left;font-size:17px}.attachments{display:grid;gap:7px;margin-top:9px}.attachment{display:flex;justify-content:space-between;gap:9px;padding:9px;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}.toast{position:fixed;z-index:110;left:50%;bottom:calc(92px + var(--safe-bottom));transform:translateX(-50%);width:min(420px,calc(100vw - 28px));padding:12px 15px;border-radius:13px;background:#101828;color:#fff;text-align:center;font-weight:800;box-shadow:0 12px 35px #0005}.toast.error{background:var(--danger)}
@media(min-width:700px){.main-content{padding:18px 22px}.week-days{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet{inset:4vh 4vw;min-height:0;max-height:92vh;border-radius:22px;box-shadow:0 30px 90px #0006;overflow:hidden}.form-actions{position:sticky;bottom:0;margin:14px -14px -14px;padding-left:18px;padding-right:18px}.sheet-body{padding-bottom:14px}.quick-grid{grid-template-columns:repeat(3,1fr)}.service-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 10px}.fab{right:28px}}
@media(min-width:1000px){.week-days{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet{inset:5vh max(8vw,80px)}}
@media(display-mode:standalone){.desktop-link{display:none}.mobile-header{padding-top:calc(10px + env(safe-area-inset-top,0px))}}
@media(prefers-reduced-motion:no-preference){.sheet{animation:sheetIn .18s ease-out}.toast{animation:toastIn .18s ease-out}@keyframes sheetIn{from{transform:translateY(3%);opacity:.6}}@keyframes toastIn{from{transform:translate(-50%,12px);opacity:.3}}}
