/* Uptime Control product theme. Loaded after the legacy inline styles. */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/admin/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/admin/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  color-scheme: dark;
  --ui-bg: #101214;
  --ui-sidebar: #181c20;
  --ui-topbar: #1d2125;
  --ui-panel: #1d2125;
  --ui-panel-soft: #22272b;
  --ui-row: #171b1f;
  --ui-row-hover: #282e33;
  --ui-field: #2f373e;
  --ui-field-hover: #5b6672;
  --ui-line: #3b444c;
  --ui-line-soft: #303840;
  --ui-text: #dcdfe4;
  --ui-text-soft: #b6c2cf;
  --ui-muted: #9fadbc;
  --ui-faint: #7e8995;
  --ui-blue: #579dff;
  --ui-blue-hover: #7eb3ff;
  --ui-blue-soft: #1c2b41;
  --ui-green: #4bd17b;
  --ui-green-soft: #143321;
  --ui-amber: #f5b342;
  --ui-amber-soft: #3a2b12;
  --ui-red: #f15b50;
  --ui-red-soft: #3c1d1b;
  --ui-radius: 8px;
  --ui-radius-sm: 6px;
  --ui-sidebar-width: 248px;
  --ui-ease: cubic-bezier(.2, 0, 0, 1);
  --ui-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 22px rgba(0, 0, 0, .24);
  --ui-shadow-modal: 0 24px 80px rgba(0, 0, 0, .46), 0 4px 16px rgba(0, 0, 0, .24);
  --ui-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239fadbc' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  --bg: var(--ui-bg);
  --surface: var(--ui-panel);
  --surface-soft: var(--ui-panel-soft);
  --line: var(--ui-line);
  --text: var(--ui-text);
  --muted: var(--ui-muted);
  --accent: var(--ui-blue);
  --accent-dark: var(--ui-blue-hover);
  --good: var(--ui-green);
  --good-bg: var(--ui-green-soft);
  --warn: var(--ui-amber);
  --warn-bg: var(--ui-amber-soft);
  --bad: var(--ui-red);
  --bad-bg: var(--ui-red-soft);
  --premium-blue: var(--ui-blue);
  --premium-blue-dark: var(--ui-blue-hover);
  --premium-green: var(--ui-green);
  --premium-amber: var(--ui-amber);
  --premium-red: var(--ui-red);
  --premium-bg: var(--ui-bg);
  --premium-card: var(--ui-panel);
  --premium-sidebar: var(--ui-sidebar);
  --premium-sidebar-deep: #0f1317;
  --premium-soft: var(--ui-blue-soft);
}

html {
  background: var(--ui-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.admin-dashboard,
body.admin-docs,
body.admin-login {
  margin: 0;
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: "Onest", "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  font-feature-settings: "cv11", "ss01", "tnum";
}

body.admin-dashboard::before,
body.admin-docs::before,
body.admin-login::before {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  appearance: none;
  -webkit-appearance: none;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ui-blue);
  outline-offset: 2px;
}

/* Shared product shell */
.admin-dashboard .sidebar,
.admin-docs .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--ui-sidebar-width);
  min-height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--ui-line);
  background: var(--ui-sidebar);
  box-shadow: none;
  color: var(--ui-text);
}

.admin-dashboard .shell,
.admin-docs .shell {
  min-height: 100vh;
  padding-left: var(--ui-sidebar-width);
  background: var(--ui-bg);
}

.admin-dashboard .brand,
.admin-docs .brand {
  min-height: 68px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ui-line-soft);
}

.admin-dashboard .brand-lockup,
.admin-docs .brand-lockup,
.admin-login .brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.admin-dashboard .brand-logo,
.admin-docs .brand-logo,
.admin-login .brand-logo {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(91, 156, 255, .42);
  border-radius: var(--ui-radius);
  background: var(--ui-blue);
  box-shadow: none;
  color: #08121e;
  font-size: 14px;
}

.admin-dashboard .brand-copy,
.admin-docs .brand-copy,
.admin-login .brand-copy {
  min-width: 0;
}

.admin-dashboard .brand-copy strong,
.admin-docs .brand-copy strong,
.admin-login .brand-copy strong {
  display: block;
  overflow: hidden;
  color: #f7f9fc;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .brand-copy span,
.admin-docs .brand-copy span,
.admin-login .brand-copy span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--ui-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

/* Dashboard navigation */
.admin-dashboard .nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 10px;
  scrollbar-width: thin;
}

.admin-dashboard .nav-label,
.admin-docs .nav-label {
  margin: 0 8px 9px;
  color: var(--ui-faint);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-dashboard .sidebar-user {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 2px 12px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-row);
  padding: 9px;
  box-shadow: none;
}

.admin-dashboard .sidebar-user .avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #3d4854;
  border-radius: 50%;
  background: #202832;
  color: var(--ui-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.admin-dashboard .sidebar-user strong {
  display: block;
  overflow: hidden;
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .sidebar-user span:last-child {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--ui-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .tab {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  margin: 1px 0;
  border: 0;
  border-radius: var(--ui-radius-sm);
  background: transparent;
  color: #aeb8c5;
  padding: 8px 10px;
  font-weight: 500;
  text-align: left;
  transition: background .16s var(--ui-ease), color .16s var(--ui-ease), transform .16s var(--ui-ease);
}

.admin-dashboard .tab:active { transform: scale(.985); }

.admin-dashboard .tab::before {
  content: "";
  position: absolute;
  inset: 9px auto 9px 0;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: transparent;
}

.admin-dashboard .tab mark {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 0;
  border-radius: var(--ui-radius-sm);
  background: transparent;
  color: #8693a2;
  font: inherit;
}

.admin-dashboard .tab mark i {
  font-size: 13px;
}

.admin-dashboard .tab:hover {
  background: #1a2128;
  color: #eef3f8;
}

.admin-dashboard .tab.active {
  background: var(--ui-blue-soft);
  color: #8ab8ff;
  box-shadow: none;
  font-weight: 650;
}

.admin-dashboard .tab.active::before {
  background: var(--ui-blue);
}

.admin-dashboard .tab.active mark {
  background: transparent;
  color: var(--ui-blue);
}

.admin-dashboard .nav-count {
  display: inline-flex;
  min-width: 23px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  background: #20272e;
  color: #aeb8c5;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 650;
}

.admin-dashboard .tab.active .nav-count {
  border-color: rgba(91, 156, 255, .34);
  background: rgba(91, 156, 255, .16);
  color: #a9caff;
}

.admin-dashboard .sidebar-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--ui-line-soft);
  background: #101519;
  padding: 10px;
}

.admin-dashboard .side-link,
.admin-dashboard .logout {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: var(--ui-radius-sm);
  background: transparent;
  color: #aeb8c5;
  padding: 8px 9px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.admin-dashboard .side-link:hover,
.admin-dashboard .logout:hover {
  background: #1a2128;
  color: #fff;
}

.admin-dashboard .side-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: var(--ui-radius-sm);
  background: transparent;
  color: #8592a1;
}

.admin-dashboard .logout {
  margin-top: 2px;
  color: #d9a0a7;
}

.admin-dashboard .logout .side-icon {
  background: transparent;
  color: var(--ui-red);
}

/* Top bar */
.admin-dashboard .topbar,
.admin-docs .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--ui-line);
  background: rgba(29, 33, 37, .94);
  box-shadow: none;
  backdrop-filter: blur(12px);
  padding: 7px 22px;
}

.admin-dashboard .topbar-title {
  min-width: 0;
}

.admin-dashboard .breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ui-faint);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
}

.admin-dashboard .breadcrumb-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #87b7ff;
  padding: 0;
  font: inherit;
}

.admin-dashboard .breadcrumb-current,
.admin-dashboard .breadcrumb-separator {
  color: var(--ui-faint);
}

.admin-dashboard .title {
  display: none;
}

.admin-dashboard .global-search {
  position: relative;
  display: flex;
  width: min(360px, 30vw);
  min-height: 34px;
  align-items: center;
  margin-left: auto;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-field);
  box-shadow: none;
  color: var(--ui-muted);
  padding: 0 12px 0 37px;
}

.admin-dashboard .global-search::before {
  content: "\f002";
  position: absolute;
  left: 13px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #74818f;
  font-family: "Font Awesome 6 Free";
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transform: none;
}

.admin-dashboard .global-search input {
  width: 100%;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--ui-text);
  padding: 0;
  outline: 0;
  box-shadow: none;
}

.admin-dashboard .global-search:focus-within {
  border-color: var(--ui-blue);
  box-shadow: 0 0 0 3px var(--ui-blue-soft);
}

.admin-dashboard .global-search input::selection {
  background: #3f78be;
  color: #ffffff;
}

.admin-dashboard .global-search input::-webkit-search-cancel-button {
  opacity: .72;
  cursor: pointer;
  filter: invert(1);
}

.admin-dashboard .top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
}

.admin-dashboard .topbar-logout-form {
  display: flex;
  margin: 0;
}

.admin-dashboard .topbar-logout:hover,
.admin-dashboard .topbar-logout:focus-visible {
  border-color: rgba(255, 107, 122, .42);
  background: var(--ui-red-soft);
  color: #ff8e99;
}

.admin-dashboard .quick-status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(59, 212, 133, .25);
  border-radius: 999px;
  background: var(--ui-green-soft);
  color: var(--ui-green);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 650;
}

.admin-dashboard .quick-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.admin-dashboard .quick-status.warn {
  border-color: rgba(255, 107, 122, .28);
  background: var(--ui-red-soft);
  color: var(--ui-red);
}

.admin-dashboard .state {
  display: none;
}

.admin-dashboard .menu,
.admin-dashboard .icon-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel-soft);
  box-shadow: none;
  color: #aeb8c5;
  padding: 0;
  transition: background .16s var(--ui-ease), border-color .16s var(--ui-ease), color .16s var(--ui-ease), transform .16s var(--ui-ease);
}

.admin-dashboard .menu:active,
.admin-dashboard .icon-button:active { transform: scale(.96); }

.admin-dashboard .menu {
  display: none;
}

.admin-dashboard .menu:hover,
.admin-dashboard .icon-button:hover {
  border-color: #46515d;
  background: #1b232a;
  color: #fff;
}

.admin-dashboard .icon-button.is-refreshing i {
  animation: ui-spin .72s linear infinite;
}

@keyframes ui-spin {
  to { transform: rotate(360deg); }
}

/* Main dashboard canvas */
.admin-dashboard main {
  width: 100%;
  max-width: 1620px;
  margin: 0 auto;
  padding: 28px 30px 52px;
}

.admin-dashboard .view {
  display: none;
}

.admin-dashboard .view.active {
  display: block;
}

.admin-dashboard .view-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 24px;
}

.admin-dashboard .view-heading > div:first-child {
  min-width: 0;
}

.admin-dashboard .view-kicker {
  display: block;
  margin-bottom: 5px;
  color: #7e8b99;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.admin-dashboard .view-heading h1 {
  margin: 0;
  color: #f5f7fa;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
}

.admin-dashboard .view-heading p {
  max-width: 720px;
  margin: 7px 0 0;
  color: #9ba8b6;
  font-size: 13px;
  line-height: 1.45;
}

.admin-dashboard .view-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.admin-dashboard .page-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-row);
  color: var(--ui-text-soft);
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 600;
}

.admin-dashboard .page-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ui-green);
  box-shadow: 0 0 0 3px var(--ui-green-soft);
}

.admin-dashboard .page-status.warn {
  border-color: rgba(255, 107, 122, .28);
  color: #ff8995;
}

.admin-dashboard .page-status.warn i {
  background: var(--ui-red);
  box-shadow: 0 0 0 3px var(--ui-red-soft);
}

.admin-dashboard .command-center {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
}

.admin-dashboard .hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, .8fr) minmax(520px, 1.2fr);
  gap: 12px;
}

.admin-dashboard .welcome-card,
.admin-dashboard .operations-card,
.admin-dashboard .panel,
.admin-dashboard .metric,
.admin-dashboard .insight-card,
.admin-dashboard .settings-card,
.admin-dashboard .hub-guide {
  min-width: 0;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-panel);
  box-shadow: none;
}

.admin-dashboard .welcome-card {
  position: relative;
  min-height: 246px;
  overflow: hidden;
  padding: 22px 132px 20px 22px;
  background: var(--ui-panel);
}

.admin-dashboard .welcome-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--ui-blue);
}

.admin-dashboard .welcome-card .crumb {
  color: #83b3ff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-dashboard .welcome-card h2 {
  max-width: 360px;
  margin: 8px 0 0;
  color: #f3f6fa;
  font-size: 24px;
  font-weight: 680;
  line-height: 1.15;
}

.admin-dashboard .welcome-card p {
  max-width: 430px;
  margin: 10px 0 0;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-dashboard .welcome-art {
  display: none;
}

.admin-dashboard .health-ring {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: auto;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(var(--ui-green) 0deg, #2a323a 0deg);
  box-shadow: inset 0 0 0 10px var(--ui-panel);
}

.admin-dashboard .health-ring span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--ui-panel);
  color: var(--ui-text);
  font-size: 15px;
  font-weight: 700;
}

.admin-dashboard .welcome-bottom {
  position: absolute;
  inset: auto 18px 18px 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-dashboard .mini-stat {
  min-width: 0;
  border: 1px solid var(--ui-line-soft);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-row);
  padding: 10px;
}

.admin-dashboard .mini-stat strong {
  display: block;
  overflow: hidden;
  color: var(--ui-text);
  font-size: 18px;
  font-weight: 680;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .mini-stat span {
  display: block;
  margin-top: 4px;
  color: var(--ui-muted);
  font-size: 10px;
  line-height: 1.25;
}

.admin-dashboard .operations-card {
  min-height: 246px;
  padding: 16px 18px 13px;
}

.admin-dashboard .card-titleline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-dashboard .card-titleline h2 {
  margin: 0;
  color: var(--ui-text);
  font-size: 15px;
  font-weight: 650;
}

.admin-dashboard .card-titleline p {
  margin: 3px 0 0;
  color: var(--ui-muted);
  font-size: 11px;
}

.admin-dashboard .segment {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-row);
  padding: 3px;
}

.admin-dashboard .segment button {
  min-width: 40px;
  min-height: 27px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ui-muted);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

.admin-dashboard .segment button.active {
  background: var(--ui-blue);
  color: #07111d;
}

.admin-dashboard .ops-chart {
  height: 148px;
  margin-top: 4px;
  padding: 0;
}

.admin-dashboard .ops-chart svg {
  display: block;
  width: 100%;
  height: 148px;
  overflow: visible;
  background: transparent;
}

.admin-dashboard .chart-grid { stroke: #293139; }
.admin-dashboard .chart-axis { stroke: #38424c; }
.admin-dashboard .chart-label { fill: #788594; font-size: 10px; font-weight: 500; }
.admin-dashboard .chart-empty { fill: var(--ui-muted); font-size: 13px; }
.admin-dashboard .chart-bar-up { fill: var(--ui-blue); }
.admin-dashboard .chart-bar-down { fill: var(--ui-red); }
.admin-dashboard .chart-line { fill: none; stroke: var(--ui-amber); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.admin-dashboard .chart-dot { fill: var(--ui-panel); stroke: var(--ui-amber); stroke-width: 2; }

.admin-dashboard .chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
  color: var(--ui-muted);
  font-size: 10px;
}

.admin-dashboard .chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-dashboard .chart-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.admin-dashboard .legend-up { background: var(--ui-blue); }
.admin-dashboard .legend-down { background: var(--ui-red); }
.admin-dashboard .legend-line { height: 2px !important; border-radius: 99px !important; background: var(--ui-amber); }

/* Metric and insight components */
.admin-dashboard .metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-dashboard .metric {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  grid-template-areas: "label icon" "value icon" "meta icon";
  min-height: 112px;
  align-content: center;
  overflow: hidden;
  padding: 15px;
}

.admin-dashboard .dashboard-shortcut {
  width: 100%;
  border: 1px solid var(--ui-line);
  background: var(--ui-panel);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.admin-dashboard .dashboard-shortcut:hover {
  border-color: color-mix(in srgb, var(--ui-blue) 52%, var(--ui-line));
  background: color-mix(in srgb, var(--ui-blue) 5%, var(--ui-panel));
}

.admin-dashboard .dashboard-shortcut:focus-visible {
  outline: 0;
  border-color: var(--ui-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-blue) 20%, transparent);
}

.admin-dashboard .dashboard-shortcut-arrow {
  position: absolute;
  right: 13px;
  bottom: 11px;
  color: var(--ui-muted);
  font-size: 10px;
  transition: color 140ms ease, transform 140ms ease;
}

.admin-dashboard .dashboard-shortcut:hover .dashboard-shortcut-arrow {
  color: var(--ui-blue);
  transform: translateX(2px);
}

.admin-dashboard .metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--metric-color, var(--ui-blue));
}

.admin-dashboard .metric::after {
  display: none;
}

.admin-dashboard .metric-blue { --metric-color: var(--ui-blue); --metric-soft: var(--ui-blue-soft); }
.admin-dashboard .metric-green { --metric-color: var(--ui-green); --metric-soft: var(--ui-green-soft); }
.admin-dashboard .metric-red { --metric-color: var(--ui-red); --metric-soft: var(--ui-red-soft); }
.admin-dashboard .metric-amber { --metric-color: var(--ui-amber); --metric-soft: var(--ui-amber-soft); }

.admin-dashboard .metric-label {
  grid-area: label;
  color: var(--ui-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
}

.admin-dashboard .metric-value {
  grid-area: value;
  margin-top: 6px;
  color: var(--ui-text);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.admin-dashboard .metric-meta {
  grid-area: meta;
  min-height: 0;
  margin-top: 7px;
  color: var(--ui-muted);
  font-family: inherit;
  font-size: 10px;
  line-height: 1.3;
}

.admin-dashboard .metric-icon {
  grid-area: icon;
  display: grid;
  width: 38px;
  height: 38px;
  align-self: start;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--metric-color) 28%, transparent);
  border-radius: var(--ui-radius-sm);
  background: var(--metric-soft, var(--ui-blue-soft));
  color: var(--metric-color, var(--ui-blue));
  font-size: 14px;
}

.admin-dashboard .insight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.admin-dashboard .insight-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title value" "desc value";
  gap: 3px 10px;
  align-items: center;
  overflow: hidden;
  padding: 13px 14px;
}

.admin-dashboard .insight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--ui-line);
}

.admin-dashboard .insight-card.good::before { background: var(--ui-green); }
.admin-dashboard .insight-card.warn::before { background: var(--ui-amber); }
.admin-dashboard .insight-card.bad::before { background: var(--ui-red); }

.admin-dashboard .insight-card strong {
  grid-area: value;
  color: var(--ui-text);
  font-size: 19px;
  font-weight: 690;
  line-height: 1;
}

.admin-dashboard .insight-card span {
  grid-area: title;
  color: var(--ui-text-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.admin-dashboard .insight-card small {
  grid-area: desc;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ui-muted);
  padding: 0;
  font-size: 9px;
  line-height: 1.3;
}

.admin-dashboard .insight-card.dashboard-shortcut {
  padding-right: 28px;
}

.admin-dashboard #check-status-filter,
.admin-dashboard #notification-status-filter {
  width: min(180px, 100%);
  min-height: 34px;
  margin-left: auto;
}

/* Panels, toolbars and controls */
.admin-dashboard .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.admin-dashboard .wide { grid-column: span 8; }
.admin-dashboard .side { grid-column: span 4; }

.admin-dashboard .panel {
  margin-top: 0;
  overflow: hidden;
}

.admin-dashboard .view > .panel {
  margin-top: 0;
}

.admin-dashboard .panel-head {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--ui-line-soft);
  padding: 13px 15px;
}

.admin-dashboard .panel-head > div {
  min-width: 0;
}

.admin-dashboard .panel-head h2,
.admin-dashboard .settings-card h3,
.admin-dashboard .hub-guide h3 {
  margin: 0;
  color: var(--ui-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.admin-dashboard .panel-head p {
  margin: 3px 0 0;
  color: var(--ui-muted);
  font-size: 11px;
  line-height: 1.35;
}

.admin-dashboard .panel-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.admin-dashboard .button,
.admin-docs .button {
  display: inline-flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel-soft);
  box-shadow: none;
  color: #d5dde7;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s var(--ui-ease), border-color .16s var(--ui-ease), color .16s var(--ui-ease), transform .16s var(--ui-ease);
}

.admin-dashboard .button:active,
.admin-docs .button:active { transform: scale(.98); }

.admin-dashboard .button.icon-only {
  width: 36px;
  flex: 0 0 36px;
  padding: 0;
}

.admin-dashboard .button:hover,
.admin-docs .button:hover {
  border-color: #46515d;
  background: #20282f;
  color: #fff;
}

.admin-dashboard .button.primary,
.admin-docs .button.primary {
  border-color: var(--ui-blue);
  background: var(--ui-blue);
  color: #07111d;
}

.admin-dashboard .button.primary:hover,
.admin-docs .button.primary:hover {
  border-color: var(--ui-blue-hover);
  background: var(--ui-blue-hover);
  color: #07111d;
}

.admin-dashboard .button.danger {
  border-color: rgba(255, 107, 122, .3);
  background: rgba(255, 107, 122, .06);
  color: #ff8995;
}

.admin-dashboard .button.danger:hover {
  border-color: rgba(255, 107, 122, .52);
  background: var(--ui-red-soft);
  color: #ff9da6;
}

.admin-dashboard .button.small {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 11px;
}

.admin-dashboard .button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.admin-dashboard .inline-stat {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-row);
  color: var(--ui-muted);
  padding: 7px 10px;
  font-size: 11px;
}

.admin-dashboard input,
.admin-dashboard select,
.admin-dashboard textarea,
.admin-docs input,
.admin-docs select {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-field);
  color: var(--ui-text);
  padding: 7px 10px;
  outline: 0;
  transition: border-color .16s var(--ui-ease), box-shadow .16s var(--ui-ease), background .16s var(--ui-ease);
}

.admin-dashboard input::placeholder,
.admin-dashboard textarea::placeholder,
.admin-docs input::placeholder,
.admin-login input::placeholder {
  color: #697684;
}

.admin-dashboard select,
.admin-docs select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--ui-field);
  background-image: var(--ui-select-arrow);
  background-position: right 11px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding-right: 38px;
}

.admin-dashboard input:hover,
.admin-dashboard select:hover,
.admin-dashboard textarea:hover,
.admin-docs input:hover,
.admin-docs select:hover { border-color: var(--ui-field-hover); }

.admin-dashboard input:focus,
.admin-dashboard select:focus,
.admin-dashboard textarea:focus,
.admin-docs input:focus,
.admin-docs select:focus {
  border-color: var(--ui-blue);
  box-shadow: 0 0 0 3px rgba(91, 156, 255, .12);
}

.admin-dashboard .bulk-domain-label textarea {
  width: 100%;
  max-width: 100%;
  height: 180px;
  min-height: 180px;
  overflow-y: auto;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.admin-dashboard .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--ui-line-soft);
  background: var(--ui-panel-soft);
  padding: 11px 12px;
}

.admin-dashboard .filters > input,
.admin-dashboard .filter-search {
  width: min(300px, 100%);
}

.admin-dashboard .filter-search {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-dashboard .filter-search i {
  position: absolute;
  left: 12px;
  z-index: 1;
  color: #71808f;
  font-size: 11px;
  pointer-events: none;
}

.admin-dashboard .filter-search input {
  width: 100%;
  padding-left: 34px;
}

.admin-dashboard .filters select {
  width: 190px;
  max-width: 100%;
}

.admin-dashboard .domain-filter-tag {
  cursor: pointer;
  font-family: inherit;
}

.admin-dashboard .domain-filter-tag:hover,
.admin-dashboard .domain-filter-tag:focus-visible,
.admin-dashboard .domain-filter-tag[aria-pressed="true"] {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

/* Data tables */
.admin-dashboard .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  background: transparent;
  scrollbar-width: thin;
}

.admin-dashboard .events-workspace .dashboard-grid {
  margin-top: 0;
}

.admin-dashboard .events-webhooks {
  grid-column: 1 / -1;
}

.admin-dashboard table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
}

.admin-dashboard th {
  position: sticky;
  top: 0;
  z-index: 2;
  border: 0;
  border-bottom: 1px solid var(--ui-line-soft);
  background: var(--ui-panel-soft);
  color: #7f8b98;
  padding: 10px 13px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-dashboard .table-sort {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.admin-dashboard .table-sort:hover,
.admin-dashboard .table-sort.active {
  color: #cfe0f2;
}

.admin-dashboard .table-sort i {
  color: var(--ui-faint);
  font-size: 9px;
}

.admin-dashboard .table-sort.active i {
  color: var(--ui-blue);
}

.admin-dashboard td {
  max-width: 340px;
  border: 0;
  border-bottom: 1px solid var(--ui-line-soft);
  background: var(--ui-panel);
  color: #d9e1ea;
  height: 48px;
  padding: 9px 13px;
  font-size: 12px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.admin-dashboard .entity-cell {
  display: grid;
  min-width: 150px;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.admin-dashboard .entity-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #3a4651;
  border-radius: 50%;
  background: #202831;
  color: #9fc3ff;
  font-size: 9px;
  font-weight: 700;
}

.admin-dashboard .entity-avatar.workspace {
  border-radius: var(--ui-radius-sm);
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
}

.admin-dashboard .entity-copy {
  min-width: 0;
}

.admin-dashboard .entity-copy .name,
.admin-dashboard .entity-copy .secondary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard td:first-child,
.admin-dashboard td:last-child {
  border-radius: 0;
}

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

.admin-dashboard tbody tr:hover td {
  background: var(--ui-row-hover);
}

.admin-dashboard .name {
  color: var(--ui-text);
  font-weight: 620;
}

.admin-dashboard .secondary {
  display: block;
  max-width: 330px;
  overflow: hidden;
  margin-top: 2px;
  color: var(--ui-muted);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.admin-dashboard .system-readiness .table-wrap {
  overflow-x: hidden;
}

.admin-dashboard .system-readiness table {
  min-width: 0;
  table-layout: fixed;
}

.admin-dashboard .system-readiness th:last-child,
.admin-dashboard .system-readiness td:last-child {
  width: 88px;
  text-align: right;
}

.admin-dashboard .system-readiness td:first-child {
  min-width: 0;
}

.admin-dashboard .system-readiness .secondary {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.admin-dashboard .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.admin-dashboard .actions .button i {
  font-size: 11px;
}

.admin-dashboard #domains-view .domain-card-actions {
  width: 1%;
  white-space: nowrap;
}

.admin-dashboard #domains-view .domain-card-actions .actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 5px;
}

.admin-dashboard #domains-view .domain-card-actions .domain-action {
  width: 32px;
  height: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  padding: 0;
}

.admin-dashboard #domains-view .domain-card-actions .domain-action span {
  display: none;
}

@media (min-width: 721px) {
  .admin-dashboard #access-view th:last-child,
  .admin-dashboard #access-view td:last-child {
    width: 174px;
    min-width: 174px;
    max-width: 174px;
  }

  .admin-dashboard #access-view .role-select {
    display: block;
    width: 100%;
  }
}

.admin-dashboard .row-menu {
  position: relative;
  width: max-content;
  margin-left: auto;
}

.admin-dashboard .row-menu > summary {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: #141a1f;
  color: var(--ui-muted);
  cursor: pointer;
  list-style: none;
}

.admin-dashboard .row-menu > summary::-webkit-details-marker { display: none; }
.admin-dashboard .row-menu > summary:hover,
.admin-dashboard .row-menu[open] > summary { border-color: #46515d; background: #20282f; color: #fff; }

.admin-dashboard .row-menu-pop {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  z-index: 80;
  display: grid;
  width: 190px;
  max-height: calc(100dvh - 16px);
  overflow: auto;
  border: 1px solid #3b4651;
  border-radius: var(--ui-radius);
  background: #171d22;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .42);
  padding: 5px;
  visibility: hidden;
}

.admin-dashboard .row-menu-pop[data-positioned="true"] { visibility: visible; }

.admin-dashboard .row-menu-pop button {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ui-text-soft);
  padding: 7px 8px;
  font-size: 11px;
  text-align: left;
}

.admin-dashboard .row-menu-pop button i {
  width: 16px;
  color: var(--ui-muted);
  text-align: center;
}

.admin-dashboard .row-menu-pop button:hover { background: #222a32; color: #fff; }
.admin-dashboard .row-menu-pop button.danger { color: #ff929d; }
.admin-dashboard .row-menu-pop button.danger i { color: var(--ui-red); }

.admin-dashboard .badge,
.admin-docs .pill {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  background: var(--ui-panel-soft);
  color: #a9b4c1;
  padding: 0 9px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
  white-space: nowrap;
}

.admin-dashboard .badge.good,
.admin-docs .pill.good {
  border-color: rgba(59, 212, 133, .28);
  background: var(--ui-green-soft);
  color: var(--ui-green);
}

.admin-dashboard .badge.warn,
.admin-docs .pill.warn {
  border-color: rgba(240, 199, 94, .3);
  background: var(--ui-amber-soft);
  color: var(--ui-amber);
}

.admin-dashboard .badge.bad {
  border-color: rgba(255, 107, 122, .3);
  background: var(--ui-red-soft);
  color: var(--ui-red);
}

.admin-dashboard .status-inline {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
}

.admin-dashboard .check-diagnostics {
  min-width: 220px;
  margin-top: 7px;
  color: var(--ui-muted);
  font-size: 11px;
}
.admin-dashboard .check-diagnostics > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-blue);
  cursor: pointer;
  list-style: none;
}
.admin-dashboard .check-diagnostics > summary::-webkit-details-marker { display: none; }
.admin-dashboard .check-diagnostics > div {
  display: grid;
  gap: 6px;
  min-width: min(560px, 62vw);
  margin-top: 8px;
  border: 1px solid var(--ui-line-soft);
  border-radius: 8px;
  background: var(--ui-row);
  padding: 9px 10px;
}
.admin-dashboard .check-diagnostics span { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.admin-dashboard .check-diagnostics b { color: var(--ui-faint); font-size: 10px; text-transform: uppercase; }
.admin-dashboard .check-diagnostics code { overflow-wrap: anywhere; color: var(--ui-text); font-family: inherit; }

.admin-dashboard .status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--ui-muted);
}

.admin-dashboard .status-dot.up {
  background: var(--ui-green);
  box-shadow: 0 0 0 3px var(--ui-green-soft);
}

.admin-dashboard .status-dot.down {
  background: var(--ui-red);
  box-shadow: 0 0 0 3px var(--ui-red-soft);
}

.admin-dashboard .status-dot.warn {
  background: var(--ui-amber);
  box-shadow: 0 0 0 3px var(--ui-amber-soft);
}

.admin-dashboard .health {
  display: grid;
  min-width: 120px;
  gap: 5px;
  color: var(--ui-text-soft);
  font-size: 11px;
}

.admin-dashboard .healthbar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #29323a;
  box-shadow: none;
}

.admin-dashboard .healthbar span {
  display: block;
  height: 100%;
  background: var(--health-color, var(--ui-green));
  transition: width .2s ease, background-color .2s ease;
}

.admin-dashboard .health-copy strong {
  color: var(--health-color, var(--ui-muted));
  font-weight: 750;
}

.admin-dashboard .health.no-data .health-copy strong {
  color: var(--ui-muted);
}

.admin-dashboard .empty {
  padding: 44px 16px;
  color: var(--ui-muted);
  text-align: center;
}

.admin-dashboard .smart-empty {
  display: grid;
  max-width: 460px;
  gap: 8px;
  justify-items: center;
  margin: 0 auto;
  padding: 30px 14px;
  color: var(--ui-muted);
  text-align: center;
}

.admin-dashboard .smart-empty::before {
  content: "\f1c0";
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ui-line);
  border-radius: 50%;
  background: var(--ui-row);
  color: var(--ui-blue);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.admin-dashboard .smart-empty strong {
  color: var(--ui-text);
  font-size: 14px;
  font-weight: 650;
}

/* Domain workspace */
.admin-dashboard .domain-context,
.admin-dashboard .domain-bulkbar,
.admin-dashboard .domain-pagination {
  border-color: var(--ui-line-soft);
  background: #151a1f;
}

.admin-dashboard .domain-context {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--ui-line-soft);
  padding: 10px 12px;
}

.admin-dashboard .domain-context.show { display: flex; }
.admin-dashboard .domain-context strong { display: block; color: var(--ui-text); font-size: 12px; }
.admin-dashboard .domain-context span { display: block; margin-top: 2px; color: var(--ui-muted); font-size: 10px; }
.admin-dashboard .domain-context > div:first-child { min-width: 0; flex: 1 1 auto; }

.admin-dashboard .context-actions {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.admin-dashboard .domain-bulkbar {
  display: none;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--ui-line-soft);
  padding: 9px 12px;
}

.admin-dashboard .domain-bulkbar.show { display: grid; }
.admin-dashboard .domain-bulkbar strong { min-height: 30px; color: var(--ui-text-soft); font-size: 11px; line-height: 30px; white-space: nowrap; }
.admin-dashboard .domain-bulkbar input { width: 100px; }
.admin-dashboard .domain-bulkbar select { width: auto; min-width: 0; }

.admin-dashboard .domain-bulkbar-actions {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.admin-dashboard .bulk-action-group {
  display: flex;
  min-width: 0;
  gap: 7px;
}

.admin-dashboard .bulk-state-actions,
.admin-dashboard .bulk-interval-actions {
  flex: 0 0 auto;
}

.admin-dashboard .bulk-state-actions {
  justify-self: start;
}

.admin-dashboard .bulk-interval-actions {
  justify-self: end;
}

.admin-dashboard .bulk-move-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-self: end;
  width: min(100%, 300px);
  min-width: 0;
  max-width: none;
}

.admin-dashboard .bulk-move-actions select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-inline-size: 0;
  overflow: hidden;
  padding: 0 36px 0 10px;
  font-family: inherit;
  font-size: 12px;
  line-height: 28px;
  text-align: left;
  text-indent: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.admin-dashboard .bulk-delete-action {
  justify-self: end;
  flex: 0 0 auto;
}

.admin-dashboard .domain-bulkbar .button.small,
.admin-dashboard .domain-bulkbar input,
.admin-dashboard .domain-bulkbar select {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
}

.admin-dashboard .row-check {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--ui-blue);
}

.admin-dashboard .domain-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--ui-line-soft);
  padding: 10px 13px;
  color: var(--ui-muted);
  font-size: 10px;
}

.admin-dashboard .readiness-copy,
.admin-dashboard .readiness-copy .name,
.admin-dashboard .readiness-copy .secondary {
  display: block;
  min-width: 0;
}

.admin-dashboard .readiness-status .badge {
  min-width: 64px;
  justify-content: center;
}

.admin-dashboard .pagination-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-dashboard .pagination-actions select {
  width: auto;
  min-height: 30px;
}

/* Settings and diagnostics */
.admin-dashboard .settings-panel {
  overflow: visible;
  padding-bottom: 74px;
}

.admin-dashboard .settings-panel > .panel-head {
  position: sticky;
  top: 66px;
  z-index: 12;
  border-radius: var(--ui-radius) var(--ui-radius) 0 0;
  background: rgba(27, 32, 38, .96);
  backdrop-filter: blur(12px);
}

.admin-dashboard .settings-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--ui-line-soft);
  padding: 12px;
}

.admin-dashboard .hub-guide,
.admin-dashboard .settings-card {
  overflow: hidden;
}

.admin-dashboard .hub-guide h3,
.admin-dashboard .settings-card h3 {
  border-bottom: 1px solid var(--ui-line-soft);
  padding: 11px 13px;
}

.admin-dashboard .hub-steps,
.admin-dashboard .diagnostics {
  display: grid;
  gap: 0;
  border: 0;
  background: transparent;
}

.admin-dashboard .hub-step,
.admin-dashboard .diagnostic-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid var(--ui-line-soft);
  background: var(--ui-row);
  padding: 10px 12px;
}

.admin-dashboard .diagnostic-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-dashboard .hub-step:last-child,
.admin-dashboard .diagnostic-row:last-child {
  border-bottom: 0;
}

.admin-dashboard .hub-step mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-blue-soft);
  color: #8ab8ff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
}

.admin-dashboard .hub-step strong,
.admin-dashboard .diagnostic-row strong {
  display: block;
  color: var(--ui-text-soft);
  font-size: 11px;
}

.admin-dashboard .hub-step > div > span,
.admin-dashboard .diagnostic-row > div > span {
  display: block;
  margin-top: 2px;
  color: var(--ui-muted);
  font-size: 10px;
  line-height: 1.35;
}

.admin-dashboard .copy-code {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--ui-line-soft);
  background: var(--ui-row);
  padding: 9px 12px;
}

.admin-dashboard .copy-code code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--ui-text-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .env-import-body {
  display: grid;
  gap: 9px;
  padding: 11px 12px;
}

.admin-dashboard .env-import textarea {
  width: 100%;
  min-height: 104px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

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

.admin-dashboard .env-import-actions span {
  color: var(--ui-muted);
  font-size: 10px;
}

.admin-dashboard .settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

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

.admin-dashboard .settings-accordion > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid transparent;
  background: var(--ui-panel);
  color: var(--ui-text);
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.admin-dashboard .settings-accordion > summary::-webkit-details-marker { display: none; }
.admin-dashboard .settings-accordion > summary strong { display: block; color: var(--ui-text); font-size: 13px; font-weight: 650; }
.admin-dashboard .settings-accordion > summary small { display: block; margin-top: 2px; color: var(--ui-muted); font-size: 10px; }

.admin-dashboard .settings-accordion > summary i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-row);
  color: var(--ui-muted);
  font-size: 10px;
  transition: transform .16s ease, color .16s ease;
}

.admin-dashboard .settings-accordion[open] > summary {
  border-bottom-color: var(--ui-line-soft);
}

.admin-dashboard .settings-accordion[open] > summary i {
  color: var(--ui-blue);
  transform: rotate(180deg);
}

.admin-dashboard .setting {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--ui-line-soft);
  padding: 10px 13px;
}

.admin-dashboard .setting:last-child { border-bottom: 0; }
.admin-dashboard .setting label { min-width: 0; color: var(--ui-text-soft); font-size: 11px; font-weight: 600; }
.admin-dashboard .setting > div { min-width: 0; color: var(--ui-text-soft); font-size: 11px; overflow-wrap: anywhere; }
.admin-dashboard .setting input,
.admin-dashboard .setting select { width: 100%; }

.admin-dashboard .setting .secondary {
  margin-top: 3px;
  color: var(--ui-faint);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 500;
}

.admin-dashboard .help {
  display: block;
  margin-top: 4px;
  color: var(--ui-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
}

.admin-dashboard .settings-save-bar {
  position: sticky;
  bottom: 12px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 12px 12px;
  border: 1px solid #3a4652;
  border-radius: var(--ui-radius);
  background: rgba(16, 21, 25, .96);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px);
  padding: 9px 10px;
}

.admin-dashboard .settings-save-bar span {
  min-width: 0;
  color: var(--ui-muted);
  font-size: 10px;
  line-height: 1.35;
}

.admin-dashboard .settings-save-bar .button { min-width: 132px; }

/* Dialogs, switches and feedback */
.admin-dashboard .modal {
  width: min(560px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 1px solid #3a444f;
  border-radius: var(--ui-radius);
  background: var(--ui-panel);
  box-shadow: var(--ui-shadow-modal);
  color: var(--ui-text);
  padding: 0;
}

.admin-dashboard .modal::backdrop {
  background: rgba(4, 7, 10, .72);
  backdrop-filter: blur(4px);
}

.admin-dashboard .modal form { min-width: 0; }

.admin-dashboard .modal-head,
.admin-dashboard .modal-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-color: var(--ui-line-soft);
  padding: 12px 14px;
}

.admin-dashboard .modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--ui-line-soft);
  background: rgba(27, 32, 38, .97);
}

.admin-dashboard .modal-head h3 {
  min-width: 0;
  margin: 0;
  color: var(--ui-text);
  font-size: 15px;
  font-weight: 650;
}

.admin-dashboard .modal-close {
  display: grid;
  width: 32px;
  height: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-row);
  color: var(--ui-muted);
  padding: 0;
  cursor: pointer;
}

.admin-dashboard .modal-close:hover {
  border-color: #4a5867;
  background: var(--ui-row-hover);
  color: var(--ui-text);
}

.admin-dashboard .modal-close:focus-visible {
  outline: 2px solid var(--ui-blue);
  outline-offset: 2px;
}

.admin-dashboard .modal-close i {
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

.admin-dashboard .modal-body {
  display: grid;
  min-width: 0;
  gap: 11px;
  overflow-x: hidden;
  padding: 14px;
}

.admin-dashboard .modal-body label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--ui-text-soft);
  font-size: 11px;
  font-weight: 600;
}

.admin-dashboard .modal-body input,
.admin-dashboard .modal-body select,
.admin-dashboard .modal-body textarea {
  width: 100%;
  max-width: 100%;
}

.admin-dashboard .modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  justify-content: flex-end;
  border-top: 1px solid var(--ui-line-soft);
  background: rgba(27, 32, 38, .97);
}

.admin-dashboard .modal-note {
  margin: 0;
  color: var(--ui-muted);
  font-size: 10px;
  line-height: 1.4;
}

.admin-dashboard .connection-modal {
  width: min(640px, calc(100vw - 28px));
}

.admin-dashboard .connection-modal .modal-head > div {
  min-width: 0;
}

.admin-dashboard .connection-modal .modal-head p {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--ui-muted);
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard .connection-notice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(91, 166, 255, .28);
  border-radius: var(--ui-radius-sm);
  background: rgba(91, 166, 255, .08);
  padding: 11px;
}

.admin-dashboard .connection-notice > i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 5px;
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
}

.admin-dashboard .connection-notice strong,
.admin-dashboard .connection-notice span,
.admin-dashboard .connection-chat strong,
.admin-dashboard .connection-chat span {
  display: block;
  overflow-wrap: anywhere;
}

.admin-dashboard .connection-notice strong,
.admin-dashboard .connection-chat strong {
  color: var(--ui-text);
  font-size: 11px;
  font-weight: 650;
}

.admin-dashboard .connection-notice span,
.admin-dashboard .connection-chat > div > span {
  margin-top: 3px;
  color: var(--ui-muted);
  font-size: 10px;
  line-height: 1.4;
}

.admin-dashboard .connection-chat {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--ui-line-soft);
  border-radius: var(--ui-radius-sm);
  background: #151a1f;
  padding: 10px;
}

.admin-dashboard .connection-loading {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ui-muted);
  font-size: 11px;
}

.admin-dashboard .connection-loading[hidden],
.admin-dashboard .connection-content[hidden] {
  display: none;
}

.admin-dashboard .connection-content,
.admin-dashboard .connection-fields {
  display: grid;
  gap: 8px;
}

.admin-dashboard .connection-field {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 34px;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--ui-line-soft);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-row);
  padding: 8px;
}

.admin-dashboard .connection-field-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 5px;
  background: var(--ui-panel-soft);
  color: var(--ui-blue);
}

.admin-dashboard .connection-field > div {
  min-width: 0;
}

.admin-dashboard .connection-field > div > span {
  display: block;
  color: var(--ui-muted);
  font-size: 9px;
  line-height: 1.25;
}

.admin-dashboard .connection-field code {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--ui-text);
  font: 600 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: normal;
}

.admin-dashboard .connection-field .button.icon-only {
  width: 34px;
  min-height: 34px;
  flex-basis: 34px;
}

.admin-dashboard .connection-modal .button.copy-success i {
  color: #31d17c;
  filter: drop-shadow(0 0 5px rgba(49, 209, 124, .28));
}

.admin-dashboard .connection-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 3px;
  color: var(--ui-text-soft);
  font-size: 10px;
  font-weight: 650;
}

.admin-dashboard .connection-code {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: #0e1216;
  color: #b7d5ff;
  margin: 0;
  padding: 12px;
}

.admin-dashboard .connection-code code {
  display: block;
  overflow-wrap: anywhere;
  font: 500 11px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-dashboard .check-label,
.admin-dashboard .switch-field {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-row);
  box-shadow: none;
  color: var(--ui-text-soft);
}

.admin-dashboard .check-label {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
}

.admin-dashboard .check-label input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin-top: 1px;
  accent-color: var(--ui-blue);
}

.admin-dashboard .switch-field {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center;
  padding: 11px 12px;
}

.admin-dashboard .switch-copy strong { display: block; color: var(--ui-text-soft); font-size: 11px; }
.admin-dashboard .switch-copy span { display: block; margin-top: 3px; color: var(--ui-muted); font-size: 10px; font-weight: 400; line-height: 1.35; }
.admin-dashboard .switch-field input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.admin-dashboard .switch-ui {
  position: relative;
  width: 40px;
  height: 22px;
  flex: 0 0 40px;
  border-radius: 999px;
  background: #343e48;
  transition: background-color .16s ease;
}

.admin-dashboard .switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dbe2ea;
  transition: transform .16s ease;
}

.admin-dashboard .switch-field input:checked + .switch-ui { background: var(--ui-blue); }
.admin-dashboard .switch-field input:checked + .switch-ui::after { background: #07111d; transform: translateX(18px); }

.admin-dashboard .toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: none;
  max-width: min(440px, calc(100vw - 32px));
  border: 1px solid #3a4652;
  border-radius: var(--ui-radius);
  background: #171d22;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .46);
  color: var(--ui-text);
  padding: 11px 13px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-dashboard .toast.show { display: block; }
.admin-dashboard .toast.bad { border-color: rgba(255, 107, 122, .42); color: #ff929d; }

/* Documentation */
.admin-docs .sidebar {
  width: var(--ui-sidebar-width);
}

.admin-docs .shell {
  padding-left: var(--ui-sidebar-width);
}

.admin-docs .doc-status {
  margin: 12px 12px 4px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-row);
  padding: 11px;
  color: var(--ui-text);
}

.admin-docs .doc-status strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 650;
}

.admin-docs .doc-status strong i { color: var(--ui-green); }
.admin-docs .doc-status span { display: block; margin-top: 5px; color: var(--ui-muted); font-size: 10px; line-height: 1.35; }

.admin-docs .nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 10px;
}

.admin-docs .nav a {
  position: relative;
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  border-radius: var(--ui-radius-sm);
  color: #aeb8c5;
  padding: 8px 9px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
}

.admin-docs .nav a i {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: var(--ui-radius-sm);
  background: transparent;
  color: #84909e;
  font-size: 11px;
}

.admin-docs .nav a:hover,
.admin-docs .nav a.active {
  background: var(--ui-blue-soft);
  color: #8ab8ff;
}

.admin-docs .nav a.active::before {
  content: "";
  position: absolute;
  inset: 9px auto 9px 0;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--ui-blue);
}

.admin-docs .nav a.active i {
  background: transparent;
  color: var(--ui-blue);
}

.admin-docs .sidebar-foot {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--ui-line-soft);
  background: #101519;
  padding: 10px;
}

.admin-docs .side-action {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  border-radius: var(--ui-radius-sm);
  color: #aeb8c5;
  padding: 7px 9px;
  font-size: 11px;
  text-decoration: none;
}

.admin-docs .side-action:hover { background: #1a2128; color: #fff; }
.admin-docs .side-action i { display: grid; width: 24px; height: 24px; place-items: center; background: transparent; color: #8592a1; font-size: 11px; }
.admin-docs .doc-version { padding: 5px 9px 0; color: var(--ui-faint); font-size: 9px; }

.admin-docs .topbar .title small {
  display: block;
  color: var(--ui-muted);
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  text-transform: none;
}

.admin-docs .topbar .title strong {
  display: block;
  color: var(--ui-text);
  font-size: 17px;
  font-weight: 680;
}

.admin-docs main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 64px;
}

.admin-docs .section {
  min-width: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--ui-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 28px 32px;
}

.admin-docs .section:first-child {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.admin-docs .section:first-child::before {
  display: none;
}

.admin-docs .kicker {
  color: #83b3ff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-docs h1,
.admin-docs h2,
.admin-docs h3 {
  color: var(--ui-text);
  letter-spacing: 0;
}

.admin-docs h1 {
  max-width: none;
  margin: 5px 0 0;
  font-size: 29px;
  font-weight: 690;
  line-height: 1.16;
}

.admin-docs h2 { margin: 0 0 10px; font-size: 20px; font-weight: 670; line-height: 1.25; }
.admin-docs h3 { margin: 22px 0 8px; font-size: 15px; font-weight: 650; }
.admin-docs .lead { max-width: none; margin: 12px 0 0; color: var(--ui-muted); font-size: 14px; line-height: 1.55; }
.admin-docs .section p { color: var(--ui-muted); }

.admin-docs .grid,
.admin-docs .setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  border: 0;
  background: transparent;
}

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

.admin-docs .card,
.admin-docs .setup-card,
.admin-docs .check-item,
.admin-docs .endpoint {
  min-width: 0;
  border: 1px solid var(--ui-line-soft);
  border-radius: var(--ui-radius);
  background: var(--ui-row);
  box-shadow: none;
}

.admin-docs .card { min-height: 110px; padding: 14px; }
.admin-docs .setup-card { padding: 14px; }
.admin-docs .card strong,
.admin-docs .setup-card strong,
.admin-docs .check-item strong { color: var(--ui-text-soft); font-size: 12px; }
.admin-docs .card span,
.admin-docs .setup-card p,
.admin-docs .check-item { color: var(--ui-muted); font-size: 11px; }

.admin-docs .card i,
.admin-docs .setup-card i,
.admin-docs .check-item i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin: 0 0 10px;
  border: 1px solid rgba(91, 156, 255, .25);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-blue-soft);
  color: #86b7ff;
}

.admin-docs .setup-card strong { display: flex; align-items: center; gap: 8px; }
.admin-docs .setup-card strong i { margin: 0; }

.admin-docs .checklist { display: grid; gap: 7px; margin-top: 14px; }
.admin-docs .check-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: start; padding: 11px; }
.admin-docs .check-item i { margin: 0; border-color: rgba(59, 212, 133, .24); background: var(--ui-green-soft); color: var(--ui-green); }

.admin-docs .callout {
  margin: 16px 0;
  border: 1px solid rgba(91, 156, 255, .28);
  border-left: 3px solid var(--ui-blue);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-blue-soft);
  color: #bfd6fa;
  padding: 12px 14px;
}

.admin-docs .callout.warn {
  border-color: rgba(240, 199, 94, .3);
  border-left-color: var(--ui-amber);
  background: var(--ui-amber-soft);
  color: #efd993;
}

.admin-docs .code {
  overflow: hidden;
  margin-top: 15px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: #0e1317;
  box-shadow: none;
}

.admin-docs .code-title {
  border-bottom: 1px solid var(--ui-line);
  background: #151b20;
  color: var(--ui-muted);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-docs pre {
  overflow: auto;
  margin: 0;
  padding: 14px;
  color: #d8e2ed;
  font-size: 11px;
  line-height: 1.6;
}

.admin-docs code { color: #b7d2fa; }

.admin-docs .table {
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  overflow: hidden;
}

.admin-docs .table th {
  border: 0;
  background: #151a1f;
  color: var(--ui-muted);
  padding: 9px 10px;
  font-family: inherit;
  font-size: 9px;
  font-weight: 650;
  text-align: left;
  text-transform: none;
}

.admin-docs .table td {
  border-top: 1px solid var(--ui-line-soft);
  color: var(--ui-text-soft);
  padding: 9px 10px;
  font-size: 11px;
  vertical-align: top;
}

.admin-docs .api-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) auto;
  gap: 8px;
  margin: 16px 0 10px;
}

.admin-docs .api-toolbar input,
.admin-docs .api-toolbar select { width: 100%; min-height: 38px; }
.admin-docs .endpoint-list { display: grid; gap: 6px; }
.admin-docs .endpoint { overflow: hidden; }
.admin-docs .endpoint[open] { border-color: #4773aa; }

.admin-docs .endpoint-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, .9fr) minmax(0, 1.2fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  background: var(--ui-row);
  padding: 9px 11px;
  list-style: none;
  cursor: pointer;
}

.admin-docs .method {
  display: inline-grid;
  min-height: 23px;
  place-items: center;
  border-radius: 5px;
  color: #07111d;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 700;
}

.admin-docs .method.get { background: var(--ui-green); }
.admin-docs .method.post { background: var(--ui-blue); }
.admin-docs .method.patch { background: var(--ui-amber); }
.admin-docs .method.delete { background: var(--ui-red); }
.admin-docs .endpoint-path { overflow: hidden; color: #bad2f5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-docs .endpoint-name { overflow: hidden; color: var(--ui-text-soft); font-size: 11px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.admin-docs .endpoint-body { border-top: 1px solid var(--ui-line-soft); background: #141a1f; color: var(--ui-muted); padding: 11px 13px 13px 79px; font-size: 11px; }
.admin-docs .endpoint-count { color: var(--ui-muted); font-family: inherit; font-size: 10px; font-weight: 600; }

/* Login */
.admin-login .auth-shell {
  display: grid;
  grid-template-columns: minmax(360px, 42%) minmax(500px, 58%);
  min-height: 100vh;
  background: var(--ui-bg);
}

.admin-login .identity {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  overflow: hidden;
  border-right: 1px solid var(--ui-line);
  background: var(--ui-sidebar);
  color: var(--ui-text);
  padding: 28px;
}

.admin-login .identity::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
  pointer-events: none;
}

.admin-login .brand-lockup,
.admin-login .identity-copy,
.admin-login .identity-footer { position: relative; }

.admin-login .identity-copy {
  align-self: center;
  max-width: 430px;
}

.admin-login .eyebrow {
  margin: 0 0 10px;
  color: #83b3ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-login .identity-copy h1 {
  max-width: 420px;
  margin: 0;
  color: #f4f7fb;
  font-size: 34px;
  font-weight: 690;
  line-height: 1.12;
}

.admin-login .identity-copy p:last-child {
  max-width: 390px;
  margin: 13px 0 0;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.55;
}

.admin-login .identity-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-login .status-tile {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-row);
  padding: 10px;
}

.admin-login .status-tile i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-green-soft);
  color: var(--ui-green);
}

.admin-login .status-tile strong { display: block; color: var(--ui-text-soft); font-size: 10px; }
.admin-login .status-tile span { display: block; margin-top: 2px; color: var(--ui-muted); font-size: 9px; }

.admin-login .workspace {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  background: var(--ui-bg);
  padding: 22px clamp(28px, 5vw, 76px);
}

.admin-login .utility {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: flex-end;
}

.admin-login .secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  background: var(--ui-row);
  color: var(--ui-muted);
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 600;
}

.admin-login .secure i { color: var(--ui-green); }

.admin-login .panel-wrap {
  display: grid;
  place-items: center;
  padding: 22px 0;
}

.admin-login .panel {
  width: min(100%, 410px);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-panel);
  box-shadow: none;
  padding: 26px;
}

.admin-login .panel-head {
  display: grid;
  gap: 7px;
  margin-bottom: 22px;
}

.admin-login .index {
  margin: 0;
  color: #83b3ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-login .panel h2 {
  margin: 0;
  color: var(--ui-text);
  font-size: 27px;
  font-weight: 680;
  line-height: 1.15;
}

.admin-login .lead {
  margin: 0;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-login form { display: grid; gap: 14px; }
.admin-login .field { display: grid; gap: 6px; }
.admin-login .field > span:first-child { color: var(--ui-text-soft); font-size: 11px; font-weight: 600; }
.admin-login .input-wrap { position: relative; display: block; }
.admin-login .input-wrap i { position: absolute; left: 13px; top: 50%; color: #71808e; font-size: 12px; transform: translateY(-50%); pointer-events: none; }

.admin-login .input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-field);
  color: var(--ui-text);
  padding: 0 12px 0 36px;
  font-size: 14px;
  outline: 0;
  transition: border-color .16s var(--ui-ease), box-shadow .16s var(--ui-ease), background .16s var(--ui-ease);
}

.admin-login .input:hover { border-color: var(--ui-field-hover); }

.admin-login .input:focus {
  border-color: var(--ui-blue);
  box-shadow: 0 0 0 3px rgba(91, 156, 255, .12);
}

.admin-login .submit {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--ui-blue);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-blue);
  box-shadow: none;
  color: #07111d;
  font-size: 13px;
  font-weight: 700;
}

.admin-login .submit:hover { border-color: var(--ui-blue-hover); background: var(--ui-blue-hover); }
.admin-login .form-alert { border: 1px solid rgba(255, 107, 122, .34); border-radius: var(--ui-radius-sm); background: var(--ui-red-soft); color: #ff929d; padding: 9px 10px; font-size: 11px; }
.admin-login .note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; color: var(--ui-muted); font-size: 10px; }
.admin-login .note i { color: #778491; }
.admin-login .footer { color: var(--ui-faint); text-align: center; font-size: 9px; }

/* Responsive dashboard */
@media (max-width: 1180px) {
  .admin-dashboard .hero-grid { grid-template-columns: 1fr; }
  .admin-dashboard .welcome-card { min-height: 224px; }
  .admin-dashboard .metrics { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .admin-dashboard .insight-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .admin-dashboard #system-grid { grid-template-columns: 1fr; }
}

@media (min-width: 921px) and (max-width: 1450px) {
  .admin-dashboard .domain-context.show {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-dashboard .context-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 920px) {
  .admin-dashboard .shell,
  .admin-docs .shell { padding-left: 0; }

  .admin-dashboard .sidebar {
    top: 0;
    bottom: auto;
    width: min(276px, calc(100vw - 52px));
    height: 100vh;
    height: var(--app-viewport-height, 100svh);
    min-height: 0;
    max-height: 100vh;
    max-height: var(--app-viewport-height, 100svh);
    overflow: hidden;
    overscroll-behavior: contain;
    transform: translateX(-102%);
    transition: transform .18s ease;
    box-shadow: 18px 0 52px rgba(0, 0, 0, .38);
  }

  .admin-dashboard .brand {
    min-height: 64px;
    padding: 10px 12px;
  }

  .admin-dashboard .nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .admin-dashboard .sidebar-footer {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    padding: 8px 10px max(10px, env(safe-area-inset-bottom));
    box-shadow: 0 -10px 22px rgba(5, 8, 11, .28);
  }

  .admin-dashboard .sidebar-footer form { min-width: 0; }

  .admin-dashboard .sidebar-footer .side-link,
  .admin-dashboard .sidebar-footer .logout {
    min-height: 40px;
    justify-content: center;
    padding: 7px 8px;
    white-space: nowrap;
  }

  .admin-dashboard .sidebar.open { transform: translateX(0); }
  .admin-dashboard .scrim.show { display: block; position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(2, 5, 8, .66); backdrop-filter: blur(2px); }
  .admin-dashboard .menu { display: inline-flex; }

  .admin-dashboard .topbar {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px 38px;
    gap: 8px;
    padding: 8px 10px 9px;
  }

  .admin-dashboard .menu { grid-column: 1; grid-row: 1; }
  .admin-dashboard .topbar-title { grid-column: 2; grid-row: 1; min-width: 0; }
  .admin-dashboard .top-actions { display: contents; }
  .admin-dashboard .quick-status { display: none; }
  .admin-dashboard #refresh-button { grid-column: 3; grid-row: 1; }
  .admin-dashboard .topbar-logout-form { grid-column: 4; grid-row: 1; justify-self: end; }
  .admin-dashboard .global-search { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; }
  .admin-dashboard .title { display: none; }
  .admin-dashboard .breadcrumbs { overflow: hidden; }
  .admin-dashboard .breadcrumb-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-dashboard main { padding: 20px 16px 38px; }
  .admin-dashboard .dashboard-grid { grid-template-columns: 1fr; }
  .admin-dashboard .wide,
  .admin-dashboard .side { grid-column: 1; }
  .admin-dashboard .metrics { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .admin-dashboard .insight-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .admin-dashboard .settings-panel > .panel-head { top: 103px; }

  .admin-docs .sidebar {
    position: sticky;
    top: 0;
    width: auto;
    min-height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--ui-line);
    background: var(--ui-sidebar);
  }

  .admin-docs .brand,
  .admin-docs .doc-status,
  .admin-docs .sidebar-foot { display: none; }
  .admin-docs .nav { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; }
  .admin-docs .nav-label { display: none; }
  .admin-docs .nav a { flex: 0 0 auto; min-height: 34px; border: 1px solid var(--ui-line); border-radius: 999px; background: var(--ui-row); padding: 5px 9px; }
  .admin-docs .nav a::before { display: none; }
  .admin-docs .nav a i { width: 20px; height: 20px; }
  .admin-docs .topbar { min-height: 58px; padding: 8px 11px; }
  .admin-docs main { padding: 0 0 42px; }
}

@media (max-width: 420px) {
  .admin-dashboard .topbar {
    grid-template-columns: 36px minmax(0, 1fr) 36px 36px;
    gap: 6px;
    padding-inline: 8px;
  }

  .admin-dashboard .menu,
  .admin-dashboard .icon-button {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}

@media (max-width: 720px) {
  .admin-dashboard .view-heading {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
  }
  .admin-dashboard .view-heading h1 { font-size: 23px; }
  .admin-dashboard .view-heading p { margin-top: 5px; font-size: 12px; }
  .admin-dashboard .view-kicker { margin-bottom: 4px; font-size: 9px; }
  .admin-dashboard .view-actions { justify-content: flex-start; }
  .admin-dashboard .view-actions .button { width: auto; }
  .admin-dashboard .view-actions .inline-stat { order: 3; }
  .admin-dashboard .hero-grid { grid-template-columns: 1fr; }
  .admin-dashboard .welcome-card { min-height: 248px; padding: 17px 100px 16px 17px; }
  .admin-dashboard .welcome-card h2 { font-size: 20px; }
  .admin-dashboard .health-ring { top: 18px; right: 17px; width: 72px; height: 72px; box-shadow: inset 0 0 0 8px var(--ui-panel); }
  .admin-dashboard .health-ring span { width: 54px; height: 54px; }
  .admin-dashboard .welcome-bottom { inset: auto 14px 14px 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-dashboard .operations-card { min-height: 226px; padding: 13px; }
  .admin-dashboard .ops-chart,
  .admin-dashboard .ops-chart svg { height: 138px; }
  .admin-dashboard .metrics { gap: 8px; }
  .admin-dashboard .metric { min-height: 102px; padding: 13px; }
  .admin-dashboard .metric-value { font-size: 21px; }
  .admin-dashboard .metric-icon { width: 34px; height: 34px; }
  .admin-dashboard .insight-grid { gap: 8px; }
  .admin-dashboard .panel-head { align-items: flex-start; padding: 12px; }
  .admin-dashboard .panel-tools { justify-content: flex-start; }
  .admin-dashboard .filters { display: grid; grid-template-columns: 1fr; }
  .admin-dashboard .filters input,
  .admin-dashboard .filters select,
  .admin-dashboard .filters .button { width: 100%; }
  .admin-dashboard .filters .filter-search { width: 100%; }
  .admin-dashboard .filters .icon-only { width: 100%; }
  .admin-dashboard .settings-panel { padding-bottom: 82px; }
  .admin-dashboard #save-settings { display: none; }
  .admin-dashboard .settings-panel > .panel-head { position: static; }
  .admin-dashboard .setting { grid-template-columns: 1fr; gap: 6px; }
  .admin-dashboard .settings-save-bar { position: fixed; left: 10px; right: 10px; bottom: 8px; display: grid; grid-template-columns: 1fr; margin: 0; }
  .admin-dashboard .settings-save-bar span { display: none; }
  .admin-dashboard .settings-save-bar .button { width: 100%; min-height: 42px; }
  .admin-dashboard .settings-intro,
  .admin-dashboard .settings-grid { padding: 10px; }
  .admin-dashboard .domain-context.show { display: grid; }
  .admin-dashboard .context-actions { justify-content: flex-start; }
  .admin-dashboard .context-actions .button { flex: 1 1 auto; }
  .admin-dashboard .connection-modal .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .admin-dashboard .connection-modal .modal-actions .button {
    width: 100%;
  }
  .admin-dashboard .connection-modal .modal-actions .button.primary {
    grid-column: 1 / -1;
  }
  .admin-dashboard #domains-view .domain-bulkbar.show { display: grid; grid-template-columns: minmax(0, 1fr); }
  .admin-dashboard #domains-view .domain-bulkbar.show > strong,
  .admin-dashboard #domains-view .domain-bulkbar.show > .domain-bulkbar-actions { grid-column: 1 / -1; width: 100%; }
  .admin-dashboard .domain-bulkbar strong { min-height: 24px; margin: 0; line-height: 24px; }
  .admin-dashboard .domain-bulkbar-actions { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 8px; justify-content: stretch; }
  .admin-dashboard .bulk-action-group { display: grid; min-width: 0; max-width: none; width: 100%; justify-self: stretch; grid-area: auto; gap: 8px; }
  .admin-dashboard .bulk-delete-action { grid-area: auto; justify-self: stretch; }
  .admin-dashboard .bulk-state-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-dashboard .bulk-interval-actions { grid-template-columns: 88px minmax(0, 1fr); }
  .admin-dashboard .bulk-move-actions { grid-template-columns: minmax(0, 1fr) 104px; min-width: 0; }
  .admin-dashboard .domain-bulkbar input,
  .admin-dashboard .domain-bulkbar select,
  .admin-dashboard .domain-bulkbar .button { width: 100%; }
  .admin-dashboard .domain-bulkbar .bulk-interval-actions .button,
  .admin-dashboard .domain-bulkbar .bulk-move-actions .button { width: 100%; }
  .admin-dashboard .domain-bulkbar .button.small,
  .admin-dashboard .domain-bulkbar input,
  .admin-dashboard .domain-bulkbar select {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
  }
  .admin-dashboard .bulk-move-actions select { line-height: 38px; }
  .admin-dashboard .bulk-state-actions .button { min-width: 0; padding-inline: 6px; overflow: hidden; font-size: 11px; white-space: nowrap; }
  .admin-dashboard .domain-pagination { display: grid; grid-template-columns: 1fr; }
  .admin-dashboard .pagination-actions { display: grid; grid-template-columns: 1fr auto 1fr; }

  .admin-dashboard .table-wrap { overflow: visible; }
  .admin-dashboard table { min-width: 0; }
  .admin-dashboard table thead { display: none; }
  .admin-dashboard table tbody { display: grid; gap: 8px; padding: 9px; }
  .admin-dashboard table tr { display: grid; overflow: hidden; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: var(--ui-row); }
  .admin-dashboard table td {
    display: grid;
    grid-template-columns: minmax(92px, .38fr) minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    max-width: none;
    min-height: 40px;
    height: auto;
    border-bottom: 1px solid var(--ui-line-soft);
    background: transparent;
    padding: 8px 10px;
  }
  .admin-dashboard table tr:hover td { background: transparent; }
  .admin-dashboard table td:last-child { border-bottom: 0; }
  .admin-dashboard table td::before { content: attr(data-label); color: var(--ui-faint); font-size: 9px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
  .admin-dashboard table td.empty { display: block; padding: 22px 12px; }
  .admin-dashboard table td.empty::before { display: none; }
  .admin-dashboard .secondary { max-width: none; white-space: normal; }
  .admin-dashboard .system-readiness table td.readiness-check {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    box-sizing: border-box;
    padding: 12px 10px;
  }
  .admin-dashboard .system-readiness .readiness-copy .name {
    color: var(--ui-text);
    font-size: 12px;
    line-height: 1.3;
  }
  .admin-dashboard .system-readiness .readiness-copy .secondary {
    margin-top: 5px;
    color: var(--ui-muted);
    font-size: 10px;
    line-height: 1.35;
  }
  .admin-dashboard .system-readiness table td.readiness-status {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: auto minmax(64px, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 46px;
    box-sizing: border-box;
    padding: 9px 10px;
    text-align: left;
  }
  .admin-dashboard .system-readiness .readiness-status .badge {
    min-width: 64px;
    min-height: 24px;
    justify-self: end;
    justify-content: center;
    padding: 3px 9px;
    line-height: 1;
  }
  .admin-dashboard .actions { justify-content: flex-start; }
  .admin-dashboard .actions .button { flex: 0 1 auto; }
  .admin-dashboard .row-menu { margin-left: 0; }
  .admin-dashboard .row-menu-pop {
    position: static;
    width: min(100%, 220px);
    max-height: none;
    margin-top: 5px;
    overflow: visible;
    box-shadow: none;
    visibility: visible;
  }
  .admin-dashboard .entity-cell { min-width: 0; grid-template-columns: 30px minmax(0, 1fr); }
  .admin-dashboard .entity-avatar { width: 30px; height: 30px; }

  .admin-dashboard #domains-view .panel { overflow: visible; border: 0; background: transparent; }
  .admin-dashboard #domains-view .panel-head,
  .admin-dashboard #domains-view .filters,
  .admin-dashboard #domains-view .domain-context.show,
  .admin-dashboard #domains-view .domain-bulkbar.show,
  .admin-dashboard #domains-view .domain-pagination { margin-bottom: 8px; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: var(--ui-panel); }
  .admin-dashboard #domains-view .filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .admin-dashboard #domains-view .filters .filter-search { grid-column: 1 / -1; }
  .admin-dashboard #domains-view .filters .icon-only {
    justify-self: end;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
  }
  .admin-dashboard #domains-view table tbody { padding: 0; }
  .admin-dashboard #domains-view table tr {
    position: relative;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name select" "status status" "chat chat" "http checked" "interval interval" "actions actions";
    gap: 10px;
    border-radius: 10px;
    padding: 13px;
  }
  .admin-dashboard #domains-view table td { display: block; min-height: 0; border: 0; background: transparent; padding: 0; }
  .admin-dashboard #domains-view table td::before { display: none; }
  .admin-dashboard #domains-view .domain-card-select { grid-area: select; align-self: start; justify-self: end; }
  .admin-dashboard #domains-view .domain-card-select .row-check { width: 20px; height: 20px; min-height: 20px; }
  .admin-dashboard #domains-view .domain-card-id { display: none; }
  .admin-dashboard #domains-view .domain-card-name { grid-area: name; min-width: 0; }
  .admin-dashboard #domains-view .domain-card-name .name {
    display: block;
    overflow: hidden;
    color: var(--ui-text);
    font-size: 14px;
    font-weight: 680;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-dashboard #domains-view .domain-card-name .secondary { margin-top: 3px; color: var(--ui-muted); font-size: 11px; }
  .admin-dashboard #domains-view .domain-card-status {
    grid-area: status;
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    border: 1px solid var(--ui-line-soft);
    border-radius: 8px;
    background: #141a1f;
    padding: 7px 8px;
  }
  .admin-dashboard #domains-view .domain-card-status:has(.badge.good) { border-color: rgba(75, 209, 123, .2); background: rgba(75, 209, 123, .055); }
  .admin-dashboard #domains-view .domain-card-status:has(.badge.bad) { border-color: rgba(241, 91, 80, .24); background: rgba(241, 91, 80, .065); }
  .admin-dashboard #domains-view .domain-card-status:has(.badge.warn) { border-color: rgba(242, 192, 84, .22); background: rgba(242, 192, 84, .055); }
  .admin-dashboard #domains-view .domain-card-status .status-inline { width: auto; }
  .admin-dashboard #domains-view .domain-card-status .badge { min-height: 24px; padding: 4px 8px; }
  .admin-dashboard #domains-view .domain-card-status .secondary {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    color: var(--ui-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-dashboard #domains-view .domain-card-chat {
    grid-area: chat;
    min-width: 0;
    overflow: hidden;
    color: var(--ui-text-soft);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-dashboard #domains-view table .domain-card-chat::before,
  .admin-dashboard #domains-view table .domain-card-http::before,
  .admin-dashboard #domains-view table .domain-card-interval::before,
  .admin-dashboard #domains-view table .domain-card-checked::before {
    display: inline;
    margin-right: 6px;
    color: var(--ui-faint);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
  }
  .admin-dashboard #domains-view table .domain-card-chat::before { content: "Чат"; }
  .admin-dashboard #domains-view table .domain-card-http::before { content: "HTTP"; }
  .admin-dashboard #domains-view table .domain-card-interval::before { content: "Интервал"; }
  .admin-dashboard #domains-view table .domain-card-checked::before { content: "Проверка"; }
  .admin-dashboard #domains-view .domain-card-http {
    grid-area: http;
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    color: var(--ui-muted);
    font-size: 10px;
  }
  .admin-dashboard #domains-view .domain-card-http .badge {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 10px;
    white-space: nowrap;
  }
  .admin-dashboard #domains-view .domain-card-interval { grid-area: interval; color: var(--ui-muted); font-size: 10px; }
  .admin-dashboard #domains-view .domain-card-checked { grid-area: checked; justify-self: end; color: var(--ui-muted); font-size: 10px; text-align: right; }
  .admin-dashboard #domains-view .domain-card-actions {
    grid-area: actions;
    width: 100%;
    margin-top: 0;
    border-top: 1px solid var(--ui-line-soft);
    padding-top: 10px;
    white-space: normal;
  }
  .admin-dashboard #domains-view .domain-card-actions .actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 34px);
    justify-content: end;
    gap: 6px;
  }
  .admin-dashboard #domains-view .domain-card-actions .button {
    width: 34px;
    height: 34px;
    min-height: 34px;
    flex: 0 0 34px;
    border-color: #3a4651;
    background: #171d23;
    padding: 0;
  }
  .admin-dashboard #domains-view .domain-card-actions .button:hover { background: #202830; }
  .admin-dashboard #domains-view .domain-card-actions .button.danger { border-color: rgba(241, 91, 80, .42); background: rgba(241, 91, 80, .075); }
  .admin-dashboard #domains-view .domain-card-actions .button span { display: none; }
  .admin-dashboard #domains-view .domain-card-actions .button i { font-size: 12px; }

  .admin-dashboard #chats-view .panel,
  .admin-dashboard #chats-view .table-wrap { overflow: visible; }
  .admin-dashboard #chats-view table tbody { gap: 8px; padding: 0; }
  .admin-dashboard #chats-view table tr.chat-card-row {
    position: relative;
    display: grid;
    width: 100%;
    min-width: 0;
    overflow: visible;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "name name actions" "id type webhook" "health health health" "members up down";
    gap: 0 8px;
    border-radius: 10px;
    padding: 12px;
  }
  .admin-dashboard #chats-view table tr.chat-card-row:has(.row-menu[open]) { z-index: 4; }
  .admin-dashboard #chats-view .chat-card-row td {
    display: block;
    min-width: 0;
    min-height: 0;
    border: 0;
    background: transparent;
    padding: 0;
  }
  .admin-dashboard #chats-view .chat-card-row td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--ui-faint);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
  }
  .admin-dashboard #chats-view .chat-card-name { grid-area: name; padding-right: 6px; }
  .admin-dashboard #chats-view .chat-card-name::before,
  .admin-dashboard #chats-view .chat-card-actions::before { display: none; }
  .admin-dashboard #chats-view .chat-card-name .entity-cell {
    width: 100%;
    min-width: 0;
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .admin-dashboard #chats-view .chat-card-name .entity-copy { min-width: 0; overflow: hidden; }
  .admin-dashboard #chats-view .chat-card-name .name,
  .admin-dashboard #chats-view .chat-card-name .secondary {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-dashboard #chats-view .chat-card-name .name { color: var(--ui-text); font-size: 13px; }
  .admin-dashboard #chats-view .chat-card-actions { grid-area: actions; justify-self: end; }
  .admin-dashboard #chats-view .chat-card-id { grid-area: id; }
  .admin-dashboard #chats-view .chat-card-type { grid-area: type; }
  .admin-dashboard #chats-view .chat-card-webhook { grid-area: webhook; }
  .admin-dashboard #chats-view .chat-card-id,
  .admin-dashboard #chats-view .chat-card-type,
  .admin-dashboard #chats-view .chat-card-webhook { margin-top: 12px; color: var(--ui-text-soft); font-size: 10px; }
  .admin-dashboard #chats-view .chat-card-health {
    grid-area: health;
    margin-top: 12px;
    border-top: 1px solid var(--ui-line-soft);
    border-bottom: 1px solid var(--ui-line-soft);
    padding: 10px 0;
  }
  .admin-dashboard #chats-view .chat-card-health .health { width: 100%; min-width: 0; }
  .admin-dashboard #chats-view .chat-card-health .health span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-dashboard #chats-view .chat-card-members { grid-area: members; }
  .admin-dashboard #chats-view .chat-card-up { grid-area: up; }
  .admin-dashboard #chats-view .chat-card-down { grid-area: down; }
  .admin-dashboard #chats-view .chat-card-members,
  .admin-dashboard #chats-view .chat-card-up,
  .admin-dashboard #chats-view .chat-card-down { padding-top: 10px; color: var(--ui-text); font-size: 12px; }
  .admin-dashboard #chats-view .chat-card-up { color: var(--ui-green); }
  .admin-dashboard #chats-view .chat-card-down { color: var(--ui-red); }
  .admin-dashboard #chats-view .chat-card-actions .row-menu-pop {
    position: absolute;
    top: 38px;
    right: 0;
    left: auto;
    width: min(220px, calc(100vw - 54px));
    max-height: min(320px, calc(100dvh - 80px));
    overflow: auto;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .46);
    visibility: visible;
  }

  .admin-dashboard #settings-view .hub-step {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
  }
  .admin-dashboard #settings-view .hub-step > div,
  .admin-dashboard #settings-view .diagnostic-row > div { min-width: 0; }
  .admin-dashboard #settings-view .hub-step > .badge,
  .admin-dashboard #settings-view .diagnostic-row > .badge {
    display: inline-flex;
    width: auto;
    min-width: 0;
    max-width: max-content;
    min-height: 23px;
    align-items: center;
    justify-self: end;
    align-self: center;
    margin: 0;
    padding: 3px 8px;
    font-size: 9px;
    white-space: nowrap;
  }
  .admin-dashboard #settings-view .diagnostic-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .admin-dashboard #access-view table tbody,
  .admin-dashboard .events-workspace .wide table tbody { gap: 8px; padding: 0; }
  .admin-dashboard #access-view table tr.access-card-row {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "id role" "chat chat" "user user" "domains activity" "actions actions";
    gap: 0 10px;
    border-radius: 10px;
    padding: 12px;
  }
  .admin-dashboard #access-view .access-card-row td {
    display: block;
    min-width: 0;
    min-height: 0;
    border: 0;
    background: transparent;
    padding: 0;
  }
  .admin-dashboard #access-view .access-card-row td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--ui-faint);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
  }
  .admin-dashboard #access-view .access-card-id { grid-area: id; }
  .admin-dashboard #access-view .access-card-role { grid-area: role; }
  .admin-dashboard #access-view .access-card-chat { grid-area: chat; }
  .admin-dashboard #access-view .access-card-user { grid-area: user; }
  .admin-dashboard #access-view .access-card-domains { grid-area: domains; }
  .admin-dashboard #access-view .access-card-activity { grid-area: activity; }
  .admin-dashboard #access-view .access-card-actions { grid-area: actions; }
  .admin-dashboard #access-view .access-card-chat,
  .admin-dashboard #access-view .access-card-user,
  .admin-dashboard #access-view .access-card-domains,
  .admin-dashboard #access-view .access-card-activity,
  .admin-dashboard #access-view .access-card-actions {
    margin-top: 10px;
    border-top: 1px solid var(--ui-line-soft);
    padding-top: 10px;
  }
  .admin-dashboard #access-view .entity-cell { width: 100%; min-width: 0; max-width: 100%; }
  .admin-dashboard #access-view .entity-copy { min-width: 0; overflow: hidden; }
  .admin-dashboard #access-view .entity-copy .name,
  .admin-dashboard #access-view .entity-copy .secondary {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-dashboard #access-view .role-select { width: 100%; max-width: 210px; }

  .admin-dashboard .events-workspace .wide table tr.check-card-row {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "domain id" "status status" "http latency" "time time";
    gap: 0 10px;
    border-radius: 10px;
    padding: 12px;
  }
  .admin-dashboard .events-workspace .wide .check-card-row td {
    display: block;
    min-width: 0;
    min-height: 0;
    border: 0;
    background: transparent;
    padding: 0;
  }
  .admin-dashboard .events-workspace .wide .check-card-row td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--ui-faint);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
  }
  .admin-dashboard .events-workspace .check-card-id { grid-area: id; text-align: right; }
  .admin-dashboard .events-workspace .check-card-domain { grid-area: domain; overflow: hidden; color: var(--ui-text); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
  .admin-dashboard .events-workspace .check-card-status {
    grid-area: status;
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    border-top: 1px solid var(--ui-line-soft);
    border-bottom: 1px solid var(--ui-line-soft);
    padding: 10px 0;
  }
  .admin-dashboard .events-workspace .check-card-status::before { display: none; }
  .admin-dashboard .events-workspace .check-card-status .status-inline { width: auto; }
  .admin-dashboard .events-workspace .check-card-status .secondary {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-dashboard .events-workspace .check-card-status .check-diagnostics {
    width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
  }
  .admin-dashboard .events-workspace .check-card-status .check-diagnostics > div {
    min-width: 0;
  }
  .admin-dashboard .events-workspace .check-card-status .check-diagnostics span {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .admin-dashboard .events-workspace .check-card-http { grid-area: http; padding-top: 10px; }
  .admin-dashboard .events-workspace .check-card-latency { grid-area: latency; padding-top: 10px; text-align: right; }
  .admin-dashboard .events-workspace .check-card-time { grid-area: time; margin-top: 10px; border-top: 1px solid var(--ui-line-soft); padding-top: 10px; }

  .admin-docs .section { padding: 20px 14px; }
  .admin-docs h1 { font-size: 24px; }
  .admin-docs h2 { font-size: 18px; }
  .admin-docs .grid,
  .admin-docs .setup-grid { grid-template-columns: 1fr; }
  .admin-docs .api-toolbar { grid-template-columns: 1fr; }
  .admin-docs .endpoint-summary { grid-template-columns: 54px minmax(0, 1fr); }
  .admin-docs .endpoint-summary .endpoint-name,
  .admin-docs .endpoint-summary .pill { grid-column: 2; }
  .admin-docs .endpoint-body { padding: 10px 12px; }
  .admin-docs .table { display: block; overflow-x: auto; table-layout: auto; }
}

@media (max-width: 860px) {
  .admin-login .auth-shell {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 100dvh;
    padding: 0;
  }

  .admin-login .identity {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: auto;
    align-items: center;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--ui-line);
    border-radius: 0;
    background: var(--ui-sidebar);
    padding: 13px 15px;
  }

  .admin-login .identity::before,
  .admin-login .identity-copy,
  .admin-login .identity-footer { display: none; }
  .admin-login .workspace { display: block; min-height: auto; padding: 0; }
  .admin-login .utility { display: none; }
  .admin-login .panel-wrap { display: block; padding: 22px 14px; }
  .admin-login .panel { width: 100%; max-width: 410px; margin: 0 auto; padding: 22px; }
  .admin-login .footer { display: none; }
}

@media (max-width: 520px) {
  .admin-dashboard main { padding: 16px 10px 34px; }
  .admin-dashboard .view-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .admin-dashboard .view-actions .button { width: 100%; }
  .admin-dashboard .view-actions .inline-stat,
  .admin-dashboard .view-actions .page-status { grid-column: 1 / -1; width: 100%; }
  .admin-dashboard .metrics,
  .admin-dashboard .insight-grid { grid-template-columns: 1fr; }
  .admin-dashboard .metric { min-height: 92px; }
  .admin-dashboard .panel-head { display: grid; }
  .admin-dashboard .panel-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .admin-dashboard .panel-tools .inline-stat { grid-column: 1 / -1; }
  .admin-dashboard .panel-tools .button,
  .admin-dashboard .panel-tools .inline-stat { width: 100%; }
  .admin-dashboard .card-titleline { display: grid; }
  .admin-dashboard .segment { width: max-content; }
  .admin-dashboard .modal { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .admin-dashboard .modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-dashboard .modal-actions .button { width: 100%; }
  .admin-dashboard .toast { left: 10px; right: 10px; bottom: 10px; max-width: none; }

  .admin-docs .topbar { align-items: flex-start; }
  .admin-docs .topbar .title small { display: none; }
  .admin-docs .topbar .title strong { font-size: 14px; line-height: 1.2; white-space: nowrap; }
  .admin-docs .topbar > div:last-child { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; }
  .admin-docs .topbar .button { max-width: none; padding: 7px 8px; }
  .admin-docs .endpoint-summary { grid-template-columns: 1fr; }
  .admin-docs .endpoint-summary .endpoint-name,
  .admin-docs .endpoint-summary .pill { grid-column: 1; }
  .admin-docs .method { width: max-content; }
  .admin-docs .nav a span { display: none; }
  .admin-docs .nav a { padding: 5px; }

  .admin-login .panel-wrap { padding: 14px 10px; }
  .admin-login .panel { padding: 19px 16px; }
  .admin-login .panel h2 { font-size: 24px; }
  .admin-login .brand-logo { width: 36px; height: 36px; flex-basis: 36px; }
  .admin-login .brand-copy strong { font-size: 15px; }
  .admin-login .input { height: 43px; font-size: 16px; }
  .admin-login .submit { min-height: 43px; }
}

@media (max-width: 360px) {
  .admin-dashboard .welcome-card { min-height: 270px; padding-right: 17px; }
  .admin-dashboard .health-ring { position: static; margin-top: 12px; }
  .admin-dashboard .welcome-bottom { grid-template-columns: 1fr 1fr; }
  .admin-dashboard .domain-bulkbar.show { grid-template-columns: 1fr; }
  .admin-dashboard .domain-bulkbar strong { grid-column: 1; }
  .admin-dashboard .modal-actions { grid-template-columns: 1fr; }
}

/* Initial data loading */
.admin-dashboard .view { position: relative; }
.admin-dashboard .view.is-initial-loading .metrics,
.admin-dashboard .view.is-initial-loading .panel .table-wrap,
.admin-dashboard .view.is-initial-loading .settings-grid {
  position: relative;
  min-height: 132px;
  overflow: hidden;
}
.admin-dashboard .view.is-initial-loading .metrics::after,
.admin-dashboard .view.is-initial-loading .panel .table-wrap::after,
.admin-dashboard .view.is-initial-loading .settings-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .055) 45%, transparent 80%) -60% 0 / 42% 100% no-repeat,
    repeating-linear-gradient(180deg, var(--ui-panel) 0 36px, var(--ui-line-soft) 36px 37px, var(--ui-panel) 37px 52px);
  animation: ui-skeleton 1.2s ease-in-out infinite;
  pointer-events: none;
}
.admin-dashboard .events-audit,
.admin-dashboard .events-webhooks { grid-column: 1 / -1; }
.admin-dashboard .system-diagnostics-card { grid-column: 1 / -1; }
.admin-dashboard .system-diagnostics-card .diagnostics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 0;
  gap: 1px;
}
@media (max-width: 760px) {
  .admin-dashboard .system-diagnostics-card .diagnostics { grid-template-columns: 1fr; }
}
@keyframes ui-skeleton {
  to { background-position: 160% 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Domain statistics */
.stats-controls{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.stats-controls label{min-width:180px}
.stats-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}
.stats-metric{padding:14px;border:1px solid var(--ui-line,#3b444c);border-radius:12px;display:flex;flex-direction:column;gap:8px;min-width:0}
.stats-metric span,.stats-metric small{font-size:12px;opacity:.75}
.stats-metric strong{font-size:20px;overflow-wrap:anywhere}
.stats-section{margin-top:22px;padding-top:16px;border-top:1px solid var(--ui-line,#3b444c)}
.stats-section h4{margin:0 0 12px}.stats-section summary{cursor:pointer;font-weight:600}
.stats-chart{width:100%;display:block}.stats-table-wrap{overflow-x:auto;margin-top:12px}
.stats-table-wrap table{width:100%;font-size:12px}.stats-table-wrap th,.stats-table-wrap td{padding:10px;text-align:left;vertical-align:top;min-width:80px}
.stats-table-wrap td:last-child{max-width:320px;overflow-wrap:anywhere}
.stats-distribution{display:grid;grid-template-columns:150px 1fr 130px;align-items:center;gap:12px;margin:12px 0;font-size:13px}
.stats-distribution meter{width:100%;height:14px}.stats-distribution strong{text-align:right}
.stats-break{overflow-wrap:anywhere}
@media(max-width:700px){.stats-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-distribution{grid-template-columns:110px 1fr;gap:8px}.stats-distribution strong{grid-column:2;font-size:12px}.stats-metric strong{font-size:17px}}
