/* OneSharedCal. Ink on fog; colour is reserved for people and categories. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --fog: #EEF1F6; --paper: #FFFFFF; --ink: #161B33; --ink-2: #4A5070; --ink-3: #868CA6;
  --line: #DDE1EC; --tint: rgba(22, 27, 51, .06); --tint-2: rgba(22, 27, 51, .11); --on-ink: #FFFFFF;
  --alert: #C93A22; --r-s: 10px; --r-m: 16px; --r-l: 26px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fog: #0E1221; --paper: #171C31; --ink: #EEF0F9; --ink-2: #B2B8D0; --ink-3: #7E86A6;
    --line: #272D47; --tint: rgba(238, 240, 249, .08); --tint-2: rgba(238, 240, 249, .15); --on-ink: #0E1221; --alert: #FF8A73; }
}
:root[data-theme="dark"] { --fog: #0E1221; --paper: #171C31; --ink: #EEF0F9; --ink-2: #B2B8D0; --ink-3: #7E86A6;
  --line: #272D47; --tint: rgba(238, 240, 249, .08); --tint-2: rgba(238, 240, 249, .15); --on-ink: #0E1221; --alert: #FF8A73; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fog); color: var(--ink); font: 400 16px/1.4 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); } .small { font-size: 13px; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

#app { max-width: 640px; margin: 0 auto; min-height: 100dvh; padding: calc(var(--safe-t) + 18px) 16px calc(150px + var(--safe-b)); }
.page { display: grid; gap: 26px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.head .sub { color: var(--ink-2); margin-top: 4px; }
.sec { display: grid; gap: 10px; }
.sec > .sh { display: flex; align-items: baseline; justify-content: space-between; }
.sec h2 { font-size: 21px; font-weight: 800; letter-spacing: -.025em; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }

/* buttons */
.btn { border: 0; background: var(--tint); border-radius: 12px; padding: 12px 16px; font-weight: 600; min-height: 44px; }
.btn:active { background: var(--tint-2); }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.danger { color: var(--alert); }
.btn.ghost { background: none; }
.btn.sm { min-height: 36px; padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tint); display: grid; place-items: center; flex: none; }
.iconbtn:active { background: var(--tint-2); }

/* floating tab bar + new-event pill */
.tabbar { position: fixed; left: 0; right: 0; bottom: calc(10px + var(--safe-b)); display: flex; justify-content: center; padding: 0 16px; z-index: 20; pointer-events: none; }
.tabs { pointer-events: auto; display: flex; gap: 4px; padding: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 10px 30px -12px rgba(22, 27, 51, .35); width: 100%; max-width: 380px; }
.tab { flex: 1; border: 0; background: none; color: var(--ink-2); height: 46px; border-radius: 23px; display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 14px; }
.tab.on { background: var(--ink); color: var(--on-ink); }
.newpill { position: fixed; right: max(16px, calc(50% - 304px)); bottom: calc(80px + var(--safe-b)); height: 50px; padding: 0 20px 0 16px; border: 0; border-radius: 25px;
  background: var(--ink); color: var(--on-ink); font-weight: 700; display: flex; align-items: center; gap: 8px; z-index: 19; box-shadow: 0 12px 28px -10px rgba(22, 27, 51, .55); }

/* people */
.av { width: 28px; height: 28px; border-radius: 50%; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.avs { display: flex; } .avs .av { margin-left: -7px; box-shadow: 0 0 0 2px var(--paper); } .avs .av:first-child { margin-left: 0; }
.hero .avs .av { box-shadow: none; border: 2px solid var(--c); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--tint); color: var(--ink-2); }
.tag.need { background: var(--ink); color: var(--on-ink); }
.gbadge { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; background: var(--tint); }

/* next up */
.hero { background: var(--c); color: var(--t); border-radius: 28px; padding: 22px 22px 20px; display: grid; gap: 14px; text-align: left; border: 0; width: 100%; }
.hero .when { font-weight: 700; font-size: 15px; opacity: .85; }
.hero .ttl { font-size: 32px; font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.hero .meta { font-size: 15px; opacity: .85; }
.hero .acts { display: flex; gap: 8px; }
.hero .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero .acts button { border: 0; border-radius: 999px; height: 38px; padding: 0 14px; white-space: nowrap; font-weight: 700; background: var(--t); color: var(--c); }
.hero .acts button.alt { background: rgba(255, 255, 255, .22); color: var(--t); }
.hero .acts button.alt.dk { background: rgba(0, 0, 0, .12); }

/* agenda rows: time first */
.ev { display: grid; grid-template-columns: 54px 5px 1fr auto; gap: 11px; align-items: stretch; width: 100%; text-align: left; border: 0; background: var(--paper);
  border-radius: var(--r-m); padding: 13px 14px 13px 12px; }
.ev .tm { font-weight: 700; font-size: 17px; line-height: 1.1; font-variant-numeric: tabular-nums; align-self: center; text-align: right; letter-spacing: -.02em; }
.ev .tm small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }
.ev .pill { width: 5px; border-radius: 3px; background: var(--c); }
.ev.maybe .pill { background: repeating-linear-gradient(180deg, var(--c) 0 5px, transparent 5px 9px); }
.ev .t { font-weight: 700; font-size: 17px; letter-spacing: -.015em; line-height: 1.2; }
.ev .m { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.ev.needs { box-shadow: inset 0 0 0 2px var(--ink); }
.ev.no { opacity: .5; } .ev.no .t { text-decoration: line-through; }
.ev:active { background: var(--tint); }
.reply3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.reply3 .btn.on { background: var(--ink); color: var(--on-ink); }
.empty { color: var(--ink-2); padding: 18px 0; }
.empty b { font-weight: 600; }
.overlap { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-m); background: var(--paper); font-size: 15px; }
.overlap svg { color: var(--alert); margin-top: 1px; }

/* calendar */
.scope { appearance: none; -webkit-appearance: none; border: 0; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23868CA6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border-radius: 14px; height: 44px; padding: 0 36px 0 14px; font-weight: 700; font-size: 16px; max-width: 58%; text-overflow: ellipsis; }
.viewseg { display: inline-flex; background: var(--tint); border-radius: 14px; padding: 3px; }
.viewseg button { border: 0; background: none; height: 38px; padding: 0 14px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.viewseg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 27, 51, .15); }
.nav { display: flex; align-items: center; gap: 10px; }
.nav h2 { font-size: 25px; font-weight: 800; letter-spacing: -.035em; flex: 1; white-space: nowrap; min-width: 0; }
.nav .iconbtn { width: 40px; height: 40px; }
.nav h2 span { color: var(--ink-3); font-weight: 600; }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 2px 0 4px; }
.cell { border: 0; background: none; border-radius: 12px; padding: 5px 4px 6px; min-height: 66px; display: flex; flex-direction: column; align-items: stretch; gap: 5px; text-align: left; min-width: 0; }
.cell .d { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; align-self: center; }
.cell.out { opacity: .38; }
.cell.today .d { background: var(--ink); color: var(--on-ink); font-weight: 700; }
.cell.sel { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cell { position: relative; }
.mweeks { display: flex; flex-direction: column; gap: 3px; }
.mweek { display: grid; }
.mweek .cells { display: grid; gap: 3px; }
.mweek .cells, .mweek .lanes { grid-area: 1 / 1; min-width: 0; }
.mweek .lanes { position: relative; z-index: 1; display: grid; gap: 2px 3px; padding: 34px 0 0; grid-auto-rows: max-content; align-content: start; pointer-events: none; }
.seg { display: block; font-style: normal; height: 5px; border-radius: 3px; background: var(--c); min-width: 0; margin: 0 3px; align-self: start; }
.seg span { display: none; }
.seg.cs { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.seg.ce { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.more { font-style: normal; font-size: 10px; font-weight: 700; color: var(--ink-3); text-align: center; line-height: 1; }
.cell { min-height: 74px; }
@media (min-width: 540px) {
  .cell { min-height: 124px; align-items: stretch; } .cell .d { align-self: flex-start; } .cell .top { justify-content: flex-start; } .hpill { display: block; }
  .seg { height: auto; padding: 2px 5px; border-radius: 6px; color: var(--t); pointer-events: auto; cursor: pointer; } /* tap a bar to open that event */
  .seg.cs { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
  .seg.ce { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
  .seg span { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.25; white-space: normal; overflow-wrap: break-word; hyphens: auto; }
}
.dayh { display: flex; align-items: baseline; justify-content: space-between; }
.dayh h3 { font-size: 21px; font-weight: 800; letter-spacing: -.025em; }

/* week rail */
.wk { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; }
.wk .rail { text-align: center; padding-top: 6px; }
.wk .rail .w { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.wk .rail .n { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wk.today .rail .n { background: var(--ink); color: var(--on-ink); border-radius: 14px; }
.wk .none { color: var(--ink-3); padding: 12px 0; font-size: 14px; }
.wk .add { margin-top: 2px; }

/* forms */
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.in { width: 100%; border: 0; background: var(--fog); border-radius: 12px; padding: 13px 14px; font-size: 16px; min-height: 46px; }
#app .in { background: var(--paper); }
.in:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
textarea.in { min-height: 84px; resize: vertical; }
select.in { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23868CA6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.checks { display: grid; gap: 2px; max-height: 210px; overflow: auto; background: var(--fog); border-radius: 12px; padding: 6px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); font-size: 16px; padding: 6px; min-height: 40px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 0; box-shadow: 0 0 0 0 var(--ink); }
.swatch.on { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.err { color: var(--alert); font-size: 14px; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.block-h { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.hr { height: 1px; background: var(--line); border: 0; margin: 4px 0; }

/* sheet */
.scrim { position: fixed; inset: 0; background: rgba(14, 18, 33, .5); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease-out; }
.sheet { background: var(--paper); width: 100%; max-width: 560px; max-height: 93dvh; overflow: auto; border-radius: var(--r-l) var(--r-l) 0 0; padding: 8px 18px calc(24px + var(--safe-b)); animation: rise .24s cubic-bezier(.2, .8, .2, 1); }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: var(--tint-2); margin: 4px auto 6px; }
.sheet .sh { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: sticky; top: 0; background: var(--paper); padding: 8px 0 12px; z-index: 1; }
.sheet h2 { font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
@media (min-width: 640px) { .scrim { align-items: center; } .sheet { border-radius: var(--r-l); } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scrim, .sheet { animation: none; } * { transition: none !important; } }

/* auth */
.auth { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 28px; max-width: 380px; margin: 0 auto; padding: 32px 4px; }
.motif { display: grid; gap: 7px; }
.motif i { display: block; height: 16px; border-radius: 8px; background: var(--c); }
.auth h1 { font-size: 44px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.auth .lede { color: var(--ink-2); font-size: 18px; margin-top: 10px; }
.auth form { display: grid; gap: 14px; }
.auth .in { background: var(--paper); }
#toast { position: fixed; left: 50%; bottom: calc(146px + var(--safe-b)); transform: translateX(-50%) translateY(6px); background: var(--ink); color: var(--on-ink); padding: 11px 18px;
  border-radius: 99px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- Desktop: side rail, wider pages, month beside the day list ---------- */
@media (min-width: 1000px) {
  #app { max-width: none; padding: 36px clamp(32px, 3vw, 64px) 56px calc(232px + clamp(32px, 3vw, 64px)); }
  .page { max-width: none; }
  .page.settings { max-width: 640px; }
  .page.cal > .stack { max-width: none; }
  .tabbar { top: 0; bottom: 0; left: 0; right: auto; width: 232px; padding: 28px 16px; justify-content: stretch; align-items: flex-start;
    background: var(--paper); border-right: 1px solid var(--line); pointer-events: auto; }
  .tabs { flex-direction: column; width: 100%; max-width: none; padding: 0; background: none; border: 0; box-shadow: none; gap: 4px; }
  .tab { flex: none; width: 100%; justify-content: flex-start; padding: 0 16px; height: 44px; border-radius: 14px; font-size: 15px; }
  .tab:not(.on):hover { background: var(--tint); }
  .newpill { right: auto; left: 16px; bottom: 24px; width: 200px; justify-content: center; z-index: 21; }

  .page.home { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); column-gap: clamp(28px, 3vw, 56px); align-items: start; }
  .page.home > .head { grid-column: 1 / -1; }
  .hmain, .hside { display: grid; gap: 26px; align-content: start; min-width: 0; }
  .page.home > .hmain, .page.home > .hside { order: 0; }

  .month { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 26vw, 460px); column-gap: clamp(28px, 3vw, 56px); align-items: start; }
  .month > .nav { grid-column: 1; grid-row: 1; }
  .month > .mwrap { grid-column: 1; grid-row: 2; }
  .month > .sec { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 24px; }
  .page.cal > .stack:not(.month) { max-width: 980px; }
  .sheet .grab { display: none; }
}

/* holidays, legend, ignored overlaps, undo toast, voice */
:root { --hol-bg: rgba(240, 169, 11, .16); --hol-ink: #8A5A00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hol-bg: rgba(245, 196, 81, .16); --hol-ink: #F5C451; } }
:root[data-theme="dark"] { --hol-bg: rgba(245, 196, 81, .16); --hol-ink: #F5C451; }
.cell .top { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.cell.hday { background: var(--hol-bg); }
.cell.hday.sel { background: var(--hol-bg); }
.cell.hday .d { color: var(--hol-ink); }
.cell.hday.today .d { color: var(--on-ink); }
.hpill { display: none; min-width: 0; font-size: 10.5px; font-weight: 700; color: var(--hol-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.holrow { display: flex; align-items: center; gap: 12px; background: var(--hol-bg); color: var(--hol-ink); border-radius: 14px; padding: 10px 14px; }
.holrow .star { font-size: 18px; line-height: 1; }
.holrow .hn { font-weight: 700; font-size: 15px; }
.holrow .hs { font-size: 12.5px; opacity: .85; }
.lg.hol { background: var(--hol-bg); box-shadow: inset 0 0 0 1.5px var(--hol-ink); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 18px; height: 8px; border-radius: 4px; background: var(--ink-2); }
.lg.faded { opacity: .45; } .lg.no { opacity: .3; background-image: linear-gradient(var(--paper), var(--paper)); background-size: 100% 2px; background-repeat: no-repeat; background-position: center; }
.overlap.ignored { opacity: .65; }
.overlap.travel svg { color: var(--ink-2); }
#toast.act { pointer-events: auto; display: flex; align-items: center; gap: 14px; }
.toastbtn { border: 0; background: rgba(255, 255, 255, .2); color: inherit; font-weight: 700; padding: 5px 12px; border-radius: 99px; }
.btn.rec { background: var(--alert); color: #fff; }
a.btn[hidden] { display: none; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-self: start; }
.vwhen { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }

/* places */
.pwrap { position: relative; }
.pdrop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--paper); border-radius: 14px; box-shadow: 0 10px 30px rgba(22, 27, 51, .18), 0 0 0 1px var(--line); max-height: 300px; overflow: auto; padding: 4px; }
.pdrop[hidden] { display: none; }
.phead { font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 8px 10px 4px; }
.phead:empty { display: none; }
.popt { display: flex; align-items: stretch; }
.pbtn { flex: 1; min-width: 0; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 10px; display: flex; flex-direction: column; gap: 1px; color: var(--ink); }
.pbtn:hover, .pbtn:focus-visible { background: var(--tint); }
.pn { font-weight: 650; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdel { border: 0; background: none; color: var(--ink-3); font-size: 20px; padding: 0 12px; border-radius: 10px; }
.pdel:hover { background: var(--tint); color: var(--alert); }
.mapbox { position: relative; display: block; height: 160px; border-radius: 14px; overflow: hidden; background: var(--tint); }
.mapin { position: absolute; left: 50%; top: 50%; width: 768px; height: 768px; }
.mapin img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; }
.pin { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -16px 0 0 -8px; background: var(--alert); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.mapcredit { position: absolute; right: 6px; bottom: 4px; font-size: 10px; background: rgba(255, 255, 255, .8); color: #333; padding: 1px 5px; border-radius: 6px; }
@media (min-width: 540px) { .hpill { display: block; } .cell .top { justify-content: flex-start; } }
@media (min-width: 540px) {
  .cell { min-height: 132px; }
  .hpill { position: absolute; left: 7px; right: 7px; bottom: 5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; font-size: 11px; }
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.freewin { background: var(--tint); border-radius: var(--r-m, 12px); padding: 10px 12px; }

.tl { }
.tlaxis { position: relative; height: 14px; margin-left: 0; font-size: 11px; color: var(--muted, #6b7390); }
.tlaxis span { position: absolute; transform: translateX(-50%); }
.tlrow { display: grid; gap: 4px; }
.tlday { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.tlbest { background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.tltrack { position: relative; border-radius: 10px; background: var(--tint); overflow: hidden; cursor: pointer; touch-action: manipulation; }
.tlband { position: absolute; top: 0; bottom: 0; background: rgba(46, 170, 112, .28); border-left: 2px solid #2EAA70; border-right: 2px solid #2EAA70; }
.tlband.short { background: repeating-linear-gradient(45deg, rgba(128,128,128,.18) 0 4px, transparent 4px 8px); border-color: transparent; }
.tlbar { position: absolute; left: 0; right: 0; height: 6px; }
.tlbar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; opacity: .95; }
.tlpick { position: absolute; top: 2px; bottom: 2px; border: 2px solid var(--ink); border-radius: 8px; background: rgba(46, 170, 112, .45); pointer-events: none; }
.tlact { padding-top: 4px; }
.tlnone { padding: 2px 0; }
.tlkey .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tlkey .tlfree { background: rgba(46, 170, 112, .5); border: 1px solid #2EAA70; }

/* Calendar header: fits a phone. The view switch gets its own full-width row. */
.calhdr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.calhdr .scope { min-width: 0; max-width: 100%; }
@media (max-width: 539px) { .calhdr .viewseg { flex: 1 1 100%; display: flex; } .calhdr .viewseg button { flex: 1; } }
.listh { font-size: 22px; font-weight: 800; letter-spacing: -.03em; } .listh span { color: var(--ink-3); font-weight: 600; font-size: 15px; letter-spacing: 0; }
.ev .evbody { min-width: 0; overflow-wrap: anywhere; }
.ev .m.when { color: var(--ink); font-weight: 600; }
.ev .m.note { color: var(--ink-3); font-size: 13px; }
.ev .m.with { font-size: 13px; }
body { max-width: 100%; overflow-x: clip; }
.calhdr .scope { flex: 1 1 0; width: auto; }
.calhdr > .row { flex: none; }
.nav h2 { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .nav { flex-wrap: wrap; } .nav h2 { flex: 1 1 100%; font-size: 22px; } .nav .btn { margin-right: auto; } }
@media (min-width: 540px) { .mweek .lanes { padding-bottom: 22px; } }
.daystack { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-self: start; }
.daystack .seg { align-self: stretch; }

/* landing: what a signed-out visitor sees */
#app.landing { max-width: 1080px; padding: calc(var(--safe-t) + 20px) 20px 56px; }
.land { display: grid; gap: 56px; }
.lbrand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.lbrand img { border-radius: 10px; display: block; }
.lhero { display: grid; gap: 28px; align-items: start; }
.lcopy { display: grid; gap: 18px; min-width: 0; }
.land h1 { font-size: clamp(36px, 9vw, 60px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.land .lede { color: var(--ink-2); font-size: 18px; line-height: 1.45; max-width: 34em; text-wrap: pretty; }
.lcard { background: var(--paper); border-radius: var(--r-l); padding: 22px; display: grid; gap: 12px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(22, 27, 51, .35); }
.lcard h2 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.lcard form { display: grid; gap: 14px; margin-top: 6px; }
.mock { background: var(--paper); border-radius: var(--r-m); padding: 14px; display: grid; gap: 10px; box-shadow: 0 1px 0 var(--line); max-width: 520px; }
.mdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.mdays .on { color: var(--ink); }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 26px; gap: 6px 4px; }
.mbar { display: block; font-style: normal; background: var(--c); color: var(--t); border-radius: 8px; font-size: 11.5px; font-weight: 700; padding: 5px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfoot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding-top: 2px; }
.mwarn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--alert); }
.mwarn .i { width: 15px; height: 15px; }
.mchip { background: var(--c); color: var(--t); border-radius: 99px; font-size: 12px; font-weight: 700; padding: 2px 9px; }
.lsec { display: grid; gap: 22px; }
.lsec > h2 { font-size: 28px; font-weight: 800; letter-spacing: -.035em; }
.benefits, .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 40px; }
.benefits li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.bdot { display: block; width: 26px; height: 10px; border-radius: 5px; background: var(--c); margin-top: 8px; }
.land h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.land li p { color: var(--ink-2); margin-top: 4px; line-height: 1.45; text-wrap: pretty; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.snum { width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.lfoot { padding-top: 8px; }
@media (min-width: 860px) {
  .land { gap: 88px; }
  .lhero { grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding-top: 12px; }
  .benefits { grid-template-columns: 1fr 1fr; gap: 30px 56px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .lcard { padding: 28px; position: sticky; top: 28px; }
}
@media (max-width: 520px) { .mbar { font-size: 10.5px; padding: 5px 6px; } .mgrid { gap: 6px 3px; } }

.lfind { display: grid; gap: 24px; align-items: center; }
.lfcopy { display: grid; gap: 14px; min-width: 0; }
.lfcopy h2 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; text-wrap: balance; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink); line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-radius: 4px; background: #2EAA70; }
.fmock { max-width: 520px; gap: 14px; }
.ask { background: var(--tint); border-radius: 12px; padding: 11px 14px; font-weight: 600; color: var(--ink); }
.ask::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--ink); }
@media (min-width: 860px) { .lfind { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* landing: fill the page on wide screens */
@media (min-width: 860px) {
  #app.landing { max-width: 1240px; padding-left: 40px; padding-right: 40px; }
  .land { gap: 72px; }
  .lhero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "copy mock" "card mock"; grid-template-rows: auto 1fr; gap: 28px 64px; align-items: start; padding-top: 8px; }
  .lhero .lcopy { grid-area: copy; } .lhero .mock { grid-area: mock; } .lhero .lcard { grid-area: card; position: static; max-width: 460px; }
  .land h1 { font-size: clamp(52px, 5.4vw, 72px); }
  .lhero .mock { max-width: none; padding: 22px; gap: 14px; align-self: stretch; align-content: start; }
  .lhero .mgrid { grid-auto-rows: 40px; gap: 10px 6px; }
  .lhero .mbar { font-size: 14px; padding: 9px 12px; }
  .lhero .mdays { font-size: 14px; }
  .lhero .mwarn { font-size: 14px; } .lhero .mchip { font-size: 13px; padding: 3px 11px; }
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 34px 44px; }
  .lfind { gap: 64px; }
  .fmock { max-width: none; padding: 22px; }
}

.mrsvp { background: var(--tint); border-radius: 14px; padding: 14px; display: grid; gap: 12px; }
.mpill { display: block; width: 5px; align-self: stretch; border-radius: 3px; background: var(--c); }
.mneeds { background: var(--ink); color: var(--on-ink); border-radius: 99px; font-size: 12px; font-weight: 700; padding: 3px 10px; white-space: nowrap; }
.mbtn { border-radius: 99px; padding: 7px 14px; font-weight: 700; font-size: 13px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.mbtn.on { background: var(--ink); color: var(--on-ink); box-shadow: none; }
@media (min-width: 860px) { .lhero .mock { align-self: center; } }

/* landing: wide screens use the whole width */
@media (min-width: 1100px) {
  #app.landing { max-width: 1760px; padding-left: clamp(40px, 6vw, 128px); padding-right: clamp(40px, 6vw, 128px); }
  .land { gap: 96px; }
  .lhero { gap: 32px clamp(56px, 7vw, 140px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100dvh - 150px); align-content: center; }
  .land h1 { font-size: clamp(64px, 6.4vw, 104px); }
  .land .lede { font-size: clamp(19px, 1.5vw, 24px); max-width: 30em; }
  .lhero .lcard { max-width: 540px; padding: 32px; }
  .lhero .mock { padding: clamp(24px, 2.2vw, 40px); gap: 20px; border-radius: 24px; }
  .lhero .mgrid { grid-auto-rows: clamp(44px, 3.6vw, 60px); gap: 12px 8px; }
  .lhero .mbar { font-size: clamp(14px, 1.15vw, 18px); padding: 0 14px; display: flex; align-items: center; }
  .lhero .mdays { font-size: clamp(14px, 1.1vw, 17px); }
  .lhero .mwarn { font-size: clamp(14px, 1.1vw, 17px); } .lhero .mchip { font-size: clamp(13px, 1vw, 16px); padding: 4px 13px; }
  .mrsvp { padding: clamp(16px, 1.6vw, 26px); } .mrsvp b { font-size: clamp(16px, 1.3vw, 21px); } .mbtn { font-size: clamp(13px, 1vw, 16px); padding: 9px 18px; }
  .lfind { gap: clamp(56px, 7vw, 140px); }
  .lfcopy h2, .lsec > h2 { font-size: clamp(34px, 3.4vw, 54px); }
  .lfcopy .ticks li { font-size: clamp(16px, 1.25vw, 20px); }
  .fmock { padding: clamp(24px, 2.2vw, 40px); border-radius: 24px; } .fmock .tlday { font-size: clamp(13px, 1vw, 16px); } .fmock .ask { font-size: clamp(16px, 1.3vw, 21px); padding: 15px 20px; }
  .fmock .tltrack { height: 44px !important; } .fmock .tlbar { height: 8px; } .fmock .tlbar:nth-child(2) { top: 10px !important; } .fmock .tlbar:nth-child(3) { top: 26px !important; }
  .benefits { gap: 44px clamp(48px, 5vw, 96px); } .land h3 { font-size: clamp(18px, 1.45vw, 23px); } .land li p { font-size: clamp(15px, 1.15vw, 18px); }
  .snum { width: 52px; height: 52px; font-size: 22px; border-radius: 16px; } .steps li { grid-template-columns: 52px 1fr; }
}

/* tour */
.tour { position: fixed; inset: 0; z-index: 90; }
.tour.nohl { background: rgba(10, 12, 24, .62); }
.tourhl { position: absolute; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(10, 12, 24, .62), 0 0 0 3px #fff; pointer-events: none; transition: left .2s, top .2s, width .2s, height .2s; }
.tourcard { position: absolute; background: var(--paper); color: var(--ink); border-radius: 20px; padding: 18px 18px 16px; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .55); transition: left .2s, top .2s; }
.tourcard h3 { font-size: 20px; font-weight: 800; letter-spacing: -.03em; margin-top: 10px; }
.tourcard p { color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.tourdots { display: flex; gap: 5px; } .tourdots i { width: 16px; height: 5px; border-radius: 3px; background: var(--tint-2); } .tourdots i.on { background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .tourhl, .tourcard { transition: none; } }

/* feedback + insights */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--fog); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.stat b { font-size: 22px; } .stat span { font-size: 12px; color: var(--ink-3); }
.ftable { display: grid; gap: 2px; }
.frow { display: grid; grid-template-columns: 1fr auto 44px; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.frow b { text-align: right; }
.fb { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.fb.new { border-color: var(--ink); }
.fb p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Home: on phones the two columns dissolve so the order stays hero, brief, replies, overlaps, later, groups */
.hmain, .hside { display: contents; }
.hmain > * { order: 2; } .hmain > .lead, .hmain > .hero { order: 0; }
.hside > :first-child { order: 1; } .hside > :last-child { order: 3; }
@media (min-width: 1000px) { .hmain > *, .hside > * { order: 0 !important; } .hmain, .hside { display: grid; } }

/* landing: AI showcase */
.draft { background: var(--tint); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.drow { display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: baseline; }
.aibadge { background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.brief { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
@media (min-width: 860px) { .lai .lfcopy { order: 2; } .lai .fmock { order: 1; } }
@media (min-width: 1100px) { .draft, .brief { font-size: clamp(14px, 1.1vw, 18px); } }

.iconsel { width: 84px; font-size: 22px; text-align: center; text-align-last: center; padding-left: 8px; padding-right: 8px; }

.more summary { cursor: pointer; color: var(--ink-3); font-size: 14px; font-weight: 600; padding: 4px 0; }
.row.wrap { flex-wrap: wrap; }

/* quick add: input tools */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 68px; border: 0; border-radius: 14px; background: var(--tint);
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tool:active { background: var(--tint-2); }
.tool .i { width: 24px; height: 24px; }
.tool.rec { background: var(--alert); color: #fff; }
.photorow { display: flex; align-items: center; gap: 12px; background: var(--tint); border-radius: 14px; padding: 8px 10px; font-size: 14px; }
.photorow[hidden] { display: none; }
.photorow img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }

.news { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news:last-of-type { border-bottom: 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e5484d; margin-left: 8px; vertical-align: middle; }
.altz { font-size: 14px; color: var(--ink-2); display: grid; gap: 2px; margin-top: -4px; }
.tzrow { padding: 8px 0; border-bottom: 1px solid var(--line); }
.zres { display: grid; gap: 2px; }
.zopt { display: flex; align-items: baseline; gap: 6px; text-align: left; width: 100%; border: 0; background: var(--paper); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink); cursor: pointer; min-height: 44px; }
.zopt:hover, .zopt:focus-visible { background: var(--line); }

/* Phone month grid: same as the web one, with titles inside the bars. */
@media (max-width: 539px) {
  .cell { min-height: 96px; align-items: stretch; padding: 4px 2px 4px; gap: 3px; } .cell .top { justify-content: center; }
  .mweek .lanes { padding: 33px 0 4px; gap: 2px 2px; }
  .seg { height: auto; padding: 2px 3px; border-radius: 5px; color: var(--t); margin: 0 1px; pointer-events: auto; }
  .seg.cs { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
  .seg.ce { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
  .seg span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 10px; font-weight: 650; line-height: 1.15; overflow-wrap: anywhere; letter-spacing: -.01em; }
  .more { font-size: 10px; text-align: left; padding: 0 3px; }
}
.mwrap { touch-action: pan-y; }

/* Sheets scroll up and down only. iPhone Safari sizes date and time fields wider than their box, which let the whole sheet drift sideways. */
.sheet { overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.sheet .stack, .sheet .row, .sheet .grid2, .sheet label { min-width: 0; max-width: 100%; }
.grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
input.in[type="date"], input.in[type="datetime-local"], input.in[type="time"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; }
input.in[type="date"]::-webkit-date-and-time-value, input.in[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
.sheet input, .sheet select, .sheet textarea { max-width: 100%; box-sizing: border-box; }

/* sync status and pull to refresh */
html { overscroll-behavior-y: contain; }
.syncpill { display: inline-flex; align-items: center; gap: 7px; border: 0; background: var(--paper); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); white-space: nowrap; flex: none; cursor: pointer; }
.syncpill[hidden] { display: none; }
.syncdot { width: 8px; height: 8px; border-radius: 50%; background: #2EAA70; flex: none; }
.syncpill.busy .syncdot { background: var(--ink-3); animation: pulse 1s ease-in-out infinite; }
.syncpill.off { color: var(--alert); } .syncpill.off .syncdot { background: var(--alert); }
@keyframes pulse { 50% { opacity: .25; } }
.ptr { position: fixed; top: calc(var(--safe-t) + 8px); left: 50%; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); box-shadow: 0 2px 10px rgba(22, 27, 51, .2), 0 0 0 1px var(--line); display: grid; place-items: center; opacity: 0; transform: translate(-50%, -44px); transition: transform .2s, opacity .2s; z-index: 60; pointer-events: none; }
.ptr i { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--ink-3); border-top-color: transparent; transition: transform .15s; }
.ptr.ready i { border-color: var(--ink); border-top-color: transparent; transform: rotate(180deg); }
.ptr.spin i { border-color: var(--ink); border-top-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .syncpill.busy .syncdot, .ptr.spin i { animation: none; } }

/* no pinch zoom, no double-tap zoom */
html { touch-action: pan-x pan-y; }
/* settings: grouped list, each row opens its own screen */
.settings { display: grid; gap: 20px; align-content: start; }
.sprofile { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; background: var(--paper); color: var(--ink); font: inherit; padding: 14px 16px; border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); cursor: pointer; min-height: 64px; }
.sprofile .grow { display: grid; gap: 2px; min-width: 0; } .sprofile .grow b { font-size: 18px; } .sprofile .muted { overflow: hidden; text-overflow: ellipsis; }
.sgroup { display: grid; gap: 8px; } .sgroup > h2 { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; padding: 0 6px; }
.slist { background: var(--paper); border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.srow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.slist > .srow:first-child { border-top: 0; }
.srow:active, .sprofile:active { background: var(--tint); }
.srow .sl { font-weight: 600; flex: none; } .srow .sv { color: var(--ink-2); margin-left: auto; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .grow { display: grid; gap: 2px; flex: 1; } .srow .grow .sv { margin-left: 0; text-align: left; white-space: normal; font-size: 13px; }
.srow.check { cursor: pointer; } .srow.check input { width: 22px; height: 22px; flex: none; }
.srow.static { cursor: default; } .srow.static .sv { margin-left: auto; }
.srow:not(.static):not(.check) .dot + .chev, .chev { width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-top: 2px solid var(--ink-3); transform: rotate(45deg); flex: none; margin-left: 6px; }
.srow .sv + .chev, .srow .dot + .chev { margin-left: 6px; }
.srow .dot { margin-left: auto; }
.checks.tall { max-height: none; }
.devpill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--ink-2); flex: none; }
.srow > .chev { margin-left: auto; }
.srow .sv + .chev, .srow .dot + .chev { margin-left: 6px; }
.srow.danger { color: var(--alert); font-weight: 600; background: transparent; box-shadow: none; }

/* Event cards: tinted with the event's color, a clear color bar, and the group as a labelled badge. */
.ev { grid-template-columns: 54px 7px 1fr auto; background: color-mix(in srgb, var(--c) 15%, var(--paper)); }
.ev .pill { width: 7px; border-radius: 4px; }
.ev.maybe { background: color-mix(in srgb, var(--c) 7%, var(--paper)); }
.ev.maybe .pill { background: repeating-linear-gradient(180deg, var(--c) 0 6px, transparent 6px 10px); }
.ev .t { color: var(--ink); }
.gchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--c) 22%, var(--paper)); padding: 3px 9px 3px 7px; border-radius: 999px; margin-bottom: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rsvp { display: grid; gap: 10px; background: var(--fog); border-radius: var(--r-m); padding: 12px 14px; }
.rsvphead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rsvprow { display: grid; gap: 6px; } .rsvprow .rl { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.rsvprow.wait .rl { color: var(--alert); }
.aidisc { margin-top: -2px; }

.sheet .sh h2 { flex: 1; min-width: 0; }
.sheet .sh .hsave { flex: none; }

.viewseg.who { display: flex; } .viewseg.who button { flex: 1; }

.draftrow { align-items: flex-start; gap: 12px; padding: 12px; background: var(--tint); border-radius: var(--r-m, 14px); } .draftrow input { margin-top: 3px; }
[hidden] { display: none !important; }
