@font-face {
  font-family: Inter;
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
  color: #29282e;
  background: #f6f6f8;
  --violet: #ffe86d;
  --violet-dark: #f2d34f;
  --lime: #c2fc36;
  --ink: #29282e;
  --muted: #74717d;
  --border: #e9e8ee;
  --surface: #fff;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--ft-accent-text, #756000);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
svg {
  display: block;
}
button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 1.2px;
  font-weight: 550;
  line-height: 1.6;
  color: #7b7688;
}
.mint {
  color: var(--ft-accent-text, #756000);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -1px;
  white-space: nowrap;
  text-decoration: none !important;
}
.brand-things {
  font-weight: 400;
}
.brand img {
  border-radius: 8px;
  flex-shrink: 0;
}
.brand-light {
  color: #f7f6fb;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  text-decoration: none !important;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.button-primary {
  background: var(--violet);
  color: var(--ft-on-accent, #25251f);
  box-shadow: 0 2px 3px #ffe86d08;
}
.button-primary:hover:not(:disabled) {
  background: var(--violet-dark);
}
.button-secondary {
  background: #fff;
  border-color: #e1dfe8;
  color: #56515f;
}
.button-secondary:hover:not(:disabled) {
  background: #f7f5fc;
  border-color: #d1c9e5;
}
.button-icon {
  width: 44px;
  padding: 10px;
  background: #fff;
  border-color: var(--border);
  color: #777080;
}
.button-small {
  min-height: 44px;
  padding: 9px 12px;
  font-size: 12px;
}
.button-danger {
  background: #b54747;
  color: var(--ft-on-accent, #25251f);
}
.button-danger:hover:not(:disabled) {
  background: #9c3737;
}
.button-text-danger {
  color: #ad5555;
  background: transparent;
  padding-left: 8px;
  padding-right: 8px;
}
.button-text-danger:hover {
  background: #fdf0f1;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #704bc2;
  font-size: 12px;
  font-weight: 550;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field label,
.label-row label {
  font-size: 12px;
  color: #625c6d;
  font-weight: 500;
}
.field input,
.field select,
.search-form input {
  width: 100%;
  height: 45px;
  border: 1px solid #e0dde7;
  border-radius: 9px;
  background: #fff;
  color: #3b3548;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  min-width: 0;
}
.field input:focus,
.field select:focus,
.search-form input:focus {
  border-color: #a28ad7;
  outline: 3px solid #ffe86d10;
  outline-offset: 0;
}
.field input::placeholder,
.search-form input::placeholder {
  color: #928b9e;
}
.field input:disabled {
  background: #f7f6fa;
  color: #7e778a;
}
.field select {
  padding-right: 28px;
}
.field-hint {
  font-size: 12px;
  color: #7b7387;
  line-height: 1.8;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.notice {
  padding: 15px 17px;
  border: 1px solid;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.notice strong {
  font-weight: 600;
}
.notice p {
  margin-top: 3px;
}
.notice a {
  text-decoration: underline;
  font-weight: 550;
}
.notice-error {
  background: #fff4f5;
  border-color: #f1dbdf;
  color: #9e505c;
}
.notice-success {
  background: #f4f9e9;
  border-color: #e0ebc7;
  color: #59733d;
}
.notice-info {
  background: #f3f0fb;
  border-color: #e4dcf6;
  color: #76628e;
}
.error-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.error-with-action .button {
  flex-shrink: 0;
}
/* Auth uses the kit's dark neutral surface and brand chart palette. */
.auth-body {
  display: grid;
  grid-template-columns: minmax(360px, 46%) 1fr;
  min-height: 100dvh;
  background: #faf9fc;
}
.auth-brand {
  background: #1e1b26;
  color: #eeeaf6;
  padding: 44px 52px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-brand::before {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  background: radial-gradient(ellipse, #ffe86d35, transparent 67%);
  right: -270px;
  top: 160px;
  pointer-events: none;
}
.auth-pitch {
  position: relative;
  max-width: 455px;
  width: 100%;
  margin: auto;
  padding: 60px 0;
}
.auth-pitch h1 {
  font-size: clamp(34px, 3.15vw, 48px);
  line-height: 1.16;
  letter-spacing: -1.7px;
  font-weight: 450;
  margin: 20px 0;
}
.auth-pitch > p {
  max-width: 355px;
  color: #b5adbf;
  font-size: 15px;
  line-height: 1.9;
}
.auth-illustration {
  margin: 45px 0 28px;
  border: 1px solid #8b76b838;
  border-radius: 18px;
  padding: 20px 23px 16px;
  background: linear-gradient(125deg, #30283f, #25202f);
  position: relative;
  overflow: hidden;
}
.illustration-label {
  font-size: 12px;
  color: #ddd4f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.illustration-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px #c2fc3612;
}
.illustration-lines {
  position: absolute;
  left: 23px;
  right: 23px;
  top: 70px;
  bottom: 49px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.illustration-lines span {
  border-bottom: 1px dashed #b7a5df24;
}
.illustration-path {
  margin: 36px -2px 8px;
  color: #ae8fff;
  position: relative;
}
.illustration-path svg {
  width: 100%;
  height: auto;
}
.illustration-foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #b9a4e522;
  padding-top: 15px;
  gap: 12px;
  color: #b5a8cd;
  font-size: 12px;
  line-height: 1.8;
  flex-wrap: wrap;
}
.auth-trust {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.trust-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border: 1px solid #9d89bd60;
  border-radius: 50%;
  color: #c4b0ef;
  font-size: 13px;
}
.auth-trust p {
  color: #b0a7bd;
  font-size: 12px;
  line-height: 1.8;
  max-width: 370px;
}
.auth-brand-footer {
  font-size: 12px;
  color: #b0a4c0;
  position: relative;
}
.auth-main {
  display: flex;
  flex-direction: column;
  padding: 35px 48px 25px;
  min-width: 0;
}
.auth-back {
  align-self: flex-start;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  color: #797183;
  gap: 6px;
}
.auth-card {
  width: 100%;
  max-width: 375px;
  margin: auto;
  padding: 45px 0;
}
.auth-card .eyebrow {
  font-size: 12px;
  letter-spacing: 1.2px;
  color: #8c7ba4;
}
.auth-card h2 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 13px 0;
}
.auth-description {
  font-size: 13px;
  color: #7c7389;
  line-height: 1.8;
  margin-bottom: 29px;
  max-width: 350px;
}
.auth-card .notice {
  margin-top: 15px;
}
.auth-google {
  width: 100%;
  min-height: 48px;
  gap: 12px;
}
.auth-google svg {
  stroke: none;
  flex-shrink: 0;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: #7c7389;
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e9e4ef;
}
.auth-card .field input {
  height: 48px;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: -5px;
}
.label-row > a {
  font-size: 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #8d6cae;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 80px;
}
.password-toggle {
  position: absolute;
  right: 3px;
  top: 2px;
  bottom: 2px;
  min-width: 68px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #8a7a9d;
  font-size: 12px;
  border-radius: 5px;
}
.auth-submit {
  margin-top: 5px;
  min-height: 48px;
}
.auth-switch {
  font-size: 12px;
  text-align: center;
  color: #83798e;
  line-height: 1.8;
  margin: 17px 0;
}
.auth-switch a {
  font-weight: 600;
  color: #8255b6;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.auth-support {
  font-size: 12px;
  text-align: center;
  color: #8c7f99;
  margin-top: 25px;
  padding-top: 19px;
  border-top: 1px solid #e9e4ef;
  line-height: 1.9;
}
.auth-support a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #8b6aa9;
}
.auth-legal {
  text-align: center;
  font-size: 12px;
  color: #8d8198;
  line-height: 1.8;
}
.auth-card #success-login {
  width: 100%;
  margin-top: 8px;
}
/* Compact analysis canvas, neutral navigation and rounded chart cards. */
.app-body {
  font-size: 13px;
  background: #f6f6f8;
}
.app-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100dvh;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  background: white;
  padding: 12px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 8px;
}
.skip-link:focus {
  transform: translateY(0);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #fdfcfe;
  border-right: 1px solid #eae6f0;
  padding: 27px 17px 0;
  display: flex;
  flex-direction: column;
  color: #7f738d;
  min-width: 0;
  z-index: 5;
}
.sidebar > .brand {
  font-size: 21px;
  margin: 2px 8px 28px;
  gap: 8px;
  color: #302a3c;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e6e0ed;
  border-radius: 12px;
  padding: 12px 10px;
  background: #faf8fd;
  margin: 0 4px 29px;
  min-width: 0;
}
.workspace-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e4d8fc;
  color: #7d55b4;
  font-size: 12px;
  font-weight: 650;
  flex-shrink: 0;
}
.workspace > div {
  min-width: 0;
  flex: 1;
}
.workspace strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: #5a486d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace > div > span {
  font-size: 12px;
  color: #897397;
  display: block;
  margin-top: 4px;
  line-height: 1.6;
}
.workspace-check {
  color: #a58ab9;
  font-size: 12px;
}
.nav-label {
  display: block;
  font-size: 12px;
  letter-spacing: 1.1px;
  color: #9988a7;
  margin: 0 16px 12px;
}
.app-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.app-nav a {
  min-height: 46px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 450;
  color: #8b769f;
  text-decoration: none;
  line-height: 1.5;
}
.app-nav a:hover {
  background: #f3edf9;
  color: #73508f;
}
.app-nav a[aria-current="page"] {
  background: #ebe1fc;
  color: #7c48b2;
  font-weight: 600;
}
.app-nav svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-count {
  margin-left: auto;
  background: #ede5f4;
  color: #9468b6;
  border-radius: 6px;
  min-width: 20px;
  text-align: center;
  font-size: 12px;
  padding: 1px 4px;
}
.app-nav a[aria-current="page"] .nav-count {
  background: #d9c6f0;
  color: #8553ab;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.sidebar-note {
  padding: 15px 12px 20px;
}
.tiny-lock {
  display: block;
  width: 28px;
  height: 28px;
  border: 1px solid #e3d8ef;
  border-radius: 9px;
  color: #ad8ccb;
  text-align: center;
  line-height: 26px;
  margin-bottom: 12px;
}
.sidebar-note strong {
  font-size: 12px;
  color: #9071aa;
  font-weight: 500;
  line-height: 1.7;
  display: block;
}
.sidebar-note p {
  font-size: 12px;
  color: #a088b5;
  line-height: 1.8;
  margin-top: 7px;
}
.sidebar-note > a {
  font-size: 12px;
  color: #9a72b8;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.user-row {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 18px 7px 22px;
  border-top: 1px solid #eee6f5;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1e7fc;
  color: #b58bd5;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.user-row > div {
  flex: 1;
  min-width: 0;
}
.user-row strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #87649d;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.user-row > div > span {
  display: block;
  font-size: 12px;
  color: #a48ab7;
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.logout-button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  color: #b297c5;
  border-radius: 10px;
}
.logout-button:hover {
  background: #f4eafa;
  color: #9d72bc;
}
.logout-button svg {
  width: 17px;
  height: 17px;
}
.app-stage {
  min-width: 0;
}
.app-topbar {
  height: 70px;
  border-bottom: 1px solid #eeebf2;
  background: #fcfbfd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 33px;
  gap: 20px;
}
.app-topbar > p {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  color: #baacc6;
}
.app-topbar strong {
  color: #8d739f;
  font-weight: 500;
}
.breadcrumb-brand {
  color: #a38bb4;
}
.secure-indicator {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  color: #a48bb6;
}
.secure-indicator > span {
  width: 6px;
  height: 6px;
  background: #b9df6a;
  border-radius: 50%;
}
.app-main {
  padding: 32px 33px 0;
  max-width: 1700px;
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading .eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
  color: #a08bb4;
  margin-bottom: 6px;
}
.page-heading h1 {
  font-size: 28px;
  letter-spacing: -1.1px;
  line-height: 1.3;
  font-weight: 500;
  color: #42314f;
}
.page-heading p {
  font-size: 12px;
  color: #a18aad;
  line-height: 1.8;
  margin-top: 7px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.heading-actions .button-primary > span {
  font-size: 17px;
  line-height: 1;
}
.filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 22px;
  margin-top: -5px;
  border-top: 1px solid #ebe5f0;
}
.filters .field {
  gap: 7px;
}
.filters .field label {
  font-size: 12px;
  color: #a18bb3;
}
.filters .field input,
.filters .field select {
  height: 44px;
  font-size: 12px;
  border-color: #e7dfef;
  color: #8e71a6;
  background: #fcfafd;
  padding: 9px 10px;
}
.filters .period-field select {
  border-radius: 22px;
  padding-left: 15px;
  background: #eee7f8;
  border-color: #eee7f8;
  color: #9974b6;
}
.period-field {
  width: 150px;
}
.date-field {
  width: 133px;
}
.account-field {
  min-width: 125px;
  max-width: 230px;
  flex: 1;
}
.filter-submit {
  font-size: 12px;
  min-height: 44px;
  padding: 9px 13px;
  background: #fdfbfe;
}
.sync-caption {
  margin-left: auto;
  font-size: 12px;
  color: #af96bf;
  max-width: 190px;
  line-height: 1.7;
  padding-bottom: 4px;
  text-align: right;
}
.view {
  min-width: 0;
}
.empty-hero {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 58px 30px 48px;
  border: 1px solid #e9e2f0;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 0, #f1eafa, transparent 70%), #fff;
  min-height: 430px;
}
.empty-symbol {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #eee2fc;
  border: 1px solid #e8d8fa;
  color: #b48bd2;
  margin-bottom: 28px;
}
.empty-symbol svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.empty-hero .eyebrow {
  font-size: 12px;
  color: #b195c6;
  letter-spacing: 1px;
}
.empty-hero h2 {
  max-width: 460px;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.9px;
  font-weight: 450;
  margin: 12px 0;
  color: #684f7b;
}
.empty-hero > p {
  font-size: 13px;
  color: #af93c1;
  line-height: 1.9;
  max-width: 450px;
  margin-bottom: 26px;
}
.empty-hero > .button {
  min-height: 45px;
}
.empty-footnote {
  font-size: 12px;
  max-width: 420px;
  line-height: 1.9;
  color: #b59bc6;
  margin-top: 20px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 21px;
}
.metric-card {
  background: #fff;
  border: 1px solid #ede6f3;
  border-radius: 16px;
  padding: 19px 17px 18px;
  min-width: 0;
}
.metric-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  color: #a68ab9;
  font-size: 12px;
  font-weight: 450;
  min-height: 39px;
  line-height: 1.7;
}
.metric-label > span {
  color: #b99bce;
  font-size: 16px;
  flex-shrink: 0;
}
.metric-card > strong {
  display: block;
  font-size: clamp(20px, 1.85vw, 29px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 11px 0 9px;
  overflow-wrap: anywhere;
  color: #695277;
}
.metric-card > p {
  font-size: 12px;
  color: #bba1cb;
  line-height: 1.8;
}
.balance-card {
  background: #eee6fb;
  border-color: #e5d7f9;
}
.balance-card .metric-label {
  color: #ac8ac7;
}
.balance-card > strong {
  color: #9565bb;
}
.balance-card > p {
  color: #b697ce;
}
.metric-label .metric-arrow {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  background: #f3eafc;
  color: #b691d4;
}
.metric-label .expense {
  background: #e7f6c8;
  color: #92a95b;
}
.panel {
  background: #fff;
  border: 1px solid #ede7f3;
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}
.panel-heading {
  padding: 21px 23px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-heading h2 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.15px;
  color: #7c618e;
  line-height: 1.6;
}
.panel-heading p {
  font-size: 12px;
  color: #b69bc8;
  line-height: 1.8;
  margin-top: 3px;
}
.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(250px, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  border-radius: 20px;
  background: #f8f5fb;
  padding: 7px 10px;
}
.chart-legend > span {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b397c7;
}
.chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--lime);
}
.chart-legend .legend-income {
  background: var(--ft-accent-text);
}
.chart-container {
  padding: 2px 17px 0;
  min-height: 245px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-container svg {
  width: 100%;
  height: auto;
  max-height: 265px;
}
.chart-label {
  fill: #9b90a5;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
}
.panel-footnote {
  border-top: 1px solid #f1ebf7;
  font-size: 12px;
  line-height: 1.8;
  color: #c4abd4;
  padding: 12px 23px;
}
.panel-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 180px;
  text-align: center;
  padding: 30px 22px;
  width: 100%;
}
.panel-empty > p {
  font-size: 12px;
  color: #b094c5;
  line-height: 1.6;
  font-weight: 450;
}
.panel-empty > span {
  font-size: 12px;
  color: #c5add4;
  line-height: 1.9;
  max-width: 330px;
}
.empty-chart-icon {
  font-size: 30px !important;
  font-weight: 300;
  color: #d5c1e7 !important;
  margin-bottom: 7px;
}
.categories-list {
  padding: 4px 23px 10px;
}
.categories-list .panel-empty {
  min-height: 240px;
  padding-left: 0;
  padding-right: 0;
}
.category-item {
  margin-bottom: 19px;
}
.category-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  color: #b89ccb;
  line-height: 1.6;
  margin-bottom: 10px;
}
.category-header > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.category-header > strong {
  font-size: 12px;
  font-weight: 500;
  color: #ac86c7;
  white-space: nowrap;
}
.category-track {
  width: 100%;
  height: 4px;
  background: #f0eaf6;
  border-radius: 3px;
  overflow: hidden;
}
.category-bar,
.category-bar > svg {
  width: 100%;
  height: 4px;
}
.recent-panel .panel-heading {
  border-bottom: 1px solid #f0eaf6;
}
.table-scroll {
  overflow-x: auto;
  width: 100%;
  overscroll-behavior-x: contain;
}
.transactions-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
.transactions-table th {
  background: #fbf9fe;
  font-size: 12px;
  font-weight: 450;
  text-align: left;
  color: #b69bca;
  padding: 13px 23px;
  border-bottom: 1px solid #eee6f5;
}
.transactions-table td {
  padding: 17px 23px;
  border-bottom: 1px solid #f0eaf6;
  color: #b295c6;
  font-size: 12px;
  line-height: 1.7;
}
.transactions-table tr:last-child td {
  border-bottom: 0;
}
.transactions-table .description-cell {
  max-width: 360px;
  min-width: 180px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.description-cell strong {
  font-weight: 450;
  color: #9c7ab3;
}
.transactions-table .date-cell {
  color: #bba1cd;
}
.transactions-table .amount-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.transactions-table td.amount-income {
  color: #9d77bc;
  font-weight: 550;
}
.transactions-table td.amount-expense {
  color: #a08ab2;
  font-weight: 500;
}
.data-note {
  font-size: 12px;
  color: #b69dc9;
  line-height: 1.8;
  margin: 13px 0 18px;
}
.subtle-badge {
  display: inline-flex;
  align-items: center;
  background: #f5effb;
  border: 1px solid #ece1f5;
  color: #b497cc;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.connections-list {
  padding: 0 22px;
}
.connection-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 23px 0;
  border-top: 1px solid #f0e8f7;
}
.connection-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.institution-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f0e4fc;
  color: #b78bd8;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  border: 1px solid #e9d8f8;
}
.connection-text {
  min-width: 0;
}
.connection-text h3 {
  font-size: 14px;
  font-weight: 500;
  color: #a37dba;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.connection-text p {
  font-size: 12px;
  color: #bca0cf;
  margin-top: 5px;
  line-height: 1.8;
}
.connection-text .connection-error {
  color: #b68f88;
  max-width: 460px;
}
.connection-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  line-height: 1.6;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 450;
  white-space: nowrap;
}
.status-complete {
  color: #7c9a47;
  background: #f0f8db;
}
.status-pending {
  color: #b2a36a;
  background: #fbf7e8;
}
.status-error {
  color: #c18e94;
  background: #fdf0f2;
}
.status-warning {
  color: #bea274;
  background: #fcf5e7;
}
.status-neutral {
  color: #b99ecc;
  background: #f7f0fc;
}
.explanation-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid #e9def2;
  border-radius: 16px;
  padding: 24px;
  margin-top: 22px;
  background: #f3ecfa;
}
.explanation-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #e1cdef;
  border-radius: 9px;
  color: #bc98d6;
  flex-shrink: 0;
}
.explanation-card h3 {
  font-size: 12px;
  font-weight: 550;
  line-height: 1.7;
  color: #ad86c5;
}
.explanation-card p {
  font-size: 12px;
  line-height: 1.9;
  color: #b99dcd;
  max-width: 760px;
  margin-top: 5px;
}
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  padding: 2px 23px 23px;
}
.accounts-grid > .panel-empty {
  grid-column: 1/-1;
  min-height: 155px;
}
.account-card {
  border: 1px solid #ede2f6;
  border-radius: 14px;
  padding: 20px;
  min-width: 0;
  background: #fcfaff;
}
.account-card-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  min-width: 0;
}
.account-card-heading > div {
  min-width: 0;
}
.account-card-heading strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  color: #b590cd;
  overflow-wrap: anywhere;
}
.account-card-heading div > span {
  display: block;
  font-size: 12px;
  color: #c1a7d3;
  margin-top: 4px;
}
.account-card h3 {
  font-size: 12px;
  color: #b18ac9;
  font-weight: 500;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.account-number {
  font-size: 12px;
  color: #c8b0d9;
  margin-top: 5px;
}
.account-balance-label {
  display: block;
  font-size: 12px;
  color: #bfa3d3;
  margin-top: 22px;
}
.account-balance {
  display: block;
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 500;
  margin-top: 8px;
  color: #a67dbe;
  overflow-wrap: anywhere;
}
.account-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #eee2f7;
  font-size: 12px;
  color: #cab3da;
}
.currency-badge {
  display: inline-flex;
  background: #f4ebfc;
  border: 1px solid #eadcf5;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 12px;
  color: #b796cd;
}
.credit-panel {
  margin-top: 22px;
}
.search-form {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.search-form input {
  width: 220px;
  font-size: 12px;
  background: #fcfaff;
}
.pagination {
  padding: 15px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #f0e5f8;
  font-size: 12px;
  color: #c0a3d2;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 15px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
}
.settings-panel .panel-heading {
  border-bottom: 1px solid #f0e6f8;
}
.settings-panel form {
  padding: 24px;
  gap: 22px;
}
.settings-panel form > .button {
  align-self: flex-start;
}
.security-panel {
  padding-bottom: 23px;
}
.security-panel > p {
  margin: 0 23px 18px;
  font-size: 12px;
  line-height: 1.9;
  color: #bea0d2;
}
.security-panel > .button {
  margin: 0 23px;
}
.app-footer {
  border-top: 1px solid #eee3f7;
  margin-top: 35px;
  padding: 20px 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #c3a9d3;
}
.app-footer > a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.initial-loading {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 22px;
  padding: 30px;
  text-align: center;
  color: #a080b4;
  font-size: 13px;
}
.initial-loading > img {
  border-radius: 10px;
}
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e5d7f1;
  border-top-color: #9c74bf;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.startup-error {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.startup-error h1 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.startup-error p {
  line-height: 1.8;
}
.confirm-dialog {
  border: 1px solid #e7d7f3;
  border-radius: 20px;
  padding: 30px;
  width: 460px;
  max-width: calc(100% - 32px);
  color: #a27cba;
  box-shadow: 0 25px 100px #2d1c3d33;
}
.confirm-dialog::backdrop {
  background: #21192b70;
  backdrop-filter: blur(3px);
}
.dialog-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #fcf0f3;
  border: 1px solid #f1dce4;
  color: #c592a5;
  border-radius: 12px;
  font-size: 21px;
  font-weight: 300;
  margin-bottom: 20px;
}
.confirm-dialog h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.confirm-dialog p {
  font-size: 12px;
  line-height: 1.9;
  color: #bda2d0;
  margin-top: 13px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}
.toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: calc(100% - 48px);
  z-index: 200;
  pointer-events: none;
}
.toast {
  background: #33233f;
  color: #eedef9;
  border: 1px solid #614677;
  border-radius: 14px;
  padding: 16px 19px;
  font-size: 12px;
  line-height: 1.8;
  box-shadow: 0 7px 25px #32173526;
  pointer-events: auto;
}
.toast-error {
  background: #fff8fb;
  color: #b77e9b;
  border-color: #efd6e7;
}
/* Neutral text and surfaces reflect the light chart-kit preview. Color is reserved for data. */
.sidebar,
.app-topbar {
  background: #fdfdfd;
  border-color: #e9e8ee;
}
.sidebar > .brand,
.page-heading h1 {
  color: #29282e;
}
.workspace,
.filters .field input,
.filters .field select,
.search-form input {
  background: #fafafa;
  border-color: #e5e3e9;
  color: #605d69;
}
.workspace strong,
.user-row strong,
.app-topbar strong,
.connection-text h3,
.account-card-heading strong,
.account-card h3,
.panel-heading h2,
.description-cell strong {
  color: #49464f;
}
.workspace > div > span,
.nav-label,
.app-nav a,
.sidebar-note p,
.sidebar-note strong,
.sidebar-note > a,
.user-row > div > span,
.breadcrumb-brand,
.secure-indicator,
.page-heading p,
.page-heading .eyebrow,
.filters .field label,
.sync-caption,
.metric-label,
.metric-card > p,
.panel-heading p,
.chart-legend > span,
.panel-footnote,
.panel-empty > p,
.panel-empty > span,
.category-header,
.transactions-table th,
.transactions-table td,
.transactions-table .date-cell,
.data-note,
.connection-text p,
.account-card-heading div > span,
.account-number,
.account-balance-label,
.account-card-foot,
.pagination,
.app-footer,
.empty-footnote,
.empty-hero > p,
.empty-hero .eyebrow,
.explanation-card p,
.security-panel > p,
.confirm-dialog p {
  color: #76717e;
}
.workspace {
  background: #f6f5f8;
}
.workspace-avatar,
.user-avatar,
.institution-avatar {
  background: #ede8f8;
  border-color: #e8e1f2;
  color: #8060bc;
}
.workspace-check,
.logout-button {
  color: #9b8dac;
}
.nav-label {
  color: #8a8294;
}
.app-nav a:hover {
  background: #f2eff8;
  color: #695187;
}
.app-nav a[aria-current="page"] {
  background: #eee8fc;
  color: var(--ft-accent-text, #756000);
}
.nav-count,
.app-nav a[aria-current="page"] .nav-count {
  background: #e5dcf9;
  color: #805ec4;
}
.sidebar-note {
  color: #91809f;
}
.tiny-lock {
  border-color: #e2dbea;
  color: #a291b1;
}
.user-row {
  border-color: #e8e4ef;
}
.app-topbar > p {
  color: #b5adbf;
}
.app-topbar strong {
  color: #71677c;
}
.secure-indicator > span {
  background: #a9cb69;
}
.filters {
  border-color: #e7e4ec;
}
.filters .period-field select {
  background: #eeebf5;
  border-color: #eeebf5;
  color: #776887;
}
.empty-hero {
  background: radial-gradient(ellipse at 50% 0, #f1edfa, transparent 70%), #fff;
  border-color: #e7e3ed;
}
.empty-hero h2 {
  color: #4f445d;
}
.empty-symbol {
  background: #ede7fa;
  border-color: #e5daf7;
  color: #9e81cb;
}
.metric-card,
.panel {
  border-color: #e9e7ef;
}
.metric-card > strong,
.account-balance {
  color: #38333e;
}
.metric-label > span {
  color: #a598b1;
}
.balance-card {
  background: #ede7fb;
  border-color: #e5dcf7;
}
.balance-card .metric-label,
.balance-card > p {
  color: #82718e;
}
.balance-card > strong {
  color: #684594;
}
.metric-label .metric-arrow {
  background: #f0eafb;
  color: #9e7bc4;
}
.metric-label .expense {
  background: #eef6df;
  color: #91a460;
}
.chart-legend {
  background: #f7f6f9;
}
.panel-footnote,
.recent-panel .panel-heading,
.connection-row,
.transactions-table td,
.pagination,
.settings-panel .panel-heading {
  border-color: #efecf3;
}
.panel-empty > p {
  color: #8d7d9c;
}
.panel-empty > span {
  color: #a090ad;
}
.empty-chart-icon {
  color: #bdabcf !important;
}
.category-header > strong {
  color: #8e6cad;
}
.category-track {
  background: #efeaf5;
}
.transactions-table th {
  background: #faf9fb;
  border-color: #eeeaf2;
}
.transactions-table td.amount-income {
  color: #9270b1;
}
.transactions-table td.amount-expense {
  color: #8a7b98;
}
.subtle-badge,
.currency-badge {
  background: #f5f2f9;
  border-color: #e9e2f1;
  color: #9884a9;
}
.status-complete {
  background: #f1f7e5;
  color: #809555;
}
.status-pending {
  background: #faf6e8;
  color: #a39664;
}
.status-warning {
  background: #faf4e7;
  color: #ac9267;
}
.status-error {
  background: #fbf0f2;
  color: #b5808b;
}
.status-neutral {
  background: #f4f1f8;
  color: #a48db7;
}
.connection-text .connection-error {
  color: #ad847a;
}
.explanation-card {
  background: #f1edf7;
  border-color: #e7e0ef;
}
.explanation-card h3 {
  color: #9b7ab0;
}
.explanation-icon {
  border-color: #ded2e9;
  color: #ae91c2;
}
.account-card {
  background: #fcfbfd;
  border-color: #e9e3f0;
}
.account-card-foot {
  border-color: #ece5f3;
}
.app-footer {
  border-color: #e7e2ed;
}
.initial-loading {
  color: #9079a3;
}
.confirm-dialog {
  color: #62536e;
  border-color: #e3d8ec;
}
.toast {
  background: #302637;
  border-color: #584264;
  color: #eee5f5;
}
/* Readable auxiliary text; all controls keep at least a 44px touch target. */
.auth-description,
.auth-back,
.auth-support,
.auth-legal,
.auth-switch,
.field-hint,
.auth-support a,
.label-row > a,
.password-toggle {
  color: #746a7f;
}
.workspace > div > span,
.nav-label,
.sidebar-note p,
.sidebar-note > a,
.user-row > div > span,
.breadcrumb-brand,
.secure-indicator,
.page-heading p,
.page-heading .eyebrow,
.filters .field label,
.sync-caption,
.metric-label,
.metric-card > p,
.panel-heading p,
.chart-legend > span,
.panel-footnote,
.panel-empty > p,
.panel-empty > span,
.category-header,
.transactions-table th,
.transactions-table td,
.transactions-table .date-cell,
.data-note,
.connection-text p,
.account-card-heading div > span,
.account-number,
.account-balance-label,
.account-card-foot,
.pagination,
.app-footer,
.empty-footnote,
.empty-hero > p,
.empty-hero .eyebrow,
.explanation-card p,
.security-panel > p,
.confirm-dialog p {
  color: #78717f;
}
.balance-card .metric-label,
.balance-card > p {
  color: #7a688c;
}
.category-header > strong {
  color: #78568e;
}
.chart-label {
  fill: #7c7484;
}
.transactions-table td.amount-income {
  color: #80549d;
}
.transactions-table td.amount-expense {
  color: #81728e;
}
.subtle-badge,
.currency-badge {
  color: #7f6b90;
}
.status-complete {
  color: #667e3b;
}
.status-pending {
  color: #8b7b47;
}
.status-error {
  color: #a26774;
}
.status-warning {
  color: #93794e;
}
.status-neutral {
  color: #8a729d;
}
.connection-text .connection-error {
  color: #966e63;
}
.explanation-card h3 {
  color: #806095;
}
.sidebar-note strong {
  color: #7f6c8e;
}
@media (min-width: 1600px) {
  .app-main {
    padding: 40px 45px 0;
  }
  .app-topbar {
    padding: 0 45px;
  }
  .metrics {
    gap: 20px;
  }
  .metric-card {
    padding: 23px;
  }
  .metric-card > strong {
    font-size: 31px;
  }
  .analysis-grid {
    gap: 24px;
  }
  .chart-container {
    min-height: 290px;
  }
  .chart-container svg {
    max-height: 290px;
  }
  .categories-list {
    padding-top: 14px;
  }
  .sidebar {
    padding-top: 32px;
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .sidebar > .brand {
    font-size: 19px;
  }
  .app-main {
    padding: 28px 23px 0;
  }
  .app-topbar {
    padding: 0 23px;
  }
  .metrics {
    gap: 10px;
  }
  .metric-card {
    padding: 17px 14px;
  }
  .metric-card > strong {
    font-size: 23px;
  }
  .analysis-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr);
    gap: 16px;
  }
  .panel-heading {
    padding: 18px;
  }
  .cashflow-panel .panel-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .chart-container {
    min-height: 240px;
    padding-left: 7px;
    padding-right: 7px;
  }
  .accounts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 18px 18px;
  }
  .connection-row {
    flex-wrap: wrap;
    gap: 14px;
  }
  .connection-main {
    flex-basis: 60%;
  }
  .connection-actions {
    margin-left: 56px;
  }
  .transaction-heading {
    flex-wrap: wrap;
  }
  .sync-caption {
    margin-left: 0;
    padding: 0 0 2px;
    flex-basis: 100%;
    max-width: none;
    text-align: left;
  }
  .auth-brand {
    padding-left: 36px;
    padding-right: 36px;
  }
  .auth-main {
    padding-left: 35px;
    padding-right: 35px;
  }
  .auth-pitch h1 {
    font-size: 39px;
  }
  .auth-illustration {
    padding-left: 18px;
    padding-right: 18px;
  }
  .account-field {
    min-width: 130px;
  }
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 950px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar > .brand {
    font-size: 17px;
    gap: 6px;
    margin-left: 6px;
  }
  .sidebar > .brand img {
    width: 26px;
    height: 26px;
  }
  .workspace {
    padding: 9px 7px;
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
  }
  .workspace-check {
    display: none;
  }
  .app-nav a {
    gap: 8px;
    padding-left: 11px;
  }
  .sidebar-note {
    padding-left: 9px;
    padding-right: 9px;
  }
  .user-row {
    gap: 7px;
    padding-left: 0;
    padding-right: 0;
  }
  .user-avatar {
    width: 27px;
    height: 27px;
  }
  .logout-button {
    margin-right: -8px;
  }
  .user-row > div > span {
    max-width: 95px;
  }
  .app-main {
    padding: 25px 18px 0;
  }
  .app-topbar {
    padding: 0 18px;
    height: 62px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    max-width: 310px;
  }
  .heading-actions {
    gap: 7px;
  }
  .heading-actions .button-primary {
    padding-left: 11px;
    padding-right: 11px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .metric-label {
    min-height: 24px;
  }
  .metric-card {
    padding: 18px;
  }
  .metric-card > strong {
    font-size: 26px;
    margin: 9px 0;
  }
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .chart-container {
    min-height: 230px;
    padding: 0 15px;
  }
  .categories-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
    padding: 0 20px 15px;
  }
  .category-item {
    margin-bottom: 0;
  }
  .categories-list > .panel-empty {
    grid-column: 1/-1;
    min-height: 160px;
  }
  .connection-main {
    flex-basis: 100%;
  }
  .connection-row > .status-badge {
    margin-left: 56px;
  }
  .connection-actions {
    margin-left: auto;
  }
  .connection-row {
    gap: 10px;
  }
  .connections-list {
    padding: 0 18px;
  }
  .connection-actions .button {
    padding: 8px;
  }
  .accounts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .account-card {
    padding: 16px;
  }
  .account-card-foot {
    flex-wrap: wrap;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .settings-grid > div > .explanation-card {
    margin-top: 0;
  }
  .security-panel > p {
    margin-left: 18px;
    margin-right: 18px;
  }
  .security-panel > .button {
    margin-left: 18px;
    margin-right: 18px;
  }
  .auth-body {
    grid-template-columns: 42% 1fr;
  }
  .auth-brand {
    padding: 30px 25px;
  }
  .auth-main {
    padding: 25px 30px;
  }
  .auth-pitch h1 {
    font-size: 33px;
  }
  .auth-pitch > p {
    font-size: 13px;
  }
  .auth-pitch {
    padding: 40px 0;
  }
  .auth-illustration {
    margin: 30px 0 23px;
  }
  .auth-card h2 {
    font-size: 27px;
  }
  .auth-pitch .eyebrow {
    letter-spacing: 1px;
  }
  .auth-brand .brand {
    font-size: 21px;
  }
  .auth-support {
    margin-top: 23px;
  }
  .auth-card {
    padding: 30px 0;
  }
  .auth-description {
    margin-bottom: 22px;
  }
  .date-field {
    flex: 1;
    min-width: 125px;
  }
  .account-field {
    flex-basis: calc(100% - 90px);
    max-width: none;
  }
  .filter-submit {
    margin-left: auto;
  }
  .sync-caption {
    padding: 0;
  }
  .pagination {
    flex-wrap: wrap;
    gap: 13px;
  }
  .pagination > div {
    margin-left: auto;
  }
}
@media (max-width: 700px) {
  .auth-body {
    display: block;
  }
  .auth-brand {
    padding: 25px 24px 26px;
  }
  .auth-brand::before {
    display: none;
  }
  .auth-brand > .brand {
    font-size: 22px;
  }
  .auth-pitch {
    padding: 23px 0 0;
    margin: 0;
    max-width: 100%;
  }
  .auth-pitch .eyebrow {
    display: none;
  }
  .auth-pitch h1 {
    font-size: 27px;
    line-height: 1.25;
    letter-spacing: -0.8px;
    margin: 0 0 9px;
  }
  .auth-pitch h1 br {
    display: none;
  }
  .auth-pitch > p {
    font-size: 12px;
    max-width: 100%;
    line-height: 1.8;
  }
  .auth-illustration,
  .auth-trust,
  .auth-brand-footer {
    display: none;
  }
  .auth-main {
    padding: 15px 24px 22px;
  }
  .auth-card {
    padding: 25px 0 35px;
    max-width: 430px;
  }
  .auth-card h2 {
    font-size: 28px;
    margin-top: 9px;
  }
  .auth-description {
    font-size: 13px;
    margin-bottom: 24px;
  }
  .auth-card .field input {
    height: 49px;
    font-size: 16px;
  }
  .auth-card .field label {
    font-size: 13px;
  }
  .auth-submit {
    font-size: 14px;
  }
  .auth-body .form-stack {
    gap: 18px;
  }
  .auth-card .label-row {
    margin-bottom: -4px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    padding: 16px 16px 0;
    display: block;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #e9e6ed;
  }
  .sidebar > .brand {
    font-size: 20px;
    margin: 0 0 14px;
    gap: 7px;
    min-height: 30px;
    width: max-content;
  }
  .sidebar > .brand img {
    width: 29px;
    height: 29px;
  }
  .workspace,
  .nav-label,
  .sidebar-note,
  .sidebar-bottom .user-row > div,
  .sidebar-bottom .user-avatar {
    display: none;
  }
  .sidebar-bottom {
    position: absolute;
    top: 8px;
    right: 19px;
    margin: 0;
    padding: 0;
  }
  .sidebar-bottom .user-row {
    border: 0;
    padding: 0;
    margin: 0;
  }
  .logout-button {
    margin: 0;
    width: 44px;
    height: 44px;
  }
  .app-nav {
    flex-direction: row;
    gap: 4px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 9px;
  }
  .app-nav::-webkit-scrollbar {
    display: none;
  }
  .app-nav a {
    padding: 11px 12px;
    min-height: 44px;
    gap: 7px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 22px;
  }
  .app-nav a svg {
    width: 15px;
    height: 15px;
  }
  .nav-count {
    display: none !important;
  }
  .app-stage {
    width: 100%;
  }
  .app-topbar {
    height: 47px;
    padding: 0 18px;
  }
  .app-topbar > p {
    gap: 10px;
  }
  .app-main {
    padding: 23px 17px 0;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 23px;
  }
  .page-heading .eyebrow {
    letter-spacing: 0.8px;
    max-width: 100%;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    max-width: none;
  }
  .heading-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .heading-actions .button-primary {
    flex: 1;
    max-width: 190px;
  }
  .heading-actions .button-icon {
    width: 44px;
  }
  .filters {
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 23px;
    margin-top: 0;
  }
  .filters .field input,
  .filters .field select {
    height: 44px;
    font-size: 13px;
    max-width: 100%;
  }
  .period-field {
    width: 100%;
    flex-basis: 100%;
  }
  .date-field {
    width: calc(50% - 6px);
    flex: 0 0 calc(50% - 6px);
    min-width: 0;
  }
  .filters .date-field input {
    font-size: 12px;
    padding: 10px 8px;
    min-width: 0;
  }
  .account-field {
    flex-basis: calc(100% - 90px);
    min-width: 0;
    max-width: none;
    width: calc(100% - 90px);
  }
  .filter-submit {
    margin-left: auto;
  }
  .sync-caption {
    text-align: left;
    margin-top: 0;
    line-height: 1.7;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .metric-card {
    padding: 16px 13px;
    border-radius: 14px;
  }
  .metric-label {
    min-height: 40px;
    line-height: 1.6;
    gap: 5px;
  }
  .metric-label > span {
    font-size: 14px;
  }
  .metric-label .metric-arrow {
    width: 21px;
    height: 21px;
    font-size: 14px;
  }
  .metric-card > strong {
    font-size: 23px;
    letter-spacing: -0.7px;
    margin: 12px 0 6px;
  }
  .metric-card > p {
    line-height: 1.65;
  }
  .analysis-grid {
    gap: 16px;
    margin-bottom: 16px;
  }
  .panel-heading {
    padding: 18px 16px;
    gap: 10px;
  }
  .panel-heading p {
    line-height: 1.8;
  }
  .cashflow-panel .panel-heading {
    gap: 12px;
  }
  .chart-legend {
    gap: 16px;
  }
  .chart-container {
    padding: 0 3px;
    min-height: 190px;
  }
  .chart-container svg {
    height: 210px;
  }
  .chart-label {
    font-size: 13px;
  }
  .panel-footnote {
    padding: 12px 16px;
  }
  .categories-list {
    padding: 0 16px 19px;
    gap: 22px;
    grid-template-columns: 1fr;
  }
  .panel-empty {
    min-height: 180px;
    padding: 25px 16px;
  }
  .recent-panel .panel-heading {
    flex-wrap: wrap;
  }
  .recent-panel .text-link {
    min-height: 44px;
  }
  .transactions-table th {
    padding: 13px 16px;
  }
  .transactions-table td {
    padding: 16px;
  }
  .transactions-table .description-cell {
    min-width: 180px;
    max-width: 260px;
  }
  .empty-hero {
    padding: 37px 20px 31px;
    min-height: 400px;
  }
  .empty-symbol {
    margin-bottom: 23px;
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }
  .empty-hero .eyebrow {
    letter-spacing: 0.5px;
  }
  .empty-hero h2 {
    font-size: 25px;
    margin: 12px 0;
  }
  .empty-hero > p {
    line-height: 1.85;
    margin-bottom: 24px;
  }
  .empty-footnote {
    line-height: 1.8;
    margin-top: 20px;
  }
  .empty-hero .button {
    font-size: 13px;
    min-height: 46px;
  }
  .connections-list {
    padding: 0 16px;
  }
  .connection-row {
    padding: 20px 0;
    gap: 13px;
  }
  .connection-main {
    gap: 12px;
  }
  .connection-main > .institution-avatar {
    width: 37px;
    height: 37px;
  }
  .connection-row > .status-badge {
    margin-left: 49px;
  }
  .connection-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 49px;
    gap: 9px;
  }
  .connection-actions .button {
    padding: 8px 10px;
  }
  .explanation-card {
    padding: 20px 17px;
    gap: 12px;
    margin-top: 17px;
  }
  .explanation-card h3 {
    font-size: 13px;
  }
  .explanation-card p {
    line-height: 1.85;
  }
  .accounts-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
  }
  .account-card {
    padding: 19px;
  }
  .account-card h3 {
    font-size: 14px;
  }
  .account-balance {
    font-size: 28px;
  }
  .account-card-foot {
    gap: 15px;
  }
  .account-card-heading {
    margin-bottom: 20px;
  }
  .credit-panel {
    margin-top: 17px;
  }
  .data-note {
    margin: 14px 0 17px;
  }
  .transaction-heading {
    gap: 17px;
  }
  .search-form {
    width: 100%;
    gap: 8px;
  }
  .search-form input {
    width: 100%;
    min-width: 0;
    flex: 1;
    font-size: 14px;
  }
  .pagination {
    padding: 15px 16px;
    gap: 13px;
    flex-direction: column;
    align-items: flex-start;
  }
  .pagination > div {
    gap: 10px;
    width: 100%;
    margin: 0;
    justify-content: space-between;
  }
  .pagination .button {
    min-height: 44px;
    padding: 8px;
  }
  .pagination #page-indicator {
    white-space: nowrap;
  }
  .settings-grid {
    gap: 18px;
  }
  .settings-panel form {
    padding: 20px 17px;
  }
  .settings-panel input {
    font-size: 16px;
  }
  .settings-grid > div {
    display: flex;
    flex-direction: column;
    gap: 17px;
  }
  .security-panel {
    width: 100%;
  }
  .security-panel > p {
    margin-left: 17px;
    margin-right: 17px;
  }
  .security-panel > .button {
    margin-left: 17px;
    margin-right: 17px;
  }
  .settings-grid > div > .explanation-card {
    width: 100%;
    margin: 0;
  }
  .app-footer {
    margin-top: 28px;
    padding: 17px 0 20px;
    flex-wrap: wrap;
    gap: 0;
    line-height: 1.8;
  }
  .notice {
    padding: 14px 15px;
    font-size: 12px;
  }
  .error-with-action {
    flex-direction: column;
    align-items: flex-start;
  }
  .toasts {
    right: 16px;
    bottom: 17px;
    width: calc(100% - 32px);
    max-width: 430px;
  }
  .toast {
    padding: 15px 17px;
  }
  .confirm-dialog {
    padding: 25px 21px;
  }
  .dialog-actions {
    gap: 8px;
  }
  .dialog-actions .button {
    padding: 11px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.panel-heading-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pluggy-panel {
  margin-top: 22px;
  scroll-margin-top: 24px;
}
.pluggy-panel .panel-heading {
  flex-wrap: wrap;
  gap: 16px;
}
.pluggy-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.pluggy-mode-options legend {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.pluggy-mode-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 76px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.pluggy-mode-option:has(input:checked) {
  border-color: var(--violet);
  background: #f7f3ff;
}
.pluggy-mode-option:has(input:focus-visible) {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}
.pluggy-mode-option input,
.pluggy-checkbox input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--violet);
}
.pluggy-mode-option > span {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.pluggy-mode-option strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
}
.pluggy-fields {
  max-width: 680px;
}
.pluggy-checkbox {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.pluggy-checkbox input {
  margin: 0;
}
.pluggy-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pluggy-actions .button {
  min-height: 44px;
}
.connection-text .connection-source {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 3px;
}
@media (max-width: 700px) {
  .pluggy-mode-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .pluggy-actions > .button {
    flex: 1 1 auto;
  }
}
.sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.balance-card .metric-label,
.balance-card > p {
  color: #6e5a84;
}
.auth-card .eyebrow {
  color: #78618f;
}
.chart-label {
  fill: #6f6778;
}
.status-pending {
  color: #77683c;
}
.status-warning {
  color: #80663f;
}
.status-error {
  color: #975060;
}
.status-neutral {
  color: #786087;
}
.transactions-table td.amount-expense {
  color: #746480;
}
@media (max-width: 700px) {
  .sidebar {
    overflow: visible;
  }
  .panel-heading:has(.panel-heading-controls) {
    flex-wrap: wrap;
  }
  .panel-heading-controls {
    width: 100%;
    justify-content: space-between;
  }
}
