/* The Feathered Nest growth dashboard. Structure from the Studio Phelan app; look from the Feathered Nest theme
   (featherednest-2026 base.css tokens, brand guide for the web, Sep 2026). Phone first. */

/* A font by Jos Buivenga (exljbris) -> www.exljbris.com */
@font-face { font-family: "Calluna"; src: url("/fonts/Calluna-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
/* Body: letters from Libre Baskerville, figures from Calluna (Baskerville's 1 reads as an l), as on the site. */
@font-face { font-family: "TFN Text"; src: url("/fonts/Calluna-Regular.otf") format("opentype"); font-weight: 400 700; font-display: swap; unicode-range: U+0030-0039; size-adjust: 115%; }
@font-face { font-family: "TFN Text"; font-weight: 400 700; font-display: swap; src: url("/fonts/LibreBaskerville-latin.woff2") format("woff2"); unicode-range: U+0000-002F, U+003A-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "TFN Text"; font-weight: 400 700; font-display: swap; src: url("/fonts/LibreBaskerville-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "TFN Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/LibreBaskerville-Italic-latin.woff2") format("woff2"); unicode-range: U+0000-002F, U+003A-00FF, U+2000-206F; }

:root {
  --forest: #464032; --forest-80: #555045; --forest-60: #635e53; --forest-40: #726f65;
  --olive: #7e7861; --sage: #9d9e8b; --sage-60: #b7b8ad;
  --stone: #b9b19d; --stone-60: #d6d2c6; --stone-40: #e0ddd6;
  --ivory: #d8d3c5; --ivory-80: #e1ded5; --ivory-60: #eae8e3; --ivory-40: #f3f2ee;
  --rust: #8f4a2f;
  --bg: var(--ivory-60); --card: var(--ivory-40); --line: rgba(70, 64, 50, .16); --line-strong: rgba(70, 64, 50, .32);
  --ink: var(--forest); --muted: var(--forest-60);
  --calluna: "Calluna", Georgia, serif; --text: "TFN Text", "Libre Baskerville", Georgia, serif;
  --r: 18px; --g: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--calluna); font-weight: 400; margin: 0; }
.label { font: 400 11px/1.3 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* shell */
.shell { display: flex; min-height: 100vh; }
.side { display: none; }
main { flex: 1 1 0; min-width: 0; padding: 0 var(--g) calc(96px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.mtop { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--g) 4px; }
.mtop img { width: 180px; height: auto; display: block; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 14px; }
.head h1 { font-size: 34px; line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; }
.head .sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.head .r { display: none; align-items: center; gap: 10px; }
.wk { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--card); font-size: 13px; white-space: nowrap; }

/* bell */
.ibtn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; text-decoration: none; }
.ibtn .pip { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--rust); }

/* bottom tabs (phone) */
.tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--forest); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabs a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; border-radius: 12px; font-size: 10.5px; letter-spacing: .02em; color: var(--ivory); text-decoration: none; }
.tabs a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tabs a[aria-current=page] { color: var(--ivory-40); background: rgba(243, 242, 238, .12); }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px; min-width: 0; }
.ct { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ct h2 { font-size: 23px; line-height: 1.15; }
.note { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; color: var(--ink); text-decoration: none; border-bottom: 0; }
.more span { border-bottom: 1px solid var(--line-strong); }
.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 13px; border: 1px solid var(--line-strong); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.pill.soon { border-style: dashed; }
.pill.dark { background: var(--forest); border-color: var(--forest); color: var(--ivory-40); }
.grid { display: grid; gap: 14px; }

/* hero */
.hero { background: var(--forest); color: var(--ivory-60); border: 0; padding: 24px 20px; }
.hero .label { color: var(--ivory); }
.hero h2 { color: var(--ivory-40); font-size: 27px; line-height: 1.15; margin: 10px 0 12px; text-wrap: balance; }
.hero p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.65; }
.hero p:last-child { margin-bottom: 0; }
.hero .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.hero .step { border-top: 1px solid rgba(234, 232, 227, .3); padding-top: 10px; font-size: 12.5px; line-height: 1.45; }
.hero .step b { display: block; font: 400 19px/1.1 var(--calluna); color: var(--ivory-40); margin-bottom: 4px; }

/* headline tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile .t { font-size: 13px; line-height: 1.35; min-height: 2.7em; }
.tile .v { font: 400 40px/1 var(--calluna); letter-spacing: -.01em; }
.tile .v.none { color: var(--forest-40); }
.tile .s { font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.tile .src { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }

/* funnels */
.fun { display: flex; flex-direction: column; }
.fstep { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.fstep:first-child { border-top: 0; padding-top: 2px; }
.fstep .n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font: 400 14px/1 var(--calluna); }
.fstep .l { font-size: 14.5px; line-height: 1.35; }
.fstep .l small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.fstep .v { font: 400 30px/1 var(--calluna); text-align: right; min-width: 44px; }
.fstep .v.none { color: var(--forest-40); }
.fstep .bar { grid-column: 2 / 4; height: 8px; border-radius: 4px; background: var(--stone-40); overflow: hidden; }
.fstep .bar i { display: block; height: 100%; background: var(--forest); border-radius: 4px; }
.conv { grid-column: 2 / 4; font-size: 11.5px; color: var(--muted); }

/* source rows */
.srcs { display: flex; flex-direction: column; gap: 12px; }
.srow .t { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 6px; }
.srow .t span:last-child { font-family: var(--calluna); font-size: 17px; color: var(--forest-40); }
.srow .t span.has { color: var(--ink); }
.srow .tr { height: 8px; border-radius: 4px; background: var(--stone-40); overflow: hidden; }
.srow .tr i { display: block; height: 100%; background: var(--olive); }

/* split bar */
.split { display: flex; height: 40px; border-radius: 10px; overflow: hidden; border: 1px dashed var(--line-strong); }
.split.empty { align-items: center; justify-content: center; font-size: 12.5px; color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(70, 64, 50, .04) 8px 16px); }
.split .d { background: var(--forest); } .split .a { background: var(--stone); }
.skey { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; }
.skey span { display: inline-flex; align-items: center; gap: 7px; }
.skey i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* empty state */
.empty { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--ink); }
.empty b { font: 400 18px/1.25 var(--calluna); }
.empty span { font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 44ch; }

/* weekly chart */
.chart svg { display: block; width: 100%; height: auto; }
.chart .cap { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* growth rows (phone: one card per metric) */
.gcard { padding: 16px 0; border-top: 1px solid var(--line); }
.gcard:first-of-type { border-top: 0; padding-top: 4px; }
.gtop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gtop .l { font-size: 14.5px; line-height: 1.35; }
.gtop .v { font: 400 28px/1 var(--calluna); white-space: nowrap; }
.gtop .v.none { color: var(--forest-40); }
.gmeta { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); margin: 4px 0 8px; }
.kd { font-size: 12px; white-space: nowrap; }
.kd.up { color: var(--forest); } .kd.up::before { content: "\2191\00a0"; }
.kd.down { color: var(--rust); } .kd.down::before { content: "\2193\00a0"; }
.gtbl { display: none; }

/* ads */
.chans { display: flex; flex-direction: column; }
.chan { padding: 14px 0; border-top: 1px solid var(--line); }
.chan:first-child { border-top: 0; padding-top: 0; }
.chan .n { font: 400 19px/1.2 var(--calluna); }
.chan .a { font-size: 12px; color: var(--muted); margin: 2px 0 10px; }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cgrid div { background: var(--ivory-60); border-radius: 12px; padding: 10px 10px 9px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cgrid span:first-child { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cgrid span:last-child { font: 400 22px/1 var(--calluna); color: var(--forest-40); }
.cgrid span.has { color: var(--ink); }

/* approvals and plan */
.appr { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.appr:first-child { border-top: 0; padding-top: 0; }
.appr .h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.appr .h b { font: 400 18px/1.3 var(--calluna); }
.appr p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.acts { display: flex; gap: 8px; margin-top: 6px; }
.btn { min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--forest); background: var(--forest); color: var(--ivory-40); font-size: 13.5px; }
.btn.line { background: transparent; color: var(--forest); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.week { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.week:first-child { border-top: 0; padding-top: 0; }
.week .w { font: 400 18px/1.2 var(--calluna); grid-row: span 2; }
.week .w small { display: block; margin-top: 4px; font: 400 10px/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.week .d { font-size: 14px; line-height: 1.55; }
.week .s { font-size: 12px; color: var(--muted); }
.week .s::before { content: "Shows in the update: "; color: var(--ink); }
.week.closed { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(70, 64, 50, .035) 8px 16px); }

/* feeds */
.feeds { display: flex; flex-direction: column; }
.fd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 11px 0; border-top: 1px solid var(--line); align-items: center; }
.fd:first-child { border-top: 0; padding-top: 0; }
.fd .n { font-size: 14px; }
.fd .f { font-size: 11.5px; color: var(--muted); grid-column: 1; }
.fd .pill { grid-row: 1 / 3; grid-column: 2; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stone); display: inline-block; flex-shrink: 0; }

.foot { font-size: 12px; color: var(--muted); padding: 6px 2px 0; line-height: 1.6; }
.loading { padding: 40px 0; color: var(--muted); }

/* tablet and up */
@media (min-width: 700px) {
  :root { --g: 28px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .head h1 { font-size: 44px; }
  .head .r { display: flex; }
  .mtop .ibtn { display: none; }
}

/* desktop: sidebar replaces the top bar and the tabs */
@media (min-width: 1000px) {
  .mtop, .tabs { display: none; }
  .side { display: flex; flex-direction: column; gap: 4px; width: 256px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; padding: 30px 18px 24px; background: var(--forest); color: var(--ivory-60); }
  .side .logo { padding: 0 12px 30px; }
  .side .logo img { width: 190px; height: auto; display: block; }
  .nav-a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 14.5px; color: var(--ivory); text-decoration: none; }
  .nav-a:hover { color: var(--ivory-40); background: rgba(243, 242, 238, .06); }
  .nav-a[aria-current=page] { color: var(--ivory-40); background: rgba(243, 242, 238, .12); }
  .nav-a .badge { margin-left: auto; font-size: 11.5px; padding: 1px 8px; border-radius: 9px; background: rgba(243, 242, 238, .14); }
  .side .status { margin-top: auto; padding: 16px; border-radius: 14px; border: 1px solid rgba(234, 232, 227, .2); font-size: 12px; line-height: 1.55; color: var(--ivory); }
  .side .status b { display: block; font: 400 16px/1.3 var(--calluna); color: var(--ivory-40); margin-bottom: 4px; }
  .side .me { display: flex; align-items: center; gap: 10px; padding: 16px 6px 0; font-size: 13.5px; color: var(--ivory-40); }
  .side .me small { display: block; font-size: 11.5px; color: var(--ivory); }
  .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--forest-60); color: var(--ivory-40); display: flex; align-items: center; justify-content: center; font: 400 14px/1 var(--calluna); }
  main { padding: 34px 44px 56px; gap: 18px; max-width: 1240px; }
  .head h1 { font-size: 50px; }
  .card { padding: 24px 26px; }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile .v { font-size: 44px; }
  .hero { padding: 30px 32px; }
  .hero h2 { font-size: 32px; max-width: 26ch; }
  .hero p { max-width: 70ch; }
  .wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
  /* growth: the week-by-week table */
  .gcards { display: none; }
  .gtbl { display: block; overflow-x: auto; }
  .grow2 { display: grid; grid-template-columns: minmax(200px, 1.8fr) repeat(var(--gcols), minmax(54px, 1fr)) 70px 130px; align-items: center; gap: 6px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; min-width: 860px; }
  .grow2.gh { border-top: 0; padding-top: 0; font-size: 11.5px; color: var(--muted); }
  .grow2 .gl small { display: block; font-size: 11px; color: var(--muted); }
  .gc { text-align: center; font: 400 18px/1 var(--calluna); padding: 8px 0; border-radius: 6px; }
  .gh .gc { font: 400 11.5px/1.3 var(--text); }
  .gc.none { color: var(--forest-40); }
  .gc.closed { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(70, 64, 50, .06) 6px 12px); }
  .gc.part { color: var(--muted); }
  .week { grid-template-columns: 120px minmax(0, 1fr) minmax(0, .8fr); }
  .week .w { grid-row: auto; }
  .week .s::before { content: ""; }
  .chan { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: center; }
  .cgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1000px) and (max-width: 1180px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) { .nav-a, .tabs a, .btn { transition: background-color .15s, color .15s; } }

/* ---------- wedding log (public/log.js) ---------- */
.wl-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.wl-add { min-height: 52px; padding: 0 22px; font-size: 15px; }
.wl-flash { margin: 0; font-size: 13.5px; color: var(--forest); }
.linkbtn { background: none; border: 0; padding: 0; font-size: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.wl-intro p { margin: 0 0 12px; max-width: 62ch; }
.wl-intro ul { margin: 0 0 18px; padding-left: 20px; max-width: 62ch; color: var(--muted); font-size: 14px; }
.wl-intro li { margin-bottom: 6px; }
.wl-intro b { color: var(--ink); font-weight: 400; font-family: var(--calluna); font-size: 16px; }

.wl-todays { display: grid; gap: 18px; }
.wl-today h3, .wl-h3 { font-size: 17px; margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; }
.wl-h3 { margin-top: 18px; }
.n { font: 400 12px/1 var(--text); color: var(--muted); }
.wl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wl-list li + li { border-top: 1px solid var(--line); }
.wl-row { width: 100%; text-align: left; background: none; border: 0; padding: 12px 2px; display: grid; gap: 3px; border-radius: 10px; }
.wl-row:hover { background: rgba(70, 64, 50, .04); }
.wl-who { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wl-who b { font: 400 18px/1.25 var(--calluna); }
.tag { font-style: normal; font-size: 11px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 9px; padding: 0 7px; }
.wl-meta { font-size: 13px; color: var(--muted); }
.wl-side { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.st { font-size: 11.5px; padding: 2px 9px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--forest-80); white-space: nowrap; }
.st-booked { background: var(--forest); border-color: var(--forest); color: var(--ivory-40); }
.st-held { border-color: var(--forest); color: var(--forest); }
.st-lost { border-style: dashed; color: var(--forest-40); }
.wl-next { font-size: 13px; color: var(--forest-80); }
.wl-next.today { color: var(--forest); font-weight: 700; }
.wl-next.late { color: var(--rust); font-weight: 700; }
.wl-clash { font-size: 12px; color: var(--rust); border: 1px solid var(--rust); border-radius: 10px; padding: 1px 8px; }

.wl-find { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.wl-search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 23px; background: var(--ivory-60); color: var(--muted); }
.wl-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.wl-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.wl-sort select, .wl-form select, .wl-form input, .wl-form textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--ivory-40); border: 1px solid var(--line-strong); border-radius: 10px; min-height: 46px; padding: 0 12px; width: 100%; }
.wl-sort select { width: auto; min-height: 42px; font-size: 14px; }
.wl-form textarea { padding: 10px 12px; min-height: 96px; resize: vertical; line-height: 1.5; }
.wl-chips, .quick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 6px; scrollbar-width: thin; }
.chip { flex-shrink: 0; min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--line-strong); background: var(--card); font-size: 13px; white-space: nowrap; }
.chip.on { background: var(--forest); border-color: var(--forest); color: var(--ivory-40); }
.chip.on .n { color: var(--ivory); }

.wl-key { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.wl-key span::before, .wl-date .k::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1.5px solid var(--forest); }
.wl-key .booked::before, .wl-date.booked .k::before { background: var(--forest); }
.wl-key .asked::before, .wl-date.asked .k::before { border-style: dashed; border-color: var(--forest-40); }
.wl-month h3 { font-size: 16px; margin: 14px 0 6px; color: var(--forest-80); }
.wl-month ul { list-style: none; margin: 0; padding: 0; }
.wl-date { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 7.5em 1fr auto; align-items: baseline; gap: 4px 10px; padding: 9px 2px; text-align: left; font-size: 14px; }
.wl-date .d { color: var(--muted); font-size: 13px; }
.wl-date .k { font-size: 12px; color: var(--muted); white-space: nowrap; }
.wl-date .wl-clash { grid-column: 2 / 4; justify-self: start; }

.wl-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wl-kpis div { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.wl-kpis b { font: 400 30px/1 var(--calluna); }
.wl-kpis span { font-size: 12.5px; }
.wl-kpis small { font-size: 11.5px; color: var(--muted); }
.wl-years { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.wl-years div { display: flex; gap: 12px; }
.wl-years b { font: 400 17px/1.3 var(--calluna); min-width: 3em; }

/* record sheet: full screen on a phone, a panel from the right on a computer */
.wl-locked, .wl-locked body { overflow: hidden; }
.wl-sheet-host[hidden] { display: none; }
.wl-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(46, 42, 33, .45); }
.wl-sheet { position: fixed; inset: 0; z-index: 41; background: var(--ivory-60); overflow-y: auto; overscroll-behavior: contain; }
.wl-form { padding: 0 var(--g) calc(110px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.wl-sh { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 0 12px; background: var(--ivory-60); border-bottom: 1px solid var(--line); }
.wl-sh h2 { font-size: 28px; line-height: 1.1; text-wrap: balance; }
.wl-contact { display: flex; gap: 10px; padding-top: 14px; }
.wl-msg { font-size: 14px; min-height: 0; margin-top: 10px; }
.wl-msg.err { color: var(--rust); padding: 10px 12px; border: 1px solid var(--rust); border-radius: 10px; }
.wl-form fieldset { border: 0; border-top: 1px solid var(--line); margin: 18px 0 0; padding: 16px 0 0; display: grid; gap: 12px; min-width: 0; }
.wl-form legend { font: 400 19px/1.2 var(--calluna); padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.wl-form .two, .wl-form .three { display: grid; gap: 12px; }
.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); min-width: 0; }
.f[hidden] { display: none; }
.wl-clash-live { margin: 0; font-size: 13.5px; color: var(--rust); }
.wl-clash-live:empty { display: none; }
.segs { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--card); font-size: 13.5px; color: var(--ink); }
.seg input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--ivory-40); }
.seg input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 2px; }
.quick { align-self: end; margin: 0; }
.wl-hist { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.wl-hist summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; }
.wl-hist ul { margin: 4px 0 0; padding-left: 18px; }
.wl-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: flex-end; gap: 10px; padding: 12px var(--g) calc(12px + env(safe-area-inset-bottom)); background: var(--ivory-40); border-top: 1px solid var(--line); }
.wl-actions .btn { min-height: 48px; }

@media (min-width: 700px) {
  .wl-todays { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wl-form .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-form .three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wl-sheet { left: auto; width: min(600px, 100vw); box-shadow: -12px 0 40px rgba(46, 42, 33, .18); }
  .wl-actions { position: sticky; left: auto; right: auto; margin: 22px calc(-1 * var(--g)) 0; }
  .wl-form { padding-bottom: 0; }
}
@media (min-width: 1240px) { .wl-two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.wl-msg:empty { margin: 0; }
.wl-sh + .wl-msg + fieldset, .wl-contact + .wl-msg + fieldset { border-top: 0; margin-top: 6px; }

/* PIN screen (hosted site) */
.pin { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px var(--g); background: var(--bg); }
.pin-box { width: min(360px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 26px; display: flex; flex-direction: column; gap: 12px; }
.pin-box img { width: 200px; height: auto; margin: 0 auto 14px; display: block; }
.pin-box label { font: 400 20px/1.2 var(--calluna); }
.pin-box input { font: 400 24px/1 var(--calluna); letter-spacing: .3em; text-align: center; min-height: 54px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--ivory-40); color: var(--ink); }
.pin-msg { margin: 0; min-height: 1.4em; font-size: 13.5px; color: var(--rust); }
.pin-box .btn { min-height: 50px; }
