/* Schlösser Umzüge CRM – Farben und Schrift wie schloesser-umzuege.de (Blau #0066CC, Orange #FF6600, Inter). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --blue: #0066CC; --blue-dark: #004C99; --blue-light: #338AE6; --blue-tint: #E8F1FB;
  --orange: #FF6600; --orange-dark: #CC5200; --orange-tint: #FFF0E6;
  --text: #1a1a1a; --text-2: #4a4a4a; --text-3: #6a6a6a;
  --bg: #f5f7fa; --surface: #fff; --line: #dee2e6; --line-2: #e9ecef;
  --red: #C62828; --red-tint: #FDECEC; --amber: #9A5B00; --amber-tint: #FFF4E0; --green: #1E7B34; --green-tint: #E7F5EA;
  --radius: 10px; --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,.08); --shadow-lg: 0 10px 30px rgba(0,0,0,.16);
  --tabbar-h: 64px; --header-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 18px; height: 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Grundgerüst ---------- */
.app { display: grid; grid-template-rows: auto auto 1fr; min-height: 100dvh; }
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); font-weight: 900; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; margin-top: -2px; }
.header .grow { flex: 1; }
.search { position: relative; flex: 1; max-width: 360px; }
.search input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 21px; padding: 0 14px 0 40px; background: var(--bg); }
.search svg { position: absolute; left: 12px; top: 10px; color: var(--text-3); }
.search-results { position: absolute; top: 48px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 60vh; overflow: auto; }
.demo-bar { background: var(--orange-tint); color: var(--orange-dark); border-bottom: 1px solid #FFD2B3; font-size: 13px; font-weight: 600; padding: 7px 16px; text-align: center; }

.layout { display: grid; grid-template-columns: 1fr; min-height: 0; }
.nav { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); text-decoration: none; font-size: 11.5px; font-weight: 600; position: relative; }
.nav a.on { color: var(--blue); }
.nav a.on::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
.nav .badge { position: absolute; top: 7px; left: calc(50% + 6px); }
.main { padding: 16px 16px calc(var(--tabbar-h) + var(--safe-b) + 24px); min-width: 0; }

@media (min-width: 960px) {
  .layout { grid-template-columns: 220px 1fr; }
  .nav { position: sticky; top: var(--header-h); height: calc(100dvh - var(--header-h)); display: flex; flex-direction: column; gap: 2px; padding: 16px 10px;
    border-top: 0; border-right: 1px solid var(--line); }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 15px; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--text-2); }
  .nav a:hover { background: var(--bg); }
  .nav a.on { background: var(--blue-tint); }
  .nav a.on::before { display: none; }
  .nav .badge { position: static; margin-left: auto; }
  .main { padding: 24px 28px 40px; }
}

/* ---------- Bausteine ---------- */
h1.page { font-size: 26px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.page-sub { color: var(--text-3); font-size: 14px; margin-top: 2px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
h2.sec { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 24px 0 10px; display: flex; align-items: center; gap: 8px; }
h2.sec .count { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 2px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:active, .btn-primary:hover { background: var(--orange-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--line); }
.btn-danger { background: #fff; color: var(--red); border-color: #F3C2C2; }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: 14px; }
.btn-icon { width: 48px; padding: 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-block { width: 100%; }
.header .btn-primary span { display: none; }
@media (min-width: 560px) { .header .btn-primary span { display: inline; } }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--line-2); color: var(--text-2); }
.chip.red { background: var(--red-tint); color: var(--red); }
.chip.amber { background: var(--amber-tint); color: var(--amber); }
.chip.blue { background: var(--blue-tint); color: var(--blue-dark); }
.chip.orange { background: var(--orange-tint); color: var(--orange-dark); }
.chip.green { background: var(--green-tint); color: var(--green); }
.chip.demo { background: #fff; color: var(--orange-dark); border: 1px dashed var(--orange); height: 20px; font-size: 11px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.empty { color: var(--text-3); padding: 18px; text-align: center; font-size: 14px; }
.muted { color: var(--text-3); }
.row-list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-2); text-decoration: none; color: inherit; min-height: 64px; cursor: pointer; }
.row:first-child { border-top: 0; }
.row:hover { background: #fafbfc; }
.row .main-col { flex: 1; min-width: 0; }
.row .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { font-size: 13.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }

/* Kennzahlen auf "Heute" */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: inherit; display: block; }
.stat .n { font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.stat .l { font-size: 13px; font-weight: 600; color: var(--text-3); margin-top: 6px; }
.stat.red .n { color: var(--red); } .stat.orange .n { color: var(--orange); } .stat.blue .n { color: var(--blue); }
.stat.zero .n { color: var(--line); }
.two-col { display: grid; gap: 0 24px; }
@media (min-width: 1100px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- Pipeline ---------- */
.stage-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 4px; scrollbar-width: none; }
.stage-tabs::-webkit-scrollbar { display: none; }
.stage-tabs button { flex: none; height: 38px; padding: 0 12px; border-radius: 19px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.stage-tabs button b { color: var(--blue); margin-left: 4px; }
@media (min-width: 960px) { .stage-tabs { display: none; } }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: 86vw; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 0 16px 12px; align-items: start; overscroll-behavior-x: contain; }
@media (min-width: 640px) { .board { grid-auto-columns: 300px; } }
@media (min-width: 960px) { .board { margin: 0 -28px; padding: 0 28px 16px; grid-auto-columns: 288px; scroll-snap-type: none; } }
.col { scroll-snap-align: start; background: #EDF0F4; border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100dvh - 210px); min-height: min(420px, calc(100dvh - 300px)); }
.col-head { padding: 12px 12px 8px; display: flex; align-items: baseline; gap: 8px; }
.col-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex: none; align-self: center; }
.col-head h3 { font-size: 15px; font-weight: 800; }
.col-head .cnt { font-size: 13px; color: var(--text-3); font-weight: 700; }
.col-head .sum { margin-left: auto; font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.col-body { padding: 0 8px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 60px; flex: 1; }
.col.drop-on { outline: 2px dashed var(--blue); outline-offset: -2px; background: var(--blue-tint); }
.col[data-stage=neu] .dot { background: var(--orange); }
.col[data-stage=gewonnen] .dot, .col[data-stage=durchfuehrung] .dot { background: var(--green); }
.col[data-stage=abschluss] .dot { background: var(--text-3); }

.card { background: #fff; border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 11px 12px; cursor: grab;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; border-left: 4px solid transparent; }
.card.overdue { border-left-color: var(--red); }
.card.stale { border-left-color: #E0A030; }
.card .t { font-weight: 800; font-size: 15px; line-height: 1.25; }
.card .m { font-size: 13px; color: var(--text-2); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.card .r { font-size: 13px; color: var(--text-3); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.card .amt { font-weight: 800; color: var(--text); }
.card.ghost { position: fixed; z-index: 200; pointer-events: none; box-shadow: var(--shadow-lg); transform: rotate(1.5deg); opacity: .95; }
.card.placeholder { background: transparent; border: 2px dashed var(--blue-light); box-shadow: none; }
.card.placeholder > * { visibility: hidden; }
body.dragging, body.dragging * { cursor: grabbing !important; }

/* ---------- Sheet (Detail / Formulare) ---------- */
.sheet-back { position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 100; }
.sheet { position: fixed; z-index: 101; inset: 0; background: var(--bg); display: flex; flex-direction: column; }
@media (min-width: 960px) { .sheet { left: auto; width: 600px; box-shadow: var(--shadow-lg); } }
.sheet-head { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 10px; min-height: 64px; }
.sheet-head h2 { font-size: 19px; font-weight: 900; flex: 1; min-width: 0; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.sheet-head .sub { font-size: 13px; color: var(--text-3); font-weight: 500; }
.sheet-body { flex: 1; overflow-y: auto; padding: 16px 16px 120px; -webkit-overflow-scrolling: touch; }
.sheet-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.sheet-foot .btn { flex: 1; }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.quick a, .quick button { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12.5px; font-weight: 700;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--blue); text-decoration: none; cursor: pointer; }
.quick .off { color: var(--line); pointer-events: none; }

.stepper { position: relative; display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper button { flex: none; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 22px; font-size: 13.5px; font-weight: 700; color: var(--text-3); cursor: pointer; }
.stepper button.done { color: var(--blue); border-color: #BFD7F2; background: var(--blue-tint); }
.stepper button.on { background: var(--blue); color: #fff; border-color: var(--blue); }

.fs { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.fs h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--text-3); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid #CED4DA; border-radius: var(--radius-sm); padding: 10px 12px; background: #fff; font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.seg { display: flex; border: 1px solid #CED4DA; border-radius: var(--radius-sm); overflow: hidden; min-height: 48px; }
.seg button { flex: 1; border: 0; background: #fff; font-weight: 700; font-size: 14px; color: var(--text-2); cursor: pointer; }
.seg button + button { border-left: 1px solid #CED4DA; }
.seg button.on { background: var(--blue); color: #fff; }
.quickdates { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.quickdates button { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; color: var(--blue); cursor: pointer; }

.timeline { display: flex; flex-direction: column; }
.tl { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.tl:first-child { border-top: 0; }
.tl .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.tl .ic svg { width: 16px; height: 16px; }
.tl.system .ic, .tl.edit .ic { background: var(--line-2); color: var(--text-3); }
.tl.stage .ic { background: var(--green-tint); color: var(--green); }
.tl.material .ic { background: var(--orange-tint); color: var(--orange-dark); }
.tl .tx { white-space: pre-wrap; font-size: 14.5px; overflow-wrap: anywhere; }
.tl .when { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---------- Baustellen / Karte / Route ---------- */
.tabs { display: inline-flex; background: #E3E8EE; border-radius: 10px; padding: 3px; gap: 2px; }
.tabs button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; font-weight: 700; font-size: 14px; color: var(--text-2); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.job { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px; border-top: 1px solid var(--line-2); cursor: pointer; }
.job:first-child { border-top: 0; }
.job .date { text-align: center; border-radius: 8px; background: var(--blue-tint); color: var(--blue-dark); padding: 6px 0; align-self: start; }
.job .date b { display: block; font-size: 22px; font-weight: 900; line-height: 1.05; }
.job .date span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; }
.job .date.today { background: var(--orange); color: #fff; }
.job .date.none { background: var(--line-2); color: var(--text-3); }
.job .t { font-weight: 800; }
.job .s { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.job .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.map { height: calc(100dvh - 260px); min-height: 340px; border-radius: var(--radius); border: 1px solid var(--line); background: #e9eef3; z-index: 0; }
.route-layout { display: grid; gap: 14px; }
@media (min-width: 1100px) { .route-layout { grid-template-columns: 380px 1fr; } .route-layout .map { height: calc(100dvh - 200px); } }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-2); min-height: 60px; cursor: pointer; }
.check:first-child { border-top: 0; }
.check input { width: 24px; height: 24px; accent-color: var(--blue); flex: none; }
.stop { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line-2); }
.stop .num { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--blue); }
.stop .num.nach { background: var(--orange); }
.stop .num.lager { background: var(--text); }
.stop .leg { font-size: 12.5px; color: var(--text-3); }
.route-sum { display: flex; gap: 16px; padding: 12px 14px; font-weight: 800; font-size: 18px; border-bottom: 1px solid var(--line-2); }
.route-sum span { font-size: 12px; color: var(--text-3); font-weight: 600; display: block; }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--blue); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
.pin b { transform: rotate(45deg); color: #fff; font-size: 12px; font-weight: 800; }
.pin.nach { background: var(--orange); }
.pin.lager { background: var(--text); border-radius: 6px; transform: none; }
.pin.lager b { transform: none; }
.leaflet-container { font-family: inherit; }
.leaflet-popup-content { font-size: 14px; margin: 12px 14px; }
.leaflet-popup-content b { display: block; margin-bottom: 2px; }

/* ---------- Material ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--red-tint); color: var(--red); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.alert.amber { background: var(--amber-tint); color: var(--amber); }
.filter { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 4px; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.filter button.on { background: var(--text); color: #fff; border-color: var(--text); }
.item .qty { font-size: 24px; font-weight: 900; line-height: 1; text-align: right; }
.item .qty small { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); margin-top: 3px; }
.item.low .qty { color: var(--red); }
.locs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.qtybox { display: grid; grid-template-columns: 64px 1fr 64px; gap: 8px; }
.qtybox button { min-height: 56px; border-radius: var(--radius-sm); border: 1px solid #CED4DA; background: #fff; font-size: 26px; font-weight: 700; color: var(--blue); cursor: pointer; }
.qtybox input { text-align: center; font-size: 24px !important; font-weight: 800; min-height: 56px !important; }

/* ---------- Toast / Login ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); transform: translateX(-50%); z-index: 300; background: var(--text); color: #fff;
  padding: 12px 18px; border-radius: 24px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
.toast.err { background: var(--red); }
@media (min-width: 960px) { .toast { bottom: 24px; } }

.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--blue); }
.login { width: 100%; max-width: 400px; background: #fff; border-radius: 14px; padding: 28px 24px; box-shadow: var(--shadow-lg); }
.login .brand { margin-bottom: 22px; font-size: 22px; }
.login .brand-mark { width: 44px; height: 44px; }
.login h1 { font-size: 15px; font-weight: 600; color: var(--text-3); margin-bottom: 18px; }
.login .err { color: var(--red); font-size: 14px; font-weight: 600; min-height: 20px; margin-bottom: 8px; }
.login-foot { color: rgba(255,255,255,.8); font-size: 12.5px; text-align: center; margin-top: 16px; }
@media (max-width: 520px) { .brand-text { display: none; } .header { gap: 10px; padding: 0 12px; } }
.toast[hidden], .search-results[hidden] { display: none; }
.route-layout { grid-template-columns: minmax(0, 1fr); }
.route-layout > * { min-width: 0; }
@media (min-width: 1100px) { .route-layout { grid-template-columns: 380px minmax(0, 1fr); } }
.locs .chip { white-space: normal; height: auto; min-height: 24px; padding-top: 3px; padding-bottom: 3px; line-height: 1.25; }
.item .qty { flex: none; max-width: 42%; }
.two-col { grid-template-columns: minmax(0, 1fr); }
.two-col > * { min-width: 0; }
@media (min-width: 1100px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .row .end .chip { font-size: 11.5px; padding: 0 7px; } }
@media (max-width: 640px) {
  .row[data-deal] { flex-wrap: wrap; row-gap: 6px; }
  .row[data-deal] .main-col { flex-basis: 100%; }
  .row[data-deal] .end { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
@media (max-width: 640px) { .row[data-deal] .end { flex-basis: 100%; min-width: 0; } }
.main { overflow-x: clip; }
