* { box-sizing: border-box; }
:root {}
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 17px; }
button, select, input, textarea { font: inherit; color: inherit; }

.masthead {
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 12px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.masthead img { width: 52px; height: 52px; object-fit: contain; }
.masthead h1 {
  color: #fff;
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.04em;
  font-weight: 800;
}
.masthead .sub {
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.banner-note {
  background: #3a2208;
  color: var(--gold);
  font-size: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid #5a3a10;
}

.wrap { padding: 12px 12px 96px; max-width: 720px; margin: 0 auto; }
.wrap.wide { max-width: 1100px; }

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
label.tiny { display: block; margin: 10px 0 6px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
p.tiny { font-size: 13px; color: var(--muted); }

select.attestor, select.filter {
  flex: 1;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--panel);
  color: var(--ink);
}

.job {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin: 0 0 10px;
}
.job.other { border-color: var(--gold); }
.job h2 { margin: 0 0 4px; font-size: 18px; }

.day-calendar-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 12px 8px 8px 18px;
  margin: 0 0 8px;
}

.day-calendar-grid {
  position: relative;
  height: var(--day-height, 1020px);
  border-radius: 6px;
}

.day-track {
  position: relative;
  height: var(--day-height, 1020px);
  margin-left: 54px;
}

.day-hour-line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--line);
  z-index: 1;
}

.day-hour-label {
  position: absolute;
  left: -56px;
  top: -9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.day-event {
  position: absolute;
  border: 1px solid var(--line);
  border-left: 6px solid var(--text);
  border-radius: 8px;
  background: var(--pale);
  color: var(--ink);
  padding: 8px 8px;
  text-align: left;
  min-height: 44px;
  overflow: hidden;
  box-sizing: border-box;
}

.day-event:active { opacity: 0.95; }

.day-event .day-time {
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.day-event .day-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.day-event .day-chip {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
}

.day-event .chip-row { margin-top: 4px; }

.day-event.type-production { border-left-color: var(--text); }
.day-event.type-service { border-left-color: #58c7d0; }
.day-event.type-pickup { border-left-color: var(--gold); }
.day-event.type-dump { border-left-color: #ff9f2f; }
.day-event.type-other { border-left-color: #9aa39d; }

.day-chip.type-production { color: var(--text); border-color: var(--line); }
.day-chip.type-service { color: #58c7d0; border-color: #2f6672; }
.day-chip.type-pickup { color: #f4c74d; border-color: #6a4a18; }
.day-chip.type-dump { color: #ff9f2f; border-color: #7c4f1c; }
.day-chip.type-other { color: #9aa39d; border-color: #445044; }

.day-event .day-chip,
.day-event .day-chip:hover {
  cursor: default;
}

.meta { color: var(--muted); font-size: 17px; line-height: 1.35; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eceee9;
  border: 1px solid #6d7268;
  color: #1a1a1a;
}
.chip.on, .chip.dirt, .chip.on-clock { background: #e5f3d4; border-color: #2f6b22; color: #145214; }
.chip.needs, .chip.pending, .chip.lunch, .chip.gold { background: #fff4d6; border-color: #8a6a20; color: #6a4a00; }
.chip.problem, .chip.bad { background: #fde8e4; border-color: #8a1f14; color: #8a1f14; }
.chip.hollow { background: transparent; border-style: dashed; color: var(--muted); }
.chip.lunch { background: #3a2a10; border-color: #6a4a18; color: var(--gold); }
.chip.bad { background: #3a1410; border-color: #6a2a22; color: #f0b4ad; }
.chip.loan { background: #102030; border-color: #2a4a68; color: #68a8d8; }
.chip.gold { color: var(--gold); border-color: #6a4a18; }
.chip.pending { background: #3a2a10; border-color: #8a6a20; color: var(--gold); }

.run-card .run-stop,
.run-card .run-stop strong,
.run-card .run-stop .meta {
  color: #fff;
}
.run-card .run-stop {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  margin-top: 10px;
  padding: 12px;
  min-height: 56px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0d100e;
  color: #fff;
  cursor: pointer;
}
.run-pending {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #8a6a20;
  border-radius: var(--radius);
  background: #1a1408;
}
.run-unread {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.btn {
  min-height: 56px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  padding: 0 16px;
  cursor: pointer;
  font-size: 17px;
}
.btn.primary { background: #C5E017; color: #000; width: 100%; margin-top: 10px; min-height: 56px; }
.btn.ghost, .btn.secondary { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.btn.warn { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: #b42318; color: #fff; }
.btn.green { background: var(--lime); color: #101312; }
.btn.rain { background: #C5E017; color: #000; border: 1px solid #C5E017; }
.punch-alert { background: #000; color: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.punch-alert strong { color: #fff; }
.btn.save-wide { width: 100%; min-height: 56px; }
.btn.hit-48 { min-height: 48px; }

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(8,10,9,0.72);
  z-index: 40;
  display: none;
  align-items: flex-end;
}
.sheet.open { display: flex; }
.sheet .panel {
  background: var(--panel);
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  border-top: 3px solid var(--gold);
}
.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.people label {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  min-height: 48px;
  background: #0d100e;
}
.people label.on { border-color: var(--lime-dark); background: var(--pale); }
.people input { width: 18px; height: 18px; }
.borrow { margin: 8px 0 12px; }
.borrow summary { min-height: 44px; color: var(--gold); font-weight: 700; }

.gps {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
.gps.off { color: var(--orange); font-weight: 700; }

.photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

.hub-section { margin: 18px 0 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.hub-card { cursor: pointer; }
.hub-card h2 { pointer-events: none; }
.workspace-link {
  display: inline-flex;
  margin-top: 10px;
  color: #000;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}
.workspace-link:after { content: " →"; }
.phase-strip { margin-top: 8px; }
.phase-label {
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.phase-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.phase-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8de252, var(--lime));
  border-radius: 999px;
}
.spend-bar {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 800;
  margin-bottom: 10px;
}
.wall-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}
.wall-item.wall-click { cursor: pointer; }
.wall-item.wall-click:active { border-color: var(--lime-dark); }
.wall-top { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; }
.wall-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.wall-head { flex: 1; min-width: 0; }
.wall-who { font-weight: 700; font-size: 14px; }
.wall-kind {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 8px; white-space: nowrap;
}
.wall-item .when { font-size: 11px; color: var(--muted); }
.wall-item h3 { margin: 4px 0 6px; font-size: 16px; }
.wall-body { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.35; }
.wall-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wall-photo {
  width: 112px;
  height: 112px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--pale);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wall-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-photo-pending { font-size: 10px; color: var(--muted); text-align: center; padding: 6px; }
.composer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}
.composer textarea, #job-note-text, #sheet-panel textarea {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pale);
  color: var(--ink);
  padding: 10px;
  resize: vertical;
}
.meta.pay { color: var(--gold); font-weight: 700; }
.admin-feed { display: flex; flex-direction: column; gap: 8px; }
.admin-feed-card {
  text-align: left;
  width: 100%;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  padding: 10px 12px;
  cursor: pointer;
}
.admin-feed-card:hover { border-color: var(--lime-dark); }
.admin-input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0e130f;
  color: var(--ink);
  padding: 6px 8px;
}
.crew-toggle {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}
.crew-toggle-btn {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--lime);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}
.crew-toggle-btn.on {
  background: var(--lime);
  color: #101312;
}
.crew-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  align-items: start;
}
.crew-board[hidden] { display: none; }

.crew-column {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.crew-column h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.crew-cards {
  display: grid;
  gap: 8px;
}

.crew-card {
  background: #0d100e;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 14px;
}

.crew-card-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.crew-card strong {
  display: block;
  margin-bottom: 0;
  font-size: 17px;
}

.crew-card-role {
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0 0;
}

.crew-card-site {
  color: var(--ink);
  font-size: 13px;
  margin: 6px 0 0;
}

.crew-card .chip.dirt {
  border-color: var(--lime);
  color: #101312;
  background: var(--lime);
}

.crew-card .chip.free {
  color: var(--muted);
  background: transparent;
}

.who-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.who-row .on-site { color: var(--text); font-weight: 700; }
.who-row .off { color: var(--muted); }

body.locked .dock,
body.locked .masthead,
body.locked .banner-note { display: none; }
.queue-note { background: #2a1a06; text-transform: none; }
.queue-note[hidden] { display: none; }
body.locked .wrap { padding-top: 24px; padding-bottom: 24px; }
body.locked .wrap a { color: var(--info); }

.banner-danger, .banner-warn { border: 1px solid var(--danger); color: var(--danger); border-radius: 12px; padding: 12px 14px; font-weight: 800; }
.whos-list { list-style: none; padding: 0; margin: 0 0 12px; }
.whos-list li { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.whos-list button { min-height: 44px; min-width: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 800; }
.whos-list button[aria-pressed="true"] { background: #C5E017; color: #000; }

.dock {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--banner);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  z-index: 15;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
}
.dock.leads { grid-template-columns: repeat(5, 1fr); }
.dock:not(.leads) [data-view="crew"] { display: none; }
.state-card { background: var(--surface-card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px 0; }
.me-photo-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.me-photo { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.me-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-photo-empty { font-weight: 800; color: var(--text-muted); }
.sched-week { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sched-day { min-width: 44px; min-height: 44px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sched-day.on { background: var(--lime); color: #000; border-color: transparent; }
.project-section { margin: 16px 0; }
.project-section h3 { margin: 0 0 8px; font-size: 16px; }
.phase-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.phase-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-card); }
.dock button {
  background: none;
  border: 0;
  color: var(--nav-idle);
  min-height: 56px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.dock button.on { background: var(--lime); color: #000; border-radius: 12px; margin: 6px 8px; }
.dock button .lucide { width: 22px; height: 22px; }
.lang-toggle, .more-toggle {
  margin-left: auto;
  min-width: 56px;
  min-height: 56px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  border-radius: 12px;
  padding: 0 12px;
}
.more-toggle { margin-left: 8px; display: flex; align-items: center; justify-content: center; }
.notify-toggle { position: relative; }
.notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #101312;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.notify-badge[hidden] { display: none; }
.notify-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.notify-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.notify-item.nudge { border-left-color: var(--gold); }
.notify-item.due { border-left-color: var(--gold); }
.notify-item h3 { margin: 0; font-size: 16px; }
.notify-item .meta { margin: 4px 0 0; }
.sync-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
}
.sync-pill.saved { background: var(--amber); color: #101312; }
.sync-pill.sent { background: var(--lime); color: #101312; }
.src-tag { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.src-chip { display: inline-block; background: #C5E017; color: #000; font-weight: 700; border-radius: 999px; padding: 2px 8px; margin: 2px 4px 2px 0; }
.receipt-check { background: #C5E017; color: #000; font-weight: 800; padding: 8px 10px; }
.office-assign {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  pointer-events: none;
}
.discard-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 50;
  display: flex;
  align-items: flex-end;
}
.discard-panel {
  width: 100%;
  background: var(--panel);
  padding: 16px;
}
.discard-panel .btn.danger { background: #E53935; min-height: 48px; width: 100%; }
.save-wide { width: 100%; min-height: 56px; }

body.admin { background: var(--admin-bg); color: var(--admin-ink); }
body.admin .wrap { max-width: 980px; }
.admin-card {
  background: var(--admin-panel);
  border: 1px solid #243024;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.admin-card h3 { margin: 0 0 8px; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #243024; }
.ok { color: var(--admin-lime); }
.warn { color: #f4c74d; }
.bad { color: #e04f3e; }

input[type="text"], input[type="password"], input[type="datetime-local"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 48px;
  background: #0d100e;
  color: var(--ink);
}
a.btn.ghost { display: flex; align-items: center; justify-content: center; text-decoration: none; }

#signup-pin {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--lime-dark);
  border-radius: var(--radius);
  background: #152010;
}
#signup-pin strong { letter-spacing: 0.12em; font-size: 22px; }
.emp-list { display: grid; gap: 8px; }
.emp-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d100e;
}
.emp-head {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  padding: 10px 12px;
}
.emp-head strong { display: block; }
.emp-body { padding: 0 12px 12px; }
.emp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.emp-tabs button {
  background: #0e130f;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}
.emp-tabs button.on { color: var(--ink); border-color: var(--lime-dark); }
.emp-activity { margin: 0; padding-left: 18px; color: var(--muted); }
.crew-card[data-emp] { cursor: pointer; }

.job-facts { margin: 10px 0 0; }
.job-facts .fact {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.job-facts dt {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.job-facts dd { margin: 0; font-size: 14px; }
.bad-note { color: #f0b4ad; }

.snapshot {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin: 0 0 12px;
}
.snapshot h2 { margin: 0 0 6px; font-size: 16px; }
.snap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.snap-stat {
  background: #0d100e;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  min-height: 64px;
  text-align: left;
  padding: 10px;
}
.snap-stat strong { display: block; font-size: 20px; color: var(--text); }
.snap-stat span { color: var(--muted); font-size: 12px; }
.snap-person {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.snap-person span { color: var(--muted); }

.me-list { display: grid; gap: 8px; }
.me-list .btn { width: 100%; margin: 0; }

.gantt {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.gantt-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  min-width: 640px;
  border-bottom: 1px solid var(--line);
}
.gantt-head { background: #0d100e; }
.gantt-label { padding: 10px 8px; }
.gantt-label strong { display: block; font-size: 13px; }
.gantt-label span { color: var(--muted); font-size: 12px; }
.gantt-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
}
.gantt-day, .gantt-cell {
  min-height: 56px;
  padding: 6px 4px;
  border-left: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.gantt-bar {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #101312;
  background: var(--lime);
}
.gantt-bar.kind-last_sealed { background: #8a8f86; }
.gantt-bar.kind-forward { background: transparent; border: 1px dashed var(--gold); color: var(--gold); }
.gantt-bar.kind-today { background: var(--lime); }

body.field-sun {
  --paper: #000;
  --panel: #0a0a0a;
  --ink: #fff;
  --muted: #B3B3B3;
  --lime: #C5E017;
  --line: #2a2a2a;
  font-size: 18px;
}
body.field-sun .masthead h1 { font-size: 18px; color: #fff; }
body.field-sun .job h2,
body.field-sun .no-board h2,
body.field-sun .eod-reminder { font-size: 28px; line-height: 1.2; color: #fff; }
body.field-sun .btn { min-height: 64px; font-size: 20px; }
body.field-sun .dock button { font-size: 13px; color: var(--nav-idle); }
body.field-sun .dock button.on { background: var(--lime); color: #000; }
body.field-sun .lang-toggle {
  margin-left: auto;
  min-width: 64px;
  min-height: 48px;
  border: 2px solid #C5E017;
  background: #C5E017;
  color: #000;
  font-weight: 800;
  font-size: 18px;
  border-radius: 8px;
}
.no-board, .eod-reminder {
  background: #000;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 16px;
  margin: 0 0 12px;
}
.no-board h2, .eod-reminder { margin: 0; }
.punch-status { font-weight: 800; color: #fff; }

/* Landscape 20/20 presentation layer. Component behavior and copy stay unchanged. */
h1, h2, h3, .section-title { font-family: var(--font-display); letter-spacing: .01em; }
.masthead {
  min-height: 78px;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.masthead .brand-lockup { width: clamp(150px, 25vw, 230px); height: auto; object-fit: contain; }
.masthead .brand-mark { width: 54px; height: 54px; flex: 0 0 54px; object-fit: contain; }
.masthead .screen-title { min-width: 0; }
.masthead h1 { color: #fff; font-family: var(--font-display); font-size: 22px; line-height: 1; text-transform: uppercase; }
.masthead .sub, .masthead #role-title { color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.banner-note, .queue-note { background: var(--surface-card); color: var(--text-strong); border-bottom: 1px solid var(--border); }
.banner-note { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.banner-note span:last-child { color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.masthead-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.home-summary > .punch-status, .home-summary > .meta { margin-bottom: 8px; }
.today-job { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; cursor: pointer; }
.today-job-label { display: block; color: var(--text-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.today-job strong { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1.1; margin-top: 3px; text-transform: uppercase; }
.wrap { padding: 20px 14px 104px; }
.job, .snapshot, .admin-card, .day-calendar-shell, .gantt, .receipt-card, .crew-card {
  background: var(--surface-card);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}
.job h2, .snapshot h2, .admin-card h3 { color: var(--text-strong); text-transform: uppercase; }
.day-event, .admin-feed-card, .emp-card, .snap-stat, .gantt-head, .people label, .person, .receipt-card { background: var(--surface-subtle); color: var(--text-strong); }
.chip, .day-event .day-chip { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.chip.hollow { color: var(--text-muted); }
.btn { border-radius: var(--radius-sm); font-weight: 800; }
.btn.primary, .btn.green { background: var(--brand-lime); color: var(--brand-black); }
.btn.ghost { background: var(--surface-card); border: 1px solid #777d74; color: var(--text-strong); }
.btn.warn { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
select.attestor, select.filter, .admin-input, input[type="text"], input[type="password"], input[type="datetime-local"], input[type="time"], textarea {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand-lime); outline-offset: 2px; }
.lang-toggle, .more-toggle, .jr-lang { background: var(--surface-2); color: #fff; border-color: var(--line); }
.lang-toggle { margin-left: auto; }
.dock { border-top: 1px solid var(--line); box-shadow: none; }
.dock button { color: var(--nav-idle); }
.dock button.on { background: var(--lime); color: #000; }
.sheet, .discard-modal { background: rgba(0,0,0,.55); }
.panel, .discard-panel { background: var(--surface-card); color: var(--text-strong); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.sync-pill.saved { background: var(--surface-2); color: var(--text); }
.sync-pill.sent { background: var(--surface-2); color: var(--text); }
body.admin, body.field-sun { --paper: var(--surface-page); --panel: var(--surface-card); --ink: var(--text-strong); --muted: var(--text-muted); --line: var(--border); background: var(--surface-page); color: var(--text-strong); }
body.field-sun .masthead h1 { color: #fff; font-size: 22px; }
body.field-sun .job h2, body.field-sun .no-board h2, body.field-sun .eod-reminder { color: var(--text-strong); }
body.field-sun .lang-toggle { min-width: 56px; min-height: 56px; border: 1px solid var(--line); background: var(--surface-2); color: #fff; font-size: 16px; }
.no-board, .eod-reminder { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.punch-status, .snap-stat strong { color: var(--text); }
.admin-card { border-color: var(--border); border-radius: var(--radius-md); padding: 18px; margin-bottom: 14px; }
body.admin > p.wrap a { color: var(--info) !important; text-decoration-color: var(--info); text-decoration-thickness: 2px; }
table.grid th, table.grid td { border-color: var(--border); }
.ok { color: var(--text); }
.warn { color: var(--warning); }
.bad, .bad-note { color: var(--danger); }
.app-splash { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; margin: 0; background: #000; color: #fff; opacity: 1; transition: opacity .2s ease; }
.app-splash p { margin: 0; color: #fff; font: 800 16px/1.2 Inter, system-ui, sans-serif; }
.app-splash.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.app-splash img { width: min(78vw, 420px); height: auto; }
@media (max-width: 560px) {
  .masthead { min-height: 68px; gap: 8px; padding: 8px 10px; }
  .masthead .brand-lockup { width: 136px; }
  .masthead .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .masthead h1 { font-size: 18px; white-space: nowrap; }
  .masthead .sub { font-size: 10px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
  .masthead-actions { gap: 5px; }
  .masthead-actions .lang-toggle, .masthead-actions .more-toggle { min-width: 56px; min-height: 56px; height: 56px; padding: 0 10px; }
  body.field-sun .masthead-actions .lang-toggle { min-width: 56px; min-height: 56px; font-size: 16px; }
  .banner-note { padding-inline: 10px; font-size: 11px; }
}
@media (max-width: 375px) {
  .masthead { gap: 6px; padding-inline: 8px; }
  .masthead .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .masthead h1 { font-size: 17px; }
  .masthead-actions { gap: 3px; }
  .masthead-actions .lang-toggle, .masthead-actions .more-toggle { min-width: 56px; min-height: 56px; }
}
.my-day { background: #000; color: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.my-day h2, .my-day p { color: #fff; }
.my-day .chip { background: #C5E017; color: #000; border-color: #C5E017; }
.problem-line { color: #8a1f14; font-weight: 800; background: #fde8e4; border-radius: 10px; padding: 10px 12px; }
.clock-row { display: flex; gap: 8px; align-items: center; min-height: 56px; border-bottom: 1px solid #d9d9d4; padding: 8px 0; }
.clock-row .who { flex: 1; }
.person-menu { position: relative; }
.person-menu summary { min-height: 56px; min-width: 56px; display: grid; place-items: center; cursor: pointer; font-size: 22px; }
.person-menu-list { display: grid; gap: 6px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.clock-sticky { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; background: var(--page); color: var(--text); padding: 10px 0 4px; border-top: 1px solid var(--line); }
.clock-sticky .btn { width: 100%; margin: 0; }
.office-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.office-tabs button { min-height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 800; padding: 0 14px; }
.office-tabs button.on { background: #C5E017; color: #000; }
.needs-you { font-weight: 800; }
.forgot-out { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.chip.lunch, .chip.gold, .chip.pending { background: #fff4d6; border-color: #8a6a20; color: #6a4a00; }
.chip.bad { background: #fde8e4; border-color: #8a1f14; color: #8a1f14; }
body.field-sun .snap-stat strong, .punch-alert strong { color: #000; }
.punch-alert strong { background: #C5E017; padding: 0 4px; }
@media (prefers-reduced-motion: reduce) { .app-splash { transition: none; } }
@media (prefers-contrast: more) { .job, .snapshot, .admin-card, .day-calendar-shell { border-width: 2px; } }
.notify-fullscreen{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.78)}
.notify-fullscreen .job{width:min(520px,100%);max-height:90vh;overflow:auto}

/* Landscape 20/20 foreman updates. */
.foreman-feed { margin: 20px 0; padding: 18px; border: 1px solid #000; border-radius: 12px; background: #101010; color: #fff; }
.foreman-feed h2 { color: #000; background: #C5E017; display: inline-block; padding: 2px 8px; margin: 0 0 16px; }
.feed-post + .feed-post { border-top: 1px solid #555; margin-top: 16px; padding-top: 16px; }
.feed-post h3 { margin: 0 0 6px; color: #fff; }
.feed-post time { font-size: .875rem; color: #d4d4d4; }
.feed-text { white-space: pre-wrap; overflow-wrap: anywhere; }
