:root {
  color-scheme: light;
  font-family: Manrope, system-ui, Arial, sans-serif;
  --primary: var(--brand-petroleum);
  --primary-dark: var(--brand-petroleum-dark);
  --primary-container: var(--brand-mist);
  --on-primary-container: var(--brand-petroleum-dark);
  --surface: var(--brand-ivory);
  --surface-low: #eef4f1;
  --surface-high: var(--brand-mist);
  --card: #ffffff;
  --text: var(--brand-petroleum-dark);
  --muted: var(--brand-muted);
  --outline: var(--brand-line);
  --success: #146c2e;
  --success-bg: #c4eed0;
  --warning: #8a4d00;
  --warning-bg: #ffddb0;
  --danger: #b3261e;
  --danger-bg: #f9dedc;
  --shadow: 0 1px 2px rgba(60, 64, 67, .08), 0 2px 8px rgba(60, 64, 67, .06);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { background: var(--surface); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: var(--surface); }
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.material-symbols-rounded { font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 20px; background: radial-gradient(circle at 15% 10%, var(--brand-mist) 0, transparent 32%), radial-gradient(circle at 90% 85%, var(--brand-mist) 0, transparent 30%), var(--surface); }
.login-card { width: min(100%, 460px); max-width: 100%; min-width: 0; overflow: hidden; background: rgba(255,255,255,.94); border: 1px solid #e0e3e7; border-radius: 32px; padding: 34px; box-shadow: 0 14px 40px rgba(60,64,67,.12); }
.brand-mark { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--primary-container); color: var(--primary); margin-bottom: 26px; }
.brand-mark .material-symbols-rounded { font-size: 30px; font-variation-settings: 'FILL' 1; }
h1, h2, h3, p { margin-top: 0; }
.login-card h1 { font-size: 2rem; line-height: 1.15; margin-bottom: 10px; font-weight: 500; letter-spacing: -.03em; }
.login-card > p { color: var(--muted); line-height: 1.5; margin-bottom: 26px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .875rem; font-weight: 500; color: #3c4043; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; border: 1px solid var(--outline); border-radius: 14px; padding: 0 15px; background: #fff; outline: none; resize: vertical; }
.field textarea { padding-block: 13px; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border: 2px solid var(--primary); padding-inline: 14px; }
.field textarea:focus { padding-block: 12px; }
.primary-button, .secondary-button, .text-button, .icon-button { border: 0; cursor: pointer; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-weight: 500; }
.primary-button { background: var(--primary); color: #fff; padding: 0 22px; }
.primary-button:hover { background: var(--primary-dark); box-shadow: var(--shadow); }
.primary-button:disabled { background: var(--brand-line); cursor: default; }
.secondary-button { background: var(--primary-container); color: var(--on-primary-container); padding: 0 20px; }
.secondary-button:disabled { color: var(--muted); background: var(--surface-high); cursor: default; }
.text-button { background: transparent; color: var(--primary); padding: 0 14px; }
.icon-button { width: 44px; background: transparent; color: var(--text); }
.full-width { width: 100%; }
.demo-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 24px 0 16px; }
.demo-divider::before, .demo-divider::after { content: ''; height: 1px; flex: 1; background: #e0e3e7; }
.profile-grid { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 10px; }
.profile-grid.five-profiles { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
.profile-choice { min-width: 0; display: grid; align-content: start; border: 1px solid transparent; border-radius: 18px; padding: 5px 3px 7px; }
.profile-choice.preferred { border-color: var(--brand-turquoise); background: var(--brand-mist); }
.profile-button { border: 0; background: transparent; border-radius: 16px; padding: 8px 2px; cursor: pointer; color: var(--text); }
.profile-button:hover { background: var(--surface-low); }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; margin: 0 auto 6px; font-weight: 700; color: #fff; }
.avatar-color-0 { background: var(--brand-petroleum); }
.avatar-color-1 { background: #d93025; }
.avatar-color-2 { background: #1a73e8; }
.avatar-color-3 { background: #7b1fa2; }
.avatar-color-4 { background: #0f9d58; }
.avatar-color-5 { background: #c26401; }
.avatar-color-6 { background: #00639b; }
.avatar-color-7 { background: #6750a4; }
.admin-avatar-name { display: flex; align-items: center; gap: 10px; }
.profile-button span:last-child { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .75rem; }
.self-button { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 999px; padding: 0 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: .7rem; }
.self-button:hover { background: var(--primary-container); color: var(--primary); }
.self-button[aria-pressed="true"] { color: var(--primary); font-weight: 700; }
.self-button[aria-pressed="true"] .material-symbols-rounded { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20; }
.self-button .material-symbols-rounded { font-size: 17px; }
.demo-note { color: var(--muted); font-size: .75rem; margin: 14px 0 0; text-align: center; }
.compact-login { max-width: 390px; }
.login-back { margin: -10px 0 20px -12px; }
.login-person { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.login-person .avatar { width: 58px; height: 58px; margin: 0; font-size: 1.1rem; }
.login-person h1 { margin: 0 0 4px; }
.login-person p { margin: 0; color: var(--muted); }
.device-profile-note { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 7px; margin: -10px 0 16px 74px; padding: 6px 10px; border-radius: 999px; background: var(--primary-container); color: var(--primary-dark); font-size: .75rem; font-weight: 500; }
.device-profile-note .material-symbols-rounded { font-size: 17px; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20; }
.login-logo { display: block; width: min(100%, 310px); height: auto; margin: 0 auto 15px; }
.login-card .brand-slogan { max-width: 340px; margin: 0 auto 24px; color: var(--muted); text-align: center; line-height: 1.5; }

.app-shell { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; height: 72px; display: flex; align-items: center; gap: 16px; padding: 0 max(20px, calc((100vw - 1180px)/2)); background: rgba(248,250,253,.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(196,199,197,.45); }
.topbar-logo { display: flex; align-items: center; gap: 11px; font-size: 1.2rem; font-weight: 500; white-space: nowrap; }
.topbar-logo img { display: block; width: 158px; height: 48px; object-fit: contain; object-position: left center; }
.topbar-logo .brand-mark { width: 38px; height: 38px; border-radius: 13px; margin: 0; }
.topbar-logo .material-symbols-rounded { font-size: 23px; }
.topbar-spacer { flex: 1; }
.week-pill { padding: 9px 14px; background: var(--surface-high); border-radius: 999px; color: #3c4043; font-size: .875rem; }
.user-menu { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; cursor: pointer; border-radius: 999px; padding: 4px 8px 4px 4px; }
.user-menu:hover { background: var(--surface-high); }
.user-menu .avatar { width: 36px; height: 36px; margin: 0; font-size: .85rem; }

.layout { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 28px 0 52px; }
.admin-shell .layout { width: min(1740px, calc(100% - 40px)); grid-template-columns: 190px minmax(0, 1fr); gap: 24px; }
.admin-shell .topbar { padding-inline: max(20px, calc((100vw - 1740px)/2)); }
.side-nav { display: grid; gap: 5px; align-content: start; position: sticky; top: 98px; height: max-content; }
.nav-item { width: 100%; border: 0; background: transparent; border-radius: 0 999px 999px 0; min-height: 48px; padding: 0 18px; display: flex; align-items: center; gap: 15px; cursor: pointer; color: #3c4043; text-align: left; text-decoration: none; font: inherit; }
.nav-item:hover { background: var(--surface-high); }
.nav-item.active { background: var(--primary-container); color: var(--on-primary-container); font-weight: 700; }
.nav-item.active .material-symbols-rounded { font-variation-settings: 'FILL' 1; }
.main { min-width: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.eyebrow { color: var(--primary); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.page-heading h1 { font-weight: 500; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.025em; margin-bottom: 5px; }
.page-heading p { color: var(--muted); margin: 0; }
.summary-week-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
.summary-week-controls { display: flex; align-items: center; min-width: 0; }
.summary-week-controls .icon-button { flex-shrink: 0; }
.summary-week-range { text-align: center; font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.approval-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--brand-line); margin-bottom: 12px; }
.approval-toolbar p { margin: 5px 0 0; font-size: .85rem; }
.approval-toolbar > button { flex-shrink: 0; }
.review-feedback { display: flex; align-items: center; gap: 8px; margin: 12px 16px; color: var(--brand-petroleum); font-weight: 600; }
.review-confirmed { color: #146b3a; }
.review-error { margin: 12px 16px; padding: 12px; border-radius: 12px; background: #fff0ee; color: #a52636; }
.approval-card { overflow: hidden; transition: background .2s ease, border-color .2s ease; }
.review-saving .task-row { opacity: .85; }
.review-approve-button:disabled { opacity: 1; color: #fff; background: linear-gradient(110deg, #175865, #21754c, #175865); background-size: 220% 100%; animation: approval-fill 1.6s ease-in-out infinite; }
.review-success, .review-leaving { background: #effaf2; box-shadow: inset 3px 0 #23844b; }
.approval-card.review-success > .task-row, .approval-card.review-leaving > .task-row { background: #effaf2; }
.approval-card.review-success .task-row .task-icon, .approval-card.review-leaving .task-row .task-icon { background: #d4f0de; color: #146b3a; }
.review-success .review-approve-button:disabled { background: #187041; animation: none; }
.review-leaving { pointer-events: none; animation: approval-leave .26s ease-in forwards; }
@keyframes approval-fill { 50% { background-position: 100% 0; } }
@keyframes approval-leave { from { max-height: var(--review-card-height, 200px); } to { max-height: 0; margin-bottom: 0; border-width: 0; opacity: 0; transform: translateX(18px) scale(.98); } }
@media (max-width: 580px) { .approval-toolbar { align-items: stretch; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .review-approve-button:disabled, .review-leaving { animation: none; } .approval-card { transition: none; } }
.grid { min-width: 0; display: grid; gap: 18px; }
.dashboard-grid { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); }
.card { min-width: 0; background: var(--card); border: 1px solid #e0e3e7; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-header h2 { font-size: 1.1rem; margin: 0; font-weight: 500; }
.subtle { color: var(--muted); font-size: .875rem; }
.progress-card { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 22px; background: linear-gradient(140deg, #fff 48%, var(--brand-mist)); }
.progress-ring { --progress: 0; width: 138px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--progress)*1%), var(--primary-container) 0); position: relative; }
.progress-ring::before { content: ''; position: absolute; inset: 13px; background: #fff; border-radius: 50%; }
.progress-value { position: relative; text-align: center; }
.progress-value strong { display: block; font-size: 1.85rem; line-height: 1; }
.progress-value span { color: var(--muted); font-size: .75rem; }
.money-estimate { font-size: 2rem; font-weight: 500; letter-spacing: -.03em; margin: 5px 0 7px; }
.threshold { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .85rem; }
.threshold .material-symbols-rounded { font-size: 18px; color: var(--success); }
.task-list { display: grid; gap: 10px; }
.task-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 13px; align-items: center; padding: 12px; border: 1px solid #e0e3e7; border-radius: 18px; background: #fff; }
.task-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--surface-low); color: var(--primary); }
.task-icon .material-symbols-rounded { font-size: 25px; }
.task-title { font-weight: 500; margin-bottom: 3px; }
.task-meta { color: var(--muted); font-size: .8rem; }
.task-criteria { margin-top: 7px; color: var(--muted); font-size: .78rem; }
.task-criteria summary { width: max-content; color: var(--primary); cursor: pointer; font-weight: 500; }
.task-criteria p { max-width: 720px; margin: 7px 0 0; line-height: 1.45; }
.task-action { min-width: 94px; }
.task-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.task-action .material-symbols-rounded { font-size: 19px; }
.task-row.completed { background: #f4fbf5; border-color: #b7dfc0; }
.task-row.completed .task-icon { background: var(--success-bg); color: var(--success); }
.task-row.pending { background: #fff8ef; border-color: #f1c987; }
.task-row.pending .task-icon { background: var(--warning-bg); color: var(--warning); }
.task-row.disputed { background: #fff5f4; border-color: #efb8b4; }
.task-row.disputed .task-icon { background: var(--danger-bg); color: var(--danger); }
.rank-list { display: grid; gap: 18px; }
.rank-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.rank-row .avatar { width: 40px; height: 40px; margin: 0; font-size: .8rem; }
.rank-name { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; margin-bottom: 7px; }
.progress-track { height: 8px; background: var(--surface-high); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: inherit; }
.rank-position { color: var(--muted); font-weight: 700; }
.date-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 18px; }
.date-chip { border: 0; background: transparent; min-height: 64px; border-radius: 16px; cursor: pointer; display: grid; place-items: center; padding: 7px 4px; color: var(--muted); }
.date-chip strong { font-size: 1rem; color: var(--text); }
.date-chip:hover { background: var(--surface-high); }
.date-chip.active { background: var(--primary); color: #fff; }
.date-chip.active strong { color: #fff; }
.date-chip.future { opacity: .42; cursor: default; }
.metric-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.metric { padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid #e0e3e7; }
.metric span { color: var(--muted); font-size: .8rem; }
.metric strong { display: block; font-size: 1.65rem; margin-top: 6px; font-weight: 500; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 0 12px 11px; color: var(--muted); font-size: .75rem; font-weight: 500; }
.admin-table td { padding: 14px 12px; border-top: 1px solid #e0e3e7; vertical-align: middle; }
.admin-table .actions { text-align: right; white-space: nowrap; }
.admin-task-icon-heading { width: 76px; text-align: center !important; }
.admin-task-icon-cell { width: 76px; text-align: center; }
.admin-task-icon-preview { display: inline-grid; width: 58px; height: 58px; place-items: center; border-radius: 18px; color: var(--primary); background: var(--surface-high); }
.admin-task-icon-preview .material-symbols-rounded { font-size: 36px; }
.admin-task-criteria { display: block; max-width: 460px; margin-top: 4px; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.premium-crown { color: #d9a400; font-size: 1rem; line-height: 1; filter: drop-shadow(0 1px 1px rgba(112,76,0,.2)); }
.child-hidden, .profile-history { display: none !important; }
.communication-filters { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto; gap: 12px; align-items: end; margin: 18px 0; }
.communication-history .maria-message { margin-top: 12px; }
.penalty-inline { color: var(--danger); font-size: .72rem; margin-top: 3px; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.admin-overview { min-width: 0; gap: 18px; }
.weekly-matrix-card { min-width: 0; padding: 20px; }
.weekly-matrix-scroll { border: 1px solid #e0e3e7; border-radius: 18px; overflow-x: hidden; }
.weekly-matrix { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.weekly-matrix th, .weekly-matrix td { padding: 7px; border: 0; border-right: 1px solid #e0e3e7; border-top: 1px solid #e0e3e7; vertical-align: top; text-align: left; }
.weekly-matrix tr > :last-child { border-right: 0; }
.weekly-matrix thead th { height: 58px; border-top: 0; color: var(--muted); background: #fff; text-align: center; font-size: .75rem; font-weight: 500; }
.weekly-matrix thead th:not(.matrix-person-column) { width: auto; }
.weekly-matrix thead th span, .weekly-matrix thead th strong { display: block; }
.weekly-matrix thead th strong { margin-top: 3px; color: var(--text); font-size: 1rem; }
.weekly-matrix .today { background: var(--brand-mist); }
.weekly-matrix thead .today { color: var(--primary); box-shadow: inset 0 -3px var(--primary); }
.weekly-matrix .matrix-person-column { position: sticky; left: 0; z-index: 3; width: 136px; min-width: 136px; background: #fff; }
.weekly-matrix thead .matrix-person-column { z-index: 5; text-align: left; vertical-align: middle; }
.matrix-person { display: flex; align-items: center; gap: 10px; padding: 4px 2px; }
.matrix-person .avatar { width: 38px; height: 38px; flex: 0 0 38px; margin: 0; font-size: .78rem; }
.matrix-person strong, .matrix-person span { display: block; }
.matrix-person .avatar { display: grid; place-items: center; color: #fff; }
.matrix-person strong { font-size: .9rem; }
.matrix-person span { margin-top: 3px; color: var(--primary); font-size: .75rem; font-weight: 500; }
.matrix-day-cell { height: 182px; padding: 6px !important; }
.matrix-day-tasks { min-height: 118px; display: grid; grid-auto-rows: 54px; align-content: start; gap: 6px; }
.matrix-task-card { width: 100%; height: 54px; min-height: 54px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: center; overflow: hidden; padding: 5px 8px 5px 6px; border: 1px solid #b7dfc0; border-radius: 12px; background: #f4fbf5; color: var(--text); text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(60,64,67,.05); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.matrix-task-card:hover { border-color: var(--success); box-shadow: 0 5px 14px rgba(30,94,48,.12); transform: translateY(-1px); }
.matrix-task-card:focus-visible { outline: 3px solid var(--brand-turquoise); outline-offset: 1px; }
.matrix-task-card.pending, .matrix-task-card.in_progress { border-color: #f1c987; background: #fff8ef; }
.matrix-task-card.disputed, .matrix-task-card.rejected { border-color: #efb8b4; background: #fff5f4; }
.matrix-task-leading { align-self: stretch; display: grid; grid-template-rows: 27px 14px; align-content: center; justify-items: center; gap: 1px; }
.matrix-task-card > strong { min-width: 0; display: -webkit-box; overflow: hidden; font-size: .72rem; line-height: 1.18; overflow-wrap: normal; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.matrix-task-card-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-container); }
.matrix-task-card-icon .material-symbols-rounded { font-size: 16px; }
.matrix-task-points { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 1px; color: var(--success); font-size: .61rem; line-height: 1; font-weight: 800; white-space: nowrap; }
.matrix-task-card.pending .matrix-task-points, .matrix-task-card.in_progress .matrix-task-points { color: var(--warning); }
.matrix-task-card.disputed .matrix-task-points, .matrix-task-card.rejected .matrix-task-points { color: var(--danger); }
.matrix-task-points .material-symbols-rounded { font-size: 10px; }
.matrix-task-points small { font-size: .48rem; font-weight: 800; }
.matrix-day-total { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #dfe3e8; color: var(--muted); font-size: .7rem; }
.matrix-day-total strong { color: var(--text); font-size: .78rem; white-space: nowrap; }
.matrix-empty { align-self: center; justify-self: center; color: var(--outline); font-size: .75rem; }
.matrix-mobile-day { display: none; }
.badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 500; }
.badge.success { color: var(--success); background: var(--success-bg); }
.badge.warning { color: var(--warning); background: var(--warning-bg); }
.badge.danger { color: var(--danger); background: var(--danger-bg); }
.badge.neutral { color: #3c4043; background: var(--surface-high); }
.settings-list { display: grid; gap: 14px; }
.settings-row { display: grid; grid-template-columns: 1fr repeat(3, minmax(110px, 150px)); gap: 14px; align-items: end; padding: 16px; background: var(--surface-low); border-radius: 18px; }
.settings-row .avatar-name { display: flex; align-items: center; gap: 10px; font-weight: 500; align-self: center; }
.settings-row .avatar { width: 38px; height: 38px; margin: 0; font-size: .8rem; }
.settings-row .field { margin: 0; }
.settings-row input { min-height: 44px; }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .material-symbols-rounded { font-size: 42px; color: var(--outline); margin-bottom: 8px; }
.user-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.user-card { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; border: 1px solid #e0e3e7; border-radius: 18px; padding: 13px; }
.user-card .avatar { width: 44px; height: 44px; margin: 0; }
.user-card strong, .user-card span { display: block; }
.user-card .avatar { display: grid; place-items: center; color: #fff; }
.user-card span { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.user-dialog-profile { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 16px; border-radius: 16px; background: var(--surface-low); font-weight: 500; }
.user-dialog-profile .avatar { margin: 0; }
.field-hint { color: var(--muted); font-size: .75rem; }
.timeline { display: grid; }
.timeline-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 13px; align-items: center; padding: 14px 0; border-bottom: 1px solid #e0e3e7; }
.timeline-item:last-child { border-bottom: 0; }
.timeline-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-low); color: var(--primary); }
.timeline-item p { color: var(--muted); margin: 3px 0 0; font-size: .8rem; }
.timeline-item time { color: var(--muted); font-size: .8rem; }
.approval-card { border: 1px solid #e0e3e7; border-radius: 20px; overflow: hidden; margin-bottom: 14px; }
.approval-card .task-row { border: 0; border-radius: 0; }
.approval-actions { display: flex; align-items: center; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; padding: 0 16px 16px 72px; background: #fff8ef; }
.evidence-grid figure { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #e0e3e7; }
.evidence-photo { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--surface-high); }
.evidence-loading { display: grid; justify-items: center; gap: 8px; padding: 14px; color: var(--muted); text-align: center; font-size: .78rem; }
.evidence-loading .material-symbols-rounded { font-size: 30px; }
.completion-detail-dialog .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; background: transparent; }
.completion-detail-dialog .evidence-grid figure { border-radius: 18px; box-shadow: 0 5px 18px rgba(27,54,62,.07); }
.completion-detail-dialog .evidence-photo { aspect-ratio: 16/10; }
.completion-detail-dialog .evidence-interval { padding: 12px 2px 0; background: transparent; }
.completion-detail-dialog .evidence-grid code { display: none; }
.evidence-photo img { width: 100%; height: 100%; object-fit: cover; }
.expired-photo { display: grid; justify-items: center; gap: 7px; text-align: center; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.expired-photo .material-symbols-rounded { color: var(--primary); font-size: 30px; }
.evidence-grid figcaption { display: grid; gap: 3px; padding: 9px; font-size: .75rem; }
.evidence-grid figcaption span { color: var(--muted); }
.evidence-grid code { color: var(--muted); font-size: .68rem; }
.evidence-interval { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0 16px 14px 72px; color: var(--warning); background: #fff8ef; font-size: .8rem; }
.camera-guide { display: grid; justify-items: center; text-align: center; padding: 22px; border-radius: 20px; background: var(--primary-container); margin-bottom: 18px; }
.camera-guide .material-symbols-rounded { font-size: 42px; color: var(--primary); margin-bottom: 8px; }
.camera-guide span { color: var(--muted); font-size: .85rem; margin-top: 5px; max-width: 340px; }
.camera-input { height: auto !important; padding: 12px !important; }
.photo-preview { min-height: 180px; max-height: 340px; border-radius: 18px; overflow: hidden; background: #111; display: grid; place-items: center; margin-bottom: 14px; }
.photo-preview img { width: 100%; max-height: 340px; object-fit: contain; }
.photo-preview.empty-preview { background: var(--surface-low); color: var(--muted); align-content: center; gap: 5px; }
.photo-preview.empty-preview .material-symbols-rounded { font-size: 40px; }
.privacy-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; }
.privacy-note .material-symbols-rounded { font-size: 18px; }
.danger-text { color: var(--danger); }
.switch-row { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 14px; margin: 4px 0 16px; border-radius: 16px; background: var(--surface-low); cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-control { width: 42px; height: 24px; border-radius: 999px; background: #777; position: relative; transition: .18s ease; }
.switch-control::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .18s ease; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch-row input:checked + .switch-control { background: var(--primary); }
.switch-row input:checked + .switch-control::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch-control { outline: 3px solid var(--brand-turquoise); outline-offset: 2px; }
.switch-row strong, .switch-row small { display: block; }
.switch-row small { color: var(--muted); margin-top: 3px; line-height: 1.35; }
.settings-sections { gap: 18px; }
.penalty-card { display: grid; grid-template-columns: 1fr minmax(140px, 190px); gap: 24px; align-items: center; }
.penalty-card h2 { font-size: 1.1rem; margin: 0 0 5px; }
.penalty-card p { color: var(--muted); margin: 0; max-width: 620px; }
.penalty-card .field { margin: 0; }
.settings-icon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--danger); background: var(--danger-bg); margin-bottom: 10px; }
.device-card { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; background: linear-gradient(135deg, #fff 45%, var(--brand-mist)); }
.device-card-icon { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; color: var(--primary); background: var(--primary-container); }
.device-card-icon .material-symbols-rounded { font-size: 29px; }
.device-card h2 { margin: 2px 0 5px; font-size: 1.05rem; font-weight: 500; }
.device-card p { margin: 0 0 13px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.device-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.device-actions .material-symbols-rounded { font-size: 19px; }
.device-note { display: block; margin-top: 9px; color: var(--muted); font-size: .74rem; }
.completion-detail-backdrop { background: rgba(20,31,38,.48); backdrop-filter: blur(7px); }
.dialog.completion-detail-dialog { width: min(100%, 680px); max-height: min(900px, calc(100vh - 32px)); padding: 0; border: 1px solid rgba(255,255,255,.65); border-radius: 30px; overflow-x: hidden; }
.completion-detail-header { margin: 0; padding: 18px 20px 14px 24px; }
.completion-detail-owner { min-width: 0; display: flex; align-items: center; gap: 10px; }
.completion-detail-owner .avatar { width: 38px; height: 38px; flex: 0 0 38px; margin: 0; font-size: .72rem; }
.completion-detail-owner span, .completion-detail-owner strong { display: block; }
.completion-detail-owner div > span { margin-bottom: 2px; color: var(--muted); font-size: .68rem; }
.completion-detail-owner strong { overflow: hidden; font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.completion-detail-hero { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 17px; margin: 0 18px; padding: 21px; border-radius: 22px; background: linear-gradient(135deg, #eaf2ff, #f6f9ff); }
.completion-detail-hero.success { background: linear-gradient(135deg, #e2f5e7, #f7fcf8); }
.completion-detail-hero.warning { background: linear-gradient(135deg, #fff0d9, #fffaf2); }
.completion-detail-hero.danger { background: linear-gradient(135deg, #fde4e2, #fff8f7); }
.completion-detail-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 19px; color: var(--primary); background: rgba(255,255,255,.9); box-shadow: 0 7px 20px rgba(48,73,97,.1); }
.completion-detail-hero.success .completion-detail-icon { color: var(--success); }
.completion-detail-hero.warning .completion-detail-icon { color: var(--warning); }
.completion-detail-hero.danger .completion-detail-icon { color: var(--danger); }
.completion-detail-icon .material-symbols-rounded { font-size: 31px; }
.completion-detail-kicker { display: block; margin-bottom: 4px; color: var(--muted); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.completion-detail-hero h2 { margin: 0 0 9px; font-size: 1.48rem; font-weight: 650; line-height: 1.16; letter-spacing: -.025em; }
.completion-status-pill { width: max-content; max-width: 100%; min-height: 27px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border-radius: 999px; color: var(--primary-dark); background: rgba(255,255,255,.72); font-size: .66rem; font-weight: 700; }
.completion-status-pill .material-symbols-rounded { font-size: 15px; }
.completion-detail-hero.success .completion-status-pill { color: var(--success); }
.completion-detail-hero.warning .completion-status-pill { color: var(--warning); }
.completion-detail-hero.danger .completion-status-pill { color: var(--danger); }
.completion-detail-facts { display: grid; grid-template-columns: 1.6fr .8fr .75fr; gap: 8px; padding: 14px 18px 0; }
.completion-detail-facts article { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px; padding: 11px; border: 1px solid #e4e8ec; border-radius: 15px; background: #fff; }
.completion-detail-facts article > .material-symbols-rounded { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--primary); background: var(--primary-container); font-size: 17px; }
.completion-detail-facts span, .completion-detail-facts strong { display: block; }
.completion-detail-facts span { margin-bottom: 2px; color: var(--muted); font-size: .61rem; }
.completion-detail-facts strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.completion-detail-facts article.success > .material-symbols-rounded, .completion-detail-facts article.success strong { color: var(--success); }
.completion-detail-facts article.warning > .material-symbols-rounded, .completion-detail-facts article.warning strong { color: var(--warning); }
.completion-detail-facts article.danger > .material-symbols-rounded, .completion-detail-facts article.danger strong { color: var(--danger); }
.completion-detail-criteria { margin: 14px 18px 0; padding: 13px 15px; border-radius: 15px; background: var(--surface-low); }
.completion-detail-criteria > span { display: flex; align-items: center; gap: 6px; color: #3c4043; font-size: .68rem; font-weight: 700; }
.completion-detail-criteria .material-symbols-rounded { color: var(--primary); font-size: 17px; }
.completion-detail-criteria p { margin: 6px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.45; }
.completion-evidence { margin: 18px 18px 0; padding-top: 17px; border-top: 1px solid #e4e8ec; }
.completion-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.completion-section-heading .eyebrow { margin-bottom: 2px; font-size: .6rem; }
.completion-section-heading h3 { margin: 0; font-size: .94rem; }
.evidence-requirement { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .62rem; }
.evidence-requirement .material-symbols-rounded { font-size: 14px; }
.completion-evidence-empty { min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed #cbd2d8; border-radius: 16px; color: var(--muted); background: #fafbfc; }
.completion-evidence-empty > .material-symbols-rounded { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-container); }
.completion-evidence-empty strong, .completion-evidence-empty span { display: block; }
.completion-evidence-empty strong { color: var(--text); font-size: .75rem; }
.completion-evidence-empty span { margin-top: 3px; font-size: .67rem; line-height: 1.4; }
.completion-review-note { display: flex; align-items: center; gap: 10px; margin: 14px 18px 0; padding: 11px 13px; border-radius: 14px; color: #684000; background: #fff5e6; }
.completion-review-note > .material-symbols-rounded { font-size: 22px; }
.completion-review-note strong, .completion-review-note span { display: block; }
.completion-review-note strong { font-size: .7rem; }
.completion-review-note span { margin-top: 2px; color: #7a6544; font-size: .63rem; }
.completion-detail-actions { position: sticky; bottom: 0; z-index: 3; align-items: center; margin: 0; padding: 15px 18px 18px; border-top: 1px solid rgba(224,227,231,.8); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.completion-detail-actions > div { display: flex; justify-content: flex-end; gap: 8px; }
.completion-detail-actions .primary-button, .completion-detail-actions .secondary-button { min-height: 42px; font-size: .76rem; }
.completion-detail-actions .material-symbols-rounded { font-size: 18px; }

.dialog-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(31,31,31,.38); backdrop-filter: blur(3px); }
.dialog { width: min(100%, 560px); max-height: min(780px, calc(100vh - 40px)); overflow: auto; background: #fff; border-radius: 28px; box-shadow: 0 18px 60px rgba(0,0,0,.23); padding: 24px; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.dialog-header h2 { margin: 0; font-size: 1.35rem; font-weight: 500; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.task-source-dialog { width: min(100%, 720px); }
.task-template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.task-template-card { min-width: 0; border: 1px solid var(--outline); border-radius: 16px; background: var(--surface); padding: 14px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; color: var(--on-surface); text-align: left; cursor: pointer; }
.task-template-card:hover { border-color: var(--primary); background: var(--primary-container); }
.task-template-card > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.task-template-card strong, .task-template-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-template-card small { color: var(--on-surface-variant); }
.task-template-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--primary); background: var(--primary-container); }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.check-option { min-height: 46px; border: 1px solid var(--outline); border-radius: 14px; display: flex; align-items: center; gap: 9px; padding: 0 12px; }
.check-option:has(input:checked) { border: 2px solid var(--primary); background: var(--brand-mist); padding: 0 11px; }
.toast-region { position: fixed; z-index: 80; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: #303134; color: #fff; border-radius: 10px; padding: 13px 17px; box-shadow: 0 6px 20px rgba(0,0,0,.22); animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.mobile-nav { display: none; }

@media (max-width: 1100px) {
  .admin-shell .layout { width: min(100% - 28px, 980px); grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
  .weekly-matrix-card { padding: 18px; }
  .weekly-matrix-scroll { border: 0; border-radius: 0; overflow: visible; }
  .weekly-matrix, .weekly-matrix tbody { display: block; width: 100%; }
  .weekly-matrix thead { display: none; }
  .weekly-matrix tbody { display: grid; gap: 14px; }
  .weekly-matrix tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e0e3e7; border-radius: 18px; background: #fff; }
  .weekly-matrix .matrix-person-column { position: static; grid-column: 1 / -1; width: auto; min-width: 0; padding: 11px; border: 0; border-bottom: 1px solid #e0e3e7; background: var(--surface-low); }
  .matrix-day-cell { display: block; height: auto; min-width: 0; padding: 10px !important; border-top: 0 !important; border-right: 1px solid #e0e3e7 !important; border-bottom: 1px solid #e0e3e7 !important; }
  .matrix-day-cell:nth-child(odd) { border-right: 0 !important; }
  .matrix-mobile-day { display: flex; align-items: baseline; gap: 5px; margin-bottom: 9px; color: var(--muted); font-size: .75rem; }
  .matrix-mobile-day strong { color: var(--text); font-size: 1rem; }
  .matrix-day-tasks { min-height: 88px; grid-template-columns: 1fr; }
  .matrix-day-total { font-size: .75rem; }
}

@media (max-width: 820px) {
  .topbar { height: 64px; padding: 0 16px; }
  .topbar-logo > span:last-child, .week-pill, .user-menu > span:last-child { display: none; }
  .user-menu > span:not(.avatar):not(.material-symbols-rounded) { display: none; }
  .layout { width: min(100% - 28px, 680px); display: block; padding: 20px 0 96px; }
  .side-nav { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .progress-card { grid-template-columns: 120px 1fr; }
  .progress-ring { width: 116px; }
  .mobile-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.96); border-top: 1px solid #e0e3e7; padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); backdrop-filter: blur(14px); }
  .mobile-nav .nav-item { min-height: 58px; border-radius: 16px; padding: 5px; display: grid; justify-items: center; gap: 2px; font-size: .7rem; }
  .mobile-nav .material-symbols-rounded { font-size: 23px; }
  .settings-row { grid-template-columns: 1fr 1fr; }
  .settings-row .avatar-name { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-nav:has(.nav-item:nth-child(5)) { grid-auto-columns: minmax(76px, 1fr); overflow-x: auto; justify-content: start; }
  .weekly-matrix-card { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 540px) {
  .login-card { padding: 26px 22px; border-radius: 26px; }
  .page-heading { align-items: start; flex-direction: column; }
  .card { padding: 18px; border-radius: 21px; }
  .progress-card { grid-template-columns: 1fr; text-align: center; }
  .progress-ring { margin: 0 auto; }
  .threshold { justify-content: center; }
  .task-row { grid-template-columns: 42px 1fr; }
  .task-icon { width: 42px; height: 42px; }
  .task-actions { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; }
  .task-actions .task-action { width: 100%; }
  .date-strip { gap: 3px; }
  .date-chip { min-height: 58px; font-size: .7rem; }
  .metric-grid { grid-template-columns: 1fr; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
  .admin-table thead { display: none; }
  .admin-table tr { position: relative; min-height: 84px; border-top: 1px solid #e0e3e7; padding: 13px 0 13px 76px; }
  .admin-table td { border: 0; padding: 3px 0; }
  .admin-table .actions { text-align: left; padding-top: 10px; }
  .admin-table .admin-task-icon-cell { position: absolute; top: 13px; left: 0; width: 62px; padding: 0; }
  .settings-row { grid-template-columns: 1fr; }
  .settings-row .avatar-name { grid-column: auto; }
  .penalty-card { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid.five-profiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .evidence-grid { grid-template-columns: 1fr 1fr; padding: 0 12px 12px; }
  .evidence-interval { padding: 0 12px 12px; }
  .approval-actions { grid-column: 1 / -1; width: 100%; justify-content: flex-end; }
  .timeline-item { grid-template-columns: 38px 1fr; }
  .timeline-item time { grid-column: 2; }
  .device-card { grid-template-columns: 1fr; }
  .device-actions { display: grid; }
  .communication-filters { grid-template-columns: 1fr 1fr; }
  .communication-filters > button { grid-column: 1 / -1; width: 100%; }
  .device-actions .secondary-button { width: 100%; }
  .weekly-matrix tbody tr { grid-template-columns: 1fr; }
  .matrix-day-cell { border-right: 0 !important; }
  .completion-detail-backdrop { align-items: end; padding: 8px; }
  .dialog.completion-detail-dialog { max-height: calc(100vh - 16px); border-radius: 25px; }
  .completion-detail-header { padding: 14px 13px 10px 17px; }
  .completion-detail-hero { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; margin: 0 10px; padding: 16px; border-radius: 18px; }
  .completion-detail-icon { width: 50px; height: 50px; border-radius: 15px; }
  .completion-detail-icon .material-symbols-rounded { font-size: 26px; }
  .completion-detail-hero h2 { font-size: 1.18rem; }
  .completion-detail-facts { grid-template-columns: 1fr 1fr; padding: 10px 10px 0; }
  .completion-detail-facts article:first-child { grid-column: 1 / -1; }
  .completion-detail-criteria, .completion-evidence, .completion-review-note { margin-left: 10px; margin-right: 10px; }
  .completion-detail-dialog .evidence-grid { grid-template-columns: 1fr; }
  .completion-detail-dialog .evidence-photo { aspect-ratio: 16/9; }
  .completion-detail-actions { display: grid; padding: 14px 10px 10px; }
  .completion-detail-actions > .text-button { order: 2; }
  .completion-detail-actions > div { display: grid; }
  .completion-detail-actions .primary-button, .completion-detail-actions .secondary-button { width: 100%; }
}

/* Multi-tenant household setup */
.household-gate { max-width: 560px; text-align: left; }
.household-gate .login-logo { display: block; margin: 0 auto; }
.household-gate details, .household-invite { margin-top: 24px; }
.household-gate summary { cursor: pointer; padding: 16px 0; font-weight: 700; }
.household-list { display: grid; gap: 12px; margin: 20px 0; }
.household-invite form { max-width: 540px; }
.household-invite .check-option, .household-gate .check-option { margin: 16px 0; align-items: flex-start; }
.household-invitation { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e3e7ed; }
.household-invitation p, .household-switch { overflow-wrap: anywhere; }
.household-error { color: #a42121; padding: 12px; background: #fff0f0; border-radius: 12px; }
.household-switch { max-width: 240px; }
@media (max-width: 600px) { .household-switch { max-width: 125px; font-size: 12px; } .household-invitation { align-items: flex-start; } }

.household-switch { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; }
.household-switch span:not(.material-symbols-rounded) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  .task-template-grid { grid-template-columns: 1fr; }
  .household-switch { flex: 0 0 40px; width: 40px; min-width: 40px; padding: 8px; }
  .household-switch span:not(.material-symbols-rounded) { display: none; }
}

/* Minkai startup landing */
.startup-landing, .invite-entry, .account-gate, .gate-loading { --startup-ink: var(--brand-petroleum); --startup-muted: var(--brand-muted); --startup-green: var(--brand-petroleum); --startup-green-dark: var(--brand-petroleum-dark); --startup-mint: var(--brand-mist); --startup-coral: var(--brand-coral); --startup-cream: var(--brand-ivory); font-family: Manrope, Roboto, sans-serif; color: var(--startup-ink); }
.startup-landing { min-height: 100vh; overflow: hidden; background: var(--startup-cream); }
.startup-nav { width: min(1180px, calc(100% - 48px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; z-index: 5; }
.startup-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--startup-ink); text-decoration: none; font-size: 1.24rem; font-weight: 800; letter-spacing: -.045em; }
.startup-brand > span:last-child > span { color: var(--startup-green); }
.startup-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px 12px 12px 4px; background: var(--startup-green); color: #fff; box-shadow: 0 8px 20px rgba(8,127,106,.22); }
.startup-brand-mark .material-symbols-rounded { font-size: 23px; font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24; }
.startup-nav-links { display: flex; align-items: center; gap: 28px; }
.startup-nav-links a { color: var(--startup-muted); text-decoration: none; font-size: .88rem; font-weight: 600; }
.startup-nav-links a:hover { color: var(--startup-green); }
.startup-nav-login { min-height: 42px; border: 1px solid rgba(20,36,58,.18); border-radius: 999px; padding: 0 19px; background: transparent; color: var(--startup-ink); cursor: pointer; font: 700 .86rem Manrope, sans-serif; }
.startup-nav-login:hover { border-color: var(--startup-green); color: var(--startup-green); background: #fff; }
.startup-hero { width: min(1180px, calc(100% - 48px)); min-height: 660px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr); align-items: center; gap: clamp(42px, 7vw, 90px); padding: 62px 0 92px; }
.startup-hero-copy { position: relative; z-index: 2; }
.startup-kicker { display: flex; align-items: center; gap: 9px; color: var(--startup-green); font-size: .72rem; font-weight: 800; letter-spacing: .095em; line-height: 1.4; text-transform: uppercase; }
.startup-kicker > span { width: 23px; height: 2px; border-radius: 2px; background: var(--startup-coral); }
.startup-hero h1 { max-width: 620px; margin: 20px 0 25px; font-size: clamp(3rem, 5.2vw, 5rem); line-height: .99; letter-spacing: -.065em; font-weight: 800; }
.startup-hero h1 em { display: block; color: var(--startup-green); font-style: normal; }
.startup-hero-copy > p { max-width: 560px; color: var(--startup-muted); font-size: 1.07rem; line-height: 1.75; }
.startup-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.startup-button { min-height: 52px; border: 0; border-radius: 14px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font: 700 .9rem Manrope, sans-serif; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.startup-button:hover { transform: translateY(-2px); }
.startup-button .material-symbols-rounded { font-size: 20px; }
.startup-button-primary { background: var(--startup-green); color: #fff; box-shadow: 0 12px 26px rgba(8,127,106,.2); }
.startup-button-primary:hover { background: var(--startup-green-dark); box-shadow: 0 15px 32px rgba(8,127,106,.28); }
.startup-button-quiet { background: transparent; color: var(--startup-ink); border: 1px solid rgba(20,36,58,.16); }
.startup-button-quiet:hover { background: #fff; border-color: rgba(20,36,58,.3); }
.startup-trust { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: #778493; font-size: .72rem; font-weight: 600; }
.startup-trust .material-symbols-rounded { color: var(--startup-green); font-size: 16px; }
.startup-trust > span:not(.material-symbols-rounded) { width: 3px; height: 3px; border-radius: 50%; background: #a7afb8; }
.product-preview { min-width: 0; position: relative; padding: 32px 16px 34px 34px; }
.preview-glow { position: absolute; width: 470px; height: 470px; right: -50px; top: -30px; border-radius: 50%; background: #e1eee5; }
.preview-glow::before { content: ''; position: absolute; inset: 50px -20px -40px 80px; border-radius: 50%; background: #fde7df; opacity: .8; filter: blur(14px); }
.preview-window { position: relative; z-index: 1; min-height: 490px; padding: 24px; border: 1px solid rgba(20,36,58,.08); border-radius: 26px; background: rgba(255,255,255,.96); box-shadow: 0 30px 70px rgba(27,54,62,.16); transform: rotate(1.5deg); }
.preview-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid #edf0ec; }
.preview-mini-brand { display: flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 800; }
.preview-mini-brand .material-symbols-rounded { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px 8px 8px 3px; background: var(--startup-green); color: #fff; font-size: 16px; }
.preview-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #f9d9ce; color: #9b4233; font-size: .65rem; font-weight: 800; }
.preview-greeting { display: grid; gap: 4px; padding: 22px 3px 16px; }
.preview-greeting span { color: var(--startup-muted); font-size: .72rem; }
.preview-greeting strong { font-size: 1.25rem; letter-spacing: -.035em; }
.preview-progress { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 17px; padding: 17px; border-radius: 18px; background: #edf7f3; }
.preview-ring { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--startup-green) 78%, #c9ded8 0); }
.preview-ring span { font-size: 1.14rem; font-weight: 800; }
.preview-ring small { font-size: .6rem; }
.preview-progress > div:last-child { min-width: 0; display: grid; gap: 3px; }
.preview-progress > div:last-child > span, .preview-progress small { color: var(--startup-muted); font-size: .62rem; }
.preview-progress strong { font-size: .92rem; }
.preview-progress small { color: var(--startup-green); font-weight: 700; }
.preview-tasks { display: grid; gap: 8px; margin-top: 14px; }
.preview-tasks > div { min-width: 0; display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #edf0ec; border-radius: 14px; }
.task-check { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: #f3f3ef; color: #87919b; }
.task-check.done { background: var(--startup-green); color: #fff; }
.task-check .material-symbols-rounded { font-size: 18px; }
.preview-tasks p { min-width: 0; margin: 0; display: grid; gap: 2px; }
.preview-tasks strong { overflow: hidden; color: var(--startup-ink); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.preview-tasks small { color: var(--startup-muted); font-size: .56rem; }
.preview-tasks b { color: var(--startup-green); font-size: .66rem; }
.preview-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(20,36,58,.07); background: #fff; box-shadow: 0 17px 40px rgba(27,54,62,.16); }
.preview-float > .material-symbols-rounded { display: grid; place-items: center; }
.preview-float div { display: grid; gap: 1px; }
.preview-float small { color: var(--startup-muted); font-size: .58rem; }
.preview-float strong { font-size: .82rem; }
.preview-float-pay { left: -6px; bottom: 1px; padding: 13px 17px; border-radius: 15px; }
.preview-float-pay > .material-symbols-rounded { width: 35px; height: 35px; border-radius: 11px; background: #fee7df; color: #c94e3a; }
.preview-float-streak { right: -24px; top: 70px; padding: 11px 14px; border-radius: 15px; }
.preview-float-streak > .material-symbols-rounded { color: var(--startup-coral); }
.startup-value { background: #fff; padding: 112px max(24px, calc((100vw - 1180px)/2)); }
.startup-section-heading { display: grid; grid-template-columns: 1.05fr .95fr; column-gap: 80px; align-items: end; }
.startup-section-heading .startup-kicker { grid-column: 1 / -1; margin-bottom: 20px; }
.startup-section-heading h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.055em; }
.startup-section-heading > p { max-width: 500px; margin: 0 0 4px; color: var(--startup-muted); line-height: 1.7; }
.startup-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 62px; }
.startup-feature-grid article { padding: 30px; border: 1px solid #e9ece8; border-radius: 22px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.startup-feature-grid article:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(26,48,55,.09); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 27px; border-radius: 15px; }
.feature-icon.mint { color: var(--startup-green); background: var(--startup-mint); }
.feature-icon.coral { color: #c94e3a; background: #fee7df; }
.feature-icon.violet { color: #6657ad; background: #eeebfa; }
.startup-feature-grid h3, .startup-steps h3 { margin-bottom: 10px; font-size: 1rem; letter-spacing: -.02em; }
.startup-feature-grid p, .startup-steps p { margin: 0; color: var(--startup-muted); font-size: .84rem; line-height: 1.7; }
.startup-how { padding: 112px max(24px, calc((100vw - 1180px)/2)); background: var(--startup-cream); }
.startup-section-heading.centered { display: block; text-align: center; }
.startup-section-heading.centered .startup-kicker { justify-content: center; }
.startup-section-heading.centered h2 { max-width: 720px; margin: 0 auto; }
.startup-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 70px; }
.startup-steps article { min-height: 240px; position: relative; padding: 34px 44px; border-left: 1px solid rgba(20,36,58,.13); }
.startup-steps article:last-child { border-right: 1px solid rgba(20,36,58,.13); }
.startup-steps article > b { position: absolute; right: 25px; top: 25px; color: rgba(20,36,58,.1); font-size: 2.7rem; line-height: 1; }
.startup-steps article > .material-symbols-rounded { width: 51px; height: 51px; display: grid; place-items: center; margin-bottom: 35px; border-radius: 15px; background: var(--startup-ink); color: #fff; }
.startup-access { width: min(1180px, calc(100% - 48px)); margin: 80px auto; padding: 66px 70px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; border-radius: 28px; background: var(--startup-green); color: #fff; overflow: hidden; position: relative; }
.startup-access::after { content: ''; position: absolute; width: 280px; height: 280px; right: -100px; bottom: -150px; border: 55px solid rgba(255,255,255,.08); border-radius: 50%; }
.startup-kicker.light { color: #c9f0e6; }
.startup-kicker.light > span { background: #ffc3b5; }
.startup-access h2 { max-width: 600px; margin: 18px 0 0; font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.08; letter-spacing: -.05em; }
.startup-access-actions { position: relative; z-index: 1; display: grid; gap: 18px; }
.startup-access-actions > div { display: grid; gap: 7px; }
.startup-access-actions span { font-size: .7rem; opacity: .75; }
.startup-button-light { justify-content: space-between; background: #fff; color: var(--startup-ink); }
.startup-button-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.startup-footer { width: min(1180px, calc(100% - 48px)); min-height: 130px; margin: 0 auto; display: flex; align-items: center; gap: 32px; border-top: 1px solid rgba(20,36,58,.1); }
.startup-footer p { flex: 1; margin: 0; color: var(--startup-muted); font-size: .76rem; }
.startup-footer > a:last-child { color: var(--startup-muted); font-size: .72rem; }
.invite-entry, .account-gate, .gate-loading { min-height: 100vh; background: var(--startup-cream); }
.startup-nav-badge { padding: 8px 12px; border-radius: 999px; background: var(--startup-mint); color: var(--startup-green); font-size: .68rem; font-weight: 800; }
.invite-entry { background: radial-gradient(circle at 10% 80%, #e4f2ec, transparent 34%), radial-gradient(circle at 90% 15%, #fee8df, transparent 30%), var(--startup-cream); }
.invite-entry-card, .account-invite-panel { width: min(100% - 40px, 490px); margin: 60px auto 100px; padding: 48px; border: 1px solid rgba(20,36,58,.08); border-radius: 28px; background: rgba(255,255,255,.96); box-shadow: 0 26px 70px rgba(27,54,62,.12); text-align: center; }
.invite-entry-icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 28px; border-radius: 20px 20px 20px 7px; background: var(--startup-mint); color: var(--startup-green); }
.invite-entry-icon .material-symbols-rounded { font-size: 32px; }
.invite-entry-card .eyebrow, .account-invite-panel .eyebrow { font-family: Manrope, sans-serif; }
.invite-entry-card h1, .account-invite-panel h1 { margin: 12px 0 16px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -.055em; }
.invite-entry-card > p, .account-invite-panel > p { color: var(--startup-muted); line-height: 1.7; }
.invite-safety { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0; padding: 14px; border-radius: 13px; background: #f3f6f3; color: var(--startup-muted); text-align: left; font-size: .68rem; line-height: 1.5; }
.invite-safety .material-symbols-rounded { color: var(--startup-green); font-size: 18px; }
.startup-text-link { min-height: 40px; border: 0; background: transparent; color: var(--startup-green); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font: 700 .78rem Manrope, sans-serif; text-decoration: none; }
.account-gate-inner { width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 100px; }
.account-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.account-heading h1 { margin: 15px 0 8px; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.06em; }
.account-heading p { margin: 0; color: var(--startup-muted); }
.account-options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.account-options.single-option { grid-template-columns: minmax(0, 560px); justify-content: center; }
.account-option { min-width: 0; padding: 35px; border: 1px solid rgba(20,36,58,.09); border-radius: 24px; background: #fff; }
.account-option.new { background: #eef7f3; border-color: #d6eae3; }
.account-option-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 15px; background: var(--startup-ink); color: #fff; }
.account-option.new .account-option-icon { background: var(--startup-green); }
.account-option h2 { margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -.03em; }
.account-option > p { color: var(--startup-muted); font-size: .82rem; line-height: 1.6; }
.account-empty { min-height: 142px; display: grid; place-items: center; align-content: center; gap: 10px; margin-top: 26px; padding: 20px; border: 1px dashed #cfd7d4; border-radius: 16px; color: var(--startup-muted); text-align: center; }
.account-empty p { max-width: 340px; margin: 0; font-size: .74rem; line-height: 1.55; }
.account-empty .material-symbols-rounded { color: var(--startup-green); }
.account-option details { margin-top: 24px; }
.account-option summary { min-height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; list-style: none; border-radius: 14px; background: var(--startup-green); color: #fff; cursor: pointer; font-size: .78rem; font-weight: 800; }
.account-option summary::-webkit-details-marker { display: none; }
.account-option details[open] summary { margin-bottom: 22px; }
.account-option details[open] summary .material-symbols-rounded { transform: rotate(180deg); }
.account-option .check-option { margin: 16px 0; color: var(--startup-muted); font-size: .74rem; line-height: 1.5; }
.household-entry { width: 100%; min-height: 67px; display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 14px; border: 1px solid #e1e7e3; border-radius: 14px; background: #fff; color: var(--startup-ink); cursor: pointer; text-align: left; }
.household-entry:hover { border-color: var(--startup-green); box-shadow: 0 8px 22px rgba(8,127,106,.09); }
.household-entry > .material-symbols-rounded:first-child { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: var(--startup-mint); color: var(--startup-green); }
.household-entry > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.household-entry strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.household-entry small { color: var(--startup-muted); font-size: .63rem; }
.household-entry > .material-symbols-rounded:last-child { color: var(--startup-muted); font-size: 19px; }
.account-invite-note { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 22px; border: 1px solid rgba(20,36,58,.08); border-radius: 16px; background: rgba(255,255,255,.66); }
.account-invite-note > .material-symbols-rounded { color: var(--startup-coral); }
.account-invite-note p { margin: 0; color: var(--startup-muted); font-size: .74rem; line-height: 1.5; }
.account-invite-note strong { color: var(--startup-ink); }
.account-invite-panel { margin-top: 18px; }
.account-invite-panel .startup-text-link { width: 100%; }
.gate-loading { display: grid; place-items: center; padding: 30px; text-align: center; }
.gate-loading section { display: grid; place-items: center; }
.gate-loader { width: 46px; height: 46px; margin: 48px 0 25px; border: 4px solid #d5e6df; border-top-color: var(--startup-green); border-radius: 50%; animation: startup-spin .8s linear infinite; }
.gate-loading h1 { margin-bottom: 8px; font-size: 1.35rem; letter-spacing: -.03em; }
.gate-loading p { color: var(--startup-muted); }
@keyframes startup-spin { to { transform: rotate(360deg); } }
@media (max-width: 920px) {
  .startup-hero { grid-template-columns: 1fr; gap: 35px; padding-top: 70px; }
  .startup-hero-copy { text-align: center; }
  .startup-kicker, .startup-hero-actions, .startup-trust { justify-content: center; }
  .startup-hero h1, .startup-hero-copy > p { margin-left: auto; margin-right: auto; }
  .product-preview { width: min(620px, 100%); margin: 0 auto; }
  .startup-section-heading { grid-template-columns: 1fr; gap: 20px; }
  .startup-section-heading > p { max-width: 650px; }
  .startup-feature-grid { grid-template-columns: 1fr; }
  .startup-steps article { padding-inline: 28px; }
  .startup-access { grid-template-columns: 1fr; padding: 52px; }
  .account-options { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .startup-nav { width: calc(100% - 32px); min-height: 70px; }
  .startup-nav-links a { display: none; }
  .startup-nav-links { gap: 8px; }
  .startup-nav-login { min-height: 39px; padding-inline: 14px; }
  .startup-hero { width: calc(100% - 32px); min-height: 0; padding: 62px 0 74px; }
  .startup-hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .startup-hero-copy > p { font-size: .95rem; line-height: 1.65; }
  .startup-hero-actions { display: grid; }
  .startup-button { width: 100%; }
  .startup-trust { flex-wrap: wrap; }
  .product-preview { padding: 10px 2px 42px; }
  .preview-window { min-height: 0; padding: 16px; border-radius: 21px; transform: none; }
  .preview-glow { width: 340px; height: 340px; }
  .preview-float-pay { left: -7px; bottom: 6px; }
  .preview-float-streak { right: -9px; top: 54px; }
  .preview-tasks > div { grid-template-columns: 32px minmax(0,1fr) auto; padding-inline: 8px; }
  .startup-value, .startup-how { padding: 78px 20px; }
  .startup-section-heading h2 { font-size: 2.5rem; }
  .startup-feature-grid { margin-top: 42px; }
  .startup-feature-grid article { padding: 25px; }
  .startup-steps { grid-template-columns: 1fr; margin-top: 45px; }
  .startup-steps article, .startup-steps article:last-child { min-height: 210px; border: 0; border-top: 1px solid rgba(20,36,58,.13); }
  .startup-steps article:last-child { border-bottom: 1px solid rgba(20,36,58,.13); }
  .startup-access { width: calc(100% - 32px); margin: 48px auto; padding: 38px 25px; border-radius: 23px; }
  .startup-footer { width: calc(100% - 32px); padding: 30px 0; flex-wrap: wrap; gap: 15px 24px; }
  .startup-footer p { min-width: 60%; }
  .invite-entry-card, .account-invite-panel { margin-top: 30px; padding: 32px 24px; border-radius: 23px; }
  .account-gate-inner { width: calc(100% - 32px); padding-top: 48px; }
  .account-heading { display: grid; }
  .account-heading h1 { font-size: 2.55rem; }
  .account-heading .startup-text-link { justify-content: flex-start; padding: 0; }
  .account-option { padding: 26px 22px; }
  .account-invite-note { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .startup-button, .startup-feature-grid article { transition: none; } .gate-loader { animation-duration: 1.8s; } }
/* Minkai pricing */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.startup-pricing { position: relative; padding: 112px max(24px, calc((100vw - 1180px)/2)); overflow: hidden; background: #12263d; color: #fff; }
.startup-pricing::before { content: ''; position: absolute; width: 560px; height: 560px; left: -330px; top: 180px; border: 90px solid rgba(26,178,146,.09); border-radius: 50%; }
.startup-pricing::after { content: ''; position: absolute; width: 420px; height: 420px; right: -260px; bottom: -200px; border-radius: 50%; background: rgba(255,116,92,.1); filter: blur(4px); }
.pricing-heading { position: relative; z-index: 1; }
.pricing-heading .startup-kicker { color: #8de0ca; }
.pricing-heading h2 { color: #fff; }
.pricing-heading > p { max-width: none; margin: 18px auto 0; color: #aebdca; }
.pricing-cycle { position: relative; z-index: 1; min-width: 0; margin: 42px 0 0; padding: 0; border: 0; }
.pricing-cycle > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.billing-switch { position: relative; width: 294px; height: 50px; margin: 0 auto 42px; padding: 4px; display: grid; grid-template-columns: 1fr 1.25fr; align-items: stretch; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.08); }
.billing-switch::before { content: ''; position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2.25); border-radius: 999px; background: #fff; box-shadow: 0 7px 22px rgba(0,0,0,.18); transition: transform .22s ease, width .22s ease; }
#billing-annual:checked ~ .billing-switch::before { width: calc((100% - 8px) * 1.25 / 2.25); transform: translateX(calc((100% - 8px) / 1.25)); }
.billing-switch label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; color: #c2ccd4; cursor: pointer; font-size: .72rem; font-weight: 800; transition: color .2s ease; }
.billing-switch label span { padding: 3px 6px; border-radius: 999px; background: rgba(79,213,174,.16); color: #75ddbd; font-size: .54rem; letter-spacing: .01em; }
#billing-monthly:checked ~ .billing-switch label[for="billing-monthly"], #billing-annual:checked ~ .billing-switch label[for="billing-annual"] { color: #12263d; }
#billing-annual:checked ~ .billing-switch label[for="billing-annual"] span { background: var(--brand-mist); color: var(--brand-petroleum); }
#billing-monthly:focus-visible ~ .billing-switch label[for="billing-monthly"], #billing-annual:focus-visible ~ .billing-switch label[for="billing-annual"] { outline: 3px solid #75ddbd; outline-offset: 3px; }
.pricing-grid { width: min(900px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.pricing-card { min-width: 0; position: relative; padding: 35px; border-radius: 26px; color: var(--brand-petroleum); background: #fff; box-shadow: 0 28px 70px rgba(0,0,0,.2); }
.pricing-card-pro { border: 2px solid #53d4b3; background: linear-gradient(145deg, #f7fffc 0%, #e8f8f2 100%); box-shadow: 0 28px 80px rgba(0,0,0,.28), 0 0 0 6px rgba(83,212,179,.09); }
.pricing-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.pricing-card-top > div { display: grid; gap: 3px; }
.plan-name { font-size: 1.18rem; font-weight: 800; letter-spacing: -.035em; }
.plan-caption { color: #718091; font-size: .66rem; font-weight: 700; }
.plan-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: var(--brand-petroleum); background: var(--brand-mist); }
.pricing-card-pro .plan-icon { color: #fff; background: var(--brand-petroleum); box-shadow: 0 8px 20px rgba(8,127,106,.2); }
.pricing-card h3 { margin: 0 0 9px; font-size: 1.24rem; letter-spacing: -.035em; }
.pricing-card > p:not(.ai-note) { min-height: 47px; margin-bottom: 22px; color: #677789; font-size: .76rem; line-height: 1.6; }
.plan-price { min-height: 70px; display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.plan-price strong { font-size: 2.45rem; line-height: 1; letter-spacing: -.06em; }
.plan-price > span { color: #718091; font-size: .67rem; line-height: 1.45; }
.plan-price small { margin-left: auto; padding: 6px 8px; border-radius: 8px; color: var(--brand-petroleum); background: var(--brand-mist); font-size: .57rem; font-weight: 800; }
.price-annual { display: none; }
#billing-annual:checked ~ .pricing-grid .price-monthly { display: none; }
#billing-annual:checked ~ .pricing-grid .price-annual { display: flex; }
#billing-monthly:checked ~ .pricing-grid .price-monthly { display: flex; }
#billing-monthly:checked ~ .pricing-grid .price-annual { display: none; }
.pro-coming-button { color: #637182; background: #dce4e0; cursor: not-allowed; box-shadow: none; }
.pro-coming-button:hover { transform: none; }
.coming-ribbon { position: absolute; right: 24px; top: -15px; height: 30px; padding: 0 12px; display: flex; align-items: center; gap: 5px; border-radius: 999px; color: #fff; background: var(--brand-coral); box-shadow: 0 8px 20px rgba(255,116,92,.3); font-size: .62rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.coming-ribbon .material-symbols-rounded { font-size: 14px; }
.plan-divider { display: flex; align-items: center; gap: 11px; margin: 26px 0 20px; color: #718091; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.plan-divider::after { content: ''; flex: 1; height: 1px; background: #e1e7e3; }
.plan-features { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.plan-features li { display: flex; align-items: flex-start; gap: 9px; color: #4f6072; font-size: .72rem; line-height: 1.45; }
.plan-features .material-symbols-rounded { flex: 0 0 18px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-petroleum); background: var(--brand-mist); font-size: 12px; font-weight: 800; }
.ai-note { min-height: 0 !important; display: flex; align-items: flex-start; gap: 8px; margin: 23px 0 0 !important; padding: 12px; border: 1px solid #d5e9e2; border-radius: 12px; background: rgba(255,255,255,.62); color: var(--brand-muted) !important; font-size: .61rem !important; line-height: 1.5 !important; }
.ai-note .material-symbols-rounded { flex: 0 0 auto; color: var(--brand-petroleum); font-size: 17px; }
.pricing-footnote { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 0; color: #aebdca; font-size: .66rem; }
.pricing-footnote .material-symbols-rounded { color: #75ddbd; font-size: 17px; }
@media (max-width: 760px) {
  .startup-pricing { padding: 78px 16px; }
  .pricing-heading h2 { font-size: 2.45rem; }
  .billing-switch { width: min(294px, 100%); margin-bottom: 34px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 25px; }
  .pricing-card { padding: 28px 23px; border-radius: 22px; }
  .pricing-card-pro { margin-top: 6px; }
  .plan-price strong { font-size: 2.2rem; }
  .plan-price small { max-width: 93px; text-align: center; }
  .pricing-footnote { align-items: flex-start; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .billing-switch::before { transition: none; } }

/* Family access management */
.access-page-heading { margin-bottom: 18px; }
.access-add-button { text-decoration: none; }
.access-add-button .material-symbols-rounded, .compact-button .material-symbols-rounded, .invite-ready .material-symbols-rounded { font-size: 19px; }
.access-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 180px)); gap: 10px; margin-bottom: 18px; }
.access-summary article { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e1e6e3; border-radius: 18px; background: rgba(255,255,255,.8); }
.access-summary article > .material-symbols-rounded { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 12px; color: var(--brand-petroleum); background: var(--brand-mist); }
.access-summary strong, .access-summary small { display: block; }
.access-summary strong { font-size: 1.22rem; line-height: 1; }
.access-summary small { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.access-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 18px; align-items: start; }
.access-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.access-section-heading h2 { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.access-section-heading .eyebrow { margin-bottom: 4px; }
.member-directory { padding: 18px; }
.member-list { display: grid; gap: 8px; }
.member-row { min-width: 0; display: grid; grid-template-columns: 46px minmax(150px, 1fr) auto auto; align-items: center; gap: 13px; padding: 13px; border: 1px solid #e3e7e5; border-radius: 17px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.member-row:hover { border-color: #b8cbc5; box-shadow: 0 8px 22px rgba(25,64,54,.06); }
.member-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg, var(--brand-petroleum), #35a88d); font-size: .77rem; font-weight: 800; letter-spacing: .02em; }
.member-identity { min-width: 0; }
.member-identity > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.member-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .87rem; }
.member-identity > span { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.owner-chip { padding: 3px 7px; border-radius: 999px; color: var(--brand-petroleum); background: var(--brand-mist); font-size: .55rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.access-status { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 9px; border-radius: 999px; font-size: .63rem; font-weight: 700; white-space: nowrap; }
.access-status .material-symbols-rounded { font-size: 15px; }
.access-status.success { color: #087f5b; background: #def5e9; }
.access-status.warning { color: #93510a; background: #fff0d7; }
.access-status.neutral { color: #5d6670; background: #edf0ef; }
.member-actions { display: flex; align-items: center; gap: 3px; }
.compact-button { min-height: 36px; padding: 0 13px; font-size: .69rem; }
.member-actions .icon-button { width: 36px; min-height: 36px; }
.member-actions .icon-button .material-symbols-rounded { font-size: 19px; }
.access-invite-card { position: sticky; top: 96px; padding: 22px; border-color: #d5e9e2; background: linear-gradient(150deg, #fff 55%, #eef8f4); }
.invite-card-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 15px 15px 15px 5px; color: #fff; background: var(--brand-petroleum); box-shadow: 0 10px 24px rgba(8,127,106,.18); }
.access-invite-card h2 { margin: 3px 0 7px; font-size: 1.24rem; letter-spacing: -.025em; }
.access-invite-card > p { margin-bottom: 20px; color: var(--muted); font-size: .73rem; line-height: 1.55; }
.access-method-field { min-width: 0; display: grid; gap: 8px; margin: 0 0 15px; padding: 0; border: 0; }
.access-method-field legend { margin-bottom: 7px; color: #3c4043; font-size: .78rem; font-weight: 600; }
.access-method-option { min-width: 0; position: relative; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--outline); border-radius: 14px; background: #fff; cursor: pointer; }
.access-method-option:has(input:checked) { border: 2px solid var(--brand-petroleum); padding: 9px; background: #eff9f5; }
.access-method-option input { position: absolute; opacity: 0; pointer-events: none; }
.access-method-option input:focus-visible + .access-method-icon { outline: 3px solid #8bd5c2; outline-offset: 2px; }
.access-method-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--brand-petroleum); background: var(--brand-mist); font-size: 19px; font-weight: 800; }
.google-mark { color: #4285f4; background: #eef4ff; font-family: Arial, sans-serif; }
.access-method-option strong, .access-method-option small { display: block; }
.access-method-option strong { font-size: .74rem; }
.access-method-option small { margin-top: 2px; color: var(--muted); font-size: .61rem; line-height: 1.35; }
.compact-guardian { min-height: 0; margin: 12px 0 16px; padding: 11px; background: rgba(255,255,255,.72); }
.compact-guardian strong, .compact-guardian small { display: block; }
.compact-guardian strong { font-size: .67rem; }
.compact-guardian small { margin-top: 2px; color: var(--muted); font-size: .58rem; line-height: 1.4; }
.invite-ready, .remove-confirmation { display: grid; grid-template-columns: auto minmax(160px, 1fr) minmax(240px, .9fr) auto; align-items: center; gap: 14px; margin-top: 18px; padding: 15px 18px; border: 1px solid #bfe1d6; border-radius: 18px; background: #edf9f5; }
.invite-ready > .material-symbols-rounded { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: var(--brand-petroleum); background: #d4f0e7; }
.invite-ready strong, .invite-ready p, .remove-confirmation strong, .remove-confirmation p { display: block; margin: 0; }
.invite-ready p, .remove-confirmation p { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.invite-ready input { min-width: 0; height: 42px; border: 1px solid #b9d4cb; border-radius: 12px; padding: 0 12px; background: #fff; color: #51605b; font-size: .68rem; }
.remove-confirmation { grid-template-columns: auto 1fr auto auto; border-color: #f1cbc8; background: #fff4f3; }
.remove-confirmation > .material-symbols-rounded { color: var(--danger); }
.pending-invitations { margin-top: 18px; }
.pending-count { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; color: var(--brand-petroleum); background: var(--brand-mist); font-size: .72rem; font-weight: 800; }
.pending-list { display: grid; }
.pending-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #edf0ee; }
.pending-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #93510a; background: #fff0d7; }
.pending-icon .material-symbols-rounded { font-size: 19px; }
.pending-row strong { font-size: .78rem; }
.pending-row p { margin: 3px 0 0; color: var(--muted); font-size: .67rem; overflow-wrap: anywhere; }
.pending-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.pending-empty { display: flex; align-items: center; gap: 12px; padding: 17px; border-radius: 15px; color: #456159; background: #f3f7f5; }
.pending-empty > .material-symbols-rounded { color: var(--brand-petroleum); }
.pending-empty strong, .pending-empty p { display: block; margin: 0; }
.pending-empty p { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.member-dialog { width: min(100%, 650px); padding: 26px; }
.member-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adjustment-reason-field { grid-column: 1 / -1; }
.point-adjustment-dialog { width: min(100%, 620px); }
.access-editor { margin-top: 5px; padding: 18px; border-radius: 19px; background: #f3f7f5; }
.access-editor-heading, .access-editor-state { display: flex; align-items: center; gap: 11px; }
.access-editor-heading { margin-bottom: 16px; }
.access-editor-heading > .material-symbols-rounded { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 40px; border-radius: 13px; color: var(--brand-petroleum); background: var(--brand-mist); }
.access-editor-heading strong, .access-editor-heading small, .access-editor-state strong, .access-editor-state small { display: block; }
.access-editor-heading strong { font-size: .82rem; }
.access-editor-heading small { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.access-editor-state { padding: 13px; border: 1px solid #c9e8dc; border-radius: 14px; background: #fff; }
.access-editor-state > .material-symbols-rounded { color: var(--brand-petroleum); }
.access-editor-state.warning { border-color: #f2d8ac; }
.access-editor-state.warning > .material-symbols-rounded { color: #93510a; }
.access-editor-state strong { font-size: .75rem; }
.access-editor-state small { margin-top: 3px; color: var(--muted); font-size: .64rem; line-height: 1.4; }
.dialog-access-method { grid-template-columns: 1fr 1fr; }
.dialog-access-method legend { grid-column: 1 / -1; }
.access-privacy-note { display: flex; align-items: flex-start; gap: 7px; margin: 13px 0 0; color: var(--muted); font-size: .62rem; line-height: 1.45; }
.access-privacy-note .material-symbols-rounded { color: var(--brand-petroleum); font-size: 17px; }
.username-access-fields { display: none; gap: 12px; }
form:has(input[name="accessMethod"][value="username"]:checked) .email-access-fields { display: none; }
form:has(input[name="accessMethod"][value="username"]:checked) .username-access-fields { display: grid; }
.username-access-fields > small { color: var(--muted); line-height: 1.45; }
@media (max-width: 1050px) {
  .access-layout { grid-template-columns: 1fr; }
  .access-invite-card { position: static; }
  .access-invite-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .access-invite-card .access-method-field, .access-invite-card .compact-guardian, .access-invite-card .primary-button { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .access-summary { grid-template-columns: repeat(3, 1fr); }
  .access-summary article { display: grid; justify-items: center; gap: 7px; padding: 11px 6px; text-align: center; }
  .member-row { grid-template-columns: 44px 1fr auto; }
  .access-status { grid-column: 2; justify-self: start; }
  .member-actions { grid-column: 3; grid-row: 1 / span 2; }
  .compact-button { width: 38px; padding: 0; font-size: 0; }
  .compact-button .material-symbols-rounded { font-size: 19px; }
  .invite-ready, .remove-confirmation { grid-template-columns: auto 1fr; }
  .invite-ready input, .invite-ready button, .remove-confirmation button { grid-column: 1 / -1; width: 100%; }
  .member-form-grid, .dialog-access-method { grid-template-columns: 1fr; }
  .dialog-access-method legend { grid-column: auto; }
}
@media (max-width: 520px) {
  .access-add-button { width: 100%; }
  .access-invite-card form { grid-template-columns: 1fr; }
  .access-invite-card .access-method-field, .access-invite-card .compact-guardian, .access-invite-card .primary-button { grid-column: auto; }
  .member-row { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 11px; }
  .member-avatar { width: 42px; height: 42px; }
  .member-actions { display: grid; }
  .access-status { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .pending-row { grid-template-columns: 36px 1fr; }
  .pending-actions { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
  .pending-row .text-button { min-height: 34px; padding: 0; }
  .member-dialog { padding: 20px; }
}
/* Guided family onboarding */
.onboarding-shell { --startup-ink: var(--brand-petroleum); --startup-muted: var(--brand-muted); --startup-green: var(--brand-petroleum); --startup-green-dark: var(--brand-petroleum-dark); --startup-mint: var(--brand-mist); --startup-coral: var(--brand-coral); --startup-cream: var(--brand-ivory); min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 88% 4%, #fee9e1 0, transparent 25%), radial-gradient(circle at 8% 90%, #deefe8 0, transparent 28%), var(--startup-cream); color: var(--startup-ink); font-family: Manrope, Roboto, sans-serif; }
.onboarding-step-label { padding: 8px 12px; border-radius: 999px; color: var(--startup-green); background: var(--startup-mint); font-size: .67rem; font-weight: 800; }
.onboarding-progress { width: min(330px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 0 auto 37px; }
.onboarding-progress i { height: 4px; border-radius: 999px; background: #dce3df; }
.onboarding-progress i.done { background: #85cdb9; }
.onboarding-progress i.active { background: var(--startup-green); }
.auth-panel, .invite-family-panel, .success-panel { width: min(100% - 40px, 500px); margin: 45px auto 90px; padding: 44px; border: 1px solid rgba(20,36,58,.08); border-radius: 28px; background: rgba(255,255,255,.97); box-shadow: 0 25px 70px rgba(27,54,62,.12); }
.auth-panel .startup-kicker, .invite-family-panel .startup-kicker, .success-panel .startup-kicker { justify-content: center; }
.auth-panel > h1, .invite-family-panel > h1, .success-panel > h1 { margin: 15px 0 12px; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.03; letter-spacing: -.06em; text-align: center; }
.auth-panel > p, .invite-family-panel > p, .success-panel > p { color: var(--startup-muted); line-height: 1.65; text-align: center; }
.auth-google-button { width: 100%; min-height: 52px; margin-top: 19px; border: 1px solid #c8cfcc; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 11px; color: #27364a; background: #fff; cursor: pointer; font: 700 .82rem Manrope, sans-serif; }
.auth-google-button:hover { border-color: #87948e; background: #fafbf9; }
.auth-google-g { width: 21px; height: 21px; display: block; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: #82908c; font-size: .65rem; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: #e0e6e2; }
.auth-form .field { margin-bottom: 14px; }
.auth-form .field label { font-family: Manrope, sans-serif; font-weight: 700; }
.auth-switch-copy { margin: 18px 0 0 !important; font-size: .73rem; }
.auth-switch-copy .startup-text-link { min-height: 25px; padding: 0 4px; }
.auth-legal { margin: 14px 0 0 !important; color: #899591 !important; font-size: .58rem !important; }
.auth-visual-icon { width: 67px; height: 67px; display: grid; place-items: center; margin: 0 auto 27px; border-radius: 21px 21px 21px 7px; color: var(--startup-green); background: var(--startup-mint); }
.auth-visual-icon .material-symbols-rounded { font-size: 32px; }
.verify-panel { text-align: center; }
.verify-panel > .startup-button { margin-top: 24px; }
.verify-panel > .startup-text-link { width: 100%; }
.onboarding-content { width: min(1180px, calc(100% - 48px)); margin: 35px auto 90px; }
.onboarding-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; margin-bottom: 31px; }
.onboarding-heading h1 { max-width: 720px; margin: 17px 0 10px; font-size: clamp(2.7rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.065em; }
.onboarding-heading p { max-width: 650px; margin: 0; color: var(--startup-muted); line-height: 1.65; }
.selected-counter { width: 126px; height: 105px; display: grid; place-items: center; align-content: center; border-radius: 22px; color: #fff; background: var(--startup-green); box-shadow: 0 16px 35px rgba(8,127,106,.2); text-align: center; }
.selected-counter strong { font-size: 2rem; line-height: 1; }
.selected-counter span { max-width: 85px; margin-top: 5px; font-size: .58rem; line-height: 1.3; }
.family-name-card { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 20px; padding: 22px; border: 1px solid #e1e7e3; border-radius: 20px; background: #fff; }
.family-name-card > .material-symbols-rounded { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--startup-green); background: var(--startup-mint); }
.family-name-card .field { margin: 0; }
.family-name-card .check-option { align-items: flex-start; color: var(--startup-muted); font-size: .7rem; line-height: 1.45; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 44px 0 18px; }
.catalog-heading h2 { margin-bottom: 5px; font-size: 1.45rem; letter-spacing: -.035em; }
.catalog-heading p { margin: 0; color: var(--startup-muted); font-size: .8rem; }
.catalog-heading > span { padding: 7px 11px; border-radius: 999px; color: var(--startup-green); background: var(--startup-mint); font-size: .65rem; font-weight: 800; }
.onboarding-catalog { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.catalog-task { min-width: 0; position: relative; display: grid; grid-template-columns: 51px 1fr; gap: 13px; padding: 19px; border: 1px solid #e1e6e3; border-radius: 19px; background: rgba(255,255,255,.78); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.catalog-task.selected { border-color: #75c9b3; background: #fff; box-shadow: 0 12px 30px rgba(20,65,55,.08); }
.catalog-select { position: absolute; right: 15px; top: 15px; cursor: pointer; }
.catalog-select input { position: absolute; opacity: 0; pointer-events: none; }
.catalog-select > span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #c9d2ce; border-radius: 8px; color: transparent; background: #fff; font-size: 16px; }
.catalog-select input:checked + span { border-color: var(--startup-green); color: #fff; background: var(--startup-green); }
.catalog-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #718091; background: #eef1ef; }
.catalog-task.selected .catalog-icon { color: var(--startup-green); background: var(--startup-mint); }
.catalog-copy { min-width: 0; padding-right: 29px; }
.catalog-copy h3 { margin: 3px 0 4px; font-size: .9rem; letter-spacing: -.02em; }
.catalog-copy p { margin: 0; color: var(--startup-muted); font-size: .65rem; line-height: 1.45; }
.catalog-options { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 9px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .2s ease, opacity .2s ease, margin .2s ease; }
.catalog-task.selected .catalog-options { max-height: 90px; margin-top: 9px; opacity: 1; overflow: visible; }
.catalog-options > label:not(.catalog-approval) { display: grid; gap: 4px; color: var(--startup-muted); font-size: .57rem; font-weight: 700; }
.catalog-options select { width: 100%; height: 37px; border: 1px solid #d5ddd9; border-radius: 10px; padding: 0 8px; color: var(--startup-ink); background: #fff; font-size: .65rem; }
.catalog-approval { height: 37px; display: flex; align-items: center; gap: 6px; color: var(--startup-muted); font-size: .57rem; cursor: pointer; }
.catalog-approval > input { position: absolute; opacity: 0; }
.catalog-approval .switch-control { width: 30px; height: 18px; flex: 0 0 auto; }
.catalog-approval .switch-control::after { width: 12px; height: 12px; top: 3px; left: 3px; }
.catalog-approval input:checked + .switch-control { background: var(--startup-green); }
.catalog-approval input:checked + .switch-control::after { left: 15px; }
.catalog-approval input:focus-visible + .switch-control { outline: 3px solid #8bd5c2; outline-offset: 2px; }
.onboarding-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 18px 20px; border-radius: 17px; background: #fff; box-shadow: 0 12px 35px rgba(27,54,62,.08); }
.onboarding-submit > span { display: flex; align-items: center; gap: 7px; color: var(--startup-muted); font-size: .68rem; }
.onboarding-submit > span .material-symbols-rounded { color: var(--startup-green); font-size: 18px; }
.invite-family-panel, .success-panel { width: min(100% - 40px, 570px); text-align: center; }
.invite-email-row { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; margin-top: 14px; padding: 13px; border: 1px solid #dfe5e1; border-radius: 15px; text-align: left; }
.invite-email-row > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--startup-green); background: var(--startup-mint); font-size: .7rem; font-weight: 800; }
.invite-email-row .field { margin: 0; }
.invite-email-row .field input { min-height: 45px; }
.invite-email-row label small { color: #899591; font-weight: 500; }
.guardian-confirm { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; padding: 13px; border-radius: 13px; background: #f2f5f3; text-align: left; }
.guardian-confirm input { margin-top: 3px; accent-color: var(--startup-green); }
.guardian-confirm > span { display: grid; gap: 3px; }
.guardian-confirm strong { font-size: .68rem; }
.guardian-confirm small { color: var(--startup-muted); font-size: .59rem; line-height: 1.4; }
.invite-family-panel > .startup-text-link { margin-top: 10px; }
.success-burst { width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 27px; border-radius: 27px 27px 27px 8px; color: #fff; background: var(--startup-green); box-shadow: 0 15px 35px rgba(8,127,106,.23); }
.success-burst .material-symbols-rounded { font-size: 39px; }
.created-invitations { display: grid; gap: 9px; margin: 24px 0; text-align: left; }
.created-invitations article { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid #dfe6e2; border-radius: 13px; }
.created-invitations article > .material-symbols-rounded { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--startup-green); background: var(--startup-mint); font-size: 19px; }
.created-invitations article > div { min-width: 0; display: grid; gap: 2px; }
.created-invitations strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.created-invitations small { color: var(--startup-muted); font-size: .59rem; }
.created-invitations .startup-text-link { min-height: 32px; }
.success-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 15px 0 0 !important; font-size: .61rem !important; }
.success-note .material-symbols-rounded { color: var(--startup-green); font-size: 16px; }
@media (max-width: 760px) {
  .auth-panel, .invite-family-panel, .success-panel { margin-top: 25px; padding: 30px 22px; border-radius: 23px; }
  .onboarding-content { width: calc(100% - 28px); margin-top: 25px; }
  .onboarding-heading { grid-template-columns: 1fr auto; align-items: start; gap: 12px; }
  .onboarding-heading h1 { font-size: 2.75rem; }
  .selected-counter { width: 75px; height: 75px; border-radius: 18px; }
  .selected-counter strong { font-size: 1.5rem; }
  .selected-counter span { font-size: .47rem; }
  .family-name-card { grid-template-columns: auto 1fr; padding: 17px; }
  .family-name-card .check-option { grid-column: 1 / -1; }
  .catalog-heading { align-items: start; }
  .onboarding-catalog { grid-template-columns: 1fr; }
  .catalog-task { padding: 16px; }
  .catalog-options { grid-template-columns: 1fr 1fr; }
  .catalog-approval { grid-column: 1 / -1; }
  .catalog-task.selected .catalog-options { max-height: 140px; }
  .onboarding-submit { position: sticky; bottom: 10px; z-index: 4; display: grid; padding: 12px; }
  .onboarding-submit > span { display: none; }
  .onboarding-submit .startup-button { width: 100%; }
}
/* Perfil: controles legibles y versión discreta, también en teléfono. */
.account-profile-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-bottom: 24px; }
.account-profile-grid .card { padding: 24px; }
.profile-toggle { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.profile-toggle input { width: 20px; height: 20px; flex-shrink: 0; }
.profile-history { grid-column: 1 / -1; }
.maria-message { padding: 18px 0; border-bottom: 1px solid #e2e8f0; }
.profile-version { color: #64748b; font-size: 12px; margin: 24px 0; text-align: center; }
.maria-welcome { display:flex; gap:18px; align-items:flex-start; margin-bottom:22px; background:linear-gradient(120deg,#eff8ff,#f3fff8); }
.maria-welcome img { flex:0 0 76px; object-fit:contain; }
.maria-welcome h2 small { display:block; font-size:.7rem; color:var(--muted); margin-top:4px; }
.maria-welcome p { margin:10px 0; line-height:1.6; }
.maria-welcome small { color:var(--muted); }
.maria-tour { padding:28px; max-width:540px; }
.maria-tour > img { display:block; object-fit:contain; margin:0 auto 14px; }
.maria-tour > p { line-height:1.7; }
.maria-tour .dialog-actions { flex-wrap:wrap; }
