/* A quieter visual system: clear hierarchy, generous spacing, and a shared grid. */
:root {
  --bg: #f7f7f5;
  --paper: #ffffff;
  --ink: #242729;
  --muted: #707579;
  --green: #465b51;
  --green-deep: #293e34;
  --soft: #eef1ec;
  --line: #e8e9e6;
  --warm: #9b775d;
  --shadow: 0 14px 50px #22282208;
  --radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body { background: var(--bg); }
button, a, input, textarea { transition: background .18s, border-color .18s, box-shadow .18s, color .18s, transform .18s; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline-color: #8e9f93; }
.serif { font-family: inherit; }
.brand { gap: 10px; }
.brand-symbol { width: 38px; height: 38px; border-radius: 13px; background: #252d2a; color: #faf9f5; }
.brand-symbol svg { width: 27px; height: 27px; stroke-width: 1.3; }
.brand strong { font-family: inherit; font-size: 20px; font-weight: 650; letter-spacing: .4px; }
.brand small { margin-top: 4px; font-size: 9px; letter-spacing: 1.9px; color: #818783; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #e6e8e2b3; background: #f9faf7e6; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.site-header-inner { max-width: 1240px; min-height: 83px; padding: 0 40px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { flex-shrink: 0; }
.desktop-nav { display: flex; align-items: center; gap: 7px; }
.desktop-nav .nav-link { padding: 11px 17px; min-height: 43px; gap: 8px; border-radius: 25px; font-size: 13px; color: #777d78; }
.desktop-nav .nav-link svg { display: none; }
.desktop-nav .nav-link:hover { color: #252d28; background: #ecefe9; }
.desktop-nav .nav-link.active { color: #fff; background: #2c352f; font-weight: 500; box-shadow: 0 2px 7px #24312712; }
.desktop-nav .nav-count { background: #ffffff29; color: white; padding: 1px 4px; font-size: 9px; min-width: 17px; }
.header-actions { display: flex; align-items: center; gap: 11px; }
.header-profile { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; white-space: nowrap; }
.header-profile .avatar { width: 31px; height: 31px; font-size: 12px; }
.header-logout { width: 37px; min-width: 37px; color: #8c938b; }
.role-badge { display: inline-flex; padding: 4px 8px; color: #65725e; background: #eaf0e5; border: 1px solid #dfe6d7; border-radius: 6px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.sidebar { display: none; }
.main { margin: 0 auto; max-width: 1200px; min-height: calc(100dvh - 84px); width: 100%; padding: 0 40px 45px; }
.topbar { height: 63px; border: 0; font-size: 11px; }
.topbar .location { color: #8b928b; gap: 11px; }
.topbar .location strong { color: #6c766b; }
.topbar-right { gap: 17px; }
.topbar-right .pill { background: transparent; padding: 0; font-size: 10px; color: #7c8676; }
.topbar-right .icon-btn { min-width: 30px; min-height: 32px; width: 30px; }
.topbar-right .icon-btn svg { width: 16px; height: 16px; }
.pill { background: #eaf0e4; color: #63735a; }
.local-banner { margin: 0 0 22px; padding: 11px 15px; background: #eeefe9; border: 0; border-radius: 10px; color: #7e8376; align-items: center; gap: 9px; font-size: 11px; }
.local-banner svg { margin: 0; }
.local-banner a { margin-left: auto; color: #56674e; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; white-space: nowrap; }
.local-banner a:hover { color: #252f23; }
.local-banner a svg { width: 14px; height: 14px; }
.page-intro { margin: 36px 0 31px; align-items: center; }
.page-intro h1 { font-family: inherit; font-size: 34px; letter-spacing: -1px; line-height: 1.25; font-weight: 650; margin-bottom: 13px; }
.page-intro p { font-size: 14px; color: #7b817b; line-height: 1.8; }
.main[data-page="home"] .page-intro { margin: 25px 0 14px; }
.main[data-page="home"] .page-intro h1 { font-size: 23px; letter-spacing: -.6px; margin-bottom: 8px; font-weight: 600; }
.main[data-page="home"] .page-intro p { font-size: 12px; }
.btn { border-radius: 30px; padding: 13px 23px; min-height: 46px; font-size: 13px; gap: 8px; background: #2b3830; box-shadow: 0 4px 12px #2234260a; }
.btn:hover { background: #14261c; transform: translateY(-1px); box-shadow: 0 7px 16px #233b2512; }
.btn.secondary { background: #fff; border-color: #dfe3da; color: #465341; box-shadow: none; }
.btn.secondary:hover { background: #f1f4ed; border-color: #bbc6b0; }
.btn.soft { background: #e9eee1; color: #4b6440; }
.btn.compact { padding: 10px 15px; font-size: 12px; min-height: 40px; }
.link-btn { font-size: 12px; color: #6b7b62; min-height: 35px; }
.link-btn:hover { color: #2d4724; text-decoration: none; }
.hero { position: relative; border: 0; background: #f0f2ec; border-radius: 30px; min-height: 414px; grid-template-columns: 1fr 48%; overflow: hidden; margin-top: 22px; }
.hero:before { content: ""; width: 410px; height: 410px; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #e2e9d8, #e6eadf88 57%, #edf0e600 74%); position: absolute; right: 7px; top: -5px; }
.hero-copy { padding: 49px 45px 42px; }
.hero-copy .eyebrow { font-size: 10px; letter-spacing: 2.3px; color: #7f8d74; font-weight: 500; }
.hero h2 { font-family: inherit; font-size: clamp(38px,4.9vw,62px); font-weight: 650; letter-spacing: -2.6px; line-height: 1.24; margin: 25px 0 20px; color: #2c3a30; }
.hero p { font-size: 13px; line-height: 1.95; color: #78856e; margin-bottom: 28px; }
.hero-actions { gap: 11px; }
.hero .btn.secondary { background: #f9faf6; border-color: #d6dfca; }
.hero-art { position: relative; width: 485px; max-width: 115%; margin-right: -14px; justify-self: center; align-self: center; filter: drop-shadow(0 20px 21px #54624513); transform: rotate(-2deg); }
.stats-grid { gap: 16px; margin-top: 22px; }
.stat { padding: 26px 26px 24px; border: 1px solid #eceee7; border-radius: 21px; box-shadow: 0 3px 12px #28372502; background: #fff; }
a.stat:hover { border-color: #d0dac5; box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-title { font-size: 12px; letter-spacing: 0; color: #7f8978; margin-bottom: 20px; }
.stat-icon { top: 25px; right: 24px; color: #a0ad95; }
.stat-value { font-family: inherit; font-size: 40px; line-height: 1; font-weight: 550; color: #41553a; letter-spacing: -1.7px; margin-bottom: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-value span { font-family: inherit; font-size: 12px; color: #89957f; font-weight: 400; margin-left: 8px; letter-spacing: 0; }
.stat-value.unset { font-family: inherit; font-size: 25px; letter-spacing: -.6px; padding-top: 9px; padding-bottom: 6px; font-weight: 500; }
.stat-foot { font-size: 11px; color: #8d9785; line-height: 1.8; }
.section-heading { margin: 35px 0 18px; }
.section-heading h2 { font-size: 19px; font-weight: 600; letter-spacing: -.3px; }
.section-heading .tiny-label { font-size: 9px; letter-spacing: 1.6px; margin-left: 11px; color: #a4ab9d; }
.home-columns { gap: 25px; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
.panel { border-color: #e9ece4; border-radius: 22px; background: #fff; box-shadow: 0 5px 20px #28322403; }
.empty-state { min-height: 264px; padding: 40px 28px; }
.empty-icon { background: #f0f4e9; color: #96a987; border-radius: 18px; width: 60px; height: 60px; }
.empty-state h3 { font-size: 16px; font-weight: 500; margin-bottom: 13px; letter-spacing: -.2px; }
.empty-state p { color: #85937a; font-size: 12px; line-height: 1.9; }
.small-empty { min-height: 220px; padding: 29px 20px; }
.small-empty h3 { font-size: 14px; }
.small-empty .empty-icon { width: 47px; height: 47px; border-radius: 14px; }
.note-card { border: 0; background: #eee8da; border-radius: 19px; padding: 24px 27px; margin-top: 19px; }
.note-card p { color: #8e7d61; font-family: inherit; font-size: 13px; line-height: 1.9; }
.note-card .eyebrow { color: #a3977e; font-size: 9px; }
.mini-memory { padding: 24px; gap: 17px; }
.mini-memory h3 { font-size: 14px; font-weight: 550; line-height: 1.5; margin: 3px 0 9px; }
.mini-memory p { color: #7b8b70; font-size: 12px; line-height: 1.9; }
.mini-memory small { font-size: 10px; color: #98a38c; }
.mini-memory-image { width: 76px; height: 76px; border-radius: 13px; }
.mini-expense { padding: 20px 22px; min-height: 88px; }
.mini-expense:hover { background: #f8faf3; }
.mini-expense strong { font-size: 13px; font-weight: 550; }
.mini-expense small { font-size: 10px; margin-top: 7px; }
.mini-expense .amount { font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: -.4px; }
.page-footer { margin-top: 48px; padding-top: 7px; font-size: 10px; letter-spacing: .7px; color: #a5ae9a; }
.expense-grid { gap: 20px; }
.expense-card { border-color: #e5e9dd; border-radius: 23px; padding: 28px; box-shadow: 0 5px 20px #27342203; }
.expense-card:hover { border-color: #bac9aa; transform: translateY(-2px); box-shadow: var(--shadow); }
.expense-card h3 { font-size: 18px; font-weight: 550; letter-spacing: -.3px; line-height: 1.5; }
.expense-card .expense-note { color: #7b8970; line-height: 1.9; font-size: 13px; margin-bottom: 25px; }
.expense-amount { font-family: inherit; font-size: 38px; letter-spacing: -1.6px; font-weight: 550; color: #445b38; }
.expense-amount span { font-size: 20px; }
.card-top { margin-bottom: 21px; }
.author-inline { font-size: 12px; color: #89967d; }
.author-inline .avatar { width: 30px; height: 30px; font-size: 12px; }
.tag { border-radius: 7px; font-size: 11px; padding: 5px 9px; border-color: #e1e8d6; background: #f4f7ee; color: #778b63; }
.tag.warm { background: #f7efe2; border-color: #eee0c4; color: #997948; }
.tag.green { background: #edf3e4; border-color: #e0e9d4; color: #5c784a; }
.tag.gray { background: #f0f2eb; color: #8e9983; }
.card-bottom { color: #98a58b; font-size: 11px; padding-top: 18px; margin-top: 23px; }
.filter-row { gap: 7px; margin: 28px 0; }
.filter { border-radius: 23px; min-height: 42px; padding: 10px 17px; font-size: 12px; color: #81916f; }
.filter.active { background: #dfe8d3; border-color: #d6e2c8; color: #456034; }
.filter:hover { background: #eaf0e2; }
.timeline-wrap { padding-left: 112px; }
.timeline-wrap:before { left: 80px; background: #dbe4d0; top: 32px; }
.timeline-card { padding: 30px; border-radius: 24px; border-color: #e5ebdc; margin-bottom: 26px; }
.timeline-card:before { left: -37px; top: 36px; background: #9eb28b; box-shadow: 0 0 0 1px #d6e2c6; }
.timeline-date { right: calc(100% + 47px); top: 27px; font-size: 11px; color: #9aa98d; }
.timeline-date strong { font-family: inherit; font-weight: 500; font-size: 28px; letter-spacing: -1px; color: #7e956b; }
.timeline-card h3 { font-family: inherit; font-size: 23px; font-weight: 550; letter-spacing: -.5px; line-height: 1.5; margin: 16px 0; }
.memory-body { color: #697e59; font-size: 14px; line-height: 2; }
.memory-bottom { padding-top: 18px; margin-top: 24px; }
.memory-actions .link-btn { min-height: 38px; }
.notes { margin-top: 22px; padding: 18px 20px; background: #f2f6eb; border-radius: 15px; }
.note-entry p { font-size: 13px; color: #70865e; line-height: 1.9; }
.note-entry-header { font-size: 11px; margin-bottom: 9px; }
.memory-photos { gap: 12px; }
.memory-photos img { border-radius: 13px; }
.photo-strip img { border-radius: 10px; }
.detail-amount { font-family: inherit; font-size: 49px; font-weight: 550; letter-spacing: -2px; color: #405d32; }
.detail-meta { font-size: 13px; }
.detail-section p { font-size: 14px; line-height: 1.9; }
.detail-hint { font-size: 12px; }
.status-track { border-radius: 15px; padding: 18px 14px; background: #eff5e7; }
.track-step { font-size: 12px; }
.settings-grid { gap: 24px; }
.settings-panel { padding: 30px; }
.settings-panel h2 { font-size: 20px; font-weight: 600; letter-spacing: -.4px; margin-bottom: 12px; }
.settings-panel>p { font-size: 13px; line-height: 1.9; color: #7c8d6e; }
.settings-panel+.settings-panel { margin-top: 24px; }
.settings-panel .btn.full { border-radius: 12px; }
.member strong { font-size: 13px; }
.member small { font-size: 11px; }
.settings-details>summary { min-height: 43px; font-size: 13px; }
.avatar { background: #e8eedf; color: #6a815a; border-color: #fff; font-family: inherit; font-weight: 500; }
.avatar.other { background: #f1e8da; color: #a1845c; }
.avatar.large { width: 64px; height: 64px; font-size: 22px; }
.field { gap: 9px; }
.form { gap: 21px; }
.field>label, .field-label { font-size: 13px; font-weight: 500; color: #647b52; }
.field input, .field textarea, .field select { border-color: #dce6d1; background: #fff; border-radius: 11px; min-height: 48px; padding: 13px 14px; font-size: 14px; color: #34472c; }
.field .money-input input { padding-left: 40px; }
.money-input > span { left: 14px; top: 50%; transform: translateY(-50%); line-height: 1; pointer-events: none; }
.field input:hover, .field textarea:hover { border-color: #b7c9a5; }
.field input:focus, .field textarea:focus { border-color: #9fb989; box-shadow: 0 0 0 4px #afc9961b; outline: 0; }
.field input::placeholder, .field textarea::placeholder { color: #a6b497; font-size: 12px; }
.field small, .form-tip { font-size: 11px; color: #8ea17d; }
.password-field button { height: 44px; }
.upload-zone { min-height: 116px; border-color: #c3d3b3; background: #f8faf3; border-radius: 15px; }
.upload-zone:hover { background: #eff5e5; border-color: #9eb788; }
.upload-zone strong { font-size: 13px; }
.upload-zone small { font-size: 11px; }
.modal { border-radius: 25px; border-color: #e1e9d8; box-shadow: 0 28px 110px #263a1b33; }
.modal-header { padding: 22px 28px; }
.modal-header h2 { font-family: inherit; font-size: 20px; letter-spacing: -.4px; font-weight: 550; }
.modal-body { padding: 28px 30px 30px; }
.modal-description { font-size: 13px; color: #869c75; }
.mood-choice { min-height: 40px; padding: 10px 13px; border-radius: 9px; font-size: 12px; }
.mood-choice.selected { border-color: #a3bd89; background: #eaf2df; color: #557c38; }
.auth-screen { background: #fbfcf8; grid-template-columns: 1.08fr 1fr; }
.auth-story { background: #eef2e8; padding: 43px 9%; }
.auth-story:after { width: 640px; height: 640px; right: -270px; bottom: -250px; border-color: #dce6d0; }
.auth-story h1 { font-family: inherit; font-size: clamp(36px,4.3vw,60px); font-weight: 600; letter-spacing: -2.3px; line-height: 1.3; margin-top: 24px; margin-bottom: 23px; color: #32442b; }
.auth-story p { font-size: 14px; color: #81986f; }
.auth-story-main { margin: 55px 0 20px; }
.auth-art { max-width: 390px; margin-top: 12px; filter: drop-shadow(0 17px 18px #526d3810); }
.auth-story-footer { font-size: 10px; letter-spacing: .7px; }
.auth-panel { padding: 48px 9%; }
.auth-form-wrap { max-width: 390px; }
.auth-form-wrap h2 { font-size: 28px; letter-spacing: -.8px; line-height: 1.45; font-weight: 600; }
.auth-form-wrap>p { font-size: 13px; color: #829671; }
.auth-form-wrap>.eyebrow { font-size: 9px; letter-spacing: 1.8px; margin-bottom: 17px; }
.auth-form-wrap .btn { border-radius: 12px; }
.auth-note { font-size: 11px; gap: 9px; color: #829a6d; }
.auth-local { font-size: 10px; color: #93a080; }
.test-entry-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #68894e; margin-top: 20px; min-height: 35px; }
.test-entry-link svg { width: 15px; height: 15px; }
.test-entry-link:hover { color: #344f20; }
/* Local testing remains visibly separate from the two-person space. */
.test-toolbar { display: flex; align-items: center; gap: 21px; padding: 17px 20px; background: #eef2e8; border: 1px solid #dbe4d0; border-radius: 15px; margin-bottom: 28px; }
.test-toolbar-title { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
.test-indicator { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8fba6a; box-shadow: 0 0 0 4px #8fba6a17; flex-shrink: 0; }
.test-toolbar strong { font-size: 12px; color: #4d6a39; font-weight: 550; }
.test-toolbar p { font-size: 11px; line-height: 1.6; margin: 5px 0 0; color: #8b9d7b; }
.test-roles { display: flex; background: #e4ebdb; padding: 4px; border-radius: 10px; gap: 3px; }
.test-roles button { padding: 10px 16px; min-height: 38px; border-radius: 7px; background: transparent; font-size: 12px; color: #81986d; white-space: nowrap; }
.test-roles button.selected { background: #fff; color: #4c6b37; box-shadow: 0 2px 7px #445d2910; font-weight: 550; }
.test-guide-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; min-height: 40px; font-size: 11px; color: #7a9562; background: transparent; white-space: nowrap; }
.test-guide-btn svg { width: 14px; height: 14px; }
.entry-label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: #7c9564; margin-bottom: 25px; }
.test-entry-roles { display: flex; flex-direction: column; gap: 14px; margin: 29px 0; }
.test-role-card { display: flex; align-items: center; text-align: left; gap: 14px; min-height: 91px; width: 100%; border: 1px solid #dbe5cd; background: #fff; padding: 19px; border-radius: 17px; color: #5c7d40; }
.test-role-card:hover { border-color: #abc28f; box-shadow: 0 8px 22px #4d692612; transform: translateY(-2px); }
.test-role-card>svg { margin-left: auto; width: 17px; height: 17px; color: #94a97c; }
.test-role-card strong { display: block; font-size: 15px; font-weight: 550; color: #4c6b36; }
.test-role-card small { display: block; font-size: 11px; color: #8c9f79; margin-top: 7px; line-height: 1.8; }
.role-card-icon { width: 42px; height: 42px; background: #eff4e6; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #789858; flex-shrink: 0; }
.role-card-icon.admin { background: #ede8dc; color: #a48b5c; }
.admin-panel, .testing-panel { grid-column: 1 / -1; margin: 0!important; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.admin-heading .eyebrow, .testing-panel .eyebrow { display: block; font-size: 9px; letter-spacing: 1.8px; color: #a0af92; margin-bottom: 14px; }
.admin-heading p { font-size: 13px; line-height: 1.9; color: #829a6d; max-width: 650px; margin-bottom: 24px; }
.admin-members { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.admin-member { display: flex; gap: 12px; align-items: center; border: 1px solid #e4ecda; border-radius: 13px; padding: 16px; }
.admin-member strong { display: block; font-size: 13px; font-weight: 500; color: #6b8854; }
.admin-member small { display: block; margin-top: 5px; font-size: 10px; color: #9aad89; }
.admin-member .tag { margin-left: auto; font-size: 10px; }
.admin-counts { display: flex; gap: 32px; flex-wrap: wrap; padding: 25px 0 20px; font-size: 12px; color: #8fa37d; }
.admin-counts strong { font-size: 23px; font-weight: 500; color: #5d7c45; margin-right: 7px; letter-spacing: -.7px; }
.admin-footnote { font-size: 11px!important; color: #98aa87!important; margin: 0!important; }
.testing-panel { display: flex; align-items: center; justify-content: space-between; gap: 25px; background: #eff4e7; border: 1px solid #dce8cb; }
.testing-panel h2 { margin-bottom: 11px; }
.testing-panel p { font-size: 12px; line-height: 1.9; color: #88a170; margin-bottom: 0; }
.testing-panel .btn { white-space: nowrap; flex-shrink: 0; }
.test-account-note { font-size: 12px; padding-top: 18px; margin-top: 20px; border-top: 1px solid #e3ecd7; color: #8ba173; }
.test-guide>p { font-size: 13px; color: #809a68; line-height: 1.9; }
.test-guide ol { margin: 25px 0; padding-left: 23px; color: #8ba375; }
.test-guide li { padding-left: 7px; margin-bottom: 21px; }
.test-guide li strong { display: block; font-size: 14px; font-weight: 550; color: #5c7e41; margin-bottom: 8px; }
.test-guide li span { font-size: 12px; line-height: 1.9; display: block; color: #849d6d; }
/* Auth status and the test entry are distinct blocks, never adjacent inline items. */
.auth-utilities { display: grid; gap: 17px; width: 100%; margin-top: 27px; padding-top: 22px; border-top: 1px solid var(--line); }
.preview-notice { display: flex; align-items: flex-start; gap: 10px; min-width: 0; color: #7a8770; }
.preview-notice>svg { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; }
.preview-notice strong { display: block; font-size: 12px; line-height: 1.6; font-weight: 500; color: #6e7d62; }
.preview-notice p { margin: 4px 0 0; font-size: 11px; line-height: 1.8; color: #8a967f; }
.test-launch-card { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 17px 15px; border: 1px solid #dde6d4; border-radius: 14px; background: #f4f7ef; }
.test-launch-card:hover { background: #eaf1e0; border-color: #bdcea9; }
.test-launch-icon { width: 34px; height: 34px; border-radius: 10px; background: #e8efdc; color: #829e66; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.test-launch-icon svg { width: 17px; height: 17px; }
.test-launch-copy { display: block; min-width: 0; flex: 1; }
.test-launch-copy strong { display: block; font-size: 12px; font-weight: 550; line-height: 1.7; color: #526c3e; }
.test-launch-copy small { display: block; font-size: 10px; line-height: 1.9; margin-top: 4px; color: #82976f; }
.test-launch-card>svg { width: 16px; height: 16px; color: #81996b; flex-shrink: 0; }
.preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding: 12px 16px; border-radius: 12px; background: #eef2e7; }
.preview-caption { display: flex; align-items: center; gap: 9px; min-width: 0; color: #7c8c6d; font-size: 11px; line-height: 1.9; }
.preview-caption svg { width: 15px; height: 15px; flex-shrink: 0; }
.preview-test-button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 12px; background: #fff; border: 1px solid #dce6d1; border-radius: 9px; color: #68854f; font-size: 11px; line-height: 1.6; white-space: nowrap; flex-shrink: 0; }
.preview-test-button svg { width: 13px; height: 13px; }
.auth-recovery-row { display: flex; justify-content: flex-end; margin-top: -13px; margin-bottom: -9px; }
.auth-recovery-row .link-btn { min-height: 28px; font-size: 11px; padding: 3px 0; }
.recovery-back { margin-top: 22px; font-size: 12px; }
.recovery-local-help { margin-top: 27px; padding: 19px; border: 1px solid #e0e9d5; border-radius: 13px; background: #f6f8f1; }
.recovery-local-help strong { font-size: 12px; font-weight: 550; color: #69844f; }
.recovery-local-help p { margin: 8px 0; font-size: 11px; line-height: 1.9; color: #8a9c78; }
.recovery-local-help .link-btn { padding: 4px 0; font-size: 11px; }
.recovery-rename { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: #80976c; line-height: 1.9; }
.recovery-rename input { accent-color: #56783c; width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; }
.recovery-kit { margin: 20px 0; padding: 19px; border: 1px solid #dbe6cd; border-radius: 14px; background: #f6f9f0; }
.recovery-kit .recovery-account { font-size: 13px; color: #718a5b; margin: 0 0 20px; overflow-wrap: anywhere; }
.recovery-kit .recovery-account strong { color: #4a6c32; }
.recovery-kit label { display: block; font-size: 11px; color: #7e9569; margin-bottom: 9px; }
.recovery-kit textarea { display: block; width: 100%; resize: none; min-height: 78px; padding: 11px; border: 1px solid #d8e6c9; background: #fff; color: #4e7133; border-radius: 8px; font: 12px/1.85 ui-monospace,Consolas,monospace; word-break: break-all; }
.recovery-kit>p:not(.recovery-account) { font-size: 10px; line-height: 1.9; color: #899d75; margin: 12px 0 0; }
.recovery-kit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.recovery-kit-actions .btn { min-height: 37px; font-size: 10px; padding: 9px 11px; border-radius: 8px; }
.recovery-kit-actions .btn svg { width: 14px; height: 14px; }
.recovery-kit-done { margin-top: 15px; }
.account-recovery-panel { grid-column: 1 / -1; margin: 0!important; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.account-recovery-panel .eyebrow { display: block; font-size: 9px; margin-bottom: 14px; letter-spacing: 1.7px; color: #96a785; }
.account-recovery-panel p { font-size: 12px; color: #839b6b; line-height: 1.9; margin: 0; max-width: 620px; }
.recovery-settings-actions { display: flex; align-items: center; flex-direction: column; gap: 7px; flex-shrink: 0; }
.test-fixed-accounts { border: 1px solid #e0e8d5; border-radius: 12px; padding: 15px 17px; background: #f5f8ee; margin: 20px 0; }
.test-fixed-accounts>strong { display: block; font-size: 12px; color: #718e58; margin-bottom: 13px; font-weight: 550; }
.test-fixed-accounts p { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; font-size: 11px; line-height: 1.7; color: #8c9f78; }
.test-fixed-accounts code { color: #557d36; font: 12px/1.7 ui-monospace,Consolas,monospace; }
.test-fixed-accounts small { display: block; font-size: 10px; line-height: 1.8; color: #9cac8a; margin-top: 12px; }
.test-manual-login { padding: 0 0 5px; margin-bottom: 21px; }
.test-manual-login summary { cursor: pointer; font-size: 12px; line-height: 1.8; color: #7b9763; padding: 8px 0; }
.test-manual-login[open] summary { margin-bottom: 14px; }
@media(max-width:650px) {
  .preview-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 15px; }
  .preview-test-button { align-self: flex-start; margin-left: 24px; }
  .preview-caption { font-size: 10px; }
  .account-recovery-panel { flex-direction: column; align-items: stretch; gap: 24px; }
  .recovery-settings-actions { align-items: flex-start; }
  .recovery-kit-actions { flex-direction: column; }
  .recovery-kit-actions .btn { width: 100%; }
  .auth-utilities { gap: 17px; padding-top: 22px; margin-top: 25px; }
  .test-launch-card { padding: 16px 14px; gap: 10px; }
  .test-launch-copy strong { font-size: 12px; }
  .test-launch-copy small { font-size: 10px; }
}
/* Keep secondary copy readable on the intentionally soft surfaces. */
.hero p, .auth-story p, .auth-form-wrap>p, .auth-note, .modal-description,
.settings-panel>p, .admin-heading p, .admin-footnote, .testing-panel p,
.test-role-card small, .test-toolbar p, .test-guide>p, .test-guide li span,
.test-account-note { color: #6b7b60!important; }
.memory-body, .expense-card .expense-note, .mini-memory p, .note-entry p { color: #65765a; }
.field>label, .field-label { color: #566a49; }
.field small, .form-tip, .checkline { color: #77876b; }
.stat-foot { color: #7b8970; }
.admin-member small { color: #78896a; }
.test-entry-link { color: #597744; }
@media (min-width: 1500px) {
  .main { padding-left: 40px; padding-right: 40px; }
  .hero h2 { font-size: 65px; }
  .hero-art { width: 505px; }
  .home-columns { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
}
@media (max-width: 1100px) {
  .site-header-inner { padding: 0 28px; gap: 15px; }
  .desktop-nav .nav-link { padding: 11px 13px; }
  .header-profile>span:not(.avatar):not(.role-badge) { display: none; }
  .main { padding-left: 30px; padding-right: 30px; }
  .hero { grid-template-columns: 1fr 43%; min-height: 380px; }
  .hero-copy { padding: 43px 35px; }
  .hero h2 { font-size: 49px; }
  .hero-art { width: 410px; max-width: 125%; margin-right: -7px; }
  .home-columns { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
  .stat { padding: 24px 21px; }
  .stat-value { font-size: 35px; }
  .test-toolbar { gap: 15px; }
  .test-toolbar p { font-size: 10px; }
}
@media (max-width: 850px) {
  .header-logout { display: none; }
  .desktop-nav { gap: 2px; }
  .desktop-nav .nav-link { font-size: 12px; padding: 10px 12px; }
  .site-header-inner { min-height: 76px; padding: 0 25px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 8px; }
  .header-profile .role-badge { display: none; }
  .hero { grid-template-columns: 1fr 39%; min-height: 360px; }
  .hero h2 { font-size: 43px; letter-spacing: -1.7px; }
  .hero-copy { padding: 38px 29px; }
  .hero p { font-size: 12px; }
  .hero-art { width: 350px; max-width: 135%; }
  .hero-actions .btn { padding: 12px 17px; font-size: 12px; }
  .test-toolbar { flex-wrap: wrap; }
  .test-toolbar-title { flex-basis: 100%; }
  .test-roles { flex: 1; }
  .test-roles button { flex: 1; }
  .home-columns { grid-template-columns: 1fr 1fr; gap: 19px; }
  .settings-grid { grid-template-columns: 1fr; }
  .admin-panel, .testing-panel { grid-column: auto; }
  .testing-panel { padding: 25px; }
  .auth-story h1 { font-size: 40px; }
}
@media (max-width: 760px) {
  .site-header-inner { padding: 0 23px; min-height: 72px; }
  .desktop-nav { display: none; }
  .header-profile>span:not(.avatar):not(.role-badge) { display: inline; max-width: 110px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
  .brand-symbol { width: 33px; height: 33px; border-radius: 11px; }
  .brand-symbol svg { width: 24px; height: 24px; }
  .brand small { display: none; }
  .header-profile .avatar { width: 30px; height: 30px; }
  .header-actions { gap: 7px; }
  .main { padding: 0 23px calc(105px + env(safe-area-inset-bottom)); }
  .topbar { height: 43px; }
  .topbar .location { display: flex; font-size: 10px; }
  .topbar-right .top-date { font-size: 9px; }
  .topbar-right .pill { display: none; }
  .topbar-right { gap: 9px; }
  .local-banner { margin: 0 0 23px; padding: 10px 12px; font-size: 10px; flex-wrap: wrap; gap: 7px; }
  .local-banner a { font-size: 10px; }
  .main[data-page="home"] .page-intro { margin: 24px 0 12px; }
  .main[data-page="home"] .page-intro h1 { font-size: 21px; }
  .page-intro { margin: 27px 0 26px; }
  .page-intro h1 { font-size: 30px; letter-spacing: -.7px; }
  .page-intro p { font-size: 12px; }
  .hero { min-height: 363px; grid-template-columns: 1fr 36%; border-radius: 25px; margin-top: 20px; }
  .hero-copy { padding: 33px 29px; }
  .hero h2 { font-size: 42px; letter-spacing: -1.5px; margin-top: 22px; margin-bottom: 19px; line-height: 1.27; }
  .hero-copy .eyebrow { font-size: 9px; }
  .hero p { font-size: 12px; max-width: 280px; margin-bottom: 25px; }
  .hero-art { width: 290px; max-width: 145%; position: relative; margin-right: -15px; }
  .hero:before { width: 310px; height: 310px; right: -75px; top: 40px; }
  .stats-grid { gap: 12px; margin-top: 17px; }
  .stat { padding: 22px 17px 20px; border-radius: 18px; }
  .stat-title { font-size: 11px; margin-bottom: 17px; }
  .stat-value { font-size: 30px; letter-spacing: -1.1px; margin-bottom: 12px; }
  .stat-value.unset { font-size: 21px; padding-top: 5px; padding-bottom: 4px; }
  .stat-value span { font-size: 10px; margin-left: 5px; }
  .stat-foot { font-size: 10px; }
  .home-columns { grid-template-columns: 1fr; gap: 0; }
  .section-heading { margin-top: 30px; }
  .section-heading h2 { font-size: 18px; }
  .empty-state { min-height: 240px; }
  .note-card { display: none; }
  .bottom-nav { background: #fffefbf2; border-color: #e5eadb; padding-top: 9px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .bottom-nav .nav-link { color: #93a180; min-width: 72px; padding: 8px 14px 7px; gap: 6px; border-radius: 12px; }
  .bottom-nav .nav-link.active { color: #486d2e; background: #edf3e3; }
  .settings-grid { grid-template-columns: 1fr; }
  .expense-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
  .expense-card { padding: 24px; }
  .expense-amount { font-size: 32px; }
  .timeline-card { padding: 25px; }
  .timeline-card h3 { font-size: 21px; }
  .memory-body { font-size: 13px; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-story { padding: 28px 29px 0; min-height: 270px; }
  .auth-story-main { margin: 31px 0 0; padding-bottom: 33px; }
  .auth-story h1 { font-size: 35px; letter-spacing: -1.4px; line-height: 1.25; margin: 17px 0 16px; }
  .auth-story-main>p { font-size: 12px; max-width: 255px; }
  .auth-art { position: absolute; width: 245px; right: -11px; bottom: 1px; margin: 0; }
  .auth-panel { padding: 34px 29px 45px; }
  .auth-form-wrap { max-width: 470px; }
  .auth-form-wrap h2 { font-size: 26px; }
  .test-auth .auth-story h1 { font-size: 31px; }
  .test-auth .auth-story-main>p { max-width: 240px; }
  .test-roles button { min-height: 40px; font-size: 12px; }
  .test-toolbar { padding: 16px; border-radius: 14px; margin-bottom: 27px; gap: 12px; }
  .test-toolbar strong { font-size: 12px; }
  .test-toolbar p { font-size: 10px; }
  .test-guide-btn { font-size: 10px; }
  .settings-panel { padding: 26px; }
  .settings-panel h2 { font-size: 19px; }
  .admin-members { gap: 13px; }
}
@media (max-width: 540px) {
  .site-header-inner { padding: 0 20px; min-height: 69px; }
  .main { padding-left: 20px; padding-right: 20px; }
  .brand strong { font-size: 18px; letter-spacing: 0; }
  .topbar .location { display: none; }
  .topbar { height: 34px; justify-content: flex-end; }
  .local-banner { font-size: 9px; padding: 10px 11px; border-radius: 9px; line-height: 1.7; margin-bottom: 25px; }
  .local-banner>span { flex: 1; }
  .local-banner a { font-size: 9px; margin-left: 21px; flex-basis: calc(100% - 21px); }
  .main[data-page="home"] .page-intro { margin: 23px 0 10px; }
  .main[data-page="home"] .page-intro h1 { font-size: 21px; }
  .main[data-page="home"] .page-intro p { font-size: 11px; }
  .hero { grid-template-columns: 1fr; min-height: 391px; border-radius: 24px; margin-top: 22px; }
  .hero-copy { padding: 32px 27px 30px; }
  .hero h2 { position: relative; z-index: 1; font-size: clamp(35px,9.6vw,43px); max-width: none; letter-spacing: -1.5px; line-height: 1.3; margin: 23px 0 18px; }
  .hero p { font-size: 11px; max-width: 235px; position: relative; z-index: 1; line-height: 1.95; }
  .hero-art { position: absolute; right: -51px; bottom: -17px; width: 226px; max-width: none; margin: 0; opacity: .93; }
  .hero:before { width: 280px; height: 280px; top: auto; bottom: -27px; right: -92px; }
  .hero-actions { margin-top: 29px; gap: 9px; align-items: center; position: relative; z-index: 2; }
  .hero-actions .btn { min-height: 43px; padding: 11px 14px; font-size: 11px; gap: 6px; }
  .hero-actions .btn svg { width: 15px; height: 15px; }
  .stats-grid { gap: 9px; margin-top: 16px; }
  .stat { padding: 20px 12px 18px; border-radius: 16px; }
  .stat-title { font-size: 10px; line-height: 1.6; max-width: none; margin-bottom: 17px; }
  .stat-value { font-size: 27px; letter-spacing: -1px; line-height: 1.1; }
  .stat-value.unset { font-size: 18px; letter-spacing: -.6px; padding-top: 5px; padding-bottom: 4px; }
  .stat-value span { font-size: 9px; margin-left: 4px; }
  .stat-foot { font-size: 9px; line-height: 1.9; }
  .page-intro { margin: 27px 0 23px; gap: 12px; }
  .page-intro h1 { font-size: 28px; }
  .page-intro p { font-size: 11px; max-width: 225px; }
  .page-intro>.btn { padding: 11px 13px; min-height: 42px; font-size: 11px; gap: 6px; }
  .page-intro>.pill { display: none; }
  .section-heading h2 { font-size: 17px; }
  .section-heading .link-btn { font-size: 11px; }
  .expense-grid { grid-template-columns: 1fr; gap: 17px; }
  .expense-card { padding: 25px; border-radius: 21px; }
  .expense-card h3 { font-size: 17px; }
  .expense-card .expense-note { font-size: 12px; }
  .expense-amount { font-size: 35px; }
  .filter-row { gap: 4px; margin: 24px 0; }
  .filter { min-height: 40px; padding: 9px 12px; font-size: 11px; }
  .timeline-wrap { padding-left: 20px; }
  .timeline-wrap:before { left: 4px; top: 44px; }
  .timeline-card { padding: 23px 20px; margin-top: 37px; margin-bottom: 23px; border-radius: 21px; }
  .timeline-card:before { left: -21px; top: 32px; width: 7px; height: 7px; }
  .timeline-date { top: -27px; right: auto; left: 0; font-size: 10px; }
  .timeline-date strong { font-family: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0; }
  .timeline-card h3 { font-size: 19px; line-height: 1.5; margin: 16px 0; }
  .memory-body { font-size: 13px; line-height: 1.95; }
  .notes { padding: 15px; border-radius: 13px; }
  .note-entry p { font-size: 12px; }
  .note-entry-header { font-size: 10px; }
  .memory-bottom { gap: 10px; margin-top: 19px; padding-top: 15px; }
  .memory-actions { gap: 14px; }
  .memory-actions .link-btn { min-height: 35px; font-size: 11px; }
  .settings-panel { padding: 25px 23px; border-radius: 21px; }
  .settings-panel h2 { font-size: 19px; }
  .settings-panel>p { font-size: 12px; }
  .admin-members { grid-template-columns: 1fr; gap: 11px; }
  .admin-heading { gap: 12px; }
  .admin-heading p { font-size: 12px; }
  .admin-counts { gap: 17px; font-size: 11px; }
  .admin-counts strong { font-size: 21px; }
  .testing-panel { flex-direction: column; align-items: stretch; gap: 23px; }
  .testing-panel h2 { font-size: 20px; line-height: 1.5; }
  .testing-panel .btn { align-self: flex-start; }
  .test-toolbar { margin-top: 0; margin-bottom: 24px; gap: 11px; padding: 15px; }
  .test-toolbar-title { gap: 9px; }
  .test-toolbar p { font-size: 10px; }
  .test-roles { border-radius: 10px; }
  .test-roles button { padding: 9px 13px; min-height: 38px; font-size: 11px; }
  .test-guide-btn { font-size: 10px; gap: 4px; }
  .test-guide-btn svg { width: 12px; height: 12px; }
  .auth-story { min-height: 291px; padding: 26px 26px 0; }
  .auth-story-main { margin-top: 34px; padding-bottom: 34px; }
  .auth-story h1 { font-size: 32px; max-width: none; letter-spacing: -1.2px; line-height: 1.3; margin: 18px 0 15px; }
  .auth-story-main>p { max-width: 210px; font-size: 11px; line-height: 1.9; }
  .auth-art { width: 188px; bottom: -8px; right: -21px; }
  .auth-panel { padding: 35px 26px 40px; }
  .auth-form-wrap h2 { font-size: 25px; letter-spacing: -.7px; }
  .auth-form-wrap input { font-size: 16px; }
  .auth-form-wrap>p { font-size: 12px; }
  .auth-note { font-size: 11px; line-height: 1.9; }
  .test-auth .auth-story h1 { font-size: 28px; }
  .test-auth .auth-story-main>p { font-size: 10px; max-width: 215px; }
  .test-auth .auth-art { width: 176px; right: -16px; }
  .entry-label { font-size: 11px; margin-bottom: 20px; }
  .test-role-card { padding: 18px 16px; gap: 12px; }
  .test-role-card strong { font-size: 14px; }
  .test-role-card small { font-size: 10px; }
  .field>label, .field-label { font-size: 12px; }
  .field input, .field textarea, .field select { font-size: 16px; min-height: 48px; }
  .field input::placeholder, .field textarea::placeholder { font-size: 12px; }
  .field-row { gap: 13px; }
  .modal { width: calc(100vw - 24px); border-radius: 21px; max-height: calc(100dvh - 28px); }
  .modal-header { padding: 19px 22px; }
  .modal-header h2 { font-size: 19px; }
  .modal-body { padding: 24px 22px; }
  .modal-description { font-size: 12px; }
  .form { gap: 19px; }
  .form-submit .btn { min-height: 46px; font-size: 12px; }
  .mood-choice { min-height: 39px; font-size: 11px; padding: 9px 11px; }
  .detail-amount { font-size: 44px; }
  .detail-meta { font-size: 12px; }
  .detail-section p { font-size: 13px; }
  .status-track { padding: 16px 9px; }
  .track-step { font-size: 10px; }
  .track-line { width: 19px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-art { animation: settle .6s ease-out both; }
  .hero-art { animation-delay: .07s; }
}
@keyframes settle { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
