:root {
  --ink: #161820;
  --ink-2: #20232d;
  --bone: #f6f0e5;
  --bone-2: #ede5d8;
  --coral: #f06b52;
  --mango: #f4b447;
  --violet: #8d7cf4;
  --mint: #8ac8af;
  --warm-gray: #a99f92;
  --line: rgba(22, 24, 32, .13);
  --muted: #716b64;
  --white: #fffdf9;
  --shadow: 0 18px 50px rgba(33, 27, 22, .11);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bone); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--bone); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-shell { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; min-height: 76px; padding: 0 clamp(18px, 4vw, 66px); border-bottom: 1px solid rgba(22,24,32,.1); background: rgba(246,240,229,.94); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 10px; }
.brand-name { font-size: 21px; font-weight: 850; letter-spacing: -.075em; }
.brand-name span { color: var(--coral); }
.life-grid-mark { width: 31px; height: 31px; display: block; }
.life-grid-mark.small { width: 22px; height: 22px; }
.tile { stroke: var(--bone); stroke-width: 2.5; stroke-linejoin: round; }
.tile.coral { fill: var(--coral); }
.tile.mango { fill: var(--mango); }
.tile.mint { fill: var(--mint); }
.tile.violet { fill: var(--violet); }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 3px; flex: 1; }
.nav-link { padding: 9px 11px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; transition: .18s ease; }
.nav-link:hover { color: var(--ink); background: rgba(22,24,32,.06); }
.nav-link.active { color: var(--white); background: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.quick-add { min-height: 35px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 999px; color: var(--white); background: var(--ink); font-size: 11px; font-weight: 800; }
.quick-add:hover { color: var(--ink); background: transparent; }
.profile-wrap { position: relative; }
.profile-chip { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 3px 8px 3px 4px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.36); font-size: 11px; font-weight: 750; }
.profile-chip:hover { border-color: var(--ink); }
.profile-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--white); background: var(--violet); font-size: 11px; font-weight: 850; }
.profile-avatar.large { width: 36px; height: 36px; }
.profile-arrow { margin-left: 2px; color: var(--muted); font-size: 14px; }
.profile-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 210px; padding: 9px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: var(--shadow); }
.profile-menu-heading { display: flex; align-items: center; gap: 9px; padding: 9px; margin-bottom: 5px; border-bottom: 1px solid var(--line); }
.profile-menu-heading strong, .profile-menu-heading small { display: block; }
.profile-menu-heading strong { font-size: 11px; }
.profile-menu-heading small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.profile-menu button { width: 100%; padding: 9px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 10px; text-align: left; }
.profile-menu button:hover { color: var(--ink); background: var(--bone); }
.mobile-menu { display: none; border: 0; color: var(--ink); background: transparent; font-size: 22px; }

.page-content { max-width: 1400px; margin: 0 auto; padding: 52px clamp(18px, 4vw, 66px) 78px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 33px; }
.eyebrow { margin: 0 0 10px; color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(35px, 5vw, 64px); letter-spacing: -.075em; line-height: .95; }
h2 { margin-bottom: 7px; font-size: 21px; letter-spacing: -.055em; }
h3 { margin-bottom: 6px; font-size: 14px; letter-spacing: -.03em; }
.lede { max-width: 640px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.button-primary, .button-dark, .button-outline, .button-quiet { min-height: 39px; padding: 0 14px; border-radius: 10px; font-size: 10px; font-weight: 850; }
.button-primary { border: 1px solid var(--ink); color: var(--white); background: var(--ink); }
.button-primary:hover { color: var(--ink); background: transparent; }
.button-dark { border: 1px solid var(--ink); color: var(--ink); background: var(--mango); }
.button-dark:hover { background: var(--coral); }
.button-outline { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.button-outline:hover { border-color: var(--ink); background: rgba(255,255,255,.4); }
.button-quiet { min-height: 30px; padding: 0 6px; border: 0; color: var(--muted); background: transparent; }
.button-quiet:hover { color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); min-height: 450px; overflow: hidden; border-radius: var(--radius-xl); color: var(--bone); background: var(--ink); box-shadow: var(--shadow); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 68px); }
.hero .eyebrow { color: var(--mango); }
.hero h1 { max-width: 590px; color: var(--bone); font-size: clamp(42px, 6.2vw, 78px); }
.hero h1 span { color: var(--coral); }
.hero .lede { max-width: 480px; color: rgba(246,240,229,.66); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 29px; }
.hero .button-primary { border-color: var(--bone); color: var(--ink); background: var(--bone); }
.hero .button-primary:hover { color: var(--bone); background: transparent; }
.hero .button-outline { border-color: rgba(246,240,229,.28); color: var(--bone); }
.hero .button-outline:hover { border-color: var(--bone); background: rgba(246,240,229,.08); }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 33px; color: rgba(246,240,229,.55); font-size: 10px; }
.hero-note b { color: var(--mint); font-weight: 850; }
.hero-visual { position: relative; display: grid; place-items: center; overflow: hidden; padding: 32px; background: linear-gradient(145deg, #202430, #161820); }
.hero-visual::before, .hero-visual::after { position: absolute; width: 340px; height: 340px; border: 1px solid rgba(246,240,229,.12); border-radius: 50%; content: ""; }
.hero-visual::before { transform: translate(20%, -18%); }
.hero-visual::after { width: 230px; height: 230px; transform: translate(-20%, 25%); border-color: rgba(240,107,82,.38); }
.grid-art { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; width: min(330px, 80%); aspect-ratio: 1; transform: rotate(-7deg); }
.grid-art-tile { position: relative; border-radius: 25px; box-shadow: 0 22px 30px rgba(0,0,0,.2); }
.grid-art-tile::after { position: absolute; right: 17%; bottom: 17%; width: 21%; height: 21%; border-radius: 9px; background: rgba(246,240,229,.72); content: ""; }
.grid-art-tile:nth-child(1) { border-radius: 42px 15px 15px 15px; background: var(--coral); }
.grid-art-tile:nth-child(2) { border-radius: 15px 42px 15px 15px; background: var(--mango); }
.grid-art-tile:nth-child(3) { border-radius: 15px 15px 15px 42px; background: var(--mint); }
.grid-art-tile:nth-child(4) { border-radius: 15px 15px 42px 15px; background: var(--violet); }
.visual-label { position: absolute; z-index: 2; right: 29px; bottom: 25px; color: rgba(246,240,229,.55); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.section { margin-top: 48px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.section-title h2 { margin-bottom: 0; }
.section-title p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature-card { min-height: 155px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.35); transition: .2s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow); }
.feature-card:nth-child(1) .feature-icon { background: var(--coral); }
.feature-card:nth-child(2) .feature-icon { background: var(--mango); }
.feature-card:nth-child(3) .feature-icon { background: var(--violet); }
.feature-card:nth-child(4) .feature-icon { background: var(--mint); }
.feature-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 17px; border-radius: 12px; color: var(--ink); font-size: 17px; font-weight: 900; }
.feature-card h3 { margin-bottom: 5px; }
.feature-card p { margin-bottom: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); gap: 18px; }
.home-grid + .home-grid { margin-top: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.38); box-shadow: 0 10px 30px rgba(33,27,22,.04); }
.panel-dark { border-color: var(--ink); color: var(--bone); background: var(--ink); }
.panel-padding { padding: 25px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.panel-title h2 { margin-bottom: 0; }
.panel-title small { color: var(--muted); font-size: 9px; }
.panel-dark .panel-title small { color: rgba(246,240,229,.55); }
.tag { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 999px; color: var(--ink); background: var(--bone-2); font-size: 9px; font-weight: 800; }
.tag.coral { background: var(--coral); }
.tag.mango { background: var(--mango); }
.tag.violet { background: var(--violet); }
.tag.mint { background: var(--mint); }
.tag.dark { color: var(--bone); background: rgba(246,240,229,.12); }
.daily-overview { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; }
.score-ring { position: relative; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--coral) 0 68%, var(--bone-2) 68% 100%); }
.score-ring::before { position: absolute; inset: 12px; border-radius: inherit; background: var(--white); content: ""; }
.score-ring-copy { position: relative; z-index: 1; text-align: center; }
.score-ring-copy strong { display: block; font-size: 37px; letter-spacing: -.08em; }
.score-ring-copy span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.daily-copy h3 { margin-bottom: 9px; font-size: 17px; }
.daily-copy p { margin-bottom: 17px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.mini-stat-row { display: flex; gap: 19px; }
.mini-stat strong { display: block; font-size: 17px; letter-spacing: -.05em; }
.mini-stat span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.goal-list { display: grid; gap: 7px; }
.goal-row { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 7px 9px; border-radius: 11px; background: rgba(22,24,32,.045); }
.goal-row:hover { background: rgba(240,107,82,.08); }
.goal-check { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 auto; border: 1px solid var(--warm-gray); border-radius: 8px; color: transparent; background: transparent; font-size: 12px; font-weight: 900; }
.goal-check.done { border-color: var(--coral); color: var(--white); background: var(--coral); }
.goal-row.is-done .goal-copy strong { color: var(--muted); text-decoration: line-through; }
.goal-copy { min-width: 0; }
.goal-copy strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.goal-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.goal-row .tag { margin-left: auto; flex: 0 0 auto; }

.week-chart { display: flex; align-items: end; justify-content: space-between; gap: 10px; height: 165px; padding-top: 13px; border-bottom: 1px solid var(--line); }
.week-col { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: end; gap: 8px; height: 100%; }
.week-bar { width: min(27px, 100%); min-height: 9px; border-radius: 999px 999px 4px 4px; background: var(--bone-2); }
.week-bar.highlight { background: var(--coral); }
.week-col span { color: var(--muted); font-size: 9px; }
.chart-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 13px; color: var(--muted); font-size: 9px; }
.chart-footer strong { color: var(--mint); }
.activity-list { display: grid; gap: 0; }
.activity-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-dot { width: 27px; height: 27px; border-radius: 9px; background: var(--bone-2); }
.activity-row:nth-child(1) .activity-dot { background: var(--mint); }
.activity-row:nth-child(2) .activity-dot { background: var(--violet); }
.activity-row:nth-child(3) .activity-dot { background: var(--mango); }
.activity-row strong { display: block; font-size: 10px; }
.activity-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.activity-time { color: var(--muted); font-size: 9px; }
.shared-strip { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 24px; overflow: hidden; background: var(--ink); }
.shared-strip h2 { color: var(--bone); font-size: 24px; }
.shared-strip p { max-width: 570px; margin-bottom: 0; color: rgba(246,240,229,.6); font-size: 11px; line-height: 1.5; }
.shared-strip .button-primary { margin-top: 16px; color: var(--ink); background: var(--mango); }
.shared-strip .button-primary:hover { color: var(--bone); border-color: var(--bone); background: transparent; }
.shared-tiles { position: relative; width: 150px; height: 110px; transform: rotate(7deg); }
.shared-tiles span { position: absolute; width: 68px; height: 50px; border-radius: 17px; }
.shared-tiles span:nth-child(1) { top: 0; left: 0; background: var(--coral); }
.shared-tiles span:nth-child(2) { top: 0; right: 0; background: var(--mango); }
.shared-tiles span:nth-child(3) { bottom: 0; left: 0; background: var(--mint); }
.shared-tiles span:nth-child(4) { right: 0; bottom: 0; background: var(--violet); }

.page-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 18px; }
.page-layout.full { grid-template-columns: 1fr; }
.page-layout + .page-layout { margin-top: 18px; }
.catalog { display: grid; gap: 9px; }
.catalog-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.34); }
.catalog-card:hover { border-color: var(--ink); background: var(--white); }
.catalog-card h3 { margin-bottom: 5px; }
.catalog-card p { margin-bottom: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.catalog-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.form-card { padding: 24px; }
.form-card h2 { margin-bottom: 18px; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field label { color: var(--muted); font-size: 10px; font-weight: 750; }
.field input, .field textarea, .field select, .chat-input { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: rgba(255,255,255,.5); font-size: 11px; }
.field textarea { min-height: 78px; padding-top: 10px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .chat-input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(141,124,244,.14); }
.form-submit { margin-top: 2px; }
.section-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.35); }
.section-tab { padding: 8px 11px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; }
.section-tab.active { color: var(--white); background: var(--ink); }

.shared-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shared-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.shared-card:nth-child(2n) { background: #eee9ff; }
.shared-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.shared-card h3 { font-size: 16px; }
.shared-card p { margin-bottom: 16px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.people { display: flex; align-items: center; margin: 14px 0; }
.person { display: grid; place-items: center; width: 29px; height: 29px; margin-right: -7px; border: 2px solid var(--white); border-radius: 50%; color: var(--white); background: var(--ink); font-size: 9px; font-weight: 850; }
.person:nth-child(2) { background: var(--coral); }
.person:nth-child(3) { background: var(--mint); color: var(--ink); }
.versus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.versus-box { padding: 10px; border-radius: 10px; background: rgba(22,24,32,.06); }
.versus-box span { display: block; color: var(--muted); font-size: 9px; }
.versus-box strong { display: block; margin-top: 5px; font-size: 17px; }
.versus-box.leader strong { color: var(--coral); }
.progress-line { height: 6px; overflow: hidden; margin-top: 8px; border-radius: 999px; background: var(--bone-2); }
.progress-line span { display: block; height: 100%; border-radius: inherit; background: var(--coral); }

.routine-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.routine-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.routine-card.mint-bg { background: #edf8f1; }
.routine-card.violet-bg { background: #eeeaff; }
.routine-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.routine-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; color: var(--ink); background: var(--mint); font-size: 18px; font-weight: 900; }
.routine-card.violet-bg .routine-icon { background: var(--violet); }
.routine-heading strong { display: block; font-size: 14px; }
.routine-heading span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.routine-steps { display: grid; gap: 7px; }
.routine-step { display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 9px; background: rgba(255,255,255,.55); }
.routine-step button { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--warm-gray); border-radius: 6px; color: transparent; background: transparent; font-size: 10px; font-weight: 900; }
.routine-step.done button { border-color: var(--mint); color: var(--ink); background: var(--mint); }
.routine-step span { color: var(--ink); font-size: 10px; }
.routine-step.done span { color: var(--muted); text-decoration: line-through; }

.finance-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.summary-box { padding: 18px; border-radius: 15px; background: var(--white); }
.summary-box:nth-child(1) { background: var(--ink); color: var(--bone); }
.summary-box:nth-child(2) { background: #fff3d8; }
.summary-box:nth-child(3) { background: #ffe3dc; }
.summary-box span { display: block; color: var(--muted); font-size: 9px; }
.summary-box:nth-child(1) span { color: rgba(246,240,229,.6); }
.summary-box strong { display: block; margin-top: 8px; font-size: 23px; letter-spacing: -.07em; }
.transaction-table { width: 100%; border-collapse: collapse; }
.transaction-table th { padding: 0 0 10px; color: var(--muted); font-size: 9px; font-weight: 800; text-align: left; }
.transaction-table td { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.transaction-table td:first-child { color: var(--ink); font-weight: 750; }
.transaction-table td:last-child { color: var(--ink); font-weight: 800; text-align: right; }
.transaction-table .income { color: #3d9d76; }
.transaction-table .expense { color: var(--coral); }
.save-card { padding: 19px; border-radius: 15px; color: var(--ink); background: var(--mango); }
.save-card-top { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.save-card strong { font-size: 25px; letter-spacing: -.07em; }
.save-card span { font-size: 9px; }
.save-card .progress-line { background: rgba(22,24,32,.15); }
.save-card .progress-line span { background: var(--ink); }
.allocation { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }
.allocation div { padding: 11px; border-radius: 10px; background: rgba(255,255,255,.34); }
.allocation strong { display: block; font-size: 12px; }
.allocation span { display: block; margin-top: 4px; color: rgba(22,24,32,.68); font-size: 9px; line-height: 1.4; }

.progress-summary { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.big-number { padding: 25px; border-radius: 18px; color: var(--bone); background: var(--ink); }
.big-number strong { display: block; margin: 12px 0 4px; color: var(--mango); font-size: 67px; letter-spacing: -.1em; line-height: .9; }
.big-number p { margin-bottom: 0; color: rgba(246,240,229,.62); font-size: 10px; }
.milestones { display: grid; gap: 7px; }
.milestone { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; padding: 11px; border-radius: 11px; background: var(--white); }
.milestone-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--ink); background: var(--mint); font-size: 12px; font-weight: 900; }
.milestone:nth-child(2) .milestone-icon { background: var(--violet); }
.milestone:nth-child(3) .milestone-icon { background: var(--coral); }
.milestone strong { display: block; font-size: 10px; }
.milestone span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.milestone b { font-size: 11px; }
.heatmap { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; margin-top: 14px; }
.heatmap span { aspect-ratio: 1; border-radius: 4px; background: var(--bone-2); }
.heatmap span:nth-child(3n) { background: #ead6ce; }
.heatmap span:nth-child(4n) { background: var(--coral); }
.heatmap span:nth-child(7n) { background: var(--mango); }
.heatmap span:nth-child(9n) { background: var(--mint); }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.insight { min-height: 126px; padding: 17px; border-radius: 15px; background: var(--white); }
.insight:nth-child(1) { background: #ffe3dc; }
.insight:nth-child(2) { background: #eeeaff; }
.insight:nth-child(3) { background: #e5f5eb; }
.insight span { font-size: 18px; }
.insight h3 { margin-top: 15px; font-size: 12px; }
.insight p { margin-bottom: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

.coach-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 18px; }
.chat-panel { display: flex; min-height: 570px; flex-direction: column; padding: 23px; border-radius: 20px; color: var(--bone); background: var(--ink); }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(246,240,229,.15); }
.coach-avatar { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; color: var(--ink); background: var(--mango); font-weight: 900; }
.chat-head strong { display: block; font-size: 13px; }
.chat-head span { display: block; margin-top: 4px; color: rgba(246,240,229,.56); font-size: 9px; }
.chat-messages { display: grid; align-content: start; gap: 13px; flex: 1; padding: 22px 0; overflow: auto; }
.message { max-width: 78%; padding: 12px 13px; border-radius: 13px; color: var(--ink); background: var(--bone); font-size: 11px; line-height: 1.5; }
.message.user { justify-self: end; color: var(--ink); background: var(--mint); }
.message small { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.suggestion { padding: 7px 9px; border: 1px solid rgba(246,240,229,.25); border-radius: 999px; color: var(--bone); background: transparent; font-size: 9px; }
.suggestion:hover { border-color: var(--mango); color: var(--mango); }
.chat-form { display: flex; gap: 7px; }
.chat-input { min-height: 42px; color: var(--bone); border-color: rgba(246,240,229,.22); background: rgba(246,240,229,.09); }
.chat-input::placeholder { color: rgba(246,240,229,.48); }
.chat-form .button-primary { border-color: var(--mango); color: var(--ink); background: var(--mango); }
.coach-side { display: grid; gap: 12px; align-content: start; }
.coach-card { padding: 20px; border-radius: 18px; background: var(--white); }
.coach-card:nth-child(2) { background: #eeeaff; }
.coach-card:nth-child(3) { background: #fff3d8; }
.coach-card > span { font-size: 20px; }
.coach-card h3 { margin-top: 15px; }
.coach-card p { margin-bottom: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px clamp(18px, 4vw, 66px); border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.footer-brand { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 850; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 60; max-width: 290px; padding: 12px 15px; border-radius: 11px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); font-size: 10px; font-weight: 800; opacity: 0; pointer-events: none; transform: translateY(13px); transition: .22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.empty { padding: 40px 18px; border: 1px dashed var(--warm-gray); border-radius: 14px; color: var(--muted); text-align: center; }
.empty strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 13px; }
.noscript { padding: 20px; color: var(--white); background: var(--ink); text-align: center; }

@media (max-width: 1100px) {
  .topbar { gap: 16px; }
  .site-nav { gap: 0; }
  .nav-link { padding-left: 8px; padding-right: 8px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 330px; }
  .home-grid, .page-layout, .coach-layout { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  .topbar { min-height: 68px; }
  .mobile-menu { display: block; order: 2; }
  .brand { margin-right: auto; }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 12px; left: 12px; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .nav-link { border-radius: 8px; text-align: left; }
  .profile-name, .profile-arrow, .quick-add span { display: none; }
  .quick-add { width: 36px; padding: 0; }
  .page-content { padding-top: 32px; }
  .page-head { display: block; }
  .head-actions { margin-top: 18px; }
  .hero-copy { padding: 31px 24px; }
  .hero h1 { font-size: 50px; }
  .hero-visual { min-height: 290px; padding: 25px; }
  .grid-art { width: min(260px, 80%); }
  .feature-grid, .shared-grid, .routine-layout, .finance-summary, .progress-summary, .insight-grid { grid-template-columns: 1fr; }
  .daily-overview { grid-template-columns: 1fr; justify-items: start; }
  .daily-overview .score-ring { width: 125px; height: 125px; }
  .score-ring-copy strong { font-size: 31px; }
  .shared-strip { grid-template-columns: 1fr; }
  .shared-tiles { margin-left: auto; }
  .form-grid.two, .allocation { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .transaction-table th:nth-child(2), .transaction-table td:nth-child(2) { display: none; }
}
