:root {
  --ground: #EDF0EA;
  --surface: #FFFFFF;
  --sunk: #F4F6F2;
  --ink: #1B2420;
  --muted: #5B665F;
  --line: #DCE2D9;
  --frame: #CDD5CA;
  --btn: #1B2420;
  --onBtn: #FFFFFF;
  --btnEdge: #1B2420;
  --garden: #2B7745;
  --gardenTint: #E1EFE5;
  --steam: #5843BD;
  --steamTint: #EBE7FA;
  --warn: #8F5200;
  --warnTint: #FCEFD6;
  --info: #1D5DA3;
  --infoTint: #E2EDF9;
  --good: #2B7745;
  --goodTint: #E1EFE5;
  --hatch: #E3E7E0;
  --shadow: 0 1px 2px rgba(27, 36, 32, .06), 0 8px 24px rgba(27, 36, 32, .07);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #111513; --surface: #1A1F1C; --sunk: #151916; --ink: #E7ECE8; --muted: #9AA59E;
    --line: #2C3430; --frame: #2C3430; --btn: #33403A; --onBtn: #F7FAF8; --btnEdge: #5A6A61;
    --garden: #72C48F; --gardenTint: #1C3125; --steam: #AA9BF2; --steamTint: #27223F;
    --warn: #F0B65C; --warnTint: #372A12; --info: #8BB9EE; --infoTint: #172A40;
    --good: #72C48F; --goodTint: #1C3125; --hatch: #222824;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #111513; --surface: #1A1F1C; --sunk: #151916; --ink: #E7ECE8; --muted: #9AA59E;
  --line: #2C3430; --frame: #2C3430; --btn: #33403A; --onBtn: #F7FAF8; --btnEdge: #5A6A61;
  --garden: #72C48F; --gardenTint: #1C3125; --steam: #AA9BF2; --steamTint: #27223F;
  --warn: #F0B65C; --warnTint: #372A12; --info: #8BB9EE; --infoTint: #172A40;
  --good: #72C48F; --goodTint: #1C3125; --hatch: #222824;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

html { box-sizing: border-box; height: 100%; }
*, *::before, *::after { box-sizing: inherit; }
body {
  height: 100%;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--info); outline-offset: 2px; border-radius: 6px; }

/* ---------- app chrome ---------- */
.screen { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.inner { padding: 20px 16px 96px; display: flex; flex-direction: column; gap: 22px; } /* bottom room so a toast never covers the last button */
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.eyebrow { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
h1 { font: 750 28px/1.1 var(--display); margin: 2px 0 0; letter-spacing: -.01em; text-wrap: balance; }
h2.section { font: 700 13px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.lede { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.blurb { margin: 0; font-size: 15px; line-height: 1.45; }
.notYou { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin-top: -8px; }
.notYou .hint { font-size: 14px; }
/* Filled from the account on the signed-in Join: plain white, not focusable or editable. */
.field input[readonly] { background: var(--surface); color: var(--ink); pointer-events: none; }
.groupTitle { margin: 0; font: 750 22px/1.15 var(--display); letter-spacing: -.01em; text-wrap: balance; }

.tabbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px 4px 8px;
}
.tab {
  position: relative; background: none; border: 0; padding: 6px 2px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 12px; color: var(--muted); border-radius: 10px;
}
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar[hidden] { display: none; }
.tab[aria-disabled="true"] { opacity: .35; cursor: default; }
.tab[aria-current="page"] { color: var(--ink); font-weight: 700; }
.tab[aria-current="page"] svg { stroke-width: 2.2; }
.tab .count {
  position: absolute; top: 2px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--warn); color: var(--surface); font-size: 11px; font-weight: 700; line-height: 18px;
}

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--btnEdge);
  background: var(--btn); color: var(--onBtn); font-weight: 700; font-size: 15.5px;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.full { width: 100%; }
.linkBtn { flex: none; white-space: nowrap; background: none; border: 0; padding: 6px 0; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.linkBtn.strong { color: var(--ink); font-weight: 700; }
.calBtn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px; font-size: 13.5px; font-weight: 700;
}
.calBtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
a.calBtn { color: var(--ink); text-decoration: none; }

.team { --c: var(--ink); --t: var(--sunk); }
.team.green { --c: var(--garden); --t: var(--gardenTint); }
.team.violet { --c: var(--steam); --t: var(--steamTint); }
.team.amber { --c: var(--warn); --t: var(--warnTint); }
.team.blue { --c: var(--info); --t: var(--infoTint); }
/* One label everywhere: "STEAM (Mr. Alvarez)", one colour, name bold, teacher regular. */
.tlabel { color: var(--c); }
/* Plain inline text with an inline-block dot, not a flexbox: a flexbox would take its baseline
   from the dot (its first item) and push the name below the teacher label beside it. */
.teamName { font-weight: 700; color: var(--c); white-space: nowrap; }
.teamName::before { content: ""; display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--c); margin-right: .4em; vertical-align: .12em; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.badge.warn { background: var(--warnTint); color: var(--warn); }
.badge.info { background: var(--infoTint); color: var(--info); }
.badge.good { background: var(--goodTint); color: var(--good); }
.badge.muted { background: var(--sunk); color: var(--muted); border: 1px solid var(--line); }
.badge.org { background: var(--t); color: var(--c); vertical-align: middle; }

/* ---------- Edit Dates (organizer) ---------- */
.editBar { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--warnTint); color: var(--warn); font-weight: 700; border-radius: 12px; padding: 8px 8px 8px 14px; }
.editBar .linkBtn { color: var(--warn); margin-right: 10px; }
.shift.editing .who { gap: 6px; }
.shift.removedDate .dd, .shift.removedDate .dw { color: var(--muted); text-decoration: line-through; }
.shift .muted { color: var(--muted); }
/* "Want an email when a spot opens?" on Open Spots: the field and its button on one line. */
.notifyPair { display: flex; gap: 8px; align-items: center; }
.notifyPair input { flex: 1; min-width: 0; }

/* The organizer's group size line at the top of the Schedule tab, and its Save / Cancel. */
.sizeLine { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.sizeActions { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; }
/* A number with big − and + buttons (Start a Group, group size). */
.numStep { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; }
.numStep button { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; }
.field .numStep input { text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.numStep input::-webkit-inner-spin-button, .numStep input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.stepper b { color: var(--ink); min-width: 1ch; text-align: center; }
.stepper button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1; }
.addDate { padding: 8px 14px; }
.addDate label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c); }
.addDate svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.addDate input { margin-left: auto; font: inherit; color: var(--ink); background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; max-width: 170px; }

.teacher { color: var(--c); font-weight: 400; white-space: nowrap; }
h1 .teacher, h3 .teacher { font-weight: 500; }

/* ---------- date column (weekday or Today/Tomorrow, then Oct 13) ---------- */
.dcol { flex: none; width: 72px; display: grid; gap: 1px; align-content: start; font-variant-numeric: tabular-nums; }
.dw { font-size: 13px; font-weight: 700; color: var(--muted); }
.dw.soon { color: var(--ink); }
.dd { font-size: 16px; font-weight: 700; color: var(--ink); }

/* ---------- next-up card ---------- */
.next {
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow);
  border-top: 6px solid var(--c); padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.next .when { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.next .big { font: 750 30px/1.05 var(--display); letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.facts { display: grid; gap: 4px; color: var(--muted); font-size: 15px; }
.facts b { color: var(--ink); font-weight: 700; }

/* ---------- lists ---------- */
.group { background: var(--surface); border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.group > * + * { border-top: 1px solid var(--line); }
.rowAct {
  flex: none; white-space: nowrap; min-height: 28px; padding: 0 10px;
  border-radius: 8px; border: 1.5px solid var(--btnEdge); background: var(--btn); color: var(--onBtn);
  font-size: 13px; font-weight: 700;
}
.row .rowSub { white-space: nowrap; }
.row .rowSub.wrap { white-space: normal; }
.rowAct.quiet { background: transparent; color: var(--ink); }
.rowSub .ok { color: var(--good); }
.rowMain { flex: 1; min-width: 0; display: grid; gap: 4px; }
.rowFoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 28px; } /* button height, so the row doesn't shrink when the button goes */
.rowSub { color: var(--muted); font-size: 14px; }
.row.dropped .dd { color: var(--muted); }
.row.dropped .teamName { color: var(--muted); text-decoration: line-through; }
.row.dropped .teamName::before { background: var(--muted); }
.confirm { padding: 12px 14px 14px; background: var(--sunk); display: grid; gap: 10px; font-size: 14.5px; }
.confirm p { margin: 0; }
.confirm .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.summary { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.summary .pill { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* ---------- open spots ---------- */
.rule { background: var(--infoTint); color: var(--ink); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; display: grid; gap: 6px; }
.rule b { color: var(--info); }
.rule p { margin: 0; }
.spot { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 12px; }
.spot .top { display: flex; gap: 12px; align-items: center; }
.spot .meta { font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.spot .outcome { font-size: 14.5px; margin: 0; }
.mockSkip { background: none; border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; color: var(--muted); justify-self: start; }
.empty { color: var(--muted); font-size: 14.5px; padding: 14px; }
.emptyCard { padding: 18px 16px; display: grid; gap: 10px; justify-items: start; }
.emptyCard b { font-size: 17px; }
.emptyCard p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- teams ---------- */
.teamLink {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--c);
  border-radius: 16px; padding: 16px;
}
.tl { display: grid; gap: 3px; }
.tlName { font: 750 21px/1.15 var(--display); color: var(--c); }
.chev { font-size: 28px; line-height: 1; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 9px; padding: 9px; font-weight: 700; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.shift { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 11px 14px; font-size: 15px; }
.shift .line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rowAct.sm { min-height: 28px; padding: 0 10px; font-size: 13px; border-radius: 8px; border-width: 1px; }
.shift .who { display: grid; gap: 3px; }
.shift .kid { color: var(--muted); }
.shift .open { color: var(--warn); font-weight: 700; }
.shift .you { font-weight: 700; color: var(--ink); }
.shift.mine { background: var(--t); }
.shift.off .dd, .shift.off .who { color: var(--muted); font-weight: 400; }
.person { padding: 12px 14px; display: grid; gap: 3px; }
.person.organizer { background: var(--t); }
.nameRow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.editLink { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: -14px 4px -10px 0; }
.about { margin: 6px 0 0; font-size: 15px; color: var(--ink); }
.about.small { font-size: 14px; color: var(--ink); opacity: .85; margin-top: 4px; }
.about .linkBtn { padding: 0; margin-left: 6px; }
.about .muted { color: var(--muted); }
.about.editing { display: flex; gap: 8px; align-items: center; }
.about.editing input { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.editLink .dot { color: var(--muted); }
.person.organizer .name { font-size: 17px; }
.person .name { font-weight: 700; }
.person .kids { color: var(--muted); font-size: 14px; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14.5px; }
.contact span { min-width: 0; overflow-wrap: anywhere; user-select: all; }
.copy {
  flex: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 32px; height: 30px; display: inline-grid; place-items: center; color: var(--muted);
}
.copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- team cards ---------- */
.teamCard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.teamCard .band { background: var(--t); padding: 14px 16px; display: grid; gap: 3px;
  /* A line in the group's colour, so a header and a tinted "You" row under it never run together. */
  border-bottom: 1.5px solid color-mix(in srgb, var(--c) 35%, transparent); }
.teamCard .band h3 { margin: 0; font: 750 21px/1.15 var(--display); color: var(--c); }
.teamCard .band .rowSub { color: var(--ink); opacity: .8; }
.rows > * + *, .group > * + * { border-top: 1px solid var(--line); }
.cardLink {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: 0; border-top: 1px solid var(--line); padding: 13px 16px;
  font-weight: 700; color: var(--c); text-align: left;
}
.cardLink > span:last-child { font-size: 22px; line-height: 1; }
.cardLink .n { color: var(--muted); font-weight: 400; }

/* ---------- profile form ---------- */
.field { display: grid; gap: 4px; padding: 10px 14px; }
.fieldHead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fieldHead .lbl, .field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.always, .hint { font-size: 12.5px; color: var(--muted); }
.switch { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 2px 0; }
.switch .swLbl { font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 44px; text-align: right; }
.switch .knob { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--line); transition: background .15s; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch[aria-checked="true"] .knob { background: var(--good); }
.switch[aria-checked="true"] .knob::after { transform: translateX(16px); }
.switch[aria-checked="true"] .swLbl { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .switch .knob, .switch .knob::after { transition: none; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; min-width: 0; }
.cardLink.plainRow { color: var(--ink); font-weight: 400; }
.group > .cardLink.plainRow:first-child { border-top: 0; }
.withIcon { display: inline-flex; align-items: center; gap: 10px; }
.withIcon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; flex: none; }
.kidRow { display: flex; gap: 8px; align-items: center; }
.kidRow .copy { height: 40px; width: 40px; font-size: 18px; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--sunk);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
.field textarea { min-height: 76px; resize: vertical; }
.field .pair input { min-width: 0; }
.field .teacherPair { grid-template-columns: 96px 1fr; }

/* ---------- organizer: members ---------- */
.member { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.member .who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.member .who b { font-weight: 700; }
.member .who span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.member .acts { display: flex; gap: 6px; flex: none; align-items: center; }
a.rowAct { text-decoration: none; display: inline-flex; align-items: center; }
.btn[disabled] { opacity: .45; cursor: default; }

/* ---------- sheet + toast ---------- */
.scrim { position: absolute; inset: 0; background: rgba(10, 14, 12, .45); display: flex; align-items: flex-end; z-index: 5; }
.sheet { width: 100%; background: var(--surface); border-radius: 22px 22px 0 0; padding: 20px 16px 24px; display: grid; gap: 14px; max-height: 88%; overflow-y: auto; }
.sheet h2 { margin: 0; font: 750 22px/1.15 var(--display); }
.sheet p { margin: 0; color: var(--muted); font-size: 15px; }
.feed { display: flex; gap: 8px; align-items: center; background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 10px 12px; }
.feed code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; user-select: all; }
.how { display: grid; gap: 10px; font-size: 14.5px; }
.how div { display: grid; gap: 2px; }
.how b { font-size: 14.5px; }
.how span { color: var(--muted); }
.toast {
  position: absolute; left: 16px; right: 16px; bottom: 84px; z-index: 6;
  background: var(--btn); color: var(--onBtn); border-radius: 12px; padding: 12px 14px;
  font-size: 14.5px; box-shadow: var(--shadow); border: 1px solid var(--btnEdge);
  animation: rise .2s ease-out;
}
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---------- the app shell: full-screen on a phone, a phone-sized column on a desktop ---------- */
body { margin: 0; min-height: 100dvh; }
.app { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 100%; margin: 0 auto; background: var(--ground); }
.screen { min-height: 0; }
@media (min-width: 761px) {
  body { display: grid; place-items: start center; padding: 24px 16px; min-height: 100dvh; }
  .app { width: 420px; height: min(880px, calc(100dvh - 48px)); border: 1px solid var(--frame); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
}
.devBar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; row-gap: 2px; padding: 5px 14px; font-size: 12px; color: var(--muted); background: var(--sunk); border-bottom: 1px dashed var(--line); }
.devBar a { color: var(--muted); }
.devBar b { color: var(--ink); }
a.tab { text-decoration: none; }
.tab .count { left: calc(50% + 8px); }
.row form, .shift form, .person form, .confirm form, .actions form { display: contents; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.field input:invalid { border-color: var(--line); }
.err { background: var(--warnTint); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; font-weight: 700; }
/* The slim bar at the top of every page: the name, and Help. A rounded strip in the soft green
   tint, inset from the edges, so it frames the app without shouting. */
.appBar { display: flex; justify-content: space-between; align-items: center; height: 34px; margin: 8px 12px 0; padding: 0 5px 0 14px; border-radius: 12px; background: var(--gardenTint); color: var(--garden); }
.appName { font: 750 14px/1 var(--display); letter-spacing: .01em; }
.helpBtn { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 7px; border-radius: 999px; background: var(--surface); color: var(--garden); font-size: 13px; font-weight: 700; text-decoration: none; }
.helpBtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* Home page: centred, the actions in the middle, the small lines at the foot of the screen. */
.landing { min-height: 100%; text-align: center; padding-bottom: 28px; }
.landingTop { display: grid; gap: 18px; justify-items: center; padding-top: 24px; }
.landingTop h1 { margin: 0; }
.landingIcon { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }
.landing .blurb { font-size: 16.5px; max-width: 34ch; text-wrap: balance; }
.landing .actions { display: grid; gap: 10px; width: 100%; margin-top: 4px; }
.landingFoot { margin-top: auto; display: grid; gap: 8px; }
.hint.joining { margin: 0; font-size: 14px; text-align: center; }
.hint.joining a { color: var(--ink); text-underline-offset: 3px; }
.field .hint a { color: inherit; text-underline-offset: 2px; }
.privacy section p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.privacy a { color: var(--ink); text-underline-offset: 3px; }
a.btn { color: var(--onBtn); text-decoration: none; }
a.cardLink { text-decoration: none; }
a.linkBtn { display: inline-block; }
a.rowAct { text-decoration: none; display: inline-flex; align-items: center; }
.contact a { color: inherit; text-decoration: none; }
.shift .ph { color: var(--muted); font-style: italic; }
.fair { width: 100%; border-collapse: collapse; font-size: 14px; }
.fair td, .fair th { padding: 6px 14px; text-align: left; border-top: 1px solid var(--line); }
.fair th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fair td + td, .fair th + th { text-align: right; font-variant-numeric: tabular-nums; width: 1%; white-space: nowrap; }
/* dev page */
/* Dev: the daily email, previewed inside the app frame. */
.emailPreview { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: 16px; background: #EDF0EA; }
/* Dev: two phones side by side (/dev/phones). */
.phones { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; padding: 24px 16px 8px; }
.phones iframe { width: 400px; max-width: 100%; height: min(860px, calc(100vh - 80px)); border: 1px solid var(--line); border-radius: 24px; background: var(--ground); box-shadow: var(--shadow); }
.phonesFoot { text-align: center; margin: 8px 0 24px; font-size: 14px; }
.phonesFoot a { color: var(--muted); }
.dev { padding: 20px 16px 40px; display: grid; gap: 18px; max-width: 760px; margin: 0 auto; }
.dev h1 { margin: 0; }
.dev h2 { font: 700 13px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.dev .persona { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.dev .persona .who { display: grid; gap: 2px; min-width: 0; }
.dev .persona .who span { color: var(--muted); font-size: 13.5px; }
.dev .persona form { display: flex; gap: 6px; flex: none; }
.dev code { font-size: 12.5px; overflow-wrap: anywhere; }
.dev .today { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; }
.dev .today input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--sunk); color: var(--ink); }
.seg a.segLink { display: block; text-align: center; text-decoration: none; border-radius: 9px; padding: 9px; font-weight: 700; color: var(--muted); }
.seg a.segLink[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
form.row { display: flex; }
/* The hidden attribute must win over any display rule (sheets are display:flex, confirms grid). */
[hidden] { display: none !important; }
.shift.editing .who { gap: 6px; }
.editing .removedDate, .shift.removedDate .who > span:not(.line) { color: var(--muted); }
/* dev View-as bar */
.devBar .viewAs { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.devBar .viewAs form { display: contents; }
.devBar .viewAs button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-size: 12px; color: var(--muted); }
.devBar .viewAs button[aria-pressed="true"] { background: var(--btn); color: var(--onBtn); border-color: var(--btnEdge); font-weight: 700; }
.devBar .devMeta { white-space: nowrap; }
