:root {
  --ivory: #f8f6f1;
  --paper: #fffefa;
  --white: #fff;
  --ink: #282a26;
  --muted: #6f716b;
  --soft: #ece9e1;
  --border: #e4e0d7;
  --sage: #66765f;
  --sage-dark: #4b5f4f;
  --sage-soft: #e8ede5;
  --gold: #b89159;
  --gold-soft: #f5ecdd;
  --red: #a85650;
  --shadow: 0 18px 60px rgba(39, 40, 35, .09);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--ivory); color: var(--ink); font: 400 1rem/1.55 var(--sans); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(184, 145, 89, .35); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0; color: #8b8981; font-size: .73rem; font-weight: 700; letter-spacing: .16em; line-height: 1.3; text-transform: uppercase; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 170px; height: auto; }
.primary-button, .secondary-button, .ghost-button { min-height: 46px; padding: 0 18px; border-radius: 10px; cursor: pointer; font-size: .9rem; font-weight: 600; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.primary-button { border: 1px solid var(--sage-dark); background: var(--sage-dark); color: white; box-shadow: 0 7px 18px rgba(75,95,79,.18); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(75,95,79,.23); }
.secondary-button { border: 1px solid var(--border); background: white; color: var(--ink); }
.secondary-button:hover { background: #faf9f5; }
.ghost-button { border: 0; background: transparent; color: var(--sage-dark); }
.danger-button { min-height: 46px; padding: 0 18px; border-radius: 10px; border: 0; background: transparent; color: var(--red); cursor: pointer; font-size: .9rem; font-weight: 600; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--sage-dark); cursor: pointer; font-size: .86rem; font-weight: 600; }
.round-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: white; color: var(--muted); cursor: pointer; font-size: 1.25rem; }
.button-row { display: flex; align-items: center; gap: 10px; }
.button-row > * { flex: 1; }
.status { padding: 5px 9px; border-radius: 999px; background: var(--sage-soft); color: var(--sage-dark); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.status.warm { background: var(--gold-soft); color: #8d6938; }
.status.alert { background: #f4e4e2; color: var(--red); }
.error-message { min-height: 22px; margin: 9px 0 0; color: var(--red); font-size: .78rem; }
.success-message { padding: 13px 15px; border-radius: 10px; background: var(--sage-soft); color: var(--sage-dark); font-size: .84rem; }

/* Authentication */
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .95fr) minmax(490px, 1.05fr); background: var(--paper); }
.auth-visual { position: relative; min-height: 680px; overflow: hidden; background: #6d7a67; }
.auth-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,43,36,.08), rgba(26,34,28,.66)), url("./assets/vowentra-brand.png") 78% center/cover no-repeat; transform: scale(1.015); }
.auth-visual-copy { position: absolute; z-index: 1; inset: auto 8% 7%; max-width: 520px; color: white; }
.auth-visual-copy .eyebrow { color: #dfd7c9; }
.auth-visual-copy h1 { max-width: 470px; margin: 10px 0 14px; font: 400 clamp(2.65rem, 5vw, 4.6rem)/.98 var(--serif); letter-spacing: -.035em; }
.auth-visual-copy h1 em { color: #dfc59d; font-weight: 400; }
.auth-visual-copy p { max-width: 450px; margin: 0; color: #eef0e9; font-size: .95rem; }
.auth-trust { margin-top: 27px; display: flex; flex-wrap: wrap; gap: 9px; }
.auth-trust span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); color: #f5f5f0; font-size: .7rem; }
.auth-pane { min-height: 100vh; padding: 42px clamp(28px, 7vw, 96px); display: flex; flex-direction: column; }
.auth-pane-top { display: flex; align-items: center; justify-content: space-between; }
.auth-pane-top > span { color: var(--muted); font-size: .82rem; }
.preview-banner { align-self: center; margin-top: 20px; padding: 6px 10px; border-radius: 999px; background: var(--gold-soft); color: #795d35; font-size: .68rem; font-weight: 600; }
.auth-card { width: min(100%, 440px); margin: auto; padding: 40px 0 52px; }
.auth-card h2 { margin: 8px 0 8px; font: 400 clamp(2.25rem, 4vw, 3.25rem)/1.05 var(--serif); letter-spacing: -.025em; }
.auth-lead { margin: 0 0 27px; color: var(--muted); font-size: .93rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 18px; border-radius: 11px; background: #f1efe9; }
.auth-tabs button { min-height: 37px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: .8rem; font-weight: 600; }
.auth-tabs button.active { background: white; color: var(--ink); box-shadow: 0 2px 8px rgba(40,40,35,.06); }
.google-button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid var(--border); border-radius: 10px; background: white; cursor: pointer; font-size: .88rem; font-weight: 600; }
.google-mark { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,#4285f4 0 35%,#34a853 35% 60%,#fbbc05 60% 80%,#ea4335 80%); color: white; font: 700 .7rem Arial; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 19px 0; color: #99968e; font-size: .72rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; }
.field.full { grid-column: 1/-1; }
.field-label { display: flex; justify-content: space-between; margin-bottom: 6px; color: #5e605a; font-size: .76rem; font-weight: 600; }
.field-label button { padding: 0; border: 0; background: transparent; color: var(--sage-dark); cursor: pointer; font-size: .73rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #dcd8cf; border-radius: 9px; background: white; color: var(--ink); font-size: .88rem; }
.field input::placeholder, .field textarea::placeholder { color: #aaa79f; }
.field textarea { min-height: 88px; resize: vertical; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 65px; }
.password-wrap button { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); padding: 5px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .7rem; }
.password-rules { margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; list-style: none; color: #8a8982; font-size: .67rem; }
.password-rules li::before { content: "○"; margin-right: 5px; }
.password-rules li.met { color: var(--sage-dark); }
.password-rules li.met::before { content: "✓"; }
.terms { margin: 18px 0; color: var(--muted); font-size: .72rem; text-align: center; }
.terms a, .auth-footer a { color: var(--ink); }
.auth-submit { width: 100%; }
.auth-footer { margin: 20px 0 0; color: var(--muted); font-size: .76rem; text-align: center; }
.security-note { margin-top: auto; padding-top: 30px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #8d8b83; font-size: .67rem; }

/* Passkey and auth utility states */
.focused-screen { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 50% 15%, #fff 0, var(--ivory) 55%); }
.focus-card { width: min(100%, 520px); padding: 38px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); text-align: center; }
.focus-card .brand { margin-bottom: 38px; }
.security-illustration { width: 86px; height: 86px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-soft); color: var(--sage-dark); font: 400 2.35rem var(--serif); box-shadow: 0 0 0 12px #f3f5f1; }
.focus-card h1 { margin: 7px 0 10px; font: 400 2.45rem/1.05 var(--serif); }
.focus-card > p { margin: 0 auto 23px; max-width: 410px; color: var(--muted); font-size: .87rem; }
.security-list { margin: 25px 0; padding: 0; display: grid; gap: 11px; list-style: none; text-align: left; }
.security-list li { display: grid; grid-template-columns: 27px 1fr; gap: 9px; color: #5e615a; font-size: .78rem; }
.security-list li span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-soft); color: var(--sage-dark); font-size: .7rem; font-weight: 700; }
.focus-card .primary-button { width: 100%; }
.recovery-card { width: min(100%, 620px); }
.recovery-code-grid { margin: 22px 0 16px; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; border: 1px solid var(--border); border-radius: 12px; background: #f6f4ee; text-align: left; }
.recovery-code-grid code { color: var(--ink); font: 600 .78rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.recovery-actions { margin-bottom: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.recovery-code { margin: 18px 0; padding: 15px; border: 1px dashed #bdb5a8; border-radius: 10px; background: #f8f6f0; font: 600 1.15rem/1.4 monospace; letter-spacing: .08em; }

/* Onboarding */
.onboarding-screen { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); }
.onboarding-head { padding: 26px clamp(22px,5vw,66px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.onboarding-progress { display: flex; align-items: center; gap: 13px; }
.onboarding-progress > span { color: var(--muted); font-size: .75rem; }
.progress-track { width: 160px; height: 4px; overflow: hidden; border-radius: 4px; background: #e9e6df; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--sage); transition: width .3s ease; }
.onboarding-main { width: min(100% - 42px, 820px); margin: auto; padding: 52px 0; }
.onboarding-copy { max-width: 650px; margin-bottom: 30px; }
.onboarding-copy h1 { margin: 8px 0 10px; font: 400 clamp(2.5rem, 6vw, 4.5rem)/1 var(--serif); letter-spacing: -.035em; }
.onboarding-copy p { max-width: 620px; margin: 0; color: var(--muted); font-size: .93rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice-grid.three { grid-template-columns: repeat(3,1fr); }
.choice-card { min-height: 82px; padding: 16px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--border); border-radius: 12px; background: white; text-align: left; cursor: pointer; transition: .16s ease; }
.choice-card:hover { border-color: #bfc8ba; transform: translateY(-1px); }
.choice-card.selected { border-color: var(--sage); background: var(--sage-soft); box-shadow: inset 0 0 0 1px var(--sage); }
.choice-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 10px; background: #f3f1eb; color: var(--sage-dark); font: 400 1.1rem var(--serif); }
.choice-card.selected .choice-icon { background: white; }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { font-size: .85rem; }
.choice-card small { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.checkbox-line { margin-top: 13px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .8rem; }
.large-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.large-fields .field input, .large-fields .field select { min-height: 56px; font-size: 1rem; }
.couple-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person-card { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.78); box-shadow: 0 8px 30px rgba(39,40,35,.035); }
.person-card .field input { min-height: 54px; font-size: 1rem; }
.gender-question { margin-top: 15px; }
.gender-question > span { display: block; margin-bottom: 7px; color: #5e605a; font-size: .76rem; font-weight: 600; }
.gender-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gender-option { min-height: 60px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid #dcd8cf; border-radius: 11px; background: white; cursor: pointer; text-align: left; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.gender-option:hover { border-color: #b7c1b3; transform: translateY(-1px); }
.gender-option.selected { border-color: var(--sage); background: var(--sage-soft); box-shadow: inset 0 0 0 1px var(--sage); }
.gender-option strong, .gender-option small { display: block; }
.gender-option strong { font-size: .77rem; }
.gender-option small { color: var(--muted); font-size: .66rem; }
.shoe-icon { width: 34px; height: 34px; flex: 0 0 34px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--gold-soft); font-size: 1.15rem; line-height: 1; }
.shoe-icon.compact { width: 27px; height: 27px; flex-basis: 27px; border-radius: 7px; background: rgba(255,255,255,.15); font-size: .95rem; }
.shoe-icon.empty { color: var(--muted); background: #f3f1eb; }
.wedding-date-row { width: calc(50% - 8px); margin-top: 18px; }
.date-trigger { width: 100%; min-height: 56px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #dcd8cf; border-radius: 10px; background: white; color: #aaa79f; cursor: pointer; text-align: left; font-size: 1rem; }
.date-trigger:hover { border-color: #b7c1b3; }
.date-trigger.has-value { color: var(--ink); }
.date-trigger b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--sage-soft); color: var(--sage-dark); font-size: 1.15rem; font-weight: 400; }
.date-trigger:disabled { cursor: not-allowed; opacity: .52; background: #f3f1ed; }
.autocomplete-field { position: relative; }
.autocomplete-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 224px; overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.autocomplete-option { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font-size: .86rem; text-align: left; cursor: pointer; }
.autocomplete-option:hover, .autocomplete-option.active { background: var(--sage-soft); color: var(--sage-dark); }
.couple-mark { gap: 2px; }
.couple-title { display: flex; align-items: center; gap: 9px; }
.person-record { display: flex; align-items: center; gap: 10px; }
.person-record > span:last-child { min-width: 0; }
.priority-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.priority-chip { padding: 12px 16px; border: 1px solid var(--border); border-radius: 999px; background: white; cursor: pointer; font-size: .82rem; }
.priority-chip.selected { border-color: var(--sage); background: var(--sage-soft); color: var(--sage-dark); font-weight: 600; }
.selection-count { margin-top: 15px; color: var(--muted); font-size: .75rem; }
.onboarding-foot { padding: 20px clamp(22px,5vw,66px); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); }
.onboarding-foot > div { display: flex; gap: 9px; }
.build-list { margin: 25px auto; padding: 0; max-width: 470px; display: grid; gap: 10px; list-style: none; text-align: left; }
.build-list li { padding: 13px 15px; display: grid; grid-template-columns: 26px 1fr; gap: 9px; border-radius: 10px; background: #f6f4ee; color: var(--muted); font-size: .8rem; }
.build-list li.done { color: var(--ink); }
.build-list li span { color: var(--sage-dark); font-weight: 700; }

/* Application shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0,1fr); }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 258px; padding: 23px 17px 17px; display: flex; flex-direction: column; border-right: 1px solid var(--border); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
.sidebar .brand { padding: 0 10px; height: 38px; margin-bottom: 22px; }
.sidebar .brand img { width: 155px; }
.wedding-switcher { width: 100%; min-height: 64px; padding: 9px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 13px; background: var(--paper); cursor: pointer; text-align: left; }
.couple-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--sage-dark); color: white; font: 400 .95rem var(--serif); }
.wedding-switcher strong, .profile-menu strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; white-space: nowrap; }
.wedding-switcher small, .profile-menu small { display: block; margin-top: 2px; color: var(--muted); font-size: .67rem; }
.nav { margin-top: 23px; }
.nav-label { margin: 0 11px 8px; color: #96938b; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-item { width: 100%; min-height: 42px; margin: 2px 0; padding: 0 11px; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 7px; border: 0; border-radius: 9px; background: transparent; color: #696b65; cursor: pointer; text-align: left; font-size: .8rem; }
.nav-item:hover { background: #f4f3ee; color: var(--ink); }
.nav-item.active { background: var(--sage-soft); color: var(--sage-dark); font-weight: 600; }
.nav-icon { font: 400 1.08rem Georgia, serif; text-align: center; }
.nav-count { min-width: 21px; padding: 2px 6px; border-radius: 7px; background: #f0eee8; color: #89867f; text-align: center; font-size: .62rem; }
.sidebar-bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.profile-menu { width: 100%; margin-top: 12px; padding: 10px 7px 0; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 9px; border: 0; border-top: 1px solid var(--border); background: transparent; cursor: pointer; text-align: left; }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: .7rem; font-weight: 700; }
.app-main { grid-column: 2; min-width: 0; }
.topbar { position: sticky; z-index: 20; top: 0; height: 70px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(227,223,214,.86); background: rgba(248,246,241,.9); backdrop-filter: blur(18px); }
.search-button { width: min(370px,42vw); min-height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.72); color: #85837c; cursor: pointer; text-align: left; font-size: .78rem; }
.search-button span:nth-child(2) { flex: 1; }
kbd { padding: 2px 6px; border: 1px solid #ddd9d0; border-radius: 5px; background: white; color: #8e8b84; font: 400 .62rem var(--sans); box-shadow: 0 1px 0 #ddd8cf; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-button, .assistant-button, .create-button, .mobile-menu { min-height: 40px; border-radius: 9px; cursor: pointer; }
.icon-button, .mobile-menu { width: 40px; padding: 0; border: 1px solid var(--border); background: white; }
.assistant-button { padding: 0 14px; border: 1px solid #d9d2c6; background: #fffaf2; color: #695c49; font-size: .75rem; font-weight: 600; }
.assistant-button span { margin-right: 5px; color: var(--gold); }
.create-button { padding: 0 15px; border: 1px solid var(--sage-dark); background: var(--sage-dark); color: white; font-size: .75rem; font-weight: 600; }
.mobile-menu { display: none; }
.main-content { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 36px 0 76px; }
.page-head { margin-bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.page-head h1 { margin: 5px 0 2px; font: 400 clamp(2.1rem,4vw,3rem)/1.05 var(--serif); letter-spacing: -.025em; }
.page-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .78rem; }
.welcome-banner { position: relative; min-height: 212px; padding: 33px 37px; display: grid; grid-template-columns: 1fr 150px; align-items: center; overflow: hidden; border-radius: 20px; background: linear-gradient(130deg, #4e6150, #78856f); color: white; box-shadow: var(--shadow); }
.welcome-banner::before { content: ""; position: absolute; width: 360px; height: 360px; top: -260px; right: -45px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.035), 0 0 0 84px rgba(255,255,255,.025); }
.welcome-banner .eyebrow { color: #cdd3c9; }
.welcome-banner h2 { position: relative; margin: 7px 0 8px; font: 400 clamp(2.3rem,4vw,3.6rem)/1 var(--serif); }
.welcome-banner p:not(.eyebrow) { position: relative; margin: 0; color: #e5e9e2; font-size: .8rem; }
.hero-details { position: relative; display: flex; align-items: center; gap: 9px; margin-top: 18px; color: #dce2da; font-size: .71rem; }
.hero-details i { width: 3px; height: 3px; border-radius: 50%; background: #d9bd91; }
.readiness-ring { position: relative; z-index: 1; width: 126px; height: 126px; display: grid; place-items: center; border: 6px solid rgba(255,255,255,.14); border-top-color: #dbc49e; border-right-color: #dbc49e; border-radius: 50%; text-align: center; transform: rotate(18deg); }
.readiness-ring > div { transform: rotate(-18deg); }
.readiness-ring strong { display: block; font: 400 1.75rem var(--serif); }
.readiness-ring span { display: block; color: #d4dad1; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.section-head { margin: 34px 0 14px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-head h2, .card-head h2 { margin: 4px 0 0; font: 400 1.48rem/1.2 var(--serif); }
.starter-grid, .metrics-grid, .workspace-grid { display: grid; gap: 13px; }
.starter-grid { grid-template-columns: repeat(3,1fr); }
.starter-card, .metric-card, .panel, .workspace-card { border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.9); box-shadow: 0 8px 28px rgba(44,45,39,.035); }
.starter-card { min-height: 184px; padding: 19px; display: flex; flex-direction: column; }
.starter-top { display: flex; justify-content: space-between; align-items: start; }
.starter-number { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-soft); color: var(--sage-dark); font-size: .7rem; font-weight: 700; }
.starter-card h3 { margin: 17px 0 5px; font: 400 1.25rem var(--serif); }
.starter-card h3 a { color: inherit; text-decoration: none; }
.starter-card h3 a:hover { text-decoration: underline; }
.starter-card p { margin: 0 0 14px; color: var(--muted); font-size: .75rem; }
.starter-card .text-button { margin-top: auto; align-self: flex-start; }
.metrics-grid { grid-template-columns: repeat(4,1fr); margin-top: 14px; }
.metric-card { min-height: 99px; padding: 17px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.metric-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--sage-soft); color: var(--sage-dark); font: 400 1.2rem var(--serif); }
.metric-card p { margin: 0; color: var(--muted); font-size: .69rem; }
.metric-card h3 { margin: 1px 0; font: 400 1.65rem var(--serif); }
.metric-card h3 small { color: #9a9890; font: 400 .73rem var(--sans); }
.metric-card > span { color: var(--muted); font-size: .65rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 14px; }
.panel, .workspace-card { padding: 21px; }
.card-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.empty-state { min-height: 180px; display: grid; place-items: center; padding: 28px 15px 12px; text-align: center; }
.empty-icon { width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 14px; background: var(--sage-soft); color: var(--sage-dark); font: 400 1.45rem var(--serif); }
.empty-state h3 { margin: 0 0 4px; font: 400 1.1rem var(--serif); }
.empty-state p { max-width: 360px; margin: 0 auto 13px; color: var(--muted); font-size: .72rem; }
.progress-list { margin-top: 17px; }
.progress-row { padding: 9px 0; display: grid; grid-template-columns: 105px 1fr 36px; align-items: center; gap: 12px; font-size: .72rem; }
.progress-row > div { height: 5px; overflow: hidden; border-radius: 5px; background: #eeece6; }
.progress-row > div i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--sage-dark),#87947f); }
.progress-row strong { text-align: right; font-size: .68rem; }
.priority-summary { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.priority-summary span { padding: 7px 9px; border-radius: 999px; background: var(--gold-soft); color: #7c6340; font-size: .68rem; }

/* Workspace and records */
.workspace-tabs { display: flex; gap: 3px; margin: 0 0 18px; overflow-x: auto; border-bottom: 1px solid var(--border); }
.workspace-tabs button { padding: 10px 13px; white-space: nowrap; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: .75rem; }
.workspace-tabs button.active { border-color: var(--sage-dark); color: var(--sage-dark); font-weight: 600; }
.workspace-grid { grid-template-columns: repeat(3,1fr); }
.workspace-card.wide { grid-column: span 2; }
.workspace-card h2, .workspace-card h3 { margin: 5px 0 4px; font: 400 1.35rem var(--serif); }
.workspace-card p { margin: 0; color: var(--muted); font-size: .75rem; }
.workspace-stat { margin-top: 17px; font: 400 2.2rem/1 var(--serif); }
.workspace-stat small { color: var(--muted); font: 400 .74rem var(--sans); }
.data-list { margin-top: 13px; }
.data-row { padding: 11px 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; border-top: 1px solid var(--border); }
.data-row strong, .data-row small { display: block; }
.data-row strong { font-size: .77rem; }
.data-row small { margin-top: 2px; color: var(--muted); font-size: .67rem; }
.record-list { display: grid; gap: 8px; margin-top: 14px; }
.record { padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--border); border-radius: 10px; background: white; }
.record-clickable { cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.record-clickable:hover { border-color: var(--sage-dark); box-shadow: 0 4px 14px rgba(75,95,79,.1); }
.record strong, .record small { display: block; }
.record strong { font-size: .78rem; }
.record small { color: var(--muted); font-size: .68rem; }
.suggested-tasks { display: grid; gap: 8px; margin-top: 15px; }
.suggested-task { padding: 12px; display: grid; grid-template-columns: 24px 1fr auto; gap: 9px; align-items: center; border: 1px solid var(--border); border-radius: 10px; }
.suggested-task input { width: 17px; height: 17px; accent-color: var(--sage-dark); }
.suggested-task strong, .suggested-task small { display: block; }
.suggested-task strong { font-size: .76rem; }
.suggested-task small { color: var(--muted); font-size: .66rem; }
.currency-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 15px; }
.currency-box { padding: 13px; border-radius: 10px; background: #f6f4ee; }
.currency-box span, .currency-box strong { display: block; }
.currency-box span { color: var(--muted); font-size: .66rem; }
.currency-box strong { margin-top: 3px; font: 400 1.15rem var(--serif); }

/* Dialogs, drawer and menus */
.overlay { position: fixed; z-index: 50; inset: 0; background: rgba(32,34,30,.38); backdrop-filter: blur(3px); }
.dialog { position: fixed; z-index: 60; top: 50%; left: 50%; width: min(540px,calc(100vw - 28px)); max-height: calc(100vh - 36px); padding: 24px; overflow-y: auto; transform: translate(-50%,-50%); border: 1px solid var(--border); border-radius: 17px; background: var(--paper); box-shadow: 0 28px 85px rgba(31,32,29,.23); }
.dialog.calendar-dialog { width: min(510px,calc(100vw - 28px)); padding: 26px; }
.calendar-dialog .dialog-head { border-bottom: 0; padding-bottom: 13px; }
.calendar-toolbar { padding: 10px 0 17px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.calendar-period { display: flex; justify-content: center; gap: 7px; }
.calendar-period select { height: 40px; padding: 0 30px 0 11px; border: 1px solid var(--border); border-radius: 9px; background-color: white; color: var(--ink); font-size: .82rem; font-weight: 600; }
.calendar-nav { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: white; color: var(--sage-dark); cursor: pointer; font: 400 1.65rem/1 var(--serif); }
.calendar-nav:hover { border-color: var(--sage); background: var(--sage-soft); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.calendar-weekdays { padding: 16px 0 7px; }
.calendar-weekdays span { color: #99968e; text-align: center; font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.calendar-grid { gap: 4px; }
.calendar-day { aspect-ratio: 1; min-width: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; font-size: .78rem; font-weight: 500; }
.calendar-day:hover { background: var(--sage-soft); color: var(--sage-dark); }
.calendar-day.outside { color: #c3c0b9; }
.calendar-day.today { box-shadow: inset 0 0 0 1px var(--gold); color: #805d2f; }
.calendar-day.selected { background: var(--sage-dark); color: white; box-shadow: 0 5px 13px rgba(75,95,79,.2); }
.calendar-footer { margin-top: 17px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); }
.calendar-footer > span { color: var(--muted); font-size: .72rem; }
.calendar-footer .secondary-button { min-height: 40px; }
.drawer { position: fixed; z-index: 70; inset: 0 0 0 auto; width: min(430px,100vw); padding: 25px; overflow-y: auto; background: var(--paper); box-shadow: -25px 0 80px rgba(31,32,29,.18); transform: translateX(103%); transition: transform .28s ease; }
.drawer.open { transform: translateX(0); }
.dialog-head { padding-bottom: 18px; display: flex; align-items: start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.dialog-head h2 { margin: 4px 0 0; font: 400 1.65rem var(--serif); }
.create-options { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.create-option { min-height: 70px; padding: 12px; display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 10px; background: white; cursor: pointer; text-align: left; }
.create-option:hover { border-color: #bdc7b9; background: var(--sage-soft); }
.create-option > span:first-child { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; background: #f1efe9; color: var(--sage-dark); }
.create-option strong, .create-option small { display: block; }
.create-option strong { font-size: .78rem; }
.create-option small { color: var(--muted); font-size: .65rem; }
.dialog form { margin-top: 17px; }
.form-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 9px; }
.form-actions button { min-width: 100px; }
.assistant-intro { margin: 19px 0; padding: 15px; border-radius: 11px; background: var(--sage-soft); color: #586257; font-size: .78rem; }
.suggestion { width: 100%; padding: 13px 0; display: flex; justify-content: space-between; gap: 10px; border: 0; border-bottom: 1px solid var(--border); background: transparent; cursor: pointer; text-align: left; font-size: .78rem; }
.answer { margin-top: 16px; padding: 15px; border-radius: 10px; background: #f4f2ed; font-size: .77rem; }
.account-menu { display: grid; gap: 7px; margin-top: 15px; }
.account-menu button { min-height: 42px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 9px; background: white; cursor: pointer; text-align: left; font-size: .76rem; }
.command-input { margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.command-input input { flex: 1; min-height: 44px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; }
.command-results { margin-top: 10px; display: grid; gap: 5px; }
.command-result { padding: 10px; display: grid; grid-template-columns: 33px 1fr auto; align-items: center; gap: 9px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; text-align: left; }
.command-result:hover { background: var(--sage-soft); }
.command-result > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: white; color: var(--sage-dark); }
.command-result strong, .command-result small { display: block; }
.command-result strong { font-size: .76rem; }
.command-result small { color: var(--muted); font-size: .66rem; }
.command-result em { color: var(--muted); font-size: .7rem; font-style: normal; }
.toast-region { position: fixed; z-index: 90; right: 21px; bottom: 21px; display: grid; gap: 8px; }
.toast { min-width: 270px; padding: 13px 15px; display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 10px; border-radius: 10px; background: #30342f; color: white; box-shadow: var(--shadow); animation: rise .2s ease; }
.toast > span:first-child { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #74806f; font-size: .75rem; }
.toast strong, .toast small { display: block; }
.toast strong { font-size: .75rem; }
.toast small { color: #cbd0c8; font-size: .66rem; }
.mobile-backdrop { display: none; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.view-enter { animation: fade .25s ease; }

@media (max-width: 1050px) {
  .auth-screen { grid-template-columns: .8fr 1.2fr; }
  .auth-visual-copy h1 { font-size: 3.15rem; }
  .app-shell { grid-template-columns: 222px minmax(0,1fr); }
  .sidebar { width: 222px; padding-left: 13px; padding-right: 13px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .starter-grid { grid-template-columns: 1fr 1fr; }
  .starter-card:last-child { grid-column: span 2; }
  .workspace-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .auth-screen { display: block; }
  .auth-visual { display: none; }
  .auth-pane { min-height: 100vh; padding: 25px 23px; }
  .auth-card { padding-top: 50px; }
  .auth-pane-top > span { display: none; }
  .app-shell { display: block; }
  .sidebar { width: min(290px,85vw); transform: translateX(-103%); transition: transform .24s ease; box-shadow: 20px 0 60px rgba(30,30,27,.18); }
  .sidebar.mobile-open { transform: translateX(0); }
  .mobile-backdrop.visible { display: block; position: fixed; z-index: 25; inset: 0; background: rgba(30,31,28,.38); }
  .app-main { width: 100%; }
  .topbar { height: 62px; padding: 0 14px; }
  .mobile-menu { display: block; }
  .search-button { width: 40px; padding: 0; justify-content: center; }
  .search-button span:nth-child(2), .search-button kbd, .assistant-button { display: none; }
  .create-button { width: 40px; padding: 0; font-size: 0; }
  .create-button span { font-size: 1rem; }
  .main-content { width: calc(100% - 28px); padding-top: 25px; }
  .welcome-banner { min-height: 300px; padding: 27px; align-items: start; }
  .readiness-ring { position: absolute; right: 23px; bottom: 23px; }
  .starter-grid, .metrics-grid, .dashboard-grid, .workspace-grid { grid-template-columns: 1fr; }
  .starter-card:last-child, .workspace-card.wide { grid-column: auto; }
  .large-fields, .choice-grid.three, .couple-fields { grid-template-columns: 1fr; }
  .wedding-date-row { width: 100%; }
  .onboarding-progress .progress-track { width: 90px; }
}

@media (max-width: 480px) {
  .focus-card { padding: 28px 21px; }
  .recovery-code-grid, .recovery-actions { grid-template-columns: 1fr; }
  .form-grid, .choice-grid, .create-options { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .password-rules { grid-template-columns: 1fr; }
  .onboarding-head { padding: 21px 18px; }
  .onboarding-head .brand img { width: 135px; }
  .onboarding-progress > span { display: none; }
  .onboarding-main { width: calc(100% - 34px); padding: 34px 0; }
  .onboarding-foot { padding: 16px 18px; }
  .person-card { padding: 14px; }
  .calendar-dialog .dialog-head h2 { font-size: 1.42rem; }
  .dialog.calendar-dialog { padding: 20px 16px; }
  .calendar-period select { padding-left: 8px; padding-right: 24px; }
  .calendar-grid { gap: 2px; }
  .calendar-day { border-radius: 8px; font-size: .73rem; }
  .calendar-footer { align-items: stretch; flex-direction: column; }
  .currency-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
