
/* ===== Viscose — light theme (serif headings, Inter UI, logo green + lime brand, v3.11) ===== */
:root{
  /* v3.11 theme: Viscose logo colors (deep green + lime). The v3.10 pink/purple values are kept in dev/theme-classic-v310.css. */
  --base:#F3F5F0; --surface:#FFFFFF; --ink:#14211F; --sub:#5E6B66;
  --line:#E1E6DD; --line-strong:#CDD5C8; --tint:#EEF2E9;
  --accent:#4E7A12; --accent-hover:#3F650C; --accent-deep:#2F4D07; --accent-soft:#EEF6DD;
  --accent-rgb:78,122,18; --accent-line:#C9E09A; --accent-tint:#F6FAEE;
  --lime:#A3C94F; --lime-hover:#B4D66A; --lime-rgb:163,201,79; --on-lime:#0F1F1F;
  --forest:#0F1F1F; --forest-2:#173130; --forest-3:#0B1717;
  --grad:linear-gradient(90deg,#3F650C 0%,#4E7A12 60%,#578314 100%);
  --grad-v:linear-gradient(180deg,#A3C94F 0%,#7FA83A 100%);
  --grad-lime:linear-gradient(90deg,#A3C94F 0%,#C4E07A 100%);
  --rust:#B42318; --rust-soft:#FDECEA; --green:#1E7A4C; --green-soft:#E6F4EC; --amber:#94600A; --amber-soft:#FCF1DA; --blue:#2D5DB0; --blue-soft:#EAF0FB;
  --serif:'Source Serif 4','Source Serif Pro',Georgia,'Times New Roman',serif;
  --sans:Inter,'Segoe UI',system-ui,-apple-system,sans-serif;
  --shadow:0 1px 2px rgba(15,31,31,.04),0 2px 8px rgba(15,31,31,.05);
  --shadow-lg:0 12px 40px rgba(15,31,31,.16);
}
*{box-sizing:border-box;}
body{margin:0;font-family:var(--sans);color:var(--ink);background:var(--base);font-size:14px;line-height:1.45;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased;}
a{color:var(--accent);}
.head-font{font-family:var(--sans);font-weight:600;font-variant-numeric:tabular-nums;}
.shell{display:flex;min-height:100vh;}

/* ---- sidebar ---- */
nav{width:256px;flex-shrink:0;background:var(--surface);border-right:1px solid var(--line);position:sticky;top:0;height:100vh;overflow-y:auto;display:flex;flex-direction:column;z-index:30;}
.brand{display:flex;align-items:center;gap:12px;padding:22px 20px 20px;border-bottom:1px solid var(--line);}
.brand-mark{width:38px;height:38px;background:var(--forest,#0F1F1F);display:flex;align-items:center;justify-content:center;border-radius:10px;flex-shrink:0;}
.brand-text{font-size:11.5px;line-height:1.35;color:var(--sub);font-weight:500;}
.brand-wordmark{font-family:var(--serif);font-size:23px;font-weight:600;letter-spacing:-.01em;line-height:1.1;display:block;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;padding-bottom:1px;}
.nav-list{padding:6px 0;flex:1;}
.nav-group{position:relative;}
.nav-group + .nav-group{border-top:1px solid #F1F3EF;}
.nav-group.current::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--grad-v);border-radius:0 3px 3px 0;}
.nav-top{display:flex;align-items:center;gap:12px;padding:12px 18px 12px 20px;font-size:14px;font-weight:500;color:#363933;cursor:pointer;user-select:none;}
.nav-top:hover{background:var(--tint);}
.nav-ic{width:19px;height:19px;flex-shrink:0;fill:none;stroke:#71766E;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.nav-chev{width:16px;height:16px;margin-left:auto;fill:none;stroke:#91968D;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease;}
.nav-group.open .nav-chev{transform:rotate(180deg);}
.nav-group.current > .nav-top{font-weight:600;color:var(--ink);}
.nav-group.current > .nav-top .nav-ic{stroke:var(--accent);}
.nav-group.current:not(.has-subs) > .nav-top{background:var(--tint);}
.nav-subs{display:none;background:#F7F8F6;padding:4px 0 8px;border-top:1px solid #F0F2EE;}
.nav-group.open .nav-subs{display:block;}
.nav-sub{padding:9px 18px 9px 51px;font-size:13.5px;color:#55545C;cursor:pointer;}
.nav-sub:hover{background:#EFF2ED;color:var(--ink);}
.nav-sub.active{color:var(--accent);font-weight:600;}
.nav-top:focus-visible,.nav-sub:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.nav-foot{font-size:11.5px;color:var(--sub);padding:14px 20px 18px;line-height:1.7;border-top:1px solid var(--line);}
.nav-backdrop{display:none;}

main{flex:1;min-width:0;padding:36px 44px 60px;max-width:1120px;}
h1{font-family:var(--serif);font-size:31px;font-weight:600;letter-spacing:-.015em;margin:0 0 4px;line-height:1.15;}
h2{font-family:var(--serif);font-size:19px;font-weight:600;letter-spacing:-.005em;margin:32px 0 12px;}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px;}

/* ---- buttons & forms ---- */
.btn{font-family:inherit;cursor:pointer;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);padding:9px 16px;font-size:13.5px;font-weight:500;border-radius:10px;box-shadow:0 1px 2px rgba(15,31,31,.04);transition:background .15s, box-shadow .15s, filter .15s;line-height:1.3;}
.btn:hover{background:var(--tint);}
.btn:disabled{opacity:.45;cursor:not-allowed;}
.btn:disabled:hover{background:var(--surface);}
.btn-primary{background:var(--grad);color:#fff;border-color:transparent;font-weight:600;box-shadow:0 2px 8px rgba(var(--accent-rgb,78,122,18),.25);}
.btn-primary:hover{background:var(--grad);filter:brightness(.94) saturate(1.05);box-shadow:0 4px 14px rgba(var(--accent-rgb,78,122,18),.32);}
.btn-primary:disabled:hover{background:var(--grad);filter:none;}
.btn-small{padding:6px 11px;font-size:12.5px;border-radius:8px;}
.btn-link{background:none;border:none;color:var(--accent);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;padding:2px 4px;}
.btn-link:hover{text-decoration:underline;}
input,select{font-family:inherit;font-size:14px;padding:9px 12px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;color:var(--ink);width:100%;transition:border-color .15s, box-shadow .15s;}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(var(--accent-rgb,78,122,18),.16);}
input[type=checkbox]{width:auto;accent-color:var(--accent);}
input::placeholder{color:#A3A1AC;}
.btn:focus-visible,.filter:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

/* ---- dashboard ---- */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px;margin-top:22px;}
.stat-card{position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px 20px 16px;box-shadow:var(--shadow);}
.stat-card::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--grad);opacity:.85;}
.stat-card.danger::before{background:var(--rust);}
.stat-card.danger{border-color:#F3C7C2;}
.stat-label{font-size:12.5px;color:var(--sub);margin-bottom:8px;font-weight:500;}
.stat-value{font-size:28px;font-weight:600;letter-spacing:-.02em;line-height:1.1;}
.stat-value.danger{color:var(--rust);}
.stat-card .field-hint{margin-top:4px;}
.empty{font-size:13.5px;color:var(--sub);margin-top:12px;}

/* ---- order cards ---- */
.ticket-list{display:flex;flex-direction:column;gap:10px;}
.ticket{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:15px 18px;box-shadow:var(--shadow);}
.ticket:hover{border-color:var(--line-strong);}
.ticket-main{flex:1;cursor:pointer;min-width:0;}
.ticket-no{font-size:12.5px;color:var(--sub);}
.ticket-customer{font-size:15px;font-weight:600;margin-top:3px;}
.ticket-meta{font-size:12.5px;color:var(--sub);margin-top:3px;}
.ticket-actions{display:flex;gap:6px;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;}
.badge{display:inline-block;font-size:11.5px;font-weight:600;padding:3px 10px;border-radius:999px;line-height:1.5;vertical-align:middle;}
.badge.active{background:var(--blue-soft);color:var(--blue);}
.badge.returned{background:var(--green-soft);color:var(--green);}
.badge.overdue{background:var(--rust-soft);color:var(--rust);}
.badge.amber,.badge.partial{background:var(--amber-soft);color:var(--amber);}
.badge.paid{background:var(--green-soft);color:var(--green);}
.unpaid-tag{color:var(--rust);font-weight:500;}
.filters{display:flex;gap:8px;margin:16px 0 20px;flex-wrap:wrap;}
.filter{cursor:pointer;padding:6px 14px;font-size:12.5px;font-weight:500;border-radius:999px;border:1px solid var(--line-strong);color:#4D514A;background:#fff;}
.filter:hover{background:var(--tint);}
.filter.active{background:var(--accent-soft);color:var(--accent-deep);border-color:var(--accent-line,#C9E09A);font-weight:600;}

/* ---- customers ---- */
.customer-row{display:flex;justify-content:space-between;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin-bottom:10px;gap:14px;box-shadow:var(--shadow);}
.customer-info{cursor:pointer;flex:1;min-width:0;}
.customer-name{font-weight:600;font-size:15px;margin-bottom:2px;}
.customer-sub{font-size:12.5px;color:var(--sub);margin-top:2px;}
.customer-actions{display:flex;gap:6px;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;max-width:360px;}
.price-chip{display:inline-block;margin-top:6px;font-size:12px;font-weight:600;color:var(--accent-deep);background:var(--accent-soft);border-radius:999px;padding:2px 10px;}

/* ---- items ---- */
.items-table td .item-rate-input,.items-table td .item-name-input{margin:0;}
.item-rate-input{width:100px;text-align:right;}
.item-name-input{min-width:180px;}
.item-row{display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin-bottom:8px;gap:16px;}
.item-row-name{font-weight:600;font-size:14px;flex:1;}
.item-available.low .head-font,.low-num{color:var(--rust);}

/* ---- modals ---- */
.overlay{position:fixed;inset:0;background:rgba(15,31,31,.38);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;z-index:50;padding:20px;}
.modal{background:var(--surface);border-radius:16px;padding:26px 28px;width:100%;max-width:560px;max-height:88vh;overflow-y:auto;box-shadow:var(--shadow-lg);border:1px solid var(--line);}
.modal h2{margin:0;font-size:22px;}
.close-x{cursor:pointer;color:var(--sub);font-size:24px;line-height:1;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;}
.close-x:hover{background:var(--tint);color:var(--ink);}
.form-col{display:flex;flex-direction:column;gap:15px;margin-top:18px;}
.field-label{font-size:12.5px;color:#50544D;margin-bottom:6px;font-weight:500;}
.field-error{font-size:12.5px;color:var(--rust);}
.field-hint{font-size:12.5px;color:var(--sub);font-weight:400;font-family:var(--sans);}
.two-col{display:flex;gap:12px;}
.two-col > div{flex:1;min-width:0;}
.item-grid{border:1px solid var(--line);border-radius:12px;overflow:hidden;}
.item-grid-scroll{max-height:340px;overflow-y:auto;}
.item-grid-head,.item-grid-row{display:grid;grid-template-columns:1.8fr .6fr 1.25fr .6fr;gap:8px;padding:7px 12px;align-items:center;}
.item-grid-head{font-size:11px;color:var(--sub);background:#FAFAFC;font-weight:600;text-transform:uppercase;letter-spacing:.04em;}
.item-grid-row{border-top:1px solid var(--line);}
.item-grid-row.has-qty{background:#FCFEFA;}
.item-grid-row input{padding:7px 9px;}
.item-name{font-size:13.5px;}
.rate-cell{position:relative;}
.rate-src{display:block;font-size:10.5px;color:var(--sub);margin-top:2px;white-space:nowrap;}
.rate-src.cust{color:var(--accent-deep);}
.save-price{display:block;margin-top:3px;font-size:11px;font-weight:600;color:var(--accent);background:none;border:none;padding:0;cursor:pointer;text-align:left;font-family:inherit;}
.save-price:hover{text-decoration:underline;}
.save-price.saved{color:var(--green);cursor:default;text-decoration:none;}
.line-left{font-size:11.5px;color:var(--sub);text-align:right;}
.line-left.low{color:var(--rust);font-weight:600;}
.invoice-table{width:100%;border-collapse:collapse;font-size:13.5px;}
.invoice-table td{padding:7px 0;border-bottom:1px solid var(--line);}
.total-row{font-size:20px;font-weight:600;}
.error-banner{background:var(--rust-soft);color:var(--rust);font-size:12.5px;padding:10px 14px;border-radius:10px;margin-bottom:16px;}
.rm-toast{position:fixed;bottom:24px;right:24px;background:var(--forest,#0F1F1F);color:#fff;padding:12px 18px;border-radius:12px;font-size:13.5px;box-shadow:var(--shadow-lg);z-index:200;opacity:0;transform:translateY(10px);transition:opacity .2s ease, transform .2s ease;pointer-events:none;max-width:340px;}
.rm-toast.show{opacity:1;transform:translateY(0);}

/* ---- tables ---- */
.invoice-report-table{width:100%;border-collapse:separate;border-spacing:0;margin-top:14px;font-size:13.5px;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:var(--shadow);}
.invoice-report-table th{text-align:left;font-size:11px;color:var(--sub);font-weight:600;text-transform:uppercase;letter-spacing:.05em;padding:11px 14px;background:#FAFAFC;border-bottom:1px solid var(--line);}
.invoice-report-table td{padding:11px 14px;border-bottom:1px solid #F1F3EF;}
.invoice-report-table tbody tr:last-child td{border-bottom:none;}
.invoice-report-row{cursor:pointer;}
.invoice-report-row:hover td{background:#FBFDF9;}
.invoice-report-table tfoot td{border-top:1px solid var(--line);border-bottom:none;background:#FAFAFC;}
.print-only-header{display:none;}

/* ---- sign-in ---- */
.auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:radial-gradient(700px 380px at 50% 0%,rgba(var(--accent-rgb,78,122,18),.08),transparent 70%),var(--base);}
.auth-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:34px 30px;width:100%;max-width:370px;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;gap:12px;}
.auth-brand{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:12px;}
.auth-brand img{width:26px;}
.auth-mark{width:52px;height:52px;margin:0 auto;background:var(--forest,#0F1F1F);border-radius:14px;display:flex;align-items:center;justify-content:center;}
.auth-title{font-family:var(--serif);font-size:23px;font-weight:600;text-align:center;letter-spacing:-.01em;}
.auth-hint{font-size:12.5px;color:var(--sub);text-align:center;margin-top:2px;}
.auth-note{color:var(--rust);}
.checkbox-row{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--sub);}
.checkbox-row input{width:auto;}
.auth-link{font-size:12.5px;color:var(--accent);cursor:pointer;text-align:center;font-weight:500;}
.auth-link:hover{text-decoration:underline;}
.address-suggestions{display:none;position:absolute;left:0;right:0;top:100%;margin-top:4px;background:var(--surface);border:1px solid var(--line);border-radius:10px;max-height:200px;overflow-y:auto;z-index:60;box-shadow:var(--shadow-lg);}
.address-suggestion{padding:9px 12px;font-size:13px;cursor:pointer;border-bottom:1px solid var(--line);}
.address-suggestion:last-child{border-bottom:none;}
.address-suggestion:hover{background:var(--tint);}

/* ---- misc v2 ---- */
.sync-pill{font-size:11.5px;color:var(--green);white-space:nowrap;font-weight:500;}
.sync-pill.offline{color:var(--rust);font-weight:600;}
.mobile-top{display:none;}
.wrap-gap{flex-wrap:wrap;gap:10px;}
.range-row{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin:16px 0 4px;font-size:12.5px;color:var(--sub);}
.range-row label{display:flex;align-items:center;gap:6px;}
.range-row input{width:auto;}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px;}
.table-wrap .invoice-report-table{min-width:520px;}
#invoices-results,#transactions-results{overflow-x:auto;}
.route-summary{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;}
.route-chip{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;cursor:pointer;font-size:13.5px;font-weight:600;display:flex;flex-direction:column;gap:6px;box-shadow:var(--shadow);}
.route-chip:hover{border-color:var(--accent-line,#C9E09A);}
.route-chip span{font-size:12px;color:var(--sub);font-weight:400;}
.route-bar{height:6px;background:#EFF2ED;border-radius:3px;overflow:hidden;}
.route-bar i{display:block;height:100%;background:var(--grad);}
.v2-textarea,textarea{font-family:inherit;font-size:14px;padding:9px 12px;border:1px solid var(--line-strong);border-radius:10px;width:100%;resize:vertical;background:#fff;color:var(--ink);}
.settings-col{max-width:660px;}
.howto{font-size:13.5px;color:var(--ink);padding-left:20px;line-height:1.6;margin:6px 0;}
.howto li{margin-bottom:6px;}
.howto-box{font-size:13.5px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 16px;}
.howto-box summary{cursor:pointer;color:var(--accent-deep);font-weight:600;}
.code-box{font-family:Consolas,'Courier New',monospace;font-size:11.5px;background:#F5F7F3;color:var(--forest-2,#173130);border:1px solid var(--line);border-radius:8px;padding:9px 11px;margin:6px 0;word-break:break-all;user-select:all;}
.pw-box{background:var(--accent-soft);border-radius:10px;padding:12px 14px;font-size:14px;line-height:1.8;word-break:break-all;}
select{appearance:auto;}

/* ---- customer prices ---- */
.prices-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:16px 0 6px;}
.prices-toolbar > div{min-width:200px;}
.prices-toolbar .grow{flex:1;}
.prices-table{max-width:820px;}
.prices-table td{vertical-align:middle;padding-top:8px;padding-bottom:8px;}
.prices-table .price-input{width:110px;text-align:right;}
.prices-table tr.priced td:first-child{font-weight:600;}
.muted{color:var(--sub);}
.num{text-align:right;}

@media (max-width: 760px){
  body{font-size:15px;}
  .shell{flex-direction:column;}
  .mobile-top{display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:40;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);border-bottom:1px solid var(--line);padding:10px 14px;}
  .mobile-top .brand-wordmark{font-size:22px;}
  .mobile-top .sync-pill{margin-left:auto;}
  .mobile-menu-btn{font-size:20px;line-height:1;background:var(--surface);border:1px solid var(--line-strong);border-radius:10px;padding:8px 11px;cursor:pointer;color:var(--ink);}
  nav{position:fixed;left:0;top:0;bottom:0;height:100%;width:84vw;max-width:310px;transform:translateX(-102%);transition:transform .22s ease;z-index:70;box-shadow:var(--shadow-lg);}
  nav.open{transform:none;}
  .nav-backdrop.show{display:block;position:fixed;inset:0;background:rgba(15,31,31,.35);z-index:65;}
  .nav-top{padding:14px 18px 14px 20px;font-size:15px;}
  .nav-sub{padding:12px 18px 12px 51px;font-size:14.5px;}
  main{padding:20px 14px 70px;max-width:100%;}
  h1{font-size:26px;}
  .two-col{flex-direction:column;gap:14px;}
  .ticket{flex-wrap:wrap;}
  .ticket-actions{width:100%;justify-content:flex-start;}
  .ticket-actions .btn{flex:1;}
  .customer-row{flex-direction:column;align-items:stretch;}
  .customer-actions{max-width:none;justify-content:flex-start;}
  .customer-actions .btn{flex:1 1 auto;}
  .filters{flex-wrap:wrap;}
  .row-between{flex-wrap:wrap;gap:10px;}
  .modal{padding:20px 16px;max-height:94vh;border-radius:14px;}
  .overlay{padding:8px;align-items:flex-start;}
  .item-grid-head,.item-grid-row{grid-template-columns:1.5fr .75fr 1fr .8fr;gap:6px;padding:7px 8px;}
  .rm-toast{left:14px;right:14px;bottom:14px;max-width:none;}
  input,select,.v2-textarea,textarea{font-size:16px;}
  .stat-grid{grid-template-columns:repeat(2,1fr);gap:10px;}
  .stat-value{font-size:24px;}
  .table-wrap .prices-table{min-width:0;}
  .prices-table th:nth-child(2),.prices-table td:nth-child(2){display:none;}
  .prices-table th,.prices-table td{padding-left:10px;padding-right:10px;}
  .prices-table .price-input{width:92px;}
  .prices-toolbar > div{min-width:0;width:100%;}
  .item-grid-head,.item-grid-row{grid-template-columns:1.4fr .7fr 1.2fr .6fr;}
}
@media print{
  nav,.no-print,.mobile-top,.nav-foot,.range-row{display:none !important;}
  main{max-width:100%;padding:0;}
  body{background:#fff;}
  .print-only-header{display:flex !important;margin-bottom:16px;}
  .invoice-report-row{cursor:default;}
  .invoice-report-table{box-shadow:none;}
}
.route-summary .empty{grid-column:1/-1;margin-top:0;}

/* ---- Route planner styles (scoped to #route-app-root) ---- */
#route-app-root{
    --asphalt: #F3F5F0;
    --asphalt-2: #FAFBFA;
    --card: #FFFFFF;
    --line: #E4E9E1;
    --safety-yellow: #4E7A12;
    --route-orange: #173130;
    --pickup-blue: #2D5DB0;
    --text: #1F1E1D;
    --text-dim: #66646E;
    --danger: #B42318;
    --ok: #1E7A4C;
  }#route-app-root *{ box-sizing: border-box; }#route-app-root{ margin:0; padding:0; color: var(--text); font-family: 'Inter', sans-serif; }#route-app-root{
    min-height: 100vh;
    background-color: var(--asphalt); }#route-app-root .app{ max-width: 720px; margin: 0 auto; padding: 16px 14px calc(110px + env(safe-area-inset-bottom, 0px)); }#route-app-root header.top{
    display:flex; align-items:center; justify-content:space-between;
    padding: 10px 4px 16px; margin-bottom: 14px;
    position: relative;
  }#route-app-root header.top::after{
    content: ''; position: absolute; left: -14px; right: -14px; bottom: 0; height: 6px;
    background: repeating-linear-gradient(45deg, var(--safety-yellow) 0px, var(--safety-yellow) 12px, #1F1E1D 12px, #1F1E1D 24px);
  }#route-app-root header.top .title-row{ display:flex; align-items:center; gap: 10px; }#route-app-root header.top .brand-mark{
    height: 46px; width: auto; flex-shrink: 0;
    
  }#route-app-root header.top .title{
    font-family: var(--serif);
    font-size: 34px; letter-spacing: 1.5px; line-height: 1;
    color: var(--safety-yellow);
    
  }#route-app-root header.top .sub{ font-size: 11px; color: var(--text-dim); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }#route-app-root header.top .count{
    font-family: var(--sans); font-weight:700; font-size: 20px;
    background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--safety-yellow);
    border-radius: 6px; padding: 6px 14px; text-align:center;
    box-shadow: 0 2px 8px rgba(15,31,31,0.10);
  }#route-app-root header.top .count small{ display:block; font-size: 9px; color: var(--text-dim); font-weight:400; letter-spacing:1px; }#route-app-root /* User switcher */
  .user-bar{ display:flex; gap:6px; margin-bottom: 16px; overflow-x:auto; padding-bottom: 2px; }#route-app-root .user-chip{
    flex: 0 0 auto; background: var(--card); border: 1px solid var(--line); color: var(--text-dim);
    padding: 8px 12px; border-radius: 20px; font-size: 12.5px; font-weight:600; cursor:pointer;
    white-space: nowrap;
  }#route-app-root .user-chip.active{ background: var(--safety-yellow); color:#fff; border-color: var(--safety-yellow); }#route-app-root .user-rename{ display:flex; justify-content:flex-end; gap: 14px; margin: -10px 0 14px; flex-wrap: wrap; }#route-app-root .user-rename button{ background:none; border:none; color: var(--text-dim); font-size: 11.5px; text-decoration:underline; cursor:pointer; padding: 2px; }#route-app-root #dispatcherModeBtn.unlocked{ color: var(--safety-yellow); font-weight:700; }#route-app-root .mode-banner{
    font-size: 11.5px; text-align:center; padding: 6px; border-radius: 6px; margin: -6px 0 14px;
    font-weight:700; letter-spacing: 0.5px; text-transform: uppercase;
  }#route-app-root .mode-banner.dispatcher{ background: rgba(var(--accent-rgb,78,122,18),0.15); color: var(--safety-yellow); border: 1px solid var(--safety-yellow); }#route-app-root .mode-banner.driver{ background: rgba(15,31,31,0.04); color: var(--text-dim); border: 1px solid var(--line); }#route-app-root .dispatcher-tag{
    font-size: 9px; background: var(--safety-yellow); color:#fff; padding: 2px 6px; border-radius: 4px;
    vertical-align: middle; margin-left: 4px; letter-spacing: 0.5px; text-transform: uppercase; font-weight:700;
  }#route-app-root .date-nav{
    display:flex; align-items:center; gap: 8px; margin-bottom: 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  }#route-app-root .date-arrow{
    background: var(--asphalt-2); border: 1px solid var(--line); color: var(--text);
    width: 34px; height: 34px; padding: 0; border-radius: 8px; font-size: 13px; flex-shrink:0;
  }#route-app-root .date-display{
    flex:1; text-align:center; font-family:var(--serif); font-size: 18px; letter-spacing: 1px;
    color: var(--text); cursor: pointer; padding: 4px 0;
  }#route-app-root .date-today-btn{
    background: var(--safety-yellow); color:#fff; border:none; border-radius: 8px;
    padding: 8px 12px; font-size: 11.5px; font-weight:700; flex-shrink:0;
  }#route-app-root .date-picker-hidden{
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }#route-app-root .save-bar{
    display:flex; align-items:center; justify-content:space-between; gap: 10px;
    margin-bottom: 14px; padding: 2px 4px;
  }#route-app-root .save-status{ font-size: 11px; color: var(--text-dim); font-family:var(--sans); }#route-app-root .save-now-btn{
    background: var(--asphalt-2); border: 1px solid var(--line); color: var(--text);
    font-size: 11.5px; padding: 6px 12px; border-radius: 7px; font-weight:600;
  }#route-app-root .save-now-btn:active{ background: var(--card); }#route-app-root .panel{
    background: linear-gradient(180deg, rgba(15,31,31,0.025), rgba(255,255,255,0) 40%), var(--card);
    border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px;
    box-shadow: inset 0 1px 0 rgba(15,31,31,0.04), 0 3px 10px rgba(15,31,31,0.09);
    overflow: hidden;
  }#route-app-root .panel h2{
    font-family:var(--serif); letter-spacing: 1.5px; font-size: 17px;
    margin: -14px -14px 12px -14px; padding: 10px 14px;
    text-transform: uppercase; background: var(--line); color: var(--text);
  }#route-app-root .panel.delivery-panel h2{ background: var(--safety-yellow); color: #1F1E1D; }#route-app-root .panel.pickup-panel h2{ background: var(--pickup-blue); color: #06201b; }#route-app-root .start-panel h2{ background: var(--ok); color: #06210f; }#route-app-root .settings-panel h2{ background: #454c56; color: var(--text); }#route-app-root .route-panel h2{ background: var(--route-orange); color: #240d02; }#route-app-root .settings-note{ font-size: 11.5px; color: var(--text-dim); margin-top: 8px; line-height: 1.4; }#route-app-root .settings-note a{ color: var(--danger); }#route-app-root .settings-note.ok{ color: var(--ok); }#route-app-root .row{ display:flex; gap:8px; }#route-app-root input[type=text]{
    flex:1; background: var(--asphalt-2); border: 1px solid var(--line); color: var(--text);
    padding: 12px 12px; border-radius: 8px; font-size: 16px; font-family:'Inter',sans-serif;
  }#route-app-root input[type=text]:focus{ outline: none; border-color: var(--safety-yellow); }#route-app-root input[type=text]::placeholder{ color: var(--text-dim); }#route-app-root button{
    border:none; border-radius: 8px; padding: 12px 16px; font-weight:700; font-size: 14px;
    cursor:pointer; font-family:'Inter',sans-serif; letter-spacing: 0.3px; transition: transform .05s ease;
    touch-action: manipulation;
  }#route-app-root button:active{ transform: scale(0.97); }#route-app-root button.primary{ background: var(--safety-yellow); color:#fff; box-shadow: 0 2px 10px rgba(var(--accent-rgb,78,122,18),0.22); }#route-app-root button.accent{ background: var(--route-orange); color:#fff; box-shadow: 0 2px 10px rgba(255,90,46,0.22); }#route-app-root button.pickup-btn{ background: var(--pickup-blue); color: #0a2622; box-shadow: 0 2px 10px rgba(45,93,176,0.22); }#route-app-root button.ghost{ background: transparent; border: 1px solid var(--line); color: var(--text); }#route-app-root button.small{ padding: 7px 10px; font-size: 12px; }#route-app-root button:disabled{ opacity: 0.4; cursor: default; }#route-app-root .start-current{
    margin-top: 10px; background: var(--asphalt-2); border: 1px solid var(--line); border-radius: 8px;
    padding: 10px 12px; font-size: 13px; display:flex; align-items:center; justify-content:space-between; gap:8px;
  }#route-app-root .start-current-label{ color: var(--text-dim); }#route-app-root .start-current.set .start-current-label{ color: var(--text); font-family:var(--sans); font-size: 12.5px; }#route-app-root .start-current .clear-start{ background:none; border:none; color: var(--danger); font-size: 12px; padding: 4px 6px; cursor:pointer; font-weight:700; }#route-app-root .edit-start-link{
    background:none; border:none; color: var(--ok); font-size: 12px; font-weight:700;
    text-decoration: underline; cursor:pointer; padding: 4px 6px; flex-shrink:0;
  }#route-app-root .guide-banner{ position: relative; border-color: var(--safety-yellow); }#route-app-root .guide-banner h2{ background: var(--safety-yellow); color: #1F1E1D; padding-right: 34px; }#route-app-root .guide-dismiss{
    position:absolute; top:8px; right:10px; background:none; border:none; color: #1F1E1D;
    font-size: 16px; padding: 4px 6px; cursor:pointer; opacity: 0.65;
  }#route-app-root .guide-dismiss:active{ opacity: 1; }#route-app-root .guide-step{ display:flex; gap:10px; align-items:flex-start; font-size: 13px; line-height:1.4; margin-bottom: 8px; color: var(--text); }#route-app-root .guide-step:last-child{ margin-bottom: 0; }#route-app-root .guide-num{
    flex-shrink:0; width:20px; height:20px; border-radius:50%; background: var(--safety-yellow); color:#fff;
    font-family:var(--sans); font-weight:700; font-size:11px; display:flex; align-items:center; justify-content:center;
  }#route-app-root .bulk-toggle{
    margin-top: 12px; font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  }#route-app-root .delivery-panel .bulk-toggle{ color: var(--safety-yellow); }#route-app-root .pickup-panel .bulk-toggle{ color: var(--pickup-blue); }#route-app-root textarea.bulk-input{
    width: 100%; min-height: 120px; background: var(--asphalt-2); border: 1px solid var(--line);
    color: var(--text); padding: 12px; border-radius: 8px; font-size: 16px;
    font-family: var(--sans); resize: vertical; line-height: 1.5;
  }#route-app-root textarea.bulk-input:focus{ outline:none; border-color: var(--safety-yellow); }#route-app-root .bulk-progress{
    margin-top: 10px; font-family:var(--sans); font-size: 12.5px; color: var(--text-dim);
  }#route-app-root .bulk-progress .bar{
    height: 6px; background: var(--asphalt-2); border-radius: 3px; overflow:hidden; margin-bottom: 6px;
  }#route-app-root .bulk-progress .bar-fill{ height: 100%; background: var(--safety-yellow); width: 0%; transition: width .15s ease; }#route-app-root .bulk-progress .fail{ color: var(--danger); }#route-app-root .bulk-progress .ok{ color: var(--ok); }#route-app-root #map{ height: 260px; border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--line); }#route-app-root .map-unavailable{
    height: 100%; display:flex; align-items:center; justify-content:center; text-align:center;
    padding: 20px; color: var(--text-dim); font-size: 13px; line-height: 1.5; background: var(--asphalt-2);
    border-radius: 10px;
  }#route-app-root #map.placement-mode{ border: 2px solid var(--safety-yellow); cursor: crosshair; }#route-app-root .placement-banner{
    display:flex; align-items:center; gap:10px; justify-content:space-between;
    background: rgba(var(--accent-rgb,78,122,18),0.12); border: 1px solid var(--safety-yellow); border-radius: 8px;
    padding: 10px 12px; margin-bottom: 10px; font-size: 12.5px; color: var(--text);
  }#route-app-root .placement-banner .placement-text{ flex:1; }#route-app-root .failed-list{ display:flex; flex-direction:column; gap: 6px; margin-top: 6px; }#route-app-root .failed-item{
    display:flex; align-items:center; justify-content:space-between; gap: 8px;
    background: var(--asphalt-2); border: 1px solid var(--line); border-radius: 6px;
    padding: 6px 8px; font-size: 12px;
  }#route-app-root .failed-item span{ flex:1; word-break: break-word; }#route-app-root .actions-row{ display:flex; gap:8px; margin-bottom: 14px; }#route-app-root .actions-row button{ flex:1; }#route-app-root .ticket{
    position: relative;
    background: var(--asphalt-2);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 18px 12px 12px 52px;
    margin-bottom: 16px;
    box-shadow: 0 3px 8px rgba(15,31,31,0.07);
  }#route-app-root .ticket::before{
    content: '';
    position: absolute; top: 8px; left: 10px; right: 10px; height: 0;
    border-top: 2px dotted var(--line);
  }#route-app-root .ticket.type-pickup{ border-left: 3px solid var(--pickup-blue); }#route-app-root .ticket.type-delivery{ border-left: 3px solid var(--safety-yellow); }#route-app-root .ticket.all-done{ opacity: 0.7; }#route-app-root .ticket.all-done .addr{ text-decoration: line-through; text-decoration-color: var(--text-dim); text-decoration-thickness: 1.5px; }#route-app-root .ticket .stamp{
    position: absolute; top: 14px; right: 10px;
    font-family: var(--serif); font-size: 15px; letter-spacing: 1.5px;
    color: var(--ok); border: 2px solid var(--ok); border-radius: 4px;
    padding: 2px 8px; transform: rotate(-9deg); opacity: 0.85;
    text-transform: uppercase; pointer-events: none;
  }#route-app-root .ticket .top-row{ display:flex; align-items:flex-start; gap: 10px; }#route-app-root .ticket .num{
    position:absolute; left: 10px; top: 18px;
    font-family:var(--sans); font-weight:700; font-size: 15px;
    color: var(--asphalt); background: var(--safety-yellow);
    width: 26px; height: 26px; border-radius: 50%;
    display:flex; align-items:center; justify-content:center;
  }#route-app-root .ticket.type-pickup .num{ background: var(--pickup-blue); }#route-app-root .ticket .addr{ flex:1; font-size: 14.5px; line-height:1.35; padding-top: 2px; }#route-app-root .ticket .type-badge{
    display:inline-block; font-family:var(--sans); font-size: 9.5px; font-weight:700;
    letter-spacing: 0.5px; padding: 2px 6px; border-radius: 4px; margin-bottom: 4px;
  }#route-app-root .type-delivery .type-badge{ background: rgba(var(--accent-rgb,78,122,18),0.18); color: var(--safety-yellow); }#route-app-root .type-pickup .type-badge{ background: rgba(45,93,176,0.18); color: var(--pickup-blue); }#route-app-root .ticket .addr .warn{ color: var(--safety-yellow); font-size: 11.5px; font-weight:700; }#route-app-root .ticket .btns{ display:flex; align-items:flex-start; }#route-app-root .ticket .more-btn{
    width: 36px; height: 36px; padding:0; font-size: 18px; display:flex; align-items:center; justify-content:center;
    background: var(--asphalt-2); border: 1px solid var(--line); color: var(--text-dim);
  }#route-app-root .note-input{
    width: 100%; background: var(--asphalt-2); border: 1px solid var(--line); color: var(--text);
    padding: 9px 12px; border-radius: 8px; font-size: 16px; font-family:'Inter',sans-serif;
    margin-top: 8px;
  }#route-app-root .note-input:focus{ outline: none; border-color: var(--safety-yellow); }#route-app-root .note-input::placeholder{ color: var(--text-dim); }#route-app-root .ticket .note-display{
    margin-top: 8px; font-size: 12.5px; color: var(--text); background: rgba(var(--accent-rgb,78,122,18),0.08);
    border-left: 2px solid var(--safety-yellow); padding: 6px 8px; border-radius: 4px; line-height: 1.4;
  }#route-app-root .type-pickup .note-display{ background: rgba(45,93,176,0.08); border-left-color: var(--pickup-blue); }#route-app-root .ticket .note-display .note-label{ font-weight:700; font-size: 10.5px; letter-spacing: 0.5px; opacity: 0.75; display:block; margin-bottom: 1px; }#route-app-root .media-row{ display:flex; align-items:center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }#route-app-root .photo-btn{
    background: var(--asphalt-2); border: 1px dashed var(--line); color: var(--text-dim);
    padding: 7px 10px; font-size: 12px; border-radius: 6px; display:flex; align-items:center; gap:5px;
  }#route-app-root .photo-btn.has-photo{ border-style: solid; border-color: var(--ok); color: var(--ok); }#route-app-root input.photo-input-hidden{
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }#route-app-root .photo-thumb{
    width: 48px; height: 48px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); cursor: pointer;
  }#route-app-root .note-btn{ background: var(--asphalt-2); border: 1px dashed var(--line); color: var(--text-dim); padding: 7px 10px; font-size: 12px; border-radius: 6px; }#route-app-root .photo-modal-overlay{
    position: fixed; inset: 0; background: rgba(15,31,31,0.12); z-index: 1100;
    display:flex; align-items:center; justify-content:center; padding: 20px;
  }#route-app-root .photo-modal-overlay img{ max-width: 100%; max-height: 85vh; border-radius: 8px; }#route-app-root .check-row{ display:flex; gap: 14px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); flex-wrap: wrap; }#route-app-root .check-item{ display:flex; align-items:center; gap: 6px; font-size: 12.5px; color: var(--text-dim); cursor:pointer; user-select:none; }#route-app-root .check-item input[type=checkbox]{ width: 18px; height: 18px; accent-color: var(--safety-yellow); cursor:pointer; }#route-app-root .type-pickup .check-item input[type=checkbox]{ accent-color: var(--pickup-blue); }#route-app-root .check-item.checked{ color: var(--text); font-weight: 600; }#route-app-root .empty{ text-align:center; padding: 30px 10px; color: var(--text-dim); font-size: 13px; }#route-app-root footer.bar{
    position: fixed; bottom:0; left:0; right:0;
    background: var(--card); border-top: 3px solid var(--safety-yellow);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); display:flex; gap:10px; justify-content:center;
  }#route-app-root footer.bar .wrap{ max-width: 720px; width:100%; display:flex; gap:10px; }#route-app-root footer.bar button{ flex:1; font-size: 15px; padding: 14px; }#route-app-root .waze-btn{ background: #33ccff; color: #062633; }#route-app-root .toast{
    position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
    background: var(--safety-yellow); color:#fff; padding: 9px 16px;
    border-radius: 8px; font-weight:700; font-size: 13px; z-index: 999;
    opacity:0; pointer-events:none; transition: opacity .2s ease;
  }#route-app-root .toast.show{ opacity:1; }#route-app-root .route-modal-overlay{
    position: fixed; inset: 0; background: rgba(15,31,31,0.12);
    display:flex; align-items:flex-end; justify-content:center;
    z-index: 1000; padding: 0;
  }#route-app-root .route-modal{
    background: var(--asphalt); border-top: 3px solid var(--safety-yellow);
    border-radius: 14px 14px 0 0; width: 100%; max-width: 720px;
    padding: 18px 16px 20px; max-height: 85vh; overflow-y: auto;
  }#route-app-root .route-modal h2{
    font-family:var(--serif); letter-spacing: 1px; font-size: 24px;
    color: var(--safety-yellow); margin: 0 0 2px; text-transform: uppercase;
  }#route-app-root .route-modal-sub{ font-size: 12px; color: var(--text-dim); margin-bottom: 14px; }#route-app-root .route-options{ display:flex; flex-direction:column; gap: 10px; }#route-app-root .route-option{ background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }#route-app-root .route-option-top{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom: 4px; }#route-app-root .route-option-label{ font-family:var(--serif); font-size: 17px; letter-spacing: 0.5px; color: var(--text); }#route-app-root .route-option-miles{ font-family:var(--sans); font-weight:700; color: var(--route-orange); font-size: 14px; }#route-app-root .route-option-desc{ font-size: 12.5px; color: var(--text-dim); line-height: 1.4; margin-bottom: 8px; }#route-app-root .route-option-preview{
    font-family:var(--sans); font-size: 11px; color: var(--text-dim);
    background: var(--asphalt-2); border-radius: 6px; padding: 7px 9px; margin-bottom: 10px;
    line-height: 1.5; word-break: break-word;
  }#route-app-root .use-route-btn{ width: 100%; }#route-app-root .action-sheet-list{ display:flex; flex-direction:column; gap:8px; }#route-app-root .action-sheet-btn{ text-align:left; padding: 13px 14px; font-weight:600; }#route-app-root .action-sheet-btn.danger-btn{ color: var(--danger); border-color: var(--danger); }#route-app-root .dupe-row{ display:flex; align-items:flex-start; gap:8px; padding: 5px 0; font-size: 12.5px; line-height: 1.4; cursor:pointer; }#route-app-root .dupe-row input[type=checkbox]{ width: 17px; height: 17px; margin-top: 2px; accent-color: var(--safety-yellow); flex-shrink:0; }#route-app-root .dupe-row .dupe-type{ color: var(--text-dim); font-size: 10.5px; text-transform: uppercase; }#route-app-root .directions-list{ max-height: 55vh; overflow-y: auto; }#route-app-root .directions-stop-header{
    font-family:var(--sans); font-size: 12.5px; font-weight:700; color: var(--safety-yellow);
    background: var(--card); border: 1px solid var(--line); border-radius: 6px;
    padding: 8px 10px; margin: 12px 0 6px; display:flex; align-items:center; gap:8px; flex-wrap: wrap;
  }#route-app-root .directions-stop-header .type-badge{ background: rgba(var(--accent-rgb,78,122,18),0.18); }#route-app-root .directions-leg-meta{ margin-left:auto; color: var(--text-dim); font-weight:400; font-size: 11px; }#route-app-root .directions-step{
    font-size: 12.5px; color: var(--text); padding: 6px 10px; border-left: 2px solid var(--line);
    margin-left: 6px; line-height: 1.4;
  }#route-app-root .directions-step-dist{ color: var(--text-dim); font-size: 11px; }#route-app-root .route-map-note{
    background: rgba(34,197,94,0.12); border: 1px solid var(--ok); color: var(--ok);
    border-radius: 8px; padding: 8px 10px; font-size: 12.5px; margin-bottom: 10px;
  }#route-app-root .camera-modal-overlay{
    position: fixed; inset: 0; background: #000; z-index: 1200;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
  }#route-app-root .camera-video{ width: 100%; height: 100%; object-fit: cover; background:#000; }#route-app-root .camera-controls{
    position: fixed; bottom: 0; left: 0; right: 0;
    display:flex; align-items:center; justify-content:space-between;
    padding: 22px 26px calc(22px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(15,31,31,0.12), transparent);
  }#route-app-root .camera-controls #cameraCancelBtn{ background: rgba(255,255,255,0.15); color:#fff; border-color: rgba(255,255,255,0.4); width: 70px; }#route-app-root .camera-shutter{
    width: 68px; height: 68px; border-radius: 50%; background:#fff; border: 4px solid rgba(255,255,255,0.4);
    padding: 0; cursor:pointer;
  }#route-app-root .camera-shutter:active{ background: #ddd; }#route-app-root ::-webkit-scrollbar{ width: 6px; }#route-app-root ::-webkit-scrollbar-thumb{ background: var(--line); border-radius: 3px; }



/* ---- route app: light theme overrides ---- */
#route-app-root{ background:var(--base,#F3F5F0); font-family:var(--sans); font-variant-numeric:tabular-nums; }
#route-app-root header.top{ padding:8px 2px 16px; }
#route-app-root header.top::after{ left:0; right:0; height:3px; border-radius:3px; background:var(--grad); }
#route-app-root header.top .brand-mark{ height:42px; background:var(--forest,#0F1F1F); border-radius:12px; padding:6px 10px; }
#route-app-root header.top .title{ font-family:var(--serif); font-size:28px; font-weight:600; letter-spacing:-.01em; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; line-height:1.15; padding-bottom:2px; }
#route-app-root header.top .sub{ letter-spacing:.02em; text-transform:none; font-size:13px; font-weight:500; }
#route-app-root header.top .count{ border-radius:12px; border-top:1px solid var(--line); box-shadow:var(--shadow); font-size:22px; padding:6px 14px; }
#route-app-root header.top .count small{ font-size:10px; letter-spacing:.06em; }
#route-app-root .user-chip{ border-radius:999px; padding:10px 15px; font-size:14px; }
#route-app-root .user-chip.active{ background:var(--grad); border-color:transparent; color:#fff; }
#route-app-root .user-rename button{ color:#55545C; font-size:13px; text-decoration:none; font-weight:500; padding:6px 4px; }
#route-app-root .user-rename button:hover{ color:var(--accent); }
#route-app-root .sync-pill{ color:var(--green); margin-left:auto; align-self:center; }
#route-app-root .sync-pill.offline{ color:var(--rust); }
#route-app-root .mode-banner{ letter-spacing:.02em; text-transform:none; font-size:13px; border-radius:10px; padding:8px; }
#route-app-root .mode-banner.dispatcher{ background:var(--accent-soft); color:var(--accent-deep); border-color:var(--accent-line,#C9E09A); }
#route-app-root .date-nav{ border-radius:14px; padding:8px 10px; box-shadow:var(--shadow); }
#route-app-root .date-arrow{ width:46px; height:46px; border-radius:12px; font-size:15px; background:#fff; }
#route-app-root .date-display{ font-family:var(--serif); font-size:21px; font-weight:600; letter-spacing:0; }
#route-app-root .date-today-btn{ background:var(--grad); padding:10px 14px; font-size:13px; border-radius:10px; }
#route-app-root .save-bar .save-status{ color:var(--text-dim); }
#route-app-root .save-now-btn{ background:#fff; border-radius:10px; padding:9px 14px; font-size:13px; }
#route-app-root .panel{ background:var(--card); border-radius:16px; padding:18px 16px; box-shadow:var(--shadow); border:1px solid var(--line); }
#route-app-root .panel h2,
#route-app-root .panel.delivery-panel h2, #route-app-root .panel.pickup-panel h2, #route-app-root .start-panel h2,
#route-app-root .settings-panel h2, #route-app-root .route-panel h2, #route-app-root .guide-banner h2{
  font-family:var(--serif); font-size:20px; font-weight:600; letter-spacing:-.005em; text-transform:none;
  margin:0 0 12px; padding:0; background:none; color:var(--ink); }
#route-app-root .panel.delivery-panel{ border-left:4px solid var(--accent,#4E7A12); }
#route-app-root .panel.pickup-panel{ border-left:4px solid var(--pickup-blue); }
#route-app-root .guide-dismiss{ color:var(--text-dim); }
#route-app-root .guide-num{ background:var(--grad); color:#fff; }
#route-app-root input[type=text], #route-app-root .note-input, #route-app-root textarea.bulk-input{ background:#fff; border:1px solid var(--line-strong); border-radius:12px; color:var(--ink); font-size:16px; padding:13px 14px; }
#route-app-root input[type=text]:focus, #route-app-root .note-input:focus, #route-app-root textarea.bulk-input:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(var(--accent-rgb,78,122,18),.16); }
#route-app-root button{ font-family:var(--sans); font-weight:600; letter-spacing:0; border-radius:12px; min-height:46px; font-size:15px; }
#route-app-root .user-rename button, #route-app-root .save-price, #route-app-root .guide-dismiss{ min-height:0; }
#route-app-root button.primary{ background:var(--grad); color:#fff; box-shadow:0 2px 10px rgba(var(--accent-rgb,78,122,18),.25); }
#route-app-root button.accent{ background:var(--forest-2,#173130); color:#fff; box-shadow:none; }
#route-app-root button.pickup-btn{ background:var(--pickup-blue); color:#fff; box-shadow:none; }
#route-app-root button.ghost{ background:#fff; border:1px solid var(--line-strong); color:var(--ink); }
#route-app-root button.small{ min-height:40px; font-size:14px; }
#route-app-root .bulk-toggle{ color:var(--accent); font-weight:500; }
#route-app-root .pickup-panel .bulk-toggle{ color:var(--pickup-blue); }
#route-app-root #map{ border-radius:16px; border:1px solid var(--line); box-shadow:var(--shadow); }
#route-app-root .actions-row button{ min-height:50px; }
#route-app-root .ticket{ background:#fff; border-radius:16px; border:1px solid var(--line); padding:18px 14px 14px 56px; box-shadow:var(--shadow); }
#route-app-root .ticket::before{ display:none; }
#route-app-root .ticket.type-delivery{ border-left:4px solid var(--accent,#4E7A12); }
#route-app-root .ticket.type-pickup{ border-left:4px solid var(--pickup-blue); }
#route-app-root .ticket .num{ width:30px; height:30px; left:14px; color:#fff; background:var(--grad); font-size:15px; }
#route-app-root .ticket.type-pickup .num{ background:var(--pickup-blue); color:#fff; }
#route-app-root .ticket .addr{ font-size:16.5px; font-weight:600; color:var(--ink); line-height:1.35; }
#route-app-root .ticket .type-badge{ font-size:11px; padding:3px 9px; border-radius:999px; letter-spacing:.02em; }
#route-app-root .type-delivery .type-badge{ background:var(--accent-soft); color:var(--accent-deep); }
#route-app-root .type-pickup .type-badge{ background:var(--blue-soft); color:var(--blue); }
#route-app-root .ticket .stamp{ font-family:var(--sans); font-weight:700; font-size:13px; letter-spacing:.04em; color:var(--green); border-color:var(--green); border-radius:8px; }
#route-app-root .ticket.all-done{ opacity:.78; background:#FBFBFC; }
#route-app-root .ticket .more-btn{ width:44px; height:44px; background:#fff; border-radius:12px; color:var(--ink); }
#route-app-root .photo-btn, #route-app-root .note-btn{ background:#fff; border:1px solid var(--line-strong); border-style:solid; color:#41453E; border-radius:10px; padding:10px 12px; font-size:14px; min-height:44px; }
#route-app-root .photo-btn.has-photo{ border-color:var(--green); color:var(--green); }
#route-app-root .ticket .note-display{ background:var(--amber-soft); color:#5C3D05; border-radius:10px; border:none; }
#route-app-root .check-row{ gap:10px; flex-wrap:wrap; }
#route-app-root .check-item{ font-size:15px; color:#41453E; background:#F7F8F6; border:1px solid var(--line); border-radius:12px; padding:10px 12px; min-height:46px; }
#route-app-root .check-item input[type=checkbox]{ width:22px; height:22px; accent-color:var(--accent); }
#route-app-root .type-pickup .check-item input[type=checkbox]{ accent-color:var(--pickup-blue); }
#route-app-root .check-item.checked{ background:var(--green-soft); border-color:#BFE3CD; color:var(--green); }
#route-app-root footer.bar{ background:rgba(255,255,255,.97); border-top:1px solid var(--line); box-shadow:0 -4px 18px rgba(15,31,31,.06); }
#route-app-root footer.bar button{ min-height:54px; font-size:16px; }
#route-app-root .waze-btn{ background:var(--forest-2,#173130); color:#fff; }
#route-app-root .toast{ background:var(--forest,#0F1F1F); color:#fff; border-radius:12px; font-weight:600; }
#route-app-root .route-modal{ background:#fff; border-top:none; border-radius:20px 20px 0 0; box-shadow:var(--shadow-lg); }
#route-app-root .route-modal h2{ font-family:var(--serif); font-weight:600; letter-spacing:0; text-transform:none; color:var(--ink); }
#route-app-root .route-option{ border-radius:14px; }
#route-app-root .route-option-miles{ color:var(--accent-deep); }
#route-app-root .action-sheet-btn{ background:#fff; border:1px solid var(--line); color:var(--ink); }
#route-app-root .dispatcher-tag{ background:var(--accent-soft); color:var(--accent-deep); }
#route-app-root .empty{ color:var(--text-dim); font-size:15px; }
#route-app-root ::-webkit-scrollbar-thumb{ background:var(--line-strong,#CDD5C8); }
@media (max-width:420px){ #route-app-root header.top .title{ font-size:24px; } }


/* ---- card form (Sola iFields) ---- */
.cf-box { display: flex; flex-direction: column; gap: 12px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cf-label { font-size: 12.5px; font-weight: 600; color: #60655C; }
.cf-frame { height: 44px; border: 1px solid #DADFD7; border-radius: 10px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.cf-frame:focus-within { border-color: var(--accent,#4E7A12); box-shadow: 0 0 0 3px rgba(var(--accent-rgb,78,122,18),.15); }
.cf-frame.cf-good { border-color: #2f9e6a; }
.cf-frame.cf-bad { border-color: #c4314b; }
.cf-frame iframe { border: 0; width: 100%; height: 42px; display: block; }
.cf-input { height: 44px; border: 1px solid #DADFD7; border-radius: 10px; padding: 0 12px; font-size: 16px; font-family: inherit; background: #fff; color: #1F1E1D; width: 100%; box-sizing: border-box; }
.cf-input:focus { outline: none; border-color: var(--accent,#4E7A12); box-shadow: 0 0 0 3px rgba(var(--accent-rgb,78,122,18),.15); }
.cf-error { color: #c4314b; font-size: 13px; min-height: 0; }
.cf-error:empty { display: none; }
.cf-secure { font-size: 12px; color: #7a7884; }
@media (max-width: 420px) { .cf-row { gap: 10px; } }

/* ---- v2.2 card payments (Sola) ---- */
.charge-box{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--tint);}
.charge-box.on{background:var(--surface);border-color:var(--accent-line,#C9E09A);box-shadow:0 0 0 3px var(--accent-soft);}
.charge-box .checkbox-row{color:var(--ink);font-size:14px;}
.charge-box .checkbox-row input{width:18px;height:18px;accent-color:var(--accent);}
.cards-box{border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:8px;font-size:13px;}
.card-line{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 0;border-top:1px solid var(--line);}
.pay-ok{display:flex;gap:12px;align-items:flex-start;background:var(--green-soft);border:1px solid #bfe3cf;border-radius:12px;padding:12px 14px;}
.pay-ok-tick{width:34px;height:34px;border-radius:50%;background:var(--green);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:18px;}
.pay-ok-title{font-weight:700;font-size:15px;color:var(--green);margin-bottom:2px;}
.pay-bad{background:var(--rust-soft);border:1px solid #f3c6c1;color:var(--rust);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;font-size:13.5px;}
.switch-row{display:flex;align-items:center;gap:12px;cursor:pointer;font-size:14px;}
.switch-row input{position:absolute;opacity:0;width:1px;height:1px;}
.switch{width:46px;height:26px;border-radius:999px;background:var(--line-strong);position:relative;flex-shrink:0;transition:background .15s;}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .15s;}
.switch-row input:checked + .switch{background:var(--grad);}
.switch-row input:checked + .switch::after{left:23px;}
.switch-row input:focus-visible + .switch{outline:2px solid var(--accent);outline-offset:2px;}

.badge.route-missing{background:var(--amber-soft);color:var(--amber);}

/* ---- v2.2 new stops on the driver's phone ---- */
#route-app-root .new-tag{display:inline-block;background:var(--grad);color:#fff;font-size:11px;font-weight:800;letter-spacing:.8px;padding:2px 8px;border-radius:999px;vertical-align:middle;}
#route-app-root .ticket.is-new{box-shadow:0 0 0 3px rgba(var(--accent-rgb,78,122,18),.35),var(--shadow);}
.route-new-banner{position:fixed;left:50%;top:12px;transform:translate(-50%,-140%);z-index:9999;background:var(--forest,#0F1F1F);color:#fff;border-radius:14px;padding:12px 18px;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;gap:2px;font-size:15px;max-width:calc(100vw - 24px);min-width:240px;transition:transform .25s ease;cursor:pointer;}
.route-new-banner::before{content:"";display:block;height:4px;border-radius:4px;background:var(--grad);margin:-2px 0 6px;}
.route-new-banner.show{transform:translate(-50%,0);}
.route-new-banner b{font-size:16px;}

/* ---- v2.3: order date, delivery/pickup drivers + trips, missing items ---- */
.three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.driver-row{display:flex;gap:6px;}
.driver-row select{flex:1;min-width:0;}
.driver-row select.trip-sel{flex:0 0 96px;}
.ticket-drivers{color:var(--sub);}
.badge.missing-badge{background:var(--rust-soft);color:var(--rust);}
.missing-alert{border:1px solid rgba(190,60,60,.35);background:var(--rust-soft);border-radius:12px;padding:12px 14px;}
.missing-alert .missing-title{font-weight:700;color:var(--rust);font-size:15px;margin-bottom:4px;}
.missing-done{font-size:12.5px;color:var(--sub);border:1px dashed var(--line-strong);border-radius:10px;padding:8px 10px;}
.miss-grid{border:1px solid var(--line);border-radius:12px;overflow:hidden;}
.miss-head,.miss-row{display:grid;grid-template-columns:28px 1.2fr 1.6fr 70px 90px;gap:8px;align-items:center;padding:8px 10px;}
.miss-head{background:var(--tint);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--sub);}
.miss-row{border-top:1px solid var(--line);}
.miss-row input[type=checkbox]{width:20px;height:20px;}
.miss-row select,.miss-row input[type=number]{min-width:0;}
@media (max-width: 760px){
  .three-col{grid-template-columns:1fr;gap:10px;}
  .driver-pick.two-col{flex-direction:column;gap:10px;}
  .miss-head{display:none;}
  .miss-row{grid-template-columns:28px 1fr 1fr;grid-template-areas:"c f f" "c n n" "c q r";}
  .miss-row > :nth-child(1){grid-area:c;align-self:start;margin-top:2px;}
  .miss-row > :nth-child(2){grid-area:f;}
  .miss-row > :nth-child(3){grid-area:n;}
  .miss-row > :nth-child(4){grid-area:q;}
  .miss-row > :nth-child(5){grid-area:r;}
}
/* driver phone: trips + returned counts */
#route-app-root .trip-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:18px 2px 8px;padding:10px 14px;border-radius:12px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);}
#route-app-root .trip-head:first-child{margin-top:4px;}
#route-app-root .trip-head .trip-name{font-family:var(--serif);font-size:19px;font-weight:700;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;}
#route-app-root .trip-head .trip-meta{font-size:12.5px;color:var(--sub);text-align:right;}
#route-app-root .depot-row{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--sub);padding:6px 14px;}
#route-app-root .depot-row .depot-dot{width:12px;height:12px;border-radius:50%;background:var(--ink);flex:0 0 12px;}
#route-app-root .count-box{margin-top:10px;border:2px solid var(--blue);background:var(--blue-soft);border-radius:12px;padding:10px 12px;}
#route-app-root .count-box .count-title{font-weight:800;font-size:13px;letter-spacing:.06em;color:var(--blue);margin-bottom:6px;}
#route-app-root .count-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-top:1px solid rgba(0,0,0,.06);}
#route-app-root .count-row:first-of-type{border-top:0;}
#route-app-root .count-name{font-size:15px;font-weight:600;line-height:1.2;flex:1;min-width:0;}
#route-app-root .count-name small{display:block;font-weight:400;color:var(--sub);font-size:12.5px;}
#route-app-root .stepper{display:flex;align-items:center;gap:6px;flex:0 0 auto;}
#route-app-root .stepper button{width:44px;height:44px;border-radius:12px;border:1px solid var(--line-strong);background:#fff;font-size:24px;font-weight:700;line-height:1;color:var(--ink);cursor:pointer;}
#route-app-root .stepper input{width:58px;height:44px;text-align:center;font-size:20px;font-weight:700;border-radius:10px;}
#route-app-root .count-row.short .count-name{color:var(--rust);}
#route-app-root .count-short{font-size:12.5px;font-weight:700;color:var(--rust);}
.count-modal .count-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid var(--line);}
.count-modal .count-name{font-size:16px;font-weight:600;}
.count-modal .count-name small{display:block;font-weight:400;color:var(--sub);font-size:13px;}
.count-modal .stepper{display:flex;align-items:center;gap:6px;}
.count-modal .stepper button{width:48px;height:48px;border-radius:12px;border:1px solid var(--line-strong);background:#fff;font-size:26px;font-weight:700;color:var(--ink);cursor:pointer;}
.count-modal .stepper input{width:62px;height:48px;text-align:center;font-size:21px;font-weight:700;border-radius:10px;}
.count-modal .count-row.short .count-name{color:var(--rust);}
.count-modal .count-summary{margin-top:10px;font-weight:700;font-size:15px;}
.count-modal .count-summary.ok{color:var(--green);}
.count-modal .count-summary.bad{color:var(--rust);}
#route-app-root .ticket .num small{font-size:10px;opacity:.75;margin-right:1px;}
#route-app-root .trip-move-row{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--sub);flex-wrap:wrap;}
#route-app-root .trip-move-row .trip-btn{flex:1;min-width:70px;}
#route-app-root .trip-move-row .trip-btn.on{background:var(--grad);color:#fff;border-color:transparent;opacity:1;}

/* ===== v2.4 Storage check-in (phone + desktop, big buttons) ===== */
#storage-root{min-height:100vh;background:var(--base);}
.ci-shell{max-width:760px;margin:0 auto;padding:0 0 40px;}
.ci-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5;}
.ci-top::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--grad);}
.ci-brand{display:flex;align-items:center;gap:10px;}
.ci-logo{width:36px;height:36px;border-radius:10px;background:var(--forest,#0F1F1F);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.ci-logo img{width:15px;height:auto;display:block;}
.ci-brand .brand-wordmark{font-size:21px;}
.ci-sub{display:block;font-size:12px;color:var(--sub);font-weight:500;}
.ci-user{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--sub);}
.ci-logout{font:inherit;font-weight:600;border:1px solid var(--line-strong);background:var(--surface);border-radius:10px;padding:9px 14px;cursor:pointer;color:var(--ink);}
.ci-main{padding:22px 18px 0;}
.ci-h1{font-family:var(--serif);font-size:30px;font-weight:600;margin:0 0 4px;}
.ci-lead{margin:0 0 16px;color:var(--sub);font-size:15px;}
.ci-search input{width:100%;font:inherit;font-size:17px;padding:14px 16px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);box-shadow:var(--shadow);}
.ci-search input:focus{outline:2px solid var(--accent);outline-offset:1px;}
.ci-tabs{display:flex;gap:8px;margin:14px 0 12px;}
.ci-tab{flex:1;font:inherit;font-size:15px;font-weight:600;padding:12px 10px;border-radius:12px;border:1px solid var(--line-strong);background:var(--surface);color:var(--sub);cursor:pointer;min-height:48px;}
.ci-tab.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-deep);}
.ci-pill{display:inline-block;min-width:24px;padding:1px 8px;border-radius:999px;background:var(--grad);color:#fff;font-size:13px;margin-left:4px;}
.ci-list{display:flex;flex-direction:column;gap:10px;}
.ci-card{display:flex;align-items:center;gap:12px;width:100%;text-align:left;font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:var(--shadow);cursor:pointer;min-height:84px;}
.ci-card:hover{border-color:var(--line-strong);background:#FDFEFB;}
.ci-card:focus-visible{outline:2px solid var(--accent);outline-offset:1px;}
.ci-card-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.ci-card-cust{font-size:18px;font-weight:700;line-height:1.25;}
.ci-card-meta{font-size:14px;color:#464A44;}
.ci-card-items{font-size:13px;color:var(--sub);}
.ci-card-done{font-size:13px;color:var(--green);font-weight:600;}
.ci-card-done.bad{color:var(--rust);}
.ci-card-go{flex-shrink:0;font-weight:700;font-size:16px;color:#fff;background:var(--grad);padding:13px 16px;border-radius:12px;box-shadow:0 2px 8px rgba(var(--accent-rgb,78,122,18),.25);}
.ci-empty{color:var(--sub);text-align:center;padding:36px 12px;background:var(--surface);border:1px dashed var(--line-strong);border-radius:14px;font-size:15px;}
body.ci-noscroll{overflow:hidden;}
.ci-count-overlay{position:fixed;inset:0;z-index:200;background:rgba(15,31,31,.45);display:flex;justify-content:center;align-items:stretch;}
.ci-count{background:var(--base);width:100%;max-width:640px;display:flex;flex-direction:column;height:100%;box-shadow:var(--shadow-lg);}
@media (min-width:700px){ .ci-count-overlay{align-items:center;padding:24px;} .ci-count{height:auto;max-height:calc(100vh - 48px);border-radius:16px;overflow:hidden;} }
.ci-count-top{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--surface);border-bottom:1px solid var(--line);position:relative;}
.ci-count-top::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--grad);}
.ci-back{font:inherit;font-size:15px;font-weight:600;border:1px solid var(--line-strong);background:var(--surface);border-radius:10px;padding:11px 14px;cursor:pointer;min-height:46px;color:var(--ink);flex-shrink:0;}
.ci-count-cust{font-size:18px;font-weight:700;line-height:1.2;}
.ci-count-meta{font-size:13px;color:var(--sub);}
.ci-count-body{flex:1;overflow-y:auto;padding:16px 14px 12px;-webkit-overflow-scrolling:touch;}
.ci-count-title{font-family:var(--serif);font-size:24px;font-weight:600;}
.ci-count-hint{font-size:14px;color:var(--sub);margin:2px 0 12px;}
.ci-all{width:100%;font:inherit;font-size:17px;font-weight:700;padding:15px;border-radius:12px;border:2px solid var(--green);background:var(--green-soft);color:var(--green);cursor:pointer;min-height:56px;margin-bottom:12px;}
.ci-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:8px;}
.ci-row.done{border-color:rgba(30,122,76,.35);}
.ci-row.short{border-color:rgba(180,35,24,.45);background:#FFF8F7;}
.ci-row-name{font-size:17px;font-weight:600;min-width:0;line-height:1.25;}
.ci-row-name small{display:block;font-size:14px;font-weight:500;color:var(--sub);margin-top:2px;}
.ci-row.short .ci-row-name small b{color:var(--rust);}
.ci-stepper{display:flex;align-items:center;gap:6px;flex-shrink:0;}
.ci-stepper button{width:54px;height:54px;border-radius:12px;border:1px solid var(--line-strong);background:var(--tint);font-size:28px;font-weight:600;line-height:1;cursor:pointer;color:var(--ink);touch-action:manipulation;}
.ci-stepper button:active{background:var(--accent-soft);}
.ci-stepper input{width:70px;height:54px;text-align:center;font:inherit;font-size:24px;font-weight:700;border:2px solid var(--line-strong);border-radius:12px;background:#fff;-moz-appearance:textfield;}
.ci-stepper input::-webkit-outer-spin-button,.ci-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.ci-stepper input::placeholder{color:#C7CCC3;}
.ci-stepper input:focus{outline:none;border-color:var(--accent);}
.ci-count-foot{padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);}
.ci-sum{font-size:15px;font-weight:700;padding:10px 12px;border-radius:10px;margin-bottom:8px;}
.ci-sum.ok{background:var(--green-soft);color:var(--green);}
.ci-sum.bad{background:var(--rust-soft);color:var(--rust);}
.ci-sum.todo{background:var(--amber-soft);color:var(--amber);}
.ci-err{color:var(--rust);font-size:14px;font-weight:600;}
.ci-err:empty{display:none;}
.ci-save{width:100%;font:inherit;font-size:18px;font-weight:700;padding:16px;border-radius:12px;border:0;background:var(--grad);color:#fff;cursor:pointer;min-height:58px;box-shadow:0 2px 10px rgba(var(--accent-rgb,78,122,18),.3);}
.ci-save:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;}
.ci-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);background:var(--forest,#0F1F1F);color:#fff;padding:13px 18px;border-radius:12px;font-weight:600;font-size:15px;opacity:0;pointer-events:none;transition:all .2s;z-index:300;max-width:calc(100vw - 32px);text-align:center;}
.ci-toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
.ci-toast.bad{background:var(--rust);}
@media (max-width:480px){ .ci-user span{display:none;} .ci-h1{font-size:26px;} .ci-card{padding:14px;} .ci-card-go{padding:12px 13px;font-size:15px;} .ci-stepper button{width:50px;height:50px;} .ci-stepper input{width:60px;height:50px;font-size:22px;} .ci-row{padding:10px;} .ci-row-name{font-size:16px;} }
/* office: waiting-for-count pieces */
.badge.waiting-count{background:var(--amber-soft);color:var(--amber);}
.count-wait{border:1px solid rgba(148,96,10,.35);background:var(--amber-soft);border-radius:12px;padding:12px 14px;}
.count-wait .count-wait-title{font-weight:700;color:var(--amber);font-size:15px;margin-bottom:4px;}
.count-done-line{font-size:12.5px;color:var(--green);font-weight:600;}
#route-app-root .pickup-list-ro{margin-top:4px;}
#route-app-root .storage-note{font-size:13px;color:var(--sub,#5E6B66);margin-top:6px;}

/* v2.4 driver: Text customer */
#route-app-root .text-cust-btn{display:block;width:100%;margin-top:10px;font:inherit;font-size:17px;font-weight:700;padding:14px 12px;min-height:54px;border-radius:12px;border:2px solid var(--accent);background:var(--accent-soft);color:var(--accent-deep);cursor:pointer;touch-action:manipulation;}
#route-app-root .text-cust-btn:active{filter:brightness(.95);}
#route-app-root .text-choice{display:block;text-decoration:none;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:12px;padding:14px;margin-bottom:10px;min-height:56px;}
#route-app-root .text-choice b{display:block;font-size:18px;margin-bottom:4px;color:var(--accent-deep);}
#route-app-root .text-choice span{display:block;font-size:14px;color:var(--sub);line-height:1.35;}
