:root{--ink:#24282f;--muted:#757b83;--yellow:#ffd43b;--line:#e2e5e9;--action:#ffd43b;--on-accent:#24282f;--on-action:#24282f;--tint:#fff8da;--tint-border:#f6e4a1;--brand-ink:#24282f}*{box-sizing:border-box}body{margin:0;font:15px/1.5 system-ui,Arial,sans-serif;color:var(--ink);background:#f4f5f7}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:9px;padding:10px 16px;background:var(--ink);color:white;font-weight:650}button:hover{opacity:.86}button:disabled{opacity:.45;cursor:wait}.primary{background:var(--action);color:var(--on-action)}.ghost{background:white;color:var(--ink);border:1px solid var(--line)}.danger{background:#fff0f0;color:#a82828;border:1px solid #ffc8c8}input,select,textarea{width:100%;padding:10px;border:1px solid #ccd1d8;border-radius:8px;background:white;color:var(--ink)}textarea{resize:vertical;min-height:90px}label{display:block;font-size:13px;color:#606772;font-weight:600}label input,label select,label textarea{margin-top:5px}header{background:#fff;border-bottom:1px solid var(--line);padding:16px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;gap:12px;align-items:center;font-size:19px;font-weight:800}.logo{background:var(--yellow);color:var(--on-accent);width:38px;height:38px;display:grid;place-items:center;border-radius:10px}.sub{font-size:12px;color:var(--muted);font-weight:450}main{max-width:1240px;margin:28px auto;padding:0 24px}.top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}h1{font-size:27px;margin:0}h2{font-size:19px;margin:0 0 16px}h3{font-size:16px;margin:0 0 8px}p{margin:8px 0;color:#616974}.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:22px;flex-wrap:wrap}.tabs button{background:transparent;color:#69717d}.tabs button.active{background:var(--yellow);color:var(--on-accent)}.panel{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:18px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.wide{grid-column:1/-1}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}.muted{color:var(--muted);font-size:13px}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{background:var(--tint);border-radius:6px;padding:3px 8px;font-size:12px;font-weight:650}.metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:20px 0}.metric{background:white;border:1px solid var(--line);border-radius:12px;padding:16px}.metric b{display:block;font-size:24px;margin-top:8px}.metric:last-child{background:var(--tint)}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th{background:#f5f6f8;font-size:12px;color:#646c77;text-align:left}td,th{padding:12px;border-bottom:1px solid var(--line);vertical-align:top}.numeric{text-align:center}.dayhead{display:flex;justify-content:space-between;align-items:center;gap:10px}.address{font-size:13px;margin:5px 0;display:flex;gap:10px}.address span{color:#8b939d;min-width:18px}.errorbox{background:#fff0ef;border:1px solid #ffd4cf;color:#a63025;padding:14px;border-radius:10px;margin:14px 0}.info{background:var(--tint);border:1px solid var(--tint-border);border-radius:10px;padding:12px;font-size:13px}.login{max-width:470px;margin:8vh auto;padding:30px}.login .brand{margin-bottom:26px}.login label{margin:16px 0}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin:18px 0}.calendar button{background:#f0f2f5;color:#353c47;padding:12px 0}.calendar button.selected{background:var(--yellow);color:var(--on-accent)}.calendar .dow{text-align:center;color:#8a919c;font-size:12px}.calendar .blank{min-height:43px}.overlay{position:fixed;inset:0;background:#0007;display:grid;place-items:center;padding:20px;z-index:5}.dialog{width:min(760px,100%);max-height:90vh;overflow:auto;background:white;padding:25px;border-radius:15px}#notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:20;max-width:90vw;background:#252a33;color:white;border-radius:10px;padding:14px 20px;box-shadow:0 8px 30px #0003;display:none}#notice.show{display:block}.receiptform{display:grid;grid-template-columns:1fr .7fr 1.4fr auto;align-items:end;gap:10px}.receiptform button{height:44px}.empty{text-align:center;padding:35px;color:#858b95}.smallbutton{padding:6px 10px;font-size:12px}.routeedit{margin-top:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}@media(max-width:800px){header{padding:12px 16px}main{padding:0 14px;margin-top:18px}.top{align-items:flex-start;flex-direction:column}.grid,.fields{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,1fr)}.panel{padding:16px}.receiptform{grid-template-columns:1fr 1fr}.receiptform label:nth-child(3){grid-column:1/-1}.routeedit{grid-template-columns:1fr}.login{margin:3vh 15px}.brand{font-size:16px}.top select{max-width:100%}}

:root[data-brand="kaleva"]{--yellow:#1b5298;--action:#fff;--on-accent:#fff;--on-action:#1b5298;--tint:#edf4fb;--tint-border:#c9dced;--brand-ink:#1b5298;--line:#dfe7ee}
:root[data-brand="okna_rosta"]{--yellow:#c5252f;--action:#fff;--on-accent:#fff;--on-action:#c5252f;--tint:#fff0f1;--tint-border:#efcbd0;--brand-ink:#b21e29;--line:#ebe1e3}
.brand,h1,h2{color:var(--brand-ink)}a{color:var(--brand-ink)}input:focus,select:focus,textarea:focus{outline:2px solid var(--yellow);outline-offset:1px}input,select,textarea{accent-color:var(--yellow)}

.route-track{height:18px;border-radius:9px;overflow:hidden;background:#e8e8e8}.route-fill{height:100%;min-width:2px;background:repeating-linear-gradient(45deg,#ffd43b,#ffd43b 10px,#ffe476 10px,#ffe476 20px);background-size:28px 28px;animation:routeMove 1s linear infinite;transition:width .4s}@keyframes routeMove{to{background-position:28px 0}}

#month{cursor:pointer}

.header-controls{flex-wrap:wrap}.header-controls>input,.header-controls>select,.header-controls>button{width:210px!important;height:44px;flex:0 0 210px;white-space:nowrap}.header-controls>select{text-overflow:ellipsis}.header-controls>button{padding:8px 10px}@media(max-width:760px){.top{flex-direction:column;align-items:stretch}.header-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));width:100%}.header-controls>input,.header-controls>select,.header-controls>button{width:100%!important;min-width:0}}
/* Служебные записки и права доступа сотрудников. */
input[data-memo-field="include"],input[data-memo-access],input[name="memo_allowed"]{width:20px;height:20px;padding:0;vertical-align:middle;margin:0 8px 0 0;cursor:pointer}
input[data-memo-field="include"]:disabled{cursor:default;opacity:.45}
input[data-memo-field="distance"]{min-width:100px}
select[data-memo-field="cost"]{min-width:160px}
.map-button{display:inline-block;text-decoration:none;padding:10px 14px;border-radius:8px;cursor:pointer}
.address{align-items:flex-start}.address-body{flex:1;min-width:0}.memo-controls{margin-top:10px;padding-top:8px;border-top:1px solid #ddd}.memo-select{display:flex;align-items:center;gap:8px}.memo-select input[type=checkbox]{width:auto;margin:0}.memo-details{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-top:10px}.memo-details label{min-width:150px}.memo-details select{max-width:360px}.memo-details input{max-width:180px}.save-badge{display:inline-block;border-radius:7px;padding:8px 12px;background:#f2f2f2;color:#666}.save-badge.saved{background:#e7f5e8;color:#246432}.actions label{margin:0}.actions input[data-day-km]{max-width:180px}
@media(max-width:600px){.memo-details{display:block}.memo-details label{margin-top:10px}.memo-details select{max-width:100%}.memo-details .map-button{margin-top:10px}.address{gap:8px}.address-body{width:100%}}
.mkad-button,.mkad-button:hover{background:#ffda49;color:#202733;border:1px solid #ffda49;font-weight:700}

/* Видимость полей должна сохраняться при display:block у label. */
[hidden]{display:none!important}
.day-route-controls{column-gap:32px;row-gap:12px;align-items:flex-end}
.day-mileage{margin-left:16px!important}
.day-edit-actions{justify-content:flex-end;margin-top:20px;padding-top:12px;border-top:1px solid var(--line)}
.memo-details{column-gap:24px;row-gap:18px}
.memo-map-row{flex:0 0 100%;display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.memo-map-help{line-height:1.6;max-width:430px}
.day-route-controls .day-mileage{display:flex;align-items:center;gap:16px;min-width:0}
.day-mileage>span{white-space:nowrap}
.day-mileage input{width:180px;max-width:180px;flex:0 0 180px;margin:0;text-align:center;font:inherit;font-weight:400}
.memo-details .memo-distance,.memo-details .memo-approval{display:flex;align-items:center;gap:16px;min-width:0;font-size:13px;font-weight:600}
.memo-distance>span,.memo-approval>span{white-space:nowrap}
.memo-distance input,.memo-approval input{width:180px;max-width:180px;flex:0 0 180px;margin:0;text-align:center;font:inherit;font-weight:400}
.memo-cost{display:flex;align-items:center;gap:12px;min-height:41px;color:var(--ink)}
.memo-cost>span{font-size:13px;font-weight:600}
.memo-cost>b{font-size:15px;font-weight:700}
@media(max-width:600px){.day-mileage{margin-left:0!important}.day-route-controls{column-gap:18px}.memo-map-row{gap:12px}.memo-map-help{font-size:12px}.memo-details .memo-distance,.memo-details .memo-approval{margin:16px 0;flex-wrap:wrap;gap:10px}.memo-distance>span,.memo-approval>span{white-space:normal}.memo-cost{margin-top:12px}}

@media(max-width:600px){.day-route-controls .day-mileage{flex-wrap:wrap;gap:10px}.day-mileage>span{white-space:normal}}

/* Белые кнопки в цветах Калева и Окон Роста. */
:root:is([data-brand="kaleva"],[data-brand="okna_rosta"]) .primary:not(.map-button){background:#fff;color:var(--brand-ink);border:1px solid var(--brand-ink)}
:root:is([data-brand="kaleva"],[data-brand="okna_rosta"]) .tabs button{border:1px solid transparent}
:root:is([data-brand="kaleva"],[data-brand="okna_rosta"]) .tabs button.active{background:#fff;color:var(--brand-ink);border-color:var(--brand-ink)}
:root:is([data-brand="kaleva"],[data-brand="okna_rosta"]) .primary:not(.map-button):hover,
:root:is([data-brand="kaleva"],[data-brand="okna_rosta"]) .tabs button:hover{background:var(--tint);color:var(--brand-ink);opacity:1}

:root:is([data-brand="kaleva"],[data-brand="okna_rosta"]) .primary.map-button{background:#ffda49;color:#202733;border:1px solid #ffda49}

/* Shared identity; individual brand controls retain their existing palette. */
.route-identity{display:flex;align-items:center;gap:14px;color:#243040}.route-identity>img{width:76px;height:76px;object-fit:contain}.route-identity strong{font-size:21px;letter-spacing:-.6px}.identity-brands,.hero-brands{display:flex;gap:16px;flex-wrap:wrap}.identity-brands{font-size:11px;color:#657184;margin-top:5px}.identity-brands span,.hero-brands span{position:relative;padding-left:11px}.identity-brands span:before,.hero-brands span:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:5px;height:5px;border-radius:50%;background:#f4c431}.identity-brands span:nth-child(2):before,.hero-brands span:nth-child(2):before{background:#387cce}.identity-brands span:nth-child(3):before,.hero-brands span:nth-child(3):before{background:#e64a58}.route-hero{position:relative;isolation:isolate;overflow:hidden;min-height:270px;border-radius:22px;background:radial-gradient(ellipse at 82% 55%,#3a4759 0%,#202b3c 38%,#151d2a 75%);margin-bottom:25px;box-shadow:0 12px 30px #15233b16;border:1px solid #354252}.hero-copy{position:relative;z-index:3;padding:42px 36px;width:57%}.hero-eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;color:#afbbcd}.route-hero h2{font-size:42px;line-height:1.14;letter-spacing:-1.8px;margin:16px 0 10px;color:#fff;font-weight:750}.route-hero p{color:#b8c4d5;font-size:15px}.hero-brands{margin-top:26px;font-size:12px;color:#e4eaf2;gap:22px}.hero-car{position:absolute;z-index:2;right:22px;top:8px;width:42%;height:calc(100% - 16px);object-fit:contain;filter:drop-shadow(0 15px 15px #0007)}.hero-trails{position:absolute;inset:0;z-index:1;opacity:.7;transform:rotate(-18deg)}.hero-trails i{position:absolute;right:-10%;width:67%;height:130px;top:30%;border:1px solid #f0c43d;border-radius:100%}.hero-trails i:nth-child(2){top:41%;border-color:#4385d3}.hero-trails i:nth-child(3){top:52%;border-color:#d83d50}.login{max-width:520px;border-top:3px solid #30405a;box-shadow:0 20px 70px #1b293b0d}.login .route-identity{margin-bottom:28px}.login .primary{background:#24344a;color:#fff}.login input:focus{outline-color:#386caf}@media(max-width:700px){.route-identity>img{width:55px;height:55px}.route-identity strong{font-size:18px}.identity-brands{gap:10px;font-size:10px}.route-hero{min-height:370px}.hero-copy{width:100%;padding:25px}.route-hero h2{font-size:32px}.hero-brands{margin-top:16px;gap:15px}.hero-car{height:185px;width:65%;top:auto;bottom:5px;right:14px}.hero-trails{top:100px}.hero-eyebrow{font-size:9px}}

.login-layout{max-width:1120px;margin:8vh auto;padding:0 24px;display:grid;grid-template-columns:1.5fr 1fr;gap:0;align-items:stretch}.login-layout>.route-hero{margin:0;border-radius:22px 0 0 22px;min-height:500px}.login-layout .hero-copy{width:100%;padding:38px 34px}.login-layout .hero-car{top:auto;bottom:16px;right:18px;width:67%;height:270px}.login-layout .hero-trails{top:120px}.login-layout>.login{max-width:none;width:100%;margin:0;border-radius:0 22px 22px 0;border-top:1px solid var(--line);padding:40px 30px;display:flex;flex-direction:column;justify-content:center}.login-layout .route-hero h2{font-size:40px}.login-layout .hero-brands{gap:18px}@media(max-width:800px){.login-layout{grid-template-columns:1fr;margin:20px auto;padding:0 14px;max-width:560px}.login-layout>.route-hero{border-radius:22px 22px 0 0;min-height:365px}.login-layout>.login{border-radius:0 0 22px 22px;padding:26px}.login-layout .hero-car{height:190px;width:62%;bottom:7px}.login-layout .hero-copy{padding:25px}.login-layout .route-hero h2{font-size:32px}}

/* Modal route calculation: fixed layout on desktop and mobile */
.route-progress-backdrop{position:fixed;inset:0;z-index:99999;background:rgba(18,24,30,.57);display:flex;align-items:center;justify-content:center;padding:16px}
.route-progress-dialog{box-sizing:border-box;width:min(560px,100%);max-height:90vh;overflow:auto;border:1px solid rgba(230,181,65,.48);border-radius:24px;background:linear-gradient(145deg,#fffefb 0%,#fff7e7 64%,#f5f8ff 100%);padding:30px;box-shadow:0 26px 85px rgba(18,24,30,.28),0 0 0 5px rgba(255,214,111,.09);color:#302b23}
.route-progress-dialog h2{margin:0 0 16px;font-size:21px}.route-progress-dialog p{line-height:1.5}
.route-progress-meter{height:19px;border-radius:30px;background:#e9e4df;overflow:hidden;margin:22px 0 15px;padding:3px;box-sizing:content-box;box-shadow:inset 0 2px 5px rgba(47,40,30,.14),0 2px 10px rgba(232,178,61,.15)}
#route-progress-fill{height:100%;width:0;border-radius:20px;position:relative;background:linear-gradient(105deg,#f9d34a 0%,#ff9b22 18%,#ef484b 36%,#3979ed 55%,#54b9ff 70%,#f9d34a 90%,#ef484b 100%);background-size:280% 100%;box-shadow:0 0 11px rgba(245,151,61,.40);animation:nakatano-progress-shimmer 3s linear infinite;transition:width .3s ease}
.route-progress-numbers{display:flex;justify-content:space-between;align-items:center;gap:10px}
#route-progress-pct{font-size:25px}#route-progress-eta{color:#6d6457;font-size:14px}
#route-progress-summary{padding:12px;border-radius:9px;background:#f2e8d4}
@media(max-width:480px){.route-progress-dialog{padding:18px}.route-progress-dialog h2{font-size:18px}}

/* Nakatano v5.3: compact route and fuel layout */
.route-overview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,560px);gap:20px;align-items:start}.route-overview h2{margin-bottom:10px}.route-overview .actions{margin:0}.route-add-day{margin-top:10px}.route-profile{display:grid;grid-template-columns:1fr 1fr .75fr;gap:12px;border:1px solid var(--line);border-radius:12px;padding:14px;background:#f8fafc}.route-profile>div{min-width:0}.route-profile b,.route-profile span{display:block;font-size:12px}.route-profile span{overflow-wrap:anywhere;margin-top:4px}.route-selection{display:flex;align-items:center;gap:18px;margin:12px 4px 16px}.route-selection label{display:flex;align-items:center;gap:9px}.route-selection input,.route-day-date input{width:auto;margin:0}.route-day{padding:16px 20px}.route-day-date label{display:flex;align-items:center;gap:10px}.route-day-date b{font-size:12px;font-weight:700;color:var(--ink)}.route-addresses{padding:10px 0 12px 27px}.route-addresses .address{font-size:13px;margin:3px 0}.route-warning{font-size:12px;color:#9a6510;margin:4px 0 10px;text-align:center}.route-map-row{display:flex;justify-content:center;margin:4px 0 10px}.route-map-black{display:inline-flex;align-items:center;justify-content:center;background:#101114;color:white!important;border-radius:8px;padding:9px 22px;font-size:13px;font-weight:700;text-decoration:none;max-width:100%;text-align:center}.route-mileage-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:850px;margin:10px auto}.route-mileage-grid label{font-size:12px;color:var(--ink)}.route-auto-value,.route-mileage-grid input{display:flex;align-items:center;justify-content:center;width:100%;height:42px;margin-top:5px;border:1px solid #c8d1df;border-radius:8px;text-align:center;font-size:14px;font-weight:600}.route-auto-value{background:#f2f4f8}.route-mileage-grid input{font-weight:500}.route-mileage-grid input::placeholder{font-size:12px;font-weight:400}.route-mileage-grid .save-badge{display:block;margin-top:5px;font-size:11px;color:#138340}.route-day-footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:12px}.route-day-footer button{font-size:11px;padding:7px 12px}.route-edit-heading{margin:16px 0 8px}.route-endpoint{padding:8px;background:#f5f7fa;border-radius:8px;margin:5px 0;font-size:12px}.route-edit-row{display:flex;align-items:center;gap:5px;margin:7px 0}.route-edit-num{min-width:20px;font-size:12px}.route-edit-row input{min-width:0;flex:1}.route-edit-row button.compact{padding:8px;font-size:14px}.route-edit-add{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.route-edit-add button{font-size:12px}.route-edit-km{margin:14px 0}.mic-control{background:#138b4d;color:white;border:0;padding:8px 12px;min-width:43px;min-height:43px;font-size:20px}.mic-control.recording{background:#d02b2b}.fuel-rows{margin-top:12px}.fuel-row{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.fuel-date{background:transparent;color:var(--ink);padding:5px 0;min-width:175px;text-align:left;font-size:13px;font-weight:600}.fuel-liters{width:92px!important;height:43px;text-align:center!important;font-size:15px;font-weight:650}.fuel-row>span{font-size:13px}.fuel-mic{margin-left:38px}.fuel-trash{margin-left:36px;min-height:40px}.fuel-date-picker:not([hidden]){width:170px}.fuel-add{margin-top:14px}.fuel-total{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}@media(max-width:800px){.route-overview-grid{grid-template-columns:1fr}.route-profile{grid-template-columns:1fr 1fr 1fr}.route-mileage-grid{gap:10px}}@media(max-width:550px){.route-profile{grid-template-columns:1fr}.route-mileage-grid{grid-template-columns:1fr}.fuel-mic{margin-left:8px}.fuel-trash{margin-left:10px}.fuel-date{min-width:155px}.route-edit-row button.compact{padding:5px}.route-edit-row{gap:3px}}
/* v5.3.1: compact route overview and non-clipping day cards */
.route-overview{overflow:visible!important}
.route-overview-grid{grid-template-columns:minmax(0,1fr) minmax(0,400px)!important;gap:20px;align-items:start}
.route-overview-grid>.route-profile{width:100%;max-width:400px;justify-self:end;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) 84px;gap:8px;padding:10px 12px}
.route-profile b{font-size:11px}.route-profile span{font-size:11px;line-height:1.4}
.route-overview .actions{display:flex;flex-wrap:nowrap;gap:12px;align-items:center;margin-top:12px}
.route-overview .actions>button,.route-overview .actions>.map-button{white-space:nowrap;flex:0 1 auto;font-size:13px;padding:10px 13px}
.route-day{overflow:visible!important;min-width:0;padding:15px 18px!important}
.route-day-date{margin:0 0 6px}.route-day-date label{display:flex;align-items:center;gap:10px;min-height:24px;min-width:0}
.route-day-date input[type=checkbox],.route-selection input[type=checkbox]{appearance:auto!important;position:static!important;flex:0 0 18px!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;opacity:1!important;visibility:visible!important;margin:0!important;transform:none!important;clip:auto!important;outline-offset:2px}
.route-day-date b{font-size:12px!important;font-weight:700!important;line-height:1.5}
.route-addresses{padding:5px 0 8px 29px}
.route-day-footer{width:100%;display:flex!important;justify-content:space-between!important;align-items:center;gap:14px;overflow:visible!important;padding:0 1px;margin:12px 0 0}
.route-day-footer button{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 11px!important;font-size:11px!important;white-space:nowrap;max-width:48%}
.route-day-footer button svg{stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;width:15px;height:15px}
.route-mileage-grid{max-width:850px;margin:10px auto 0;gap:18px;align-items:start}
.route-mileage-grid>label{min-width:0}.route-mileage-grid input,.route-auto-value{height:44px!important;font-size:14px!important;text-align:center!important}
.route-map-row{width:100%;justify-content:center;margin:10px auto 8px}.route-map-black{width:auto;max-width:min(540px,100%);min-height:40px;padding:9px 25px;background:#111!important;color:#fff!important}
.fuel-row{gap:8px}.fuel-row .fuel-mic{margin-left:38px}.fuel-row .fuel-trash{margin-left:36px}
.fuel-mic,.fuel-trash{display:inline-flex;align-items:center;justify-content:center;border-radius:9px;padding:0!important;width:44px;min-width:44px;height:44px;min-height:44px}
.fuel-mic{background:#138b4d!important;color:white!important}.fuel-mic.recording,#voiceReceipt.recording{background:#d42b32!important;color:white!important}
.fuel-mic svg,.fuel-trash svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.fuel-mic svg rect{fill:currentColor;stroke:none}.fuel-trash{color:#d52a2a!important;background:#fff!important;border:1px solid #e33!important}
.fuel-speech-live:empty{display:none}.fuel-speech-live{font-size:12px;color:#a22;margin:7px 0}
@media(max-width:900px){.route-overview-grid{grid-template-columns:1fr!important}.route-overview-grid>.route-profile{justify-self:start;max-width:480px}.route-overview .actions{flex-wrap:wrap}}
@media(max-width:600px){.route-overview .actions{flex-wrap:wrap}.route-overview-grid>.route-profile{grid-template-columns:1fr 1fr 75px;max-width:100%;gap:5px}.route-profile span{font-size:10px}.route-day{padding:12px!important}.route-mileage-grid{grid-template-columns:1fr 1fr!important;gap:8px}.route-mileage-grid input::placeholder{font-size:10px}.route-day-footer button{max-width:49%;font-size:10px!important;padding:6px 7px!important}.fuel-row .fuel-mic{margin-left:8px}.fuel-row .fuel-trash{margin-left:10px}}

/* v5.5: animated yellow / red / blue progress for routes and MKAD checks */
@keyframes nakatano-progress-shimmer{0%{background-position:0% 50%}100%{background-position:100% 50%}}
.route-progress-dialog h2{font-weight:750;letter-spacing:-.02em;color:#292d37}
#route-progress-pct{font-size:30px;font-weight:800;letter-spacing:-.035em;color:#283a65;font-variant-numeric:tabular-nums}
#route-progress-eta{display:inline-flex;align-items:center;border-radius:12px;padding:9px 12px;background:rgba(59,118,223,.07);color:#465c7b;font-size:13px;font-weight:600}
#route-progress-summary{border:1px solid #d6e7ce;background:#f1f9eb;color:#315b36;font-weight:600}
@media(prefers-reduced-motion:reduce){#route-progress-fill{animation:none;transition:none}}

/* v5.6: half-height progress track, stable dialog dimensions, larger day dates */
.route-progress-dialog{height:320px;min-height:320px;max-height:320px;display:flex;flex-direction:column;overflow:hidden}
.route-progress-dialog #route-progress-step{min-height:42px;max-height:42px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.route-progress-dialog .route-progress-meter{height:9px;min-height:9px;max-height:9px;padding:1.5px;margin:16px 0 13px;flex-shrink:0}
.route-progress-dialog #route-progress-summary{max-height:58px;overflow:auto}
.route-day-date b{font-size:14px!important}
.memo-day-date{font-size:14px!important;font-weight:700;line-height:1.5}
@media(max-width:480px){.route-progress-dialog{height:320px;min-height:320px;max-height:320px}}

/* v5.7 — slim gradient loading indicator, restrained percent, tab icons */
.route-progress-dialog .route-progress-meter{height:4.5px;min-height:4.5px;max-height:4.5px;padding:0.75px;margin:18px 0 14px;border-radius:99px}
.route-progress-dialog #route-progress-fill{border-radius:99px}
.route-progress-dialog #route-progress-pct{font-size:20px;line-height:1.3;font-weight:750;letter-spacing:-.015em}
.tabs{gap:18px;column-gap:18px;row-gap:10px}
.tabs button{display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;padding:11px 15px}
.tabs .tab-icon{display:block;flex:0 0 18px;width:18px;height:18px}
@media(max-width:650px){.tabs{gap:9px}.tabs button{padding:9px 11px;gap:7px}}

/* v5.8 — distinctive, clean, colored tab pictograms */
.tabs .tab-icon{stroke-width:1.9;filter:drop-shadow(0 1px 1px rgba(0,0,0,.08))}
.tabs button[data-tab="fuel"] .tab-icon{color:#df8a16}
.tabs button[data-tab="trips"] .tab-icon{color:#2677d8}
.tabs button[data-tab="report"] .tab-icon{color:#398f63}
.tabs button[data-tab="memo"] .tab-icon{color:#c061a5}
.tabs button[data-tab="settings"] .tab-icon{color:#7e69d4}
.tabs button.active .tab-icon{filter:drop-shadow(0 1px 1px rgba(0,0,0,.14))}

/* v5.9: fuel and route card refinements */
.fuel-row .fuel-date{min-width:214px;display:inline-flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e0d4bd;border-radius:9px;background:#faf5e9;font-size:12px;white-space:nowrap}
.fuel-calendar-icon{width:18px;height:18px;flex-shrink:0;stroke:#71674f;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.fuel-row .fuel-mic,.fuel-row .fuel-trash{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;border-radius:9px}
.fuel-row .fuel-mic{background:#fff!important;color:#128646!important;border:1px solid #15914d!important}
.fuel-row .fuel-mic svg,.fuel-row .fuel-trash svg{width:18px;height:18px}
.fuel-row .fuel-mic.recording{background:#fff7f7!important;color:#c52d38!important;border-color:#c52d38!important}
.speech-rec{display:flex;align-items:center;justify-content:center;gap:3px;font-size:9px;font-weight:800;letter-spacing:.02em}
.speech-rec-dot{width:6px;height:6px;border-radius:50%;background:#d42c36;animation:fuel-rec-pulse 1.1s ease-in-out infinite}
@keyframes fuel-rec-pulse{50%{opacity:.25}}
.route-warning{color:#c32631!important;font-weight:650;font-size:12px}
.route-auto-saved{display:block;color:#168347;font-size:11px;font-weight:650;margin:4px 0}
.route-day-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.route-check-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid #e3d3b7;border-radius:8px;padding:7px 12px;font-size:11px;font-weight:600;color:var(--ink);text-decoration:none;white-space:nowrap}
.route-check-link:hover{background:#f5eddb}
.route-day-footer button{max-width:none}
@media(max-width:550px){.fuel-row .fuel-date{min-width:196px}.route-day-actions{gap:5px}.route-check-link{padding:6px 7px;font-size:10px}}

/* v6.0: anchor the native calendar to the date control; no extra date field */
.fuel-row{position:relative}
.fuel-row .fuel-date-picker{position:absolute!important;left:0!important;top:9px!important;width:214px!important;height:42px!important;min-width:0!important;max-width:214px!important;margin:0!important;padding:0!important;opacity:0!important;pointer-events:none!important;z-index:1!important}
/* v6.0: stable, readable progress dialog with solid traffic-light stages */
.route-progress-dialog{height:390px!important;min-height:390px!important;max-height:min(390px,calc(100dvh - 32px))!important;overflow:hidden!important;display:flex;flex-direction:column}
.route-progress-dialog .route-progress-meter{flex-shrink:0}
.route-progress-dialog #route-progress-fill{animation:none!important;background:#f04747!important;background-size:auto!important;box-shadow:none!important;transition:width .3s ease,background-color .25s ease!important}
.route-progress-dialog #route-progress-fill.progress-yellow{background:#f2bf29!important}
.route-progress-dialog #route-progress-fill.progress-blue{background:#277cf1!important}
.route-progress-dialog #route-progress-summary{flex:1 1 auto;min-height:0;max-height:none!important;overflow:auto!important;line-height:1.55;white-space:normal;overflow-wrap:anywhere}
.route-progress-dialog #route-progress-close{flex-shrink:0;margin-top:8px}
.route-progress-dialog #route-progress-step{flex-shrink:0}
/* v6.0: same-height labels, green statuses and mileage inputs */
.route-mileage-grid>label{display:flex;flex-direction:column;align-items:stretch;min-width:0}
.route-mileage-title{display:block;line-height:18px;height:18px}
.route-mileage-status{display:block;height:19px;line-height:19px;font-size:11px;color:#168347;font-weight:650;margin:2px 0 0;white-space:nowrap}
.route-mileage-grid .route-auto-value,.route-mileage-grid input{box-sizing:border-box;height:44px!important;margin-top:5px!important;flex-shrink:0}
@media(max-width:550px){.fuel-row .fuel-date-picker{width:196px!important;max-width:196px!important}}

/* v6.1: minimal fixed-height progress modal */
.route-progress-dialog #route-progress-step{min-height:42px;max-height:42px;display:flex;align-items:center;font-size:14px;color:#736c62}
.route-progress-dialog #route-progress-summary{flex:0 0 auto;max-height:88px!important;overflow:auto!important;font-weight:700;color:#187445;background:#ecf8ef;border:1px solid #cbe6d0}
.route-progress-dialog #route-progress-summary.progress-error{color:#a42b31;background:#fff0f0;border-color:#f0c3c3}

/* v6.2: unified route-editor controls with the fuel-tab icon system */
.route-editor-dialog .route-address-mic,.route-editor-dialog .route-address-trash{box-sizing:border-box;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:7px!important;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.route-editor-dialog .route-address-mic{background:#fff!important;color:#128646!important;border:1px solid #15914d!important}
.route-editor-dialog .route-address-mic.recording{background:#fff7f7!important;color:#c52d38!important;border-color:#c52d38!important}
.route-editor-dialog .route-address-trash{background:#fff!important;color:#e52e3c!important;border:1px solid #f13b49!important}
.route-editor-dialog .route-address-mic svg,.route-editor-dialog .route-address-trash svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.route-editor-dialog .route-date-picker-wrap{position:relative;display:inline-flex;align-items:center;max-width:100%}
.route-editor-dialog .route-date-picker-wrap input[type=date]{padding-right:38px;max-width:100%}
.route-editor-dialog .route-calendar-icon{position:absolute;right:13px;pointer-events:none}
.route-editor-dialog .route-date-picker-wrap input[type=date]::-webkit-calendar-picker-indicator{opacity:0;position:absolute;right:0;width:36px;height:100%;cursor:pointer}

.route-manual-day{display:grid;justify-items:start;gap:10px;margin:14px 0}
body a.route-maps-button,body a.route-maps-button:visited{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #191919;border-radius:9px;background:#191919;color:#fff;font-weight:700;text-align:center;text-decoration:none}
body a.route-maps-button:hover{background:#303030}
body a.route-maps-button:focus-visible{outline:3px solid #b09032;outline-offset:2px}
.route-manual-mileage{display:flex;align-items:end;gap:10px;flex-wrap:wrap;max-width:100%}
.route-manual-mileage label{min-width:0}
.route-manual-mileage input{display:block;width:220px;max-width:100%;min-height:44px;margin-top:5px}
.route-manual-mileage .save-badge:empty,.memo-controls [hidden]{display:none!important}
.route-manual-mileage .save-badge.saved{background:#e7f5e8;color:#246432}
.memo-controls .memo-select{margin-top:12px}
@media(max-width:550px){.route-manual-day{justify-items:stretch}.route-manual-mileage label{flex:1 1 150px}.route-manual-mileage input{width:100%}}

.memo-inclusion-status{display:block;width:fit-content;margin-top:12px}.memo-inclusion-status.saved{color:#246432;background:#e7f5e8}
