/* Pocket HQ: peach page, plum ink, one purple accent. Phone first; thread plus status column from 1024px. No borders, shadows or gradients. */
:root {
  color-scheme: light;
  --bg: #FBE8D6;
  --card: #FFFFFF;
  --ink: #2A1838;
  --muted: #7A6A82;
  --purple: #6E4AE8;
  --purple-soft: #ECE7FF;
  --green: #2E8B57;
  --green-soft: #DDF3E6;
  --orange: #F05A1A;
  --orange-soft: #FFE3D3;
  --grey: #EFE6DE;
  --track: #F3D5BC;
  --wash: rgba(42, 24, 56, .07);
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--purple-soft); outline-offset: 1px; }
.rc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.rc { height: 100dvh; display: flex; flex-direction: column; }
.rc-side { display: none; }
.rc-status { display: none; }
.rc-main { flex: 1; min-height: 0; width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.rc-top { display: flex; align-items: center; gap: 12px; }
.rc-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.rc-logo { width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: var(--orange); display: grid; place-items: center; flex: none; }
.rc-logo svg { width: 18px; height: 18px; }
.rc-live { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin-left: auto; }
.rc-live i { width: 8px; height: 8px; border-radius: 50%; background: #CDB9AB; }
.rc-live.on i { background: var(--green); }

.rc-btn { border: 0; min-height: 44px; background: var(--card); border-radius: 12px; padding: 10px 16px; font-weight: 700; font-size: 14px; }
.rc-btn.rc-primary { background: var(--ink); color: #fff; }
.rc-team-btn { min-height: 40px; padding: 8px 14px; }
.rc-top .rc-btn { min-height: 40px; padding: 8px 14px; }
.rc-brand-m { white-space: nowrap; font-size: 16px; min-width: 0; }
@media (max-width: 400px) { .rc-brand-m { font-size: 0; gap: 0; } }
.rc-btn.rc-sm { min-height: 40px; padding: 8px 12px; font-size: 13px; background: var(--grey); }
.rc-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rc-demo > span { font-weight: 800; color: var(--muted); margin-right: auto; }
.rc-demo-row { margin-top: 4px; }

.rc-pin { border: 0; background: var(--card); border-radius: 14px; padding: 8px 12px 8px 10px; display: flex; align-items: center; gap: 12px; text-align: left; min-height: 60px; width: 100%; }
.rc-pin-txt { display: grid; line-height: 1.2; min-width: 0; }
.rc-pin-txt b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rc-pin-txt small { color: var(--muted); font-size: 13px; font-weight: 600; }
.rc-pin-open { margin-left: 2px; width: 32px; height: 32px; border-radius: 10px; background: var(--wash); display: grid; place-items: center; flex: none; }
.rc-pin-open svg { width: 18px; height: 18px; }
.rc-chip { margin-left: auto; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--purple); color: #fff; white-space: nowrap; }
.rc[data-urg="done"] .rc-chip { background: var(--green); }
.rc[data-urg="idle"] .rc-chip { background: #A596AD; }
.rc[data-urg="ended"] .rc-chip { background: var(--ink); }

.rc-ring { position: relative; display: block; flex: none; }
.rc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.rc-ring-track { stroke: var(--purple-soft); }
.rc-ring-fill { stroke: var(--purple); transition: stroke-dashoffset .3s linear; }
.rc[data-urg="done"] .rc-ring-fill { stroke: var(--green); }
.rc-ringbox { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.rc-ring-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rc-ring-mid b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.rc-ring-mid small { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 4px; max-width: 100px; }

.rc-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--orange-soft); color: #9A3A0C; border-radius: 12px; padding: 8px 8px 8px 14px; font-weight: 600; }
.rc-error .rc-btn { background: var(--ink); color: #fff; }

.rc-thread { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 8px 2px; overscroll-behavior: contain; }
.rc-thread > :first-child { margin-top: auto; }
.rc-row { display: flex; gap: 10px; align-items: flex-start; max-width: 94%; }
.rc-row.rc-me { align-self: flex-end; justify-content: flex-end; }
.rc-col { display: grid; gap: 6px; min-width: 0; flex: 1 1 auto; }
.rc-me .rc-col { justify-items: end; flex: 0 1 auto; }
.rc-who { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; gap: 6px; }
.rc-who time { font-weight: 500; }
.rc-bub { background: var(--card); border-radius: 12px; padding: 10px 14px; font-weight: 500; overflow-wrap: anywhere; justify-self: start; }
.rc-bub.me { background: var(--ink); color: #fff; justify-self: end; }
.rc-bub.rc-rich { display: grid; gap: 8px; min-width: 240px; }
.rc-li { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.rc-li .rc-stt { margin-left: auto; }
.rc-sys { align-self: center; max-width: 94%; text-align: center; font-size: 13px; font-weight: 700; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; }

.rc-av { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.rc-av.hq { background: var(--ink); color: #fff; }
.rc-li .rc-av, .rc-people .rc-av, .rc-team .rc-av { width: 30px; height: 30px; font-size: 11px; }

.rc-cardm { background: var(--card); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.rc-cardm h3, .rc-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.rc-sub { font-weight: 800; color: var(--muted); font-size: 13px; }
.rc-line { color: var(--muted); }
.rc-hint { color: var(--muted); font-size: 13px; }
.rc-warn { color: #9A3A0C; background: var(--orange-soft); border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.rc-kv { display: flex; justify-content: space-between; gap: 12px; }
.rc-kv span { color: var(--muted); }
.rc-kv b { text-align: right; }
.rc-actions, .rc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-fld { display: grid; gap: 4px; min-width: 0; }
.rc-fld span { font-size: 13px; font-weight: 700; color: var(--muted); }
.rc-fld input { width: 100%; min-height: 46px; border: 0; background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 16px; outline: none; }
.rc-fld input:focus { background: var(--purple-soft); }
.rc-fld select { width: 100%; min-height: 46px; border: 0; background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 16px; outline: none; }
.rc-fld select:focus { background: var(--purple-soft); }
.rc-fld textarea { width: 100%; border: 0; background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 16px; outline: none; resize: vertical; min-height: 84px; line-height: 1.4; }
.rc-fld textarea:focus { background: var(--purple-soft); }
.rc-quickstart { justify-items: stretch; }
.rc-mic { border: 0; background: none; padding: 4px 0 0; display: grid; justify-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.rc-mic svg { width: 112px; height: 112px; padding: 32px; border-radius: 50%; background: var(--orange); color: #fff; transition: transform .15s ease; }
.rc-mic.on svg { background: var(--ink); color: var(--orange); transform: scale(1.06); animation: rc-pulse 1.2s ease-in-out infinite; }
@keyframes rc-pulse { 50% { transform: scale(.96); } }
.rc-btn.rc-big { min-height: 56px; font-size: 17px; width: 100%; }
.rc-quickstart .rc-link { justify-self: center; }
.rc-panel .rc-vol { background: var(--card); }
.rc-check { display: flex; align-items: center; gap: 8px; font-weight: 600; min-height: 36px; }
.rc-check input { width: 20px; height: 20px; accent-color: var(--purple); }
.rc-checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rc-checks legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0; margin-bottom: 4px; }
.rc-ok { color: var(--green); background: var(--green-soft); border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.rc-link { border: 0; background: none; padding: 6px 2px; min-height: 36px; color: var(--purple); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.rc-callrow { align-items: center; }
.rc-statusgrp { display: grid; gap: 6px; }
.rc-why p:last-child { line-height: 1.5; }
.rc-skip { align-self: flex-start; padding-left: 46px; }
.rc-typing { color: var(--muted); }
.rc-typing::after { content: '...'; }
.rc-labelrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.rc-labelrow .rc-btn.rc-sm { min-height: 32px; padding: 4px 10px; }
.rc-panel { display: grid; gap: 12px; }
.rc-tabs { display: flex; gap: 6px; background: var(--grey); border-radius: 12px; padding: 4px; }
.rc-tab { flex: 1; border: 0; min-height: 40px; border-radius: 9px; background: transparent; font-weight: 700; color: var(--muted); }
.rc-tab[aria-selected="true"] { background: var(--card); color: var(--ink); }
.rc-sheet-body { display: grid; gap: 12px; }
.rc-itemrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.rc-grow { flex: 1 1 140px; min-width: 0; }
.rc-qty { width: 110px; }
.rc-unit { width: 110px; }
.rc-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.rc-thumb { display: grid; gap: 6px; justify-items: center; }
.rc-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.rc-vol { display: grid; gap: 10px; background: var(--bg); border-radius: 12px; padding: 12px; }
.rc-volhead { display: flex; align-items: center; gap: 10px; }
.rc-phone { display: flex; gap: 8px; align-items: flex-end; }
.rc-phone .rc-fld input { background: var(--card); }

.rc-stt { margin-left: auto; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--grey); color: var(--muted); white-space: nowrap; }
.rc-stt.offered, .rc-stt.accepted { background: var(--purple-soft); color: var(--purple); }
.rc-stt.picked_up { background: var(--orange-soft); color: #B23E0A; }
.rc-stt.dropped_off { background: var(--green-soft); color: var(--green); }

.rc-quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.rc-quick .rc-btn { flex: none; border-radius: 999px; background: var(--card); }
.rc-composer { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 14px; padding: 6px 6px 6px 16px; }
.rc-composer input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; padding: 8px 0; outline: none; }
.rc-composer button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; display: grid; place-items: center; flex: none; }
.rc-composer button svg { width: 20px; height: 20px; }

.rc-card { background: var(--card); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.rc-lead { color: var(--muted); }
.rc-segs { display: flex; gap: 4px; height: 12px; }
.rc-segs i { display: block; border-radius: 4px; min-width: 0; }
.rc-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rc-legend div { background: var(--card); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.rc-legend b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rc-legend span { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.rc-legend span i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.rc-label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.rc-people, .rc-team { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rc-people li { background: var(--card); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.rc-team li { display: flex; align-items: center; gap: 10px; font-weight: 600; }

.rc-scrim { position: fixed; inset: 0; background: rgba(42, 24, 56, .45); z-index: 10; }
.rc-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; max-height: 88dvh; overflow-y: auto; background: var(--bg); border-radius: 14px 14px 0 0; display: flex; flex-direction: column; gap: 12px;
  padding: 16px max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
@media (min-width: 640px) { .rc-sheet { left: 50%; width: 600px; transform: translateX(-50%); } }
.rc-sheet-head { display: flex; justify-content: space-between; align-items: center; }
.rc-sheet-head h2 { font-weight: 800; font-size: 20px; }

@media (max-width: 520px) {
  .rc-row { max-width: 100%; gap: 8px; }
  .rc-row > .rc-av.hq { width: 30px; height: 30px; font-size: 11px; border-radius: 10px; }
  .rc-cardm { padding: 12px; }
  .rc-cardm .rc-vol { padding: 10px; }
}
@media (min-width: 1024px) {
  .rc { display: grid; grid-template-columns: 240px minmax(0, 1fr) 360px; }
  .rc-side, .rc-status { display: flex; flex-direction: column; gap: 12px; padding: 24px; overflow-y: auto; }
  .rc-main { max-width: none; padding: 20px 28px 16px; }
  .rc-brand-m, .rc-sheet, .rc-scrim { display: none !important; }
  .rc-side .rc-brand { font-size: 20px; margin-bottom: 14px; }
  .rc-chan { background: var(--card); border-radius: 12px; padding: 12px; }
  .rc-chan b { display: block; font-size: 15px; }
  .rc-chan small { color: var(--muted); font-weight: 600; }
  .rc-foot { margin-top: auto; font-size: 12.5px; color: var(--muted); }
  .rc-pin-open { display: none; }
  .rc-team-btn { display: none; }
  .rc-row { max-width: 72%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Volunteer page */
.v { max-width: 480px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 32px; display: grid; gap: 14px; }
.v h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.v .rc-actions .rc-btn { flex: 1; min-height: 56px; font-size: 17px; }
.v .rc-btn.rc-accept { background: var(--green); color: #fff; }
.v .rc-btn.rc-decline { background: var(--grey); }

/* Thin scrollbars that blend in: no white track, soft plum thumb */
* { scrollbar-width: thin; scrollbar-color: rgba(42, 24, 56, 0.22) transparent; }
::-webkit-scrollbar { width: 4px; height: 4px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background-color: rgba(42, 24, 56, 0.22); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(42, 24, 56, 0.45); }
html, body { background-color: var(--page, #FBE8D6); }
