/* Blue Crates · Warehouse — colors from the Blue Crates logo */
:root {
  --brand: #0590b5;
  --brand-600: #047c9c;
  --brand-700: #006e82;
  --brand-50: #e7f6fa;
  --brand-100: #c9edf6;
  --ink: #0f2430;
  --ink-2: #33495a;
  --muted: #637887;
  --line: #dde6ec;
  --line-2: #eef3f6;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --danger: #c2410c;
  --danger-bg: #fff1e8;
  --red: #b91c1c;
  --red-bg: #fde8e8;
  --green: #15803d;
  --green-bg: #e3f6e9;
  --amber: #a15c00;
  --amber-bg: #fff3d6;
  --blue: #1d4ed8;
  --blue-bg: #e5edff;
  --gray-bg: #edf1f4;
  /* Direction of items */
  --out: #b45309;
  --out-bg: #fff1dc;
  --in: #0e7490;
  --in-bg: #d9f5fb;
  --sup: #4b5563;
  --sup-bg: #eceff3;
  --xfer: #6d28d9;
  --xfer-bg: #efe9ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 36, 48, 0.06), 0 4px 16px rgba(15, 36, 48, 0.06);
  --shadow-lg: 0 10px 40px rgba(15, 36, 48, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { opacity: 0.6; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Buttons & fields ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: 14px;
  line-height: 1.2; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--line-2); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-600); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-bg); border-color: #f5c2c2; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.icon { padding: 7px; }
.btn svg { width: 16px; height: 16px; flex: none; }

label.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); min-width: 0; }
label.field > span.hint { font-weight: 400; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm);
  padding: 8px 10px; font-size: 15px; font-weight: 400; color: var(--ink); min-height: 38px;
}
textarea.input { min-height: 72px; resize: vertical; }
.input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--brand-100); outline-offset: 0; border-color: var(--brand); }
.input[readonly] { background: var(--line-2); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 20px; padding: 0 20px; height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 22px; width: auto; display: block; }
.brand .app-name {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-700);
  background: var(--brand-50); padding: 3px 8px; border-radius: 999px;
}
.tabs { display: flex; gap: 4px; height: 100%; }
.tabs a {
  display: flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--ink-2); font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent; text-decoration: none;
}
.tabs a svg { width: 17px; height: 17px; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--brand-700); border-bottom-color: var(--brand); }
.topbar .spacer { flex: 1; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.live.off i { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
.usermenu { position: relative; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); cursor: pointer;
}
.avatar.partner { background: var(--xfer-bg); color: var(--xfer); border-color: #ddd0ff; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 240px; padding: 6px; z-index: 40;
}
.menu .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.menu .who b { display: block; }
.menu .who small { color: var(--muted); }
.menu button, .menu a {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border: 0; background: none;
  border-radius: var(--radius-sm); cursor: pointer; text-align: left; font-size: 14px; color: var(--ink);
}
.menu button:hover, .menu a:hover { background: var(--line-2); text-decoration: none; }
.menu svg { width: 16px; height: 16px; color: var(--muted); }

/* ── Page ────────────────────────────────────────────────── */
.page { max-width: 1240px; margin: 0 auto; padding: 24px 20px 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 26px; letter-spacing: -0.01em; }
.page-head .sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--line-2); border-radius: var(--radius-sm); padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  text-align: left; cursor: default; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
button.kpi { cursor: pointer; }
button.kpi:hover { border-color: var(--brand-100); background: #fbfeff; }
.kpi.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.kpi .n { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi.warn .n { color: var(--amber); }
.kpi.bad .n { color: var(--red); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 240px; min-width: 200px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search .input { padding-left: 34px; }
.filters select.input { width: auto; flex: 0 1 200px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700); font-size: 13px; font-weight: 600; border: 0; cursor: pointer;
}
.chip svg { width: 14px; height: 14px; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 12px;
  font-weight: 700; white-space: nowrap; line-height: 1.6;
}
.badge svg { width: 12px; height: 12px; }
.dir-out { --c: var(--out); --cb: var(--out-bg); }
.dir-in { --c: var(--in); --cb: var(--in-bg); }
.dir-supplies { --c: var(--sup); --cb: var(--sup-bg); }
.dir-transfer { --c: var(--xfer); --cb: var(--xfer-bg); }
.dir-bulk { --c: #0f766e; --cb: #d5f5ee; }
.badge.dir { color: var(--c); background: var(--cb); }
.st { background: var(--gray-bg); color: var(--ink-2); }
.st-good { background: var(--green-bg); color: var(--green); }
.st-blue { background: var(--blue-bg); color: var(--blue); }
.st-warn { background: var(--amber-bg); color: var(--amber); }
.st-bad { background: var(--red-bg); color: var(--red); }
.org-schlep { background: var(--xfer-bg); color: var(--xfer); }
.org-bc { background: var(--brand-50); color: var(--brand-700); }

/* ── Schedule list ───────────────────────────────────────── */
.group { margin-bottom: 22px; }
.group-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.group-head h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-2); }
.group-head .count { font-size: 12px; color: var(--muted); font-weight: 600; }
.group.alert .group-head h2 { color: var(--red); }
.jobs { display: flex; flex-direction: column; gap: 8px; }
.job {
  position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) 310px auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 12px 18px; cursor: pointer;
}
.job::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.job:hover { border-color: #c5d4dd; box-shadow: var(--shadow); }
.job.done { opacity: 0.72; }
.job-when .d { font-weight: 700; font-size: 14px; }
.job-when .t { color: var(--muted); font-size: 13px; }
.job-when .rel { display: inline-block; font-size: 11px; font-weight: 700; color: var(--brand-700); text-transform: uppercase; letter-spacing: 0.05em; }
.job-when .rel.late { color: var(--red); }
.job-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-title .name { font-weight: 700; font-size: 15px; }
.job-meta { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; gap: 6px 12px; flex-wrap: wrap; }
.job-meta span { display: inline-flex; align-items: center; gap: 4px; }
.job-meta svg { width: 13px; height: 13px; flex: none; }
.job-items { font-size: 13px; color: var(--ink-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.job-status { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 6px 8px; align-items: center; font-size: 11.5px; line-height: 1.2; color: var(--muted); font-weight: 600; }
.job-status > span { text-align: right; }
.job-status select { min-height: 30px; padding: 4px 8px; font-size: 13px; font-weight: 600; border-radius: 6px; }
select.st-sel.st-good { color: var(--green); background-color: var(--green-bg); border-color: #bfe6cb; }
select.st-sel.st-blue { color: var(--blue); background-color: var(--blue-bg); border-color: #c9d6fb; }
select.st-sel.st-warn { color: var(--amber); background-color: var(--amber-bg); border-color: #f3dca5; }
select.st-sel.st-bad { color: var(--red); background-color: var(--red-bg); border-color: #f5c2c2; }
.job-actions { display: flex; gap: 2px; }
.job-actions a, .job-actions .off { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.job-actions a:hover { background: var(--line-2); color: var(--brand-700); text-decoration: none; }
.job-actions .off { color: #b9c6cf; cursor: pointer; }
.job-actions .off:hover { color: var(--muted); background: var(--line-2); }
.job-actions svg { width: 17px; height: 17px; }
/* Hover labels: who the icon reaches, and on what number / email / address */
.tip {
  position: absolute; bottom: calc(100% + 8px); right: -4px; z-index: 30;
  width: max-content; max-width: 280px; padding: 7px 10px; border-radius: 8px;
  background: var(--ink); color: #dfe8ee; font-size: 12px; font-weight: 500; line-height: 1.4; text-align: left;
  box-shadow: var(--shadow-lg); pointer-events: none; cursor: default;
  opacity: 0; visibility: hidden; transform: translateY(3px); transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}
.tip b { display: block; color: #fff; font-weight: 700; font-size: 12.5px; }
.tip::after { content: ""; position: absolute; top: 100%; right: 14px; border: 5px solid transparent; border-top-color: var(--ink); }
@media (hover: hover) {
  .job-actions a:hover .tip, .job-actions .off:hover .tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0.1s; }
}
.job-actions a:focus-visible .tip { opacity: 1; visibility: visible; transform: none; }
.flag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--red); }
.flag svg { width: 13px; height: 13px; }
.empty {
  text-align: center; padding: 48px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.more { display: flex; justify-content: center; margin-top: 4px; }

/* ── Week view ───────────────────────────────────────────── */
.weeknav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.weeknav h3 { font-size: 16px; min-width: 200px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 180px; display: flex; flex-direction: column; }
.day.today { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.day.past { background: #fafcfd; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.day-head b { font-size: 13px; }
.day-head span { font-size: 12px; color: var(--muted); font-weight: 600; }
.day-body { padding: 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.day-add { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 6px; cursor: pointer; border-radius: 6px; margin-top: auto; }
.day-add:hover { background: var(--line-2); color: var(--brand-700); }
.mini {
  position: relative; border-radius: 8px; padding: 6px 8px 6px 10px; background: var(--cb); cursor: pointer; font-size: 12px;
  border: 1px solid transparent;
}
.mini:hover { border-color: var(--c); }
.mini::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.mini b { display: block; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .tt { color: var(--ink-2); }
.mini .ss { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; }

/* ── Inventory ───────────────────────────────────────────── */
.inv-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.inv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.inv-head h2 { font-size: 16px; }
.inv-head .totals { font-size: 13px; color: var(--muted); font-weight: 600; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700;
  padding: 8px 12px; background: #fafcfd; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
table.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tbody tr { cursor: pointer; }
table.grid tbody tr:hover td { background: #f8fbfd; }
table.grid td.num, table.grid th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid td.name { font-weight: 600; }
.meter { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.meter .bar { flex: 1; height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.meter.warn .bar i { background: #e19a1b; }
.meter.over .bar i { background: var(--red); }
.meter span { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }
.meter.over span { color: var(--red); }
.yes { color: var(--green); font-weight: 700; }
.nextjob { font-size: 13px; }

/* ── Activity ────────────────────────────────────────────── */
.feed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feed-day { padding: 10px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); background: #fafcfd; border-bottom: 1px solid var(--line-2); }
.act { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); align-items: start; }
.act:last-child { border-bottom: 0; }
.act .avatar { width: 30px; height: 30px; font-size: 11px; cursor: default; }
.act .what { font-size: 14px; }
.act .what a { font-weight: 600; cursor: pointer; }
.act .changes { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.act .changes li { margin-top: 2px; }
.act .changes s { color: var(--muted); }
.act time { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ── Cards (team, settings) ─────────────────────────────── */
.cards { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card h2 { font-size: 16px; margin-bottom: 4px; }
.card > p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.row { display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); margin-bottom: 10px; }
.linkbox { display: flex; gap: 8px; margin-top: 12px; padding: 12px; background: var(--brand-50); border-radius: var(--radius-sm); align-items: center; flex-wrap: wrap; }
.linkbox code { flex: 1; min-width: 0; word-break: break-all; font-size: 12px; color: var(--brand-700); }
.people td .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.people tbody tr { cursor: default; }
.people select.input { min-height: 32px; padding: 4px 8px; font-size: 13px; width: auto; }

/* ── Drawer ──────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(15, 36, 48, 0.32); z-index: 50; animation: fade 0.15s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); background: var(--surface); z-index: 51;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide 0.18s ease;
}
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; }
.drawer-head .sub { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px 24px; }
.drawer-foot { display: flex; gap: 8px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); background: #fbfcfd; flex-wrap: wrap; }
.drawer-foot .spacer { flex: 1; }
.section { padding: 16px 0 6px; border-bottom: 1px solid var(--line-2); }
.section:last-child { border-bottom: 0; }
.section > h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notice { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; margin-top: 14px; background: var(--amber-bg); color: var(--amber); font-weight: 600; }
.notice.info { background: var(--brand-50); color: var(--brand-700); }
.contact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; background: #fafcfd; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; }
.contact div { display: flex; gap: 8px; align-items: center; }
.contact svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.stat { background: #fafcfd; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px; }
.stat b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) 60px 70px 140px 32px; gap: 6px; align-items: center; }
.item .input { min-height: 34px; padding: 5px 8px; font-size: 14px; }
.item-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.linked { display: flex; flex-direction: column; gap: 6px; }
.linked label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; }
.linked label:hover { background: #fafcfd; }
.mini-jobs { display: flex; flex-direction: column; gap: 6px; }
.mini-job { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; }
.mini-job:hover { background: #fafcfd; }
.history { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.history li { padding: 8px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.history li:last-child { border-bottom: 0; }
.history time { color: var(--muted); font-size: 12px; }

/* ── Auth screens ────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #e9f7fb 0%, var(--bg) 50%); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.auth-card .logo { height: 26px; margin-bottom: 18px; }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card .btn.primary { padding: 11px; font-size: 15px; margin-top: 4px; }
.auth-card .foot { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.err { color: var(--red); font-size: 13px; font-weight: 600; min-height: 1em; }

/* ── Toasts & popover ───────────────────────────────────── */
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 80; width: min(460px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 11px 14px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-lg); animation: up 0.2s ease; display: flex; gap: 10px; align-items: flex-start; }
.toast.err { background: var(--red); }
.toast small { display: block; color: #b8c7d1; font-size: 12px; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.pop { position: relative; display: inline-block; }
.pop .menu { bottom: calc(100% + 8px); top: auto; right: auto; left: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .job { grid-template-columns: 110px minmax(0, 1fr) 290px; }
  .job-actions { grid-column: 2 / 4; justify-content: flex-start; margin-top: -6px; }
  .job-actions .tip { right: auto; left: -4px; }
  .job-actions .tip::after { right: auto; left: 14px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .week { grid-template-columns: 1fr; }
  .day { min-height: 0; }
  .day-body { padding: 8px; }
  .hide-md { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .topbar { padding: 0 16px; gap: 10px; height: 56px; }
  .brand img { height: 18px; }
  .brand .app-name { display: none; }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line); justify-content: space-around; gap: 0; z-index: 30;
  }
  .tabs a { flex-direction: column; justify-content: center; gap: 3px; font-size: 11px; border-bottom: 0; border-top: 2px solid transparent; flex: 1; padding: 0; }
  .tabs a.active { border-top-color: var(--brand); }
  .tabs a svg { width: 20px; height: 20px; }
  .page { padding: 16px 16px 110px; }
  .page-head h1 { font-size: 22px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn.primary { flex: 1; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 10px 12px; }
  .kpi .n { font-size: 22px; }
  .filters select.input { flex: 1 1 140px; }
  .job { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 12px 12px 16px; }
  .job-when { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .job-status { grid-template-columns: 92px 1fr; }
  .job-status > span { text-align: left; }
  .job-actions { grid-column: auto; margin-top: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 1fr; }
  .row.keep { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
  .item { grid-template-columns: minmax(0, 1fr) 54px 32px; }
  .item .opt { display: none; }
  .item-head .opt { display: none; }
  table.grid.stack thead { display: none; }
  table.grid.stack, table.grid.stack tbody, table.grid.stack tr, table.grid.stack td { display: block; width: 100%; }
  table.grid.stack tr { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
  table.grid.stack td { border: 0; padding: 2px 0; text-align: left !important; }
  table.grid.stack td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: 12px; font-weight: 600; }
  table.grid.stack td.name { font-size: 15px; }
  .drawer-head { padding: 14px 16px 12px; }
  .drawer-body { padding: 0 16px 24px; }
  .drawer-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .live span { display: none; }
}

/* ── Warehouse statuses (customer comes to the warehouse, no Schlep) ── */
.st-wh { background: var(--xfer-bg); color: var(--xfer); }
select.st-sel.st-wh { color: var(--xfer); background-color: var(--xfer-bg); border-color: #ddd0ff; }

/* ── Job editor: Delivery segment ── */
.segment { border: 1px solid var(--brand-100); background: #f6fbfd; border-radius: var(--radius); padding: 2px 14px 4px; margin: 16px 0 4px; }
.segment-head { display: flex; align-items: center; gap: 7px; padding: 10px 0 2px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-700); }
.segment-head svg { width: 15px; height: 15px; }
.segment .section:last-child { border-bottom: 0; }
.segment .input { background: var(--surface); }

/* ── Inventory: section pages, sorting, upcoming ── */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.crumbs svg { width: 14px; height: 14px; }
.inv-title { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; padding: 4px 8px; margin: -4px -8px; border-radius: 8px; }
.inv-title:hover { background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
.inv-title svg { width: 16px; height: 16px; color: var(--muted); transition: transform 0.12s ease; }
.inv-title:hover svg { color: var(--brand-700); transform: translateX(2px); }
.inv-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
table.grid th.sortable { cursor: pointer; user-select: none; }
table.grid th.sortable:hover { color: var(--ink); }
table.grid th.sortable.on { color: var(--brand-700); }
table.grid th .arr { display: inline-block; width: 10px; margin-left: 3px; }
.upcoming { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; color: inherit; cursor: pointer; }
.upcoming:hover { text-decoration: none; }
.upcoming:hover .nowrap { text-decoration: underline; }
.late { color: var(--red) !important; font-weight: 600; }
.mobile-only { display: none !important; }

/* ── Warehouse desk ── */
.seg.big { display: flex; width: 100%; margin-bottom: 16px; padding: 4px; }
.seg.big button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 12px; font-size: 14px; }
.seg.big button svg { width: 16px; height: 16px; }
.seg.big button.on:first-child { color: var(--in); }
.seg.big button.on:last-child { color: var(--out); }
.stepn { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-size: 12px; font-weight: 800; margin-right: 8px; vertical-align: 2px; }
.desk .card h2 { margin-bottom: 12px; }
.desk-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 80px 150px 34px; gap: 6px; align-items: center; margin-bottom: 6px; }
.desk-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.btn.big { width: 100%; padding: 12px; font-size: 15px; }
.mini-job.on { border-color: var(--brand); background: var(--brand-50); }

@media (max-width: 760px) {
  .mobile-only { display: block !important; }
  .inv-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .desk-row { grid-template-columns: minmax(0, 1fr) 56px 34px; }
  .desk-row [name=itemCuft], .desk-row [name=itemLocation] { grid-column: span 1; }
  .desk-row [name=itemLocation] { grid-column: 1 / 3; }
  .desk-head { display: none; }
  .seg.big button { font-size: 13px; padding: 10px 6px; }
}

/* ── Warehouse location: front and centre ── */
.loc-panel {
  display: flex; gap: 14px; align-items: center; margin: 16px 0 4px; padding: 14px 16px;
  border-radius: var(--radius); background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%); color: #fff;
  box-shadow: 0 6px 18px rgba(0, 110, 130, 0.25);
}
.loc-panel.empty { background: var(--amber-bg); color: var(--amber); box-shadow: none; border: 2px dashed #efc76b; }
.loc-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); }
.loc-panel.empty .loc-icon { background: #fde5ad; }
.loc-icon svg { width: 26px; height: 26px; }
.loc-main { flex: 1; min-width: 0; }
.loc-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-bottom: 2px; }
.loc-input, .loc-value {
  width: 100%; border: 0; background: transparent; color: inherit; font-size: 26px; font-weight: 800; letter-spacing: -0.01em;
  padding: 2px 0; border-bottom: 2px solid rgba(255, 255, 255, 0.35); border-radius: 0; line-height: 1.2;
}
.loc-input::placeholder { color: inherit; opacity: 0.6; font-weight: 700; font-size: 18px; }
.loc-input:focus { outline: none; border-bottom-color: #fff; }
.loc-panel.empty .loc-input { border-bottom-color: #efc76b; }
.loc-panel.empty .loc-input:focus { border-bottom-color: var(--amber); }
.loc-value { border-bottom: 0; }
.loc-sub { margin-top: 6px; font-size: 13px; font-weight: 600; opacity: 0.9; }
.loc-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  background: var(--brand-700); color: #fff; white-space: nowrap;
}
.loc-chip svg { width: 12px; height: 12px; }
.loc-chip.none { background: var(--amber-bg); color: var(--amber); font-weight: 700; }
.drawer-head .sub .loc-chip { font-size: 13px; padding: 3px 10px; }

/* ── Upcoming delivery: impossible to miss ── */
.up-panel {
  position: relative; margin: 16px 0 4px; padding: 14px 16px 14px 20px; border-radius: var(--radius); cursor: pointer;
  background: var(--cb); border: 2px solid var(--c); box-shadow: 0 6px 18px rgba(15, 36, 48, 0.08);
}
.up-panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; border-radius: 10px 0 0 10px; background: var(--c); }
.up-panel:hover { box-shadow: 0 8px 24px rgba(15, 36, 48, 0.14); }
.up-panel.is-late { --c: var(--red); --cb: var(--red-bg); }
.up-tag { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); }
.up-tag svg { width: 15px; height: 15px; }
.up-open { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.up-open svg { width: 14px; height: 14px; }
.up-when { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin: 4px 0 8px; line-height: 1.2; }
.up-when span { display: inline-block; margin-left: 10px; font-size: 17px; font-weight: 700; color: var(--ink-2); }
.up-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.up-meta .badge.dir { background: var(--surface); }
.up-items { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.up-items svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; color: var(--muted); }
.up-more { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--c); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.up-more a { cursor: pointer; }
/* Lists: customers with an open job get an accent */
table.grid tr.has-job td.name { box-shadow: inset 4px 0 0 var(--out); }
table.grid tr.has-job td { background: #fffbf3; }
table.grid tr.has-job:hover td { background: #fff5e3; }
.seg.big button { flex-direction: column; gap: 3px; }
.seg.big .seg-title { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.seg.big .seg-desc { font-size: 12px; font-weight: 500; color: var(--muted); }

/* ── Dwelle: community vaults + bulk deliveries ── */
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 16px; overflow-x: auto; }
.subtabs a { padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.subtabs a:hover { color: var(--ink); text-decoration: none; }
.subtabs a.on { color: var(--brand-700); border-bottom-color: var(--brand); }
.bld-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #d5f5ee; color: #0f766e; white-space: nowrap; }
.bld-chip svg { width: 12px; height: 12px; }
.bulk-card {
  position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; align-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px 20px;
}
.bulk-card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 5px; border-radius: 0 4px 4px 0; background: #0f766e; }
.bulk-card:hover { border-color: #b7e4da; box-shadow: var(--shadow); }
.bulk-card.done { opacity: 0.72; }
.bulk-date { display: flex; flex-direction: column; gap: 1px; }
.bulk-date b { font-size: 17px; }
.bulk-date span { color: var(--muted); font-size: 13px; }
.bulk-date .rel { font-size: 11px; font-weight: 800; color: var(--brand-700); text-transform: uppercase; letter-spacing: 0.05em; }
.bulk-date .rel.late { color: var(--red); }
.bulk-title { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.bulk-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.bulk-stats span { display: inline-flex; align-items: center; gap: 4px; }
.bulk-stats svg { width: 14px; height: 14px; }
.bulk-stats .out svg { color: var(--out); }
.bulk-stats .in svg { color: var(--in); }
.bulk-names { margin-top: 4px; font-size: 13px; color: var(--muted); }
.bulk-status { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.bld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.bld-card h2 { display: flex; align-items: center; gap: 6px; font-size: 16px; margin-bottom: 10px; }
.bld-card h2 svg { width: 16px; height: 16px; color: #0f766e; }
select.sm-sel { min-height: 30px; padding: 3px 8px; font-size: 13px; width: auto; max-width: 180px; }
select.sm-sel.unset { border-color: #efc76b; background: var(--amber-bg); color: var(--amber); font-weight: 600; }
.bld-picks { display: flex; flex-direction: column; gap: 6px; }
.bld-pick { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.bld-pick span { display: flex; flex-direction: column; }
.bld-pick small { color: var(--muted); font-size: 12px; }
.stop-add { display: flex; gap: 8px; }
.stop-add select { flex: 1; }
#stops { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.stop { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stop.missed { opacity: 0.55; }
.stop.is-done { border-color: #bfe6cb; }
.stop-head { display: grid; grid-template-columns: minmax(0, 1fr) 120px 34px; gap: 8px; align-items: center; padding: 10px 12px; background: #fafcfd; border-bottom: 1px solid var(--line-2); }
.stop-contact { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stop-status { min-height: 32px; padding: 4px 8px; font-size: 13px; font-weight: 600; }
.stop-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.stop-col { padding: 10px 12px; }
.stop-col + .stop-col { border-left: 1px solid var(--line-2); }
.stop-col h4 { display: flex; align-items: center; gap: 5px; margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.stop-col h4 svg { width: 14px; height: 14px; }
.stop-col.out h4 { color: var(--out); }
.stop-col.in h4 { color: var(--in); }
.stop-col .linked { margin-bottom: 8px; }
.stop-col .linked label { padding: 6px 8px; font-size: 13px; }
.stop-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 6px; }
.stop-row .input { min-height: 34px; padding: 5px 8px; font-size: 14px; }
@media (max-width: 760px) {
  .bulk-card { grid-template-columns: 1fr; gap: 8px; }
  .bulk-status { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .stop-body { grid-template-columns: 1fr; }
  .stop-col + .stop-col { border-left: 0; border-top: 1px solid var(--line-2); }
  .bld-grid { grid-template-columns: 1fr; }
}
.seg.when-seg { display: flex; width: 100%; margin-bottom: 14px; padding: 4px; }
.seg.when-seg button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 10px; }
.seg.when-seg .seg-title { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.seg.when-seg .seg-title svg { width: 15px; height: 15px; }
.seg.when-seg .seg-desc { font-size: 12px; font-weight: 500; color: var(--muted); }
.seg.when-seg button.on .seg-title { color: var(--brand-700); }
select.loc-select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; }
.loc-panel.empty select.loc-select { font-size: 18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a15c00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
select.loc-select option, select.loc-select optgroup { color: var(--ink); font-size: 15px; font-weight: 500; }
.at-wh { color: var(--xfer) !important; font-weight: 700; }

/* ── Notifications ── */
.conn { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.conn svg { width: 22px; height: 22px; flex: none; }
.conn b { display: block; }
.conn span { font-size: 13px; }
.conn.ok { background: var(--green-bg); color: var(--green); }
.conn.off { background: var(--amber-bg); color: var(--amber); }
.switches { display: flex; flex-direction: column; gap: 8px; }
.switch-row, .rule { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.switch-row b, .rule b { display: block; font-size: 14px; }
.switch-row small, .rule small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.rule { padding: 6px 0; }
.rule input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
input.switch { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 23px; border-radius: 999px; background: #c9d5dd; position: relative; cursor: pointer; transition: background 0.15s; margin-top: 1px; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: left 0.15s; }
input.switch:checked { background: var(--green); }
input.switch:checked::after { left: 20px; }
.mini-h { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 14px 0 4px; }
.steps { margin: 14px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.steps li { margin-bottom: 6px; }
.steps code { background: var(--line-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.mail-list { display: flex; flex-direction: column; gap: 6px; }
.mail-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 11px; cursor: pointer; font: inherit; color: inherit; }
.mail-row:hover { background: #fafcfd; border-color: var(--line); }
.mail-main { min-width: 0; }
.mail-main b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-main small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mail-frame { width: 100%; height: calc(100vh - 170px); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f4f7f9; }
@media (max-width: 760px) { .mail-row { grid-template-columns: minmax(0, 1fr); } }
