:root {
  --admin-sidebar: #1f2d26;
  --admin-sidebar-soft: #2d3d34;
  --admin-surface: #ffffff;
  --admin-canvas: #f3f4f0;
  --admin-accent: #587565;
  --admin-accent-soft: #e8eee9;
  --admin-shadow: 0 10px 34px rgba(35, 48, 40, .07);
}

body { background: var(--admin-canvas); }

.shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns .24s ease;
}

.shell.sidebar-collapsed { grid-template-columns: 84px minmax(0, 1fr); }

#sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 268px;
  height: 100vh;
  padding: 22px 16px 18px;
  background: linear-gradient(180deg, #213129 0%, #19251f 100%);
  color: #fff;
  box-shadow: 8px 0 28px rgba(24, 35, 29, .08);
  overflow: hidden;
  transition: width .24s ease, transform .24s ease;
}

.sidebar-collapsed #sidebar { width: 84px; }

.sidebar-head {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 0 8px;
}

#sidebar .brand {
  min-width: 0;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: 22px;
  overflow: hidden;
}

#sidebar .brand span:last-child {
  flex: 0 0 auto;
  margin-left: 8px;
  color: #9eb4a7;
}

.sidebar-toggle,
.mobile-menu {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
  display: grid;
  align-content: center;
  gap: 4px;
}

.sidebar-toggle i,
.mobile-menu i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.sidebar-toggle { color: #d8e1dc; }
.sidebar-toggle:hover { background: rgba(255, 255, 255, .12); }

#sidebar nav {
  height: calc(100vh - 168px);
  margin: 22px 0 14px;
  padding-right: 2px;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

#sidebar nav::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.filters::-webkit-scrollbar,
dialog::-webkit-scrollbar,
html::-webkit-scrollbar { display: none; }

.table-wrap,
.filters,
dialog,
html { scrollbar-width: none; }

.nav-group { margin-bottom: 17px; }

.nav-group-title {
  display: block;
  height: 23px;
  padding: 0 13px;
  color: #829288;
  font-size: 11px;
  line-height: 23px;
  letter-spacing: 1.5px;
  white-space: nowrap;
  text-transform: uppercase;
}

#sidebar nav button,
#sidebar .logout {
  position: relative;
  width: 100%;
  height: 46px;
  margin: 2px 0;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #b8c4bd;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

#sidebar nav button:hover,
#sidebar .logout:hover { color: #fff; background: rgba(255,255,255,.07); }

#sidebar nav button.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(144, 173, 155, .27), rgba(255,255,255,.07));
  box-shadow: inset 3px 0 0 #9fbaa9;
}

.nav-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  display: inline-grid;
  place-items: center;
  color: #d9e3dd;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#sidebar nav button.active .nav-icon { background: #e8efe9; color: #30483b; }
.nav-label { overflow: hidden; text-overflow: ellipsis; }

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 12px;
}

.sidebar-user {
  height: 42px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.user-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8fc79e;
  box-shadow: 0 0 0 4px rgba(143,199,158,.12);
}

.sidebar-user-copy { display: grid; gap: 2px; white-space: nowrap; }
.sidebar-user-copy b { font-size: 12px; font-weight: 500; }
.sidebar-user-copy small { color: #84968b; font-size: 10px; }
#sidebar .logout { height: 40px; margin-top: 4px; }

.sidebar-collapsed .brand-name,
.sidebar-collapsed #sidebar .brand span:last-child,
.sidebar-collapsed .nav-group-title,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .sidebar-user-copy { opacity: 0; width: 0; pointer-events: none; }

.sidebar-collapsed .sidebar-head { justify-content: center; padding: 0; }
.sidebar-collapsed #sidebar .brand { display: none; }
.sidebar-collapsed #sidebar nav button,
.sidebar-collapsed #sidebar .logout { justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar-user { justify-content: center; padding: 0; }
.sidebar-collapsed .nav-group { margin-bottom: 10px; }
.sidebar-collapsed #sidebar nav { margin-top: 22px; }
.sidebar-collapsed .sidebar-toggle i:first-child { transform: translateX(4px); }
.sidebar-collapsed .sidebar-toggle i:last-child { transform: translateX(4px); }

.nav-backdrop { display: none; }
.mobile-menu { display: none; color: var(--ink); border-color: var(--line); background: #fff; }

.shell main {
  min-width: 0;
  padding: 0 34px 44px;
  background: var(--admin-canvas);
}

.shell main > header {
  min-height: 116px;
  max-width: 1560px;
  margin: 0 auto;
  padding: 24px 0 20px;
  border-bottom: 1px solid #e2e5df;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-title > div { min-width: 0; }
.shell header small { color: #6f8579; font-size: 10px; font-weight: 700; letter-spacing: 2.6px; }
.shell header h1 { margin: 5px 0 0; font-size: 30px; line-height: 1.1; }
#pageSubtitle { margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.header-actions { flex: 0 0 auto; }
.header-actions button {
  min-height: 40px;
  padding: 0 17px;
  border-radius: 12px;
  color: #3d4b42;
  box-shadow: 0 2px 8px rgba(35,48,40,.03);
}
.header-actions button:hover { border-color: #b8c7bd; background: #fafcf9; }
#adminIdentity { padding-right: 6px; white-space: nowrap; }

.content-area { max-width: 1560px; margin: 0 auto; padding-top: 24px; }
.page.active { animation: admin-page-in .2s ease; }
@keyframes admin-page-in { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.metrics { grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 16px; }
.metric,
.shell article,
.shell .table-wrap,
.shell .ticket {
  border-color: #e1e4de;
  border-radius: 16px;
  box-shadow: var(--admin-shadow);
}

.metric {
  min-height: 116px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.metric::after { content: ""; position: absolute; right: -18px; bottom: -26px; width: 74px; height: 74px; border-radius: 50%; background: var(--admin-accent-soft); opacity: .7; }
.metric span { position: relative; z-index: 1; font-size: 12px; }
.metric strong { position: relative; z-index: 1; margin-top: 15px; font-size: 30px; color: #233029; }

.columns { gap: 16px; }
.shell article { padding: 22px; }
.shell article h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.shell article h2::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: #7f9b8b; }
.product-stat { grid-template-columns: minmax(130px,1fr) repeat(3,74px); align-items: center; }
.product-stat:last-child { border-bottom: 0; }
.bar-row { grid-template-columns: 82px minmax(80px, 1fr) 32px; }
.profile-grid div { background: #f5f7f4; }

.filters,
.toolbar {
  min-height: 66px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #e1e4de;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(35,48,40,.045);
}
.toolbar p { margin: 0; }
.filters input,
.filters select { min-height: 42px; border-radius: 10px; background: #fafbf9; }
.filters input:focus,
.filters select:focus { outline: 2px solid rgba(88,117,101,.15); border-color: #91a99b; }
.filters button,
.toolbar button { min-height: 42px; border-radius: 10px; }

.user-page-head {
  min-height: 86px;
  margin-bottom: 14px;
  padding: 19px 22px;
  border: 1px solid #e1e4de;
  border-radius: 16px;
  background: linear-gradient(110deg, #fff 0%, #fff 72%, #eef3ef 100%);
  box-shadow: 0 7px 24px rgba(35,48,40,.045);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.user-page-head h2 { margin: 0; color: #26342c; font-size: 18px; }
.user-page-head p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.user-total {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 10px 16px;
  border-left: 1px solid #dce4de;
  display: grid;
  justify-items: end;
  gap: 3px;
}

.user-total span { color: var(--muted); font-size: 11px; }
.user-total strong { color: #365343; font: 700 24px Georgia, serif; }

.user-filters { justify-content: space-between; }
.user-search { position: relative; flex: 1 1 520px; max-width: 680px; }
.user-search span {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1.8px solid #819187;
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}
.user-search span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: #819187;
  transform: rotate(45deg);
}
.user-filters .user-search input { width: 100%; min-width: 0; padding-left: 43px; }
.user-filters button { flex: 0 0 auto; padding: 0 24px; }

.user-table-wrap { overflow-x: auto; }
.users-table { min-width: 1040px; }
.users-table th:first-child,
.users-table td:first-child { padding-left: 22px; }
.users-table th:last-child,
.users-table td:last-child { padding-right: 22px; text-align: right; }
.users-table tbody tr:last-child td { border-bottom: 0; }
.users-table td { vertical-align: middle; }
.users-table th:nth-child(2) { min-width: 116px; }
.users-table th:nth-child(3) { min-width: 100px; }
.users-table th:nth-child(4) { min-width: 150px; }
.users-table th:nth-child(5),
.users-table th:nth-child(6) { min-width: 155px; }
.users-table td:nth-child(2),
.users-table td:nth-child(3),
.users-table td:nth-child(5),
.users-table td:nth-child(6) { white-space: nowrap; }
.users-table td > small { display: block; margin-top: 5px; line-height: 1.45; }

.user-cell { min-width: 214px; display: flex; align-items: center; gap: 12px; }
.user-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e8eee9, #d8e4dc);
  color: #43604f;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(73,100,86,.08);
}
.user-avatar.large { width: 54px; height: 54px; flex-basis: 54px; border-radius: 17px; font-size: 20px; }
.user-primary { min-width: 0; display: grid; gap: 3px; }
.user-primary b { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.user-primary small { color: #80877f; font-size: 11px; }
.user-primary code { max-width: 155px; color: #9a9f9a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.wallet-value,
.usage-value { display: block; color: #2d3c33; font-size: 15px; }
.wallet-value { color: #3f6752; }
.usage-value { font-size: 18px; }
.asset-counts { display: flex; gap: 8px; }
.asset-counts span { padding: 6px 8px; border-radius: 8px; background: #f4f6f3; color: #747c76; font-size: 11px; white-space: nowrap; }
.asset-counts b { margin-right: 2px; color: #33433a; font-size: 13px; }
.activity-state { display: inline-flex; align-items: center; gap: 6px; color: #667168; font-size: 12px; white-space: nowrap; }
.activity-state i { width: 7px; height: 7px; border-radius: 50%; background: #aeb6b0; }
.activity-state.recent { color: #397053; }
.activity-state.recent i { background: #65a67d; box-shadow: 0 0 0 3px rgba(101,166,125,.12); }
.user-detail-button {
  min-width: 82px;
  padding: 7px 10px;
  border: 1px solid #dce3de;
  border-radius: 9px;
  background: #fff;
  color: #456452;
  font-size: 12px;
  white-space: nowrap;
}
.user-detail-button:hover { border-color: #aebfb4; background: #f6f9f6; }
.user-detail-button span { margin-left: 3px; font-size: 16px; line-height: 10px; }

.user-detail-hero {
  margin-top: 22px;
  padding: 18px;
  border-radius: 15px;
  background: linear-gradient(110deg, #f1f5f2, #f8f9f7);
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-detail-hero h3 { margin: 0 0 6px; font-size: 18px; }
.user-detail-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.detail-section { margin-top: 24px; }
.detail-section h3 { margin: 0 0 10px; font-size: 14px; }
#productError, #passwordError { margin-top: 18px; font-size: 13px; }
.detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-grid b { overflow-wrap: anywhere; }
.user-detail-hero > div { min-width: 0; }
.user-detail-hero p { overflow-wrap: anywhere; line-height: 1.6; }
.profile-summary { margin: 0; padding: 13px 15px; border-radius: 11px; background: #f6f7f4; line-height: 1.7; }

.shell .table-wrap { background: #fff; }
.shell table { min-width: 820px; }
.shell th { padding: 13px 16px; background: #f7f8f6; color: #677268; font-size: 12px; font-weight: 600; }
.shell td { padding: 16px; }
.shell tbody tr { transition: background .15s ease; }
.shell tbody tr:hover { background: #fafcf9; }
.shell .thumb { box-shadow: 0 3px 10px rgba(35,48,40,.08); }
.shell .link { color: #416b55; font-weight: 600; }
.notice { border: 1px solid #e2dfd5; background: #f8f4e9; }
.pager { padding: 0 4px; }
.pager button { min-width: 76px; }

.ticket-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ticket textarea { margin-top: 15px; background: #fafbf9; resize: vertical; }
.ticket-head span { color: var(--muted); font-size: 12px; }

.sidebar-collapsed #sidebar nav button[title]:hover::after,
.sidebar-collapsed #sidebar .logout[title]:hover::after {
  content: attr(title);
  position: fixed;
  left: 72px;
  z-index: 100;
  padding: 7px 10px;
  border-radius: 8px;
  background: #16201b;
  color: #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,.2);
  font-size: 12px;
  pointer-events: none;
}

@media (max-width: 1120px) and (min-width: 901px) {
  .metrics { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
  .shell main { padding-left: 24px; padding-right: 24px; }
  #adminIdentity { display: none; }
}

@media (max-width: 900px) {
  .shell,
  .shell.sidebar-collapsed { display: block; }

  #sidebar,
  .sidebar-collapsed #sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 80;
    width: min(286px, 84vw);
    height: 100vh;
    padding: 20px 16px 18px;
    display: flex;
    transform: translateX(-105%);
  }

  .shell.mobile-nav-open #sidebar { transform: translateX(0); }
  .shell.mobile-nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 70; border: 0; border-radius: 0; background: rgba(21,30,25,.48); backdrop-filter: blur(2px); }

  #sidebar .brand,
  .sidebar-collapsed #sidebar .brand { display: flex; }
  .sidebar-collapsed .brand-name,
  .sidebar-collapsed #sidebar .brand span:last-child,
  .sidebar-collapsed .nav-group-title,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .sidebar-user-copy { opacity: 1; width: auto; pointer-events: auto; }
  .sidebar-collapsed .sidebar-head { justify-content: space-between; padding: 0 4px 0 8px; }
  .sidebar-collapsed #sidebar nav button,
  .sidebar-collapsed #sidebar .logout { justify-content: flex-start; padding: 0 13px; }
  .sidebar-collapsed .sidebar-user { justify-content: flex-start; padding: 0 10px; }
  .sidebar-collapsed .nav-group { margin-bottom: 17px; }

  #sidebar nav { height: calc(100vh - 168px); margin: 22px 0 14px; display: block; }
  .nav-group { display: block; }
  .sidebar-toggle { transform: rotate(180deg); }
  .mobile-menu { display: grid; }

  .shell main { padding: 0 16px 34px; }
  .shell main > header { min-height: 100px; padding: 18px 0; align-items: flex-start; }
  .shell header h1 { font-size: 25px; }
  #pageSubtitle { font-size: 12px; }
  .header-actions { gap: 7px; }
  #adminIdentity { display: none; }
  .header-actions button { min-height: 38px; padding: 0 12px; font-size: 12px; }
  .content-area { padding-top: 18px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .metric { min-height: 104px; padding: 17px; }
  .metric strong { font-size: 25px; }
  .columns { grid-template-columns: 1fr; }
  .ticket-list { grid-template-columns: 1fr; }
  .filters { overflow-x: auto; align-items: center; }
  .user-page-head { min-height: 78px; padding: 16px 18px; }
  .user-filters { overflow: visible; }
  .user-search { flex-basis: auto; }
}

@media (max-width: 560px) {
  .shell main { padding-left: 12px; padding-right: 12px; }
  .shell main > header { min-height: 94px; gap: 8px; }
  .header-title { gap: 9px; }
  .mobile-menu { width: 36px; height: 36px; }
  .shell header small { display: none; }
  .shell header h1 { margin-top: 0; font-size: 23px; }
  #pageSubtitle { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-actions { display: grid; grid-template-columns: 1fr; gap: 5px; }
  .header-actions button { min-width: 78px; min-height: 33px; padding: 0 9px; font-size: 11px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 96px; padding: 15px; }
  .metric strong { margin-top: 12px; font-size: 23px; }
  .filters { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .user-page-head { margin-left: -1px; margin-right: -1px; padding: 15px; }
  .user-page-head p { max-width: 210px; line-height: 1.55; }
  .user-total { min-width: 78px; padding: 7px 0 7px 12px; }
  .user-total strong { font-size: 21px; }
  .user-filters { margin-left: 0; margin-right: 0; padding: 10px; border: 1px solid #e1e4de; border-radius: 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .user-filters button { padding: 0 14px; }
  .user-table-wrap { margin-left: -12px; margin-right: -12px; border-left: 0; border-right: 0; border-radius: 0; }
  #userDialog .dialog-body { padding: 22px 18px; }
  #userDialog .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #userDialog .mini-list div { flex-wrap: wrap; gap: 6px; font-size: 12px; }
  .toolbar { align-items: flex-start; }
  .pager { justify-content: space-between; }
  .pager span { font-size: 11px; }
  .product-stat { grid-template-columns: minmax(110px,1fr) 70px; }
  .product-stat span:nth-of-type(n+2) { display: none; }
}

.shell main > header { margin-bottom: 0; }
.header-actions { gap: 18px; }
#adminIdentity.admin-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px 0 0;
  border-right: 1px solid #dce2db;
  color: #334239;
  white-space: normal;
  text-align: left;
  width: auto;
}
.admin-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: #e0e9e2; color: #4c6b57; font-size: 17px; font-weight: 600; }
.admin-identity-copy { display: grid; gap: 5px; }
.admin-identity-copy > b { font-size: 13px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-identity-copy > span { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #828b82; }
.admin-role { padding: 2px 6px; border-radius: 5px; background: #eaf0ea; color: #66816d; font-size: 10px; white-space: nowrap; }
.header-buttons { display: flex; gap: 9px; }
.header-buttons button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.header-buttons svg { flex: 0 0 15px; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.header-buttons #refresh { border-color: #4e6b59; background: #4e6b59; color: #fff; }
.header-buttons #refresh:hover { background: #405b49; }
.dashboard-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.dashboard-section-head h2 { margin: 0; font-size: 17px; color: #304236; }
.dashboard-section-head p { margin: 6px 0 0; color: #8b938a; font-size: 11px; }
#dashboardUpdated { color: #8b938a; font-size: 11px; }
.metrics.core-metrics,
.metrics.support-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.core-metrics .metric { min-height: 142px; padding: 23px; }
.core-metrics .metric strong { font-size: clamp(23px, 2.3vw, 34px); overflow-wrap: anywhere; letter-spacing: -.5px; }
.metric p { position: relative; z-index: 1; margin: 12px 0 0; color: #8b938a; font-size: 11px; line-height: 1.55; }
.core-metrics .metric:nth-child(2) { background: #4e6b59; border-color: #4e6b59; }
.core-metrics .metric:nth-child(2) span,
.core-metrics .metric:nth-child(2) strong { color: #fff; }
.core-metrics .metric:nth-child(2) p { color: #c7d7cb; }
.core-metrics .metric:nth-child(2)::after { background: rgba(255,255,255,.12); }
.secondary-head { margin-top: 25px; margin-bottom: 13px; }
.support-metrics .metric { min-height: 109px; padding: 17px 19px; box-shadow: none; }
.support-metrics .metric strong { margin-top: 9px; font-size: 23px; overflow-wrap: anywhere; }
.support-metrics .metric p { margin-top: 8px; }
.support-metrics .metric::after { display: none; }
.dashboard-footnote { margin: 16px 0 0; color: #8c948b; font-size: 11px; line-height: 1.7; }

@media (max-width: 1200px) {
  .header-actions { gap: 12px; }
  #adminIdentity.admin-identity { padding-right: 12px; }
  .admin-role { display: none; }
  .header-buttons button { padding: 0 12px; }
  .metrics.core-metrics, .metrics.support-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell main > header { flex-wrap: wrap; align-items: center; gap: 18px; }
  .header-actions { flex: 1 1 auto; justify-content: flex-end; }
  #adminIdentity.admin-identity { display: flex; }
  .admin-role { display: inline-block; }
  .core-metrics .metric { min-height: 128px; padding: 20px; }
}
@media (max-width: 700px) {
  .header-actions { flex: 1 1 100%; justify-content: space-between; display: flex; flex-wrap: nowrap; }
  #adminIdentity.admin-identity { border: 0; padding: 0; }
  .admin-identity-copy > b { max-width: 145px; }
  .header-buttons button { min-height: 37px; font-size: 12px; }
}
@media (max-width: 560px) {
  .header-actions { display: flex; gap: 8px; }
  .admin-avatar { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; font-size: 14px; }
  #adminIdentity.admin-identity { gap: 8px; }
  .admin-identity-copy > b { max-width: 112px; font-size: 12px; }
  .admin-role { display: none; }
  .header-buttons { gap: 6px; }
  .header-buttons button { min-width: 0; min-height: 35px; padding: 0 9px; font-size: 11px; gap: 5px; }
  .header-buttons svg { width: 13px; height: 13px; flex-basis: 13px; }
  .dashboard-section-head { align-items: flex-start; }
  #dashboardUpdated { max-width: 118px; line-height: 1.5; text-align: right; }
  .core-metrics .metric { min-height: 123px; padding: 16px; }
  .core-metrics .metric strong { font-size: 24px; }
  .support-metrics .metric { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .shell,
  #sidebar,
  #sidebar nav button,
  .page.active { transition: none; animation: none; }
}
