/* Community Pickup visual prototype. Local file. System fonts only. */
:root {
  --navy: #102a43;
  --dark: #0b1f35;
  --teal: #087f8c;
  --mint: #13b8ad;
  --bg: #f5f8fa;
  --surface: #ffffff;
  --stroke: #e2eaf0;
  --ink: #172b4d;
  --muted: #64748b;
  --gold: #f4b942;
  --shadow: 0 7px 28px rgba(16, 42, 67, 0.055);
  --radius: 20px;
  --success: #17864d;
  --warning: #a86b0a;
  --danger: #dc2626;
  --font: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --display: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  overflow-x: clip;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #50cbd2;
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.22; letter-spacing: -0.03em; }
h1 { font-size: clamp(26px, 2.4vw, 34px); }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
a { color: var(--teal); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
}
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--stroke);
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: var(--dark);
  font: 700 18px var(--display);
  letter-spacing: -0.04em;
  text-decoration: none;
}
.mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #e7f6f6;
  color: var(--teal);
  display: grid;
  place-items: center;
  flex: none;
}
.mark svg { width: 20px; height: 20px; display: block; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #53667a;
  font-weight: 650;
  border-radius: 12px;
  padding: 9px 12px;
}
.nav a.active, .nav a:hover { background: #e7f5f6; color: #086a76; }
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--stroke);
  padding-top: 14px;
}
.profile { display: flex; gap: 10px; align-items: center; padding: 0 8px; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #e5eefb;
  color: #244a80;
  flex: none;
}
.main {
  width: min(1180px, 100%);
  padding: 28px clamp(18px, 3vw, 42px) 88px;
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.crumb { color: var(--muted); font-size: 12px; }
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.demo-mark, .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 700;
}
.demo-mark {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--stroke);
  padding: 4px 8px;
  background: #fff;
}
.pill {
  font-size: 11px;
  padding: 4px 9px;
  background: #eef3f7;
  color: #496072;
}
.pill.green { background: #e7f8ed; color: var(--success); }
.pill.amber { background: #fff5e2; color: var(--warning); }
.pill.blue { background: #e7f4fb; color: #17658e; }
.pill.red { background: #fdecec; color: var(--danger); }
.pill.gray { background: #f1f4f6; color: #6b7583; }
.banner {
  background: #fff6df;
  color: #6d4d0b;
  border: 1px solid #f3e0ad;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}
.banner.error-banner {
  background: #fdecec;
  color: var(--danger);
  border-color: #f6c9c9;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pagehead p { color: var(--muted); margin-top: 6px; max-width: 68ch; }
.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  min-height: 40px;
  background: #fff;
  border: 1px solid var(--stroke);
  color: var(--ink);
}
.btn.primary { background: var(--teal); color: #fff; border-color: transparent; }
.btn.dark { background: var(--navy); color: #fff; border-color: transparent; }
.btn.danger { background: #fff; color: var(--danger); border-color: #f3c7c7; }
.btn.small { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.grid { display: grid; gap: 14px; min-width: 0; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
}
.summary {
  background: #e7f6f6;
  border: 1px solid #bfe4e5;
  border-radius: 22px;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.summary h2 { margin-top: 6px; font-size: 22px; }
.summary p { color: #496b75; margin-top: 6px; max-width: 62ch; }
.stat strong {
  display: block;
  font: 700 26px var(--display);
  letter-spacing: -0.03em;
}
.stat span { color: var(--muted); font-size: 12px; }
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px;
}
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.list { display: flex; flex-direction: column; }
.item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f6;
}
.item:last-child { border-bottom: 0; padding-bottom: 0; }
.item .detail { flex: 1; min-width: 0; }
.item .detail p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.meter {
  height: 10px;
  background: #e7eef3;
  border-radius: 99px;
  overflow: hidden;
}
.meter > div { height: 100%; background: var(--teal); width: 0; }
.lane-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lane {
  border: 1px dashed #c9d7e2;
  border-radius: 16px;
  min-height: 180px;
  padding: 12px;
  background: #fbfcfd;
}
.lane.filled { border-style: solid; background: #fff; border-color: var(--stroke); }
.lane h3 { margin-bottom: 8px; }
.tile {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}
.tile strong { display: block; }
.fresh { font-variant-numeric: tabular-nums; }
.fresh.ok { color: var(--success); }
.fresh.warn { color: var(--warning); }
.fresh.bad { color: var(--danger); }
.log {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  background: #0b1f35;
  color: #d7e6f2;
  border-radius: 16px;
  padding: 14px;
  max-height: 220px;
  overflow: auto;
}
.log div { margin: 0 0 6px; }
.note {
  background: #f4f8fb;
  border-radius: 14px;
  padding: 12px 14px;
  color: #516879;
}
.parent-note {
  background: #f4f8fb;
  border-radius: 14px;
  padding: 12px 14px;
  color: #243746;
  margin: 8px 0;
}
.parent-note .pill { margin-right: 6px; }
.parent-note .parent-note-body { display: block; margin: 6px 0; font-weight: 600; }
.parent-note .small { display: block; margin-top: 4px; }
.callout-stop {
  background: #fdecec;
  color: #8d1d1d;
  border-radius: 14px;
  padding: 12px 14px;
}
.inputwrap { display: flex; flex-direction: column; gap: 6px; }
.inputwrap label { font-size: 12px; font-weight: 700; }
.inputwrap input, .inputwrap select, .inputwrap textarea {
  width: 100%;
  border: 1px solid #cfdde5;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.formline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #edf2f6; vertical-align: top; }
th { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.mobilebar { display: none; }
.phone-shell { width: min(390px, 100%); margin: 0 auto; }
.child-theme { --bg: #f7f6fb; --teal: #6d54c8; --ink: #2a2744; }
.child-hero {
  background: #6d54c8;
  color: #fff;
  border-radius: 24px;
  padding: 22px;
}
.child-hero p { color: #efeaff; margin-top: 8px; }
.footer-note { margin-top: 22px; color: #8c98a5; font-size: 11px; }

@media (max-width: 1100px) {
  .grid.four, .lane-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .app { display: block; }
  .sidebar { display: none; }
  .main { padding: 16px 14px 96px; }
  .grid.two, .grid.three, .grid.four, .formline, .lane-grid { grid-template-columns: 1fr; }
  .crumb { display: none; }
  .mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 4px;
    background: #fff;
    border-top: 1px solid var(--stroke);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    z-index: 5;
  }
  .mobilebar a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #78849a;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 2px;
    border-radius: 8px;
  }
  .mobilebar a.active { color: var(--teal); background: #e7f5f6; }
}
body.force-phone { background: #d5e0e8; }
body.force-phone .app {
  display: block;
  max-width: 390px;
  margin: 12px auto 24px;
  min-height: calc(100vh - 24px);
  background: var(--bg);
  box-shadow: 0 16px 50px rgba(16, 42, 67, 0.16);
}
body.force-phone .sidebar { display: none; }
body.force-phone .main { padding: 16px 14px 96px; }
body.force-phone .grid.two,
body.force-phone .grid.three,
body.force-phone .grid.four,
body.force-phone .formline,
body.force-phone .lane-grid { grid-template-columns: 1fr; }
body.force-phone .crumb { display: none; }
body.force-phone .mobilebar {
  position: sticky;
  display: flex;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--stroke);
  padding: 8px;
  z-index: 5;
}
body.force-phone .mobilebar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #78849a;
  font-size: 10px;
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

.stage-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stage-card strong { font-size: 28px; letter-spacing: -0.03em; }
.stage-card .status { font-size: 18px; font-weight: 700; }
.touch { min-height: 48px; }
.offline-banner {
  background: #fdecec;
  color: #8d1d1d;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.live-pill { background: #e7f8ed; color: var(--success); }
.stale-pill { background: #fdecec; color: var(--danger); }
.wizard { max-width: 760px; }
.choice { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.pending-local { border: 1px dashed #e0b15a; background: #fff8ea; border-radius: 14px; padding: 12px; }
.notice { border-bottom: 1px solid var(--stroke); padding: 10px 0; }
.nav button {
  display: flex;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #53667a;
  font-weight: 650;
  border-radius: 12px;
  padding: 9px 12px;
  min-height: 44px;
}
.nav button.active, .nav button:hover { background: #e7f5f6; color: #086a76; }
.parent-app { max-width: 430px; margin: 0 auto; padding: 20px 16px 48px; }
.parent-app .card { border-radius: 24px; }
.parent-app h1 { font-size: 30px; margin: 0 0 18px; }
.parent-app h1::before {
  content: "";
  display: block;
  width: 40px;
  height: 8px;
  border-radius: 99px;
  background: var(--teal);
  margin-bottom: 12px;
}
.parent-today { display: flex; flex-direction: column; gap: 8px; }
.parent-child {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 18px;
}
.parent-child input { width: 22px; height: 22px; flex: 0 0 auto; }
.parent-child strong { display: block; font-size: 18px; }
.parent-child span { color: var(--muted); font-size: 14px; }
.parent-scope { margin: 14px 0 0; color: var(--ink); }
.parent-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.parent-actions .btn { width: 100%; min-height: 48px; font-size: 17px; }
.parent-hint { margin-top: 12px; color: var(--muted); }
.parent-app details {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 4px 16px 12px;
}
.parent-app summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}
.parent-app details .btn { min-height: 48px; }
.parent-count {
  margin-left: 8px;
  background: var(--teal);
  color: #fff;
  border-radius: 99px;
  min-width: 22px;
  padding: 1px 7px;
  font-size: 12px;
}
.checkline { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.checkline label { min-height: 44px; display: flex; align-items: center; gap: 6px; }
