@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #283b32;
  --muted: #8a938a;
  --green: #547565;
  --green-dark: #355847;
  --green-light: #e9f0e8;
  --mint: #e6eee5;
  --peach: #f4e7d9;
  --orange: #ce9c6c;
  --paper: #f8f9f5;
  --white: #fff;
  --line: #e9ede5;
  --red: #bf7567;
  --shadow: 0 8px 28px rgba(41, 65, 48, .035);
  --radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select, textarea { color: inherit; }
button { border: 0; }
button:disabled { cursor: not-allowed; opacity: .46; }
button, a { touch-action: manipulation; }
button, input, select, textarea, a { outline-offset: 4px; }
:focus-visible { outline: 3px solid #acc5aa; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
img, svg { max-width: 100%; }
svg { vertical-align: middle; flex-shrink: 0; }
p, h1, h2, h3, h4 { margin-top: 0; }
h1, h2, h3, h4 { letter-spacing: -.025em; }
button { transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease; }
[hidden] { display: none !important; }
::selection { background: #d9e6d7; color: #264534; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 226px; padding: 36px 23px 24px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 5px; margin-bottom: 42px; min-width: 0; }
.brand-mark { width: 43px; height: 43px; color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.brand-mark svg { width: 43px; height: 43px; }
.brand-name { display: block; font-size: 23px; font-weight: 750; letter-spacing: .06em; line-height: 1.3; }
.brand-name span { display: block; margin-top: 3px; font-size: 11px; font-weight: 500; letter-spacing: .16em; color: #93a28a; }
.brand-caption { display: block; margin-top: 8px; font-size: 7px; color: #a6afa0; letter-spacing: .07em; white-space: nowrap; }
.nav-section { margin: 0 0 15px; padding: 0 17px; color: #acb1a8; font-size: 10px; letter-spacing: .09em; }
.sidebar nav { display: grid; gap: 7px; }
.nav-active-dot { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: #8ba57c; }
.nav-section > .eyebrow, .nav-section > p, .nav-section > h3 { padding: 0 17px; margin: 0 0 7px; color: #acb1a8; font-weight: 500; font-size: 10px; letter-spacing: .1em; }
.nav-item { width: 100%; min-height: 46px; padding: 11px 17px; border-radius: 11px; background: transparent; color: #838d81; display: flex; align-items: center; gap: 13px; font-size: 13px; text-align: left; text-decoration: none; white-space: nowrap; }
.nav-item:hover { color: var(--green-dark); background: #f4f6f1; }
.nav-item.active { color: var(--green-dark); background: var(--green-light); font-weight: 650; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 22px; flex: 0 0 20px; }
.nav-icon svg { width: 19px; height: 19px; stroke-width: 1.7; }
.nav-item .badge { margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding: 18px 8px 0; }
.free-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; color: var(--green); background: #eef3eb; border-radius: 100px; font-size: 10px; font-weight: 600; letter-spacing: .015em; }
.free-pill svg { width: 12px; height: 12px; }
.privacy-note { font-size: 10px; color: #a1a79d; line-height: 1.8; margin: 12px 0 0; }
.sidebar-signature { font-size: 8px; color: #b7bdaf; margin-top: 25px; letter-spacing: .045em; }
.mobile-brand { display: none; }
.workspace { margin-left: 226px; padding: 0 38px 26px; min-height: 100vh; }
.workspace > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.topbar { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.breadcrumb { color: #99a192; font-size: 11px; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.breadcrumb strong, .breadcrumb > span:last-child { color: var(--green); font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.btn { min-height: 40px; border: 1px solid transparent; border-radius: 9px; padding: 9px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 550; text-decoration: none; line-height: 1.5; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--green); color: white; box-shadow: 0 3px 6px #3558470b; }
.btn.primary:hover { background: var(--green-dark); }
.btn.secondary { background: white; color: var(--green); border-color: #e0e7dc; }
.btn.secondary:hover { background: #f2f6ef; border-color: #cddcc8; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: #eaf0e5; }
.btn.danger { background: #fff0ec; color: #b7685a; border-color: #f4dcd5; }
.btn.danger:hover { background: #fbe3dc; }
.btn.small { min-height: 31px; font-size: 11px; padding: 6px 11px; border-radius: 8px; }
.btn.icon-btn { width: 38px; padding: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.eyebrow { color: #9ca694; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 25px; }
.page-title > div { min-width: 0; }
.page-title > .row { flex-shrink: 0; }
.page-title .eyebrow { margin-bottom: 7px; font-size: 9px; font-weight: 400; letter-spacing: .025em; }
.page-title h1 { font-size: 27px; font-weight: 650; line-height: 1.4; margin: 0 0 7px; letter-spacing: -.045em; }
.page-title p { margin-bottom: 0; font-size: 12px; color: #94a08e; line-height: 1.8; }
.month-control { display: inline-flex; align-items: center; gap: 12px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; background: white; white-space: nowrap; font-size: 12px; font-weight: 550; }
.month-control input { width: 111px; border: 0; padding: 4px 0; min-height: 28px; background: transparent; font-size: 12px; color: var(--ink); }
.icon-button { width: 28px; height: 28px; padding: 5px; background: transparent; border-radius: 7px; color: #84917e; display: inline-grid; place-items: center; flex-shrink: 0; }
.icon-button svg { width: 16px; height: 16px; }
.icon-button:hover { background: var(--green-light); color: var(--green-dark); }
.dashboard-top { display: block; margin-bottom: 22px; }
.dashboard-top .stats-grid { margin-bottom: 0; }
.welcome-card { background: #e9efe3; border-radius: var(--radius); min-height: 193px; padding: 30px 33px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; position: relative; overflow: hidden; }
.welcome-copy { position: relative; z-index: 2; min-width: 0; }
.welcome-copy h2 { font-size: 24px; font-weight: 600; color: #36553c; margin: 11px 0 8px; letter-spacing: -.04em; }
.welcome-copy p { font-size: 12px; color: #8a987b; margin: 0; line-height: 1.9; }
.welcome-copy .btn { margin-top: 17px; }
.hello-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; letter-spacing: .06em; color: #6f8763; border: 1px solid #cfdcc4; background: #f5f7ef70; border-radius: 100px; padding: 3px 9px; }
.hello-pill svg { width: 11px; height: 11px; }
.cat-art { display: block; width: 270px; max-width: 38%; height: 193px; flex-shrink: 0; align-self: center; overflow: visible; margin-right: 18px; }
.welcome-stats { display: flex; gap: 30px; margin-top: 19px; }
.welcome-stats > div { padding-right: 25px; border-right: 1px solid #d4dfcc; }
.welcome-stats > div:last-child { border: 0; padding-right: 0; }
.welcome-stats strong { display: block; font-size: 20px; line-height: 1.35; color: #526a49; font-weight: 600; font-variant-numeric: tabular-nums; }
.welcome-stats span { display: block; color: #899580; font-size: 10px; margin-top: 3px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-bottom: 22px; }
.stat-card { padding: 22px 25px 20px; border-radius: 15px; border: 1px solid var(--line); background: #fff; position: relative; min-width: 0; }
.stat-card.mint { background: #eef3eb; border-color: #e7eee1; }
.stat-card.peach { background: #f7efe5; border-color: #f0e7da; }
.stat-card.white { background: white; }
.stat-label { font-size: 11px; color: #7f8a78; display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.stat-label svg { width: 15px; height: 15px; margin-left: auto; }
.stat-label .dot { margin-left: auto; }
.stat-label .badge { margin-left: auto; }
.stat-value { font-size: clamp(22px, 2.4vw, 32px); font-weight: 620; line-height: 1.3; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-value small { font-size: .55em; font-weight: 500; margin-right: 5px; vertical-align: 2px; color: #82927c; }
.stat-card.peach .stat-value { color: #ab8258; }
.stat-card.mint .stat-value { color: #54704d; }
.stat-note { margin-top: 12px; font-size: 10px; color: #9aa491; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.stat-note strong { color: var(--green); font-weight: 500; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr); gap: 21px; align-items: start; margin-bottom: 21px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 23px 25px; min-width: 0; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 21px; }
.dashboard-grid > .panel + .panel { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.panel-head > div { min-width: 0; }
.panel-title { font-size: 14px; font-weight: 650; margin: 0; line-height: 1.5; }
.panel-head .muted { font-size: 10px; margin: 3px 0 0; }
.panel-head .link-button { font-size: 10px; }
.chart-area { position: relative; height: 200px; padding: 7px 0 0; border-bottom: 1px solid #e8ede3; background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #f1f3ed calc(25% - 1px), #f1f3ed 25%); }
.chart-bars { height: 100%; display: flex; align-items: flex-end; justify-content: space-around; gap: 6px; padding: 0 3px; }
.bar-group { height: 100%; min-width: 0; flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4px; position: relative; }
.bar { display: block; width: 13px; min-height: 2px; max-height: 100%; background: #90a887; border-radius: 4px 4px 0 0; position: relative; }
.bar.expense { background: #ebd5b8; }
.bar.income { background: #b2c6a6; }
.bar:hover { filter: brightness(.95); }
.chart-label { font-size: 9px; color: #a8afa1; text-align: center; white-space: nowrap; }
.bar-group > .chart-label { position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); }
.chart-legend { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 11px 16px; color: #98a08f; font-size: 9px; margin-top: 30px; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; vertical-align: 1px; flex-shrink: 0; }
.dot.green { background: #b2c6a6; }
.dot.orange { background: #ebd5b8; }
.trend-note { margin: 0 0 0 auto; font-size: 9px; color: #a4ac9c; }
.donut-wrap { display: flex; align-items: center; justify-content: center; margin: 1px auto 23px; }
.donut { width: 158px; height: 158px; border-radius: 50%; background: conic-gradient(#91a782 0 40%, #bdcba7 40% 65%, #e4cfac 65% 85%, #eef0e7 85%); display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.donut-hole { position: absolute; inset: 21px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 10px; color: #9aa390; font-size: 9px; }
.donut-hole strong { color: #526747; font-weight: 600; font-size: 20px; line-height: 1.5; letter-spacing: -.04em; max-width: 100%; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.category-list { display: grid; gap: 14px; }
.category-row { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 11px; }
.category-row > div:not(.category-icon):not(.dot) { flex: 1; min-width: 0; }
.category-row .progress-track { margin-top: 5px; height: 4px; }
.category-icon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #f2f5ed; color: #7d9470; font-size: 14px; flex: 0 0 30px; }
.category-name { color: #788671; }
.category-amount { margin-left: auto; font-weight: 550; font-variant-numeric: tabular-nums; font-size: 11px; }
.progress-track { height: 6px; border-radius: 20px; background: #edf1e8; overflow: hidden; width: 100%; }
.progress-fill { height: 100%; background: #8daa81; border-radius: inherit; max-width: 100%; min-width: 0; }
.transactions-table { width: 100%; }
.table-head { display: grid; grid-template-columns: minmax(0, 1fr) 100px 110px 55px; gap: 12px; color: #a0a895; font-size: 10px; padding: 0 0 11px; border-bottom: 1px solid #edf0e9; }
.transaction-row { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid #f0f2eb; min-width: 0; }
.transaction-row:last-child { border-bottom: 0; padding-bottom: 0; }
.transaction-row:first-child { padding-top: 0; }
.transaction-icon { width: 38px; height: 38px; border-radius: 12px; background: #f3f1e8; color: #9b9671; font-size: 18px; display: grid; place-items: center; flex-shrink: 0; }
.transaction-icon svg { width: 19px; height: 19px; }
.transaction-main { flex: 1; min-width: 0; }
.transaction-name { display: block; font-size: 12px; font-weight: 550; color: #52604a; overflow-wrap: anywhere; }
.transaction-meta { display: flex; gap: 8px; align-items: center; font-size: 10px; color: #acb3a4; margin-top: 3px; flex-wrap: wrap; }
.transaction-amount { text-align: right; font-size: 13px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.transaction-amount.expense { color: #66775b; }
.transaction-amount.income { color: #b79973; }
.transaction-actions { display: flex; align-items: center; margin-left: 3px; gap: 1px; }
.transaction-actions .icon-button { width: 25px; height: 28px; color: #a0aa98; }
.transaction-actions .icon-button:last-child:hover { color: var(--red); background: #fff2ed; }
.date-heading { margin: 23px 0 10px; color: #9ba691; font-size: 11px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.date-heading:first-child { margin-top: 0; }
.date-heading span { font-size: 10px; color: #a5af9b; }
.empty-state { text-align: center; padding: 30px 20px 36px; display: flex; align-items: center; flex-direction: column; }
.empty-icon { color: #a5b799; background: #f2f5ed; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; margin-bottom: 15px; }
.empty-icon svg { width: 30px; height: 30px; }
.empty-title { font-size: 14px; font-weight: 550; color: #6d7f5e; margin: 0 0 6px; }
.empty-description { color: #a0aa94; font-size: 11px; line-height: 1.9; max-width: 300px; margin: 0 0 19px; }
.mini-pet-card { display: flex; align-items: center; gap: 15px; padding: 20px; background: #f3f1e7; border: 1px solid #eae9dd; border-radius: 15px; margin-top: 19px; }
.pet-avatar { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #e7e4d2; flex: 0 0 62px; font-size: 35px; }
.pet-avatar .cat-art { width: 65px; height: 58px; max-width: 100%; margin: 0; }
.pet-card-text { min-width: 0; flex: 1; }
.pet-card-text h3 { font-size: 12px; color: #7d805f; margin: 0 0 4px; font-weight: 600; }
.pet-card-text p { font-size: 10px; color: #a2a28d; margin: 0 0 10px; line-height: 1.7; }
.badge { display: inline-flex; align-items: center; gap: 3px; border-radius: 6px; padding: 2px 6px; font-size: 9px; font-weight: 500; line-height: 1.6; background: #edf3e7; color: #8c9d7c; vertical-align: 1px; white-space: nowrap; }
.book-grid, .account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 23px; }
.book-card { position: relative; text-align: left; padding: 25px; background: white; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.book-card.selected { background: #eef3e9; border-color: #a7be97; }
.book-card:hover { border-color: #b3c6a8; }
.book-icon { width: 45px; height: 49px; border-radius: 7px 11px 11px 7px; border-left: 4px solid #6c8a5b; background: #d4e0c7; font-size: 24px; display: grid; place-items: center; margin-bottom: 20px; }
.book-title { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.book-balance { color: var(--green); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.025em; margin: 16px 0 0; overflow-wrap: anywhere; }
.book-card .muted { font-size: 11px; margin: 0; }
.book-card > .row:last-child { margin-top: 20px; gap: 7px; flex-wrap: wrap; }
.book-card > .row:last-child > .row { gap: 2px; }
.book-icon { background: color-mix(in srgb, var(--book-color, #638773) 25%, white); border-left-color: var(--book-color, #638773); }
.book-card .badge { position: absolute; top: 22px; right: 20px; }
.account-card { padding: 25px; border: 1px solid var(--line); border-radius: 15px; background: white; min-width: 0; }
.account-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #edf2e8; color: #7d9670; margin-bottom: 20px; font-size: 19px; }
.account-label { font-size: 12px; color: #8e9d82; margin: 0; font-weight: 500; }
.account-card > p { margin-top: 10px; margin-bottom: 0; font-size: 10px; }
.account-value { font-size: 25px; font-weight: 600; letter-spacing: -.025em; margin-top: 7px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.budget-hero { background: #eaf0e4; border: 1px solid #e0e8d8; padding: 28px 30px; border-radius: 18px; margin-bottom: 22px; }
.budget-hero .progress-track { margin: 20px 0 12px; height: 10px; background: #d9e4cd; }
.budget-number { font-size: 36px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--green); margin: 10px 0 3px; overflow-wrap: anywhere; }
.budget-number small { font-size: 14px; font-weight: 400; color: #98a789; }
.budget-warning { color: #bd8761; }
.panel > .progress-track { margin: 20px 0 12px; }
.panel > .progress-track + .row { gap: 12px; flex-wrap: wrap; font-size: 11px; }
#page-content > .panel + .settings-grid, #page-content > .settings-grid + .panel { margin-top: 22px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.setting-card { padding: 27px; background: white; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.setting-card h2, .setting-card h3 { font-size: 15px; margin: 15px 0 7px; font-weight: 600; }
.setting-icon { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: #edf3e8; }
.setting-icon svg { width: 21px; height: 21px; }
.setting-description { font-size: 12px; color: #99a28f; line-height: 1.9; margin-bottom: 19px; }
.setting-card .row { flex-wrap: wrap; }
.notice, .callout { font-size: 12px; line-height: 1.9; background: #f0f4e9; color: #819373; border: 1px solid #e2ead8; border-radius: 11px; padding: 13px 16px; margin: 17px 0; }
.notice svg, .callout svg { width: 15px; height: 15px; margin-right: 5px; }
.callout { display: flex; align-items: flex-start; gap: 8px; background: #f8f0e4; color: #a49273; border-color: #efe3cf; font-size: 11px; }
.callout > svg { margin-top: 4px; flex-shrink: 0; }
.callout strong { font-weight: 550; }
.callout p { margin: 4px 0 0; font-size: 10px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.search-field { position: relative; flex: 1; min-width: 180px; display: flex; align-items: center; }
.search-field > svg { position: absolute; left: 13px; color: #a8b19e; width: 16px; height: 16px; pointer-events: none; }
.search-field input { width: 100%; padding-left: 39px; }
.filter-select { min-width: 125px; width: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full, .form-grid > .full { grid-column: 1 / -1; }
label { display: block; font-size: 12px; font-weight: 500; color: #7e8d74; }
input, select, textarea { min-width: 0; width: 100%; border: 1px solid #e1e7db; border-radius: 9px; background: #fff; padding: 10px 12px; min-height: 41px; font-size: 12px; box-shadow: none; transition: border-color .16s ease, box-shadow .16s ease; }
input:hover, select:hover, textarea:hover { border-color: #c6d2be; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: #92ad81; box-shadow: 0 0 0 3px #edf3e6; }
input::placeholder, textarea::placeholder { color: #b1b8a8; }
textarea { resize: vertical; min-height: 85px; line-height: 1.8; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-height: 16px; accent-color: var(--green); }
input[type="file"] { padding: 8px; }
input[type="file"]::file-selector-button { border: 0; background: var(--green-light); color: var(--green-dark); padding: 7px 11px; border-radius: 6px; margin-right: 10px; font: inherit; cursor: pointer; }
select { cursor: pointer; }
.dialog { width: min(480px, calc(100vw - 30px)); max-height: calc(100dvh - 50px); padding: 0; border: 1px solid #e7ecdf; background: #fffefa; border-radius: 21px; box-shadow: 0 30px 100px #172c2630; color: var(--ink); overflow: auto; }
.dialog.wide { width: min(600px, calc(100vw - 30px)); }
.dialog::backdrop { background: #1f302643; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 27px 19px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.dialog-head p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.dialog-body { padding: 24px 27px; }
.dialog-body .field + .field, .dialog-body form > .form-grid + .field, .dialog-body form > .field + .form-grid { margin-top: 17px; }
.dialog-body .form-grid > .field { margin-top: 0; }
.dialog-body .error-text:not([hidden]) { margin-bottom: 0; padding-top: 10px; }
.dialog-footer { padding: 17px 27px 23px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.dialog-footer .btn { min-width: 83px; }
.close-button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #9ca892; background: #f1f4eb; font-size: 22px; line-height: 1; flex-shrink: 0; }
.close-button:hover { background: #e6eddc; color: #6d815d; }
.close-button svg { width: 17px; height: 17px; }
.segmented-control { display: flex; padding: 4px; gap: 4px; background: #eff3e9; border-radius: 11px; margin-bottom: 23px; }
.segment { flex: 1; padding: 9px 10px; border-radius: 8px; background: transparent; color: #93a187; font-size: 12px; }
.segment.active { background: #fff; color: var(--green); box-shadow: 0 2px 5px #20351d06; font-weight: 600; }
.category-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 10px 0 20px; }
.category-choice { min-height: 62px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 10px 3px; font-size: 10px; background: #f6f7f2; color: #96a08b; border: 1px solid transparent; border-radius: 10px; }
.category-choice > span:first-child { font-size: 20px; line-height: 1.2; }
.category-choice svg { width: 21px; height: 21px; }
.category-choice.selected { color: var(--green); border-color: #aec49f; background: #edf3e6; }
.category-choice:hover { background: #eef3e7; }
.amount-input-wrap { position: relative; margin-bottom: 21px; border-bottom: 1px solid #dfe8d6; display: flex; align-items: center; gap: 10px; }
.amount-input { border: 0; background: transparent; border-radius: 0; min-height: 65px; padding: 5px 0; font-size: 38px; color: var(--green); font-weight: 600; letter-spacing: -.025em; line-height: 1.35; }
.amount-input:focus { border: 0; box-shadow: none; outline: 0; }
.amount-input-wrap:focus-within { border-color: var(--green); }
.amount-symbol { font-size: 25px; color: #849a75; }
.helper { font-size: 10px; color: #a1ab96; font-weight: 400; line-height: 1.8; margin-top: 5px; }
.error-text, .inline-error { color: var(--red); font-size: 11px; line-height: 1.8; }
.inline-error { background: #fff1ed; border: 1px solid #f2dcd5; border-radius: 9px; padding: 10px 13px; margin: 14px 0 0; }
.toast { position: fixed; bottom: 29px; left: calc(50% + 113px); transform: translate(-50%, 12px); z-index: 200; max-width: min(500px, calc(100vw - 35px)); padding: 12px 20px; border-radius: 12px; background: #3d5b47; color: #fff; box-shadow: 0 8px 25px #15322225; font-size: 12px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; pointer-events: none; text-align: center; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.error { background: #ac7869; }
.book-switcher { background: #fff; border: 1px solid var(--line); border-radius: 8px; color: #8d9a82; padding: 6px 9px; font-size: 10px; min-height: 30px; max-width: 180px; }
.pet-page { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); gap: 22px; margin-bottom: 23px; }
.pet-scene { min-height: 360px; border-radius: 20px; border: 1px solid #e4e8da; background: #edf0df; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; overflow: hidden; }
.pet-scene > svg { width: min(290px, 100%); height: 290px; position: relative; z-index: 1; }
.pet-scene .cat-art { width: min(320px, 100%); max-width: 100%; height: 250px; margin: 0; }
.pet-scene .hello-pill { text-align: center; font-size: 10px; margin-top: 5px; padding: 5px 10px; }
.pet-scene .badge { position: absolute; top: 20px; left: 20px; background: #fff9; color: #849370; padding: 5px 9px; z-index: 2; }
.pet-info { padding: 29px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.pet-info h2 { font-size: 23px; font-weight: 600; margin-top: 15px; margin-bottom: 7px; }
.pet-info p { font-size: 12px; color: #9ba38e; line-height: 1.9; }
.pet-info .progress-track { margin: 20px 0 10px; }
.pet-info .btn { margin-top: 19px; }
.achievement-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.achievement-card { text-align: center; border-radius: 14px; border: 1px solid var(--line); background: #f5f6f1; padding: 22px 14px; color: #b5bbaa; }
.achievement-card.unlocked { background: #f6f1e6; color: #b69769; border-color: #efe5d1; }
.achievement-card > svg, .achievement-card > span:first-child { display: block; width: 32px; height: 32px; margin: 0 auto 13px; font-size: 28px; line-height: 32px; }
.achievement-card .setting-icon { margin: 0 auto 14px; background: #e9ede1; opacity: .55; filter: grayscale(1); font-size: 21px; }
.achievement-card.unlocked .setting-icon { opacity: 1; filter: none; background: #eee3cc; }
.achievement-card .badge { margin-top: 13px; }
.achievement-card h3 { font-size: 12px; margin: 0 0 5px; font-weight: 600; }
.achievement-card p { margin: 0; font-size: 10px; line-height: 1.8; }
.quick-examples { display: flex; gap: 7px; flex-wrap: wrap; margin: 11px 0 17px; }
.quick-example { font-size: 10px; line-height: 1.5; padding: 6px 9px; background: #eff3e9; color: #8e9b7e; border-radius: 7px; }
.quick-example:hover { background: #e3ecd9; color: var(--green); }
.backup-preview { background: #f3f5ee; border-radius: 10px; border: 1px solid #e4eadb; padding: 15px; font-size: 12px; color: #829172; margin: 15px 0; line-height: 1.9; }
.backup-preview strong { color: var(--green); }
.month-summary { display: flex; align-items: center; gap: 22px; padding: 14px 19px; border-radius: 11px; background: #eff3e9; margin-bottom: 21px; color: #8fa17f; font-size: 11px; flex-wrap: wrap; }
.month-summary strong { color: #647d52; margin-left: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.footer-note { text-align: center; font-size: 9px; letter-spacing: .025em; line-height: 1.9; color: #b5bcae; margin-top: 28px; }
.footer-note svg { width: 11px; height: 11px; margin-right: 4px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; color: #91a082; }
.checkbox-row input { margin: 2px 0 0; flex-shrink: 0; }
.kbd, kbd { background: #f3f6ed; border: 1px solid #dfe7d6; box-shadow: 0 1px 1px #64785712; padding: 1px 5px; border-radius: 4px; font: 9px inherit; color: #a1ac95; }
.link-button { padding: 0; background: transparent; color: #94a783; font-size: 12px; text-decoration: none; }
.link-button:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.mobile-only { display: none !important; }
.sr-only { 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; }

@media (min-width: 1600px) {
  .workspace { padding-left: 55px; padding-right: 55px; }
  .welcome-card { min-height: 210px; }
  .chart-area { height: 226px; }
}

@media (max-width: 1160px) {
  .sidebar { width: 202px; padding-left: 16px; padding-right: 16px; }
  .workspace { margin-left: 202px; padding-left: 26px; padding-right: 26px; }
  .toast { left: calc(50% + 101px); }
  .dashboard-grid { grid-template-columns: minmax(0, 1.35fr) minmax(250px, 1fr); gap: 17px; }
  .panel { padding: 21px; }
  .stat-card { padding: 21px; }
  .welcome-card { padding: 27px; }
  .cat-art { width: 210px; }
  .welcome-copy h2 { font-size: 22px; }
  .book-grid, .account-grid { gap: 14px; }
  .pet-page { grid-template-columns: minmax(0, 1fr) minmax(250px, .9fr); }
}

@media (max-width: 960px) and (min-width: 761px) {
  .sidebar { width: 178px; padding-left: 12px; padding-right: 12px; }
  .brand { gap: 7px; padding-left: 4px; }
  .brand-name { font-size: 21px; }
  .brand-mark, .brand-mark svg { width: 35px; height: 35px; }
  .brand-caption { font-size: 6px; }
  .nav-item { padding-left: 13px; gap: 10px; font-size: 12px; }
  .workspace { margin-left: 178px; padding-left: 22px; padding-right: 22px; }
  .toast { left: calc(50% + 89px); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-grid > .panel:nth-child(2) { display: block; }
  .stats-grid { gap: 11px; }
  .stat-card { padding: 18px 15px; }
  .stat-value { font-size: 24px; }
  .stat-label { font-size: 10px; }
  .welcome-card { padding: 25px; }
  .welcome-copy h2 { font-size: 21px; }
  .cat-art { width: 180px; max-width: 31%; }
  .book-grid, .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid, .pet-page { grid-template-columns: minmax(0, 1fr); }
  .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 13px; }
  .sidebar { inset: auto 0 0; width: 100%; height: calc(66px + env(safe-area-inset-bottom, 0px)); padding: 4px 12px calc(4px + env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid #e6ecdf; background: #fffffff2; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); flex-direction: row; align-items: stretch; justify-content: space-around; z-index: 40; box-shadow: 0 -6px 25px #243c2b03; }
  .sidebar > .brand, .sidebar-bottom, .sidebar .eyebrow, .sidebar .nav-section > h3, .sidebar .nav-section > p { display: none; }
  .sidebar .nav-section { display: none; }
  .sidebar nav { display: flex; width: 100%; align-items: stretch; justify-content: space-around; }
  .sidebar .nav-active-dot { display: none; }
  .sidebar .nav-item { flex: 1; width: auto; min-height: 55px; max-width: 105px; padding: 7px 4px 5px; flex-direction: column; justify-content: center; gap: 3px; border-radius: 10px; font-size: 9px; color: #98a48c; }
  .sidebar .nav-item.active { background: transparent; color: #527044; }
  .sidebar .nav-item.active .nav-icon { background: #e9f0e0; border-radius: 8px; width: 38px; }
  .sidebar .nav-icon { height: 27px; flex-basis: 27px; width: 38px; }
  .sidebar .nav-icon svg { width: 20px; height: 20px; }
  .sidebar .nav-item .badge { display: none; }
  .sidebar .nav-mobile-hide { display: none !important; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 17px; color: var(--green-dark); }
  .mobile-brand svg { width: 28px; height: 28px; }
  .workspace { margin-left: 0; padding: 0 21px calc(90px + env(safe-area-inset-bottom, 0px)); }
  .topbar { min-height: 75px; margin-bottom: 25px; gap: 12px; }
  .breadcrumb { display: flex; font-size: 11px; color: var(--green); }
  .topbar-actions { gap: 6px; margin-left: auto; }
  .book-switcher { width: 106px; max-width: 106px; font-size: 10px; }
  .topbar-actions .btn { min-height: 34px; padding: 7px 11px; font-size: 10px; border-radius: 8px; gap: 5px; }
  .topbar-actions .btn svg { width: 14px; height: 14px; }
  .topbar-actions .kbd { display: none; }
  .page-title { gap: 12px; margin-bottom: 21px; align-items: flex-end; }
  .page-title h1 { font-size: 23px; margin-bottom: 5px; }
  .page-title p { font-size: 10px; line-height: 1.8; }
  .page-title .eyebrow { font-size: 8px; margin-bottom: 6px; }
  .page-title > .row { gap: 6px; }
  .page-title > .row > .btn { font-size: 10px; min-height: 34px; padding: 7px 10px; }
  .dashboard-top { margin-bottom: 20px; }
  .month-control { font-size: 10px; gap: 3px; padding: 3px 4px; }
  .month-control input { width: 94px; font-size: 10px; }
  .month-control .icon-button { width: 23px; height: 25px; padding: 4px; }
  .welcome-card { min-height: 177px; padding: 24px; margin-bottom: 16px; border-radius: 17px; }
  .welcome-copy h2 { font-size: 21px; margin: 10px 0 8px; line-height: 1.5; }
  .welcome-copy p { font-size: 10px; }
  .hello-pill { font-size: 8px; padding: 2px 7px; }
  .cat-art { width: 155px; max-width: 35%; height: 145px; margin-right: 0; }
  .welcome-stats { gap: 20px; margin-top: 16px; }
  .welcome-stats > div { padding-right: 19px; }
  .welcome-stats strong { font-size: 17px; }
  .welcome-stats span { font-size: 9px; }
  .stats-grid { gap: 10px; margin-bottom: 17px; }
  .stat-card { padding: 17px 14px; border-radius: 13px; }
  .stat-label { font-size: 10px; gap: 5px; margin-bottom: 10px; }
  .stat-label svg { width: 12px; height: 12px; }
  .stat-value { font-size: clamp(18px, 3.6vw, 25px); }
  .stat-value small { margin-right: 2px; font-size: .65em; }
  .stat-note { font-size: 8px; margin-top: 9px; gap: 3px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; margin-bottom: 17px; }
  .panel { padding: 20px; border-radius: 15px; }
  .panel + .panel { margin-top: 17px; }
  .panel-head { margin-bottom: 19px; }
  .panel-title { font-size: 13px; }
  .panel-head .muted { font-size: 9px; }
  .chart-area { height: 180px; }
  .chart-bars { gap: 3px; }
  .bar-group { gap: 3px; }
  .bar { width: 12px; }
  .chart-label { font-size: 8px; }
  .chart-legend { gap: 10px; font-size: 8px; }
  .donut { width: 154px; height: 154px; }
  .transaction-row { gap: 10px; padding: 14px 0; }
  .transaction-icon { width: 35px; height: 35px; font-size: 17px; border-radius: 10px; }
  .transaction-name { font-size: 11px; }
  .transaction-meta { font-size: 9px; gap: 5px; }
  .transaction-amount { font-size: 12px; }
  .transaction-actions { gap: 0; margin-left: 0; }
  .transaction-actions .icon-button { width: 22px; height: 25px; padding: 4px; }
  .transaction-actions .icon-button svg { width: 13px; height: 13px; }
  .mini-pet-card { margin-top: 16px; padding: 19px; }
  .book-grid, .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .book-card, .account-card { padding: 20px; }
  .book-title { font-size: 14px; }
  .book-balance, .account-value { font-size: 22px; }
  .book-card .badge { right: 13px; top: 16px; font-size: 8px; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .setting-card { padding: 23px; }
  .toolbar { gap: 9px; }
  .search-field { min-width: 150px; flex-basis: 100%; }
  .filter-select { flex: 1; width: auto; min-width: 115px; }
  .toolbar > .btn { flex: 0 1 auto; }
  .budget-hero { padding: 24px; }
  .budget-number { font-size: 30px; }
  .budget-number small { font-size: 12px; }
  .pet-page { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .pet-scene { min-height: 290px; }
  .pet-info { padding: 23px; }
  .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .achievement-card { padding: 20px 12px; }
  .month-summary { gap: 10px 20px; font-size: 10px; padding: 12px 15px; }
  .footer-note { margin-top: 23px; font-size: 8px; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); left: 50%; font-size: 11px; width: max-content; max-width: calc(100vw - 40px); }
  .dialog { max-height: calc(100dvh - 32px); border-radius: 18px; }
  .dialog-head { padding: 22px 21px 16px; }
  .dialog-head h2 { font-size: 17px; }
  .dialog-body { padding: 20px 21px; }
  .dialog-footer { padding: 16px 21px 20px; }
  .amount-input { font-size: 34px; }
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  .table-head { display: none; }
}

@media (max-width: 420px) {
  .workspace { padding-left: 16px; padding-right: 16px; }
  .topbar { min-height: 69px; }
  .mobile-brand { font-size: 15px; gap: 6px; }
  .mobile-brand svg { width: 25px; height: 25px; }
  .topbar-actions .btn { padding: 7px 8px; font-size: 9px; }
  .topbar-actions .btn svg { width: 12px; height: 12px; }
  .page-title { flex-wrap: wrap; gap: 13px; }
  .page-title h1 { font-size: 22px; }
  .page-title > .row { margin-left: auto; }
  .month-control { gap: 0; }
  .month-control .icon-button { width: 20px; }
  .month-control input { width: 87px; }
  .welcome-card { min-height: 168px; padding: 21px; gap: 5px; }
  .welcome-copy h2 { font-size: 19px; }
  .welcome-copy p { font-size: 9px; }
  .cat-art { width: 121px; max-width: 32%; }
  .stats-grid { gap: 7px; }
  .stat-card { padding: 14px 10px; border-radius: 12px; }
  .stat-label { font-size: 9px; gap: 3px; }
  .stat-value { font-size: 20px; }
  .stat-note { font-size: 8px; line-height: 1.7; }
  .stat-label .badge { font-size: 7px; padding: 1px 3px; }
  .panel { padding: 18px 16px; }
  .transaction-row { gap: 8px; }
  .transaction-icon { width: 32px; height: 32px; font-size: 15px; }
  .transaction-amount { font-size: 11px; }
  .transaction-actions .icon-button { width: 20px; }
  .book-card, .account-card { padding: 18px 15px; }
  .book-balance, .account-value { font-size: 20px; }
  .form-grid { gap: 14px 11px; }
  .category-picker { gap: 5px; }
  .category-choice { font-size: 9px; min-height: 59px; }
  .dialog-body { padding: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: white; color: black; }
  .sidebar, .topbar-actions, .transaction-actions, .toast, dialog, .btn { display: none !important; }
  .workspace { margin: 0; padding: 0; }
  .panel, .stat-card, .welcome-card, .book-card, .account-card { box-shadow: none; break-inside: avoid; }
  .dashboard-grid { display: block; }
  .panel { margin-bottom: 20px; }
}

/* Account access and saving status share the ledger's quiet visual language. */
.account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  min-width: 0;
  padding: 14px 17px;
  margin-top: -12px;
  margin-bottom: 25px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}
.account-bar > div { min-width: 0; }
.account-bar > div:first-child { flex: 1 1 200px; }
.account-bar > .row, .account-bar .account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.account-bar .btn { min-height: 40px; max-width: 100%; white-space: normal; }
.account-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.account-status p { margin: 0; }
.account-status small, .account-bar > div > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.account-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--muted);
}
.account-dot.online, .account-dot.is-online, .account-dot[data-status="online"] { background: var(--green); }
.account-dot.offline, .account-dot.is-offline, .account-dot[data-status="offline"] { background: var(--muted); }
.account-name { color: var(--green-dark); font-weight: 650; overflow-wrap: anywhere; min-width: 0; }
.auth-intro {
  margin-bottom: 21px;
  color: var(--green-dark);
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.auth-intro > :last-child { margin-bottom: 0; }
.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}
.auth-tabs > button, .auth-tabs > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 90px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 550;
  white-space: normal;
}
.auth-tabs > .active, .auth-tabs > [aria-selected="true"], .auth-tabs > [aria-pressed="true"] {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: var(--shadow);
}
.auth-tabs > button:hover, .auth-tabs > a:hover { background: var(--green-light); }
.auth-help, .auth-password-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.auth-help { margin: 17px 0 0; }
.auth-password-hint { margin: 6px 0 0; font-weight: 400; }
.auth-help .link-button { min-height: 40px; padding: 8px 3px; font-size: 12px; }
.recovery-code {
  display: block;
  max-width: 100%;
  min-width: 0;
  padding: 18px;
  margin: 17px 0;
  border: 1px solid var(--orange);
  border-radius: 12px;
  background: var(--peach);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: .06em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}
.recovery-code code { font: inherit; letter-spacing: inherit; }
.auth-card { min-width: 0; border-color: var(--green-light); background: var(--white); }
.auth-card .account-status { margin: 0 0 10px; }
.auth-card .account-name { font-size: 16px; }
.auth-card .row { flex-wrap: wrap; gap: 8px; }
.auth-card .btn { min-height: 44px; max-width: 100%; white-space: normal; }
.auth-card p { overflow-wrap: anywhere; }
.sync-notice {
  min-width: 0;
  padding: 14px 16px;
  margin: 0 0 21px;
  border: 1px solid var(--orange);
  border-radius: 11px;
  background: var(--peach);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.sync-notice p { margin: 0 0 8px; }
.sync-notice p:last-child { margin-bottom: 0; }
.sync-notice .row { flex-wrap: wrap; gap: 8px; }
.sync-notice .btn { min-height: 44px; max-width: 100%; white-space: normal; }
.sync-notice.error, .sync-notice[data-status="error"] { border-color: var(--red); }

@media (max-width: 760px) {
  .account-bar { gap: 12px; padding: 13px 14px; margin-top: -9px; margin-bottom: 21px; }
  .account-bar > div:first-child { flex-basis: 100%; }
  .account-bar > .row, .account-bar .account-actions { flex: 1 1 100%; }
  .account-bar .btn { min-height: 44px; flex: 1 1 auto; padding: 10px 13px; }
  .account-status { font-size: 12px; }
  .auth-intro { font-size: 12px; }
  .auth-card .row > .btn { flex: 1 1 auto; }
  .auth-tabs { margin-bottom: 19px; }
  .recovery-code { padding: 15px; font-size: 15px; letter-spacing: .035em; }
  .sync-notice { padding: 13px 14px; font-size: 11px; }
  .sync-notice .row > .btn { flex: 1 1 auto; }
}

@media print {
  .account-bar, .sync-notice, .recovery-code { display: none !important; }
}

@media (max-width: 680px) { #auth-form input { font-size: 16px; } }
