:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #12161b;
  --panel-2: #171c22;
  --panel-3: #1e242c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f0f3f5;
  --muted: #7d8792;
  --cyan: #39d8ed;
  --cyan-soft: rgba(57, 216, 237, 0.12);
  --lime: #c8f36c;
  --amber: #ffca68;
  --red: #ff6b78;
  --violet: #a997ff;
  --sidebar: 232px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 1120px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}

body {
  overflow-x: auto;
}

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

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  color: var(--text);
  background: #0e1216;
  transition: 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(57, 216, 237, 0.52);
  box-shadow: 0 0 0 3px rgba(57, 216, 237, 0.08);
}

[hidden] {
  display: none !important;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.17em;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(54, 185, 209, 0.08), transparent 28%),
    #090b0e;
}

.login-screen::before {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
}

.login-aura {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  opacity: 0.16;
  filter: blur(90px);
}

.login-aura--one {
  top: -130px;
  left: 10%;
  background: var(--cyan);
}

.login-aura--two {
  right: 8%;
  bottom: -180px;
  background: var(--violet);
}

.login-card {
  position: relative;
  width: 410px;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(17, 21, 26, 0.93);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(24px);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 25px;
  place-items: center;
  border-radius: 14px;
  color: #071014;
  background: linear-gradient(140deg, #e8fff8, var(--cyan));
  box-shadow: 0 0 34px rgba(57, 216, 237, 0.18);
  font-size: 23px;
  font-weight: 900;
  font-style: italic;
}

.brand-mark--small {
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 10px;
  font-size: 17px;
}

.login-card h1 {
  margin: 8px 0 7px;
  font-size: 31px;
  letter-spacing: -1px;
}

.login-subtitle {
  margin: 0 0 27px;
  color: var(--muted);
}

.login-card label {
  display: block;
  margin-top: 15px;
}

.login-card label > span,
.form-grid label > span,
.setting-row label > span,
#actionFields label > span {
  display: block;
  margin-bottom: 8px;
  color: #a7b0b9;
  font-size: 11px;
}

.login-card input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  font-weight: 700;
}

.primary-button {
  color: #071216;
  background: var(--cyan);
}

.primary-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line);
  color: #bec6ce;
  background: var(--panel-3);
}

.login-submit {
  width: 100%;
  height: 46px;
  margin-top: 24px;
  font-size: 13px;
}

.login-submit i {
  margin-left: auto;
  font-size: 18px;
  font-style: normal;
}

.login-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--red);
  text-align: center;
}

.security-note {
  margin: 18px 0 0;
  color: #525c66;
  font-size: 10px;
  text-align: center;
}

.admin-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 50;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  border-right: 1px solid var(--line);
  background: #0e1115;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand strong {
  display: block;
  font-size: 15px;
}

.sidebar-brand span {
  display: block;
  margin-top: 3px;
  color: #59636c;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 19px;
}

.sidebar nav button {
  position: relative;
  width: 100%;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  color: #7e8892;
  background: transparent;
  text-align: left;
}

.sidebar nav button:hover {
  color: #dfe5e9;
  background: rgba(255, 255, 255, 0.035);
}

.sidebar nav button.active {
  color: #e9fbff;
  background: var(--cyan-soft);
}

.sidebar nav button.active::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 2px;
  border-radius: 3px;
  content: "";
  background: var(--cyan);
}

.sidebar nav i {
  width: 20px;
  color: #66717a;
  font-size: 16px;
  font-style: normal;
  text-align: center;
}

.sidebar nav button.active i {
  color: var(--cyan);
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 13px 9px 3px;
  border-top: 1px solid var(--line);
}

.service-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(200, 243, 108, 0.5);
}

.sidebar-foot strong,
.sidebar-foot small {
  display: block;
}

.sidebar-foot strong {
  font-size: 10px;
}

.sidebar-foot small {
  margin-top: 3px;
  color: #59636c;
  font-size: 8px;
}

.main {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 0 30px 38px;
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  margin: 0 -30px 23px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  margin: 5px 0 0;
  font-size: 21px;
  letter-spacing: -0.4px;
}

.topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.allocation-badge {
  min-width: 122px;
  padding: 7px 11px;
  border: 1px solid rgba(200, 243, 108, 0.22);
  border-radius: 9px;
  background: rgba(200, 243, 108, 0.07);
}

.allocation-badge span,
.allocation-badge strong {
  display: block;
}

.allocation-badge span {
  color: #7d8971;
  font-size: 9px;
}

.allocation-badge strong {
  margin-top: 2px;
  color: var(--lime);
  font-size: 14px;
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #8f9aa4;
  background: var(--panel);
  font-size: 17px;
}

.icon-button:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.profile-button {
  display: flex;
  min-width: 170px;
  height: 43px;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}

.profile-button > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: #091113;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.profile-button div {
  min-width: 0;
  text-align: left;
}

.profile-button strong,
.profile-button small {
  display: block;
}

.profile-button strong {
  max-width: 95px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.profile-button i {
  margin-left: auto;
  color: #68727c;
  font-style: normal;
}

.profile-menu {
  position: absolute;
  top: 49px;
  right: 0;
  width: 170px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #171c21;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.38);
}

.profile-menu button {
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 7px;
  color: var(--red);
  background: transparent;
}

.profile-menu button:hover {
  background: rgba(255, 107, 120, 0.08);
}

.view {
  display: none;
  animation: viewIn 180ms ease;
}

.view.active {
  display: block;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
}

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

.metric-card {
  position: relative;
  min-height: 122px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.metric-card::after {
  position: absolute;
  right: -32px;
  bottom: -55px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  content: "";
  background: var(--metric-color, var(--cyan));
  opacity: 0.06;
  filter: blur(12px);
}

.metric-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-card span {
  color: var(--muted);
  font-size: 10px;
}

.metric-card i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: var(--metric-color, var(--cyan));
  background: color-mix(in srgb, var(--metric-color, var(--cyan)) 11%, transparent);
  font-style: normal;
}

.metric-card strong {
  display: block;
  margin-top: 17px;
  font-size: 25px;
  letter-spacing: -0.6px;
}

.metric-card small {
  display: block;
  margin-top: 4px;
  color: #58626b;
  font-size: 9px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.panel > header,
.drawer-card > header,
.modal-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel > header {
  min-height: 66px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.panel h2,
.drawer-card h2,
.modal-card h2 {
  margin: 5px 0 0;
  font-size: 14px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.7fr);
  gap: 13px;
  margin-top: 13px;
}

.chart-panel,
.online-panel {
  min-height: 330px;
}

.legend {
  color: var(--muted);
  font-size: 9px;
}

.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 2px;
  background: var(--cyan);
}

.chart {
  height: 248px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 28px 20px 22px;
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% 25%;
}

.chart-column {
  min-width: 0;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.chart-column > i {
  width: min(22px, 75%);
  min-height: 3px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(to top, #1da6ba, var(--cyan));
  box-shadow: 0 0 15px rgba(57, 216, 237, 0.12);
  transition: 220ms ease;
}

.chart-column:hover > i {
  filter: brightness(1.24);
}

.chart-column span {
  color: #59636d;
  font-size: 8px;
  white-space: nowrap;
}

.chart-column b {
  color: #9ea8b2;
  font-size: 8px;
  font-weight: 600;
}

.status-ring {
  width: 126px;
  height: 126px;
  display: grid;
  margin: 21px auto 17px;
  place-content: center;
  border: 10px solid rgba(57, 216, 237, 0.1);
  border-top-color: var(--cyan);
  border-radius: 50%;
  text-align: center;
  transform: rotate(35deg);
}

.status-ring > * {
  transform: rotate(-35deg);
}

.status-ring strong {
  font-size: 27px;
}

.status-ring span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.status-list {
  padding: 0 20px;
}

.status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.status-list strong {
  color: #d9dfe4;
}

.table-panel {
  margin-top: 13px;
  overflow: hidden;
}

.text-button {
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-size: 10px;
}

.count-label {
  color: var(--muted);
  font-size: 10px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  white-space: nowrap;
}

th {
  height: 40px;
  color: #59636d;
  background: rgba(255, 255, 255, 0.012);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

td {
  color: #aeb7bf;
  font-size: 10px;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.account-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.account-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-weight: 800;
}

.account-cell strong,
.account-cell small {
  display: block;
}

.account-cell strong {
  color: #e0e5e8;
  font-size: 10px;
}

.account-cell small {
  margin-top: 3px;
  color: #59636d;
  font-size: 8px;
}

.badge {
  display: inline-flex;
  height: 22px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
}

.badge::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: currentColor;
}

.badge--active,
.badge--online {
  color: var(--lime);
  background: rgba(200, 243, 108, 0.08);
}

.badge--banned,
.badge--deleted {
  color: var(--red);
  background: rgba(255, 107, 120, 0.08);
}

.badge--offline {
  color: #69737c;
  background: rgba(255, 255, 255, 0.035);
}

.badge--admin {
  color: var(--violet);
  background: rgba(169, 151, 255, 0.1);
}

.amount-positive {
  color: var(--lime);
}

.amount-negative {
  color: var(--red);
}

.amount-muted {
  color: #77818a;
}

.row-actions {
  display: flex;
  gap: 5px;
}

.row-actions button {
  height: 27px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #8f99a2;
  background: var(--panel-2);
  font-size: 8px;
}

.row-actions button:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.row-actions button.danger {
  color: var(--red);
}

.view-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.view-toolbar--right {
  justify-content: flex-end;
}

.search-field {
  position: relative;
  width: 290px;
}

.search-field span {
  position: absolute;
  top: 10px;
  left: 11px;
  color: #5e6871;
}

.search-field input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 31px;
}

.view-toolbar select {
  height: 38px;
  padding: 0 30px 0 11px;
}

.detail-drawer {
  position: fixed;
  z-index: 200;
  inset: 0;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.drawer-card {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(620px, 48vw);
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #101419;
  box-shadow: -20px 0 70px rgba(0, 0, 0, 0.4);
  animation: drawerIn 180ms ease;
}

@keyframes drawerIn {
  from {
    transform: translateX(28px);
    opacity: 0;
  }
}

.drawer-card > header {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 72px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 20, 25, 0.96);
  backdrop-filter: blur(18px);
}

#detailContent {
  padding: 20px;
}

.detail-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.detail-identity .account-avatar {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  font-size: 17px;
}

.detail-identity h3 {
  margin: 0 0 4px;
}

.detail-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.detail-metrics div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.detail-metrics span,
.detail-metrics strong {
  display: block;
}

.detail-metrics span {
  color: var(--muted);
  font-size: 8px;
}

.detail-metrics strong {
  margin-top: 7px;
  font-size: 14px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.detail-section {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}

.detail-section h3 {
  margin: 0 0 12px;
  font-size: 12px;
}

.detail-section textarea {
  width: 100%;
  height: 72px;
  padding: 10px;
  resize: vertical;
}

.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.note-grid label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
}

.detail-section .table-wrap {
  margin: 0 -15px -15px;
}

dialog {
  color: var(--text);
}

.modal {
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-card {
  width: 540px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: #12171c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.modal-card--compact {
  width: 430px;
}

.modal-card > header {
  height: 70px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.modal-card > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}

.form-grid label.span-two {
  grid-column: span 2;
}

.form-grid input,
#actionFields input,
#actionFields textarea {
  width: 100%;
  height: 39px;
  padding: 0 11px;
}

#actionFields {
  padding: 18px;
}

#actionFields label + label {
  display: block;
  margin-top: 13px;
}

#actionFields textarea {
  height: 72px;
  padding: 10px;
  resize: vertical;
}

.permission-fieldset {
  margin: 0 18px 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.permission-fieldset legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 9px;
}

#permissionOptions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#permissionOptions label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #aab4bc;
  font-size: 9px;
}

#permissionOptions input {
  accent-color: var(--cyan);
}

.toast-region {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  display: flex;
  width: 330px;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #dfe7ea;
  background: rgba(25, 31, 37, 0.96);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
  font-size: 10px;
  animation: toastIn 180ms ease;
}

.toast.error {
  border-color: rgba(255, 107, 120, 0.25);
  color: #ffc4ca;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 13px;
}

.settings-card form {
  padding: 18px;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 130px 130px;
  gap: 13px;
  align-items: end;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row:first-child {
  padding-top: 0;
}

.setting-row:last-of-type {
  margin-bottom: 16px;
}

.setting-row > div strong,
.setting-row > div span {
  display: block;
}

.setting-row > div span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.setting-row input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
}

.safety-card {
  align-self: start;
  padding: 22px;
}

.safety-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--lime);
  background: rgba(200, 243, 108, 0.09);
  font-size: 17px;
}

.safety-card h2 {
  margin: 17px 0 8px;
  font-size: 15px;
}

.safety-card p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.safety-card ul {
  margin: 15px 0 0;
  padding: 13px 0 0 18px;
  border-top: 1px solid var(--line);
  color: #9aa4ad;
  font-size: 9px;
  line-height: 2;
}

.empty-row td {
  height: 130px;
  color: #59636d;
  text-align: center;
}

@media (max-width: 1280px) {
  :root {
    --sidebar: 205px;
  }

  .main {
    padding-inline: 20px;
  }

  .topbar {
    margin-inline: -20px;
    padding-inline: 20px;
  }

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

  .detail-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
