@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  font-family: 'DM Sans', 'Trebuchet MS', sans-serif;
  color: #1c302b;
  background: #f5f6f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --forest: #17433b;
  --forest-deep: #10342f;
  --paper: #fffefa;
  --canvas: #f5f6f2;
  --line: #e2e8e2;
  --muted: #75827c;
  --coral: #df725d;
  --yellow: #edc768;
  --teal: #43a98f;
  --blue: #4e8ed4;
  --violet: #8e77c8;
  --orange: #e7974b;
  --red: #cb5854;
  --pastel-mint: #e5f3eb;
  --pastel-sky: #e5eff9;
  --pastel-peach: #fae9e1;
  --pastel-lemon: #fbf2d7;
  --pastel-lilac: #eee9f5;
  --shadow: 0 14px 40px rgba(24, 44, 39, .09);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; background: radial-gradient(ellipse at 72% 0%, rgba(222, 230, 210, .42), transparent 36%), var(--canvas); }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; background: radial-gradient(ellipse at 78% 0%, rgba(78, 142, 212, .055), transparent 31%), radial-gradient(ellipse at 18% 0%, rgba(223, 114, 93, .04), transparent 25%), var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(109, 168, 151, .45); outline-offset: 2px; }
.app-shell { min-height: 100vh; min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: 244px; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 18px 12px 12px; color: #e8f0e9; background: var(--forest); }
.brand { display: flex; align-items: center; padding: 0 8px 18px; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: 100%; height: auto; max-height: 66px; padding: 3px 5px; border-radius: 6px; background: #fff; object-fit: contain; }
.brand-mark { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; color: #f3d77c; background: rgba(66,169,143,.16); font: 800 13px 'Manrope', sans-serif; letter-spacing: 0; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font: 700 15px 'Manrope', sans-serif; }
.brand-copy small { color: #adc0b7; font: 500 9px 'DM Mono', monospace; letter-spacing: 1px; }
.environment-pill { display: flex; align-items: center; gap: 8px; margin: 2px 8px 18px; padding: 8px 10px; width: fit-content; border: 1px solid rgba(218,238,225,.17); border-radius: 5px; color: #c3d9cb; font: 500 9px 'DM Mono', monospace; letter-spacing: .7px; }
.environment-pill span { width: 7px; height: 7px; border-radius: 50%; background: #e7c566; box-shadow: 0 0 0 3px rgba(231,197,102,.13); }
.nav-label { padding: 0 10px 10px; color: #91aa9e; font: 500 9px 'DM Mono', monospace; letter-spacing: 1px; }
.primary-nav { display: grid; flex: 0 0 auto; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 37px; padding: 0 9px; border: 0; border-radius: 6px; text-align: left; color: #c1d0c8; background: transparent; font-size: 12px; transition: background .18s ease, color .18s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.08); }
.nav-item.active { color: #183e35; background: #eff3eb; font-weight: 700; }
.nav-icon { display: grid; width: 20px; place-items: center; color: #b6d0c2; font-size: 16px; }
.nav-item.active .nav-icon { color: var(--forest); }
.nav-cloud-status { margin-left: auto; padding: 3px 4px; border-radius: 3px; color: #f1d68b; background: rgba(241,214,139,.12); font: 600 7px 'DM Mono', monospace; }
.nav-item.active .nav-cloud-status { color: #715b22; background: #f6e9bd; }
.nav-count { display: grid; min-width: 20px; height: 20px; margin-left: auto; place-items: center; border-radius: 20px; color: #243d32; background: #e8ce78; font: 600 10px 'DM Mono', monospace; }
.sidebar-bottom { flex: 0 0 auto; margin-top: auto; }
.project-link { margin-bottom: 18px; border-top: 1px solid rgba(255,255,255,.1); border-radius: 0; padding-top: 13px; }
.profile-card { display: flex; align-items: center; gap: 9px; padding: 13px 8px 3px; border-top: 1px solid rgba(255,255,255,.14); }
.avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: var(--forest); background: #e7cb75; font: 700 10px 'DM Mono', monospace; }
.profile-copy { display: grid; gap: 3px; }
.profile-copy strong { font-size: 11px; }
.profile-copy small { color: #a9c0b4; font-size: 10px; }
.profile-dot { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #89c09d; }
.cloud-auth-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: #f5f7f2; }
.cloud-auth-gate[hidden] { display: none; }
.cloud-login-card { display: grid; width: min(410px,100%); gap: 12px; padding: 30px; border: 1px solid #e0e7df; border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.cloud-login-logo { display:block; width:min(240px,100%); max-height:82px; margin:0 auto 4px; object-fit:contain; }
.cloud-login-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #f3d77c; background: var(--forest); font: 800 14px 'Manrope',sans-serif; }
.cloud-login-card .eyebrow { margin: 8px 0 0; color: #738078; font: 600 9px 'DM Mono',monospace; letter-spacing: .8px; }
.cloud-login-card h1 { margin: 0; color: #193e33; font: 700 25px 'Manrope',sans-serif; }
.cloud-login-copy { margin: 0 0 7px; color: #77847b; font-size: 12px; }
.cloud-login-card form { display: grid; gap: 9px; }
.cloud-login-card label { margin-top: 5px; color: #5f6e64; font-size: 11px; font-weight: 650; }
.cloud-login-card input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #d9e1d9; border-radius: 6px; background: #fff; font: inherit; }
.cloud-login-card button { min-height: 48px; margin-top: 10px; border: 0; border-radius: 7px; color: #fff; background: var(--forest); font: 700 13px 'DM Sans',sans-serif; }
.cloud-login-card button:disabled { opacity: .6; }
.cloud-login-card button.button-quiet { min-height: 36px; margin-top: 0; color: var(--forest); background: transparent; }
.cloud-login-error { margin: 0; color: #a64536; font-size: 11px; line-height: 1.45; }
.cloud-login-notice { margin: 0; color: #176b4b; font-size: 12px; line-height: 1.5; }
.cloud-home-session { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 13px; border-bottom: 1px solid #e5ebe3; }
.cloud-home-session > span { display: grid; min-width: 0; gap: 3px; }
.cloud-home-session strong { overflow-wrap: anywhere; color: #254739; font-size: 12px; }
.cloud-home-session small, .cloud-box-badge { color: #54765f; font: 600 9px 'DM Mono',monospace; letter-spacing: .3px; }
.cloud-empty-state { display: grid; min-height: 43vh; align-content: center; justify-items: center; gap: 11px; padding: 24px 12px; text-align: center; }
.cloud-empty-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 17px; color: #3a7358; background: #eaf2e8; font-size: 28px; }
.cloud-empty-state h2 { margin: 2px 0 0; color: #254638; font: 700 21px 'Manrope',sans-serif; }
.cloud-empty-state p { max-width: 290px; margin: 0 0 5px; color: #7c8a80; font-size: 12px; line-height: 1.45; }
.cloud-empty-state .button { min-height: 48px; border-radius: 9px; }
.cloud-box { cursor: pointer; }
.cloud-box-badge { padding: 6px 8px; border-radius: 5px; background: #edf4eb; }
.cloud-inline-create { display: block; margin-top: 5px; padding: 0; color: #3b755e; font-size: 10px; text-align: left; }
.cloud-inline-editor { display: grid; gap: 7px; margin-top: 8px; padding: 9px; border: 1px solid #dfe9df; border-radius: 5px; background: #f5f9f3; }
.cloud-inline-editor label { display: grid; gap: 5px; color: #65756a; font-size: 10px; font-weight: 650; }
.cloud-expense-advanced { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--line); }
.cloud-expense-advanced summary { color: #56685d; font-size: 11px; font-weight: 650; cursor: pointer; }
.cloud-advanced-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 9px; }
.cloud-advanced-fields label { display: grid; gap: 4px; color: #77847b; font-size: 9px; }
.cloud-advanced-fields input:disabled, .cloud-advanced-fields select:disabled { min-height: 34px; color: #89948d; background: #f1f3ef; }
.cloud-expense-advanced .form-hint { margin: 7px 0 0; }
.cloud-expense-active-box { display: block; padding: 11px 0; color: #294a3b; font-size: 13px; }
.cloud-mobile-wizard { display: grid; gap: 12px; }
.cloud-wizard-heading { position: sticky; top: 0; z-index: 2; display: grid; gap: 7px; padding: 2px 0 8px; background: #fffefa; }
.cloud-wizard-heading small { color: #829087; font: 600 9px 'DM Mono',monospace; }
.cloud-wizard-heading [data-cloud-progress] { color: #33745b; font: 700 11px 'DM Mono',monospace; }
.cloud-wizard-progress { height: 4px; overflow: hidden; border-radius: 4px; background: #e6ece4; }
.cloud-wizard-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: #38956f; transition: width .18s ease; }
.cloud-wizard-steps > section { display: grid; gap: 10px; }
.cloud-wizard-steps h3 { margin: 0 0 4px; color: #243d33; font: 700 21px 'Manrope',sans-serif; }
.cloud-step-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.cloud-step-choice { display: grid; min-width: 0; min-height: 62px; align-content: center; justify-items: center; gap: 4px; padding: 8px; border: 1px solid #e2e8df; border-radius: 8px; color: #2e483a; background: white; text-align: center; }
.cloud-step-choice > span { font-size: 22px; }
.cloud-step-choice > strong { overflow-wrap: anywhere; font-size: 11px; }
.cloud-step-choice.selected { border-color: #378665; background: var(--pastel-mint); box-shadow: inset 0 0 0 1px #378665; }
.cloud-step-choice.account-choice { display: flex; justify-content: flex-start; text-align: left; }
.cloud-step-choice.account-choice > span { flex: 0 0 28px; }
.cloud-wizard-controls { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; background: #fffefa; }
.cloud-wizard-controls .button { min-width: 120px; min-height: 46px; }
.cloud-expense-review-summary { display: grid; gap: 9px; padding: 13px; border: 1px solid #e4ebe1; border-radius: 8px; background: #f8faf6; }
.cloud-expense-review-summary > span { color: #4b6053; font-size: 12px; }
.cloud-review-amount { color: #1d553e; font: 800 31px 'Manrope',sans-serif; }
.dialog:has(.cloud-expense-fast-primary) { width: min(680px, calc(100vw - 28px)); }
.dialog:has(.cloud-expense-fast-primary) .dialog-body { max-height: min(76dvh, 760px); overflow-y: auto; }
.cloud-expense-fast-primary { display: grid; gap: 15px; }
.cloud-expense-fast-primary > [hidden] { display:none !important; }
.cloud-expense-step-navigation { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; }
.cloud-expense-recorded { color:#146b4b; font-size:18px; }
[data-fast-description] { display:grid; gap:10px; margin:12px 0; }
[data-fast-description][hidden] { display:none; }
[data-fast-description] label { display:grid; gap:6px; }
.cloud-expense-fast-choice .category-mark { background:var(--category-color); width:28px; height:28px; font-size:19px; }
.cloud-expense-fast-categories .cloud-expense-fast-choice { display:flex; align-items:center; gap:10px; min-height:48px; justify-items:start; text-align:left; }
.cloud-expense-fast-primary .cloud-expense-fast-categories,.cloud-expense-fast-primary .cloud-expense-fast-scopes,.cloud-expense-fast-primary .cloud-expense-fast-sources { max-height:none; grid-template-columns:1fr; }
.cloud-expense-fast-amount { display: grid; gap: 6px; padding: 12px; border: 1px solid #dce6dc; border-radius: 6px; background: #f5f9f5; }
.cloud-expense-fast-amount label { color: #4e6958; font-size: 11px; font-weight: 750; }
.cloud-expense-fast-amount input { min-height: 68px; padding: 4px 10px; border: 0; color: #173e33; background: transparent; font-size: 34px; font-weight: 750; }
.cloud-expense-fast-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.cloud-expense-fast-field legend { margin-bottom: 8px; color: #243e33; font-size: 14px; font-weight: 750; }
.cloud-expense-fast-categories,.cloud-expense-fast-sources,.cloud-expense-fast-scopes { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 7px; max-height: 190px; overflow: auto; overscroll-behavior: contain; }
.cloud-expense-fast-choice { display: grid; min-width: 0; min-height: 50px; align-content: center; justify-items: center; gap: 3px; padding: 7px; border: 1px solid #dfe7df; border-radius: 6px; color: #29483a; background: #fff; text-align: center; }
.cloud-expense-fast-choice strong { font-size: 11px; overflow-wrap: anywhere; }
.cloud-expense-fast-choice small { color: #718078; font-size: 9px; overflow-wrap: anywhere; }
.cloud-expense-fast-choice.selected { border-color: #378665; background: #e9f3eb; box-shadow: inset 0 0 0 1px #378665; }
.cloud-expense-source-choice { grid-template-columns: 26px minmax(0,1fr); justify-items: start; text-align: left; }
.cloud-expense-source-choice > span { grid-row: span 2; font-size: 20px; }
.cloud-expense-category-editor { display: grid; gap: 7px; margin-top: 8px; padding: 9px; border: 1px solid #dfe7df; border-radius: 6px; background: #f7faf7; }
.cloud-expense-category-editor > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.cloud-expense-category-editor .button { min-height: 44px; }
.cloud-expense-fast-saved { display: grid; justify-items: center; gap: 8px; padding: 15px 4px; text-align: center; }
.cloud-expense-saved-check { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: #146b4b; background: #dff1e6; font-size: 28px; }
.cloud-expense-saved-amount { color: #173e33; font-size: 32px; }
.cloud-expense-fast-saved p { margin: 0; }
.cloud-expense-fast-saved .cloud-expense-saved-summary { max-width: 100%; color: #566b5d; font-size: 12px; line-height: 1.4; }
.cloud-expense-interbox-note { max-width: 460px; color: #536a5d; font-size: 12px; }
.cloud-expense-details { margin-top: 4px; padding-top: 5px; border-top: 1px solid #e2e9e2; }
.cloud-expense-details > summary { min-height: 36px; padding: 7px 0; color: #28664c; font-size: 12px; font-weight: 700; cursor: pointer; }
.cloud-expense-details .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 10px; }
.cloud-expense-details .form-grid label { gap: 3px; font-size: 10px; }
.cloud-expense-details .field-input, .cloud-expense-details .field-select { min-height: 38px; padding-top: 5px; padding-bottom: 5px; font-size: 12px; }
.cloud-expense-details .field-textarea { min-height: 66px; padding: 6px 8px; font-size: 12px; }
.cloud-expense-details [data-fast-save-details] { min-height: 38px; margin-top: 7px; }
.dialog:has([data-fastCloudExpense]),.dialog:has(.cloud-expense-step-body) { width:min(520px,calc(100vw - 28px)); }
.cloud-expense-step-body .cloud-expense-fast-amount { border:0; background:none; padding:0; text-align:center; gap:4px; }
.cloud-expense-step-body .cloud-expense-fast-amount label { font-size:16px; }
.cloud-expense-step-body .cloud-expense-fast-amount input { min-height:62px; width:100%; text-align:center; font-size:36px; padding:0; }
.cloud-expense-keypad { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.cloud-expense-keypad button { min-height:56px; padding:8px; border:0; border-radius:4px; background:transparent; color:#243e33; font-size:26px; font-weight:600; }
.cloud-expense-keypad button:hover,.cloud-expense-keypad button:focus-visible { background:#edf5f0; }
.cloud-expense-step-body .cloud-expense-fast-choice { min-height:48px; justify-items:start; padding:7px 9px; text-align:left; border-radius:10px; }
.cloud-expense-step-body .cloud-expense-fast-choice strong { font-size:13px; }
.cloud-expense-step-body .cloud-expense-fast-choice small { font-size:10px; }
.cloud-expense-step-body .cloud-expense-source-choice > span { font-size:17px; }
.cloud-expense-step-body .cloud-expense-fast-field legend { font-size:16px; margin-bottom:14px; }
.cloud-expense-step-body .cloud-expense-step-navigation .button { min-height:48px; }
.cloud-expense-step-body .cloud-expense-fast-saved { padding:8px 0 14px; gap:7px; }
.cloud-expense-step-body .cloud-expense-saved-amount { font-size:38px; }
.cloud-expense-step-body .cloud-expense-recorded { font-size:22px; }
@media(max-width:760px) { .dialog:has(.cloud-expense-step-body) { width:100vw; } .cloud-expense-step-body .cloud-expense-fast-amount input { font-size:42px; } }
.emoji-picker { position: relative; min-width: 0; }
.emoji-picker-trigger { display: flex; width: 100%; min-height: 42px; align-items: center; gap: 9px; padding: 5px 9px; border: 1px solid #dfe6dc; border-radius: 5px; color: #40564a; background: #fff; text-align: left; font-size: 11px; }
.emoji-picker-trigger [data-emoji-selected] { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 7px; background: var(--pastel-mint); font-size: 20px; }
.emoji-picker-panel { display: grid; gap: 8px; margin-top: 7px; padding: 9px; border: 1px solid #dfe6dc; border-radius: 7px; background: #fff; box-shadow: 0 8px 24px rgba(24,44,39,.1); }
.emoji-picker-search input { min-height: 36px; }
.emoji-picker-groups { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; }
.emoji-picker-groups button { min-height: 30px; flex: 0 0 auto; padding: 0 8px; border: 1px solid #e2e8df; border-radius: 5px; color: #637368; background: #f7f9f5; font-size: 9px; }
.emoji-picker-groups button[aria-pressed="true"] { border-color: #8db8a2; color: #285542; background: var(--pastel-mint); }
.emoji-picker-grid { display: grid; max-height: min(34vh, 250px); grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; overflow-y: auto; overscroll-behavior: contain; }
.emoji-picker-option { display: grid; min-width: 0; min-height: 52px; align-content: center; justify-items: center; gap: 2px; padding: 4px 2px; border: 1px solid #edf0ea; border-radius: 5px; color: #34483c; background: white; }
.emoji-picker-option:hover, .emoji-picker-option:focus-visible { border-color: #87b49c; background: #f3f8f2; }
.emoji-picker-option.selected { border-color: #4e9471; background: #e5f3eb; box-shadow: inset 0 0 0 1px #4e9471; }
.emoji-picker-option span { font-size: 22px; }
.emoji-picker-option small { max-width: 100%; overflow: hidden; color: #7e8b82; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.emoji-picker-empty { grid-column: 1 / -1; margin: 7px 0; color: #718077; font-size: 10px; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home-box-grid .home-box:nth-child(5n + 1) { background: var(--pastel-mint); }
.home-box-grid .home-box:nth-child(5n + 2) { background: var(--pastel-sky); }
.home-box-grid .home-box:nth-child(5n + 3) { background: var(--pastel-peach); }
.home-box-grid .home-box:nth-child(5n + 4) { background: var(--pastel-lemon); }
.home-box-grid .home-box:nth-child(5n) { background: var(--pastel-lilac); }
.main-area { min-height: 100vh; min-height: 100dvh; margin-left: 244px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; min-height: 66px; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid rgba(224,229,220,.8); background: rgba(249,250,246,.9); backdrop-filter: blur(14px); }
.cloud-progress { position: absolute; inset: auto 0 -1px; height: 2px; overflow: hidden; background: transparent; }
.cloud-progress[hidden] { display: none; }
.cloud-progress span { display: block; width: 32%; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #5bb59b, #287a65, #9ed9bd); transform: translateX(-110%); }
.cloud-progress.is-active span { animation: cloud-progress-sweep 1.1s ease-in-out infinite; }
.cloud-progress.is-completing span { width: 100%; transform: translateX(0); transition: width .12s ease-out; animation: none; }
@keyframes cloud-progress-sweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(330%); } }
.cloud-loading-placeholder { padding: 24px 14px; color: #7b887f; text-align: center; font-size: 12px; }
.cloud-configuration-loading { margin: 8px 0; padding: 9px 12px; border-radius: 10px; background: #f3f8f4; color: #537461; font-size: 12px; }
.crumb { display: flex; align-items: center; gap: 10px; color: #8b958e; font-size: 12px; }
.crumb b { color: #c0c8c1; font-weight: 400; }
.crumb strong { color: #263a33; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.today-label { color: #89938c; font-size: 11px; }
.button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 700; transition: transform .15s ease, background .15s ease; }
.button[hidden] { display: none; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--forest); box-shadow: 0 5px 12px rgba(24,62,53,.14); }
.button-primary:hover { background: #205346; }
.button-secondary { border-color: var(--line); color: #34453d; background: #fff; }
.button-quiet { color: #53645b; background: #edf1eb; }
.button-danger { color: #a54f40; background: #fff0eb; }
.button-small { min-height: 31px; padding: 0 10px; font-size: 11px; }
.icon-button { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: #405249; background: white; }
.mobile-menu { display: none; }
.mobile-brand { display: none; }
.page-content { width: min(1480px, 100%); margin: 0 auto; padding: 31px 34px 50px; animation: content-enter .25s ease both; }
@keyframes content-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.eyebrow { margin-bottom: 7px; color: #829087; font: 500 10px 'DM Mono', monospace; letter-spacing: .8px; text-transform: uppercase; }
.page-heading .eyebrow { color: #4c8571; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; font: 700 30px 'Manrope', sans-serif; letter-spacing: 0; }
h2 { margin-bottom: 0; font: 700 15px 'Manrope', sans-serif; }
h3 { margin-bottom: 0; font: 700 13px 'Manrope', sans-serif; }
.subheading { margin: 0; color: #77847c; font-size: 12px; }
.box-switcher { display: flex; gap: 4px; padding: 4px; border: 1px solid #e1e6de; border-radius: 6px; background: #ecefe9; }
.box-switcher button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 4px; color: #708078; background: transparent; font-size: 11px; font-weight: 600; }
.box-switcher button.selected { color: #193d34; background: white; box-shadow: 0 1px 3px rgba(27,49,41,.1); }
.period-row { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.period-select, .field-input, .field-select, .field-textarea { width: 100%; min-height: 39px; padding: 0 11px; border: 1px solid #e0e5dc; border-radius: 5px; color: #293b33; background: #fff; font-size: 12px; }
.period-select { width: auto; min-width: 130px; }
.period-note { color: #86918a; font-size: 11px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.metric-card { position: relative; min-height: 122px; padding: 16px 17px; overflow: hidden; border: 1px solid #e6e9e2; border-radius: 7px; background: rgba(255,255,252,.9); }
.metric-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--teal); content: ''; }
.metric-card:nth-child(4n + 2)::before { background: var(--blue); }
.metric-card:nth-child(4n + 3)::before { background: var(--coral); }
.metric-card:nth-child(4n)::before { background: var(--violet); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #78867d; font-size: 11px; }
.metric-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; color: #285948; background: var(--pastel-mint); font-size: 15px; }
.metric-card:nth-child(4n + 2) .metric-mark { color: #3c6d9c; background: var(--pastel-sky); }
.metric-card:nth-child(4n + 3) .metric-mark { color: #9b5843; background: var(--pastel-peach); }
.metric-card:nth-child(4n) .metric-mark { color: #66568e; background: var(--pastel-lilac); }
.metric-value { margin-top: 13px; font: 700 23px 'Manrope', sans-serif; letter-spacing: 0; }
.metric-foot { margin-top: 4px; color: #859189; font-size: 10px; }
.metric-foot .positive { color: #358063; }
.metric-foot .negative { color: #bd604d; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 14px; }
.panel { min-width: 0; border: 1px solid #e5e9e1; border-radius: 7px; background: rgba(255,255,252,.94); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px 13px; }
.panel-header p { margin: 4px 0 0; color: #89948c; font-size: 10px; }
.panel-link { padding: 4px 0; border: 0; color: #527568; background: none; font-size: 10px; font-weight: 700; }
.chart-area { display: flex; align-items: center; gap: 24px; min-height: 213px; padding: 8px 20px 18px; }
.donut { position: relative; flex: 0 0 156px; width: 156px; height: 156px; border-radius: 50%; background: conic-gradient(#183e35 0 34%, #dc7056 34% 57%, #edc969 57% 75%, #6da897 75% 88%, #a8b6a8 88%); }
.donut::after { position: absolute; inset: 23px; border-radius: 50%; background: #fffefa; content: ''; }
.donut-center { position: absolute; z-index: 1; inset: 0; display: grid; align-content: center; justify-items: center; pointer-events: none; }
.donut-center strong { font: 700 18px 'Manrope', sans-serif; }
.donut-center small { margin-top: 3px; color: #89948c; font-size: 9px; }
.legend { display: grid; flex: 1; gap: 5px; }
.legend-button { display: flex; min-height: 27px; align-items: center; gap: 8px; padding: 3px 4px; border: 0; border-radius: 4px; text-align: left; color: #53635a; background: transparent; font-size: 10px; }
.legend-button:hover { background: #f1f4ee; }
.legend-swatch { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 2px; }
.legend-button strong { margin-left: auto; color: #253a32; font: 600 10px 'DM Mono', monospace; }
.trend-panel { grid-column: 1 / -1; }
.bar-chart { display: grid; min-height: 190px; grid-template-columns: repeat(6,1fr); align-items: end; gap: 14px; padding: 13px 23px 18px; border-top: 1px solid #eff1ec; }
.bar-column { display: grid; height: 151px; grid-template-rows: 1fr auto; justify-items: center; gap: 9px; border: 0; color: #8c968e; background: transparent; }
.bar-stack { display: flex; width: 35px; height: 100%; align-items: end; justify-content: center; gap: 4px; border-bottom: 1px solid #e5e9e2; }
.bar { width: 12px; min-height: 3px; border-radius: 3px 3px 0 0; background: #183e35; transition: height .35s ease; }
.bar.secondary { background: #e5bd59; }
.bar-column:hover .bar { filter: brightness(1.15); }
.bar-label { font: 10px 'DM Mono', monospace; }
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.compact-list { padding: 0 17px 10px; }
.list-row { display: flex; align-items: center; gap: 10px; min-height: 47px; border-top: 1px solid #eff1ed; }
.list-icon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 6px; color: #325d4c; background: #edf2e9; font-size: 12px; }
.list-copy { min-width: 0; flex: 1; }
.list-copy strong, .list-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-copy strong { font-size: 11px; font-weight: 600; }
.list-copy small { margin-top: 3px; color: #8a968e; font-size: 10px; }
.list-amount { color: #34483e; font: 600 11px 'DM Mono', monospace; white-space: nowrap; }
.list-amount.expense { color: #b75f4b; }
.list-amount.income { color: #387a5c; }
.empty-state { display: grid; min-height: 130px; place-items: center; color: #849087; font-size: 12px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 13px; }
.movement-filter-disclosure { flex: 0 0 100%; overflow: hidden; border: 1px solid #e2e8e2; border-radius: 7px; background: rgba(255,255,252,.92); }
.movement-filter-disclosure > summary { display: flex; min-height: 39px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; color: #30463b; cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; }
.movement-filter-disclosure > summary::-webkit-details-marker { display: none; }
.movement-filter-disclosure > summary::after { width: 7px; height: 7px; margin: -4px 2px 0 0; border-right: 1.5px solid #6a8878; border-bottom: 1.5px solid #6a8878; content: ''; transform: rotate(45deg); transition: transform .15s ease; }
.movement-filter-disclosure[open] > summary::after { margin-top: 4px; transform: rotate(225deg); }
.movement-filter-disclosure > summary small { margin-left: auto; color: #849188; font-size: 10px; font-weight: 500; }
.movement-filter-content { padding: 0 10px 10px; }
.movement-filter-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 8px; }
.movement-filter-grid .filter-select { width: 100%; min-width: 0; }
.movement-filter-dates { display: grid; grid-template-columns: auto minmax(120px,1fr) auto minmax(120px,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; margin: 0; }
.movement-filter-dates .filter-select { width: 100%; min-width: 0; }
.search-box { position: relative; flex: 1 1 220px; }
.search-box input { padding-left: 34px; }
.search-box::before { position: absolute; top: 12px; left: 12px; width: 10px; height: 10px; border: 1.5px solid #86938a; border-radius: 50%; content: ''; pointer-events: none; }
.search-box::after { position: absolute; top: 23px; left: 22px; width: 5px; border-top: 1.5px solid #86938a; content: ''; transform: rotate(45deg); transform-origin: left center; pointer-events: none; }
.filter-select { width: auto; min-width: 115px; }
.table-wrap { overflow-x: auto; border: 1px solid #e5e9e1; border-radius: 7px; background: #fffefa; }
.mobile-movement-list { display: none; }
.mobile-movement-card { display:grid; width:100%; min-width:0; gap:4px; padding:7px 9px; border:1px solid #e3e9e2; border-radius:6px; color:#2d4338; background:#fff; text-align:left; }
.mobile-movement-card:hover { border-color: #90b8a5; background: #fff; }
.mobile-movement-top { display: flex; min-width: 0; align-items: center; gap: 7px; }
.mobile-movement-top time { margin-right: auto; color: #73847a; font: 500 10px 'DM Mono',monospace; }
.mobile-movement-top .type-badge { flex: 0 0 auto; }
.mobile-movement-amount { flex: 0 0 auto; color: #40544a; font: 700 13px 'DM Mono',monospace; white-space: nowrap; }
.mobile-movement-amount.expense { color: #b85e4b; }
.mobile-movement-amount.income { color: #38805c; }
.mobile-movement-title { overflow-wrap: anywhere; color: #263d32; font-size: 12px; line-height: 1.35; }
.mobile-movement-meta { display:block; padding:0; border:0; color:#718078; font-size:10px; line-height:1.4; overflow-wrap:anywhere; }
.mobile-movement-main { display:flex; gap:10px; align-items:baseline; justify-content:space-between; min-width:0; }
.mobile-movement-main .mobile-movement-title { flex:1; min-width:0; }
.mobile-movement-card-actions { margin-left:auto; }
.mobile-movement-card .icon-button { width:30px; height:28px; min-width:30px; min-height:28px; padding:2px; font-size:15px; }
.mobile-movement-card .cloud-movement-actions { display:inline-flex; gap:3px; }
.movement-document-origin { color:#718078; font-size:13px; }
.movement-receipt-preview { display:block; width:100%; max-height:70vh; object-fit:contain; }
object.movement-receipt-preview { height:65vh; }
.mobile-movement-meta-item { display: grid; min-width: 0; gap: 3px; }
.mobile-movement-meta-item small { color: #87938a; font-size: 9px; }
.mobile-movement-meta-item strong { display: flex; min-width: 0; align-items: center; gap: 4px; overflow-wrap: anywhere; color: #52645a; font-size: 10px; font-weight: 600; }
.mobile-movement-meta-item .category-mark { flex: 0 0 18px; width: 18px; height: 18px; font-size: 11px; }
.mobile-movement-empty { padding: 20px 14px; border: 1px solid #e3e9e2; border-radius: 8px; color: #7d8a81; background: #fffefa; font-size: 12px; text-align: center; }
.mobile-drawer-backdrop { position: fixed; inset: 0; z-index: 16; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(19,39,32,.34); backdrop-filter: blur(2px); }
.mobile-drawer-backdrop[hidden] { display: none; }
body.drawer-open { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { height: 41px; padding: 0 13px; border-bottom: 1px solid #e8ece5; color: #78887e; background: #f4f7f2; font: 500 10px 'DM Mono', monospace; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
td { height: 56px; padding: 8px 13px; border-bottom: 1px solid #eff1ec; color: #46584e; font-size: 12px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #f8faf5; }
.type-badge, .status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 4px; color: #34745d; background: var(--pastel-mint); font-size: 10px; font-weight: 700; }
.type-badge.expense { color: #a85243; background: #fff0eb; }
.type-badge.transfer { color: #5c6283; background: #eff0fa; }
.type-badge.adjustment { color: #98732d; background: #fbf4df; }
.amount-cell { font: 600 11px 'DM Mono', monospace; }
.amount-cell.expense { color: #b85e4b; }
.amount-cell.income { color: #38805c; }
.muted { color: #8b968e; }
.section-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.comparison-grid, .budget-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(265px,1fr)); gap: 13px; align-items: start; }
.comparison-grid:not(.comparison-carousel) { align-items: stretch; }
.comparison-grid:not(.comparison-carousel) > .comparison-card { display: flex; min-width: 0; flex-direction: column; }
.comparison-followups-grid { display: grid; gap: 12px; margin-top: 14px; }
.comparison-followup { min-width: 0; margin-top: 10px; padding-top: 9px; border-top: 1px solid #e2e9e1; }
.comparison-followup-heading { display: none; }
.comparison-followup-heading .home-box-icon { width: 36px; height: 36px; flex-basis: 36px; color: var(--box-accent); background: rgba(255,255,255,.75); font-size: 20px; }
.comparison-followup-heading > span:last-child { display: grid; gap: 3px; }
.comparison-followup-heading strong { color: #293f34; font: 700 14px 'Manrope',sans-serif; }
.comparison-followup-heading small { color: #718178; font-size: 10px; }
.comparison-activity-grid { display: grid; grid-template-columns: minmax(0,1fr); min-width: 0; }
.comparison-activity-block { min-width: 0; padding: 9px 0; }
.comparison-activity-block + .comparison-activity-block { border-top: 1px solid #e9eee8; }
.comparison-activity-block > header { display: flex; min-height: 22px; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.comparison-followup .timeline-chart { min-width: 0; padding: 0 4px 4px; }
.comparison-followup .timeline-area { fill: var(--box-accent); opacity: .12; }
.comparison-followup .timeline-line, .comparison-followup .timeline-point { stroke: var(--box-accent); }
.comparison-followup .timeline-legend i { background: var(--box-accent); }
.comparison-currency-chart > small { display: block; margin: 0 7px 2px; color: var(--box-accent); font: 600 9px 'DM Mono',monospace; }
.comparison-category-breakdown { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0 8px 7px; }
.comparison-category-breakdown > span { display: flex; min-width: 0; align-items: center; gap: 4px; color: #586a60; font-size: 9px; }
.comparison-category-breakdown .category-mark { width: 18px; height: 18px; flex: 0 0 18px; font-size: 10px; }
.comparison-category-breakdown strong { margin-left: 2px; color: #34493e; font: 600 9px 'DM Mono',monospace; }
.comparison-recent-list { display: grid; }
.comparison-recent-row { display: grid; min-width: 0; min-height: 45px; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 7px; border-top: 1px solid #edf1eb; }
.comparison-recent-row .type-badge { padding: 4px 5px; font-size: 8px; }
.comparison-recent-copy { display: grid; min-width: 0; gap: 3px; }
.comparison-recent-copy strong, .comparison-recent-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comparison-recent-copy strong { color: #34483d; font-size: 10px; font-weight: 600; }
.comparison-recent-copy small { color: #87938a; font-size: 9px; }
.comparison-recent-row .list-amount { font-size: 9px; }
.comparison-view-all { margin-top: 8px; }
.comparison-carousel-indicators { display: none; }
.comparison-card, .budget-card { overflow: hidden; }
.comparison-open { display: flex; width: 100%; min-height: 62px; align-items: center; gap: 10px; padding: 11px 14px; border: 0; border-bottom: 1px solid #edf0e9; text-align: left; color: #293e34; background: #f8faf5; }
.comparison-open:hover { background: #eef3ec; }
.comparison-card:nth-child(5n + 1) .comparison-open { background: var(--pastel-mint); }
.comparison-card:nth-child(5n + 2) .comparison-open { background: var(--pastel-sky); }
.comparison-card:nth-child(5n + 3) .comparison-open { background: var(--pastel-peach); }
.comparison-card:nth-child(5n + 4) .comparison-open { background: var(--pastel-lemon); }
.comparison-card:nth-child(5n) .comparison-open { background: var(--pastel-lilac); }
.comparison-open > span:nth-child(2) { display: grid; flex: 1; gap: 3px; }
.comparison-open strong { font: 700 13px 'Manrope', sans-serif; }
.comparison-open small { color: #89948c; font-size: 9px; }
.comparison-open > b { color: #819188; font-size: 17px; }
.comparison-spend { display: grid; gap: 4px; padding: 15px 16px 12px; }
.comparison-spend small { color: #819087; font: 500 9px 'DM Mono', monospace; }
.comparison-spend strong { color: #203a30; font: 800 24px 'Manrope', sans-serif; }
.comparison-budget { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0 14px; padding: 11px 0; border-top: 1px solid #edf0e9; }
.comparison-budget > div:not(.budget-progress) { display: grid; gap: 4px; }
.comparison-budget span, .comparison-budget small { color: #86928a; font-size: 9px; }
.comparison-budget strong { color: #365b49; font: 700 12px 'Manrope', sans-serif; }
.comparison-budget .budget-progress { grid-column: 1 / -1; }
.comparison-lines { display: grid; grid-template-columns: 1fr 1fr; margin: 0 14px; border-top: 1px solid #edf0e9; }
.comparison-lines > div { display: grid; min-width: 0; gap: 4px; padding: 9px 4px; border-bottom: 1px solid #f0f2ed; }
.comparison-lines span { color: #87938a; font-size: 9px; }
.comparison-lines strong { overflow-wrap: anywhere; color: #344a3e; font: 600 10px 'DM Sans', sans-serif; }
.comparison-financial { display: grid; gap: 0; margin: 0 14px 13px; padding: 7px 0 0; border-top: 1px solid #edf0e9; }
.comparison-financial > div { display: flex; justify-content: space-between; gap: 9px; padding: 6px 3px; border-bottom: 1px solid #f0f2ed; }
.comparison-financial span { color: #87938a; font-size: 9px; }
.comparison-financial strong { text-align: right; color: #344a3e; font: 600 10px 'DM Sans', sans-serif; }
.comparison-financial .position-estimate { padding-top: 9px; border-bottom: 0; }
.comparison-financial .position-estimate strong { color: #1d6248; }
.comparison-financial > small { padding: 6px 3px 0; color: #929b93; font-size: 9px; line-height: 1.4; }
.currency-separate { padding: 7px 14px; color: #926337; background: #fbf5e9; font-size: 9px; line-height: 1.4; }
.budget-card .panel-header { padding-bottom: 8px; }
.budget-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 0 15px 12px; }
.budget-values > div { display: grid; min-width: 0; gap: 4px; }
.budget-values small { color: #87938a; font-size: 9px; }
.budget-values strong { color: #294537; font: 700 12px 'Manrope', sans-serif; overflow-wrap: anywhere; }
.budget-progress { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 10px; background: #e8ede5; }
.budget-progress span { display: block; height: 100%; border-radius: inherit; background: #6da897; }
.budget-foot { display: flex; justify-content: space-between; gap: 8px; padding: 0 15px 11px; color: #859188; font-size: 9px; }
.projection-note { display: grid; gap: 4px; margin: 0 14px 12px; padding: 9px 10px; border-left: 3px solid #e5bd59; background: #faf6e9; }
.projection-note small { color: #937331; font: 500 9px 'DM Mono', monospace; }
.projection-note strong { color: #67572e; font-size: 10px; line-height: 1.4; }
.unravel-home-actions { display: grid; gap: 10px; margin: 0 auto 18px; }
.unravel-hero { display: grid; width: 100%; min-height: 190px; grid-template-columns: minmax(150px,.8fr) minmax(0,1fr); align-items: center; gap: 18px; padding: 16px 23px; border: 1px solid #c8dfd0; border-radius: 9px; text-align: left; color: #244b39; background: linear-gradient(115deg,#e3f2e8 0%,#f2f7ed 58%,#f9f2df 100%); box-shadow: 0 8px 24px rgba(35,81,59,.08); }
.unravel-hero-art, .unravel-intro-art { display: grid; min-width: 0; place-items: center; }
.unravel-illustration { display: block; width: min(100%,220px); height: auto; overflow: visible; }
.unravel-thread { stroke-dasharray: 90; animation: unravel-thread 1.5s ease-in-out infinite alternate; }
@keyframes unravel-thread { from { stroke-dashoffset: 28; } to { stroke-dashoffset: 0; } }
.unravel-hero-copy { display: grid; min-width: 0; gap: 8px; }
.unravel-hero-copy small { color: #59806a; font: 600 10px 'DM Mono',monospace; }
.unravel-hero-copy strong { color: #1f503a; font: 800 30px 'Manrope',sans-serif; }
.unravel-hero-copy > span { color: #587567; font-size: 14px; }
.unravel-hero-copy b { margin-top: 5px; color: #347254; font-size: 12px; }
.unravel-hero-copy b i { font-style: normal; }
.unravel-inbox-link { display: flex; width: 100%; min-height: 64px; align-items: center; gap: 12px; padding: 9px 15px; border: 1px solid #e0e9e0; border-radius: 7px; text-align: left; color: #314b3d; background: #fffefa; }
.unravel-inbox-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 10px; color: #51745c; background: #edf4e9; font-size: 23px; }
.unravel-inbox-link > span:nth-child(2) { display: grid; min-width: 0; flex: 1; gap: 4px; }
.unravel-inbox-link strong { font-size: 12px; }
.unravel-inbox-link small { color: #7e8c82; font-size: 11px; }
.unravel-inbox-arrow { color: #74867a; font-size: 20px; }
.unravel-intro { display: grid; grid-template-columns: minmax(170px,.6fr) minmax(0,1fr); align-items: center; gap: 22px; margin-bottom: 20px; padding: 20px; border: 1px solid #dce8dc; border-radius: 8px; background: linear-gradient(110deg,#eaf4ec,#fffefa); }
.unravel-intro h2 { margin: 5px 0; color: #244a38; font: 700 22px 'Manrope',sans-serif; }
.unravel-intro p { max-width: 530px; margin: 0; color: #6d8074; font-size: 13px; line-height: 1.5; }
.unravel-source-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.unravel-source-grid > header { grid-column: 1 / -1; margin: 0 0 3px; }
.unravel-source-grid > header h2 { margin: 0 0 4px; color: #31493b; font-size: 16px; }
.unravel-source-grid > header p { margin: 0; color: #829087; font-size: 11px; }
.unravel-source-card { position: relative; display: grid; min-width: 0; min-height: 91px; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e2e9e0; border-radius: 7px; background: #fffefa; }
.unravel-source-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 9px; color: #315d47; background: #e9f3e9; font-size: 21px; }
.unravel-source-copy { display: grid; min-width: 0; gap: 4px; }
.unravel-source-copy strong { color: #324b3c; font-size: 11px; }
.unravel-source-copy small { color: #828f86; font-size: 10px; line-height: 1.35; }
.unravel-source-action { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid #d9e4d8; border-radius: 6px; color: #315d47; background: #f4f8f1; font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.unravel-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.unravel-file-status { grid-column: 2 / -1; color: #54785f; font-size: 9px; }
.unravel-safety-note, .integration-privacy-note { margin-top: 14px; padding: 12px 14px; border-left: 3px solid #8ab49a; color: #62776a; background: #f0f5ed; font-size: 11px; line-height: 1.5; }
.unravel-text-panel { display: grid; max-width: 720px; gap: 11px; }
.unravel-text-panel label { color: #31493b; font-size: 12px; font-weight: 700; }
.unravel-text-panel .field-textarea { min-height: 130px; }
.incoming-empty { display: grid; min-height: 240px; justify-items: center; align-content: center; gap: 8px; margin-top: 15px; padding: 28px 16px; border: 1px dashed #cbdccc; border-radius: 8px; text-align: center; background: #f6f9f3; }
.incoming-empty > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: #397553; background: #e1f0e4; font-size: 25px; }
.incoming-empty strong { color: #2c6244; font: 700 13px 'DM Mono',monospace; }
.incoming-empty p { max-width: 350px; margin: 0; color: #77867a; font-size: 12px; }
.incoming-policy { margin-top: 17px; padding: 14px 0; border-top: 1px solid #e4eae2; }
.incoming-policy h2 { margin: 0 0 5px; color: #3c5546; font-size: 13px; }
.incoming-policy p { max-width: 760px; margin: 0; color: #7a897f; font-size: 11px; line-height: 1.5; }
.integration-panel { overflow: hidden; }
.integration-row { min-height: 70px; }
.integration-row .status-badge { flex: 0 0 auto; font-size: 8px; }
.integration-explainer { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 12px; margin: 12px 0; padding: 15px; border-radius: 7px; background: #eef5ee; }
.integration-explainer > span { font-size: 26px; }
.integration-explainer p { margin: 0; color: #587263; font-size: 12px; line-height: 1.5; }
.integration-explainer strong { grid-column: 2; color: #3d7052; font-size: 10px; }
.provider-card { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 14px; border-top: 1px solid #edf0e9; background: #fffefa; }
.provider-card > div { display: grid; min-width: 0; gap: 4px; }
.provider-card strong { color: #30483a; font-size: 12px; }
.provider-card p { margin: 0; color: #7b897f; font-size: 10px; line-height: 1.4; }
.provider-card small { color: #8a968e; font-size: 9px; }
.provider-card .status-badge { flex: 0 0 auto; }
.integration-upcoming-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.integration-upcoming-grid article { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border: 1px solid #e6eae3; border-radius: 6px; color: #607167; background: #f7f8f4; font-size: 10px; }
.integration-upcoming-grid span { color: #9a792b; font-size: 8px; font-weight: 700; }
.permission-list { padding: 0 14px; }
.permission-row { display: flex; min-height: 57px; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #edf0e9; }
.permission-row > span:first-child { display: grid; gap: 4px; }
.permission-row strong { color: #394f41; font-size: 11px; }
.permission-row small { color: #839087; font-size: 10px; }
.account-identity { display: flex; align-items: center; gap: 12px; padding: 16px; }
.account-identity > div { display: grid; flex: 1; gap: 4px; }
.account-identity strong { color: #31483a; font-size: 12px; }
.account-identity small { color: #829087; font-size: 10px; }
.favorite-list { margin: 0 14px 13px; border-top: 1px solid #edf0e9; }
.favorite-list > div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 3px; border-bottom: 1px solid #f0f2ed; color: #52655a; font-size: 9px; }
.favorite-list strong { text-align: right; color: #354b3e; font: 600 9px 'DM Mono', monospace; }
.gmail-account-card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; border-top: 1px solid #edf0e9; background: #fffefa; }
.gmail-account-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gmail-account-card-header > div { display: grid; min-width: 0; gap: 4px; }
.gmail-account-card-header strong { color: #30483a; font-size: 13px; }
.gmail-account-card-header p { margin: 0; color: #7b897f; font-size: 11px; line-height: 1.4; }
.gmail-account-card-header small { color: #8a968e; font-size: 10px; }
.gmail-account-card-controls { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px dashed #e6eae3; }
.gmail-account-card-controls .form-field { flex: 1 1 200px; margin: 0; }
.gmail-account-card-controls .more-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.gmail-workspace-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px; background: #f7f9f5; border-bottom: 1px solid #edf0e9; }
.gmail-workspace-bar .form-field { flex: 1 1 220px; margin: 0; }
.integration-google-cloud-note { margin: 14px; padding: 12px 14px; border-left: 3px solid #e09f3e; color: #6a5733; background: #fdfaf2; font-size: 11px; line-height: 1.5; border-radius: 4px; }
.integration-google-cloud-note strong { display: block; margin-bottom: 4px; color: #4a3b1a; }
.quick-home { width: min(1050px, 100%); margin: 0 auto; padding: 23px 0 36px; }
.quick-home-actions, .home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quick-home-actions { justify-content: flex-end; margin-bottom: 12px; }
.home-kicker { margin-bottom: 10px; color: #718279; font: 500 10px 'DM Mono', monospace; letter-spacing: .7px; }
.home-kicker span { color: #b18432; }
.quick-home h1 { max-width: 640px; font-size: 34px; }
.home-lead { margin: 6px 0 17px; color: #7d8a81; font-size: 12px; }
.home-box-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 11px; }
.home-box { display: flex; min-height: 116px; align-items: center; gap: 15px; padding: 19px; border: 1px solid #e2e8df; border-radius: 8px; text-align: left; color: #243d33; background: rgba(255,255,252,.95); box-shadow: 0 3px 12px rgba(24,44,39,.035); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.home-box:hover, .home-box.selected { border-color: #6da897; box-shadow: 0 7px 20px rgba(24,62,53,.09); transform: translateY(-2px); }
.home-box-icon { display: grid; width: 50px; height: 50px; flex: 0 0 50px; place-items: center; border-radius: 12px; color: #1e4a3b; background: #d6eee3; font-size: 26px; }
.home-box-grid .home-box:nth-child(5n + 2) .home-box-icon { color: #355f8b; background: #d4e5f5; }
.home-box-grid .home-box:nth-child(5n + 3) .home-box-icon { color: #985841; background: #f4d9cd; }
.home-box-grid .home-box:nth-child(5n + 4) .home-box-icon { color: #8b6724; background: #f4e8ba; }
.home-box-grid .home-box:nth-child(5n) .home-box-icon { color: #66558c; background: #ded5ef; }
.home-box-copy { display: grid; min-width: 0; flex: 1; gap: 5px; }
.home-box-copy strong { overflow: hidden; font: 700 15px 'Manrope', sans-serif; text-overflow: ellipsis; }
.home-box-copy small { color: #86938a; font-size: 10px; }
.home-box-copy .home-box-summary { overflow: hidden; color: #526f60; font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.home-box-arrow { color: #789084; font-size: 20px; }
.quick-methods { margin-top: 25px; padding-top: 20px; border-top: 1px solid #e3e8e0; animation: enter .22s ease both; }
.quick-selected { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; color: #27493a; font-size: 13px; }
.quick-selected > span { font-size: 20px; }
.quick-selected strong { font: 700 14px 'Manrope', sans-serif; }
.quick-selected .panel-link { margin-left: auto; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.method-button { display: flex; min-height: 82px; align-items: center; gap: 13px; padding: 15px; border: 1px solid #e2e8df; border-radius: 7px; text-align: left; color: #294237; background: white; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.method-button:hover { border-color: #78aa97; box-shadow: 0 6px 18px rgba(24,62,53,.08); transform: translateY(-1px); }
.method-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 9px; color: #20493a; background: var(--pastel-mint); font-size: 23px; }
.method-button.scan .method-icon { color: #95533e; background: #fbefe7; }
.method-button > span:nth-child(2) { display: grid; min-width: 0; flex: 1; gap: 5px; }
.method-button strong { font-size: 12px; }
.method-button small { color: #8a968e; font-size: 9px; line-height: 1.35; }
.method-button > b { color: #789084; font-size: 17px; }
.home-footnote { margin-top: 22px; color: #939d95; font-size: 10px; }
.more-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.more-group { margin-top: 18px; }
.more-group h2 { margin-bottom: 8px; color: #7c8980; font: 500 10px 'DM Mono', monospace; letter-spacing: .4px; text-transform: uppercase; }
.more-row { display: flex; width: 100%; min-height: 58px; align-items: center; gap: 12px; padding: 8px 13px; border: 0; border-top: 1px solid #e5e9e2; text-align: left; color: #293e34; background: transparent; }
.more-row:hover { background: rgba(255,255,252,.8); }
.more-row-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 7px; color: #285444; background: #eaf1e8; font-size: 16px; }
.more-row > span:nth-child(2) { display: grid; flex: 1; gap: 4px; }
.more-row strong { font-size: 12px; }
.more-row small { color: #8b968e; font-size: 10px; }
.more-row > b { color: #8c9890; }
.automation-settings { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.automation-settings h2 { margin: 0; padding: 14px 15px 10px; }
.automation-row { display: flex; min-width: 0; min-height: 62px; align-items: center; gap: 11px; padding: 10px 14px; border-top: 1px solid #edf0eb; }
.automation-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; background: #eef3eb; font-size: 17px; }
.automation-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.automation-copy strong { color: #31483a; font-size: 12px; line-height: 1.3; }
.automation-copy small { color: #87938a; font-size: 10px; }
.automation-row .status-badge, .automation-row .button { flex: 0 0 auto; }
.form-field[hidden] { display: none !important; }
.quick-options { margin-top: 4px; padding-top: 5px; border-top: 1px solid #ebeee8; }
.quick-options summary { padding: 7px 0; color: #587263; cursor: pointer; font-size: 11px; font-weight: 700; list-style-position: inside; }
.quick-options .form-grid { padding-top: 9px; }
.quick-options[open] summary { margin-bottom: 8px; }
.account-card { display: flex; align-items: center; gap: 13px; padding: 17px; }
.account-symbol { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 7px; color: #264e40; background: #eaf1e8; font-size: 17px; }
.account-symbol { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border-radius: 9px; color: #264e40; background: var(--pastel-mint); font-size: 21px; }
.account-card:nth-child(5n + 2) .account-symbol { color: #345f8c; background: var(--pastel-sky); }
.account-card:nth-child(5n + 3) .account-symbol { color: #985740; background: var(--pastel-peach); }
.account-card:nth-child(5n + 4) .account-symbol { color: #80622c; background: var(--pastel-lemon); }
.account-card:nth-child(5n) .account-symbol { color: #66568e; background: var(--pastel-lilac); }
.account-details { flex: 1; }
.account-details strong { display: block; font-size: 12px; }
.account-details small { display: block; margin-top: 4px; color: #849087; font-size: 10px; }
.account-details .account-balance { margin-top: 7px; color: #244638; font: 700 16px 'Manrope', sans-serif; }
.account-balance span { color: #87938a; font: 400 9px 'DM Sans', sans-serif; }
.account-box-section { margin-top: 15px; }
.account-box-heading { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-bottom: 1px solid #e8ece5; background: rgba(255,255,252,.7); }
.account-box-heading > span:nth-child(2) { display: grid; flex: 1; gap: 3px; }
.account-box-heading strong { font: 700 14px 'Manrope', sans-serif; }
.account-box-heading small { color: #89948c; font-size: 10px; }
.account-balance-strip { display: flex; flex-wrap: wrap; gap: 25px; padding: 12px 15px; border-bottom: 1px solid #e8ece5; background: rgba(237,243,234,.5); }
.account-balance-strip > div { display: grid; gap: 3px; }
.account-balance-strip small { color: #859188; font-size: 9px; }
.account-balance-strip strong { color: #244638; font: 700 16px 'Manrope', sans-serif; }
.account-box { padding: 4px 7px; border-radius: 3px; color: #597767; background: #edf3e9; font-size: 9px; font-weight: 700; }
.tile-actions { display: flex; gap: 5px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 23px 0 10px; }
.category-row { display: flex; min-height: 49px; align-items: center; gap: 10px; padding: 7px 13px; border-top: 1px solid #eff1ec; }
.category-row:hover { background: #f8faf6; }
.category-row:has([data-cloud-toggle-category]), .category-row:has([data-cloud-toggle-account]), .category-row:has([data-cloud-toggle-payment]) { min-height: 44px; gap: 7px; padding: 6px 10px; }
.category-row:has([data-cloud-toggle-category]) .category-name, .category-row:has([data-cloud-toggle-account]) .category-name, .category-row:has([data-cloud-toggle-payment]) .category-name { min-width: 70px; flex: 1; }
.category-emoji { width: 22px; flex: 0 0 22px; text-align: center; font-size: 16px; }
.category-row .category-color { flex: 0 0 9px; }
.category-row .icon-button.favorite-active { color: #a67d20; background: #fbf3d8; }
.child-category { padding-left: 35px; }
.category-color { width: 9px; height: 9px; border-radius: 3px; background: #6da897; }
.category-name { flex: 1; font-size: 11px; font-weight: 600; }
.category-name small { display: block; margin-top: 3px; color: #718078; font-size: 10px; font-weight: 500; overflow-wrap: anywhere; }
.category-sub { color: #89948c; font-size: 10px; }
.app-build-fields { display:grid; gap:10px; margin:12px 0 16px; }
.app-build-fields > div { display:grid; grid-template-columns:minmax(110px,160px) minmax(0,1fr); gap:12px; }
.app-build-fields dt { color:#718078; font-size:12px; }
.app-build-fields dd { margin:0; font-size:12px; overflow-wrap:anywhere; }
.app-about [data-app-update-status] { font-size:12px; }
.balance-banner { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: center; padding: 19px 21px; color: white; background: var(--forest); }
.balance-banner h2 { font-size: 15px; }
.balance-banner p { margin: 5px 0 0; color: #b9d0c4; font-size: 11px; }
.balance-total { text-align: right; color: #f0d577; font: 700 23px 'Manrope', sans-serif; }
.balance-total small { display: block; margin-top: 3px; color: #b6cabd; font: 10px 'DM Sans', sans-serif; }
.debt-list { padding: 0 18px; }
.debt-row { display: grid; grid-template-columns: minmax(95px,1fr) 20px minmax(95px,1fr) minmax(100px,auto); align-items: center; gap: 10px; min-height: 62px; border-top: 1px solid #eff1ec; }
.debt-box { display: grid; gap: 3px; }
.debt-box strong { font-size: 11px; }
.debt-box small { color: #89948d; font-size: 9px; }
.debt-arrow { color: #9aa69d; text-align: center; }
.debt-amount { text-align: right; color: #a85243; font: 600 12px 'DM Mono', monospace; }
.pending-callout { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 13px 15px; border: 1px solid #eadba8; border-radius: 6px; background: #fbf7e9; }
.pending-callout strong { display: block; margin-bottom: 4px; color: #6f5820; font-size: 11px; }
.pending-callout p { margin: 0; color: #877744; font-size: 10px; line-height: 1.5; }
.pending-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 14px 16px; border-top: 1px solid #edf0e9; }
.pending-main { min-width: 0; }
.pending-main strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.pending-main small { display: block; margin-top: 4px; color: #859188; font-size: 10px; }
.pending-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.status-badge { color: #8a6c22; background: #fbf4dc; }
.status-badge.good { color: #39735a; background: #edf5eb; }
.status-badge.pending { color: #936e1e; background: #fbf4dc; }
.status-badge.review { color: #9e5d3d; background: #fff0e7; }
.audit-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 11px; align-items: center; min-height: 59px; padding: 9px 15px; border-top: 1px solid #eff1ec; }
.audit-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #416c58; background: #edf3eb; font-size: 11px; }
.audit-copy strong { display: block; font-size: 11px; font-weight: 600; }
.audit-copy small { display: block; margin-top: 4px; color: #8b968e; font-size: 10px; }
.audit-date { color: #89958d; font: 10px 'DM Mono', monospace; white-space: nowrap; }
.status-table td { height: auto; min-height: 53px; padding: 11px 13px; white-space: normal; vertical-align: top; line-height: 1.45; }
.status-table td:first-child { min-width: 125px; color: #2d4037; font-weight: 700; }
.status-table td:nth-child(2) { min-width: 175px; }
.status-table td:last-child { min-width: 200px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.form-field { display: grid; min-width: 0; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #5f7166; font-size: 11px; font-weight: 600; }
.field-input, .field-select, .field-textarea { min-height: 38px; font-size: 12px; }
.localized-date-control { position: relative; display: block; width: 100%; min-width: 0; }
.localized-date-control .localized-date-text { width: 100%; min-width: 0; padding-right: 48px; }
.localized-date-icon { position: absolute; top: 50%; right: 15px; width: 15px; height: 14px; margin-top: -7px; border: 1.5px solid #6d8677; border-radius: 2px; pointer-events: none; }
.localized-date-icon::before { position: absolute; top: 3px; right: 0; left: 0; border-top: 1.5px solid #6d8677; content: ''; }
.localized-date-icon::after { position: absolute; top: -3px; left: 3px; width: 2px; height: 5px; border-radius: 2px; background: #6d8677; box-shadow: 6px 0 0 #6d8677; content: ''; }
.localized-date-picker { position: absolute !important; z-index: 2; top: 0; right: 0; width: 46px !important; height: 100%; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; cursor: pointer; color-scheme: light; }
.field-textarea { min-height: 72px; padding: 9px 11px; resize: vertical; }
.form-hint { color: #8b968e; font-size: 9px; line-height: 1.45; }
.field-check { display: flex; align-items: center; gap: 8px; color: #617168; font-size: 11px; }
.dialog-file { padding: 9px; border: 1px dashed #cfd8cf; border-radius: 5px; background: #f8faf5; }
.dialog { width: min(620px, calc(100vw - 28px)); max-height: min(90vh, 850px); overflow: auto; border-radius: 8px; background: #fffefa; box-shadow: var(--shadow); animation: dialog-in .2s ease both; }
.mobile-dialog-wizard { display: grid; min-width: 0; gap: 16px; padding: 4px 0 12px; }
.mobile-dialog-progress { display: grid; gap: 7px; color: #6d8074; font: 600 10px 'DM Mono',monospace; }
.mobile-dialog-progress > div { height: 4px; overflow: hidden; border-radius: 5px; background: #e8eee7; }
.mobile-dialog-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--teal); transition: width .18s ease; }
.mobile-dialog-question { margin: 0; color: #203e33; font: 700 21px 'Manrope',sans-serif; line-height: 1.25; }
.mobile-dialog-steps { min-width: 0; }
.mobile-dialog-step[hidden], .mobile-dialog-review[hidden] { display: none !important; }
.mobile-dialog-step .form-field { min-width: 0; }
.mobile-dialog-step .field-input, .mobile-dialog-step .field-select, .mobile-dialog-step .field-textarea { min-height: 48px; font-size: 16px; }
.mobile-dialog-step .color-input { min-height: 52px; padding: 5px; }
.mobile-dialog-sr-label { 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; }
.mobile-dialog-review { display: grid; gap: 9px; }
.mobile-dialog-review-list { display: grid; gap: 0; border-top: 1px solid #e8eee7; }
.mobile-dialog-review-list > div { display: grid; gap: 4px; padding: 10px 2px; border-bottom: 1px solid #edf1eb; }
.mobile-dialog-review-list small { color: #809087; font-size: 10px; }
.mobile-dialog-review-list strong { color: #294237; font-size: 13px; overflow-wrap: anywhere; }
.mobile-wizard-back, .mobile-wizard-next { min-width: 112px; min-height: 46px; }
.mobile-wizard-next { margin-left: auto; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(7px) scale(.99); } to { opacity: 1; transform: none; } }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 19px 22px 14px; border-bottom: 1px solid #ecefe8; background: #fffefa; }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 22px 14px; border-top: 3px solid var(--teal); border-bottom: 1px solid #ecefe8; background: #fffefa; }
.dialog-head h2 { margin-bottom: 4px; font-size: 17px; }
.dialog-head p { margin: 0; color: #87938a; font-size: 10px; }
.dialog-body { padding: 17px 22px; }
.dialog-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px; border-top: 1px solid #ecefe8; background: #fffefa; }
.dialog-close { width: 34px; height: 34px; border: 0; border-radius: 6px; color: #506c5d; background: var(--pastel-mint); font-size: 17px; }
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(18,37,30,.44); backdrop-filter: blur(3px); }
.overlay[hidden] { display: none; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 20px; }
.detail-item small { display: block; margin-bottom: 5px; color: #87938a; font-size: 9px; text-transform: uppercase; }
.detail-item strong { color: #2d4037; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.detail-item.full { grid-column: 1 / -1; }
.history-section { padding-top: 7px; border-top: 1px solid #e9ede6; }
.history-event { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f2ed; }
.history-event > div { min-width: 0; }
.history-event strong { display: block; color: #34483d; font-size: 10px; }
.history-event small { display: block; margin-top: 4px; color: #88948b; font-size: 9px; }
.history-event ul { margin: 5px 0 0; padding-left: 14px; color: #765f48; font-size: 9px; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; }
.toast { display: flex; max-width: min(360px, calc(100vw - 40px)); align-items: flex-start; gap: 12px; padding: 10px 11px 10px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; color: white; background: #243f34; box-shadow: var(--shadow); font-size: 11px; line-height: 1.4; animation: enter .2s ease both; }
.toast > span { flex: 1; }
.toast-close { flex: 0 0 24px; width: 24px; height: 24px; margin: -3px -4px 0 0; border: 0; border-radius: 4px; color: inherit; background: rgba(255,255,255,.12); font-size: 17px; line-height: 1; }
.cloud-capability-note { margin-bottom: 14px; }
.is-unavailable { cursor: default; opacity: .74; }
.cloud-mobile-account { display: none; margin-top: 3px; color: #75847a; font-size: 9px; }
.toast.error { background: #984f40; }
.mobile-nav { display: none; }
.demo-note { color: #8c7850; font-size: 10px; }
[hidden] { display: none !important; }

.home-screen { display: grid; width: min(100%, 940px); gap: 16px; margin: 0 auto; padding: 22px 22px 34px; }
.home-welcome { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 3px 12px; }
.home-welcome > span, .home-session-copy > span { color: #75847a; font-size: 11px; font-weight: 650; }
.home-welcome h1 { grid-column: 1 / -1; margin: 3px 0 0; color: #183e33; font: 750 27px/1.16 'Manrope',sans-serif; letter-spacing: -.5px; }
.home-session-copy { display: grid; gap: 2px; }
.home-session-copy small { color: #8a968e; font-size: 9px; }
.home-welcome .button { min-height: 34px; }
.home-screen .unravel-home-actions { display: grid; grid-template-columns: minmax(0,1fr); margin: 0; }
.home-screen .unravel-hero { display: grid; min-width: 0; min-height: 150px; grid-template-columns: 130px minmax(0,1fr); align-items: center; gap: 15px; padding: 11px 18px 11px 11px; border: 0; border-radius: 17px; color: #244b39; background: linear-gradient(112deg,#eaf4eb,#faf8ef); box-shadow: 0 5px 20px rgba(35,81,59,.07); }
.home-screen .unravel-hero-art { width: 100%; height: 128px; background: transparent; }
.home-screen .unravel-hero-art img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.matete-character-slot { display: grid; width: 100%; height: 100%; place-items: center; }
.home-screen .unravel-hero-copy { gap: 7px; }
.home-screen .unravel-hero-copy small { color: #59806a; font-size: 9px; letter-spacing: .45px; }
.home-screen .unravel-hero-copy strong { color: #1f503a; font: 800 27px/1.1 'Manrope',sans-serif; }
.home-screen .unravel-hero-copy > span { color: #587567; font-size: 12px; line-height: 1.4; }
.home-screen .unravel-hero-copy b { margin: 3px 0 0; color: #347254; font-size: 11px; }
.home-screen .unravel-home-actions.is-overwhelmed .unravel-hero { background: linear-gradient(112deg,#faeee7,#fcf8ee); }
.home-screen .unravel-home-actions.is-loading .unravel-hero { background: linear-gradient(112deg,#eef3ee,#faf8ef); }
.home-screen .unravel-inbox-link { display: grid; min-width: 0; min-height: 72px; grid-template-columns: minmax(0,1fr) auto auto; align-content: center; align-items: center; gap: 9px; margin: 0; padding: 11px 13px; border: 1px solid #e7ece5; border-radius: 13px; background: #fffefa; }
.home-screen .unravel-inbox-copy { display: grid; min-width: 0; gap: 4px; }
.home-screen .unravel-inbox-copy strong { color: #344b3e; font-size: 11px; }
.home-screen .unravel-inbox-copy small { color: #86938a; font-size: 9px; line-height: 1.35; }
.home-screen .unravel-inbox-count { display: grid; min-width: 30px; height: 30px; place-items: center; padding: 0 7px; border-radius: 10px; color: #315a42; background: #edf4e9; font: 700 12px 'DM Mono',monospace; }
.home-screen .is-overwhelmed .unravel-inbox-count { color: #8c5536; background: #faeee4; }
.home-screen .unravel-inbox-arrow { color: #74867a; font-size: 17px; }
.home-primary-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 9px; }
.home-primary-actions .button { min-height: 50px; justify-content: center; border-radius: 11px; font-size: 12px; }
.home-primary-actions .home-entry-card { display: grid; min-height: 116px; justify-items: start; align-content: center; gap: 5px; padding: 16px 20px; text-align: left; }
.home-entry-card strong { font-size: 15px; }
.home-entry-card small { font-size: 11px; font-weight: 400; opacity: .8; }
.home-entry-icon { font-size: 24px; line-height: 23px; }
.home-entry-card.button-secondary { color: #126956; background: #edf6ee; border-color: #dbe9dd; }
.home-movements-link { justify-content: space-between; min-height: 44px; padding: 10px 4px; color: #567367; font-size: 12px; }
.home-screen .home-pending-count { color: #315a42; font-size: 14px; font-weight: 700; }
.home-primary-actions .button-quiet { min-width: 128px; border: 1px solid #e5ebe3; background: #fffefa; }
.home-cashboxes { display: grid; gap: 9px; }
.home-cashboxes h2 { margin: 0; color: #65746a; font-size: 11px; font-weight: 650; }
.home-screen .home-box-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.home-screen .home-box { display: flex; min-width: 0; min-height: 116px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 14px; border: 1px solid #e7ece5; border-radius: 14px; background: #fffefa; box-shadow: none; }
.home-screen .home-box:hover, .home-screen .home-box.selected { transform: none; box-shadow: none; }
.home-screen .home-box.selected { border-color: #86b59b; background: #f3f8f0; }
.home-screen .home-box-icon { width: 35px; height: 35px; flex-basis: 35px; border-radius: 10px; font-size: 18px; }
.home-screen .home-box-copy { width: 100%; flex: 0 1 auto; }
.home-screen .home-box-copy strong { overflow: visible; font-size: 13px; overflow-wrap: anywhere; white-space: normal; }
.home-screen .home-box-copy small { font-size: 11px; overflow-wrap: anywhere; }
.home-screen .home-box-arrow { color: #789084; font-size: 17px; }
.home-screen .cloud-empty-state { min-height: 120px; padding: 15px; border: 1px solid #e5ebe3; border-radius: 12px; background: #fffefa; }
.home-screen .cloud-empty-state h2 { font-size: 15px; }
.home-screen .cloud-empty-state p { margin: 0; }
@media(max-width:760px) {
  .home-screen { width: 100%; gap: 12px; padding: 14px 15px 24px;   }
  .home-welcome h1 { font-size: 24px; }
  .home-screen .unravel-home-actions { grid-template-columns: minmax(0,1fr); gap: 7px; }
  .home-screen .unravel-hero { min-height: 120px; grid-template-columns: 90px minmax(0,1fr); gap: 10px; padding: 8px 11px 8px 8px; border-radius: 15px; }
  .home-screen .unravel-hero-art { height: 100px; }
  .home-screen .unravel-hero-copy { gap: 5px; }
  .home-screen .unravel-hero-copy small { font-size: 8px; line-height: 1.25; }
  .home-screen .unravel-hero-copy strong { font-size: 22px; }
  .home-screen .unravel-hero-copy > span { font-size: 10px; }
  .home-screen .unravel-hero-copy b { margin-top: 1px; font-size: 10px; }
  .home-screen .unravel-inbox-link { min-height: 52px; padding: 7px 11px; border-radius: 11px; }
  .home-primary-actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .home-primary-actions .button { min-height: 47px; padding-inline: 8px; font-size: 11px; }
  .home-primary-actions .home-entry-card { min-height: 106px; padding: 12px; }
  .home-entry-card strong { font-size: 13px; }
  .home-entry-card small { font-size: 10px; }
  .home-primary-actions .button-quiet { min-height: 39px; grid-column: 1 / -1; }
  .home-screen .home-box-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .home-screen .home-box { min-height: 106px; padding: 11px 9px; gap: 8px; }
  .home-screen .home-box-copy strong { font-size: 12px; }
  .home-screen .home-box-copy small { font-size: 10px; }
}

@media (max-width: 1080px) {
  .sidebar { width: 218px; }
  .main-area { margin-left: 218px; }
  .page-content { padding-inline: 24px; }
  .topbar { padding-inline: 24px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .chart-area { gap: 16px; padding-inline: 14px; }
  .donut { flex-basis: 135px; width: 135px; height: 135px; }
}
@media (max-width: 760px) {
  .unravel-hero { min-height: 145px; grid-template-columns: 112px minmax(0,1fr); gap: 9px; padding: 12px; }
  .unravel-illustration { width: min(100%,150px); }
  .unravel-hero-copy { gap: 6px; }
  .unravel-hero-copy strong { font-size: 23px; }
  .unravel-hero-copy > span { font-size: 12px; }
  .unravel-intro { grid-template-columns: 110px minmax(0,1fr); gap: 10px; padding: 13px; }
  .unravel-intro-art .unravel-illustration { width: 120px; }
  .unravel-intro h2 { font-size: 18px; }
  .unravel-intro p { font-size: 11px; }
  .unravel-source-grid { grid-template-columns: 1fr; }
  .unravel-source-grid > header { grid-column: auto; }
  .unravel-source-card { min-height: 80px; grid-template-columns: 38px minmax(0,1fr) auto; gap: 8px; padding: 10px; }
  .unravel-source-icon { width: 36px; height: 36px; font-size: 19px; }
  .unravel-source-copy strong { font-size: 10px; }
  .unravel-source-copy small { font-size: 9px; }
  .unravel-source-action { min-height: 42px; padding-inline: 8px; font-size: 9px; }
  .provider-card { grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .provider-card .button { grid-column: 2; }
  .gmail-account-card-controls { flex-direction: column; align-items: stretch; }
  .gmail-account-card-controls .form-field { width: 100%; }
  .gmail-account-card-controls .more-actions { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
  .gmail-account-card-controls .button { min-height: 38px; }
  .integration-upcoming-grid { grid-template-columns: 1fr; }
  .integration-upcoming-grid article { min-height: 42px; }
  .permission-row { align-items: flex-start; padding: 10px 0; }
  .permission-row .status-badge { flex: 0 0 auto; }
  #overlay:has(.mobile-dialog-wizard) { place-items: stretch; padding: 0; }
  .dialog:has(.mobile-dialog-wizard) { display: flex; width: 100vw; height: 100dvh; max-height: 100dvh; flex-direction: column; overflow: hidden; border-radius: 0; }
  .dialog:has(.mobile-dialog-wizard) .dialog-head { flex: 0 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; }
  .dialog:has(.mobile-dialog-wizard) form { display: flex; min-height: 0; flex: 1; flex-direction: column; }
  .dialog:has(.mobile-dialog-wizard) .dialog-body { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 15px 17px 8px; }
  .dialog:has(.mobile-dialog-wizard) .dialog-foot { flex: 0 0 auto; justify-content: flex-end; gap: 8px; padding: 9px 16px calc(10px + env(safe-area-inset-bottom)); }
  .dialog:has(.mobile-dialog-wizard) .dialog-foot > [data-close-dialog] { display: none; }
  .dialog:has(.mobile-dialog-wizard) .mobile-wizard-back, .dialog:has(.mobile-dialog-wizard) .mobile-wizard-next, .dialog:has(.mobile-dialog-wizard) .dialog-foot > button[type="submit"] { flex: 1; min-height: 48px; }
  .mobile-dialog-wizard { gap: 14px; padding-top: 2px; }
  .mobile-dialog-question { font-size: 22px; }
  .mobile-dialog-step .form-field.full { grid-column: auto; }
  .mobile-dialog-step .emoji-picker-grid { max-height: 32dvh; }
  .sidebar { inset: 0 auto 0 0; width: min(290px, 84vw); transform: translateX(-102%); transition: transform .22s ease; padding: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .drawer-open .sidebar { padding-top: calc(68px + env(safe-area-inset-top)); }
  body.drawer-open .topbar { z-index: 22; border-bottom-color: transparent; background: transparent; backdrop-filter: none; }
  body.drawer-open .topbar .crumb, body.drawer-open .topbar-actions { visibility: hidden; }
  body.drawer-open .mobile-menu { position: relative; z-index: 23; color: var(--forest); background: var(--pastel-mint); }
  .main-area { min-height: 100dvh; margin-left: 0; padding-bottom: 0; }
  .topbar { display: grid; min-height: 59px; grid-template-columns: 32px minmax(0,1fr) 36px; gap: 8px; padding: 0 14px; }
  .mobile-menu { display: grid; width: 32px; height: 32px; border: 0; background: transparent; }
  .mobile-brand { display: flex; min-width: 0; align-items: center; color: #254438; text-decoration: none; }
  .mobile-brand-logo { display: block; width: auto; max-width: 100%; height: 46px; object-fit: contain; object-position: left center; }
  .crumb { display: none; }
  .today-label { display: none; }
  .topbar-actions { width: 36px; justify-content: flex-end; gap: 0; }
  .top-add { width: 36px; min-width: 36px; min-height: 36px; padding: 0; font-size: 0; }
  .top-add > span { font-size: 18px; line-height: 1; }
  .page-content { padding: 23px 14px calc(62px + env(safe-area-inset-bottom)); }
    .quick-home { display: flex; min-height: calc(100dvh - 144px - env(safe-area-inset-bottom)); flex-direction: column; justify-content: space-evenly; padding-block: 0; }
    .quick-home .home-kicker, .quick-home .home-footnote { margin: 0; }
    .quick-home .home-lead { margin: 0; }
    .quick-home h1 { font-size: 25px; }
    .home-box-grid { grid-template-columns: 1fr; gap: 8px; }
    .home-box { min-height: 86px; padding: 12px 13px; }
    .home-box-icon { width: 44px; height: 44px; flex-basis: 44px; font-size: 23px; }
    .method-grid { grid-template-columns: 1fr; gap: 8px; }
    .method-button { min-height: 72px; padding: 12px; }
    .more-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 17px; }
  .home-actions { width: 100%; }
  .home-actions .button { flex: 1 1 auto; }
  .quick-home-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-home-actions .button { width: 100%; min-height: 38px; padding-inline: 8px; font-size: 10px; }
  h1 { font-size: 24px; }
  .box-switcher { width: 100%; overflow-x: auto; }
  .box-switcher button { flex: 1 0 auto; padding-inline: 9px; }
  .period-row { flex-wrap: wrap; }
  .period-select { flex: 1; }
  .metric-grid { gap: 8px; }
  .metric-card { min-height: 98px; padding: 11px; }
  .metric-value { font-size: 19px; }
  .metric-top { font-size: 10px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .trend-panel { grid-column: auto; }
  .chart-area { min-height: 180px; gap: 12px; padding: 7px 12px 15px; }
  .donut { flex-basis: 125px; width: 125px; height: 125px; }
  .donut::after { inset: 20px; }
  .donut-center strong { font-size: 15px; }
  .legend-button { gap: 6px; font-size: 9px; }
  .legend-button strong { font-size: 9px; }
  .bar-chart { min-height: 170px; gap: 7px; padding-inline: 11px; }
  .bar-column { height: 130px; }
  .bar-stack { width: 29px; gap: 3px; }
  .bar { width: 10px; }
  .split-row, .section-grid { grid-template-columns: 1fr; }
  .comparison-grid, .budget-grid { grid-template-columns: 1fr; }
  .comparison-grid.comparison-carousel { display: flex; width: 100%; min-width: 0; max-width: 100%; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 3px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .comparison-grid.comparison-carousel::-webkit-scrollbar { display: none; }
  .comparison-grid.comparison-carousel > .comparison-card { display: block; flex: 0 0 calc(100% - 22px); min-width: 0; scroll-snap-align: start; }
  .comparison-grid.comparison-carousel > .comparison-card .comparison-followup { overflow: visible; border: 0; border-top: 1px solid #e6ece5; border-radius: 0; background: transparent; box-shadow: none; }
  .comparison-grid.comparison-carousel > .comparison-card .comparison-followup-heading { display: none; }
  .comparison-grid.comparison-carousel .comparison-activity-grid { grid-template-columns: minmax(0,1fr); }
  .comparison-grid.comparison-carousel .comparison-activity-block { padding: 11px 12px; }
  .comparison-grid.comparison-carousel .comparison-activity-block + .comparison-activity-block { border-top: 1px solid #e9eee8; border-left: 0; }
  .comparison-carousel-indicators { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; }
  .comparison-carousel-indicators button { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #8a978e; background: transparent; font-size: 12px; }
  .comparison-carousel-indicators button[aria-current="true"] { color: var(--teal); font-size: 14px; }
  .account-box-heading { padding-inline: 10px; }
  .account-balance-strip { gap: 14px; padding-inline: 11px; }
  .account-card { flex-wrap: wrap; padding: 12px; }
  .account-details { min-width: 135px; }
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .movement-filter-disclosure { grid-column: 1 / -1; }
  .movement-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .movement-filter-dates { grid-template-columns: auto minmax(0,1fr); }
  .movement-filter-dates .period-note { grid-column: 1 / -1; }
  .filter-select { width: 100%; min-width: 0; }
  .field-input, .field-select, .field-textarea { min-height: 43px; }
  .table-wrap { margin-inline: -2px; }
  .table-wrap.movement-desktop-table { display: none; }
  .mobile-movement-list { display: grid; gap: 4px; min-width: 0; }
  table { min-width: 720px; }
  .table-wrap.responsive-table table { min-width: 650px; }
  .debt-row { grid-template-columns: minmax(70px,1fr) 14px minmax(70px,1fr) auto; gap: 6px; }
  .debt-amount { font-size: 10px; }
  .balance-banner { padding: 15px; }
  .balance-total { font-size: 19px; }
  .pending-card { grid-template-columns: 1fr; }
  .pending-actions { justify-content: flex-start; }
  .audit-item { grid-template-columns: 28px 1fr; }
  .audit-date { grid-column: 2; }
  .dialog { max-height: calc(100dvh - 26px); }
  .cloud-empty-state { min-height: min(32dvh, 220px); gap: 8px; padding: 18px 12px; }
  .dialog-head { padding: 15px 16px 12px; }
  .dialog-body { padding: 14px 16px; }
  .dialog-foot { padding: 10px 16px; }
  .form-grid { gap: 10px; }
  .cloud-advanced-fields { grid-template-columns: 1fr; }
  #overlay:has(.cloud-expense-wizard) { place-items: stretch; padding: 0; }
  .dialog:has(.cloud-expense-wizard) { display: flex; width: 100vw; height: 100dvh; max-height: 100dvh; flex-direction: column; overflow: hidden; border-radius: 0; }
  .dialog:has(.cloud-expense-wizard) .dialog-head { padding: calc(12px + env(safe-area-inset-top)) 16px 10px; }
  .dialog:has(.cloud-expense-wizard) form { display: flex; min-height: 0; flex: 1; flex-direction: column; }
  .dialog:has(.cloud-expense-wizard) .dialog-body { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 8px; }
  .dialog:has(.cloud-expense-wizard) .dialog-foot { flex: 0 0 auto; justify-content: flex-end; padding: 9px 16px calc(10px + env(safe-area-inset-bottom)); }
  .cloud-wizard-controls .button { flex: 1; }
  #overlay:has(.cloud-expense-fast-primary) { place-items: center; padding: 10px; }
  .dialog:has(.cloud-expense-fast-primary) { display: flex; width: 100vw; height: 100dvh; max-height: 100dvh; flex-direction: column; overflow: hidden; border-radius: 0; }
  .dialog:has(.cloud-expense-fast-primary) .dialog-head { flex: 0 0 auto; padding: calc(10px + env(safe-area-inset-top)) 14px 8px; }
  .dialog:has(.cloud-expense-fast-primary) form { display: flex; min-height: 0; flex: 0 1 auto; flex-direction: column; }
  .dialog:has(.cloud-expense-fast-primary) .dialog-body { min-height: 0; flex: 0 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 9px 14px; }
  .dialog:has(.cloud-expense-fast-primary) .dialog-foot { flex: 0 0 auto; padding: 7px 14px calc(8px + env(safe-area-inset-bottom)); background: #fff; }
  .dialog:has(.cloud-expense-fast-primary) .dialog-foot button[type="submit"] { width: 100%; min-height: 52px; }
  .cloud-expense-fast-primary { gap: 10px; }
  .cloud-expense-fast-amount { gap: 3px; padding: 8px 10px; }
  .cloud-expense-fast-amount input { min-height: 54px; font-size: 30px; }
  .cloud-expense-fast-field legend { margin-bottom: 5px; font-size: 13px; }
  .cloud-expense-fast-categories,.cloud-expense-fast-sources,.cloud-expense-fast-scopes { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; max-height: 150px; }
  .cloud-expense-fast-choice { min-height: 46px; padding: 6px; }
  .cloud-expense-step-body:has(.cloud-expense-fast-saved:not([hidden])) { padding-top: 14px; }
  .cloud-expense-fast-saved { gap: 6px; padding: 4px 0 8px; }
  .cloud-expense-fast-saved .button { min-height: 42px; }
  .cloud-expense-details { margin-top: 2px; padding-top: 3px; }
  .cloud-expense-details > summary { min-height: 34px; padding: 6px 0; }
  .cloud-expense-details .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 8px; }
  .cloud-expense-details .field-input, .cloud-expense-details .field-select { min-height: 36px; padding: 4px 6px; }
  .cloud-expense-details .field-textarea { min-height: 58px; }
  .emoji-picker-grid { max-height: min(36dvh, 270px); grid-template-columns: repeat(5,minmax(0,1fr)); }
  .emoji-picker-option { min-height: 48px; }
  .mobile-nav { position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 15; display: grid; width: 100%; min-height: calc(72px + env(safe-area-inset-bottom)); grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; padding: 5px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #dce6dc; background: rgba(251,252,248,.97); backdrop-filter: blur(14px); transform: none; }
  .mobile-nav button { display: grid; min-width: 0; min-height: 58px; align-content: center; justify-items: center; gap: 3px; border: 0; border-radius: 9px; color: #66776d; background: transparent; font-size: 12px; line-height: 1.1; }
  .mobile-nav button span { font-size: 27px; line-height: 1; }
  .mobile-nav button.active { color: var(--forest); background: #e2efe6; box-shadow: inset 0 0 0 1px #c4ddcb; font-weight: 700; }
  .toast-region { right: 10px; bottom: calc(68px + env(safe-area-inset-bottom)); left: 10px; }
  .toast { max-width: none; }
  .cloud-account-column { display: none; }
  .cloud-mobile-account { display: block; }
}
@media (max-width: 390px) {
  .metric-value { font-size: 17px; }
  .metric-foot { font-size: 9px; }
  .chart-area { gap: 8px; padding-inline: 8px; }
  .donut { flex-basis: 112px; width: 112px; height: 112px; }
  .legend-button { gap: 4px; font-size: 8px; }
  .legend-button strong { font-size: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
}

.dialog:has(.expense-wizard) { width: min(570px, calc(100vw - 24px)); }
.expense-wizard { display: grid; gap: 15px; }
.wizard-progress { display: grid; grid-template-columns: auto 1fr 34px; align-items: center; gap: 11px; color: #718177; font: 600 10px 'DM Mono', monospace; }
.wizard-progress-track { height: 5px; overflow: hidden; border-radius: 8px; background: #e8eee7; }
.wizard-progress-track i { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--teal); transition: width .28s ease; }
.wizard-back { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--forest); background: #fff; font-size: 17px; }
.wizard-pane { min-height: 230px; animation: wizard-step-in .22s ease both; }
.wizard-pane[hidden] { display: none; }
.wizard-kicker { margin: 5px 0 8px; color: #9a7b35; font: 600 9px 'DM Mono', monospace; letter-spacing: .7px; }
.wizard-pane h3 { margin-bottom: 17px; color: #1d3d32; font: 700 22px 'Manrope', sans-serif; }
.wizard-amount-input { min-height: 76px; padding-inline: 15px; border-color: #d6e3d7; border-radius: 7px; color: var(--forest); font: 700 36px 'Manrope', sans-serif; text-align: center; }
.wizard-amount-input::placeholder { color: #bdc9be; }
.wizard-hint { margin: 8px 0; color: #87938a; font-size: 10px; text-align: center; }
.wizard-choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.wizard-choice { display: grid; min-width: 0; min-height: 88px; align-content: center; justify-items: center; gap: 8px; padding: 10px 8px; border: 1px solid #e4eae2; border-radius: 7px; color: #2d463a; background: #fff; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.wizard-choice:hover, .wizard-choice:focus-visible { border-color: #7eaf98; background: #f6faf5; transform: translateY(-1px); }
.wizard-choice[aria-pressed="true"] { border-color: var(--forest); background: #edf4eb; box-shadow: inset 0 0 0 1px var(--forest); }
.wizard-choice-icon, .category-mark { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 9px; color: #2b5544; background: var(--category-color, #eaf1e8); font-size: 19px; }
.wizard-choice > strong { max-width: 100%; overflow-wrap: anywhere; font-size: 11px; line-height: 1.25; text-align: center; }
.wizard-choice.account-choice { display: flex; min-height: 70px; justify-content: flex-start; gap: 10px; text-align: left; }
.account-choice > span:last-child { display: grid; min-width: 0; gap: 4px; text-align: left; }
.account-choice > span:last-child strong { overflow-wrap: anywhere; font-size: 11px; }
.account-choice small { color: #849188; font-size: 9px; }
.wizard-summary { display: grid; justify-items: center; gap: 13px; padding: 9px 8px; text-align: center; }
.wizard-summary > strong { color: #193d32; font: 800 40px 'Manrope', sans-serif; }
.wizard-summary > div { display: flex; align-items: center; gap: 10px; color: #3a5547; font-size: 13px; }
.wizard-summary > div > span { font-size: 20px; }
.wizard-summary > small { margin: 4px 0 -7px; color: #8b968e; font-size: 10px; }
.wizard-continue { width: 100%; min-height: 46px; }
.quick-options { margin-top: 0; padding-top: 10px; border-top: 1px solid #ebeee8; }
.quick-options summary { color: #4e6e5c; font-size: 11px; }
.quick-options[open] { padding-bottom: 3px; }
@keyframes wizard-step-in { from { opacity: 0; transform: translateX(7px); } to { opacity: 1; transform: translateX(0); } }

.dialog:has(.movement-wizard) { display: flex; width: min(680px, calc(100vw - 32px)); max-height: min(92vh, 860px); flex-direction: column; overflow: hidden; }
.dialog:has(.movement-wizard) .dialog-head { flex: 0 0 auto; }
.dialog:has(.movement-wizard) #dialog-form { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.dialog:has(.movement-wizard) .dialog-body { display: flex; min-height: 0; flex: 1; padding: 0; overflow: hidden; }
.movement-wizard { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; color: var(--ink); background: #fffefa; }
.movement-wizard [data-wizard-main] { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 15px; padding: 18px 22px 0; overflow-y: auto; overscroll-behavior: contain; }
.movement-mode-switch { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; padding: 3px; border: 1px solid #e4eae3; border-radius: 9px; background: #f1f4ef; }
.movement-mode-switch button { min-width: 0; min-height: 40px; padding: 5px 8px; border: 0; border-radius: 7px; color: #69786e; background: transparent; font-size: 11px; font-weight: 650; }
.movement-mode-switch button[aria-pressed="true"] { color: #193d32; background: #fff; box-shadow: 0 1px 4px rgba(30,57,44,.12); }
.movement-receipt-row { display: flex; justify-content: flex-end; }
.movement-receipt-button { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #dbe4db; border-radius: 7px; color: #66786c; background: #fff; font-size: 10px; }
.movement-receipt-button span { color: #436e5a; font-size: 16px; }
.movement-receipt-button:disabled { cursor: not-allowed; opacity: .75; }
.movement-wizard .wizard-progress { grid-template-columns: auto 1fr; color: #748278; }
.movement-wizard .wizard-progress-track { height: 4px; }
.movement-wizard .wizard-progress-track i { background: #43836b; }
.movement-step-list { min-height: 250px; }
.movement-step-hint { margin: -8px 0 17px; color: #849188; font-size: 12px; line-height: 1.45; }
.movement-step-fields { display: grid; gap: 12px; }
.movement-wizard .form-field label { font-size: 11px; }
.movement-wizard .field-input, .movement-wizard .field-select, .movement-wizard .field-textarea { min-height: 48px; font-size: 15px; }
.movement-wizard .wizard-amount-input { min-height: 98px; padding-inline: 18px; border: 0; border-bottom: 2px solid #d7e4d8; border-radius: 0; background: transparent; font-size: clamp(44px, 12vw, 64px); text-align: left; }
.movement-wizard .wizard-amount-input:focus { border-bottom-color: var(--teal); outline: none; }
.movement-wizard .form-field.full { grid-column: 1 / -1; }
.movement-wizard .wizard-choice-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 8px; }
.movement-wizard .wizard-choice { min-height: 88px; padding: 10px 7px; border-radius: 10px; }
.movement-wizard .wizard-choice-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; font-size: 21px; }
.movement-wizard .wizard-choice > strong, .movement-wizard .account-choice > span:last-child strong { font-size: 11px; }
.movement-wizard .account-choice { min-height: 70px; }
.movement-select-proxy { display: none !important; }
.movement-type-choice { padding: 12px; border: 1px solid #e5ebe4; border-radius: 9px; background: #f8faf6; }
.movement-step-error { margin: 12px 0 0; color: #a64536; font-size: 12px; }
.movement-confirm-summary { display: grid; gap: 0; border-top: 1px solid #e8ece5; }
.movement-confirm-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 2px; border-bottom: 1px solid #edf0eb; }
.movement-confirm-summary small { color: #839087; font-size: 11px; }
.movement-confirm-summary strong { color: #253c31; font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.movement-advanced { margin: 0; border-top: 1px solid #e9eee7; }
.movement-advanced summary { min-height: 43px; padding: 13px 2px; color: #52735f; font-size: 12px; font-weight: 650; cursor: pointer; }
.movement-advanced-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-bottom: 15px; }
.movement-wizard-footer { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: space-between; margin-top: auto; padding: 12px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #e8ece5; background: #fffefa; }
.movement-wizard-footer .button { min-height: 52px; flex: 1; border-radius: 10px; font-size: 14px; }
.movement-wizard-footer [hidden] { display: none; }
.movement-save-status { display: grid; justify-items: center; gap: 12px; padding: 25px 10px; color: #365a46; }
.movement-save-status[hidden] { display: none; }
.movement-save-status strong { font-size: 13px; }
.movement-save-status[data-state="error"] { color: #a64536; }
.movement-save-bar { width: min(300px,100%); height: 6px; overflow: hidden; border-radius: 9px; background: #e4ebe3; }
.movement-save-bar i { display: block; width: 40%; height: 100%; border-radius: inherit; background: #4c9271; animation: movement-saving 1s ease-in-out infinite alternate; }
@keyframes movement-saving { from { transform: translateX(-5%); } to { transform: translateX(155%); } }
.movement-cancel-prompt { display: grid; min-height: 100%; align-content: center; justify-items: center; gap: 11px; padding: 28px; text-align: center; }
.movement-cancel-prompt[hidden] { display: none; }
.movement-cancel-prompt .cancel-mark { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; color: #9b4d3e; background: #faeee9; font-size: 30px; }
.movement-cancel-prompt h3 { margin: 4px 0 0; font-size: 21px; }
.movement-cancel-prompt p { margin: 0; color: #7e8b82; font-size: 13px; }
.movement-cancel-prompt > div { display: grid; width: min(360px,100%); gap: 9px; margin-top: 10px; }
.movement-cancel-prompt .button { min-height: 48px; border-radius: 9px; }
.movement-success { display: grid; min-height: min(70vh,680px); align-content: center; justify-items: center; gap: 14px; padding: 26px; text-align: center; }
.movement-success-check { display: grid; width: 78px; height: 78px; place-items: center; border-radius: 50%; color: white; background: #3e8a63; font-size: 46px; font-weight: 600; animation: success-pop .42s cubic-bezier(.2,.8,.25,1.2) both; }
@keyframes success-pop { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: scale(1); } }
.movement-success h2 { margin: -6px 0 0; color: #1e4133; font-size: 25px; }
.movement-success-summary { display: grid; width: min(440px,100%); gap: 0; margin: 3px 0; text-align: left; }
.movement-success-summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 2px; border-bottom: 1px solid #edf0eb; }
.movement-success-summary small { color: #839087; font-size: 11px; }
.movement-success-summary strong { max-width: 68%; color: #263e32; font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.movement-success-actions { display: grid; width: min(440px,100%); grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 3px; }
.movement-success-actions .button { min-height: 48px; border-radius: 10px; }

.analysis-controls { display: flex; align-items: center; gap: 12px; margin: -5px 0 16px; }
.analysis-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(285px,.7fr); gap: 15px; align-items: start; }
.analysis-main-column, .analysis-side-column { display: grid; min-width: 0; gap: 14px; }
.analysis-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(245px,.75fr); align-items: center; gap: 26px; min-width: 0; padding: 22px 26px; border: 1px solid #214c3d; border-radius: 7px; color: #f5f8f2; background: var(--forest); }
.analysis-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(245px,.75fr); align-items: center; gap: 26px; min-width: 0; padding: 22px 26px; border: 1px solid #214c3d; border-top: 3px solid var(--coral); border-radius: 7px; color: #f5f8f2; background: var(--forest); }
.analysis-hero > div:first-child { display: grid; gap: 5px; }
.analysis-label { color: #7e9086; font: 600 9px 'DM Mono', monospace; letter-spacing: .7px; }
.analysis-hero .analysis-label { color: #bfd1c5; }
.analysis-total { overflow-wrap: anywhere; color: #fff; font: 800 39px 'Manrope', sans-serif; }
.analysis-hero small { color: #c2d1c7; font-size: 10px; }
.analysis-limit { display: grid; gap: 10px; padding-left: 23px; border-left: 1px solid rgba(255,255,255,.2); }
.analysis-limit > div:first-child, .analysis-limit-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.analysis-limit > div:first-child span, .analysis-limit-foot span { color: #d2dfd6; font-size: 10px; }
.analysis-limit > div:first-child strong { color: white; font: 700 14px 'Manrope', sans-serif; }
.analysis-limit-foot strong { color: #fff; font: 700 11px 'DM Mono', monospace; }
.analysis-limit-empty { align-content: center; min-height: 71px; }
.analysis-limit-empty strong { color: white; font-size: 12px; }
.analysis-limit-empty span { color: #c2d1c7; font-size: 10px; }
.analysis-progress { height: 8px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.2); }
.analysis-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: #e7ca72; transform-origin: left; animation: progress-grow .7s .08s ease-out forwards; }
.analysis-main-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(285px,.8fr); gap: 14px; align-items: stretch; }
.analysis-lower-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; align-items: start; }
.analysis-card { min-width: 0; overflow: hidden; border: 1px solid #e2e9e1; border-radius: 7px; background: rgba(255,255,252,.96); box-shadow: 0 4px 16px rgba(24,44,39,.035); }
.analysis-card-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 17px 11px; }
.analysis-card-heading > div { display: grid; gap: 5px; }
.analysis-card-heading h2 { color: #203d32; font-size: 15px; }
.analysis-date, .trend-current { color: #86938a; font-size: 10px; }
.trend-current { color: #244638; font: 700 12px 'Manrope', sans-serif; }
.donut-layout { display: grid; grid-template-columns: minmax(210px,260px) minmax(0,1fr); align-items: center; gap: 12px; padding: 0 15px 14px; }
.analysis-donut-wrap { position: relative; display: grid; width: min(100%,260px); aspect-ratio: 1; place-items: center; justify-self: center; }
.analysis-donut { width: 100%; height: 100%; overflow: visible; }
.analysis-donut-center { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; pointer-events: none; }
.analysis-donut-center strong { max-width: 90%; overflow-wrap: anywhere; color: #1c3d32; font: 800 20px 'Manrope', sans-serif; text-align: center; }
.analysis-donut-center small { margin-top: 3px; color: #8b968e; font: 600 8px 'DM Mono', monospace; letter-spacing: .5px; }
.donut-segment { cursor: pointer; stroke-linecap: butt; outline: none; transition: stroke-width .2s ease, filter .2s ease, opacity .2s ease; animation: donut-reveal .8s var(--segment-delay,0ms) cubic-bezier(.2,.75,.2,1) both; }
.donut-segment:hover, .donut-segment:focus-visible, .donut-segment.is-selected { stroke-width: 39; filter: drop-shadow(0 2px 3px rgba(24,44,39,.18)); }
.donut-segment:focus-visible { stroke: #182c27; }
@keyframes donut-reveal { from { stroke-dasharray: 0 478px; opacity: .45; } to { stroke-dasharray: var(--segment-length) 478px; opacity: 1; } }
.analysis-legend { display: grid; max-height: 318px; gap: 3px; overflow-y: auto; align-content: center; }
.analysis-category { display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: center; gap: 8px; min-width: 0; min-height: 49px; padding: 5px 7px; border: 1px solid transparent; border-radius: 5px; text-align: left; color: #354b3f; background: transparent; transition: background .16s ease, border-color .16s ease; }
.analysis-category:hover, .analysis-category.is-selected { border-color: #dce8dc; background: #f3f7f1; }
.analysis-category .category-mark { width: 28px; height: 28px; border-radius: 7px; font-size: 15px; }
.analysis-category-copy { display: grid; min-width: 0; gap: 3px; }
.analysis-category-copy strong { overflow: hidden; color: #344a3e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.analysis-category-copy small { color: #87938a; font-size: 9px; }
.analysis-category > b { color: #243d32; font: 600 10px 'DM Mono', monospace; text-align: right; white-space: nowrap; }
.selected-category-detail { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 11px; margin: 0 15px 14px; padding: 11px 12px; border: 1px solid #e3e9e1; border-radius: 6px; background: #f9fbf7; animation: wizard-step-in .2s ease both; }
.selected-category-detail > div { display: flex; min-width: 0; align-items: center; gap: 9px; }
.selected-category-detail > div > span:last-child { display: grid; min-width: 0; gap: 3px; }
.selected-category-detail strong { overflow-wrap: anywhere; color: #2e483a; font-size: 10px; }
.selected-category-detail small { color: #87938a; font-size: 9px; }
.selected-category-detail > strong { white-space: nowrap; }
.analysis-empty { margin: 0; padding: 18px; color: #89958c; font-size: 11px; line-height: 1.5; }
.trend-card { display: flex; flex-direction: column; }
.timeline-chart { display: grid; align-content: center; flex: 1; padding: 0 11px 10px; }
.timeline-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.timeline-gridline { stroke: #edf1eb; stroke-width: 1; }
.timeline-area { fill: rgba(109,168,151,.15); }
.timeline-area { fill: rgba(67,169,143,.15); }
.timeline-line { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.timeline-point { fill: #fff; stroke: var(--teal); stroke-width: 3; }
.timeline-limit { stroke: #d7ae4f; stroke-width: 2; stroke-dasharray: 6 5; }
.timeline-axis-label { fill: #89958c; font: 10px 'DM Mono', monospace; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 15px; color: #75837a; font-size: 9px; }
.timeline-legend span { display: inline-flex; align-items: center; gap: 6px; }
.timeline-legend i { width: 14px; height: 3px; border-radius: 3px; background: #39745c; }
.timeline-legend i { width: 14px; height: 3px; border-radius: 3px; background: var(--teal); }
.timeline-legend .timeline-limit-key::before { width: 14px; border-top: 2px dashed #d7ae4f; content: ''; }
.category-limits, .comparison-detail, .insight-card { padding-bottom: 9px; }
.category-limit-row { display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: start; gap: 9px; padding: 11px 16px; border-top: 1px solid #edf1eb; }
.category-limit-row .category-mark { width: 29px; height: 29px; font-size: 15px; }
.category-limit-copy { display: grid; min-width: 0; gap: 5px; }
.category-limit-copy strong { color: #334a3e; font-size: 10px; }
.category-limit-copy small { color: #829087; font-size: 9px; }
.category-limit-row > strong { color: #3b5848; font: 700 10px 'DM Mono', monospace; }
.category-limit-row .analysis-progress { height: 5px; background: #e9efe8; }
.category-limit-row .analysis-progress i { background: #6da897; }
.category-limit-row .analysis-progress i { background: var(--blue); }
  .mobile-nav button.active { color: var(--forest); background: var(--pastel-mint); box-shadow: inset 0 2px 0 var(--teal); font-weight: 700; }
.analysis-footnote { margin: 0; padding: 0 16px 10px; color: #8a958d; font-size: 9px; line-height: 1.45; }
.period-comparison-values { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 11px 16px 8px; }
.period-comparison-values > div { display: grid; gap: 4px; }
.period-comparison-values small { color: #87938a; font-size: 9px; }
.period-comparison-values strong { color: #244638; font: 700 16px 'Manrope', sans-serif; overflow-wrap: anywhere; }
.change-pill { padding: 6px 8px; border-radius: 5px; color: #386f55; background: #eaf3e9; font: 700 10px 'DM Mono', monospace; }
.change-pill.is-up { color: #a45342; background: #fff0e9; }
.category-differences { display: grid; padding: 0 16px; }
.category-differences > div { display: grid; grid-template-columns: 27px minmax(0,1fr) auto; align-items: center; gap: 7px; min-height: 37px; border-top: 1px solid #eff2ed; color: #53645a; font-size: 9px; }
.category-differences .category-mark { width: 24px; height: 24px; border-radius: 6px; font-size: 13px; }
.category-differences strong { font: 600 9px 'DM Mono', monospace; white-space: nowrap; }
.is-up { color: #ad5545 !important; }
.is-down { color: #387a5b !important; }
.analysis-insight { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 9px; padding: 12px 15px; border-top: 1px solid #edf1eb; }
.analysis-insight > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; color: #50694d; background: #edf3e9; font-size: 14px; }
.analysis-insight.warning > span { color: #a24f3f; background: #fff0e8; }
.analysis-insight.notice > span { color: #997729; background: #faf3df; }
.analysis-insight > div { display: grid; gap: 4px; }
.analysis-insight small { color: #87938a; font: 600 8px 'DM Mono', monospace; letter-spacing: .4px; }
.analysis-insight strong { color: #3d5145; font-size: 10px; font-weight: 500; line-height: 1.45; }
.unexpected-card { padding-bottom: 9px; }
.unexpected-card > .analysis-label { display: block; padding: 15px 16px 6px; color: #a37b22; }
.unexpected-summary { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 7px; width: 100%; padding: 7px 15px; border: 0; text-align: left; color: #495e50; background: transparent; }
.unexpected-summary > span { grid-row: span 2; font-size: 20px; }
.unexpected-summary strong { color: #284b3a; font: 700 16px 'Manrope', sans-serif; }
.unexpected-summary small { color: #87938a; font-size: 9px; }
.unexpected-summary b { grid-column: 3; grid-row: 1 / span 2; color: #5b7966; font-size: 9px; }
.analysis-secondary { padding: 12px 15px; border: 1px solid #e2e9e1; border-radius: 7px; color: #34493e; background: rgba(255,255,252,.82); }
.analysis-secondary summary { cursor: pointer; font-size: 10px; font-weight: 700; list-style-position: inside; }
.analysis-secondary > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px 0; color: #738177; font-size: 9px; }
.analysis-secondary strong { color: #354c40; font: 600 9px 'DM Mono', monospace; text-align: right; }
.analysis-actions { display: grid; gap: 8px; padding: 14px; }
.analysis-actions .button { justify-content: flex-start; min-height: 36px; }
.analysis-explain { margin-top: 13px; padding: 11px 14px; border-top: 1px solid #e1e8df; color: #65756a; }
.analysis-explain summary { cursor: pointer; font-size: 10px; font-weight: 700; }
.analysis-explain p { max-width: 820px; margin: 9px 0 2px; color: #7d8a81; font-size: 10px; line-height: 1.55; }
.scan-flow { display: grid; gap: 13px; }
.scan-step-labels { display: flex; gap: 7px; }
.scan-step-labels span { padding: 7px 10px; border: 1px solid #e4eae2; border-radius: 5px; color: #87938a; background: #f8faf6; font: 600 9px 'DM Mono', monospace; }
.scan-step-labels span.is-current { border-color: #97bba5; color: #315c46; background: #edf5ec; }
.scan-flow [data-scan-stage] { animation: wizard-step-in .2s ease both; }
.scan-flow [data-scan-stage][hidden] { display: none; }
.scan-file-name { color: #456653; font-size: 10px; overflow-wrap: anywhere; }
.scan-next { width: 100%; min-height: 46px; margin-top: 15px; }
.scan-back { margin-top: 12px; }
.movement-category { display: inline-flex; align-items: center; gap: 7px; color: #46594d; }
.movement-category .category-mark { width: 24px; height: 24px; flex-basis: 24px; border-radius: 6px; font-size: 13px; }
.comparison-card { border-color: #dfe8df; box-shadow: 0 7px 22px rgba(24,44,39,.055); }
.comparison-open { min-height: 70px; padding: 13px 16px; background: #f5f8f3; }
.comparison-open .home-box-icon { width: 40px; height: 40px; flex-basis: 40px; background: #e4efe3; }
.comparison-open strong { font-size: 14px; }
.comparison-open small { font-size: 10px; }
.comparison-spend { padding: 19px 17px 14px; }
.comparison-spend small { color: #708278; }
.comparison-spend strong { font-size: 29px; }
.comparison-budget { margin-inline: 16px; padding-top: 13px; }
.comparison-budget span { color: #79877e; }
.comparison-budget strong { font-size: 13px; }
.comparison-details { margin: 0 16px 15px; border-top: 1px solid #edf1eb; }
.comparison-details summary { padding: 11px 2px 3px; cursor: pointer; color: #50705d; font-size: 10px; font-weight: 700; list-style-position: inside; }
.comparison-details[open] summary { margin-bottom: 7px; }
.comparison-details .comparison-lines, .comparison-details .favorite-list, .comparison-details .comparison-financial { margin-inline: 0; }
.comparison-details .projection-note { margin-inline: 0; }

.movement-wizard [data-wizard-main] { gap: 9px; padding: 11px 18px 0; }
.movement-mode-switch { gap: 2px; padding: 2px; border: 0; border-bottom: 1px solid #e8ece6; border-radius: 0; background: transparent; }
.movement-mode-switch button { display: grid; min-height: 44px; align-content: center; justify-items: center; gap: 1px; padding: 3px 4px; border-radius: 8px; font-size: 10px; }
.movement-mode-icon { display: block; color: #54745f; font-size: 18px; line-height: 19px; }
.movement-mode-label { display: block; font-size: 10px; line-height: 1.1; }
.movement-mode-switch button[aria-pressed="true"] { color: #173e32; background: #edf4eb; box-shadow: none; }
.movement-mode-switch button[aria-pressed="true"] .movement-mode-icon { color: #1d704e; }
.movement-receipt-row { justify-content: flex-end; margin-top: -3px; }
.movement-wizard .movement-receipt-button { min-height: 33px; gap: 6px; padding: 0 8px; border: 0; background: transparent; color: #667a6c; font-size: 10px; }
.movement-wizard .movement-receipt-icon { font-size: 18px; }
.movement-wizard .wizard-progress { position: relative; display: block; height: 5px; margin: 0 1px; }
.movement-wizard .wizard-progress > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.movement-wizard .wizard-progress-track { height: 4px; border-radius: 0; background: repeating-linear-gradient(90deg,#e5ebe4 0 calc(20% - 3px),transparent calc(20% - 3px) 20%); }
.movement-wizard .wizard-progress-track i { border-radius: 0; background: repeating-linear-gradient(90deg,#43836b 0 calc(20% - 3px),transparent calc(20% - 3px) 20%); }
.movement-step-list { display: grid; min-height: 0; flex: 1; align-content: center; }
.movement-wizard[data-step="1"] .movement-step-list { align-content: start; padding-top: clamp(28px, 7vh, 58px); }
.movement-step-hint, .movement-wizard .wizard-kicker { display: none; }
.movement-wizard .wizard-pane { display: grid; min-height: 0; align-content: center; gap: 4px; }
.movement-wizard .wizard-pane h3 { margin: 0 0 12px; font-size: 19px; }
.movement-wizard [data-wizard-fields="1"] .form-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.movement-wizard .wizard-amount-input { min-height: 112px; padding: 7px 0; border: 0; border-bottom: 2px solid #d6e5d9; border-radius: 0; font-size: 72px; line-height: 1; text-align: center; }
.movement-wizard .wizard-amount-input { color: #183e35; font-weight: 800; }
.movement-wizard .wizard-amount-input::placeholder { color: #91a89a; opacity: 1; }
.movement-amount-entry { display: flex; min-width: 0; align-items: baseline; justify-content: center; border-bottom: 2px solid #d6e5d9; }
.movement-amount-mark { flex: 0 0 auto; color: #183e35; font: 800 62px/1 'Manrope', sans-serif; }
.movement-wizard .movement-amount-entry .wizard-amount-input { width: 1%; min-width: 0; flex: 1; border-bottom: 0; }
.movement-advanced[hidden] { display: none !important; }
.movement-wizard .wizard-choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 6px; }
.movement-wizard .wizard-choice { min-height: 76px; grid-template-columns: 42px minmax(0,1fr); justify-items: start; align-content: center; gap: 10px; padding: 10px 12px; border: 1px solid #e5ebe4; border-radius: 12px; box-shadow: none; }
.movement-wizard .wizard-choice-icon { width: 42px; height: 42px; grid-row: 1; border-radius: 12px; font-size: 21px; }
.movement-wizard .wizard-choice > strong { display: -webkit-box; grid-column: 2; grid-row: 1; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 11px; line-height: 1.2; text-align: left; }
.movement-wizard .wizard-choice.account-choice { display: flex; min-height: 68px; justify-content: flex-start; gap: 10px; padding: 9px 11px; }
.movement-wizard .account-choice > span:last-child { gap: 3px; }
.movement-wizard .account-choice small { font-size: 9px; }
.movement-wizard .movement-advanced summary { min-height: 37px; padding: 10px 1px; font-size: 11px; }
.movement-wizard-footer { gap: 8px; padding-top: 9px; }
.movement-wizard-footer .button::before { margin-right: 2px; font-size: 18px; line-height: 1; }
.movement-wizard-footer [data-wizard-back]::before { content: "←"; }
.movement-wizard-footer [data-wizard-next]::after { content: "→"; margin-left: 3px; font-size: 18px; }
.movement-wizard-footer [data-wizard-confirm]::before { content: "✓"; }
.movement-wizard-footer .button { min-height: 50px; border-radius: 11px; }
.movement-confirm-summary { border-top: 0; }
.movement-confirm-summary > div { padding: 8px 1px; }
.movement-confirm-summary small { font-size: 10px; }
.movement-confirm-summary strong { font-size: 12px; }

@media (max-width: 760px) {
  #overlay:has(.movement-wizard) { padding: 0; }
  .dialog:has(.movement-wizard) { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .dialog:has(.movement-wizard) .dialog-head { padding: calc(10px + env(safe-area-inset-top)) 16px 8px; }
  .dialog:has(.movement-wizard) .dialog-head h2 { font-size: 15px; }
  .dialog:has(.movement-wizard) .dialog-head p { display: none; }
  .dialog:has(.movement-wizard) .dialog-body { padding: 0; }
  .movement-wizard [data-wizard-main] { gap: 7px; padding: 8px 14px 0; }
  .movement-step-list { min-height: 0; }
  .movement-wizard .wizard-pane h3 { margin-bottom: 10px; font-size: 18px; }
  .movement-wizard .wizard-choice { min-height: 72px; gap: 8px; padding-inline: 9px; }
  .movement-wizard .wizard-choice-icon { width: 38px; height: 38px; border-radius: 11px; }
  .movement-wizard .wizard-amount-input { min-height: 128px; font-size: 74px; }
  .movement-wizard .movement-receipt-label { display: inline; font-size: 10px; }
  .movement-wizard .movement-receipt-button { width: auto; min-width: 0; height: 38px; flex: 0 0 auto; justify-content: center; padding: 0 10px; overflow: visible; border-radius: 9px; background: #eef4ec; font-size: 10px; }
  .movement-wizard .movement-receipt-icon { font-size: 19px; }
  .movement-amount-mark { font-size: 66px; }
  .movement-wizard-footer { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

@keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 1480px) {
  .analysis-main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1200px) {
  .analysis-layout { grid-template-columns: 1fr; }
  .analysis-side-column { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .analysis-actions, .analysis-secondary { grid-column: auto; }
}
@media (max-width: 1080px) {
  .analysis-main-grid { grid-template-columns: 1fr; }
  .analysis-layout { gap: 12px; }
}
@media (max-width: 760px) {
  .dialog:has(.expense-wizard) { width: min(530px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); }
  .expense-wizard { gap: 11px; }
  .wizard-pane { min-height: 205px; }
  .wizard-choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .wizard-choice { min-height: 78px; }
  .wizard-choice.account-choice { min-height: 65px; }
  .wizard-summary > strong { font-size: 34px; }
  .analysis-controls { margin-top: 0; }
  .analysis-layout, .analysis-main-column, .analysis-side-column, .analysis-main-grid, .analysis-lower-grid { grid-template-columns: 1fr; }
  .analysis-side-column { gap: 10px; }
  .analysis-hero { grid-template-columns: 1fr; gap: 16px; padding: 19px; }
  .analysis-total { font-size: 34px; }
  .analysis-limit { padding: 13px 0 0; border-top: 1px solid rgba(255,255,255,.2); border-left: 0; }
  .donut-layout { grid-template-columns: 1fr; gap: 8px; padding-inline: 12px; }
  .analysis-donut-wrap { width: min(100%,245px); }
  .analysis-donut-center strong { font-size: 18px; }
  .analysis-legend { max-height: none; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; }
  .analysis-category { grid-template-columns: 28px minmax(0,1fr); min-height: 52px; gap: 6px; padding-inline: 4px; }
  .analysis-category > b { grid-column: 2; margin-top: -5px; font-size: 9px; text-align: left; }
  .analysis-category .category-mark { width: 26px; height: 26px; }
  .selected-category-detail { grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-inline: 12px; }
  .selected-category-detail > strong { grid-column: 2; grid-row: 1; }
  .selected-category-detail .button { grid-column: 1 / -1; width: 100%; }
  .analysis-card-heading { padding-inline: 14px; }
  .timeline-chart { padding-inline: 5px; }
  .category-limit-row { padding-inline: 12px; }
}
@media (max-width: 390px) {
  .analysis-total { font-size: 30px; }
  .analysis-legend { grid-template-columns: 1fr; }
  .analysis-category { grid-template-columns: 31px minmax(0,1fr) auto; }
  .analysis-category > b { grid-column: auto; margin-top: 0; text-align: right; }
  .period-comparison-values strong { font-size: 14px; }
  .wizard-pane h3 { font-size: 20px; }
  .wizard-amount-input { min-height: 68px; font-size: 32px; }
}
@media (max-width: 760px) {
  #overlay:has(.movement-wizard) { place-items: stretch; padding: 0; }
  .dialog:has(.movement-wizard) { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; box-shadow: none; }
  .dialog:has(.movement-wizard) .dialog-head { padding: calc(12px + env(safe-area-inset-top)) 17px 11px; }
  .dialog:has(.movement-wizard) .dialog-head h2 { font-size: 16px; }
  .dialog:has(.movement-wizard) .dialog-head p { font-size: 10px; }
  .dialog:has(.movement-wizard) .dialog-body { padding: 0; }
  .movement-wizard-main { gap: 12px; padding: 12px 16px 0; }
  .movement-mode-switch button { min-height: 42px; padding-inline: 4px; font-size: 10px; }
  .movement-receipt-button { min-height: 36px; }
  .movement-step-list { min-height: 0; }
  .movement-step-hint { margin-bottom: 14px; }
  .movement-wizard .wizard-choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .movement-wizard .wizard-choice { min-height: 76px; }
  .movement-wizard .wizard-choice.account-choice { min-height: 65px; }
  .movement-wizard-footer { bottom: 0; margin-top: auto; padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); }
  .movement-wizard-footer .button { min-height: 54px; }
  .movement-advanced-grid { grid-template-columns: 1fr; }
  .movement-success { min-height: 100%; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .movement-success-check { width: 68px; height: 68px; font-size: 40px; }
  .movement-success h2 { font-size: 23px; }
  .movement-success-actions .button { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.cloud-movement-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cloud-movement-actions button { min-height: 36px; }


/* Matete off: one thread vocabulary, GPU-friendly animation and no progress fiction. */
.app-boot { position:fixed; inset:0; z-index:100; display:grid; place-items:center; background:#fafbf6; padding: max(24px,env(safe-area-inset-top)) 24px max(24px,env(safe-area-inset-bottom)); }
.app-boot[hidden] { display:none; }
.app-boot-inner { width:min(100%,430px); text-align:center; animation:yarn-appear .22s ease-out; }
.app-boot-animation { display:grid; width:min(100%,360px); height:min(44vh,300px); margin:0 auto 12px; place-items:center; overflow:hidden; }
.app-boot-animation img { display:block; width:100%; height:100%; object-fit:contain; }
.app-boot-logo { width:min(88%,340px); height:auto; margin-bottom:20px; }
.matete-boot-video { display:block; width:100%; max-height:36dvh; aspect-ratio:16/9; object-fit:contain; margin:0 auto; border-radius:18px; background:#fafbf6; }
.app-boot h1 { font-size:32px; color:#155d4f; margin:14px 0; }
.app-boot p { color:#68766f; line-height:1.6; }
.yarn-pile { width:100%; max-height:300px; overflow:visible; }
.yarn-pile-wrap { width:100%; max-width:390px; justify-self:center; }
.yarn-pile .yarn-ball-motion { animation:yarn-appear .35s ease-out both; animation-delay:0ms; transform-origin:50px 48px; }
.yarn-pile-boot .yarn-ball-motion { animation:yarn-roll .7s ease-out both; animation-delay:var(--yarn-delay); }
.yarn-spiral,.yarn-flow { stroke-dasharray:9 4; animation:yarn-thread-flow 2.6s linear infinite; }
.yarn-boot-thread { height:5px; background:#dbece3; border-radius:12px; overflow:hidden; margin:20px auto; width:70%; }
.yarn-boot-thread::after { content:''; display:block; width:42%; height:100%; background:#16978a; border-radius:inherit; animation:yarn-loading 1.6s ease-in-out infinite alternate; }
.yarn-incoming-panel { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:22px; background:linear-gradient(120deg,#eef7ef,#fafbf6); border:1px solid #deebe2; border-radius:22px; padding:28px; margin-bottom:22px; overflow:hidden; }
.yarn-incoming-copy h2 { color:#123c37; font-size:24px; margin:12px 0; }
.yarn-incoming-copy p { color:#67786d; }
.incoming-item-card { display:grid; gap:10px; padding:14px 0; border-bottom:1px solid #e2e9e2; }
.incoming-item-main { display:flex; align-items:flex-start; gap:10px; min-width:0; }
.incoming-source-mark { flex:0 0 28px; }
.incoming-item-copy { display:grid; gap:5px; min-width:0; flex:1; }
.incoming-item-title { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px; }
.incoming-item-title strong { min-width:0; overflow-wrap:anywhere; }
.incoming-item-amount { white-space:nowrap; font-weight:650; }
.incoming-item-meta,.incoming-item-confidence { display:flex; flex-wrap:wrap; gap:4px 12px; font-size:11px; color:#67786d; }
.incoming-item-actions { display:flex; flex-wrap:wrap; gap:8px; }
.incoming-category-creator { display:grid; gap:8px; }
.incoming-category-creator [data-review-category-editor]:not([hidden]) { display:grid; gap:7px; }
.yarn-processing { text-align:center; max-width:500px; margin:0 auto; }
.yarn-process-art { width:100%; max-height:250px; }
.yarn-processing h3 { color:#155d4f; margin:12px 0; }
.yarn-photo-transform { position:relative; min-height:160px; margin:12px auto; max-width:330px; }
.yarn-real-photo { display:block; width:100%; max-height:340px; object-fit:contain; border-radius:14px; }
.yarn-photo-transform:has(.yarn-process-art) .yarn-real-photo { animation:yarn-photo-fade 1.8s ease-out forwards; }
.yarn-photo-transform .yarn-process-art { position:absolute; inset:0; width:100%; height:100%; animation:yarn-appear 1.2s ease-in both; }
.yarn-classification { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.yarn-cashbox { display:flex; flex-direction:column; align-items:center; width:90px; max-width:100%; }
.yarn-cashbox svg { width:80px; }
.yarn-cashbox strong { font-size:12px; overflow-wrap:anywhere; }
.yarn-cashbox.is-selected { color:#146354; }
.document-preview { scroll-margin-top:90px; margin-bottom:24px; }
.document-preview header { display:flex; align-items:center; justify-content:space-between; }
.document-preview >p { color:#67786d; line-height:1.6; }
.document-preview .button { margin:8px 8px 0 0; }
.incoming-confirmation-summary { display:grid; gap:12px; margin-bottom:14px; border-radius:6px; }
.incoming-confirmation-summary > .eyebrow { margin:0; }
.incoming-confirmation-summary h3 { margin:0; color:#123c37; font-size:20px; line-height:1.3; overflow-wrap:anywhere; }
.incoming-summary-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.incoming-summary-facts > div { display:grid; gap:3px; min-width:0; }
.incoming-summary-facts small { color:#67786d; }
.incoming-summary-facts strong { overflow-wrap:anywhere; }
.incoming-match-suggestion { display:grid; gap:5px; padding:10px; background:#f4f7f4; border-left:3px solid #c6a85b; border-radius:4px; }
.incoming-match-suggestion p,.incoming-match-suggestion small { margin:0; color:#67786d; overflow-wrap:anywhere; }
.incoming-review-quick-fields { display:grid; gap:10px; }
.incoming-payment-choice { display:grid; gap:8px; }
.incoming-payment-choice > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.incoming-payment-choice [aria-pressed="true"] { border-color:#146354; color:#146354; box-shadow:inset 0 0 0 1px #146354; }
.incoming-category-choice { display:grid; gap:8px; }
.incoming-category-suggestions,.incoming-category-results { display:flex; flex-wrap:wrap; gap:8px; }
.incoming-category-other { display:grid; gap:8px; }
.incoming-category-other > summary { color:#146354; cursor:pointer; font-weight:600; padding:4px 0; }
.incoming-review-payment-fields { display:grid; gap:10px; }
.incoming-document-access { display:grid; align-content:start; gap:8px; min-width:0; margin:0; }
.incoming-document-heading { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.incoming-document-heading small { color:#67786d; overflow-wrap:anywhere; }
.incoming-document-controls { display:flex; flex-wrap:wrap; gap:6px; }
.incoming-document-access .incoming-document-preview { display:block; width:100%; max-height:60vh; object-fit:contain; }
.incoming-document-access .incoming-pdf-preview { height:60vh; }
.incoming-document-frame { position:relative; display:grid; place-items:center; width:100%; min-width:0; height:min(64vh,760px); overflow:hidden; background:#f4f7f4; border:1px solid #dce5df; border-radius:6px; touch-action:none; }
.incoming-document-frame.is-zoomed { cursor:grab; }
.incoming-document-frame.is-zoomed:active { cursor:grabbing; }
.incoming-document-content { display:grid; place-items:center; width:100%; min-width:0; min-height:100%; transform-origin:center center; transition:transform .08s linear; }
.incoming-document-frame.is-fullscreen { position:fixed; inset:0; z-index:10001; width:100vw; height:100dvh; max-height:none; padding:16px; background:#fff; border:0; border-radius:0; }
.incoming-document-frame.is-fullscreen .incoming-document-preview { max-height:calc(100dvh - 32px); height:calc(100dvh - 32px); }
.incoming-document-frame .incoming-document-preview { max-width:100%; }
.incoming-document-frame object.incoming-document-preview { height:100%; max-height:100%; pointer-events:none; }
.incoming-document-category { position:absolute; top:8px; left:8px; max-width:calc(100% - 16px); padding:5px 8px; color:#123c37; background:#fff; border:1px solid #dce5df; border-radius:4px; font-size:12px; font-weight:650; overflow-wrap:anywhere; pointer-events:none; }
.incoming-review-layout { display:grid; grid-area:fields; align-content:start; min-width:0; }
.dialog-body:has(.incoming-document-access) { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr); grid-template-areas:"preview summary" "preview fields"; align-items:start; gap:14px 18px; max-height:min(76vh,900px); overflow:auto; }
.incoming-document-access { grid-area:preview; position:sticky; top:0; }
.incoming-confirmation-summary { grid-area:summary; }
.incoming-review-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.incoming-review-fields .form-field.full { grid-column:1 / -1; }
.statement-review-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:12px 0; }
.statement-review-summary > div { display:grid; gap:4px; padding:10px; background:#f4f7f4; border-radius:6px; min-width:0; }
.statement-review-summary small { color:#67786d; overflow-wrap:anywhere; }
.statement-review-summary strong { color:#123c37; font-size:18px; }
.statement-candidate-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid #e7ece8; }
.statement-candidate-row > div { display:grid; gap:4px; min-width:0; }
.statement-candidate-row strong,.statement-candidate-row small { overflow-wrap:anywhere; }
.statement-candidate-row small { color:#67786d; }
.statement-found-details { margin:8px 0; }
.statement-found-details > summary { cursor:pointer; color:#146354; font-weight:600; padding:8px 0; }
.yarn-success-mark { width:58px; height:58px; margin:0 auto; display:grid; place-items:center; border-radius:50%; background:#d7eee4; color:#15876e; font-size:38px; animation:yarn-appear .2s ease-out; }
.yarn-saved-feedback { display:block; position:relative; min-width:240px; max-width:min(420px,calc(100vw - 32px)); }
.yarn-saved-feedback .yarn-processing h3 { font-size:18px; }
.yarn-saved-feedback .yarn-processing p { margin-bottom:0; }
.yarn-saved-feedback .toast-close { position:absolute; right:8px; top:8px; }
.incoming-resolution-feedback { display:block; position:relative; max-width:min(420px,calc(100vw - 40px)); }
.incoming-resolution-feedback .yarn-processing { display:grid; grid-template-columns:70px minmax(0,1fr); gap:0 10px; align-items:center; margin:0; text-align:left; }
.incoming-resolution-feedback .yarn-processing .yarn-success-mark { grid-row:span 2; width:52px; height:52px; margin:0; }
.incoming-resolution-feedback .yarn-processing h3,.incoming-resolution-feedback .yarn-processing p { margin:2px 0; }
.incoming-resolution-track { position:relative; width:168px; height:42px; margin:8px 0; touch-action:pan-y; }
.unravel-upload-queue { display:grid; gap:10px; margin:12px 0; padding:12px; border:1px solid #dce5df; border-radius:6px; background:#fff; }
.unravel-upload-queue > header { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.unravel-upload-queue h2 { margin:0; font-size:16px; }
.unravel-upload-list { display:grid; }
.unravel-upload-item { display:grid; grid-template-columns:52px minmax(0,1fr) auto; align-items:center; gap:10px; min-width:0; padding:8px 0; border-bottom:1px solid #e7ece8; }
.unravel-upload-preview { display:grid; place-items:center; width:48px; height:48px; overflow:hidden; border-radius:4px; background:#f2f6f3; font-size:22px; }
.unravel-upload-preview img { display:block; width:100%; height:100%; object-fit:cover; }
.unravel-upload-copy { display:grid; gap:3px; min-width:0; }
.unravel-upload-copy strong,.unravel-upload-copy small { overflow-wrap:anywhere; }
.unravel-upload-copy small { color:#67786d; }
.unravel-upload-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px; }
.unravel-upload-queue [data-upload-submit] { justify-self:start; min-height:44px; }
.incoming-resolution-track::before { position:absolute; top:19px; right:18px; left:18px; height:3px; background:#a8cfc1; content:""; }
.incoming-resolution-thread { position:absolute; top:0; left:0; display:grid; place-items:center; width:40px; height:40px; border:1px solid #d5e4dd; border-radius:50%; background:#fff; cursor:grab; touch-action:pan-y; transition:transform .22s ease,background-color .22s ease; }
.incoming-resolution-thread:active { cursor:grabbing; }
.incoming-resolution-feedback[data-resolved="true"] .incoming-resolution-thread { transform:translateX(126px) rotate(30deg); background:#d7eee4; }
.incoming-resolution-feedback > p { margin:4px 0 8px; }
@keyframes yarn-appear { from { opacity:0; transform:translateY(12px) scale(.92); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes yarn-roll { from { opacity:0; transform:translateY(-55px) rotate(-60deg); } to { opacity:1; transform:translateY(0) rotate(0); } }
@keyframes yarn-thread-flow { to { stroke-dashoffset:-52; } }
@keyframes yarn-loading { to { transform:translateX(135%); } }
@keyframes yarn-photo-fade { to { opacity:.15; transform:scale(.82); } }
@media (max-width:760px) {
  .dialog-body:has(.incoming-document-access) { display:flex; flex-direction:column; align-items:stretch; gap:12px; max-height:calc(100dvh - 150px); }
  .incoming-document-access { position:static; width:100%; }
  .incoming-document-frame { height:min(52vh,500px); }
  .incoming-document-access .incoming-document-preview { max-height:50vh; }
  .incoming-document-access .incoming-pdf-preview { height:50vh; }
  .incoming-confirmation-summary { padding:14px; }
  .incoming-confirmation-summary h3 { font-size:18px; }
  .unravel-upload-queue { padding:10px; }
  .unravel-upload-item { grid-template-columns:44px minmax(0,1fr); gap:8px; }
  .unravel-upload-preview { width:42px; height:42px; }
  .unravel-upload-actions { grid-column:2; justify-content:flex-start; }
  .incoming-review-fields { grid-template-columns:1fr; }
  .incoming-review-fields .form-field.full { grid-column:auto; }
  .statement-review-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .statement-candidate-row { align-items:flex-start; flex-direction:column; }
}
@media(max-width:600px) { .yarn-incoming-panel { grid-template-columns:64px minmax(0,1fr); padding:12px; gap:12px; text-align:left; border-radius:6px; margin-bottom:12px; } .yarn-incoming-panel .yarn-pile-wrap { width:64px; max-width:64px; height:64px; display:grid; align-items:center; } .yarn-incoming-panel h2 { font-size:20px; margin:3px 0; } .yarn-incoming-panel p { margin:3px 0; font-size:12px; } .app-boot-logo { max-width:290px; } }
@media(prefers-reduced-motion:reduce) { .app-boot-inner,.yarn-pile .yarn-ball-motion,.yarn-spiral,.yarn-flow,.yarn-boot-thread::after,.yarn-success-mark,.yarn-photo-transform .yarn-process-art,.yarn-photo-transform:has(.yarn-process-art) .yarn-real-photo,.incoming-resolution-thread { animation:none!important; transition:none!important; } }
.expense-save-visual { grid-column:1 / -1; padding:12px; background:#f3faf5; border-radius:14px; }
.yarn-sending { max-height:145px; }
.yarn-sent-document { animation:yarn-send 1.8s ease-in-out infinite alternate; }
@keyframes yarn-send { to { transform:translate(150px,96px) scale(.7); opacity:.45; } }
@media(prefers-reduced-motion:reduce) { .yarn-sent-document { animation:none!important; } }

/* Entry art shares the same sculpted yarn components as boot and inbox. */
.yarn-entry-illustration { display:block; width:100%; max-width:220px; height:auto; overflow:visible; }
.unravel-hero { border-radius:18px; background:linear-gradient(115deg,#edf7ef,#fcfaf1); }

/* Approved Matete visual language, applied consistently without changing page behavior. */
:root {
  --forest: #08695e;
  --forest-deep: #07594f;
  --paper: #fffefa;
  --canvas: #f7f6f0;
  --line: #e9e8df;
  --muted: #74827d;
  --teal: #21a98f;
  --pastel-mint: #e5f6ef;
  --shadow: 0 10px 30px rgba(29, 65, 53, .08);
  color: #173b39;
  background: var(--canvas);
}
body {
  color: #173b39;
  background: radial-gradient(ellipse at 54% 0%, rgba(240, 229, 197, .24), transparent 45%), var(--canvas);
}
html, body { overflow-x: clip; }
.sidebar {
  width: 232px;
  padding: 18px 12px 14px;
  border-right: 1px solid #e8e6dc;
  color: #25413e;
  background: #fcfbf7;
}
.brand { padding: 0 8px 17px; }
.brand-logo { max-height: 56px; padding: 0; background: transparent; }
.environment-pill {
  margin: 0 8px 17px;
  border-color: #e8e8dd;
  border-radius: 999px;
  color: #62756f;
  background: #f6f5ed;
}
.environment-pill span { background: #20a98e; box-shadow: 0 0 0 3px rgba(32,169,142,.12); }
.nav-label { color: #84928c; }
.primary-nav { gap: 4px; }
.nav-item {
  min-height: 42px;
  padding-inline: 11px;
  border-radius: 11px;
  color: #53645f;
  font-size: 13px;
}
.nav-item:hover { color: #173f39; background: #f0f5ef; }
.nav-item.active {
  color: #075d53;
  background: #ddf3e8;
  font-weight: 700;
}
.nav-icon { color: #64857b; }
.nav-item.active .nav-icon { color: #087662; }
.project-link { border-top-color: #e8e9e1; }
.profile-card { border-top-color: #e8e9e1; }
.avatar { color: #15594c; background: #d8f0e6; }
.profile-copy small { color: #7a8b83; }
.main-area { margin-left: 232px; }
.topbar {
  min-height: 62px;
  padding-inline: 30px;
  border-bottom-color: #eceae1;
  background: rgba(252,251,247,.94);
}
.page-content { max-width: 1440px; padding: 27px 30px 48px; }
.page-heading { align-items: center; margin-bottom: 19px; }
.page-heading .eyebrow { margin-bottom: 4px; color: #318675; }
.page-heading h1 { color: #173b39; font-size: 28px; letter-spacing: -.45px; }
.subheading { color: #78857f; font-size: 12px; line-height: 1.5; }
h1, h2, h3 { color: #173b39; }
.button {
  min-height: 42px;
  padding-inline: 17px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.button-primary {
  color: #fff;
  background: linear-gradient(180deg,#087b6a,#056456);
  box-shadow: 0 4px 10px rgba(8,105,94,.15);
}
.button-primary:hover { background: #07594f; }
.button-secondary {
  border-color: #e7e9e1;
  border-radius: 12px;
  color: #35534a;
  background: #fffefa;
}
.button-quiet { border-radius: 12px; color: #43665b; background: #edf5ee; }
.button-danger { border-radius: 12px; }
.icon-button { border-radius: 10px; }
.field-input, .field-select, .field-textarea, .period-select {
  min-height: 43px;
  border-color: #e8e9e2;
  border-radius: 11px;
  color: #29443d;
  background: #fffefa;
}
.field-textarea { padding-block: 10px; }
.box-switcher {
  gap: 4px;
  padding: 4px;
  border: 1px solid #e8e9e2;
  border-radius: 999px;
  background: #f0f1eb;
}
.box-switcher button { min-height: 34px; border-radius: 999px; }
.box-switcher button.selected { color: #08695e; box-shadow: 0 1px 5px rgba(28,60,49,.1); }
.panel, .metric-card, .table-wrap, .more-group, .cloud-empty-state,
.account-box-section, .movement-filter-disclosure, .unravel-source-grid {
  border-color: #ebe9e0;
  border-radius: 15px;
  background-color: rgba(255,254,250,.96);
  box-shadow: 0 3px 14px rgba(39,62,50,.035);
}
.metric-card { min-height: 116px; padding: 16px 17px; }
.metric-card::before { width: 4px; border-radius: 0 5px 5px 0; }
.panel-header { padding: 17px 18px 13px; }
.toolbar { gap: 9px; }
.search-box input { border-radius: 999px; }
.filter-select { border-radius: 10px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: separate; border-spacing: 0; }
thead th { color: #71837b; background: #f7f7f1; }
tbody tr:hover { background: #f7faf5; }
tbody tr:last-child td { border-bottom: 0; }
.mobile-movement-card {
  gap: 5px;
  padding: 11px 12px;
  border-color: #e9e9e1;
  border-radius: 14px;
  background: #fffefa;
  box-shadow: 0 2px 10px rgba(39,62,50,.035);
}
.mobile-movement-card:hover { border-color: #a6d2c0; background: #fffefa; }
.mobile-movement-top time { color: #7a8982; }
.mobile-movement-title { color: #21423b; font-weight: 700; }
.mobile-movement-amount { font-family: 'DM Sans',sans-serif; }
.more-group { margin-top: 14px; padding: 14px 15px 7px; }
.more-group h2 { margin: 0 0 7px; color: #75847c; font: 700 10px 'DM Sans',sans-serif; letter-spacing: .5px; }
.more-row { min-height: 58px; border-top-color: #efefe8; border-radius: 10px; }
.more-row:hover { background: #f7faf5; }
.more-row-icon { border-radius: 10px; color: #087662; background: #e7f4ed; }
.more-row strong { color: #23443d; font-size: 12px; }
.category-row { min-height: 53px; border-top-color: #eff0e9; }
.category-row:hover { background: #f8faf5; }
.category-name { color: #29483f; font-size: 12px; }
.account-card { border-radius: 14px; }
.account-box-heading { border-radius: 13px 13px 0 0; }
.cloud-empty-state { padding: 24px 18px; }
.dialog { border: 1px solid #e9e8df; border-radius: 17px; }
.dialog-head { border-bottom-color: #eeede5; background: #fffefa; }
.dialog-head h2 { color: #183f39; }
.dialog-body { color: #29463d; }
.dialog-foot { border-top-color: #eeede5; background: #fffefa; }
.dialog-close { border-radius: 10px; }
.wizard-progress-track { background: #e8eee8; }
.wizard-progress-track i { background: #0b917b; }
.wizard-pane h3 { color: #173f39; }
.wizard-choice, .choice-card, .mobile-dialog-step .choice-card {
  border-color: #e8e9e2;
  border-radius: 13px;
  background: #fffefa;
}
.wizard-choice.selected, .choice-card.selected {
  border-color: #29a78b;
  background: #effaf3;
  box-shadow: inset 0 0 0 1px rgba(41,167,139,.12);
}
.movement-wizard-footer .button, .cloud-expense-wizard .button { border-radius: 13px; }
.cloud-expense-fast-saved, .movement-success { border-radius: 16px; }
.toast { border-radius: 13px; }
@media (max-width: 1080px) {
  .sidebar { width: 218px; }
  .main-area { margin-left: 218px; }
  .page-content { padding-inline: 24px; }
}
@media (max-width: 760px) {
  .sidebar {
    border-right: 1px solid #e8e6dc;
    background: #fcfbf7;
  }
  .main-area { margin-left: 0; }
  .topbar {
    min-height: calc(58px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 14px 0;
    border-bottom-color: #eeece3;
    background: rgba(252,251,247,.97);
  }
  .mobile-brand-logo { height: 43px; }
  .mobile-menu { border-radius: 10px; color: #22685a; }
  .page-content { padding: 17px 14px calc(78px + env(safe-area-inset-bottom)); }
  .page-heading { gap: 10px; margin-bottom: 15px; }
  .page-heading h1 { font-size: 23px; letter-spacing: -.35px; }
  .page-heading .subheading { font-size: 11px; }
  .page-heading > .button, .page-heading > div + .button { min-height: 39px; }
  .button { min-height: 44px; border-radius: 13px; }
  .field-input, .field-select, .field-textarea, .period-select { min-height: 44px; font-size: 14px; }
  .metric-grid { gap: 9px; }
  .metric-card { min-height: 103px; padding: 12px; border-radius: 14px; }
  .panel, .table-wrap, .more-group, .account-box-section, .movement-filter-disclosure, .unravel-source-grid { border-radius: 14px; }
  .panel-header { padding: 14px 14px 11px; }
  .toolbar { gap: 7px; }
  .search-box { flex-basis: 100%; }
  .filter-select { min-width: 0; }
  .table-wrap { margin-inline: 0; }
  .mobile-movement-list { gap: 8px; }
  .mobile-movement-card { padding: 10px 11px; border-radius: 13px; }
  .more-group { margin-top: 12px; padding: 12px 11px 6px; }
  .more-row { min-height: 57px; padding-inline: 8px; }
  .more-row-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .category-row { min-height: 52px; padding-inline: 10px; }
  .dialog:not(:has(.mobile-dialog-wizard,.movement-wizard,.cloud-expense-wizard)) { border-radius: 17px; }
  .dialog-head { padding: 15px 16px 12px; }
  .dialog-body { padding: 14px 16px; }
  .dialog-foot { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  .mobile-nav {
    min-height: calc(66px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(4,minmax(0,1fr));
    padding: 4px 12px calc(6px + env(safe-area-inset-bottom));
    border-top-color: #e8e9e1;
    background: rgba(255,254,250,.97);
    box-shadow: 0 -5px 20px rgba(44,65,52,.045);
  }
  .mobile-nav button {
    min-height: 52px;
    gap: 2px;
    border-radius: 12px;
    color: #71817a;
    font-size: 10px;
    font-weight: 600;
  }
  .mobile-nav button span { font-size: 22px; }
  .mobile-nav button.active { color: #087662; background: #e6f5ec; box-shadow: none; }
  .toast-region { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 390px) {
  .page-content { padding-inline: 12px; }
  .page-heading h1 { font-size: 22px; }
  .metric-grid { gap: 7px; }
  .metric-card { padding: 10px; }
  .mobile-movement-card { padding: 9px 10px; }
  .movement-wizard-footer .button { min-height: 50px; }
}

.matete-ui-icon { display: block; width: 23px; height: 23px; }
.matete-character { display: block; width: 100%; height: auto; border-radius: 0; object-fit: contain; }
.expense-visual-progress { display: flex; justify-content: center; gap: 0; margin: 0 auto 22px; width: min(100%,180px); }
.expense-visual-progress span { position: relative; flex: 1; height: 12px; color: #7e9188; text-align: center; font-size: 10px; }
.expense-visual-progress span::before { position: absolute; top: 3px; left: calc(50% - 4px); z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: #dce5df; content: ''; }
.expense-visual-progress span:not(:last-child)::after { position: absolute; top: 6px; left: 50%; width: 100%; height: 2px; background: #e5ebe5; content: ''; }
.expense-visual-progress .is-current { color: #075e53; font-weight: 700; }
.expense-visual-progress .is-current::before, .expense-visual-progress .is-complete::before { background: #087969; }
.expense-visual-progress .is-complete::after { background: #84c9b6; }
.dialog:has([data-fast-saved]) { width: min(620px,calc(100vw - 32px)); background: #fcfbf6; }
.dialog:has([data-fast-saved]) .dialog-head { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 6px; border-top: 0; border-bottom: 0; background: #fcfbf6; }
.dialog:has([data-fast-saved]) .dialog-head h2 { font-size: 13px; text-align: center; }
.dialog:has([data-fast-saved]) .dialog-head > div { grid-column: 2; }
.dialog:has([data-fast-saved]) .dialog-close { grid-column: 3; background: transparent; }
.expense-header-back { width: 44px; height: 44px; border: 0; color: #24483c; background: transparent; font-size: 28px; cursor: pointer; }
.cloud-expense-step-body { display: flex; min-height: 0; flex-direction: column; padding: 10px 28px 22px; background: #fcfbf6; }
.cloud-expense-fast-primary { display: flex; min-height: 0; flex-direction: column; gap: 0; }
.cloud-expense-fast-amount { display: grid; gap: 4px; align-content: start; justify-items: center; }
.cloud-expense-fast-amount > label { font: 700 16px 'Manrope',sans-serif; color: #173f39; text-align: center; }
.expense-amount-entry { display: flex; width: 100%; min-height: 72px; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; }
.expense-amount-entry > span { color: #143f38; font: 800 32px 'Manrope',sans-serif; }
.cloud-expense-step-body .expense-amount-entry input { width: 190px; max-width: 65%; text-align: left; }
.cloud-expense-fast-amount input { width: 100%; min-height: 62px; padding: 0; border: 0; background: transparent; color: #143f38; text-align: center; font: 800 36px 'Manrope',sans-serif; box-shadow: none; }
.cloud-expense-keypad { display: grid; width: min(100%,350px); grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 6px auto 0; }
.cloud-expense-keypad button { min-height: 44px; border: 1px solid #ecece5; border-radius: 999px; color: #22483c; background: #fffefa; box-shadow: 0 2px 5px rgba(20,55,39,.045); font: 700 16px 'Manrope',sans-serif; }
.cloud-expense-fast-field { margin: 0; padding: 0; border: 0; }
.cloud-expense-fast-field legend { width: 100%; margin-bottom: 16px; text-align: center; color: #193e36; font: 800 16px 'Manrope',sans-serif; }
.cloud-expense-fast-scopes, .cloud-expense-fast-sources, .cloud-expense-fast-categories { display: grid; grid-template-columns: 1fr; gap: 0; padding: 4px; border: 1px solid #ecebe3; border-radius: 14px; background: #fffefa; }
.cloud-expense-fast-choice { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid transparent; border-radius: 10px; color: #24483c; background: transparent; text-align: left; }
.cloud-expense-fast-choice strong { color: inherit; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.cloud-expense-fast-choice.selected { border-color: #62b89c; background: #f0faf3; box-shadow: none; }
.cloud-expense-fast-choice .category-mark, .expense-choice-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: #edf5ed; font-size: 19px; }
.cloud-expense-fast-choice .category-mark { background: var(--category-color); }
.expense-choice-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
.expense-choice-copy small { color: #778a7d; font-size: 10px; }
.expense-choice-radio { width: 14px; height: 14px; flex: 0 0 14px; margin-left: auto; border: 1.5px solid #b8c8bf; border-radius: 50%; }
.selected .expense-choice-radio { border: 4px solid #087969; background: #fff; }
.cloud-expense-step-navigation { display: flex; width: 100%; align-items: center; gap: 12px; margin-top: 16px; padding-top: 0; }
.cloud-expense-step-navigation [data-fast-progress] { display: none; }
.cloud-expense-step-navigation [data-fast-next] { flex: 1; min-height: 46px; border-radius: 999px; }
.cloud-expense-step-navigation [data-fast-back] { display: none; }
.cloud-expense-new-category { width: 100%; margin-top: 9px; }
.cloud-expense-fast-saved { display: grid; gap: 11px; padding: 18px 0; text-align: center; }
.cloud-expense-recorded { color: #164d40; font: 800 23px 'Manrope',sans-serif; }
.cloud-expense-saved-amount { font: 800 36px 'Manrope',sans-serif; }
.more-presentation .page-heading, .unravel-presentation .page-heading { align-items: center; }
.more-menu-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(240px,.8fr); align-items: start; gap: 26px; }
.more-menu-groups { display: grid; gap: 18px; }
.more-menu-groups .more-group { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.more-menu-groups .more-group h2 { margin-bottom: 9px; color: #85968c; font-size: 10px; }
.more-menu-rows { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.more-menu-rows .more-row { min-height: 80px; padding: 14px; border: 1px solid #eaece3; border-radius: 14px; background: #fffefa; }
.more-menu-rows .more-row > span:nth-child(2) { min-width: 0; }
.more-menu-rows .more-row strong { font-size: 13px; }
.more-menu-rows .more-row small { font-size: 11px; line-height: 1.4; }
.more-menu-rows .more-row > b { color: #819889; font-size: 20px; font-weight: 400; }
.more-row[data-menu-icon="accounts"] .more-row-icon { color: #218ccd; background: #e7f4fe; }
.more-row[data-menu-icon="categories"] .more-row-icon { color: #17a37f; background: #e6f6ec; }
.more-row[data-menu-icon="home"] .more-row-icon { color: #e79035; background: #fff1dc; }
.more-row[data-menu-icon="documents"] .more-row-icon { color: #c27735; background: #fff1e6; }
.more-brand-panel { position: sticky; top: 95px; padding: 20px; border-radius: 22px; background: #eff5eb; text-align: center; }
.more-brand-panel h2 { margin-top: 18px; font-size: 20px; }
.more-brand-panel p { margin: 7px 0 0; color: #6d8476; font-size: 12px; }
.matete-unravel-workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; align-items: stretch; }
.matete-unravel-hero { display: flex; flex-direction: column; padding: 22px; background: transparent; text-align: center; }
.matete-unravel-art { width: min(100%,350px); margin: 0 auto 16px; }
.matete-unravel-copy h2 { font-size: 30px; line-height: 1.15; margin-bottom: 12px; }
.matete-unravel-copy p { max-width: 290px; margin: 0 auto 18px; color: #617a6b; font-size: 13px; line-height: 1.5; }
.matete-unravel-inbox .button { min-height: 46px; width: 100%; }
.unravel-presentation .unravel-source-grid { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 18px; border: 0; background: transparent; box-shadow: none; }
.unravel-presentation .unravel-source-grid > header { padding: 0 0 5px; }
.unravel-presentation .unravel-source-grid > header h2 { font-size: 20px; }
.unravel-presentation .unravel-source-card { display: grid; grid-template-columns: 28px minmax(0,1fr); min-height: 0; gap: 7px; padding: 10px 0; border: 0; background: transparent; }
.unravel-presentation .unravel-source-copy strong { font-size: 14px; }
.unravel-presentation .unravel-source-copy small { font-size: 11px; line-height: 1.4; }
.unravel-presentation .unravel-source-action, .unravel-presentation .unravel-source-card > .button, .unravel-presentation .unravel-source-file-actions { grid-column: 1 / -1; }
.unravel-presentation .unravel-source-action { display: flex; min-height: 44px; justify-content: center; border-radius: 12px; color: #fff; background: #086d5e; font-size: 12px; }
.unravel-presentation .unravel-source-file-actions { display: flex; gap: 8px; }
.unravel-presentation .unravel-source-file-actions > * { flex: 1; }
.unravel-other-sources > summary { padding: 12px 0; color: #56796a; font-size: 12px; cursor: pointer; }
.unravel-other-sources .unravel-source-card { margin-top: 8px; }
.unravel-presentation .unravel-safety-note { margin: 18px 0 0; padding: 14px; border: 0; border-radius: 14px; background: #f0f4ed; font-size: 11px; }
.matete-incoming-summary { grid-template-columns: 72px minmax(0,1fr); min-height: 0; padding: 12px; gap: 12px; border-radius: 14px; }
.matete-incoming-summary .yarn-pile-wrap { width: 72px; max-width: 72px; height: auto; }
.matete-incoming-summary h2 { font-size: 19px; }
.matete-process-screen { display: grid; max-width: 620px; grid-template-columns: minmax(0,1fr); gap: 13px; padding: 20px; margin: 0 auto; background: #fcfbf6; text-align: center; }
.matete-flow-logo { width: 135px; height: auto; margin: 0 auto 16px; }
.matete-document-name { overflow-wrap: anywhere; }
.matete-reading-tasks { display: grid; gap: 12px; margin: 4px 0 0; padding: 12px 8px; list-style: none; color: #648172; text-align: left; font-size: 11px; }
.matete-reading-tasks li { display: flex; align-items: center; gap: 10px; }
.matete-reading-tasks li::before { width: 9px; height: 9px; flex: 0 0 9px; border: 2px solid #178779; border-radius: 50%; content: ''; }
.matete-stage-art { position: relative; width: min(100%,245px); margin: auto; }
.matete-stage-copy h3 { font-size: 23px; }
.matete-stage-copy p { margin: 7px 0; font-size: 12px; color: #648172; }
.matete-stage-progress { height: 7px; margin-top: 18px; overflow: hidden; border-radius: 10px; background: #e1e8df; }
.matete-stage-progress i { display: block; width: 36%; height: 100%; border-radius: inherit; background: #0b9380; animation: matete-stage-loading 1.5s ease-in-out infinite alternate; }
.matete-document-thumbnail { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; padding: 10px; border: 1px solid #e6e9df; border-radius: 13px; background: #fffefa; }
.matete-document-thumbnail .yarn-real-photo { position: static; width: 50px; height: 60px; object-fit: contain; opacity: 1; transform: none; }
.matete-document-thumbnail figcaption { color: #6a8273; font-size: 11px; }
@keyframes matete-stage-loading { to { transform: translateX(178%); } }
.report-view-tabs { display: flex; gap: 5px; width: fit-content; margin: 0 0 15px; padding: 4px; border-radius: 999px; background: #eff3ec; }
.report-view-tabs button { min-height: 35px; padding: 0 16px; border: 0; border-radius: 999px; color: #648072; background: transparent; font-size: 12px; font-weight: 600; }
.report-view-tabs button[aria-pressed="true"] { color: #fff; background: #087968; }
.report-statistics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.report-statistics > .analysis-hero { grid-column: 1 / -1; min-height: 145px; margin: 0; padding: 23px; border: 1px solid #e8ece0; border-radius: 18px; background: #fffefa; }
.report-statistics .analysis-total { font-size: 40px; }
.report-statistics .analysis-hero, .report-statistics .analysis-hero .analysis-total,
.report-statistics .analysis-hero .analysis-limit strong { color: #173f39; }
.report-statistics .analysis-hero .analysis-label { color: #557968; }
.report-statistics .analysis-hero small, .report-statistics .analysis-limit span,
.report-statistics .analysis-limit-foot { color: #6a8272; }
.incoming-review-result { display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: center; gap: 12px; }
.incoming-review-result img { width: 82px; height: 90px; object-fit: contain; }
.incoming-original-details { grid-area: preview; min-width: 0; }
.incoming-original-details > summary, .incoming-edit-details > summary { padding: 12px 0; color: #146354; font-size: 12px; cursor: pointer; }
.incoming-review-result p { margin: 4px 0; color: #557968; }
.incoming-review-result .eyebrow { font-size: 9px; }
.incoming-review-amount { display: block; margin-top: 6px; color: #123c37; font-size: 30px; }
.incoming-detected-details > summary { padding: 10px 0; color: #146354; cursor: pointer; font-weight: 600; }
.incoming-detected-details .incoming-summary-facts { padding: 8px 0; }
#dialog-form[data-compact-incoming-review="true"] .incoming-confirmation-summary { border-radius: 18px; border-color: #e8ece0; background: #fffefa; }
#dialog-form[data-compact-incoming-review="true"] .incoming-review-layout { gap: 12px; }
#dialog-form[data-compact-incoming-review="true"] .incoming-review-quick-fields,
#dialog-form[data-compact-incoming-review="true"] .incoming-review-payment-fields { padding: 15px; border: 1px solid #e8ece0; border-radius: 16px; background: #fffefa; }
@media (max-width:760px) {
  #dialog-form[data-compact-incoming-review="true"] .incoming-confirmation-summary { order: -2; }
  #dialog-form[data-compact-incoming-review="true"] .incoming-original-details { order: -1; }
  #dialog-form[data-compact-incoming-review="true"] .incoming-document-frame { height: 240px; }
}
.report-statistics .analysis-card { margin: 0; border: 1px solid #e8ece0; border-radius: 17px; background: #fffefa; }
.report-statistics .donut-layout { grid-template-columns: minmax(140px,.9fr) minmax(0,1.1fr); gap: 18px; padding: 16px; }
.report-statistics .analysis-legend { grid-template-columns: 1fr; gap: 0; }
.report-statistics .analysis-category { min-height: 52px; grid-template-columns: 32px minmax(0,1fr) auto; gap: 9px; border-bottom: 1px solid #f0f1e9; }
.report-statistics .analysis-category-copy strong { font-size: 12px; }
.report-statistics .analysis-category > b { font: 700 12px 'DM Sans',sans-serif; }
.report-statistics .comparison-grid, .report-statistics .comparison-followups-grid { grid-column: 1 / -1; margin: 0; }
.report-insights { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.report-insight-intro { display: flex; grid-column: 1 / -1; min-height: 175px; align-items: center; justify-content: space-between; gap: 15px; padding: 22px; border-radius: 18px; background: #eaf5eb; }
.report-insight-intro h2 { font-size: 27px; }
.report-insight-intro p { margin: 10px 0 0; color: #698273; font-size: 12px; }
.report-insight-intro .matete-character { width: 190px; }
.report-insights .analysis-card, .report-insight-box { margin: 0; padding: 16px; border: 1px solid #e9ece1; border-radius: 17px; background: #fffefa; }
.report-insights .analysis-card-heading { padding: 0 0 15px; }
.report-insights .analysis-insight { min-height: 78px; padding: 15px 10px; border: 0; border-top: 1px solid #eef1e6; }
.report-insights .analysis-insight > span { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border-radius: 12px; background: #e7f5ec; color: #0c8f74; font-size: 24px; }
.report-insights .analysis-insight strong { font-size: 14px; line-height: 1.45; }
.report-insight-box h2 { margin-bottom: 14px; }
.report-insight-box .comparison-lines { display: grid; gap: 8px; }
.report-insight-box .comparison-lines > div { display: flex; min-height: 44px; justify-content: space-between; gap: 12px; }
.report-presentation .analysis-controls, .report-presentation .period-row { gap: 10px; margin-bottom: 15px; }
@media(max-width:760px) {
  .top-add { min-width: 36px; width: 36px; padding: 0; font-size: 0; border-radius: 50%; }
  .top-add > span { font-size: 22px; }
  .more-presentation .page-heading, .unravel-presentation .page-heading, .report-presentation .page-heading { text-align: left; align-items: stretch; }
  .dialog:has([data-fast-saved]) { display: flex; width: calc(100vw - 20px); height: auto; max-height: calc(100dvh - 20px); flex-direction: column; border: 0; border-radius: 18px; }
  .dialog:has([data-fast-saved]) .dialog-head { padding: 8px 12px 4px; }
  .dialog:has([data-fast-saved]) #dialog-form { display: flex; min-height: 0; flex-direction: column; }
  .dialog:has([data-fast-saved]) .dialog-body { display: flex; min-height: 0; flex-direction: column; overflow-y: auto; padding: 4px 16px 18px; }
  .cloud-expense-fast-primary { min-height: 0; }
  .expense-visual-progress { flex: 0 0 auto; margin: 0 auto 20px; }
  .cloud-expense-fast-field legend { margin-bottom: 14px; font-size: 16px; }
  .cloud-expense-fast-scopes, .cloud-expense-fast-sources, .cloud-expense-fast-categories { gap: 0; }
  .cloud-expense-fast-choice { min-height: 48px; padding: 7px 9px; }
  .cloud-expense-fast-choice strong { font-size: 12px; }
  .cloud-expense-keypad { gap: 6px; margin-top: 6px; }
  .cloud-expense-keypad button { min-height: 44px; }
  .cloud-expense-step-navigation { position: static; padding: 0 0 env(safe-area-inset-bottom); background: #fcfbf6; }
  .cloud-expense-step-navigation [data-fast-next] { min-height: 46px; }
  .dialog:has([data-fast-saved]:not([hidden])) .dialog-body { flex: 1; }
  .more-menu-layout { grid-template-columns: 1fr; gap: 18px; }
  .more-menu-groups { gap: 15px; }
  .more-menu-rows { grid-template-columns: 1fr; gap: 0; border-radius: 14px; background: #fffefa; }
  .more-menu-rows .more-row { min-height: 62px; padding: 10px; border: 0; border-bottom: 1px solid #ecefe5; border-radius: 0; background: transparent; }
  .more-menu-rows .more-row:last-child { border-bottom: 0; }
  .more-menu-rows .more-row strong { font-size: 13px; }
  .more-menu-rows .more-row small { font-size: 10px; }
  .more-brand-panel { position: static; display: flex; min-height: 90px; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; text-align: left; }
  .more-brand-panel .matete-character { width: 100px; }
  .more-brand-panel h2 { margin: 0; font-size: 15px; }
  .more-brand-panel p { display: none; }
  .matete-unravel-workspace { grid-template-columns: 1fr; gap: 14px; }
  .matete-unravel-hero { padding: 6px 12px; }
  .matete-unravel-art { width: 230px; margin-bottom: 10px; }
  .matete-unravel-copy h2 { font-size: 27px; }
  .matete-unravel-copy p { font-size: 12px; }
  .unravel-presentation .page-heading { display: none; }
  .unravel-presentation .unravel-source-grid { gap: 4px; padding: 0 8px; }
  .unravel-presentation .unravel-source-grid > header { display: none; }
  .unravel-presentation .unravel-source-card { min-height: 0; padding: 8px 0; }
  .unravel-presentation .unravel-source-copy small { display: none; }
  .unravel-presentation .unravel-source-action { border-radius: 999px; }
  .matete-process-screen { padding: 16px; gap: 12px; }
  .matete-stage-art { width: 210px; }
  .matete-stage-copy h3 { font-size: 22px; }
  .incoming-review-result { display: flex; flex-direction: column; gap: 7px; text-align: center; }
  .incoming-review-result img { width: 135px; height: 130px; }
  .incoming-review-result .eyebrow { display: none; }
  .incoming-review-result h3 { font-size: 18px; }
  .incoming-review-amount { font-size: 25px; }
  #dialog-form[data-compact-incoming-review="true"] .incoming-confirmation-summary { padding: 12px; border: 0; background: transparent; }
  #dialog-form[data-compact-incoming-review="true"] .incoming-review-quick-fields,
  #dialog-form[data-compact-incoming-review="true"] .incoming-review-payment-fields { padding: 10px; }
  .report-statistics, .report-insights { grid-template-columns: 1fr; gap: 12px; }
  .report-statistics > .analysis-hero { min-height: 138px; padding: 18px; }
  .report-statistics .analysis-total { font-size: 34px; }
  .report-statistics .donut-layout { display: flex; flex-direction: column; gap: 17px; padding: 14px; }
  .report-statistics .analysis-donut-wrap { width: 185px; height: 185px; }
  .report-statistics .analysis-legend { width: 100%; }
  .report-statistics .analysis-category { min-height: 49px; }
  .report-statistics .analysis-category > b { grid-column: auto; font-size: 11px; }
  .report-insight-intro { min-height: 138px; padding: 15px; }
  .report-insight-intro h2 { font-size: 21px; }
  .report-insight-intro .matete-character { width: 108px; }
  .report-insight-intro p { font-size: 10px; line-height: 1.5; }
  .report-insights .analysis-card, .report-insight-box { padding: 14px; }
}
@media(prefers-reduced-motion:reduce) {
  .matete-stage-progress i { animation: none; width: 36%; }
}
@media (max-width:760px) {
  .movements-presentation .page-heading { display: flex; flex-direction: row; align-items: center; gap: 10px; margin-bottom: 12px; }
  .movements-presentation .page-heading .eyebrow,
  .movements-presentation .page-heading .subheading { display: none; }
  .movements-presentation .page-heading h1 { font-size: 21px; }
  .movements-presentation .page-heading .button { min-height: 40px; padding: 8px 12px; font-size: 11px; }
  .movements-presentation .toolbar { position: relative; display: flex; flex-wrap: nowrap; gap: 6px; margin-bottom: 10px; }
  .movements-presentation .search-box { flex: 1; min-width: 0; }
  .movements-presentation .search-box input { min-height: 40px; padding: 8px 12px; border-radius: 999px; font-size: 11px; }
  .movements-presentation .movement-filter-disclosure { flex: 0 0 auto; overflow: visible; align-self: flex-start; width: auto; border-radius: 999px; }
  .movements-presentation .movement-filter-disclosure > summary { min-height: 40px; padding: 0 12px; font-size: 11px; }
  .movements-presentation .movement-filter-content { position: absolute; top: 47px; right: 0; left: 0; z-index: 5; padding: 12px; border: 1px solid #e3e9e2; border-radius: 14px; background: #fffefa; box-shadow: 0 8px 24px rgba(24,62,53,.1); }
  .movements-presentation .movement-filter-content .toolbar { flex-wrap: wrap; margin: 8px 0 0; }
  .movements-presentation .mobile-movement-list { gap: 4px; }
  .movements-presentation .mobile-movement-card { grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px; border-radius: 11px; }
  .mobile-movement-category { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--category-color); font-size: 19px; }
  .mobile-movement-copy { display: grid; min-width: 0; gap: 2px; }
  .mobile-movement-copy time { color: #7c8c83; font-size: 9px; }
  .mobile-movement-copy .mobile-movement-title { font-size: 11px; line-height: 1.2; }
  .mobile-movement-copy .mobile-movement-meta { font-size: 9px; line-height: 1.2; }
  .mobile-movement-side { display: grid; justify-items: end; align-content: center; gap: 3px; }
  .movements-presentation .mobile-movement-amount { font-size: 11px; }
  .movements-presentation .mobile-movement-amount.expense { color: #df4141; }
  .movements-presentation .mobile-movement-card-actions { display: flex; align-items: center; gap: 2px; }
  .movements-presentation .cloud-cashbox-switcher { margin-bottom: 10px; padding: 3px; }
  .movements-presentation .cloud-cashbox-switcher button { min-height: 30px; font-size: 10px; }
}

.dialog:has(.incoming-expense-document) { width: min(1040px, calc(100vw - 28px)); }
.dialog:has(.incoming-expense-document) .dialog-body {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr);
  grid-template-areas: "document progress" "document wizard" "document saved" "document description" "document details";
  align-items: start;
  gap: 12px 22px;
  max-height: min(78dvh, 900px);
}
.incoming-expense-document { grid-area: document; position: sticky; top: 0; padding: 12px; border: 1px solid #e5ebe2; border-radius: 14px; background: #fffefa; }
.incoming-expense-document .incoming-document-heading { align-items: center; }
.incoming-expense-document .incoming-document-heading strong { color: #173e33; font-size: 13px; }
.incoming-expense-document .incoming-document-heading small { flex: 1; font-size: 10px; text-align: right; }
.incoming-expense-document .incoming-document-controls { margin-top: 8px; }
.incoming-expense-document .incoming-document-frame { height: min(62dvh, 700px); touch-action: none; }
.incoming-expense-document .incoming-document-content { position: static; display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); width: 100%; height: 100%; min-height: 0; place-items: center; }
.incoming-expense-document img.incoming-document-preview { min-width: 0; min-height: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.incoming-expense-document object.incoming-document-preview { width: 100%; height: 100%; pointer-events: auto; }
.incoming-expense-document .incoming-document-frame:has(.incoming-pdf-preview) { display: block; overflow: auto; touch-action: auto; }
.incoming-expense-document .incoming-document-frame:has(.incoming-pdf-preview) .incoming-document-content { display: block; min-height: 100%; }
.dialog:has(.incoming-expense-document) .expense-visual-progress { grid-area: progress; }
.dialog:has(.incoming-expense-document) .cloud-expense-fast-primary { grid-area: wizard; }
.dialog:has(.incoming-expense-document) .cloud-expense-fast-saved { grid-area: saved; }
.dialog:has(.incoming-expense-document) [data-fast-description] { grid-area: description; }
.dialog:has(.incoming-expense-document) [data-fast-details] { grid-area: details; }
.incoming-expense-document.is-expanded { position: fixed; inset: 0; z-index: 10001; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; overflow: auto; padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); border: 0; border-radius: 0; background: #fffefa; }
.incoming-expense-document.is-expanded .incoming-document-frame { height: auto; min-height: 0; max-height: none; }
.incoming-expense-document.is-expanded .incoming-document-content { height: 100%; }
.incoming-expense-document.is-expanded .incoming-document-preview { max-height: calc(100dvh - 170px); }
.expense-choice-suggestion { grid-column: 2; color: #167461; font-size: 10px; font-weight: 600; }
.dialog:has([data-bank-email-review]) .dialog-body { display: flex; flex-direction: column; gap: 12px; }
[data-bank-email-review] .cloud-expense-fast-primary { gap: 14px; }
.incoming-bank-review-summary { display: grid; gap: 4px; padding: 17px; border: 1px solid #dfebe5; border-radius: 18px; background: #fffefa; color: #153e36; }
.incoming-bank-review-summary .eyebrow { color: #47766d; font-size: 11px; font-weight: 800; letter-spacing: .07em; }
.incoming-bank-review-summary > strong { font: 800 clamp(28px,7vw,40px) 'Manrope',sans-serif; }
.incoming-bank-review-summary h3 { margin: 0; font-size: 18px; }
.incoming-bank-review-summary small { color: #5d776e; font-size: 12px; }
.incoming-bank-review-summary [data-bank-edit-amount] { justify-self: start; padding: 0; }
[data-bank-email-review] .cloud-expense-fast-field legend { margin: 0 0 6px; text-align: left; }
[data-bank-email-review] .cloud-expense-fast-scopes { grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); }
[data-bank-email-review] .cloud-expense-fast-sources { max-height: none; }
[data-bank-email-review] .incoming-santander-mark { background: #fff2f1; color: #e32122; font-size: 23px; font-weight: 800; }
[data-bank-email-review] .incoming-card-brand { color: #1749b6; font-size: 12px; font-style: italic; }
.incoming-bank-remember { font-size: 12px; }
.incoming-bank-email-original { padding: 12px 16px; border: 1px solid #e0e8e1; border-radius: 14px; background: #fffefa; }
.incoming-bank-email-original summary { color: #206b5d; cursor: pointer; font-weight: 700; }
.incoming-bank-email-original-content { display: grid; gap: 6px; padding-top: 12px; }
.incoming-bank-email-original-content small { color: #687c72; overflow-wrap: anywhere; }
.incoming-bank-email-original-content pre { max-height: 42dvh; margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.5 ui-monospace,SFMono-Regular,monospace; }

/* One presentation for all incoming records, including records already stored. */
.dialog:has([data-review-wizard]) { display: flex; flex-direction: column; width: min(980px, calc(100vw - 24px)); height: min(90dvh, 850px); max-height: 90dvh; overflow: hidden; }
#dialog-form[data-review-wizard] { display: flex; flex: 1; flex-direction: column; height: auto; min-height: 0; }
#dialog-form[data-review-wizard] [hidden] { display: none !important; }
.dialog:has([data-review-wizard]) .dialog-head { position: static; flex: 0 0 auto; padding: 12px 16px; }
.dialog:has([data-review-wizard]) .dialog-head p { display: none; }
#dialog-form[data-review-wizard] .dialog-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: 'wizard original'; align-items: stretch; gap: 16px; flex: 1; min-height: 0; max-height: none; overflow: hidden; padding: 14px 16px; }
.review-wizard { grid-area: wizard; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.review-wizard-summary { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px; border: 1px solid #dfe8e2; border-radius: 14px; background: #fff; }
.review-wizard-summary strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-wizard-summary b { font-size: 19px; color: #086f61; white-space: nowrap; }
.review-wizard-summary small { color: #708077; font-size: 12px; }
.review-wizard-ticks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
.review-wizard-tick { display: grid; grid-template-columns: 18px minmax(0,1fr) 14px; gap: 0 5px; min-width: 0; text-align: left; background: #fff; border: 1px solid #e1e8e2; border-radius: 10px; padding: 5px 7px; cursor: pointer; }
.review-wizard-tick > span:first-child { grid-row: span 2; align-self: center; color: #008a75; font-size: 16px; }
.review-wizard-tick small { color: #76857c; font-size: 10px; }
.review-wizard-tick strong { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.review-wizard-tick > span:last-child { grid-column: 3; grid-row: 1 / span 2; align-self: center; color: #657c70; }
.review-wizard-question { flex: 1; min-height: 0; overflow: hidden; }
.review-wizard-step { display: grid; gap: 8px; min-width: 0; }
.review-wizard-step > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.review-wizard-step h3, .review-wizard-confirmation h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.review-wizard-step > header small { flex-shrink: 0; font-size: 10px; color: #73847b; }
.review-wizard-validation { margin: 0; padding: 8px 10px; border-radius: 8px; background: #fff0e9; color: #923c20; font-size: 13px; font-weight: 600; }
.review-wizard-step fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.review-wizard-step legend, .review-wizard-step .incoming-category-choice > strong, .review-wizard-step .incoming-direction-choice > strong, .review-wizard-step .incoming-payment-choice > strong, .review-wizard-step .incoming-cashbox-choice > strong, .review-wizard-step .cloud-expense-fast-amount > label { display: none; }
.review-wizard-step .cloud-expense-fast-scopes, .review-wizard-step .cloud-expense-fast-categories, .review-wizard-step .cloud-expense-fast-sources, .review-wizard-step .incoming-category-suggestions { display: grid; grid-template-columns: minmax(0,1fr); gap: 6px; margin: 0; }
#dialog-form[data-review-wizard] .cloud-expense-fast-categories, #dialog-form[data-review-wizard] .incoming-category-suggestions, #dialog-form[data-review-wizard] .incoming-category-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; border: 0; background: transparent; }
#dialog-form[data-review-wizard] .cloud-expense-fast-categories .cloud-expense-fast-choice { grid-template-columns: 28px minmax(0,1fr); min-height: 64px; padding: 10px; border: 1px solid #dce7df; border-radius: 16px; background: #fff; box-shadow: 0 2px 5px #173f3708; transition: background 120ms, border-color 120ms, transform 120ms; }
#dialog-form[data-review-wizard] .cloud-expense-fast-categories .cloud-expense-fast-choice:active { transform: scale(.98); }
#dialog-form[data-review-wizard] .cloud-expense-fast-categories .expense-choice-radio { display: none; }
#dialog-form[data-review-wizard] .cloud-expense-fast-categories .selected { border: 2px solid #008674; background: #eaf8f2; box-shadow: 0 3px 10px #00867418; }
#dialog-form[data-review-wizard] .incoming-category-suggestions .button, #dialog-form[data-review-wizard] .incoming-category-results .button { min-height: 60px; white-space: normal; padding: 10px; justify-content: flex-start; border-radius: 16px; }
#dialog-form[data-review-wizard] .cloud-expense-fast-amount { padding: 0; margin: 0; }
#dialog-form[data-review-wizard] .expense-amount-entry { min-height: 82px; margin: 0; }
#dialog-form[data-review-wizard] .expense-amount-entry input { font-size: clamp(40px,10vw,56px); font-weight: 800; line-height: 1.1; height: 82px; max-width: 80%; padding: 0; border: 0; background: transparent; }
#dialog-form[data-review-wizard] .expense-amount-entry > span { font-size: 34px; }
#dialog-form[data-review-wizard] .review-wizard-generic-amount { font-size: 40px; height: 72px; font-weight: 800; color: #173f37; border: 0; background: transparent; padding: 0 4px; }
#dialog-form[data-review-wizard] .cloud-expense-keypad { width: min(100%,360px); gap: 7px; margin: 4px auto; }
#dialog-form[data-review-wizard] .cloud-expense-keypad button { min-height: 44px; font-size: 23px; border-radius: 14px; background: #fff; }
.review-wizard-step { animation: review-question-enter 180ms ease-out; }
@keyframes review-question-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion:reduce) { .review-wizard-step { animation: none; } }
.review-wizard-step .cloud-expense-fast-choice { display: grid; grid-template-columns: 30px minmax(0,1fr) 18px; gap: 2px 8px; min-height: 44px; padding: 8px 10px; align-items: center; text-align: left; }
.review-wizard-step .cloud-expense-fast-choice > strong { grid-column: 2; font-size: 14px; word-break: normal; overflow-wrap: normal; }
.review-wizard-step .expense-choice-suggestion { grid-column: 2; grid-row: 2; font-size: 10px; }
.review-wizard-step .expense-choice-radio { grid-column: 3; grid-row: 1 / span 2; }
.review-wizard-step .category-mark, .review-wizard-step .expense-choice-icon { width: 28px; height: 28px; font-size: 20px; grid-row: 1 / span 2; }
.review-wizard-step .expense-choice-copy { grid-column: 2; min-width: 0; }
.review-wizard-step .expense-choice-copy strong { font-size: 13px; }
.review-wizard-step .expense-choice-copy small { font-size: 10px; }
.review-wizard-step .field-check { margin: 2px 0; padding: 0; font-size: 12px; line-height: 1.3; align-items: flex-start; }
.review-wizard-step .field-check input { flex: 0 0 auto; }
.review-wizard-step .button { min-height: 40px; }
.review-wizard-more { padding: 6px 0; background: none; border: none; color: #087c6c; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.review-wizard-choices-expanded { max-height: 22dvh; overflow: auto; }
.review-wizard-step .incoming-category-other, .review-wizard-optional { font-size: 13px; color: #087c6c; }
.review-wizard-step .incoming-category-results { max-height: 20dvh; overflow: auto; }
.review-wizard-inline-fields { display: grid; grid-template-columns: 1fr 100px; gap: 8px; }
.review-wizard-step .field-input, .review-wizard-step .field-select { min-height: 42px; font-size: 16px; width: 100%; }
.review-wizard-step .incoming-category-creator { margin: 6px 0; }
.review-wizard-step .cloud-expense-new-category { margin: 6px 0; font-size: 12px; min-height: 32px; }
.review-wizard-step .incoming-category-suggestions .button { justify-content: flex-start; }
.review-wizard-confirmation p { font-size: 13px; }
.review-wizard-optional[open] { max-height: 25dvh; overflow-y: auto; }
.review-wizard-extras { margin-top: 12px; font-size: 13px; }
#dialog-form[data-review-wizard] .review-wizard-original { grid-area: original; display: flex; position: static; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; margin: 0; padding: 10px; border: 1px solid #dfe8e2; border-radius: 14px; background: #fff; }
#dialog-form[data-review-wizard] .review-wizard-original .incoming-document-heading { flex: 0 0 auto; }
#dialog-form[data-review-wizard] .review-wizard-original .incoming-document-heading small { display: none; }
#dialog-form[data-review-wizard] .review-wizard-original .incoming-document-controls { margin: 0; padding: 3px 0; flex: 0 0 auto; }
#dialog-form[data-review-wizard] .review-wizard-original .incoming-document-controls .button { min-height: 26px; padding: 3px 8px; font-size: 11px; }
#dialog-form[data-review-wizard] .review-wizard-original .incoming-document-frame { flex: 1; min-height: 0; height: auto; max-height: none; overflow: auto; }
#dialog-form[data-review-wizard] .incoming-document-content { min-width: 0; }
#dialog-form[data-review-wizard] .incoming-document-content:has(pre) { display: block; height: auto; min-height: 100%; }
#dialog-form[data-review-wizard] .incoming-document-frame:has(pre) { display: block; touch-action: pan-y; }
#dialog-form[data-review-wizard] .incoming-extracted-text, #dialog-form[data-review-wizard] .incoming-email-preview { margin: 0; padding: 4px; border: 0; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font: 12px/1.45 sans-serif; }
#dialog-form[data-review-wizard] .incoming-email-preview { display: grid; gap: 3px; }
#dialog-form[data-review-wizard] .incoming-document-preview { max-width: 100%; width: 100%; object-fit: contain; }
#dialog-form[data-review-wizard] .review-wizard-original.is-expanded { position: fixed; inset: 10px; z-index: 1000; background: #fff; height: auto; max-height: none; }
#dialog-form[data-review-wizard] .review-wizard-original:not(.is-expanded) { position: relative; }
#dialog-form[data-review-wizard] .review-wizard-original:not(.is-expanded) .incoming-document-heading { min-height: 28px; padding-right: 70px; }
#dialog-form[data-review-wizard] .review-wizard-original:not(.is-expanded) .incoming-document-controls { position: absolute; top: 7px; right: 9px; }
#dialog-form[data-review-wizard] .review-wizard-original:not(.is-expanded) .incoming-document-controls button:not([data-document-expand]), #dialog-form[data-review-wizard] .review-wizard-original:not(.is-expanded) .incoming-email-preview { display: none; }
#dialog-form[data-review-wizard] .dialog-foot { position: static; flex: 0 0 auto; padding: 10px 16px; }
#dialog-form[data-review-wizard] .dialog-foot > .button { flex: 1; min-height: 44px; font-size: 14px; }
@media (max-width:760px) {
  .dialog:has([data-review-wizard]) { width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  #dialog-form[data-review-wizard] .dialog-body { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; }
  #dialog-form[data-review-wizard] .dialog-head h2 { font-size: 17px; }
  #dialog-form[data-review-wizard] .review-wizard { flex: 1; gap: 8px; }
  #dialog-form[data-review-wizard] .review-wizard-original { flex: 0 0 20%; min-height: 110px; }
  #dialog-form[data-review-wizard] .review-wizard-original .incoming-document-heading strong { font-size: 13px; }
  .review-wizard-step .expense-amount-entry input { font-size: 28px; }
}
@media (max-height:650px) and (max-width:760px) {
  .review-wizard-summary { padding: 6px 9px; }
  .review-wizard-step h3 { font-size: 16px; }
  .review-wizard-step { gap: 4px; }
  .review-wizard-step .cloud-expense-fast-choice { min-height: 36px; padding: 5px 8px; }
  #dialog-form[data-review-wizard] .review-wizard-original { min-height: 90px; flex-basis: 18%; }
}
@media(max-width:760px) {
  .dialog:has(.incoming-expense-document) { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .dialog:has(.incoming-expense-document) .dialog-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100dvh - 130px);
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .incoming-expense-document { position: relative; top: auto; width: 100%; padding: 9px; }
  .incoming-expense-document .incoming-document-heading small { max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .incoming-expense-document .incoming-document-frame { height: 170px; }
  .incoming-expense-document .incoming-document-controls { gap: 4px; }
  .incoming-expense-document .incoming-document-controls .button { min-height: 32px; padding: 0 8px; font-size: 11px; }
  .incoming-expense-document.is-expanded .incoming-document-frame { height: auto; min-height: 0; }
  .incoming-expense-document.is-expanded .incoming-document-preview { max-height: calc(100dvh - 154px); }
  .incoming-expense-document .incoming-pdf-preview { height: 100%; }
  .expense-choice-suggestion { grid-column: 2; }
}
.cloud-account-card { padding: 10px 12px; border-bottom: 1px solid #e9eee9; }
.cloud-account-card:last-child { border-bottom: 0; }
.cloud-account-card .cloud-account-row { padding: 0; border: 0; }
.cloud-account-instruments { display: grid; gap: 5px; margin: 8px 0 0 45px; }
.cloud-account-instruments-heading, .cloud-account-instrument { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cloud-account-instruments-heading { color: #597264; font-size: 11px; }
.cloud-account-instrument { min-height: 38px; padding: 5px 8px; border-radius: 9px; background: #f6f8f5; }
.cloud-account-instrument > span { display: grid; min-width: 0; gap: 1px; }
.cloud-account-instrument strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #304f40; font-size: 11px; }
.cloud-account-instrument small, .cloud-account-no-instruments { color: #87938a; font-size: 10px; }
.cloud-account-instrument.is-inactive { opacity: .65; }
@media(max-width:760px) {
  .cloud-account-card { padding: 9px; }
  .cloud-account-card .cloud-account-row { grid-template-columns: 32px minmax(0,1fr) auto; gap: 6px; }
  .cloud-account-row .cloud-account-balance { grid-column: 2; font-size: 11px; }
  .cloud-account-instruments { margin-left: 38px; }
  .cloud-account-instrument .button-small { padding: 5px 7px; font-size: 10px; }
}


/* Gmail body preview stays beside the interpreted data during review. */
.incoming-email-preview { display:grid; gap:8px; margin:0 0 12px; padding:12px; border:1px solid #dce5df; border-radius:8px; background:#fffefa; }
.incoming-email-preview header { display:grid; gap:4px; min-width:0; }
.incoming-email-preview header strong { color:#244b3a; font-size:13px; overflow-wrap:anywhere; }
.incoming-email-preview header p { margin:0; color:#587263; font-size:11px; line-height:1.45; overflow-wrap:anywhere; }
.incoming-email-preview small { color:#718078; font-size:10px; overflow-wrap:anywhere; }
.incoming-email-body { max-height:min(36vh,420px); margin:0; padding:10px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; color:#26352e; background:#f5f7f2; border-radius:6px; font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; }
@media (max-width:760px) {
  .incoming-email-preview { padding:10px; }
  .incoming-email-body { max-height:32vh; font-size:11px; }
}

/* Keep bank-email evidence ahead of decisions on phones. */
@media (max-width: 760px) {
  #dialog-form[data-incoming-email-review="true"] .incoming-original-details { order: -3; }
}

.category-row .category-emoji { display:grid; width:22px; height:22px; flex:0 0 22px; place-items:center; border-radius:6px; color:#356b58; background:var(--pastel-mint); font-size:15px; }
.category-row .more-row-icon { color:#356b58; background:var(--pastel-mint); }
.category-row:nth-child(5n + 2) :is(.category-emoji,.more-row-icon) { color:#426c97; background:var(--pastel-sky); }
.category-row:nth-child(5n + 3) :is(.category-emoji,.more-row-icon) { color:#985e49; background:var(--pastel-peach); }
.category-row:nth-child(5n + 4) :is(.category-emoji,.more-row-icon) { color:#8b702f; background:var(--pastel-lemon); }
.category-row:nth-child(5n) :is(.category-emoji,.more-row-icon) { color:#705d91; background:var(--pastel-lilac); }
.account-box-heading .home-box-icon { color:#356b58; background:var(--pastel-mint); }
.account-box-section:nth-of-type(5n + 2) .account-box-heading .home-box-icon { color:#426c97; background:var(--pastel-sky); }
.account-box-section:nth-of-type(5n + 3) .account-box-heading .home-box-icon { color:#985e49; background:var(--pastel-peach); }
.account-box-section:nth-of-type(5n + 4) .account-box-heading .home-box-icon { color:#8b702f; background:var(--pastel-lemon); }
.account-box-section:nth-of-type(5n) .account-box-heading .home-box-icon { color:#705d91; background:var(--pastel-lilac); }

.category-catalog-row .category-name { min-width:0; overflow-wrap:anywhere; }
.category-catalog-row .category-sub { flex:0 0 90px; }
.category-actions { display:flex; flex:0 0 auto; align-items:center; gap:6px; }
.category-actions [data-add-subcategory],
.category-actions [data-budget-category] { width:110px; }
@media (max-width:1000px) {
  .category-row.category-catalog-row { display:grid; grid-template-columns:22px 9px minmax(0,1fr); gap:5px 8px; padding:12px; }
  .category-catalog-row .category-emoji { grid-column:1; grid-row:1; }
  .category-catalog-row .category-color { grid-column:2; grid-row:1; }
  .category-catalog-row .category-name { grid-column:3; grid-row:1; }
  .category-catalog-row .category-sub { grid-column:3; grid-row:2; }
  .category-catalog-row .category-actions { grid-column:1 / -1; margin-top:5px; justify-content:flex-end; flex-wrap:wrap; }
  .category-catalog-row.child-category { padding-left:24px; }
  .category-actions .button { min-height:44px; }
  .category-actions .icon-button { min-width:44px; min-height:44px; }
  .category-actions:has([data-add-subcategory]) { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); }
  .category-actions [data-add-subcategory],
  .category-actions [data-budget-category] { grid-column:span 3; width:100%; min-width:0; min-height:44px; }
  .category-actions:has([data-add-subcategory]) .icon-button { grid-column:span 2; width:100%; min-height:44px; }
}

.movement-box-selector { margin-bottom:14px; overflow-x:auto; }
.movement-box-selector button { flex:0 0 auto; }
.movement-box-gallery { display:grid; grid-template-columns:repeat(var(--movement-columns),minmax(0,1fr)); gap:14px; align-items:start; }
.movement-box-column { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:var(--paper); }
.movement-box-heading { display:flex; align-items:center; gap:10px; padding:13px; border-bottom:1px solid var(--line); background:var(--pastel-mint); }
.movement-box-column:nth-child(3n + 2) .movement-box-heading { background:var(--pastel-sky); }
.movement-box-column:nth-child(3n) .movement-box-heading { background:var(--pastel-peach); }
.movement-box-heading .home-box-icon { width:32px; height:32px; flex-basis:32px; font-size:19px; background:rgba(255,255,255,.7); }
.movement-box-heading h2 { margin:0; font-size:15px; }
.movement-box-heading small { display:block; margin-top:4px; color:var(--muted); font-size:10px; }
.movement-box-column .table-wrap { border:0; border-radius:0; }
:is(.movement-box-column,.movement-mobile-overview) table { width:100%; min-width:610px; }
:is(.movement-box-column,.movement-mobile-overview) th,
:is(.movement-box-column,.movement-mobile-overview) td { padding:6px 8px; font-size:10px; }
:is(.movement-box-column,.movement-mobile-overview) th { height:34px; white-space:normal; }
:is(.movement-box-column,.movement-mobile-overview) td { height:auto; max-width:150px; overflow-wrap:anywhere; }
:is(.movement-box-column,.movement-mobile-overview) .movement-category { gap:4px; }
:is(.movement-box-column,.movement-mobile-overview) .movement-detail-cell > span { display:block; }
:is(.movement-box-column,.movement-mobile-overview) .movement-detail-cell small { display:block; margin-top:4px; color:var(--muted); font-size:9px; }
.movement-mobile-table-hint { color:var(--muted); font-size:10px; }
.movement-mobile-overview { min-width:0; }
.movement-mobile-overview .table-wrap { max-width:100%; }
.movement-row-actions,
.movement-row-actions .cloud-movement-actions { display:inline-flex; align-items:center; gap:4px; flex-wrap:nowrap; margin:0; }
.movement-row-actions .icon-button { flex:0 0 auto; }
.movement-gallery-navigation { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.movement-gallery-navigation > span { color:var(--muted); font-size:11px; text-align:center; }
.movement-box-gallery .table-wrap:focus-visible { outline:2px solid var(--teal); outline-offset:-2px; }
.movement-gallery-table-hint { margin:0 0 10px; color:var(--muted); font-size:10px; }
@media (max-width:1000px) {
  .movement-box-gallery { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .movement-gallery-table-hint { display:none; }
  .movement-mobile-overview .icon-button { width:44px; height:44px; min-width:44px; min-height:44px; }
  .movements-presentation .page-heading .home-actions { flex-wrap:wrap; justify-content:flex-end; }
}



/* Ownership choices are identical for historical receipts and bank notices. */
.review-wizard-step .incoming-cashbox-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.review-wizard-step .incoming-cashbox-options button { min-height: 64px; text-align: left; white-space: normal; border-radius: 16px; }
.review-wizard-step .incoming-cashbox-options button[aria-pressed="true"] { background: #effaf3; border-color: #70b7a4; color: #076d60; }
.incoming-source-choice { display: grid; gap: 10px; }

.category-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 12px; margin: 16px 0; }
.category-gallery-tile { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-width: 0; padding: 14px; border: 1px solid #dfe8e2; border-radius: 20px; background: #fffefa; color: #24473e; cursor: pointer; box-shadow: 0 3px 12px #173f3706; }
.category-gallery-tile:hover, .category-gallery-tile:focus-visible { border-color: #50a391; background: #f0faf5; }
.category-gallery-tile:active { transform: scale(.98); }
.category-gallery-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: color-mix(in srgb,var(--category-color) 22%,white); font-size: 32px; }
.category-gallery-tile strong { font-size: 15px; text-align: center; overflow-wrap: anywhere; }
.category-gallery-tile small { font-size: 11px; color: #73847b; text-align: center; }
.category-gallery-tile.inactive { opacity: .7; }
.category-inactive-gallery > summary { cursor: pointer; font-weight: 700; }
.category-action-preview { text-align: center; }.category-action-preview > span { font-size: 52px; }
.category-dialog-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
@media(max-width:760px) { .category-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.category-gallery-tile { border-radius: 18px; } }
.incoming-account-recovery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.incoming-account-recovery p, .incoming-account-recovery [data-review-account-editor] { grid-column:1 / -1; }
.incoming-account-recovery p { margin:0; font-size:12px; line-height:1.35; }
.incoming-account-recovery .button { min-height:36px; font-size:12px; padding:7px; white-space:normal; }
.incoming-account-recovery [data-review-account-editor] { display:grid; gap:6px; }
.review-wizard-question:has(.incoming-account-recovery:not([hidden])) { overflow-y:auto; }
