/* 1Yard — light, calm "neighbourhood garden" look.
   Layout: logged-in users get a left sidebar + main column; public pages get a slim top bar
   and one centered column. Serif display for headings, clean sans for everything else. */
:root {
  --bg: #FAFAF6;
  --surface: #FFFFFF;
  --sunk: #F4F5EF;
  --line: #E7E9E0;
  --fg: #1F2A20;
  --muted: #5F6B60;
  --forest: #1F4D2B;          /* primary buttons, active pills */
  --forest-ink: #FFFFFF;
  --leaf: #4F7A2C;            /* accents, links, checks */
  --sage: #EEF3E6;            /* green tint (banner, nav active, stat 1) */
  --sage-2: #DCE8CC;
  --sky: #EAF1FA; --sky-fg: #2A5592;
  --lilac: #EFEEFA; --lilac-fg: #4E4A9A;
  --peach: #FDF1E2; --peach-fg: #9A5B12;
  --amber-bg: #FDF0D5; --amber-fg: #8A5A00;
  --rose-bg: #FCE6E2; --rose-fg: #B4382C;
  --green-bg: #E3F0D6; --green-fg: #2F5A17;
  --grey-bg: #EEEFEA; --grey-fg: #5B6152;
  --shadow: 0 1px 2px rgba(31, 77, 43, .05), 0 6px 20px rgba(31, 77, 43, .05);
  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15.5px; line-height: 1.5; }
h1, h2, h3 { margin: 0; text-wrap: balance; color: var(--fg); }
h1 { font-family: var(--display); font-weight: 400; font-size: 2.4rem; line-height: 1.1; letter-spacing: -.005em; }
h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
h3 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; }
p { margin: 0; }
a { color: var(--leaf); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- shell (logged in) ---------- */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.logo { display: flex; align-items: center; gap: 10px; padding: 22px 24px 18px; background: none; border: 0; cursor: pointer; font-family: var(--display); font-size: 1.85rem; color: var(--forest); text-decoration: none; }
.logo svg { width: 46px; height: 36px; }
.side-nav { display: grid; gap: 4px; padding: 6px 12px; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; border: 0; background: none; cursor: pointer; text-align: left; font-size: .98rem; font-weight: 500; color: var(--fg); }
.nav-item:hover { background: var(--sunk); }
.nav-item.on { background: var(--sage); font-weight: 700; color: var(--forest); }
.nav-item .count { margin-left: auto; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 10px 28px; }
.side-art { margin-top: auto; position: relative; }
.side-art svg { display: block; width: 100%; height: auto; }
.side-art .tag-line { position: absolute; left: 24px; bottom: 22px; }
.side-art .tag-line b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--forest); }
.side-art .tag-line span { font-size: .9rem; color: var(--muted); }

.main { min-width: 0; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); }
.mtop { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 4px 8px 14px; }
.who { font-size: .95rem; color: var(--fg); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--sage-2); color: var(--forest); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; }
.content { max-width: 1160px; margin: 0 auto; display: grid; gap: 24px; padding: 0 8px; }

/* ---------- public pages ---------- */
.ptop { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1160px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
.ptop .logo { padding: 14px 0; }
.pwrap { padding: 0 max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); }
.pwrap .content { max-width: 720px; padding: 0; }

/* season banner */
.seasonbar { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--sage); border: 1px solid var(--sage-2); color: var(--fg); border-radius: 14px; padding: 12px 48px; position: relative; font-size: .95rem; margin-bottom: 8px; text-align: center; }
.seasonbar svg { color: var(--leaf); }
.seasonbar b { color: var(--forest); }
.seasonbar .x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 8px; display: grid; }
.seasonbar .x:hover { background: var(--sage-2); }
.pwrap .seasonbar, .ptop + .seasonwrap .seasonbar { max-width: 1160px; margin: 0 auto 8px; }
.seasonwrap { padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }

/* ---------- common ---------- */
.wrap { display: grid; gap: 22px; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.head p { color: var(--muted); margin-top: 8px; font-size: 1.02rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.label { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; background: var(--forest); color: var(--forest-ink); padding: 10px 18px; border-radius: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn:hover:not(:disabled) { filter: brightness(1.12); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--fg); border-color: var(--line); font-weight: 600; }
.btn.ghost:hover:not(:disabled) { background: var(--sunk); filter: none; }
.btn.danger { background: var(--rose-bg); color: var(--rose-fg); border-color: transparent; font-weight: 600; }
.btn.danger:hover { filter: brightness(.97); }
.btn.locked { background: var(--grey-bg); color: var(--grey-fg); opacity: 1; }
.btn.busy, .bigbtn.busy { opacity: .6; cursor: progress; }

.chip { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.c-amber { background: var(--amber-bg); color: var(--amber-fg); }
.c-rose { background: var(--rose-bg); color: var(--rose-fg); }
.c-sky { background: var(--sky); color: var(--sky-fg); }
.c-green { background: var(--green-bg); color: var(--green-fg); }
.c-grey { background: var(--grey-bg); color: var(--grey-fg); }
.tag { font-size: .8rem; padding: 3px 10px; border-radius: 8px; background: var(--sunk); }
.tag.have { background: var(--green-bg); color: var(--green-fg); font-weight: 600; }
.tag.warn { background: var(--amber-bg); color: var(--amber-fg); font-weight: 600; }

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; gap: 16px; align-items: flex-start; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); border: 1px solid transparent; }
.stat .sico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.stat .sico svg { width: 26px; height: 26px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.5rem; line-height: 1; font-variant-numeric: tabular-nums; margin: 4px 0 8px; }
.stat span { font-size: .95rem; color: var(--fg); line-height: 1.35; }
.stat small { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.s-green { background: var(--sage); } .s-green .sico { background: var(--sage-2); color: var(--forest); }
.s-sky { background: var(--sky); } .s-sky .sico { background: #D6E5F7; color: var(--sky-fg); }
.s-lilac { background: var(--lilac); } .s-lilac .sico { background: #E0DEF6; color: var(--lilac-fg); }
.s-peach { background: var(--peach); } .s-peach .sico { background: #FBE3C4; color: var(--peach-fg); }
.stat.alert { border-color: #F2C98B; }

.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; gap: 6px; }
.tabs button { border: 0; background: none; padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--fg); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--forest); font-weight: 700; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 8px; border-radius: 999px; background: #FBE3C4; color: var(--peach-fg); font-size: .78rem; font-weight: 700; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { border: 0; background: var(--sunk); padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: .95rem; font-weight: 500; }
.filters button[aria-pressed="true"] { background: var(--forest); color: var(--forest-ink); font-weight: 600; }

.list { display: grid; gap: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
.quote { background: var(--sunk); border-radius: 12px; padding: 12px 14px; font-size: .94rem; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; font-size: .92rem; }
.kv div span { display: block; color: var(--muted); font-size: .76rem; }
.side-panel { display: grid; gap: 10px; background: var(--sage); border-radius: 14px; padding: 16px; }
.side-panel label { display: grid; gap: 4px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.side-panel input, .side-panel select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); width: 100%; }

.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 16px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--sunk); }
td { padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }
td .acts { display: grid; grid-template-columns: auto auto; gap: 10px; justify-content: end; }
td .acts .btn.danger { grid-column: 2; }

/* volunteer progress */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.steps li { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.steps li b { display: block; font-size: .95rem; color: var(--fg); }
.steps li.done { background: var(--sage); border-color: var(--sage-2); }
.steps li.done b::after { content: " ✓"; color: var(--leaf); }
.steps li.now { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }

.banner { background: var(--sage); border-radius: 14px; padding: 12px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.note { border-left: 4px solid var(--leaf); background: var(--surface); padding: 14px 16px; border-radius: 0 14px 14px 0; box-shadow: var(--shadow); }

/* forms */
.field { display: grid; gap: 6px; }
.lbl { font-weight: 600; font-size: .94rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], textarea, select.in { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
input:focus, textarea:focus, select:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px var(--sage-2); }
textarea { min-height: 96px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.check { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .94rem; background: var(--surface); }
.check:has(input:checked) { background: var(--sage); border-color: var(--sage-2); }
.check input { accent-color: var(--forest); }

.module { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.module .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--sage); display: grid; place-items: center; font-weight: 700; color: var(--forest); font-size: .85rem; }
.drop { border: 1.5px dashed var(--sage-2); border-radius: 14px; padding: 16px; background: var(--sunk); display: grid; gap: 8px; }
.lock { text-align: center; padding: 34px 20px; background: var(--sage); border-radius: 18px; display: grid; gap: 6px; justify-items: center; }

/* job cards (volunteer board) */
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.job { display: grid; gap: 12px; align-content: start; }
.job.priority { border-color: #F2C98B; box-shadow: 0 0 0 3px var(--peach); }
.job .when { font-weight: 700; font-size: 1.05rem; }
.job dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; margin: 0; font-size: .9rem; }
.job dt { color: var(--muted); }
.job dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot { border-radius: 12px; padding: 10px 12px; font-size: .84rem; line-height: 1.35; border: 1.5px solid var(--line); min-width: 0; text-align: center; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 84px; }
.slot b { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.slot.exp { background: var(--green-bg); border-color: transparent; color: var(--green-fg); text-align: left; justify-items: start; align-content: start; }
.slot.trainee { background: var(--sky); border-color: transparent; color: var(--sky-fg); text-align: left; justify-items: start; align-content: start; }
.slot.trainee b, .slot.exp b { color: var(--fg); }
.slot.empty { border-style: dashed; border-color: #CFE0BB; color: var(--muted); }
.slot.empty b { color: var(--green-fg); }
.slot.exp-only { border-color: #EFC27E; color: var(--peach-fg); }
.slot.exp-only b { color: var(--amber-fg); }
.slot .plus { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 1rem; line-height: 1; margin-bottom: 2px; }
.job .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 22px; text-align: center; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--surface); }
.confirm { background: var(--rose-bg); color: var(--rose-fg); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.confirm.ok { background: var(--sage); color: var(--fg); }
.confirm select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.wins { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.wins li::before { content: "• "; color: var(--leaf); font-weight: 700; }
.picker { background: var(--sage); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.picker select { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); width: 100%; }
.alertline { background: var(--amber-bg); color: var(--amber-fg); border-radius: 12px; padding: 9px 12px; font-size: .9rem; font-weight: 600; }
.call { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.call .phone { font-family: var(--display); font-size: 1.5rem; color: var(--forest); }
.winrows { display: grid; gap: 6px; }
.winrows .row { flex-wrap: nowrap; }
.winrows input, .winrows select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; width: auto; }
.bigstat { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--forest); }

/* ---------- client screens: big, plain, one question per screen ---------- */
.client { font-size: 19px; line-height: 1.55; }
.client h1 { font-size: 2.6rem; }
.client h2 { font-size: 1.75rem; }
.client .muted { color: var(--fg); opacity: .78; }
.bigbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 66px; width: 100%; padding: 14px 22px; font-size: 1.2rem; font-weight: 700; border-radius: 16px; border: 2px solid transparent; background: var(--forest); color: var(--forest-ink); cursor: pointer; }
.bigbtn.ghost { background: var(--surface); color: var(--fg); border-color: var(--line); }
.bigbtn:disabled { opacity: .45; cursor: not-allowed; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; gap: 14px; text-align: left; min-height: 78px; padding: 14px 18px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; font-size: 1.08rem; font-weight: 600; }
.tile .em { font-size: 1.8rem; line-height: 1; }
.tile small { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }
.tile[aria-pressed="true"] { border-color: var(--forest); background: var(--sage); box-shadow: inset 0 0 0 1.5px var(--forest); }
.tile[aria-pressed="true"]::after { content: "✓"; margin-left: auto; font-size: 1.4rem; color: var(--forest); font-weight: 700; }
.client input[type=text], .client input[type=email], .client input[type=tel], .client textarea { font-size: 1.1rem; padding: 15px 16px; border-width: 2px; border-radius: 14px; }
.client .lbl { font-size: 1.05rem; }
.wiz-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bar { height: 10px; border-radius: 99px; background: var(--sage); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--forest); border-radius: 99px; }
.wiz-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.err { color: var(--rose-fg); background: var(--rose-bg); padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.toolrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); }
.yn { display: flex; gap: 8px; }
.yn button { min-width: 86px; min-height: 54px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.yn button[aria-pressed="true"] { background: var(--forest); color: var(--forest-ink); border-color: var(--forest); }
.summary > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.summary > div:last-child { border-bottom: 0; }
.summary span { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.linkbtn { background: none; border: 0; color: var(--leaf); text-decoration: underline; cursor: pointer; font-weight: 600; font-size: 1rem; padding: 4px; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.timeline div { text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); }
.timeline div i { display: block; height: 8px; border-radius: 99px; background: var(--sage); margin-bottom: 6px; }
.timeline div.on { color: var(--fg); }
.timeline div.on i { background: var(--forest); }
.thanks { background: var(--sage); border: 1px solid var(--sage-2); border-radius: 18px; padding: 22px; display: grid; gap: 6px; }
.agree { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; background: var(--surface); }
.agree input { width: 26px; height: 26px; flex: none; margin-top: 2px; accent-color: var(--forest); }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.dayc { border: 2px solid var(--line); border-radius: 16px; background: var(--surface); }
.dayc.on { border-color: var(--forest); background: var(--sage); }
.dbtn { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; padding: 14px 16px; font-size: 1.08rem; font-weight: 700; text-align: left; cursor: pointer; min-height: 62px; }
.dbtn:disabled { opacity: .4; cursor: not-allowed; }
.dayc.on .dbtn::after { content: "✓"; color: var(--forest); font-size: 1.3rem; }
.parts { display: flex; gap: 6px; padding: 0 12px 12px; }
.parts button { flex: 1; min-height: 54px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; font-size: .95rem; line-height: 1.2; }
.parts button small { display: block; font-weight: 400; font-size: .78rem; }
.parts button[aria-pressed="true"] { background: var(--forest); color: var(--forest-ink); border-color: var(--forest); }
.home-vol { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: 15.5px; }
.home-vol h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.linkbox { display: grid; gap: 8px; background: var(--surface); border: 2px dashed var(--sage-2); border-radius: 16px; padding: 16px; }
.linkbox input { font-size: .95rem !important; padding: 10px 12px !important; }
.authcard { max-width: 460px; width: 100%; margin: 24px auto 0; }
.loading { text-align: center; padding: 80px 0; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--forest); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 500; transition: .2s; pointer-events: none; max-width: calc(100% - 32px); z-index: 20; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.foot-note { text-align: center; color: var(--muted); font-size: .85rem; padding-top: 12px; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .side .logo { padding: 10px 14px; font-size: 1.4rem; }
  .side .logo svg { width: 34px; height: 28px; }
  .side-nav { display: flex; padding: 6px; gap: 2px; }
  .nav-item { padding: 9px 12px; white-space: nowrap; font-size: .9rem; gap: 8px; }
  .side hr, .side-art { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2, .split, .call, .home-vol { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
  .client h1 { font-size: 2rem; }
  .stat { padding: 16px; } .stat .sico { width: 44px; height: 44px; } .stat b { font-size: 2rem; }
  .who { display: none; }
  .seasonbar { padding: 10px 40px 10px 14px; font-size: .88rem; }
}
@media (max-width: 440px) { .stats { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.job h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; }
.job .chip { flex: none; }

/* ---------- notification bell ---------- */
.bell-wrap { position: relative; }
.bellbtn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--forest); }
.bellbtn:hover { background: var(--sage); }
.bellbtn .dot { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--rose-fg); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.bellpanel { position: absolute; right: 0; top: 52px; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(31, 77, 43, .16); z-index: 50; }
.bellhead { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.notif { display: grid; gap: 2px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; padding: 11px 14px; cursor: pointer; }
.notif:hover { background: var(--sunk); }
.notif.unread { background: var(--sage); }
.notif.unread .msg { font-weight: 600; }
.notif.urgent { border-left-color: var(--rose-fg); }
.notif .urg { color: var(--rose-fg); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.notif .when { font-size: .78rem; color: var(--muted); }

/* ---------- call notes, crew reports, calendar ---------- */
.anotes { margin-top: 10px; display: grid; gap: 6px; }
.anote { font-size: .88rem; background: var(--sunk); border-radius: 8px; padding: 6px 9px; }
.anotes .in { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-width: 0; flex: 1; }
.report { margin-top: 8px; font-size: .88rem; background: var(--sky); border-radius: 8px; padding: 7px 10px; display: grid; gap: 2px; }
.report.warn { background: var(--rose-bg); color: var(--rose-fg); }
.calrow { gap: 8px; }
.calrow .btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.flash { animation: flash 2.4s ease-out; }
tr.flash td { animation: flashbg 2.4s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--leaf); } 100% { box-shadow: var(--shadow); } }
@keyframes flashbg { 0% { background: var(--sage-2); } 100% { background: transparent; } }
@media (max-width: 720px) {
  .bellpanel { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; }
}
.pwshow { font-size: 1.15rem; font-weight: 700; background: var(--surface); border-radius: 8px; padding: 6px 10px; justify-self: start; user-select: all; }

/* ---------- levels, directory, thank-yous ---------- */
.cartag { display: block; font-size: .78rem; margin-top: 2px; }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.person { display: grid; gap: 6px; align-content: start; }
.pstats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; color: var(--muted); }
.pstats b { color: var(--fg); }
.thanks-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.thank { display: grid; gap: 8px; background: var(--peach); }
.tmsg { font-family: var(--display); font-size: 1.15rem; line-height: 1.35; }
.thanks-done { font-size: 1.1rem; text-align: center; }
.levelcard .chip { font-size: 1rem; padding: 6px 14px; }
.prog { display: grid; gap: 4px; font-size: .92rem; }
.prog .bar { height: 10px; background: var(--sunk); border-radius: 6px; overflow: hidden; }
.prog .bar i { display: block; height: 100%; background: var(--leaf); border-radius: 6px; }
@media print {
  .side, .mtop, .seasonbar, .noprint, .foot-note, #toast { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .card, .stat { box-shadow: none; border: 1px solid #ddd; }
}

/* Public pages (request form, request status, log in, apply) use the homepage's type. */
.ptop, .pwrap { --display: "Fraunces", Georgia, serif; --body: "Atkinson Hyperlegible", system-ui, sans-serif; font-family: var(--body); }
/* iPhone Safari zooms into text boxes under 16px; keep them at 16px+ on phones. */
@media (max-width: 720px) { input, select, textarea { font-size: max(16px, 1em); } }

/* My record: milestone path */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ladder li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 0 0 22px; }
.ladder li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; border-left: 2px dashed var(--line); }
.ladder li.done:not(:last-child)::before { border-left: 2px solid var(--leaf); }
.ladder .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); font-size: 1.1rem; }
.ladder li.done .dot { background: var(--leaf); border-color: var(--leaf); color: #fff; font-weight: 700; }
.ladder li.here .dot { box-shadow: 0 0 0 4px var(--sage-2); }
.ladder li:not(.done) b { color: var(--muted); }
.howlevels { background: var(--sage); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; font-size: .92rem; }
