:root {
  --hx-brand: #009eff;
  --hx-primary: #0077c8;
  --hx-primary-strong: #005f9f;
  --hx-ink: #0f172a;
  --hx-muted: #64748b;
  --hx-line: #e2e8f0;
  --hx-canvas: #f4f7fb;
  --hx-card: #ffffff;
  --hx-success: #0f9f6e;
  --hx-warning: #d97706;
  --hx-danger: #dc2626;
  --hx-info: #2563eb;
  --hx-radius: 14px;
  --hx-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

body.hx-admin-v2 {
  min-width: 1120px;
  padding: 0;
  background: var(--hx-canvas);
  color: var(--hx-ink);
}

.hx-admin-v2 #mainContent.container {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
}

.hx-admin-v2 #mainContent.hx-sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.hx-admin-v2 .hx-sidebar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 16px 10px 14px;
  border-right: 1px solid #dbe5f0;
  background: #fff;
  box-shadow: 8px 0 24px rgba(15, 23, 42, 0.025);
  overflow: hidden;
}

.staging-environment-banner + #mainContent .hx-sidebar {
  top: 39px;
  height: calc(100vh - 39px);
}

.hx-sidebar-brand {
  display: flex;
  align-items: center;
  height: 58px;
  padding: 5px 8px 12px;
  overflow: hidden;
}

.hx-sidebar-logo {
  width: 174px;
  max-width: none;
  height: 38px;
  object-fit: contain;
  object-position: left center;
  transition: width 0.2s ease;
}

.hx-sidebar-collapsed .hx-sidebar-brand {
  width: 48px;
  padding-left: 3px;
}

.hx-sidebar-collapsed .hx-sidebar-logo {
  width: 174px;
  height: 38px;
  object-position: left center;
}

.hx-sidebar .navbar {
  display: block;
  margin: 14px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.hx-sidebar .navbar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.hx-sidebar .navbar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.hx-sidebar .navbar-item:hover {
  border-color: #d8eafb;
  background: #f3f9fe;
  color: var(--hx-primary);
}

.hx-sidebar .navbar-item.active {
  border-color: #c9e8fb;
  background: linear-gradient(90deg, #eaf7ff 0%, #f4faff 100%);
  color: var(--hx-primary);
  box-shadow: inset 3px 0 0 var(--hx-brand);
}

.hx-sidebar .navbar-item.hx-monitor-tool-nav.is-downloading {
  pointer-events: none;
  opacity: 0.62;
}

.hx-sidebar-footer .hx-footer-nav {
  margin-top: 0;
  margin-bottom: 12px;
}

.hx-sidebar .navbar-item.hx-internal-nav {
  display: none !important;
}

.hx-nav-icon,
.hx-btn-icon,
.hx-stat-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hx-btn-icon {
  width: 16px;
  height: 16px;
}

.hx-stat-icon {
  width: 20px;
  height: 20px;
}

body.hx-admin-v2:has(#stagingEnvironmentBanner) .hx-sidebar {
  top: 39px;
  height: calc(100vh - 39px);
}

body.hx-admin-v2:has(#stagingEnvironmentBanner) .user-header {
  top: 39px;
}

.hx-sidebar-collapsed .navbar-item {
  justify-content: center;
  width: 50px;
  padding: 0;
}

.hx-sidebar-collapsed .hx-nav-label,
.hx-sidebar-collapsed .hx-sidebar-caption,
.hx-sidebar-collapsed .hx-role-meta,
.hx-sidebar-collapsed .hx-collapse-label {
  display: none;
}

.hx-sidebar-caption {
  margin: 20px 13px 7px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hx-sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hx-line);
}

.hx-role-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
}

.hx-role-avatar {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #e4f5ff;
  color: var(--hx-primary);
  font-weight: 800;
}

.hx-role-name {
  display: block;
  max-width: 132px;
  overflow: hidden;
  color: var(--hx-ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hx-role-label {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
}

.hx-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.hx-sidebar-toggle:hover {
  background: #eef6fc;
  color: var(--hx-primary);
}

.hx-content-shell {
  min-width: 0;
}

.hx-admin-v2 #mainContent > h1,
.hx-admin-v2 .hx-content-shell > h1,
.hx-admin-v2 .status-bar {
  display: none !important;
}

.hx-admin-v2 .user-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  margin: 0;
  padding: 12px 28px;
  border: 0;
  border-bottom: 1px solid #e4eaf1;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.staging-environment-banner + #mainContent .user-header {
  top: 39px;
}

.hx-admin-v2 .user-header-left {
  gap: 22px;
}

.hx-page-heading {
  min-width: 235px;
}

.hx-page-heading h2 {
  margin: 0;
  color: var(--hx-ink);
  font-size: 22px;
  line-height: 30px;
}

.hx-page-heading p {
  margin: 3px 0 0;
  color: #7c8ba1;
  font-size: 12px;
  line-height: 18px;
}

.hx-admin-v2 .user-meta {
  display: none;
}

.hx-admin-v2 .city-switcher {
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.hx-admin-v2 .city-switcher select {
  min-width: 132px;
  height: 40px;
  border: 1px solid #cfd9e5;
  border-radius: 9px;
  background: #fff;
  color: var(--hx-ink);
  font-size: 14px;
  font-weight: 650;
}

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

.hx-admin-v2 .hx-page-region {
  padding: 24px 28px 40px;
}

.hx-admin-v2 #errorBox {
  margin: 14px 28px 0;
}

.hx-admin-v2 .tab-content {
  margin: 0;
}

.hx-admin-v2 .toolbar {
  min-height: 64px;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hx-admin-v2 .toolbar.hx-toolbar-actions-only {
  min-height: auto;
  justify-content: flex-end;
}

.hx-admin-v2 .toolbar.hx-toolbar-actions-only .batch-toolbar {
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hx-admin-v2 .toolbar h3 {
  color: var(--hx-ink);
  font-size: 20px;
  line-height: 28px;
}

.hx-toolbar-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hx-toolbar-title p {
  margin: 0;
  color: var(--hx-muted);
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
}

.hx-admin-v2 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 9px;
  font-weight: 650;
  line-height: 20px;
  box-shadow: none;
}

.hx-admin-v2 .btn-primary {
  border-color: var(--hx-primary);
  background: var(--hx-primary);
}

.hx-admin-v2 .btn-primary:hover {
  border-color: var(--hx-primary-strong);
  background: var(--hx-primary-strong);
}

.hx-admin-v2 .row-action-btn,
.hx-admin-v2 .hx-action-secondary {
  border: 1px solid #d6e0ea;
  background: #fff;
  color: #334155;
}

.hx-admin-v2 .hx-action-primary {
  border-color: var(--hx-primary) !important;
  background: var(--hx-primary) !important;
  color: #fff !important;
  box-shadow: 0 7px 16px rgba(0, 119, 200, 0.18) !important;
}

.hx-admin-v2 .batch-toolbar {
  gap: 8px;
}

.hx-admin-v2 .list-filter-bar {
  display: grid;
  grid-template-columns: 150px minmax(180px, 260px) 150px minmax(280px, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  background: #fff;
  box-shadow: 0 2px 9px rgba(15, 23, 42, 0.035);
}

.hx-admin-v2 #tab-property .list-filter-bar {
  grid-template-columns: 160px minmax(300px, 1fr) auto;
}

.hx-admin-v2 #tab-log .log-filter-bar {
  grid-template-columns: 140px 140px 130px 140px 150px 68px 68px !important;
  align-items: end;
  gap: 8px;
  min-width: 900px;
  overflow-x: auto;
}

.hx-log-filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.hx-log-filter-field > span:first-child {
  color: #536477;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.hx-admin-v2 .log-filter-bar .hx-log-filter-field input,
.hx-admin-v2 .log-filter-bar .hx-log-filter-field select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0 !important;
  height: 40px;
  flex: none !important;
}

.hx-admin-v2 .log-filter-bar .hx-search-combobox {
  width: 100%;
  min-width: 0;
}

.hx-admin-v2 .log-filter-bar > .btn {
  width: 68px;
  min-width: 68px;
  min-height: 40px;
}

.hx-log-filter-note {
  min-height: 20px;
  margin: -6px 2px 12px !important;
  color: #68798c;
  font-size: 12px;
  line-height: 20px;
}

.hx-admin-v2 .list-filter-bar select,
.hx-admin-v2 .list-filter-bar input {
  min-width: 0;
  height: 40px;
  border-color: #cfd9e5;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.hx-admin-v2 .list-filter-note {
  grid-column: 1 / -1;
  color: #77869a;
  font-size: 12px;
}

.hx-admin-v2 .summary-grid {
  gap: 12px;
  margin-bottom: 14px;
}

.hx-admin-v2 .summary-card {
  min-height: 94px;
  padding: 18px;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.045);
}

.hx-admin-v2 .summary-card .label {
  color: #718096;
  font-size: 13px;
}

.hx-admin-v2 .summary-card .value {
  margin-top: 7px;
  color: var(--hx-ink);
  font-size: 26px;
  line-height: 1;
}

.hx-admin-v2 .table-container {
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  background: #fff;
  box-shadow: var(--hx-shadow);
  overflow: auto;
}

.hx-admin-v2 table {
  border-collapse: separate;
  border-spacing: 0;
}

.hx-admin-v2 table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid #dbe4ee;
  background: #f7f9fc;
  color: #526176;
  font-size: 12px;
  font-weight: 700;
}

.hx-admin-v2 table tbody td {
  border-bottom-color: #edf1f5;
}

.hx-admin-v2 table tbody tr:hover td {
  background-color: #f8fbfe;
}

/* Property resources contain many numeric columns. Keep those compact and give
   the address a dedicated readable width so it never runs into property type. */
.hx-admin-v2 #propertyList {
  min-width: 0;
}

.hx-admin-v2 .hx-property-table {
  width: 100%;
  min-width: 1940px;
  table-layout: fixed;
}

.hx-admin-v2 .hx-property-table col.hx-property-col-code { width: 72px; }
.hx-admin-v2 .hx-property-table col.hx-property-col-name { width: 156px; }
.hx-admin-v2 .hx-property-table col.hx-property-col-city { width: 68px; }
.hx-admin-v2 .hx-property-table col.hx-property-col-district { width: 82px; }
.hx-admin-v2 .hx-property-table col.hx-property-col-owner { width: 118px; }
.hx-admin-v2 .hx-property-table col.hx-property-col-address { width: 300px; }
.hx-admin-v2 .hx-property-table col.hx-property-col-type { width: 82px; }
.hx-admin-v2 .hx-property-table col.hx-property-col-date { width: 110px; }
.hx-admin-v2 .hx-property-table col.hx-property-col-price { width: 88px; }
.hx-admin-v2 .hx-property-table col.hx-property-col-rate { width: 76px; }
.hx-admin-v2 .hx-property-table col.hx-property-col-count { width: 72px; }
.hx-admin-v2 .hx-property-table col.hx-property-col-floor { width: 76px; }
.hx-admin-v2 .hx-property-table col.hx-property-col-actions { width: 126px; }

.hx-admin-v2 .hx-property-table th,
.hx-admin-v2 .hx-property-table td {
  box-sizing: border-box;
}

.hx-admin-v2 .hx-property-table th:nth-child(6),
.hx-admin-v2 .hx-property-table td:nth-child(6) {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.hx-admin-v2 .hx-property-table th:nth-child(7),
.hx-admin-v2 .hx-property-table td:nth-child(7),
.hx-admin-v2 .hx-property-table th:nth-child(8),
.hx-admin-v2 .hx-property-table td:nth-child(8) {
  white-space: nowrap;
}

.hx-admin-v2 .group-row td {
  position: relative;
}

.hx-admin-v2 .city-group-row td,
.hx-admin-v2 .property-city-group td {
  background: #edf7fd;
  color: #075985;
}

.hx-admin-v2 .property-group-row td {
  background: #fafcfe;
}

.hx-more-menu {
  position: relative;
}

.hx-more-menu > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d6e0ea;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.hx-more-menu > summary::-webkit-details-marker {
  display: none;
}

.hx-more-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  width: 205px;
  padding: 8px;
  border: 1px solid #dce5ee;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.hx-more-menu-panel .btn {
  justify-content: flex-start;
  width: 100%;
  border: 0 !important;
  background: #fff !important;
  color: #334155 !important;
  text-align: left;
}

.hx-more-menu-panel .btn:hover {
  background: #f1f7fc !important;
  color: var(--hx-primary) !important;
}

.hx-selection-bar {
  position: sticky;
  top: 84px;
  z-index: 25;
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #addcf7;
  border-radius: 11px;
  background: #eff9ff;
  box-shadow: 0 8px 20px rgba(0, 119, 200, 0.1);
}

.hx-selection-bar.is-visible {
  display: flex;
}

.hx-selection-label {
  margin-right: auto;
  color: #075985;
  font-size: 13px;
  font-weight: 700;
}

.hx-workbench {
  display: grid;
  gap: 18px;
}

.hx-workbench-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid #d8eaf7;
  border-radius: 16px;
  background:
    radial-gradient(circle at 85% 0%, rgba(0, 158, 255, 0.13), transparent 35%),
    linear-gradient(135deg, #fff 0%, #f5fbff 100%);
  box-shadow: var(--hx-shadow);
}

.hx-workbench-eyebrow {
  margin-bottom: 8px;
  color: var(--hx-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hx-workbench-hero h2 {
  margin: 0;
  color: var(--hx-ink);
  font-size: 26px;
  line-height: 1.25;
}

.hx-workbench-hero p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
}

.hx-workbench-hero-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.hx-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hx-kpi-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  min-height: 136px;
  padding: 19px;
  border: 1px solid #e0e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.045);
}

.hx-kpi-icon-wrap {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #eaf7ff;
  color: var(--hx-primary);
}

.hx-kpi-card.is-success .hx-kpi-icon-wrap { background: #eafaf4; color: var(--hx-success); }
.hx-kpi-card.is-warning .hx-kpi-icon-wrap { background: #fff7e8; color: var(--hx-warning); }
.hx-kpi-card.is-danger .hx-kpi-icon-wrap { background: #fff0f0; color: var(--hx-danger); }
.hx-kpi-card.is-live .hx-kpi-icon-wrap { background: #eaf5ff; color: #087bc1; }
.hx-kpi-card.is-locked .hx-kpi-icon-wrap { background: #fff7e8; color: #b86a00; }

.hx-kpi-label {
  color: #718096;
  font-size: 13px;
}

.hx-kpi-value {
  margin-top: 7px;
  color: var(--hx-ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.hx-kpi-note {
  grid-column: 1 / -1;
  padding-right: 0;
  color: #8492a6;
  font-size: 11px;
}

.hx-kpi-info {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #d7e2ec;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font: 700 12px/1 Georgia, serif;
  cursor: help;
}

.hx-kpi-detail-button {
  position: static;
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  margin-top: auto;
  padding: 8px 0 0;
  border: 0;
  border-top: 1px solid #edf2f6;
  background: transparent;
  color: var(--hx-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.hx-kpi-detail-button .hx-btn-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.hx-workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 16px;
}

.hx-panel {
  border: 1px solid #e0e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.045);
  overflow: hidden;
}

.hx-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 18px;
  border-bottom: 1px solid #edf1f5;
}

.hx-panel-header h3 {
  margin: 0;
  color: var(--hx-ink);
  font-size: 15px;
}

.hx-panel-header span {
  color: #8a98aa;
  font-size: 12px;
}

.hx-city-table {
  width: 100%;
}

.hx-city-table th,
.hx-city-table td {
  height: 48px;
  padding: 0 18px;
  text-align: left;
}

.hx-city-table th {
  color: #7a8798;
  font-size: 12px;
  font-weight: 650;
}

.hx-city-table td {
  color: #334155;
  font-size: 13px;
}

.hx-city-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.hx-city-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--hx-brand);
  box-shadow: 0 0 0 4px #e9f7ff;
}

.hx-quick-list {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.hx-quick-action {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  text-align: left;
  cursor: pointer;
}

.hx-quick-action:hover {
  border-color: #cfe7f7;
  background: #f4faff;
}

.hx-quick-action-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: #eef6fc;
  color: var(--hx-primary);
}

.hx-quick-action strong,
.hx-quick-action small {
  display: block;
}

.hx-quick-action strong {
  font-size: 13px;
}

.hx-quick-action small {
  margin-top: 3px;
  color: #8794a6;
  font-size: 11px;
}

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

.hx-attention-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e3e9f0;
  border-radius: 11px;
  background: #fbfcfe;
}

.hx-attention-item .hx-attention-value {
  color: var(--hx-ink);
  font-size: 20px;
  font-weight: 800;
}

.hx-attention-item .hx-attention-label {
  margin: 0;
  color: #718096;
  font-size: 12px;
}

.hx-attention-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #d7e4ee;
  border-radius: 8px;
  background: #fff;
  color: #0b72b5;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.hx-attention-action .hx-btn-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.hx-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.hx-status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  content: '';
}

.hx-status-pill.is-free { background: #eafaf4; color: #087f5b; }
.hx-status-pill.is-live { background: #eaf3ff; color: #1767c0; }
.hx-status-pill.is-locked { background: #fff7e8; color: #b15d00; }
.hx-status-pill.is-alert { background: #fff0f0; color: #c62828; }

.hx-admin-v2 .auth-shell {
  min-height: 100vh;
  padding: 32px;
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 158, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #08233e 0%, #0b3658 54%, #006aaa 100%);
}

.hx-admin-v2 .auth-card {
  position: relative;
  width: 420px;
  padding: 34px 38px 34px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(2, 19, 36, 0.28);
}

.hx-admin-v2 .auth-brand-logo {
  display: block;
  width: 196px;
  height: 46px;
  margin: 0 0 8px;
  object-fit: contain;
  object-position: left center;
}

.system-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 25% 18%, rgba(0, 158, 255, 0.12), transparent 32%),
    linear-gradient(145deg, #f7fbff 0%, #eef5fb 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.system-loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.system-loading-card {
  width: min(420px, calc(100vw - 48px));
  padding: 38px 42px 34px;
  border: 1px solid rgba(186, 209, 228, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(20, 61, 94, 0.13);
  text-align: center;
  backdrop-filter: blur(16px);
}

.system-loading-logo {
  display: block;
  width: 176px;
  height: 42px;
  margin: 0 auto 28px;
  object-fit: contain;
  object-position: center;
  justify-self: center;
}

.system-loading-spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 20px;
  border: 3px solid #dceef9;
  border-top-color: var(--hx-primary);
  border-radius: 50%;
  animation: hx-system-loading-spin 0.85s linear infinite;
}

.system-loading-card h2 {
  margin: 0;
  color: var(--hx-ink);
  font-size: 20px;
  line-height: 30px;
}

.system-loading-card p {
  margin: 8px 0 0;
  color: var(--hx-muted);
  font-size: 14px;
  line-height: 22px;
}

.system-loading-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.system-loading-actions[hidden],
.system-loading-spinner[hidden] {
  display: none;
}

.system-loading-overlay.is-error .system-loading-card {
  border-color: #f4c7c7;
}

@keyframes hx-system-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .system-loading-overlay { transition: none; }
  .system-loading-spinner { animation-duration: 1.6s; }
}

@media (max-width: 1366px) {
  .hx-admin-v2 #mainContent.container {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .hx-admin-v2 #mainContent.hx-sidebar-collapsed {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .hx-admin-v2 .hx-page-region {
    padding-right: 22px;
    padding-left: 22px;
  }

  .hx-admin-v2 .user-header {
    padding-right: 22px;
    padding-left: 22px;
  }

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

  .hx-admin-v2 .list-filter-bar {
    grid-template-columns: 140px minmax(180px, 220px) 140px minmax(250px, 1fr) auto;
  }

  .hx-admin-v2 #tab-log .log-filter-bar {
    grid-template-columns: 140px 140px 130px 140px 150px 68px 68px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx-admin-v2 *,
  .hx-admin-v2 *::before,
  .hx-admin-v2 *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
