/* پنل آنیار ۴/۹ — صفحه‌های قابلیت، CRUD و چیدمان فشرده */
/* === Feature pages === */
/* Phase 2–4 product modules */
.sidebar {
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar {
  display: none;
}
.sidebar nav {
  flex: 0 0 auto;
}
.nav-section-label {
  display: block;
  padding: 16px 13px 5px;
  color: #668783;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.beta-pill {
  min-width: auto !important;
  height: auto !important;
  margin-right: auto !important;
  padding: 2px 5px;
  border-radius: 5px !important;
  color: var(--app-gold) !important;
  background: rgba(245, 212, 119, 0.1) !important;
  font-size: 13px !important;
}
.voice-quota {
  flex: 0 0 auto;
  margin-top: 18px;
}
.phase-mobile-switcher {
  display: none;
}

.phase-launcher {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.phase-launcher button {
  min-height: 76px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--app-border);
  border-radius: 15px;
  color: var(--app-text);
  background: linear-gradient(
    145deg,
    rgba(23, 66, 73, 0.58),
    rgba(5, 26, 33, 0.66)
  );
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  cursor: pointer;
  text-align: right;
  transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.phase-launcher button:hover {
  transform: translateY(-3px);
  border-color: rgba(114, 244, 220, 0.28);
  background: linear-gradient(
    145deg,
    rgba(27, 78, 83, 0.68),
    rgba(6, 31, 38, 0.72)
  );
}
.phase-launcher button > span:nth-child(2) {
  display: grid;
}
.phase-launcher small {
  color: var(--app-muted);
  font-size: 13px;
}
.phase-launcher b {
  margin-top: 1px;
  font-size: 13px;
}
.phase-launcher i {
  margin-right: auto;
  color: var(--app-muted);
  font-style: normal;
}
.phase-orb {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
}
.phase-orb.phase-two {
  color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.11);
}
.phase-orb.phase-three {
  color: #baa9ff;
  background: rgba(155, 124, 255, 0.12);
}
.phase-orb.phase-four {
  color: var(--app-gold);
  background: rgba(245, 212, 119, 0.11);
}

.phase-page.active {
  display: block;
  animation: phase-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.phase-card,
.phase-kpis article,
.business-kpis article,
.automation-card,
.automation-hero,
.predictive-strip {
  border: 1px solid var(--app-border);
  border-radius: 17px;
  background: linear-gradient(
    145deg,
    rgba(23, 66, 73, 0.64),
    rgba(5, 26, 33, 0.74)
  );
  box-shadow:
    var(--app-shadow),
    inset 0 1px rgba(255, 255, 255, 0.04);
}
.phase-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}
.phase-kpis article {
  min-height: 105px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.phase-kpi-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.phase-kpi-icon svg,
.predictive-icon svg,
.auto-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phase-kpi-icon.aqua,
.auto-icon.aqua {
  color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.1);
}
.phase-kpi-icon.gold,
.auto-icon.gold {
  color: var(--app-gold);
  background: rgba(245, 212, 119, 0.1);
}
.phase-kpi-icon.violet,
.auto-icon.violet {
  color: #baa9ff;
  background: rgba(155, 124, 255, 0.12);
}
.phase-kpis p,
.phase-kpis strong,
.phase-kpis small {
  display: block;
  margin: 0;
}
.phase-kpis p {
  color: var(--app-muted);
  font-size: 13px;
}
.phase-kpis strong {
  margin-top: 2px;
  font-size: 15px;
}
.phase-kpis small {
  color: var(--app-muted);
  font-size: 13px;
}
.installment-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
}
.phase-card {
  padding: 20px;
}
.live-badge,
.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  color: var(--app-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
}
.live-badge i,
.preview-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-aqua);
  box-shadow: 0 0 9px var(--app-aqua);
}
.installment-list {
  margin-top: 12px;
}
.installment-list > div {
  min-height: 69px;
  display: grid;
  grid-template-columns: 48px minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--app-border);
}
.due-date {
  width: 42px;
  height: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 10px;
  color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.09);
  line-height: 1.2;
}
.due-date.warning {
  color: var(--app-gold);
  background: rgba(245, 212, 119, 0.1);
}
.due-date b {
  font-size: 13px;
}
.due-date small {
  font-size: 13px;
}
.installment-list > div > span:nth-child(2) {
  display: grid;
}
.installment-list > div > span b {
  font-size: 13px;
}
.installment-list > div > span small {
  color: var(--app-muted);
  font-size: 13px;
}
.installment-list > div > strong {
  font-size: 13px;
}
.installment-list button {
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid rgba(114, 244, 220, 0.2);
  border-radius: 8px;
  color: #06242a;
  background: var(--app-aqua);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.installment-list button.quiet-action {
  color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.06);
}
.currency-card {
  overflow: hidden;
}
.mini-more {
  width: 36px;
  height: 36px;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  color: var(--app-muted);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}
.currency-total {
  padding: 18px 0 14px;
}
.currency-total small,
.currency-total strong {
  display: block;
}
.currency-total small {
  color: var(--app-muted);
  font-size: 13px;
}
.currency-total strong {
  margin-top: 3px;
  font-size: 22px;
}
.currency-total em {
  color: var(--app-muted);
  font-size: 13px;
  font-style: normal;
}
.currency-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: rgba(2, 18, 23, 0.35);
}
.currency-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  color: var(--app-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.currency-switch button.active {
  color: #06242a;
  background: var(--app-aqua);
}
.currency-balance {
  min-height: 107px;
  padding: 18px 3px 12px;
  display: grid;
  align-content: center;
}
.currency-balance span,
.currency-balance strong,
.currency-balance small {
  display: block;
}
.currency-balance span {
  color: var(--app-muted);
  font-size: 13px;
}
.currency-balance strong {
  margin-top: 1px;
  font-size: 24px;
}
.currency-balance small {
  color: var(--app-muted);
  font-size: 13px;
}
.rate-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.rate-row span {
  padding: 9px;
  display: grid;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--app-muted);
  font-size: 13px;
}
.rate-row b {
  color: var(--app-text);
  font-size: 13px;
}
.predictive-strip {
  margin-top: 12px;
  padding: 17px 19px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 14px;
  background: linear-gradient(
    135deg,
    rgba(155, 124, 255, 0.09),
    rgba(245, 212, 119, 0.055)
  );
}
.predictive-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #baa9ff;
  background: rgba(155, 124, 255, 0.12);
}
.predictive-strip p,
.predictive-strip h3,
.predictive-strip small {
  display: block;
  margin: 0;
}
.predictive-strip p {
  color: #baa9ff;
  font-size: 13px;
}
.predictive-strip h3 {
  margin-top: 1px;
  font-size: 13px;
}
.predictive-strip small {
  margin-top: 2px;
  color: var(--app-muted);
  font-size: 13px;
}
.risk-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}
.risk-meter::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}
.risk-meter i {
  grid-column: 1;
  grid-row: 1;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--app-gold), #ef7f68);
  box-shadow: 0 0 12px rgba(245, 212, 119, 0.22);
}
.risk-meter small {
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
}

.business-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.business-kpis article {
  min-height: 119px;
  padding: 16px;
  overflow: hidden;
  position: relative;
}
.business-kpis p,
.business-kpis strong,
.business-kpis span {
  display: block;
  margin: 0;
  position: relative;
  z-index: 1;
}
.business-kpis p {
  color: var(--app-muted);
  font-size: 13px;
}
.business-kpis strong {
  margin-top: 5px;
  font-size: 16px;
}
.business-kpis strong small {
  color: var(--app-muted);
  font-size: 13px;
}
.business-kpis span {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 13px;
}
.sparkline {
  position: absolute;
  right: 15px;
  left: 15px;
  bottom: 0;
  height: 28px;
  opacity: 0.25;
  -webkit-mask: linear-gradient(
    135deg,
    transparent 0 10%,
    #000 11% 18%,
    transparent 19% 29%,
    #000 30% 42%,
    transparent 43% 52%,
    #000 53% 67%,
    transparent 68% 76%,
    #000 77%
  );
  mask: linear-gradient(
    135deg,
    transparent 0 10%,
    #000 11% 18%,
    transparent 19% 29%,
    #000 30% 42%,
    transparent 43% 52%,
    #000 53% 67%,
    transparent 68% 76%,
    #000 77%
  );
}
.sparkline.aqua-line {
  background: var(--app-aqua);
}
.sparkline.violet-line {
  background: #9b7cff;
}
.sparkline.gold-line {
  background: var(--app-gold);
}
.business-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
}
.sales-pulse {
  min-height: 310px;
}
.sales-bars {
  height: 225px;
  padding: 25px 8px 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--app-border);
  background-image: linear-gradient(
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px
  );
  background-size: 100% 25%;
}
.sales-bars > span {
  height: 100%;
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 3px;
}
.sales-bars > span::before,
.sales-bars > span::after {
  content: "";
  width: 10px;
  border-radius: 4px 4px 1px 1px;
}
.sales-bars > span::before {
  height: var(--sale);
  background: linear-gradient(
    to top,
    rgba(114, 244, 220, 0.24),
    var(--app-aqua)
  );
  box-shadow: 0 0 10px rgba(114, 244, 220, 0.14);
}
.sales-bars > span::after {
  height: var(--credit);
  background: linear-gradient(to top, rgba(155, 124, 255, 0.22), #9b7cff);
}
.sales-bars b {
  position: absolute;
  bottom: -21px;
  color: var(--app-muted);
  font-size: 13px;
}
.stock-alerts {
  min-height: 310px;
}
.alert-count {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--app-gold);
  background: rgba(245, 212, 119, 0.1);
  font-size: 13px;
  font-weight: 900;
}
.stock-alerts > div:not(.section-card-title) {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--app-border);
}
.stock-thumb {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
}
.stock-thumb.aqua {
  color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.1);
}
.stock-thumb.gold {
  color: var(--app-gold);
  background: rgba(245, 212, 119, 0.1);
}
.stock-thumb.violet {
  color: #baa9ff;
  background: rgba(155, 124, 255, 0.11);
}
.stock-alerts p {
  display: grid;
  margin: 0;
}
.stock-alerts b {
  font-size: 13px;
}
.stock-alerts small {
  color: var(--app-muted);
  font-size: 13px;
}
.stock-alerts div > strong {
  margin-right: auto;
  color: var(--app-gold);
  font-size: 13px;
}
.business-lower {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 12px;
  margin-top: 12px;
}
.ledger-head,
.ledger-row {
  display: grid;
  grid-template-columns: 1.2fr 0.55fr 0.7fr 0.8fr;
  align-items: center;
  gap: 10px;
}
.ledger-head {
  padding: 12px 0;
  color: var(--app-muted);
  border-bottom: 1px solid var(--app-border);
  font-size: 13px;
}
.ledger-row {
  min-height: 55px;
  border-bottom: 1px solid var(--app-border);
}
.ledger-row:last-child {
  border-bottom: 0;
}
.ledger-row > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ledger-row i,
.team-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.1);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}
.ledger-row b,
.ledger-row strong {
  font-size: 13px;
}
.ledger-row small {
  color: var(--app-muted);
  font-size: 13px;
}
.ledger-row em {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 13px;
  font-style: normal;
}
.ledger-row em.receive {
  color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.09);
}
.ledger-row em.pay {
  color: #ff978d;
  background: rgba(255, 151, 141, 0.09);
}
.team-card > div:not(.section-card-title) {
  min-height: 63px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--app-border);
}
.team-avatar.purple {
  color: #baa9ff;
  background: rgba(155, 124, 255, 0.11);
}
.team-card p {
  display: grid;
  margin: 0;
}
.team-card b {
  font-size: 13px;
}
.team-card small {
  color: var(--app-muted);
  font-size: 13px;
}
.team-card em {
  margin-right: auto;
  color: var(--app-muted);
  font-size: 13px;
  font-style: normal;
}
.team-card .privacy-note {
  display: block;
  padding-top: 10px;
  line-height: 1.7;
}

.preview-badge {
  color: var(--app-aqua);
}
.automation-hero {
  min-height: 250px;
  padding: 23px;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 20px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      28rem 18rem at 75% 55%,
      rgba(114, 244, 220, 0.1),
      transparent 70%
    ),
    linear-gradient(145deg, rgba(23, 66, 73, 0.7), rgba(5, 26, 33, 0.78));
}
.automation-hero p,
.automation-hero h3,
.automation-hero span {
  display: block;
  margin: 0;
}
.automation-hero p {
  color: var(--app-aqua);
  font-size: 13px;
}
.automation-hero h3 {
  margin-top: 4px;
  font-size: 19px;
}
.automation-hero h3 strong {
  color: var(--app-aqua);
}
.automation-hero > div:first-child > span {
  margin-top: 10px;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.8;
}
.forecast-chart {
  height: 190px;
  position: relative;
}
.forecast-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.forecast-area {
  fill: url(#forecast-fill);
}
.forecast-line {
  fill: none;
  stroke: rgba(114, 244, 220, 0.28);
  stroke-width: 2;
}
.forecast-dashed {
  fill: none;
  stroke: var(--app-aqua);
  stroke-width: 3;
  stroke-dasharray: 7 7;
  filter: drop-shadow(0 0 6px rgba(114, 244, 220, 0.35));
  animation: forecast-flow 8s linear infinite;
}
.forecast-now {
  position: absolute;
  right: 47%;
  bottom: 5px;
  color: var(--app-muted) !important;
  font-size: 13px !important;
}
.automation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.automation-card {
  min-height: 300px;
  padding: 20px;
}
.auto-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.automation-card > p,
.automation-card > h3 {
  display: block;
  margin: 0;
}
.automation-card > p {
  margin-top: 14px;
  color: var(--app-aqua);
  font-size: 13px;
}
.automation-card > h3 {
  margin-top: 3px;
  font-size: 13px;
}
.automation-card > button {
  width: 100%;
  min-height: 42px;
  margin-top: 13px;
  border: 1px solid rgba(114, 244, 220, 0.18);
  border-radius: 10px;
  color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.06);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.automation-card > button.is-processing {
  color: var(--app-gold);
  border-color: rgba(245, 212, 119, 0.18);
}
.scan-preview,
.sms-preview {
  min-height: 100px;
  margin-top: 15px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: rgba(2, 18, 23, 0.34);
}
.scan-paper {
  width: 59px;
  height: 75px;
  padding: 11px 8px;
  flex: 0 0 auto;
  display: grid;
  align-content: start;
  gap: 6px;
  position: relative;
  border-radius: 4px;
  background: #d9ebe7;
  transform: rotate(-3deg);
  overflow: hidden;
}
.scan-paper i {
  height: 2px;
  border-radius: 3px;
  background: #6e8d88;
}
.scan-paper i:nth-child(2) {
  width: 75%;
}
.scan-paper i:nth-child(3) {
  width: 88%;
}
.scan-paper b {
  position: absolute;
  right: 0;
  left: 0;
  height: 2px;
  top: 0;
  background: var(--app-aqua);
  box-shadow: 0 0 12px var(--app-aqua);
  animation: scan-line 2.5s ease-in-out infinite;
}
.scan-preview > span:last-child {
  display: grid;
}
.scan-preview b {
  font-size: 13px;
}
.scan-preview small {
  color: var(--app-muted);
  font-size: 13px;
}
.scan-preview em {
  width: fit-content;
  margin-top: 5px;
  padding: 3px 6px;
  border-radius: 5px;
  color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.08);
  font-size: 13px;
  font-style: normal;
}
.sms-preview {
  display: block;
}
.sms-preview > span {
  color: var(--app-aqua);
  font-size: 13px;
}
.sms-preview p {
  margin: 6px 0 3px;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.8;
}
.sms-preview p b {
  color: var(--app-text);
}
.sms-preview small {
  color: #6b8985;
  font-size: 13px;
}
.wide-auto {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  grid-template-columns: 43px 0.6fr 1.4fr;
  align-items: center;
  gap: 14px;
}
.wide-auto > div:nth-child(2) p {
  margin: 0;
  color: var(--app-gold);
  font-size: 13px;
}
.wide-auto > div:nth-child(2) h3 {
  margin: 3px 0 0;
  font-size: 13px;
}
.product-analysis {
  display: grid;
  gap: 12px;
}
.product-analysis span {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
}
.product-analysis b {
  font-size: 13px;
}
.product-analysis small {
  color: var(--app-muted);
  font-size: 13px;
}
.product-analysis i {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 99px;
  background: var(--app-aqua);
  box-shadow: 0 0 10px rgba(114, 244, 220, 0.2);
}
.product-analysis i.slow {
  background: var(--app-gold);
}

@keyframes phase-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes forecast-flow {
  to {
    stroke-dashoffset: -140;
  }
}
@keyframes scan-line {
  0%,
  100% {
    top: 5px;
  }
  50% {
    top: 68px;
  }
}

@media (max-width: 1180px) {
  .business-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .installment-layout,
  .business-layout,
  .business-lower {
    grid-template-columns: 1fr;
  }
  .wide-auto {
    grid-template-columns: 43px 1fr;
  }
  .wide-auto .product-analysis {
    grid-column: 1/-1;
  }
}
@media (max-width: 900px) {
  .phase-launcher {
    grid-template-columns: 1fr;
  }
  .phase-kpis {
    grid-template-columns: 1fr;
  }
  .automation-hero {
    grid-template-columns: 1fr;
  }
  .forecast-chart {
    height: 150px;
  }
}
@media (max-width: 720px) {
  .nav-section-label {
    display: none;
  }
  .phase-mobile-switcher {
    margin: 0 0 16px;
    padding: 4px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: rgba(4, 22, 28, 0.62);
  }
  .phase-mobile-switcher button {
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    color: var(--app-muted);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
  }
  .phase-mobile-switcher button.active {
    color: #06242a;
    background: var(--app-aqua);
  }
  .phase-launcher {
    grid-template-columns: 1fr 1fr;
  }
  .phase-launcher button:last-child {
    grid-column: 1/-1;
  }
  .phase-kpis,
  .business-kpis,
  .automation-grid {
    grid-template-columns: 1fr;
  }
  .installment-list > div {
    grid-template-columns: 45px minmax(110px, 1fr) auto;
  }
  .installment-list > div > strong {
    display: none;
  }
  .installment-list button {
    max-width: 92px;
  }
  .predictive-strip {
    grid-template-columns: 42px 1fr;
  }
  .risk-meter {
    grid-column: 1/-1;
  }
  .automation-hero {
    padding: 18px;
  }
  .wide-auto {
    grid-column: auto;
    display: block;
  }
  .wide-auto > .auto-icon {
    margin-bottom: 12px;
  }
  .wide-auto .product-analysis {
    margin-top: 18px;
  }
  .ledger-head {
    display: none;
  }
  .ledger-row {
    grid-template-columns: 1fr auto;
  }
  .ledger-row > small,
  .ledger-row > em {
    display: none;
  }
  .team-card em {
    display: none;
  }
}
@media (max-width: 420px) {
  .phase-launcher {
    grid-template-columns: 1fr;
  }
  .phase-launcher button:last-child {
    grid-column: auto;
  }
  .business-kpis {
    grid-template-columns: 1fr;
  }
  .installment-list > div {
    gap: 7px;
  }
  .installment-list button {
    font-size: 13px;
    padding-inline: 6px;
  }
  .currency-total strong {
    font-size: 20px;
  }
  .automation-hero h3 {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phase-page.active,
  .forecast-dashed,
  .scan-paper b {
    animation: none;
  }
}

/* Comfortable pointer and touch targets */
.installment-list button,
.currency-switch button,
.automation-card > button {
  min-height: 44px;
}
.mini-more {
  width: 44px;
  height: 44px;
}
@media (max-width: 720px) {
  .phase-mobile-switcher button {
    min-height: 44px;
  }
}

/* === Compact panel layout === */
/* Calm daily workspace; secondary information is disclosed, never discarded. */
.dashboard {
  --panel-calm: #0b252d;
  --panel-line: rgba(202, 255, 244, 0.1);
}
.dashboard .sidebar {
  background: #092129;
  backdrop-filter: none;
  box-shadow: none;
}
.dashboard .topbar {
  background: rgba(5, 24, 30, 0.96);
  backdrop-filter: none;
}
.sidebar nav {
  gap: 8px;
}
.sidebar .nav-item {
  font-size: 13px;
  min-height: 46px;
}
.nav-group {
  border-block: 1px solid var(--panel-line);
  padding-block: 5px;
}
.nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 8px 13px;
  cursor: pointer;
  list-style: none;
  color: var(--app-muted);
  font-size: 13px;
}
.nav-group summary::-webkit-details-marker,
.overview-details summary::-webkit-details-marker {
  display: none;
}
.nav-group summary > span {
  transition: transform 0.18s ease;
}
.nav-group[open] summary > span {
  transform: rotate(180deg);
}
.nav-group.has-active summary {
  color: var(--app-aqua);
}
.nav-group .nav-item {
  width: 100%;
  padding-inline-start: 20px;
}
.nav-group .nav-item b,
.nav-group .beta-pill {
  display: none;
}
.nav-group summary:hover {
  color: var(--app-text);
}
#dashboard-main {
  max-width: 1440px;
  margin-inline: auto;
  padding-top: 28px;
}
.overview-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}
.overview-intro {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 4px;
}
.overview-intro p {
  margin: 0 0 5px;
  font-size: 13px;
  color: var(--app-muted);
}
.overview-intro h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}
.quiet-tools {
  padding: 10px 14px;
  min-height: 44px;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  color: var(--app-text);
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.quiet-tools:hover {
  border-color: var(--app-aqua);
  background: rgba(114, 244, 220, 0.05);
}
.quiet-tools span {
  margin-inline-start: 14px;
  color: var(--app-aqua);
}
.overview-grid > .balance-card,
.overview-grid > .quick-add-card,
.overview-grid > .transactions-card {
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
  background: var(--panel-calm);
  border-color: var(--panel-line);
}
.overview-grid > .balance-card {
  min-height: 300px;
  padding: 24px;
}
.overview-grid > .balance-card::after {
  display: none;
}
.overview-grid .balance-top h2 {
  font-size: clamp(24px, 2.8vw, 34px);
}
.overview-grid .flow-chart {
  height: 120px;
  margin-top: 18px;
}
.overview-grid .flow-chart > svg {
  height: 94px;
}
.overview-grid > .quick-add-card {
  min-height: 0;
  padding: 24px;
  background: linear-gradient(145deg, #10383f, #0b252d);
}
.overview-grid .card-heading h2 {
  font-size: 21px;
}
.overview-grid .voice-action {
  margin-top: 24px;
}
.overview-grid > .transactions-card {
  grid-column: 1/-1;
  padding: 24px;
}
.overview-grid .transaction-row {
  min-height: 64px;
}
.overview-details {
  grid-column: 1/-1;
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  background: rgba(11, 37, 45, 0.55);
}
.overview-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  min-height: 76px;
  cursor: pointer;
  list-style: none;
}
.overview-details summary b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.overview-details summary small {
  display: block;
  margin-top: 5px;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.8;
}
.disclosure-label {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--app-aqua);
  font-size: 13px;
  white-space: nowrap;
}
.disclosure-label i {
  font-style: normal;
  transition: transform 0.18s ease;
}
.overview-details[open] .disclosure-label i {
  transform: rotate(180deg);
}
.overview-extra {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.overview-extra .kpi-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.overview-extra .kpi-card {
  box-shadow: none;
  background: transparent;
  padding: 16px 12px;
}
.overview-extra .kpi-icon {
  display: none;
}
.overview-extra .budget-card {
  grid-column: 1;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}
.overview-extra .insight-card {
  grid-column: 2;
  align-items: flex-start;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
  padding: 22px;
}
.overview-extra .insight-card h3 {
  line-height: 1.9;
}
.overview-extra .insight-card small {
  font-size: 13px;
  line-height: 1.9;
  display: block;
}
.tools-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.tools-directory > section {
  min-width: 0;
}
.tools-directory h3 {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--app-muted);
  font-weight: 500;
}
.tools-directory button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 16px;
  width: 100%;
  padding: 20px;
  margin-bottom: 12px;
  text-align: start;
  font: inherit;
  color: var(--app-text);
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  background: var(--panel-calm);
  cursor: pointer;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.tools-directory button::after {
  content: "←";
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  color: var(--app-aqua);
}
.tools-directory b {
  font-size: 15px;
  font-weight: 600;
}
.tools-directory button span {
  grid-column: 1;
  font-size: 13px;
  line-height: 1.8;
  color: var(--app-muted);
}
.tools-directory button:hover {
  border-color: rgba(114, 244, 220, 0.4);
  background: #10343c;
}
.dashboard :is(button, summary):focus-visible {
  outline: 2px solid var(--app-aqua);
  outline-offset: 4px;
}
.dashboard :is(button, summary) {
  touch-action: manipulation;
  scroll-margin-block: 100px;
}
.dashboard .phase-page .page-title p {
  color: var(--app-muted);
}
@media (min-width: 721px) and (max-width: 1100px) {
  .dashboard {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar .nav-item {
    justify-content: flex-start;
    padding-inline: 12px;
  }
  .sidebar .nav-item span,
  .sidebar .side-brand span {
    display: inline;
  }
  .sidebar .voice-quota {
    display: block;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .overview-extra .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  #dashboard-main {
    padding: 22px 16px 32px;
  }
  .dashboard {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .bottom-nav {
    height: calc(68px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #092129;
    backdrop-filter: none;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .overview-intro h2 {
    font-size: 20px;
  }
  .overview-intro p {
    font-size: 13px;
  }
  .quiet-tools {
    padding: 9px 10px;
    font-size: 13px;
  }
  .quiet-tools span {
    margin-inline-start: 5px;
  }
  .overview-grid > .balance-card {
    min-height: 280px;
    padding: 20px;
  }
  .overview-grid > .quick-add-card,
  .overview-grid > .transactions-card {
    padding: 20px;
  }
  .overview-grid .voice-action {
    margin-top: 18px;
  }
  .overview-details > summary {
    padding: 16px;
    gap: 8px;
  }
  .overview-details summary small {
    font-size: 13px;
  }
  .overview-extra {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
    gap: 14px;
  }
  .overview-extra .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-extra .budget-card,
  .overview-extra .insight-card {
    grid-column: 1;
  }
  .overview-extra .kpi-card {
    padding: 12px 8px;
  }
  .overview-extra .kpi-card strong {
    font-size: 18px;
  }
  .tools-directory {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard *,
  .dashboard *::before,
  .dashboard *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* === Connected data, CRUD and accessibility === */
.mode-notice,
.connection-note {
  padding: 12px 18px;
  color: var(--app-muted, #9cb8b5);
  background: #0b252d;
  border: 1px solid rgba(202, 255, 244, 0.12);
  font: inherit;
  font-size: 13px;
  line-height: 1.9;
}
.mode-notice a,
.connection-note a {
  color: var(--app-aqua, #72f4dc);
}
.connection-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.connection-note button {
  min-height: 44px;
  background: transparent;
  color: var(--app-aqua);
  border: 0;
  font: inherit;
  cursor: pointer;
}
.connected .empty-row {
  padding: 28px 16px;
  font-size: 13px;
  line-height: 2;
  color: var(--app-muted);
  text-align: center;
}
.connected .auth-trust {
  line-height: 1.9;
}
.connected #otp-note {
  display: block;
  border: 1px solid var(--app-border);
  padding: 12px;
  border-radius: 10px;
  margin-block: 12px;
  color: var(--app-gold);
  line-height: 2;
}
.connected .preview-note {
  border: 1px solid rgba(245, 212, 119, 0.25);
  background: rgba(245, 212, 119, 0.05);
  color: var(--app-gold);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 20px;
}
.connected .flow-chart {
  display: flex;
  align-items: end;
}
.connected .flow-chart p {
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.9;
}
.connected .report-data {
  margin-top: 20px;
}
.connected .report-data > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid var(--app-border);
  font-size: 13px;
}
.connected .report-preview {
  margin-top: 24px;
}
.connected .report-preview summary {
  cursor: pointer;
  min-height: 44px;
  color: var(--app-muted);
  padding-block: 12px;
}
.admin-toolbar {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-toolbar label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  flex: 1;
}
.admin-toolbar input,
.admin-toolbar select,
.admin-user select {
  min-height: 44px;
  color: var(--app-text);
  background: #092129;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  min-width: 0;
}
.admin-users {
  display: grid;
  gap: 12px;
}
.admin-user {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 130px 130px auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: var(--panel-calm, #0b252d);
}
.admin-user strong,
.admin-user small {
  display: block;
}
.admin-user strong {
  font-size: 14px;
}
.admin-user small {
  margin-top: 6px;
  color: var(--app-muted);
  font-size: 13px;
}
.admin-user label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: var(--app-muted);
}
.admin-user button {
  min-height: 44px;
}
.admin-audit {
  margin-top: 24px;
}
.admin-audit summary {
  min-height: 44px;
  cursor: pointer;
  font-size: 14px;
}
.admin-audit p {
  padding-block: 10px;
  margin: 0;
  color: var(--app-muted);
  border-bottom: 1px solid var(--app-border);
  font-size: 13px;
  line-height: 1.9;
}
.connected button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.connected :is(input, select):focus-visible {
  outline: 2px solid var(--app-aqua);
  outline-offset: 3px;
}
@media (max-width: 720px) {
  .connected input,
  .connected select {
    font-size: 16px;
  }
}
.connected #admin-confirm {
  color: var(--app-text);
  max-width: 440px;
}
.connected #admin-confirm p {
  color: var(--app-muted);
  line-height: 2;
}
.connected #admin-confirm .page-actions {
  margin-top: 24px;
}
.connected #admin-confirm button {
  min-height: 44px;
}
@media (max-width: 900px) {
  .admin-user {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .admin-user > div {
    grid-column: 1/-1;
  }
  .admin-user button {
    grid-column: 1/-1;
  }
}
@media (max-width: 480px) {
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .connected .report-data > div {
    font-size: 13px;
    flex-wrap: wrap;
  }
}

/* Shared panel type scale: 13px captions, 14px labels, 16px reading/actions. */
.connected .record-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  grid-column: 1/-1;
  padding-top: 8px;
}
.connected .record-actions button,
.connected .record-pager button {
  min-height: 44px;
  min-width: 64px;
  padding: 8px 14px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: transparent;
  color: var(--app-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.connected .record-actions button:hover,
.connected .record-pager button:hover:not(:disabled) {
  color: var(--app-aqua);
  border-color: var(--app-aqua);
}
.connected .delete-record {
  color: #ffa8af !important;
}
.connected .record-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--app-muted);
}
.connected #delete-confirm {
  color: var(--app-text);
  max-width: 460px;
}
.connected #delete-confirm p {
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.connected #delete-confirm .page-actions {
  margin-top: 24px;
}
.connected #delete-confirm button {
  min-height: 44px;
}
.connected #transaction-date {
  color-scheme: dark;
  direction: ltr;
  width: 100%;
}
.connected #date-preview {
  display: block;
  color: var(--app-aqua);
  font-size: 14px;
  margin-top: 8px;
}
.connected .transaction-dialog {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.connected :is(.transaction-name b, .person-cell b, .professional-card h3) {
  overflow-wrap: anywhere;
}
.connected button:focus-visible {
  outline: 2px solid var(--app-aqua);
  outline-offset: 3px;
}
.connected .table-row:has(.record-actions),
.connected .debt-row:has(.record-actions) {
  row-gap: 8px;
}
.connected .record-actions {
  border-top: 1px solid var(--app-border);
}
.dashboard {
  font-size: 16px;
}
.dashboard :is(p, small, label) {
  line-height: 1.85;
}

/* Voice transaction capture */
.connected .voice-dialog {
  width: min(480px, calc(100% - 28px));
  border: 1px solid color-mix(in srgb, var(--app-aqua) 34%, var(--app-border));
  border-radius: 24px;
  background: #092126;
  color: var(--app-text);
}
.connected .voice-recorder { padding: 24px; text-align: center; }
.connected .voice-recorder .dialog-heading { text-align: right; }
.connected .voice-recorder .close-dialog { width: 44px; height: 44px; }
.connected .voice-orb {
  position: relative;
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  margin: 4px auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #20d7c422 0 38%, #20d7c40c 39% 60%, transparent 61%);
  border: 1px solid #54e7d633;
}
.connected .mic-ring {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--app-aqua), #44a8ef);
  color: #062026;
  box-shadow: 0 0 0 10px #24d7c31a, 0 16px 38px #16cab535;
}
.connected .voice-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  opacity: .38;
}
.connected .voice-bars i {
  --level: 16%;
  width: 3px;
  height: var(--level);
  max-height: 82px;
  border-radius: 8px;
  background: #8ff8eb;
  transition: height 90ms linear;
}
.connected .voice-dialog.is-recording .voice-bars { opacity: .9; }
.connected .voice-dialog.is-recording .mic-ring { animation: voice-pulse 1.5s ease-in-out infinite; }
.connected .voice-dialog.is-processing .voice-orb { animation: voice-breathe 1.2s ease-in-out infinite alternate; }
.connected .voice-state { margin: 0; font-weight: 800; font-size: 18px; }
.connected .voice-timer { display: block; direction: ltr; margin: 5px 0; font-family: var(--font-data); color: var(--app-aqua); }
.connected .voice-help { margin: 12px auto 18px; color: var(--app-muted); font-size: 14px; }
.connected .voice-controls { display: flex; justify-content: center; gap: 10px; }
.connected .voice-controls button { min-width: 150px; min-height: 48px; }
.connected .voice-stop {
  border: 0;
  border-radius: 12px;
  background: #ff6879;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.connected .voice-error { min-height: 24px; margin: 12px 0 0; color: #ff9aa5; font-size: 14px; }
.connected .voice-privacy { display: block; margin-top: 12px; color: var(--app-muted); font-size: 12px; }
.connected .voice-review {
  padding: 13px 14px;
  margin: 0 0 18px;
  border: 1px solid #36dec558;
  border-radius: 14px;
  background: #24cdb817;
  text-align: right;
}
.connected .voice-review span,
.connected .voice-review q,
.connected .voice-review small { display: block; }
.connected .voice-review span { color: var(--app-aqua); font-size: 13px; font-weight: 800; }
.connected .voice-review q { margin: 7px 0; font-size: 15px; line-height: 1.8; }
.connected .voice-review small { color: var(--app-muted); }
@keyframes voice-pulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 18px #24d7c312, 0 18px 46px #16cab54b; } }
@keyframes voice-breathe { to { transform: scale(.94); opacity: .75; } }
@media (prefers-reduced-motion: reduce) {
  .connected .voice-dialog.is-recording .mic-ring,
  .connected .voice-dialog.is-processing .voice-orb { animation: none; }
  .connected .voice-bars i { transition: none; }
}
.dashboard
  :is(
    .nav-item,
    .nav-group summary,
    .quiet-tools,
    .link-button,
    .primary-small,
    .secondary-small,
    .manual-action,
    .filter-tabs button
  ) {
  font-size: 14px;
}
.dashboard
  :is(
    .transaction-name b,
    .person-cell b,
    .debt-row > strong,
    .table-row > .amount,
    .transaction-row > .amount,
    .tools-directory b,
    .toggle-list b,
    .admin-user strong
  ) {
  font-size: 15px;
}
.dashboard
  :is(
    .page-title > div > span,
    .settings-form label,
    .admin-toolbar label,
    .admin-user label,
    .budget-list > div > div,
    .balance-stats p,
    .summary-row span,
    .kpi-card p,
    .phase-kpis p,
    .section-card-title p,
    .card-title p,
    .report-kpis p,
    .professional-card-foot
  ) {
  font-size: 14px;
}
.dashboard
  :is(
    .tools-directory button span,
    .voice-quota small,
    .profile-button small,
    .topbar > div > p,
    .transaction-name small,
    .overview-details summary small,
    .toggle-list small,
    .admin-user small
  ) {
  font-size: 13px;
}
.dashboard
  :is(
    .voice-action b,
    .tools-directory h3,
    .professional-card h3,
    .overview-details summary b,
    .settings-form input,
    .settings-form select
  ) {
  font-size: 16px;
}
.dashboard :is(.card-title h2, .section-card-title h3) {
  font-size: 18px;
}
.dashboard .page-title > div > span {
  max-width: 65ch;
}
.dashboard .voice-action {
  height: auto;
  min-height: 86px;
}
.dashboard .voice-action > span:nth-child(2) {
  min-width: 0;
}
.dashboard .voice-action small {
  white-space: normal;
}
.dashboard .nav-item {
  height: auto;
  min-height: 46px;
  padding-block: 8px;
}
.dashboard
  :is(
    .transaction-name,
    .person-cell,
    .phase-kpis article > div,
    .business-kpis article,
    .admin-user > div,
    .tools-directory button > *
  ) {
  min-width: 0;
}
.dashboard
  :is(
    .transaction-name b,
    .person-cell b,
    .admin-user strong,
    .tools-directory b
  ) {
  overflow-wrap: anywhere;
}
.dashboard .professional-card-foot {
  flex-wrap: wrap;
  gap: 8px 16px;
  line-height: 1.9;
}
.dashboard .chart-legend {
  flex-wrap: wrap;
}
.dashboard :is(.page-actions, .card-title, .section-card-title) {
  flex-wrap: wrap;
  row-gap: 12px;
}
.transaction-dialog :is(label, legend, .field-error) {
  font-size: 14px;
  line-height: 1.8;
}
.transaction-dialog :is(input, select, .primary-action) {
  font-size: 16px;
}
.transaction-dialog .type-switch span {
  font-size: 15px;
}
@media (max-width: 720px) {
  .dashboard .transaction-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-block: 16px;
  }
  .dashboard .transaction-row > .amount {
    padding-inline-start: 50px;
  }
  .dashboard .table-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
  }
  .dashboard .table-row .transaction-name {
    grid-column: 1/-1;
  }
  .dashboard .table-row > .amount {
    grid-column: 1/-1;
  }
  .connected .table-row > span:nth-of-type(2) {
    display: block;
    text-align: end;
  }
  .connected .debt-row > span {
    display: block;
  }
  .connected .debt-row > .status-chip {
    display: inline-flex;
    justify-self: start;
  }
  .dashboard .overview-extra .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard .overview-extra .kpi-card strong {
    overflow-wrap: anywhere;
  }
.dashboard :is(.page-title > div > span, .preview-note, .empty-row) {
    font-size: 16px;
  }
  .dashboard .page-actions {
    width: 100%;
  }
  .dashboard .page-actions > * {
    flex: 1;
  }
  .dashboard .installment-list > div {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }
  .dashboard .installment-list > div > strong,
  .dashboard .installment-list > div > button {
    grid-column: 2;
  }
  .dashboard .team-card > div:not(.section-card-title) {
    flex-wrap: wrap;
  }
  .dashboard .team-card em {
    margin-inline-start: 48px;
  }
  .dashboard .overview-intro {
    flex-wrap: wrap;
  }
  .dashboard .bottom-nav button {
    min-height: 44px;
  }
}
