/* Sidelist — app console in the Standard Reserve design language.
   Ink shell → cream console → white hairline cards on a 12-col / 12px grid.
   One family (Inter Tight standing in for KH Teka), micro-weights 400/500/600,
   20px line grid, 36px controls, flat cards, shadows only on hover/layers. */

:root {
  /* surfaces */
  --bg-app: #ffffff; --bg-page: #f8f7f4; --bg-card: #f5f3ef; --bg-inverse: #1a1a18; --bg-scrim: #1a1a1851; --bg-topbar: #f8f7f4f0;
  /* fills */
  --fill-brand: #1a1a18; --fill-brand-hover: #3c3c38; --fill-subtle: #efece5; --fill-subtle-hover: #dad6cc; --fill-hover: #dad6cc57;
  --fill-overlay-hover: #f5f3ef; --fill-selected: #efece5; --fill-info: #f3ebdf; --fill-success: #e2e8da; --fill-danger: #fecdd3; --fill-destructive: #be123c;
  /* content */
  --text: #1a1a18; --text-hover: #504f4b; --text-muted: #696762; --text-muted-hover: #85837e; --text-placeholder: #696762; --text-disabled: #c2beb2;
  --text-inverse: #f8f7f4; --inv-70: rgba(248,247,244,.70); --inv-56: rgba(248,247,244,.56); --inv-48: rgba(248,247,244,.48);
  --text-success: #465c38; --text-danger: #9f1239; --text-info: #554e42;
  /* borders */
  --border-subtle: #efece5; --border: #dad6cc; --border-hover: #c2beb2; --border-active: #1a1a18; --border-inverse: rgba(248,247,244,.18);
  /* accents used */
  --bronze-soft: #e1d5c0; --bronze: #ccbca3; --sand-soft: #dad6cc; --sand: #c2beb2; --olive: #abaa7a; --moss: #465c38;
  /* type / shape / motion */
  --font: "Inter Tight", "KH Teka", "Helvetica Neue", Arial, sans-serif;
  --w-regular: 400; --w-medium: 500; --w-semibold: 600;
  --r-xs: .125rem; --r-sm: .25rem; --r-md: .375rem; --r-full: 9999px;
  --shadow-sm: 0 1px 2px 0 #3a383208, 0 2px 4px 0 #3a38320a;
  --shadow-md: 0 6px 12px -2px #3a383205, 0 12px 24px -4px #3a383208;
  --ease: cubic-bezier(.4, 0, .2, 1); --ease-reveal: cubic-bezier(.215, .61, .355, 1);
  --fast: .15s; --base: .2s;
  --banner-h: 2.0625rem;
  color-scheme: only light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg-inverse); -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--font); font-size: .875rem; font-weight: var(--w-regular); line-height: 1.25rem; color: var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; font-variant-numeric: tabular-nums; }
::selection { background: var(--fill-brand); color: var(--text-inverse); }
svg { display: block; vertical-align: middle; }
button, input, select, textarea { color: inherit; font: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.eyebrow { color: var(--text-muted); font-size: .625rem; font-weight: var(--w-medium); letter-spacing: .1em; text-transform: uppercase; line-height: 1.25rem; }
.muted { color: var(--text-muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 2.25rem; padding: .5rem .75rem; border: 0; border-radius: var(--r-sm); white-space: nowrap; text-decoration: none; cursor: pointer; font-size: .875rem; font-weight: var(--w-medium); line-height: 1.25rem; outline: none; transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), color var(--fast) var(--ease), opacity var(--fast) var(--ease); }
.btn:focus-visible { box-shadow: 0 0 0 1px transparent, 0 0 0 3px var(--border-active); }
.btn:active { opacity: .6; }
.btn:disabled { pointer-events: none; opacity: .5; }
.btn-primary { background: var(--fill-brand); color: var(--text-inverse); }
.btn-primary:hover { background: var(--fill-brand-hover); }
.btn-subtle { background: var(--fill-subtle); color: var(--text); }
.btn-subtle:hover { background: var(--fill-subtle-hover); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--fill-hover); }
.btn-outline { background: var(--bg-app); color: var(--text); border: 1px solid var(--border-subtle); }
.btn-outline:hover { border-color: var(--border-hover); background: var(--fill-overlay-hover); }
.btn-sm { height: 1.875rem; padding: .25rem .625rem; font-size: .8125rem; }
.btn-lg { height: 2.5rem; padding: .5rem 1rem; font-size: 1rem; line-height: 1.5rem; }
.btn .arrow { width: 1em; height: 1em; transition: transform var(--fast); }
.btn:hover .arrow { transform: translateX(2px); }
.btn-link { background: none; border: 0; padding: 0; color: var(--text-muted); font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-link:hover { color: var(--text); }
.icon-btn { display: grid; width: 2.25rem; height: 2.25rem; padding: 0; flex: 0 0 auto; place-items: center; border: 1px solid var(--border-subtle); border-radius: var(--r-sm); background: var(--bg-app); color: var(--text); cursor: pointer; transition: border-color var(--fast), background var(--fast); }
.icon-btn:hover, .icon-btn.is-open { border-color: var(--border-hover); background: var(--fill-overlay-hover); }
.icon-btn:focus-visible { box-shadow: 0 0 0 2px var(--border-active); outline: none; }

/* ---------- fields ---------- */
.field { display: grid; gap: .25rem; }
.field > span { color: var(--text-muted); font-size: .6875rem; font-weight: var(--w-medium); letter-spacing: .05em; text-transform: uppercase; line-height: 1.25rem; }
.input, .field input, .field select, .field textarea { width: 100%; height: 2.25rem; padding: 0 .75rem; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-app); font-size: .875rem; line-height: 1.25rem; outline: none; transition: border-color var(--fast), box-shadow var(--fast); }
.field textarea { height: auto; padding: .5rem .75rem; resize: vertical; min-height: 4rem; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-hover); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--border-active); box-shadow: 0 0 0 1px var(--border-active); }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--text-placeholder); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23696762' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2rem; }
.check { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; user-select: none; font-size: .8125rem; color: var(--text-muted); line-height: 1.25rem; }
.check input { appearance: none; width: .875rem; height: .875rem; margin: 0; border: 1px solid var(--border); border-radius: var(--r-xs); background: var(--bg-app); display: grid; place-items: center; cursor: pointer; transition: background var(--fast), border-color var(--fast); }
.check input:checked { background: var(--fill-brand); border-color: var(--fill-brand); }
.check input:checked::after { content: ""; width: .375rem; height: .375rem; background: var(--text-inverse); }
.check:hover { color: var(--text); }
.check:has(input:checked) { color: var(--text); }

/* ---------- shell: banner → console → sidebar + workspace ---------- */
.app-shell { display: flex; flex-direction: column; height: 100svh; overflow: hidden; background: var(--bg-inverse); }
.banner { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; height: var(--banner-h); padding: 0 1.0625rem; overflow: hidden; background: var(--bg-inverse); color: var(--text-inverse); font-size: .8625rem; line-height: 1.0625rem; font-style: italic; white-space: nowrap; }
.banner-icon { flex-shrink: 0; width: 1rem; height: 1rem; }
.banner-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.banner-text b { font-weight: var(--w-medium); font-style: normal; }
.app-console { display: flex; flex: 1; min-height: 0; overflow: hidden; border-radius: var(--r-md) var(--r-md) 0 0; background: var(--bg-page); }
.app-workspace { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; }
.app-stage { flex: 1; min-height: 0; overflow: auto; background: var(--bg-page); }

/* sidebar */
.app-sidebar { position: relative; z-index: 20; display: flex; width: 15.25rem; min-height: 0; flex: 0 0 15.25rem; flex-direction: column; border-right: 1px solid var(--border-subtle); background: var(--bg-app); }
.app-brand { display: flex; height: 4.25rem; padding: 0 1.25rem; align-items: center; border-bottom: 1px solid var(--border-subtle); }
.app-brand-link { display: flex; gap: .6875rem; align-items: center; color: var(--text); text-decoration: none; }
.app-brand-link > span { font-size: .8125rem; font-weight: var(--w-semibold); letter-spacing: .13em; }
.mark { width: 24px; height: 24px; }
.app-sidebar-close { display: none; width: 2rem; height: 2rem; margin-left: auto; padding: 0; place-items: center; border: 0; background: transparent; cursor: pointer; font-size: 1.25rem; }
.app-sidebar-scrim { display: none; }
.app-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 1.25rem .75rem; }
.app-nav-label { margin: 0 0 .5rem; padding: 0 .625rem; color: var(--text-muted); font-size: .6875rem; font-weight: var(--w-medium); letter-spacing: .08em; text-transform: uppercase; line-height: 1.25rem; }
.app-nav-label + .app-nav-label, .app-nav-group + .app-nav-label { margin-top: 1.5rem; }
.app-nav-item { display: flex; width: 100%; min-height: 2.5rem; margin-bottom: .1875rem; padding: .5rem .625rem; gap: .6875rem; align-items: center; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-muted); text-decoration: none; text-align: left; cursor: pointer; transition: background var(--fast), color var(--fast); }
.app-nav-item:hover { background: var(--fill-hover); color: var(--text); }
.app-nav-item.is-active { background: var(--fill-selected); color: var(--text); font-weight: var(--w-medium); }
.app-nav-glyph { display: grid; width: 1.25rem; flex: 0 0 1.25rem; place-items: center; color: var(--text); font-size: 1rem; }
.app-nav-item > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-nav-count { color: var(--text-muted); font-size: .75rem; font-weight: var(--w-regular); }
.app-nav-item.is-active .app-nav-count { color: var(--text-hover); }
.app-nav-external { color: var(--text-muted); font-size: .75rem; }
.app-sidebar-foot { padding: .75rem; border-top: 1px solid var(--border-subtle); display: grid; gap: .5rem; }
.app-account { display: grid; grid-template-columns: 2rem 1fr auto; gap: .625rem; align-items: center; padding: .5rem .625rem; border-radius: var(--r-sm); }
.app-account:hover { background: var(--fill-hover); }
.app-avatar { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: var(--r-sm); background: var(--bg-inverse); color: var(--text-inverse); font-size: .8125rem; font-weight: var(--w-medium); }
.app-account-copy { min-width: 0; display: grid; }
.app-account-copy strong { font-size: .8125rem; font-weight: var(--w-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-account-copy span { color: var(--text-muted); font-size: .6875rem; line-height: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext-status { display: flex; align-items: center; gap: .5rem; padding: .25rem .625rem; color: var(--text-muted); font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1.25rem; text-decoration: none; }
.ext-status i { width: .5rem; height: .5rem; border-radius: var(--r-full); background: var(--sand); }
.ext-status[data-state="on"] i { background: var(--text-success); box-shadow: 0 0 0 3px var(--fill-success); }
.ext-status[data-state="off"] i { background: var(--fill-destructive); }
.ext-status[data-state="off"]:hover { color: var(--text); }

/* topbar */
.app-topbar { position: relative; z-index: 12; display: flex; height: 4.25rem; padding: 0 1.5rem; gap: .75rem; flex: 0 0 4.25rem; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-subtle); background: var(--bg-topbar); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.app-topbar-left { display: flex; align-items: center; min-width: 0; gap: .75rem; }
.app-breadcrumb { display: flex; align-items: center; gap: .5rem; color: var(--text-muted); font-size: .8125rem; white-space: nowrap; }
.app-breadcrumb strong, .app-mobile-title { color: var(--text); font-weight: var(--w-medium); }
.app-mobile-title, .app-mobile-menu { display: none; }
.app-topbar-right { display: flex; flex-shrink: 0; align-items: center; gap: .5rem; }
.topbar-search { position: relative; width: 16rem; }
.topbar-search .input { padding-left: 2rem; }
.topbar-search svg { position: absolute; left: .625rem; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.app-user { display: flex; height: 2.25rem; padding: 0 .75rem; gap: .5rem; align-items: center; border: 1px solid var(--fill-brand); border-radius: var(--r-sm); background: var(--fill-brand); color: var(--text-inverse); cursor: pointer; font-size: .8125rem; font-weight: var(--w-medium); white-space: nowrap; transition: background var(--fast), border-color var(--fast); }
.app-user:hover { border-color: var(--fill-brand-hover); background: var(--fill-brand-hover); }
.app-user.is-in { border-color: var(--border-subtle); background: var(--bg-app); color: var(--text); }
.app-user.is-in:hover { border-color: var(--border-hover); background: var(--fill-overlay-hover); }
.app-user-dot { width: .5rem; height: .5rem; flex: 0 0 .5rem; border-radius: var(--r-full); background: var(--bronze); }
.app-user.is-in .app-user-dot { background: var(--text-success); box-shadow: 0 0 0 3px var(--fill-success); }

/* popover (account menu) */
.popover-host { position: relative; }
.popover { position: absolute; z-index: 30; top: calc(100% + .75rem); right: 0; width: min(17rem, calc(100vw - 1.5rem)); padding: .5rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-app); box-shadow: var(--shadow-md); animation: pop-in .16s var(--ease) both; }
@keyframes pop-in { 0% { opacity: 0; transform: translateY(-.25rem); } to { opacity: 1; transform: none; } }
.popover > header { display: grid; padding: .625rem .75rem .75rem; gap: .125rem; }
.popover > header strong { font-size: .875rem; font-weight: var(--w-medium); overflow: hidden; text-overflow: ellipsis; }
.popover > header span { color: var(--text-muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; }
.popover-item { display: grid; width: 100%; min-height: 2.5rem; padding: .5rem .75rem; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .625rem; align-items: center; border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; text-align: left; font-size: .8125rem; }
.popover-item:hover { background: var(--fill-overlay-hover); }
.popover-item.is-danger { color: var(--text-danger); }

/* ---------- page grid ---------- */
.page { display: grid; width: min(100%, 76rem); margin: 0 auto; padding: .75rem; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .75rem; }
.span-12 { grid-column: 1 / -1; }
.card { border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--bg-app); }

/* hero: inverse card, copy left, dot-matrix bleeding in from 47% */
.hero { --pad: clamp(1.5rem, 4vw, 3rem); position: relative; display: grid; min-height: 21rem; padding: var(--pad); grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(16rem, .85fr); gap: 2rem; align-items: center; overflow: hidden; border-radius: var(--r-md); background: var(--bg-inverse); color: var(--text-inverse); }
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { color: var(--inv-56); margin-bottom: .5rem; }
.hero h1 { max-width: 34rem; margin-bottom: 1rem; font-size: clamp(2.25rem, 5vw, 4rem); font-weight: var(--w-medium); line-height: 1.03; letter-spacing: -.04em; }
.hero-lede { max-width: 32rem; margin-bottom: 1.5rem; color: var(--inv-70); font-size: 1rem; line-height: 1.5rem; }
.hero-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--text-inverse); color: var(--text); }
.hero-actions .btn-primary:hover { background: #fff; }
.hero-actions .btn-subtle { background: rgba(248,247,244,.12); color: var(--text-inverse); }
.hero-actions .btn-subtle:hover { background: rgba(248,247,244,.2); }
.hero-art { position: absolute; inset: 0 0 0 47%; margin: 0; overflow: hidden; background: radial-gradient(ellipse at 60% 40%, #3c3c38, var(--bg-inverse) 70%); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-inverse), transparent 28%); pointer-events: none; }
.dot-art { position: absolute; inset: 0; }
.dot-art canvas { display: block; width: 100%; height: 100%; }
.scene { position: absolute; z-index: 2; right: var(--pad); bottom: var(--pad); display: grid; text-align: right; animation: scene-in .5s cubic-bezier(.22, 1, .36, 1) both; }
.scene p { color: var(--inv-48); font-size: .5625rem; letter-spacing: .12em; line-height: 1.25rem; text-transform: uppercase; }
.scene strong { margin: .1rem 0 .125rem; font-size: 1.25rem; font-weight: var(--w-medium); line-height: 1.25rem; }
.scene span { color: var(--inv-56); font-size: .6875rem; line-height: 1.25rem; }
@keyframes scene-in { 0% { opacity: 0; translate: 0 .35rem; } }
@keyframes rise { 0% { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise .45s var(--ease-reveal) both; }
.hero-copy > h1 { animation-delay: .03s; } .hero-copy > .hero-lede { animation-delay: .1s; } .hero-copy > .hero-actions { animation-delay: .18s; }

/* facts strip */
.facts { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--bg-app); }
.facts > div { display: grid; min-height: 6rem; padding: 1rem; align-content: center; gap: .25rem; border-right: 1px solid var(--border-subtle); opacity: 0; }
.facts > div:last-child { border-right: 0; }
.facts.is-inview > div { animation: rise .4s var(--ease-reveal) both; }
.facts.is-inview > div:nth-child(2) { animation-delay: .06s; } .facts.is-inview > div:nth-child(3) { animation-delay: .12s; } .facts.is-inview > div:nth-child(4) { animation-delay: .18s; }
.facts strong { font-size: 1.5rem; font-weight: var(--w-medium); line-height: 1.25rem; }
.facts span { color: var(--text-muted); font-size: .75rem; }

/* toolbar */
.toolbar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .75rem; position: sticky; top: .75rem; z-index: 10; background: var(--bg-topbar); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.seg { display: flex; flex-wrap: wrap; gap: .25rem; }
.seg-btn { display: inline-flex; align-items: center; gap: .375rem; height: 2.25rem; padding: 0 .75rem; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; color: var(--text-muted); cursor: pointer; font-size: .8125rem; font-weight: var(--w-regular); transition: background var(--fast), color var(--fast), border-color var(--fast); }
.seg-btn:hover { background: var(--fill-hover); color: var(--text); }
.seg-btn.is-active { background: var(--fill-selected); color: var(--text); font-weight: var(--w-medium); }
.seg-btn small { font-size: .6875rem; color: var(--text-muted); }
.toolbar-toggles { display: flex; gap: .75rem; flex-wrap: wrap; margin-left: auto; }
.toolbar-count { color: var(--text-muted); font-size: .75rem; white-space: nowrap; }
.toolbar-search { display: none; width: 100%; }

/* day sections */
.day-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem .25rem 0; }
.day-head h2 { font-size: 1.5rem; font-weight: var(--w-medium); line-height: 2rem; letter-spacing: -.1px; }
.day-head h2 span { color: var(--text-muted); font-weight: var(--w-regular); }
.day-head p { color: var(--text-muted); font-size: .75rem; }
.day-card { grid-column: 1 / -1; overflow: hidden; }
.row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 6rem 13.5rem; gap: 1rem; align-items: center; padding: .75rem 1rem; border-top: 1px solid var(--border-subtle); transition: background var(--fast); }
.row:first-child { border-top: 0; }
.row:hover { background: var(--fill-overlay-hover); }
.row.is-done { background: #fbfaf7; }
.row-time { display: grid; font-size: .8125rem; line-height: 1.25rem; }
.row-time small { color: var(--text-muted); font-size: .6875rem; line-height: 1rem; }
.row-main { min-width: 0; display: grid; gap: .125rem; }
.row-name { font-size: 1rem; font-weight: var(--w-medium); line-height: 1.5rem; overflow-wrap: anywhere; }
.row.is-done .row-name { color: var(--text-muted); }
.row-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; color: var(--text-muted); font-size: .75rem; line-height: 1rem; }
.tag { display: inline-flex; align-items: center; height: 1.25rem; padding: 0 .375rem; border-radius: var(--r-xs); background: var(--fill-subtle); color: var(--text-info); font-size: .625rem; font-weight: var(--w-medium); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tag-luma { background: var(--fill-info); }
.tag-free { background: var(--fill-success); color: var(--text-success); }
.tag-paid { background: var(--fill-subtle); color: var(--text); }
.row-cost { display: flex; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.row-actions .btn { min-width: 6.75rem; justify-content: space-between; }
.row-actions .check { font-size: .6875rem; letter-spacing: .04em; text-transform: uppercase; }
.row.is-done .row-actions .check { color: var(--text-success); }
.empty { grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; color: var(--text-muted); font-size: .8125rem; }

/* footer */
.foot { display: flex; min-height: 4rem; margin-top: 1.25rem; padding: 1rem .25rem 1.5rem; grid-column: 1 / -1; gap: 1.5rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .6875rem; }
.foot > div, .foot nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.foot strong { color: var(--text); font-weight: var(--w-medium); letter-spacing: .06em; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- reveals ---------- */
.reveal { opacity: 0; }
.reveal.is-inview { animation: rise .4s var(--ease-reveal) both; }

/* ---------- dialog (auth) ---------- */
.dialog-layer { position: fixed; z-index: 100; display: grid; inset: 0; padding: 1rem; place-items: center; background: var(--bg-scrim); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog { position: relative; width: min(25rem, 100%); padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-app); box-shadow: var(--shadow-md); animation: dialog-in .18s var(--ease) both; }
@keyframes dialog-in { 0% { opacity: 0; transform: translateY(.5rem) scale(.985); } to { opacity: 1; transform: none; } }
.dialog-mark { display: grid; width: 2.5rem; height: 2.5rem; margin-bottom: 1.5rem; place-items: center; border-radius: var(--r-sm); background: var(--bg-inverse); color: var(--text-inverse); }
.dialog-close { position: absolute; top: 1rem; right: 1rem; width: 2rem; height: 2rem; padding: 0; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 1.25rem; }
.dialog h1 { font-size: 1.5rem; font-weight: var(--w-medium); line-height: 2rem; }
.dialog-lede { max-width: 22rem; margin: .5rem 0 1.5rem; color: var(--text-muted); font-size: .8125rem; }
.dialog form { display: grid; gap: .75rem; }
.dialog-actions { display: flex; gap: .5rem; align-items: center; margin-top: .25rem; }
.dialog-alt { margin-top: .75rem; display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.form-error { color: var(--text-danger); font-size: .75rem; line-height: 1rem; min-height: 1rem; }
.form-ok { color: var(--text-success); font-size: .75rem; line-height: 1rem; }
.notice { padding: .625rem .75rem; border: 1px solid var(--border-subtle); border-radius: var(--r-sm); background: var(--bg-page); color: var(--text-muted); font-size: .75rem; line-height: 1rem; }

/* ---------- drawer (my info) ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 90; background: var(--bg-scrim); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(30rem, 100%); overflow-y: auto; background: var(--bg-app); border-left: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 1.5rem; transform: translateX(105%); transition: transform .22s var(--ease); }
.drawer[aria-hidden="false"] { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .25rem; }
.drawer h2 { font-size: 1.5rem; font-weight: var(--w-medium); line-height: 2rem; }
.drawer-lede { color: var(--text-muted); font-size: .8125rem; margin-bottom: 1.25rem; }
.form { display: grid; gap: .75rem; }
.form-section { margin-top: .75rem; padding-bottom: .375rem; border-bottom: 1px solid var(--border-subtle); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-actions { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; position: sticky; bottom: -1.5rem; padding: .75rem 0; background: var(--bg-app); border-top: 1px solid var(--border-subtle); }
.form-status { color: var(--text-success); font-size: .75rem; margin-left: auto; }

/* ---------- breakpoints ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 30rem; align-content: end; }
  .hero-art { inset: 0; }
  .hero-art .dot-art { opacity: .55; }
  .hero-art::after { background: linear-gradient(0deg, var(--bg-inverse) 34%, rgb(26 26 24 / 55%) 62%, rgb(26 26 24 / 10%)); }
  .scene { position: static; text-align: left; margin-top: 1.25rem; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--border-subtle); }
  .row { grid-template-columns: 5rem minmax(0, 1fr); row-gap: .5rem; }
  .row-cost { grid-column: 1; }
  .row-actions { grid-column: 2; justify-content: space-between; }
}
@media (max-width: 900px) {
  .app-mobile-menu { display: grid; }
  .app-breadcrumb { display: none; }
  .app-mobile-title { display: block; min-width: 0; overflow: hidden; font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }
  .app-sidebar { position: fixed; top: var(--banner-h); bottom: 0; left: 0; width: min(18rem, 86vw); transform: translate(-105%); box-shadow: var(--shadow-md); transition: transform .22s var(--ease); }
  .app-sidebar.is-open { transform: none; }
  .app-sidebar-close { display: grid; }
  .app-sidebar-scrim { position: fixed; z-index: 19; display: block; inset: var(--banner-h) 0 0; border: 0; background: var(--bg-scrim); }
  .topbar-search { display: none; }
  .toolbar-search { display: block; }
}
@media (max-width: 680px) {
  .app-topbar { height: 3.75rem; padding: 0 .75rem; flex-basis: 3.75rem; }
  .page { padding: .5rem; gap: .5rem; }
  .hero { --pad: 1.5rem; min-height: 26rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .toolbar { top: .5rem; }
  .toolbar-toggles { margin-left: 0; }
  .row { padding: .75rem; }
  .row-actions { flex-wrap: wrap; }
  .foot { padding-bottom: 1rem; align-items: flex-start; flex-direction: column; gap: .75rem; }
  .form-grid { grid-template-columns: 1fr; }
  .app-user span:last-child { display: none; }
}
@media (max-width: 480px) { .popover { position: fixed; top: 6.25rem; right: .75rem; left: .75rem; width: auto; } }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .reveal.is-inview, .facts.is-inview > div, .dialog, .popover, .scene { animation: none !important; }
  .reveal, .facts > div { opacity: 1; }
  .app-sidebar, .drawer, .btn .arrow { transition: none; }
}

/* ---------- home: welcome, auth card, conference picker ---------- */
.home-hero { grid-column: span 8; min-height: 21rem; grid-template-columns: 1fr; }
.home-hero h1 { max-width: 30rem; }
.auth-card { grid-column: span 4; display: grid; align-content: start; gap: .75rem; padding: 1.25rem; min-height: 21rem; }
.auth-card h2 { font-size: 1.5rem; font-weight: var(--w-medium); line-height: 2rem; }
.auth-card .lede { color: var(--text-muted); font-size: .8125rem; line-height: 1.2rem; }
.auth-card form { display: grid; gap: .75rem; }
.auth-card .dialog-actions { margin-top: 0; }
.auth-card .dialog-alt { margin-top: 0; }
.account-card { display: grid; gap: .75rem; }
.account-card .who { display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem; align-items: center; }
.account-card .who .app-avatar { width: 2.5rem; height: 2.5rem; font-size: 1rem; }
.account-card .who strong { display: block; font-size: 1rem; font-weight: var(--w-medium); line-height: 1.5rem; }
.account-card .who span { color: var(--text-muted); font-size: .75rem; }
.meter { display: grid; gap: .375rem; }
.meter-bar { height: .375rem; border-radius: var(--r-full); background: var(--fill-subtle); overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: var(--fill-brand); border-radius: var(--r-full); transition: width .4s var(--ease); }
.meter span { display: flex; justify-content: space-between; color: var(--text-muted); font-size: .75rem; }
.account-card .actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; }

.conf-grid, .how-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .75rem; }
.conf-card { position: relative; grid-column: span 6; display: grid; align-content: start; gap: .5rem; min-height: 13rem; padding: 1rem 1rem 4.25rem; color: var(--text); text-decoration: none; transition: border-color var(--fast), background var(--fast), box-shadow var(--fast); }
.conf-card:hover { border-color: var(--border-hover); background: var(--fill-overlay-hover); box-shadow: var(--shadow-md); }
.conf-card.is-pending { color: var(--text-muted); }
.conf-card.is-pending:hover { box-shadow: none; background: var(--bg-app); border-color: var(--border-subtle); cursor: default; }
.conf-card .top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.conf-card h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: var(--w-medium); line-height: 1.1; letter-spacing: -.02em; margin-top: .75rem; }
.conf-card .place { color: var(--text-muted); font-size: .8125rem; }
.conf-card .blurb { color: var(--text-muted); font-size: .8125rem; line-height: 1.2rem; max-width: 30rem; }
.conf-card .stats { display: flex; gap: 1.25rem; margin-top: .5rem; }
.conf-card .stats div { display: grid; }
.conf-card .stats strong { font-size: 1.25rem; font-weight: var(--w-medium); line-height: 1.5rem; }
.conf-card .stats span { color: var(--text-muted); font-size: .6875rem; }
.conf-card > .btn { position: absolute; right: 1rem; bottom: 1rem; }
.conf-card:hover > .btn-subtle { background: var(--fill-subtle-hover); }
.conf-card .curated { position: absolute; left: 1rem; bottom: 1.5rem; color: var(--text-muted); font-size: .6875rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-size: .6875rem; font-weight: var(--w-medium); letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.status i { width: .5rem; height: .5rem; border-radius: var(--r-full); background: var(--sand); }
.status.is-live { color: var(--text-success); } .status.is-live i { background: var(--text-success); box-shadow: 0 0 0 3px var(--fill-success); }
.status.is-upcoming { color: var(--text-info); } .status.is-upcoming i { background: var(--bronze); box-shadow: 0 0 0 3px var(--fill-info); }
.status.is-past i { background: var(--text-disabled); }
.how { grid-column: span 4; display: grid; align-content: start; gap: .5rem; padding: 1rem; min-height: 10rem; }
.how .n { font-size: 1.5rem; font-weight: var(--w-medium); line-height: 2rem; color: var(--text-muted); }
.how h3 { font-size: 1.25rem; font-weight: var(--w-medium); line-height: 1.6rem; }
.how p { color: var(--text-muted); font-size: .8125rem; line-height: 1.2rem; }
@media (max-width: 960px) {
  .home-hero, .auth-card, .conf-card, .how { grid-column: 1 / -1; min-height: 0; }
  .home-hero { min-height: 18rem; }
}
