@font-face {
  font-family: "Inter Dashboard";
  src: url("/static/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f1f4f2;
  --bg-soft: #f1f4f2;
  --panel: #f8faf9;
  --panel-strong: #ffffff;
  --line: #d4dcd7;
  --line-strong: #b9c5be;
  --ink: #18221d;
  --muted: #65736b;
  --accent: #237b65;
  --accent-strong: #175947;
  --accent-soft: #e8f1ed;
  --neutral-soft: #f6f8f7;
  --warn: #9a701c;
  --warn-soft: #f5ecd3;
  --danger: #b34b3f;
  --danger-soft: #f5e1dd;
  --ok-soft: #dfede7;
  --shadow: none;
  --shadow-soft: none;
}

html[data-theme="dark"] {
  --bg: #101713;
  --bg-soft: #101713;
  --panel: #141e19;
  --panel-strong: #1a2620;
  --line: #304038;
  --line-strong: #46594f;
  --ink: #f0f4f2;
  --muted: #a2afa8;
  --accent: #49b795;
  --accent-strong: #319476;
  --accent-soft: #172a23;
  --neutral-soft: #121b17;
  --warn: #d8ad4e;
  --warn-soft: #302815;
  --danger: #ed776b;
  --danger-soft: #38201d;
  --ok-soft: #183026;
}

body,
body * {
  font-family: "Inter Dashboard", "Segoe UI", sans-serif;
  letter-spacing: 0 !important;
}

body,
html[data-theme="dark"] body {
  background: var(--bg);
}

.page {
  padding-top: 20px;
}

.page-header {
  align-items: center;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(38px, 3.8vw, 58px);
  line-height: 1;
  font-weight: 690;
}

.eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 720;
}

.subtle {
  font-size: 13px;
  line-height: 1.45;
}

.panel,
.rotation-panel {
  border-color: var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: none;
  backdrop-filter: none;
}

.panel {
  padding: 18px;
  margin-bottom: 12px;
}

.theme-toggle-button,
html[data-theme="dark"] .theme-toggle-button,
.header-logout-button,
button,
.secondary-button,
html[data-theme="dark"] button,
html[data-theme="dark"] .secondary-button {
  border-radius: 8px;
  background: var(--accent);
  box-shadow: none;
  font-weight: 680;
}

.theme-toggle-button,
html[data-theme="dark"] .theme-toggle-button {
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  color: var(--ink);
}

.theme-toggle-button:hover,
button:hover,
.secondary-button:hover {
  transform: none;
  box-shadow: none;
  filter: brightness(1.04);
}

.header-actions button {
  height: 40px;
}

.filter-toolbar {
  margin-bottom: 14px;
}

.mode-switch {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--neutral-soft);
  box-shadow: none;
}

.mode-button,
html[data-theme="dark"] .mode-button {
  height: 42px;
  padding-inline: 18px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
}

.mode-button:hover,
html[data-theme="dark"] .mode-button:hover {
  background: var(--panel-strong);
  color: var(--ink);
  transform: none;
}

.mode-active,
html[data-theme="dark"] .mode-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
  transform: none;
}

.weekly-toggle-button,
html[data-theme="dark"] .weekly-toggle-button {
  min-height: 42px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--muted);
  box-shadow: none;
  font-size: 13px;
  font-weight: 650;
}

.weekly-toggle-active,
html[data-theme="dark"] .weekly-toggle-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

label {
  gap: 6px;
  font-size: 11px;
  font-weight: 620;
}

input,
select,
html[data-theme="dark"] input,
html[data-theme="dark"] select {
  min-height: 44px;
  padding: 10px 12px;
  border-color: var(--line-strong);
  border-radius: 8px;
  background: var(--panel-strong);
  font-size: 15px;
  font-weight: 540;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.filters-actions button {
  height: 44px;
  font-size: 14px;
}

.panel-meta {
  margin-top: 12px;
}

.panel-meta .subtle {
  margin-block: 0;
  font-size: 12px;
}

.stats-grid {
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card,
html[data-theme="dark"] .stat-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: none;
}

.stat-primary,
html[data-theme="dark"] .stat-primary {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background: var(--panel-strong);
}

.stat-card p {
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 590;
}

.stat-card strong,
.capacity-headline {
  font-weight: 660;
}

.stat-card strong {
  font-size: 30px;
}

.metric-compare {
  margin-top: 9px;
  font-weight: 520;
  opacity: 0.9;
}

.stat-card .metric-compare strong,
.stat-card .metric-compare em {
  font-size: inherit;
  line-height: inherit;
}

.stat-card .metric-compare strong {
  font-weight: 650;
}

.stat-card .metric-compare em {
  font-weight: 540;
}

.capacity-card {
  gap: 8px;
}

.capacity-track,
.limit-bar-track,
.monthly-progress-segment {
  box-shadow: none;
}

.capacity-fill {
  background: var(--accent);
}

.time-grid {
  gap: 10px;
  margin-bottom: 12px;
}

.time-card,
html[data-theme="dark"] .time-card,
html[data-theme="dark"] .time-card-muted,
html[data-theme="dark"] .time-card-active {
  padding: 16px 18px 15px;
  border-color: var(--line-strong);
  border-radius: 10px;
  background-color: var(--panel-strong);
  box-shadow: none;
}

.time-card-active,
html[data-theme="dark"] .time-card-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.time-card-active .time-label,
.time-card-active .time-value {
  position: relative;
  z-index: 1;
  color: var(--ink);
  text-shadow: none;
}

.time-card-active .time-label {
  color: var(--accent-strong);
}

html[data-theme="dark"] .time-card-active .time-label,
html[data-theme="dark"] .time-card-active .time-value {
  color: #f7fbf9;
  text-shadow: 0 1px 2px rgba(4, 14, 10, 0.72);
}

.time-card-muted,
html[data-theme="dark"] .time-card-muted {
  opacity: 0.72;
}

.time-label {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 760;
}

.time-value {
  font-size: clamp(25px, 2.2vw, 40px);
  font-weight: 610;
}

.rotation-panel {
  margin-bottom: 12px;
  border: 2px solid color-mix(in srgb, var(--accent) 62%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
  box-shadow:
    0 16px 38px rgba(19, 44, 35, 0.12),
    0 0 0 4px color-mix(in srgb, var(--accent) 7%, transparent),
    0 0 34px color-mix(in srgb, var(--accent) 16%, transparent);
}

html[data-theme="dark"] .rotation-panel {
  border-color: rgba(79, 183, 153, 0.78);
  background: #0f2927;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(73, 183, 149, 0.06),
    0 0 32px rgba(73, 183, 149, 0.14),
    inset 0 0 0 1px rgba(131, 224, 193, 0.12);
}

html[data-theme="dark"] .rotation-summary {
  background: #0b211f;
}

html[data-theme="dark"] .rotation-body {
  background: #0f2927;
}

html[data-theme="dark"] .rotation-phone-card:not(.rotation-phone-soon):not(.rotation-phone-replace-now):not(.rotation-phone-conflict):not(.rotation-phone-no-limit):not(.rotation-phone-unknown):not(.rotation-phone-amount-success):not(.rotation-phone-amount-warning):not(.rotation-phone-amount-danger):not(.rotation-phone-amount-critical) {
  border-color: rgba(114, 181, 164, 0.28);
  background: #173632;
}

html[data-theme="dark"] .rotation-detail-main {
  border-color: rgba(91, 190, 164, 0.34);
  background: #12312d;
}

html[data-theme="dark"] .rotation-account-row:not(.rotation-row-current):not(.rotation-row-unknown):not(.rotation-row-blocked) {
  border-color: rgba(114, 181, 164, 0.18);
  background: #15332f;
}

.rotation-phone-card.rotation-phone-amount-success:not(.rotation-phone-conflict):not(.rotation-phone-unknown):not(.rotation-phone-no-limit) {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  background: color-mix(in srgb, var(--accent) 13%, var(--panel));
}

.rotation-phone-card.rotation-phone-amount-warning:not(.rotation-phone-conflict):not(.rotation-phone-unknown):not(.rotation-phone-no-limit) {
  border-color: color-mix(in srgb, var(--warn) 68%, var(--line));
  background: color-mix(in srgb, var(--warn) 18%, var(--panel));
}

.rotation-phone-card.rotation-phone-amount-danger:not(.rotation-phone-conflict):not(.rotation-phone-unknown):not(.rotation-phone-no-limit),
.rotation-phone-card.rotation-phone-amount-critical:not(.rotation-phone-conflict):not(.rotation-phone-unknown):not(.rotation-phone-no-limit) {
  border-color: color-mix(in srgb, var(--danger) 72%, var(--line));
  background: color-mix(in srgb, var(--danger) 20%, var(--panel));
}

html[data-theme="dark"] .rotation-phone-card.rotation-phone-amount-success:not(.rotation-phone-conflict):not(.rotation-phone-unknown):not(.rotation-phone-no-limit) {
  border-color: rgba(79, 183, 153, 0.48);
  background: #173a35;
}

html[data-theme="dark"] .rotation-phone-card.rotation-phone-amount-warning:not(.rotation-phone-conflict):not(.rotation-phone-unknown):not(.rotation-phone-no-limit) {
  border-color: rgba(217, 174, 74, 0.46);
  background: #332e1d;
}

html[data-theme="dark"] .rotation-phone-card.rotation-phone-amount-danger:not(.rotation-phone-conflict):not(.rotation-phone-unknown):not(.rotation-phone-no-limit),
html[data-theme="dark"] .rotation-phone-card.rotation-phone-amount-critical:not(.rotation-phone-conflict):not(.rotation-phone-unknown):not(.rotation-phone-no-limit) {
  border-color: rgba(255, 125, 112, 0.62);
  background: rgba(92, 39, 35, 0.72);
}

.rotation-phone-card.rotation-phone-selected.rotation-phone-amount-warning:not(.rotation-phone-conflict):not(.rotation-phone-unknown):not(.rotation-phone-no-limit) {
  box-shadow: inset 0 0 0 1px var(--warn);
}

.rotation-phone-card.rotation-phone-selected.rotation-phone-amount-danger:not(.rotation-phone-conflict):not(.rotation-phone-unknown):not(.rotation-phone-no-limit),
.rotation-phone-card.rotation-phone-selected.rotation-phone-amount-critical:not(.rotation-phone-conflict):not(.rotation-phone-unknown):not(.rotation-phone-no-limit) {
  box-shadow: inset 0 0 0 1px var(--danger);
}

.rotation-panel[open] .rotation-summary {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
}

.rotation-summary {
  min-height: 62px;
}

.rotation-summary-main {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 11px;
  align-items: end;
}

.rotation-summary-copy {
  display: block;
  min-width: 0;
}

.rotation-shelf-icon {
  display: block;
  width: 25px;
  height: 34px;
  align-self: end;
  justify-self: center;
  transform: translateY(1px);
  background: currentColor;
  color: var(--ink);
  opacity: 0.94;
  -webkit-mask: url("/static/images/pixel-shelf-group-2.svg") center / contain no-repeat;
  mask: url("/static/images/pixel-shelf-group-2.svg") center / contain no-repeat;
}

.rotation-summary-main .eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 760;
}

.rotation-summary-main strong {
  font-size: 22px;
  font-weight: 730;
  white-space: nowrap;
}

.rotation-pill {
  min-height: 42px;
  padding: 9px 12px;
}

.rotation-pill em {
  font-size: 14px;
  font-weight: 730;
}

.rotation-pill strong {
  font-size: 19px;
  font-weight: 740;
}

.rotation-summary-action {
  font-size: 14px;
  font-weight: 730;
}

.rotation-panel[open] .rotation-summary-action {
  font-size: 0;
}

.rotation-panel[open] .rotation-summary-action::before {
  font-size: 14px;
  font-weight: 730;
}

.rotation-summary-action,
.rotation-pill,
.device-chip,
.bank-chip,
.status-badge,
.partner-chip,
.tx-usage {
  box-shadow: none;
}

.account-table .device-chip.device-state-active,
html[data-theme="dark"] .account-table .device-chip.device-state-active,
.account-table .device-chip.device-state-inactive,
html[data-theme="dark"] .account-table .device-chip.device-state-inactive {
  position: relative;
  box-sizing: border-box;
  gap: 7px;
  padding-inline: 10px;
}

.account-table .device-chip.device-state-active::after,
.account-table .device-chip.device-state-inactive::after {
  position: static;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  transform: translateY(-1px);
  border-radius: 50%;
  content: "";
}

.account-table .device-chip.device-state-active {
  border-color: rgb(62 180 71 / 70%);
  background: #d8e8e0;
  box-shadow:
    inset 0 0 0 1px rgb(108 223 92 / 9%),
    0 0 7px rgb(67 190 70 / 16%);
}

html[data-theme="dark"] .account-table .device-chip.device-state-active {
  border-color: rgb(142 247 112 / 78%);
  background: rgb(39 83 67 / 92%);
  box-shadow:
    inset 0 0 0 1px rgb(166 255 139 / 10%),
    0 0 5px rgb(125 255 93 / 14%);
}

.account-table .device-chip.device-state-active::after {
  background: rgb(163 255 131 / 68%);
  box-shadow: 0 0 4px rgb(139 255 105 / 32%);
}

.account-table .device-chip.device-state-inactive {
  border-color: rgb(116 134 124 / 30%);
  background: #dfe5e1;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%);
}

html[data-theme="dark"] .account-table .device-chip.device-state-inactive {
  border-color: rgb(156 171 163 / 34%);
  background: rgb(42 57 50 / 66%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 2%);
}

.account-table .device-chip.device-state-inactive::after {
  background: #74827b;
  box-shadow: none;
}

.rotation-phone-card,
.rotation-detail-main,
.rotation-account-row {
  border-radius: 8px;
}

.rotation-phone-selected:not(.rotation-phone-replace-now):not(.rotation-phone-conflict) {
  box-shadow:
    inset 0 0 0 1px var(--accent-strong),
    0 8px 22px color-mix(in srgb, var(--accent) 12%, transparent);
}

html[data-theme="dark"] .rotation-phone-selected:not(.rotation-phone-replace-now):not(.rotation-phone-conflict) {
  box-shadow:
    inset 0 0 0 1px var(--accent-strong),
    0 0 0 1px rgba(73, 183, 149, 0.12),
    0 10px 28px rgba(73, 183, 149, 0.14);
}

.rotation-account-row {
  min-height: 48px;
  padding-block: 11px;
}

.rotation-account-row strong,
.rotation-account-owner,
.rotation-account-limit {
  font-size: 16px;
  line-height: 1.2;
}

.rotation-account-row strong {
  font-weight: 750;
}

.rotation-account-owner {
  font-weight: 680;
}

.rotation-account-limit {
  color: color-mix(in srgb, var(--ink) 84%, var(--accent));
  font-weight: 720;
}

.rotation-account-status {
  font-size: 13px;
  font-weight: 650;
}

.rotation-account-value {
  font-size: 15px;
  font-weight: 750;
}

.rotation-usage-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 32%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line-strong) 54%, transparent);
}

.rotation-usage-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.rotation-usage-fill-success {
  background: var(--accent);
}

.rotation-usage-fill-warning {
  background: var(--warn);
}

.rotation-usage-fill-danger {
  background: var(--danger);
}

.rotation-usage-fill-critical {
  background: color-mix(in srgb, var(--danger) 72%, #5f1212);
}

.rotation-phone-card .rotation-limit-copy-success {
  color: var(--accent);
}

.rotation-phone-card .rotation-limit-copy-warning {
  color: var(--warn);
}

.rotation-phone-card .rotation-limit-copy-danger {
  color: var(--danger);
}

.rotation-phone-card .rotation-limit-copy-critical {
  color: color-mix(in srgb, var(--danger) 72%, #5f1212);
}

@media (min-width: 861px) {
  .rotation-account-status {
    transform: translateX(-80px);
  }

  .rotation-account-value {
    transform: translateX(-140px);
  }
}

@media (min-width: 1181px) {
  .rotation-detail {
    grid-template-columns: minmax(270px, 0.68fr) minmax(520px, 1.32fr);
  }
}

@media (min-width: 1181px) {
  .rotation-summary {
    grid-template-columns: minmax(205px, 0.4fr) minmax(0, 2.6fr) max-content;
    gap: 8px;
  }

  .rotation-summary-strip {
    grid-template-columns: repeat(2, minmax(300px, 640px));
    justify-content: end;
  }
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 25px;
  font-weight: 650;
}

.critical-grid {
  gap: 10px;
}

.critical-panel {
  display: block;
  overflow: hidden;
}

.critical-panel .section-head {
  display: flex;
  margin-bottom: 14px;
}

.critical-panel .section-head .subtle {
  margin: 0;
  max-width: none;
  font-size: 14px;
  font-weight: 540;
}

.critical-panel .critical-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
}

.critical-card {
  padding: 16px;
  border-radius: 8px;
  box-shadow: none;
}

.critical-card h3 {
  margin: 11px 0 9px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.22;
  font-weight: 740;
}

.critical-card p {
  margin: 6px 0;
  color: color-mix(in srgb, var(--ink) 76%, var(--muted));
  font-size: 14px;
  line-height: 1.42;
  font-weight: 540;
}

.critical-card p strong {
  color: var(--ink);
  font-weight: 730;
}

.critical-limit,
html[data-theme="dark"] .critical-limit {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--line));
  background: color-mix(in srgb, var(--danger-soft) 84%, var(--panel));
}

.critical-warning,
html[data-theme="dark"] .critical-warning {
  border-color: color-mix(in srgb, var(--warn) 50%, var(--line));
  background: color-mix(in srgb, var(--warn) 12%, var(--panel-strong));
}

.table-alert-pill,
.system-alert,
.upload-feedback {
  border-radius: 8px;
  box-shadow: none;
}

table {
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding-block: 14px;
}

.disabled-accounts-section {
  border-color: var(--line-strong);
}

.col-daily-limit,
.cell-daily-limit {
  min-width: 185px;
}

@media (min-width: 861px) {
  .account-table th:nth-child(5),
  .account-table td:nth-child(5) {
    min-width: 175px;
  }

  .account-table .cell-min-max-tx .min-max-tx {
    width: 144px;
    margin-inline: auto;
  }

  .account-table td:nth-child(5) .amount-cell-current,
  .account-table .cell-daily-limit .daily-limit-value {
    box-sizing: border-box;
    width: calc(100% - 24px);
    min-width: 0;
    margin-inline: auto;
  }
}

.min-max-tx {
  display: grid;
  width: 126px;
  gap: 7px;
}

.min-max-tx > strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.min-max-scale {
  position: relative;
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 3px;
  background: rgb(220 236 229 / 9%);
  box-shadow:
    inset 0 0 0 1px rgb(226 245 237 / 34%),
    0 0 5px rgb(205 231 220 / 10%);
}

.min-max-scale::before,
.min-max-scale::after {
  position: absolute;
  z-index: 2;
  top: 1px;
  width: 1px;
  height: 5px;
  background: rgb(255 255 255 / 42%);
  content: "";
}

.min-max-scale::before {
  left: 21.74%;
}

.min-max-scale::after {
  left: 47.83%;
}

.min-max-range-part {
  position: absolute;
  z-index: 1;
  top: 1px;
  min-width: 2px;
  height: 5px;
  box-shadow: 0 0 5px currentColor;
}

.min-max-range-part-small {
  color: #f6c763;
  background: currentColor;
}

.min-max-range-part-medium {
  color: #6fa6f4;
  background: currentColor;
}

.min-max-range-part-high {
  color: #aa7cf4;
  background: currentColor;
}

.min-max-tx-compact {
  width: 112px;
}

.min-max-tx-compact > strong {
  font-size: 14px;
}

.live-coverage-panel {
  display: grid;
  gap: 14px;
  margin: 2px 18px 0;
  padding: 16px 4px 19px;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
}

.live-coverage-heading {
  display: flex;
  align-items: baseline;
  gap: 13px;
  padding-inline: 5px;
}

.live-coverage-heading span {
  color: #65c990;
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.live-coverage-heading strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 580;
}

.live-coverage-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 0 5px;
  scrollbar-width: thin;
}

.live-coverage-ruler {
  position: relative;
  display: flex;
  box-sizing: border-box;
  min-width: 1100px;
  padding: 0 24px 24px;
}

.live-coverage-segment {
  position: relative;
  display: grid;
  flex: var(--coverage-weight) 1 0;
  grid-template-rows: 29px 10px;
  min-width: 0;
}

.live-coverage-count {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live-coverage-count strong {
  font-size: 18px;
  font-weight: 780;
}

.live-coverage-count small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.live-coverage-count-zero strong,
.live-coverage-count-zero small {
  color: color-mix(in srgb, var(--muted) 74%, transparent);
}

.live-coverage-lamp {
  position: relative;
  display: block;
  height: 7px;
  margin: 2px;
  overflow: hidden;
  border: 1px solid rgb(168 190 178 / 28%);
  border-radius: 2px;
  background: rgb(81 100 90 / 20%);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 22%);
}

.live-coverage-fill {
  position: absolute;
  top: 1px;
  bottom: 1px;
  min-width: 2px;
  border-radius: 1px;
  background: currentColor;
  box-shadow:
    inset 0 1px rgb(225 255 235 / 28%),
    0 0 6px currentColor;
}

.live-coverage-segment-small {
  color: #f6c763;
}

.live-coverage-segment-medium {
  color: #6fa6f4;
}

.live-coverage-segment-high {
  color: #aa7cf4;
}

.live-coverage-label {
  position: absolute;
  bottom: -18px;
  left: 0;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.live-coverage-label-final {
  right: 24px;
  bottom: 6px;
  left: auto;
  transform: translateX(50%);
}

html[data-theme="dark"] .live-coverage-lamp {
  border-color: rgb(174 202 187 / 24%);
  background: rgb(7 14 11 / 66%);
  box-shadow:
    inset 0 1px 4px rgb(0 0 0 / 55%),
    0 0 0 1px rgb(255 255 255 / 2%);
}

html[data-theme="dark"] .live-coverage-fill {
  background: currentColor;
  box-shadow:
    inset 0 1px rgb(231 255 239 / 24%),
    0 0 7px currentColor;
}

.live-range-copy {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.live-range-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.live-range-copy-none {
  color: color-mix(in srgb, var(--danger) 76%, var(--muted));
}

.live-range-copy-unknown {
  opacity: 0.72;
}

@media (min-width: 861px) {
  .rotation-account-row {
    grid-template-columns: 96px minmax(180px, 1.2fr) 140px 126px minmax(160px, 0.8fr) 150px;
  }

  .rotation-account-status {
    transform: none;
  }

  .rotation-account-value {
    transform: none;
  }
}

@media (max-width: 860px) {
  .live-range-copy-available {
    align-items: flex-end;
    flex-direction: column;
    gap: 3px;
    line-height: 1.1;
    white-space: normal;
  }

  .min-max-tx {
    width: min(150px, 100%);
  }

  .min-max-tx-compact {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 104px;
  }

  .rotation-account-row {
    min-height: 102px;
    gap: 8px 12px;
  }
}

.col-monthly-total,
.cell-monthly-total {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  text-align: center;
}

.monthly-total-value {
  color: var(--ink);
  font-size: 17px;
  font-weight: 740;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.daily-limit-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  padding: 10px 13px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 84%, var(--accent) 16%);
  color: var(--ink);
  font-size: 17px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.amount-cell-current {
  min-width: 134px;
}

html[data-theme="dark"] .disabled-accounts-section {
  border-color: rgba(230, 239, 234, 0.76);
}

tbody tr:not(.monthly-detail-row) td {
  border-bottom-color: color-mix(in srgb, var(--line-strong) 88%, transparent);
}

tbody tr.row-status-warning:not(.monthly-detail-row) td {
  border-bottom-width: 2px;
  border-bottom-color: color-mix(in srgb, var(--line-strong) 84%, var(--warn) 16%);
}

tbody tr.row-status-limit:not(.monthly-detail-row) td {
  border-bottom-width: 2px;
  border-bottom-color: color-mix(in srgb, var(--line-strong) 84%, var(--warn) 16%);
}

th,
html[data-theme="dark"] th {
  background: var(--panel);
  color: var(--muted);
  font-size: 10px;
  font-weight: 620;
}

tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.account-name {
  font-weight: 680;
}

.account-table .pixel-account-selected {
  --pixel-selection-line: color-mix(in srgb, var(--ink) 35%, white);
  --pixel-selection-fill: rgba(255, 255, 255, 0.09);
  --pixel-selection-glow-near: rgba(255, 255, 255, 0.78);
  --pixel-selection-glow-mid: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .account-table .pixel-account-selected {
  --pixel-selection-line: rgba(255, 255, 255, 0.88);
}

/* Keep warning/overflow backgrounds intact; selection adds an independent outline. */
.account-table .pixel-account-selected > td {
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.24),
    transparent 16px,
    transparent calc(100% - 16px),
    rgba(255, 255, 255, 0.16)
  );
  box-shadow:
    inset 0 2px var(--pixel-selection-line),
    inset 0 -2px var(--pixel-selection-line);
}

.account-table .pixel-account-selected > td:first-child {
  box-shadow:
    inset 3px 0 var(--pixel-selection-line),
    inset 0 2px var(--pixel-selection-line),
    inset 0 -2px var(--pixel-selection-line),
    inset 12px 0 14px -10px var(--pixel-selection-glow-near);
}

.account-table .pixel-account-selected > td:last-child {
  box-shadow:
    inset -2px 0 var(--pixel-selection-line),
    inset 0 2px var(--pixel-selection-line),
    inset 0 -2px var(--pixel-selection-line),
    inset -12px 0 14px -10px var(--pixel-selection-glow-mid);
}

.account-table .row-status-mismatch {
  --status-mismatch-line: color-mix(in srgb, #f08a45 88%, white);
  --status-mismatch-fill: color-mix(in srgb, #f08a45 7%, transparent);
}

.account-table .row-status-mismatch > td {
  background-color: var(--status-mismatch-fill);
  box-shadow:
    inset 0 2px var(--status-mismatch-line),
    inset 0 -2px var(--status-mismatch-line);
}

.account-table .row-status-mismatch > td:first-child {
  box-shadow:
    inset 2px 0 var(--status-mismatch-line),
    inset 0 2px var(--status-mismatch-line),
    inset 0 -2px var(--status-mismatch-line);
}

.account-table .row-status-mismatch > td:last-child {
  box-shadow:
    inset -2px 0 var(--status-mismatch-line),
    inset 0 2px var(--status-mismatch-line),
    inset 0 -2px var(--status-mismatch-line);
}

.account-cell-mismatch {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.status-mismatch-note,
.platform-relax-note {
  color: color-mix(in srgb, #f08a45 84%, var(--ink));
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.platform-relax-note {
  color: color-mix(in srgb, var(--warn) 72%, var(--muted));
}

@media (min-width: 861px) {
  .account-table .pixel-account-selected:not(.row-status-warning):not(.row-status-limit) > td {
    background-color: var(--pixel-selection-fill);
  }

  .account-table th,
  .account-table td {
    padding-block: 18px;
  }

  .account-table th,
  html[data-theme="dark"] .account-table th {
    color: color-mix(in srgb, var(--ink) 76%, var(--muted));
    font-size: 13px;
    font-weight: 740;
    line-height: 1.2;
  }

  .theme-toggle-button,
  .header-logout-button {
    font-size: 15px;
    font-weight: 720;
  }

  .mode-button,
  html[data-theme="dark"] .mode-button {
    font-size: 17px;
    font-weight: 740;
  }

  .weekly-toggle-button,
  html[data-theme="dark"] .weekly-toggle-button {
    font-size: 16px;
    font-weight: 730;
  }

  label {
    font-size: 14px;
    font-weight: 700;
  }

  input,
  select,
  html[data-theme="dark"] input,
  html[data-theme="dark"] select {
    font-size: 17px;
    font-weight: 610;
  }

  .filters-actions button {
    font-size: 16px;
    font-weight: 740;
  }

  .panel-meta .subtle {
    font-size: 14px;
    font-weight: 540;
  }

  .stat-card p,
  .stats-grid:not(.stats-grid-mobile) .stat-card-compact p {
    font-size: 13px;
    font-weight: 680;
  }

  .stat-card strong,
  .capacity-headline {
    font-size: 34px;
    font-weight: 750;
    white-space: nowrap;
  }

  .stats-grid:not(.stats-grid-mobile) .stat-card-compact strong {
    font-size: 34px;
    font-weight: 740;
  }

  .metric-compare,
  .capacity-subline,
  .capacity-history,
  .capacity-footer {
    font-size: 13px;
  }
}

@media (min-width: 861px) and (max-width: 1350px) {
  .filters {
    grid-template-columns:
      minmax(160px, 1fr)
      minmax(160px, 1fr)
      minmax(220px, 1.2fr)
      minmax(220px, 1.2fr)
      minmax(270px, 1.3fr);
  }

  input[type="datetime-local"] {
    padding-inline: 10px;
    font-size: 16px;
  }
}

@media (max-width: 860px) {
  .live-coverage-panel {
    margin-inline: 10px;
  }

  .live-coverage-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .account-table .pixel-account-selected {
    box-shadow:
      inset 0 0 0 2px var(--pixel-selection-line),
      inset 3px 0 var(--pixel-selection-line),
      inset 0 14px 16px -11px var(--pixel-selection-glow-near),
      inset 0 -14px 16px -11px var(--pixel-selection-glow-mid);
  }

  .account-table .pixel-account-selected:not(.row-status-warning):not(.row-status-limit) {
    background-image: linear-gradient(var(--pixel-selection-fill), var(--pixel-selection-fill));
  }

  .account-table .pixel-account-selected > td:nth-child(n) {
    box-shadow: none;
    background-color: transparent;
  }

  .account-table .row-status-mismatch {
    box-shadow: inset 0 0 0 2px var(--status-mismatch-line);
  }

  .account-table .row-status-mismatch > td:nth-child(n) {
    box-shadow: none;
  }

  .page {
    padding: 14px 10px 24px;
  }

  .page-header {
    align-items: flex-start;
  }

  h1 {
    font-size: 36px;
  }

  .panel {
    padding: 14px;
  }

  .time-card {
    padding: 15px 16px;
  }

  .rotation-account-row {
    grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
    min-height: 86px;
    align-items: start;
    gap: 5px 12px;
    grid-template-rows: repeat(3, auto);
  }

  .rotation-account-row strong {
    grid-column: 1;
    grid-row: 1;
  }

  .rotation-account-owner {
    grid-column: 1;
    grid-row: 2;
  }

  .rotation-account-status {
    grid-column: 1;
    grid-row: 3;
  }

  .rotation-account-limit {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }

  .rotation-account-value {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: end;
  }

}

@media (max-width: 520px) {
  h1 {
    font-size: 32px;
  }

  .time-value {
    font-size: 24px;
  }
}

@media (max-width: 860px) {
  .rotation-account-row {
    min-height: 102px;
    gap: 8px 12px;
  }
}
