/* Luxer Access Site Walk — brand pass.
   Tokens pulled directly from the approved mockups (site_walk_app_mockups_*.html):
   gold #FFCC33 / gold-tint #FFF4CE accents, black/gray text, Roboto Condensed
   headlines, Roboto body, rounded cards with a gold top accent + drag-handle,
   pill/tile choice controls, stepper counters, status badges. */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Condensed:wght@700&display=swap');

/* Catalyst embedded social-login widget — iframe has no default height */
.login-embed { margin: 16px 0; }
.login-embed iframe { width: 100% !important; height: 300px !important; border: none !important; }

:root {
  --gold: #FFCC33;
  --gold-tint: #FFF4CE;
  --ink: #222222;
  --muted: #49494B;
  --faint: #9E9E9E;
  --divider: #F1F1F1;
  --handle: #D3D1C7;
  --positive: #2E7D32;
  --positive-tint: #EAF3DE;
  --warning: #FF7800;
  --warning-tint: #FFF1E3;
  --negative: #D32F2F;
  --negative-tint: #FBE9E9;
  --card-radius: 14px;
  --control-radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #EDEDED;
  color: var(--ink);
}

.screen {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #ffffff;
  overflow: hidden;
}

.screen-top-accent {
  height: 4px;
  background: var(--gold);
}

.screen-handle {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
}

.screen-handle span {
  width: 60px;
  height: 5px;
  border-radius: 3px;
  background: var(--handle);
  display: block;
}

.screen-body {
  padding: 4px 18px 40px;
}

h1 {
  font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 10px 0 14px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

h2.screen-subtitle {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 0 10px;
  color: var(--ink);
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 4px 0 16px;
  line-height: 1.4;
}

.section-label {
  font-size: 0.7rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 18px 0 8px;
  font-weight: 500;
}

.section-label:first-child {
  margin-top: 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 16px 0;
}

label {
  display: block;
  font-weight: 500;
  margin: 16px 0 6px;
  font-size: 0.88rem;
  color: var(--ink);
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--divider);
  border-radius: var(--control-radius);
  margin-bottom: 8px;
  color: var(--ink);
  background: #fff;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field-error {
  color: var(--negative);
  font-size: 0.8rem;
  margin: -4px 0 10px;
}

/* ---------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------- */
button {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--control-radius);
  border: none;
  margin-top: 12px;
  cursor: pointer;
}

button.primary {
  background: var(--gold);
  color: var(--ink);
}

button.primary:disabled {
  background: var(--divider);
  color: var(--faint);
  cursor: not-allowed;
}

button.secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

button.text-link {
  background: none;
  color: var(--muted);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  text-decoration: underline;
  padding: 6px 0;
  margin-top: 4px;
}

/* ---------------------------------------------------------------------
   Info / highlight box (e.g. the selected Opportunity)
--------------------------------------------------------------------- */
.info-box {
  border: 1px solid var(--gold);
  background: var(--gold-tint);
  border-radius: var(--control-radius);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.info-box .info-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.info-box .info-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 2px 0 0;
}

/* ---------------------------------------------------------------------
   Pill / segmented controls (Yes / No / Don't know, Narrow / Wide, etc.)
--------------------------------------------------------------------- */
.pill-group {
  display: flex;
  border: 1px solid var(--divider);
  border-radius: var(--control-radius);
  overflow: hidden;
  margin-bottom: 14px;
}

.pill-group .pill {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  font-size: 0.85rem;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}

.pill-group .pill.selected {
  background: var(--gold);
  color: var(--ink);
  font-weight: 500;
}

.pill-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.pill-row .pill-box {
  flex: 1;
  border: 1px solid var(--divider);
  border-radius: var(--control-radius);
  padding: 10px 8px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  background: #fff;
}

.pill-row .pill-box.selected {
  border-color: var(--gold);
  background: var(--gold-tint);
  color: var(--ink);
  font-weight: 500;
}

/* ---------------------------------------------------------------------
   Tile grid (space type picker, lock category picker)
--------------------------------------------------------------------- */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.tile {
  border: 1px solid var(--divider);
  background: #fff;
  border-radius: var(--control-radius);
  padding: 16px 10px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}

.tile.selected {
  border-color: var(--gold);
  background: var(--gold-tint);
  color: var(--ink);
}

/* ---------------------------------------------------------------------
   Stepper (+ / - counters)
--------------------------------------------------------------------- */
.stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 4px;
}

.stepper button.stepper-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper .stepper-value {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  min-width: 20px;
  text-align: center;
}

/* ---------------------------------------------------------------------
   Status badges
--------------------------------------------------------------------- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-positive { background: var(--positive-tint); color: var(--positive); }
.badge-warning { background: var(--warning-tint); color: var(--warning); }
.badge-gold { background: var(--gold-tint); color: var(--ink); }
.badge-neutral { background: var(--divider); color: var(--muted); }

/* ---------------------------------------------------------------------
   Rows / lists
--------------------------------------------------------------------- */
.row-list .row-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 0.9rem;
}

.row-list .row-item:last-child { border-bottom: none; }

.row-item .row-label { flex: 1; color: var(--ink); }

.result-row {
  display: block;
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--divider);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: var(--control-radius);
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.4;
  cursor: pointer;
}

.result-row:active { background: var(--gold-tint); border-color: var(--gold); }

.draft-row {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: var(--control-radius);
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.4;
  cursor: pointer;
}

/* A walk whose report is generating in the background — not clickable,
   not discardable, just a status line (see renderResumeSection in app.js). */
.draft-row-generating {
  background: var(--divider);
  border: 1px solid var(--faint);
  color: var(--muted);
  cursor: default;
}

/* ---------------------------------------------------------------------
   Photo checklist
--------------------------------------------------------------------- */
.photo-checklist-box {
  background: var(--divider);
  border-radius: var(--control-radius);
  padding: 12px;
  margin: 10px 0 6px;
}

.photo-checklist-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 10px;
}

.photo-shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
}

.photo-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.photo-shot-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px dashed var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-shot.captured .photo-shot-thumb {
  border: 1px solid var(--divider);
  border-style: solid;
}

.photo-shot-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}

.photo-shot.captured .photo-shot-label {
  color: var(--ink);
}

.photo-extra-btn {
  margin-top: 10px;
}

/* ---------------------------------------------------------------------
   Confirmation screens (Space saved, Site walk complete, etc.)
--------------------------------------------------------------------- */
.confirm-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 16px;
  text-align: center;
}

.confirm-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--positive-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.confirm-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 4px;
}

.confirm-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* ---------------------------------------------------------------------
   Modal (replaces native prompt/confirm/alert everywhere)
--------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 18px 18px 0 0;
  padding: 10px 20px 24px;
  animation: modal-slide-up 0.15s ease-out;
}

@keyframes modal-slide-up {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-handle {
  display: flex;
  justify-content: center;
  padding: 6px 0 14px;
}

.modal-handle span {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--handle);
}

.modal-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 14px;
  color: var(--ink);
}

/* ---------------------------------------------------------------------
   Icons (inline SVG, no CDN — must work offline)
--------------------------------------------------------------------- */
.icon {
  display: inline-flex;
  vertical-align: middle;
}

.icon svg { display: block; }

/* =====================================================================
   v2 additions: sign-in, hub, item editor, checks panel
===================================================================== */
.screen { max-width: 560px; }

input[type="date"], input[type="tel"], input[type="email"] {
  width: 100%; padding: 12px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--divider); border-radius: var(--control-radius);
  margin-bottom: 8px; color: var(--ink); background: #fff;
}

.brand-mark {
  font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif; font-weight: 700;
  letter-spacing: 0.04em; font-size: 0.95rem; color: var(--ink);
}
.brand-mark span { color: #C9A21F; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 4px; }
.topbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.user-row:last-child { border-bottom: none; }
.user-info { flex: 1; min-width: 0; }
.user-info strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info .hint { font-size: 12px; }
.role-select { font-size: 13px; padding: 4px 6px; border: 1px solid #C4C4C4; border-radius: 8px; background: #fff; width: auto; flex-shrink: 0; }
.remove-user-btn { color: var(--negative); flex-shrink: 0; }
button.text-link.inline { display: inline; width: auto; padding: 0; margin: 0; font-size: 0.82rem; }

.back-btn {
  display: inline-flex; align-items: center; gap: 2px; width: auto; padding: 4px 6px 4px 0;
  margin: 0 0 4px; background: none; color: var(--muted); font-family: 'Roboto', sans-serif;
  font-weight: 500; font-size: 0.9rem;
}

.banner {
  background: var(--divider); color: var(--muted); border-radius: var(--control-radius);
  padding: 10px 12px; font-size: 0.84rem; margin: 6px 0 10px; line-height: 1.4;
}
.banner-warn { background: var(--warning-tint); color: #8A4100; }

.walk-row, .item-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--divider); color: var(--ink);
  padding: 12px 12px; border-radius: var(--control-radius); margin-top: 8px;
  font-family: 'Roboto', sans-serif; font-weight: 400; font-size: 0.92rem; letter-spacing: 0;
}
.walk-row:active, .item-row:active { background: var(--gold-tint); border-color: var(--gold); }
.walk-row-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.walk-row-main .hint { margin: 0; font-size: 0.8rem; }
.item-row .icon { color: var(--faint); }

.hub-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hub-head h1 { margin-bottom: 2px; }
.hub-head .hint { margin-top: 0; }

.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 4px; }
.card-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  background: #fff; border: 1px solid var(--divider); color: var(--ink); margin: 0;
  padding: 12px; font-family: 'Roboto', sans-serif; letter-spacing: 0;
}
.card-btn.needs { border-color: var(--warning); background: var(--warning-tint); }
.card-btn:disabled { opacity: 0.6; }
.card-title { font-weight: 700; font-size: 0.92rem; }
.card-sub { font-size: 0.78rem; color: var(--muted); font-weight: 400; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  width: auto; margin: 0; padding: 8px 12px; border-radius: 999px; background: var(--divider);
  color: var(--ink); font-family: 'Roboto', sans-serif; font-weight: 500; font-size: 0.85rem; letter-spacing: 0;
}
.chip-add { background: #fff; border: 1px dashed var(--faint); color: var(--muted); }

.done-box { border: 1px solid var(--positive); background: var(--positive-tint); border-radius: var(--card-radius); padding: 14px; margin: 10px 0; }
.done-box.generating { border-color: var(--gold); background: var(--gold-tint); }
.done-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }

/* Checks panel */
.checks-panel { border: 1px solid var(--divider); border-radius: var(--card-radius); padding: 10px 12px; margin: 12px 0 4px; background: #fff; }
.checks-panel.has-warn { border-color: var(--warning); }
.checks-panel.has-stop { border-color: var(--negative); }
.checks-panel.checks-ok { color: var(--positive); font-size: 0.85rem; background: var(--positive-tint); border-color: var(--positive-tint); }
.checks-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; font-size: 0.92rem; }
.checks-panel summary::-webkit-details-marker { display: none; }
.checks-counts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.badge-stop { background: var(--negative-tint); color: var(--negative); }
.checks-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.check-item { border-left: 4px solid var(--faint); background: var(--divider); border-radius: 6px; padding: 8px 10px; }
.check-item.check-stop { border-left-color: var(--negative); background: var(--negative-tint); }
.check-item.check-warn { border-left-color: var(--warning); background: var(--warning-tint); }
.check-level { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.check-title { font-weight: 700; font-size: 0.86rem; margin-top: 2px; }
.check-detail { font-size: 0.8rem; color: var(--ink); margin-top: 2px; line-height: 1.35; }
.check-where { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.checks-list.compact { margin: 0 0 8px; max-height: 45vh; overflow-y: auto; }

/* Forms */
.field { margin-bottom: 2px; }
.field label { margin-top: 14px; }
.req { color: var(--negative); }
.field-hint { font-size: 0.78rem; color: var(--muted); margin: -2px 0 6px; line-height: 1.35; }
.field.has-error select, .field.has-error input, .field.has-error textarea, .field.has-error .choice-group { border-color: var(--negative); }
.form-heading { margin-top: 22px; color: var(--ink); font-weight: 700; }
.choice-group { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; border-radius: var(--control-radius); }
.choice {
  flex: 1 1 0; min-width: 0; width: auto; margin: 0; padding: 11px 6px; border: 1px solid var(--divider);
  background: #fff; color: var(--muted); font-family: 'Roboto', sans-serif; font-weight: 400;
  font-size: 0.86rem; letter-spacing: 0; line-height: 1.25;
}
.choice-group.stacked { flex-direction: column; }
.choice-group.stacked .choice { flex: none; text-align: left; padding: 11px 12px; }
.choice.selected { border-color: var(--gold); background: var(--gold-tint); color: var(--ink); font-weight: 500; }
.stepper-input { width: 90px !important; text-align: center; margin: 0 !important; font-weight: 700; }

/* Photos */
.photo-shot { position: relative; }
.photo-shot-thumb { padding: 0; margin: 0; overflow: hidden; cursor: pointer; color: var(--muted); }
.photo-shot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-shot.captured .photo-shot-thumb { color: var(--positive); background: var(--positive-tint); }
.photo-remove {
  position: absolute; top: -6px; right: 2px; width: 22px; height: 22px; padding: 0; margin: 0;
  border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
}
.tiny { font-size: 0.62rem; color: var(--faint); }

/* Tiles with subtitle */
.tile { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 14px 8px; font-family: 'Roboto', sans-serif; letter-spacing: 0; margin: 0; }
.tile-title { font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.tile-sub { font-weight: 400; font-size: 0.74rem; color: var(--muted); line-height: 1.25; }

/* Buttons */
button.danger { color: var(--negative); border-color: var(--negative); }
button.danger-fill { background: var(--negative); color: #fff; }
.button-link {
  display: block; text-align: center; text-decoration: none; padding: 14px; margin-top: 12px;
  border-radius: var(--control-radius); font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.02em;
}
.button-link.primary { background: var(--gold); color: var(--ink); }

/* Spinner + toast */
.spinner { width: 16px; height: 16px; border: 2.5px solid var(--handle); border-top-color: var(--ink); border-radius: 50%; display: inline-block; animation: spin 0.8s linear infinite; }
.spinner.big { width: 36px; height: 36px; border-width: 4px; margin-bottom: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 0.88rem;
  transition: all 0.2s ease; pointer-events: none; z-index: 2000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Tablet / laptop: give forms more room */
@media (min-width: 700px) {
  body { padding: 24px 0; }
  .screen { border-radius: var(--card-radius); min-height: auto; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
  .tile-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Building name boxes on the new-walk Buildings screen */
.bld-name-row { position: relative; display: flex; align-items: center; gap: 8px; }
.bld-name-row input { flex: 1; }
.photo-remove.inline-remove { position: static; flex: none; width: 30px; height: 30px; margin-bottom: 8px; }
.link-card { width: 100%; margin: 12px 0 0; border-color: var(--negative); background: var(--negative-tint); }
.link-card .card-title { color: var(--negative); }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.list-head .section-label { margin: 0; }
.scope-toggle { width: 140px; margin: 0; }
.scope-toggle .choice { padding: 7px 6px; font-size: 0.8rem; }

/* =====================================================================
   Responsive: phone (default) / tablet (700px+) / laptop (1100px+)
===================================================================== */
@media (min-width: 700px) {
  body { padding: 28px 16px; }
  .screen { max-width: 880px; border-radius: var(--card-radius); min-height: auto; box-shadow: 0 2px 14px rgba(0,0,0,0.07); }
  .screen-body { padding: 8px 32px 40px; }
  h1 { font-size: 1.55rem; }

  /* Forms in two columns; long answers, notes and headings span both */
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: start; }
  .form-grid .form-heading, .form-grid .field-wide { grid-column: 1 / -1; }
  #bld { max-width: calc(50% - 12px); }

  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-shot-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
  .photo-shot-thumb { width: 88px; height: 88px; }

  /* Pop-ups centered instead of sliding up from the bottom */
  .modal-overlay { align-items: center; }
  .modal-card { border-radius: 18px; max-width: 520px; padding: 10px 24px 24px; }

  /* Buttons don't need to stretch edge to edge on a wide screen */
  .hub-bottom button.primary, .hub-bottom button.secondary { max-width: 420px; }
}

@media (min-width: 1100px) {
  .screen { max-width: 1180px; }
  .tile-grid { grid-template-columns: repeat(4, 1fr); }

  /* Start screen: start a walk on the left, recent walks on the right */
  .start-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: start; }
  .start-right .list-head { margin-top: 0; }

  /* Walk screen: items on the left, checks + complete in a side panel */
  .hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 32px; align-items: start;
              grid-template-areas: "main top" "main bottom"; }
  .hub-top { grid-area: top; }
  .hub-main { grid-area: main; }
  .hub-bottom { grid-area: bottom; position: sticky; top: 16px; }
  .hub-top .card-row { grid-template-columns: 1fr; }
  .hub-bottom button.primary, .hub-bottom button.secondary { max-width: none; }
  .hub-main .item-row { margin-top: 8px; }
}

/* Floors */
.bld-name-row .floors-input { flex: 0 0 96px; width: 96px; text-align: center; }
.input-error { border-color: var(--negative) !important; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.place-grid.floors { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.place-grid .choice { flex: none; padding: 12px 8px; }
.place-summary { display: flex; align-items: center; gap: 10px; background: var(--gold-tint); border: 1px solid var(--gold); border-radius: var(--control-radius); padding: 10px 12px; font-weight: 500; }
.tile:disabled { opacity: 0.45; cursor: not-allowed; }
#next-btn:disabled { background: var(--divider); color: var(--faint); }

/* Contrast pass: controls were white-on-white with a near-invisible border.
   Text boxes and dropdowns get a real gray outline; answer buttons get a
   silver fill so each one reads as its own button; the picked answer gets
   a solid gold outline and gold fill. */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="tel"],
select,
textarea { border: 1px solid #BDBDBD; background: #fff; }
input:hover, select:hover, textarea:hover { border-color: #8A8A8A; }
input:focus, select:focus, textarea:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 2px rgba(255, 204, 51, 0.35); }
.choice { background: #F1F1F1; border: 1px solid #D6D6D6; color: var(--ink); }
.choice:hover:not(:disabled) { border-color: #8A8A8A; }
.choice.selected { background: var(--gold-tint); border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); font-weight: 700; }
.choice:disabled { opacity: 0.5; }

/* =====================================================================
   Contrast pass 2 (v20): white controls on a white page had nothing to
   separate them. The page is now light gray, and every card, field and
   answer button is white with a real gray outline, so each one reads as
   its own box.
===================================================================== */
body { background: #E4E4E2; }
.screen, .screen-body { background: #F3F3F1; }
.screen { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }

input[type="text"], input[type="number"], input[type="date"], input[type="email"],
input[type="tel"], input[type="search"], select, textarea {
  background: #fff; border: 1px solid #A8A8A8;
}
input:hover, select:hover, textarea:hover { border-color: #6F6F6F; }
input:focus, select:focus, textarea:focus { border-color: #E0A800 !important; box-shadow: 0 0 0 3px rgba(255, 204, 51, 0.45); }

.choice { background: #fff; border: 1px solid #B4B4B4; color: var(--ink); }
.choice:hover:not(:disabled) { border-color: #6F6F6F; }
.choice.selected { background: var(--gold); border-color: #E0A800; box-shadow: none; color: #000; font-weight: 700; }

.card-btn, .checks-panel, .walk-row, .item-row, .tile, .result-row, .pill-box, .photo-shot-thumb {
  background: #fff; border: 1px solid #C4C4C4; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.card-btn.needs { background: var(--warning-tint); border-color: var(--warning); }
.link-card { background: var(--negative-tint); border-color: var(--negative); }
.chip { background: #fff; border: 1px solid #B4B4B4; color: var(--ink); }
.chip-add { background: transparent; border: 1px dashed #8A8A8A; }
.place-summary { background: #fff; }
.divider { border-top-color: #D6D6D6; }
.section-label { color: #6F6F6F; }

/* Modals stay white, so their answer buttons keep a gray fill to stand apart. */
.modal-card .choice { background: #F3F3F1; }
.modal-card .choice.selected { background: var(--gold); }
