:root {
  --bg: #06111d;
  --bg2: #091827;
  --panel: rgba(13, 28, 45, 0.82);
  --panel2: #0d2033;
  --panel3: #10283f;
  --line: rgba(143, 177, 211, 0.16);
  --line2: rgba(143, 177, 211, 0.28);
  --text: #f7fbff;
  --muted: #8fa9c1;
  --cyan: #55d7ff;
  --mint: #59e2bf;
  --violet: #8e7dff;
  --green: #6ee7a7;
  --yellow: #ffd37a;
  --red: #ff738b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --r: 22px;
  --r2: 16px;
  --sidebar: 246px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    sans-serif;
  background:
    radial-gradient(circle at 18% 0%, #11365a 0, transparent 30%),
    radial-gradient(
      circle at 90% 8%,
      rgba(80, 69, 180, 0.23) 0,
      transparent 27%
    ),
    linear-gradient(145deg, #06111d, #071522 48%, #050c15);
  color: var(--text);
  overflow-x: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
[hidden] {
  display: none !important;
}
.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.2;
  border-radius: 999px;
  z-index: -1;
}
.ambient-a {
  width: 420px;
  height: 420px;
  background: #1bc5ff;
  left: -180px;
  top: 14%;
}
.ambient-b {
  width: 360px;
  height: 360px;
  background: #6758ff;
  right: -140px;
  bottom: 8%;
}
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #5b3c08;
  color: #ffe4a8;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 211, 122, 0.25);
}
.noscript-banner {
  position: relative;
  z-index: 1001;
  padding: 12px 16px;
  border-bottom: 1px solid #efc4cc;
  background: #fff1f3;
  color: #8f2439;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-lockup b {
  display: block;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-lockup small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 2px;
}
.brand-lockup.large b {
  font-size: 19px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  transform: skew(-8deg);
}
.brand-mark span {
  border-radius: 5px;
  background: linear-gradient(180deg, var(--cyan), #258fd4);
}
.brand-mark span:nth-child(2) {
  transform: translateY(5px);
  background: linear-gradient(180deg, var(--mint), #29a994);
}
.brand-mark span:nth-child(3) {
  transform: translateY(10px);
  background: linear-gradient(180deg, var(--violet), #5f4bd6);
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  padding: 24px;
  gap: 22px;
}
.auth-showcase,
.auth-card-wrap {
  min-height: calc(100vh - 48px);
  border: 1px solid var(--line);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}
.auth-showcase {
  padding: 42px 48px;
  background: linear-gradient(145deg, #0f2841d6, #06111de0);
  box-shadow: var(--shadow);
}
.auth-showcase:before {
  content: "";
  position: absolute;
  width: 530px;
  height: 530px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(85, 215, 255, 0.18),
    transparent 67%
  );
  right: -150px;
  top: -160px;
}
.showcase-copy {
  max-width: 760px;
  margin-top: 84px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--mint);
}
.showcase-copy h1 {
  font-size: clamp(42px, 4.4vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 18px 0 20px;
  max-width: 820px;
}
.showcase-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--mint), #b6aaff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.showcase-copy p {
  font-size: 18px;
  line-height: 1.65;
  color: #a9c1d6;
  max-width: 650px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 720px;
  margin-top: 38px;
  position: relative;
  z-index: 2;
}
.showcase-grid article {
  display: flex;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #07142285;
  backdrop-filter: blur(12px);
}
.showcase-grid b,
.showcase-grid small {
  display: block;
}
.showcase-grid b {
  font-size: 13px;
}
.showcase-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
}
.mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #55d7ff1a;
  color: var(--cyan);
  border: 1px solid rgba(85, 215, 255, 0.2);
  flex: 0 0 30px;
}
.device-preview {
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 320px;
  height: 280px;
  border: 1px solid rgba(130, 191, 234, 0.24);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(160deg, #102a43, #081421);
  box-shadow: -20px -20px 80px #1782c81f;
  padding: 20px;
  transform: rotate(-3deg);
}
.preview-top {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}
.preview-top span {
  width: 5px;
  height: 5px;
  background: #30506a;
  border-radius: 50%;
}
.preview-top b {
  margin-left: 12px;
  color: #d9eaff;
}
.preview-top i {
  margin-left: auto;
  font-style: normal;
}
.preview-balance {
  margin-top: 32px;
}
.preview-balance small,
.preview-balance strong,
.preview-balance span {
  display: block;
}
.preview-balance small {
  color: var(--muted);
}
.preview-balance strong {
  font-size: 32px;
  margin: 8px 0;
}
.preview-balance span {
  font-size: 11px;
  color: var(--green);
}
.preview-bars {
  height: 80px;
  margin-top: 28px;
  display: flex;
  align-items: end;
  gap: 8px;
}
.preview-bars i {
  display: block;
  flex: 1;
  background: linear-gradient(180deg, var(--cyan), rgba(85, 215, 255, 0.18));
  border-radius: 6px 6px 2px 2px;
}
.auth-card-wrap {
  display: grid;
  place-items: center;
  padding: 30px;
  background: #050e18bd;
}
.auth-card {
  width: min(440px, 100%);
  padding: 34px;
  border-radius: 25px;
  background: linear-gradient(180deg, #112438f0, #091725f0);
  border: 1px solid var(--line2);
  box-shadow: 0 30px 80px #00000059;
}
.auth-mobile-brand {
  display: none;
  margin-bottom: 30px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #081727;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  padding: 11px;
  border-radius: 10px;
}
.auth-tab.active {
  color: #06111d;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 8px 24px #55d7ff26;
}
.auth-heading > span {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 900;
  color: var(--mint);
}
.auth-heading h2 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 8px 0;
}
.auth-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 24px;
}
.auth-form > label,
.field {
  display: block;
  color: #a9bed1;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}
.auth-form input,
.field input,
.field select,
.field textarea,
.select-ui {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line2);
  background: #071522;
  color: #f7fbff;
  border-radius: 13px;
  padding: 13px 14px;
  outline: none;
  transition: 0.18s;
}
.auth-form input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #55d7ffa6;
  box-shadow: 0 0 0 3px #55d7ff14;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 48px;
}
.ghost-icon {
  position: absolute;
  right: 8px;
  top: 15px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -2px 0 18px;
}
.check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  margin: 0 !important;
  color: var(--muted) !important;
  font-weight: 600 !important;
}
.check input {
  width: auto;
  margin: 0;
}
.text-btn {
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}
.primary-btn,
.secondary-btn,
.danger-btn,
.soft-btn {
  border-radius: 13px;
  border: 1px solid transparent;
  padding: 12px 15px;
  font-weight: 900;
  transition: 0.18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.primary-btn {
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  color: #04121d;
  box-shadow: 0 12px 30px #55d7ff24;
}
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 34px #55d7ff38;
}
.primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.secondary-btn,
.soft-btn {
  background: #102238;
  border-color: var(--line2);
  color: #dceeff;
}
.secondary-btn:hover,
.soft-btn:hover {
  background: #15304c;
}
.danger-btn {
  background: #ff738b1a;
  border-color: #ff738b40;
  color: #ffadbb;
}
.wide {
  width: 100%;
}
.compact {
  padding: 10px 14px;
  font-size: 12px;
}
.fine-print {
  text-align: center;
  color: #718ba2;
  font-size: 10px;
  line-height: 1.5;
  margin: 18px 0 0;
}
.plan-hint {
  border: 1px solid rgba(89, 226, 191, 0.2);
  background: #59e2bf0f;
  border-radius: 14px;
  padding: 13px 14px;
  margin-top: 15px;
}
.plan-hint > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.plan-hint b {
  font-size: 12px;
}
.plan-hint span {
  font-weight: 900;
  color: var(--mint);
  font-size: 12px;
}
.plan-hint small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.notice {
  padding: 11px 13px;
  border-radius: 12px;
  background: #55d7ff14;
  border: 1px solid rgba(85, 215, 255, 0.18);
  color: #bfeeff;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.notice.error {
  background: #ff738b14;
  border-color: #ff738b2e;
  color: pink;
}
.notice.success {
  background: #59e2bf12;
  border-color: #59e2bf2e;
  color: #b9f7e5;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 24px 16px 18px;
  background: #06111dde;
  border-right: 1px solid var(--line);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
}
.sidebar-brand {
  padding: 0 9px 20px;
}
.house-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 4px 18px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #091a2a;
}
.house-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px #6ee7a714;
}
.house-badge small,
.house-badge b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.house-badge small {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.house-badge b {
  font-size: 11px;
  margin-top: 2px;
  max-width: 155px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: #8fa8bf;
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  transition: 0.17s;
}
.nav-item span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.nav-item b {
  font-size: 12px;
}
.nav-item:hover {
  background: #ffffff09;
  color: #dff3ff;
}
.nav-item.active {
  color: #e9f9ff;
  background: linear-gradient(90deg, #55d7ff1f, #55d7ff09);
  box-shadow: inset 2px 0 var(--cyan);
}
.nav-item.active span {
  color: var(--cyan);
  background: #55d7ff17;
}
.nav-pill {
  font-style: normal;
  font-size: 8px;
  font-weight: 900;
  color: var(--mint);
  border: 1px solid rgba(89, 226, 191, 0.18);
  border-radius: 999px;
  padding: 4px 6px;
}
.sidebar-footer {
  margin-top: auto;
}
.install-app-btn {
  width: 100%;
  display: flex;
  gap: 10px;
  text-align: left;
  align-items: center;
  padding: 11px;
  border-radius: 13px;
  border: 1px solid rgba(142, 125, 255, 0.2);
  background: #8e7dff12;
  color: #dcd6ff;
  margin-bottom: 10px;
}
.install-app-btn span {
  font-size: 19px;
}
.install-app-btn b,
.install-app-btn small {
  display: block;
}
.install-app-btn b {
  font-size: 11px;
}
.install-app-btn small {
  font-size: 9px;
  color: #9c92d0;
  margin-top: 2px;
}
.profile-mini {
  display: grid;
  grid-template-columns: 34px 1fr 26px;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 15px 7px 0;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #154e73, #263b6a);
  border: 1px solid rgba(85, 215, 255, 0.17);
  color: #c9f2ff;
  font-size: 11px;
  font-weight: 900;
}
.profile-mini b,
.profile-mini small {
  display: block;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-mini b {
  font-size: 11px;
}
.profile-mini small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}
.profile-mini > button {
  border: 0;
  background: transparent;
  color: #6f8aa3;
  font-size: 16px;
}
.workspace {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 14px 30px 50px;
}
.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  position: sticky;
  top: 14px;
  z-index: 35;
  background: linear-gradient(180deg, #06111df5, #06111dd1);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px #0000001f;
}
.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-title small {
  display: block;
  color: #68859e;
  letter-spacing: 0.12em;
  font-size: 9px;
  font-weight: 900;
}
.topbar-title h1 {
  font-size: 20px;
  margin: 3px 0 0;
  letter-spacing: -0.025em;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.month-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #091928;
  border-radius: 12px;
  overflow: hidden;
}
.month-control button {
  border: 0;
  background: transparent;
  color: #a7bfd2;
  padding: 9px 10px;
}
.month-control button:nth-child(2) {
  min-width: 116px;
  color: #edf9ff;
  font-weight: 800;
  font-size: 11px;
}
.icon-btn,
.mobile-menu-btn {
  border: 1px solid var(--line);
  background: #0b1c2d;
  color: #a7bfd2;
  width: 37px;
  height: 37px;
  border-radius: 11px;
}
.mobile-menu-btn {
  display: none;
}
.role-banner {
  max-width: 1400px;
  margin: 18px auto 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 211, 122, 0.22);
  background: #ffd37a12;
  border-radius: 13px;
  color: #ffe1a3;
  font-size: 11px;
}
.content {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 22px;
}
.mobile-nav {
  display: none;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}
.page-head h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.035em;
}
.page-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 900;
  border: 1px solid var(--line2);
  color: #a7c0d6;
  background: #0b1d2f;
}
.pill.green {
  color: #aef1d2;
  border-color: #59e2bf33;
  background: #59e2bf0f;
}
.pill.yellow {
  color: #ffe5a9;
  border-color: #ffd37a38;
  background: #ffd37a0f;
}
.pill.violet {
  color: #c9c2ff;
  border-color: #8e7dff38;
  background: #8e7dff0f;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 11px;
}
.metric-card,
.panel,
.mini-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0e1f31d1, #081522d6);
  border-radius: var(--r);
  box-shadow: 0 18px 50px #00000021;
}
.metric-card {
  padding: 16px;
  position: relative;
  overflow: hidden;
  min-height: 118px;
}
.metric-card:after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -52px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 215, 255, 0.1), transparent 70%);
}
.metric-card > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #829db5;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.metric-card strong {
  display: block;
  margin: 17px 0 5px;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.metric-card small {
  color: #718ba3;
  font-size: 9px;
}
.metric-card .metric-up {
  color: var(--green);
}
.metric-card .metric-down {
  color: var(--red);
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.75fr);
  gap: 13px;
  margin-top: 13px;
}
.grid-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 13px;
}
.panel {
  padding: 18px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}
.panel-head h3 {
  font-size: 13px;
  margin: 0;
}
.panel-head p {
  font-size: 9px;
  color: var(--muted);
  margin: 3px 0 0;
}
.panel-head .panel-actions {
  display: flex;
  gap: 6px;
}
.panel-action {
  border: 1px solid var(--line);
  background: #0a1b2b;
  color: #9db4c8;
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 9px;
  font-weight: 800;
}
.chart-wrap {
  height: 250px;
  position: relative;
}
.chart-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.donut-layout {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 15px;
  align-items: center;
}
.donut-wrap {
  width: 165px;
  height: 165px;
  position: relative;
}
.donut-wrap canvas {
  width: 100%;
  height: 100%;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}
.donut-center small {
  font-size: 8px;
  color: var(--muted);
}
.donut-center strong {
  font-size: 17px;
  margin-top: 4px;
}
.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legend-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 9px;
}
.legend-row i {
  width: 7px;
  height: 7px;
  border-radius: 3px;
}
.legend-row span {
  color: #92a9bc;
}
.legend-row b {
  font-size: 9px;
}
.score-card {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(85, 215, 255, 0.15);
  background:
    radial-gradient(circle at 80% 0, rgba(85, 215, 255, 0.1), transparent 36%),
    linear-gradient(160deg, #102942, #091725);
  overflow: hidden;
}
.score-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.score-top > div > span {
  font-size: 9px;
  color: var(--mint);
  font-weight: 900;
  letter-spacing: 0.1em;
}
.score-top h3 {
  margin: 5px 0 4px;
  font-size: 17px;
}
.score-top p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}
.score-number {
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -0.07em;
}
.score-number small {
  font-size: 13px;
  color: #7792aa;
}
.score-bar {
  height: 7px;
  background: #06111d;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 17px 0;
}
.score-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--red),
    var(--yellow),
    var(--mint),
    var(--cyan)
  );
}
.insight-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.insight-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #081725;
}
.insight-card > span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #55d7ff14;
  color: var(--cyan);
  font-size: 12px;
}
.insight-card b {
  display: block;
  font-size: 10px;
}
.insight-card small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  margin-top: 3px;
}
.insight-card.warn > span {
  background: #ffd37a14;
  color: var(--yellow);
}
.insight-card.bad > span {
  background: #ff738b14;
  color: var(--red);
}
.insight-card.good > span {
  background: #59e2bf14;
  color: var(--mint);
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.search-input {
  width: min(320px, 100%);
  border: 1px solid var(--line);
  background: #081725;
  color: #dff1ff;
  border-radius: 11px;
  padding: 9px 11px;
  outline: none;
  font-size: 10px;
}
.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-chip {
  border: 1px solid var(--line);
  background: #0a1a2b;
  color: #8ea8bd;
  border-radius: 999px;
  padding: 7px 9px;
  font-size: 9px;
  font-weight: 800;
}
.filter-chip.active {
  border-color: #55d7ff40;
  color: #c8f2ff;
  background: #55d7ff14;
}
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 7px;
}
.data-table th {
  text-align: left;
  color: #6f8aa2;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 10px 4px;
}
.data-table td {
  background: #081725;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  font-size: 10px;
}
.data-table td:first-child {
  border-left: 1px solid var(--line);
  border-radius: 12px 0 0 12px;
}
.data-table td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 12px 12px 0;
}
.tx-main {
  display: flex;
  align-items: center;
  gap: 9px;
}
.tx-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #55d7ff12;
  color: var(--cyan);
}
.tx-main b,
.tx-main small {
  display: block;
}
.tx-main b {
  font-size: 10px;
}
.tx-main small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 2px;
}
.money.positive {
  color: var(--green);
}
.money.negative {
  color: #ff9bac;
}
.money.invest {
  color: #b8adff;
}
.row-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.mini-btn {
  border: 1px solid var(--line);
  background: #0b1d2f;
  color: #8fa9c0;
  border-radius: 8px;
  padding: 6px 7px;
  font-size: 9px;
}
.mini-btn:hover {
  color: #e7f6ff;
  border-color: var(--line2);
}
.empty-state {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--line2);
  border-radius: 16px;
  color: var(--muted);
}
.empty-state span {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}
.empty-state b {
  display: block;
  color: #cfe4f3;
  font-size: 12px;
}
.empty-state small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
}
.progress-line {
  height: 8px;
  background: #071523;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
}
.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mini-panel {
  padding: 14px;
}
.mini-panel span {
  display: block;
  color: #7c98b0;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.mini-panel strong {
  display: block;
  font-size: 19px;
  margin: 8px 0 6px;
}
.mini-panel small {
  font-size: 8px;
  color: var(--muted);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.plan-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0e2033, #091724);
  border-radius: 20px;
  overflow: hidden;
}
.plan-card.featured {
  border-color: #55d7ff47;
  box-shadow: inset 0 0 0 1px #55d7ff08;
}
.plan-card.featured:before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: #55d7ff17;
}
.plan-card .plan-label {
  font-size: 9px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.1em;
}
.plan-card h3 {
  font-size: 18px;
  margin: 8px 0 5px;
}
.plan-price {
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -0.05em;
}
.plan-price small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.plan-card > p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 17px 0;
}
.feature-list span {
  font-size: 10px;
  color: #b6c9d9;
}
.feature-list span:before {
  content: "\2713";
  color: var(--mint);
  margin-right: 7px;
  font-weight: 900;
}
.member-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #081725;
  border-radius: 14px;
}
.member-card .avatar {
  flex: 0 0 36px;
}
.member-card > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.member-card b,
.member-card small {
  display: block;
}
.member-card b {
  font-size: 11px;
}
.member-card small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 3px;
}
.member-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.member-controls select {
  border: 1px solid var(--line);
  background: #0b1c2d;
  color: #cce2f2;
  border-radius: 9px;
  padding: 7px;
  font-size: 9px;
}
.invite-box {
  padding: 14px;
  border-radius: 15px;
  border: 1px solid rgba(89, 226, 191, 0.2);
  background: #59e2bf0e;
}
.invite-link {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}
.invite-link input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: #061420;
  color: #a8c7d9;
  border-radius: 10px;
  padding: 9px;
  font-size: 9px;
}
.invite-role {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 10px 0;
}
.role-choice {
  border: 1px solid var(--line);
  background: #091a2a;
  color: #9fb7cb;
  border-radius: 12px;
  padding: 10px;
  text-align: left;
}
.role-choice.active {
  border-color: #55d7ff4d;
  background: #55d7ff12;
  color: #d8f5ff;
}
.role-choice b,
.role-choice small {
  display: block;
}
.role-choice b {
  font-size: 10px;
}
.role-choice small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.setting-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child {
  border-bottom: 0;
}
.setting-row b,
.setting-row small {
  display: block;
}
.setting-row b {
  font-size: 11px;
}
.setting-row small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
  line-height: 1.4;
}
.setting-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field.full {
  grid-column: 1/-1;
}
.field small {
  display: block;
  color: #658198;
  font-size: 8px;
  margin-top: 5px;
}
.simulator-result {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(142, 125, 255, 0.2);
  background: #8e7dff0e;
  border-radius: 14px;
}
.simulator-result strong {
  font-size: 20px;
}
.simulator-result p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}
.calendar-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(92px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 5px;
}
.month-mini {
  padding: 11px;
  border: 1px solid var(--line);
  background: #081725;
  border-radius: 12px;
  min-width: 92px;
}
.month-mini b {
  display: block;
  font-size: 9px;
  margin-bottom: 8px;
}
.month-mini span {
  display: block;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.7;
}
.month-mini strong {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.month-mini.current {
  border-color: #55d7ff47;
  background: #55d7ff0d;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #00070db8;
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal {
  width: min(560px, 100%);
  max-height: min(840px, 92vh);
  overflow: auto;
  background: linear-gradient(180deg, #10253a, #081725);
  border: 1px solid var(--line2);
  border-radius: 22px;
  box-shadow: 0 40px 120px #00000080;
  padding: 20px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.modal-head span {
  font-size: 9px;
  color: var(--mint);
  font-weight: 900;
  letter-spacing: 0.08em;
}
.modal-head h2 {
  font-size: 18px;
  margin: 4px 0 0;
}
.modal-close {
  border: 1px solid var(--line);
  background: #081725;
  color: #9db5c8;
  border-radius: 10px;
  width: 32px;
  height: 32px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 17px;
}
.type-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}
.type-picker button {
  border: 1px solid var(--line);
  background: #081725;
  color: #8ea8bd;
  border-radius: 12px;
  padding: 10px 7px;
  font-size: 9px;
  font-weight: 900;
}
.type-picker button.active {
  border-color: #55d7ff4d;
  color: #d9f5ff;
  background: #55d7ff12;
}
.toast-stack {
  position: fixed;
  z-index: 300;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}
.toast {
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: #0d2236;
  box-shadow: 0 18px 50px #00000059;
  font-size: 10px;
  color: #d8ebf8;
  animation: toastIn 0.2s ease;
}
.toast.good {
  border-color: #59e2bf3d;
}
.toast.warn {
  border-color: #f3b84f80;
  background: #2b2414;
}
.toast.bad {
  border-color: #ff738b3d;
}
@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.72fr);
  gap: 13px;
}
.assistant-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1f31e6, #07131feb);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 22px 65px #0000002e;
}
.assistant-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      circle at 82% 10%,
      rgba(142, 125, 255, 0.16),
      transparent 33%
    ),
    linear-gradient(135deg, rgba(85, 215, 255, 0.06), transparent 58%);
}
.assistant-hero:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -75px;
  top: -105px;
  background: #55d7ff12;
}
.assistant-hero > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.assistant-hero span {
  font-size: 9px;
  letter-spacing: 0.15em;
  font-weight: 950;
  color: var(--mint);
}
.assistant-hero h3 {
  font-size: 23px;
  letter-spacing: -0.035em;
  margin: 7px 0;
}
.assistant-hero p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.assistant-quota {
  position: relative;
  z-index: 2;
  flex: 0 0 115px;
  align-self: center;
  text-align: center;
  border: 1px solid rgba(85, 215, 255, 0.2);
  background: #06142199;
  border-radius: 16px;
  padding: 12px;
}
.assistant-quota strong {
  display: block;
  font-size: 27px;
  letter-spacing: -0.05em;
  color: #dff8ff;
}
.assistant-quota.alert {
  border-color: #ffbe5c47;
  background: #ffbe5c0f;
}
.assistant-quota small {
  display: block;
  color: #7898b0;
  font-size: 8px;
  line-height: 1.4;
  margin-top: 2px;
}
.assistant-chips {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.assistant-chips button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #091b2c;
  color: #a8c3d8;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 9px;
  font-weight: 800;
  transition: 0.16s;
}
.assistant-chips button:hover {
  border-color: #55d7ff47;
  color: #e1f7ff;
  background: #55d7ff0f;
}
.assistant-chat {
  height: 390px;
  overflow: auto;
  padding: 18px;
  scroll-behavior: smooth;
}
.assistant-empty {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: var(--muted);
  padding: 30px;
}
.assistant-empty b {
  color: #dceefa;
  font-size: 13px;
  margin-top: 10px;
}
.assistant-empty p {
  max-width: 390px;
  font-size: 10px;
  line-height: 1.55;
  margin: 6px 0;
}
.assistant-orb {
  width: 56px;
  height: 56px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  font-size: 23px;
  color: #07131e;
  background: linear-gradient(135deg, var(--cyan), var(--mint), #a79aff);
  box-shadow: 0 16px 45px #55d7ff33;
}
.assistant-message {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-bottom: 15px;
}
.assistant-message.user {
  grid-template-columns: minmax(0, 1fr) 30px;
}
.assistant-message.user .assistant-avatar {
  grid-column: 2;
}
.assistant-message.user .assistant-bubble {
  grid-row: 1;
  grid-column: 1;
  justify-self: end;
  background: linear-gradient(135deg, #55d7ff21, #59e2bf14);
  border-color: #55d7ff33;
}
.assistant-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #10283f;
  border: 1px solid var(--line2);
  font-size: 11px;
  color: var(--cyan);
  font-weight: 900;
}
.assistant-message.user .assistant-avatar {
  color: #cfc9ff;
  background: #1b2543;
}
.assistant-bubble {
  max-width: min(720px, 94%);
  border: 1px solid var(--line);
  background: #081826;
  border-radius: 15px;
  padding: 12px 13px;
}
.assistant-bubble > b {
  font-size: 9px;
  color: #c5d9e8;
}
.assistant-bubble > p {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.65;
  color: #b9cede;
}
.assistant-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.assistant-highlights span {
  font-size: 8px;
  color: #bdf5e4;
  border: 1px solid rgba(89, 226, 191, 0.18);
  background: #59e2bf0d;
  padding: 6px 8px;
  border-radius: 999px;
}
.assistant-draft {
  margin-top: 11px;
  padding: 11px;
  border: 1px solid rgba(142, 125, 255, 0.25);
  background: #8e7dff0f;
  border-radius: 12px;
}
.assistant-draft > span,
.assistant-draft > b,
.assistant-draft > small,
.assistant-draft > em {
  display: block;
}
.assistant-draft > span {
  font-size: 7px;
  letter-spacing: 0.12em;
  color: #aca1ff;
  font-weight: 950;
}
.assistant-draft > b {
  font-size: 10px;
  margin-top: 6px;
}
.assistant-draft > small {
  font-size: 8px;
  color: var(--muted);
  margin: 4px 0 9px;
}
.assistant-draft > em {
  font-size: 8px;
  color: var(--muted);
  font-style: normal;
  margin-top: 7px;
}
.assistant-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #05101b8c;
}
.assistant-compose textarea {
  width: 100%;
  min-height: 46px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid var(--line2);
  background: #061522;
  color: #eefaff;
  border-radius: 13px;
  padding: 11px 12px;
  outline: none;
  font-size: 10px;
  line-height: 1.5;
}
.assistant-compose textarea:focus {
  border-color: #55d7ff73;
  box-shadow: 0 0 0 3px #55d7ff0f;
}
.assistant-compose .primary-btn {
  align-self: end;
  min-height: 46px;
}
.assistant-privacy {
  padding: 0 16px 13px;
  color: #64839a;
  font-size: 7px;
  line-height: 1.5;
}
.assistant-side {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.assistant-side .score-card {
  min-height: 0;
}
.more-sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.more-sheet button {
  border: 1px solid var(--line);
  background: #081725;
  color: #aec5d7;
  border-radius: 13px;
  padding: 16px 10px;
  font-size: 10px;
  font-weight: 800;
}
.legal-page {
  min-height: 100vh;
  padding: 32px 16px;
}
.legal-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px;
  background: #0a1a2aeb;
  border: 1px solid var(--line);
  border-radius: 22px;
  line-height: 1.7;
}
.legal-card h1 {
  font-size: 32px;
}
.legal-card h2 {
  margin-top: 28px;
  font-size: 18px;
}
.legal-card p {
  color: #adc1d1;
}
.skeleton {
  background: linear-gradient(90deg, #0b1b2b, #10263b, #0b1b2b);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 10px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 1180px) {
  .assistant-layout {
    grid-template-columns: 1fr;
  }
  .assistant-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .assistant-chat {
    height: 340px;
  }
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .auth-showcase {
    padding: 36px;
  }
  .device-preview {
    opacity: 0.55;
  }
  .showcase-copy {
    margin-top: 55px;
  }
  .showcase-copy h1 {
    font-size: 48px;
  }
  .sidebar {
    width: 218px;
  }
  .workspace {
    margin-left: 218px;
  }
  .metric-card strong {
    font-size: 20px;
  }
}
@media (max-width: 900px) {
  .assistant-side {
    grid-template-columns: 1fr;
  }
  .assistant-hero {
    padding: 18px;
  }
  .assistant-chat {
    height: 390px;
  }
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .auth-showcase {
    display: none;
  }
  .auth-card-wrap {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    padding: 22px;
  }
  .auth-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 18px 8px;
  }
  .auth-mobile-brand {
    display: flex;
  }
  .sidebar {
    transform: translate(-100%);
    transition: 0.22s;
    width: 246px;
    box-shadow: 30px 0 80px #0006;
    visibility: hidden;
    pointer-events: none;
  }
  .sidebar.open {
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }
  .workspace {
    margin-left: 0;
    padding: 0 16px calc(90px + var(--safe-bottom));
  }
  .topbar {
    height: 76px;
    top: 0;
    padding: 0 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }
  .mobile-menu-btn {
    display: inline-grid;
    place-items: center;
  }
  .topbar-actions .primary-btn {
    display: none;
  }
  .content {
    padding-top: 16px;
  }
  .mobile-nav {
    display: grid;
    position: fixed;
    z-index: 80;
    left: 10px;
    right: 10px;
    bottom: calc(8px + var(--safe-bottom));
    grid-template-columns: 1fr 1fr 64px 1fr 1fr;
    align-items: center;
    border: 1px solid var(--line2);
    background: #071320f0;
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 7px 8px;
    box-shadow: 0 20px 60px #00000059;
  }
  .mobile-nav button {
    border: 0;
    background: transparent;
    color: #718da5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px;
    font-size: 14px;
  }
  .mobile-nav button small {
    font-size: 7px;
    font-weight: 800;
  }
  .mobile-nav button.active {
    color: var(--cyan);
  }
  .mobile-nav .mobile-add {
    width: 50px;
    height: 50px;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--cyan), var(--mint));
    color: #06111d;
    font-size: 25px;
    justify-self: center;
    transform: translateY(-12px);
    box-shadow: 0 12px 30px #55d7ff2e;
  }
  .plan-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .setting-form {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
}
@media (max-width: 640px) {
  .assistant-hero {
    display: block;
  }
  .assistant-quota {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    margin-top: 12px;
    width: max-content;
    padding: 8px 11px;
  }
  .assistant-quota strong {
    font-size: 19px;
  }
  .assistant-quota small {
    max-width: 90px;
  }
  .assistant-chat {
    height: 430px;
    padding: 12px;
  }
  .assistant-compose {
    grid-template-columns: 1fr;
    padding: 10px 12px;
  }
  .assistant-compose .primary-btn {
    width: 100%;
  }
  .assistant-bubble {
    max-width: 100%;
  }
  .assistant-chips {
    padding: 10px 12px;
  }
  .workspace {
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar {
    gap: 8px;
  }
  .topbar-title small {
    font-size: 7px;
  }
  .topbar-title h1 {
    font-size: 17px;
  }
  .month-control button {
    padding: 8px 7px;
  }
  .month-control button:nth-child(2) {
    min-width: 88px;
    font-size: 9px;
  }
  .topbar-actions .icon-btn {
    display: none;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .metric-card {
    padding: 13px;
    min-height: 105px;
    border-radius: 17px;
  }
  .metric-card strong {
    font-size: 18px;
  }
  .grid-equal {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 14px;
    border-radius: 18px;
  }
  .chart-wrap {
    height: 220px;
  }
  .donut-layout {
    grid-template-columns: 130px 1fr;
  }
  .donut-wrap {
    width: 125px;
    height: 125px;
  }
  .data-table thead {
    display: none;
  }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }
  .data-table tr {
    margin-bottom: 8px;
    border: 1px solid var(--line);
    background: #081725;
    border-radius: 13px;
    padding: 11px;
  }
  .data-table td {
    border: 0 !important;
    background: transparent;
    padding: 4px 0;
    border-radius: 0 !important;
  }
  .data-table td[data-label]:before {
    content: attr(data-label);
    color: #66829a;
    font-size: 7px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 3px;
  }
  .data-table td:last-child {
    padding-top: 8px;
  }
  .row-actions {
    justify-content: flex-start;
  }
  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .search-input {
    width: 100%;
  }
  .goal-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .member-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .member-controls {
    width: 100%;
    justify-content: flex-end;
  }
  .member-controls select {
    flex: 1;
  }
  .invite-link {
    flex-direction: column;
  }
  .calendar-strip {
    margin-right: -14px;
  }
  .score-card {
    padding: 16px;
  }
  .score-number {
    font-size: 36px;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .auth-card-wrap {
    padding: 12px;
  }
  .auth-card {
    padding: 16px 3px;
  }
  .modal {
    padding: 16px;
    border-radius: 18px;
  }
  .type-picker {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .toast-stack {
    left: 12px;
    right: 12px;
    bottom: calc(86px + var(--safe-bottom));
    max-width: none;
  }
}
.openfinance-sandbox {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 190, 92, 0.28);
  border-radius: 13px;
  background: #ffbe5c12;
  color: #ffe1a3;
  font-size: 9px;
  line-height: 1.5;
}
.openfinance-sandbox b {
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.openfinance-sandbox span {
  color: #d8bd83;
}
.openfinance-notice {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 13px;
  padding: 14px 16px;
  border: 1px solid rgba(85, 215, 255, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, #55d7ff17, #59e2bf0d);
  color: var(--text);
}
.openfinance-notice > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 12px;
  background: #55d7ff21;
  color: var(--cyan);
  font-size: 18px;
}
.openfinance-notice b,
.openfinance-notice small {
  display: block;
}
.openfinance-notice small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.55;
}
.connection-list,
.account-list {
  display: grid;
  gap: 9px;
}
.connection-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff06;
}
.connection-card > div:nth-child(2) {
  min-width: 0;
}
.connection-card b,
.connection-card small {
  display: block;
}
.connection-card small {
  margin-top: 3px;
  color: var(--muted);
}
.connection-card .row-actions {
  grid-column: 2/-1;
  justify-content: flex-end;
}
.connection-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff12;
  overflow: hidden;
  color: var(--cyan);
  font-size: 18px;
}
.connection-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}
.account-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff06;
}
.account-card span,
.account-card b,
.account-card small {
  display: block;
}
.account-card span,
.account-card small {
  color: var(--muted);
}
.account-card b {
  margin: 3px 0;
}
.account-card strong {
  white-space: nowrap;
  color: var(--cyan);
}
@media (max-width: 760px) {
  .connection-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .connection-card > .pill {
    grid-column: 2;
    justify-self: start;
  }
  .connection-card .row-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .openfinance-notice {
    padding: 12px;
  }
  .openfinance-sandbox,
  .openfinance-sandbox b,
  .openfinance-sandbox span {
    display: block;
  }
  .openfinance-sandbox span {
    margin-top: 3px;
  }
  .account-card {
    align-items: flex-start;
  }
}
:root {
  --bg: #f4f7fb;
  --bg2: #edf2f7;
  --panel: #fff;
  --panel2: #f8fafc;
  --panel3: #eef3f8;
  --line: rgba(23, 42, 69, 0.1);
  --line2: rgba(23, 42, 69, 0.18);
  --text: #17263b;
  --muted: #66758a;
  --cyan: #1f7ae0;
  --mint: #0f9f7c;
  --violet: #7558e8;
  --green: #169b69;
  --yellow: #b9770e;
  --red: #d84f67;
  --shadow: 0 18px 48px rgba(37, 55, 79, 0.1);
  --r: 20px;
  --r2: 15px;
  --sidebar: 244px;
}
html {
  background: var(--bg);
}
body {
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0, rgba(31, 122, 224, 0.11), transparent 26%),
    radial-gradient(
      circle at 92% 3%,
      rgba(15, 159, 124, 0.08),
      transparent 23%
    ),
    var(--bg);
}
button {
  min-height: 40px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(31, 122, 224, 0.22);
  outline-offset: 2px;
}
.ambient {
  opacity: 0.08;
}
.app-shell {
  background: transparent;
}
.sidebar {
  padding: 25px 16px 18px;
  color: #eef6ff;
  background: linear-gradient(180deg, #0b1c31, #0d2137 58%, #0b192b);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 18px 0 45px #15263c14;
  backdrop-filter: none;
}
.sidebar .brand-lockup b,
.sidebar .house-badge b,
.sidebar .profile-mini b {
  color: #f5f9ff;
}
.sidebar .brand-lockup small,
.sidebar .house-badge small,
.sidebar .profile-mini small {
  color: #8fa9bf;
}
.sidebar-brand {
  padding: 0 10px 22px;
}
.house-badge {
  margin-bottom: 20px;
  padding: 12px 13px;
  border-color: #ffffff14;
  background: #ffffff0b;
}
.house-badge .status-dot {
  background: #4ed1a5;
  box-shadow: 0 0 0 5px #4ed1a51c;
}
.side-nav {
  gap: 5px;
}
.nav-item {
  min-height: 46px;
  padding: 8px 10px;
  color: #9bb0c5;
  border-radius: 13px;
}
.nav-item span {
  font-size: 16px;
  color: #89a2b9;
}
.nav-item b {
  font-size: 12px;
  letter-spacing: 0.005em;
}
.nav-item:hover {
  background: #ffffff0e;
  color: #fff;
}
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, #4697f43d, #4697f414);
  box-shadow: inset 3px 0 #50b9ff;
}
.nav-item.active span {
  color: #7fcfff;
  background: #57b7ff1f;
}
.nav-pill {
  color: #7fe0c1;
  border-color: #7fe0c13d;
  background: #7fe0c10f;
}
.profile-mini {
  border-color: #ffffff14;
}
.profile-mini > button {
  color: #9ab0c4;
}
.install-app-btn {
  border-color: #7558e842;
  background: #7558e81f;
  color: #ece8ff;
}
.workspace {
  margin-left: var(--sidebar);
  padding: 18px 30px 54px;
}
.topbar {
  height: 80px;
  top: 14px;
  padding: 0 18px 0 21px;
  color: var(--text);
  background: #ffffffe8;
  border: 1px solid rgba(23, 42, 69, 0.09);
  border-radius: 20px;
  box-shadow: 0 12px 35px #26374e14;
  backdrop-filter: blur(18px);
}
.topbar-title small {
  color: #5f7d9f;
  font-size: 9px;
  letter-spacing: 0.13em;
}
.topbar-title h1 {
  color: #14233a;
  font-size: 22px;
  margin-top: 4px;
}
.month-control {
  border-color: var(--line);
  background: #f4f7fb;
  border-radius: 13px;
}
.month-control button {
  color: #536981;
  min-height: 42px;
}
.month-control button:nth-child(2) {
  color: #17263b;
  font-size: 11px;
}
.icon-btn,
.mobile-menu-btn {
  border-color: var(--line);
  background: #f4f7fb;
  color: #536981;
}
.icon-btn:hover,
.mobile-menu-btn:hover {
  background: #eaf1f8;
  color: var(--cyan);
}
.primary-btn {
  background: linear-gradient(135deg, #237ee2, #17af92);
  color: #fff;
  box-shadow: 0 10px 24px #1f7ae02e;
}
.primary-btn:hover {
  box-shadow: 0 14px 30px #1f7ae040;
}
.secondary-btn,
.soft-btn {
  background: #fff;
  border-color: var(--line2);
  color: #273b55;
}
.secondary-btn:hover,
.soft-btn:hover {
  background: #f2f6fa;
}
.role-banner {
  color: #785311;
  border-color: #efd9ad;
  background: #fff8e8;
}
.content {
  max-width: 1320px;
  padding-top: 26px;
}
.page-head {
  align-items: flex-end;
  margin-bottom: 22px;
}
.page-head h2 {
  font-size: 27px;
  color: #14233a;
}
.page-head p {
  max-width: 650px;
  font-size: 13px;
  color: #6b7b8f;
}
.pill {
  color: #52677f;
  border-color: #dfe7ef;
  background: #f7f9fc;
}
.pill.green {
  color: #087b59;
  border-color: #c9eadf;
  background: #eaf8f3;
}
.pill.yellow {
  color: #8a5a09;
  border-color: #f0dfb8;
  background: #fff8e7;
}
.pill.violet {
  color: #6544c8;
  border-color: #ded5fa;
  background: #f3f0ff;
}
.metric-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.metric-card {
  grid-column: span 3;
  min-height: 138px;
  padding: 18px;
  border-color: #e1e8f0;
  background: #fff;
  box-shadow: 0 8px 26px #26374e12;
}
.metric-card:nth-child(n + 5) {
  grid-column: span 6;
}
.metric-card:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: #2f83e4;
}
.metric-card:after {
  right: -28px;
  bottom: -46px;
  background: radial-gradient(circle, rgba(31, 122, 224, 0.1), transparent 70%);
}
.metric-card > span {
  color: #697a8e;
  font-size: 10px;
  letter-spacing: 0.075em;
}
.metric-card > span b {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #edf5ff;
  color: #247bdd;
  font-size: 15px;
}
.metric-card strong {
  margin: 21px 0 7px;
  color: #14233a;
  font-size: 26px;
}
.metric-card small {
  color: #7b8999;
  font-size: 10px;
}
.metric-card:nth-child(1):before {
  background: #18a06f;
}
.metric-card:nth-child(1) > span b {
  color: #0c8f61;
  background: #e9f8f2;
}
.metric-card:nth-child(2):before {
  background: #df5c72;
}
.metric-card:nth-child(2) > span b {
  color: #cf425d;
  background: #fff0f3;
}
.metric-card:nth-child(2) strong {
  color: #c53c57;
}
.metric-card:nth-child(3):before {
  background: #2f83e4;
}
.metric-card:nth-child(3) > span b {
  color: #247bdd;
  background: #edf5ff;
}
.metric-card:nth-child(4):before {
  background: #775ce8;
}
.metric-card:nth-child(4) > span b {
  color: #6c50dc;
  background: #f1eeff;
}
.metric-card:nth-child(5):before {
  background: #d28a18;
}
.metric-card:nth-child(5) > span b {
  color: #b7700a;
  background: #fff7e7;
}
.metric-card:nth-child(6):before {
  background: #14a68b;
}
.metric-card:nth-child(6) > span b {
  color: #0b8f77;
  background: #e9f8f5;
}
.grid-main {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
  gap: 16px;
  margin-top: 16px;
}
.grid-equal {
  gap: 16px;
  margin-top: 16px;
}
.grid-main > *,
.grid-equal > * {
  min-width: 0;
}
.panel,
.mini-panel {
  border-color: #e1e8f0;
  background: #fff;
  box-shadow: 0 8px 28px #26374e11;
}
.panel {
  padding: 21px;
}
.panel-head {
  margin-bottom: 18px;
}
.panel-head h3 {
  font-size: 15px;
  color: #17263b;
}
.panel-head p {
  font-size: 10px;
  color: #758498;
}
.panel-action {
  border-color: #dfe7ef;
  background: #f5f8fb;
  color: #476079;
  font-size: 10px;
}
.panel-action:hover {
  border-color: #bdd1e7;
  background: #edf4fb;
  color: #2369b6;
}
.chart-wrap {
  height: 270px;
}
.score-card {
  padding: 22px;
  border-color: #ffffff1f;
  color: #fff;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(86, 220, 195, 0.24),
      transparent 34%
    ),
    linear-gradient(150deg, #183f72, #125d77 58%, #0d7163);
  box-shadow: 0 16px 36px #14485d33;
}
.score-top > div > span {
  color: #8df0d3;
}
.score-top h3 {
  color: #fff;
  font-size: 19px;
}
.score-top p,
.score-number small {
  color: #c5dce6;
}
.score-number {
  color: #fff;
}
.score-bar {
  background: #081e2e57;
  border-color: #ffffff26;
}
.insight-card {
  border-color: #ffffff1c;
  background: #041c2b45;
}
.insight-card b {
  color: #fff;
}
.insight-card small {
  color: #c4d9e3;
}
.insight-card > span {
  background: #ffffff1a;
  color: #8ee6ff;
}
.legend-row span {
  color: #67798d;
}
.legend-row b {
  color: #263b55;
}
.donut-center small {
  color: #78879a;
}
.donut-center strong {
  color: #17263b;
}
.mini-panel span {
  color: #718197;
}
.mini-panel strong {
  color: #17263b;
}
.progress-line {
  border-color: #dfe7ef;
  background: #edf2f7;
}
.calendar-strip {
  scrollbar-color: #c9d5e2 transparent;
}
.month-mini {
  border-color: #e2e8f0;
  background: #f8fafc;
}
.month-mini.current {
  border-color: #a9cdec;
  background: #eef6ff;
}
.table-toolbar {
  gap: 12px;
}
.search-input,
.filter-chip,
.mini-btn,
.member-controls select,
.invite-link input,
.role-choice,
.type-picker button,
.more-sheet button {
  border-color: #dfe7ef;
  background: #f7f9fc;
  color: #344a63;
}
.search-input:focus {
  border-color: #7db1e8;
  box-shadow: 0 0 0 3px #1f7ae01a;
}
.filter-chip.active,
.role-choice.active,
.type-picker button.active {
  border-color: #9fc7ed;
  background: #edf6ff;
  color: #1768bd;
}
.data-table th {
  color: #76869a;
  font-size: 9px;
}
.data-table td {
  border-color: #e3e9ef;
  background: #fff;
  font-size: 11px;
}
.tx-main b {
  color: #243850;
}
.tx-main small {
  color: #7b899a;
}
.tx-icon {
  background: #edf6ff;
  color: #2075d2;
}
.money.positive {
  color: #0b8d61;
}
.money.negative {
  color: #c63d58;
}
.money.invest {
  color: #684bd1;
}
.mini-btn:hover {
  border-color: #bfd0e2;
  background: #eef4fa;
  color: #205f9d;
}
.empty-state {
  border-color: #cbd8e5;
  background: #fafcff;
  color: #758498;
}
.empty-state b {
  color: #263b55;
}
.plan-card {
  border-color: #e1e8f0;
  background: #fff;
  box-shadow: 0 8px 26px #26374e0e;
}
.plan-card.featured {
  border-color: #a9cbed;
  background: linear-gradient(180deg, #f7fbff, #fff);
}
.plan-card.featured:before {
  background: #1f7ae014;
}
.plan-card h3,
.plan-price {
  color: #17263b;
}
.feature-list span {
  color: #55697f;
}
.member-card {
  border-color: #e1e8f0;
  background: #fff;
}
.member-card b {
  color: #243850;
}
.invite-box {
  border-color: #c9eadf;
  background: #effaf6;
}
.setting-row {
  border-color: #e6ebf1;
}
.setting-row b {
  color: #243850;
}
.simulator-result {
  border-color: #d9d1f5;
  background: #f5f2ff;
}
.field,
.auth-form > label {
  color: #43576f;
}
.field input,
.field select,
.field textarea,
.select-ui,
.auth-form input {
  border-color: #d7e0e9;
  background: #fff;
  color: #17263b;
}
.field input::placeholder,
.field textarea::placeholder,
.auth-form input::placeholder {
  color: #9aa7b5;
}
.openfinance-sandbox {
  color: #78520f;
  border-color: #efd9ad;
  background: #fff8e8;
}
.openfinance-sandbox span {
  color: #8a6b31;
}
.openfinance-notice {
  border-color: #b9d9f2;
  background: linear-gradient(135deg, #edf7ff, #effbf7);
  color: #1f3851;
}
.openfinance-notice > span {
  background: #dcefff;
  color: #1f73c8;
}
.openfinance-notice small {
  color: #66798d;
}
.connection-card,
.account-card {
  border-color: #e1e8f0;
  background: #fff;
}
.connection-logo {
  background: #eef4fa;
  color: #2879cf;
}
.account-card strong {
  color: #1768bd;
}
.assistant-panel {
  border-color: #e1e8f0;
  background: #fff;
  box-shadow: 0 10px 32px #26374e12;
}
.assistant-hero {
  border-color: #e1e8f0;
  background: linear-gradient(135deg, #edf7ff, #f4f1ff);
}
.assistant-hero span {
  color: #0a8a6b;
}
.assistant-hero h3 {
  color: #17263b;
}
.assistant-hero p {
  color: #66798d;
}
.assistant-quota {
  border-color: #bdd9f1;
  background: #fff;
}
.assistant-quota strong {
  color: #1c65b0;
}
.assistant-quota small {
  color: #708297;
}
.assistant-quota.local {
  border-color: #ead7a4;
  background: #fff9e9;
}
.assistant-quota.local strong {
  color: #a86c04;
}
.assistant-mode {
  display: inline-flex;
  margin-left: 7px;
  padding: 3px 6px;
  border: 1px solid #ead7a4;
  border-radius: 999px;
  background: #fff8e7;
  color: #8a5a09;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.assistant-chips {
  border-color: #e4eaf0;
}
.assistant-chips button {
  border-color: #dfe7ef;
  background: #f7f9fc;
  color: #4b637c;
}
.assistant-chips button:hover {
  border-color: #add0ed;
  background: #eef7ff;
  color: #1768bd;
}
.assistant-bubble {
  border-color: #e1e8f0;
  background: #f8fafc;
}
.assistant-bubble > b {
  color: #344a63;
}
.assistant-bubble > p {
  color: #536a81;
}
.assistant-message.user .assistant-bubble {
  border-color: #bfdbf0;
  background: #eef7ff;
}
.assistant-avatar {
  border-color: #cad9e7;
  background: #edf6ff;
  color: #1f73c8;
}
.assistant-compose {
  border-color: #e4eaf0;
  background: #fbfcfe;
}
.assistant-compose textarea {
  border-color: #d7e0e9;
  background: #fff;
  color: #17263b;
}
.assistant-empty b {
  color: #253a52;
}
.assistant-privacy {
  color: #7c8b9c;
}
.modal-backdrop {
  background: #0f1b2b94;
}
.modal {
  border-color: #dce4ec;
  background: #fff;
  color: #17263b;
  box-shadow: 0 35px 100px #16273c47;
}
.modal-head span {
  color: #0a8a6b;
}
.modal-close {
  border-color: #dfe7ef;
  background: #f5f8fb;
  color: #52677e;
}
.toast {
  border-color: #ffffff1f;
  background: #14283d;
  color: #eef7ff;
}
.notice {
  color: #1f5f94;
  border-color: #bcd9ef;
  background: #edf7ff;
}
.notice.error {
  color: #a62f47;
  border-color: #efc4cc;
  background: #fff1f3;
}
.notice.success {
  color: #087653;
  border-color: #bee5d8;
  background: #ecf9f4;
}
.legal-page {
  background: #f4f7fb;
}
.legal-card {
  border-color: #e1e8f0;
  background: #fff;
  color: #263b55;
  box-shadow: var(--shadow);
}
.legal-card p {
  color: #607287;
}
.auth-shell {
  background: linear-gradient(135deg, #eef5fc, #f7fafc);
}
.auth-showcase {
  color: #f7fbff;
  background: linear-gradient(145deg, #0c2440, #12385c 58%, #0d2947);
  border-color: #ffffff14;
}
.auth-showcase .brand-lockup small,
.auth-showcase .showcase-copy p,
.auth-showcase .showcase-grid small {
  color: #a9bfd3;
}
.auth-card-wrap {
  background: #fafcffcc;
  border-color: #dde6ee;
}
.auth-card {
  color: #17263b;
  background: #fff;
  border-color: #dfe7ef;
  box-shadow: 0 24px 65px #23354d24;
}
.auth-tabs {
  background: #f1f5f9;
  border-color: #e1e8f0;
}
.auth-tab {
  color: #65778c;
}
.auth-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #237ee2, #17a88d);
  box-shadow: 0 8px 20px #1f7ae02b;
}
.auth-heading > span {
  color: #087d62;
}
.auth-heading h2 {
  color: #17263b;
}
.auth-heading p {
  color: #687a8f;
}
.text-btn {
  color: #1c6fc8;
}
.fine-print {
  color: #77879a;
}
.plan-hint {
  border-color: #c9eadf;
  background: #effaf6;
}
.plan-hint span {
  color: #087b59;
}
@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .metric-card,
  .metric-card:nth-child(n + 5) {
    grid-column: auto;
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .workspace {
    margin-left: 0;
    padding: 0 18px calc(96px + var(--safe-bottom));
  }
  .sidebar {
    width: 270px;
    box-shadow: 30px 0 80px #0f1d304d;
  }
  .topbar {
    height: 74px;
    top: 0;
    margin: 0 -18px;
    padding: 0 18px;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: 0 8px 25px #1e2f450f;
  }
  .mobile-menu-btn {
    display: inline-grid;
    place-items: center;
  }
  .mobile-nav {
    left: 12px;
    right: 12px;
    bottom: calc(10px + var(--safe-bottom));
    border-color: #d9e3ec;
    background: #fffffff2;
    box-shadow: 0 14px 45px #1e2f452e;
    backdrop-filter: blur(20px);
  }
  .mobile-nav button {
    min-height: 48px;
    color: #748498;
    font-size: 16px;
  }
  .mobile-nav button small {
    font-size: 9px;
  }
  .mobile-nav button.active {
    color: #1f73ca;
  }
  .mobile-nav .mobile-add {
    color: #fff;
    background: linear-gradient(135deg, #237ee2, #18b395);
    box-shadow: 0 12px 28px #1f7ae047;
  }
  .content {
    padding-top: 22px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .metric-grid[style] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .metric-grid[style="grid-template-columns:repeat(3,1fr)"]
    .metric-card:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 640px) {
  body {
    background: linear-gradient(180deg, #f6f9fc, #f2f6fa);
  }
  .workspace {
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar {
    margin: 0 -12px;
    padding: 0 12px;
    gap: 8px;
  }
  .topbar-title {
    gap: 9px;
  }
  .topbar-title h1 {
    font-size: 18px;
  }
  .topbar-title small {
    font-size: 8px;
  }
  .month-control button {
    min-height: 40px;
    padding: 8px 6px;
  }
  .month-control button:nth-child(2) {
    min-width: 92px;
    font-size: 10px;
  }
  .content {
    padding-top: 18px;
  }
  .page-head {
    gap: 13px;
    margin-bottom: 16px;
  }
  .page-head h2 {
    font-size: 22px;
  }
  .page-head p {
    font-size: 12px;
    line-height: 1.55;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric-card {
    min-height: 118px;
    padding: 15px;
    border-radius: 17px;
  }
  .metric-card strong {
    font-size: 21px;
    margin-top: 16px;
  }
  .metric-card small {
    font-size: 9px;
  }
  .grid-main,
  .grid-equal {
    gap: 12px;
    margin-top: 12px;
  }
  .panel {
    padding: 16px;
    border-radius: 18px;
  }
  .panel-head h3 {
    font-size: 15px;
  }
  .panel-head p {
    font-size: 10px;
  }
  .chart-wrap {
    height: 235px;
  }
  .score-card {
    padding: 18px;
    border-radius: 19px;
  }
  .score-number {
    font-size: 39px;
  }
  .data-table tr {
    border-color: #e1e8f0;
    background: #fff;
    box-shadow: 0 5px 16px #26374e0b;
  }
  .donut-layout {
    grid-template-columns: 118px 1fr;
  }
  .donut-wrap {
    width: 112px;
    height: 112px;
  }
  .auth-card-wrap {
    padding: 14px;
    background: #f6f9fc;
  }
  .auth-card {
    padding: 25px 20px;
    border: 1px solid #e1e8f0;
    box-shadow: 0 18px 50px #23354d1a;
  }
  .auth-mobile-brand {
    display: flex;
    margin-bottom: 24px;
  }
  .auth-mobile-brand .brand-lockup b {
    color: #17263b;
  }
  .modal {
    padding: 18px;
    border-radius: 20px;
  }
}
:root {
  --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
  --safe-bottom: var(
    --safe-area-inset-bottom,
    env(safe-area-inset-bottom, 0px)
  );
  --safe-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
}
html.is-native,
html.is-native body {
  min-height: 100dvh;
  overscroll-behavior: none;
}
html.is-native body:before {
  content: "";
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  right: 0;
  height: var(--safe-top);
  background: #f4f7fb;
  pointer-events: none;
}
.is-native .offline-banner {
  position: sticky;
  padding-top: calc(9px + var(--safe-top));
  padding-left: calc(16px + var(--safe-left));
  padding-right: calc(16px + var(--safe-right));
}
.is-native .sidebar {
  padding-top: calc(24px + var(--safe-top));
  padding-left: calc(16px + var(--safe-left));
  padding-bottom: calc(18px + var(--safe-bottom));
}
.is-native .modal-backdrop {
  padding: calc(18px + var(--safe-top)) calc(18px + var(--safe-right))
    calc(18px + var(--safe-bottom)) calc(18px + var(--safe-left));
}
.is-native .toast-stack {
  right: calc(18px + var(--safe-right));
  bottom: calc(18px + var(--safe-bottom));
}
.is-native button,
.is-native a.soft-btn,
.is-native a.primary-btn,
.is-native input,
.is-native select {
  min-height: 44px;
}
.is-native input,
.is-native select,
.is-native textarea {
  font-size: 16px;
}
.is-native .native-app {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 900px) {
  .is-native .workspace {
    padding-top: var(--safe-top);
    padding-left: calc(18px + var(--safe-left));
    padding-right: calc(18px + var(--safe-right));
    padding-bottom: calc(96px + var(--safe-bottom));
  }
  .is-native .topbar {
    top: var(--safe-top);
    margin-left: calc(-18px - var(--safe-left));
    margin-right: calc(-18px - var(--safe-right));
    padding-left: calc(18px + var(--safe-left));
    padding-right: calc(18px + var(--safe-right));
  }
  .is-native .mobile-nav {
    left: calc(12px + var(--safe-left));
    right: calc(12px + var(--safe-right));
    bottom: calc(10px + var(--safe-bottom));
  }
  .is-native .auth-card-wrap {
    padding-top: calc(22px + var(--safe-top));
    padding-right: calc(22px + var(--safe-right));
    padding-bottom: calc(22px + var(--safe-bottom));
    padding-left: calc(22px + var(--safe-left));
  }
  .is-native body.keyboard-open .mobile-nav {
    display: none;
  }
  .is-native body.keyboard-open .workspace {
    padding-bottom: 24px;
  }
}
@media (max-width: 640px) {
  .is-native .workspace {
    padding-left: calc(12px + var(--safe-left));
    padding-right: calc(12px + var(--safe-right));
  }
  .is-native .topbar {
    margin-left: calc(-12px - var(--safe-left));
    margin-right: calc(-12px - var(--safe-right));
    padding-left: calc(12px + var(--safe-left));
    padding-right: calc(12px + var(--safe-right));
  }
  .is-native .modal-backdrop {
    padding: calc(10px + var(--safe-top)) calc(10px + var(--safe-right))
      calc(10px + var(--safe-bottom)) calc(10px + var(--safe-left));
  }
  .is-native .toast-stack {
    left: calc(12px + var(--safe-left));
    right: calc(12px + var(--safe-right));
    bottom: calc(86px + var(--safe-bottom));
  }
  .is-native body.keyboard-open .toast-stack {
    bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.metric-grid:not([style]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric-grid .metric-card,
.metric-grid .metric-card:nth-child(n + 5) {
  grid-column: auto;
}
.metric-card strong {
  overflow-wrap: anywhere;
}
.modal-open {
  overflow: hidden;
}
.quick-actions {
  display: grid;
  grid-template-columns: minmax(175px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #dbe5ee;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f4f9fd);
  box-shadow: 0 7px 24px #26374e0e;
}
.quick-actions > div:first-child > span,
.getting-started-copy > span,
.help-hero > div > span {
  display: block;
  margin-bottom: 5px;
  color: #0a8a6b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.quick-actions > div:first-child > b {
  font-size: 13px;
  color: #263b55;
}
.quick-actions-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.quick-actions-buttons button {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  text-align: left;
  padding: 10px;
  border: 1px solid #dce5ee;
  border-radius: 13px;
  background: #fff;
  color: #263b55;
}
.quick-actions-buttons button:hover {
  border-color: #9fc6e8;
  background: #f4f9fe;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px #1f7ae014;
}
.quick-actions-buttons button > i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #edf6ff;
  color: #1e73cc;
  font-style: normal;
  font-size: 16px;
}
.quick-actions-buttons button:nth-child(2) > i {
  background: #fff0f3;
  color: #cb405b;
}
.quick-actions-buttons button:nth-child(3) > i {
  background: #f2efff;
  color: #6d50d8;
}
.quick-actions-buttons button:nth-child(4) > i {
  background: #fff7e8;
  color: #b46e06;
}
.quick-actions-buttons button span,
.quick-actions-buttons button b,
.quick-actions-buttons button small {
  display: block;
  min-width: 0;
}
.quick-actions-buttons button b {
  font-size: 10px;
}
.quick-actions-buttons button small {
  margin-top: 2px;
  color: #7b8b9d;
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.getting-started {
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr);
  gap: 22px;
  margin: 0 0 16px;
  padding: 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 21px;
  background:
    radial-gradient(circle at 0 0, rgba(83, 185, 255, 0.25), transparent 35%),
    linear-gradient(135deg, #173c69, #10566e 58%, #0c6b5e);
  box-shadow: 0 15px 35px #16475b2e;
}
.getting-started-copy > span {
  color: #8ceacc;
}
.getting-started h3 {
  margin: 0 0 7px;
  font-size: 19px;
}
.getting-started p {
  margin: 0;
  color: #c5dce6;
  font-size: 11px;
  line-height: 1.55;
}
.getting-started-copy > small {
  display: block;
  margin-top: 7px;
  color: #b9d3de;
  font-size: 9px;
}
.setup-progress {
  height: 7px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: #051c2b61;
}
.setup-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #65c7ff, #68e4bd);
}
.setup-steps {
  display: grid;
  gap: 8px;
}
.setup-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  text-align: left;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: #051d2c3d;
}
.setup-step:hover {
  background: #ffffff17;
  border-color: #ffffff38;
}
.setup-step > i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #5cc5ff26;
  color: #8fd9ff;
  font-style: normal;
  font-weight: 900;
}
.setup-step.done > i {
  color: #77e6c2;
  background: #4ad9aa24;
}
.setup-step span,
.setup-step b,
.setup-step small {
  display: block;
  min-width: 0;
}
.setup-step b {
  font-size: 10px;
}
.setup-step small {
  margin-top: 3px;
  color: #bdd2dc;
  font-size: 8px;
}
.setup-step em {
  color: #8de7cb;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.setup-step.done {
  opacity: 0.72;
}
.score-card.score-pending {
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(110, 184, 244, 0.2),
      transparent 34%
    ),
    linear-gradient(150deg, #2a4767, #26566a 58%, #28685e);
}
.score-card.score-pending .score-bar i {
  background: #7fc6ee;
}
.help-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 16px;
  padding: 28px;
  border: 1px solid #cee0ee;
  border-radius: 22px;
  background: linear-gradient(135deg, #eef7ff, #eefaf6);
  box-shadow: 0 10px 30px #26374e0f;
}
.help-hero h3 {
  margin: 0 0 8px;
  color: #173653;
  font-size: 24px;
}
.help-hero p {
  max-width: 650px;
  margin: 0;
  color: #5f7488;
  font-size: 12px;
  line-height: 1.65;
}
.help-hero ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.help-hero li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(31, 122, 224, 0.11);
  border-radius: 13px;
  background: #ffffffb8;
}
.help-hero li > i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e5f2ff;
  color: #1d6fbe;
  font-style: normal;
  font-weight: 900;
}
.help-hero li b,
.help-hero li small {
  display: block;
}
.help-hero li b {
  font-size: 10px;
  color: #29445d;
}
.help-hero li small {
  margin-top: 2px;
  color: #708397;
  font-size: 8px;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}
.help-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
  border: 1px solid #e0e8ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 23px #26374e0e;
}
.help-card > i {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf6ff;
  color: #1e73cc;
  font-size: 18px;
  font-style: normal;
}
.help-card h3 {
  margin: 0 0 6px;
  color: #203a53;
  font-size: 13px;
}
.help-card p {
  margin: 0;
  color: #718297;
  font-size: 10px;
  line-height: 1.55;
}
.help-card button {
  align-self: flex-start;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d6fbe;
  font-size: 9px;
  font-weight: 900;
}
.help-card button:hover {
  color: #0b8a6c;
  text-decoration: underline;
}
.help-safety {
  margin-top: 0;
}
.safety-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 18px;
}
.safety-list span {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  color: #526981;
  font-size: 10px;
  line-height: 1.5;
}
.safety-list i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf8f3;
  color: #0b8a62;
  font-style: normal;
  font-weight: 900;
}
@media (max-width: 1180px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .quick-actions-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .getting-started {
    grid-template-columns: 1fr 1.4fr;
  }
  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .help-hero {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .quick-actions {
    padding: 14px;
  }
  .getting-started {
    grid-template-columns: 1fr;
    padding: 19px;
  }
  .help-hero {
    grid-template-columns: 1fr;
    padding: 21px;
  }
  .help-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .metric-grid:not([style]) {
    grid-template-columns: 1fr 1fr;
  }
  .metric-card:nth-child(5),
  .metric-card:nth-child(6) {
    display: block;
  }
  .quick-actions {
    gap: 12px;
    margin-bottom: 12px;
    padding: 13px;
    border-radius: 16px;
  }
  .quick-actions-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .quick-actions-buttons button {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 9px;
  }
  .quick-actions-buttons button > i {
    width: 32px;
    height: 32px;
  }
  .quick-actions-buttons button small {
    font-size: 7px;
  }
  .getting-started {
    gap: 16px;
    margin-bottom: 12px;
    padding: 17px;
    border-radius: 18px;
  }
  .getting-started h3 {
    font-size: 18px;
  }
  .setup-step {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .setup-step em {
    grid-column: 2;
    margin-top: 1px;
  }
  .setup-step > i {
    width: 30px;
    height: 30px;
  }
  .help-hero {
    gap: 19px;
    margin-bottom: 12px;
    padding: 18px;
    border-radius: 18px;
  }
  .help-hero h3 {
    font-size: 21px;
  }
  .help-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }
  .help-card {
    padding: 16px;
  }
  .safety-list {
    grid-template-columns: 1fr;
  }
}
body,
button,
input,
select,
textarea {
  font-family:
    Segoe UI Variable Text,
    Aptos,
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    Inter,
    Roboto,
    Arial,
    sans-serif;
  font-optical-sizing: auto;
}
body {
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
strong,
.money,
.plan-price,
.score-number,
.metric-card strong,
.assistant-quota strong {
  font-variant-numeric: tabular-nums lining-nums;
}
.nav-item b {
  font-size: 13px;
}
.profile-mini b,
.house-badge b {
  font-size: 12px;
}
.page-head h2 {
  font-size: clamp(24px, 2.15vw, 30px);
  letter-spacing: -0.025em;
}
.page-head p {
  font-size: 14px;
  line-height: 1.6;
}
.metric-card > span {
  font-size: 11px;
  letter-spacing: 0.055em;
}
.metric-card strong {
  font-size: 27px;
  letter-spacing: -0.035em;
}
.metric-card small {
  font-size: 11px;
  line-height: 1.45;
}
.panel-head h3 {
  font-size: 16px;
}
.panel-head p {
  font-size: 12px;
  line-height: 1.5;
}
.panel-action {
  font-size: 11px;
}
.field,
.auth-form > label {
  font-size: 13px;
}
.field small {
  font-size: 10px;
  line-height: 1.45;
}
.setting-row b {
  font-size: 13px;
}
.setting-row small {
  font-size: 11px;
  line-height: 1.5;
}
.score-number {
  font-family:
    Segoe UI Variable Display,
    Aptos Display,
    Segoe UI,
    sans-serif;
  font-size: 48px;
  font-weight: 760;
  letter-spacing: -0.055em;
}
.score-number small {
  font-size: 14px;
  letter-spacing: -0.02em;
}
.score-top h3 {
  font-size: 21px;
}
.score-top p {
  font-size: 12px;
  line-height: 1.5;
}
.insight-card b {
  font-size: 12px;
}
.insight-card small {
  font-size: 10px;
  line-height: 1.5;
}
.quick-actions > div:first-child > b {
  font-size: 14px;
}
.quick-actions-buttons button b {
  font-size: 11px;
}
.quick-actions-buttons button small {
  font-size: 9px;
}
.getting-started p {
  font-size: 12px;
}
.getting-started-copy > small {
  font-size: 10px;
}
.setup-step b {
  font-size: 11px;
}
.setup-step small,
.setup-step em {
  font-size: 9px;
}
.help-card h3 {
  font-size: 14px;
}
.help-card p,
.safety-list span {
  font-size: 11px;
}
.help-card button {
  font-size: 10px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}
.assistant-chat {
  height: auto;
  min-height: 250px;
  max-height: 430px;
}
.assistant-message {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  margin-bottom: 17px;
}
.assistant-message.user {
  grid-template-columns: minmax(0, 1fr) 36px;
}
.assistant-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 12px;
}
.assistant-bubble {
  padding: 15px 16px;
  border-radius: 17px;
}
.assistant-bubble > b {
  font-size: 11px;
}
.assistant-bubble > p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.65;
}
.assistant-highlights {
  gap: 7px;
  margin-top: 11px;
}
.assistant-highlights span {
  padding: 7px 10px;
  border-color: #b7e5d6;
  background: #eefaf6;
  color: #08765b;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}
.assistant-chips button {
  padding: 10px 14px;
  font-size: 11px;
}
.assistant-compose textarea {
  font-size: 13px;
}
.assistant-privacy {
  font-size: 9px;
}
@media (max-width: 1180px) {
  .assistant-chat {
    height: auto;
    min-height: 240px;
    max-height: 380px;
  }
}
@media (max-width: 640px) {
  .assistant-chat {
    height: auto;
    min-height: 280px;
    max-height: 52vh;
  }
  .assistant-bubble {
    padding: 13px 14px;
  }
  .assistant-bubble > p {
    font-size: 12px;
  }
  .assistant-highlights span {
    font-size: 9px;
  }
  .assistant-privacy {
    font-size: 8px;
  }
}
.admin-nav-item {
  margin-top: 4px;
  color: #d4cfff !important;
  background: #7558e81f !important;
  box-shadow: inset 2px 0 #a291ffc7;
}
.admin-nav-item span {
  color: #c8beff !important;
  background: #7558e82e !important;
}
.billing-environment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -4px 0 16px;
  padding: 13px 16px;
  border: 1px solid;
  border-radius: 15px;
  background: #fff;
}
.billing-environment b,
.billing-environment span {
  display: block;
}
.billing-environment b {
  font-size: 12px;
}
.billing-environment span {
  font-size: 11px;
  color: #5f7185;
  text-align: right;
}
.billing-environment.production {
  border-color: #bfe7d9;
  background: #effaf6;
  color: #087b59;
}
.billing-environment.test {
  border-color: #ecd8ad;
  background: #fff8e9;
  color: #855a0d;
}
.billing-environment.error {
  border-color: #efc4cc;
  background: #fff3f5;
  color: #b2354c;
}
.manual-access-panel {
  border-color: #bde6d8;
  background: linear-gradient(135deg, #f0fbf7, #fff);
}
.notice.success {
  border-color: #bfe7d9;
  background: #effaf6;
  color: #116d53;
}
.notice.error {
  border-color: #efc4cc;
  background: #fff3f5;
  color: #ad3349;
}
.mp-checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 15px 16px;
  border: 1px solid;
  border-radius: 16px;
}
.mp-checkout-summary > div b,
.mp-checkout-summary > div small {
  display: block;
}
.mp-checkout-summary > div b {
  font-size: 14px;
}
.mp-checkout-summary > div small {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
}
.mp-checkout-summary > strong {
  font-size: 21px;
  white-space: nowrap;
}
.mp-checkout-summary > strong small {
  font-size: 10px;
  font-weight: 700;
}
.mp-checkout-summary.production {
  border-color: #bfe7d9;
  background: #effaf6;
  color: #116d53;
}
.mp-checkout-summary.test {
  border-color: #ecd8ad;
  background: #fff8e9;
  color: #81570c;
}
.mp-checkout-form {
  display: block;
}
.mp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.mp-form-grid .field.full {
  grid-column: 1/-1;
}
.mp-secure-field {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line2);
  border-radius: 13px;
  background: #fff;
  transition: 0.18s;
}
.mp-secure-field:focus-within {
  border-color: #1f7ae0a6;
  box-shadow: 0 0 0 3px #1f7ae01a;
}
.mp-secure-field iframe {
  width: 100% !important;
  height: 46px !important;
}
.checkout-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 3px 0 13px;
  padding: 12px 13px;
  border: 1px solid #dce5ee;
  border-radius: 13px;
  background: #f7fafc;
  color: #40566e;
  font-size: 11px;
  line-height: 1.5;
}
.checkout-consent input {
  margin-top: 3px;
  accent-color: #168e70;
}
.checkout-progress {
  width: 100%;
  height: 5px;
  margin: 0 0 3px;
  accent-color: #1f7ae0;
}
.checkout-security-note {
  margin: 12px 0 0;
  text-align: center;
  color: #6c7e91;
  font-size: 10px;
  line-height: 1.5;
}
.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 22px;
  align-items: center;
  margin-bottom: 16px;
  padding: 24px 26px;
  color: #fff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(117, 190, 255, 0.24), transparent 38%),
    linear-gradient(135deg, #172e58, #382d6b 62%, #533b79);
  box-shadow: 0 16px 38px #2a2a5b2e;
}
.admin-hero > div:first-child > span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #9ed9ff;
}
.admin-hero h3 {
  margin: 6px 0 7px;
  font-size: 23px;
}
.admin-hero p {
  max-width: 720px;
  margin: 0;
  color: #d2d7ef;
  font-size: 12px;
  line-height: 1.6;
}
.admin-hero-lock {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 11px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: #ffffff12;
}
.admin-hero-lock > span,
.admin-hero-lock > i {
  grid-row: 1/3;
}
.admin-hero-lock > b,
.admin-hero-lock > small {
  display: block;
}
.admin-hero-lock > b {
  font-size: 12px;
}
.admin-hero-lock > small {
  color: #c2c8e1;
  font-size: 9px;
  line-height: 1.4;
}
.admin-hero-lock:first-letter {
  font-size: 27px;
  color: #d3c9ff;
}
.admin-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-result b,
.admin-result span {
  display: block;
  font-size: 12px;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 14px;
}
.admin-access-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.admin-access-form .full {
  grid-column: 1/-1;
}
.admin-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 4px;
}
.admin-impact b,
.admin-impact small {
  display: block;
}
.admin-impact b {
  font-size: 13px;
}
.admin-impact small {
  max-width: 520px;
  margin-top: 3px;
  color: #6b7c90;
  font-size: 10px;
  line-height: 1.45;
}
.admin-rules {
  display: grid;
  align-content: start;
  gap: 9px;
}
.admin-rules article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid #dfe7ef;
  border-radius: 15px;
  background: #fff;
}
.admin-rules i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f0edff;
  color: #6d50d8;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.admin-rules b,
.admin-rules small {
  display: block;
}
.admin-rules b {
  font-size: 12px;
}
.admin-rules small {
  margin-top: 3px;
  color: #6f8194;
  font-size: 10px;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-rules {
    grid-template-columns: 1fr 1fr;
  }
  .admin-hero {
    grid-template-columns: 1fr;
  }
  .admin-hero-lock {
    max-width: 320px;
  }
  .billing-environment {
    align-items: flex-start;
  }
  .billing-environment span {
    text-align: left;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  .page-head h2 {
    font-size: 23px;
  }
  .page-head p,
  .nav-item b {
    font-size: 13px;
  }
  .metric-card strong {
    font-size: 23px;
  }
  .metric-card > span {
    font-size: 10px;
  }
  .metric-card small {
    font-size: 10px;
  }
  .panel-head p {
    font-size: 11px;
  }
  .score-number {
    font-size: 43px;
  }
  .score-number small {
    font-size: 13px;
  }
  .score-top h3 {
    font-size: 19px;
  }
  .billing-environment,
  .mp-checkout-summary,
  .admin-form-footer,
  .admin-result {
    display: block;
  }
  .billing-environment span,
  .mp-checkout-summary > strong,
  .admin-result span {
    margin-top: 6px;
  }
  .mp-form-grid,
  .admin-access-form {
    grid-template-columns: 1fr;
  }
  .mp-form-grid .field.full,
  .admin-access-form .full {
    grid-column: auto;
  }
  .admin-form-footer .primary-btn,
  .admin-form-footer .danger-btn {
    width: 100%;
    margin-top: 12px;
  }
  .admin-hero {
    padding: 20px;
  }
  .admin-hero h3 {
    font-size: 20px;
  }
  .admin-rules {
    grid-template-columns: 1fr;
  }
}
.skip-link {
  position: fixed;
  z-index: 10000;
  left: 14px;
  top: 14px;
  transform: translateY(-180%);
  background: #fff;
  color: #0b65c2;
  border: 2px solid #0b65c2;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 900;
  box-shadow: 0 8px 24px #0003;
}
.skip-link:focus {
  transform: translateY(0);
}

.confirmation-notice {
  display: grid;
  gap: 8px;
}
.confirmation-notice > b,
.confirmation-notice > span {
  display: block;
}
.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.confirmation-actions .soft-btn,
.confirmation-actions .primary-btn {
  min-height: 38px;
}

.confirmation-result {
  text-align: center;
}

.confirmation-check {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 4px auto 20px;
  place-items: center;
  border: 1px solid rgba(48, 195, 141, 0.34);
  border-radius: 50%;
  background: rgba(48, 195, 141, 0.1);
  color: var(--green);
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 16px 42px rgba(48, 195, 141, 0.14);
}

.confirmation-result .auth-heading {
  margin-bottom: 22px;
}

/* Accessibility, responsive and PWA polish */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
#mainContent {
  min-height: 100vh;
  min-height: 100dvh;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid #0b65c2;
  outline-offset: 3px;
}
.sidebar button:focus-visible,
.sidebar a:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 5px #176fc8;
}
.sidebar {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}
.content,
.legal-card h1,
.legal-card h2 {
  scroll-margin-top: 100px;
}
.auth-form input,
.field input,
.field select,
.select-ui {
  min-height: 46px;
}
.field input::placeholder,
.field textarea::placeholder,
.auth-form input::placeholder,
.search-input::placeholder {
  color: #64758a;
  opacity: 1;
}
.fine-print,
.data-table th,
.topbar-title small,
.mobile-nav button,
.tx-main small {
  color: #5f6f83;
}
.data-table th {
  font-size: 10px;
}
.data-table td,
.toast {
  font-size: 12px;
}

/* Navigation icon system */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.ui-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.nav-item {
  --nav-accent: #7fcfff;
  --nav-tint: rgba(87, 183, 255, 0.12);
  --nav-border: rgba(87, 183, 255, 0.2);
}
.nav-item[data-view="income"] {
  --nav-accent: #69d6ad;
  --nav-tint: rgba(65, 198, 151, 0.12);
  --nav-border: rgba(65, 198, 151, 0.22);
}
.nav-item[data-view="expenses"] {
  --nav-accent: #ff8b9d;
  --nav-tint: rgba(255, 115, 139, 0.12);
  --nav-border: rgba(255, 115, 139, 0.22);
}
.nav-item[data-view="installments"] {
  --nav-accent: #a99dff;
  --nav-tint: rgba(142, 125, 255, 0.13);
  --nav-border: rgba(142, 125, 255, 0.24);
}
.nav-item[data-view="investments"] {
  --nav-accent: #65c9eb;
  --nav-tint: rgba(75, 181, 219, 0.12);
  --nav-border: rgba(75, 181, 219, 0.22);
}
.nav-item[data-view="openfinance"],
.nav-item[data-view="residents"] {
  --nav-accent: #62d5c3;
  --nav-tint: rgba(69, 196, 178, 0.12);
  --nav-border: rgba(69, 196, 178, 0.22);
}
.nav-item[data-view="insights"] {
  --nav-accent: #bda8ff;
  --nav-tint: rgba(155, 125, 255, 0.13);
  --nav-border: rgba(155, 125, 255, 0.24);
}
.nav-item[data-view="help"] {
  --nav-accent: #e8bd69;
  --nav-tint: rgba(232, 189, 105, 0.12);
  --nav-border: rgba(232, 189, 105, 0.22);
}
.nav-item[data-view="admin"] {
  --nav-accent: #b9aaff;
  --nav-tint: rgba(117, 88, 232, 0.14);
  --nav-border: rgba(162, 145, 255, 0.24);
}
.nav-item[data-view="settings"] {
  --nav-accent: #9fb4c8;
  --nav-tint: rgba(143, 168, 191, 0.1);
  --nav-border: rgba(143, 168, 191, 0.2);
}
.nav-item .nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--nav-accent);
  opacity: 0.78;
  line-height: 0;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  opacity: 1;
  background: var(--nav-tint);
  border-color: var(--nav-border);
}
.nav-item.active .nav-icon {
  color: var(--nav-accent);
  box-shadow: 0 6px 16px rgba(13, 40, 65, 0.14);
}
.nav-item .nav-icon .ui-icon {
  width: 18px;
  height: 18px;
}
.admin-nav-item:not(.active) {
  color: #a9b7c8 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.admin-nav-item:not(.active):hover {
  color: #fff !important;
  background: #ffffff0e !important;
}
.admin-nav-item.active {
  background: linear-gradient(90deg, #7558e83b, #7558e814) !important;
  box-shadow: inset 3px 0 #a291ff !important;
}
.admin-nav-item .nav-icon {
  color: var(--nav-accent) !important;
  background: var(--nav-tint) !important;
  border-color: var(--nav-border) !important;
}
.icon-btn,
.mobile-menu-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
}
.mobile-menu-btn {
  display: none;
}
.icon-btn .ui-icon,
.mobile-menu-btn .ui-icon,
.profile-mini > button .ui-icon {
  margin: auto;
}
.profile-mini > button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.install-app-btn > .ui-icon {
  width: 20px;
  height: 20px;
}
.more-sheet button {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 13px 14px;
  text-align: left;
  font-size: 11px;
}
.more-sheet-icon {
  width: 19px;
  height: 19px;
  color: #1f73ca;
}
.more-sheet button[data-more-view="admin"] .more-sheet-icon {
  color: #7558e8;
}
.more-sheet button[data-more-action="sync"] .more-sheet-icon {
  color: #0a9375;
}
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: inline-grid;
  }
  .mobile-nav button:not(.mobile-add) {
    border-radius: 12px;
  }
  .mobile-nav button.active:not(.mobile-add) {
    background: #eaf4ff;
    box-shadow: inset 0 0 0 1px rgba(31, 115, 202, 0.12);
  }
  .mobile-nav-icon,
  .mobile-add-icon {
    display: grid;
    place-items: center;
    line-height: 0;
  }
  .mobile-nav-icon .ui-icon {
    width: 21px;
    height: 21px;
  }
  .mobile-add-icon .ui-icon {
    width: 25px;
    height: 25px;
    stroke-width: 2.1;
  }
  .mobile-nav button small {
    font-size: 10px;
  }
}
#txTableWrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.pill {
  font-size: 10px;
  line-height: 1.25;
}
.modal {
  max-height: min(840px, calc(100dvh - 36px));
  overscroll-behavior: contain;
}
.legal-card {
  overflow-wrap: anywhere;
}
.legal-card h1 {
  margin-bottom: 10px;
  line-height: 1.15;
}
.legal-card a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.legal-nav {
  margin-bottom: 28px;
}
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #e1e8f0;
}

@media (pointer: coarse) {
  button,
  a.primary-btn,
  a.soft-btn,
  .filter-chip,
  .mini-btn {
    min-height: 44px;
  }
}

@media (max-width: 900px) {
  .ambient {
    display: none;
  }
  .sidebar {
    max-height: 100vh;
    max-height: 100dvh;
  }
}

@media (max-width: 640px) {
  .data-table td[data-label]:before {
    color: #5f6f83;
    font-size: 10px;
  }
  .metric-card small,
  .panel-head p {
    font-size: 11px;
  }
  .legal-page {
    padding: 18px 10px;
  }
  .legal-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .legal-card h1 {
    font-size: clamp(27px, 9vw, 32px);
  }
}

@media (max-width: 420px) {
  .topbar-title {
    min-width: 0;
  }
  .topbar-title > div {
    min-width: 0;
  }
  .topbar-title small {
    display: none;
  }
  .topbar-title h1 {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .month-control button:nth-child(2) {
    min-width: 76px;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(23, 42, 69, 0.3);
    --line2: rgba(23, 42, 69, 0.48);
    --muted: #43566d;
  }
  .panel,
  .metric-card,
  .plan-card,
  .member-card,
  .connection-card,
  .account-card {
    box-shadow: none;
  }
}

@media (forced-colors: active) {
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline-color: Highlight;
  }
}

@media print {
  .legal-page {
    padding: 0;
    background: #fff;
  }
  .legal-card {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .legal-nav,
  .legal-footer {
    display: none;
  }
}
