@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* =============================================================================
   Merz Institute scheduler
   One type scale:   12  14  16  20  28  40   (regular and medium only)
   One space scale:  4   8   12  16  24  32  48
   ========================================================================== */
:root {
  color-scheme: light;
  --paper: #f4f4ee; --stone: #e7e5d9; --surface: #ffffff;
  --ink: #292929; --muted: #5f5e57; --line: #e4e3dc;
  --accent: #416644; --action: #4c5e46; --forest: #263b28; --moss-tint: #e3eadd;
  --danger: #a33a2c; --flash: #e3eadd; --focus: #2f7ae5; --field: #c9c8be;
  --paint: #416644; --pick: #416644; --pick-soft: #b7cdb0;
  --h0: #fbfbf8; --h1: #eceadf; --h2: #d8d5c4; --h3: #bdb9a3; --h4: #9c977e;
  --heat-lo: #fbfbf8; --heat-hi: #9c977e;
  --empty: repeating-linear-gradient(135deg, transparent 0 4px, #dcdacd 4px 5px);
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --cell: 34px; --cell-h: 18px;

  --text-xs: 0.75rem;   /* 12  small capital labels */
  --text-sm: 0.875rem;  /* 14  everything else: body, fields, buttons, helpers */
  --text-md: 1rem;      /* 16  page intro text */
  --text-lg: 1rem;      /* 16  every card title */
  --text-xl: 2rem;      /* 32  sign-in heading */
  --text-2xl: 2rem;     /* 32  page headings (28 on phones) */

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem;
  --control: 2.5rem;    /* 40  height of every field and button */
  --side: 18.5rem;      /* 296  width of the column beside a calendar */
}

/* ---------- base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: var(--text-sm); font-weight: 400; line-height: 1.5; color: var(--ink); background: var(--paper); }
h1, h2, p, ol, ul { margin: 0; }
h1 { font-size: var(--text-2xl); line-height: 1.15; letter-spacing: -0.02em; font-weight: 400; }
strong, b, th, h1, h2, h3, label, summary { font-weight: 400; }
h2 { font-size: var(--text-lg); line-height: 1.3; font-weight: 400; }
a { color: var(--accent); }
.lede, .desc { font-size: var(--text-md); color: var(--muted); max-width: 60ch; }
.desc { white-space: pre-line; }
.small, small { font-size: var(--text-sm); color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field-label { font-size: var(--text-xs); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- header */
header.site { border-bottom: 1px solid var(--line); }
.site-inner { max-width: 64rem; margin: 0 auto; min-height: 4rem; padding: var(--s3) clamp(1rem, 4vw, 2.5rem); display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.org-logo { display: inline-block; }
.org-logo img { display: block; height: 1.75rem; width: auto; }
nav { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
nav a.current { color: var(--ink); font-weight: 400; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
nav form { margin: 0; }
nav button.link { font-size: var(--text-sm); }
.site-title { flex: 0 1 auto; min-width: 0; max-width: 62%; margin-left: auto; font-size: var(--text-lg); line-height: 1.3; letter-spacing: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- page frame: one heading, one rhythm */
main { max-width: 64rem; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 4rem; }
main > * + *, #app > * + * { margin-top: var(--s5); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4) var(--s5); flex-wrap: wrap; }
.page-head-text { min-width: 0; flex: 1 1 20rem; }
.page-head .lede { max-width: 46rem; }
.field-label + h1, h1 + .lede, h1 + .desc, .lede + .lede { margin-top: var(--s2); }
main > .page-head + *, #app > .page-head + * { margin-top: var(--s6); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px rgba(41, 41, 41, 0.05); padding: var(--s5); }
.flash { display: flex; align-items: flex-start; gap: var(--s4); background: var(--flash); border: 1px solid var(--line); border-radius: 6px; padding: var(--s3) var(--s3) var(--s3) var(--s4); }
.flash p { flex: 1; }
.flash-close { background: none; border: 0; padding: 0 var(--s2); min-height: 0; font-size: var(--text-lg); line-height: 1; color: var(--muted); cursor: pointer; }
.flash-close:hover { color: var(--ink); }
.empty { border: 1px dashed var(--line); border-radius: 6px; padding: var(--s5); color: var(--muted); }

/* ---------- forms */
label { display: grid; gap: var(--s2); align-content: start; font-size: var(--text-sm); font-weight: 400; }
label.check { display: flex; align-items: flex-start; gap: var(--s3); font-weight: 400; line-height: 1.5; }
label.check input { flex: none; margin-top: 0.15rem; }
.opt { font-weight: 400; color: var(--muted); }
.helper { display: block; font-size: var(--text-sm); font-weight: 400; line-height: 1.5; color: var(--muted); }
form.stack { display: grid; gap: var(--s4); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: start; }
input, select, textarea { font: inherit; font-size: var(--text-sm); font-weight: 400; color: inherit; background: var(--surface); border: 1px solid var(--field); border-radius: 4px; padding: 0 var(--s3); width: 100%; min-height: var(--control); }
textarea { padding: var(--s3); line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.7; }
input[type="checkbox"] { width: 1.25rem; height: 1.25rem; min-height: 0; padding: 0; accent-color: var(--accent); }
input[type="password"] { letter-spacing: 0.1em; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23292929' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
button, .button { font: inherit; font-size: var(--text-sm); font-weight: 400; line-height: 1.3; border-radius: 4px; border: 1px solid transparent; padding: 0 var(--s5); min-height: var(--control); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.primary { background: var(--action); color: #ffffff; }
.primary:hover { filter: brightness(0.92); }
.primary:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.secondary { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.secondary:hover { background: var(--moss-tint); }
.secondary:disabled { opacity: 0.45; cursor: default; background: var(--surface); }
button.link { background: none; border: 0; padding: 0; min-height: 0; display: inline; font-size: var(--text-sm); font-weight: 400; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
button.link:hover { color: var(--ink); }
button.link.danger, .danger { color: var(--danger); }
form.inline { display: inline; margin: 0; }
.hidden-form { display: none; }
.step-error { font-size: var(--text-sm); color: var(--danger); }
.step-error:empty { display: none; }
.save-msg { font-size: var(--text-sm); color: var(--muted); }
.save-msg.ok { color: var(--accent); }
.save-msg.error { color: var(--danger); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: var(--s5); padding-top: var(--s5); }
.form-foot p { flex: 1 1 14rem; font-size: var(--text-sm); line-height: 1.5; color: var(--muted); max-width: 36rem; }
.form-foot p.ok { color: var(--accent); }
.form-foot .confirm-choice { font-size: var(--text-sm); font-weight: 400; color: var(--ink); }
.form-foot.end { justify-content: flex-end; }

/* ---------- a column of cards beside a calendar */
.split { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-areas: "info cal"; gap: var(--s5); align-items: start; }
.area-info { grid-area: info; min-width: 0; }
.area-cal { grid-area: cal; min-width: 0; }
.side-col { display: flex; flex-direction: column; gap: var(--s5); }
.side-card > h2, .side-card > .step-head { margin-bottom: var(--s2); }
.side-text { font-size: var(--text-sm); line-height: 1.5; color: var(--muted); }
.side-card .side-text { margin-bottom: var(--s4); }
.side-card .side-text:last-child { margin-bottom: 0; }
.step-value { font-size: var(--text-sm); font-weight: 400; }
.side-card .step1-edit, .side-card .copy-row { display: grid; gap: var(--s2); }
.side-card .step1-edit button, .side-card .copy-row button, .side-card .button { width: 100%; }
.side-card .share label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.email-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.email-row:empty { display: none; }
.email-row .step-value { min-width: 0; overflow-wrap: anywhere; }
#step1-change { color: var(--accent); font-weight: 400; white-space: nowrap; }
#step1-change::after { content: " →"; }
.side-card.done .step1-help { display: none; }
.side-link { padding: 0 var(--s1); }
.step-head { display: flex; align-items: center; gap: var(--s3); }
.step-num { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: 400; background: var(--accent); color: #ffffff; }
.card.todo .step-num { background: var(--stone); color: var(--ink); }
.card.active .step-num { box-shadow: 0 0 0 3px var(--moss-tint); }
.confirm-card { display: flex; flex-direction: column; gap: var(--s3); }
.final-time { display: grid; gap: var(--s1); }
.ft-date { font-size: var(--text-sm); }
.ft-time { font-size: var(--text-sm); }
.confirm-card .button { white-space: nowrap; padding: 0 var(--s3); }
.confirm-card form.inline { text-align: center; }
.confirm-card form.inline .link { color: var(--muted); }
.final { border-left: 4px solid var(--accent); background: var(--surface); padding: var(--s5); border-radius: 0 6px 6px 0; }
.final .final-time { margin: var(--s2) 0 var(--s3); }
.final-note { margin: 0 0 var(--s2); }

/* the create page keeps its settings and its button in one card */
.side-wrap { grid-area: info; display: flex; flex-direction: column; gap: var(--s5); min-width: 0; }
.side-info { display: flex; flex-direction: column; gap: var(--s4); }
.side-act { display: flex; flex-direction: column; gap: var(--s3); }
.side-act .primary { width: 100%; }
.act-note { font-size: var(--text-sm); line-height: 1.5; color: var(--muted); }
.split-top > .side-wrap { position: sticky; top: var(--s5); align-self: start; }

/* ---------- calendar card chrome */
.card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s2) var(--s4); flex-wrap: wrap; }
.card-head + #group-body { margin-top: var(--s4); }
.card-text { margin: var(--s2) 0 var(--s4); font-size: var(--text-sm); line-height: 1.5; color: var(--muted); }
.cal-controls { display: flex; justify-content: space-between; align-items: center; gap: var(--s3) var(--s4); flex-wrap: wrap; }
.cal-controls + .card-text { margin-top: var(--s4); }
.cal-modes { display: flex; }
.cal-modes .mode { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); border-radius: 0; padding: 0 var(--s3); font-size: var(--text-sm); }
.cal-modes .mode:first-of-type { border-radius: 4px 0 0 4px; }
.cal-modes .mode + .mode { border-left: 0; border-radius: 0 4px 4px 0; }
.cal-modes .mode.on { background: var(--accent); color: #ffffff; }
.tzbar { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s1); margin-left: auto; }
.tzbar label { display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; font-weight: 400; color: var(--muted); }
.tz-input { width: 10rem; max-width: 100%; }
.side-info .tz-input { width: 100%; }
.tz-note { font-size: var(--text-sm); color: var(--danger); max-width: 22rem; text-align: right; }
.tz-note:empty { display: none; }
.side-info .tz-note { text-align: left; max-width: none; }
.day-nav, .weeknav { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.day-nav { margin-bottom: var(--s4); }
.day-nav strong, .weeknav strong { font-size: var(--text-sm); font-weight: 400; text-align: center; }
.day-nav button, .weeknav button { font-size: var(--text-sm); padding: 0 var(--s4); white-space: nowrap; }
.pick-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-top: var(--s4); }
.pick-foot .hint { flex: 1 1 0; min-width: 0; font-size: var(--text-sm); color: var(--muted); }
.pick-actions { flex: none; display: flex; align-items: center; gap: var(--s5); }
.small-check { color: var(--muted); }
.cal-legend { display: flex; align-items: center; gap: var(--s2) var(--s5); flex-wrap: wrap; font-size: var(--text-sm); color: var(--muted); margin: 0 0 var(--s4); }
.cal-legend:empty { display: none; }
.cal-card.todo .cal { opacity: 0.65; }

/* ---------- calendar tiles */
.grid-wrap { overflow-x: auto; overflow-y: hidden; padding-bottom: 0.9rem; }
.grid-wrap.spaced { margin-top: var(--s4); }
.mine-wrap { position: relative; }
.grid { position: relative; display: grid; grid-template-columns: max-content repeat(var(--cols, 1), minmax(var(--cell), 1fr)); width: 100%; min-width: calc(2.6rem + var(--cols, 1) * var(--cell)); user-select: none; -webkit-user-select: none; font-variant-numeric: tabular-nums; }
#grid-pick, #grid-group { touch-action: none; }
.grid .colhead.blank, .grid .cell.blank { visibility: hidden; }
.grid.inactive .cell:not(.off) { opacity: 0.5; }
.grid-cover { position: absolute; inset: 0; width: 100%; display: flex; align-items: center; justify-content: center; background: color-mix(in oklab, var(--paper) 55%, transparent); border: 0; border-radius: 0; color: var(--muted); font-weight: 400; font-size: var(--text-sm); padding: var(--s4); text-align: center; cursor: text; }
.colhead { position: sticky; top: 0; text-align: center; padding: 0.45rem 0.15rem; line-height: 1.2; background: var(--surface); }
.colhead .wd { display: block; font-size: var(--text-xs); color: var(--muted); }
.colhead .dm { display: block; font-size: var(--text-sm); font-weight: 400; white-space: nowrap; }
.rowhead { display: block; align-self: start; text-align: right; padding-right: 0.6rem; transform: translateY(-0.5em); font-size: var(--text-xs); line-height: 1; color: var(--muted); }
.rowhead.endlabel { grid-column: 1; height: 0; overflow: visible; }
.gap { grid-column: 2 / -1; height: 1.25rem; position: relative; }
.gap::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line); }
.cell { position: relative; height: calc(var(--cell-h) * var(--rowscale, 1)); background: var(--heat-lo); border: 1.5px solid var(--surface); border-radius: 4.5px; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.cell.off, .heat .cell.off { background: var(--empty); box-shadow: none; cursor: default; }
.grid .cell[data-h]:not([data-h="0"]), .grid .cell.on { box-shadow: none; }
.heat .cell { cursor: crosshair; }
.merged .heat .cell { cursor: pointer; }
.heat .cell[data-h="0"] { background: var(--h0); }
.heat .cell[data-h="1"] { background: var(--h1); }
.heat .cell[data-h="2"] { background: var(--h2); }
.heat .cell[data-h="3"] { background: var(--h3); }
.heat .cell[data-h="4"] { background: var(--h4); }
.cell.on, .heat .cell.on, .picker .cell.on { background: var(--paint); border-color: var(--surface); }
.cell.on::after { content: ""; position: absolute; inset: 0; background: var(--tick) center / min(16px, 70%) no-repeat; pointer-events: none; }
.heat .cell[data-k]::before { content: attr(data-k); position: absolute; top: 3px; right: 5px; font-size: var(--text-xs); font-weight: 400; line-height: 1; color: var(--ink); pointer-events: none; }
.heat .cell.on[data-k]::before { color: #ffffff; }
.grid[data-slot="30"] { --cell-h: 40px; }
.grid[data-slot="15"], .grid[data-slot="60"] { --cell-h: 22px; }
#app[data-manage="1"] .grid[data-slot="30"] { --cell-h: 36px; }
.grid.picker[data-slot="30"] { --cell-h: 28px; }
.grid.picker[data-slot="15"], .grid.picker[data-slot="60"] { --cell-h: 20px; }
.grid.has-pick .cell { filter: grayscale(1); opacity: 0.45; transition: opacity 0.15s; }
.block { position: absolute; z-index: 2; pointer-events: none; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 6px; overflow: hidden; color: #ffffff; font-size: var(--text-sm); font-weight: 400; line-height: 1.05; border-radius: 4.5px; }
.block-pick { background: var(--pick); z-index: 3; box-shadow: 0 0 0 2px var(--surface); }
.block-hover { background: var(--pick-soft); }
.block.one-line { display: block; white-space: nowrap; text-overflow: ellipsis; align-content: center; }
.block-pick .pick-text { max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block.one-line .pick-text { display: inline-block; vertical-align: middle; }
.block-pick .pick-count { position: absolute; top: 3px; right: 5px; font-size: var(--text-xs); font-weight: 400; line-height: 1; color: #ffffff; }
.tip { position: fixed; z-index: 1000; background: #292929; color: #ffffff; border-radius: 6px; padding: 0.45rem 0.7rem; font-size: var(--text-sm); line-height: 1.55; box-shadow: 0 4px 12px rgba(41, 41, 41, 0.22); pointer-events: none; width: max-content; max-width: min(24rem, calc(100vw - 16px)); }
.tip[hidden] { display: none; }
.tip-name { overflow-wrap: anywhere; }
.tip-name.you { font-weight: 400; }
.tip-empty, .tip-more { color: #bdb9a3; }

/* ---------- Your Events */
.tabs { display: flex; gap: var(--s5); border-bottom: 1px solid var(--line); }
.tab { padding: var(--s3) 0; margin-bottom: -1px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.tab:hover { color: var(--ink); }
.tab.current { color: var(--ink); font-weight: 400; border-bottom-color: var(--accent); }
.tab-count { margin-left: var(--s2); font-size: var(--text-sm); font-weight: 400; color: var(--muted); }
.event-cols { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr); gap: var(--s4) var(--s6); padding: 0 var(--s5); font-size: var(--text-sm); font-weight: 400; color: var(--muted); }
.tabs + .event-cols { margin-top: var(--s4); }
.event-cols + .event-list { margin-top: var(--s3); }
.track-cols, .track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.event-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.event-card { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr); align-items: center; gap: var(--s4) var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px rgba(41, 41, 41, 0.05); padding: var(--s4) var(--s5); }
.event-title { font-size: var(--text-md); text-decoration: none; }
.event-title:hover { text-decoration: underline; }
.track { list-style: none; padding: 0; }
.track-step { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.track-num { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: 400; background: var(--stone); color: var(--ink); }
.track-step.done .track-num, .track-step.current .track-num { background: var(--accent); color: #ffffff; }
.track-step.current .track-num { box-shadow: 0 0 0 3px var(--moss-tint); }
.track-text { min-width: 0; line-height: 1.3; }
.track-note { font-size: var(--text-sm); color: var(--ink); }
.track-step.todo .track-note { color: var(--muted); }
.track-step.current .track-note { font-weight: 400; }

/* ---------- People */
.people-split { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.plist { padding: 0; overflow: hidden; }
.plist-top { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.plist-top .button { width: 100%; }
.pitem { display: block; padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); line-height: 1.4; }
.pitem:last-child { border-bottom: 0; }
.pitem:hover { background: var(--paper); }
.pitem.sel { background: var(--moss-tint); }
.pname { display: block; font-weight: 400; }
.pmail { display: block; margin-top: 2px; font-size: var(--text-sm); color: var(--muted); overflow-wrap: anywhere; }
.pdetail-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.pill { display: inline-block; font-size: var(--text-xs); font-weight: 400; padding: 4px 8px; border-radius: 4px; background: var(--stone); color: var(--muted); }
.pill.admin { background: var(--moss-tint); color: var(--forest); }

/* ---------- Sign in */
.signin-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 9fr); min-height: 100vh; }
.signin-brand { background: var(--accent); color: #ffffff; padding: 3.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s6); }
.signin-logo { display: block; height: 2.2rem; width: auto; filter: brightness(0) invert(1); }
.signin-statement { max-width: 24rem; font-size: var(--text-lg); line-height: 1.5; }
main.signin-main { max-width: none; margin: 0; padding: var(--s6); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s5); }
main.signin-main > * + * { margin-top: 0; }
.signin-main .flash { width: 100%; max-width: 22.5rem; }
.signin-form { width: 100%; max-width: 22.5rem; display: flex; flex-direction: column; gap: var(--s5); }
.signin-form h1 { font-size: var(--text-xl); }
.signin-form .primary { width: 100%; }

/* ---------- small screens */
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "cal" "act"; }
  .people-split { grid-template-columns: minmax(0, 1fr); }
  .side-wrap { display: contents; }
  .side-wrap > .side-info, .side-wrap > .side-act { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px rgba(41, 41, 41, 0.05); padding: var(--s5); }
  .side-wrap > .side-info { grid-area: info; }
  .side-wrap > .side-act { grid-area: act; }
  .split-top > .side-wrap { position: static; }
}
@media (max-width: 800px) {
  .signin-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .signin-brand { padding: var(--s5); gap: var(--s4); }
  .signin-statement { font-size: var(--text-sm); }
  main.signin-main { padding: var(--s6) var(--s4) var(--s7); }
}
@media (max-width: 760px) {
  .event-cols { display: none; }
  .event-card { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --cell: 30px; --cell-h: 20px; --text-2xl: 1.75rem; }
  input, select, textarea, button, .button { font-size: var(--text-md); }
  .row { grid-template-columns: 1fr; }
  nav { gap: var(--s4); }
  .site-title { max-width: 100%; flex: 1 1 0; }
  .day-nav button, .weeknav button { padding: 0 var(--s3); }
  .day-nav strong, .weeknav strong { font-size: var(--text-sm); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.form-card { max-width: 34rem; }

