:root {
  color-scheme: dark;
  --bg: #090a0f;
  --bg-raised: #0f1017;
  --panel: #15161f;
  --panel-2: #1b1d28;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f6f2;
  --muted: #999ca9;
  --soft: #c8cad2;
  --accent: #c5fb64;
  --accent-ink: #111508;
  --violet: #a987ff;
  --orange: #ff995f;
  --red: #ff6e78;
  --blue: #71b8ff;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --sidebar: 242px;
  --topbar: 84px;
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; top: 12px; left: 12px; transform: translateY(-160%); padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 10px; font-weight: 800; }
.skip-link:focus { transform: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar); display: flex; flex-direction: column; padding: 28px 20px 22px; background: #0c0d13; border-right: 1px solid var(--line); }
.brand, .mobile-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.04em; }
.brand { padding: 0 8px 30px; font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 12px; color: var(--accent-ink); background: var(--accent); box-shadow: 0 10px 28px rgba(197, 251, 100, 0.12); }
.brand-mark svg { width: 24px; fill: currentColor; }
.brand-mark.small { width: 33px; border-radius: 10px; }
.brand-mark.small svg { width: 21px; }
.primary-nav { display: grid; gap: 6px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 13px; border: 0; padding: 12px 14px; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; transition: background .18s, color .18s, transform .18s; }
.nav-item:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.nav-item:active { transform: scale(.985); }
.nav-item.is-active { background: var(--panel-2); color: var(--text); }
.nav-item.is-active .nav-icon { color: var(--accent); }
.nav-icon { display: grid; place-items: center; }
.sidebar-foot { margin-top: auto; display: grid; gap: 18px; }
.family-peek { padding: 16px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(169, 135, 255, .09), rgba(197, 251, 100, .04)); }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.avatar-stack { display: flex; align-items: center; margin-top: 12px; padding-left: 4px; }
.mini-avatar, .profile-avatar { display: grid; place-items: center; border-radius: 50%; font-weight: 800; letter-spacing: -.02em; }
.mini-avatar { width: 34px; aspect-ratio: 1; margin-left: -5px; border: 3px solid #101117; font-size: 11px; }
.mini-avatar:first-child { margin-left: 0; }
.mini-avatar.more { background: var(--panel-2); color: var(--muted); }

.page-column { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar); display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 clamp(22px, 4vw, 58px); background: rgba(9, 10, 15, .82); border-bottom: 1px solid rgba(255, 255, 255, .05); backdrop-filter: blur(18px); }
.mobile-brand { display: none; border: 0; padding: 0; background: none; }
.search-trigger { width: min(440px, 45vw); display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg-raised); color: var(--muted); cursor: pointer; text-align: left; }
.search-trigger:hover { border-color: var(--line-strong); color: var(--soft); }
.search-trigger kbd { margin-left: auto; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: #777b88; font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { position: relative; display: grid; place-items: center; width: 42px; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; }
.icon-button:hover { border-color: var(--line-strong); background: var(--panel-2); }
.icon-button.subtle { border: 0; background: transparent; color: var(--muted); }
.notification-dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border: 2px solid var(--panel); border-radius: 50%; background: var(--accent); }
.profile-button { display: flex; align-items: center; gap: 10px; padding: 4px 7px 4px 4px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.profile-avatar { width: 42px; aspect-ratio: 1; background: linear-gradient(145deg, var(--violet), #6a45d7); color: white; font-size: 13px; }
.profile-copy { display: grid; gap: 1px; }
.profile-copy strong { font-size: 14px; }
.profile-copy small { color: var(--muted); font-size: 11px; }
.profile-button > .icon { width: 15px; color: var(--muted); }

main { width: min(1500px, 100%); margin: 0 auto; padding: 32px clamp(22px, 4vw, 58px) 80px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin: 3px 0 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.055em; line-height: 1; }
.page-heading p { max-width: 560px; margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(197, 251, 100, .18); border-radius: 999px; background: rgba(197, 251, 100, .07); color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(197, 251, 100, .08); }

.hero { position: relative; min-height: 360px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(circle at 75% 38%, rgba(169, 135, 255, .45), transparent 31%), linear-gradient(110deg, #151821, #202037 65%, #181823); box-shadow: 0 25px 80px rgba(0, 0, 0, .25); }
.hero::before { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -150px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 78px rgba(255,255,255,.018); }
.hero-copy { position: relative; z-index: 2; align-self: center; padding: clamp(30px, 5vw, 66px); }
.hero-label { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.hero h2 { max-width: 650px; margin: 13px 0 11px; font-size: clamp(38px, 5.2vw, 70px); letter-spacing: -.065em; line-height: .98; }
.hero p { max-width: 510px; margin: 0; color: rgba(246,246,242,.72); font-size: 16px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); cursor: pointer; font-weight: 800; font-size: 13px; transition: transform .16s, background .16s, border-color .16s; }
.button:hover { border-color: var(--line-strong); background: var(--panel-2); }
.button:active { transform: scale(.98); }
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.button.ghost { background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.button.small { min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: 12px; }
.hero-art { position: relative; min-height: 290px; }
.poster-orbit { position: absolute; inset: 12% 12% 4% 3%; }
.poster-card-art { position: absolute; overflow: hidden; border: 1px solid rgba(255,255,255,.17); border-radius: 21px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.poster-card-art.main { inset: 0 20% 0 14%; transform: rotate(4deg); background: linear-gradient(145deg, #b8f764, #4a7047 45%, #17231e); }
.poster-card-art.back { inset: 12% 4% 10% 43%; transform: rotate(15deg); background: linear-gradient(150deg, #8e6de0, #362b58 55%, #171522); }
.poster-card-art::before, .poster-card-art::after { content: ""; position: absolute; border-radius: 50%; }
.poster-card-art.main::before { width: 220px; height: 220px; top: 19%; left: 5%; border: 1px solid rgba(7,14,8,.35); box-shadow: 0 0 0 22px rgba(7,14,8,.08), 0 0 0 48px rgba(7,14,8,.05); }
.poster-card-art.main::after { width: 85px; height: 85px; right: 7%; top: 8%; background: rgba(255,255,255,.26); filter: blur(4px); }
.poster-card-art.back::before { width: 150px; height: 150px; right: -30px; top: 18%; border: 35px solid rgba(255,255,255,.08); }
.art-title { position: absolute; z-index: 2; left: 24px; right: 20px; bottom: 26px; font-size: clamp(24px, 3vw, 40px); font-weight: 900; letter-spacing: -.06em; line-height: .9; text-transform: uppercase; }
.art-kicker { display: block; margin-bottom: 8px; font-size: 9px; letter-spacing: .2em; opacity: .65; }

.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 8px; }
.summary-card { display: flex; align-items: center; gap: 14px; min-height: 82px; padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.summary-icon { display: grid; place-items: center; width: 44px; aspect-ratio: 1; border-radius: 13px; color: var(--accent); background: rgba(197, 251, 100, .08); }
.summary-card:nth-child(2) .summary-icon { color: var(--violet); background: rgba(169,135,255,.09); }
.summary-card:nth-child(3) .summary-icon { color: var(--orange); background: rgba(255,153,95,.09); }
.summary-copy { display: grid; gap: 2px; }
.summary-copy strong { font-size: 20px; letter-spacing: -.04em; }
.summary-copy span { color: var(--muted); font-size: 12px; }

.section { margin-top: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.section-title { margin: 0; font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -.045em; }
.section-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 6px; border: 0; background: transparent; color: var(--soft); cursor: pointer; font-weight: 700; font-size: 12px; }
.text-button:hover { color: var(--accent); }
.text-button .icon { width: 15px; }

.content-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.media-card { position: relative; min-width: 0; cursor: pointer; }
.media-poster { position: relative; aspect-ratio: 2 / 2.8; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--poster, linear-gradient(145deg, #34364b, #171820)); transition: transform .22s, border-color .22s, box-shadow .22s; }
.media-card:hover .media-poster { transform: translateY(-4px); border-color: rgba(255,255,255,.2); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.media-poster::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 22%, rgba(255,255,255,.22), transparent 20%), linear-gradient(to top, rgba(3,3,6,.87), transparent 55%); }
.media-poster::after { content: ""; position: absolute; width: 130%; aspect-ratio: 1; left: -35%; top: 18%; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.025), 0 0 0 54px rgba(255,255,255,.016); }
.media-poster.has-image::before { background: linear-gradient(to top, rgba(3,3,6,.9), transparent 60%); }
.media-poster.has-image::after { display: none; }
.media-poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-wordmark { position: absolute; z-index: 2; left: 17px; right: 15px; bottom: 18px; font-size: clamp(22px, 2.6vw, 37px); font-weight: 900; line-height: .88; letter-spacing: -.065em; text-transform: uppercase; }
.poster-wordmark small { display: block; margin-bottom: 7px; font-size: 8px; font-weight: 700; letter-spacing: .16em; opacity: .6; }
.card-top-badges { position: absolute; z-index: 3; inset: 11px 11px auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.type-badge, .date-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border-radius: 999px; background: rgba(9,10,15,.7); backdrop-filter: blur(9px); font-size: 10px; font-weight: 800; }
.date-badge { background: var(--accent); color: var(--accent-ink); }
.card-overlay-button { position: absolute; z-index: 3; right: 11px; bottom: 11px; display: grid; place-items: center; width: 37px; aspect-ratio: 1; border: 0; border-radius: 50%; background: rgba(246,246,242,.93); color: #111; opacity: 0; transform: translateY(5px); cursor: pointer; transition: opacity .18s, transform .18s; }
.media-card:hover .card-overlay-button, .card-overlay-button:focus-visible { opacity: 1; transform: none; }
.media-card-copy { padding: 11px 4px 0; }
.media-card-copy h3 { overflow: hidden; margin: 0; font-size: 15px; letter-spacing: -.025em; white-space: nowrap; text-overflow: ellipsis; }
.media-card-meta { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: var(--muted); font-size: 11px; }
.media-card-meta .separator { width: 3px; height: 3px; border-radius: 50%; background: #565965; }
.provider-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.provider-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-raised); color: var(--soft); font-size: 9px; font-weight: 800; }
.provider-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--provider-color, var(--violet)); }
.progress-track { height: 3px; margin-top: 11px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

.event-list { display: grid; gap: 10px; }
.event-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 98px; padding: 13px 17px 13px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); transition: border-color .18s, background .18s; }
.event-card:hover { border-color: var(--line-strong); background: #12131b; }
.event-date { display: grid; place-items: center; align-content: center; min-height: 70px; border-radius: 14px; background: var(--panel-2); text-align: center; }
.event-date strong { font-size: 23px; letter-spacing: -.05em; }
.event-date span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.event-copy { min-width: 0; }
.event-kicker { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.event-kicker .live { color: var(--red); }
.event-copy h3 { overflow: hidden; margin: 6px 0 4px; font-size: clamp(15px, 2vw, 19px); letter-spacing: -.025em; white-space: nowrap; text-overflow: ellipsis; }
.event-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.event-side { display: flex; align-items: center; gap: 15px; }
.event-time { text-align: right; }
.event-time strong { display: block; font-size: 16px; }
.event-time small { color: var(--muted); font-size: 10px; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.filter-chip { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.filter-chip:hover { border-color: var(--line-strong); color: var(--text); }
.filter-chip.is-active { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.filter-spacer { flex: 1; }
.view-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raised); }
.view-toggle button { display: grid; place-items: center; width: 32px; aspect-ratio: 1; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.view-toggle button.is-active { background: var(--panel-2); color: var(--text); }

.calendar-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
.mini-calendar { position: sticky; top: calc(var(--topbar) + 22px); align-self: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.mini-calendar-head { display: flex; justify-content: space-between; margin-bottom: 15px; font-weight: 800; }
.mini-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; font-size: 10px; }
.mini-calendar-grid span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; color: var(--muted); }
.mini-calendar-grid .day-name { aspect-ratio: auto; color: #60636f; font-weight: 800; }
.mini-calendar-grid .today { background: var(--accent); color: var(--accent-ink); font-weight: 900; }
.mini-calendar-grid .has-event { box-shadow: inset 0 -2px var(--violet); color: var(--text); }
.agenda { display: grid; gap: 26px; }
.agenda-day h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 11px; font-size: 13px; letter-spacing: -.01em; }
.agenda-day h3 span { color: var(--muted); font-weight: 500; }

.tracking-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tracking-card { position: relative; min-height: 190px; overflow: hidden; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.tracking-card::after { content: ""; position: absolute; width: 160px; aspect-ratio: 1; right: -60px; bottom: -70px; border: 30px solid var(--track-color, rgba(197,251,100,.12)); border-radius: 50%; opacity: .4; }
.tracking-logo { display: grid; place-items: center; width: 45px; aspect-ratio: 1; border-radius: 14px; background: var(--track-bg, rgba(197,251,100,.1)); color: var(--track-fg, var(--accent)); font-weight: 900; }
.tracking-card h3 { margin: 28px 0 5px; font-size: 20px; letter-spacing: -.04em; }
.tracking-card p { margin: 0; color: var(--muted); font-size: 12px; }
.tracking-state { position: absolute; z-index: 2; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 10px; font-weight: 800; }

.family-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(169,135,255,.16), rgba(197,251,100,.05)); }
.family-hero h2 { margin: 5px 0 8px; font-size: 28px; letter-spacing: -.045em; }
.family-hero p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.55; }
.member-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.member-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.member-card .profile-avatar { width: 50px; }
.member-card h3 { margin: 16px 0 3px; font-size: 15px; }
.member-card p { margin: 0; color: var(--muted); font-size: 11px; }

.empty-state { display: grid; place-items: center; min-height: 300px; padding: 40px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; }
.empty-state-icon { display: grid; place-items: center; width: 60px; aspect-ratio: 1; margin-bottom: 16px; border-radius: 18px; background: rgba(197,251,100,.08); color: var(--accent); }
.empty-state h2 { margin: 0; letter-spacing: -.04em; }
.empty-state p { max-width: 440px; margin: 9px 0 20px; color: var(--muted); line-height: 1.55; }

dialog { color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(7px); }
.search-dialog { width: min(720px, calc(100vw - 28px)); max-height: min(720px, calc(100vh - 36px)); margin-top: 9vh; padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: #11121a; box-shadow: 0 35px 100px rgba(0,0,0,.58); }
.dialog-head { position: sticky; top: 0; z-index: 3; padding: 17px 17px 13px; background: #11121a; border-bottom: 1px solid var(--line); }
.dialog-search { display: flex; align-items: center; gap: 11px; }
.dialog-search > .icon { color: var(--muted); }
.dialog-search input { flex: 1; min-width: 0; padding: 8px 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 19px; }
.dialog-search input::placeholder { color: #666976; }
.search-filters { display: flex; gap: 7px; margin-top: 13px; }
.search-filters .filter-chip { min-height: 29px; font-size: 10px; }
.search-results { min-height: 330px; max-height: 60vh; overflow-y: auto; padding: 10px; }
.search-hint { display: grid; place-items: center; min-height: 290px; padding: 30px; color: var(--muted); text-align: center; }
.search-hint .icon { width: 35px; height: 35px; margin-bottom: 13px; color: #555865; }
.search-result { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 9px; border-radius: 13px; }
.search-result:hover { background: rgba(255,255,255,.045); }
.search-thumb { display: grid; place-items: center; width: 58px; aspect-ratio: 2 / 2.7; overflow: hidden; border-radius: 9px; background: var(--poster, var(--panel-2)); font-size: 17px; font-weight: 900; }
.search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result h3 { overflow: hidden; margin: 0 0 4px; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.search-result p { margin: 0; color: var(--muted); font-size: 11px; }

.detail-dialog { width: min(840px, calc(100vw - 28px)); max-height: calc(100vh - 36px); padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: 24px; background: #11121a; box-shadow: 0 35px 100px rgba(0,0,0,.6); }
.dialog-close { position: fixed; z-index: 5; margin: 15px 0 0 calc(min(840px, 100vw - 28px) - 57px); background: rgba(10,10,14,.62); backdrop-filter: blur(10px); }
.detail-hero { position: relative; min-height: 390px; display: flex; align-items: end; overflow: hidden; padding: 45px; background: var(--poster, linear-gradient(145deg, #342a57, #17211b)); }
.detail-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.18), transparent 25%), linear-gradient(to top, #11121a 0%, rgba(17,18,26,.36) 70%, rgba(17,18,26,.15)); }
.detail-hero-copy { position: relative; z-index: 2; max-width: 610px; }
.detail-hero h2 { margin: 10px 0; font-size: clamp(38px, 7vw, 68px); letter-spacing: -.065em; line-height: .95; }
.detail-hero p { margin: 0; color: rgba(246,246,242,.74); line-height: 1.6; }
.detail-body { padding: 5px 45px 38px; }
.detail-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }

.form-dialog { width: min(660px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 22px; background: #11121a; box-shadow: 0 35px 100px rgba(0,0,0,.58); }
.form-dialog form { padding: 26px; }
.form-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.form-dialog-head h2 { margin: 5px 0 0; font-size: 29px; letter-spacing: -.05em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; color: var(--soft); font-size: 11px; font-weight: 800; }
.field-wide { grid-column: 1 / -1; }
.field input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--bg-raised); color: var(--text); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(197,251,100,.08); }
.field input::placeholder { color: #5d606c; }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--soft); font-size: 12px; }
.check-row input { accent-color: var(--accent); }
.form-actions { display: flex; justify-content: end; gap: 9px; margin-top: 24px; }

.settings-drawer { position: fixed; z-index: 101; inset: 0 0 0 auto; width: min(430px, 100vw); padding: 26px; overflow-y: auto; background: #11121a; border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .24s ease; }
.settings-drawer.is-open { transform: none; }
.drawer-backdrop { position: fixed; z-index: 100; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(4px); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2 { margin: 5px 0 0; font-size: 30px; letter-spacing: -.05em; }
.drawer-body { padding-top: 24px; }
.settings-section { padding: 20px 0; border-top: 1px solid var(--line); }
.settings-section:first-child { border-top: 0; }
.settings-section h3 { margin: 0 0 4px; font-size: 14px; }
.settings-section > p { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.platform-list { display: grid; gap: 8px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 46px; }
.toggle-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.switch { position: relative; width: 43px; height: 24px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #343641; transition: background .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: white; transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(19px); background: #18200c; }

.notification-panel { position: fixed; z-index: 80; top: 73px; right: clamp(20px, 4vw, 55px); width: min(370px, calc(100vw - 28px)); max-height: 520px; display: none; overflow-y: auto; padding: 10px; border: 1px solid var(--line-strong); border-radius: 18px; background: #15161f; box-shadow: 0 26px 70px rgba(0,0,0,.5); }
.notification-panel.is-open { display: block; }
.notification-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 9px 12px; }
.notification-item { display: grid; grid-template-columns: 38px 1fr; gap: 11px; padding: 12px 10px; border-top: 1px solid var(--line); }
.notification-symbol { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 12px; background: rgba(197,251,100,.08); color: var(--accent); }
.notification-item h3 { margin: 0 0 4px; font-size: 12px; }
.notification-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.notification-item time { display: block; margin-top: 6px; color: #686b77; font-size: 9px; }

.toast-region { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 270px; display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 13px; background: #1b1d27; box-shadow: 0 18px 45px rgba(0,0,0,.38); animation: toast-in .22s ease; font-size: 12px; font-weight: 700; }
.toast .icon { color: var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.demo-banner { display: flex; align-items: center; justify-content: center; gap: 7px; margin: -8px 0 22px; padding: 7px 11px; border: 1px solid rgba(255,153,95,.16); border-radius: 10px; background: rgba(255,153,95,.06); color: #ffc09b; font-size: 10px; }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  :root { --sidebar: 82px; }
  .sidebar { padding-inline: 13px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand-name, .nav-item > span:last-child, .family-peek { display: none; }
  .nav-item { justify-content: center; padding-inline: 0; }
  .content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1.2fr .8fr; }
  .hero-copy { padding: 42px; }
}

@media (max-width: 860px) {
  :root { --topbar: 70px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .page-column { min-width: 0; }
  .topbar { padding-inline: 18px; }
  .mobile-brand { display: inline-flex; font-size: 15px; cursor: pointer; }
  .search-trigger { width: 42px; justify-content: center; padding: 0; aspect-ratio: 1; }
  .search-trigger .search-copy, .search-trigger kbd, .profile-copy, .profile-button > .icon { display: none; }
  .topbar-actions { gap: 6px; }
  .profile-button { padding: 0; }
  .profile-avatar { width: 40px; }
  main { padding: 24px 18px 105px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 420px; display: flex; flex-direction: column; justify-content: end; padding: 30px; background: linear-gradient(to top, rgba(10,11,16,.96), rgba(10,11,16,.1)); }
  .hero-art { position: absolute; inset: 0; opacity: .72; }
  .poster-orbit { inset: 5% 3% 8% 45%; }
  .hero h2 { font-size: clamp(38px, 10vw, 62px); }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card { min-height: 68px; }
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracking-grid { grid-template-columns: 1fr; }
  .calendar-layout { grid-template-columns: 1fr; }
  .mini-calendar { position: static; display: none; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-nav { position: fixed; z-index: 50; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; min-height: 72px; padding: 7px 12px max(7px, env(safe-area-inset-bottom)); background: rgba(13,14,20,.94); border-top: 1px solid var(--line); backdrop-filter: blur(18px); }
  .mobile-nav-item { display: grid; justify-items: center; gap: 3px; padding: 7px 2px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
  .mobile-nav-item .icon { width: 19px; }
  .mobile-nav-item small { font-size: 9px; font-weight: 700; }
  .mobile-nav-item.is-active { color: var(--accent); }
  .mobile-add { justify-self: center; align-self: start; display: grid; place-items: center; width: 52px; aspect-ratio: 1; margin-top: -20px; border: 5px solid #0d0e14; border-radius: 50%; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
  .family-hero { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .mobile-brand > span:last-child { display: none; }
  .page-heading { align-items: start; }
  .page-heading .status-pill { display: none; }
  .hero { min-height: 470px; }
  .hero-copy { min-height: 470px; padding: 25px; }
  .hero p { font-size: 14px; }
  .poster-orbit { inset: 1% -12% 22% 34%; }
  .content-grid { gap: 12px; }
  .poster-wordmark { left: 12px; bottom: 14px; font-size: clamp(18px, 8vw, 30px); }
  .media-card-copy h3 { font-size: 13px; }
  .provider-row { display: none; }
  .event-card { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding-right: 12px; }
  .event-date { min-height: 61px; }
  .event-side { grid-column: 2; justify-content: space-between; margin-top: -3px; }
  .event-time { text-align: left; }
  .event-copy h3 { white-space: normal; }
  .search-dialog { margin-top: 12px; max-height: calc(100vh - 24px); }
  .search-results { max-height: calc(100vh - 150px); }
  .detail-hero { min-height: 420px; padding: 28px; }
  .detail-body { padding-inline: 28px; }
  .dialog-close { margin-left: calc(100vw - 84px); }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .member-grid { grid-template-columns: 1fr; }
  .toast-region { right: 12px; bottom: 88px; left: 12px; }
  .toast { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
