:root {
  --bg: #edf1ee;
  --bg-soft: #f5f7f5;
  --panel: rgba(248, 250, 248, 0.96);
  --panel-strong: #fcfdfc;
  --line: #d6ddd8;
  --line-strong: #c0cbc4;
  --ink: #17211c;
  --muted: #607067;
  --accent: #1c6b5b;
  --accent-strong: #155244;
  --accent-soft: linear-gradient(180deg, #eef8f4 0%, #dfede7 100%);
  --neutral-soft: #eef2ef;
  --warn: #9d6c12;
  --warn-soft: #f7ebc8;
  --danger: #a24334;
  --danger-soft: #f8dfd8;
  --ok-soft: #ddeee6;
  --shadow: 0 20px 44px rgba(28, 41, 34, 0.08);
  --shadow-soft: 0 10px 24px rgba(28, 41, 34, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(28, 107, 91, 0.08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(96, 112, 103, 0.08), transparent 18%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.page {
  max-width: 1920px;
  margin: 0 auto;
  padding: 26px 24px 40px;
}

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

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

h1 {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.subtle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.page-header .subtle {
  margin-top: 10px;
}

.header-logout {
  margin: 0;
}

.header-logout-button {
  min-width: 110px;
  height: 46px;
  font-size: 16px;
}

.panel {
  margin-bottom: 16px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow-x: auto;
  backdrop-filter: blur(8px);
}

.panel-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.unlock-panel {
  max-width: 520px;
  margin: 40px auto 0;
}

.unlock-shell h2 {
  margin: 0 0 8px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.unlock-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.mode-switch {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 16px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(231, 237, 233, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(192, 203, 196, 0.55),
    0 10px 20px rgba(28, 41, 34, 0.06);
}

.mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(192, 203, 196, 0.75);
  background: linear-gradient(180deg, #fbfcfb 0%, #eef3f0 100%);
  color: #4f6158;
  font-size: 17px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 10px rgba(28, 41, 34, 0.06);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mode-button:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f2f6f3 100%);
  color: var(--ink);
  transform: translateY(-1px);
}

.mode-active {
  border-color: rgba(21, 82, 68, 0.45);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 26px rgba(28, 107, 91, 0.22);
  transform: translateY(-1px);
}

.filters {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr minmax(300px, 340px);
  gap: 12px;
  align-items: end;
}

.filters-actions {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
  align-items: end;
}

.filters-actions button {
  width: 100%;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel-strong);
  padding: 14px 16px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(28, 107, 91, 0.45);
  box-shadow: 0 0 0 4px rgba(28, 107, 91, 0.08);
}

button {
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(28, 107, 91, 0.18);
}

.secondary-button {
  background: linear-gradient(135deg, #2d8a68 0%, #1c6b5b 100%);
  color: #ffffff;
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 28px rgba(28, 107, 91, 0.18);
}

.secondary-button:hover {
  background: linear-gradient(135deg, #349473 0%, #216f60 100%);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.signal-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.signal-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.signal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.signal-dot {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.signal-neutral .signal-dot {
  background: #aebbb4;
}

.signal-warning .signal-dot {
  background: var(--warn);
}

.signal-danger .signal-dot {
  background: var(--danger);
}

.stats-grid {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.2fr)
    minmax(190px, 1fr)
    minmax(240px, 1.15fr)
    repeat(5, minmax(120px, 0.78fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stats-grid-mobile {
  display: none;
}

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

.time-card {
  position: relative;
  padding: 20px 22px 18px;
  background: #f4f7f5;
  border: 1px solid rgba(192, 203, 196, 0.7);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(28, 41, 34, 0.08);
  overflow: hidden;
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.time-card-active {
  background: #fbfdfb;
  border-color: rgba(28, 107, 91, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 34px rgba(28, 107, 91, 0.14);
}

.time-card-muted {
  background: #d8dfdb;
  border-color: rgba(166, 178, 171, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    0 8px 16px rgba(28, 41, 34, 0.04);
}

.time-card-muted .time-label {
  color: #516058;
}

.time-card-muted .time-value {
  color: #314038;
}

.time-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.time-value {
  display: block;
  font-size: clamp(32px, 2.8vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 600;
}

.stat-card {
  padding: 16px 16px 14px;
  background: var(--neutral-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.stat-card-main {
  padding-right: 18px;
}

.stat-card-capacity {
  grid-column: span 1;
}

.stat-card-mobile-hero {
  display: none;
  margin-bottom: 16px;
}

.stat-primary {
  background: var(--accent-soft);
  border-color: rgba(28, 107, 91, 0.14);
}

.stat-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat-card strong {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-subtle {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.capacity-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.capacity-headline {
  font-size: clamp(24px, 1.8vw, 34px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.capacity-subline {
  color: #506259;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.capacity-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(23, 33, 28, 0.08);
  box-shadow: inset 0 0 0 1px rgba(23, 33, 28, 0.03);
}

.capacity-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2d8a68 0%, #1c6b5b 100%);
}

.capacity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.capacity-footer-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.capacity-footer-value {
  color: #415249;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.capacity-footer-negative {
  color: #8e2c2c;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
}

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

.upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: end;
}

.upload-file-field input[type="file"] {
  padding: 12px 14px;
  font-size: 15px;
}

.upload-button {
  width: 100%;
}

.upload-feedback {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

.upload-feedback-success {
  background: rgba(221, 238, 230, 0.95);
  color: var(--accent-strong);
  border: 1px solid rgba(28, 107, 91, 0.14);
}

.upload-feedback-error {
  background: rgba(248, 223, 216, 0.95);
  color: var(--danger);
  border: 1px solid rgba(162, 67, 52, 0.16);
}

.critical-panel {
  border-color: rgba(157, 108, 18, 0.16);
}

.disabled-live-panel {
  border-color: rgba(162, 67, 52, 0.18);
}

.muted-section {
  border-color: rgba(192, 203, 196, 0.8);
}

.critical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.muted-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
  justify-content: start;
}

.critical-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.critical-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  line-height: 1.1;
}

.critical-card p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 15px;
}

.critical-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.critical-warning {
  background: rgba(247, 235, 200, 0.72);
}

.critical-limit {
  background: rgba(248, 223, 216, 0.86);
}

.muted-card {
  background: rgba(239, 243, 240, 0.95);
  border-color: rgba(192, 203, 196, 0.85);
}

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

.table-alert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.table-alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(248, 223, 216, 0.9);
  border: 1px solid rgba(162, 67, 52, 0.18);
  color: #6f4b41;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}

.table-alert-pill strong {
  color: var(--ink);
  font-size: 15px;
}

.table-alert-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 245, 242, 0.9);
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}

.table-alert-device {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(216, 232, 224, 0.95);
  color: #183d33;
  font-size: 12px;
  font-weight: 700;
}

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

th,
td {
  padding: 18px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.col-limit-remaining,
.cell-limit-remaining {
  min-width: 340px;
}

.col-transactions,
.cell-transactions {
  min-width: 240px;
}

.cell-limit-remaining {
  padding-right: 40px;
}

.cell-transactions {
  padding-left: 34px;
  border-left: 2px solid rgba(192, 203, 196, 0.65);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(246, 249, 247, 0.98);
  color: #51625a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

td {
  font-size: 18px;
}

.flag,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.status-badge {
  min-width: 78px;
}

.flag-yes {
  background: var(--ok-soft);
  color: var(--accent);
}

.flag-no {
  background: #edf1ee;
  color: var(--muted);
}

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

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

.status-active {
  background: rgba(236, 241, 238, 0.72);
  color: #92a198;
}

.status-disabled {
  background: #ece7e4;
  color: #6d5a52;
}

.status-pause {
  background: #ecefe9;
  color: #69786f;
}

.row-status-warning {
  background: rgba(247, 235, 200, 0.46);
}

.row-status-limit {
  background: rgba(248, 223, 216, 0.58);
}

.row-status-no-limit {
  background: rgba(238, 242, 239, 0.96);
}

tbody tr:hover {
  background: rgba(28, 107, 91, 0.05);
}

.device-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(21, 82, 68, 0.14);
  background: #d8e8e0;
  color: #183d33;
  font-size: 16px;
  font-weight: 600;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 4px 10px rgba(28, 107, 91, 0.08);
}

.account-name {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  font-style: normal;
}

.account-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-cell .status-badge {
  min-width: 84px;
  flex-shrink: 0;
}

.sub-cell {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.muted-mark {
  color: var(--muted);
  font-weight: 700;
}

.limit-cell {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.limit-cell-box {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(237, 241, 238, 0.86);
}

.limit-bar-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #ecefee;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 28, 0.04);
}

.limit-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #c9d2cc;
}

.limit-bar-neutral {
  background: #b8c3bc;
}

.limit-bar-success {
  background: #3c8f63;
}

.limit-bar-warning {
  background: #e3b23c;
}

.limit-bar-danger {
  background: #d33f3f;
}

.limit-bar-critical {
  background: #7c1f1f;
}

.limit-value {
  min-width: 58px;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.limit-value-success {
  color: #2f7b55;
}

.limit-value-warning {
  color: #a06b0d;
}

.limit-value-danger {
  color: #c23939;
}

.limit-value-critical {
  color: #7c1f1f;
}

.amount-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 198px;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(236, 240, 237, 0.92);
  box-shadow: inset 0 0 0 1px rgba(96, 112, 103, 0.08);
}

.amount-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1;
}

.amount-value-plain {
  display: inline-block;
  padding: 10px 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1;
}

.amount-separator {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1;
}

.amount-limit {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1;
}

.tx-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 132px;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(223, 238, 230, 0.9);
  box-shadow: inset 0 0 0 1px rgba(28, 107, 91, 0.08);
}

.tx-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1;
}

.tx-separator {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1;
}

.tx-limit {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1;
}

.limit-negative {
  color: var(--danger);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .filters,
  .signal-strip,
  .time-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .stat-card-main,
  .stat-card-capacity {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .page {
    padding: 18px 12px 26px;
  }

  .filters,
  .upload-form,
  .signal-strip,
  .stats-grid,
  .time-grid,
  .critical-grid {
    grid-template-columns: 1fr;
  }

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

  .panel-meta,
  .section-head,
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: 40px;
  }

  td {
    font-size: 16px;
  }

  .panel {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .stat-card-capacity {
    grid-column: span 1;
  }

  .stat-card-main {
    grid-column: span 1;
  }

  .stat-card-mobile-hero {
    display: block;
  }

  .stats-grid .stat-card-total {
    display: none;
  }

  .stats-grid-mobile {
    display: grid;
  }

  .stats-grid:not(.stats-grid-mobile) {
    display: none;
  }

  .mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .mode-button {
    width: 100%;
    min-width: 0;
  }

  .filters {
    gap: 10px;
  }

  input,
  select,
  button {
    font-size: 16px;
    min-height: 48px;
  }

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

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

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

  .critical-card h3 {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 14px 10px 22px;
  }

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

  h1 {
    font-size: 32px;
    line-height: 1;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .panel {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .panel-meta {
    gap: 8px;
  }

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

  .signal-card {
    padding: 14px;
    border-radius: 16px;
  }

  .signal-card strong {
    font-size: 15px;
  }

  .signal-card p {
    font-size: 13px;
  }

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

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

  .stat-card-main,
  .stat-card-capacity {
    grid-column: span 2;
  }

  .stat-card {
    padding: 14px 12px 12px;
    border-radius: 16px;
  }

  .stat-card p {
    font-size: 12px;
    margin-bottom: 6px;
  }

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

  .stat-card-compact {
    min-height: 0;
    padding: 12px 12px 10px;
  }

  .stat-card-compact p {
    font-size: 11px;
    margin-bottom: 4px;
  }

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

  .time-card {
    padding: 16px 14px 14px;
    border-radius: 16px;
  }

  .time-label {
    font-size: 12px;
  }

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

  .section-head h2 {
    font-size: 24px;
  }

  .critical-grid {
    gap: 12px;
  }

  .critical-card {
    padding: 14px;
    border-radius: 16px;
  }

  .critical-card p {
    font-size: 14px;
  }

  .table-wrap {
    overflow: visible;
  }

  .table-alert-strip {
    flex-direction: column;
  }

  .table-alert-pill {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  table {
    min-width: 0;
    width: 100%;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tbody tr {
    display: grid;
    gap: 10px;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(248, 250, 248, 0.96);
    box-shadow: var(--shadow-soft);
  }

  tbody tr td {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 0;
    border: 0;
    font-size: 15px;
  }

  tbody tr td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .cell-limit-remaining,
  .cell-transactions {
    min-width: 0;
    padding: 0;
    border-left: 0;
  }

  .col-limit-remaining,
  .col-transactions {
    min-width: 0;
  }

  .limit-cell {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .limit-cell-box {
    padding: 10px 12px;
  }

  .limit-value {
    min-width: 0;
    text-align: left;
  }

  .amount-cell,
  .tx-cell {
    min-width: 0;
    justify-content: flex-start;
    width: 100%;
  }

  .amount-value,
  .tx-value {
    font-size: 18px;
  }

  .amount-limit,
  .tx-limit {
    font-size: 16px;
  }

  .device-chip {
    min-width: 54px;
    justify-self: start;
  }

  .flag,
  .status-badge {
    min-width: 60px;
    font-size: 12px;
  }

  .account-cell {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
