@charset "UTF-8";

:root {
  --next-accent: #35c96f;
  --box-bg: #f3f3f5;
  --box-paper: #ffffff;
  --box-ink: #090909;
  --box-muted: #96969d;
  --box-soft: #ececef;
  --box-line: #e4e4e7;
  --box-dark: #191919;
  --box-dark-2: #252525;
  --box-danger: #ee5668;
  --box-warning: #e4ad35;
  --box-radius: 25px;
  --box-small-radius: 18px;
  --box-shadow: 0 12px 34px rgba(24, 24, 27, .055);
  --ac: var(--next-accent);
  --font-ui: "DM Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-money: "DM Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

[data-theme="dark"] {
  --box-bg: #0b0d11;
  --box-paper: #15181d;
  --box-ink: #f5f6f7;
  --box-muted: #9ea3ad;
  --box-soft: #1e2228;
  --box-line: #2b3038;
  --box-dark: #f4f5f7;
  --box-dark-2: #20242b;
  --box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

[data-theme="light"] {
  --box-bg: #f3f3f5;
  --box-paper: #ffffff;
  --box-ink: #090909;
  --box-muted: #96969d;
  --box-soft: #ececef;
  --box-line: #e4e4e7;
  --box-dark: #191919;
  --box-dark-2: #252525;
  --box-shadow: 0 12px 34px rgba(24, 24, 27, .055);
}

[data-theme="x"] {
  --font-ui: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-money: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --next-accent: #ff7545;
  --box-bg: #f7f7f6;
  --box-paper: #ffffff;
  --box-ink: #20252b;
  --box-muted: #6c7278;
  --box-soft: #f0f1f2;
  --box-line: #e3e5e7;
  --box-dark: #ff7545;
  --box-dark-2: #fff0ea;
  --box-danger: #d85d4d;
  --box-warning: #d68b1f;
  --box-shadow: 0 12px 34px rgba(32, 37, 43, .09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--box-bg);
  color-scheme: light;
}

[data-theme="dark"] html,
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="x"] {
  color-scheme: light;
}

body.next-visual {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--box-ink);
  background: var(--box-bg) !important;
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] body.next-visual {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, .03), transparent 22%),
    linear-gradient(180deg, #090b0f 0%, #0b0d11 100%) !important;
}

.next-visual :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--next-accent) 72%, #000);
  outline-offset: 3px;
}

.next-visual button,
.next-visual [role="button"],
.next-visual a,
.next-visual input,
.next-visual select {
  -webkit-tap-highlight-color: transparent;
}

body.next-visual::before,
body.next-visual::after {
  display: none !important;
}

.next-visual.next-app-ready .sidebar,
.next-visual.next-app-ready .fnav,
.next-visual.next-app-ready .mobile-profile-btn,
.next-visual.next-app-ready .fab {
  display: none !important;
}

.next-visual.next-app-ready .main {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 46px clamp(18px, 4vw, 58px) 130px !important;
  overflow: visible !important;
}

.next-visual.next-app-ready .page.active {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.next-visual .page {
  color: var(--box-ink);
}

.next-visual.next-setup-visible .next-app-chrome,
.next-visual.next-setup-visible .next-launcher {
  display: none !important;
}

/* Bottom navigation — same four-destination anatomy as the reference. */
.next-app-chrome {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(330px, auto);
  gap: 8px;
  align-items: center;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, .13));
}

.next-app-chrome > .next-add-button {
  display: none !important;
}

.next-visual[data-next-page="dashboard"] .next-app-chrome > .next-more-button {
  display: none !important;
}

.next-tabbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 3px;
  min-height: 62px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, .035);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
  backdrop-filter: blur(18px);
}

[data-theme="dark"] .next-tabbar {
  border-color: rgba(255, 255, 255, .06);
  background: rgba(19, 22, 28, .92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .34);
}

.next-tabbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 19px;
  background: transparent;
  color: #5f5f64;
  cursor: pointer;
  font: inherit;
  transition: background .18s ease, color .18s ease;
}

.next-tabbar button span {
  font-size: 18px;
  line-height: 1;
}

.next-tabbar button strong {
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.next-tabbar button.active {
  background: var(--box-dark);
  color: #fff;
}

[data-theme="dark"] .next-tabbar button {
  color: #b3b7bf;
}

[data-theme="dark"] .next-tabbar button.active {
  background: var(--box-paper);
  color: #fff;
}

.next-more-button,
.next-add-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.next-more-button {
  background: #fff;
  color: var(--box-ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
}

[data-theme="dark"] .next-more-button {
  background: var(--box-paper);
  color: var(--box-ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}

.next-add-button {
  background: var(--box-dark);
  color: #fff;
  font-size: 28px;
  font-weight: 300;
}

/* Secondary module launcher. */
.next-launcher {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  align-items: end;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.next-launcher.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.next-launcher-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(12, 12, 12, .44);
  backdrop-filter: blur(6px);
}

.next-launcher-sheet {
  position: relative;
  width: min(720px, calc(100% - 24px));
  max-height: min(680px, calc(100vh - 40px));
  margin: 0 auto 12px;
  padding: 12px 22px 28px;
  overflow-y: auto;
  border-radius: 34px;
  background: var(--box-dark);
  color: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .34);
  transform: translateY(30px);
  transition: transform .24s ease;
}

[data-theme="dark"] .next-launcher-sheet {
  background: #101319;
  color: #fff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .48);
}

.next-launcher.open .next-launcher-sheet {
  transform: translateY(0);
}

.next-sheet-grabber {
  width: 44px;
  height: 5px;
  margin: 0 auto 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .18);
}

.next-launcher-sheet header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.next-launcher-sheet header small {
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
}

.next-launcher-sheet h2 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.045em;
}

.next-launcher-sheet header > button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  cursor: pointer;
  font-size: 23px;
}

.next-launcher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.next-launcher-grid > button {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  border: 0;
  border-radius: 20px;
  background: var(--box-dark-2);
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.next-launcher-grid > button > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .08);
  font-size: 20px;
}

.next-launcher-grid strong,
.next-launcher-grid small {
  display: block;
}

.next-launcher-grid strong {
  margin-bottom: 3px;
  font-size: 15px;
}

.next-launcher-grid small {
  overflow: hidden;
  color: rgba(255, 255, 255, .46);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-launcher-grid > button.active {
  background: #fff;
  color: var(--box-ink);
}

.next-launcher-grid > button.active > span {
  background: var(--box-soft);
}

.next-launcher-grid > button.active small {
  color: #8a8a91;
}

/* Home. */
.next-home {
  display: grid;
  gap: 24px;
  width: min(720px, 100%);
  margin: 0 auto;
}

.box-home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 6px 0;
}

.box-home-head small {
  display: block;
  margin-bottom: 2px;
  color: var(--box-muted);
  font-size: 14px;
}

.box-home-head h1 {
  margin: 0;
  color: var(--box-ink);
  font-size: clamp(34px, 5vw, 46px);
  line-height: .95;
  letter-spacing: -.055em;
}

.box-home-actions {
  display: flex;
  gap: 8px;
}

.box-home-actions button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--box-line);
  border-radius: 18px;
  background: transparent;
  color: var(--box-ink);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
}

.box-home-actions button:first-child {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
}

.box-budget-hero {
  position: relative;
  padding: 27px 30px 25px;
  border-radius: 31px;
  background: var(--box-dark);
  color: #fff;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .12);
}

.box-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.box-quick-actions button {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 88px;
  padding: 12px 8px;
  border: 0;
  border-radius: 20px;
  background: var(--box-paper);
  color: var(--box-ink);
  cursor: pointer;
  font: inherit;
  box-shadow: var(--box-shadow);
}

.box-quick-actions span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--box-soft);
  font-size: 18px;
  font-weight: 800;
}

.box-quick-actions button:first-child span {
  background: var(--next-accent);
}

.box-quick-actions strong {
  font-size: 12px;
}

.box-budget-top,
.box-budget-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.box-budget-top {
  color: rgba(255, 255, 255, .52);
  font-size: 13px;
}

.box-budget-top strong {
  font-size: 12px;
  letter-spacing: .08em;
}

.box-budget-hero h2 {
  margin: 26px 0 10px;
  color: #fff;
  font-size: clamp(39px, 8vw, 62px);
  line-height: .95;
  letter-spacing: -.065em;
}

.box-progress {
  height: 7px;
  margin: 14px 0 20px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .11);
}

.box-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--next-accent);
}

.box-budget-foot > span {
  display: grid;
  gap: 3px;
}

.box-budget-foot > span:last-child {
  text-align: right;
}

.box-budget-foot small {
  color: rgba(255, 255, 255, .42);
  font-size: 11px;
}

.box-budget-foot strong {
  font-size: 15px;
}

.box-detail-button {
  position: absolute;
  left: 50%;
  bottom: -19px;
  min-height: 38px;
  padding: 0 21px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 99px;
  background: #fff;
  color: #626269;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .12);
}

.box-section {
  margin-top: 8px;
}

.box-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 0 7px;
}

.box-section > header h2 {
  margin: 0;
  color: var(--box-ink);
  font-size: 19px;
  letter-spacing: -.035em;
}

.box-section > header button {
  border: 0;
  background: transparent;
  color: var(--box-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.box-transaction-list {
  display: grid;
  gap: 10px;
}

.box-transaction {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 12px 17px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--box-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: var(--box-shadow);
}

.box-transaction-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--box-dark);
  color: #fff;
  font-size: 19px;
}

.box-transaction-copy,
.box-transaction-value {
  min-width: 0;
}

.box-transaction-copy strong,
.box-transaction-copy small,
.box-transaction-value b,
.box-transaction-value small {
  display: block;
}

.box-transaction-copy strong,
.box-transaction-value b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.box-transaction-copy small,
.box-transaction-value small {
  margin-top: 3px;
  color: #b0b0b5;
  font-size: 11px;
}

.box-transaction-value {
  text-align: right;
}

.box-empty {
  display: grid;
  gap: 5px;
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.box-empty span {
  color: var(--box-muted);
  font-size: 12px;
}

.box-insight-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.box-insight-strip button {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 20px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--box-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: var(--box-shadow);
}

.box-insight-strip small,
.box-insight-strip span {
  color: var(--box-muted);
  font-size: 11px;
}

.box-insight-strip strong {
  overflow: hidden;
  font-size: 18px;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Every internal screen. */
.next-visual .box-page > .ph,
.next-visual .box-page > .sl-header,
.next-visual .box-page > .car-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 25px;
  padding: 2px 4px 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.next-visual .box-page .box-page-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--box-muted);
  font-size: 12px;
  font-weight: 500;
}

.next-visual .box-page .pt {
  margin: 0;
  color: var(--box-ink) !important;
  font-family: var(--font-ui);
  font-size: clamp(34px, 5vw, 48px) !important;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.055em;
}

.next-visual .box-page .ps {
  display: none;
}

.next-visual .box-page > .ph > div:last-child,
.next-visual .box-page > .sl-header > div:last-child,
.next-visual .box-page .car-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.next-visual .box,
.next-visual .ss,
.next-visual .tx-surface,
.next-visual .fixed-bills-panel,
.next-visual .future-center-panel,
.next-visual .shopping-hero,
.next-visual .sl-header,
.next-visual .car-hero,
.next-visual .car-panel,
.next-visual .car-maint-wrap,
.next-visual .car-chart-panel,
.next-visual .cc-box,
.next-visual .bg-card,
.next-visual .sc,
.next-visual .sl-card,
.next-visual .vehicle-widget-card,
.next-visual .import-center {
  border: 0 !important;
  border-radius: var(--box-radius) !important;
  background: var(--box-paper) !important;
  color: var(--box-ink) !important;
  box-shadow: var(--box-shadow) !important;
}

.next-visual .box,
.next-visual .ss,
.next-visual .tx-surface,
.next-visual .car-maint-wrap,
.next-visual .car-chart-panel {
  padding: clamp(16px, 2.5vw, 24px) !important;
}

.next-visual .ss {
  margin-bottom: 12px;
}

/* The first summary block on each page is the single dominant black card. */
.next-visual .box-page > .g4,
.next-visual .box-page > .g3,
.next-visual .box-page > .g2,
.next-visual .box-page > .fgrid,
.next-visual .box-page > .insight-grid:first-of-type {
  padding: 20px !important;
  border-radius: 28px !important;
  background: var(--box-dark) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .11);
}

.next-visual .box-page > .g4 .sc,
.next-visual .box-page > .g3 .sc,
.next-visual .box-page > .g2 .sc,
.next-visual .box-page > .fgrid .sc,
.next-visual .box-page > .insight-grid:first-of-type > * {
  border: 0 !important;
  background: var(--box-dark-2) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.next-visual .box-page > .g4 .cl,
.next-visual .box-page > .g3 .cl,
.next-visual .box-page > .g2 .cl,
.next-visual .box-page > .fgrid .cl,
.next-visual .box-page > .g4 .cc,
.next-visual .box-page > .g3 .cc,
.next-visual .box-page > .g2 .cc,
.next-visual .box-page > .fgrid .cc,
.next-visual .box-page > .insight-grid:first-of-type .cl,
.next-visual .box-page > .insight-grid:first-of-type .cc {
  color: rgba(255, 255, 255, .46) !important;
}

.next-visual .box-page > .g4 .cv,
.next-visual .box-page > .g3 .cv,
.next-visual .box-page > .g2 .cv,
.next-visual .box-page > .fgrid .cv,
.next-visual .box-page > .insight-grid:first-of-type .cv {
  color: #fff !important;
}

.next-visual .g4,
.next-visual .g3,
.next-visual .g2,
.next-visual .fgrid,
.next-visual .bg-grid,
.next-visual .insight-grid,
.next-visual .projection-grid,
.next-visual .proj-scenarios,
.next-visual .card-center-grid,
.next-visual .sl-grid,
.next-visual .car-grid,
.next-visual .tx-chart-grid {
  gap: 10px !important;
}

.next-visual .sc,
.next-visual .bg-card,
.next-visual .insight-card {
  min-height: 112px;
  padding: 17px !important;
}

.next-visual .ci {
  opacity: .58;
  filter: grayscale(1);
}

.next-visual .cl,
.next-visual .cc,
.next-visual .cs,
.next-visual .ss-s,
.next-visual .hint,
.next-visual .empty,
.next-visual .sl-sub,
.next-visual .car-sub {
  color: var(--box-muted) !important;
}

.next-visual .cv,
.next-visual .ct,
.next-visual .ss-t,
.next-visual .ss-l,
.next-visual .sl-title,
.next-visual .car-title {
  color: var(--box-ink) !important;
}

.next-visual .ct,
.next-visual .ss-t,
.next-visual .sl-title,
.next-visual .car-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em !important;
}

.next-visual .bh {
  margin-bottom: 16px;
}

.next-visual .ss-t {
  margin-bottom: 13px;
  padding: 0 2px;
}

.next-visual .ss-r,
.next-visual .future-center-row,
.next-visual .import-preview-card,
.next-visual .key-box,
.next-visual .auth-ok {
  min-height: 64px;
  padding: 13px 15px !important;
  border: 0 !important;
  border-radius: var(--box-small-radius) !important;
  background: var(--box-bg) !important;
}

.next-visual .ss-r + .ss-r {
  margin-top: 7px;
}

.next-visual .pbar,
.next-visual .cat-filter-row,
.next-visual .sl-lists {
  display: flex;
  gap: 7px;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  overflow-x: auto;
  border: 0;
  background: transparent;
  scrollbar-width: none;
}

.next-visual .pbar::-webkit-scrollbar,
.next-visual .cat-filter-row::-webkit-scrollbar,
.next-visual .sl-lists::-webkit-scrollbar {
  display: none;
}

.next-visual .pb,
.next-visual .cat-filter-chip,
.next-visual .sl-tab,
.next-visual .vbtn,
.next-visual .ttb,
.next-visual .qa-tb,
.next-visual .mode-btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--box-line) !important;
  border-radius: 99px !important;
  background: transparent !important;
  color: #727278 !important;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.next-visual .pb.active,
.next-visual .cat-filter-chip.active,
.next-visual .sl-tab.active,
.next-visual .vbtn.active,
.next-visual .ttb.active,
.next-visual .qa-tb.active {
  border-color: var(--box-dark) !important;
  background: var(--box-dark) !important;
  color: #fff !important;
}

.next-visual .btn {
  min-height: 42px;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 15px !important;
  cursor: pointer;
  font: inherit;
  font-size: 12px !important;
  font-weight: 750 !important;
  box-shadow: none !important;
}

.next-visual .btn-p,
.next-visual .btn.btn-p {
  background: var(--box-dark) !important;
  color: #fff !important;
}

.next-visual .btn-g,
.next-visual .btn.btn-g {
  border: 1px solid var(--box-line) !important;
  background: #fff !important;
  color: var(--box-ink) !important;
}

.next-visual .btn-d,
.next-visual .del,
.next-visual .danger {
  background: #fff0f2 !important;
  color: var(--box-danger) !important;
}

.next-visual .fi,
.next-visual .sel,
.next-visual .sb,
.next-visual input,
.next-visual select,
.next-visual textarea {
  min-height: 44px;
  border: 0 !important;
  border-radius: 14px !important;
  outline: none;
  background: var(--box-bg) !important;
  color: var(--box-ink) !important;
  box-shadow: inset 0 0 0 1px transparent !important;
}

.next-visual input:focus,
.next-visual select:focus,
.next-visual textarea:focus {
  box-shadow: inset 0 0 0 2px var(--next-accent) !important;
}

.next-visual input::placeholder,
.next-visual textarea::placeholder {
  color: #b3b3b8 !important;
}

.next-visual .tx-toolbar,
.next-visual .car-filterbar,
.next-visual .sl-add-row {
  gap: 8px !important;
  margin-bottom: 15px !important;
  padding: 12px !important;
  border-radius: 19px;
  background: var(--box-bg);
}

.next-visual .tl,
.next-visual .tx-list-host,
.next-visual #txView,
.next-visual #dueList,
.next-visual #futPayList,
.next-visual #futIncList,
.next-visual #ovdList,
.next-visual .commit-list {
  display: grid;
  gap: 8px;
}

.next-visual .ti,
.next-visual .tx-list-host .ti,
.next-visual .tl .ti,
.next-visual .sl-item,
.next-visual .car-event-row,
.next-visual .import-row,
.next-visual .commit-item {
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--box-bg) !important;
  color: var(--box-ink) !important;
  box-shadow: none !important;
}

.next-visual .ti:hover,
.next-visual .sl-item:hover,
.next-visual .car-event-row:hover,
.next-visual .import-row:hover {
  background: #e9e9ec !important;
  transform: none !important;
}

.next-visual .sdiv {
  margin: 22px 0 12px;
}

.next-visual .sdiv-line {
  background: var(--box-line) !important;
}

.next-visual .sdiv-lbl {
  color: #99999f !important;
  font-size: 10px;
  letter-spacing: .1em;
}

.next-visual .diag-pill,
.next-visual .state-pill,
.next-visual .status-pill {
  border: 0 !important;
  border-radius: 99px !important;
  background: #e8f8ed !important;
  color: #238a4b !important;
}

/* Bottom sheets and overlays. */
.next-visual .ov,
.next-visual .srch-ov,
.next-visual .qa-wrap {
  background: rgba(20, 20, 20, .48) !important;
  backdrop-filter: blur(7px);
}

.next-visual .modal,
.next-visual .srch-box,
.next-visual .qa-panel,
.next-visual .acct-pop,
.next-visual .sidebar-shortcut-menu {
  border: 0 !important;
  border-radius: 31px !important;
  background: var(--box-dark) !important;
  color: #fff !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .36) !important;
}

.next-visual .modal {
  position: fixed !important;
  right: 12px !important;
  bottom: 12px !important;
  left: 12px !important;
  width: min(660px, calc(100% - 24px)) !important;
  max-width: 660px !important;
  max-height: calc(100vh - 24px) !important;
  margin: auto !important;
  padding: 13px 21px 24px !important;
  overflow-y: auto;
}

.next-visual .modal::before {
  content: "";
  display: block;
  width: 43px;
  height: 5px;
  margin: 0 auto 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .17);
}

.next-visual .modal .mt,
.next-visual .srch-title {
  color: #fff !important;
  font-size: 28px !important;
  line-height: 1 !important;
  letter-spacing: -.045em !important;
}

.next-visual .modal .ms,
.next-visual .modal .fl,
.next-visual .modal .hint {
  color: rgba(255, 255, 255, .46) !important;
}

.next-visual .modal .fi,
.next-visual .modal .sel,
.next-visual .modal input,
.next-visual .modal select,
.next-visual .modal textarea,
.next-visual .qa-panel input {
  background: var(--box-dark-2) !important;
  color: #fff !important;
}

.next-visual .modal .btn-p {
  background: #fff !important;
  color: var(--box-ink) !important;
}

.next-visual .modal .btn-g {
  border-color: rgba(255, 255, 255, .1) !important;
  background: var(--box-dark-2) !important;
  color: #fff !important;
}

.next-visual .mc {
  border: 0 !important;
  background: rgba(255, 255, 255, .09) !important;
  color: #fff !important;
}

/* Accent is deliberately restrained, like the reference. */
.next-visual .prog > i,
.next-visual .sl-prog-fill,
.next-visual .bar-fill,
.next-visual .progress-fill,
.next-visual .ring-progress {
  background: var(--next-accent) !important;
}

.box-accent-settings {
  background: var(--box-paper) !important;
}

.box-accent-row {
  align-items: center !important;
}

.box-swatches {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 99px;
  background: #fff;
}

.box-swatches button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  background: var(--sw);
  cursor: pointer;
}

.box-swatches button.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--box-ink);
}

/* Authentication is also a new product surface. */
.next-visual #setup {
  min-height: 100vh;
  padding: 26px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .08), transparent 30%),
    #30302f !important;
}

.next-visual .setup-box {
  width: min(980px, 100%) !important;
  padding: clamp(22px, 4vw, 44px) !important;
  border: 0 !important;
  border-radius: 34px !important;
  background: #f7f7f8 !important;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .3) !important;
}

.next-visual .setup-head {
  gap: 30px !important;
}

.next-visual .setup-badge,
.next-visual .setup-auth-badge {
  border: 0 !important;
  border-radius: 99px !important;
  background: var(--box-dark) !important;
  color: #fff !important;
}

.next-visual .slogo,
.next-visual .auth-title {
  color: var(--box-ink) !important;
  font-family: var(--font-ui) !important;
  font-weight: 800 !important;
  letter-spacing: -.06em !important;
}

.next-visual .slogo span {
  color: inherit !important;
}

.next-visual .stag,
.next-visual .setup-section-note,
.next-visual .setup-auth-intro,
.next-visual .shint {
  color: var(--box-muted) !important;
}

.next-visual .setup-preview,
.next-visual .setup-inline-preview,
.next-visual .setup-feature,
.next-visual .setup-auth-panel {
  border: 0 !important;
  border-radius: 25px !important;
  background: #fff !important;
  box-shadow: var(--box-shadow) !important;
}

.next-visual .setup-preview {
  background: var(--box-dark) !important;
  color: #fff !important;
}

.next-visual .setup-preview * {
  border-color: rgba(255, 255, 255, .08) !important;
}

.next-visual .setup-auth-panel .fi {
  background: var(--box-bg) !important;
}

.next-visual .mode-btn {
  width: 100%;
  min-height: 64px;
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--box-bg) !important;
  color: var(--box-ink) !important;
  text-align: left;
}

@media (min-width: 900px) {
  .next-visual .box-page > .box,
  .next-visual .box-page > .ss,
  .next-visual .box-page > .tx-surface,
  .next-visual .box-page > .fixed-bills-panel,
  .next-visual .box-page > .future-center-panel {
    margin-bottom: 14px;
  }

  .next-visual .box-page > .bg-grid,
  .next-visual .box-page > .card-center-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .next-visual *,
  .next-visual *::before,
  .next-visual *::after {
    min-width: 0 !important;
  }

  html,
  body.next-visual {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .next-visual.next-app-ready .main {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    padding: 26px 12px 112px !important;
    overflow-x: hidden !important;
  }

  .next-visual.next-app-ready .page.active,
  .next-visual .next-home,
  .next-visual .box-budget-hero,
  .next-visual .box-section,
  .next-visual .box-insight-strip {
    width: min(100%, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
  }

  .next-visual .box-budget-hero,
  .next-visual .box-transaction,
  .next-visual .box-insight-strip > * {
    overflow: hidden;
  }

  .next-app-chrome {
    left: 10px;
    right: 10px;
    transform: none;
    bottom: max(10px, env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr);
    width: auto;
    gap: 6px;
  }

  .next-more-button {
    position: absolute;
    top: -52px;
    right: 0;
    width: 42px;
    height: 42px;
  }

  .next-add-button {
    width: 44px;
    height: 44px;
  }

  .next-tabbar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 58px;
    border-radius: 22px;
  }

  .next-tabbar button {
    flex-direction: column;
    gap: 2px;
    padding: 4px 5px;
    border-radius: 17px;
  }

  .next-tabbar button span {
    font-size: 16px;
  }

  .next-tabbar button strong {
    font-size: 10px;
  }

  .next-home {
    gap: 21px;
  }

  .box-home-head {
    padding-inline: 5px;
  }

  .box-home-actions button:first-child {
    display: none;
  }

  .box-budget-hero {
    padding: 25px 24px 23px;
    border-radius: 29px;
  }

  .box-budget-hero h2 {
    font-size: clamp(34px, 11vw, 46px);
    letter-spacing: -.07em;
    overflow-wrap: anywhere;
  }

  .box-budget-foot {
    gap: 10px;
  }

  .box-budget-foot > span {
    min-width: 0 !important;
  }

  .box-budget-foot strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .box-detail-button {
    flex: 0 0 auto;
  }

  .box-insight-strip {
    grid-template-columns: 1fr;
  }

  .box-quick-actions {
    gap: 7px;
  }

  .box-quick-actions button {
    min-height: 76px;
    padding-inline: 4px;
    border-radius: 18px;
  }

  .box-quick-actions span {
    width: 34px;
    height: 34px;
  }

  .box-quick-actions strong {
    font-size: 10px;
  }

  .next-launcher-grid {
    grid-template-columns: 1fr;
  }

  .next-launcher-sheet {
    width: calc(100% - 16px);
    margin-bottom: 8px;
    border-radius: 30px;
  }

  .next-visual .box-page > .ph,
  .next-visual .box-page > .sl-header,
  .next-visual .box-page > .car-hero {
    display: grid;
    align-items: start;
    margin-bottom: 18px;
  }

  .next-visual .box-page > .ph > div:last-child,
  .next-visual .box-page > .sl-header > div:last-child,
  .next-visual .box-page .car-actions {
    justify-content: flex-start;
  }

  .next-visual .box-page .pt {
    font-size: 36px !important;
  }

  .next-visual .g4,
  .next-visual .g3,
  .next-visual .g2,
  .next-visual .fgrid,
  .next-visual .bg-grid,
  .next-visual .insight-grid,
  .next-visual .projection-grid,
  .next-visual .proj-scenarios,
  .next-visual .card-center-grid,
  .next-visual .sl-grid,
  .next-visual .car-grid,
  .next-visual .tx-chart-grid {
    grid-template-columns: 1fr !important;
  }

  .next-visual .box-page > .g4,
  .next-visual .box-page > .g3,
  .next-visual .box-page > .g2,
  .next-visual .box-page > .fgrid,
  .next-visual .box-page > .insight-grid:first-of-type {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 12px !important;
  }

  .next-visual .tx-toolbar,
  .next-visual .fr,
  .next-visual .frow,
  .next-visual .tx-range-row,
  .next-visual .car-filterbar,
  .next-visual .sl-add-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .next-visual .tx-toolbar > *,
  .next-visual .frow > *,
  .next-visual .fr > *,
  .next-visual .car-filterbar > *,
  .next-visual .sl-add-row > * {
    width: 100% !important;
    min-width: 0 !important;
  }

  .next-visual .ss-r {
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .box-accent-row {
    display: grid !important;
  }

  .box-swatches {
    width: max-content;
  }

  .next-visual #setup {
    padding: 10px;
  }

  .next-visual .setup-box {
    padding: 22px 15px !important;
    border-radius: 28px !important;
  }
}

@media (max-width: 430px) {
  .box-transaction {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 70px;
    padding: 10px 12px;
  }

  .box-transaction-icon {
    width: 38px;
    height: 38px;
  }

  .box-transaction-copy strong,
  .box-transaction-value b {
    max-width: 130px;
    font-size: 12px;
  }

  .next-visual .box-page > .g4,
  .next-visual .box-page > .g3,
  .next-visual .box-page > .g2,
  .next-visual .box-page > .fgrid,
  .next-visual .box-page > .insight-grid:first-of-type {
    grid-template-columns: 1fr !important;
  }
}

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

/* Login/onboarding uses the same stark editorial composition. */
.next-visual #setup .setup-box {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
  gap: 16px !important;
  width: min(980px, 100%) !important;
  padding: 0 !important;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.next-visual #setup .setup-story,
.next-visual #setup .setup-auth {
  min-width: 0 !important;
  min-height: 650px;
  padding: clamp(26px, 4vw, 42px) !important;
  overflow: hidden;
  border-radius: 34px !important;
}

.next-visual #setup .setup-story {
  display: block !important;
  background: var(--box-dark) !important;
  color: #fff;
}

.next-visual #setup .setup-auth {
  display: grid !important;
  align-items: center;
  background: #fff !important;
}

.next-visual #setup .setup-head {
  display: block !important;
}

.next-visual #setup .setup-copy-block {
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column;
}

.next-visual #setup .setup-badge {
  align-self: flex-start;
  order: 0;
  background: rgba(255, 255, 255, .1) !important;
}

.next-visual #setup .slogo {
  order: 1;
  margin: 30px 0 60px !important;
  color: #fff !important;
  font-size: 22px !important;
  letter-spacing: -.05em !important;
}

.next-visual #setup .setup-title {
  order: 2;
  max-width: 9ch;
  margin: 0 !important;
  color: #fff !important;
  font-family: var(--font-ui) !important;
  font-size: clamp(45px, 5.5vw, 72px) !important;
  font-weight: 400 !important;
  line-height: .93 !important;
  letter-spacing: -.065em !important;
}

.next-visual #setup .stag,
.next-visual #setup .setup-copy {
  order: 3;
  max-width: 37ch;
  margin: 28px 0 0 !important;
  color: rgba(255, 255, 255, .5) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.next-visual #setup .stag {
  display: none !important;
}

.next-visual #setup .setup-inline-preview,
.next-visual #setup .setup-preview,
.next-visual #setup .setup-feature-grid {
  display: none !important;
}

.next-visual #setup .setup-auth-panel {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.next-visual #setup .setup-auth-badge {
  display: inline-flex;
  width: max-content;
  margin-bottom: 28px;
  padding: 8px 12px;
}

.next-visual #setup .back-btn {
  margin-bottom: 16px;
  border: 0;
  background: transparent;
  color: var(--box-muted);
  cursor: pointer;
}

.next-visual #setup .auth-title {
  margin-bottom: 10px;
  font-size: 42px !important;
  line-height: .95 !important;
}

.next-visual #setup .setup-auth-intro,
.next-visual #setup .setup-section-note {
  margin-bottom: 24px;
  line-height: 1.5;
}

.next-visual #setup .slbl {
  display: block;
  margin: 14px 0 6px;
  color: var(--box-muted) !important;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.next-visual #setup .sinp {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 0 !important;
  border-radius: 16px !important;
  outline: 0;
  background: var(--box-bg) !important;
  color: var(--box-ink) !important;
}

.next-visual #setup .sbtn {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border: 0;
  border-radius: 17px;
  background: var(--box-dark) !important;
  color: #fff !important;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.next-visual #setup .slinks,
.next-visual #setup .setup-auth-note {
  color: var(--box-muted) !important;
  font-size: 11px;
}

.next-visual #setup .slinks a,
.next-visual #setup .setup-auth-note a {
  color: var(--box-ink) !important;
  cursor: pointer;
}

@media (max-width: 820px) {
  .next-visual #setup .setup-box {
    display: block !important;
    width: min(470px, 100%) !important;
  }

  .next-visual #setup .setup-story {
    display: none !important;
  }

  .next-visual #setup .setup-auth {
    min-height: calc(100vh - 20px);
    border-radius: 29px !important;
  }
}

@media (max-width: 760px) {
  html,
  body.next-visual,
  body.next-visual .main,
  body.next-visual .page.active,
  body.next-visual .next-home {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body.next-visual .main {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.next-visual .page.active,
  body.next-visual .next-home,
  body.next-visual .box-budget-hero,
  body.next-visual .box-section,
  body.next-visual .box-transaction,
  body.next-visual .box-insight-strip,
  body.next-visual .box-insight-strip > * {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.next-visual .box-budget-hero {
    padding-inline: 24px !important;
  }

  body.next-visual .box-transaction {
    grid-template-columns: 38px minmax(0, 1fr) minmax(0, 86px) !important;
  }

  body.next-visual .box-transaction-value {
    max-width: 86px !important;
  }

  body.next-visual .box-transaction-value b,
  body.next-visual .box-transaction-value small {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 520px) {
  body.next-visual .page.active,
  body.next-visual .next-home,
  body.next-visual .box-home-head,
  body.next-visual .box-budget-hero,
  body.next-visual .box-section,
  body.next-visual .box-transaction,
  body.next-visual .box-insight-strip,
  body.next-visual .box-insight-strip > * {
    width: min(366px, calc(100vw - 24px)) !important;
    max-width: min(366px, calc(100vw - 24px)) !important;
  }
}

.next-visual .box-page > .g4,
.next-visual .box-page > .g3,
.next-visual .box-page > .g2,
.next-visual .box-page > .fgrid,
.next-visual .box-page > .insight-grid:first-of-type {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.next-visual .box-page > .g4 .sc,
.next-visual .box-page > .g3 .sc,
.next-visual .box-page > .g2 .sc,
.next-visual .box-page > .fgrid .sc,
.next-visual .box-page > .insight-grid:first-of-type > * {
  background: var(--box-paper) !important;
  color: var(--box-ink) !important;
  box-shadow: var(--box-shadow) !important;
}

.next-visual .box-page > .g4 .sc:first-child,
.next-visual .box-page > .g3 .sc:first-child,
.next-visual .box-page > .g2 .sc:first-child,
.next-visual .box-page > .fgrid .sc:first-child,
.next-visual .box-page > .insight-grid:first-of-type > *:first-child {
  background: var(--box-dark) !important;
  color: #fff !important;
}

.next-visual .box-page > .g4 .sc:first-child .cl,
.next-visual .box-page > .g3 .sc:first-child .cl,
.next-visual .box-page > .g2 .sc:first-child .cl,
.next-visual .box-page > .fgrid .sc:first-child .cl,
.next-visual .box-page > .g4 .sc:first-child .cc,
.next-visual .box-page > .g3 .sc:first-child .cc,
.next-visual .box-page > .g2 .sc:first-child .cc,
.next-visual .box-page > .fgrid .sc:first-child .cc {
  color: rgba(255, 255, 255, .48) !important;
}

.next-visual .box-page > .g4 .sc:first-child .cv,
.next-visual .box-page > .g3 .sc:first-child .cv,
.next-visual .box-page > .g2 .sc:first-child .cv,
.next-visual .box-page > .fgrid .sc:first-child .cv {
  color: #fff !important;
}

.next-visual .box-page > .g4 .sc:not(:first-child) .cl,
.next-visual .box-page > .g3 .sc:not(:first-child) .cl,
.next-visual .box-page > .g2 .sc:not(:first-child) .cl,
.next-visual .box-page > .fgrid .sc:not(:first-child) .cl,
.next-visual .box-page > .g4 .sc:not(:first-child) .cc,
.next-visual .box-page > .g3 .sc:not(:first-child) .cc,
.next-visual .box-page > .g2 .sc:not(:first-child) .cc,
.next-visual .box-page > .fgrid .sc:not(:first-child) .cc {
  color: var(--box-muted) !important;
}

.next-visual .box-page > .g4 .sc:not(:first-child) .cv,
.next-visual .box-page > .g3 .sc:not(:first-child) .cv,
.next-visual .box-page > .g2 .sc:not(:first-child) .cv,
.next-visual .box-page > .fgrid .sc:not(:first-child) .cv {
  color: var(--box-ink) !important;
}

[data-theme="dark"] .next-visual .box,
[data-theme="dark"] .next-visual .cc-box,
[data-theme="dark"] .next-visual .sc,
[data-theme="dark"] .next-visual .bg-card,
[data-theme="dark"] .next-visual .modal,
[data-theme="dark"] .next-visual .setup-box,
[data-theme="dark"] .next-visual .qa-panel,
[data-theme="dark"] .next-visual .sinp,
[data-theme="dark"] .next-visual .sb-search,
[data-theme="dark"] .next-visual .fi,
[data-theme="dark"] .next-visual .sb,
[data-theme="dark"] .next-visual select.sel,
[data-theme="dark"] .next-visual .vtog,
[data-theme="dark"] .next-visual .theme-btn,
[data-theme="dark"] .next-visual .mnav,
[data-theme="dark"] .next-visual .setup-auth,
[data-theme="dark"] .next-visual .setup-auth-panel,
[data-theme="dark"] .next-visual .setup-feature-card,
[data-theme="dark"] .next-visual .setup-inline-card,
[data-theme="dark"] .next-visual .setup-rail-card,
[data-theme="dark"] .next-visual .box-page > .g4 .sc:not(:first-child),
[data-theme="dark"] .next-visual .box-page > .g3 .sc:not(:first-child),
[data-theme="dark"] .next-visual .box-page > .g2 .sc:not(:first-child),
[data-theme="dark"] .next-visual .box-page > .fgrid .sc:not(:first-child),
[data-theme="dark"] .next-visual .box-page > .insight-grid:first-of-type > *:not(:first-child) {
  background: var(--box-paper) !important;
  color: var(--box-ink) !important;
  border-color: var(--box-line) !important;
  box-shadow: var(--box-shadow) !important;
}

[data-theme="dark"] .next-visual .pt,
[data-theme="dark"] .next-visual .ct,
[data-theme="dark"] .next-visual .cv,
[data-theme="dark"] .next-visual .auth-title,
[data-theme="dark"] .next-visual .setup-title,
[data-theme="dark"] .next-visual .mode-lbl,
[data-theme="dark"] .next-visual .uname {
  color: #f5f6f7 !important;
}

[data-theme="dark"] .next-visual .ps,
[data-theme="dark"] .next-visual .cs,
[data-theme="dark"] .next-visual .cc,
[data-theme="dark"] .next-visual .cl,
[data-theme="dark"] .next-visual .setup-copy,
[data-theme="dark"] .next-visual .setup-auth-intro,
[data-theme="dark"] .next-visual .setup-section-note,
[data-theme="dark"] .next-visual .mode-sub,
[data-theme="dark"] .next-visual .urole {
  color: var(--box-muted) !important;
}

[data-theme="dark"] .next-visual .btn-g,
[data-theme="dark"] .next-visual .mode-btn,
[data-theme="dark"] .next-visual .theme-btn,
[data-theme="dark"] .next-visual .nav-item,
[data-theme="dark"] .next-visual .pop-item,
[data-theme="dark"] .next-visual .ti {
  background: #1a1e24 !important;
  color: var(--box-ink) !important;
  border-color: var(--box-line) !important;
}

[data-theme="dark"] .next-visual .btn-p,
[data-theme="dark"] .next-visual .sbtn,
[data-theme="dark"] .next-visual .nav-item.active,
[data-theme="dark"] .next-visual .fn-item.active,
[data-theme="dark"] .next-visual .pb.active,
[data-theme="dark"] .next-visual .sl-tab.active {
  background: var(--next-accent) !important;
  color: #08110b !important;
  border-color: transparent !important;
}

[data-theme="dark"] .next-visual .sinp,
[data-theme="dark"] .next-visual .fi,
[data-theme="dark"] .next-visual .sb,
[data-theme="dark"] .next-visual select.sel {
  color: #f5f6f7 !important;
}

.next-visual .box-page {
  display: grid;
  gap: 16px;
}

.next-visual .box-page > .ph,
.next-visual .box-page > .sl-header,
.next-visual .box-page > .car-hero {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 18px;
  margin-bottom: 4px !important;
  padding: 6px 4px 2px !important;
}

.next-visual .box-page-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--box-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.next-visual .box-page .pt,
.next-visual .box-page .auth-title {
  margin: 0 !important;
  color: var(--box-ink) !important;
  font-size: clamp(32px, 4vw, 54px) !important;
  font-weight: 700 !important;
  line-height: .96 !important;
  letter-spacing: -.06em !important;
}

.next-visual .box-page .ps {
  margin-top: 8px !important;
  color: var(--box-muted) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.next-visual .box-page .box,
.next-visual .box-page .ss,
.next-visual .box-page .bg-card,
.next-visual .box-page .sc,
.next-visual .box-page .cc-box,
.next-visual .box-page .car-chart-card,
.next-visual .box-page .sl-progress {
  border: 1px solid var(--box-line) !important;
  border-radius: 28px !important;
  background: var(--box-paper) !important;
  box-shadow: var(--box-shadow) !important;
}

.next-visual .box-page .ss,
.next-visual .box-page .box,
.next-visual .box-page .car-chart-card {
  padding: 20px !important;
}

.next-visual .box-page .ss-t,
.next-visual .box-page .ct {
  color: var(--box-ink) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -.04em;
}

.next-visual .box-page .ss-r,
.next-visual .box-page .bh {
  gap: 14px !important;
}

.next-visual .box-page .ss-r + .ss-r {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--box-line);
}

.next-visual .box-page .ss-l,
.next-visual .box-page .cl,
.next-visual .box-page .cv,
.next-visual .box-page .uname {
  color: var(--box-ink) !important;
}

.next-visual .box-page .ss-s,
.next-visual .box-page .cs,
.next-visual .box-page .cc,
.next-visual .box-page .urole {
  color: var(--box-muted) !important;
}

.next-visual .box-page .btn,
.next-visual #setup .btn,
.next-visual .mode-btn,
.next-visual .theme-btn {
  min-height: 44px;
  padding: 0 16px !important;
  border-radius: 16px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.next-visual .box-page .btn-p,
.next-visual #setup .btn-p,
.next-visual .next-home .box-home-actions button:last-child,
.next-visual .sbtn {
  background: var(--box-dark) !important;
  color: #fff !important;
}

.next-visual .box-page .btn-g,
.next-visual .box-page .btn-d,
.next-visual .mode-btn,
.next-visual .theme-btn {
  border: 1px solid var(--box-line) !important;
  background: color-mix(in srgb, var(--box-paper) 84%, var(--box-bg)) !important;
  color: var(--box-ink) !important;
}

.next-visual .box-page .fi,
.next-visual .box-page .sb,
.next-visual .box-page .sel,
.next-visual #setup .sinp {
  min-height: 48px !important;
  border: 1px solid var(--box-line) !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--box-paper) 60%, var(--box-bg)) !important;
  color: var(--box-ink) !important;
  box-shadow: none !important;
}

.next-visual .box-page .fi:focus,
.next-visual .box-page .sb:focus,
.next-visual .box-page .sel:focus,
.next-visual #setup .sinp:focus {
  outline: none !important;
  border-color: color-mix(in srgb, var(--next-accent) 62%, var(--box-line)) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--next-accent) 18%, transparent) !important;
}

.next-visual .box-accent-settings {
  margin-bottom: 16px;
}

.next-visual .box-accent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.next-visual .box-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.next-visual .box-swatches button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--sw);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.next-visual .box-swatches button.active {
  border-color: var(--box-ink);
  transform: scale(1.08);
}

.next-visual .box-page .tog {
  min-width: 50px;
}

.next-visual .box-page .diag-pill,
.next-visual .box-page .state-pill {
  border-radius: 999px !important;
}

.next-visual .ov {
  backdrop-filter: blur(10px);
}

.next-visual .modal {
  border: 1px solid var(--box-line) !important;
  border-radius: 28px !important;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .18) !important;
}

.next-visual .modal .mt {
  color: var(--box-ink) !important;
  font-size: 28px !important;
  line-height: .98 !important;
  letter-spacing: -.05em;
}

.next-visual .modal .ms {
  color: var(--box-muted) !important;
}

.next-visual .box-page .g4,
.next-visual .box-page .g3,
.next-visual .box-page .g2,
.next-visual .box-page .fgrid,
.next-visual .box-page .insight-grid,
.next-visual .box-page .bg-grid,
.next-visual .box-page .car-chart-grid {
  gap: 14px !important;
}

@media (max-width: 900px) {
  .next-visual .box-page > .ph,
  .next-visual .box-page > .sl-header,
  .next-visual .box-page > .car-hero,
  .next-visual .box-accent-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

@media (max-width: 640px) {
  .next-visual .box-page .pt,
  .next-visual .box-page .auth-title {
    font-size: 34px !important;
  }

  .next-visual .box-page .box,
  .next-visual .box-page .ss,
  .next-visual .box-page .car-chart-card {
    padding: 16px !important;
    border-radius: 24px !important;
  }

  .next-visual .box-page .ss-r {
    flex-direction: column;
    align-items: stretch !important;
  }

  .next-visual .box-page .btn,
  .next-visual .box-page .fi,
  .next-visual .box-page .sb,
  .next-visual .box-page .sel {
    width: 100%;
  }
}

/* Tema X: base clara, cartões brancos, laranja como ação e verde como confirmação. */
.next-visual .theme-setting-row {
  align-items: center !important;
}

.theme-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  gap: 6px;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid var(--box-line);
  border-radius: 16px;
  background: var(--box-soft);
}

.theme-choice {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--box-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.theme-choice:hover {
  color: var(--box-ink);
}

.theme-choice.active {
  background: var(--next-accent);
  color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--next-accent) 24%, transparent);
}

html[data-theme="x"] body.next-visual {
  background: var(--grad-bg) !important;
}

html[data-theme="x"] .next-tabbar {
  border-color: rgba(32, 37, 43, .10);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px rgba(32, 37, 43, .10);
}

html[data-theme="x"] .next-tabbar button {
  color: var(--box-muted);
}

html[data-theme="x"] .next-tabbar button.active,
html[data-theme="x"] .next-home .box-home-actions button:last-child,
html[data-theme="x"] .next-visual .box-page .btn-p,
html[data-theme="x"] .next-visual #setup .btn-p,
html[data-theme="x"] .next-visual .sbtn {
  background: #ff7545 !important;
  color: #fff !important;
}

html[data-theme="x"] .next-more-button {
  border: 1px solid var(--box-line);
  background: #fff;
  color: var(--box-ink);
}

html[data-theme="x"] .next-launcher-sheet {
  border: 1px solid var(--box-line);
  background: #fff;
  color: var(--box-ink);
  box-shadow: 0 30px 80px rgba(32, 37, 43, .18);
}

html[data-theme="x"] .next-launcher-sheet h2,
html[data-theme="x"] .next-launcher-grid strong {
  color: var(--box-ink);
}

html[data-theme="x"] .next-sheet-grabber {
  background: rgba(32, 37, 43, .16);
}

html[data-theme="x"] .next-launcher-grid > button {
  border: 1px solid var(--box-line);
  background: #fff7f3;
  color: var(--box-ink);
}

html[data-theme="x"] .next-launcher-grid > button > span {
  background: #fff0ea;
}

html[data-theme="x"] .next-launcher-grid > button small,
html[data-theme="x"] .next-launcher-sheet header small {
  color: var(--box-muted);
}

html[data-theme="x"] .next-home .box-budget-hero {
  border: 1px solid rgba(255, 117, 69, .34);
  background: linear-gradient(145deg, #fff 0%, #fff8f5 68%, #fff0ea 100%);
  color: var(--box-ink);
  box-shadow: 0 18px 40px rgba(255, 117, 69, .12);
}

html[data-theme="x"] .next-home .box-budget-top,
html[data-theme="x"] .next-home .box-budget-foot small {
  color: var(--box-muted);
}

html[data-theme="x"] .next-home .box-budget-hero h2 {
  color: var(--box-ink);
}

html[data-theme="x"] .next-home .box-progress {
  background: #f0f1f2;
}

html[data-theme="x"] .next-home .box-budget-foot strong {
  color: var(--box-ink);
}

html[data-theme="x"] .next-home .box-detail-button {
  border: 1px solid var(--box-line);
  background: #fff;
  color: var(--box-ink);
}

html[data-theme="x"] .next-home .box-quick-actions button,
html[data-theme="x"] .next-home .box-transaction,
html[data-theme="x"] .next-home .box-empty,
html[data-theme="x"] .next-home .box-insight-strip button {
  border: 1px solid var(--box-line);
  background: #fff;
}

html[data-theme="x"] .next-home .box-quick-actions span {
  background: #f0f1f2;
}

html[data-theme="x"] .next-home .box-quick-actions button:first-child span,
html[data-theme="x"] .next-home .box-transaction-icon {
  background: #ff7545;
  color: #fff;
}

html[data-theme="x"] .next-visual .box-page > .g4 .sc:first-child,
html[data-theme="x"] .next-visual .box-page > .g3 .sc:first-child,
html[data-theme="x"] .next-visual .box-page > .g2 .sc:first-child,
html[data-theme="x"] .next-visual .box-page > .fgrid .sc:first-child,
html[data-theme="x"] .next-visual .box-page > .insight-grid:first-of-type > *:first-child {
  background: #ff7545 !important;
  color: #fff !important;
}

html[data-theme="x"] .next-visual .box-page > .g4 .sc,
html[data-theme="x"] .next-visual .box-page > .g3 .sc,
html[data-theme="x"] .next-visual .box-page > .g2 .sc,
html[data-theme="x"] .next-visual .box-page > .fgrid .sc,
html[data-theme="x"] .next-visual .box-page > .insight-grid:first-of-type > * {
  border-color: var(--box-line) !important;
}

html[data-theme="x"] .next-visual .box-page > .g4 .sc:first-child .cl,
html[data-theme="x"] .next-visual .box-page > .g3 .sc:first-child .cl,
html[data-theme="x"] .next-visual .box-page > .g2 .sc:first-child .cl,
html[data-theme="x"] .next-visual .box-page > .fgrid .sc:first-child .cl,
html[data-theme="x"] .next-visual .box-page > .insight-grid:first-of-type > *:first-child .cl {
  color: rgba(255, 255, 255, .72) !important;
}

html[data-theme="x"] .next-visual .box-page .pos,
html[data-theme="x"] .next-visual .box-page .sc-glow-ac2 .cv {
  color: #299a68 !important;
}

html[data-theme="x"] .next-visual .box-page .neg,
html[data-theme="x"] .next-visual .box-page .sc-glow-dan .cv {
  color: #d85d4d !important;
}

@media (max-width: 900px) {
  .next-visual .theme-setting-row {
    align-items: stretch !important;
  }

  .theme-choice-grid {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .theme-choice {
    padding-inline: 7px;
    font-size: 11px;
  }
}

/* Dashboard X inspirado na referência: área ampla, cards informativos e ícones 3D. */
html[data-theme="x"] .next-visual .next-home {
  width: min(1240px, 100%);
  gap: 20px;
}

html[data-theme="x"] .next-visual .box-home-head {
  align-items: center;
  padding: 3px 2px 0;
}

html[data-theme="x"] .next-visual .box-home-head small {
  color: #858b90;
  font-size: 13px;
}

html[data-theme="x"] .next-visual .box-home-head h1 {
  color: #20252b;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -.055em;
}

html[data-theme="x"] .next-visual .box-home-actions button {
  border-color: #e3e5e7;
  background: #fff;
  color: #20252b;
  box-shadow: 0 6px 18px rgba(32, 37, 43, .06);
}

html[data-theme="x"] .next-visual .box-view-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  overflow-x: auto;
  border-radius: 18px;
  background: #eceeef;
  scrollbar-width: none;
}

html[data-theme="x"] .next-visual .box-view-tabs::-webkit-scrollbar {
  display: none;
}

html[data-theme="x"] .next-visual .box-view-tabs button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #6c7278;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

html[data-theme="x"] .next-visual .box-view-tabs button.active,
html[data-theme="x"] .next-visual .box-view-tabs button:hover {
  background: #fff;
  color: #20252b;
  box-shadow: 0 3px 10px rgba(32, 37, 43, .08);
}

html[data-theme="x"] .next-visual .box-home-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
  color: #6c7278;
  font-size: 13px;
}

html[data-theme="x"] .next-visual .box-home-period > span {
  font-weight: 700;
}

html[data-theme="x"] .next-visual .box-home-period button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #f3a180;
  border-radius: 14px;
  background: #fff;
  color: #20252b;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

html[data-theme="x"] .next-visual .box-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

html[data-theme="x"] .next-visual .box-metric-card,
html[data-theme="x"] .next-visual .box-detail-card,
html[data-theme="x"] .next-visual .box-summary-panel,
html[data-theme="x"] .next-visual .box-insight-alert {
  border: 1px solid #e3e5e7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(32, 37, 43, .07);
}

html[data-theme="x"] .next-visual .box-metric-card {
  position: relative;
  display: flex;
  min-height: 214px;
  padding: 24px;
  overflow: hidden;
}

html[data-theme="x"] .next-visual .box-metric-card::after {
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background: rgba(255, 117, 69, .06);
  content: '';
}

html[data-theme="x"] .next-visual .box-metric-featured {
  border-color: rgba(255, 117, 69, .34);
  background: linear-gradient(145deg, #fff 0%, #fff8f5 100%);
}

html[data-theme="x"] .next-visual .box-metric-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 9px;
  max-width: 74%;
}

html[data-theme="x"] .next-visual .box-metric-copy small,
html[data-theme="x"] .next-visual .box-detail-copy small,
html[data-theme="x"] .next-visual .box-summary-panel small,
html[data-theme="x"] .next-visual .box-insight-alert small {
  color: #6c7278;
  font-size: 12px;
  font-weight: 650;
}

html[data-theme="x"] .next-visual .box-metric-copy h2 {
  margin: 8px 0 0;
  color: #20252b;
  font-size: clamp(28px, 3vw, 38px);
  line-height: .95;
  letter-spacing: -.06em;
}

html[data-theme="x"] .next-visual .box-metric-copy > span {
  color: #8a9095;
  font-size: 11px;
}

html[data-theme="x"] .next-visual .box-trend.positive {
  color: #299a68;
  font-weight: 750;
}

html[data-theme="x"] .next-visual .box-3d-icon {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 13px;
  width: clamp(78px, 9vw, 132px);
  height: clamp(78px, 9vw, 132px);
  object-fit: contain;
  filter: drop-shadow(0 9px 7px rgba(32, 37, 43, .12));
  pointer-events: none;
}

html[data-theme="x"] .next-visual .box-mini-progress {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #f0f1f2;
}

html[data-theme="x"] .next-visual .box-mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ff7545;
}

html[data-theme="x"] .next-visual .box-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

html[data-theme="x"] .next-visual .box-detail-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 142px;
  padding: 19px;
  overflow: hidden;
  color: #20252b;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

html[data-theme="x"] .next-visual .box-detail-card:hover,
html[data-theme="x"] .next-visual .box-metric-card:hover {
  border-color: rgba(255, 117, 69, .36);
  transform: translateY(-2px);
}

html[data-theme="x"] .next-visual .box-detail-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  min-width: 0;
}

html[data-theme="x"] .next-visual .box-detail-copy strong {
  color: #20252b;
  font-size: 20px;
  letter-spacing: -.04em;
}

html[data-theme="x"] .next-visual .box-detail-copy em {
  color: #8a9095;
  font-size: 10px;
  font-style: normal;
}

html[data-theme="x"] .next-visual .box-detail-card .box-3d-icon {
  right: 5px;
  bottom: -4px;
  width: 78px;
  height: 78px;
}

html[data-theme="x"] .next-visual .box-insight-alert {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  min-height: 126px;
  padding: 21px 25px;
  border-color: #f3a180;
  background: linear-gradient(100deg, #fff7f3, #fff);
}

html[data-theme="x"] .next-visual .box-insight-alert > .box-3d-icon {
  position: static;
  width: 54px;
  height: 54px;
}

html[data-theme="x"] .next-visual .box-insight-alert > div {
  display: grid;
  gap: 4px;
}

html[data-theme="x"] .next-visual .box-insight-alert strong {
  color: #20252b;
  font-size: 17px;
  line-height: 1.2;
}

html[data-theme="x"] .next-visual .box-insight-alert p {
  margin: 0;
  color: #6c7278;
  font-size: 12px;
}

html[data-theme="x"] .next-visual .box-insight-alert > button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 99px;
  background: #ff7545;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

html[data-theme="x"] .next-visual .box-home-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  gap: 22px;
}

html[data-theme="x"] .next-visual .box-section > header h2 {
  color: #20252b;
  font-size: 18px;
}

html[data-theme="x"] .next-visual .box-section > header button {
  color: #6c7278;
}

html[data-theme="x"] .next-visual .box-transaction {
  border: 1px solid #e3e5e7;
  background: #fff;
  box-shadow: 0 8px 20px rgba(32, 37, 43, .05);
}

html[data-theme="x"] .next-visual .box-home-summary {
  padding: 0;
}

html[data-theme="x"] .next-visual .box-summary-panel {
  display: grid;
  gap: 1px;
  padding: 6px;
  overflow: hidden;
}

html[data-theme="x"] .next-visual .box-summary-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  background: #fff;
}

html[data-theme="x"] .next-visual .box-summary-panel strong {
  color: #20252b;
  font-size: 15px;
}

html[data-theme="x"] .next-visual .box-summary-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  padding: 13px 15px;
  border: 0;
  border-radius: 14px;
  background: #fff0ea;
  color: #d85d4d;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

@media (min-width: 961px) {
  html[data-theme="x"] .next-visual.next-app-ready .sidebar {
    display: flex !important;
    background: #fff;
    border-right-color: #e3e5e7;
    box-shadow: 8px 0 24px rgba(32, 37, 43, .04);
  }

  html[data-theme="x"] .next-visual.next-app-ready .main {
    width: calc(100% - 236px) !important;
    margin-left: 236px !important;
    padding: 34px clamp(28px, 4vw, 64px) 70px !important;
  }

  html[data-theme="x"] .next-visual.next-app-ready .page.active {
    width: min(1240px, 100%);
  }

  html[data-theme="x"] .next-visual.next-app-ready .next-app-chrome {
    display: none !important;
  }

  html[data-theme="x"] .next-visual .logo,
  html[data-theme="x"] .next-visual .sidebar .nav-item.active {
    color: #ff7545;
  }

  html[data-theme="x"] .next-visual .sidebar .sb-search {
    border-color: #e3e5e7;
    background: #f7f7f6;
    box-shadow: none;
  }

  html[data-theme="x"] .next-visual .sidebar .nav-item.active {
    border-color: rgba(255, 117, 69, .18);
    background: #fff0ea;
  }
}

@media (max-width: 900px) {
  html[data-theme="x"] .next-visual .box-metric-grid,
  html[data-theme="x"] .next-visual .box-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-theme="x"] .next-visual .box-home-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html[data-theme="x"] .next-visual .box-home-head {
    align-items: flex-start;
  }

  html[data-theme="x"] .next-visual .box-view-tabs {
    width: 100%;
  }

  html[data-theme="x"] .next-visual .box-view-tabs button {
    padding-inline: 14px;
  }

  html[data-theme="x"] .next-visual .box-metric-grid,
  html[data-theme="x"] .next-visual .box-detail-grid {
    grid-template-columns: 1fr;
  }

  html[data-theme="x"] .next-visual .box-metric-card {
    min-height: 190px;
  }

  html[data-theme="x"] .next-visual .box-insight-alert {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 18px;
  }

  html[data-theme="x"] .next-visual .box-insight-alert > button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ═══ TUIUIÚ WEB REDESIGN — KIRA LEARNING EDITORIAL DESIGN SYSTEM ═══ */

:root {
  --font-editorial: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-dock: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --tuiuiu-purple: #8b5cf6;
  --tuiuiu-mint: #10b981;
}

/* Background Graph Paper Grid (Kira Learning Subtle Grid) */
body.next-visual {
  background-color: var(--box-bg) !important;
  background-image:
    linear-gradient(to right, rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 92, 246, 0.04) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
  background-position: center top !important;
}

[data-theme="dark"] body.next-visual {
  background-color: #0b0d13 !important;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.06), transparent 40%),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px) !important;
  background-size: auto, 32px 32px, 32px 32px !important;
}

/* Editorial Hero Card */
.tuiuiu-editorial-hero {
  padding: 32px 36px;
  margin-bottom: 24px;
  background: var(--box-paper);
  border: 1px solid var(--box-line);
  border-radius: var(--box-radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.tuiuiu-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tuiuiu-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

[data-theme="dark"] .tuiuiu-hero-badge {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.2);
}

.tuiuiu-editorial-title {
  font-family: var(--font-editorial);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--box-ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .tuiuiu-editorial-title {
    font-size: 26px;
  }
}

/* Pill Highlights (Kira Learning hallmark) */
.pill-highlight {
  display: inline-block;
  padding: 2px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-editorial);
  line-height: 1.15;
  vertical-align: middle;
  transition: transform 0.15s ease;
}

.pill-highlight:hover {
  transform: scale(1.04);
}

.pill-purple {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

[data-theme="dark"] .pill-purple {
  background: #4c1d95;
  color: #ddd6fe;
  border-color: rgba(196, 181, 253, 0.2);
}

.pill-mint {
  background: #ccfbf1;
  color: #0f766e;
  border: 1px solid rgba(20, 184, 166, 0.25);
}

[data-theme="dark"] .pill-mint {
  background: #064e3b;
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.25);
}

.tuiuiu-editorial-subtitle {
  font-size: 15px;
  color: var(--box-muted);
  max-width: 660px;
  margin-bottom: 22px;
  line-height: 1.55;
}

/* Quick Action Carousel / Pill Launcher (Kira Style) */
.tuiuiu-pill-launcher {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.tuiuiu-pill-launcher::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--box-soft);
  border: 1px solid var(--box-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--box-ink);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-btn:hover {
  background: var(--box-paper);
  border-color: var(--box-muted);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.pill-btn.primary {
  background: #09090b;
  color: #ffffff;
  border-color: #09090b;
}

[data-theme="dark"] .pill-btn.primary {
  background: #f8fafc;
  color: #09090b;
  border-color: #f8fafc;
}

.pill-icon {
  font-size: 14px;
}

/* Desktop Grid Layout (Feed + Copilot) */
.tuiuiu-desktop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.tuiuiu-main-feed {
  min-width: 0;
}

/* Copilot Floating Card (Kira AI Style) */
.tuiuiu-copilot-card {
  background: var(--box-paper);
  border: 1px solid var(--box-line);
  border-radius: var(--box-radius);
  padding: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
}

.copilot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.copilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
}

.copilot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse 1.8s infinite;
}

.copilot-mini-action {
  background: var(--box-soft);
  border: 1px solid var(--box-line);
  color: var(--box-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.copilot-mini-action:hover {
  color: var(--box-ink);
  background: var(--box-paper);
}

/* Fluid Marbled Art Avatar */
.copilot-avatar-wrap {
  margin-bottom: 16px;
}

.copilot-fluid-art {
  width: 100%;
  height: 120px;
  border-radius: 18px;
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 40%, #38bdf8 80%, #34d399 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.15);
}

.copilot-art-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.7;
  animation: floatBlobs 8s ease-in-out infinite alternate;
}

.blob-1 {
  width: 90px;
  height: 90px;
  background: #f43f5e;
  top: -10px;
  left: 20px;
}

.blob-2 {
  width: 110px;
  height: 110px;
  background: #06b6d4;
  bottom: -20px;
  right: 10px;
  animation-delay: -3s;
}

.blob-3 {
  width: 80px;
  height: 80px;
  background: #eab308;
  top: 30px;
  right: 50px;
  animation-delay: -5s;
}

@keyframes floatBlobs {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(15px, 10px) scale(1.15); }
}

.copilot-art-symbol {
  font-size: 46px;
  z-index: 5;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.copilot-greeting {
  text-align: center;
  margin-bottom: 16px;
}

.copilot-title {
  font-family: var(--font-editorial);
  font-size: 22px;
  font-weight: 700;
  color: var(--box-ink);
  margin-bottom: 4px;
}

.copilot-sub {
  font-size: 13px;
  color: var(--box-muted);
}

.copilot-sub strong {
  color: var(--ac);
  font-weight: 700;
}

/* Copilot Action Chips */
.copilot-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.copilot-chip {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--box-soft);
  border: 1px solid var(--box-line);
  font-size: 12px;
  font-weight: 500;
  color: var(--box-ink);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copilot-chip:hover {
  background: var(--box-paper);
  border-color: #8b5cf6;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
}

/* Copilot Message Box & Receipt */
.copilot-msg-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--box-soft);
  border: 1px solid var(--box-line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--box-ink);
  margin-bottom: 16px;
  animation: fadeIn 0.2s ease;
}

.copilot-receipt {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.copilot-receipt-badge {
  font-weight: 700;
  color: #10b981;
  font-size: 14px;
}

.copilot-receipt-line {
  font-size: 12px;
  color: var(--box-ink);
}

.copilot-receipt-warn {
  font-size: 11px;
  color: #f59e0b;
  font-style: italic;
  padding: 4px 8px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 8px;
  margin-top: 2px;
}

.copilot-receipt-desc {
  font-size: 12px;
  color: var(--box-muted);
  border-top: 1px dashed var(--box-line);
  padding-top: 6px;
  margin-top: 4px;
}

/* Copilot Natural Input */
.copilot-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--box-soft);
  border: 1px solid var(--box-line);
  border-radius: 999px;
  padding: 5px 6px 5px 16px;
  transition: all 0.15s ease;
}

.copilot-input-wrap:focus-within {
  border-color: #8b5cf6;
  background: var(--box-paper);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.copilot-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--box-ink);
}

.copilot-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #8b5cf6;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.copilot-send-btn:hover {
  transform: scale(1.08);
}

.copilot-hint {
  font-size: 11px;
  color: var(--box-muted);
  text-align: center;
  margin-top: 8px;
}

/* ═══ RESPONSIVE 3-COLUMN DESKTOP (Kira Learning Layout) ═══ */
@media (min-width: 860px) {
  .sidebar.tuiuiu-dock {
    width: 76px !important;
    padding: 20px 10px !important;
    border-right: 1px solid var(--box-line) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .sidebar.tuiuiu-dock .logo {
    margin-bottom: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .sidebar.tuiuiu-dock .tuiuiu-bird-dock {
    font-size: 28px !important;
    display: block !important;
    margin-bottom: 4px !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .sidebar.tuiuiu-dock .tuiuiu-bird-dock:hover {
    transform: scale(1.2) rotate(-5deg);
  }

  .sidebar.tuiuiu-dock .brand-word,
  .sidebar.tuiuiu-dock .sb-search,
  .sidebar.tuiuiu-dock .nav-lbl,
  .sidebar.tuiuiu-dock .sidebar-utility,
  .sidebar.tuiuiu-dock .made-by,
  .sidebar.tuiuiu-dock .acct-btn > div,
  .sidebar.tuiuiu-dock .acct-btn > span {
    display: none !important;
  }

  .sidebar.tuiuiu-dock nav {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .sidebar.tuiuiu-dock .nav-item {
    justify-content: center !important;
    padding: 12px 0 !important;
    font-size: 0 !important;
    border-radius: 16px !important;
    transition: all 0.15s ease !important;
  }

  .sidebar.tuiuiu-dock .nav-item .ico {
    font-size: 22px !important;
    margin-right: 0 !important;
  }

  .sidebar.tuiuiu-dock .nav-item:hover,
  .sidebar.tuiuiu-dock .nav-item.active {
    background: var(--box-soft) !important;
    transform: scale(1.05);
  }

  .main {
    margin-left: 76px !important;
    width: calc(100% - 76px) !important;
    max-width: 1540px !important;
    padding: 32px 40px 60px !important;
  }

  .tuiuiu-desktop-grid {
    grid-template-columns: 1fr minmax(280px, 340px) !important;
    align-items: start !important;
  }

  .tuiuiu-copilot-card {
    position: sticky !important;
    top: 32px !important;
    max-height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
  }
}

