*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#F3F4F6;color:#15181D;font:15px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-variant-numeric:tabular-nums}
a{color:#1D4FBF;text-decoration:none}a:hover{color:#163C91}
h1,h2,h3,p{margin:0}
.boot{padding:40px;text-align:center;color:#5A6370}
.wrap{max-width:1256px;margin:0 auto;padding:0 16px}
.narrow{max-width:560px}

.top{background:#fff;border-bottom:1px solid #E2E5EA;position:sticky;top:0;z-index:5}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px}
.brand{font-weight:700;font-size:17px;color:#15181D;display:flex;align-items:center;gap:8px;min-height:44px}
.brand img{width:26px;height:26px;border-radius:6px}
.nav{display:flex;gap:2px;flex-wrap:wrap}
.nav a{min-height:44px;padding:0 10px;display:flex;align-items:center;font-size:14px;font-weight:600;color:#3D4653;border-radius:8px}
.nav a.on{color:#1D4FBF}

main{padding:20px 0 110px}
.stack{display:flex;flex-direction:column;gap:20px}
.head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.head h1{font-size:26px;font-weight:700;letter-spacing:-.01em}
.sub{font-size:14px;color:#5A6370}
.muted{color:#5A6370}
.small{font-size:12px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.btn{min-height:44px;padding:0 16px;border-radius:8px;border:1px solid #C9CED6;background:#fff;color:#15181D;font:600 14px inherit;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.btn:hover{color:#15181D;border-color:#8A93A0}
.btn.pri{background:#1D4FBF;border-color:#1D4FBF;color:#fff}
.btn.pri:hover{background:#163C91;color:#fff}
.btn.danger{color:#8F2A08;border-color:#E3B9A8}
.btn.big{min-height:52px;font-size:16px;border-radius:10px;width:100%}
.btn.sm{min-height:36px;padding:0 10px;font-size:13px}
.btn[disabled]{opacity:.6;cursor:default}
.link{background:none;border:0;padding:0;color:#1D4FBF;font:600 14px inherit;font-family:inherit;cursor:pointer;min-height:44px}

.card{background:#fff;border:1px solid #E2E5EA;border-radius:12px;padding:18px 20px}
.card h2{font-size:16px;font-weight:600;margin-bottom:8px}
.sec-title{font-size:16px;font-weight:600}

.chip{font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;white-space:nowrap;display:inline-block}
.chip.overdue{background:#FBE3D9;color:#8F2A08}
.chip.soon{background:#FAEDC4;color:#6B4A00}
.chip.ok{background:#E6EAF0;color:#3D4653}
.chip.nodata{background:#fff;color:#3D4653;border:1px dashed #8A93A0}
.t-overdue{color:#8F2A08;font-weight:600}
.t-soon{color:#6B4A00;font-weight:600}
.plate{display:inline-block;font:600 12px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.04em;padding:4px 7px;border:1.5px solid #15181D;border-radius:5px;background:#fff;color:#15181D;white-space:nowrap}

.attn{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid #EEF0F3;color:#15181D}
.attn:hover{color:#15181D}
.attn .t{font-weight:600}
.attn .l{min-width:200px;display:flex;flex-direction:column;gap:2px}
.attn .r{display:flex;gap:12px;align-items:center;font-size:14px}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}
.car{display:flex;flex-direction:column;gap:12px;color:#15181D}
.car:hover{color:#15181D;border-color:#B9C0CA}
.car .n{font-size:16px;font-weight:600}
.car .km{font-size:22px;font-weight:700}
.car .topline{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.bar{height:6px;border-radius:3px;background:#E6EAF0;overflow:hidden}
.bar i{display:block;height:6px;border-radius:3px;background:#5B7BB5}
.bar i.soon{background:#C98A00}
.bar i.overdue{background:#B8390E}
.between{display:flex;justify-content:space-between;gap:8px;align-items:baseline}

.tablebox{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px;min-width:640px}
th{font-size:12px;font-weight:600;color:#5A6370;text-align:left;padding:8px 10px;border-bottom:1px solid #E2E5EA}
td{padding:11px 10px;border-bottom:1px solid #EEF0F3;vertical-align:top}
tr:last-child td{border-bottom:0}
.num{text-align:right;white-space:nowrap}

.carhead{background:#fff;border-bottom:1px solid #E2E5EA;padding:16px 0 0}
.carhead .wrap{display:flex;flex-direction:column;gap:14px}
.carhead h1{font-size:22px;font-weight:700}
.bigkm{font-size:28px;font-weight:700}
.tabs{display:flex;gap:2px;overflow-x:auto}
.tabs a{min-height:44px;padding:0 12px;display:flex;align-items:center;font-size:14px;font-weight:500;color:#5A6370;border-bottom:2px solid transparent;white-space:nowrap}
.tabs a.on{color:#1D4FBF;font-weight:600;border-bottom-color:#1D4FBF}
.list{display:flex;flex-direction:column;gap:10px}
.task{display:flex;flex-direction:column;gap:8px;padding:14px 16px}
.task .nm{font-weight:600}
.bottom{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #E2E5EA;padding:12px 0 calc(12px + env(safe-area-inset-bottom));z-index:4}

form.f{display:flex;flex-direction:column;gap:14px}
.fld{display:flex;flex-direction:column;gap:6px;min-width:0}
.fld>span,.lbl{font-size:12px;font-weight:600;color:#5A6370}
input[type=text],input[type=password],input[type=date],select,textarea{width:100%;min-height:46px;padding:10px 12px;border-radius:8px;border:1px solid #C9CED6;background:#fff;color:#15181D;font:500 16px inherit;font-family:inherit}
textarea{min-height:90px;resize:vertical}
input:focus,select:focus,textarea:focus,.btn:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid #1D4FBF;outline-offset:1px}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.pick{min-height:44px;padding:0 14px;border-radius:999px;border:1px solid #C9CED6;background:#fff;color:#15181D;font:500 14px inherit;font-family:inherit;cursor:pointer}
.pick[aria-pressed=true]{background:#1D4FBF;border-color:#1D4FBF;color:#fff;font-weight:600}
.pick[aria-pressed=true]::before{content:"✓ "}
.pick.add{border-style:dashed;border-color:#8A93A0;background:#F3F4F6}
.mat{display:flex;flex-direction:column;gap:10px}
.mat[hidden]{display:none}
.check{display:flex;gap:10px;align-items:center;min-height:44px;font-size:15px}
.check input{width:20px;height:20px;flex:none}
.err{background:#FBE3D9;color:#8F2A08;border-radius:8px;padding:10px 12px;font-size:14px;font-weight:500}
.err[hidden]{display:none}
.note{display:flex;gap:10px;align-items:flex-start;padding:12px 0;border-top:1px solid #EEF0F3}
.note:first-child{border-top:0}
.note.done .tx{text-decoration:line-through;color:#5A6370}
.note .tx{flex:1;white-space:pre-wrap;word-break:break-word}
.note input{width:22px;height:22px;margin-top:1px;flex:none}
.visit{display:flex;flex-direction:column;gap:6px}
.visit ul{margin:0;padding-left:18px}
dl{margin:0;display:grid;grid-template-columns:120px 1fr;gap:10px 12px}
dt{color:#5A6370;font-size:13px}dd{margin:0;word-break:break-word}
.pre{white-space:pre-wrap}

.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px}
.login .card{width:100%;max-width:380px;padding:28px 24px}
.login h1{font-size:22px;margin-bottom:18px;display:flex;gap:10px;align-items:center}
.login img{width:34px;height:34px;border-radius:8px}

#toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);background:#15181D;color:#fff;padding:10px 16px;border-radius:8px;font-size:14px;font-weight:500;opacity:0;pointer-events:none;transition:opacity .2s;z-index:10;max-width:90vw}
#toast.show{opacity:1}

@media (max-width:600px){
  .head h1{font-size:22px}
  .card{padding:16px}
  .nav a{padding:0 8px;font-size:13px}
  dl{grid-template-columns:96px 1fr}
}
[hidden]{display:none!important}
.btn{white-space:nowrap;flex:none}
.btn.big{flex:auto}
.nav{flex-wrap:nowrap;overflow-x:auto;min-width:0}
.nav a{white-space:nowrap}
.brand{flex:none}
@media (max-width:520px){.brand span{display:none}}
.w{min-width:200px}
