:root {
  --bg: #f3f4f6;
  --bg-accent: rgba(0, 122, 255, 0.08);
  --panel: rgba(255, 255, 255, 0.64);
  --panel-strong: rgba(255, 255, 255, 0.84);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(60, 60, 67, 0.12);
  --brand: #0a84ff;
  --brand-strong: #0066cc;
  --danger: #d92d20;
  --ok: #0f9d58;
  --warn: #c47f00;
  --soft: rgba(10, 132, 255, 0.08);
  --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 1px 1px rgba(0, 0, 0, 0.04), 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-pressed: inset 0 1px 0 rgba(255, 255, 255, 0.72), inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(10, 132, 255, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(191, 90, 242, 0.08), transparent 18%),
    linear-gradient(180deg, #f8f9fb 0%, #edf1f5 56%, #e9edf2 100%);
}

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

button {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #1791ff 0%, #0a84ff 100%);
  color: #fff;
  border-radius: 12px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 24px rgba(10, 132, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

button.secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 246, 248, 0.88) 100%);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-pressed), 0 8px 18px rgba(15, 23, 42, 0.05);
}

button.ghost {
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-pressed);
}

button.danger {
  background: var(--danger);
  border-color: transparent;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), inset 0 -1px 1px rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(10, 132, 255, 0.44);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.9);
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: auto;
}

table.compact-table {
  font-size: 11px;
}

th,
td {
  border-bottom: 1px solid rgba(60, 60, 67, 0.1);
  padding: 7px 6px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.15;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.54);
}

.compact-table th,
.compact-table td {
  padding: 5px 5px;
  white-space: nowrap;
}

.compact-table .badge {
  padding: 2px 6px;
  font-size: 10px;
}

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

.login-card {
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.login-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.login-title-row h1 {
  margin: 0;
}

.login-contact {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-strong);
  white-space: nowrap;
}

.login-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 14px;
  padding: 14px;
}

.sidebar {
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
}

.sidebar-head {
  display: grid;
  gap: 8px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
}

.side-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav button {
  text-align: left;
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  padding: 10px;
  border-radius: 12px;
  box-shadow: none;
}

.nav button.active {
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.16) 0%, rgba(10, 132, 255, 0.1) 100%);
  border-color: rgba(10, 132, 255, 0.12);
  color: var(--brand-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.nav-children {
  gap: 4px;
  padding-left: 12px;
}

.nav-children.open {
  display: grid;
}

.nav-children.closed {
  display: none;
}

.nav-child {
  font-size: 13px;
  color: var(--muted);
}

.main {
  padding: 10px 6px 10px 0;
  min-width: 0;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.topbar h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.system-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.system-meta-note {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  min-width: 64px;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 16px;
  min-width: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.panel h2 {
  font-size: 17px;
  margin: 0 0 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat {
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  padding: 16px;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stat-button {
  width: 100%;
  cursor: pointer;
}

.stat-button:hover {
  border-color: rgba(0, 113, 227, 0.18);
  background: rgba(0, 113, 227, 0.08);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.stat strong {
  font-size: 24px;
}

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

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

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

.chart-card {
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 249, 251, 0.72) 100%);
  padding: 14px 14px 12px;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.chart-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.chart-card-head h3 {
  margin: 0;
  font-size: 16px;
}

.chart-card-head strong {
  font-size: 18px;
  color: var(--ink);
}

.chart-line-wrap {
  position: relative;
  height: 116px;
}

.chart-svg {
  width: 100%;
  height: 90px;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(10, 132, 255, 0.12));
}

.chart-values {
  position: absolute;
  inset: 0 0 22px 0;
  pointer-events: none;
}

.chart-value {
  position: absolute;
  transform: translate(-50%, -120%);
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

.chart-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
}

.chart-label {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  font-size: 9px;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0;
}

.chart-dot {
  fill: #fff;
  stroke-width: 2;
}

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

.panel table {
  min-width: 720px;
}

.panel > table,
.panel .table-wrap {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.panel .table-wrap table {
  min-width: 100%;
}

.table-wrap.ipad-table {
  border: 1px solid rgba(60, 60, 67, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.44);
}

.table-wrap.ipad-table table {
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrap.ipad-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 249, 251, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.section-toolbar h2 {
  margin-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--brand-strong);
  border: 1px solid rgba(0, 113, 227, 0.08);
}

.badge.ok {
  background: rgba(15, 157, 88, 0.1);
  color: var(--ok);
  border-color: rgba(15, 157, 88, 0.08);
}

.badge.warn {
  background: rgba(196, 127, 0, 0.1);
  color: var(--warn);
  border-color: rgba(196, 127, 0, 0.08);
}

.badge.danger {
  background: rgba(217, 45, 32, 0.1);
  color: var(--danger);
  border-color: rgba(217, 45, 32, 0.08);
}

.message {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.08);
  color: var(--brand-strong);
  border: 1px solid rgba(10, 132, 255, 0.1);
}

.message.error {
  background: rgba(217, 45, 32, 0.08);
  color: var(--danger);
  border-color: rgba(217, 45, 32, 0.08);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.35);
  display: grid;
  place-items: start center;
  padding: 48px 20px;
  overflow: auto;
}

.modal {
  width: min(980px, 100%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.settlement-modal {
  width: min(520px, 100%);
}

.settlement-stack {
  display: grid;
  gap: 12px;
}

.settlement-head,
.settlement-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.settlement-head strong,
.settlement-card strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.dashboard-card {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.dashboard-card .muted {
  font-size: 10px;
  white-space: nowrap;
}

.dashboard-card strong {
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-card > div {
  min-width: 0;
}

.pager {
  margin-top: 12px;
  justify-content: flex-end;
}

.muted {
  color: var(--muted);
  white-space: nowrap;
  font-size: 11px;
}

.money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

td button.secondary,
td .secondary,
td .ghost,
td .danger {
  padding: 4px 7px;
  font-size: 11px;
  white-space: nowrap;
}

td,
th,
td span,
td strong,
td div {
  word-break: keep-all;
}

td > div,
th > div {
  white-space: nowrap;
}

.hidden {
  display: none;
}

.sidebar-mask {
  display: none;
}

@media (min-width: 821px) and (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 220px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .sidebar {
    padding: 16px;
    gap: 14px;
    border-radius: 22px;
    position: sticky;
    top: 12px;
    height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .brand {
    font-size: 17px;
  }

  .side-note {
    font-size: 12px;
  }

  .nav button,
  .nav-child {
    font-size: 12px;
  }

  .main {
    padding: 8px 2px 8px 0;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    margin-bottom: 14px;
  }

  .topbar h1 {
    font-size: 23px;
  }

  .topbar-meta {
    align-items: flex-start;
  }

  .panel {
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 20px;
  }

  .panel h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }

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

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

  .actions {
    gap: 6px;
  }

  button,
  input,
  select,
  textarea {
    font-size: 13px;
  }

  .stat {
    padding: 14px;
    border-radius: 18px;
  }

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

  .chart-card {
    padding: 12px 12px 10px;
    border-radius: 18px;
  }

  .chart-line-wrap {
    height: 108px;
  }

  .chart-svg {
    height: 82px;
  }

  .chart-value {
    font-size: 9px;
  }

  .chart-label {
    font-size: 8px;
  }

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

  .dashboard-card strong {
    font-size: 11px;
  }

  .dashboard-card .muted {
    font-size: 9px;
  }

  .panel table {
    min-width: 640px;
  }

  table {
    font-size: 11px;
  }

  th,
  td {
    padding: 6px 5px;
  }

  .compact-table {
    font-size: 10px;
  }

  .compact-table th,
  .compact-table td {
    padding: 4px 4px;
  }

  .modal-backdrop {
    padding: 24px 16px;
    place-items: start center;
  }

  .modal {
    width: min(900px, 100%);
    max-height: calc(100vh - 48px);
    border-radius: 20px;
    overflow-y: auto;
  }

  .settlement-modal {
    width: min(560px, 100%);
  }
}

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .app-shell {
    grid-template-columns: 232px 1fr;
    gap: 14px;
  }

  .sidebar {
    padding: 18px 16px;
  }

  .topbar {
    gap: 14px;
  }

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

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

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

  .chart-line-wrap {
    height: 118px;
  }

  .chart-svg {
    height: 88px;
  }

  .modal {
    width: min(1040px, calc(100vw - 72px));
  }

  .settlement-modal {
    width: min(620px, calc(100vw - 96px));
  }

  .table-wrap.ipad-table {
    border-radius: 18px;
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 200px 1fr;
  }

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

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

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 10px;
    width: 100%;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(280px, 82vw);
    max-width: 280px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    padding: 14px;
    gap: 12px;
    overflow-y: auto;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-mask {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: rgba(15, 23, 42, 0.28);
  }

  .brand {
    font-size: 16px;
  }

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

  .main {
    padding: 10px 0 0;
    width: 100%;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
    width: 100%;
  }

  .topbar-title {
    width: 100%;
    justify-content: space-between;
    min-width: 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar h1 {
    font-size: 21px;
  }

  .topbar-meta {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .system-meta-note {
    white-space: normal;
  }

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

  .actions,
  form.actions {
    width: 100%;
    align-items: stretch;
  }

  .actions > *,
  .actions label,
  form.actions > *,
  form.actions label {
    min-width: 0 !important;
    width: 100%;
  }

  .topbar .actions,
  .topbar .system-meta,
  .topbar-meta {
    width: 100%;
  }

  .topbar .system-meta {
    gap: 6px;
  }

  .panel,
  .modal,
  .settlement-modal,
  .section-toolbar,
  .table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .modal-backdrop {
    padding: 16px 10px;
    place-items: end center;
  }

  .modal {
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 14px;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
  }

  .settlement-modal {
    width: 100%;
  }

  .modal .grid-2,
  .modal .grid-3,
  .modal .actions,
  .modal form.actions {
    grid-template-columns: 1fr;
  }

  .modal [style*="grid-column: span 3"],
  .modal [style*="grid-column: span 2"] {
    grid-column: auto !important;
  }

  button,
  input,
  select,
  textarea {
    min-height: 42px;
  }

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

  .panel h2 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .panel table {
    min-width: 640px;
  }

  .compact-table {
    font-size: 11px;
  }

  .compact-table th,
  .compact-table td,
  th,
  td {
    padding: 5px 6px;
  }

  .pager {
    justify-content: space-between;
  }

  .muted {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .login-shell {
    padding: 14px;
  }

  .login-card {
    padding: 18px;
    border-radius: 18px;
  }

  .login-card h1 {
    font-size: 22px;
  }

  .login-title-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
  }

  .login-contact {
    font-size: 12px;
  }

  .sidebar {
    padding: 12px;
    width: min(300px, 88vw);
    max-width: none;
  }

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

  .nav button,
  .nav-group-title,
  .nav-child {
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  .main {
    padding: 8px 0 0;
  }

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

  .stat {
    padding: 12px;
  }

  .stat strong {
    font-size: 20px;
  }

  .chart-line-wrap {
    height: 96px;
  }

  .chart-svg {
    height: 74px;
  }

  .chart-value,
  .chart-label {
    font-size: 8px;
  }

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

  .panel table {
    min-width: 580px;
  }
}
