/* Weekline v2, "Golden Hour": limestone, ink, one sodium-gold accent. Bodoni Moda for moments, Jost for facts. */
:root {
  --paper: #F4EEE5;
  --paper-2: #EAE1D3;
  --ink: #16120E;
  --ink-2: #5E554B;
  --rule: rgba(22, 18, 14, .14);
  --rule-2: rgba(22, 18, 14, .26);
  --sun: #EFA937;
  --sun-deep: #B87414;
  --sun-wash: rgba(239, 169, 55, .32);
  --dusk: #1A1511;
  --on-dusk: #EFE6DA;
  --on-dusk-2: #B3A694;
  --live: #3F7D4E;
  --serif: "Bodoni Moda", Didot, "Bodoni 72", serif;
  --sans: "Jost", "Futura", "Avenir Next", sans-serif;
  --col: 560px;
  --tabs: 72px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--sun); color: var(--ink); }
html { background: var(--dusk); }
body {
  background: var(--dusk); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; min-height: 100vh;
}
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: rgba(22, 18, 14, .4); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.on-photo :focus-visible, .photo-card :focus-visible { outline-color: #fff; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { max-width: var(--col); margin: 0 auto; background: var(--paper); min-height: calc(100vh - 48px); position: relative; padding-bottom: calc(var(--tabs) + 24px); }
#app.wide { --col: 880px; max-width: 880px; }
#app.bare { padding-bottom: 0; }
.wrap { padding: 0 24px; }

/* type */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.fine { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.wm { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; }
.wm i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); margin-left: 3px; vertical-align: .12em; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.s { width: 15px; height: 15px; }
.tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 18px; border-radius: 2px;
  font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: .01em; width: 100%; text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.sun:hover { background: #F4B850; }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.ink:hover { background: #2C2520; }
.btn.line { border: 1px solid var(--rule-2); color: var(--ink); }
.btn.line:hover { border-color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.sm { min-height: 44px; font-size: 14px; padding: 12px 14px; width: auto; }
.linkbtn { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(22, 18, 14, .35); font-size: 14px; padding: 12px 4px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.linkbtn:hover { text-decoration-color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 12px 14px; border: 1px solid var(--rule-2); border-radius: 2px;
  font-size: 14px; color: var(--ink); background: transparent; transition: background-color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.on { background: var(--sun); border-color: var(--sun); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* photos and the Henge sun sweep */
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; z-index: 1; }
.henge { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.henge::before {
  content: ""; position: absolute; top: -40%; bottom: -40%; width: 46%; left: -60%;
  background: linear-gradient(90deg, rgba(239, 169, 55, 0), rgba(255, 196, 96, .38) 50%, rgba(239, 169, 55, 0));
  transform: rotate(29deg); mix-blend-mode: screen; animation: henge 2.6s cubic-bezier(.16, 1, .3, 1) .5s 1 both;
}
.row-henge::before { background: linear-gradient(90deg, rgba(239, 169, 55, 0), rgba(239, 169, 55, .45) 50%, rgba(239, 169, 55, 0)); mix-blend-mode: multiply; animation-delay: 0s; animation-duration: 1.6s; }
@keyframes henge { from { left: -60%; } to { left: 150%; } }

/* tab bar */
.tabs {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--col); height: var(--tabs); z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-top: 1px solid var(--rule); padding: 6px 8px env(safe-area-inset-bottom);
}
#app.wide + .tabs, .tabs.wide { max-width: 880px; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; color: var(--ink-2); text-decoration: none; letter-spacing: .02em; min-height: 56px; }
.tab[aria-current="page"] { color: var(--ink); font-weight: 500; }
.tab[aria-current="page"]::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--sun-deep); }
.tab:hover { color: var(--ink); }

/* device note */
.devnote { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-2); padding: 14px 24px 0; text-align: center; }
.devnote i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ink-2); flex: none; }

/* ---------- Welcome ---------- */
.welcome { position: relative; min-height: calc(100vh - 48px); min-height: calc(100svh - 48px); color: #fff; overflow: hidden; background: #120D09; display: flex; flex-direction: column; }
.welcome .photo { object-position: 28% 50%; }
.welcome .shade { background: linear-gradient(180deg, rgba(14, 10, 7, .45) 0%, rgba(14, 10, 7, .05) 20%, rgba(14, 10, 7, .1) 36%, rgba(14, 10, 7, .78) 58%, rgba(14, 10, 7, .95) 100%); }
.welcome .top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: baseline; padding: 24px 28px 0; }
.welcome .body { position: relative; z-index: 3; margin-top: auto; padding: 0 28px 32px; }
.cap { font-size: 13px; color: rgba(255, 255, 255, .82); letter-spacing: .02em; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.cap::before { content: ""; width: 18px; height: 1px; background: rgba(255, 255, 255, .6); }
.welcome h1 { font-size: 46px; line-height: 1.02; margin-bottom: 24px; }
.welcome h1 em { color: var(--sun); }
.welcome .btn.sun { flex-direction: column; gap: 2px; min-height: 64px; }
.welcome .btn.sun small { font-size: 13px; font-weight: 400; color: rgba(22, 18, 14, .82); }
.zonepick { display: flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .85); flex-wrap: wrap; }
.zonepick button { min-height: 44px; padding: 12px; color: #fff; font-size: 14px; border: 1px solid transparent; border-radius: 2px; }
.zonepick button[aria-pressed="true"] { border-color: rgba(255, 255, 255, .55); }
.keep { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .85); margin-bottom: 8px; }
.two-out { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255, 255, 255, .4); border-radius: 2px; }
.two-out button { min-height: 50px; padding: 12px; color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.two-out button + button { border-left: 1px solid rgba(255, 255, 255, .4); }
.two-out button:hover { background: rgba(255, 255, 255, .08); }
.welcome .fine { color: rgba(255, 255, 255, .78); margin-top: 10px; font-size: 13px; }
.welcome .visit { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.welcome .credit { position: relative; z-index: 3; padding: 0 28px 18px; font-size: 11px; color: rgba(255, 255, 255, .7); }

/* auth sheet */
.sheet { background: var(--paper); color: var(--ink); border-radius: 2px; padding: 22px 20px 20px; }
.sheet h2 { font-size: 30px; line-height: 1.05; margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field label { font-size: 14px; color: var(--ink-2); }
.field input, .field select {
  min-height: 48px; border: 1px solid var(--rule-2); border-radius: 2px; background: #fff; padding: 12px 14px; font-size: 16px; color: var(--ink);
}
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.err { color: #8E2A14; font-size: 14px; margin-top: 10px; min-height: 1em; }
.ok { color: var(--live); font-size: 14px; margin-top: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- top bar used on inner screens ---------- */
.prog { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-2); padding: 16px 24px 0; }
.prog .back { width: 44px; height: 44px; margin-left: -12px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.prog .bars { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.prog .bars i { height: 2px; background: var(--rule); }
.prog .bars i.on { background: var(--ink); }

/* ---------- Onboarding ---------- */
.onb h1 { font-size: 40px; line-height: 1.04; margin: 30px 0 10px; }
.hint { font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; }
.list { margin-top: 20px; border-top: 1px solid var(--rule); }
.opt-row {
  width: 100%; display: grid; grid-template-columns: 52px 1fr 26px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule);
  min-height: 72px; text-align: left;
}
.opt-row.nofr { grid-template-columns: 1fr 26px; }
.opt-row .fr { width: 52px; height: 52px; border: 1px solid var(--rule); overflow: hidden; background: var(--paper); }
.opt-row .fr img { width: 100%; height: 100%; object-fit: cover; }
.opt-row .nm { font-size: 17px; }
.opt-row[aria-pressed="true"] .nm, .opt-row[aria-checked="true"] .nm { font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: -.01em; }
.opt-row .sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.ck { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(22, 18, 14, .3); display: flex; align-items: center; justify-content: center; }
[aria-pressed="true"] > .ck, [aria-checked="true"] > .ck { background: var(--sun); border-color: var(--sun); }
.learnbox { padding: 16px 0 6px; border-bottom: 1px solid var(--rule); }
.learnbox .field { margin-top: 0; }
.learnbox .chips { margin-top: 12px; }
.foot { padding: 24px 24px 32px; }
.foot .next { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.daygrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 22px; }
.daygrid button { min-height: 72px; border: 1px solid var(--rule-2); border-radius: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 0; }
.daygrid button b { font-family: var(--serif); font-weight: 400; font-size: 19px; }
.daygrid button span { font-size: 12px; color: var(--ink-2); }
.daygrid button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.daygrid button[aria-pressed="true"] span { color: var(--paper-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule-2); border-radius: 2px; margin-top: 22px; }
.seg button { min-height: 52px; padding: 12px; font-size: 16px; }
.seg button + button { border-left: 1px solid var(--rule-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sub-h { font-family: var(--serif); font-size: 22px; margin: 26px 0 10px; }

/* ---------- Week ---------- */
.hero { position: relative; height: 240px; overflow: hidden; color: #fff; background: #241A12; }
.hero .shade { background: linear-gradient(180deg, rgba(14, 10, 7, .42), rgba(14, 10, 7, .08) 34%, rgba(14, 10, 7, .6) 62%, rgba(14, 10, 7, .88)); }
.hero .txt { position: absolute; left: 24px; right: 24px; bottom: 16px; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.hero h1 { font-size: 46px; line-height: .95; }
.hero .meta { font-size: 13px; color: rgba(255, 255, 255, .9); margin-top: 8px; }
.hero .topline { position: absolute; top: 16px; left: 24px; right: 24px; z-index: 3; display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.goalsun { text-align: right; font-size: 13px; color: rgba(255, 255, 255, .92); line-height: 1.35; flex: none; }
.suns { display: flex; gap: 5px; justify-content: flex-end; margin-bottom: 6px; }
.suns i { width: 11px; height: 11px; border-radius: 50%; border: 1.2px solid var(--sun); }
.suns i.on { background: var(--sun); }
.srcline { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 24px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; }
.banner { margin: 16px 24px 0; padding: 14px 16px; background: var(--paper-2); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner p { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.check { background: var(--paper-2); padding: 14px 24px 6px; }
.check h2 { font-size: 20px; font-style: italic; margin-bottom: 4px; }
.ci { padding: 10px 0 12px; border-top: 1px solid var(--rule); }
.ci:first-of-type { border-top: 0; }
.ci .t { font-size: 15px; font-weight: 500; }
.ci .s { font-size: 13px; color: var(--ink-2); }
.segs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.segs button { min-height: 44px; padding: 12px; border: 1px solid var(--rule-2); border-radius: 2px; font-size: 14px; background: var(--paper); }
.segs button:hover { border-color: var(--ink); }
.ci.done { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.days { padding: 0 24px; }
.day { display: grid; grid-template-columns: 46px 70px 1fr; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--rule); position: relative; }
.day .d { font-family: var(--serif); font-size: 21px; line-height: 1; }
.day .d small { display: block; font-family: var(--sans); font-size: 12px; color: var(--ink-2); margin-top: 5px; }
.day .t { font-size: 13px; color: var(--ink-2); padding-top: 3px; white-space: nowrap; }
.day .ti { font-size: 16px; font-weight: 500; line-height: 1.22; }
.day .pl { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.day .why { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.act { display: flex; flex-wrap: wrap; row-gap: 4px; column-gap: 12px; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 13px; }
.src { color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.src em { font-family: var(--serif); font-size: 14px; color: var(--ink); }
.acts { display: flex; gap: 2px; margin-right: -8px; }
.acts button, .acts a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 12px 8px; font-size: 14px; color: var(--ink); text-decoration: none; }
.acts button:hover, .acts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.acts .locked { background: var(--sun); padding: 12px; border-radius: 2px; font-weight: 500; margin-left: 4px; }
.acts .locked:hover { text-decoration: none; background: #F4B850; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--ink-2); align-items: center; }
.reasons .chip { min-height: 40px; padding: 12px; font-size: 13px; }
.day.free .ti, .day.hol .ti { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; }
.day.busy { padding: 10px 0; }
.day.busy .ti { font-weight: 400; font-size: 14px; color: var(--ink-2); }
.day.past { opacity: .62; }
.day.lit .ti { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 19px; }
.hol-name { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.sugg { margin-top: 8px; border-top: 1px solid var(--rule); }
.sg { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.sg .tt { font-size: 14px; font-weight: 500; line-height: 1.25; }
.sg .mm { font-size: 12px; color: var(--ink-2); margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sg .chip { min-height: 40px; padding: 12px; font-size: 13px; }
.keepbtn { margin-top: 4px; }
.weekacts { padding: 22px 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.weekacts .full { grid-column: 1 / -1; }
.feedbox { margin: 12px 24px 0; padding: 14px; border: 1px solid var(--rule-2); font-size: 14px; }
.feedbox code { display: block; font-family: var(--sans); font-size: 13px; word-break: break-all; background: var(--paper-2); padding: 12px; margin: 8px 0; }

/* ---------- Month ---------- */
.mhero { position: relative; height: 270px; overflow: hidden; color: #fff; background: #241A12; }
.mhero .photo { object-position: 50% 46%; }
.mhero .shade { background: linear-gradient(180deg, rgba(14, 10, 7, .45), rgba(14, 10, 7, 0) 35%, rgba(14, 10, 7, .78)); }
.mhero .txt { position: absolute; left: 24px; right: 24px; bottom: 16px; z-index: 3; }
.mhero h1 { font-size: 58px; line-height: .92; letter-spacing: -.03em; }
.mhero p { font-family: var(--serif); font-style: italic; font-size: 18px; margin-top: 8px; color: rgba(255, 255, 255, .95); }
.mtabs { display: flex; gap: 8px; padding: 14px 24px 0; }
.mgrid { padding: 6px 24px 0; }
.mg { display: grid; grid-template-columns: 104px repeat(var(--w, 4), 1fr); align-items: center; }
.mg.hd { font-size: 12px; color: var(--ink-2); padding: 10px 0 6px; border-bottom: 1px solid var(--rule); }
.mg.hd span { text-align: center; }
.mg.r { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.mg .gn { font-size: 15px; font-weight: 500; line-height: 1.15; }
.mg .gn small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2); }
.dots { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.2px solid var(--ink); }
.dots i.f { background: var(--ink); }
.dots i.g { background: var(--sun); border-color: var(--sun-deep); }
.dots i.cb { border: 2px solid var(--sun-deep); width: 12px; height: 12px; margin-top: -1px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 10px; align-items: center; }
.legend span { display: flex; gap: 5px; align-items: center; }
.legend i { width: 9px; height: 9px; border-radius: 50%; border: 1.1px solid var(--ink); }
.legend i.f { background: var(--ink); }
.legend i.g { background: var(--sun); border-color: var(--sun-deep); }
.legend i.cb { border: 2px solid var(--sun-deep); }
.comeback { margin: 18px 24px 0; padding: 14px 16px; background: var(--paper-2); }
.comeback h3 { font-size: 21px; }
.comeback p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.year { padding: 28px 24px 0; }
.year h2 { font-size: 28px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.year h2 small { font-family: var(--sans); font-size: 12px; color: var(--ink-2); letter-spacing: 0; }
.ybars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 64px; margin-top: 12px; }
.ybars i { display: block; border-radius: 1px; border: 1px solid rgba(22, 18, 14, .3); }
.ybars i.dt { background: var(--ink); border-color: var(--ink); }
.ybars i.now { background: var(--sun); border-color: var(--sun-deep); }
.ylab { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; font-size: 11px; color: var(--ink-2); text-align: center; margin-top: 4px; }
.ylist { margin-top: 10px; }
.yrow { display: grid; grid-template-columns: 48px 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; align-items: baseline; }
.yrow b { font-family: var(--serif); font-weight: 400; font-size: 16px; }
.yrow small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.yrow.now b { font-style: italic; }

/* ---------- Crew, invites, polls ---------- */
.photo-card { position: relative; height: 300px; margin: 16px 16px 0; border-radius: 4px; overflow: hidden; color: #fff; background: #241A12; }
.photo-card .shade { background: linear-gradient(180deg, rgba(14, 10, 7, .45), rgba(14, 10, 7, .05) 30%, rgba(14, 10, 7, .82)); }
.photo-card .from { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-size: 13px; z-index: 3; }
.photo-card .txt { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 3; }
.photo-card h1, .photo-card h2 { font-size: 38px; line-height: .98; }
.photo-card .when { font-size: 14px; margin-top: 8px; color: rgba(255, 255, 255, .92); }
.who { display: flex; align-items: center; gap: 12px; padding: 14px 24px 0; }
.av { display: flex; }
.av span { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 15px; background: var(--paper-2); border: 1.5px solid var(--paper); margin-left: -8px; color: var(--ink); }
.av span:first-child { margin-left: 0; }
.av span.you { background: var(--sun); font-family: var(--sans); font-size: 12px; font-weight: 500; }
.who .names { font-size: 14px; flex: 1; }
.who .cnt { text-align: right; font-family: var(--serif); font-size: 30px; line-height: .9; }
.who .cnt small { display: block; font-family: var(--sans); font-size: 12px; color: var(--ink-2); }
.send { padding: 6px 24px 10px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.via { display: flex; flex-wrap: wrap; gap: 0 10px; }
.sec { padding: 22px 24px 0; }
.sec > h2 { font-size: 24px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.sec > h2 small { font-family: var(--sans); font-size: 13px; color: var(--ink-2); letter-spacing: 0; }
.lrow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.lrow .tt { font-size: 15px; font-weight: 500; }
.lrow .mm { font-size: 13px; color: var(--ink-2); }
.opt {
  position: relative; width: 100%; min-height: 50px; border: 1px solid var(--rule-2); border-radius: 2px; margin-bottom: 8px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: 15px; overflow: hidden; text-align: left;
}
.opt::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--paper-2); z-index: 0; transition: width .6s cubic-bezier(.16, 1, .3, 1); }
.opt.lead::before { background: var(--sun-wash); }
.opt span, .opt small { position: relative; z-index: 1; }
.opt small { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.opt[aria-pressed="true"] { border-color: var(--ink); }
button.opt:hover { border-color: var(--ink); }
.safe { padding: 16px 24px 0; font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.empty { padding: 18px 0; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-2); }

/* ---------- Share ---------- */
.shares { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 16px 24px 0; }
.shares figure { display: flex; flex-direction: column; gap: 10px; }
.shares canvas { width: 100%; height: auto; border-radius: 6px; background: #120D09; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .55); }
.shares .story-c { max-width: 330px; margin: 0 auto; }
.shares .recap-c { max-width: 400px; margin: 0 auto; }
.shares figcaption { font-size: 13px; color: var(--ink-2); text-align: center; }
.filepick { position: relative; }
.filepick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.filepick input:focus-visible + .btn { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- You ---------- */
.you-head { padding: 28px 24px 8px; border-bottom: 1px solid var(--rule); }
.you-head h1 { font-size: 44px; line-height: 1; }
.you-head p { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.ans { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.ans .k { font-size: 13px; color: var(--ink-2); }
.ans .v { font-size: 16px; }
.learned p { font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.learned p + p { margin-top: 6px; }
.learned .fine { font-family: var(--sans); margin-top: 8px; }
.next-list li { list-style: none; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; }
.next-list li small { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.credits { padding: 24px 24px 0; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.credits b { font-weight: 500; color: var(--ink); }
.danger { color: #8E2A14; }
dialog { border: 0; padding: 22px; max-width: 360px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); border-radius: 2px; margin: auto; }
dialog::backdrop { background: rgba(14, 10, 7, .6); }
dialog h2 { font-size: 26px; margin-bottom: 8px; }
dialog p { font-size: 15px; color: var(--ink-2); }
dialog .row2 { margin-top: 18px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + 14px); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 16px; font-size: 14px; border-radius: 2px; z-index: 50; max-width: calc(100% - 32px); }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 40px; }
  #app { margin-top: 28px; min-height: auto; box-shadow: 0 0 0 1px rgba(239, 230, 218, .12), 0 40px 70px -30px rgba(0, 0, 0, .7); }
  .tabs { bottom: 16px; border: 1px solid var(--rule); }
  #app.bare { margin-top: 28px; }
  .welcome { min-height: 820px; }
  .hero { height: 300px; }
  .hero h1 { font-size: 60px; }
  #app.wide .days .day { grid-template-columns: 70px 90px 1fr; gap: 12px; }
  #app.wide .day .d { font-size: 26px; }
  #app.wide .weekacts { grid-template-columns: repeat(3, 1fr); }
  #app.wide .weekacts .full { grid-column: auto; }
  #app.wide .sugg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; border-top: 0; }
  #app.wide .sg { border-top: 1px solid var(--rule); grid-template-columns: 1fr; }
  #app.wide .sg .chip { justify-self: start; }
  #app.wide .mhero { height: 320px; }
  #app.wide .monthyear { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8px; }
  .shares { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .henge::before { animation: none; display: none; }
  * { transition: none !important; scroll-behavior: auto !important; }
}
.tabs[hidden] { display: none; }
#app { display: flow-root; }
.learned p.fine { font-family: var(--sans); font-size: 13px; line-height: 1.5; margin-top: 10px; }
a.chip { text-decoration: none; }
.welcome .sheet .fine { color: var(--ink-2); }
.mg.hd span small { display: block; font-size: 11px; }
.mg.hd { align-items: end; }
@media (max-width: 430px) {
  .mg { grid-template-columns: 78px repeat(var(--w, 4), 1fr); }
  .dots { gap: 3px; }
  .dots i { width: 8px; height: 8px; }
  .dots i.cb { width: 10px; height: 10px; }
  .welcome h1 { font-size: 40px; }
  .hero h1 { font-size: 42px; }
  .wrap, .days, .srcline, .mgrid, .sec, .year, .who, .send, .check, .weekacts { padding-left: 20px; padding-right: 20px; }
  .day { grid-template-columns: 42px 64px 1fr; }
}
@media (max-width: 430px) {
  .daygrid { grid-template-columns: repeat(4, 1fr); }
  .daygrid button { padding: 12px; }
}
.sg .mm { display: block; }
.sg .mm .src { display: inline-flex; }
.weekacts .btn { padding: 12px 10px; font-size: 15px; }
.field { min-width: 0; }
.field input { width: 100%; min-width: 0; }

/* ---------- Google Calendar busy times ---------- */
.srcline.cal { justify-content: flex-start; }
.day.cal .calrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.day.cal .ti { display: inline-flex; align-items: center; gap: 6px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); }
.clash { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #8E2A14; margin-bottom: 4px; }
.gcal { display: grid; gap: 12px; padding: 14px 0 4px; }
.gcal p { font-size: 15px; line-height: 1.45; }
.gcal .btn { justify-self: start; }
.gcal.off { grid-template-columns: 1fr auto; align-items: center; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.gcal.off small { font-size: 12px; white-space: nowrap; }
.gcal.on p b { font-weight: 500; color: var(--live); }

/* Why this? + more/less like this */
.why { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.why summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(22, 18, 14, .35); min-height: 32px; display: inline-flex; align-items: center; }
.why ul { margin: 4px 0 0; padding-left: 18px; }
.why li { margin: 2px 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.thumbs .chip { min-height: 40px; padding: 10px 12px; font-size: 13px; }

/* Connections */
.feedadd { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.feedadd input { flex: 1; min-width: 180px; font: inherit; border: 1px solid var(--rule-2); border-radius: 10px; padding: 10px 12px; background: #fff; }

/* Lock screen + text versions */
.shares canvas.lock-c { aspect-ratio: 1179 / 2556; width: 100%; max-width: 300px; height: auto; border-radius: 28px; }
.howto { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.howto summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.howto ol { margin: 6px 0 0; padding-left: 20px; }
.as-text { font: 400 26px/1.2 var(--serif); margin: 22px 0 10px; }
