:root {
  color-scheme: light;
  --bg: #eef9ff;
  --surface: #fffdf8;
  --surface-strong: #24304f;
  --text: #24304f;
  --muted: #6d7890;
  --line: #d7e4ea;
  --accent: #1aa6a0;
  --accent-dark: #087b78;
  --danger: #b42318;
  --amber: #d68a00;
  --sun: #ffd166;
  --coral: #ff8a7a;
  --blue: #4d8df7;
  --leaf: #60c58f;
  --shadow: 0 18px 0 rgba(36, 48, 79, 0.08), 0 26px 55px rgba(36, 48, 79, 0.16);
  --pop-shadow: 0 8px 0 rgba(36, 48, 79, 0.13), 0 18px 28px rgba(36, 48, 79, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(130, 211, 255, 0.32), transparent 360px),
    linear-gradient(115deg, rgba(255, 209, 102, 0.24), transparent 44%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 460px);
  padding: 42px;
  background: var(--surface);
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.login-scene {
  position: relative;
  height: 112px;
  margin: -8px 0 18px;
}

.login-vault {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 132px;
  height: 76px;
  border: 4px solid #24304f;
  border-radius: 8px;
  background: linear-gradient(145deg, #79d6d0, #1aa6a0);
  box-shadow: 0 10px 0 rgba(36, 48, 79, 0.16);
  transform: translateX(-50%) perspective(300px) rotateX(8deg);
}

.login-vault::before {
  content: "";
  position: absolute;
  inset: 16px 42px;
  border: 4px solid #24304f;
  border-radius: 50%;
  background: #fffdf8;
}

.login-vault::after {
  content: "";
  position: absolute;
  left: 56px;
  top: 34px;
  width: 20px;
  height: 6px;
  border-radius: 999px;
  background: #24304f;
}

.login-coin {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 4px solid #c97900;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 6px 0 rgba(201, 121, 0, 0.22);
  animation: floaty 3.2s ease-in-out infinite;
}

.coin-one {
  left: 72px;
  top: 18px;
}

.coin-two {
  right: 82px;
  top: 6px;
  animation-delay: 650ms;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 4px;
  font-size: 19px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.muted {
  color: var(--muted);
}

.login-form {
  margin-top: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid #d9e5ef;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--text);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 8px;
}

.password-row button,
.primary-button,
.ghost-button {
  min-height: 42px;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 0 16px;
  font-weight: 800;
}

.password-row button,
.primary-button {
  background: linear-gradient(180deg, #39c8bd, var(--accent));
  color: #fff;
  box-shadow: 0 6px 0 rgba(8, 123, 120, 0.22);
}

.password-row button:hover,
.primary-button:hover {
  background: var(--accent-dark);
}

.ghost-button {
  background: #fffdf8;
  color: var(--text);
  border-color: #fff;
  box-shadow: 0 6px 0 rgba(36, 48, 79, 0.08);
}

.ghost-button:hover {
  border-color: #9ca3af;
}

.ghost-button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.form-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.app-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 18px;
}

.topbar h1 {
  margin-bottom: 8px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.view-nav {
  display: inline-flex;
  min-height: 42px;
  padding: 4px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 6px 0 rgba(36, 48, 79, 0.08);
}

.view-nav a {
  display: inline-grid;
  place-items: center;
  min-width: 88px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.view-nav a.active {
  background: var(--surface-strong);
  color: #fff;
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: stretch;
  min-height: 330px;
  margin-bottom: 18px;
  padding: 28px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(228, 247, 255, 0.94)),
    #e8f8ff;
  box-shadow: var(--shadow);
}

.story-copy {
  align-self: center;
  max-width: 680px;
}

.story-copy h2 {
  max-width: 760px;
  margin-bottom: 12px;
  color: #24304f;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1;
}

.story-copy > p {
  max-width: 540px;
  color: #526179;
  font-size: 17px;
  line-height: 1.65;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.story-stats span {
  min-width: 0;
  padding: 14px 16px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 0 rgba(36, 48, 79, 0.08);
}

.story-stats strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 20px;
}

.story-scene {
  position: relative;
  min-height: 280px;
  perspective: 900px;
}

.island-base {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 300px;
  height: 180px;
  border: 4px solid #24304f;
  border-radius: 48% 52% 42% 58% / 58% 45% 55% 42%;
  background: linear-gradient(145deg, #b9f3c8, #60c58f 58%, #2a8d6a);
  box-shadow: 0 22px 0 #2f6e62, 0 34px 36px rgba(36, 48, 79, 0.22);
  transform: translateX(-50%) rotateX(58deg) rotateZ(-6deg);
  transform-style: preserve-3d;
}

.vault-house {
  position: absolute;
  left: 92px;
  top: 28px;
  width: 96px;
  height: 72px;
  border: 4px solid #24304f;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 8px 10px 0 rgba(36, 48, 79, 0.13);
  transform: rotateX(-58deg) translateZ(54px);
}

.vault-house .roof {
  position: absolute;
  left: -10px;
  top: -34px;
  width: 108px;
  height: 46px;
  border: 4px solid #24304f;
  border-radius: 8px 8px 0 0;
  background: var(--coral);
  transform: skewX(-12deg);
}

.vault-house .door {
  position: absolute;
  left: 36px;
  bottom: -4px;
  width: 26px;
  height: 42px;
  border: 4px solid #24304f;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #79d6d0;
}

.coin-stack {
  position: absolute;
  display: grid;
  gap: 0;
  transform: rotateX(-58deg) translateZ(46px);
}

.coin-stack-one {
  left: 38px;
  top: 84px;
}

.coin-stack-two {
  right: 38px;
  top: 76px;
}

.coin-stack i {
  width: 46px;
  height: 14px;
  border: 3px solid #9b6400;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 4px 0 rgba(155, 100, 0, 0.2);
}

.tiny-card {
  position: absolute;
  width: 48px;
  height: 34px;
  border: 3px solid #24304f;
  border-radius: 8px;
  background: #fffdf8;
  transform: rotateX(-58deg) translateZ(38px);
}

.tiny-card::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 12px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.card-rent {
  left: 78px;
  bottom: 30px;
  color: var(--blue);
}

.card-dca {
  right: 74px;
  bottom: 36px;
  color: var(--amber);
}

.route {
  position: absolute;
  border: 3px dashed rgba(36, 48, 79, 0.24);
  border-color: rgba(36, 48, 79, 0.24) transparent transparent transparent;
  border-radius: 50%;
  animation: drift 5s ease-in-out infinite;
}

.route-one {
  right: 28px;
  top: 42px;
  width: 210px;
  height: 112px;
  transform: rotate(-18deg);
}

.route-two {
  left: 32px;
  bottom: 58px;
  width: 150px;
  height: 90px;
  transform: rotate(22deg);
  animation-delay: 700ms;
}

.sky-token {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #c97900;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 6px 0 rgba(201, 121, 0, 0.2);
  animation: floaty 3.6s ease-in-out infinite;
}

.token-a {
  right: 80px;
  top: 28px;
}

.token-b {
  left: 58px;
  top: 88px;
  animation-delay: 500ms;
}

.currency-control {
  width: 132px;
}

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

.summary-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  min-width: 0;
  padding: 20px;
  background: linear-gradient(180deg, #fffdf8, #fff7e7);
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: var(--pop-shadow);
  transform: translateY(-2px);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.metric:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 0 rgba(36, 48, 79, 0.11), 0 24px 36px rgba(36, 48, 79, 0.13);
}

.metric span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.08;
  letter-spacing: 0;
}

.metric-primary {
  background: linear-gradient(145deg, #24304f, #40507d);
  color: #fff;
}

.metric-primary span {
  color: #a7f3d0;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: 18px;
  align-items: start;
}

.main-panel,
.side-panel,
.visual-panel,
.analysis-panel,
.entry-form {
  background: var(--surface);
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: var(--pop-shadow);
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.15fr 1.25fr;
  gap: 14px;
  margin-bottom: 18px;
  align-items: stretch;
}

.visual-panel {
  min-width: 0;
  padding: 18px;
  background: linear-gradient(180deg, #fffdf8, #f8fdff);
}

.allocation-layout {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.donut {
  width: 138px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8e5dc;
  border: 5px solid #fff;
  box-shadow: inset 0 -10px 0 rgba(36, 48, 79, 0.1), 0 8px 0 rgba(36, 48, 79, 0.08);
}

.donut > div {
  width: 82px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: var(--surface);
  text-align: center;
}

.donut span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.donut strong {
  font-size: 19px;
}

.legend-list,
.account-list,
.advice-list {
  display: grid;
  gap: 10px;
}

.legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.account-row {
  display: grid;
  gap: 8px;
}

.account-row div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.account-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.account-row span {
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.mini-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf2;
  box-shadow: inset 0 2px 0 rgba(36, 48, 79, 0.08);
}

.mini-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.advice-item {
  padding: 12px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f1fffb;
  box-shadow: 0 5px 0 rgba(36, 48, 79, 0.06);
}

.advice-item.warn {
  border-left-color: var(--amber);
  background: #fff7df;
}

.advice-item.high {
  border-left-color: var(--danger);
  background: #fff0ee;
}

.advice-item.watch {
  border-left-color: #2563eb;
  background: #edf6ff;
}

.advice-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.advice-item p {
  margin: 0;
  color: #485466;
  font-size: 13px;
  line-height: 1.55;
}

.flow-dashboard,
.source-panel {
  margin-bottom: 18px;
  background: var(--surface);
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: var(--pop-shadow);
}

.flow-dashboard {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 230, 0.92)),
    #fffdf8;
}

.flow-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.flow-totals {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.flow-totals strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 18px;
}

.flow-totals .negative {
  color: var(--danger);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.flow-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #fbfaf7;
  box-shadow: 0 7px 0 rgba(36, 48, 79, 0.08);
  transition: transform 160ms ease;
}

.flow-row:hover {
  transform: translateY(-3px);
}

.flow-row.in {
  background: #edfff8;
}

.flow-row.out {
  background: #fff3d7;
}

.flow-row strong {
  display: block;
  margin: 5px 0;
  font-size: 15px;
}

.flow-row p,
.flow-amount span,
.flow-amount em {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.flow-kind {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.flow-amount {
  min-width: 92px;
  text-align: right;
}

.message-log {
  display: grid;
  gap: 0;
}

.message-item {
  padding: 16px 18px;
  border-top: 1px solid #ece8df;
}

.message-item div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.message-item strong {
  color: var(--text);
  font-size: 14px;
}

.message-item span {
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.message-item p {
  margin: 0;
  color: #485466;
  white-space: pre-wrap;
  line-height: 1.6;
}

.main-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #fffdf8;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 2px solid #edf3f5;
}

.panel-heading.compact {
  padding: 0 0 16px;
  border-bottom: 0;
}

.filters {
  display: grid;
  grid-template-columns: 132px minmax(180px, 260px);
  gap: 10px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 910px;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 2px solid #f0f4f5;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

.name-cell {
  display: grid;
  gap: 3px;
}

.name-cell strong {
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.pill.asset {
  background: #c7fff1;
  color: #115e59;
}

.pill.liability {
  background: #ffe1dc;
  color: #912018;
}

.amount {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.amount.negative {
  color: var(--danger);
}

.row-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  padding: 4px 0;
  font-weight: 900;
}

.link-button.danger {
  color: var(--danger);
}

.empty-state {
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
}

.empty-state h3 {
  color: var(--text);
}

.side-panel {
  display: grid;
  gap: 14px;
  background: transparent;
  border: 0;
}

.entry-form,
.analysis-panel {
  padding: 18px;
}

.entry-form {
  display: grid;
  gap: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.analysis-panel h2 {
  margin-bottom: 16px;
}

.breakdown {
  display: grid;
  gap: 12px;
}

.breakdown-row {
  display: grid;
  gap: 7px;
}

.breakdown-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf2;
  box-shadow: inset 0 2px 0 rgba(36, 48, 79, 0.08);
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--leaf));
  transition: width 220ms ease;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes drift {
  0%,
  100% {
    opacity: 0.55;
    translate: 0 0;
  }

  50% {
    opacity: 0.9;
    translate: 0 -8px;
  }
}

@media (max-width: 1080px) {
  .story-hero {
    grid-template-columns: 1fr;
  }

  .story-scene {
    min-height: 260px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .flow-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 18px;
  }

  .topbar,
  .panel-heading {
    display: grid;
  }

  .top-actions,
  .flow-header,
  .filters {
    width: 100%;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .top-actions,
  .flow-header {
    display: grid;
  }

  .view-nav,
  .view-nav a {
    width: 100%;
  }

  .view-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .flow-totals {
    justify-content: flex-start;
  }

  .flow-row,
  .message-item div {
    display: grid;
  }

  .summary-grid,
  .insight-grid,
  .story-stats,
  .split {
    grid-template-columns: 1fr;
  }

  .story-hero {
    min-height: 0;
    padding: 20px;
  }

  .story-copy h2 {
    font-size: 38px;
  }

  .story-copy > p {
    font-size: 15px;
  }

  .story-scene {
    min-height: 220px;
  }

  .island-base {
    width: 232px;
    height: 144px;
  }

  .vault-house {
    left: 72px;
    top: 22px;
    width: 78px;
    height: 60px;
  }

  .vault-house .roof {
    width: 90px;
    height: 38px;
  }

  .coin-stack-one {
    left: 28px;
    top: 68px;
  }

  .coin-stack-two {
    right: 26px;
    top: 62px;
  }

  .tiny-card {
    width: 40px;
    height: 30px;
  }

  .card-rent {
    left: 54px;
    bottom: 24px;
  }

  .card-dca {
    right: 52px;
    bottom: 28px;
  }

  .allocation-layout {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .donut {
    width: 112px;
  }

  .donut > div {
    width: 68px;
  }

  .account-row div:first-child {
    display: grid;
  }

  .login-panel {
    padding: 28px;
  }

  .password-row {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow-x: visible;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr {
    padding: 14px 16px;
    border-bottom: 1px solid #ece8df;
  }

  td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .amount {
    overflow-wrap: anywhere;
  }
}
