:root {
  --bg: #06111c;
  --panel: #0c1826;
  --panel-strong: #0f2033;
  --panel-soft: rgba(255, 255, 255, 0.02);
  --stroke: rgba(160, 194, 234, 0.08);
  --text: #edf5fe;
  --muted: #8ea4bd;
  --accent: #63bbff;
  --accent-soft: rgba(99, 187, 255, 0.12);
  --good: #63d5a5;
  --good-soft: rgba(99, 213, 165, 0.1);
  --warning: #ffbf6f;
  --warning-soft: rgba(255, 191, 111, 0.1);
  --danger: #ff9d9d;
  --danger-soft: rgba(255, 157, 157, 0.1);
  --shadow: 0 12px 22px rgba(2, 7, 18, 0.13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 0%, rgba(99, 187, 255, 0.12), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(77, 210, 154, 0.05), transparent 22%),
    linear-gradient(180deg, #06111b, #081422 44%, #091423 100%);
  color: var(--text);
  font-family: "SF Pro Display", "Avenir Next", "IBM Plex Sans", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  padding: 8px 13px 24px;
}

.shell {
  max-width: 568px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 9px 13px 10px;
  border: 1px solid rgba(160, 194, 234, 0.07);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(11, 22, 35, 0.88), rgba(8, 17, 27, 0.94));
  box-shadow: 0 8px 18px rgba(2, 7, 18, 0.08);
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

h1 {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sync-state {
  padding: 5px 9px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-size: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.tabbar {
  position: sticky;
  top: 8px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 8px;
  padding: 4px;
  border-radius: 17px;
  border: 1px solid rgba(160, 194, 234, 0.07);
  background: linear-gradient(180deg, rgba(10, 20, 31, 0.95), rgba(8, 17, 27, 0.98));
  backdrop-filter: blur(12px);
}

.tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 13px;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.tab.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(77, 176, 255, 0.18), rgba(77, 176, 255, 0.08));
  border-color: rgba(77, 176, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.token-bar {
  display: grid;
  gap: 7px;
  margin-bottom: 8px;
  padding: 11px;
  border: 1px solid rgba(160, 194, 234, 0.07);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 20, 31, 0.92), rgba(8, 17, 27, 0.96));
  box-shadow: 0 10px 20px rgba(2, 7, 18, 0.09);
}

.token-context {
  display: grid;
  gap: 10px;
}

.token-context-copy {
  display: grid;
  gap: 4px;
}

.token-context-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.token-context-copy strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.token-context-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.token-context-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.compact-button {
  min-height: 44px;
  padding: 0 14px;
  width: auto;
}

.subtle-button {
  min-height: 44px;
}

.token-switcher {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.token-switcher::-webkit-scrollbar {
  display: none;
}

.token-pill {
  min-width: 166px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 4px;
}

.token-pill.active {
  border-color: rgba(77, 176, 255, 0.32);
  background: linear-gradient(180deg, rgba(77, 176, 255, 0.14), rgba(77, 176, 255, 0.05));
}

.token-pill-title {
  font-size: 14px;
  font-weight: 700;
}

.token-pill-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.content.tokenless .panel {
  display: none !important;
}

.token-empty-card {
  margin-bottom: 12px;
}

.token-empty-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.home-view,
.workspace-view {
  display: grid;
  gap: 8px;
}

.home-hero {
  margin-bottom: 2px;
}

.home-menu-grid {
  display: grid;
  gap: 7px;
}

.home-menu-card {
  width: 100%;
  text-align: left;
  padding: 14px 14px 13px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.014));
  color: var(--text);
  display: grid;
  gap: 5px;
  box-shadow: var(--shadow);
}

.home-menu-card.executive {
  border-color: rgba(77, 176, 255, 0.2);
  background: linear-gradient(180deg, rgba(77, 176, 255, 0.08), rgba(255, 255, 255, 0.015));
}

.home-menu-card.primary {
  border-color: rgba(99, 187, 255, 0.24);
  background: linear-gradient(180deg, rgba(99, 187, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.home-menu-card:disabled {
  opacity: 0.45;
}

.home-menu-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-menu-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.home-token-grid {
  display: grid;
  gap: 8px;
}

.inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.admin-mini-card,
.admin-panel-card {
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.014));
  box-shadow: var(--shadow);
}

.admin-mini-card.good {
  border-color: rgba(66, 219, 151, 0.18);
}

.admin-mini-card.warning {
  border-color: rgba(255, 188, 79, 0.18);
}

.admin-mini-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.admin-mini-value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
}

.admin-panel-grid,
.admin-list {
  display: grid;
  gap: 8px;
}

.admin-panel-grid {
  margin-bottom: 8px;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-row-actions .ghost-button,
.admin-row-actions .primary-button,
.admin-row-actions .danger-button,
.inline-actions .ghost-button {
  width: auto;
  flex: 0 0 auto;
}

.modal-card.admin-user-modal {
  width: min(100%, 760px);
  max-height: min(88vh, 920px);
  overflow: auto;
}

.admin-user-summary,
.admin-user-actions,
.admin-role-grid,
.admin-access-grid,
.admin-token-grid,
.admin-user-columns {
  display: grid;
  gap: 8px;
}

.admin-user-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.admin-user-summary-pill,
.admin-user-card-block {
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.014));
  box-shadow: var(--shadow);
}

.admin-user-summary-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.admin-user-summary-value {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.2;
}

.admin-user-card-block {
  margin-top: 8px;
}

.admin-user-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.admin-role-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.admin-access-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.admin-user-actions .ghost-button,
.admin-user-actions .primary-button,
.admin-user-actions .danger-button,
.admin-role-grid .ghost-button,
.admin-role-grid .primary-button {
  width: 100%;
}

.admin-inline-note {
  margin-top: 8px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.4;
}

.admin-inline-note.warning {
  border-color: rgba(255, 196, 107, 0.18);
  background: rgba(255, 196, 107, 0.08);
  color: #ffd68f;
}

.admin-inline-note.success {
  border-color: rgba(77, 210, 154, 0.18);
  background: rgba(77, 210, 154, 0.08);
  color: #b5f2d8;
}

.admin-token-grid {
  margin-top: 8px;
}

.admin-token-chip {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.022);
  color: var(--text);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.admin-token-chip.active {
  border-color: rgba(77, 210, 154, 0.22);
  background: rgba(77, 210, 154, 0.1);
}

.admin-token-chip-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.15;
}

.admin-token-chip-sub {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.admin-role-chip {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.022);
  color: var(--text);
}

.admin-role-chip.active {
  border-color: rgba(91, 164, 255, 0.3);
  background: rgba(91, 164, 255, 0.11);
}

.admin-role-chip-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.15;
}

.admin-role-chip-sub {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.admin-access-item {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.022);
}

.admin-access-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.admin-access-value {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-user-columns {
  margin-top: 8px;
}

.home-token-card {
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.014));
  color: var(--text);
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow);
}

.home-token-card.executive {
  border-color: rgba(77, 176, 255, 0.2);
  background: linear-gradient(180deg, rgba(77, 176, 255, 0.1), rgba(255, 255, 255, 0.015));
}

.home-token-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-token-card-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-token-card-title {
  font-size: 14px;
  font-weight: 700;
}

.home-token-card-kicker,
.token-summary-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-token-card-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.home-token-card-pill {
  min-width: 74px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.home-token-card-pill.good {
  color: var(--good);
  background: var(--good-soft);
}

.home-token-card-pill.warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.home-token-card-pill.critical {
  color: var(--danger);
  background: var(--danger-soft);
}

.home-token-card-value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.home-token-card-meta {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.home-token-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.home-token-card-stats span,
.token-summary-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.018);
}

.home-token-card-actions {
  display: flex;
  justify-content: flex-end;
}

.token-card-open-button {
  min-height: 40px;
  width: auto;
  padding: 0 16px;
}

.token-card-menu-button {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 1;
}

.section-head.with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head.with-action > div {
  min-width: 0;
}

.fold-toggle {
  width: auto;
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.fold-body {
  display: grid;
  gap: 8px;
}

.section-copy {
  margin-top: -2px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

@media (min-width: 520px) {
  .token-empty-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .home-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-menu-card.executive {
    grid-column: 1 / -1;
  }

  .home-token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-token-grid,
  .admin-user-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.token-setup-grid,
.token-identity-grid {
  display: grid;
  gap: 8px;
}

.admin-create-inline {
  display: grid;
  gap: 8px;
}

.admin-search-inline {
  display: grid;
  gap: 8px;
}

.admin-filter-inline {
  display: grid;
  gap: 8px;
}

.token-identity-summary {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.token-identity-pill {
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 4px;
}

.token-identity-pill-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.token-identity-pill-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.token-overview-grid {
  display: grid;
  gap: 10px;
}

.token-summary-card {
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.014));
  display: grid;
  gap: 8px;
}

.token-summary-card.good {
  border-color: rgba(99, 213, 165, 0.14);
  background: linear-gradient(180deg, rgba(99, 213, 165, 0.08), rgba(255, 255, 255, 0.014));
}

.token-summary-card.warning {
  border-color: rgba(255, 191, 111, 0.16);
  background: linear-gradient(180deg, rgba(255, 191, 111, 0.08), rgba(255, 255, 255, 0.014));
}

.token-summary-card.critical {
  border-color: rgba(255, 157, 157, 0.18);
  background: linear-gradient(180deg, rgba(255, 157, 157, 0.08), rgba(255, 255, 255, 0.014));
}

.token-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.token-summary-title {
  font-size: 15px;
  font-weight: 700;
}

.token-summary-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.token-summary-score {
  min-width: 0;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.token-summary-status {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.token-summary-status.good {
  background: var(--good-soft);
  color: var(--good);
}

.token-summary-status.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.token-summary-status.critical {
  background: var(--danger-soft);
  color: var(--danger);
}

.token-summary-kpi {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.token-summary-kpi-main {
  display: grid;
  gap: 4px;
}

.token-summary-profit {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.token-summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.token-summary-actions {
  display: flex;
  justify-content: flex-end;
}

.token-summary-open {
  min-height: 40px;
  width: auto;
  padding: 0 16px;
}

.rate-editor-layout {
  display: grid;
  gap: 10px;
}

.rate-editor-title {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.rate-editor-list {
  display: grid;
  gap: 8px;
}

.rate-edit-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.rate-edit-meta {
  display: grid;
  gap: 4px;
}

.rate-edit-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rate-edit-preview {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.rate-edit-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.rate-edit-field {
  display: grid;
  gap: 6px;
}

.rate-edit-field span {
  color: var(--muted);
  font-size: 11px;
}

.rate-edit-field-rate .rate-edit-input {
  font-weight: 700;
}

.rate-edit-input {
  min-height: 42px;
  border-radius: 12px;
}

.mini-button {
  min-height: 42px;
  width: auto;
}

.rate-version-strip {
  display: grid;
  gap: 8px;
}

.settings-summary-strip {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.settings-summary-pill {
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 4px;
}

.settings-summary-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-summary-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.actions-strip .settings-summary-pill {
  background: rgba(255, 255, 255, 0.016);
}

.rate-version-chip {
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.rate-version-chip.active {
  border-color: rgba(77, 210, 154, 0.16);
  background: linear-gradient(180deg, rgba(77, 210, 154, 0.08), rgba(255, 255, 255, 0.02));
}

.rate-version-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rate-version-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.rate-version-badge {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.rate-version-badge.active {
  background: var(--good-soft);
  color: var(--good);
}

.rate-version-meta,
.rate-version-date,
.rate-version-empty {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.rate-version-meta {
  margin-top: 6px;
}

.rate-version-date {
  margin-top: 2px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(4, 9, 16, 0.62);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(100%, 420px);
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 25, 38, 0.98), rgba(10, 18, 29, 0.98));
  box-shadow: 0 22px 44px rgba(2, 7, 18, 0.22);
}

.danger-modal {
  border-color: rgba(255, 157, 157, 0.14);
}

.modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.modal-stack-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.modal-standalone-button {
  margin-top: 8px;
}

.content {
  display: block;
}

.panel {
  display: none;
  gap: 12px;
}

.panel.active {
  display: grid;
  gap: 8px;
}

.hero-card,
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 30, 47, 0.94), rgba(11, 23, 36, 0.96));
  border: 1px solid var(--stroke);
  border-radius: 20px;
  box-shadow: 0 10px 22px rgba(2, 7, 18, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.hero-card::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.subtle-card {
  background: linear-gradient(180deg, rgba(13, 26, 41, 0.82), rgba(10, 20, 32, 0.92));
}

.hero-card {
  padding: 13px;
  display: grid;
  gap: 9px;
}

.dashboard-hero {
  gap: 8px;
}

.hero-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-label {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.hero-card h2 {
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 15ch;
}

.hero-note {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.38;
}

.logic-grid {
  display: grid;
  gap: 8px;
}

.logic-card {
  padding: 12px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.02);
}

.logic-card-kicker {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logic-card-title {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}

.logic-card-text,
.optional-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.dashboard-hero .hero-highlights {
  gap: 5px;
}

.hero-highlight {
  padding: 9px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.012));
}

.dashboard-hero .hero-highlight {
  padding: 9px 10px;
  border-radius: 15px;
}

.hero-highlight-label {
  color: var(--muted);
  font-size: 10.5px;
  margin-bottom: 4px;
}

.hero-highlight-value {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 4px;
}

.dashboard-hero .hero-highlight-value {
  font-size: 15px;
  margin-bottom: 4px;
}

.hero-highlight-sub {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.period-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.dashboard-control-bar {
  display: grid;
  gap: 7px;
  padding: 9px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.012));
}

.dashboard-control-bar .period-picker {
  gap: 5px;
}

.date-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  align-items: start;
}

.date-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.compact-field {
  gap: 4px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.date-control {
  display: grid;
  gap: 8px;
}

.date-trigger {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px 11px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.dashboard-control-bar .date-trigger,
.dashboard-control-bar .filter-trigger {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 13px;
  gap: 2px;
}

.date-trigger.active {
  border-color: rgba(99, 187, 255, 0.38);
  background: linear-gradient(180deg, rgba(77, 176, 255, 0.12), rgba(77, 176, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.date-trigger-value {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}

.dashboard-control-bar .date-trigger-value,
.dashboard-control-bar .filter-trigger-value {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-trigger-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.dashboard-control-bar .date-trigger-meta,
.dashboard-control-bar .filter-trigger-meta {
  display: none;
}

.date-popover {
  display: grid;
}

.calendar-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  border-radius: 16px;
  border: 1px solid rgba(99, 187, 255, 0.14);
  background: linear-gradient(180deg, rgba(9, 21, 34, 0.98), rgba(11, 23, 36, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.calendar-kicker {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: capitalize;
}

.calendar-nav {
  display: flex;
  gap: 6px;
}

.calendar-nav-button,
.calendar-quick-chip,
.calendar-day {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.calendar-nav-button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 18px;
  line-height: 1;
}

.calendar-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.calendar-quick.dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calendar-quick-chip {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.calendar-quick-chip.active {
  border-color: rgba(77, 176, 255, 0.38);
  background: linear-gradient(180deg, rgba(77, 176, 255, 0.16), rgba(77, 176, 255, 0.06));
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.calendar-day {
  min-height: 36px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.calendar-day.muted {
  color: rgba(137, 160, 186, 0.55);
  background: rgba(255, 255, 255, 0.018);
}

.calendar-day.today {
  border-color: rgba(99, 187, 255, 0.28);
}

.calendar-day.active {
  border-color: rgba(77, 176, 255, 0.42);
  background: linear-gradient(180deg, rgba(77, 176, 255, 0.24), rgba(77, 176, 255, 0.1));
  box-shadow: 0 10px 20px rgba(24, 89, 140, 0.22);
}

.date-toolbar .ghost-button {
  width: auto;
  min-height: 48px;
  padding: 0 13px;
}

.dashboard-control-bar .ghost-button {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
}

.filters-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 5px;
}

.filter-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.filter-control {
  display: grid;
  gap: 8px;
}

.filter-trigger {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px 11px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.filter-trigger.active {
  border-color: rgba(99, 187, 255, 0.38);
  background: linear-gradient(180deg, rgba(77, 176, 255, 0.12), rgba(77, 176, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.filter-trigger-value {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.filter-trigger-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.filter-popover {
  display: grid;
}

.filter-panel {
  display: grid;
  gap: 9px;
  padding: 11px;
  border-radius: 16px;
  border: 1px solid rgba(99, 187, 255, 0.14);
  background: linear-gradient(180deg, rgba(9, 21, 34, 0.98), rgba(11, 23, 36, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.filter-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.filter-panel-kicker {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-panel-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.filter-option-list {
  display: grid;
  gap: 7px;
  max-height: 280px;
  overflow: auto;
  padding-right: 2px;
}

.filter-option {
  width: 100%;
  padding: 11px 12px;
  text-align: left;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.022);
  color: var(--text);
  display: grid;
  gap: 4px;
}

.filter-option.active {
  border-color: rgba(77, 176, 255, 0.38);
  background: linear-gradient(180deg, rgba(77, 176, 255, 0.14), rgba(77, 176, 255, 0.05));
}

.filter-option-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.filter-option-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.filter-field select,
input,
select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.filter-field select,
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(237, 245, 254, 0.75) 50%),
    linear-gradient(135deg, rgba(237, 245, 254, 0.75) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.filter-field select:disabled {
  opacity: 0.55;
}

.period-chip {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.dashboard-control-bar .period-chip {
  min-height: 34px;
}

.period-chip.active {
  background: linear-gradient(180deg, rgba(77, 176, 255, 0.18), rgba(77, 176, 255, 0.08));
  color: var(--text);
  border-color: rgba(77, 176, 255, 0.42);
}

.status-pill {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.status-pill.good {
  color: var(--good);
  background: var(--good-soft);
}

.status-pill.warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-pill.critical {
  color: var(--danger);
  background: var(--danger-soft);
}

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

.empty-state-card {
  display: grid;
  gap: 12px;
}

.step-grid {
  display: grid;
  gap: 8px;
}

.step-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 2px;
  padding: 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.02);
}

.step-number {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.step-title {
  font-size: 14px;
  font-weight: 700;
}

.step-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pulse-line {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pulse-line.good {
  color: var(--good);
  background: var(--good-soft);
}

.pulse-line.warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.pulse-line.critical {
  color: var(--danger);
  background: var(--danger-soft);
}

.owner-copy {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.day-workflow-line {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 8px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.day-workflow-line.good {
  color: var(--good);
  background: var(--good-soft);
  border-color: rgba(77, 210, 154, 0.16);
}

.day-workflow-line.warning {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: rgba(255, 190, 99, 0.16);
}

.owner-actions {
  display: grid;
  gap: 7px;
}

.owner-actions.compact-actions {
  margin-top: 8px;
}

.owner-line {
  padding: 8px 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.owner-line.primary {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(99, 187, 255, 0.08), rgba(255, 255, 255, 0.018));
  border-color: rgba(99, 187, 255, 0.14);
}

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

.comparison-chip {
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.comparison-chip.good {
  background: rgba(77, 210, 154, 0.08);
}

.comparison-chip.warning {
  background: rgba(255, 190, 99, 0.08);
}

.comparison-chip.critical {
  background: rgba(255, 157, 157, 0.08);
}

.comparison-label {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}

.comparison-value {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.comparison-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.wide-button {
  width: 100%;
}

.profit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.deposit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.profit-card {
  padding: 11px;
  border-radius: 15px;
  border: 1px solid rgba(99, 187, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.018));
}

.profit-card.muted {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.profit-card.good {
  border-color: rgba(77, 210, 154, 0.18);
  background: linear-gradient(180deg, rgba(77, 210, 154, 0.07), rgba(255, 255, 255, 0.02));
}

.profit-card.critical {
  border-color: rgba(255, 157, 157, 0.22);
  background: linear-gradient(180deg, rgba(255, 157, 157, 0.08), rgba(255, 255, 255, 0.02));
}

.profit-card-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.profit-card-value {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
}

.profit-card-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.profit-note {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.profit-note-main {
  font-size: 14px;
  font-weight: 700;
}

.profit-note-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.rate-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.rate-group {
  padding: 11px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.022);
}

.rate-group-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.rate-chip-grid {
  display: grid;
  gap: 8px;
}

.rate-chip {
  display: grid;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.024);
}

.rate-chip-band {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.rate-chip-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.metric {
  padding: 9px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--stroke);
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.metric.good {
  border-color: rgba(99, 213, 165, 0.16);
  background: linear-gradient(180deg, rgba(99, 213, 165, 0.07), rgba(255, 255, 255, 0.012));
}

.metric.warning {
  border-color: rgba(255, 191, 111, 0.16);
  background: linear-gradient(180deg, rgba(255, 191, 111, 0.07), rgba(255, 255, 255, 0.012));
}

.metric.critical {
  border-color: rgba(255, 157, 157, 0.18);
  background: linear-gradient(180deg, rgba(255, 157, 157, 0.08), rgba(255, 255, 255, 0.012));
}

.metric.muted {
  opacity: 0.82;
}

.metric-label {
  color: var(--muted);
  font-size: 10.5px;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.control-item {
  padding: 11px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.022);
}

.control-item.good {
  background: linear-gradient(180deg, rgba(77, 210, 154, 0.08), rgba(77, 210, 154, 0.03));
}

.control-item.warning {
  background: linear-gradient(180deg, rgba(255, 190, 99, 0.08), rgba(255, 190, 99, 0.03));
}

.control-item.critical {
  background: linear-gradient(180deg, rgba(255, 142, 142, 0.08), rgba(255, 142, 142, 0.03));
}

.control-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.control-value {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.section-head {
  display: grid;
  gap: 2px;
  margin-bottom: 7px;
}

.section-head p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.34;
}

.section-head.slim {
  margin-bottom: 8px;
}

.card {
  padding: 12px;
}

.status-layout {
  display: grid;
  gap: 7px;
}

.alert-list {
  display: grid;
  gap: 5px;
}

.alert-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 13px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
}

.alert-item.good {
  border-color: rgba(99, 213, 165, 0.18);
  background: var(--good-soft);
}

.alert-item.warning {
  border-color: rgba(255, 191, 111, 0.18);
  background: var(--warning-soft);
}

.alert-item.critical {
  border-color: rgba(255, 157, 157, 0.18);
  background: var(--danger-soft);
}

.alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alert-copy {
  display: grid;
  gap: 4px;
}

.alert-item.good .alert-badge {
  color: var(--good);
}

.alert-item.warning .alert-badge {
  color: var(--warning);
}

.alert-item.critical .alert-badge {
  color: var(--danger);
}

.alert-title {
  font-weight: 700;
  font-size: 12.5px;
}

.alert-detail {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.coverage-card {
  display: grid;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.018);
}

.coverage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.coverage-head strong {
  font-size: 18px;
}

.coverage-head span {
  color: var(--muted);
  font-size: 10.5px;
}

.coverage-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.coverage-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d92ff, #67c7ff);
}

.coverage-missing {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.coverage-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.missing-pill,
.coverage-ok {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--stroke);
}

.missing-pill {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.coverage-ok {
  background: var(--good-soft);
  color: var(--good);
}

.expense-overview-grid {
  display: grid;
  gap: 8px;
}

.expense-overview-card {
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 5px;
}

.expense-overview-card.good {
  border-color: rgba(99, 213, 165, 0.16);
  background: linear-gradient(180deg, rgba(99, 213, 165, 0.07), rgba(255, 255, 255, 0.018));
}

.expense-overview-card.warning {
  border-color: rgba(255, 191, 111, 0.16);
  background: linear-gradient(180deg, rgba(255, 191, 111, 0.07), rgba(255, 255, 255, 0.018));
}

.expense-overview-card.muted {
  opacity: 0.88;
}

.expense-overview-card.span-3 {
  grid-column: 1 / -1;
}

.expense-overview-label {
  color: var(--muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.expense-overview-value {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.expense-overview-meta {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.expense-breakdown {
  display: grid;
  gap: 8px;
}

.expense-breakdown .expense-item {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.expense-share {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.profile-list {
  display: grid;
  gap: 7px;
}

.profile-row {
  padding: 9px 11px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.profile-row.anti {
  border-color: rgba(255, 191, 111, 0.16);
  background: rgba(255, 191, 111, 0.06);
}

.profile-row.active {
  border-color: rgba(99, 187, 255, 0.34);
  background: rgba(99, 187, 255, 0.08);
}

.profile-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.profile-row-title {
  font-size: 13px;
  font-weight: 700;
}

.profile-row-profit {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.expense-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.02);
}

.expense-item.good {
  border-color: rgba(77, 210, 154, 0.18);
  background: rgba(77, 210, 154, 0.08);
}

.expense-item.warning {
  border-color: rgba(255, 190, 99, 0.18);
  background: rgba(255, 190, 99, 0.08);
}

.expense-item.critical {
  border-color: rgba(255, 157, 157, 0.18);
  background: rgba(255, 157, 157, 0.08);
}

.expense-name {
  font-weight: 600;
}

.expense-value {
  color: var(--muted);
  font-size: 14px;
}

.loss-driver-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.list {
  display: grid;
  gap: 5px;
}

.top-spaced {
  margin-top: 8px;
}

.list-item {
  padding: 9px 11px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.014));
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.list-item.compact {
  min-height: 54px;
  display: grid;
  align-items: center;
}

.list-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.list-item-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item-meta,
.list-item-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.list-item-meta.complete {
  color: var(--good);
}

.list-item-meta.partial {
  color: var(--warning);
}

.list-item-meta.closed {
  color: var(--good);
}

.change-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.profile-detail-main {
  display: grid;
  gap: 12px;
}

.profile-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-detail-label {
  font-size: 18px;
  font-weight: 700;
}

.profile-detail-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.profile-detail-profit {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.profile-detail-metric {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.022);
}

.profile-detail-metric span {
  color: var(--muted);
  font-size: 12px;
}

.profile-detail-metric strong {
  font-size: 15px;
}

.day-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.day-pill {
  display: grid;
  gap: 2px;
  align-items: center;
  justify-items: center;
  min-height: 50px;
  padding: 7px 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.day-pill.active {
  border-color: rgba(99, 187, 255, 0.36);
  background: rgba(99, 187, 255, 0.1);
  transform: translateY(-1px);
}

.day-pill.good {
  background: rgba(77, 210, 154, 0.08);
}

.day-pill.warning {
  background: rgba(255, 190, 99, 0.08);
}

.day-pill.critical {
  background: rgba(255, 157, 157, 0.08);
}

.day-pill.closed {
  border-color: rgba(77, 210, 154, 0.2);
  box-shadow: inset 0 0 0 1px rgba(77, 210, 154, 0.08);
}

.day-pill-day {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.day-pill-month,
.day-pill-score {
  color: var(--muted);
  font-size: 10px;
}

.day-row-profit {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.compact-row {
  margin-top: 2px;
}

.day-row.warning {
  border-color: rgba(255, 190, 99, 0.18);
}

.day-row.critical {
  border-color: rgba(255, 157, 157, 0.18);
}

.day-row.good {
  border-color: rgba(77, 210, 154, 0.18);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.bundle-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 17px;
  border: 1px solid rgba(99, 187, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012));
}

.bundle-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bundle-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bundle-sub {
  color: var(--muted);
  font-size: 12px;
}

.bundle-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.bundle-status.ready {
  border-color: rgba(77, 210, 154, 0.28);
  background: rgba(77, 210, 154, 0.12);
  color: var(--good);
}

.latest-import-impact {
  display: grid;
  gap: 8px;
}

.latest-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.impact-card {
  padding: 9px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.022);
}

.impact-label {
  color: var(--muted);
  font-size: 10.5px;
  margin-bottom: 5px;
}

.impact-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

.impact-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.impact-list {
  display: grid;
  gap: 6px;
}

.impact-row {
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.014));
}

.impact-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.impact-row-title {
  font-size: 12.5px;
  font-weight: 700;
}

.impact-row-meta {
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
}

.impact-row-sub {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

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

.bundle-slot {
  width: 100%;
  padding: 10px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.015));
  color: var(--text);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.bundle-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.bundle-slot.ready {
  border-color: rgba(77, 210, 154, 0.22);
  background: rgba(77, 210, 154, 0.1);
}

.bundle-slot.warning {
  border-color: rgba(255, 190, 99, 0.22);
  background: rgba(255, 190, 99, 0.1);
}

.bundle-slot-title {
  font-size: 12.5px;
  font-weight: 700;
}

.bundle-slot-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.loss-focus {
  display: grid;
  gap: 8px;
}

.bundle-slot-main {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 5px;
  word-break: break-word;
}

.bundle-slot-sub {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.form-stack {
  display: grid;
  gap: 2px;
}

.picker-head {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.picker-label {
  color: var(--muted);
  font-size: 12px;
}

.picker-caption {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.report-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.expense-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.report-type-card {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 11px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.022);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.report-type-card.active {
  border-color: rgba(77, 176, 255, 0.45);
  background: linear-gradient(180deg, rgba(77, 176, 255, 0.14), rgba(77, 176, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.report-type-title {
  font-size: 14px;
  font-weight: 700;
}

.report-type-sub {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.report-type-card.active .report-type-sub {
  color: rgba(238, 246, 255, 0.84);
}

.expense-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 8px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 17px;
  border: 1px solid rgba(99, 187, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.016));
}

.expense-highlight-copy,
.expense-highlight-total {
  display: grid;
  gap: 6px;
  align-content: start;
}

.expense-highlight-total {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.expense-highlight-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expense-highlight-title {
  font-size: 18px;
  line-height: 1.05;
}

.expense-highlight-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.expense-type-card {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 11px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.022);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.expense-type-card.active {
  transform: translateY(-1px);
  border-color: rgba(77, 176, 255, 0.42);
  background: linear-gradient(180deg, rgba(77, 176, 255, 0.14), rgba(77, 176, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.expense-type-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.expense-type-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.expense-type-sub {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.expense-type-card.active .expense-type-sub {
  color: rgba(238, 246, 255, 0.84);
}

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

.amount-chip {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.amount-chip:hover {
  border-color: rgba(99, 187, 255, 0.22);
}

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

.date-chip {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

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

select,
input,
.primary-button,
.ghost-button,
.upload-box {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.022);
  color: var(--text);
}

select,
input {
  min-height: 50px;
  padding: 0 14px;
  font-size: 16px;
}

select {
  padding-right: 46px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.upload-box {
  min-height: 76px;
  padding: 14px 14px;
  display: grid;
  place-items: center;
  text-align: center;
  margin-bottom: 12px;
  border-style: dashed;
  border-color: rgba(99, 187, 255, 0.18);
  background: linear-gradient(180deg, rgba(99, 187, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.upload-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 12px;
}

.upload-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.upload-pill.muted {
  background: rgba(77, 176, 255, 0.08);
  color: var(--accent);
}

.upload-box input {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.primary-button {
  min-height: 48px;
  padding: 0 16px;
  background: linear-gradient(180deg, #49b5ff, #287dc7);
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(41, 129, 201, 0.2);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease;
}

.ghost-button {
  min-height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12.5px;
  font-weight: 700;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.primary-button:disabled,
.danger-button:disabled,
button:disabled,
input:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.danger-card {
  border-color: rgba(255, 142, 142, 0.12);
  background: linear-gradient(180deg, rgba(36, 19, 23, 0.44), rgba(15, 11, 16, 0.84));
}

.danger-button {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #e36c74, #b64858);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.ghost-button.day-toggle-closed {
  border-color: rgba(77, 210, 154, 0.18);
  background: rgba(77, 210, 154, 0.08);
  color: var(--good);
}

.feedback {
  min-height: 20px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  white-space: pre-line;
}

.feedback.error {
  color: var(--danger);
}

.feedback.success {
  color: var(--good);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.preset-button {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 460px) {
  .status-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .token-context {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .token-setup-grid,
  .token-identity-grid,
  .rate-editor-layout,
  .token-overview-grid,
  .settings-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expense-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .owner-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  body {
    padding: 10px 11px 22px;
  }

  h1 {
    font-size: 21px;
  }

  .metric-value {
    font-size: 19px;
  }

  .control-grid,
  .metric-grid,
  .deposit-grid,
  .profit-grid,
  .course-grid,
  .comparison-strip,
  .latest-impact-grid,
  .rate-groups,
  .profile-detail-grid,
  .hero-highlights,
  .bundle-grid,
  .preset-grid,
  .tabbar,
  .report-type-grid,
  .expense-type-grid,
  .expense-overview-grid,
  .period-picker,
  .token-setup-grid,
  .token-identity-grid,
  .rate-editor-layout,
  .token-overview-grid,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .bundle-head,
  .coverage-head,
  .expense-item,
  .expense-highlight,
  .profile-detail-head {
    display: grid;
  }

  .day-calendar,
  .filters-toolbar,
  .date-toolbar {
    grid-template-columns: 1fr;
  }

  .dashboard-control-bar .period-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-control-bar .date-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dashboard-control-bar .filters-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  }

  .filters-toolbar .ghost-button,
  .date-toolbar .ghost-button {
    width: 100%;
    min-height: 42px;
  }

  .expense-highlight-total {
    padding-left: 0;
    border-left: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .amount-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expense-breakdown .expense-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .expense-share {
    grid-column: 1 / -1;
  }

  .token-context-actions {
    grid-template-columns: 1fr;
  }

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

  .rate-edit-fields {
    grid-template-columns: 1fr;
  }

  .mini-button {
    width: 100%;
  }
}
