:root {
  --orange: #f4511e;
  --ink: #1c1c1c;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --paper: #f7f7fa;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font: 18px/1.5 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: inherit; }

.bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 8vw;
  background: var(--orange);
  color: #fff;
}

.mark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark span { font-weight: 500; }

.by {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

main { flex: 1; }

.top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 420px);
  gap: 28px;
  align-items: start;
  padding: 72px 8vw 8px;
}

.hero { padding: 0; max-width: none; }

.signin {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.signin h2 { margin: 0 0 6px; }

#sign-in-lead { margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; }

.signin label {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.signin input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
}

.signin button,
.bar .by {
  font: inherit;
}

#email-submit,
#sign-out {
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  padding: 10px 18px;
  font-weight: 650;
  cursor: pointer;
}

#email-submit:disabled { opacity: 0.55; cursor: default; }

#google-btn [role="button"] {
  width: auto !important;
  max-width: 100%;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

#google-btn [role="button"] > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
}

#google-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

#google-btn #button-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.note { margin: 12px 0 0; color: var(--muted); font-size: 0.92rem; }

.status { margin: 0 0 8px; font-size: 0.92rem; }

#who { margin: 0; font-weight: 650; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  margin: 20px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 28px 8vw 72px;
}

.points article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 22px 8px;
}

h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.points p { margin: 0 0 16px; color: var(--muted); }

.fleet { padding: 36px 8vw 72px; }

.customer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 22px 8px;
}

.customer + .customer { margin-top: 18px; }

.customer-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 24px;
}

.place { flex: 1 1 16rem; text-align: left; min-width: 12rem; }

.place .farm-label { white-space: nowrap; }

.place .name-line { justify-content: flex-start; }

.contact { text-align: right; margin-left: auto; max-width: 28rem; }

.contact .name-line { justify-content: flex-end; }

.contact .note { margin: 0 0 6px; }

.name-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}

.name-line h2,
.name-line p { margin: 0; }

.farm-label { color: var(--muted); }

.pencil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--orange);
  cursor: pointer;
  padding: 2px;
}

.pencil svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.name-line input {
  font: inherit;
  font-weight: 650;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 16rem;
  max-width: 100%;
}

.table-wrap { overflow-x: auto; margin: 14px -6px 16px; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

th, td { text-align: left; padding: 10px 12px; white-space: nowrap; }

th { color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

tbody tr { cursor: pointer; border-top: 1px solid var(--line); }

tbody tr:hover, tbody tr:focus { outline: 2px solid var(--orange); outline-offset: -2px; }

.band-green { background: #e5f6ea; }
.band-yellow { background: #fff4cc; }
.band-red { background: #fde8e4; }
.band-grey { background: #ececec; color: #5c5c5c; }

td.days { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

td.order-none { color: #b42318; font-weight: 700; }

td.order-open { color: #1a75d1; font-weight: 700; }

td.order-confirmed { color: #137333; font-weight: 700; }

td.order-locked { color: var(--muted); font-weight: 700; }

td.seen-live { color: #137333; font-weight: 700; }

td.seen-stale { color: #b42318; font-weight: 700; }

.level { display: flex; align-items: center; gap: 8px; min-width: 240px; }

.level-end {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.level-track.level-open { border-style: dashed; }

.level-track {
  position: relative;
  flex: 1;
  min-width: 150px;
  height: 36px;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  overflow: hidden;
}

.level-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #ffd3c4;
}

.level-now {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  pointer-events: none;
}

.flags { white-space: nowrap; }

.flag {
  display: inline-block;
  margin: 0 6px 0 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d0d0d0;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

td.level-cell { white-space: nowrap; }

.bin-page { padding: 48px 8vw 72px; }

.bin-page h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }

.bin-block { margin: 28px 0 8px; }

.bin-block h2 { font-size: 1.15rem; }

.bin-note { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; }

tr.day-delivery { background: #fff1ec; }

tr.day-delivery td:first-child { box-shadow: inset 3px 0 0 var(--orange); }

.bin-page td:last-child { white-space: normal; min-width: 9rem; }

.chart { width: 100%; height: auto; display: block; }

.chart-grid { stroke: #eee; }

.chart-axis { stroke: #c8c8c8; }

.chart-fit { fill: none; stroke: var(--orange); stroke-width: 2; }

.chart-dot { fill: var(--ink); }

.chart-dot-delivery { fill: var(--orange); }

.chart-cap { fill: none; stroke: #8a8a8a; stroke-dasharray: 5 4; }

.chart text { font-size: 12px; fill: var(--muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

.stat .k {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat .v { margin: 2px 0 0; font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere; }

.stat .d { margin: 2px 0 0; color: var(--muted); font-size: 0.85rem; }

.stat.acc-excellent .v, .stat.acc-good .v { color: #137333; }

.stat.acc-standard .v { color: #9a6700; }
.stat.acc-estimate .v { color: #b42318; }
.stat.acc-uneven .v { color: #b42318; }

.stat.acc-locked .v { color: var(--muted); }

footer {
  padding: 18px 8vw 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer p { margin: 0; }

@media (max-width: 860px) {
  .top { grid-template-columns: 1fr; padding-top: 40px; }
  .points { grid-template-columns: 1fr; }
}

.level-fill.p0 { width: 0%; }
.level-fill.p1 { width: 1%; }
.level-fill.p2 { width: 2%; }
.level-fill.p3 { width: 3%; }
.level-fill.p4 { width: 4%; }
.level-fill.p5 { width: 5%; }
.level-fill.p6 { width: 6%; }
.level-fill.p7 { width: 7%; }
.level-fill.p8 { width: 8%; }
.level-fill.p9 { width: 9%; }
.level-fill.p10 { width: 10%; }
.level-fill.p11 { width: 11%; }
.level-fill.p12 { width: 12%; }
.level-fill.p13 { width: 13%; }
.level-fill.p14 { width: 14%; }
.level-fill.p15 { width: 15%; }
.level-fill.p16 { width: 16%; }
.level-fill.p17 { width: 17%; }
.level-fill.p18 { width: 18%; }
.level-fill.p19 { width: 19%; }
.level-fill.p20 { width: 20%; }
.level-fill.p21 { width: 21%; }
.level-fill.p22 { width: 22%; }
.level-fill.p23 { width: 23%; }
.level-fill.p24 { width: 24%; }
.level-fill.p25 { width: 25%; }
.level-fill.p26 { width: 26%; }
.level-fill.p27 { width: 27%; }
.level-fill.p28 { width: 28%; }
.level-fill.p29 { width: 29%; }
.level-fill.p30 { width: 30%; }
.level-fill.p31 { width: 31%; }
.level-fill.p32 { width: 32%; }
.level-fill.p33 { width: 33%; }
.level-fill.p34 { width: 34%; }
.level-fill.p35 { width: 35%; }
.level-fill.p36 { width: 36%; }
.level-fill.p37 { width: 37%; }
.level-fill.p38 { width: 38%; }
.level-fill.p39 { width: 39%; }
.level-fill.p40 { width: 40%; }
.level-fill.p41 { width: 41%; }
.level-fill.p42 { width: 42%; }
.level-fill.p43 { width: 43%; }
.level-fill.p44 { width: 44%; }
.level-fill.p45 { width: 45%; }
.level-fill.p46 { width: 46%; }
.level-fill.p47 { width: 47%; }
.level-fill.p48 { width: 48%; }
.level-fill.p49 { width: 49%; }
.level-fill.p50 { width: 50%; }
.level-fill.p51 { width: 51%; }
.level-fill.p52 { width: 52%; }
.level-fill.p53 { width: 53%; }
.level-fill.p54 { width: 54%; }
.level-fill.p55 { width: 55%; }
.level-fill.p56 { width: 56%; }
.level-fill.p57 { width: 57%; }
.level-fill.p58 { width: 58%; }
.level-fill.p59 { width: 59%; }
.level-fill.p60 { width: 60%; }
.level-fill.p61 { width: 61%; }
.level-fill.p62 { width: 62%; }
.level-fill.p63 { width: 63%; }
.level-fill.p64 { width: 64%; }
.level-fill.p65 { width: 65%; }
.level-fill.p66 { width: 66%; }
.level-fill.p67 { width: 67%; }
.level-fill.p68 { width: 68%; }
.level-fill.p69 { width: 69%; }
.level-fill.p70 { width: 70%; }
.level-fill.p71 { width: 71%; }
.level-fill.p72 { width: 72%; }
.level-fill.p73 { width: 73%; }
.level-fill.p74 { width: 74%; }
.level-fill.p75 { width: 75%; }
.level-fill.p76 { width: 76%; }
.level-fill.p77 { width: 77%; }
.level-fill.p78 { width: 78%; }
.level-fill.p79 { width: 79%; }
.level-fill.p80 { width: 80%; }
.level-fill.p81 { width: 81%; }
.level-fill.p82 { width: 82%; }
.level-fill.p83 { width: 83%; }
.level-fill.p84 { width: 84%; }
.level-fill.p85 { width: 85%; }
.level-fill.p86 { width: 86%; }
.level-fill.p87 { width: 87%; }
.level-fill.p88 { width: 88%; }
.level-fill.p89 { width: 89%; }
.level-fill.p90 { width: 90%; }
.level-fill.p91 { width: 91%; }
.level-fill.p92 { width: 92%; }
.level-fill.p93 { width: 93%; }
.level-fill.p94 { width: 94%; }
.level-fill.p95 { width: 95%; }
.level-fill.p96 { width: 96%; }
.level-fill.p97 { width: 97%; }
.level-fill.p98 { width: 98%; }
.level-fill.p99 { width: 99%; }
.level-fill.p100 { width: 100%; }

/* The admin console (2026-10-17): admin.html and the settings panel on bin.html */
.admin-page h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 12px; }
.customer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.plan-pick { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.plan-pick .note { margin: 0; }
.settings-group { margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid #e4e4e4; }
.settings-group h3 { margin: 0 0 8px; font-size: 1.02rem; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 18px; }
.setting { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.setting-label { color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.setting input[type="text"], .setting input[type="number"], .setting select, .setting textarea {
  font: inherit; padding: 7px 9px; border: 1px solid #c9c9c9; border-radius: 6px; background: #fff; width: 100%;
}
.setting input[type="checkbox"] { width: 18px; height: 18px; }
.setting .note { margin: 0; font-size: 0.8rem; }
.settings-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.settings-actions button, .people .linkish {
  font: inherit; padding: 7px 14px; border: 1px solid #1a75d1; border-radius: 6px; background: #1a75d1; color: #fff; cursor: pointer;
}
.settings-actions button:disabled { opacity: 0.6; cursor: default; }
.people { list-style: none; padding: 0; margin: 0 0 12px; }
.people li { padding: 6px 0; }
.people .linkish { padding: 3px 9px; font-size: 0.8rem; background: #fff; color: #b42318; border-color: #b42318; }
td.event-data { white-space: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; }

/* The feed-company portal and the map (2026-10-17): supplier.html, map.js,
   orders.js, suppliers.js; the map on admin.html and bin.html */
.map { height: 60vh; min-height: 320px; border: 1px solid var(--line); border-radius: 12px; background: #e9e9e9; }
.map.map-small { height: 40vh; min-height: 260px; }
.map-unplaced { margin: 10px 0 0; }
.leaflet-container { font: inherit; font-size: 0.9rem; }
.bin-pin { position: absolute; background: none; border: 0; }
.bin-pin .bin-card { display: block; position: relative; width: 100%; height: 100%; }
.bin-pin .bin-stand { display: block; position: absolute; inset: 0; }
.bin-pin.mode-full .bin-stand { bottom: 14px; }
.bin-pin.mode-full.pin-lg .bin-stand { bottom: 16px; }
.bin-pin.mode-full.pin-sm .bin-stand { bottom: 12px; }
.bin-pin .bin-glyph { display: block; position: absolute; inset: 0; }
/* 0.58 matches the silo width in map.js measure(). A long name widens the card, not the bin. */
.bin-pin.mode-full .bin-glyph {
  position: relative; inset: auto; height: 100%; width: auto; aspect-ratio: 0.58; margin: 0 auto;
}
.bin-pin .bin-body { display: block; position: absolute; inset: 0; }
.bin-pin .bin-body.silo {
  background: #8a8a8a;
  clip-path: polygon(18% 0, 82% 0, 82% 4%, 100% 9%, 100% 64%, 74% 100%, 26% 100%, 0 64%, 0 9%, 18% 4%);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.bin-pin .bin-well {
  display: block; position: absolute; inset: 0; overflow: hidden; background: #fff; box-sizing: border-box;
}
.bin-pin .bin-body.silo .bin-well { inset: 3px; }
/* Bar markers are only a few pixels wide. A normal percentage width on the
   body was resolving far too wide and spilling over the map, so the body is
   not a box and the well takes its size from the pin. */
.bin-pin.mode-bar { container-type: size; }
.bin-pin.mode-bar .bin-body { display: contents; }
.bin-pin.mode-bar .bin-well {
  top: 0; right: auto; bottom: auto; left: 0;
  width: 100cqw; height: 100cqh; box-sizing: border-box;
  border: 2px solid #8a8a8a;
  border-radius: 5px 5px 2px 2px;
}
.bin-pin .level-fill { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 0; background: #ffd3c4; }
.bin-pin .level-fill.p0 { height: 0%; }
.bin-pin .level-fill.p1 { height: 1%; }
.bin-pin .level-fill.p2 { height: 2%; }
.bin-pin .level-fill.p3 { height: 3%; }
.bin-pin .level-fill.p4 { height: 4%; }
.bin-pin .level-fill.p5 { height: 5%; }
.bin-pin .level-fill.p6 { height: 6%; }
.bin-pin .level-fill.p7 { height: 7%; }
.bin-pin .level-fill.p8 { height: 8%; }
.bin-pin .level-fill.p9 { height: 9%; }
.bin-pin .level-fill.p10 { height: 10%; }
.bin-pin .level-fill.p11 { height: 11%; }
.bin-pin .level-fill.p12 { height: 12%; }
.bin-pin .level-fill.p13 { height: 13%; }
.bin-pin .level-fill.p14 { height: 14%; }
.bin-pin .level-fill.p15 { height: 15%; }
.bin-pin .level-fill.p16 { height: 16%; }
.bin-pin .level-fill.p17 { height: 17%; }
.bin-pin .level-fill.p18 { height: 18%; }
.bin-pin .level-fill.p19 { height: 19%; }
.bin-pin .level-fill.p20 { height: 20%; }
.bin-pin .level-fill.p21 { height: 21%; }
.bin-pin .level-fill.p22 { height: 22%; }
.bin-pin .level-fill.p23 { height: 23%; }
.bin-pin .level-fill.p24 { height: 24%; }
.bin-pin .level-fill.p25 { height: 25%; }
.bin-pin .level-fill.p26 { height: 26%; }
.bin-pin .level-fill.p27 { height: 27%; }
.bin-pin .level-fill.p28 { height: 28%; }
.bin-pin .level-fill.p29 { height: 29%; }
.bin-pin .level-fill.p30 { height: 30%; }
.bin-pin .level-fill.p31 { height: 31%; }
.bin-pin .level-fill.p32 { height: 32%; }
.bin-pin .level-fill.p33 { height: 33%; }
.bin-pin .level-fill.p34 { height: 34%; }
.bin-pin .level-fill.p35 { height: 35%; }
.bin-pin .level-fill.p36 { height: 36%; }
.bin-pin .level-fill.p37 { height: 37%; }
.bin-pin .level-fill.p38 { height: 38%; }
.bin-pin .level-fill.p39 { height: 39%; }
.bin-pin .level-fill.p40 { height: 40%; }
.bin-pin .level-fill.p41 { height: 41%; }
.bin-pin .level-fill.p42 { height: 42%; }
.bin-pin .level-fill.p43 { height: 43%; }
.bin-pin .level-fill.p44 { height: 44%; }
.bin-pin .level-fill.p45 { height: 45%; }
.bin-pin .level-fill.p46 { height: 46%; }
.bin-pin .level-fill.p47 { height: 47%; }
.bin-pin .level-fill.p48 { height: 48%; }
.bin-pin .level-fill.p49 { height: 49%; }
.bin-pin .level-fill.p50 { height: 50%; }
.bin-pin .level-fill.p51 { height: 51%; }
.bin-pin .level-fill.p52 { height: 52%; }
.bin-pin .level-fill.p53 { height: 53%; }
.bin-pin .level-fill.p54 { height: 54%; }
.bin-pin .level-fill.p55 { height: 55%; }
.bin-pin .level-fill.p56 { height: 56%; }
.bin-pin .level-fill.p57 { height: 57%; }
.bin-pin .level-fill.p58 { height: 58%; }
.bin-pin .level-fill.p59 { height: 59%; }
.bin-pin .level-fill.p60 { height: 60%; }
.bin-pin .level-fill.p61 { height: 61%; }
.bin-pin .level-fill.p62 { height: 62%; }
.bin-pin .level-fill.p63 { height: 63%; }
.bin-pin .level-fill.p64 { height: 64%; }
.bin-pin .level-fill.p65 { height: 65%; }
.bin-pin .level-fill.p66 { height: 66%; }
.bin-pin .level-fill.p67 { height: 67%; }
.bin-pin .level-fill.p68 { height: 68%; }
.bin-pin .level-fill.p69 { height: 69%; }
.bin-pin .level-fill.p70 { height: 70%; }
.bin-pin .level-fill.p71 { height: 71%; }
.bin-pin .level-fill.p72 { height: 72%; }
.bin-pin .level-fill.p73 { height: 73%; }
.bin-pin .level-fill.p74 { height: 74%; }
.bin-pin .level-fill.p75 { height: 75%; }
.bin-pin .level-fill.p76 { height: 76%; }
.bin-pin .level-fill.p77 { height: 77%; }
.bin-pin .level-fill.p78 { height: 78%; }
.bin-pin .level-fill.p79 { height: 79%; }
.bin-pin .level-fill.p80 { height: 80%; }
.bin-pin .level-fill.p81 { height: 81%; }
.bin-pin .level-fill.p82 { height: 82%; }
.bin-pin .level-fill.p83 { height: 83%; }
.bin-pin .level-fill.p84 { height: 84%; }
.bin-pin .level-fill.p85 { height: 85%; }
.bin-pin .level-fill.p86 { height: 86%; }
.bin-pin .level-fill.p87 { height: 87%; }
.bin-pin .level-fill.p88 { height: 88%; }
.bin-pin .level-fill.p89 { height: 89%; }
.bin-pin .level-fill.p90 { height: 90%; }
.bin-pin .level-fill.p91 { height: 91%; }
.bin-pin .level-fill.p92 { height: 92%; }
.bin-pin .level-fill.p93 { height: 93%; }
.bin-pin .level-fill.p94 { height: 94%; }
.bin-pin .level-fill.p95 { height: 95%; }
.bin-pin .level-fill.p96 { height: 96%; }
.bin-pin .level-fill.p97 { height: 97%; }
.bin-pin .level-fill.p98 { height: 98%; }
.bin-pin .level-fill.p99 { height: 99%; }
.bin-pin .level-fill.p100 { height: 100%; }
.bin-pin .level-now {
  font-weight: 800; white-space: nowrap; line-height: 1;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff;
}
.bin-pin.pin-lg .level-now { font-size: 12px; }
.bin-pin.pin-md .level-now { font-size: 11px; }
.bin-pin.pin-sm .level-now { font-size: 9px; }
.bin-pin.band-green .bin-body.silo { background: #137333; }
.bin-pin.band-green .level-fill { background: #b7e3c3; }
.bin-pin.band-green .bin-body.bar .bin-well { border-color: #137333; }
.bin-pin.band-yellow .bin-body.silo { background: #b58900; }
.bin-pin.band-yellow .level-fill { background: #ffe08a; }
.bin-pin.band-yellow .bin-body.bar .bin-well { border-color: #b58900; }
.bin-pin.band-red .bin-body.silo { background: #b42318; }
.bin-pin.band-red .level-fill { background: #f7b1a6; }
.bin-pin.band-red .bin-body.bar .bin-well { border-color: #b42318; }
.bin-pin.band-grey .bin-body.silo { background: #8a8a8a; }
.bin-pin.band-grey .level-fill { background: #d9d9d9; }
.bin-pin.band-grey .bin-body.bar .bin-well { border-color: #8a8a8a; }
.bin-pin.band-none .level-fill { background: #ffd3c4; }
.pin-dot { display: block; width: 100%; height: 100%; box-sizing: border-box; border-radius: 50%; border: 2px solid #fff; background: #c4c4c4; box-shadow: 0 1px 2px rgba(0,0,0,.45); }
.bin-pin.band-green .pin-dot { background: #137333; }
.bin-pin.band-yellow .pin-dot { background: #b58900; }
.bin-pin.band-red .pin-dot { background: #b42318; }
.bin-pin.band-grey .pin-dot { background: #8a8a8a; }
.pin-mark { position: absolute; top: -8px; right: -10px; width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.95rem; line-height: 1; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); z-index: 1; }
.bin-pin.pin-sm .pin-mark { width: 16px; height: 16px; font-size: 0.75rem; top: -6px; right: -7px; }
.pin-urgent { background: #b42318; }
.pin-ordered { background: #137333; }
.pin-ordered svg { width: 14px; height: 14px; fill: #fff; }
.bin-pin.pin-sm .pin-ordered svg { width: 10px; height: 10px; }
/* A zoomed-out yard is one pin of bars side by side. Each bar keeps its own
   band. The well is inset into the bar, not sized with container query units. */
.bin-pin.mode-yard .yard-row { display: flex; height: 100%; gap: 3px; align-items: stretch; }
.bin-pin.mode-yard .yard-bar { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; }
.bin-pin.mode-yard .yard-bar .bin-well {
  inset: 0; border: 2px solid #8a8a8a; border-radius: 4px 4px 2px 2px;
}
.bin-pin.mode-yard .yard-bar.band-green .bin-well { border-color: #137333; }
.bin-pin.mode-yard .yard-bar.band-green .level-fill { background: #b7e3c3; }
.bin-pin.mode-yard .yard-bar.band-yellow .bin-well { border-color: #b58900; }
.bin-pin.mode-yard .yard-bar.band-yellow .level-fill { background: #ffe08a; }
.bin-pin.mode-yard .yard-bar.band-red .bin-well { border-color: #b42318; }
.bin-pin.mode-yard .yard-bar.band-red .level-fill { background: #f7b1a6; }
.bin-pin.mode-yard .yard-bar.band-grey .bin-well { border-color: #8a8a8a; }
.bin-pin.mode-yard .yard-bar.band-grey .level-fill { background: #d9d9d9; }
.bin-pin.mode-yard .yard-bar.band-none .level-fill { background: #ffd3c4; }
.bin-pin.mode-yard .yard-bar > .pin-mark {
  top: -6px; right: auto; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; font-size: 0.7rem;
}
.bin-pin.mode-yard .yard-bar > .pin-ordered svg { width: 9px; height: 9px; }
.pin-name { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; line-height: 14px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; color: var(--ink); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.bin-pin.pin-lg .pin-name { height: 16px; line-height: 16px; font-size: 12px; }
.bin-pin.pin-sm .pin-name { height: 12px; line-height: 12px; font-size: 9px; }
.map-popup strong { display: block; margin-bottom: 2px; }
.map-popup p { margin: 2px 0; font-size: 0.85rem; }
.map-popup .pop-urgent { color: #b42318; font-weight: 700; }
.map-popup .pop-ordered { color: #137333; font-weight: 700; }
.map-popup a { display: inline-block; margin-top: 6px; color: var(--orange); font-weight: 700; }
td.delivery-due { color: #137333; font-weight: 700; }
td.delivery-urgent { color: #b42318; font-weight: 800; }
td.delivery-none, td.delivery-unknown { color: var(--muted); }
p.delivery-urgent { color: #b42318; font-weight: 700; }
p.delivery-due { color: #137333; font-weight: 700; }
td.order-done { color: var(--muted); }
.portal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.portal-head h1, .admin-page .portal-head h1 { margin: 0; text-align: left; }
.company-logo { display: block; height: 56px; width: auto; max-width: 220px; margin-left: auto; object-fit: contain; flex: 0 0 auto; }
.account-banner { width: fit-content; max-width: 100%; margin: 0 auto 16px; padding: 6px 16px; border-radius: 999px; font-weight: 700; text-align: center; }
.account-banner.account-free { background: #f4f4f4; color: var(--ink); }
.account-banner.account-trial { background: #fff6df; color: #7a5b00; border: 1px solid #e6d39a; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.board-col { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 8rem; }
.board-col h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 1rem; }
.board-count { color: var(--muted); font-weight: 650; font-size: 0.85rem; }
.board-empty { margin: 0; color: var(--muted); font-size: 0.9rem; }
.board-card { display: block; width: 100%; margin: 0 0 8px; padding: 10px 12px; text-align: left; background: #f7f7fa; border: 1px solid var(--line); border-radius: 10px; }
button.board-card { font: inherit; color: inherit; cursor: pointer; }
button.board-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.board-card.weight-red { background: #fdecea; border-color: #b42318; }
.board-card.weight-blue { background: #e8f1fb; border-color: #1a56a8; }
.board-card.weight-green { background: #e7f6ec; border-color: #137333; }
.board-owner, .board-bin { display: block; }
.board-owner { font-weight: 700; font-size: 0.95rem; }
.board-bin { font-size: 0.92rem; }
.board-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; margin-top: 6px; font-size: 0.82rem; color: var(--muted); }
.board-facts b { color: var(--ink); font-weight: 700; }
.board-day { display: flex; flex-direction: column; gap: 2px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.board-day input { font: inherit; font-size: 0.85rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.board-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.board-actions button, .board-dialog button { font: inherit; font-size: 0.82rem; padding: 4px 10px; border: 1px solid #1a75d1; border-radius: 6px; background: #1a75d1; color: #fff; cursor: pointer; }
.board-actions button:disabled, .board-dialog button:disabled { opacity: 0.6; cursor: default; }
.board-actions .danger, .board-dialog .danger { background: #fff; color: #b42318; border-color: #b42318; }
.board-actions .status { margin: 0; font-size: 0.8rem; }
.board-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; max-width: 26rem; background: #fff; color: var(--ink); }
.board-dialog::backdrop { background: rgba(28, 28, 28, 0.45); }
.board-dialog h2 { margin: 0 0 8px; }
.board-dialog label { display: block; margin: 10px 0; font-size: 0.78rem; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.board-dialog input { display: block; width: 100%; margin-top: 4px; font: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
@media (max-width: 1100px) {
  .board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .board { grid-template-columns: 1fr; }
}
.logo-preview { display: block; height: 48px; width: auto; max-width: 200px; margin-top: 6px; object-fit: contain; }
.company-account { margin: 10px 0 4px; }
.plan-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; border: 1px solid #d0d0d0; background: #fff; white-space: nowrap; }
.plan-badge.plan-free { color: var(--muted); }
.plan-badge.plan-pro { color: #137333; border-color: #137333; }
.suppliers { margin: 8px 0 14px; padding: 14px 0 0; border-top: 1px solid #e4e4e4; }
.suppliers h2 { font-size: 1.02rem; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 10px 0 12px; }
.form-row label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.form-row input, .form-row select { font: inherit; padding: 7px 9px; border: 1px solid #c9c9c9; border-radius: 6px; background: #fff; min-width: 14rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); }
.form-row button, .accept button, .order-card button { font: inherit; padding: 7px 14px; border: 1px solid #1a75d1; border-radius: 6px; background: #1a75d1; color: #fff; cursor: pointer; }
.form-row button:disabled, .accept button:disabled, .order-card button:disabled { opacity: 0.6; cursor: default; }
.form-row .status, .order-card .status { font-size: 0.9rem; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.order-card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.order-card p { margin: 4px 0; }
.order-card .actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 10px; }
.order-card .actions label { font-size: 0.85rem; color: var(--muted); }
.order-card .actions input[type="date"] { font: inherit; padding: 6px 8px; border: 1px solid #c9c9c9; border-radius: 6px; margin-left: 6px; }
.order-card .danger { background: #fff; color: #b42318; border-color: #b42318; }
#bin-orders h3 { margin: 18px 0 6px; font-size: 1.02rem; }
tr.order-history { cursor: default; }
.accept { max-width: 480px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.accept h2 { margin-top: 0; }
.accept label { display: block; margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.accept input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); }
.accept button { margin-top: 14px; }
@media (max-width: 860px) {
  .map { height: 50vh; }
  .form-row input, .form-row select { min-width: 0; width: 100%; }
}

/* The privacy page (2026-10-23): a column of text in the fleet padding. */
.legal { max-width: 44rem; }
.legal h2 { margin: 36px 0 8px; font-size: 1.25rem; }
.legal p, .legal li { margin: 0 0 14px; }
.legal ul { padding-left: 1.2em; }
