:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --ink: #262522;
  --muted: #77736d;
  --line: #ece8e1;
  --accent: #806a59;
  --accent-deep: #594a3f;
  --accent-soft: #eee8e1;
  --sage: #b4a28b;
  --peach: #e5bc98;
  --lilac: #cec1b9;
  --blue: #c8c2b5;
  --gold: #c99e5f;
  --danger: #ad6357;
  --shadow: 0 18px 55px rgba(45, 41, 36, .07);
  --shadow-soft: 0 8px 28px rgba(45, 41, 36, .055);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 15px;
  --sidebar: 248px;
  --spring: cubic-bezier(.22, 1, .36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .date-number, .stat-value, .budget-figure, .brand-row strong { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif !important; }
button, input, textarea, select { font: inherit; }
button { color: inherit; transition: transform .32s var(--spring), background-color .25s ease, color .25s ease, box-shadow .32s var(--spring), opacity .25s ease; }
button:active { transform: scale(.965) !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(168,111,77,.23); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.ambient { position: fixed; border-radius: 50%; filter: blur(18px); pointer-events: none; opacity: .13; z-index: 0; }
.ambient-one { width: 420px; height: 420px; top: -210px; right: 4%; background: radial-gradient(circle, #ead8c5 0, transparent 70%); }
.ambient-two { width: 350px; height: 350px; bottom: -180px; left: 20%; background: radial-gradient(circle, #e9cdb5 0, transparent 70%); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr; position: relative; z-index: 1; transition: opacity .35s ease; }
.app-shell[aria-hidden="true"] { opacity: 0; pointer-events: none; }
.sidebar { position: fixed; inset: 12px auto 12px 12px; width: calc(var(--sidebar) - 12px); border: 1px solid var(--line); border-radius: 30px; padding: 25px 18px 18px; background: rgba(249,248,245,.96); box-shadow: 0 16px 45px rgba(48,43,36,.045); backdrop-filter: blur(26px); display: flex; flex-direction: column; z-index: 20; }
.brand-row { display: flex; align-items: center; gap: 12px; padding: 0 9px; }
.brand-row > div:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.brand-row strong { font: 700 20px "Manrope", sans-serif; letter-spacing: -.5px; }
.brand-row span { color: var(--muted); font-size: 11px; margin-top: 4px; }
.brand-mark { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: white; font-size: 19px; font-weight: 700; background: linear-gradient(145deg, #b98563, #82543b); box-shadow: 0 9px 22px rgba(124,80,56,.24); }
.brand-mark-large { width: 58px; height: 58px; border-radius: 19px; font-size: 28px; margin-bottom: 22px; }

.main-nav { display: flex; flex-direction: column; gap: 5px; margin-top: 38px; }
.nav-item { border: 0; background: transparent; border-radius: 14px; min-height: 46px; padding: 0 13px; display: flex; align-items: center; gap: 12px; color: #7f7065; cursor: pointer; text-align: left; transition: .2s ease; position: relative; }
.nav-item:hover { background: rgba(255,255,255,.6); color: var(--ink); transform: translateX(2px); }
.nav-item.active { background: white; color: var(--ink); font-weight: 650; box-shadow: 0 5px 18px rgba(48,43,36,.055); }
.nav-item.active::before { content: ""; position: absolute; left: -18px; height: 22px; width: 3px; border-radius: 5px; background: var(--member-accent, var(--accent)); }
.nav-item svg { width: 19px; height: 19px; stroke-width: 1.8; }
.nav-item .nav-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); font-size: 11px; }
.sidebar-bottom { margin-top: auto; }
.quiet-card { display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; padding: 13px 11px; border-radius: 17px; background: rgba(232,219,204,.72); margin-bottom: 12px; }
.quiet-card div { display: flex; flex-direction: column; }
.quiet-card strong { font-size: 11px; }
.quiet-card span { font-size: 9px; color: var(--muted); }
.quiet-card .quiet-icon { font-size: 20px; color: var(--accent); }
.switch { width: 33px; height: 20px; border: 0; border-radius: 15px; background: #c8b9ad; padding: 2px; cursor: pointer; }
.switch span { display: block; width: 16px; height: 16px; border-radius: 50%; background: white; transition: transform .25s ease; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.switch.is-on { background: var(--accent); }
.switch.is-on span { transform: translateX(13px); }
.profile-button { width: 100%; border: 0; border-top: 1px solid var(--line); padding: 16px 8px 3px; background: transparent; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; }
.profile-copy { display: flex; flex: 1; flex-direction: column; }
.profile-copy strong { font-size: 13px; }
.profile-copy small { font-size: 10px; color: var(--muted); }
.avatar { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); background: var(--profile, #d8b8a0); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(51,65,57,.13); }

.main-content { grid-column: 2; width: min(100%, 1500px); margin: 0 auto; padding: 42px clamp(30px, 4.5vw, 76px) 190px; min-width: 0; background: rgba(255,255,255,.78); }
.mobile-header, .mobile-nav { display: none; }
.topbar { min-height: 68px; display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.page-kicker { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 500; }
.page-title { margin: 0; font: 700 clamp(29px,3vw,42px)/1.15 "Manrope", sans-serif; letter-spacing: -1.5px; }
.page-title span { color: var(--member-accent, var(--accent)); }
.page-subtitle { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.profile-kicker { display: flex; align-items: center; gap: 7px; text-transform: none; }
.profile-kicker i { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--member-accent) 15%, transparent); }
.top-actions { display: flex; gap: 9px; }
.icon-button, .close-button { width: 42px; height: 42px; border: 1px solid var(--line); background: rgba(255,255,255,.73); border-radius: 14px; display: grid; place-items: center; cursor: pointer; transition: .2s ease; box-shadow: 0 4px 15px rgba(40,70,55,.03); }
.icon-button:hover, .close-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.icon-button svg { width: 19px; height: 19px; }
.notification-button { position: relative; }
.soft-dot { position: absolute; width: 7px; height: 7px; background: #dba66a; border-radius: 50%; border: 2px solid white; top: 8px; right: 8px; box-sizing: content-box; }

.view-container { animation: viewIn .58s var(--spring); transform-origin: 50% 20%; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px) scale(.992); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 34px rgba(47,43,38,.04); border-radius: 28px; padding: 24px; }
.card-hover { transition: transform .45s var(--spring), box-shadow .45s var(--spring); }
.card-hover:hover { transform: translateY(-2px) scale(1.005); box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-head h2, .card-head h3 { font: 700 17px "Manrope"; margin: 0; letter-spacing: -.3px; }
.card-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.text-button { border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; padding: 6px; cursor: pointer; }

.day-card { padding: 27px; background: linear-gradient(145deg, #ffffff, #faf8f4); }
.day-summary { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.date-block { display: flex; align-items: center; gap: 15px; }
.date-number { width: 55px; height: 59px; border-radius: 18px; background: var(--accent); color: white; display: grid; place-items: center; font: 700 25px "Manrope"; box-shadow: 0 9px 20px rgba(168,111,77,.2); }
.date-block h2 { font: 700 19px "Manrope"; margin: 0 0 5px; }
.date-block p { margin: 0; color: var(--muted); font-size: 12px; }
.weather { text-align: right; color: var(--muted); font-size: 12px; }
.weather strong { display: block; color: var(--ink); font-size: 18px; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 70px; top: 7px; bottom: 10px; width: 1px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 58px 1fr; gap: 25px; min-height: 58px; position: relative; }
.timeline-time { color: var(--muted); font-size: 11px; padding-top: 4px; text-align: right; }
.timeline-content { position: relative; padding: 0 0 20px 3px; }
.timeline-content::before { content: ""; position: absolute; left: -17px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--event-color, var(--accent)); box-shadow: 0 0 0 5px var(--event-bg, var(--accent-soft)); }
.timeline-content strong { display: block; font-size: 13px; }
.timeline-content span { color: var(--muted); font-size: 11px; }
.timeline-empty { padding: 12px 0 2px 94px; color: var(--muted); font-size: 13px; }

.prayer-card { background: linear-gradient(145deg, #715446 0%, #8f6852 58%, #b08a6d 100%); color: white; overflow: hidden; position: relative; }
.prayer-card::after { content:""; position:absolute; width:190px; height:190px; border:1px solid rgba(255,255,255,.12); border-radius:50%; top:-105px; right:-45px; box-shadow:0 0 0 30px rgba(255,255,255,.035), 0 0 0 62px rgba(255,255,255,.02); }
.prayer-card .card-head p, .prayer-card .muted { color: rgba(255,255,255,.68); }
.next-prayer { display: flex; justify-content: space-between; align-items: flex-end; margin: 23px 0 20px; position: relative; z-index: 1; }
.next-prayer p { margin: 0 0 3px; color: rgba(255,255,255,.68); font-size: 11px; }
.next-prayer h3 { margin: 0; font: 600 26px "Manrope"; }
.next-prayer strong { font-size: 22px; }
.prayer-progress { height: 4px; border-radius: 8px; background: rgba(255,255,255,.18); overflow: hidden; }
.prayer-progress span { display: block; height: 100%; width: 66%; background: rgba(255,255,255,.83); border-radius: inherit; }
.prayer-times { display: flex; justify-content: space-between; margin-top: 16px; }
.prayer-times div { text-align: center; opacity: .68; }
.prayer-times .current { opacity: 1; }
.prayer-times span { display: block; font-size: 9px; margin-bottom: 4px; }
.prayer-times strong { font-size: 11px; }

.home-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-area { border: 1px solid rgba(255,255,255,.48); border-radius: 18px; padding: 17px; min-height: 124px; text-align: left; cursor: pointer; background: var(--area-bg); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset; transition: transform .42s var(--spring), box-shadow .42s var(--spring); }
.mini-area:hover { transform: translateY(-2px) scale(1.008); box-shadow: 0 12px 26px rgba(87,61,43,.08); }
.mini-icon { width: 34px; height: 34px; border-radius: 12px; background: rgba(255,255,255,.68); display: grid; place-items: center; margin-bottom: 17px; }
.mini-icon svg { width: 17px; }
.mini-area strong { display: block; font: 700 13px "Manrope"; }
.mini-area span { display: block; color: #796c62; font-size: 10px; margin-top: 3px; }

.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); transition: opacity .3s ease, transform .35s var(--spring); }
.list-row:last-child { border-bottom: 0; }
.check { width: 21px; height: 21px; flex: 0 0 auto; border-radius: 7px; border: 1.5px solid #b8a89b; background: rgba(255,255,255,.42); cursor: pointer; display: grid; place-items: center; transition: transform .38s var(--spring), background .25s ease, border-color .25s ease; }
.check.done { border-color: var(--accent); background: var(--accent); color: white; }
.check.done::after { content: "✓"; font-size: 11px; animation: checkIn .38s var(--spring); }
@keyframes checkIn { from { transform: scale(.2) rotate(-18deg); opacity: 0; } to { transform: none; opacity: 1; } }
.row-copy { min-width: 0; flex: 1; }
.row-copy strong { display: block; font-size: 12px; font-weight: 600; }
.row-copy span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.list-row.is-done .row-copy strong { color: var(--muted); text-decoration: line-through; }
.tag { border-radius: 10px; background: #eee4d9; color: #77665a; padding: 5px 8px; font-size: 9px; white-space: nowrap; }
.empty-state { text-align: center; padding: 35px 20px; }
.empty-state .empty-icon { width: 53px; height: 53px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin: 0 auto 14px; }
.empty-state h3 { margin: 0 0 5px; font: 700 15px "Manrope"; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }

.section-tabs { display: flex; gap: 3px; padding: 4px; border: 1px solid rgba(116,88,68,.08); border-radius: 13px; background: rgba(224,210,198,.6); width: fit-content; margin-bottom: 20px; box-shadow: 0 1px 1px rgba(70,45,30,.04) inset; }
.section-tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 11px; padding: 9px 15px; font-size: 12px; cursor: pointer; }
.section-tabs button.active { color: var(--ink); background: rgba(255,250,244,.95); box-shadow: 0 3px 10px rgba(87,61,43,.1), 0 1px 0 white inset; font-weight: 600; }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 20px; }
.section-hero { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-hero h2 { font: 700 20px "Manrope"; margin: 0 0 5px; }
.section-hero p { color: var(--muted); font-size: 12px; margin: 0; }
.primary-button, .soft-button, .danger-button { min-height: 42px; border: 0; border-radius: 13px; padding: 0 16px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .2s ease; }
.primary-button { background: var(--accent); color: white; box-shadow: 0 8px 18px rgba(57,121,100,.18); }
.primary-button:hover { background: var(--accent-deep); transform: translateY(-1px); }
.soft-button { background: var(--accent-soft); color: var(--accent-deep); }
.danger-button { background: #f5e6e3; color: var(--danger); }
.full-button { width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; }
.inline-add { display: flex; gap: 8px; margin-bottom: 14px; }
.field { flex: 1; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.8); padding: 11px 13px; min-width: 0; color: var(--ink); }
.field::placeholder { color: #9aa39e; }

.category-group { margin-bottom: 17px; }
.category-title { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; padding-bottom: 6px; }
.category-title span { font-weight: 500; }
.stat-card { padding: 18px; }
.stat-value { font: 700 27px "Manrope"; margin: 7px 0 3px; }
.stat-label { color: var(--muted); font-size: 11px; }
.soft-progress { height: 7px; border-radius: 10px; background: #eadfd4; overflow: hidden; margin-top: 13px; }
.soft-progress span { display: block; height: 100%; border-radius: inherit; background: var(--progress, var(--accent)); }

.week-strip { display: grid; grid-template-columns: repeat(7,1fr); gap: 7px; margin-bottom: 18px; }
.day-pill { border: 0; background: #f3eae0; border-radius: 15px; padding: 11px 4px; cursor: pointer; text-align: center; color: var(--muted); }
.day-pill span { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }
.day-pill strong { display: grid; place-items: center; width: 29px; height: 29px; margin: 5px auto 0; border-radius: 50%; font-size: 12px; }
.day-pill.active { background: var(--accent-soft); color: var(--accent-deep); }
.day-pill.active strong { background: var(--accent); color: white; }
.event-row { display: grid; grid-template-columns: 62px 5px 1fr auto; gap: 13px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.event-row:last-child { border: 0; }
.event-time { color: var(--muted); font-size: 11px; text-align: right; }
.event-bar { width: 4px; height: 38px; border-radius: 5px; background: var(--event-color); }
.event-copy strong { display: block; font-size: 12px; }
.event-copy span { color: var(--muted); font-size: 10px; }
.avatar-stack { display: flex; }
.avatar-stack .tiny-avatar { margin-left: -5px; }
.tiny-avatar { width: 23px; height: 23px; border: 2px solid white; border-radius: 50%; display: grid; place-items: center; color: white; font-size: 8px; font-weight: 700; }

.trip-card { overflow: hidden; padding: 0; }
.trip-cover { height: 105px; position: relative; background: linear-gradient(135deg, #d3bca7, #ead9c2); overflow: hidden; }
.trip-cover::before { content: ""; position: absolute; inset: 22px -20px -30px; background: linear-gradient(160deg, transparent 49%, rgba(255,255,255,.35) 50%), linear-gradient(25deg, #a07c60 0 45%, transparent 46%); opacity: .7; }
.trip-cover::after { content: "✈"; position: absolute; right: 21px; top: 16px; color: rgba(255,255,255,.88); font-size: 22px; transform: rotate(-14deg); }
.trip-body { padding: 18px; }
.trip-body h3 { margin: 0 0 5px; font: 700 16px "Manrope"; }
.trip-body p { color: var(--muted); font-size: 11px; margin: 0; }
.trip-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.countdown { color: var(--accent); font-size: 10px; font-weight: 700; background: var(--accent-soft); border-radius: 10px; padding: 6px 9px; }

.budget-total { background: linear-gradient(145deg, #fffaf4, #eee0d3); }
.budget-figure { font: 700 35px "Manrope"; letter-spacing: -1.5px; }
.budget-figure small { font: 500 13px "DM Sans"; color: var(--muted); letter-spacing: 0; }
.budget-bars { display: flex; flex-direction: column; gap: 17px; }
.budget-row-head { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 7px; }
.budget-row-head span:last-child { color: var(--muted); }

.chat-card { padding: 0; overflow: hidden; }
.chat-scroll { min-height: 420px; max-height: 540px; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.message { display: flex; gap: 10px; align-items: flex-end; max-width: 78%; }
.message.mine { margin-left: auto; flex-direction: row-reverse; }
.message-bubble { border-radius: 18px 18px 18px 5px; background: #eee5dc; padding: 12px 15px; font-size: 12px; line-height: 1.5; }
.message.mine .message-bubble { background: var(--accent); color: white; border-radius: 18px 18px 5px 18px; }
.message-time { display: block; margin-top: 4px; font-size: 8px; opacity: .58; }
.action-receipt { border-radius: 14px; border: 1px solid rgba(255,255,255,.3); padding: 8px 10px; margin-top: 8px; background: rgba(255,255,255,.12); font-size: 9px; }
.chat-composer { display: flex; gap: 8px; padding: 13px; border-top: 1px solid var(--line); background: rgba(248,248,244,.8); }
.mention-row { display: flex; align-items: center; gap: 6px; padding: 10px 14px 0; border-top: 1px solid var(--line); }
.mention-row > span { color: var(--muted); font-size: 8px; margin-right: 3px; }
.mention-row button { border: 1px solid var(--line); border-radius: 10px; background: #f4f0ea; color: #6e675e; padding: 6px 8px; font-size: 8px; cursor: pointer; }

.memory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.memory-card { min-height: 135px; display: flex; flex-direction: column; }
.memory-card .mini-icon { margin-bottom: auto; }
.memory-card h3 { font: 700 13px "Manrope"; margin: 12px 0 4px; }
.memory-card p { color: var(--muted); font-size: 10px; margin: 0; }
.memory-card button { align-self: flex-start; }

.profile-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 14px; }
.profile-card { text-align: center; cursor: pointer; position: relative; }
.profile-card.selected { box-shadow: 0 0 0 2px var(--accent), var(--shadow-soft); }
.large-avatar { width: 63px; height: 63px; margin: 0 auto 12px; font-size: 20px; }
.profile-card h3 { margin: 0 0 3px; font: 700 14px "Manrope"; }
.profile-card p { margin: 0; color: var(--muted); font-size: 10px; }
.task-avatars { padding-right: 3px; }
.task-list-row .row-copy span { white-space: normal; }
.preference-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.preference-row:last-child { border: 0; }
.preference-row strong { display: block; font-size: 12px; }
.preference-row span { color: var(--muted); font-size: 10px; }
.notification-permission { margin-top: 15px; gap: 8px; }
.notification-permission svg { width: 15px; }
.voice-home-card > p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.integration-status { display: flex; align-items: center; gap: 10px; padding: 11px; margin-top: 13px; border-radius: 14px; background: #eee1d6; }
.integration-status > span:first-child { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: rgba(255,255,255,.55); }
.integration-status svg { width: 15px; }
.integration-status > span:last-child { display: flex; flex-direction: column; }
.integration-status strong { font-size: 10px; }
.integration-status small { color: var(--muted); font-size: 8px; }

.ai-dock { position: fixed; left: calc(var(--sidebar) + 50%); right: auto; transform: translateX(-50%); bottom: 24px; width: min(760px, calc(100vw - var(--sidebar) - 80px)); z-index: 30; transition: width .4s var(--spring), left .4s var(--spring), right .4s var(--spring), transform .4s var(--spring), bottom .4s var(--spring); }
.ai-glow { position: absolute; inset: 8px 12%; background: rgba(137,113,91,.12); filter: blur(25px); border-radius: 50%; }
.ai-dock-inner { min-height: 79px; position: relative; display: flex; align-items: center; gap: 13px; padding: 11px 12px 11px 14px; border: 1px solid #e7e2da; border-radius: 24px; background: rgba(255,255,255,.96); backdrop-filter: blur(28px) saturate(120%); box-shadow: 0 18px 48px rgba(55,49,42,.12); transition: min-height .35s var(--spring), padding .35s var(--spring), border-radius .35s var(--spring); }
.ai-dock.is-compact { left: auto; right: 24px; transform: none; width: 184px; cursor: text; }
.ai-dock.is-compact .ai-dock-inner { min-height: 54px; padding: 7px 11px; border-radius: 18px; box-shadow: 0 12px 32px rgba(55,49,42,.1); }
.ai-dock.is-compact .assistant-orb { width: 38px; height: 38px; border-radius: 12px; }
.ai-dock.is-compact .composer-meta, .ai-dock.is-compact .voice-button, .ai-dock.is-compact .send-button, .ai-dock.is-compact .quick-prompts { display: none; }
.ai-dock.is-compact .composer-wrap textarea { height: 24px !important; max-height: 24px; overflow: hidden; pointer-events: none; }
.assistant-orb { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, #f0ded0, #d2aa8d); color: var(--accent-deep); position: relative; overflow: hidden; }
.assistant-orb::after { content: ""; position: absolute; width: 30px; height: 55px; background: rgba(255,255,255,.34); transform: rotate(35deg); left: -10px; top: -12px; }
.assistant-orb span { position: relative; z-index: 1; }
.assistant-orb.small { width: 40px; height: 40px; border-radius: 14px; }
.composer-wrap { flex: 1; min-width: 0; }
.composer-wrap textarea { width: 100%; resize: none; border: 0; outline: 0; background: transparent; min-height: 24px; max-height: 92px; padding: 3px 0; color: var(--ink); line-height: 1.45; }
.composer-wrap textarea::placeholder { color: #87948c; }
.composer-meta { display: flex; justify-content: space-between; color: #98a29c; font-size: 9px; margin-top: 4px; }
kbd { border: 1px solid var(--line); border-radius: 4px; background: #f3f3ef; padding: 1px 4px; font: inherit; }
.send-button, .voice-button { width: 42px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 14px; cursor: pointer; display: grid; place-items: center; }
.send-button { background: var(--accent); color: white; font-size: 19px; transition: .2s ease; }
.send-button:hover { transform: translateY(-2px); background: var(--accent-deep); }
.voice-button { background: transparent; color: var(--muted); }
.voice-button svg { width: 18px; }
.voice-button.listening { background: #f4e5df; color: var(--danger); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { transform: scale(.92); } }
.quick-prompts { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.quick-prompts button { border: 1px solid rgba(76,99,87,.1); background: rgba(255,255,252,.72); color: #6f7f76; backdrop-filter: blur(12px); border-radius: 13px; padding: 7px 11px; font-size: 9px; cursor: pointer; box-shadow: 0 5px 15px rgba(43,65,54,.04); }

.assistant-panel { position: fixed; width: min(400px, calc(100vw - 24px)); right: 20px; bottom: 90px; z-index: 50; border: 1px solid var(--line); border-radius: 26px; padding: 20px; background: rgba(255,255,255,.97); backdrop-filter: blur(30px) saturate(120%); box-shadow: 0 24px 70px rgba(54,49,43,.14); opacity: 0; transform: translateY(28px) scale(.95); pointer-events: none; transition: .5s var(--spring); }
.assistant-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.assistant-panel-head { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 11px; }
.assistant-panel-head h2 { font: 700 16px "Manrope"; margin: 0; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 1.3px; font-size: 9px; font-weight: 700; margin: 0 0 4px; }
.close-button { width: 34px; height: 34px; background: transparent; font-size: 21px; }
.result-summary { margin: 18px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.result-action { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 15px; background: #f0e5da; }
.result-action-icon { width: 34px; height: 34px; border-radius: 11px; background: white; display: grid; place-items: center; color: var(--accent); }
.result-action strong { display: block; font-size: 11px; }
.result-action span { color: var(--muted); font-size: 9px; }
.follow-up { display: flex; gap: 7px; margin-top: 12px; }
.follow-up button { flex: 1; }

.privacy-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 72% 12%, #ead9c8, transparent 33%), radial-gradient(circle at 15% 88%, #e8cbb4, transparent 30%), #f4eee5; transition: opacity .4s ease, visibility .4s; }
.privacy-gate.hidden { opacity: 0; visibility: hidden; }
.privacy-card { width: min(430px,100%); padding: 40px; border-radius: 32px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,252,.84); backdrop-filter: blur(24px); box-shadow: var(--shadow); }
.privacy-card h1 { margin: 0 0 10px; font: 700 32px "Manrope"; letter-spacing: -1px; }
.privacy-copy { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 22px; }
.member-choices { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 20px; }
.member-choice { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.64); padding: 12px 7px; cursor: pointer; text-align: center; }
.member-choice .avatar { margin: 0 auto 7px; }
.member-choice > span:nth-child(2) { display: block; font-size: 10px; font-weight: 650; }
.member-choice small { display: block; color: var(--muted); font-size: 8px; margin-top: 2px; }
.member-choice.selected { border-color: var(--accent); background: var(--accent-soft); }
.pin-wrap { margin-bottom: 17px; }
.pin-wrap label { display: block; font-size: 10px; font-weight: 600; margin-bottom: 6px; }
.pin-wrap input { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 12px; text-align: center; letter-spacing: 8px; background: rgba(255,255,255,.7); }
.pin-wrap small { display: block; color: var(--muted); font-size: 9px; margin-top: 6px; text-align: center; }
.gate-message { min-height: 14px; text-align: center; color: var(--danger); font-size: 10px; margin: 10px 0 0; }

.popover { position: fixed; z-index: 100; width: 275px; padding: 10px; border-radius: 18px; background: rgba(255,255,252,.96); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(22px); opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease; }
.popover.open { opacity: 1; transform: none; pointer-events: auto; }
.profile-popover { left: 17px; bottom: 77px; }
.notification-popover { right: 35px; top: 84px; }
.popover-title { padding: 8px 10px 10px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.popover-item { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 12px; padding: 9px; background: transparent; text-align: left; cursor: pointer; }
.popover-item:hover { background: #f2e8de; }
.popover-item .profile-copy span { color: var(--muted); font-size: 9px; }
.notification-item { padding: 11px 9px; border-bottom: 1px solid var(--line); font-size: 10px; line-height: 1.45; }
.notification-item:last-child { border: 0; }
.notification-item strong { display: block; font-size: 11px; margin-bottom: 2px; }
.notification-item span { color: var(--muted); }

.search-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(61,43,32,.28); backdrop-filter: blur(7px); display: grid; place-items: start center; padding-top: 14vh; opacity: 0; visibility: hidden; transition: .25s ease; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-dialog { width: min(600px,calc(100% - 28px)); border-radius: 23px; overflow: hidden; background: #fffaf3; box-shadow: 0 30px 90px rgba(61,43,32,.24); }
.search-input-row { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 10px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.search-input-row input { border: 0; outline: 0; background: transparent; font-size: 16px; }
.search-input-row button { border: 0; border-radius: 7px; background: #eef1ed; color: var(--muted); padding: 5px 7px; font-size: 9px; }
.search-results { max-height: 380px; overflow-y: auto; padding: 10px; }
.search-result { display: flex; gap: 11px; padding: 12px; border-radius: 14px; cursor: pointer; }
.search-result:hover { background: #f3e9df; }
.search-result strong { display: block; font-size: 11px; }
.search-result span { color: var(--muted); font-size: 9px; }
.search-result .mini-icon { margin: 0; flex: 0 0 auto; }

.toast-region { position: fixed; z-index: 300; top: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; }
.toast { border-radius: 15px; background: #574033; color: white; box-shadow: var(--shadow); padding: 11px 16px; font-size: 11px; animation: toastIn .3s ease; }

.install-card { background: linear-gradient(145deg, #f4e6d8, #e6cfbb); border-color: rgba(168,111,77,.12); }
.install-card .install-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: white; background: var(--accent); margin-bottom: 15px; }
.install-card .install-icon svg { width: 21px; }
.install-card h3 { margin: 0 0 6px; }
.install-card p { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0 0 14px; }

.cloud-card > p { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0 0 16px; }
.cloud-actions { display: flex; align-items: center; gap: 8px; }
.sync-status { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: var(--muted); background: #faf9f6; font-size: 8px; font-weight: 700; white-space: nowrap; }
.sync-status i { width: 7px; height: 7px; border-radius: 50%; background: #aaa39a; }
.sync-status.connected i { background: #6f9a7e; box-shadow: 0 0 0 4px rgba(111,154,126,.12); }
.sync-status.syncing i { background: #c49459; animation: pulse 1.4s infinite; }
.sync-status.offline i, .sync-status.error i { background: #b87969; }
.cloud-dialog { position: fixed; inset: 0; z-index: 420; display: grid; place-items: center; padding: 18px; background: rgba(37,33,29,.28); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: .25s ease; }
.cloud-dialog.open { opacity: 1; visibility: visible; }
.cloud-dialog-card { width: min(470px,100%); max-height: min(720px,calc(100vh - 36px)); overflow-y: auto; border: 1px solid var(--line); border-radius: 30px; padding: 27px; background: rgba(255,255,255,.98); box-shadow: 0 30px 90px rgba(48,42,36,.2); }
.cloud-dialog-head { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; margin-bottom: 22px; }
.cloud-dialog-head .sync-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--accent-deep); background: var(--accent-soft); font-size: 18px; }
.cloud-dialog-head h2 { margin: 0; font-size: 19px; }
.cloud-dialog-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.cloud-form { display: flex; flex-direction: column; gap: 12px; }
.cloud-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 700; }
.cloud-form input, .cloud-form select { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; outline: 0; background: #fbfaf8; color: var(--ink); }
.cloud-form input:focus, .cloud-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cloud-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 3px; }
.cloud-message { min-height: 17px; margin: 2px 0 0; color: #a15f52; font-size: 9px; line-height: 1.45; }
.cloud-connected { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #faf9f6; }
.cloud-connected strong, .cloud-connected span { display: block; }
.cloud-connected span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.invite-code { margin: 15px 0; border: 1px dashed #d5cabf; border-radius: 15px; padding: 13px; text-align: center; background: white; }
.invite-code span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }
.invite-code strong { margin-top: 5px; font-size: 20px; letter-spacing: 3px; }
.cloud-setup-note { border-radius: 17px; padding: 15px; background: #f4eee7; color: var(--muted); font-size: 10px; line-height: 1.55; }
.cloud-setup-note code { color: var(--accent-deep); font-weight: 700; }

.wellbeing-strip { padding: 15px 17px; }
.wellbeing-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.wellbeing-main, .sleep-glance { border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 10px; text-align: left; }
.wellbeing-icon { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #8d674d; background: #ead8ca; }
.wellbeing-icon svg { width: 17px; }
.wellbeing-main span:last-child, .sleep-glance span:nth-child(2) { display: flex; flex-direction: column; }
.wellbeing-main strong, .sleep-glance strong { font-size: 11px; }
.wellbeing-main small, .sleep-glance small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.water-mini-track { height: 6px; border-radius: 8px; background: #eadfd5; overflow: hidden; }
.water-mini-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#c09273,#a76e4c); transition: width .55s var(--spring); }
.water-add { width: 31px; height: 31px; border: 0; border-radius: 11px; background: var(--accent); color: white; font-size: 18px; cursor: pointer; }
.wellbeing-divider { height: 1px; background: var(--line); margin: 13px 0; }
.sleep-glance { width: 100%; }
.sleep-glance > span:first-child { width: 31px; color: var(--accent); }
.sleep-glance svg { width: 18px; }
.sleep-glance b { margin-left: auto; color: #9b8b7e; font-size: 20px; font-weight: 400; }

.meals-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 20px; }
.meal-hero { min-height: 190px; padding: 28px; display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; background: linear-gradient(135deg, rgba(255,250,243,.97), rgba(232,214,197,.88)); overflow: hidden; position: relative; }
.meal-hero::after { content:""; position:absolute; width:220px; height:220px; right:-110px; top:-120px; border:1px solid rgba(159,105,74,.12); border-radius:50%; box-shadow:0 0 0 35px rgba(159,105,74,.035),0 0 0 70px rgba(159,105,74,.025); }
.meal-hero-copy { position: relative; z-index: 1; max-width: 560px; }
.meal-hero h2 { font-size: 25px; letter-spacing: -.7px; margin: 0 0 8px; }
.meal-hero p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0; max-width: 520px; }
.meal-source { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 18px; color: var(--muted); font-size: 9px; }
.meal-source svg { width: 15px; color: var(--accent); }
.meal-source strong { color: var(--ink); font-size: 10px; }
.meal-refresh { position: relative; z-index: 1; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.meal-refresh svg { width: 15px; }
.plan-health { padding: 6px 9px; border-radius: 12px; background: #ead8c6; color: #81583f; font-size: 9px; font-weight: 700; }
.meal-week { display: flex; flex-direction: column; }
.meal-row { display: grid; grid-template-columns: 22px 38px 1fr auto; gap: 12px; min-height: 62px; align-items: center; border-bottom: 1px solid var(--line); transition: opacity .3s ease, transform .4s var(--spring); }
.meal-row:last-child { border: 0; }
.meal-row.is-done { opacity: .58; }
.meal-day { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.meal-copy { display: flex; flex-direction: column; min-width: 0; }
.meal-copy strong { font-size: 12px; }
.meal-copy span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.repeat-pill { display: flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 10px; background: #eee1d5; color: #8b644b; font-size: 8px; font-weight: 700; }
.repeat-pill svg { width: 11px; }
.meal-balance { color: #cfaa87; font-size: 9px; padding: 0 8px; }
.water-card { background: linear-gradient(150deg,rgba(255,250,244,.96),rgba(233,219,207,.92)); }
.water-orb { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; background: #e6d1c0; color: var(--accent); }
.water-orb svg { width: 18px; }
.water-number { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 16px; }
.water-number strong { font-size: 36px; letter-spacing: -1.5px; }
.water-number span { color: var(--muted); font-size: 10px; }
.water-dots { display: grid; grid-template-columns: repeat(8,1fr); gap: 5px; margin-bottom: 15px; }
.water-dots button { height: 37px; border: 0; background: transparent; padding: 0; cursor: pointer; }
.water-dots span { display: block; height: 100%; border-radius: 8px 8px 11px 11px; background: #e9ddd3; position: relative; overflow: hidden; }
.water-dots button.filled span { background: linear-gradient(180deg,#d5ad8e,#ae7958); animation: waterFill .48s var(--spring); }
@keyframes waterFill { from { transform: scaleY(.25); transform-origin: bottom; opacity:.3; } }
.mood-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.mood-options button { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.35); padding: 9px 3px 7px; cursor: pointer; }
.mood-options button.selected { background: var(--accent-soft); border-color: rgba(168,111,77,.3); box-shadow: 0 5px 12px rgba(87,61,43,.08); }
.mood-options b { display: block; font-size: 17px; line-height: 1; font-weight: 500; }
.mood-options span { display: block; font-size: 7px; margin-top: 6px; color: var(--muted); white-space: nowrap; }
.mood-response { border-radius: 15px; background: #eee1d6; padding: 12px; margin-top: 12px; }
.mood-response strong, .mood-response span { display: block; }
.mood-response strong { font-size: 10px; }
.mood-response span { color: var(--muted); font-size: 9px; line-height: 1.45; margin-top: 4px; }
.breath-button { border: 0; background: transparent; color: var(--accent-deep); padding: 8px 0 0; font-size: 9px; font-weight: 700; cursor: pointer; }
.sleep-time { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.sleep-time div { display: grid; grid-template-columns: 44px 1fr; align-items: center; }
.sleep-time span { font-size: 15px; font-weight: 700; }
.sleep-time strong { font-size: 10px; }
.sleep-time b { color: var(--muted); font-size: 8px; }
.sleep-note { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.breathing-wrap { text-align:center; padding: 20px 0 7px; }
.breathing-orb { width: 92px; height: 92px; border-radius:50%; display:grid; place-items:center; margin:0 auto 18px; color:white; background:radial-gradient(circle at 35% 30%,#d4ac8d,#9a6547); box-shadow:0 12px 35px rgba(133,85,57,.25); animation:breathe 10s ease-in-out infinite; }
.breathing-orb span { font-size:11px; }
@keyframes breathe { 0%,100% { transform:scale(.72); opacity:.82; } 42% { transform:scale(1); opacity:1; } 58% { transform:scale(1); opacity:1; } }
.breathing-wrap p { color:var(--muted); font-size:10px; margin:0; }

.calendar-shell { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 18px; align-items: start; }
.calendar-rail { display: flex; flex-direction: column; gap: 13px; padding: 13px; border-radius: 32px; background: #f8f6f2; border: 1px solid #ece8e1; box-shadow: 0 15px 38px rgba(50,45,38,.035); }
.rail-panel { padding: 17px; border-radius: 23px; background: #ffffff; border: 1px solid #ece9e3; }
.rail-profile { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 15px; border-bottom: 1px solid var(--line); }
.rail-profile > div { display: flex; flex-direction: column; }
.rail-profile strong { font-size: 11px; }
.rail-profile span { color: var(--muted); font-size: 8px; margin-top: 2px; }
.mini-month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mini-month-head strong { font-size: 12px; }
.mini-month-head span { color: var(--muted); font-size: 11px; }
.mini-month-weekdays, .mini-month-grid { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; }
.mini-month-weekdays { margin-bottom: 4px; }
.mini-month-weekdays span { color: #a09a92; font-size: 7px; font-weight: 700; }
.mini-month-grid { gap: 2px; }
.mini-month-grid button, .mini-month-grid .blank { width: 26px; height: 26px; margin: auto; border: 0; border-radius: 9px; background: transparent; color: #69645d; font-size: 8px; cursor: pointer; }
.mini-month-grid button:hover { background: #eee9e1; }
.mini-month-grid button.selected { background: color-mix(in srgb, var(--member-accent) 16%, white); color: #403d39; font-weight: 700; }
.mini-month-grid button.today { background: var(--member-accent); color: white; font-weight: 700; box-shadow: 0 5px 12px color-mix(in srgb, var(--member-accent) 28%, transparent); }
.rail-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.rail-title > div { display: flex; flex-direction: column; }
.rail-title strong { font-size: 11px; }
.rail-title span { color: var(--muted); font-size: 8px; margin-top: 2px; }
.rail-title button { border: 0; background: transparent; color: var(--muted); cursor: pointer; letter-spacing: 1px; }
.calendar-rail .list-row { gap: 8px; padding: 9px 0; }
.calendar-rail .check { width: 18px; height: 18px; border-radius: 6px; }
.calendar-rail .row-copy strong { font-size: 9px; }
.calendar-rail .row-copy span { font-size: 7px; }
.calendar-rail .tag { display: none; }
.calendar-rail .tiny-avatar { width: 19px; height: 19px; font-size: 7px; }
.rail-empty { color: var(--muted); font-size: 9px; margin: 12px 0 3px; }
.calendar-board { padding: 28px; overflow: hidden; min-width: 0; box-shadow: 0 14px 42px rgba(48,44,39,.045); }
.calendar-board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.calendar-board-head h2 { margin: 0; font-size: 24px; letter-spacing: -.7px; }
.calendar-board-actions { display: flex; align-items: center; gap: 15px; }
.profile-legend { display: flex; gap: 10px; }
.profile-legend span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }
.profile-legend i { width: 7px; height: 7px; border-radius: 50%; }
.calendar-scroll { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #d8d1c8 transparent; }
.calendar-week-head { display: grid; grid-template-columns: 52px repeat(7,minmax(104px,1fr)); border-bottom: 1px solid var(--line); }
.calendar-week-head button { height: 58px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.calendar-week-head button span { font-size: 8px; text-transform: uppercase; letter-spacing: .6px; }
.calendar-week-head button strong { width: 27px; height: 27px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; }
.calendar-week-head button.today strong { color: white; background: var(--member-accent); box-shadow: 0 5px 13px color-mix(in srgb, var(--member-accent) 25%, transparent); }
.calendar-week-head, .calendar-canvas { min-width: 800px; }
.calendar-canvas { display: grid; grid-template-columns: 52px repeat(7,minmax(104px,1fr)); height: 520px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 103px, rgba(99,91,80,.075) 104px); }
.calendar-time-rail { display: flex; flex-direction: column; justify-content: space-between; padding: 4px 8px 5px 0; }
.calendar-time-rail span { color: #a39c93; font-size: 7px; text-align: right; transform: translateY(-4px); }
.calendar-day-column { position: relative; border-left: 1px solid rgba(99,91,80,.07); }
.calendar-day-column.today { background: color-mix(in srgb, var(--member-accent) 3.5%, transparent); }
.calendar-event-block { position: absolute; left: 6px; right: 6px; min-height: 72px; border: 1px solid rgba(255,255,255,.7); border-radius: 17px; padding: 10px; color: #373430; box-shadow: 0 7px 16px rgba(54,48,40,.045); overflow: hidden; }

.trip-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trip-title-row h3 { margin: 0; }
.trip-season { flex: 0 0 auto; border: 1px solid #e3ddd5; border-radius: 999px; padding: 6px 9px; background: #f7f4ef; color: #71665c; font-size: 9px; font-weight: 650; }
.calendar-event-block::before { content:""; position:absolute; inset:0; border:1px solid rgba(255,255,255,.55); border-radius:inherit; pointer-events:none; }
.calendar-event-block strong, .calendar-event-block small, .calendar-event-time { display: block; position: relative; }
.calendar-event-time { font-size: 7px; opacity: .7; margin-bottom: 4px; }
.calendar-event-block strong { font-size: 9px; line-height: 1.22; }
.calendar-event-block small { font-size: 7px; opacity: .62; margin-top: 3px; }
.calendar-event-block .avatar-stack { position: relative; margin-top: 8px; padding-left: 4px; }
.calendar-event-block .tiny-avatar { width: 19px; height: 19px; font-size: 6px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }

@media (max-width: 980px) {
  :root { --sidebar: 84px; }
  .sidebar { width: 84px; padding-inline: 14px; }
  .brand-row > div:last-child, .nav-item > span:not(.nav-count), .quiet-card div, .profile-copy, .profile-button > span:last-child { display: none; }
  .brand-row { padding: 0 9px; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item.active::before { left: -14px; }
  .nav-count { position: absolute; top: 2px; right: 2px; }
  .quiet-card { grid-template-columns: 1fr; justify-items: center; }
  .quiet-card .switch { display: none; }
  .profile-button { justify-content: center; }
  .ai-dock { width: min(720px,calc(100vw - var(--sidebar) - 45px)); }
}

@media (max-width: 1180px) {
  .calendar-shell { grid-template-columns: 1fr; }
  .calendar-rail { display: grid; grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 1080px) {
  .meals-layout { grid-template-columns: 1fr; }
  .meals-layout > aside { display: grid; grid-template-columns: repeat(3,1fr); align-items: start; }
}

@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  .sidebar { display: none; }
  .app-shell { display: block; }
  .main-content { padding: 16px 16px 190px; }
  .mobile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
  .mobile-header .brand-row { padding: 0; }
  .topbar { min-height: 55px; margin-bottom: 17px; }
  .page-title { font-size: 27px; letter-spacing: -.9px; }
  .page-subtitle { display: none; }
  .dashboard-grid, .content-grid { grid-template-columns: 1fr; }
  .calendar-board { order: -1; padding: 20px 16px; }
  .calendar-rail { display: flex; }
  .calendar-board-head { align-items: flex-start; flex-direction: column; }
  .calendar-board-actions { width: 100%; justify-content: space-between; }
  .profile-legend { display: none; }
  .calendar-board-head h2 { font-size: 20px; }
  .calendar-event-block { min-height: 68px; }
  .meals-layout > aside { display: flex; align-items: stretch; }
  .meal-hero { min-height: 0; padding: 22px; align-items: flex-start; flex-direction: column; gap: 18px; }
  .meal-hero h2 { font-size: 21px; }
  .meal-refresh { width: 100%; justify-content: center; }
  .meal-row { grid-template-columns: 21px 34px 1fr auto; gap: 9px; }
  .repeat-pill { font-size: 0; }
  .repeat-pill svg { width: 12px; }
  .memory-grid { grid-template-columns: repeat(2,1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .week-strip { gap: 4px; }
  .day-pill { padding: 9px 2px; border-radius: 12px; }
  .ai-dock { bottom: 72px; left: 50%; width: calc(100vw - 20px); }
  .ai-dock.is-compact { left: auto; right: 10px; bottom: 72px; width: 168px; transform: none; }
  .ai-dock-inner { border-radius: 21px; min-height: 68px; padding: 9px 9px 9px 12px; gap: 9px; }
  .assistant-orb { width: 39px; height: 39px; border-radius: 13px; }
  .voice-button { display: none; }
  .composer-meta, .quick-prompts { display: none; }
  .mobile-nav { position: fixed; z-index: 35; display: grid; grid-template-columns: repeat(5,1fr); bottom: 0; inset-inline: 0; height: 61px; background: rgba(255,255,252,.94); border-top: 1px solid var(--line); backdrop-filter: blur(22px); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav .nav-item { min-height: 56px; border-radius: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; font-size: 8px; }
  .mobile-nav .nav-item span { display: block; }
  .mobile-nav .nav-item svg { width: 17px; height: 17px; }
  .mobile-nav .nav-item.active { box-shadow: none; background: transparent; color: var(--accent); }
  .mobile-nav .nav-item.active::before { width: 20px; height: 2px; top: 0; left: 50%; transform: translateX(-50%); }
  .assistant-panel { right: 10px; bottom: 136px; }
  .notification-popover { right: 16px; top: 135px; }
  .weather { display: none; }
  .day-card { padding: 20px; }
  .timeline::before { left: 59px; }
  .timeline-item { grid-template-columns: 48px 1fr; gap: 23px; }
  .timeline-empty { padding-left: 72px; }
}

@media (max-width: 420px) {
  .home-grid { grid-template-columns: 1fr 1fr; }
  .mini-area { padding: 14px; min-height: 116px; }
  .memory-grid { grid-template-columns: 1fr; }
  .privacy-card { padding: 28px 23px; }
  .member-choices { gap: 6px; }
  .member-choice { padding-inline: 3px; }
  .event-row { grid-template-columns: 48px 4px 1fr; }
  .event-row .avatar-stack { display: none; }
}

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