/* escrowcalendar.org — Veto design system. Near-monochrome OKLCH on cool hue 270.
   Inter only (tabular-nums for dates/numbers). Hairline-first elevation.
   4px grid. Tiered radii (6-16px). */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* ---- Ink (text) ------------------------------------------------------ */
  --ink: oklch(0.18 0.005 270);
  --ink-soft: oklch(0.46 0.005 270);

  /* ---- Surfaces -------------------------------------------------------- */
  --background: oklch(1 0 0);
  --surface: oklch(0.985 0.002 270);
  --surface-2: oklch(0.965 0.003 270);
  --line: oklch(0.92 0.003 270);
  --line-strong: oklch(0.86 0.004 270);

  /* ---- Status (dots, pills, thin tints only) --------------------------- */
  --ok: oklch(0.48 0.10 155);
  --ok-bg: oklch(0.965 0.04 155);
  --warn: oklch(0.55 0.11 60);
  --warn-bg: oklch(0.97 0.035 80);
  --info: oklch(0.46 0.005 270);
  --info-bg: oklch(0.965 0.003 270);

  /* ---- Radii (tiered) -------------------------------------------------- */
  --radius-sm: 0.375rem;    /* 6px — small chips */
  --radius-md: 0.5rem;      /* 8px — buttons, nav rows */
  --radius-lg: 0.625rem;    /* 10px — inputs */
  --radius-xl: 0.75rem;     /* 12px — cards */
  --radius-2xl: 1rem;       /* 16px — overlays */

  /* ---- Elevation (hairline-first; shadows only for floating layers) ---- */
  --shadow-card: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-overlay: 0 24px 64px -24px rgba(0, 0, 0, 0.35);

  /* ---- Layout ---------------------------------------------------------- */
  --max: 1080px;

  /* ---- Motion ---------------------------------------------------------- */
  --mo-1: 140ms;
  --ease-out: cubic-bezier(0.22, 0.68, 0.16, 1);

  /* ---- Typography ------------------------------------------------------ */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* ---- Legacy aliases (map old vars to new tokens for gradual migration) */
  --paper: var(--background);
  --muted: var(--ink-soft);
  --faint: var(--ink-soft);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --accent: var(--ink);
  --accent-dark: var(--ink);
  --accent-tint: var(--surface-2);
  --serif: var(--font-sans);
  --sans: var(--font-sans);
  --radius: var(--radius-xl);
  --shadow: var(--shadow-card);

  /* event-type accents — used only on dots, never as fills */
  --t-conference: var(--ink-soft);
  --t-webinar: var(--ink-soft);
  --t-class: var(--ink-soft);
  --t-dinner: var(--ink-soft);
  --t-mixer: var(--ink-soft);
  --t-meeting: var(--ink-soft);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}

a { color: var(--ink); }

.num, .stat b, .stat span, .cal-chip .dy, .card-meta, .results-meta, .filter-opt .count {
  font-variant-numeric: tabular-nums;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 20;
  background: var(--background); padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklch, var(--background) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  min-height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--ink);
  margin-right: auto; background: transparent; border: none; padding: 0;
}
.brand .mark { width: 20px; height: 20px; flex: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.brand-text small { font-size: 12px; color: var(--ink-soft); letter-spacing: 0; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: color var(--mo-1), background var(--mo-1);
}
.site-nav a:hover { color: var(--ink); background: var(--surface); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  height: 36px; padding: 0 16px;
  border-radius: var(--radius-md);
  background: var(--ink); color: var(--background);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 14px;
  border: none;
  cursor: pointer;
  transition: opacity var(--mo-1);
}
.button:hover { opacity: 0.88; }
.button.accent { background: var(--ink); }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.button.ghost:hover { background: var(--surface); opacity: 1; }

.header-cta { margin-left: 6px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 38px; padding: 9px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- hero ---------- */
.hero { padding: 100px 0 80px; }
.hero .eyebrow {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 17ch;
  color: var(--ink);
}
.hero .lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 14px 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .button { height: 40px; padding: 0 20px; font-size: 14px; }

.hero-meta {
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.stats { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.stat {
  display: flex; align-items: baseline; gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}
.stat b { font-size: 15px; font-weight: 600; }
.stat span { font-size: 13px; color: var(--ink-soft); }

/* ---------- toolbar ---------- */
.toolbar {
  position: sticky; top: 60px; z-index: 6;
  background: color-mix(in oklch, var(--background) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}
.toolbar .wrap { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 260px; min-width: 0; }
.search svg {
  position: absolute; left: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft); pointer-events: none;
}
.search input {
  width: 100%; font: inherit; font-size: 15px;
  height: 48px;
  padding: 0 14px 0 44px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  outline: none;
  transition: border-color var(--mo-1), box-shadow var(--mo-1);
}
.search input:focus {
  border-color: color-mix(in oklch, var(--ink) 40%, white);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--ink) 15%, white);
}
.search input::placeholder { color: var(--ink-soft); }

.view-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 3px;
}
.view-toggle button {
  border: 0; background: none; font: inherit;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  padding: 7px 13px; border-radius: var(--radius-md); cursor: pointer;
}
.view-toggle button[aria-pressed="true"] {
  background: var(--background); color: var(--ink);
}

.filters-toggle { display: none; }

/* ---------- layout ---------- */
.layout {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: 2rem; padding: 1.8rem 0 3rem; align-items: start;
}

/* ---------- filters ---------- */
.filters { position: sticky; top: 124px; align-self: start; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.filters-head h2 {
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600; margin: 0;
  letter-spacing: -0.01em;
}
.clear-filters {
  background: none; border: 0;
  color: var(--ink-soft); font: inherit;
  font-size: 13px; font-weight: 500; cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.clear-filters[hidden] { display: none; }

.filter-group { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.filter-group > h3 {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-soft);
  margin: 0 0 0.6rem; font-weight: 600;
}
.filter-opt {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.18rem 0; font-size: 13.5px; cursor: pointer;
  color: var(--ink);
}
.filter-opt input { accent-color: var(--ink); width: 15px; height: 15px; }
.filter-opt .count { margin-left: auto; color: var(--ink-soft); font-size: 13px; }
.filter-opt.is-empty { opacity: 0.45; }

/* ---------- results / list ---------- */
.results-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
  color: var(--ink-soft); font-size: 13px;
}
.results-meta .count-strong { color: var(--ink); font-weight: 600; }

.event-list { display: flex; flex-direction: column; gap: 0; }

.month-sep {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft);
  margin: 26px 0 12px;
  padding-left: 2px;
}
.month-sep:first-child { margin-top: 0; }

.list-view { border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: var(--background); box-shadow: var(--shadow-card); }

.card {
  display: grid; grid-template-columns: 52px 1fr;
  gap: 16px;
  background: var(--background);
  border: none;
  padding: 16px 18px;
  cursor: pointer;
  transition: background var(--mo-1);
}
.card + .card { border-top: 1px solid var(--line); }
.card:hover { background: var(--surface); }
.card:focus-within { background: var(--surface); }
.card.tentative { border-style: dashed; }

.cal-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 52px; height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--background);
  text-align: center; line-height: 1;
}
.cal-chip .mo { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); line-height: 1; }
.cal-chip .dy { font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 3px; line-height: 1.2; }
.cal-chip .multi { font-size: 0.6rem; color: var(--ink-soft); margin-top: 2px; }

.card-body { min-width: 0; }
.card-title {
  font-family: var(--font-sans);
  font-size: 14.5px; font-weight: 600;
  line-height: 1.2; margin: 0 0 3px;
  color: var(--ink); letter-spacing: -0.01em;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--ink); }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--background);
  color: var(--ink-soft);
  white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); }
.pill.org { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.pill.ce { color: var(--ok); border-color: color-mix(in oklch, var(--ok) 30%, var(--line)); }
.pill.tentative-pill { color: var(--ink-soft); border-style: dashed; }

.cal-event[data-type="conference"] { border-left-color: var(--ink-soft); }
.cal-event[data-type="webinar"] { border-left-color: var(--ink-soft); }
.cal-event[data-type="class"] { border-left-color: var(--ink-soft); }
.cal-event[data-type="dinner"] { border-left-color: var(--ink-soft); }
.cal-event[data-type="mixer"] { border-left-color: var(--ink-soft); }
.cal-event[data-type="meeting"] { border-left-color: var(--ink-soft); }

.card-meta {
  display: flex; flex-wrap: wrap; gap: 0.1rem 0.8rem;
  color: var(--ink-soft); font-size: 12.5px; margin: 0 0 0;
}
.card-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.card-meta .m-veto { color: var(--ok); font-weight: 500; }
.card-desc { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; margin: 6px 0 0; }
.card-note { font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; margin-top: 8px; }
.card-actions a, .card-actions button {
  font-size: 13.5px; font-weight: 500; text-decoration: none;
  color: var(--ink-soft); background: none; border: 0; padding: 0;
  cursor: pointer; font-family: inherit;
}
.card-actions .reg { color: var(--ink); font-weight: 600; }
.card-actions a:hover, .card-actions button:hover { color: var(--ink); text-decoration: underline; }
.card-actions .reg::after { content: " →"; }

.empty {
  text-align: center; padding: 56px 24px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--background);
  box-shadow: var(--shadow-card);
}
.empty h3 { font-family: var(--font-sans); color: var(--ink); margin: 0 0 8px; font-weight: 600; }

/* ---------- month view ---------- */
.month-view[hidden], .list-view[hidden] { display: none; }
.month-nav { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.month-nav h2 {
  font-family: var(--font-sans);
  font-size: 1.4rem; font-weight: 600; margin: 0; min-width: 11ch;
  letter-spacing: -0.01em;
}
.month-nav button {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: var(--background);
  border-radius: var(--radius-md); cursor: pointer;
  font-size: 1rem; color: var(--ink);
}
.month-nav button:hover { background: var(--surface); }
.month-nav .today-btn { width: auto; padding: 0 0.9rem; font-weight: 500; font-size: 13.5px; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; }
.cal-dow { background: var(--surface-2); padding: 0.5rem; text-align: center; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.cal-cell { background: var(--background); min-height: 104px; min-width: 0; padding: 0.4rem; display: flex; flex-direction: column; gap: 3px; }
.cal-cell.empty-cell { background: var(--surface-2); }
.cal-cell .date-num { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.cal-cell.is-today .date-num { background: var(--ink); color: var(--background); border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.cal-event {
  font-size: 12px; line-height: 1.2; text-align: left;
  border: 0; border-left: 3px solid var(--ink-soft);
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 3px 6px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: inherit; color: var(--ink); width: 100%;
}
.cal-event:hover { background: var(--surface); }
.cal-more { font-size: 12px; color: var(--ink); font-weight: 500; cursor: pointer; background: none; border: 0; text-align: left; padding: 0 6px; }

/* ---------- dialog ---------- */
dialog#event-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  background: var(--background);
  color: var(--ink);
  box-shadow: var(--shadow-overlay);
}
dialog#event-dialog::backdrop { background: color-mix(in oklch, var(--ink) 30%, transparent); backdrop-filter: blur(2px); }
.dlg-body { padding: 1.6rem; }
.dlg-close {
  position: absolute; top: 0.7rem; right: 0.7rem;
  width: 32px; height: 32px;
  border-radius: var(--radius-md); border: none;
  background: transparent; color: var(--ink-soft);
  cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.dlg-close:hover { background: var(--surface); color: var(--ink); }
.dlg-body h2 { font-family: var(--font-sans); font-weight: 600; font-size: 20px; margin: 0.2rem 0 0.6rem; letter-spacing: -0.015em; }
.dlg-row { display: flex; gap: 0.5rem; font-size: 14px; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.dlg-row .k { color: var(--ink-soft); min-width: 96px; flex: none; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }

/* ---------- digest / sections ---------- */
.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band .wrap { padding: 60px 24px; }
.band h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.band p.sub { color: var(--ink-soft); font-size: 17px; line-height: 1.55; max-width: 56ch; margin: 14px 0 0; }

.digest-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 440px; margin-top: 24px; }
.digest-form input[type="email"] {
  flex: 1 1 220px;
  height: 46px;
  font: inherit; font-size: 15px;
  padding: 0 14px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  outline: none;
  transition: border-color var(--mo-1), box-shadow var(--mo-1);
}
.digest-form input:focus {
  border-color: color-mix(in oklch, var(--ink) 40%, white);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--ink) 15%, white);
}
.digest-form input::placeholder { color: var(--ink-soft); }
.digest-states { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 12px 0 0; }
.digest-states label {
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 7px 13px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--background);
  color: var(--ink-soft);
  transition: background var(--mo-1), color var(--mo-1);
}
.digest-states input { accent-color: var(--ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 12.5px; margin: 12px 0 0; min-height: 1.1em; color: var(--ink-soft); }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--warn); }

/* subscribe hub (email + calendar + RSS) */
.sub-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.8rem; max-width: 900px; align-items: start; }
.sub-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 15px; margin: 0 0 4px; letter-spacing: -0.01em; }
.sub-card > p { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 1rem; max-width: 44ch; line-height: 1.5; }
.sub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.sub-hint { font-size: 12.5px; color: var(--ink-soft); margin: 12px 0 0; line-height: 1.5; }
.sub-hint a { color: var(--ink); font-weight: 500; text-decoration: none; }
.sub-hint a:hover { text-decoration: underline; }
.text-link { color: var(--ink); font-weight: 500; font-size: 13px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
@media (max-width: 720px) { .sub-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--background);
  padding: 56px 0 40px;
}
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding: 0 24px; }
.foot-brand strong { font-family: var(--font-sans); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.foot-brand p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; margin: 14px 0 0; max-width: 44ch; }
.powered { margin-top: 12px; font-size: 12px; color: var(--ink-soft); opacity: 0.85; max-width: 44ch; }
.powered a { font-weight: 600; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.powered a:hover { text-decoration: underline; }
.foot-links { display: flex; flex-direction: column; gap: 0; }
.foot-links a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 13.5px; margin-bottom: 11px;
  transition: color var(--mo-1);
}
.foot-links a:hover { color: var(--ink); }
.disclaimer { color: var(--ink-soft); font-size: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 70ch; line-height: 1.5; opacity: 0.85; }
.boundary-line { color: var(--ink-soft); font-size: 13.5px; margin-top: 16px; font-weight: 500; }
.attribution { color: var(--ink-soft); font-size: 12px; margin-top: 8px; opacity: 0.85; }
.attribution a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- generic content pages (submit) ---------- */
.page { padding: 2.6rem 0 3.5rem; }
.page h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.15; letter-spacing: -0.015em;
  margin: 0;
}
.page .lede { color: var(--ink-soft); font-size: 17px; line-height: 1.55; max-width: 54ch; margin: 14px 0 0; }
.form-card {
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  max-width: 640px;
  box-shadow: var(--shadow-card);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px;
  height: 46px; padding: 0 14px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  outline: none;
  transition: border-color var(--mo-1), box-shadow var(--mo-1);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: color-mix(in oklch, var(--ink) 40%, white);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--ink) 15%, white);
}
.field textarea { resize: vertical; min-height: 96px; height: auto; padding: 10px 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkline { display: flex; align-items: center; gap: 0.5rem; font-size: 13.5px; color: var(--ink-soft); }
.checkline input { width: auto; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .filters {
    position: fixed; inset: 0; z-index: 30;
    background: var(--background);
    padding: 1.2rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-overlay);
  }
  .filters.open { transform: translateX(0); }
  .filters-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--background);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 8px 13px;
    font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-soft);
    cursor: pointer;
  }
  .filters .filters-head { position: sticky; top: 0; }
  .filters-done { display: block; width: 100%; margin-top: 1.2rem; }
}
@media (min-width: 901px) {
  .filters-done, .filters .filters-close { display: none; }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--background);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 16px 1rem;
  }
  .site-header.open .site-nav { display: flex; }
  .site-nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .calendar-grid { font-size: 0.8rem; }
  .cal-cell { min-height: 78px; }
  .cal-event { font-size: 0.62rem; }
  .card { grid-template-columns: 48px 1fr; gap: 12px; padding: 13px 14px; }
  .cal-chip { width: 48px; height: 50px; }
  .cal-chip .dy { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
