/* ABOUTME: Styles for Lisbon Sorted: Elliott's poster calendar look, with a coral field, sky cells and giant tight type. */
/* ABOUTME: The same grid, chips, tiles and drawer as his own planner, with nothing below 15px. */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../public/fonts/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../public/fonts/inter-tight-latin-ext.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 {
  --coral: #DE644E;
  --coral-deep: #C9533F;
  --sky: #B9CFF2;
  --sky-pale: #DCE7F8;
  --ink: #2B2D2A;
  --sand: #F3CFA6;
  --white: #FFFFFF;
  --good: #2F6B3A;
  --warn: #8F2F1C;
  --gutter: 16px;
  --pad: max(var(--gutter), calc((100% - 1148px) / 2));
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; background: var(--coral); color: var(--ink); overflow-x: clip; }
body { font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body.has-drawer { overflow: hidden; }
body.has-update-bar { padding-bottom: 76px; }
a { color: inherit; }
p { margin: 0 0 8px; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.main { display: block; }
.main:focus { outline: none; }

/* Press feedback, the moment a finger lands */
.chip, .go, .tabs button, .day, .sechip__star, .funnel button, .close { transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1); }
.chip:active, .go:active, .tabs button:active, .sechip__star:active, .funnel button:active, .close:active { transform: scale(0.97); }
.day:active { transform: scale(0.96); }

/* The day morph: only the named element moves, and taps pass straight through */
::view-transition { pointer-events: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(day-morph) { animation-duration: 280ms; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
::view-transition-old(day-morph), ::view-transition-new(day-morph) { animation-duration: 180ms; }

/* Header and tabs */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; padding: 12px var(--pad) 8px; }
.top__brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; letter-spacing: -0.02em; text-transform: uppercase; text-decoration: none; margin-right: auto; }
.top__note { margin: 0; font-weight: 700; font-size: 15px; }
.tabs { position: sticky; top: 0; z-index: 5; background: var(--coral); display: flex; gap: 6px; padding: 8px var(--pad) 12px; border-bottom: 2px solid var(--ink); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--ink); background: transparent; border-radius: 999px; padding: 6px 14px; min-height: 40px; font-weight: 700; font-size: 15px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--coral); }
.tabs small { font-size: 15px; font-weight: 900; background: var(--ink); color: var(--coral); border-radius: 999px; padding: 0 7px; }
.tabs button[aria-selected="true"] small { background: var(--coral); color: var(--ink); }

/* Title */
.title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; padding: 26px var(--pad) 16px; }
.bigtitle { font-weight: 800; letter-spacing: -0.055em; line-height: .86; font-size: clamp(44px, 10.6vw, 132px); margin: 0; text-transform: uppercase; }
.title-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.example-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; background: var(--ink); color: var(--sky); padding: 8px var(--pad); font-weight: 700; }
.example-bar b { background: var(--sand); color: var(--ink); border-radius: 999px; padding: 1px 12px; font-size: 18px; }
.example-bar .go { margin-left: auto; background: var(--sky); color: var(--ink); min-height: 40px; padding-block: 6px; }
.panel { padding: 0 var(--pad) 28px; }
.sec { font-weight: 900; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.04em; text-transform: uppercase; margin: 32px 0 12px; line-height: 1; }

/* Chips and buttons */
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 15px; background: transparent; text-decoration: none; text-align: center; }
.chip.solid { background: var(--ink); color: var(--coral); }
.chip:disabled { cursor: default; }
.chip--more { width: 100%; margin-top: 8px; }
.chip--sky { border-color: var(--sky); color: var(--sky); }
.go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; background: var(--ink); color: var(--sky); border: 0; text-decoration: none; font-weight: 800; padding: 10px 18px; border-radius: 999px; width: fit-content; }
.go--sky { background: var(--sky); color: var(--ink); }
.go--ai { flex: none; font-size: 17px; padding-inline: 22px; min-height: 48px; }
.linkish { border: 0; background: none; padding: 0; text-align: left; text-decoration: underline; font-size: inherit; font-weight: 600; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
select { font: inherit; font-weight: 700; font-size: 15px; background: var(--sky); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 12px; min-height: 40px; max-width: 100%; }
.lbl { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }

/* Filters */
.wsbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 0 0 14px; }
.filter { background: transparent; flex: 0 0 auto; }
.filter.solid { background: var(--ink); color: var(--coral); }
.result-count { font-weight: 900; font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.search { flex: 1 1 280px; font: inherit; font-weight: 600; font-size: 16px; border: 2px solid var(--ink); border-radius: 999px; padding: 9px 16px; min-height: 44px; background: var(--sky-pale); color: var(--ink); width: 100%; }
.search::placeholder { color: var(--ink); opacity: .7; }
.quick-add { flex: 1 1 320px; display: flex; gap: 8px; }
.quick-add .go { flex: none; }

/* Side events week: the same grid as Elliott's planner */
.lol { display: grid; grid-template-columns: 96px repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.lol-day { grid-row: 1; font-weight: 900; font-size: 18px; letter-spacing: -0.02em; text-transform: uppercase; padding: 2px 2px 4px; }
.lol-day small { font-size: 15px; font-weight: 800; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 7px; vertical-align: 2px; }
.lol-band { grid-column: 1; font-weight: 800; font-size: 15px; padding: 8px 2px; display: grid; align-content: start; }
.lol-band small { font-weight: 600; font-size: 15px; }
.lol-cell { background: var(--sky); border-radius: 14px; padding: 6px; display: grid; gap: 4px; align-content: start; min-height: 48px; }
.lol-bandname { display: none; }
.sechip { display: grid; grid-template-columns: minmax(0, 1fr) 26px; border-radius: 9px; background: var(--sky-pale); font-size: 15px; line-height: 1.25; }
.sechip__main { border: 0; background: none; color: inherit; font-size: 15px; line-height: 1.25; padding: 5px 0 6px 7px; text-align: left; overflow-wrap: anywhere; }
.sechip__main b { font-weight: 900; font-variant-numeric: tabular-nums; }
.sechip__star { border: 0; background: none; color: inherit; font-size: 17px; line-height: 1; padding: 6px 4px 0 0; align-self: start; min-height: 30px; }
.sechip.is-going { outline: 3px solid var(--ink); outline-offset: 1px; }
.cat-wellness { background: var(--good); color: var(--white); }
.cat-ai { background: var(--ink); color: var(--sky); }
.cat-investing { background: var(--sand); }
.cat-dining { background: var(--white); }
.cat-party { background: var(--coral); }
.cat-other { background: var(--sky-pale); }
.lol-edges { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 6px 12px; }
.lol-edges > div { display: grid; gap: 3px; font-weight: 800; font-size: 15px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; font-weight: 700; font-size: 15px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 16px; height: 16px; border-radius: 50%; display: inline-block; border: 1.5px solid var(--ink); }
.empty-note { font-weight: 700; font-size: 18px; padding: 16px 0; }

/* Number tiles */
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 12px; margin: 0 0 14px; }
.funnel > * { background: var(--sky); border: 0; border-radius: 18px; padding: 12px 16px; font-weight: 700; font-size: 15px; text-align: left; }
.funnel b { display: block; font-size: 38px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.funnel .goal { background: var(--ink); color: var(--sky); }
.funnel .tile-warn { background: var(--coral-deep); color: var(--white); outline: 3px solid var(--ink); }
.funnel--stages { grid-template-columns: repeat(auto-fit, minmax(min(46%, 112px), 1fr)); }
.funnel--stages b { font-size: 28px; }

/* The circle calendar: the same grid as Elliott's month view */
.month { padding: 18px var(--pad) 0; }
.dow, .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 1.2%; }
.dow div { text-align: center; font-weight: 800; font-size: clamp(15px, 1.8vw, 20px); letter-spacing: .02em; padding-bottom: 10px; }
.grid { row-gap: 8px; }
.day { position: relative; padding: 22px 0 0; border: 0; background: none; text-align: left; display: block; width: 100%; }
.day .num { position: absolute; top: 0; left: 6%; font-weight: 800; font-size: clamp(15px, 1.4vw, 16px); line-height: 1.3; }
.day .disc { position: relative; display: block; width: 100%; max-width: 128px; margin-inline: auto; aspect-ratio: 1; border-radius: 50%; background: var(--sky); overflow: hidden; transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) and (pointer: fine) { .day:hover .disc { transform: scale(1.04); } }
.day .disc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.day .disc .mono { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: clamp(15px, 2.4vw, 28px); letter-spacing: -0.02em; text-align: center; line-height: 1; }
.day.is-empty .disc { background: var(--sand); }
.day .count { position: absolute; right: 2%; top: 14px; background: var(--ink); color: var(--coral); font-weight: 800; font-size: 15px; border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 5px; z-index: 1; font-variant-numeric: tabular-nums; }
.day.out { visibility: hidden; }
.day.selected .disc { outline: 5px solid var(--ink); outline-offset: 2px; overflow: visible; }
.day.selected .disc img { border-radius: 50%; }
.day.selected .num { background: var(--ink); color: var(--coral); border-radius: 999px; padding: 0 7px; }
.day.unconfirmed .disc { outline: 4px dashed var(--ink); outline-offset: -4px; }
.day.unconfirmed .disc img { border-radius: 50%; }
.day .flags { position: absolute; left: 2%; bottom: 0; display: flex; gap: 2px; z-index: 1; }
.key-mark, .day .flags i { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-weight: 900; font-size: 15px; line-height: 1; background: var(--ink); color: var(--sand); }
.day .flags .flag-clash { background: var(--coral-deep); color: var(--white); outline: 2px solid var(--ink); }
.month-key { display: flex; flex-wrap: nowrap; gap: 12px; align-items: center; margin: 12px 0 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; }
.month-key span { display: inline-flex; align-items: center; gap: 4px; }
.key-ring { width: 20px; height: 20px; border-radius: 50%; border: 3px dashed var(--ink); display: inline-block; }

/* My week calendar */
details.goal { background: var(--sky); border-radius: 18px; padding: 10px 16px; margin: 0 0 14px; }
details.goal summary { cursor: pointer; font-weight: 700; font-size: 17px; }
details.goal dl { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 4px 12px; margin: 10px 0 4px; }
details.goal dt { font-weight: 800; }
details.goal dd { margin: 0; }
.cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; align-items: start; margin-top: 12px; }
.daycol { background: var(--sky); border-radius: 22px; padding: 12px 10px; display: grid; gap: 8px; align-content: start; }
.daycol--empty { background: transparent; border: 2px dashed var(--ink); }
.cal-title { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.cal-title__long { display: none; }
.cal-title small { font-size: 15px; font-weight: 800; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 7px; }
.cal-track { position: relative; margin-left: 42px; border-left: 2px solid rgba(43, 45, 42, .35); }
.cal-hour { position: absolute; left: -44px; width: 40px; font-size: 15px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; transform: translateY(-1px); letter-spacing: -0.03em; }
.cal-line { position: absolute; left: 0; right: 0; border-top: 1px solid rgba(43, 45, 42, .22); }
.cal--shared .daycol:not(:first-child) .cal-track { margin-left: 0; }
.cal--shared .daycol:not(:first-child) .cal-hour { display: none; }
.cal-lane { position: absolute; inset: 0 0 0 3px; }
.cal-block { position: absolute; overflow: hidden; border: 0; border-radius: 8px; padding: 4px 6px; font-size: 15px; line-height: 1.2; text-align: left; overflow-wrap: break-word; display: flex; align-items: flex-start; }
.cal-text { display: block; }
.cal-block b { font-weight: 900; font-variant-numeric: tabular-nums; }
.cal-block.is-in { outline: 3px solid var(--ink); outline-offset: -3px; }
.cal-block.is-applied { outline: 2px dashed var(--ink); outline-offset: -3px; }
.cal-block.is-clash { outline: 4px solid var(--coral-deep); outline-offset: -2px; z-index: 2; }
.cal-block.is-tight { border-bottom: 5px dotted var(--coral-deep); }
.cal-warn { display: block; font-style: normal; font-weight: 900; }
.cal-hold { background: var(--ink); color: var(--white); padding-right: 24px; }
.cal-x { position: absolute; top: 0; right: 0; width: 30px; height: 30px; border: 0; background: none; color: var(--white); font-size: 18px; font-weight: 900; }
.cal-mark { position: absolute; left: -2px; right: 0; border-top: 3px solid var(--ink); z-index: 3; }
.cal-mark span { position: absolute; right: 0; top: 1px; background: var(--ink); color: var(--sky); font-size: 15px; font-weight: 800; padding: 0 7px; border-radius: 0 0 8px 8px; white-space: nowrap; }
.cal-note { margin: 0; font-weight: 800; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: 14px; align-items: start; }
.card { background: var(--sky); border-radius: 22px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.card--ink { background: var(--ink); color: var(--sky); }
.card h4 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.card p { margin: 0; font-size: 15px; }
.card .sub { font-size: 15px; font-weight: 600; }
.card .acts { margin: 2px 0 0; }
.card__line { overflow-wrap: anywhere; }
.card__events { display: grid; gap: 4px; font-size: 15px; }
.mono-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.card--elliott { background: var(--sand); }
.pill--kind { justify-self: start; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.person-head { display: flex; gap: 12px; align-items: center; }
.mono-c { width: 48px; height: 48px; border-radius: 50%; background: var(--coral); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 18px; flex: none; letter-spacing: -0.03em; }
.track { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-select { flex: 1 1 130px; background: var(--white); font-weight: 800; }
.stage-contacted, .stage-replied { background: var(--sand); }
.stage-booked, .stage-met { background: var(--ink); color: var(--sky); }
.stage-followup { background: var(--coral); }
.stage-done, .stage-later { background: var(--sky-pale); }
.card.st-booked, .card.st-met { outline: 4px solid var(--ink); }
.card.st-done, .card.st-later { opacity: .72; }
.opener { background: var(--white); border-radius: 16px; padding: 12px; display: grid; gap: 8px; }
.opener .text { font-weight: 600; overflow-wrap: anywhere; }

/* How to plan: the numbered stepper */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; }
.stepper::before { content: ""; position: absolute; left: 39px; top: 20px; bottom: 20px; width: 3px; background: var(--ink); }
.stepper__item { position: relative; }
.stepper__step { background: var(--sky); border-radius: 22px; }
.stepper__step[open] { background: var(--sky-pale); }
.stepper__step summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.stepper__step summary::-webkit-details-marker { display: none; }
.stepper__step summary::after { content: "+"; margin-left: auto; font-size: 28px; font-weight: 800; line-height: 1; }
.stepper__step[open] summary::after { content: "−"; }
.stepper__num { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--sky); display: grid; place-items: center; flex: none; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stepper__head { display: grid; gap: 1px; }
.stepper__title { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.stepper__line { font-size: 16px; font-weight: 500; }
.stepper__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 4px 16px 16px; }
.stepper__body section { background: var(--white); border-radius: 16px; padding: 12px 14px; }
.stepper__body h4 { margin: 0 0 6px; font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.stepper__body ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.stepper__tip { grid-column: 1 / -1; background: var(--sand) !important; border: 3px solid var(--ink); font-size: 17px; font-weight: 600; }
.stepper__tip p { margin: 0; }
.stepper__note { margin: 10px 0 0; font-weight: 700; }
.stepper__prompt { background: var(--ink) !important; color: var(--sky); display: grid; gap: 10px; align-content: start; }
.stepper__prompt .prompt-box { color: var(--ink); }
.stepper__prompt .go { background: var(--sky); color: var(--ink); }
.checks { list-style: none; padding: 0 !important; }
.checks label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 600; min-height: 28px; }
.checks input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.checks input:checked + span { text-decoration: line-through; opacity: .6; }
.step-more summary { cursor: pointer; font-weight: 800; font-size: 15px; min-height: 28px; }
.step-more p { margin-top: 6px; }
.guide__intro { display: flex; align-items: center; gap: 24px; margin: 0 0 16px; }
.guide__photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; flex: none; }
.guide__intro-text { display: grid; gap: 12px; justify-items: start; }
.guide__intro p { margin: 0; font-size: clamp(18px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; max-width: 26ch; }
.guide__extras { margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); }
.card--wide { grid-column: span 2; }
.facts { display: grid; grid-template-columns: minmax(0, 110px) minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; }
.num-steps.num-steps--small { margin: 4px 0; }
.num-steps.num-steps--small li { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.num-steps.num-steps--small li::before { width: 32px; height: 32px; }
code { font-size: 15px; overflow-wrap: anywhere; }
.answers { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; background: var(--white); border-radius: 14px; padding: 12px; }

/* Next steps and footer */
.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); gap: 14px; padding: 0 var(--pad) 28px; align-items: start; }
.foot { border-top: 2px solid var(--ink); padding: 14px var(--pad) 24px; font-size: 15px; font-weight: 600; }
.foot__inner p { margin: 0 0 4px; }

/* Notices and gaps */
.notice { background: var(--white); border-radius: 18px; padding: 10px 14px; margin: 0 var(--pad) 12px; font-weight: 700; }
.panel .notice { margin-inline: 0; }
.unset { display: inline-block; background: var(--ink); color: var(--sand); border-radius: 10px; padding: 5px 10px; font-weight: 700; font-size: 15px; margin: 0; }
.update-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--sand); border-top: 2px solid var(--ink); padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; }
.update-bar[hidden] { display: none; }
.update-bar p { margin: 0; font-weight: 800; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(43, 45, 42, .45); z-index: 20; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--sky); z-index: 21; overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 18px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 28px) 20px; border-left: 8px solid var(--ink); }
.scrim.is-closing, .drawer.is-closing { pointer-events: none; }
.drawer:focus { outline: none; }
.sheet-grip { display: none; }
.drawer .close { position: sticky; top: 0; float: right; background: var(--ink); color: var(--sky); border: 0; width: 42px; height: 42px; border-radius: 50%; font-size: 22px; font-weight: 900; z-index: 2; }
.drawer h2 { font-size: 34px; letter-spacing: -0.045em; line-height: 1; margin: 6px 52px 8px 0; font-weight: 900; text-transform: uppercase; overflow-wrap: anywhere; }
.where { font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.pill { font-size: 15px; font-weight: 800; border-radius: 999px; padding: 1px 10px; border: 1.5px solid currentColor; }
.dev { border-top: 2px solid var(--ink); padding: 14px 0; display: grid; gap: 10px; }
.dev dl { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.dev dt { font-weight: 800; }
.dev dd { margin: 0; overflow-wrap: anywhere; }
.dev h3 { font-size: 20px; margin: 6px 0 0; font-weight: 800; }
.dev .chip { background: transparent; }
.dev .chip.solid { background: var(--ink); color: var(--sky); }
.roles { display: grid; gap: 8px; }
.role { background: var(--sky-pale); border-radius: 14px; padding: 10px 12px; display: grid; gap: 4px; justify-items: start; overflow-wrap: anywhere; }
.role__on { font-weight: 800; }
.num-steps { list-style: none; counter-reset: step; margin: 8px 0 14px; padding: 0; display: grid; gap: 10px; }
.num-steps li { counter-increment: step; display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.num-steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--sky); display: grid; place-items: center; flex: none; font-weight: 900; }
.prompt-box { background: var(--white); border-radius: 14px; padding: 12px 14px; font-size: 16px; overflow-wrap: anywhere; }
.drawer__block { border-top: 2px solid var(--ink); padding-top: 12px; margin-top: 14px; }
.drawer__block h3 { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.field { display: grid; gap: 3px; margin-bottom: 10px; }
.field__label { font-weight: 800; }
.input { width: 100%; font: inherit; font-size: 16px; font-weight: 500; min-height: 44px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); color: var(--ink); }
textarea.input { resize: vertical; }
.copy-box { width: 100%; font: inherit; font-size: 16px; padding: 10px; border: 2px solid var(--ink); border-radius: 12px; }

/* Tiers and Ready to send */
.tier-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.tier-A { background: var(--ink); color: var(--sand); }
.tier-B { background: var(--sand); color: var(--ink); }
.tier-C { background: var(--sky-pale); color: var(--ink); }
.ready { display: grid; gap: 12px; justify-items: start; max-width: 620px; }
.ready__left { margin: 0; font-size: 44px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.ready__card { width: 100%; }
.ready .opener .text { font-size: 18px; }

/* The example, and the interview on How to plan */
.demo-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.demo-shots img { width: 100%; height: auto; border-radius: 12px; border: 2px solid var(--ink); }
.interview { background: var(--sky-pale); border-radius: 18px; padding: 10px 16px; margin: 0 0 14px; }
.interview summary { cursor: pointer; font-weight: 800; font-size: 18px; min-height: 28px; }
.chat { display: grid; gap: 6px; margin-top: 10px; max-width: 620px; }
.chat p { margin: 0; padding: 8px 12px; border-radius: 14px; width: fit-content; max-width: 86%; }
.chat__ai { background: var(--ink); color: var(--sky); font-weight: 700; }
.chat__me { background: var(--white); justify-self: end; }

/* The image that flies from an event to its day */
.fly { position: fixed; left: 0; top: 0; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 900; font-size: 20px; pointer-events: none; z-index: 25; will-change: transform, opacity; outline: 3px solid var(--ink); }
.fly img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Choosing a day's events by swiping, on phones */
.view-toggle { display: none; gap: 8px; margin: 0 0 10px; }
.stack__pile { position: relative; height: 400px; margin: 0 2px 12px; }
.swipe-card { cursor: pointer; position: absolute; inset: 0; background: var(--sky-pale); border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: 190px auto; touch-action: pan-y; user-select: none; cursor: grab; border: 2px solid var(--ink); will-change: transform; }
.swipe-card:focus-visible { outline-offset: -6px; }
.swipe-card--behind { pointer-events: none; }
.swipe-card__art { position: relative; background: var(--sky); display: grid; place-items: center; font-size: 48px; font-weight: 900; letter-spacing: -0.04em; overflow: hidden; }
.swipe-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.swipe-card__body { padding: 12px 14px; display: grid; gap: 4px; align-content: start; overflow: hidden; }
.swipe-card__when { font-weight: 900; font-variant-numeric: tabular-nums; }
.swipe-card h3 { margin: 0; font-size: 21px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.swipe-card__stamp { position: absolute; top: 14px; padding: 4px 14px; border-radius: 999px; font-weight: 900; font-size: 20px; border: 3px solid var(--ink); background: var(--white); opacity: 0; }
.swipe-card__stamp--going { left: 14px; background: var(--good); color: var(--white); }
.swipe-card__stamp--skip { right: 14px; }
.stack__actions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.stack__actions .chip, .stack__actions .go { width: 100%; min-height: 52px; }
.stack__left { font-weight: 900; font-size: 20px; text-align: center; margin: 0 0 8px; }
.swipe-away { position: fixed; z-index: 24; pointer-events: none; margin: 0; }

.share-choices { display: grid; gap: 12px; margin-top: 8px; }
.share-choices .go { width: 100%; min-height: 52px; }
.share-choices .go:disabled { opacity: .55; cursor: default; }
.share-choice { background: var(--sky-pale); border-radius: 16px; padding: 12px; display: grid; gap: 8px; }
.share-choice p { margin: 0; font-weight: 600; }
.share-tick { margin: 0; min-height: 32px; }
.share-tick input { width: 22px; height: 22px; accent-color: var(--ink); }
.input[hidden] { display: none; }
.shared-title { padding-bottom: 8px; }
.shared-own { padding: 0 var(--pad) 14px; }
.shared-own .go { min-height: 52px; font-size: 18px; }
.share-canvas { display: block; width: 100%; height: auto; border-radius: 14px; margin-bottom: 10px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); background: var(--ink); color: var(--sky); font-weight: 800; padding: 8px 12px 8px 18px; border-radius: 24px; z-index: 30; display: flex; align-items: center; gap: 12px; }
.toast span { overflow-wrap: anywhere; }
.toast__action { flex: none; border: 2px solid var(--sky); background: transparent; color: var(--sky); border-radius: 999px; font-weight: 800; padding: 4px 14px; min-height: 40px; }
.toast[hidden] { display: none; }
.toast { pointer-events: none; }
.toast__action { pointer-events: auto; }
body.has-drawer .toast { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 8px); }

@media (max-width: 760px) {
  .lol { display: block; }
  .lol-band { display: none; }
  .lol-day { margin: 18px 0 6px; font-size: 22px; }
  .lol-day:first-child { margin-top: 0; }
  .lol-cell { margin-bottom: 6px; }
  .lol-cell.empty { display: none; }
  .lol-bandname { display: block; font-weight: 800; font-size: 15px; padding-left: 2px; }
  .sechip { grid-template-columns: minmax(0, 1fr) 44px; }
  .sechip__main { padding: 8px 0 8px 9px; }
  .sechip__star { font-size: 22px; min-height: 44px; padding: 8px 0 0; }
  .filter { flex: 1 1 calc(33% - 10px); padding-inline: 8px; }
  .result-count { display: none; }
  .top__brand { font-size: 16px; }
  .title-row { padding-top: 18px; padding-bottom: 12px; }
  .go--ai { width: 100%; }
  .title-actions { width: 100%; justify-content: stretch; }
  .title-actions .chip { width: 100%; }
  .tabs button { min-height: 44px; }
  .chip { min-height: 44px; }
  .cal { grid-template-columns: minmax(0, 1fr); }
  .month { padding-top: 12px; }
  .dow div { padding-bottom: 4px; letter-spacing: -0.02em; }
  .grid { row-gap: 4px; }
  .day { padding-top: 16px; min-height: 44px; }
  .day .count { top: auto; bottom: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 4px; }
  .month-key { gap: 8px; }
  .stepper__body { grid-template-columns: minmax(0, 1fr); padding-inline: 10px; }
  .stepper__step summary { padding: 10px; gap: 10px; }
  .stepper::before { left: 33px; }
  .stepper__num { width: 44px; height: 44px; }
  .stepper__title { font-size: 20px; }
  .funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .funnel > * { padding: 10px 12px; border-radius: 14px; }
  .funnel--stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-add { flex-basis: 100%; }
  .card--wide { grid-column: auto; }
  .guide__intro { gap: 14px; }
  .guide__photo { width: 120px; height: 120px; }
  .guide__intro p { font-size: 18px; }
  .view-toggle { display: flex; }
  .drawer { top: auto; left: 0; bottom: 0; width: 100%; max-height: 92dvh; border-left: 0; border-top: 2px solid var(--ink); border-radius: 22px 22px 0 0; padding-top: 0; }
  .sheet-grip { display: grid; place-items: center; height: 28px; touch-action: none; cursor: grab; }
  .sheet-grip i { width: 48px; height: 5px; border-radius: 999px; background: var(--ink); }
  .drawer h2 { touch-action: none; }
  .drawer .close { top: 6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
