.acct-section {
  display: grid;
  align-content: start;
  gap: clamp(14px, 2vw, 23px);
  min-width: 0;
}

.acct-title p,
.acct-form-card > p {
  color: var(--muted);
  line-height: 1.6;
}

.acct-title p { margin-top: 7px; }

.acct-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.acct-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 43px;
  padding: 8px clamp(9px, 1.5vw, 17px);
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.acct-tabs a:hover { color: var(--ink); }

.acct-tabs a[aria-current='page'] {
  color: var(--cyan);
  background: rgb(117 239 202 / 8%);
  box-shadow: inset 0 0 0 1px rgb(117 239 202 / 19%);
}

.acct-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 2vw, 23px);
}

.acct-form-card,
.acct-balance,
.acct-records {
  min-width: 0;
  padding: clamp(15px, 2.3vw, 28px);
}

.acct-form-card h2,
.acct-dialog h2 {
  font-size: clamp(1rem, 1.3vw, 1.23rem);
  line-height: 1.45;
}

.acct-form-card > p {
  margin-top: 6px;
  font-size: 0.88rem;
}

.acct-form {
  display: grid;
  gap: 16px;
  margin-top: 21px;
}

.acct-filter {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 16px;
}

.acct-filter > label { flex: 1 1 125px; max-width: 230px; }

.acct-form > label,
.acct-filter > label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.acct-section :is(input, select):not([type='checkbox'], [type='radio']) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.acct-section input[readonly] { color: var(--muted); }

.acct-note,
.acct-feedback {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.acct-note { margin-top: -10px; }

.acct-feedback {
  width: 100%;
  margin: 0;
  color: var(--cyan);
}

.acct-feedback:empty { display: none; }

.acct-actions,
.acct-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.acct-presets button,
.acct-detail-button {
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 650;
  cursor: pointer;
}

.acct-presets button:hover,
.acct-presets button[aria-pressed='true'],
.acct-detail-button:hover {
  border-color: rgb(117 239 202 / 36%);
  color: var(--cyan);
}

.acct-presets button[aria-pressed='true'] { background-color: rgb(117 239 202 / 8%); }

.acct-balance {
  display: grid;
  gap: 10px;
  background-image: radial-gradient(ellipse at 105% -15%, rgb(117 239 202 / 14%), transparent 72%);
  color: var(--muted);
}

.acct-balance strong {
  color: var(--cyan);
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.acct-balance a {
  width: fit-content;
  margin-top: 5px;
  color: var(--cyan);
  font-size: 0.87rem;
}

.acct-empty {
  display: grid;
  justify-items: center;
  min-height: 170px;
  place-content: center;
  gap: 9px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  color: var(--muted);
  text-align: center;
}

.acct-empty span {
  display: grid;
  width: 38px;
  height: 38px;
  place-content: center;
  border-radius: 10px;
  background: rgb(117 239 202 / 8%);
  color: var(--cyan);
  font-size: 1.35rem;
}

.acct-table-scroll { max-width: 100%; overflow-x: auto; }

.acct-table {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.acct-table :is(td, th) {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.acct-table th { color: var(--muted); font-size: 0.81rem; }
.acct-table .acct-number { font-variant-numeric: tabular-nums; }
.acct-detail-button { min-height: 34px; }

.acct-dialog {
  width: min(490px, calc(100% - 26px));
  max-height: calc(100% - 26px);
  padding: clamp(15px, 2.3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  color: var(--ink);
}

.acct-dialog::backdrop { background: rgb(4 9 15 / 77%); }

.acct-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.acct-record-detail { display: grid; gap: 3px; margin-top: 15px; }

.acct-record-detail div {
  display: grid;
  grid-template-columns: minmax(72px, 0.7fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.acct-record-detail dt { color: var(--muted); }

.acct-receipt-lines { margin-top: 20px; }
.acct-receipt-lines h3 { font-size: 1rem; margin: 0 0 8px; }
.acct-receipt-lines ul { list-style: none; margin: 0; padding: 0; }
.acct-receipt-lines li { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid #354355; }
.acct-receipt-lines span, .acct-receipt-lines small { color: var(--muted); }

.acct-options {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.acct-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.acct-option:has(input:checked) { border-color: rgb(117 239 202 / 34%); }
.acct-option:has(input:disabled) { cursor: default; }
.acct-option > span { display: grid; gap: 4px; }
.acct-option strong { color: var(--ink); font-size: 0.91rem; }
.acct-option small { color: var(--muted); font-size: 0.81rem; line-height: 1.45; }
.acct-option input { flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--cyan); }

.acct-status {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.acct-status.is-pending { border-color: rgb(249 190 112 / 30%); color: #f9be70; }

.acct-api-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0 0;
}

.acct-api-capabilities div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.acct-api-capabilities dt { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 650; }
.acct-api-capabilities dt span { color: var(--cyan); }
.acct-api-capabilities dd { margin: 5px 0 0; color: var(--muted); font-size: 0.84rem; line-height: 1.55; }

.acct-api-example pre {
  max-width: 100%;
  padding: 13px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--cyan);
  font-size: 0.83rem;
  line-height: 1.65;
}

.acct-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .acct-two-column,
  .acct-api-capabilities { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 540px) {
  .acct-filter > label { flex-basis: min(120px, 100%); max-width: none; }
  .acct-filter .acct-actions { flex: 1 1 100%; }
  .acct-options .acct-option { padding-inline: 11px; }
}
