@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/Manrope-Cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/Manrope-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Literata;
  src: url("/assets/fonts/Literata-Cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Literata;
  src: url("/assets/fonts/Literata-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #6e7975;
  --line: #dde5e1;
  --surface: #ffffff;
  --canvas: #f4f6f3;
  --forest: #173f3a;
  --forest-2: #21574f;
  --mint: #c9eee2;
  --mint-soft: #e9f7f1;
  --amber: #e5a843;
  --danger: #b54747;
  --shadow: 0 18px 60px rgba(28, 55, 49, 0.12);
  --radius: 22px;
  --page-gutter: clamp(18px, 2vw, 36px);
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  font-family: var(--font-ui);
  font-synthesis: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf5f1;
  --muted: #9dacA7;
  --line: #34413d;
  --surface: #19211f;
  --canvas: #111715;
  --forest: #79c9ae;
  --forest-2: #8ed6bd;
  --mint: #285044;
  --mint-soft: #203a33;
  --amber: #e6b968;
  --danger: #ef9188;
  --shadow: 0 18px 60px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }

.hidden { display: none !important; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.brand--light { color: white; }

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: var(--forest);
  background: var(--mint);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--forest-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow--light { color: var(--mint); }

.auth-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(440px, 46%) 1fr;
  background: var(--surface);
}

.auth-story {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100vh;
  padding: 46px clamp(42px, 6vw, 90px);
  flex-direction: column;
  justify-content: space-between;
  color: white;
  background:
    radial-gradient(circle at 15% 88%, rgba(182, 237, 216, .19), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(255, 219, 153, .12), transparent 26%),
    linear-gradient(145deg, #102f2b 0%, #173f3a 58%, #23534d 100%);
}

.auth-story::after {
  position: absolute;
  right: -180px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(255,255,255,.025), 0 0 0 130px rgba(255,255,255,.018);
  content: "";
}

.auth-story__content { position: relative; z-index: 1; max-width: 570px; }
.auth-story h1 {
  max-width: 620px;
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 5vw, 75px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.auth-story__content > p { max-width: 520px; margin: 0; color: #d6e5df; font-size: 17px; }

.story-points { display: grid; max-width: 540px; margin-top: 48px; gap: 0; }
.story-points > div { display: grid; padding: 18px 0; grid-template-columns: 46px 1fr; border-top: 1px solid rgba(255,255,255,.13); }
.story-points span { color: var(--mint); font-size: 12px; font-weight: 700; }
.story-points p { margin: 0; color: #f3f8f6; }
.auth-story__foot { position: relative; z-index: 1; margin: 0; color: #9eb8af; font-size: 12px; letter-spacing: .04em; }

.auth-panel { display: grid; min-height: 100vh; padding: 40px; place-items: center; }
.auth-card { width: min(420px, 100%); }
.mobile-brand { display: none; margin-bottom: 54px; }
.auth-heading { margin-bottom: 32px; }
.auth-heading h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 37px; font-weight: 500; letter-spacing: -.035em; }
.auth-heading p { margin: 0; color: var(--muted); }

.field { display: grid; margin-bottom: 18px; gap: 7px; }
.field > span { color: #45524e; font-size: 13px; font-weight: 700; }
.field > small { color: var(--muted); font-size: 10px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #ccd6d1;
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(33, 87, 79, .1);
}
.field input::placeholder, .field textarea::placeholder { color: #a5afab; }
.field input[readonly] { color: var(--forest); background: #f3f7f5; font-weight: 800; }

.button {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 17px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 750;
  transition: transform .16s, background .16s, box-shadow .16s;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button--primary { color: #fff; background: var(--forest); box-shadow: 0 7px 18px rgba(23,63,58,.15); }
.button--primary:hover:not(:disabled) { background: #21544d; }
.button--soft { color: var(--forest); background: var(--mint-soft); }
.button--ghost { border: 1px solid var(--line); background: white; }
.button--danger { color: #9d493d; background: #faeae7; }
.button--wide { width: 100%; min-height: 52px; justify-content: space-between; padding-inline: 20px; }

.text-button { padding: 0; border: 0; color: var(--forest-2); background: transparent; font-size: 13px; font-weight: 800; }
.text-button:hover { text-decoration: underline; }
.auth-switch { margin: 26px 0 0; color: var(--muted); text-align: center; }
.auth-switch .text-button { margin-left: 5px; }
.form-error { margin: -6px 0 14px; color: var(--danger); font-size: 13px; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: 254px;
  padding: 27px 18px 20px;
  flex-direction: column;
  overflow-y: auto;
  color: #d8e5e0;
  background: var(--forest);
}
.sidebar__top { display: flex; padding: 0 8px 29px; align-items: center; justify-content: space-between; }
.sidebar-close { display: none; color: white; }
.navigation { display: grid; gap: 4px; }
.nav-item {
  display: flex;
  width: 100%;
  padding: 11px 12px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  color: #c8d8d2;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.nav-item:hover { color: white; background: rgba(255,255,255,.07); }
.nav-item.active { color: white; background: rgba(201,238,226,.14); }
.nav-icon { display: inline-grid; width: 20px; height: 20px; place-items: center; color: #a9c7bd; font-size: 17px; }
.sidebar-section { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-label { display: block; margin: 0 12px 9px; color: #789c91; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.sidebar-profile { display: grid; margin-top: auto; padding: 12px 0 0; grid-template-columns: minmax(0,1fr) 30px; align-items: center; gap: 6px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-profile__identity { display: grid; min-width: 0; padding: 6px 8px; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px; border: 0; border-radius: 12px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.sidebar-profile__identity:hover, .sidebar-profile__identity:focus-visible { outline: 0; background: rgba(255,255,255,.08); }
.avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--forest); background: var(--mint); font-weight: 800; text-transform: uppercase; }
.sidebar-profile__text { display: grid; min-width: 0; }
.sidebar-profile__text strong, .sidebar-profile__text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile__text strong { color: white; font-size: 13px; }
.sidebar-profile__text span { color: #8fb0a6; font-size: 10px; }
.icon-button { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 0; border-radius: 9px; background: transparent; font-size: 20px; }
.icon-button:hover { background: rgba(0,0,0,.05); }
.icon-button--light { color: #9cb7af; }
.icon-button--light:hover { color: white; background: rgba(255,255,255,.08); }

.theme-toggle {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  font-size: 18px;
}
.theme-toggle:hover { border-color: var(--forest-2); }
.theme-toggle--auth { position: absolute; top: 24px; right: 24px; }

.workspace-main { min-height: 100vh; margin-left: 254px; }
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 82px;
  padding: 14px var(--page-gutter);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(244,246,243,.92);
  backdrop-filter: blur(14px);
}
.menu-button { display: none; }
.workspace-picker { display: flex; align-items: center; gap: 11px; }
.workspace-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #42a988; box-shadow: 0 0 0 5px rgba(66,169,136,.12); }
.workspace-picker > div { display: grid; }
.workspace-picker__label { margin-bottom: -1px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.workspace-picker select { max-width: 290px; padding: 0 23px 0 0; border: 0; outline: none; color: var(--ink); background: transparent; font-weight: 800; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.limited-account-banner {
  display: flex;
  margin: 18px var(--page-gutter) 0;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #b7dace;
  border-radius: 14px;
  background: #edf8f4;
}
.limited-account-banner > div { display: grid; gap: 3px; }
.limited-account-banner strong { color: var(--forest); font-size: 13px; }
.limited-account-banner span { color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }

.page { width: 100%; max-width: none; margin: 0; padding: 42px var(--page-gutter) 70px; }
.page-heading { display: flex; margin-bottom: 31px; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-heading h1 { margin: 0 0 5px; font-family: Georgia, serif; font-size: clamp(31px,3vw,43px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.page-heading p { margin: 0; color: var(--muted); }
.role-badge, .status-pill { display: inline-flex; padding: 6px 10px; border-radius: 99px; color: var(--forest-2); background: var(--mint-soft); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.summary-grid { display: grid; margin-bottom: 22px; grid-template-columns: 1.45fr 1fr 1fr; gap: 18px; }
.summary-card { position: relative; min-height: 195px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.summary-card > span { display: block; margin: 20px 0 7px; color: var(--muted); font-size: 12px; }
.summary-card > strong { display: block; font-family: Georgia, serif; font-size: 32px; font-weight: 500; letter-spacing: -.03em; }
.summary-card small { color: #9aa49f; }
.summary-card--hero { color: white; border-color: var(--forest); background: linear-gradient(135deg,#173f3a,#23574f); }
.summary-card--hero strong { margin-top: 26px; font-size: 39px; }
.summary-card--hero p { margin: 4px 0 0; color: #a8c6bc; font-size: 12px; }
.summary-card__head { display: flex; align-items: center; justify-content: space-between; color: #dceae5; font-size: 12px; }
.summary-card--hero .status-pill { color: #d9f4ea; background: rgba(201,238,226,.13); }
.summary-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; font-weight: 800; }
.summary-icon--income { color: #1f755f; background: #e1f5ed; }
.summary-icon--expense { color: #a75442; background: #f8e9e5; }
.mini-chart { position: absolute; right: 24px; bottom: 22px; left: 58%; display: flex; height: 42px; align-items: flex-end; gap: 5px; opacity: .6; }
.mini-chart i { flex: 1; border-radius: 3px 3px 0 0; background: #8acdb8; }
.mini-chart i:nth-child(1) { height: 25%; }.mini-chart i:nth-child(2) { height: 50%; }.mini-chart i:nth-child(3) { height: 38%; }.mini-chart i:nth-child(4) { height: 78%; }.mini-chart i:nth-child(5) { height: 62%; }.mini-chart i:nth-child(6) { height: 90%; }.mini-chart i:nth-child(7) { height: 72%; }

.content-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,.8fr); gap: 18px; }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.progress-text { color: var(--muted); font-size: 11px; font-weight: 700; }
.progress { height: 5px; margin: 21px 0 9px; overflow: hidden; border-radius: 99px; background: #edf1ee; }
.progress i { display: block; width: 25%; height: 100%; border-radius: inherit; background: #53aa8d; transition: width .4s; }
.checklist-item { display: grid; min-height: 76px; padding: 17px 0; grid-template-columns: 31px 1fr auto; align-items: center; gap: 13px; border-bottom: 1px solid #edf0ee; }
.checklist-item:last-child { padding-bottom: 0; border-bottom: 0; }
.checklist-item > span { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #d6dfda; border-radius: 50%; color: #86928e; font-size: 11px; font-weight: 800; }
.checklist-item.complete > span { color: #fff; border-color: #54a98e; background: #54a98e; }
.checklist-item strong { display: block; font-size: 13px; }
.checklist-item p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.checklist-item em { color: #a0aaa6; font-size: 10px; font-style: normal; font-weight: 700; text-transform: uppercase; }

.member-stack { display: grid; margin-top: 20px; }
.member-row { display: grid; padding: 15px 0; grid-template-columns: minmax(0,1fr) 100px 75px; align-items: center; gap: 16px; border-bottom: 1px solid #edf0ee; }
.member-row:last-child { border-bottom: 0; }
.member-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
.member-identity .avatar { width: 36px; height: 36px; flex: 0 0 auto; color: var(--forest); background: #e6f2ed; font-size: 12px; }
.member-identity div { display: grid; min-width: 0; }
.member-identity strong, .member-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-identity strong { font-size: 13px; }
.member-identity span { color: var(--muted); font-size: 10px; }
.member-role { color: #53605c; font-size: 11px; font-weight: 750; text-transform: capitalize; }
.member-status { color: #298366; font-size: 10px; font-weight: 750; }
.member-table-head { display: grid; padding: 0 0 13px 47px; grid-template-columns: minmax(0,1fr) 100px 75px; gap: 16px; border-bottom: 1px solid var(--line); color: #8b9692; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.role-help { display: grid; margin-top: 18px; grid-template-columns: repeat(4,1fr); gap: 10px; }
.role-help article { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.55); }
.role-help strong { font-size: 12px; }
.role-help p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

.account-strip { display: grid; margin-bottom: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
.account-card { position: relative; min-width: 0; min-height: 126px; padding: 19px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.account-card[data-block-key] { cursor: grab; touch-action: pan-y; transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.account-card[data-block-key]:active { cursor: grabbing; }
.account-card.is-dragging { opacity: .38; transform: scale(.98); }
.account-card.is-drag-over { border-color: #4fa889; box-shadow: 0 0 0 3px rgba(79,168,137,.14); }
.account-card::after { position: absolute; right: -25px; bottom: -35px; width: 100px; height: 100px; border-radius: 50%; background: var(--mint-soft); content: ""; }
.account-card__head { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.account-card__head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-card__head span:last-child { flex: 0 0 auto; }
.account-card strong { position: relative; z-index: 1; display: block; margin-top: 22px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.account-card > strong { font-family: var(--font-ui); font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.account-card small { position: relative; z-index: 1; color: var(--muted); }
.account-card > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-balance-edit { position: relative; z-index: 2; margin-top: 9px; padding: 0; border: 0; color: var(--forest-2); background: transparent; font-size: 10px; font-weight: 800; }
.account-balance-edit:hover { text-decoration: underline; }
.savings-goal { position: relative; z-index: 2; display: grid; margin-top: 15px; padding-top: 13px; gap: 7px; border-top: 1px solid var(--line); }
.savings-goal > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.account-card .savings-goal strong { margin: 0; overflow: hidden; font-family: inherit; font-size: 13px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.savings-goal > div:first-child span, .savings-goal > span { color: var(--muted); font-size: 11px; }
.savings-goal-track { height: 6px; overflow: hidden; border-radius: 99px; background: #e4eae7; }
.savings-goal-track span { display: block; height: 100%; border-radius: inherit; background: #4ba585; }
.account-card .savings-goal > small { overflow: hidden; color: #65736e; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.savings-goal > div:last-child { display: flex; flex-wrap: wrap; gap: 9px; }
.savings-goal-action { padding: 0; border: 0; color: #68736f; background: transparent; font-size: 9px; font-weight: 800; }
.savings-goal-action:hover { text-decoration: underline; }
.savings-goal-action--primary { color: var(--forest-2); }
.savings-goal-action:disabled { opacity: .45; cursor: default; text-decoration: none; }
.savings-interest { display: flex; padding: 8px 10px; align-items: center; justify-content: space-between; gap: 10px; border-radius: 9px; background: #f0f7f4; color: #60736c; font-size: 10px; }
.savings-interest strong { margin: 0; color: var(--forest); font-family: inherit; font-size: 11px; font-weight: 850; white-space: nowrap; }
.savings-accounts-heading { display: flex; margin: 8px 0 5px; align-items: flex-end; justify-content: space-between; gap: 18px; }
.savings-accounts-heading > div { display: grid; gap: 4px; }
.savings-accounts-heading small { color: var(--muted); font-size: 10px; }
.savings-accounts-heading > strong { color: var(--forest); font-family: Georgia, serif; font-size: 20px; font-weight: 500; white-space: nowrap; }
.savings-account-options { display: grid; gap: 9px; }
.savings-account-option { display: grid; padding: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.savings-account-option__choice { display: flex; min-width: 0; padding-bottom: 2px; grid-column: 1 / -1; align-items: center; gap: 10px; cursor: pointer; }
.savings-account-option__choice input { width: 17px; height: 17px; accent-color: var(--forest-2); }
.savings-account-option__choice div { display: grid; min-width: 0; }
.savings-account-option__choice strong { overflow: hidden; color: #26342f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.savings-account-option__choice small { color: var(--muted); font-size: 10px; }
.savings-account-option .field { min-width: 0; margin-bottom: 0; }
.savings-account-option .field span { font-size: 9px; }
.savings-account-option.is-disabled { opacity: .55; }
.savings-account-option__actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.savings-account-option__actions button { padding: 6px 9px; border: 0; border-radius: 8px; color: var(--forest-2); background: var(--mint-soft); font-size: 9px; font-weight: 800; }
.savings-account-option__actions button:disabled { opacity: .45; cursor: default; }
.account-card--goal { display: flex; min-height: 330px; flex-direction: column; }
.account-block-card { display: flex; min-height: 330px; flex-direction: column; cursor: pointer; }
.account-block-card:hover, .account-card--goal:hover { border-color: #91bbae; box-shadow: 0 10px 28px rgba(25,71,61,.09); transform: translateY(-1px); }
.account-block-preview { position: relative; z-index: 2; display: grid; margin-top: 14px; gap: 6px; }
.account-block-preview > div { display: flex; min-width: 0; padding: 7px 9px; align-items: center; justify-content: space-between; gap: 10px; border-radius: 9px; background: #f3f7f5; }
.account-block-preview span { overflow: hidden; color: #53615c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-block-preview b { color: var(--forest); font-size: 12px; white-space: nowrap; }
.account-block-more { color: var(--muted); font-size: 11px; font-weight: 800; }
.accounts-block-list { display: grid; gap: 9px; }
.accounts-block-row { display: grid; padding: 13px 14px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.accounts-block-row > div:first-child { display: grid; min-width: 0; }
.accounts-block-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.accounts-block-row small { color: var(--muted); font-size: 10px; }
.accounts-block-row > div:last-child { display: grid; justify-items: end; gap: 5px; }
.accounts-block-row b { color: var(--forest); font-size: 13px; white-space: nowrap; }
.accounts-block-row button { padding: 0; border: 0; color: var(--forest-2); background: transparent; font-size: 9px; font-weight: 800; }
.account-block-placement { max-width: 190px; padding: 6px 24px 6px 8px; border: 1px solid #d8e3df; border-radius: 8px; color: var(--forest); background: white; font-size: 9px; font-weight: 750; }
.all-accounts-list { display: grid; gap: 9px; margin: 15px 0; }
.all-account-row { display: grid; padding: 12px 14px; grid-template-columns: minmax(170px, 1.2fr) minmax(130px, .8fr) auto; align-items: center; gap: 14px; border: 1px solid #dbe4e0; border-radius: 12px; background: #fafcfb; }
.all-account-row__identity { display: grid; min-width: 0; gap: 3px; }
.all-account-row__identity strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.all-account-row__identity small, .all-account-row__balance small { color: var(--muted); font-size: 9px; }
.all-account-row__balance { display: grid; gap: 3px; }
.all-account-row__balance b { font-size: 12px; }
.all-account-row__actions { display: flex; max-width: 330px; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.all-account-row__actions button { padding: 6px 8px; border: 1px solid #d8e3df; border-radius: 8px; color: var(--forest); background: white; font-size: 9px; font-weight: 800; cursor: pointer; }
.all-account-row__actions button:hover { border-color: #9fc5b8; background: var(--mint-soft); }
.all-account-row__actions button.is-danger { color: #9a4f46; }
.all-account-row__actions button:disabled { opacity: .45; cursor: not-allowed; }
.all-account-row__actions .account-block-placement { align-self: center; }
.credit-account-fields { display: grid; margin: 4px 0 15px; padding: 15px; gap: 12px; border: 1px solid #cfe0da; border-radius: 14px; background: #f4faf7; }
.credit-account-fields > div:first-child { display: grid; gap: 3px; }
.credit-account-fields > div:first-child > strong { font-size: 14px; }
.credit-account-fields > div:first-child > small { color: var(--muted); font-size: 10px; }
.credit-account-preview { display: grid; padding: 11px 12px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; border-radius: 11px; background: white; }
.credit-account-preview span { display: grid; gap: 2px; color: var(--muted); font-size: 9px; }
.credit-account-preview b { color: var(--forest); font-size: 12px; }
.credit-account-preview .is-warning b { color: #a86232; }
.account-interest-fields {
  display: grid;
  margin: 4px 0 15px;
  padding: 15px;
  gap: 14px;
  border: 1px solid #cfe0da;
  border-radius: 14px;
  background: #f7fbf9;
}
.account-interest-toggle {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}
.account-interest-toggle input { position: absolute; opacity: 0; }
.account-interest-toggle > span {
  position: relative;
  width: 36px;
  height: 21px;
  border-radius: 99px;
  background: #d6dfdb;
  transition: background .18s;
}
.account-interest-toggle > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.16);
  content: "";
  transition: transform .18s;
}
.account-interest-toggle input:checked + span { background: #54a98e; }
.account-interest-toggle input:checked + span::after {
  transform: translateX(15px);
}
.account-interest-toggle > div { display: grid; gap: 2px; }
.account-interest-toggle strong { font-size: 13px; }
.account-interest-toggle small { color: var(--muted); font-size: 10px; }
#account-interest-fields {
  padding-top: 14px;
  border-top: 1px solid #dbe8e3;
}
.account-interest-preview {
  display: grid;
  margin-bottom: 12px;
  padding: 11px 12px;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  border-radius: 11px;
  background: #fff;
}
.account-interest-preview span { display: grid; gap: 2px; }
.account-interest-preview small { color: var(--muted); font-size: 9px; }
.account-interest-preview b {
  color: var(--forest);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.credit-account-meta { display: block; margin-top: 3px; color: #6a7773; font-size: 9px; font-weight: 650; }
.block-choice-list { display: grid; gap: 10px; }
.block-choice-list > button { display: grid; width: 100%; padding: 15px; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfb; text-align: left; }
.block-choice-list > button:hover { border-color: #91bbae; background: var(--mint-soft); }
.block-choice-list > button:disabled { opacity: .55; cursor: not-allowed; }
.block-choice-list > button:disabled:hover { border-color: var(--line); background: #fbfcfb; }
.block-choice-list > button > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--forest); background: var(--mint); font-size: 18px; }
.block-choice-list > button > div { display: grid; }
.block-choice-list strong { font-size: 13px; }
.block-choice-list small { color: var(--muted); font-size: 10px; }
.salary-linked-transfer { margin-bottom: 15px; padding: 14px; border-radius: 13px; background: var(--mint-soft); }
.salary-linked-transfer .field:last-of-type { margin-bottom: 8px; }
.savings-goal--group { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 7px; }
.goal-forecast { display: grid; min-width: 0; min-height: 0; padding: 8px; gap: 4px; border-radius: 11px; background: #f5f8f6; }
.goal-forecast > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.goal-forecast > div:first-child span { color: #65736e; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.account-card .goal-forecast > div:first-child strong { margin: 0; font-family: inherit; font-size: 10px; font-weight: 850; white-space: nowrap; }
.account-card .goal-forecast > small { color: #6b7874; font-size: 9px; line-height: 1.35; }
.account-card--goal .goal-forecast > small { display: none; }
.projection-chart { display: flex !important; height: 42px; padding-top: 4px; align-items: flex-end !important; gap: 4px !important; border-bottom: 1px solid #d9e3de; }
.projection-chart i { min-width: 4px; flex: 1; border-radius: 3px 3px 0 0; background: #5aae91; }
.projection-chart--expense i { background: #cf7e6d; }
.projection-chart--goal { height: 34px; }
.goal-projection { display: grid; min-width: 0; gap: 4px; }
.goal-projection__legend { display: flex; align-items: center; justify-content: space-between; color: #86918d; font-size: 8px; }
.goal-projection__scroll { min-width: 0; padding-bottom: 4px; overflow-x: auto; scrollbar-color: #a9c8bd transparent; scrollbar-width: thin; }
.goal-projection__chart { display: flex; width: max-content; min-width: 100%; height: 62px; align-items: end; gap: 4px; }
.goal-projection__column { display: grid; width: 52px; min-width: 52px; justify-items: center; grid-template-rows: 10px 30px 10px 10px; gap: 1px; }
.account-card .goal-projection__column > b { overflow: hidden; max-width: 50px; color: #2b8066; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.goal-projection__column > div { display: flex; width: 100%; align-items: flex-end; justify-content: center; border-bottom: 1px solid #d6e1dc; }
.goal-projection__column i { display: block; width: 24px; min-height: 3px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #72bea4, #4b9e82); }
.goal-projection__column > span { color: #5f6d68; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.goal-projection__column > em { max-width: 50px; overflow: hidden; color: #26342f; font-size: 8px; font-style: normal; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.savings-members { display: grid !important; margin-top: 2px; gap: 6px !important; }
.savings-members--compact { gap: 5px !important; }
.savings-member { display: grid !important; padding: 9px 10px; grid-template-columns: minmax(0,1fr) auto; align-items: center !important; gap: 12px !important; border-radius: 10px; background: #f3f7f5; }
.savings-member--compact { min-height: 31px; padding: 6px 8px; }
.account-card .savings-member--compact > strong { margin: 0; overflow: hidden; font-family: inherit; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.savings-member--compact > b { font-size: 12px; }
.account-card .savings-members-more { padding-left: 3px; color: var(--muted); font-size: 10px; font-weight: 750; }
.savings-member > div:first-child { display: grid; min-width: 0; }
.account-card .savings-member > div:first-child strong { overflow: hidden; color: #26342f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-card .savings-member > div:first-child small { color: #6b7874; font-size: 9px; line-height: 1.35; }
.savings-member > div:last-child { display: grid !important; justify-items: end; gap: 3px !important; }
.savings-member b { color: var(--forest); font-size: 11px; white-space: nowrap; }
.savings-member > div:last-child > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 7px; }
.savings-member button { padding: 0; border: 0; color: var(--forest-2); background: transparent; font-size: 9px; font-weight: 800; }
.savings-member button:hover { text-decoration: underline; }
.savings-member button:disabled { opacity: .45; text-decoration: none; }
.savings-goal-modal-forecast { display: grid; margin: 4px 0 22px; padding: 17px; gap: 10px; border: 1px solid #d8e5e0; border-radius: 14px; background: #f5f8f6; }
.savings-goal-modal-forecast > div:first-child { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.savings-goal-modal-forecast > div:first-child > div { display: grid; gap: 2px; }
.savings-goal-modal-forecast > div:first-child > div:last-child { justify-items: end; text-align: right; }
.savings-goal-modal-forecast > div:first-child span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.savings-goal-modal-forecast > div:first-child strong { font-size: 13px; }
.savings-goal-modal-forecast > small { color: var(--muted); font-size: 9px; }
.goal-projection--modal .goal-projection__legend { font-size: 9px; }
.goal-projection--modal .goal-projection__chart { height: 145px; gap: 7px; }
.goal-projection--modal .goal-projection__column { width: 68px; min-width: 68px; grid-template-rows: 17px 88px 17px 17px; }
.goal-projection--modal .goal-projection__column > b { overflow: hidden; max-width: 66px; color: #2b8066; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.goal-projection--modal .goal-projection__column i { width: 34px; }
.goal-projection--modal .goal-projection__column > span, .goal-projection--modal .goal-projection__column > em { max-width: 66px; font-size: 9px; }
.debt-block-card { display: flex; min-height: 330px; flex-direction: column; cursor: pointer; }
.debt-block-card:hover { border-color: #91bbae; box-shadow: 0 10px 28px rgba(25,71,61,.09); transform: translateY(-1px); }
.debt-card-totals { position: relative; z-index: 2; display: grid; margin-top: 12px; grid-template-columns: 1fr 1fr; gap: 7px; }
.debt-card-totals span { display: grid; padding: 7px 8px; gap: 2px; border-radius: 9px; color: var(--muted); background: #f4f7f5; font-size: 11px; }
.debt-card-totals b { color: #26342f; font-size: 12px; }
.debt-card-preview { position: relative; z-index: 2; display: grid; margin-top: 9px; gap: 7px; }
.debt-card-preview > div { display: grid; gap: 4px; }
.debt-card-preview > div > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.debt-card-preview span { overflow: hidden; color: #53615c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.debt-card-preview b { color: var(--forest); font-size: 11px; white-space: nowrap; }
.debt-card-preview > div > div:nth-child(2) { height: 4px; overflow: hidden; border-radius: 99px; background: #e2e8e5; }
.debt-card-preview > div > div:nth-child(2) i { display: block; height: 100%; border-radius: inherit; background: #5aae91; }
.account-card .debt-card-preview small { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.debt-early-line { color: #277c62 !important; font-weight: 750; }
.debt-payment-dates { width: 100%; color: #63514d !important; font-weight: 700; }
.debt-schedule-summary { width: 100%; color: #246d58 !important; font-weight: 800; }
.debt-dialog-totals { display: grid; margin: 16px 0; grid-template-columns: 1fr 1fr; gap: 10px; }
.debt-dialog-totals article { padding: 14px; border-radius: 12px; background: var(--mint-soft); }
.debt-dialog-totals span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; }
.debt-dialog-totals strong { display: block; margin-top: 4px; color: var(--forest); font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.debt-dialog-list { display: grid; gap: 9px; }
.debt-dialog-row { display: grid; width: 100%; padding: 13px 14px; gap: 8px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfb; text-align: left; }
.debt-dialog-row:not(:disabled):hover { border-color: #91bbae; background: #f5faf7; }
.debt-dialog-row:disabled { color: inherit; cursor: default; }
.debt-dialog-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.debt-dialog-row > div:first-child > div { display: grid; min-width: 0; }
.debt-dialog-row span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.debt-dialog-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.debt-dialog-row b { color: var(--forest); font-size: 13px; white-space: nowrap; }
.debt-dialog-chart .projection-chart { height: 48px; }
.credit-debt-detail { display: grid; padding: 10px 11px; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; border-radius: 10px; background: #eef7f3; }
.credit-debt-detail > span { display: grid; min-width: 0; gap: 3px; text-transform: none; }
.credit-debt-detail > span > small { font-size: 8px; }
.credit-debt-detail > span > b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: normal; }
.debt-dialog-row .credit-debt-hint { color: var(--forest-2); font-weight: 800; }
.debt-payment-chart { display: grid; min-width: 0; gap: 4px; }
.debt-payment-chart__legend { display: flex; flex-wrap: wrap; gap: 5px 14px; color: var(--muted); font-size: 8px; }
.debt-payment-chart__legend span { display: flex; align-items: center; gap: 4px; text-transform: none; }
.debt-payment-chart__legend i { width: 7px; height: 7px; border-radius: 2px; background: #d49a72; }
.debt-payment-chart__legend span:nth-child(2) i { background: #e8c86e; }
.debt-payment-chart__legend span:last-child i { background: #a44f45; }
.debt-payment-chart__scroll { min-width: 0; padding-bottom: 3px; overflow-x: auto; scrollbar-color: #c8aaa3 transparent; scrollbar-width: thin; }
.debt-payment-chart__columns { display: flex; width: max-content; min-width: 100%; height: 96px; align-items: end; gap: 5px; }
.debt-payment-chart__column { display: grid; width: 59px; min-width: 59px; justify-items: center; grid-template-rows: 13px 55px 12px 12px; gap: 1px; }
.debt-payment-chart__column > b { max-width: 57px; overflow: hidden; color: #7b3833; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.debt-payment-chart__column > div { display: flex; width: 100%; align-items: flex-end; justify-content: center; border-bottom: 1px solid #e2d3cf; }
.debt-payment-chart__column > div > div { display: flex; width: 28px; min-height: 4px; overflow: hidden; flex-direction: column; justify-content: flex-end; border-radius: 4px 4px 0 0; }
.debt-payment-chart__column i { display: block; width: 100%; }
.debt-payment-chart__regular { background: #d49a72; }
.debt-payment-chart__interest { background: #e8c86e; }
.debt-payment-chart__early { background: #a44f45; }
.debt-payment-chart__column > span { color: #6c5a56; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.debt-payment-chart__column > em { max-width: 57px; overflow: hidden; color: #3c302d; font-size: 8px; font-style: normal; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.debt-dialog-row > div:last-child { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 14px; }
.debt-dialog-row small { color: var(--muted); font-size: 9px; }
.debt-dialog-empty { display: grid; padding: 28px; justify-items: center; gap: 5px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); text-align: center; }
.debt-dialog-empty strong { color: #34413c; font-size: 13px; }
.debt-dialog-empty span { font-size: 10px; }
.debt-plan-picker { margin-bottom: 16px; padding: 16px; border: 1px solid #d8e4df; border-radius: 14px; background: #f7f9f8; }
.debt-plan-picker__heading { display: flex; margin-bottom: 12px; align-items: flex-start; justify-content: space-between; gap: 16px; }
.debt-plan-picker__heading > div { display: grid; gap: 3px; }
.debt-plan-picker__heading strong { color: #273630; font-size: 13px; }
.debt-plan-picker__heading small { max-width: 440px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.debt-plan-picker__heading .button { min-height: 34px; padding: 7px 11px; flex: 0 0 auto; font-size: 9px; }
.debt-plan-picker__actions { display: flex; flex: 0 0 auto; gap: 7px; }
.debt-plan-picker__legend { display: flex; margin-bottom: 12px; padding: 9px 11px; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; color: #49645b; background: #eaf4f0; font-size: 9px; font-weight: 750; }
.debt-plan-picker__legend b { color: #77a696; }
#debt-plan-options { display: grid; gap: 9px; }
#debt-plan-options > .debt-plan-option { display: grid; overflow: hidden; border: 1px solid #d7e0dc; border-radius: 12px; background: #fff; }
#debt-plan-options > .debt-plan-option:has(input:checked) { border-color: #83b5a4; box-shadow: 0 0 0 2px rgba(71,145,119,.08); }
#debt-plan-options > .debt-plan-option > label { display: flex; min-height: 58px; padding: 11px 13px; align-items: center; gap: 11px; cursor: pointer; }
#debt-plan-options input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--forest-2); }
#debt-plan-options > .debt-plan-option > label > span { display: grid; min-width: 0; flex: 1; gap: 4px; }
#debt-plan-options > .debt-plan-option > label strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#debt-plan-options > .debt-plan-option > label small, #debt-plan-options p { margin: 0; color: var(--muted); font-size: 9px; }
.debt-plan-option__title { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.debt-plan-option__badge { padding: 4px 7px; flex: 0 0 auto; border-radius: 99px; font-size: 8px; font-weight: 800; }
.debt-plan-option__badge.is-transfer { color: #226d57; background: #e1f2eb; }
.debt-plan-option__badge.is-payment { color: #87483d; background: #f8e9e5; }
.debt-plan-date-editor { display: grid; padding: 13px; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid #d7e0dc; background: #f1f7f4; }
.debt-plan-date-editor__heading { display: flex; grid-column: 1 / -1; align-items: baseline; justify-content: space-between; gap: 12px; }
.debt-plan-date-editor__heading strong { font-size: 10px; }
.debt-plan-date-editor__heading small { color: var(--muted); font-size: 8px; }
.debt-plan-date-editor .field { margin: 0; }
.debt-schedule-list { display: grid; gap: 11px; }
.debt-schedule-row { display: grid; padding: 14px; gap: 12px; border: 1px solid #d8e2de; border-radius: 13px; background: #fafcfb; }
.debt-schedule-row > div:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.debt-schedule-row > div:first-child > div { display: grid; gap: 3px; }
.debt-schedule-row > div:first-child strong { font-size: 12px; }
.debt-schedule-row > div:first-child small { color: var(--muted); font-size: 9px; }
.debt-schedule-status { padding: 5px 8px; flex: 0 0 auto; border-radius: 99px; color: #7c625c; background: #f3eae7; font-size: 8px; font-weight: 800; }
.debt-schedule-status.is-completed { color: #246d58; background: #e0f2eb; }
.debt-schedule-row__fields { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 10px; }
.debt-schedule-row__fields .field { margin: 0; }
.debt-schedule-breakdown { display: grid; min-height: 48px; padding: 9px 11px; align-content: center; gap: 2px; border-radius: 10px; background: #eaf4f0; }
.debt-schedule-breakdown span { color: var(--muted); font-size: 8px; font-weight: 750; }
.debt-schedule-breakdown strong { color: var(--forest); font-size: 12px; }
.debt-schedule-completed { display: flex; min-height: 48px; padding: 9px 11px; align-items: center; gap: 9px; border: 1px solid #d8e2de; border-radius: 10px; background: #fff; cursor: pointer; }
.debt-schedule-completed input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--forest-2); }
.debt-schedule-completed > span { display: grid; gap: 2px; }
.debt-schedule-completed strong { font-size: 10px; }
.debt-schedule-completed small { color: var(--muted); font-size: 8px; }
.debt-schedule-reset { width: max-content; padding: 0; border: 0; color: #8b574e; background: transparent; font-size: 9px; font-weight: 800; }
.debt-schedule-reset:hover { text-decoration: underline; }
.debt-detail-summary { display: grid; margin: 18px 0; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.debt-detail-summary article { display: grid; min-width: 0; padding: 13px 14px; gap: 4px; border: 1px solid #dde6e2; border-radius: 12px; background: #f8faf9; }
.debt-detail-summary span { color: var(--muted); font-size: 9px; font-weight: 750; }
.debt-detail-summary strong { overflow: hidden; color: #26342f; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.debt-detail-summary .is-primary { border-color: #b9d7cc; background: #edf7f3; }
.debt-detail-summary .is-primary strong, .debt-detail-summary .is-positive strong { color: #1e7258; }
.debt-detail-summary .is-interest { border-color: #eadba7; background: #fff9e8; }
.debt-detail-summary .is-interest strong { color: #8b6c13; }
.debt-detail-summary .is-warning strong { color: #a44f45; }
.debt-technical-balance-edit { width: max-content; padding: 2px 0 0; border: 0; color: var(--forest); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.debt-technical-balance-edit:hover { text-decoration: underline; }
.debt-detail-chart-card, .debt-detail-schedule-section { margin-top: 15px; padding: 16px; border: 1px solid #dce5e1; border-radius: 14px; background: #fbfcfb; }
.debt-detail-chart-card .section-heading, .debt-detail-schedule-section .section-heading { margin-bottom: 12px; }
.debt-detail-chart-card h3, .debt-detail-schedule-section h3 { margin: 2px 0 0; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.debt-detail-chart-card .debt-payment-chart__columns { height: 145px; gap: 10px; }
.debt-detail-chart-card .debt-payment-chart__column { width: 72px; min-width: 72px; grid-template-rows: 16px 92px 14px 14px; }
.debt-detail-chart-card .debt-payment-chart__column > div > div { width: 38px; }
.debt-detail-schedule { display: grid; gap: 8px; }
.debt-detail-autosave { max-width: 320px; color: var(--muted); font-size: 9px; text-align: right; }
.debt-detail-payment { display: grid; padding: 12px 13px; grid-template-columns: minmax(150px, .8fr) minmax(460px, 2.8fr) minmax(150px, .8fr); align-items: center; gap: 16px; border: 1px solid #dce5e1; border-radius: 12px; background: white; transition: opacity .15s ease, border-color .15s ease; }
.debt-detail-payment.is-completed { border-color: #b9dacd; background: #f2faf6; }
.debt-detail-payment.is-saving { opacity: .62; pointer-events: none; }
.debt-detail-payment__identity { display: grid; gap: 3px; }
.debt-detail-payment__identity > span { color: var(--forest-2); font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.debt-detail-payment__identity strong { font-size: 11px; }
.debt-detail-payment__identity small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.debt-detail-payment__editor { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); align-items: end; gap: 8px; }
.debt-detail-payment__editor .field { margin: 0; }
.debt-detail-payment__editor .field > span { font-size: 8px; }
.debt-detail-payment__editor .field input { min-height: 40px; padding: 8px 9px; font-size: 10px; }
.debt-detail-payment__metric { display: grid; min-height: 40px; padding: 7px 9px; align-content: center; gap: 2px; border-radius: 9px; background: #f2f6f4; }
.debt-detail-payment__metric span { color: var(--muted); font-size: 8px; }
.debt-detail-payment__metric strong { color: var(--forest); font-size: 10px; }
.debt-detail-payment__completion { display: grid; justify-items: start; gap: 6px; }
.debt-detail-payment__completion > label:not(.field) { display: flex; align-items: center; gap: 7px; color: var(--forest); font-size: 9px; font-weight: 800; cursor: pointer; }
.debt-detail-payment__completion > label:not(.field) input { width: 16px; height: 16px; accent-color: var(--forest-2); }
.debt-detail-payment__completion .field { width: 100%; margin: 0; }
.debt-detail-payment__completion .field > span { font-size: 8px; }
.debt-detail-payment__completion .field input { min-height: 37px; padding: 7px 8px; font-size: 9px; }
.debt-detail-payment__completion > small { color: var(--muted); font-size: 8px; }
.debt-detail-payment__date { display: grid; gap: 3px; }
.debt-detail-payment__date strong { font-size: 12px; }
.debt-detail-payment__date span { color: var(--muted); font-size: 9px; }
.debt-detail-payment__amounts { display: grid; grid-template-columns: repeat(4, minmax(85px, 1fr)); gap: 7px; }
.debt-detail-payment__amounts > span { display: grid; min-width: 0; gap: 2px; }
.debt-detail-payment__amounts small { color: var(--muted); font-size: 8px; }
.debt-detail-payment__amounts strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.debt-detail-payment__amounts .is-interest strong { color: #8b6c13; }
.debt-detail-payment__actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.debt-detail-payment__actions .button { min-height: 32px; padding: 6px 9px; font-size: 8px; white-space: nowrap; }
.early-repayment-toggle { display: flex; margin: 0 0 14px; padding: 13px; align-items: center; gap: 11px; border: 1px solid #cfe0d9; border-radius: 12px; background: #f3f8f6; cursor: pointer; }
.early-repayment-toggle input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--forest-2); }
.early-repayment-toggle > span { display: grid; gap: 2px; }
.early-repayment-toggle strong { color: #273630; font-size: 12px; }
.early-repayment-toggle small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.early-repayment-fields { margin: -4px 0 16px; padding: 14px; border-radius: 12px; background: #f7f9f8; }
.early-repayment-fields .field { margin-bottom: 10px; }
.early-repayment-fields .field small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.early-repayment-result { display: grid; margin: 2px 0 9px; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.early-repayment-result article { min-width: 0; padding: 9px; border: 1px solid #dae6e1; border-radius: 9px; background: #fff; }
.early-repayment-result span { display: block; color: var(--muted); font-size: 8px; }
.early-repayment-result strong { display: block; margin-top: 3px; overflow: hidden; color: var(--forest); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.early-repayment-fields > p { margin: 0 0 5px; color: #33433d; font-size: 10px; font-weight: 750; line-height: 1.45; }
.early-repayment-fields > small { display: block; color: var(--muted); font-size: 8px; line-height: 1.45; }
.technical-account-panel { display: grid; gap: 3px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid #cfe2db; border-radius: 12px; background: #f1f8f5; }
.technical-account-panel > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.technical-account-panel > strong { color: var(--ink); font-size: 13px; }
.technical-account-panel > small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.balance-current { display: flex; margin: 3px 0 18px; padding: 14px; align-items: center; justify-content: space-between; border-radius: 11px; background: var(--mint-soft); }
.balance-current span { color: var(--muted); font-size: 11px; }
.balance-current strong { color: var(--forest); font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.savings-recommendation { display: grid; margin: 7px 0 15px; padding: 16px; border-radius: 13px; background: var(--mint-soft); }
.savings-recommendation span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.savings-recommendation strong { margin: 4px 0; color: var(--forest); font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.savings-recommendation small { color: #60736c; font-size: 10px; }
.account-card--add { display: grid; place-items: center; align-content: center; border-style: dashed; color: var(--forest-2); background: rgba(255,255,255,.45); cursor: pointer; }
.account-card--add span { font-size: 25px; }
.account-card--add strong { margin: 2px 0 0; font-family: inherit; font-size: 12px; font-weight: 800; }
.finance-panel, .planner-panel { min-height: 340px; }
.record-count { color: var(--muted); font-size: 12px; }
.transaction-filters {
  display: grid;
  margin: 18px 0 2px;
  padding: 12px;
  grid-template-columns: minmax(190px, 1.3fr) repeat(4, minmax(125px, .8fr)) minmax(230px, 1.1fr) 38px;
  align-items: end;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}
.transaction-filter { display: grid; min-width: 0; gap: 5px; }
.transaction-filter > span:first-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.transaction-filter input,
.transaction-filter select,
.transaction-category-filter > button {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d3dfda;
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
}
.transaction-filter input:focus,
.transaction-filter select:focus,
.transaction-category-filter > button:focus { border-color: #65a891; box-shadow: 0 0 0 3px rgba(80,157,130,.1); }
.transaction-category-filter { position: relative; min-width: 0; }
.transaction-category-filter > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}
.transaction-category-filter > button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-category-filter > button b { flex: 0 0 auto; color: var(--muted); font-size: 14px; transition: transform .16s ease; }
.transaction-category-filter > button.active b { transform: rotate(180deg); }
.transaction-category-filter__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 270px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(24,63,54,.16);
}
.transaction-category-filter__menu button {
  width: 100%;
  padding: 9px 10px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.transaction-category-filter__menu button:hover,
.transaction-category-filter__menu button.active { color: var(--forest-2); background: var(--mint-soft); }
.transaction-filter--period > span:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.transaction-filter-reset {
  display: grid;
  width: 38px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: 20px;
}
.transaction-filter-reset:hover { color: var(--forest-2); border-color: #9fc5b8; background: var(--mint-soft); }
.transaction-list, .plan-list { display: grid; margin-top: 18px; }
.transaction-row { display: grid; min-height: 72px; padding: 13px 0; grid-template-columns: minmax(180px, 1.4fr) minmax(120px, .7fr) 120px 135px; align-items: center; gap: 16px; border-bottom: 1px solid #edf0ee; }
.transaction-row:last-child { border-bottom: 0; }
.transaction-main { display: flex; min-width: 0; align-items: center; gap: 12px; }
.money-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 12px; font-size: 16px; font-weight: 800; }
.money-icon--income { color: #23785e; background: #e2f5ed; }
.money-icon--expense { color: #a55141; background: #fae9e5; }
.money-icon--transfer { color: #536a78; background: #e8f0f4; }
.transaction-main > div { display: grid; min-width: 0; }
.transaction-main strong, .transaction-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-main strong { font-size: 15px; }
.transaction-main span, .transaction-account, .transaction-date { color: var(--muted); font-size: 12px; }
.transaction-amount { justify-self: end; font-size: 16px; font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap; }
.transaction-amount.income, .positive { color: #277c62; }
.transaction-amount.expense, .negative { color: #a34f42; }
.transaction-amount.transfer { color: #536a78; }
.transaction-actions { display: grid; justify-items: end; gap: 5px; }
.transaction-edit-button { padding: 0; border: 0; color: var(--forest-2); background: transparent; font-size: 11px; font-weight: 800; }
.transaction-edit-button:hover { text-decoration: underline; }
.transfer-route { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; gap: 8px; }
.transfer-route > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--forest); background: var(--mint-soft); font-weight: 800; }
.transfer-fx-card { margin: 4px 0 15px; padding: 13px 14px 1px; border: 1px solid #d6e6df; border-radius: 12px; background: #f4f9f7; }
.transfer-fx-card .calculator-note { margin: -2px 0 12px; }

.empty-state { display: grid; min-height: 260px; place-items: center; align-content: center; text-align: center; }
.empty-state > span { display: grid; width: 54px; height: 54px; margin-bottom: 15px; place-items: center; border-radius: 17px; color: var(--forest); background: var(--mint-soft); font-size: 23px; }
.empty-state > strong { font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.empty-state > p { max-width: 390px; margin: 5px 0 18px; color: var(--muted); font-size: 12px; }

.planner-summary { display: grid; margin-bottom: 18px; grid-template-columns: repeat(3,1fr); gap: 12px; }
.planner-summary article { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.planner-summary span { display: block; color: var(--muted); font-size: 11px; }
.planner-summary strong { display: block; margin: 7px 0 1px; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.planner-summary small { color: #929d98; }
.planner-mode-bar {
  display: flex;
  min-height: 68px;
  margin: -4px 0 20px;
  padding: 9px 10px 9px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dce7e2;
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 0, rgba(106, 190, 159, .12), transparent 38%),
    #fff;
  box-shadow: 0 10px 28px rgba(24, 63, 54, .045);
}
.planner-mode-bar__label { display: grid; gap: 2px; }
.planner-mode-bar__label .eyebrow { font-size: 9px; }
.planner-mode-bar__label strong {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 500;
}
.planner-mode-toggle {
  position: relative;
  display: block;
  width: min(100%, 304px);
  flex: 0 0 304px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.strategy-manager-open {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #d7e5df;
  border-radius: 9px;
  color: var(--forest-2);
  background: #f1f8f5;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}
.strategy-manager-open:hover { border-color: #accfc1; background: #e9f5f0; }
.strategy-manager-open:disabled { opacity: .45; cursor: default; }
.planner-mode-toggle > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.planner-mode-toggle__track {
  position: relative;
  display: grid;
  height: 48px;
  padding: 4px;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border: 1px solid #d5e1dc;
  border-radius: 15px;
  background: #eaf0ed;
  overflow: hidden;
}
.planner-mode-toggle__thumb {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border: 1px solid rgba(35, 99, 84, .13);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(26, 65, 56, .12);
  transition: transform .22s cubic-bezier(.2, .75, .25, 1);
}
.planner-mode-toggle__option {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #73817c;
  font-size: 12px;
  font-weight: 850;
  transition: color .18s ease;
}
.planner-mode-toggle__option i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 7px;
  background: rgba(23, 63, 58, .055);
  font-size: 12px;
  font-style: normal;
}
.planner-mode-toggle > input:not(:checked) ~ .planner-mode-toggle__track .planner-mode-toggle__option--calendar,
.planner-mode-toggle > input:checked ~ .planner-mode-toggle__track .planner-mode-toggle__option--strategy {
  color: var(--forest);
}
.planner-mode-toggle > input:checked ~ .planner-mode-toggle__track .planner-mode-toggle__thumb {
  transform: translateX(100%);
}
.planner-mode-toggle > input:focus-visible ~ .planner-mode-toggle__track {
  outline: 3px solid rgba(75, 164, 134, .25);
  outline-offset: 3px;
}
.planner-mode-toggle:hover .planner-mode-toggle__track {
  border-color: #b9cec5;
}
.strategy-direction-switch {
  display: flex;
  padding: 4px;
  border-radius: 12px;
  background: #e9efec;
}
.strategy-direction-switch button {
  min-height: 37px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  color: #66736e;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.strategy-direction-switch button.active {
  color: var(--forest);
  background: #fff;
  box-shadow: 0 2px 9px rgba(29, 65, 56, .08);
}
.strategy-mode { display: grid; gap: 18px; }
.strategy-toolbar {
  display: flex;
  min-height: 54px;
  padding: 8px 10px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.strategy-profile-picker {
  display: grid;
  min-width: 190px;
  gap: 2px;
}
.strategy-profile-picker > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.strategy-profile-picker select {
  min-height: 36px;
  padding: 6px 30px 6px 10px;
  border: 1px solid #d9e4df;
  border-radius: 10px;
  color: var(--forest);
  background: #f8fbf9;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.strategy-month-navigation {
  display: grid;
  min-width: 220px;
  grid-template-columns: 36px minmax(120px, 1fr) 36px;
  align-items: center;
  gap: 6px;
}
.strategy-month-navigation > div {
  display: grid;
  gap: 1px;
  text-align: center;
}
.strategy-month-navigation span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.strategy-month-navigation strong {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
}
.strategy-period-setting {
  display: flex;
  min-height: 38px;
  padding: 3px 4px 3px 10px;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce5e1;
  border-radius: 10px;
  background: #f7faf8;
}
.strategy-period-setting > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.strategy-period-setting select {
  min-height: 30px;
  padding: 4px 24px 4px 8px;
  border: 0;
  border-radius: 7px;
  outline: 0;
  color: var(--forest);
  background: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}
.strategy-period-setting select:focus-visible {
  box-shadow: 0 0 0 3px rgba(78,157,132,.15);
}
.strategy-template-open { min-height: 38px; padding: 8px 11px; font-size: 10px; white-space: nowrap; }
.strategy-save-status {
  margin-left: auto;
  min-width: 70px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
.strategy-section-row th {
  padding: 9px 13px;
  border-top: 2px solid #dce7e2;
  border-bottom: 1px solid #dce7e2;
  color: var(--forest);
  background: #edf6f2;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}
.strategy-section-row--expense th {
  color: #8f4b3e;
  background: #fbf3ef;
}
.strategy-period-preview {
  padding: 12px 14px;
  border: 1px solid #d8e6e0;
  border-radius: 12px;
  color: var(--forest);
  background: #f1f8f5;
  font-size: 12px;
  line-height: 1.5;
}
.strategy-period-preview.is-error {
  border-color: #ebc8c1;
  color: var(--danger);
  background: #fff5f3;
}
.modal-card.modal-card--strategy-manager {
  width: min(760px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 28px));
}
.strategy-manager-heading {
  display: flex;
  margin: 8px 0 14px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.strategy-manager-heading p { margin: 0; }
.strategy-manager-list {
  display: grid;
  gap: 9px;
}
.strategy-manager-row {
  display: grid;
  min-height: 76px;
  padding: 8px 9px 8px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #dce6e2;
  border-radius: 14px;
  background: #fff;
}
.strategy-manager-row.is-current {
  border-color: #97c7b6;
  background: #f3faf7;
  box-shadow: inset 3px 0 0 #55a88c;
}
.strategy-manager-row__details {
  display: grid;
  min-width: 0;
  padding: 7px 4px;
  gap: 4px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.strategy-manager-row__details strong {
  overflow: hidden;
  color: var(--forest);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-manager-row__details span {
  color: var(--muted);
  font-size: 10px;
}
.strategy-manager-row__actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.strategy-manager-row__actions .button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 9px;
}
.strategy-manager-current {
  padding: 5px 8px;
  border-radius: 999px;
  color: #24775e;
  background: #dff2e9;
  font-size: 9px;
  font-weight: 850;
}
.strategy-manager-remove {
  padding: 6px 5px;
  border: 0;
  color: #a35246;
  background: transparent;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.strategy-manager-remove:hover { text-decoration: underline; }
.strategy-manager-remove:disabled {
  color: #aeb7b3;
  cursor: not-allowed;
  text-decoration: none;
}
.strategy-profile-editor {
  display: grid;
  margin-top: 5px;
  padding: 18px;
  gap: 14px;
  border: 1px solid #cfe0d9;
  border-radius: 16px;
  background: #f7faf8;
}
.strategy-profile-editor.hidden { display: none; }
.strategy-profile-editor__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.strategy-profile-editor__heading h3 {
  margin: 4px 0 0;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}
.strategy-profile-editor > p { margin: 0; color: var(--muted); font-size: 11px; }
.strategy-period-start { max-width: 330px; }
.strategy-period-start small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}
.strategy-subperiod-editor {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.strategy-subperiod-editor__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.strategy-subperiod-editor__heading > div {
  display: grid;
  gap: 3px;
}
.strategy-subperiod-editor__heading strong { font-size: 12px; }
.strategy-subperiod-editor__heading span {
  color: var(--muted);
  font-size: 10px;
}
.strategy-subperiod-list {
  display: grid;
  gap: 8px;
}
.strategy-subperiod-row {
  display: grid;
  grid-template-columns: 26px minmax(180px, 1fr) 125px auto;
  align-items: end;
  gap: 9px;
  padding: 10px;
  border: 1px solid #dbe6e1;
  border-radius: 12px;
  background: #f7faf8;
}
.strategy-subperiod-index {
  display: grid;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 10px;
  font-weight: 850;
}
.strategy-subperiod-row .field { gap: 5px; }
.strategy-subperiod-row .field > span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.strategy-subperiod-row input {
  min-height: 40px;
  padding: 8px 10px;
}
.strategy-subperiod-row input:disabled {
  color: var(--ink);
  background: #edf3f0;
  opacity: 1;
}
.strategy-subperiod-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 40px;
}
.strategy-subperiod-actions .button {
  min-width: 34px;
  min-height: 36px;
  padding: 6px 8px;
}
.strategy-subperiod-remove {
  border: 0;
  color: #a35246;
  background: transparent;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.strategy-subperiod-remove:disabled {
  color: #aeb7b3;
  cursor: not-allowed;
}
.strategy-period-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.strategy-period-preview span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eaf5f0;
  font-size: 10px;
}
.strategy-period-preview.is-error {
  display: block;
  color: var(--danger);
}
.strategy-category-selector {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.strategy-category-selector__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.strategy-category-selector__heading > div {
  display: grid;
  gap: 3px;
}
.strategy-category-selector__heading strong { font-size: 12px; }
.strategy-category-selector__heading span {
  color: var(--muted);
  font-size: 10px;
}
.strategy-category-selector__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.strategy-category-group {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid #dbe6e1;
  border-radius: 12px;
  background: #f7faf8;
}
.strategy-category-group legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.strategy-category-option {
  display: grid;
  grid-template-columns: 16px 8px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 5px 7px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}
.strategy-category-option:hover { background: #eaf3ef; }
.strategy-category-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--green);
}
.strategy-category-option i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
}
.strategy-category-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-inclusion-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.strategy-inclusion-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid #dbe6e1;
  border-radius: 11px;
  background: #f7faf8;
  cursor: pointer;
}
.strategy-inclusion-option:hover { border-color: #9cc9b8; }
.strategy-inclusion-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}
.strategy-inclusion-option span { display: grid; gap: 2px; min-width: 0; }
.strategy-inclusion-option strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-inclusion-option small { color: var(--muted); font-size: 9px; }
.strategy-composition-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px;
  color: var(--muted);
  border-radius: 10px;
  background: #f7faf8;
  font-size: 10px;
}
@media (max-width: 720px) {
  .strategy-subperiod-editor__heading {
    align-items: stretch;
    flex-direction: column;
  }
  .strategy-subperiod-row {
    grid-template-columns: 24px minmax(0, 1fr) 105px;
  }
  .strategy-subperiod-actions {
    grid-column: 2 / -1;
    justify-content: flex-end;
  }
  .strategy-category-selector__heading {
    align-items: stretch;
    flex-direction: column;
  }
  .strategy-category-selector__list { grid-template-columns: 1fr; }
  .strategy-inclusion-list { grid-template-columns: 1fr; }
}
.strategy-save-status.is-error { color: var(--danger); }
.strategy-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.strategy-summary article {
  min-height: 112px;
  padding: 18px 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}
.strategy-summary span { display: block; color: var(--muted); font-size: 11px; }
.strategy-summary strong {
  display: block;
  margin: 9px 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.strategy-summary small { color: #8d9994; font-size: 11px; }
.strategy-insights-panel .panel-heading { margin-bottom: 15px; }
.strategy-insights-panel .panel-heading p { max-width: 680px; margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.strategy-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.strategy-insight {
  display: grid;
  padding: 15px 16px;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  border: 1px solid #dfe8e3;
  border-radius: 13px;
  background: #f8fbf9;
}
.strategy-insight::before {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: #69b398;
  content: "";
}
.strategy-insight.warning { border-color: #efd9ac; background: #fffaf0; }
.strategy-insight.warning::before { background: #d7a23d; }
.strategy-insight.critical { border-color: #efc7c0; background: #fff5f3; }
.strategy-insight.critical::before { background: #cc6c59; }
.strategy-insight__body { min-width: 0; }
.strategy-insight h3 { margin: 0 0 4px; color: #294b42; font-size: 12px; }
.strategy-insight p { margin: 0; color: #5f6f69; font-size: 11px; line-height: 1.45; }
.strategy-insight details { margin-top: 8px; color: var(--muted); font-size: 11px; }
.strategy-insight summary { width: max-content; cursor: pointer; font-weight: 800; }
.strategy-insight details p { margin-top: 5px; font-size: 11px; }
.strategy-insight .button { min-height: 34px; padding: 7px 10px; font-size: 11px; white-space: nowrap; }
.strategy-insights-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed #cbd8d2;
  border-radius: 13px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.strategy-table-panel { padding: 0; overflow: hidden; }
.strategy-table-heading {
  display: flex;
  padding: 18px 20px 10px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.strategy-table-heading h2 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.strategy-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.strategy-table-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; }
.strategy-table-legend span { display: flex; align-items: center; gap: 5px; }
.strategy-table-legend i { width: 8px; height: 8px; border-radius: 2px; background: #d8e2de; }
.strategy-table-legend i.manual { background: #4fa386; }
.strategy-table-legend i.scheduled { background: #87a9b9; }
.strategy-table-legend i.actual { background: #384b45; }
.strategy-table-actions .strategy-template-open {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 10px;
  white-space: nowrap;
}
.strategy-table-note { margin: 0; padding: 0 20px 14px; color: var(--muted); font-size: 11px; }
.strategy-table-scroll {
  max-width: 100%;
  overflow: auto;
  border-top: 1px solid var(--line);
  scrollbar-color: #b8c9c2 #edf2ef;
}
.strategy-table {
  width: 1696px;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  color: #334a43;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.strategy-table.strategy-table--halves { width: 2632px; }
.strategy-table th,
.strategy-table td {
  width: 114px;
  min-width: 114px;
  max-width: 114px;
  padding: 7px 8px;
  border-right: 1px solid #e3e9e6;
  border-bottom: 1px solid #e3e9e6;
  vertical-align: middle;
  background: #fff;
}
.strategy-table th {
  position: sticky;
  z-index: 3;
  top: 0;
  height: 48px;
  padding-block: 8px;
  color: #65736e;
  background: #f4f7f5;
  font-size: 10px;
  text-align: left;
  text-transform: uppercase;
}
.strategy-table th small {
  display: block;
  margin-top: 3px;
  color: #94a09b;
  font-size: 10px;
  font-weight: 650;
  text-transform: none;
}
.strategy-table .strategy-month-group {
  width: 192px;
  min-width: 192px;
  max-width: 192px;
  text-align: center;
}
.strategy-table .strategy-half-heading {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  padding-block: 6px;
  text-align: center;
}
.strategy-table.strategy-table--halves tbody td:not(.strategy-total),
.strategy-table.strategy-table--halves tfoot td:not(.strategy-total):not(.strategy-category) {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
}
.strategy-table.strategy-table--halves thead tr:nth-child(2) th {
  z-index: 4;
  top: 48px;
  height: 34px;
}
.strategy-table .strategy-category {
  position: sticky;
  z-index: 2;
  left: 0;
  width: 185px;
  min-width: 185px;
  max-width: 185px;
  background: #fbfcfb;
  box-shadow: 5px 0 9px rgba(27, 58, 50, .035);
}
.strategy-table thead .strategy-category { z-index: 5; background: #f0f5f2; }
.strategy-table .strategy-total {
  position: sticky;
  z-index: 2;
  right: 0;
  width: 143px;
  min-width: 143px;
  max-width: 143px;
  background: #f8faf9;
  box-shadow: -5px 0 9px rgba(27, 58, 50, .035);
}
.strategy-table thead .strategy-total { z-index: 5; background: #eef4f1; }
.strategy-table tbody .strategy-category { text-transform: none; }
.strategy-category-name { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 850; }
.strategy-category-color { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 3px; }
.strategy-category-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 500; }
.strategy-cell { display: grid; min-height: 76px; align-content: center; gap: 4px; }
.strategy-plan-field { display: block; }
.strategy-plan-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.strategy-plan-input {
  width: 100%;
  height: 30px;
  padding: 5px 7px;
  border: 1px solid #cfdbd6;
  border-radius: 7px;
  outline: 0;
  color: #173f3a;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.strategy-plan-input:focus { border-color: #4e9d84; box-shadow: 0 0 0 3px rgba(78,157,132,.12); }
.strategy-plan-input:disabled { color: #61706a; background: #eef2f0; cursor: not-allowed; }
.strategy-cell.calendar-fallback .strategy-plan-input { border-style: dashed; color: #657b72; background: #f7faf8; }
.strategy-cell-metrics { display: grid; gap: 1px; }
.strategy-cell-metric {
  display: flex;
  min-height: 13px;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}
.strategy-cell-metric span { color: #87938e; font-size: 9px; }
.strategy-cell-metric strong {
  min-width: 0;
  overflow: hidden;
  color: #3b5049;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-cell-metric.scheduled strong { color: #55798a; }
.strategy-cell-variance {
  min-height: 13px;
  overflow: hidden;
  color: #63716c;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-cell-variance.over { color: #a44e40; }
.strategy-cell-variance.under { color: #26765e; }
.strategy-table td.period-current { background: #fffdf7; }
.strategy-table td.period-future { background: #fbfcfb; }
.strategy-table tfoot td { position: sticky; z-index: 3; bottom: 0; background: #eef4f1; font-weight: 850; }
.strategy-total-cell { display: grid; gap: 3px; }
.strategy-total-cell strong { font-size: 10px; }
.strategy-total-cell span { color: var(--muted); font-size: 8px; line-height: 1.35; }
.strategy-table.strategy-table--editor {
  width: 100%;
  min-width: 680px;
}
.strategy-table.strategy-table--editor.strategy-table--halves {
  width: 100%;
  min-width: 980px;
}
.strategy-table.strategy-table--editor.strategy-table--mixed {
  width: 100%;
  min-width: 1040px;
}
.strategy-table--editor th,
.strategy-table--editor td {
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 11px 12px;
}
.strategy-table--editor .strategy-category {
  width: 23%;
  min-width: 190px;
  max-width: 260px;
}
.strategy-table--editor:not(.strategy-table--halves) th:not(.strategy-category),
.strategy-table--editor:not(.strategy-table--halves) td:not(.strategy-category) {
  width: 25.66%;
}
.strategy-table--editor.strategy-table--mixed th:not(.strategy-category),
.strategy-table--editor.strategy-table--mixed td:not(.strategy-category) {
  width: auto;
}
.strategy-table--mixed .strategy-category {
  width: 210px;
  min-width: 210px;
  max-width: 240px;
}
.strategy-table--mixed .strategy-editor-mode {
  width: 142px;
  min-width: 142px;
  max-width: 142px;
}
.strategy-editor-mode select {
  width: 100%;
  min-height: 34px;
  padding: 6px 26px 6px 9px;
  border: 1px solid #cfdbd6;
  border-radius: 8px;
  outline: 0;
  color: var(--forest);
  background: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}
.strategy-editor-mode select:focus-visible {
  border-color: #4e9d84;
  box-shadow: 0 0 0 3px rgba(78,157,132,.12);
}
.strategy-editor-mode select:disabled {
  color: var(--muted);
  background: #eef2f0;
}
.strategy-table--mixed .strategy-editor-plan,
.strategy-table--mixed .strategy-editor-computed {
  width: 150px;
  min-width: 150px;
}
.strategy-table--mixed .strategy-editor-value--actual_amount,
.strategy-table--mixed .strategy-editor-variance,
.strategy-table--mixed .strategy-editor-inactive {
  width: 125px;
  min-width: 125px;
}
.strategy-table--editor .strategy-editor-group {
  position: sticky;
  z-index: 3;
  top: 0;
  height: 42px;
  color: var(--forest);
  background: #eef5f1;
  font-size: 11px;
  text-align: center;
}
.strategy-table--editor .strategy-editor-subhead {
  z-index: 4;
  top: 42px;
  height: 36px;
  padding: 7px 8px;
  font-size: 9px;
  text-align: center;
}
.strategy-table.strategy-table--editor.strategy-table--halves tbody td:not(.strategy-total),
.strategy-table.strategy-table--editor.strategy-table--halves tfoot td:not(.strategy-total):not(.strategy-category) {
  width: 105px;
  min-width: 105px;
  max-width: none;
}
.strategy-table--editor .strategy-editor-plan {
  min-width: 145px;
}
.strategy-editor-plan small,
.strategy-editor-value small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-salary-settings {
  margin-top: 6px;
  padding: 0;
  border: 0;
  color: var(--forest);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: #9bc9ba;
  text-underline-offset: 3px;
}
.strategy-salary-settings:hover { color: #2f8269; }
.strategy-editor-plan.calendar-fallback .strategy-plan-input {
  border-style: dashed;
  color: #55798a;
  background: #f6faf8;
}
.strategy-editor-value strong {
  display: block;
  color: #28473f;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.strategy-editor-value--scheduled_amount strong { color: #55798a; }
.strategy-editor-computed { background: #f2f8f5 !important; }
.strategy-editor-computed strong { color: var(--forest); }
.strategy-editor-inactive {
  color: #9aa6a1;
  background: #fafcfb !important;
  text-align: center;
}
.strategy-editor-inactive > span { font-size: 15px; }
.strategy-editor-inactive small {
  display: block;
  margin-top: 4px;
  font-size: 8px;
}
.strategy-editor-variance.over strong { color: #a44e40; }
.strategy-editor-variance.under strong { color: #26765e; }
.strategy-table--editor tbody tr:hover td,
.strategy-table--editor tbody tr:hover th { background: #f8fbf9; }
.strategy-table--editor tfoot td > strong { font-size: 12px; white-space: nowrap; }
.strategy-category--expandable { cursor: pointer; outline: 0; }
.strategy-category--expandable:focus-visible {
  box-shadow: inset 0 0 0 2px #4e9d84, 5px 0 9px rgba(27, 58, 50, .035);
}
.strategy-category-chevron {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 5px;
  color: var(--forest);
  background: #e8f3ee;
  font-size: 13px;
  line-height: 1;
}
.strategy-nested-row > th,
.strategy-nested-row > td {
  background: #f5faf7;
  border-top: 2px solid #a9d2c2;
}
.strategy-nested-row > .strategy-category {
  border-left: 4px solid #4f9f83;
  background: #f5faf7;
}
.strategy-nested-row.is-expanded > th,
.strategy-nested-row.is-expanded > td {
  border-bottom-color: #b9d8cc;
  background: #edf7f2;
}
.strategy-nested-category-row > th,
.strategy-nested-category-row > td { background: #fbfdfc; }
.strategy-nested-category-row .strategy-category {
  position: sticky;
  padding-left: 35px;
  background: #fbfdfc;
}
.strategy-nested-category-row .strategy-category::before {
  position: absolute;
  top: 0;
  bottom: 50%;
  left: 20px;
  width: 10px;
  content: "";
  border-bottom: 1px solid #9fc8b8;
  border-left: 1px solid #9fc8b8;
  border-radius: 0 0 0 6px;
}
.strategy-nested-category-row .strategy-category-name { font-weight: 750; }
.strategy-nested-category-row .strategy-category-chevron {
  width: 15px;
  height: 15px;
  background: #f0f5f2;
  font-size: 11px;
}
.strategy-nested-category-row .strategy-editor-readonly {
  color: #60736b;
  background: #f7faf8 !important;
}
.strategy-operation-table-row > th,
.strategy-operation-table-row > td { background: #fcfdfc; }
.strategy-operation-table-row--planned > td { background: #f8fbfa; }
.strategy-operation-table-row--actual > td { background: #f6faf7; }
.strategy-operation-table-row .strategy-operation-category {
  position: sticky;
  padding-left: 50px;
  background: #fcfdfc;
  text-transform: none;
}
.strategy-operation-table-row .strategy-operation-category::before {
  position: absolute;
  top: 0;
  bottom: 50%;
  left: 34px;
  width: 11px;
  content: "";
  border-bottom: 1px solid #bfd7ce;
  border-left: 1px solid #bfd7ce;
  border-radius: 0 0 0 6px;
}
.strategy-operation-category strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-operation-category span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-operation-table-row .strategy-editor-readonly {
  color: #64756e;
  background: #f7faf8 !important;
}
.strategy-operation-table-row--actual .strategy-editor-readonly {
  color: #26765e;
  background: #eaf5ef !important;
}
.strategy-operation-value { vertical-align: middle; }
.strategy-operation-table-row--message .strategy-operation-category {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}
.strategy-operation-table-row--message.is-error .strategy-operation-category {
  color: var(--danger);
}
.strategy-editor-readonly {
  color: #315e55;
  background: #edf6f1 !important;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}
.strategy-row-detail > td,
.strategy-table--editor.strategy-table--mixed .strategy-row-detail > td {
  width: auto;
  min-width: 0;
  padding: 0 12px 14px;
  background: #f8fbf9 !important;
}
.strategy-row-detail-content {
  display: grid;
  padding: 13px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid #dce8e2;
  border-radius: 12px;
  background: #fff;
}
.strategy-row-detail-content > section { min-width: 0; }
.strategy-row-detail-content h4 {
  margin: 0 0 8px;
  color: #5b6c65;
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.strategy-row-detail-content p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.strategy-row-detail-content.is-loading,
.strategy-row-detail-content.is-error {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.strategy-row-detail-content.is-error { color: var(--danger); }
.strategy-operation-detail {
  display: grid;
  padding: 8px 0;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #edf1ef;
}
.strategy-operation-detail time,
.strategy-operation-detail span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.strategy-operation-detail strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-operation-detail b {
  color: var(--forest);
  font-size: 10px;
  white-space: nowrap;
}
.strategy-child-detail {
  display: grid;
  padding: 8px 0;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #edf1ef;
  font-size: 10px;
}
.strategy-child-detail strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-child-detail span { color: #52655d; white-space: nowrap; }
.strategy-empty { padding: 32px; color: var(--muted); text-align: center; }
.modal-card--strategy-template { width: min(760px, calc(100vw - 30px)); }
.strategy-template-section {
  display: grid;
  margin-top: 14px;
  padding: 17px;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafcfb;
}
.strategy-template-section__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.strategy-template-section__heading strong { color: var(--forest); font-size: 13px; }
.strategy-template-section__heading span { color: var(--muted); font-size: 10px; }
.strategy-template-source {
  display: flex;
  min-height: 48px;
  padding: 10px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dce6e1;
  border-radius: 10px;
  background: #f3f8f5;
}
.strategy-template-source span { color: var(--muted); font-size: 10px; }
.strategy-template-source strong { color: var(--forest); font-size: 13px; }
.modal-actions--inline { margin-top: 0; justify-content: flex-start; }
.strategy-template-overwrite { margin: 0; }
.plan-row { display: grid; min-height: 80px; padding: 13px 0; grid-template-columns: 64px minmax(180px,1fr) 120px 130px minmax(34px,auto); align-items: center; gap: 15px; border-bottom: 1px solid #edf0ee; }
.plan-row:last-child { border-bottom: 0; }
.plan-row.is-completed { opacity: .66; }
.plan-date { display: grid; width: 53px; height: 53px; place-items: center; align-content: center; border-radius: 14px; color: var(--forest); background: var(--mint-soft); line-height: 1.1; }
.plan-date strong { font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.plan-date span { font-size: 9px; font-weight: 800; text-transform: uppercase; }
.plan-main { display: grid; min-width: 0; }
.plan-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.plan-main span { color: var(--muted); font-size: 12px; }
.plan-repeat { justify-self: start; padding: 5px 8px; border-radius: 99px; color: #58655f; background: #f0f3f1; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.plan-actions { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.plan-conduct { min-height: 32px; padding: 7px 11px; font-size: 10px; }
.plan-delete { color: #8a9691; font-size: 18px; }
.plan-delete:hover { color: var(--danger); background: #faecea; }

.cashflow-calendar-panel { margin-bottom: 18px; }
.calendar-toolbar { display: flex; margin-bottom: 20px; align-items: center; justify-content: space-between; gap: 16px; }
.calendar-toolbar h2 { margin: 2px 0 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; text-transform: capitalize; }
.calendar-actions { display: flex; align-items: center; gap: 8px; }
.toggle-field { display: flex; margin-right: 8px; align-items: center; gap: 8px; cursor: pointer; }
.toggle-field input { position: absolute; opacity: 0; }
.toggle-field > span { position: relative; width: 34px; height: 19px; border-radius: 99px; background: #d8dfdc; transition: background .2s; }
.toggle-field > span::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.15); content: ""; transition: transform .2s; }
.toggle-field input:checked + span { background: #54a98e; }
.toggle-field input:checked + span::after { transform: translateX(15px); }
.toggle-field b { color: var(--muted); font-size: 10px; white-space: nowrap; }
.calendar-weekdays, .cashflow-calendar { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.calendar-weekdays { color: #77847f; font-size: 11px; font-weight: 800; text-align: center; text-transform: uppercase; }
.calendar-weekdays span { padding: 8px; }
.calendar-day { min-height: 128px; padding: 10px; overflow: hidden; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: #fff; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.outside { background: #f7f9f7; }
.calendar-day.today { box-shadow: inset 0 0 0 2px #73b89f; }
.calendar-day-number { display: block; margin-bottom: 8px; color: #4d5a55; font-size: 12px; font-weight: 850; }
.calendar-day.outside .calendar-day-number { color: #b5bdb9; }
.calendar-event { display: grid; width: 100%; margin: 5px 0; padding: 7px 8px; overflow: hidden; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 2px 7px; border: 0; border-radius: 7px; color: #355148; background: #dcf1e9; text-align: left; }
.calendar-event-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 850; white-space: nowrap; }
.calendar-event-amount { font-size: 11px; font-weight: 850; white-space: nowrap; }
.calendar-event-detail { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; font-size: 10px; font-weight: 650; line-height: 1.25; white-space: nowrap; opacity: .82; }
.calendar-event.clickable { cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s; }
.calendar-event.clickable:hover { z-index: 1; box-shadow: 0 4px 12px rgba(36,75,64,.14); transform: translateY(-1px); }
.calendar-event.expense { color: #8e4438; background: #f8e5e1; }
.calendar-event.transfer { color: #455f70; background: #e3eef4; }
.calendar-event.actual { color: #4d5a56; background: #edf0ee; box-shadow: inset 2px 0 #7a8882; }
.calendar-event-more { display: block; margin-top: 4px; padding: 3px 5px; border: 0; border-radius: 6px; color: var(--forest-2); background: transparent; font: inherit; font-size: 10px; font-weight: 800; text-align: left; cursor: pointer; }
.calendar-event-more:hover { color: var(--forest); background: var(--mint-soft); }
.calendar-legend, .chart-legend { display: flex; margin-top: 14px; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 11px; }
.calendar-legend span, .chart-legend span { display: flex; align-items: center; gap: 6px; }
.calendar-legend i, .chart-legend i { width: 9px; height: 9px; border-radius: 3px; }
.calendar-legend .planned-income { background: #a9dbc9; }
.calendar-legend .planned-expense { background: #efb8ae; }
.calendar-legend .planned-transfer { background: #91b6c9; }
.calendar-legend .actual { background: #7a8882; }
.salary-plan-preview { display: flex; margin: 10px 0 16px; padding: 13px 15px; align-items: center; justify-content: space-between; border-radius: 11px; color: var(--forest); background: var(--mint-soft); }
.salary-plan-preview span { font-size: 10px; }
.salary-plan-preview strong { font-size: 14px; }
.salary-schedule-card { margin: 11px 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fafcfb; }
.salary-schedule-card > strong { display: block; margin-bottom: 4px; color: var(--forest); font-size: 12px; }
.salary-part-result { display: grid; margin-top: 5px; padding: 11px 12px; grid-template-columns: 1fr auto; align-items: center; gap: 3px 10px; border-radius: 9px; background: var(--mint-soft); }
.salary-part-result span { color: var(--muted); font-size: 9px; }
.salary-part-result strong { color: var(--forest); font-size: 13px; }
.salary-part-result small { grid-column: 1 / -1; color: #5f716a; font-size: 9px; }
.confirmation-summary { display: flex; margin: 3px 0 18px; padding: 14px; align-items: center; justify-content: space-between; gap: 15px; border-radius: 11px; background: var(--mint-soft); }
.confirmation-summary > div { display: grid; min-width: 0; }
.confirmation-summary span, .confirmation-title-button { overflow: hidden; text-overflow: ellipsis; color: var(--forest); font-size: 12px; font-weight: 850; white-space: nowrap; }
.confirmation-title-button { max-width: 100%; padding: 0; border: 0; border-bottom: 1px dashed #78a798; background: transparent; text-align: left; cursor: pointer; }
.confirmation-title-button:hover { color: #0b6755; border-bottom-color: #0b6755; }
.confirmation-summary small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.confirmation-summary > strong { color: var(--forest); font-size: 14px; white-space: nowrap; }
.calendar-group-list { display: grid; gap: 8px; }
.calendar-group-item { display: grid; width: 100%; padding: 13px 14px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 4px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f7faf8; color: var(--ink); text-align: left; cursor: pointer; }
.calendar-group-item:hover { border-color: #82b8a5; background: var(--mint-soft); }
.calendar-group-item.is-static { cursor: default; }
.calendar-group-item.is-static:hover { border-color: var(--line); background: #f7faf8; }
.calendar-group-item strong { overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.calendar-group-item b { color: var(--forest); font-size: 13px; white-space: nowrap; }
.calendar-group-item span { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.debt-detail-payment.is-focused { border-color: #4fa88a; box-shadow: 0 0 0 3px rgba(79,168,138,.16); }

.analytics-summary { display: grid; margin-bottom: 18px; grid-template-columns: repeat(2,1fr); gap: 12px; }
.analytics-summary article { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.analytics-summary span, .analytics-summary small { display: block; color: var(--muted); font-size: 10px; }
.analytics-summary strong { display: block; margin: 8px 0 3px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.analytics-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.75fr); gap: 18px; }
.analytics-panel { min-height: 390px; }
.monthly-chart { display: flex; height: 260px; margin-top: 24px; align-items: stretch; gap: 14px; }
.month-column { display: grid; min-width: 0; flex: 1; grid-template-rows: 1fr auto; gap: 8px; text-align: center; }
.month-bars { display: flex; min-height: 0; align-items: flex-end; justify-content: center; gap: 5px; border-bottom: 1px solid var(--line); }
.month-bar { position: relative; width: min(24px,42%); min-height: 2px; border-radius: 5px 5px 0 0; }
.month-bar.income { background: #6fb99e; }
.month-bar.expense { background: #d98372; }
.month-bar .planned-part { position: absolute; inset: 0 0 auto; height: var(--planned-share); border-radius: inherit; background: repeating-linear-gradient(135deg,rgba(255,255,255,.55) 0 3px,transparent 3px 6px); }
.month-column > span { color: var(--muted); font-size: 9px; text-transform: capitalize; }
.chart-legend .income { background: #6fb99e; }.chart-legend .expense { background: #d98372; }.chart-legend .planned { background: repeating-linear-gradient(135deg,#b8c4bf 0 2px,#fff 2px 4px); }
.category-chart { display: grid; margin-top: 23px; gap: 15px; }
.category-row { display: grid; grid-template-columns: minmax(90px,.75fr) minmax(100px,1fr) auto; align-items: center; gap: 10px; }
.category-row > span { overflow: hidden; text-overflow: ellipsis; font-size: 10px; white-space: nowrap; }
.category-track { height: 8px; overflow: hidden; border-radius: 99px; background: #edf0ee; }
.category-track i { display: block; height: 100%; border-radius: inherit; background: #d98372; }
.category-row strong { font-size: 10px; white-space: nowrap; }
.empty-state--compact { min-height: 270px; }

.segmented { display: grid; margin: 0 0 20px; padding: 4px; grid-template-columns: 1fr 1fr; border-radius: 12px; background: #eef2ef; }
.segmented--three { grid-template-columns: repeat(3,1fr); }
.segmented--four { grid-template-columns: repeat(4,1fr); }
.segmented--four span { padding-inline: 5px; font-size: 10px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: grid; min-height: 39px; place-items: center; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 800; }
.segmented input:checked + span { color: var(--forest); background: #fff; box-shadow: 0 3px 10px rgba(24,57,51,.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid--three { grid-template-columns: repeat(3, minmax(0,1fr)); }

.calculator-tabs { display: inline-flex; margin-bottom: 17px; padding: 4px; border-radius: 12px; background: #e8ece9; }
.calculator-tabs button { min-width: 130px; padding: 9px 16px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; }
.calculator-tabs button.active { color: var(--forest); background: #fff; box-shadow: 0 3px 12px rgba(25,54,49,.08); }
.calculator-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(310px,.85fr); gap: 18px; }
.calculator-form { padding: 28px; }
.calculator-form .panel-heading { margin-bottom: 24px; }
.field-group-title { display: block; margin: 22px 0 9px; color: #7e8a85; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.field-group-title:first-of-type { margin-top: 0; }
.live-badge { padding: 5px 8px; border-radius: 99px; color: #26775f; background: #e5f5ee; font-size: 9px; font-weight: 800; white-space: nowrap; }
.money-field > div { position: relative; }
.money-field input { padding-right: 42px; font-size: 19px; font-weight: 750; font-variant-numeric: tabular-nums; }
.money-field b { position: absolute; right: 16px; top: 50%; color: #7e8985; transform: translateY(-50%); }
.calendar-hint { display: flex; margin: -2px 0 16px; padding: 12px 14px; align-items: center; gap: 10px; border-radius: 11px; color: #42534d; background: #edf6f1; }
.calendar-hint > span { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--forest); background: #d5ecdf; }
.calendar-hint p { margin: 0; font-size: 11px; }
.calculator-advanced { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.calculator-advanced summary { padding: 13px 15px; cursor: pointer; color: #4d5a56; font-size: 11px; font-weight: 750; }
.calculator-advanced > div { padding: 2px 15px 14px; }
.calculator-advanced > div > p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.segmented--quiet { margin-bottom: 15px; background: #f4f6f4; }
.segmented--quiet span { min-height: 35px; font-size: 10px; }
.calculator-note { margin: 16px 0 0; color: var(--muted); font-size: 10px; }
.calculator-result { display: flex; padding: 31px; flex-direction: column; border-radius: var(--radius); color: white; background: linear-gradient(145deg,#173f3a,#24574f); box-shadow: 0 18px 50px rgba(24,63,57,.14); }
.calculator-result .eyebrow { color: var(--mint); }
.calculator-total { display: block; margin-top: 14px; font-family: Georgia, serif; font-size: clamp(36px,4vw,53px); font-weight: 500; letter-spacing: -.04em; }
.calculator-result > p { margin: -2px 0 24px; color: #a7c4ba; font-size: 11px; }
.result-callout { display: flex; margin-bottom: 13px; padding: 14px 15px; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid rgba(201,238,226,.18); border-radius: 12px; background: rgba(201,238,226,.08); }
.result-callout span { color: #b8cdc6; font-size: 10px; }
.result-callout strong { font-size: 12px; text-align: right; }
.calculation-lines { margin-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.calculation-lines > div { display: flex; padding: 13px 0; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); }
.calculation-lines span { color: #b7cbc4; font-size: 11px; }
.calculation-lines span small { margin-left: 4px; color: var(--mint); font-size: 9px; }
.calculation-lines strong { color: #fff; font-size: 12px; }
.calculation-lines .negative { color: #ffb6a8; }
.calculator-result .button { margin-top: auto; color: var(--forest); background: var(--mint); }
.legal-note { margin: 16px 3px 0; color: var(--muted); font-size: 10px; }

.settings-card { max-width: 760px; padding: 8px 26px; }
.settings-card > div { display: grid; padding: 20px 0; grid-template-columns: minmax(160px,1fr) 2fr; gap: 20px; border-bottom: 1px solid var(--line); }
.settings-card > div:last-child { border-bottom: 0; }
.settings-card span { color: var(--muted); font-size: 12px; }
.settings-card strong { font-size: 13px; }
.profile-settings-layout { display: grid; margin-bottom: 18px; grid-template-columns: minmax(320px,.8fr) minmax(420px,1.2fr); gap: 18px; }
.profile-settings-layout > .panel { min-width: 0; }
.profile-form { display: grid; margin-top: 22px; gap: 14px; }
.profile-form .field { margin: 0; }
.profile-form-actions { display: flex; justify-content: flex-end; }
.profile-account-tier { display: grid; padding: 14px 15px; gap: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.profile-account-tier > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.profile-account-tier > strong { font-size: 14px; }
.profile-account-tier > small { color: var(--muted); font-size: 10px; }
.profile-account-tier .button { width: max-content; margin-top: 9px; }
.profile-current-plan { display: flex; flex-direction: column; }
.profile-current-plan__summary { display: grid; margin: 23px 0 16px; padding: 17px; gap: 6px; border-radius: 14px; background: var(--mint-soft); }
.profile-current-plan__summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.profile-current-plan__summary strong { font-family: var(--font-display); font-size: 25px; font-weight: 500; }
.profile-current-plan__summary span { color: var(--forest-2); font-size: 12px; font-weight: 800; white-space: nowrap; }
.profile-current-plan__summary small { color: var(--muted); font-size: 10px; }
.profile-limit-list, .profile-plan-card__limits { display: grid; gap: 1px; }
.profile-limit-row { display: flex; min-width: 0; padding: 8px 0; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.profile-limit-row:last-child { border-bottom: 0; }
.profile-limit-row span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-limit-row b { color: var(--forest); font-size: 11px; white-space: nowrap; }
.profile-plans-panel .panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.profile-plan-grid { display: grid; margin-top: 22px; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.profile-plan-card { display: flex; min-width: 0; min-height: 310px; padding: 18px; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; background: var(--canvas); }
.profile-plan-card.is-current { border-color: #8fc3b2; background: var(--mint-soft); box-shadow: 0 0 0 3px rgba(67,151,123,.08); }
.profile-plan-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.profile-plan-card__heading > div { display: grid; min-width: 0; gap: 3px; }
.profile-plan-card__heading span:first-child { overflow: hidden; color: var(--forest-2); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.profile-plan-card__heading h3 { margin: 0; overflow: hidden; font-family: var(--font-display); font-size: 21px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.profile-plan-card__badge { padding: 5px 8px; flex: 0 0 auto; border-radius: 99px; color: var(--forest-2); background: var(--surface); font-size: 9px; font-weight: 800; }
.profile-plan-card__price { display: block; margin: 20px 0 12px; font-size: 17px; font-variant-numeric: tabular-nums; }
.profile-plan-card__limits { margin-bottom: 18px; }
.profile-plan-card > .button { width: 100%; margin-top: auto; }
.category-editor { margin-top: 20px; }
.category-editor .panel-heading p { max-width: 580px; margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.category-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.category-editor-grid > section { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfb; }
.category-group-heading { display: flex; margin-bottom: 8px; align-items: center; gap: 10px; }
.category-group-heading > div { display: grid; }
.category-group-heading strong { font-size: 13px; }
.category-group-heading small { color: var(--muted); font-size: 10px; }
.category-list { display: grid; }
.category-row { display: grid; min-height: 49px; padding: 8px 4px; grid-template-columns: 12px minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid #e8ece9; }
.category-row:last-child { border-bottom: 0; }
.category-row-color, .category-color { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(9,42,35,.08); }
.category-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.category-row > div { display: flex; gap: 7px; }
.category-action { padding: 4px; border: 0; color: var(--forest-2); background: transparent; font-size: 10px; font-weight: 750; }
.category-action:hover { text-decoration: underline; }
.category-action--danger { color: #9b5b51; }
.category-picker { position: relative; }
.category-picker-button { display: flex; width: 100%; min-height: 44px; padding: 10px 13px; align-items: center; gap: 10px; border: 1px solid #cbd6d1; border-radius: 11px; color: var(--ink); background: white; text-align: left; }
.category-picker-button:focus { outline: 0; border-color: #4fa58a; box-shadow: 0 0 0 3px rgba(79,165,138,.12); }
.category-picker-button b { min-width: 0; flex: 1; overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.category-picker-button i { color: var(--muted); font-style: normal; }
.category-color.empty { border: 1px dashed #9caaa5; background: transparent !important; box-shadow: none; }
.category-picker-menu { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; left: 0; max-height: 285px; padding: 6px; overflow-y: auto; border: 1px solid #cbd6d1; border-radius: 12px; background: white; box-shadow: 0 18px 42px rgba(14,44,38,.18); }
.category-picker-option, .category-picker-manage { display: flex; width: 100%; min-height: 39px; padding: 8px 9px; align-items: center; gap: 10px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; text-align: left; }
.category-picker-option:hover, .category-picker-option.active { background: var(--mint-soft); }
.category-picker-option b { min-width: 0; flex: 1; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.category-picker-option i { color: var(--forest-2); font-style: normal; font-weight: 900; }
.category-picker-manage { position: sticky; bottom: -6px; margin-top: 5px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--forest-2); background: white; font-size: 11px; font-weight: 800; }
.category-color-input { display: flex; min-height: 48px; padding: 7px 12px; align-items: center; gap: 12px; border: 1px solid #cbd6d1; border-radius: 11px; }
.category-color-input input { width: 35px; height: 31px; padding: 0; border: 0; border-radius: 8px; background: transparent; }
.category-color-input strong { font-size: 12px; letter-spacing: .04em; }
.segmented.is-disabled { opacity: .65; }

.prices-page-heading { margin-bottom: 20px; }
.prices-location-note {
  display: flex;
  margin-bottom: 30px;
  padding: 16px 18px;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid #e4d7aa;
  border-radius: 15px;
  color: #554b2c;
  background: #fff9e8;
}
.prices-location-note__icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: #745f19;
  background: #f6e7af;
  font-size: 17px;
  font-weight: 900;
}
.prices-location-note strong { display: block; font-size: 12px; }
.prices-location-note p { margin: 3px 0 0; color: #756b4c; font-size: 10px; line-height: 1.45; }
.price-sources-section, .price-watch-section { margin-bottom: 28px; }
.prices-section-heading {
  display: flex;
  margin-bottom: 14px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.prices-section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.prices-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.prices-section-heading > span { color: var(--muted); font-size: 10px; font-weight: 750; }
.price-source-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 9px;
}
.price-source-card {
  display: grid;
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  grid-template-columns: 32px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.72);
}
.price-source-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--forest);
  background: #e9f3ef;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.price-source-card__body { display: grid; min-width: 0; gap: 2px; }
.price-source-card__body strong, .price-source-card__body small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price-source-card__body strong { font-size: 11px; }
.price-source-card__body small { color: var(--muted); font-size: 8px; }
.price-source-status {
  grid-column: 2;
  justify-self: start;
  margin-top: -7px;
  font-size: 8px;
  font-weight: 800;
}
.price-source-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #9ea7a3; }
.price-source-status--ready { color: #28765f; }
.price-source-status--ready::before { background: #4ba989; box-shadow: 0 0 0 3px rgba(75,169,137,.1); }
.price-source-status--limited { color: #8a651d; }
.price-source-status--limited::before { background: #d5a43d; }
.price-source-status--checking { color: #65716c; }
.price-source-status--checking::before { background: #91a39c; animation: price-pulse 1s ease infinite alternate; }
.price-source-status--planned { color: #667b74; }
.price-source-status--planned::before { background: #9eb7ae; }
.price-source-status--unavailable { color: #946058; }
.price-source-status--unavailable::before { background: #cb7c70; }
@keyframes price-pulse { to { opacity: .35; } }

.price-search-panel { margin-bottom: 31px; }
.price-search-form .field { margin: 0; }
.price-search-control { position: relative; display: flex; align-items: center; gap: 9px; }
.price-search-control > span {
  position: absolute;
  z-index: 1;
  left: 15px;
  color: #6b7c76;
  font-size: 21px;
  pointer-events: none;
}
.price-search-control input {
  min-width: 0;
  min-height: 50px;
  padding-left: 44px;
  flex: 1;
  font-size: 14px;
}
.price-search-control .button { min-width: 128px; min-height: 50px; }
.price-search-meta { margin: 22px 0 12px; color: #46564f; font-size: 11px; font-weight: 750; }
.price-warning-list { display: grid; margin: 14px 0; gap: 7px; }
.price-warning-row {
  display: flex;
  padding: 9px 11px;
  align-items: flex-start;
  gap: 8px;
  border-radius: 10px;
  color: #755844;
  background: #fbf2e8;
}
.price-warning-row > span { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; background: #c28a5c; font-size: 9px; font-weight: 900; }
.price-warning-row p { margin: 1px 0 0; font-size: 10px; }
.price-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.price-offer-card {
  display: flex;
  min-width: 0;
  padding: 17px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfcfb;
}
.price-offer-card__heading, .price-offer-store { display: flex; align-items: center; gap: 8px; }
.price-offer-card__heading { min-height: 27px; justify-content: space-between; }
.price-offer-store { min-width: 0; }
.price-offer-store strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.price-offer-store__mark {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--forest);
  background: #e5f1ec;
  font-size: 8px;
  font-weight: 900;
}
.price-availability { flex: 0 0 auto; color: #7b8984; font-size: 8px; font-weight: 800; }
.price-availability--available, .price-availability--in_stock, .price-availability--yes { color: #278067; }
.price-availability--unavailable, .price-availability--out_of_stock, .price-availability--no { color: #a05d53; }
.price-offer-card h3 {
  display: -webkit-box;
  min-height: 38px;
  margin: 15px 0 4px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.45;
}
.price-offer-attributes { margin: -1px 0 4px; overflow: hidden; color: #566660; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.price-offer-location { margin: 0 0 16px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.price-offer-price { display: flex; margin-top: auto; align-items: center; flex-wrap: wrap; gap: 8px; }
.price-offer-price > strong { font-family: Georgia, serif; font-size: 25px; font-weight: 500; letter-spacing: -.025em; }
.price-type-badge { padding: 4px 7px; border-radius: 99px; color: #52635d; background: #edf1ef; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.price-type-badge--promo { color: #9c4337; background: #fae8e4; }
.price-type-badge--loyalty { color: #65501e; background: #fff1c5; }
.price-offer-details { display: flex; margin-top: 10px; flex-wrap: wrap; gap: 5px; }
.price-offer-detail { display: grid; min-width: 72px; padding: 6px 8px; gap: 1px; border-radius: 8px; background: #f0f3f1; }
.price-offer-detail small { color: var(--muted); font-size: 7px; }
.price-offer-detail b { font-size: 9px; }
.price-offer-checked { display: block; margin-top: 11px; color: #8b9692; font-size: 8px; }
.price-offer-actions { display: flex; margin-top: 12px; align-items: center; gap: 7px; }
.price-offer-actions .button { min-height: 34px; padding: 7px 10px; flex: 1; font-size: 9px; }
.price-offer-link { text-decoration: none; }
.price-search-empty { margin-top: 18px; padding-block: 38px; }

.price-watch-list { display: grid; gap: 10px; }
.price-watch-card {
  display: grid;
  min-width: 0;
  padding: 17px 18px;
  grid-template-columns: minmax(240px,1.4fr) minmax(240px,.8fr) minmax(270px,auto);
  align-items: center;
  gap: 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.price-watch-card--paused { opacity: .72; background: #f7f8f7; }
.price-watch-card__main { min-width: 0; }
.price-watch-card__top { display: flex; align-items: center; gap: 9px; }
.price-watch-source { overflow: hidden; color: var(--forest-2); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.price-watch-status { padding: 3px 6px; border-radius: 99px; color: #60716b; background: #edf2ef; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.price-watch-status--reached { color: #1f7359; background: #dff4eb; }
.price-watch-card h3 { margin: 7px 0 5px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.price-watch-attributes { display: block; margin: -2px 0 5px; color: #566660; font-size: 8px; }
.price-watch-meta { display: flex; color: var(--muted); flex-wrap: wrap; gap: 5px 13px; font-size: 8px; }
.price-watch-error { display: block; margin-top: 6px; overflow: hidden; color: #a15d53; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.price-watch-prices {
  display: grid;
  min-width: 0;
  padding: 0 18px;
  grid-template-columns: minmax(90px,auto) minmax(130px,1fr);
  align-items: end;
  gap: 12px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.price-watch-prices > small { grid-column: 1; color: var(--muted); font-size: 8px; }
.price-watch-prices > strong { grid-column: 1; font-size: 16px; }
.price-target-field { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.price-target-field span { font-size: 8px; }
.price-target-field input { min-height: 36px; padding: 8px 10px; font-size: 10px; }
.price-watch-actions { display: flex; min-width: 0; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.price-watch-actions .button { min-height: 32px; padding: 6px 9px; font-size: 8px; }
.price-watch-remove { padding: 5px; border: 0; color: #9b5b51; background: transparent; font-size: 8px; font-weight: 800; }
.price-watch-remove:hover { text-decoration: underline; }
.price-watch-empty { padding-block: 40px; border: 1px dashed var(--line); border-radius: 17px; background: rgba(255,255,255,.45); }

.shopping-page-heading { margin-bottom: 22px; }
.button-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.public-wishlist {
  min-height: 100vh;
  background: var(--canvas);
}
.public-wishlist__header {
  display: flex;
  min-height: 78px;
  padding: 18px clamp(22px, 5vw, 72px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
}
.public-wishlist__main {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 42px 0 70px;
}
.public-wishlist-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.public-wishlist-filters__heading {
  display: grid;
  grid-column: 1 / -1;
  gap: 3px;
}
.public-wishlist-filters__heading strong { font-size: 15px; }
.public-wishlist-filters__heading span { color: var(--muted); font-size: 12px; }
.public-wishlist-filters .field { margin: 0; }
.public-wishlist-search-field { grid-column: 1 / -1; }
.public-wishlist-price-field { grid-column: 1 / -1; width: min(100%, 430px); }
.public-wishlist__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.public-theme-control {
  display: flex;
  min-height: 44px;
  padding: 5px 7px 5px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 750;
}
.public-theme-control select {
  min-height: 32px;
  padding: 4px 28px 4px 8px;
  border: 0;
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: var(--canvas);
  font-weight: 750;
}
.public-wishlist__auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.public-wishlist__user {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--forest);
  background: var(--surface);
  font-size: 13px;
  font-weight: 850;
}
.public-wishlist-card--reserved { opacity: .76; }
.wishlist-reserved {
  width: 100%;
  color: #8b5a4f;
  font-weight: 850;
}
.wishlist-reserved--mine { color: var(--forest-2); }
.shopping-summary {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.wishlist-listbar {
  display: grid;
  grid-template-columns: minmax(260px, 420px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.wishlist-listbar .field { margin: 0; }
.shopping-summary--detail { grid-template-columns: repeat(4, minmax(0,1fr)); }
.shopping-summary article {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.shopping-summary span, .shopping-summary small { display: block; color: var(--muted); font-size: 11px; }
.shopping-summary strong {
  display: block;
  margin: 10px 0 2px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 520;
  letter-spacing: -.025em;
}
.shopping-toolbar {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wishlist-search-field {
  position: relative;
  display: block;
  margin: 0 0 14px;
}
.wishlist-search-field > span {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  color: var(--muted);
  font-size: 21px;
  line-height: 1;
  transform: translateY(-52%);
  pointer-events: none;
}
.wishlist-search-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px 10px 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
}
.wishlist-search-field input:focus {
  border-color: var(--mint-dark);
  outline: 3px solid rgba(84,176,145,.12);
}
.wishlist-toolbar-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.wishlist-compact-filter {
  display: grid;
  gap: 4px;
  min-width: 170px;
}
.wishlist-compact-filter span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wishlist-compact-filter select {
  width: 100%;
  min-height: 42px;
  padding: 7px 32px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.wishlist-price-filter { min-width: 215px; }
.wishlist-compact-filter__control {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
  gap: 6px;
}
.wishlist-inline-actions {
  display: flex;
  gap: 3px;
}
.wishlist-inline-actions button {
  display: grid;
  width: 29px;
  height: 29px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--forest);
  background: var(--surface);
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
}
.wishlist-inline-actions button:hover:not(:disabled) {
  border-color: var(--forest-2);
  background: var(--mint-soft);
}
.wishlist-inline-actions button:disabled { cursor: default; opacity: .35; }
.wishlist-inline-actions .wishlist-inline-actions__danger { color: var(--danger); }
.wishlist-category-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 18px 0 8px;
}
.wishlist-category-create .field { margin: 0; }
.wishlist-category-manager {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.wishlist-category-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}
.wishlist-category-row .field { margin: 0; }
.wishlist-category-count {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.wishlist-category-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shopping-filter {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #edf2ef;
}
.shopping-filter button {
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}
.shopping-filter button.active { color: var(--forest); background: var(--surface); box-shadow: 0 3px 10px rgba(22,56,49,.08); }
.wishlist-grid, .purchase-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.wishlist-card {
  display: flex;
  min-height: 310px;
  padding: 19px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.wishlist-card--purchased { opacity: .74; }
.wishlist-card__top, .purchase-plan-card__top {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wishlist-priority, .product-monitor, .purchase-item-status {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wishlist-priority { color: #65716c; background: #edf2ef; }
.wishlist-priority--high { color: #9d4d42; background: #fae8e4; }
.wishlist-priority--low { color: #65716c; background: #f2f4f3; }
.product-monitor--active { color: #217159; background: #dff4eb; }
.product-monitor--manual { color: #86651e; background: #f8f0d9; }
.product-monitor--error { color: #9b5248; background: #fae8e5; }
.product-monitor--paused { color: #566660; background: #e7ece9; }
.wishlist-card__media {
  position: relative;
  display: grid;
  height: 170px;
  margin-top: 14px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #f5f7f5;
  text-decoration: none;
}
.wishlist-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.wishlist-card__media-fallback { padding: 12px; font-size: 12px; text-align: center; }
.wishlist-card__source {
  position: absolute;
  right: 9px;
  bottom: 9px;
  max-width: calc(100% - 18px);
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 99px;
  color: #2e4841;
  background: rgba(255,255,255,.9);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wishlist-card h3 { margin: 14px 0 7px; font-size: 16px; line-height: 1.3; }
.wishlist-card__notes {
  display: -webkit-box;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.wishlist-card__price { display: grid; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.wishlist-card__price span { color: var(--muted); font-size: 11px; }
.wishlist-card__price strong { margin-top: 3px; font-size: 21px; }
.wishlist-card__meta { display: flex; margin: 10px 0 14px; color: var(--muted); flex-wrap: wrap; gap: 5px 12px; font-size: 11px; }
.shopping-monitor-detail { width: 100%; color: #8d5b4f; line-height: 1.35; }
.wishlist-card__actions, .purchase-item-row__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.wishlist-card__actions .button, .purchase-item-row__actions .button { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.shopping-remove { padding: 6px; border: 0; color: #9b5b51; background: transparent; font-size: 11px; font-weight: 800; }
.shopping-remove:hover { text-decoration: underline; }
.shopping-empty { margin-top: 10px; padding-block: 50px; border: 1px dashed var(--line); border-radius: 18px; background: rgba(255,255,255,.4); }

.purchase-plan-card {
  display: flex;
  min-height: 285px;
  padding: 20px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.purchase-plan-card:hover { transform: translateY(-2px); border-color: #8dc5b2; box-shadow: 0 12px 30px rgba(26,68,59,.08); }
.purchase-plan-card:focus-visible { outline: 3px solid rgba(88,174,145,.32); outline-offset: 2px; }
.purchase-plan-card__top > span:last-child { color: var(--muted); font-size: 11px; }
.purchase-plan-card h3 { margin: 16px 0 5px; font-family: var(--font-display); font-size: 22px; font-weight: 520; }
.purchase-plan-card > p {
  display: -webkit-box;
  min-height: 32px;
  margin: 0 0 15px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.purchase-plan-card__totals, .purchase-plan-card__budget {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.purchase-plan-card__totals span, .purchase-plan-card__budget span { color: var(--muted); font-size: 11px; }
.purchase-plan-card__totals strong { font-size: 19px; }
.purchase-plan-card__budget { margin-top: 6px; }
.purchase-plan-card__budget strong { font-size: 11px; }
.purchase-plan-card__progress, .purchase-plan-progress {
  height: 6px;
  margin: auto 0 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7ece9;
}
.purchase-plan-card__progress i, .purchase-plan-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #58ae91;
  transition: width .25s ease;
}
.purchase-plan-card__footer { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.purchase-plan-card__footer strong { color: var(--forest-2); }

.purchase-plan-detail {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.purchase-plan-detail__heading {
  display: flex;
  margin-bottom: 21px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.purchase-plan-detail__heading .text-button { display: block; margin-bottom: 18px; }
.purchase-plan-detail__heading h2 { margin: 0; font-family: var(--font-display); font-size: 32px; font-weight: 520; }
.purchase-plan-detail__heading p { margin: 4px 0 0; color: var(--muted); }
.purchase-plan-progress { margin: -5px 0 20px; }
.purchase-item-list { display: grid; gap: 9px; }
.purchase-item-row {
  display: grid;
  min-height: 118px;
  padding: 16px;
  grid-template-columns: minmax(220px,1fr) minmax(160px,.42fr) minmax(220px,.7fr);
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faf8;
}
.purchase-item-row--purchased { opacity: .74; }
.purchase-item-row__badges { display: flex; margin-bottom: 7px; flex-wrap: wrap; gap: 6px; }
.purchase-item-status { color: #68736f; background: #e9eeeb; }
.purchase-item-row--purchased .purchase-item-status { color: #217159; background: #dff4eb; }
.purchase-item-row h3 { margin: 0; font-size: 13px; }
.purchase-item-row__main > p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.purchase-item-row__main > .shopping-monitor-detail { color: #8d5b4f; }
.purchase-item-row__price { display: grid; padding-left: 16px; border-left: 1px solid var(--line); }
.purchase-item-row__price span, .purchase-item-row__price small { color: var(--muted); font-size: 11px; }
.purchase-item-row__price strong { margin: 3px 0; font-size: 16px; }
.purchase-item-row__actions { justify-content: flex-end; }

.modal-card--price-history { width: min(680px, calc(100vw - 28px)); }
.price-history-summary { display: grid; margin: 20px 0 13px; grid-template-columns: repeat(3,1fr); gap: 8px; }
.price-history-summary > div { display: grid; padding: 12px; gap: 3px; border-radius: 11px; background: #f1f5f3; }
.price-history-summary span { color: var(--muted); font-size: 8px; }
.price-history-summary strong { font-size: 13px; }
.price-history-loading { display: block; padding: 18px; color: var(--muted); text-align: center; }
.price-history-list { display: grid; max-height: min(440px, 52vh); overflow-y: auto; gap: 7px; }
.price-history-row {
  display: grid;
  padding: 10px 12px;
  grid-template-columns: minmax(130px,.8fr) minmax(110px,1fr) minmax(92px,auto);
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.price-history-row__date, .price-history-row__price { display: grid; gap: 2px; }
.price-history-row__date strong, .price-history-row__price strong { font-size: 10px; }
.price-history-row__date small, .price-history-row__price small { overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.price-history-row__price { text-align: right; }
.price-history-bar { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #e8eeeb; }
.price-history-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#79c3aa,#41987b); }

.coming-card { display: grid; min-height: 500px; padding: 60px 24px; place-items: center; align-content: center; border: 1px dashed #c8d3ce; border-radius: 28px; background: rgba(255,255,255,.55); text-align: center; }
.coming-icon { display: grid; width: 65px; height: 65px; margin-bottom: 24px; place-items: center; border-radius: 20px; color: var(--forest); background: var(--mint); font-size: 28px; }
.coming-card h1 { margin: 0 0 9px; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.coming-card p { max-width: 540px; margin: 0 0 25px; color: var(--muted); }

.modal { max-width: none; padding: 0; border: 0; background: transparent; }
.modal::backdrop { background: rgba(10,28,25,.56); backdrop-filter: blur(4px); }
.modal-card { width: min(520px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 27px; overflow: auto; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.modal-card--small { width: min(470px, calc(100vw - 28px)); }
.modal-card--wide { width: min(860px, calc(100vw - 28px)); }
.modal-card--debt-detail { width: min(1120px, calc(100vw - 28px)); }
.modal-card--salary-income { width: min(660px, calc(100vw - 28px)); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.modal-card > p { margin: 10px 0 23px; color: var(--muted); font-size: 13px; }
.modal-actions { display: flex; margin-top: 26px; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.salary-income-current {
  display: grid;
  margin: 14px 0 18px;
  padding: 15px 17px;
  grid-template-columns: 1fr auto;
  gap: 3px 18px;
  border: 1px solid #cde2da;
  border-radius: 13px;
  background: #f0f8f5;
}
.salary-income-current > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.salary-income-current > strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}
.salary-income-current > small { color: var(--muted); font-size: 10px; }
.salary-income-fields { align-items: start; }
.salary-income-fields .field { margin-bottom: 0; }
.salary-income-effective-note {
  margin: -2px 0 0 !important;
  color: var(--muted);
  font-size: 10px !important;
  line-height: 1.45;
}
.salary-income-history {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.salary-income-history > div:first-child {
  display: grid;
  margin-bottom: 9px;
  gap: 2px;
}
.salary-income-history > div:first-child strong { font-size: 12px; }
.salary-income-history > div:first-child span {
  color: var(--muted);
  font-size: 10px;
}
#salary-income-history-list { display: grid; gap: 7px; }
.salary-income-history-row {
  display: flex;
  width: 100%;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d9e4df;
  border-radius: 10px;
  color: var(--forest);
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.salary-income-history-row:hover { border-color: #86bea9; background: #f7fbf9; }
.salary-income-history-row.is-base {
  color: var(--muted);
  background: #f6f8f7;
  cursor: default;
}
.salary-income-history-row span { font-size: 11px; }
.salary-income-history-row strong { font-size: 12px; }
.choice-grid { display: grid; margin: 8px 0 22px; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card { position: relative; display: grid; padding: 17px; cursor: pointer; border: 1px solid var(--line); border-radius: 14px; }
.choice-card:has(input:checked) { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(33,87,79,.09); }
.choice-card input { position: absolute; opacity: 0; }
.choice-icon { display: grid; width: 34px; height: 34px; margin-bottom: 12px; place-items: center; border-radius: 10px; color: var(--forest); background: var(--mint-soft); }
.choice-card strong { font-size: 13px; }
.choice-card small { color: var(--muted); }
.invite-result { margin-top: 20px; padding: 16px; border-radius: 13px; background: var(--mint-soft); }
.invite-result > span { display: block; margin-bottom: 8px; color: var(--forest); font-size: 12px; font-weight: 800; }
.invite-result > div { display: flex; gap: 8px; }
.invite-result input { min-width: 0; padding: 10px; flex: 1; border: 1px solid #bdd9d0; border-radius: 9px; background: white; font-size: 11px; }
.invite-result small { display: block; margin-top: 7px; color: #60736c; }
.wishlist-share-list,
.wishlist-share-create { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fbfdfc; }
.wishlist-share-create { background: #fff; }
.wishlist-share-list .section-heading,
.wishlist-share-create .section-heading { align-items: flex-end; margin-bottom: 12px; }
.wishlist-share-list .section-heading h3,
.wishlist-share-create .section-heading h3 { margin: 3px 0 0; font-size: 22px; }
.wishlist-share-list .section-heading small { max-width: 310px; color: var(--muted); text-align: right; }
.wishlist-share-list__items { display: grid; gap: 10px; }
.wishlist-share-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.wishlist-share-row--revoked { opacity: .68; background: #f7faf8; }
.wishlist-share-row__main { display: grid; gap: 4px; min-width: 0; }
.wishlist-share-row__main strong { color: var(--forest); font-size: 14px; }
.wishlist-share-row__main span,
.wishlist-share-row__main small { color: var(--muted); font-size: 11px; }
.wishlist-share-status { padding: 6px 9px; border-radius: 99px; color: #8a625a; background: #f5e8e5; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.wishlist-share-status--active { color: #1f7258; background: #def4eb; }
.wishlist-share-row__actions { display: flex; justify-content: flex-end; gap: 8px; }
.button--small { min-height: 34px; padding: 8px 12px; border-radius: 10px; font-size: 12px; }

.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: flex; max-width: min(420px, calc(100vw - 48px)); padding: 14px 17px; align-items: center; gap: 11px; border-radius: 13px; color: white; background: #173f3a; box-shadow: var(--shadow); animation: toast-in .25s ease-out; }
.toast > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--forest); background: var(--mint); font-size: 11px; font-weight: 900; }
.toast p { margin: 0; font-size: 13px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 1050px) {
  .account-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transaction-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .transaction-filter--search,
  .transaction-filter--period { grid-column: span 2; }
  .profile-settings-layout { grid-template-columns: 1fr; }
  .profile-plan-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .summary-grid { grid-template-columns: 1.2fr 1fr; }
  .summary-card--hero { grid-row: span 2; }
  .content-grid { grid-template-columns: 1fr; }
  .team-preview { min-height: auto; }
  .analytics-grid { grid-template-columns: 1fr; }
  .calculator-layout { grid-template-columns: 1fr; }
  .calculator-result { min-height: 430px; }
  .price-source-grid { grid-template-columns: repeat(3, minmax(150px,1fr)); }
  .price-result-grid { grid-template-columns: 1fr 1fr; }
  .price-watch-card { grid-template-columns: minmax(220px,1fr) minmax(220px,1fr); }
  .price-watch-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 11px; border-top: 1px solid var(--line); }
  .wishlist-grid, .purchase-plan-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shopping-summary--detail { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .purchase-item-row { grid-template-columns: minmax(220px,1fr) minmax(150px,.55fr); }
  .purchase-item-row__actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 10px; border-top: 1px solid var(--line); }
  .strategy-summary { grid-template-columns: 1fr 1fr; }
  .strategy-insights { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-panel { padding: 30px 22px; }
  .mobile-brand { display: flex; }
  .sidebar { transform: translateX(-102%); box-shadow: 18px 0 50px rgba(9,31,27,.25); transition: transform .23s ease; }
  .sidebar.open { transform: none; }
  .sidebar-close, .menu-button { display: grid; }
  .sidebar-backdrop { position: fixed; z-index: 25; inset: 0; display: block; background: rgba(8,25,22,.45); }
  .workspace-main { margin-left: 0; }
  .topbar { padding-inline: 20px; justify-content: flex-start; }
  .topbar-actions { margin-left: auto; }
  .topbar-actions .button--soft { display: none; }
  .role-help { grid-template-columns: 1fr 1fr; }
  .debt-detail-payment { grid-template-columns: 1fr; gap: 10px; }
  .debt-detail-payment__editor { grid-template-columns: 1fr 1fr; }
  .debt-detail-payment__actions { justify-content: flex-start; }
  .price-source-grid { grid-template-columns: repeat(2, minmax(145px,1fr)); }
  .shopping-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .purchase-plan-detail__heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .public-wishlist-filters { grid-template-columns: 1fr; }
  .account-strip { grid-template-columns: 1fr; }
  .transaction-filters { grid-template-columns: 1fr auto; }
  .transaction-filter,
  .transaction-filter--search,
  .transaction-filter--period { grid-column: 1 / -1; }
  .transaction-filter-reset { grid-column: 2; }
  .profile-plan-grid { grid-template-columns: 1fr; }
  .profile-current-plan__summary > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .auth-heading h2 { font-size: 32px; }
  .page { padding: 30px 16px 50px; }
  .topbar { min-height: 70px; padding-inline: 12px; gap: 8px; }
  .workspace-picker { min-width: 0; flex: 1; }
  .workspace-picker > div { min-width: 0; }
  .workspace-picker select { width: 100%; max-width: 190px; }
  .workspace-picker__label { display: none; }
  .topbar-actions .button { width: 42px; min-height: 42px; padding: 0; overflow: hidden; white-space: nowrap; font-size: 0; }
  .topbar-actions .button span { font-size: 20px; }
  .limited-account-banner {
    margin: 12px 12px 0;
    align-items: stretch;
    flex-direction: column;
  }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card { min-height: 160px; padding: 19px; }
  .summary-card--hero { min-height: 185px; grid-column: 1 / -1; grid-row: auto; }
  .summary-card > strong { font-size: 25px; }
  .summary-card > span { margin-top: 14px; }
  .panel { padding: 20px; }
  .panel-heading { align-items: flex-start; }
  .debt-detail-summary { grid-template-columns: 1fr 1fr; }
  .debt-detail-payment__amounts { grid-template-columns: 1fr 1fr; }
  .debt-detail-payment__editor { grid-template-columns: 1fr; }
  .debt-detail-autosave { text-align: left; }
  .debt-detail-chart-card, .debt-detail-schedule-section { padding: 12px; }
  .checklist-item { grid-template-columns: 29px minmax(0,1fr); }
  .checklist-item > button, .checklist-item > em { grid-column: 2; justify-self: start; }
  .member-table-head { display: none; }
  .member-row { grid-template-columns: minmax(0,1fr) auto; }
  .member-status { display: none; }
  .role-help { grid-template-columns: 1fr; }
  .planner-summary { grid-template-columns: 1fr 1fr; }
  .planner-summary article:first-child { grid-column: 1 / -1; }
  #view-planner > .page-heading > .button { width: 100%; }
  .planner-mode-bar {
    margin-top: 0;
    padding: 13px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .planner-mode-bar__label { padding-inline: 3px; }
  .planner-mode-toggle { width: 100%; flex-basis: auto; }
  .strategy-manager-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .strategy-manager-row__actions { justify-content: flex-start; flex-wrap: wrap; }
  .strategy-manager-heading { align-items: flex-start; }
  .strategy-toolbar { align-items: stretch; flex-wrap: wrap; }
  .strategy-month-navigation { width: 100%; }
  .strategy-period-setting { width: 100%; justify-content: space-between; }
  .strategy-period-setting select { flex: 1; }
  .strategy-direction-switch { display: grid; width: 100%; margin-left: 0; grid-template-columns: 1fr 1fr; }
  .strategy-template-open { width: 100%; }
  .strategy-save-status { width: 100%; min-height: 15px; text-align: left; }
  .strategy-summary { grid-template-columns: 1fr 1fr; }
  .strategy-summary article { min-height: 104px; padding: 15px; }
  .strategy-summary strong { font-size: 21px; }
  .strategy-insight { grid-template-columns: 9px minmax(0, 1fr); }
  .strategy-insight .button { grid-column: 2; justify-self: start; }
  .strategy-table-panel { margin-inline: -4px; }
  .strategy-table-heading { align-items: flex-start; flex-direction: column; padding: 19px 18px 11px; }
  .strategy-table-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .strategy-table-actions .strategy-template-open { width: 100%; }
  .strategy-table-note { padding: 0 18px 15px; }
  .strategy-table .strategy-category { width: 160px; min-width: 160px; max-width: 160px; }
  .strategy-table .strategy-total {
    position: static;
    width: 128px;
    min-width: 128px;
    max-width: 128px;
    box-shadow: none;
  }
  .strategy-table th, .strategy-table td {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    padding: 7px;
  }
  .strategy-table .strategy-month-group {
    width: 184px;
    min-width: 184px;
    max-width: 184px;
  }
  .strategy-table .strategy-half-heading,
  .strategy-table.strategy-table--halves tbody td:not(.strategy-total) {
    width: 92px;
    min-width: 92px;
    max-width: 92px;
  }
  .strategy-table.strategy-table--editor { min-width: 650px; }
  .strategy-table.strategy-table--editor.strategy-table--halves { min-width: 940px; }
  .strategy-table.strategy-table--editor.strategy-table--mixed { min-width: 990px; }
  .strategy-table--editor .strategy-category {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
  }
  .strategy-row-detail-content { grid-template-columns: 1fr; }
  .strategy-operation-detail { grid-template-columns: 66px minmax(0, 1fr) auto; }
  .strategy-child-detail {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .strategy-child-detail span:last-child { grid-column: 2; }
  .strategy-template-section__heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .analytics-summary { grid-template-columns: 1fr; }
  .calendar-toolbar { align-items: flex-start; flex-direction: column; }
  .calendar-actions { width: 100%; }
  .toggle-field { margin-right: auto; }
  .toggle-field b { display: none; }
  .calendar-day { min-height: 82px; padding: 5px; }
  .calendar-day-number { margin-bottom: 4px; font-size: 10px; }
  .calendar-event { display: block; padding: 4px; }
  .calendar-event-title, .calendar-event-detail { display: none; }
  .calendar-event-amount { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 9px; text-align: center; white-space: nowrap; }
  .monthly-chart { height: 220px; gap: 7px; }
  .transaction-row { grid-template-columns: minmax(0,1fr) auto; }
  .transaction-account, .transaction-date { display: none; }
  .plan-row { grid-template-columns: 54px minmax(0,1fr) auto; gap: 10px; }
  .plan-repeat, .plan-row > .transaction-amount { display: none; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .transfer-route { grid-template-columns: 1fr; }
  .transfer-route > span { margin: -5px auto 5px; transform: rotate(90deg); }
  .calculator-tabs { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .calculator-tabs button { min-width: 0; }
  .calculator-form, .calculator-result { padding: 22px; }
  .settings-card > div { grid-template-columns: 1fr; gap: 4px; }
  .category-editor-grid { grid-template-columns: 1fr; }
  .category-editor .panel-heading { gap: 14px; }
  .category-row { grid-template-columns: 12px minmax(0,1fr); }
  .category-row > div { grid-column: 2; }
  .savings-account-option { grid-template-columns: 1fr 1fr; }
  .savings-account-option__choice { grid-column: 1 / -1; }
  .debt-plan-date-editor { grid-template-columns: 1fr; }
  .debt-plan-picker__heading { align-items: stretch; flex-direction: column; }
  .debt-plan-picker__heading .button { width: 100%; }
  .debt-plan-picker__actions { display: grid; width: 100%; }
  .debt-plan-picker__legend { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .debt-plan-picker__legend b { transform: rotate(90deg); }
  .debt-schedule-row__fields { grid-template-columns: 1fr; }
  .savings-accounts-heading { align-items: flex-start; flex-direction: column; }
  .all-account-row { grid-template-columns: 1fr; }
  .all-account-row__actions { max-width: none; justify-content: flex-start; }
  .credit-account-preview,
  .account-interest-preview { grid-template-columns: 1fr; }
  .credit-debt-detail { grid-template-columns: 1fr 1fr; }
  .prices-page-heading .button { width: 100%; }
  .prices-location-note { padding: 14px; }
  .prices-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .price-source-grid, .price-result-grid { grid-template-columns: 1fr; }
  .price-source-card { grid-template-columns: 32px minmax(0,1fr) auto; }
  .price-source-status { grid-column: 3; grid-row: 1; margin: 0; }
  .price-search-panel { padding: 16px; }
  .price-search-control { align-items: stretch; flex-direction: column; }
  .price-search-control > span { top: 13px; }
  .price-search-control .button { width: 100%; }
  .price-watch-card { grid-template-columns: 1fr; gap: 14px; }
  .price-watch-prices { padding: 13px 0 0; border: 0; border-top: 1px solid var(--line); }
  .price-watch-actions { grid-column: auto; }
  .price-watch-actions .button { flex: 1; }
  .public-wishlist__header { align-items: flex-start; flex-direction: column; }
  .public-wishlist__actions { width: 100%; align-items: stretch; justify-content: flex-start; }
  .public-theme-control { width: 100%; justify-content: space-between; }
  .public-wishlist__auth { justify-content: flex-start; }
  .public-wishlist__main { width: min(100% - 28px, 1240px); padding-top: 26px; }
  .button-row { justify-content: flex-start; }
  .shopping-page-heading .button { width: 100%; }
  .shopping-toolbar { align-items: stretch; flex-direction: column; }
  .wishlist-toolbar-actions { align-items: stretch; justify-content: stretch; }
  .wishlist-compact-filter { flex: 1 1 180px; }
  .wishlist-category-create,
  .wishlist-category-row { grid-template-columns: 1fr; align-items: stretch; }
  .wishlist-category-row__actions .button { flex: 1; }
  .shopping-filter { width: 100%; overflow-x: auto; }
  .shopping-filter button { flex: 1 0 auto; }
  .wishlist-grid, .purchase-plan-grid, .shopping-summary, .shopping-summary--detail { grid-template-columns: 1fr; }
  .wishlist-card { min-height: 280px; }
  .purchase-plan-detail { padding: 16px; }
  .purchase-plan-detail__heading .heading-actions { width: 100%; }
  .purchase-item-row { grid-template-columns: 1fr; }
  .purchase-item-row__price { padding: 11px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .purchase-item-row__actions { grid-column: auto; }
  .purchase-item-row__actions .button { flex: 1; }
  .price-history-summary { grid-template-columns: 1fr 1fr; }
  .price-history-summary > div:last-child { grid-column: 1 / -1; }
  .price-history-row { grid-template-columns: minmax(100px,1fr) minmax(75px,.8fr) auto; gap: 8px; }
  .choice-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 22px; }
  .invite-result > div { flex-direction: column; }
}

.brand-mark,
.auth-story h1,
.auth-heading h2,
.page-heading h1,
.summary-card > strong,
.panel-heading h2,
.savings-accounts-heading > strong,
.debt-dialog-totals strong,
.debt-detail-chart-card h3,
.debt-detail-schedule-section h3,
.balance-current strong,
.savings-recommendation strong,
.empty-state > strong,
.planner-summary strong,
.strategy-table-heading h2,
.plan-date strong,
.calendar-toolbar h2,
.analytics-summary strong,
.calculator-total,
.prices-section-heading h2,
.price-offer-price > strong,
.coming-card h1,
.modal-heading h2 {
  font-family: var(--font-display);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .workspace-main,
html[data-theme="dark"] .auth-screen,
html[data-theme="dark"] .auth-panel {
  color: var(--ink);
  background: var(--canvas);
}
html[data-theme="dark"] .sidebar { color: #dcebe5; background: #0d2a25; }
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .public-wishlist__header,
html[data-theme="dark"] .limited-account-banner,
html[data-theme="dark"] dialog,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .summary-card:not(.summary-card--hero),
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .planner-summary article,
html[data-theme="dark"] .analytics-summary article,
html[data-theme="dark"] .strategy-toolbar,
html[data-theme="dark"] .strategy-table,
html[data-theme="dark"] .calendar-day,
html[data-theme="dark"] .calculator-form,
html[data-theme="dark"] .calculator-result,
html[data-theme="dark"] .category-editor-grid > section,
html[data-theme="dark"] .price-watch-card,
html[data-theme="dark"] .shopping-summary article,
html[data-theme="dark"] .wishlist-card,
html[data-theme="dark"] .purchase-plan-card,
html[data-theme="dark"] .purchase-plan-detail {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}
html[data-theme="dark"] :is(
  .savings-interest,
  .savings-account-option,
  .account-block-preview > div,
  .accounts-block-row,
  .all-account-row,
  .credit-account-fields,
  .account-interest-fields,
  .block-choice-list > button,
  .goal-forecast,
  .savings-member,
  .savings-goal-modal-forecast,
  .debt-card-totals span,
  .debt-dialog-row,
  .debt-plan-picker,
  .debt-plan-date-editor,
  .debt-schedule-row,
  .debt-detail-summary article,
  .debt-detail-chart-card,
  .debt-detail-schedule-section,
  .debt-detail-payment,
  .debt-detail-payment__metric,
  .early-repayment-toggle,
  .early-repayment-fields,
  .early-repayment-result article,
  .technical-account-panel,
  .strategy-mode-switch,
  .strategy-profile-strip,
  .strategy-manager-row,
  .strategy-inclusion-option,
  .strategy-composition-empty,
  .strategy-insight,
  .strategy-row-detail-content,
  .strategy-child-detail,
  .strategy-operation-detail,
  .salary-schedule-card,
  .calendar-group-item,
  .calculator-advanced,
  .segmented,
  .calculator-tabs,
  .category-picker-button,
  .category-picker-menu,
  .price-history-summary > div,
  .price-offer-detail,
  .shopping-filter,
  .purchase-item-row
) {
  color: var(--ink);
  border-color: var(--line);
  background: #202a27;
}
html[data-theme="dark"] .shopping-empty {
  border-color: var(--line);
  background: rgba(31,42,39,.72);
}
html[data-theme="dark"] .wishlist-card__media {
  border-color: var(--line);
  background: #202a27;
}
html[data-theme="dark"] :is(
  .purchase-plan-card__progress,
  .purchase-plan-progress
) { background: #34413d; }
html[data-theme="dark"] :is(
  .wishlist-priority,
  .product-monitor,
  .purchase-item-status
) {
  border: 1px solid rgba(255,255,255,.08);
  background: #2b3733;
}
html[data-theme="dark"] .product-monitor--active {
  color: #9be1c9;
  background: #24483c;
}
html[data-theme="dark"] .product-monitor--error,
html[data-theme="dark"] .wishlist-priority--high {
  color: #efb4aa;
  background: #50332f;
}
html[data-theme="dark"] :is(
  .field input,
  .field select,
  .field textarea,
  .money-input-shell,
  .account-block-placement,
  .all-account-row__actions button,
  .strategy-plan-input,
  .strategy-table input,
  .strategy-table select,
  .category-picker-menu,
  .invite-result input,
  .transaction-filter input,
  .transaction-filter select
) {
  color: var(--ink);
  border-color: #40504b;
  background: #151d1b;
}
html[data-theme="dark"] :is(
  .field input[readonly],
  .button--ghost,
  .segmented input:checked + span,
  .calculator-tabs button.active,
  .strategy-direction-switch button.active,
  .category-picker-manage
) {
  color: var(--ink);
  border-color: var(--line);
  background: #26322f;
}
html[data-theme="dark"] :is(
  .field > span,
  .strategy-table,
  .transaction-main strong,
  .plan-main strong,
  .account-card__head,
  .calendar-day-number
) { color: var(--ink); }
html[data-theme="dark"] :is(
  .strategy-table thead th,
  .strategy-table thead .strategy-category,
  .strategy-table tbody th,
  .strategy-table td,
  .strategy-table td.period-current,
  .strategy-table td.period-future,
  .strategy-nested-category-row > td,
  .strategy-operation-table-row > td,
  .strategy-operation-table-row--planned > td,
  .strategy-operation-table-row--actual > td
) {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface) !important;
}
html[data-theme="dark"] .calendar-day.outside { background: #151c1a; }
html[data-theme="dark"] .account-card--add {
  color: var(--forest-2);
  border-color: #4d6d63;
  background: rgba(31, 45, 41, .8);
}
html[data-theme="dark"] .auth-story {
  background:
    radial-gradient(circle at 15% 88%, rgba(135, 211, 185, .14), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(239, 190, 112, .08), transparent 26%),
    linear-gradient(145deg, #09221e 0%, #10342e 58%, #16443b 100%);
}
html[data-theme="dark"] .modal-backdrop { background: rgba(2, 7, 6, .74); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.auth-help-row {
  display: flex;
  justify-content: flex-end;
  margin: -0.35rem 0 0.65rem;
}

/* Financial command center */
.command-center-status {
  display: grid;
  margin-bottom: 14px;
  padding: 13px 17px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.command-center-status__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4fa989;
  box-shadow: 0 0 0 5px rgba(79,169,137,.12);
}
.command-center-status > div { display: grid; gap: 1px; }
.command-center-status strong { font-size: 13px; }
.command-center-status p,
.command-center-status > span:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.command-center-status--attention .command-center-status__mark {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(229,168,67,.14);
}
.command-center-status--critical .command-center-status__mark {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(181,71,71,.13);
}
.command-center-summary {
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
}
.command-center-summary .summary-card {
  min-height: 178px;
}
.summary-card__foot {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  display: flex;
  padding-top: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #bad2ca;
  font-size: 11px;
}
.summary-card__foot b { color: #fff; font-size: 12px; }
.command-center-net-worth > span { margin-top: 54px; }
.command-center-grid {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .75fr);
  gap: 18px;
}
.command-center-grid--secondary {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.command-center-supporting {
  margin-top: 28px;
}
.command-center-minimum {
  display: grid;
  justify-items: end;
}
.command-center-minimum span,
.command-center-minimum small {
  color: var(--muted);
  font-size: 10px;
}
.command-center-minimum strong { font-size: 14px; }
.command-center-chart {
  min-height: 238px;
  margin-top: 15px;
}
.command-center-chart svg {
  display: block;
  width: 100%;
  height: 210px;
  overflow: visible;
}
.command-center-chart__baseline {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 5 5;
}
.command-center-chart__area { fill: rgba(74, 169, 136, .13); }
.command-center-chart__line {
  fill: none;
  stroke: #3b987a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.command-center-chart__dot {
  fill: var(--surface);
  stroke: #3b987a;
  stroke-width: 3;
}
.command-center-chart__labels,
.command-center-chart-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}
.command-center-chart__labels { margin-top: -22px; }
.command-center-chart-legend {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.command-center-chart-legend span { display: flex; align-items: center; gap: 7px; }
.command-center-chart-legend i {
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: #3b987a;
}
.command-center-chart-legend b { color: var(--ink); font-size: 11px; }
.command-center-events,
.command-center-goals,
.command-center-insights {
  display: grid;
  margin-top: 17px;
  gap: 8px;
}
.command-center-event {
  width: 100%;
  display: grid;
  padding: 11px 0;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
button.command-center-event:hover { color: var(--forest-2); }
.command-center-event:last-child { border-bottom: 0; }
.command-center-event__date { color: var(--muted); font-size: 10px; font-weight: 750; }
.command-center-event__main { display: grid; min-width: 0; }
.command-center-event__main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.command-center-event__main small { color: var(--muted); font-size: 9px; }
.command-center-event > b { font-size: 11px; white-space: nowrap; }
.command-center-event--income > b { color: #27836a; }
.command-center-event--expense > b { color: #b1604f; }
.command-center-goal {
  display: grid;
  padding: 12px 13px;
  gap: 7px;
  border-radius: 13px;
  background: var(--canvas);
}
.command-center-goal > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.command-center-goal strong,
.command-center-goal b { font-size: 12px; }
.command-center-goal small { color: var(--muted); font-size: 9px; }
.command-center-goal__track {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}
.command-center-goal__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4fa989;
}
.command-center-insight {
  padding: 12px 14px;
  border-left: 3px solid #6aab95;
  border-radius: 0 12px 12px 0;
  background: var(--canvas);
}
.command-center-insight--warning { border-left-color: var(--amber); }
.command-center-insight--critical { border-left-color: var(--danger); }
.command-center-insight strong { font-size: 12px; }
.command-center-insight p { margin: 3px 0; color: var(--ink); font-size: 11px; }
.command-center-insight small { color: var(--muted); font-size: 9px; }
.command-center-empty {
  margin: 24px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

/* Affordability calculator */
.affordability-card { width: min(900px, calc(100vw - 32px)); }
.affordability-protect-goals { align-self: end; min-height: 54px; }
.affordability-result {
  display: grid;
  margin-top: 22px;
  padding-top: 22px;
  gap: 14px;
  border-top: 1px solid var(--line);
}
.affordability-verdict {
  display: grid;
  padding: 18px;
  gap: 3px;
  border: 1px solid #a9d8c7;
  border-radius: 16px;
  background: var(--mint-soft);
}
.affordability-verdict--wait {
  border-color: #e3c27b;
  background: rgba(229,168,67,.1);
}
.affordability-verdict--not_feasible {
  border-color: #dda9a4;
  background: rgba(181,71,71,.08);
}
.affordability-verdict > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.affordability-verdict strong {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
}
.affordability-verdict p { margin: 0; color: var(--muted); font-size: 12px; }
.affordability-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.affordability-metrics article {
  display: grid;
  padding: 13px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.affordability-metrics span { color: var(--muted); font-size: 9px; }
.affordability-metrics strong { font-size: 14px; }
.affordability-options { display: grid; gap: 8px; }
.affordability-option {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.affordability-option--recommended { border-color: #8ccdb6; }
.affordability-option > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.affordability-option strong { font-size: 12px; }
.affordability-option span {
  padding: 3px 7px;
  border-radius: 99px;
  color: var(--forest-2);
  background: var(--mint-soft);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.affordability-option p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.affordability-goal-impacts {
  display: grid;
  padding: 13px 15px;
  gap: 8px;
  border-radius: 13px;
  background: var(--canvas);
}
.affordability-goal-impacts > strong { font-size: 11px; }
.affordability-goal-impacts > div { display: grid; }
.affordability-goal-impacts span { font-size: 11px; font-weight: 700; }
.affordability-goal-impacts small,
.affordability-explanation { color: var(--muted); font-size: 9px; }

/* Client help center */
.help-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--forest-2);
  background: var(--surface);
  font-size: 16px;
  font-weight: 800;
  transition: border-color .18s, background .18s, transform .18s;
}
.help-button:hover {
  border-color: #9bcbbb;
  background: var(--mint-soft);
  transform: translateY(-1px);
}
.help-page-heading { align-items: center; }
.help-search {
  display: flex;
  width: min(390px, 100%);
  min-height: 48px;
  padding: 0 15px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.help-search > span { color: var(--muted); font-size: 22px; }
.help-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}
.help-hero {
  display: grid;
  margin-bottom: 22px;
  padding: clamp(24px, 3vw, 38px);
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  align-items: center;
  gap: clamp(26px, 4vw, 60px);
  overflow: hidden;
  border-radius: var(--radius);
  color: #f4fbf8;
  background:
    radial-gradient(circle at 92% 12%, rgba(148, 218, 194, .24), transparent 32%),
    linear-gradient(135deg, #123a34, #21584f);
}
.help-hero h2 {
  max-width: 760px;
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.16;
}
.help-hero > div > p {
  max-width: 760px;
  margin: 0;
  color: #c0d7cf;
  font-size: 15px;
  line-height: 1.55;
}
.help-quick-start {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}
.help-quick-start li {
  display: grid;
  padding: 12px 14px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  background: rgba(255,255,255,.07);
}
.help-quick-start li > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: #173f3a;
  background: #bfe9db;
  font-size: 10px;
  font-weight: 900;
}
.help-quick-start li > div { display: grid; }
.help-quick-start strong { font-size: 14px; }
.help-quick-start small { color: #bdd1ca; font-size: 11px; line-height: 1.45; }
.help-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.help-toc {
  position: sticky;
  top: 96px;
  display: grid;
  padding: 14px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.help-toc > span {
  padding: 5px 9px 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.help-toc button {
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}
.help-toc button:hover,
.help-toc button.active {
  color: var(--forest-2);
  background: var(--mint-soft);
}
.help-toc--muted button { opacity: .5; }
.help-content { min-width: 0; }
.help-section {
  margin-bottom: 18px;
  padding: clamp(20px, 2.5vw, 30px);
  scroll-margin-top: 94px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.help-section__heading {
  display: grid;
  margin-bottom: 20px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}
.help-section__heading > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: var(--forest-2);
  background: var(--mint-soft);
  font-size: 9px;
  font-weight: 900;
}
.help-section__heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 550;
  line-height: 1.2;
}
.help-section__heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.help-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.help-card {
  display: flex;
  min-width: 0;
  padding: 20px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}
.help-card__route {
  align-self: flex-start;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 7px;
  color: var(--forest-2);
  background: var(--mint-soft);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.help-card h3 {
  margin: 0 0 7px;
  font-size: 15px;
}
.help-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.help-card p b { color: var(--ink); }
.help-card ul {
  display: grid;
  margin: 0 0 12px;
  padding-left: 17px;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.help-card .text-button {
  margin-top: auto;
  align-self: flex-start;
}
.help-faq { display: grid; gap: 8px; }
.help-faq details {
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
}
.help-faq summary {
  padding: 13px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}
.help-faq p {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.help-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}
.help-empty > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--forest-2);
  background: var(--mint-soft);
  font-weight: 900;
}
.help-empty p { margin: 0; font-size: 12px; }

@media (max-width: 1180px) {
  .command-center-summary { grid-template-columns: 1.35fr 1fr 1fr; }
  .command-center-net-worth { grid-column: 2 / -1; min-height: 120px !important; }
  .command-center-net-worth > span { margin-top: 16px; }
  .help-layout { grid-template-columns: 180px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .command-center-grid,
  .command-center-grid--secondary { grid-template-columns: 1fr; }
  .command-center-summary { grid-template-columns: 1.2fr 1fr; }
  .command-center-summary .summary-card--hero { grid-row: span 2; }
  .command-center-net-worth { grid-column: 1 / -1; }
  .help-hero { grid-template-columns: 1fr; }
  .help-layout { grid-template-columns: 1fr; }
  .help-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .help-toc > span { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .command-center-status {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .command-center-status > span:last-child { grid-column: 2; }
  .command-center-summary { grid-template-columns: 1fr 1fr; }
  .command-center-summary .summary-card--hero {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .command-center-net-worth { grid-column: 1 / -1; }
  .command-center-chart { min-height: 190px; }
  .command-center-chart svg { height: 170px; }
  .affordability-metrics { grid-template-columns: 1fr; }
  .help-page-heading { gap: 15px; }
  .help-search { width: 100%; }
  .help-hero { padding: 22px 18px; }
  .help-card-grid { grid-template-columns: 1fr; }
  .help-toc { grid-template-columns: 1fr 1fr; padding: 9px; }
  .help-toc button { padding: 8px; }
  .help-section { padding: 18px 14px; }
}
