:root {
  --ink: #252d27;
  --muted: #838b82;
  --line: #e9ebe5;
  --canvas: #f7f8f4;
  --paper: #fff;
  --green: #467b5b;
  --green-dark: #315f43;
  --green-soft: #edf4ed;
  --coral: #e8846a;
  --coral-soft: #fff0eb;
  --yellow: #e9c875;
  --shadow: 0 14px 44px rgba(36, 47, 37, .07);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #9fc8a4; outline-offset: 3px; }
.app-shell { min-height: 100vh; }
.sidebar { width: 248px; background: #fff; border-right: 1px solid #edf0e9; position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column; padding: 29px 16px 18px; }
.brand, .mobile-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 800 21px Manrope, sans-serif; letter-spacing: -1.1px; text-decoration: none; }
.brand { padding: 0 10px 35px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 12px; }
.brand-mark svg { width: 25px; height: 25px; }
.brand-period { color: var(--coral); }
.household-label { font-size: 9px; letter-spacing: 1.25px; color: #9aa197; font-weight: 700; padding: 0 12px 10px; }
.household-switch { border: 1px solid #edf0e9; border-radius: 11px; padding: 11px 12px; display: flex; gap: 9px; align-items: center; font-size: 12px; font-weight: 600; margin: 0 2px 31px; }
.household-dot { background: #88aa7d; width: 7px; height: 7px; border-radius: 50%; }
.switch-chevron { color: #a5aba3; margin-left: auto; font-size: 17px; line-height: 12px; }
.nav-links { display: grid; gap: 5px; }
.nav-link { position: relative; width: 100%; display: flex; align-items: center; gap: 13px; border: 0; border-radius: 10px; background: transparent; padding: 12px 13px; color: #7e867c; text-align: left; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .18s, color .18s; }
.nav-link:hover { background: #f7f8f4; color: var(--ink); }
.nav-link.active { background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.nav-icon, [data-icon] { display: inline-flex; flex: 0 0 auto; }
.nav-icon svg, [data-icon] svg { width: 18px; height: 18px; display: block; }
.nav-count { font-size: 10px; line-height: 19px; min-width: 19px; height: 19px; text-align: center; margin-left: auto; background: #f3e3dc; color: #be7058; border-radius: 10px; padding: 0 5px; font-weight: 700; }
.nav-count:empty { display: none; }
.sidebar-bottom { margin-top: auto; }
.side-note { border-radius: 14px; padding: 14px; background: #f7f8f3; display: flex; gap: 11px; margin: 0 2px 18px; }
.sparkle { font-size: 18px; color: #8da37f; }
.side-note p { margin: 0; font-size: 11px; line-height: 1.7; color: #81887e; }
.side-note strong { color: #4c584d; font-weight: 600; }
.sidebar-user { border-top: 1px solid #eff0eb; padding: 17px 5px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; color: #415044; font: 700 13px Manrope, sans-serif; background: #e7eddf; flex: 0 0 auto; }
.avatar-adult { background: #f5dfd5; color: #885b4d; }
.sidebar-user-copy { display: grid; gap: 3px; min-width: 0; }
.sidebar-user-copy strong { font-size: 12px; font-weight: 700; }
.sidebar-user-copy span { font-size: 10px; color: var(--muted); }
.icon-button { border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: #889086; }
.icon-button:hover { color: var(--ink); }
.sidebar-more { margin-left: auto; width: 33px; height: 33px; border-radius: 9px; }
.main-area { margin-left: 248px; min-height: 100vh; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; border-bottom: 1px solid #ebece6; background: rgba(255,255,255,.55); }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: #8b9289; font-size: 12px; }
.breadcrumb-slash { color: #c2c6bf; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 21px; }
.today-label { font-size: 11px; color: #92988f; }
.role-pill { display: flex; align-items: center; gap: 9px; border: 1px solid #e9ece5; background: #fff; padding: 6px 10px 6px 6px; border-radius: 24px; font-size: 11px; font-weight: 600; cursor: pointer; }
.role-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f5dfd5; color: #885b4d; font-size: 10px; }
.chevron { margin-left: 2px; color: #92998f; font-size: 14px; }
.content { max-width: 1250px; margin: 0 auto; padding: 38px 48px 64px; }
.greeting-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 25px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -1.25px; line-height: 1.15; margin-bottom: 7px; font-weight: 700; }
.subheading { font-size: 13px; color: #899087; margin: 0; line-height: 1.6; }
.eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.4px; color: #a0a79e; text-transform: uppercase; margin-bottom: 9px; }
.button { border: 0; border-radius: 9px; padding: 11px 15px; background: var(--green); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; font-weight: 700; transition: background .15s, transform .15s; white-space: nowrap; }
.button:hover { background: var(--green-dark); transform: translateY(-1px); }
.button svg { width: 15px; height: 15px; }
.button-secondary { background: #fff; color: #526253; border: 1px solid #e7eae4; }
.button-secondary:hover { background: #f5f7f2; }
.button-quiet { background: transparent; color: #708071; }
.button-quiet:hover { color: var(--green-dark); background: #f2f6f1; }
.button-coral { background: var(--coral); }
.button-coral:hover { background: #d9745b; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid #eff0eb; border-radius: 13px; padding: 17px 19px; min-height: 105px; }
.stat-head { display: flex; align-items: center; gap: 8px; color: #92998f; font-size: 10px; margin-bottom: 12px; }
.stat-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: #eff4ed; color: var(--green); }
.stat-icon svg { width: 14px; height: 14px; }
.stat-icon.coral { background: #fff1eb; color: #d47c61; }
.stat-icon.gold { background: #fbf4df; color: #ad9149; }
.stat-value { font: 700 24px Manrope, sans-serif; letter-spacing: -.8px; }
.stat-suffix { font: 500 11px "DM Sans", sans-serif; color: #939a91; letter-spacing: 0; padding-left: 4px; }
.stat-foot { float: right; font-size: 9px; color: #9ba197; margin-top: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.56fr) minmax(255px, 1fr); gap: 15px; align-items: start; }
.column-stack { display: grid; gap: 15px; }
.panel { background: #fff; border: 1px solid #eff0eb; border-radius: 13px; overflow: hidden; }
.panel-header { padding: 17px 19px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-title { font: 700 13px Manrope, sans-serif; letter-spacing: -.2px; margin: 0; }
.panel-subtitle { color: #9aa096; font-size: 10px; margin: 5px 0 0; }
.text-button { color: var(--green); background: none; border: 0; cursor: pointer; font-size: 10px; font-weight: 700; padding: 6px; white-space: nowrap; }
.text-button:hover { color: var(--green-dark); }
.review-list { border-top: 1px solid #f1f2ee; }
.review-item { display: flex; align-items: center; gap: 11px; padding: 12px 18px; border-bottom: 1px solid #f2f3ef; }
.review-item:last-child { border-bottom: 0; }
.person-avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; font: 700 11px Manrope,sans-serif; background: #edf1e7; color: #62755b; }
.person-avatar.tone-1 { background: #fbede4; color: #b47a5f; }
.person-avatar.tone-2 { background: #e7eff1; color: #62828a; }
.review-copy { flex: 1; min-width: 0; }
.review-copy strong, .review-copy span { display: block; }
.review-copy strong { font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-copy span { font-size: 9px; color: #92998f; margin-top: 4px; }
.credit-chip { display: inline-flex; gap: 4px; align-items: center; padding: 5px 7px; border-radius: 7px; background: #f4f6ef; color: #627c58; font-size: 9px; font-weight: 700; white-space: nowrap; }
.review-actions { display: flex; gap: 4px; }
.mini-action { border: 1px solid #eaeee7; background: #fff; border-radius: 7px; height: 28px; width: 29px; display: grid; place-items: center; color: #839183; cursor: pointer; }
.mini-action svg { width: 13px; height: 13px; }
.mini-action.approve:hover { border-color: #cddfc9; background: #eff6ed; color: var(--green); }
.mini-action.decline:hover { border-color: #f0d3c9; background: #fff2ee; color: #c96b52; }
.chart-panel { padding-bottom: 13px; }
.chart-top-controls { display: flex; align-items: center; gap: 7px; }
.select-small { appearance: none; border: 1px solid #ecefe9; border-radius: 7px; padding: 6px 23px 6px 8px; font-size: 9px; color: #727c72; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9'%3E%3Cpath d='m2 3 2.5 2.5L7 3' fill='none' stroke='%23727c72' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 7px center; cursor: pointer; }
.chart-wrap { padding: 2px 15px 0 8px; }
.chart-wrap svg { width: 100%; height: 185px; overflow: visible; display: block; }
.chart-gridline { stroke: #edf0eb; stroke-width: 1; }
.chart-bar { fill: #a9c2a1; rx: 4; }
.chart-bar.current { fill: #557f5d; }
.chart-bar.empty { fill: #eff2ec; }
.chart-label { fill: #9ba197; font: 9px "DM Sans",sans-serif; }
.chart-y-label { fill: #a5aaa2; font: 8px "DM Sans",sans-serif; }
.chart-summary { padding: 8px 17px 0; color: #818a7f; font-size: 10px; line-height: 1.5; }
.family-list { padding: 0 18px 8px; }
.family-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.member-detail-card { padding: 16px; }
.member-detail-top { display: flex; align-items: center; gap: 10px; }
.member-detail-top .person-avatar { width: 39px; height: 39px; border-radius: 50%; }
.grown-up-badge { display: inline-block; vertical-align: 2px; border-radius: 20px; padding: 3px 7px; color: #547558; background: #edf4ed; font: 600 9px "DM Sans", sans-serif; letter-spacing: 0; }
.member-management { border-top: 1px solid #eff0eb; margin-top: 14px; padding-top: 8px; text-align: right; }
.management-toggle { min-height: 38px; }
.management-toggle:disabled { cursor: not-allowed; opacity: .55; }
.review-self-note { margin: 10px 0 0; color: #8a725d; font-size: 11px; font-weight: 600; }
.assistant-panel { padding: 0 19px 17px; }
.assistant-privacy { display: flex; align-items: center; gap: 9px; padding: 14px 0; border-bottom: 1px solid var(--line); color: #748173; font-size: 11px; line-height: 1.5; }
.assistant-privacy svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--green); }
.assistant-thread { display: grid; gap: 13px; max-height: min(58vh, 610px); min-height: 235px; overflow-y: auto; padding: 20px 2px; }
.assistant-welcome { display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center; color: #707c70; }
.assistant-welcome-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; color: var(--green); background: var(--green-soft); }
.assistant-welcome-icon svg { width: 24px; height: 24px; }
.assistant-welcome strong { color: var(--ink); font: 700 17px Manrope, sans-serif; }
.assistant-welcome p { margin: 0; font-size: 12px; }
.assistant-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 9px; }
.assistant-examples span { border: 1px solid #e8ece4; border-radius: 20px; padding: 7px 10px; background: #fff; font-size: 10px; }
.assistant-message { max-width: min(88%, 650px); border-radius: 13px; padding: 11px 14px; }
.assistant-message p { margin: 0; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-message-user { justify-self: end; color: #fff; background: var(--green); border-bottom-right-radius: 4px; }
.assistant-message-bot { justify-self: start; width: 100%; color: var(--ink); background: #f6f7f3; border-bottom-left-radius: 4px; }
.assistant-thinking { color: #828a80; font-style: italic; }
.assistant-proposal { margin-top: 10px; padding: 14px; border: 1px solid #e3e9df; border-radius: 11px; background: #fff; }
.proposal-label { display: flex; align-items: center; gap: 8px; color: #7b8878; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.proposal-label .stat-icon { width: 23px; height: 23px; }
.proposal-label svg { width: 13px; height: 13px; }
.assistant-proposal h3 { margin: 10px 0; font-size: 15px; }
.assistant-proposal dl { display: grid; gap: 6px; margin: 0; }
.assistant-proposal dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f0f1ed; padding-bottom: 6px; font-size: 11px; }
.assistant-proposal dt { color: #889086; }
.assistant-proposal dd { margin: 0; max-width: 70%; color: #3d4b3e; text-align: right; overflow-wrap: anywhere; }
.proposal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.proposal-actions .button { font-size: 11px; }
.proposal-expiry, .proposal-status { margin: 8px 0 0 !important; color: #8a9288; font-size: 10px !important; }
.assistant-form { display: flex; align-items: flex-end; gap: 9px; border: 1px solid #e7ebe3; border-radius: 11px; padding: 8px; background: #fff; }
.assistant-form textarea { flex: 1; min-width: 0; resize: vertical; border: 0; outline: 0; padding: 7px; color: var(--ink); font-size: 13px; line-height: 1.5; }
.assistant-form textarea:focus-visible { outline: 0; }
.assistant-form .button { min-height: 40px; }
.assistant-footnote { margin: 9px 2px 0; color: #91988e; font-size: 10px; line-height: 1.5; }
.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; }
.member-detail-name { flex: 1; }
.member-detail-name h2 { font-size: 13px; margin: 0 0 4px; }
.member-detail-name span { font-size: 9px; color: #92998f; }
.member-detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 17px 0 10px; padding: 13px 0; border-top: 1px solid #f0f2ed; border-bottom: 1px solid #f0f2ed; }
.member-detail-stats div { display: grid; gap: 4px; }
.member-detail-stats strong { font: 700 15px Manrope,sans-serif; color: #526b4d; }
.member-detail-stats span { font-size: 8px; color: #969d93; }
.family-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f1f2ee; }
.family-row:first-child { border-top: 0; }
.family-row .person-avatar { width: 31px; height: 31px; border-radius: 50%; }
.family-name { flex: 1; font-size: 10px; font-weight: 600; }
.family-credits { font-size: 10px; font-weight: 700; color: #5e7855; }
.activity-item { display: flex; gap: 11px; padding: 0 18px 15px; align-items: flex-start; }
.activity-item + .activity-item { padding-top: 12px; border-top: 1px solid #f1f2ee; }
.activity-mark { width: 28px; height: 28px; background: #eff5ec; color: #61815d; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.activity-mark svg { width: 13px; height: 13px; }
.activity-copy { flex: 1; font-size: 10px; line-height: 1.5; color: #858c83; }
.activity-copy strong { color: #3f4840; font-weight: 600; }
.activity-time { font-size: 8px; display: block; color: #a6aaa3; margin-top: 4px; }
.empty-state { padding: 26px 18px; text-align: center; color: #929a90; font-size: 11px; line-height: 1.6; }
.empty-state strong { display: block; color: #4e584e; margin-bottom: 5px; font-size: 12px; }
.section-toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: 23px 0 15px; }
.search-wrap { position: relative; flex: 1; max-width: 300px; }
.search-wrap svg { width: 15px; height: 15px; position: absolute; top: 10px; left: 11px; color: #a0a69d; }
.search-input { width: 100%; height: 36px; padding: 0 12px 0 34px; background: #fff; border: 1px solid #e9ece5; border-radius: 9px; font-size: 11px; }
.search-input::placeholder { color: #a0a69d; }
.filter-select { min-height: 36px; border: 1px solid #e9ece5; border-radius: 9px; background-color: #fff; padding: 0 28px 0 11px; font-size: 10px; color: #647064; }
.chores-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.chore-card { background: #fff; border: 1px solid #eff0eb; border-radius: 13px; padding: 17px; min-height: 168px; display: flex; flex-direction: column; }
.chore-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.chore-illustration { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #eff4eb; color: #6e8866; }
.chore-illustration svg { width: 19px; height: 19px; }
.chore-illustration.tone-1 { background: #fbf0e8; color: #c48563; }
.chore-illustration.tone-2 { background: #edf2f4; color: #71909a; }
.chore-illustration.tone-3 { background: #faf3df; color: #ac9153; }
.chore-credits { background: #f3f6ee; border-radius: 7px; padding: 6px 8px; color: #5d7854; font-size: 10px; font-weight: 700; white-space: nowrap; }
.chore-card h3 { font-size: 13px; margin: 13px 0 5px; letter-spacing: -.2px; }
.chore-card p { font-size: 10px; color: #8e958b; line-height: 1.5; margin: 0 0 13px; }
.chore-card-bottom { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.chore-card-bottom .button { flex: 1; padding: 9px 10px; font-size: 10px; }
.assigned-label { color: #929a90; font-size: 9px; }
.chore-menu { width: 30px; height: 30px; border: 1px solid #edf0e9; border-radius: 8px; background: #fff; color: #8b9489; cursor: pointer; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; font-size: 9px; font-weight: 700; border-radius: 20px; white-space: nowrap; }
.status-badge::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status-pending { color: #bf785c; background: #fff1eb; }
.status-approved { color: #5e7f58; background: #edf5eb; }
.status-declined { color: #9a7370; background: #f5eeee; }
.review-card { background: #fff; border: 1px solid #eff0eb; border-radius: 12px; padding: 16px; display: flex; gap: 13px; align-items: flex-start; margin-bottom: 10px; }
.review-card-main { flex: 1; min-width: 0; }
.review-card-main h3 { font-size: 12px; margin: 2px 0 5px; }
.review-card-main p { font-size: 10px; line-height: 1.55; margin: 0; color: #90978e; }
.review-card-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; font-size: 9px; color: #959c93; }
.review-card-actions { display: flex; gap: 6px; align-items: center; }
.review-card-actions .button { padding: 8px 11px; font-size: 9px; }
.member-hero { padding: 24px; border-radius: 15px; background: #eaf1e6; display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 17px; }
.member-hero h1 { color: #344b37; }
.member-hero .subheading { color: #71816e; }
.member-balance { background: rgba(255,255,255,.72); border-radius: 12px; padding: 14px 18px; min-width: 118px; text-align: center; }
.member-balance strong { display: block; font: 700 26px Manrope,sans-serif; color: #416345; }
.member-balance span { font-size: 9px; color: #7f8d79; }
.pending-banner { display: flex; align-items: center; gap: 11px; background: #fff3ed; border: 1px solid #f7e5dc; padding: 13px 15px; border-radius: 11px; margin-bottom: 14px; }
.pending-banner .stat-icon { flex: 0 0 auto; }
.pending-banner p { margin: 0; flex: 1; font-size: 10px; color: #947262; line-height: 1.5; }
.pending-banner strong { color: #795742; }
.member-chores { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.history-row { display: flex; gap: 11px; align-items: center; padding: 12px 18px; border-top: 1px solid #f0f2ed; }
.history-copy { flex: 1; }
.history-copy strong { display: block; font-size: 10px; }
.history-copy span { display: block; color: #999f96; font-size: 9px; margin-top: 4px; }
.history-note { font-size: 9px; color: #bf785c; margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 6px; margin-bottom: 13px; }
.field label { font-size: 10px; font-weight: 700; color: #5b655a; }
.field input, .field select, .field textarea { border: 1px solid #e5e9e2; background: #fff; padding: 10px 11px; border-radius: 8px; font-size: 11px; color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 74px; }
.field-hint { color: #959d93; font-size: 9px; margin-top: -1px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(35, 45, 37, .38); backdrop-filter: blur(3px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(100%, 440px); max-height: min(90vh, 700px); overflow-y: auto; background: #fff; border-radius: 16px; padding: 25px; position: relative; box-shadow: 0 22px 80px rgba(29,39,31,.18); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 9px; }
.modal h2 { font-size: 19px; letter-spacing: -.55px; margin: 0 36px 6px 0; }
.modal-intro { font-size: 11px; color: #8c958b; line-height: 1.5; margin: 0 0 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.form-error { display: none; padding: 9px 11px; background: #fff0ec; border-radius: 8px; color: #b95f4d; font-size: 10px; margin-bottom: 10px; }
.form-error.visible { display: block; }
.role-options { display: grid; gap: 9px; }
.role-option { width: 100%; border: 1px solid #edf0e9; background: #fff; border-radius: 10px; padding: 12px; text-align: left; display: flex; align-items: center; gap: 11px; cursor: pointer; }
.role-option:hover { border-color: #ceddca; background: #f7faf5; }
.role-option strong, .role-option span { display: block; }
.role-option strong { font-size: 11px; }
.role-option span { font-size: 9px; color: #91998f; margin-top: 3px; }
.toast { position: fixed; z-index: 30; bottom: 24px; left: 50%; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: #2e4132; color: #fff; border-radius: 9px; padding: 11px 16px; font-size: 11px; box-shadow: var(--shadow); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-nav, .mobile-brand { display: none; }
.demo-note { font-size: 9px; color: #999f95; line-height: 1.5; margin-top: 14px; }
.disabled-card { opacity: .6; }
.disabled-label { color: #9ba096; font-size: 9px; }
.signed-out .sidebar, .signed-out .topbar, .signed-out .mobile-nav { display: none; }
.signed-out .main-area { margin-left: 0; }
.signed-out { min-height: 100vh; min-height: 100svh; background: #f5f6f1; }
.signed-out .content { width: 100%; max-width: none; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 32px; }
.signin-card { width: min(100%, 990px); min-height: 570px; display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden; background: #fff; border: 1px solid #e9ece4; border-radius: 24px; box-shadow: 0 24px 70px rgba(37, 51, 39, .09); }
.local-admin-card { width: min(100%, 480px); min-height: 0; display: block; }
.local-admin-card .signin-main { padding-top: 44px; padding-bottom: 44px; }
.local-admin-card .signin-password-form { margin-top: 24px; }
.signin-story { position: relative; overflow: hidden; padding: 35px 36px 26px; display: flex; flex-direction: column; color: #f6f7ef; background: #344f3d; }
.signin-story::before, .signin-story::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.signin-story::before { width: 330px; height: 330px; right: -125px; top: 194px; border: 1px solid rgba(231, 237, 216, .16); }
.signin-story::after { width: 235px; height: 235px; right: -77px; top: 241px; border: 1px solid rgba(231, 237, 216, .14); }
.signin-story-brand, .signin-mobile-brand { display: flex; align-items: center; gap: 10px; font: 800 21px Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -1.1px; }
.signin-story-brand .brand-mark { background: #eff3e7; color: #466349; }
.signin-story .brand-period { color: #ecc18d; }
.signin-story-copy { position: relative; z-index: 1; margin-top: 58px; }
.story-kicker { color: #c1ceb8; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.signin-story-copy h2 { color: #fff; font-size: clamp(33px, 4vw, 45px); line-height: 1.07; letter-spacing: -1.7px; margin: 16px 0 12px; }
.signin-story-copy h2 em { color: #d6e1c5; font-style: normal; }
.signin-story-copy p { max-width: 285px; color: #c5d0c1; font-size: 12px; line-height: 1.7; margin: 0; }
.signin-orbit { position: relative; min-height: 185px; margin-top: 24px; }
.orbit-sun { position: absolute; width: 90px; height: 90px; right: 34px; top: 0; border-radius: 50%; background: #728b69; box-shadow: 0 0 0 15px rgba(214, 225, 197, .045), 0 0 0 32px rgba(214, 225, 197, .035); }
.orbit-leaf { position: absolute; color: #efd19a; z-index: 1; }
.leaf-one { font-size: 22px; right: 58px; top: 30px; }
.leaf-two { font-size: 17px; right: 150px; top: 94px; color: #d9b7a2; }
.story-task { position: absolute; z-index: 2; width: min(290px, 100%); padding: 11px 12px; background: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; color: #344137; box-shadow: 0 12px 32px rgba(20, 36, 24, .17); display: flex; gap: 10px; align-items: center; }
.task-table { top: 22px; left: 0; transform: rotate(-2deg); }
.task-plants { top: 87px; right: -10px; transform: rotate(1.5deg); }
.story-task-icon { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; color: #587558; background: #edf2e8; }
.story-task-icon svg { width: 16px; height: 16px; }
.story-task > span:nth-child(2) { flex: 1; min-width: 0; }
.story-task strong, .story-task small { display: block; }
.story-task strong { font-size: 10px; }
.story-task small { color: #91988e; font-size: 8px; margin-top: 3px; }
.story-task b { color: #567353; background: #f0f4ea; padding: 5px 7px; border-radius: 7px; font-size: 9px; }
.signin-story-footer { position: relative; z-index: 1; margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.15); color: #c8d1c3; font-size: 9px; }
.signin-story-footer span { color: #edc88d; padding-right: 5px; }
.signin-main { align-self: center; width: 100%; max-width: 445px; margin: 0 auto; padding: 56px 54px; }
.signin-mobile-brand { display: none; }
.signin-main > .eyebrow { color: #789071; margin: 0 0 12px; }
.signin-main h1 { font-size: clamp(29px, 3vw, 36px); letter-spacing: -1.5px; line-height: 1.1; margin: 0 0 10px; }
.signin-main > .subheading { max-width: 310px; font-size: 12px; color: #858d82; }
.google-signin { position: relative; min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 27px; padding: 0 42px; color: #303830; background: #fff; border: 1px solid #dce2d9; border-radius: 10px; text-decoration: none; font-size: 12px; font-weight: 600; box-shadow: 0 2px 5px rgba(34, 49, 36, .035); transition: background .15s, border-color .15s, transform .15s; }
.google-signin:hover { background: #f8faf6; border-color: #bdcdb7; transform: translateY(-1px); }
.google-signin:active { transform: translateY(0); }
.google-mark { font: 700 17px Arial, sans-serif; color: #4285f4; }
.google-arrow { position: absolute; right: 16px; color: #8a9587; font-size: 16px; }
.signin-password-form { margin-top: 12px; padding: 15px; background: #f7f8f4; border: 1px solid #edf0e9; border-radius: 11px; }
.signin-password-form .field { margin-bottom: 11px; }
.signin-password-form .field input { min-height: 40px; font-size: 13px; }
.signin-password-form .button { width: 100%; min-height: 42px; margin-top: 2px; }
.signin-help { display: flex; align-items: flex-start; gap: 8px; font-size: 9px; line-height: 1.65; color: #899186; margin: 17px 0 0; }
.signin-lock { color: #6c8765; margin-top: 1px; }
.signin-lock svg { width: 13px; height: 13px; }
.signin-error { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; color: #a34e43; background: #fff0ec; font-size: 10px; line-height: 1.5; }
.signin-divider { display: flex; align-items: center; gap: 10px; margin-top: 36px; }
.signin-divider span { height: 1px; flex: 1; background: #edf0ea; }
.signin-divider i { color: #a1a89e; font-size: 8px; font-style: normal; letter-spacing: 1px; white-space: nowrap; }
.signin-footnote { margin-top: 11px; text-align: center; font: 500 10px Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #879084; }
.signout-button { font-size: 10px; padding: 8px 11px; }
@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .main-area { margin-left: 220px; }
  .content { padding-left: 30px; padding-right: 30px; }
  .topbar { padding: 0 30px; }
  .chores-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .signed-out { background: #f5f6f1; }
  .signed-out .main-area { padding: 0; }
  .signed-out .content { min-height: 100vh; min-height: 100svh; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
  .signin-card { width: min(100%, 460px); min-height: 0; display: block; border: 0; border-radius: 20px; box-shadow: 0 16px 45px rgba(37,51,39,.08); }
  .signin-story { display: none; }
  .signin-main { max-width: none; padding: 29px 24px 23px; }
  .signin-mobile-brand { display: flex; margin-bottom: 35px; font-size: 18px; }
  .signin-mobile-brand .brand-mark { width: 31px; height: 31px; border-radius: 10px; }
  .signin-mobile-brand .brand-mark svg { width: 22px; height: 22px; }
  .signin-main h1 { font-size: 30px; }
  .signin-main > .subheading { font-size: 12px; }
  .google-signin { margin-top: 24px; min-height: 50px; }
  .signin-divider { margin-top: 27px; }
  .main-area { margin-left: 0; padding-bottom: 69px; }
  .topbar { height: 59px; padding: 0 18px; background: rgba(255,255,255,.8); }
  .today-label { display: none; }
  .breadcrumb { display: flex; min-width: 0; max-width: 48%; gap: 5px; font-size: 12px; }
  .breadcrumb-home { min-width: 0; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .breadcrumb strong { white-space: nowrap; }
  .mobile-brand { display: flex; font-size: 18px; gap: 7px; }
  .mobile-brand .brand-mark { width: 29px; height: 29px; border-radius: 10px; }
  .mobile-brand .brand-mark svg { width: 22px; height: 22px; }
  .topbar-actions { margin-left: auto; }
  .role-pill { padding: 4px; }
  .role-pill #role-name, .role-pill .chevron { display: none; }
  .role-avatar { width: 29px; height: 29px; }
  .topbar-actions { gap: 8px; }
  .content { padding: 27px 17px 39px; }
  .greeting-row { align-items: flex-start; margin-bottom: 20px; }
  .greeting-row .button { padding: 10px 11px; font-size: 10px; }
  .greeting-row .button .button-label { display: none; }
  .greeting-row h1 { font-size: 27px; }
  .subheading { font-size: 11px; }
  .stats-grid { gap: 8px; margin-bottom: 13px; }
  .stat-card { padding: 12px 11px; min-height: 92px; }
  .stat-head { gap: 5px; font-size: 9px; margin-bottom: 11px; }
  .stat-icon { width: 22px; height: 22px; }
  .stat-icon svg { width: 12px; height: 12px; }
  .stat-value { font-size: 20px; }
  .stat-suffix { font-size: 9px; }
  .stat-foot { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 13px; }
  .column-stack { gap: 13px; }
  .chart-wrap svg { height: 168px; }
  .chores-grid { grid-template-columns: 1fr; gap: 10px; }
  .chore-card { min-height: 152px; padding: 15px; }
  .section-toolbar { margin: 18px 0 12px; flex-wrap: wrap; }
  .search-wrap { max-width: none; flex-basis: 100%; }
  .section-toolbar > .button { margin-left: auto; }
  .filter-select { flex: 1; }
  .review-card { padding: 13px; gap: 10px; }
  .review-card-actions { flex-direction: column; }
  .review-card-actions .button { width: 73px; }
  .member-hero { padding: 18px 15px; }
  .member-hero h1 { font-size: 25px; }
  .member-balance { min-width: 93px; padding: 11px 12px; }
  .member-balance strong { font-size: 22px; }
  .member-chores { grid-template-columns: 1fr; }
  .family-detail-grid { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; z-index: 10; display: flex; inset: auto 0 0; height: 66px; padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.97); border-top: 1px solid #eaede6; justify-content: space-around; align-items: center; }
  .has-adult-nav .mobile-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mobile-nav-link { position: relative; border: 0; background: transparent; color: #90978e; padding: 7px 3px 5px; display: grid; justify-items: center; gap: 4px; font-size: 8px; cursor: pointer; min-width: 0; }
  .has-adult-nav .mobile-nav-link { width: 100%; }
  .mobile-nav-link [data-icon] svg { width: 18px; height: 18px; }
  .mobile-nav-link.active { color: var(--green); font-weight: 700; }
  .mobile-nav-link i { position: absolute; top: 3px; right: 13px; width: 6px; height: 6px; background: var(--coral); border: 1px solid white; border-radius: 50%; }
  .modal { padding: 22px 18px; }
}
@media (max-width: 370px) {
  .signed-out .content { padding-right: 12px; padding-left: 12px; }
  .signin-main { padding-right: 19px; padding-left: 19px; }
  .signin-mobile-brand { margin-bottom: 29px; }
  .signin-main h1 { font-size: 27px; }
  .content { padding-left: 13px; padding-right: 13px; }
  .stats-grid { gap: 6px; }
  .stat-card { padding: 11px 8px; }
  .stat-head { font-size: 8px; }
  .stat-value { font-size: 18px; }
  .stat-suffix { font-size: 8px; }
  .member-hero { padding: 16px 12px; }
}
.breadcrumb-home { border: 0; padding: 8px 4px; margin: -8px -4px; background: transparent; color: inherit; font: inherit; cursor: pointer; border-radius: 6px; }
.breadcrumb-home:hover { color: var(--green-dark); background: #f2f6f1; }
.stat-card-link { position: relative; display: block; width: 100%; color: inherit; text-align: left; font: inherit; cursor: pointer; transition: border-color .16s, box-shadow .16s, transform .16s; }
.stat-card-link:hover { border-color: #cbdac7; box-shadow: 0 8px 24px rgba(46, 69, 49, .08); transform: translateY(-2px); }
.stat-card-link:focus-visible { outline: 3px solid #9fc8a4; outline-offset: 3px; }
.stat-card-link .stat-head, .stat-card-link .stat-value { display: flex; align-items: center; }
.stat-card-link .stat-value { font: 700 24px Manrope, sans-serif; letter-spacing: -.8px; }
.stat-card-hint { position: absolute; right: 12px; bottom: 10px; color: #8c9788; font-size: 9px; font-weight: 600; opacity: 0; transition: opacity .16s; }
.stat-card-hint span { color: var(--green); }
.stat-card-link:hover .stat-card-hint, .stat-card-link:focus-visible .stat-card-hint { opacity: 1; }
.chore-repeat { margin: -5px 0 11px; color: #72816f; font-size: 10px; font-weight: 600; }
.chore-cycle-note { margin: -5px 0 10px; color: #9a7653; font-size: 10px; font-weight: 600; }
@media (max-width: 760px) {
  .breadcrumb-home { min-height: 40px; }
  .topbar .signout-button { min-height: 40px; padding: 8px 11px; font-size: 12px; }
  .content { padding: 25px 17px 42px; }
  .greeting-row h1, .member-hero h1 { font-size: 29px; line-height: 1.16; }
  .subheading { font-size: 14px; line-height: 1.55; }
  .eyebrow { font-size: 10px; letter-spacing: 1.15px; }
  .greeting-row .button { min-height: 44px; font-size: 13px; }
  .stat-card { min-height: 106px; padding: 13px 10px 25px; border-radius: 12px; }
  .stat-head { align-items: flex-start; min-height: 32px; font-size: 10px; line-height: 1.3; }
  .stat-icon { width: 23px; height: 23px; flex: 0 0 auto; }
  .stat-value, .stat-card-link .stat-value { font-size: 21px; }
  .stat-suffix { font-size: 10px; }
  .stat-card-hint { right: 9px; bottom: 7px; opacity: 1; font-size: 9px; }
  .panel-title { font-size: 16px; }
  .panel-subtitle { font-size: 12px; line-height: 1.4; }
  .text-button { min-height: 42px; padding: 8px; font-size: 12px; }
  .review-copy strong, .history-copy strong { font-size: 13px; line-height: 1.4; }
  .review-copy span, .history-copy span { font-size: 11px; }
  .credit-chip { font-size: 11px; padding: 6px 8px; }
  .activity-copy { font-size: 12px; }
  .activity-time { font-size: 10px; }
  .chart-label { font-size: 11px; }
  .chart-y-label { font-size: 10px; }
  .chart-summary { font-size: 12px; line-height: 1.55; }
  .mini-action { width: 40px; height: 40px; }
  .chore-menu { width: 40px; height: 40px; }
  .empty-state { font-size: 13px; }
  .empty-state strong { font-size: 14px; }
  .chore-card { padding: 17px; }
  .chore-card h3 { font-size: 17px; }
  .chore-card p { font-size: 13px; line-height: 1.55; }
  .chore-credits { font-size: 12px; }
  .chore-repeat, .chore-cycle-note, .assigned-label { font-size: 12px; }
  .chore-card-bottom .button, .review-card-actions .button { min-height: 44px; font-size: 13px; }
  .search-input, .filter-select, .select-small { min-height: 44px; font-size: 16px; }
  .mobile-nav { height: calc(74px + env(safe-area-inset-bottom)); padding: 5px 0 env(safe-area-inset-bottom); }
  .mobile-nav-link { min-height: 52px; min-width: 0; padding: 7px 3px; gap: 4px; font-size: 11px; }
  .mobile-nav-link [data-icon] svg { width: 21px; height: 21px; }
  .main-area { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .member-balance span { font-size: 11px; }
  .pending-banner p { font-size: 12px; }
  .member-detail-name h2 { font-size: 16px; }
  .member-detail-name span, .member-detail-stats span { font-size: 11px; }
  .member-detail-stats strong { font-size: 17px; }
  .family-name, .family-credits { font-size: 13px; }
  .family-row { min-height: 48px; }
  .review-card-main h3 { font-size: 15px; }
  .review-card-main p { font-size: 13px; }
  .review-card-meta { font-size: 11px; }
  .review-card-actions .button { width: auto; }
  .field label { font-size: 13px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .field-hint { font-size: 11px; }
  .modal { padding: 25px 20px; }
  .modal h2 { font-size: 21px; }
  .modal-intro { font-size: 14px; }
  .modal-actions .button { min-height: 44px; font-size: 13px; }
  .stat-card-link .stat-card-hint { opacity: 1; }
}
@media (max-width: 370px) {
  .stat-card { padding-left: 8px; padding-right: 8px; }
  .stat-head { font-size: 9px; }
  .stat-card-hint { font-size: 8px; }
  .mobile-nav-link { min-width: 0; font-size: 10px; }
  .breadcrumb { max-width: 42%; gap: 4px; font-size: 11px; }
  .breadcrumb-home { max-width: 72px; font-size: 11px; }
}
