:root {
  --bg: #edf2f7;
  --bg-soft: #f8fbff;
  --bg-elevated: #ffffff;
  --ink-strong: #13263a;
  --ink: #21384f;
  --muted: #5f7388;
  --line: #d4dfeb;
  --line-soft: #e7eef6;

  --brand: #0f6da8;
  --brand-strong: #0a4f7e;
  --brand-soft: #e6f4ff;

  --accent: #0c9b77;
  --warn: #d58d18;
  --danger: #ba3348;

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;

  --shadow-lg: 0 18px 45px rgba(15, 37, 60, 0.14);
  --shadow-md: 0 10px 24px rgba(15, 37, 60, 0.1);
  --shadow-sm: 0 4px 12px rgba(15, 37, 60, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  line-height: 1.45;
  background:
    radial-gradient(1100px 540px at -10% -14%, rgba(30, 145, 220, 0.18) 0%, transparent 58%),
    radial-gradient(900px 460px at 102% 0%, rgba(13, 168, 127, 0.14) 0%, transparent 52%),
    linear-gradient(180deg, #f4f9ff 0%, var(--bg) 56%, #e9f0f7 100%);
  background-attachment: fixed;
}

h1,
h2,
h3,
th {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

a {
  color: inherit;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card,
.card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}

.auth-card {
  width: min(470px, 94vw);
  padding: 34px;
  position: relative;
  overflow: hidden;
  animation: enter-up 0.35s ease;
}

.auth-logo-block {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}

.auth-logo {
  width: min(240px, 78%);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(31, 86, 146, 0.25));
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--brand) 0%, #1e95d8 42%, var(--accent) 100%);
}

.auth-card h1 {
  margin: 0;
  font-size: 1.58rem;
  color: var(--ink-strong);
}

.auth-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-card small {
  display: block;
  margin-top: 14px;
  color: #73869a;
  font-size: 0.78rem;
}

.auth-inline-link {
  display: inline-flex;
  align-items: center;
  margin: 2px 0 6px;
  color: #0f6da8;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-inline-link:hover {
  color: #0a4f7e;
  text-decoration: underline;
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: #2f5772;
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-card form,
.grid-form {
  display: grid;
  gap: 10px;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  padding-right: 44px;
}

.password-input-wrap .password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px !important;
  min-width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.95rem;
  line-height: 1;
}

.password-input-wrap .password-toggle:hover {
  transform: translateY(-50%);
}

.password-input-wrap .password-toggle.is-visible {
  border-color: #8fc2e3;
  background: linear-gradient(180deg, #f4faff 0%, #e4f2ff 100%);
  color: #1d4f73;
}

.auth-actions {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #345067;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-strong);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder,
select:invalid,
textarea::placeholder {
  color: #8ca1b7;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #6aa9d1;
  box-shadow: 0 0 0 4px rgba(15, 109, 168, 0.14);
  background: #fcfeff;
}

button {
  border: 0;
  border-radius: var(--radius-sm);
  min-height: 40px;
  padding: 10px 15px;
  background: linear-gradient(155deg, #1381c6 0%, var(--brand) 58%, var(--brand-strong) 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 15px rgba(10, 79, 126, 0.23);
}

button:hover {
  transform: translateY(-1px);
  filter: saturate(1.03);
}

button:active {
  transform: translateY(0);
}

button.secondary {
  color: #22425d;
  border: 1px solid #c9d9e8;
  background: linear-gradient(180deg, #ffffff 0%, #edf4fb 100%);
  box-shadow: 0 3px 8px rgba(20, 48, 74, 0.08);
}

button.secondary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e6f0fa 100%);
}

button.secondary.is-active {
  color: #0b4f7c;
  border-color: #94bfdf;
  background: linear-gradient(180deg, #eef7ff 0%, #dceeff 100%);
  box-shadow: 0 4px 10px rgba(15, 93, 145, 0.16);
}

button:disabled,
button[disabled] {
  opacity: 0.54;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-card button,
.grid-form button,
.auth-actions button,
#logoutBtn {
  width: 100%;
}

.auth-card .password-input-wrap .password-toggle {
  width: 32px !important;
}

.row-actions button,
.inline-actions button,
.section-header > button,
.router-history-tabs button {
  width: auto;
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.8rem;
  border-radius: 9px;
}

.error {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-body {
  min-height: 100vh;
}

.dashboard-shell {
  width: min(1820px, calc(100% - 24px));
  margin: 14px auto 18px;
  padding: 10px;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 16px;
}

.sidebar-column {
  position: sticky;
  top: 12px;
  align-self: start;
  display: grid;
  gap: 10px;
}

.dashboard-shell .sidebar.card {
  padding: 24px 20px;
  display: grid;
  gap: 20px;
  color: #dbe9f5;
  border-color: rgba(209, 228, 243, 0.24);
  background:
    radial-gradient(420px 220px at 92% -24%, rgba(97, 194, 235, 0.32), transparent 65%),
    linear-gradient(165deg, #0a2033 0%, #0f3450 42%, #145c85 100%);
}

.eyebrow {
  margin: 0 0 7px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9bc8e5;
  font-weight: 700;
}

.sidebar h1 {
  margin: 0;
  line-height: 1.06;
  font-size: 1.45rem;
  color: #f5fbff;
}

.welcome {
  margin: 11px 0 0;
  color: #d1e7f7;
  font-size: 0.9rem;
}

.sidebar-top-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8px 2px;
}

.brand-logo {
  width: min(210px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(5, 19, 34, 0.5));
  transition: transform 0.24s ease, filter 0.24s ease;
  transform-origin: center;
}

.nav-grid {
  display: grid;
  gap: 9px;
}

.nav-link {
  text-decoration: none;
}

.nav-chip {
  display: block;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(226, 241, 252, 0.22);
  background: rgba(255, 255, 255, 0.09);
  color: #e9f6ff;
  font-weight: 600;
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.2s ease;
}

.nav-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(226, 241, 252, 0.42);
  box-shadow: inset 0 0 0 1px rgba(226, 241, 252, 0.14);
}

body[data-page="dashboard"] .nav-link[href$="/dashboard"],
body[data-page="companies"] .nav-link[href$="/companies"],
body[data-page="users"] .nav-link[href$="/users"],
body[data-page="routers"] .nav-link[href$="/routers"],
body[data-page="routers-manage"] .nav-link[href$="/routers/manage"],
body[data-page="logs"] .nav-link[href$="/logs"],
body[data-page="releases"] .nav-link[href$="/releases"],
body[data-page="ops-health"] .nav-link[href$="/ops-health"] {
  border-color: rgba(212, 240, 255, 0.82);
  background: linear-gradient(130deg, rgba(205, 238, 255, 0.3) 0%, rgba(163, 223, 255, 0.23) 100%);
  box-shadow: inset 0 0 0 1px rgba(208, 236, 252, 0.33), 0 4px 10px rgba(6, 27, 44, 0.16);
}

body[data-page="dashboard"] {
  background:
    radial-gradient(920px 420px at -8% -6%, rgba(31, 144, 214, 0.18), transparent 60%),
    radial-gradient(760px 380px at 108% -2%, rgba(22, 165, 130, 0.12), transparent 60%),
    linear-gradient(165deg, #edf4fb 0%, #e6f0f9 50%, #eef6ef 100%);
}

body[data-page="dashboard"] .layout {
  gap: 18px;
}

body[data-page="dashboard"] .card {
  position: relative;
  overflow: hidden;
  border-color: #d3e1ec;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 255, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(9, 30, 48, 0.12);
}

body[data-page="dashboard"] .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(32, 152, 220, 0.9) 0%, rgba(24, 172, 132, 0.9) 52%, rgba(223, 159, 38, 0.82) 100%);
}

body[data-page="dashboard"] .card::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -120px;
  top: -160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(151, 211, 245, 0.28) 0%, rgba(151, 211, 245, 0) 70%);
  pointer-events: none;
  opacity: 0.5;
}

body[data-page="dashboard"] .dashboard-hero-card {
  padding: 24px;
  background:
    radial-gradient(520px 260px at -6% -14%, rgba(83, 196, 255, 0.28), transparent 56%),
    radial-gradient(420px 220px at 108% -8%, rgba(74, 220, 188, 0.24), transparent 58%),
    linear-gradient(135deg, #10263f 0%, #123d5b 44%, #0f6a68 100%);
  color: #f5fbff;
  box-shadow: 0 24px 44px rgba(8, 26, 40, 0.2);
}

body[data-page="dashboard"] .dashboard-hero-card::before {
  height: 4px;
  background: linear-gradient(90deg, rgba(108, 216, 255, 0.98) 0%, rgba(72, 227, 177, 0.94) 44%, rgba(255, 198, 95, 0.92) 100%);
}

body[data-page="dashboard"] .dashboard-hero-card::after {
  width: 380px;
  height: 380px;
  right: -120px;
  top: -190px;
  background: radial-gradient(circle, rgba(177, 226, 250, 0.24) 0%, rgba(177, 226, 250, 0) 72%);
  opacity: 0.82;
}

body[data-page="dashboard"] .dashboard-hero-card .eyebrow,
body[data-page="dashboard"] .dashboard-hero-card h2,
body[data-page="dashboard"] .dashboard-hero-card .muted-line,
body[data-page="dashboard"] .dashboard-hero-card h3,
body[data-page="dashboard"] .dashboard-hero-card small,
body[data-page="dashboard"] .dashboard-hero-card span,
body[data-page="dashboard"] .dashboard-hero-card strong,
body[data-page="dashboard"] .dashboard-hero-card p {
  color: inherit;
}

body[data-page="dashboard"] .dashboard-hero-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 22px;
  margin-bottom: 18px;
  align-items: stretch;
}

body[data-page="dashboard"] .dashboard-hero-copy {
  display: grid;
  gap: 16px;
}

body[data-page="dashboard"] .dashboard-hero-copy h2 {
  margin: 0;
  max-width: 9ch;
  font-family: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

body[data-page="dashboard"] .dashboard-hero-copy .muted-line {
  margin: 0;
  max-width: 62ch;
  color: rgba(221, 239, 251, 0.84);
  font-size: 1rem;
  line-height: 1.65;
}

body[data-page="dashboard"] .dashboard-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body[data-page="dashboard"] .dashboard-hero-links a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(193, 232, 250, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f1fbff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body[data-page="dashboard"] .dashboard-hero-links a.secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(219, 244, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
}

body[data-page="dashboard"] .dashboard-hero-links a.secondary.is-primary {
  border-color: rgba(231, 244, 252, 0.42);
  background: rgba(255, 255, 255, 0.18);
}

body[data-page="dashboard"] .dashboard-hero-radar {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(181, 224, 245, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 30px rgba(7, 25, 39, 0.14);
}

body[data-page="dashboard"] .dashboard-hero-radar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

body[data-page="dashboard"] .dashboard-hero-radar-kicker,
body[data-page="dashboard"] .dashboard-section-kicker {
  display: block;
  margin-bottom: 5px;
  color: rgba(214, 239, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-page="dashboard"] .dashboard-section-kicker {
  color: #67859a;
}

body[data-page="dashboard"] .dashboard-hero-radar-head strong {
  display: block;
  font-family: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 1.16rem;
  line-height: 1.1;
}

body[data-page="dashboard"] .dashboard-hero-radar .muted-line {
  margin: 0;
  color: rgba(220, 240, 252, 0.8);
}

body[data-page="dashboard"] .dashboard-hero-radar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="dashboard"] .dashboard-hero-radar-item {
  padding: 14px 15px;
  border: 1px solid rgba(189, 229, 248, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
}

body[data-page="dashboard"] .dashboard-hero-radar-item span,
body[data-page="dashboard"] .dashboard-summary-grid .dashboard-kpi-card small {
  color: rgba(219, 240, 252, 0.76);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page="dashboard"] .dashboard-hero-radar-item strong {
  display: block;
  margin-top: 10px;
  font-size: 1.16rem;
  line-height: 1.2;
}

body[data-page="dashboard"] .dashboard-hero-card .pill {
  border-color: rgba(198, 232, 249, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body[data-page="dashboard"] .dashboard-hero-card .pill.is-ok {
  background: rgba(39, 187, 118, 0.18);
  border-color: rgba(107, 229, 170, 0.28);
}

body[data-page="dashboard"] .dashboard-hero-card .pill.is-warn {
  background: rgba(219, 163, 58, 0.18);
  border-color: rgba(255, 210, 131, 0.28);
}

body[data-page="dashboard"] .dashboard-hero-card .pill.is-danger {
  background: rgba(218, 94, 76, 0.2);
  border-color: rgba(248, 156, 143, 0.3);
}

body[data-page="dashboard"] .dashboard-summary-grid {
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

body[data-page="dashboard"] .dashboard-summary-grid .dashboard-kpi-card {
  min-height: 132px;
  align-items: flex-start;
  text-align: left;
  border-color: rgba(183, 226, 247, 0.18);
  background:
    radial-gradient(240px 140px at 108% -8%, rgba(255, 255, 255, 0.12) 0%, transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(10px);
}

body[data-page="dashboard"] .dashboard-summary-grid .dashboard-kpi-card p {
  color: rgba(220, 240, 252, 0.74);
}

body[data-page="dashboard"] .dashboard-summary-grid .dashboard-kpi-card strong {
  color: #ffffff;
  text-align: left;
  font-size: 2rem;
}

body[data-page="dashboard"] .dashboard-summary-grid .dashboard-kpi-card small {
  display: block;
  margin-top: auto;
}

body[data-page="dashboard"] .dashboard-summary-grid .dashboard-kpi-card.is-offline strong {
  color: #ffd2d8;
}

body[data-page="dashboard"] .dashboard-focus-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(460px, 1.08fr);
  gap: 18px;
  align-items: start;
}

body[data-page="dashboard"] .dashboard-profile-rail {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

body[data-page="dashboard"] #dashboardProfileSummary {
  margin: 0;
  max-width: 720px;
}

body[data-page="dashboard"] .dashboard-turn-card {
  background:
    radial-gradient(340px 200px at 100% -18%, rgba(160, 216, 243, 0.22), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #f2f8fd 100%);
}

body[data-page="dashboard"] .dashboard-turn-trend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

body[data-page="dashboard"] .dashboard-turn-trend-card {
  display: grid;
  gap: 10px;
  min-height: 142px;
  padding: 16px;
  border: 1px solid #d5e5f1;
  border-radius: 20px;
  background:
    radial-gradient(220px 120px at 100% -20%, rgba(170, 218, 244, 0.2), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 20px rgba(14, 43, 67, 0.08);
}

body[data-page="dashboard"] .dashboard-turn-trend-card.is-ok {
  border-color: rgba(88, 189, 137, 0.26);
}

body[data-page="dashboard"] .dashboard-turn-trend-card.is-warn {
  border-color: rgba(223, 180, 93, 0.32);
}

body[data-page="dashboard"] .dashboard-turn-trend-card.is-danger {
  border-color: rgba(220, 106, 85, 0.28);
}

body[data-page="dashboard"] .dashboard-turn-trend-card span {
  color: #66849a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body[data-page="dashboard"] .dashboard-turn-trend-card strong {
  color: #16324b;
  font-size: 2rem;
  line-height: 1.05;
}

body[data-page="dashboard"] .dashboard-turn-trend-card small {
  color: #5a7990;
  line-height: 1.5;
}

body[data-page="dashboard"] .dashboard-turn-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="dashboard"] .dashboard-turn-lane {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid #d6e5f0;
  border-radius: 20px;
  background:
    radial-gradient(220px 120px at 100% -20%, rgba(166, 214, 243, 0.16), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 18px rgba(15, 45, 67, 0.06);
}

body[data-page="dashboard"] .dashboard-turn-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-page="dashboard"] .dashboard-turn-lane-head h3 {
  margin: 0;
  color: #18354e;
  font-size: 0.98rem;
}

body[data-page="dashboard"] .dashboard-turn-list,
body[data-page="dashboard"] .dashboard-turn-drilldown-list {
  display: grid;
  gap: 10px;
}

body[data-page="dashboard"] .dashboard-turn-drilldown-list a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #cadcea;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #edf5fb 100%);
  color: #21435f;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 14px rgba(18, 47, 72, 0.08);
}

body[data-page="dashboard"] .dashboard-turn-drilldown-list a.secondary.is-primary {
  border-color: #a8cae5;
  background: linear-gradient(180deg, #eef8ff 0%, #dceeff 100%);
  color: #0d5483;
}

body[data-page="dashboard"] .dashboard-turn-list-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d7e6f2;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 251, 255, 0.96) 100%);
}

body[data-page="dashboard"] .dashboard-turn-list-item.is-ok {
  border-color: rgba(88, 189, 137, 0.26);
}

body[data-page="dashboard"] .dashboard-turn-list-item.is-warn {
  border-color: rgba(223, 180, 93, 0.32);
}

body[data-page="dashboard"] .dashboard-turn-list-item.is-danger {
  border-color: rgba(220, 106, 85, 0.28);
}

body[data-page="dashboard"] .dashboard-turn-list-item.is-empty {
  min-height: 124px;
  align-content: center;
}

body[data-page="dashboard"] .dashboard-turn-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body[data-page="dashboard"] .dashboard-turn-list-item strong {
  color: #16324b;
}

body[data-page="dashboard"] .dashboard-turn-list-item p,
body[data-page="dashboard"] .dashboard-turn-list-item small {
  margin: 0;
  color: #56748b;
  line-height: 1.45;
}

body[data-page="dashboard"] .dashboard-turn-inline-link {
  color: #1d5c84;
  font-weight: 700;
  text-decoration: none;
}

body[data-page="dashboard"] .dashboard-turn-inline-link:hover {
  text-decoration: underline;
}

body[data-page="dashboard"] .dashboard-pulse-card {
  background:
    radial-gradient(340px 180px at 100% -20%, rgba(165, 220, 246, 0.22), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #f2f8fd 100%);
}

body[data-page="dashboard"] .dashboard-signal-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

body[data-page="dashboard"] .dashboard-signal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #d4e3ef;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%);
  color: #456278;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body[data-page="dashboard"] .dashboard-signal-chip.is-ok {
  border-color: rgba(64, 179, 124, 0.28);
  background: rgba(64, 179, 124, 0.1);
  color: #156345;
}

body[data-page="dashboard"] .dashboard-signal-chip.is-warn {
  border-color: rgba(207, 157, 52, 0.28);
  background: rgba(220, 170, 72, 0.12);
  color: #8b5d12;
}

body[data-page="dashboard"] .dashboard-signal-chip.is-danger {
  border-color: rgba(216, 101, 79, 0.26);
  background: rgba(226, 114, 93, 0.12);
  color: #8f2e24;
}

body[data-page="dashboard"] .dashboard-pulse-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

body[data-page="dashboard"] .dashboard-pulse-item {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 16px;
  border: 1px solid #d7e5f1;
  border-radius: 20px;
  background:
    radial-gradient(220px 120px at 100% -26%, rgba(168, 215, 241, 0.2), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 22px rgba(12, 39, 62, 0.08);
}

body[data-page="dashboard"] .dashboard-pulse-item.is-ok {
  border-color: rgba(88, 189, 137, 0.28);
}

body[data-page="dashboard"] .dashboard-pulse-item.is-warn {
  border-color: rgba(223, 180, 93, 0.32);
}

body[data-page="dashboard"] .dashboard-pulse-item.is-danger {
  border-color: rgba(220, 106, 85, 0.28);
}

body[data-page="dashboard"] .dashboard-pulse-item.is-empty {
  grid-column: 1 / -1;
}

body[data-page="dashboard"] .dashboard-pulse-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

body[data-page="dashboard"] .dashboard-pulse-kind,
body[data-page="dashboard"] .dashboard-pulse-time {
  color: #67859a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="dashboard"] .dashboard-pulse-item strong {
  color: #15314a;
  font-size: 1rem;
  line-height: 1.3;
}

body[data-page="dashboard"] .dashboard-pulse-item p {
  margin: 0;
  color: #49667f;
  line-height: 1.55;
}

body[data-page="dashboard"] .dashboard-pulse-item small {
  color: #63829a;
  line-height: 1.45;
}

body[data-page="dashboard"] .dashboard-slo-card,
body[data-page="dashboard"] .dashboard-map-card {
  min-height: 100%;
}

body[data-page="dashboard"] .dashboard-slo-card {
  background:
    radial-gradient(320px 160px at 100% -24%, rgba(173, 221, 246, 0.26), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #f2f8fd 100%);
}

body[data-page="dashboard"] .dashboard-slo-grid .dashboard-kpi-card {
  border-color: #d7e5f1;
  background:
    radial-gradient(240px 120px at 100% -20%, rgba(161, 211, 242, 0.18), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

body[data-page="dashboard"] .dashboard-map-card {
  background:
    radial-gradient(320px 180px at 0% -18%, rgba(165, 219, 248, 0.24), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #f1f8fd 100%);
}

body[data-page="dashboard"] .dashboard-map-card .section-header,
body[data-page="dashboard"] .dashboard-slo-card .section-header {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d6e4ef;
  align-items: flex-start;
}

body[data-page="dashboard"] .dashboard-map-card .section-header .muted-line,
body[data-page="dashboard"] .dashboard-slo-card .section-header .muted-line {
  margin: 0;
}

body[data-page="dashboard"] .dashboard-map-frame {
  min-height: 390px;
  border-color: #d4e3ef;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 20px rgba(10, 38, 58, 0.08);
}

body[data-page="dashboard"] .dashboard-map-empty {
  color: #53708a;
}

body[data-page="dashboard"] .dashboard-map-legend {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}

.layout {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.card {
  padding: 18px;
  animation: enter-up 0.28s ease;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(249, 253, 255, 0.97) 100%);
}

.card h2 {
  margin: 0 0 10px;
  color: var(--ink-strong);
  font-size: 1.18rem;
}

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

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid #dbe7f2;
  padding: 14px;
  background:
    radial-gradient(220px 120px at 110% 0%, rgba(35, 147, 218, 0.12) 0%, transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #f4f9ff 76%, #eef6ff 100%);
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(15, 109, 168, 0.2), rgba(12, 155, 119, 0.58));
}

.stat-card p {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.73rem;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.stat-card strong {
  color: var(--ink-strong);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

#summarySection .stats-grid .stat-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
}

#summarySection .stats-grid .stat-card p {
  margin: 0;
}

#summarySection .stats-grid .stat-card strong {
  display: block;
  width: 100%;
  text-align: center;
}

#summarySection .stats-grid .dashboard-kpi-card {
  --kpi-accent: 15, 109, 168;
  border-color: #d4e5f3;
  background:
    radial-gradient(240px 140px at 108% -8%, rgba(var(--kpi-accent), 0.14) 0%, transparent 60%),
    linear-gradient(162deg, #ffffff 0%, #f4f9ff 78%, #edf6ff 100%);
  transition: transform 0.2s ease, box-shadow 0.24s ease, border-color 0.22s ease, background 0.24s ease;
}

#summarySection .stats-grid .dashboard-kpi-card p,
#summarySection .stats-grid .dashboard-kpi-card strong {
  transition: color 0.24s ease, text-shadow 0.24s ease;
}

#summarySection .stats-grid .dashboard-kpi-card.kpi-companies {
  --kpi-accent: 29, 143, 220;
}

#summarySection .stats-grid .dashboard-kpi-card.kpi-users {
  --kpi-accent: 10, 133, 116;
}

#summarySection .stats-grid .dashboard-kpi-card.kpi-routers {
  --kpi-accent: 44, 118, 212;
}

#summarySection .stats-grid .dashboard-kpi-card.kpi-offline {
  --kpi-accent: 186, 51, 72;
}

#summarySection .stats-grid .dashboard-kpi-card.is-offline strong {
  color: #a92a3f;
}

@media (hover: hover) and (pointer: fine) {
  .sidebar-top-logo:hover .brand-logo {
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 14px 30px rgba(8, 24, 42, 0.62)) saturate(1.08);
  }

  #summarySection .stats-grid .dashboard-kpi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--kpi-accent), 0.44);
    box-shadow: 0 14px 28px rgba(var(--kpi-accent), 0.22);
    background:
      radial-gradient(250px 150px at 108% -8%, rgba(var(--kpi-accent), 0.24) 0%, transparent 62%),
      linear-gradient(162deg, #ffffff 0%, #f2f9ff 78%, #ebf4ff 100%);
  }

  #summarySection .stats-grid .dashboard-kpi-card:hover p {
    color: #36566f;
  }

  #summarySection .stats-grid .dashboard-kpi-card:hover strong {
    color: #103d64;
    text-shadow: 0 8px 18px rgba(var(--kpi-accent), 0.24);
  }

  #summarySection .stats-grid .dashboard-kpi-card.is-offline:hover strong {
    color: #b12f44;
    text-shadow: 0 8px 18px rgba(186, 51, 72, 0.28);
  }
}

body[data-page="dashboard"] #summarySection .dashboard-summary-grid .dashboard-kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
  border-color: rgba(183, 226, 247, 0.18);
  background:
    radial-gradient(240px 140px at 108% -8%, rgba(255, 255, 255, 0.12) 0%, transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 24px rgba(7, 24, 38, 0.12);
}

body[data-page="dashboard"] #summarySection .dashboard-summary-grid .dashboard-kpi-card p {
  margin: 0;
  color: rgba(220, 240, 252, 0.74);
}

body[data-page="dashboard"] #summarySection .dashboard-summary-grid .dashboard-kpi-card strong {
  display: block;
  width: auto;
  text-align: left;
  color: #ffffff;
  font-size: 2rem;
}

body[data-page="dashboard"] #summarySection .dashboard-summary-grid .dashboard-kpi-card small {
  display: block;
  margin-top: auto;
  color: rgba(219, 240, 252, 0.76);
}

body[data-page="dashboard"] #summarySection .dashboard-summary-grid .dashboard-kpi-card.is-offline strong {
  color: #ffd2d8;
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="dashboard"] #summarySection .dashboard-summary-grid .dashboard-kpi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 244, 255, 0.28);
    box-shadow: 0 16px 28px rgba(10, 35, 54, 0.22);
    background:
      radial-gradient(250px 150px at 108% -8%, rgba(255, 255, 255, 0.18) 0%, transparent 62%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
  }

  body[data-page="dashboard"] #summarySection .dashboard-summary-grid .dashboard-kpi-card:hover p {
    color: rgba(231, 246, 255, 0.82);
  }

  body[data-page="dashboard"] #summarySection .dashboard-summary-grid .dashboard-kpi-card:hover strong {
    color: #ffffff;
    text-shadow: 0 10px 22px rgba(31, 138, 203, 0.18);
  }

  body[data-page="dashboard"] #summarySection .dashboard-summary-grid .dashboard-kpi-card.is-offline:hover strong {
    color: #ffd2d8;
    text-shadow: 0 10px 22px rgba(186, 51, 72, 0.24);
  }
}

.dashboard-map-card {
  overflow: hidden;
}

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

.dashboard-slo-card .stat-card {
  min-height: 110px;
  display: grid;
  align-content: center;
}

.dashboard-map-card .section-header {
  margin-bottom: 12px;
}

.dashboard-map-card .section-header .muted-line {
  margin: 0;
}

.dashboard-map-frame {
  position: relative;
  min-height: 360px;
  border: 1px solid #d8e7f3;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(360px 200px at -14% -22%, rgba(29, 140, 210, 0.14), transparent 66%),
    linear-gradient(180deg, #f9fcff 0%, #eff6fd 100%);
}

.dashboard-routers-map {
  height: 420px;
  width: 100%;
}

.dashboard-map-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  color: #4f6a82;
  font-weight: 600;
}

.dashboard-map-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38556e;
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-map-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72), 0 0 0 3px rgba(40, 67, 92, 0.15);
}

.dashboard-map-dot.is-online {
  background: #0f8a63;
}

.dashboard-map-dot.is-offline {
  background: #ba3348;
}

.dashboard-map-dot.is-unknown {
  background: #c1891e;
}

.dashboard-router-marker-icon {
  background: transparent !important;
  border: 0 !important;
}

.dashboard-router-marker {
  width: 36px;
  height: 44px;
  filter: drop-shadow(0 5px 8px rgba(10, 38, 60, 0.32));
  transform: translateY(-1px);
}

.dashboard-router-marker svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dashboard-router-cluster-marker {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.34), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, var(--router-cluster-color) 100%);
  box-shadow: 0 12px 18px rgba(11, 41, 64, 0.2);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
}

.dashboard-map-popup-cluster ul {
  margin: 4px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
}

.dashboard-map-popup-cluster li {
  display: grid;
  gap: 2px;
}

.dashboard-map-popup {
  display: grid;
  gap: 4px;
  color: #1f3448;
  font-size: 0.78rem;
  min-width: 190px;
}

.dashboard-map-popup strong {
  font-size: 0.92rem;
  color: #10273c;
}

.dashboard-map-popup small {
  display: block;
  color: #3b5670;
  line-height: 1.35;
}

.dashboard-routers-map .leaflet-popup-content-wrapper {
  border-radius: 11px;
  border: 1px solid #d1e3f2;
  box-shadow: 0 12px 22px rgba(10, 37, 58, 0.16);
}

.dashboard-routers-map .leaflet-popup-content {
  margin: 10px 12px;
}

.dashboard-routers-map .leaflet-control-zoom a {
  color: #12304a;
}

.section-header {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

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

.inline-actions select {
  min-width: 210px;
}

.inline-actions input[type="search"] {
  min-width: 290px;
}

.surface-hero__grid {
  display: grid;
  gap: 22px;
  align-items: stretch;
}

.surface-hero__copy {
  display: grid;
  gap: 16px;
}

.surface-hero__ribbon,
.surface-hero__action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-section-kicker {
  letter-spacing: 0.12em;
}

.ops-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-summary-card {
  position: relative;
  overflow: hidden;
}

.ops-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(71, 151, 212, 0.82), rgba(100, 207, 189, 0.7), rgba(231, 184, 91, 0.72));
  opacity: 0.58;
}

.ops-feed-card {
  background:
    radial-gradient(340px 180px at 100% -20%, rgba(165, 220, 246, 0.22), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #f2f8fd 100%);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.89rem;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #f5f9fd 0%, #eef4fa 100%);
  color: #4a6278;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr:nth-child(even) td {
  background: #fbfdff;
}

tbody tr:hover td {
  background: #eef7ff;
}

tbody tr.router-row-selected td {
  background: #dff0ff;
}

.audit-log-table {
  min-width: 0;
  table-layout: fixed;
}

.audit-log-table th,
.audit-log-table td {
  white-space: normal;
}

.audit-log-table th:nth-child(1),
.audit-log-table td:nth-child(1) {
  width: 140px;
}

.audit-log-table th:nth-child(2),
.audit-log-table td:nth-child(2) {
  width: 150px;
}

.audit-log-table th:nth-child(3),
.audit-log-table td:nth-child(3) {
  width: 26%;
}

.audit-log-table th:nth-child(4),
.audit-log-table td:nth-child(4) {
  width: 18%;
}

.audit-log-table th:nth-child(5),
.audit-log-table td:nth-child(5) {
  width: 14%;
}

.audit-log-table th:nth-child(6),
.audit-log-table td:nth-child(6) {
  width: 110px;
}

.audit-log-table th:nth-child(7),
.audit-log-table td:nth-child(7) {
  width: 132px;
}

.audit-log-table th:nth-child(8),
.audit-log-table td:nth-child(8) {
  width: 32%;
}

.release-table {
  min-width: 0;
  table-layout: fixed;
}

.release-table th,
.release-table td {
  white-space: normal;
}

.release-table th:nth-child(1),
.release-table td:nth-child(1) {
  width: 140px;
}

.release-table th:nth-child(2),
.release-table td:nth-child(2) {
  width: 200px;
}

.release-table th:nth-child(3),
.release-table td:nth-child(3) {
  width: 90px;
}

.release-table th:nth-child(4),
.release-table td:nth-child(4) {
  width: 130px;
}

.release-table th:nth-child(5),
.release-table td:nth-child(5) {
  width: 110px;
}

.release-table th:nth-child(6),
.release-table td:nth-child(6) {
  width: 95px;
}

.release-table th:nth-child(7),
.release-table td:nth-child(7) {
  width: 220px;
}

.release-table th:nth-child(8),
.release-table td:nth-child(8) {
  width: 220px;
}

.audit-nowrap {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.audit-cell-event,
.audit-cell-entity,
.audit-cell-date {
  white-space: nowrap;
}

.audit-cell-status {
  white-space: nowrap;
}

.audit-event-code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.79rem;
}

.audit-severity {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.audit-severity-info {
  color: #285f86;
  background: #e4f1fb;
}

.audit-severity-warning {
  color: #8f5c09;
  background: #fff1d9;
}

.audit-severity-security {
  color: #0f6f52;
  background: #e3f7ee;
}

.audit-severity-error {
  color: #9d2437;
  background: #ffe5ea;
}

.audit-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.audit-status-neutral {
  color: #5a6f83;
  background: #edf3f8;
  border-color: #d2dfe9;
}

.audit-status-warning {
  color: #89580b;
  background: #fff1d8;
  border-color: #efd6a8;
}

.audit-status-success {
  color: #0d6b4f;
  background: #e2f6ed;
  border-color: #bde4d3;
}

.audit-status-error {
  color: #9a2236;
  background: #ffe5ea;
  border-color: #f6c4cf;
}

.audit-cell-message,
.audit-cell-actor,
.audit-cell-company {
  overflow: hidden;
}

.audit-line-clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  line-height: 1.35;
}

.audit-cell-actor,
.audit-cell-company {
  display: table-cell;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-log-details {
  max-width: 100%;
}

.audit-log-details summary {
  cursor: pointer;
  color: #0f6197;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audit-log-details-body {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  color: #2f4a61;
  font-size: 0.78rem;
}

.audit-log-details-body p {
  margin: 0;
  word-break: break-word;
}

.audit-latest-deploy-card {
  border: 1px solid #d9e7f3;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fcff 0%, #f1f7ff 100%);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.audit-latest-deploy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.audit-latest-deploy-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #3b5970;
  border-radius: 999px;
  border: 1px solid #c4d8e8;
  padding: 2px 10px;
  background: #fff;
}

.audit-latest-deploy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px 12px;
  font-size: 0.8rem;
  color: #2f4a61;
}

.audit-latest-deploy-migrations p {
  margin: 0 0 4px;
}

.audit-latest-deploy-list {
  margin: 0;
  padding-left: 18px;
  max-height: 120px;
  overflow: auto;
  color: #2f4a61;
}

.audit-latest-deploy-list li {
  margin: 0 0 2px;
}

.audit-latest-deploy-empty {
  color: #587088;
  font-size: 0.8rem;
}

.audit-latest-deploy-error {
  margin: 0;
  color: #8f2235;
  font-size: 0.8rem;
}

.audit-mysql-block {
  margin: 2px 0 4px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #d7e6f2;
  background: #f5faff;
}

.audit-mysql-list {
  margin: 0;
  padding-left: 18px;
  max-height: 130px;
  overflow: auto;
  color: #2f4a61;
}

.audit-mysql-list li {
  margin: 0 0 2px;
}

.audit-context-block {
  margin: 0;
  border: 1px solid #dbe8f3;
  border-radius: 8px;
  padding: 8px;
  max-height: 150px;
  overflow: auto;
  background: #f7fbff;
  color: #36526a;
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.row-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.row-actions button {
  border-radius: 8px;
}

.router-table-action-menu {
  position: relative;
  min-width: 0;
}

.router-table-action-menu-portal {
  position: fixed;
  inset: 0;
  z-index: 640;
  pointer-events: none;
}

.router-table-action-menu-portal .router-table-action-list {
  pointer-events: auto;
}

.router-table-action-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  user-select: none;
  color: #22425d;
  border: 1px solid #c9d9e8;
  border-radius: 9px;
  min-height: 32px;
  min-width: 64px;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #edf4fb 100%);
  box-shadow: 0 3px 8px rgba(20, 48, 74, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.router-table-action-menu > summary::-webkit-details-marker {
  display: none;
}

.router-table-action-menu > summary:hover {
  transform: translateY(-1px);
}

.router-table-action-menu[open] > summary {
  border-color: #2190d1;
  box-shadow: 0 7px 14px rgba(18, 62, 95, 0.2);
}

.router-table-action-list {
  position: fixed;
  top: var(--router-action-menu-top, 64px);
  left: var(--router-action-menu-left, 10px);
  right: auto;
  bottom: auto;
  z-index: 620;
  min-width: 0;
  width: var(--router-action-menu-width, min(320px, calc(100vw - 20px)));
  max-height: var(--router-action-menu-max-height, min(56vh, 320px));
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 10px;
  border: 1px solid #d2e3f1;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbfe 0%, #edf5fc 100%);
  box-shadow: 0 12px 24px rgba(18, 45, 67, 0.17);
  overscroll-behavior: contain;
}

.router-table-action-menu.is-open-up .router-table-action-list {
  top: auto;
  bottom: var(--router-action-menu-bottom, 10px);
}

.router-table-action-list.is-open-up {
  top: auto;
  bottom: var(--router-action-menu-bottom, 10px);
}

.router-table-action-menu[open] .router-table-action-list {
  animation: router-table-action-menu-in 0.16s ease;
  transform-origin: top right;
}

.router-table-action-list.is-portal-open {
  animation: router-table-action-menu-in 0.16s ease;
  transform-origin: top right;
}

.router-table-action-menu.is-open-up[open] .router-table-action-list {
  transform-origin: bottom right;
}

.router-table-action-list.is-portal-open.is-open-up {
  transform-origin: bottom right;
}

@keyframes router-table-action-menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.router-table-action-list .router-table-action-btn {
  --router-action-accent: #2a8dc9;
  width: 100%;
  text-align: left;
  min-height: 38px;
  white-space: normal;
  line-height: 1.24;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 8px 9px 8px 13px;
  border: 1px solid #cadaec;
  color: #1f4b68;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  box-shadow: inset 3px 0 0 var(--router-action-accent), 0 2px 6px rgba(20, 48, 74, 0.08);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.router-table-action-list .router-table-action-btn[data-action="edit-router"] {
  --router-action-accent: #2b86ce;
}

.router-table-action-list .router-table-action-btn[data-action="monitor"],
.router-table-action-list .router-table-action-btn[data-action="test"] {
  --router-action-accent: #138fbe;
}

.router-table-action-list .router-table-action-btn[data-action="snapshot"] {
  --router-action-accent: #157f67;
}

.router-table-action-list .router-table-action-btn[data-action="provision"] {
  --router-action-accent: #2f9a4b;
}

.router-table-action-list .router-table-action-btn[data-action="backup"] {
  --router-action-accent: #2d66be;
}

.router-table-action-list .router-table-action-btn[data-action="reboot"] {
  --router-action-accent: #cf7d1f;
}

.router-table-action-list .router-table-action-btn[data-action="update"] {
  --router-action-accent: #b96315;
}

.router-table-action-list .router-table-action-btn:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: #9fc2df;
  background: linear-gradient(180deg, #ffffff 0%, #eaf4ff 100%);
  box-shadow: inset 3px 0 0 var(--router-action-accent), 0 8px 15px rgba(16, 50, 79, 0.16);
}

.router-table-action-list .router-table-action-btn:focus-visible {
  outline: none;
  border-color: #2892d3;
  box-shadow: inset 3px 0 0 var(--router-action-accent), 0 0 0 2px rgba(40, 146, 211, 0.22);
}

.router-table-action-list .router-table-action-btn:disabled {
  opacity: 0.62;
  color: #5f7588;
  background: linear-gradient(180deg, #f9fbfd 0%, #edf3f8 100%);
  box-shadow: inset 3px 0 0 #b8c9d7;
}

.router-table-action-hint {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px dashed #bfd5e7;
  border-radius: 10px;
  background: linear-gradient(180deg, #fafdff 0%, #eef6fd 100%);
  color: #3f617b;
  font-size: 0.68rem;
  line-height: 1.25;
  display: flex;
  align-items: center;
}

body[data-page="routers"] #routerListSection .row-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

body[data-page="routers"] #routerListSection .router-table-action-menu {
  width: auto;
  min-width: 0;
}

body[data-page="routers"] #routerListSection .router-table-action-menu > summary {
  width: auto;
  min-width: 64px;
}

body[data-page="routers"] #routerListSection .router-table-action-list {
  position: fixed;
  margin-top: 0;
}

body[data-page="routers"] #routerListSection .router-table-action-list .router-table-action-btn {
  white-space: normal;
}

.muted-line {
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.router-summary-grid .stat-card strong {
  font-size: 1.82rem;
}

.monitor-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.monitor-cards.monitor-cards-xl {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.monitor-cards .stat-card {
  border-color: #d8e7f3;
}

.monitor-cards .router-monitor-card {
  --monitor-accent: 15, 109, 168;
  border-color: #d4e5f3;
  background:
    radial-gradient(245px 145px at 108% -10%, rgba(var(--monitor-accent), 0.14) 0%, transparent 62%),
    linear-gradient(162deg, #ffffff 0%, #f4f9ff 78%, #edf6ff 100%);
  transition: transform 0.2s ease, box-shadow 0.24s ease, border-color 0.22s ease, background 0.24s ease;
}

.monitor-cards .router-monitor-card p,
.monitor-cards .router-monitor-card strong {
  transition: color 0.24s ease, text-shadow 0.24s ease;
}

.monitor-cards .router-monitor-card.kpi-ros {
  --monitor-accent: 29, 143, 220;
}

.monitor-cards .router-monitor-card.kpi-uptime {
  --monitor-accent: 10, 133, 116;
}

.monitor-cards .router-monitor-card.kpi-model {
  --monitor-accent: 44, 118, 212;
}

.monitor-cards .router-monitor-card.kpi-cpu {
  --monitor-accent: 197, 77, 58;
}

.monitor-cards .router-monitor-card.kpi-ros,
.monitor-cards .router-monitor-card.kpi-uptime,
.monitor-cards .router-monitor-card.kpi-model,
.monitor-cards .router-monitor-card.kpi-cpu {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
}

.monitor-cards .router-monitor-card.kpi-ros p,
.monitor-cards .router-monitor-card.kpi-uptime p,
.monitor-cards .router-monitor-card.kpi-model p,
.monitor-cards .router-monitor-card.kpi-cpu p {
  margin: 0;
  text-align: left;
}

.monitor-cards .router-monitor-card.kpi-ros strong,
.monitor-cards .router-monitor-card.kpi-uptime strong,
.monitor-cards .router-monitor-card.kpi-model strong,
.monitor-cards .router-monitor-card.kpi-cpu strong {
  width: 100%;
  text-align: center;
}

.monitor-cards .router-monitor-card.kpi-memory {
  --monitor-accent: 209, 142, 32;
}

.monitor-cards .router-monitor-card.kpi-disk {
  --monitor-accent: 186, 51, 72;
}

.router-slo-widget-card {
  margin-top: 6px;
  border-color: #d7e6f3;
  background:
    radial-gradient(300px 160px at 92% -16%, rgba(41, 139, 210, 0.16), transparent 68%),
    linear-gradient(180deg, #fbfdff 0%, #f1f7fd 100%);
}

.router-slo-widget-card .section-header {
  margin-bottom: 6px;
}

.router-slo-monitor-grid {
  margin-bottom: 0;
}

.router-slo-monitor-grid .router-monitor-card.kpi-slo-mitigated {
  --monitor-accent: 15, 142, 106;
}

.router-slo-monitor-grid .router-monitor-card.kpi-slo-recurrence {
  --monitor-accent: 214, 128, 27;
}

.router-slo-monitor-grid .router-monitor-card.kpi-slo-ttm {
  --monitor-accent: 32, 122, 201;
}

.router-slo-monitor-grid .router-monitor-card.kpi-slo-open {
  --monitor-accent: 187, 51, 73;
}

.monitor-cards .router-monitor-duo {
  display: grid;
  gap: 4px;
  width: 100%;
}

.monitor-cards .router-monitor-duo-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.monitor-cards .router-monitor-duo-row span {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #587289;
  font-weight: 700;
}

.monitor-cards .router-monitor-duo-row strong {
  font-size: 0.94rem;
  line-height: 1.1;
  text-align: right;
}

.monitor-cards .stat-card strong {
  font-size: 1.15rem;
}

.monitor-cards .stat-card p {
  font-size: 0.7rem;
}

.monitor-cards .stat-card strong.metric-ok {
  color: #0f8a63;
}

.monitor-cards .stat-card strong.metric-warn {
  color: #be7c12;
}

.monitor-cards .stat-card strong.metric-danger {
  color: #b42f45;
}

.monitor-cards .stat-card strong.metric-info {
  color: #0f6298;
}

.monitor-cards .stat-card strong.metric-neutral {
  color: var(--ink-strong);
}

@media (hover: hover) and (pointer: fine) {
  .monitor-cards .router-monitor-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--monitor-accent), 0.42);
    box-shadow: 0 14px 28px rgba(var(--monitor-accent), 0.22);
    background:
      radial-gradient(250px 150px at 108% -8%, rgba(var(--monitor-accent), 0.23) 0%, transparent 62%),
      linear-gradient(162deg, #ffffff 0%, #f2f9ff 78%, #ebf4ff 100%);
  }

  .monitor-cards .router-monitor-card:hover p {
    color: #36566f;
  }

  .monitor-cards .router-monitor-card:hover strong {
    text-shadow: 0 8px 18px rgba(var(--monitor-accent), 0.26);
  }
}

.router-detail-actions {
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.router-detail-action-wrap {
  justify-content: flex-end;
}

.router-detail-action-menu {
  position: relative;
  min-width: 220px;
}

.router-detail-action-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: #22425d;
  border: 1px solid #c9d9e8;
  border-radius: 9px;
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #edf4fb 100%);
  box-shadow: 0 3px 8px rgba(20, 48, 74, 0.08);
}

.router-detail-action-menu > summary::-webkit-details-marker {
  display: none;
}

.router-detail-action-menu > summary::after {
  content: '▾';
  font-size: 0.72rem;
  color: #46627a;
  transition: transform 0.2s ease;
}

.router-detail-action-menu[open] > summary::after {
  transform: rotate(180deg);
}

.router-detail-action-menu.is-disabled > summary {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.router-detail-action-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 35;
  min-width: 260px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d2e3f1;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbfe 0%, #edf5fc 100%);
  box-shadow: 0 12px 24px rgba(18, 45, 67, 0.17);
}

.router-detail-action-list button {
  width: 100%;
  text-align: left;
}

.router-tab-shell {
  margin: 8px 0 10px;
}

.router-tab-shell-title {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f778d;
  font-weight: 700;
}

.router-history-tabs {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid #d2e3f1;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbfe 0%, #edf5fc 100%);
  overflow-x: auto;
}

.router-history-tabs button {
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #335670;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.router-history-tabs button.is-active {
  color: #0f5f95;
  border-color: #b6d4eb;
  background: #fff;
  box-shadow: 0 4px 10px rgba(22, 75, 113, 0.12);
}

.router-history-tabs button:hover {
  border-color: #c6daec;
  background: rgba(255, 255, 255, 0.72);
}

.router-history-panel {
  margin-bottom: 12px;
}

.router-backup-diff-card {
  margin-top: 14px;
  border-top: 1px solid #d4e2ef;
  padding-top: 12px;
}

.router-backup-diff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.router-backup-diff-head h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #1f3f57;
}

.router-backup-diff-viewer {
  margin-top: 8px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid #d4e2ef;
  border-radius: 10px;
  background: #f8fbff;
}

.router-backup-diff-sections {
  margin-top: -2px;
  margin-bottom: 6px;
}

.router-backup-diff-line {
  display: grid;
  grid-template-columns: 56px 56px 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 2px 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.73rem;
  line-height: 1.35;
  border-bottom: 1px solid #e4edf5;
}

.router-backup-diff-line:last-child {
  border-bottom: none;
}

.router-backup-diff-line.is-added {
  background: #fde8e8;
}

.router-backup-diff-line.is-removed {
  background: #ffe0e0;
}

.router-backup-diff-line.is-skip {
  background: #eef4fa;
  color: #5a7389;
  font-style: italic;
}

.router-backup-diff-num {
  color: #6b8398;
  text-align: right;
}

.router-backup-diff-marker {
  color: #8aa0b3;
  text-align: center;
}

.router-backup-diff-line.is-added .router-backup-diff-marker,
.router-backup-diff-line.is-removed .router-backup-diff-marker {
  color: #a20000;
  font-weight: 700;
}

.router-backup-diff-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.router-config-tabs {
  margin-bottom: 0;
}

.router-config-panel {
  margin-bottom: 12px;
}

.router-config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.router-config-actions .secondary {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.72rem;
}

.router-config-subtitle {
  margin: 8px 0 6px;
  color: #284a66;
  font-size: 0.95rem;
}

.router-config-table {
  min-width: 0;
  table-layout: fixed;
}

.router-config-table th,
.router-config-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}

.router-logs-health {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.router-logs-health .pill {
  font-size: 0.74rem;
}

.router-logs-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.router-logs-filters input,
.router-logs-filters select {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #c9dcec;
  border-radius: 8px;
  background: #fff;
  color: #26475f;
}

.router-logs-filter-date {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
}

.router-logs-filter-date > span {
  font-size: 0.74rem;
  color: #5a7389;
  min-width: 26px;
}

.router-logs-realtime-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #385a73;
  min-height: 34px;
}

.router-logs-realtime-toggle input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 0;
}

.router-log-table {
  min-width: 0;
  table-layout: fixed;
}

.router-log-table th,
.router-log-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.router-log-table th:nth-child(1),
.router-log-table td:nth-child(1) {
  width: 150px;
}

.router-log-table th:nth-child(2),
.router-log-table td:nth-child(2) {
  width: 180px;
}

.router-log-table td:nth-child(3) {
  line-height: 1.35;
}

.router-log-tooltip-target {
  display: inline-block;
  width: 100%;
  cursor: help;
}

.router-temp-blocklist-card {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #d7e4ef;
  background: #f8fbff;
}

.router-security-intro {
  margin-top: -2px;
  margin-bottom: 10px;
}

.router-security-summary-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid #c8ddef;
  background:
    radial-gradient(220px 120px at 105% -40%, rgba(170, 217, 247, 0.28), transparent 72%),
    linear-gradient(180deg, #fdfeff 0%, #f2f8ff 100%);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.router-security-persona-toggle {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px;
  border: 1px solid #caddf0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fafdff 0%, #eef6ff 100%);
}

.router-security-persona-toggle .secondary {
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
}

.router-security-persona-toggle .secondary.is-active {
  border-color: #1f93d8;
  background: linear-gradient(160deg, #2ca8ea 0%, #1688ca 65%, #1175b0 100%);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(16, 97, 151, 0.2);
}

.router-security-mode-help {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: #41627d;
}

.router-security-summary-card.is-loading {
  border-color: #c7dcf2;
  box-shadow: inset 0 0 0 1px rgba(195, 216, 236, 0.35);
}

.router-security-summary-card.is-ok {
  border-color: #b8e4ce;
  background:
    radial-gradient(240px 130px at 104% -25%, rgba(166, 235, 199, 0.33), transparent 72%),
    linear-gradient(180deg, #fdfffe 0%, #edf9f3 100%);
  box-shadow: 0 8px 20px rgba(53, 134, 98, 0.14);
}

.router-security-summary-card.is-warn {
  border-color: #eed4a3;
  background:
    radial-gradient(240px 130px at 104% -25%, rgba(246, 213, 142, 0.34), transparent 72%),
    linear-gradient(180deg, #fffefb 0%, #fff4dc 100%);
  box-shadow: 0 8px 20px rgba(158, 111, 21, 0.14);
}

.router-security-summary-card.is-danger {
  border-color: #efc1c9;
  background:
    radial-gradient(260px 145px at 104% -25%, rgba(248, 173, 187, 0.34), transparent 72%),
    linear-gradient(180deg, #fffdfd 0%, #fff0f3 100%);
  box-shadow: 0 10px 22px rgba(150, 52, 70, 0.2);
  animation: router-security-danger-pulse 1.6s ease-in-out infinite;
}

@keyframes router-security-danger-pulse {
  0% {
    box-shadow: 0 10px 22px rgba(150, 52, 70, 0.17);
  }
  50% {
    box-shadow: 0 10px 25px rgba(150, 52, 70, 0.28);
  }
  100% {
    box-shadow: 0 10px 22px rgba(150, 52, 70, 0.17);
  }
}

.router-security-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.router-security-summary-head strong {
  color: #244660;
}

.router-security-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.router-security-summary-chip {
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid #d3e2ef;
  background: #f8fbff;
  display: grid;
  gap: 3px;
}

.router-security-summary-chip-label {
  font-size: 0.67rem;
  letter-spacing: 0.02em;
  color: #4d6b82;
}

.router-security-summary-chip strong {
  font-size: 1rem;
  color: #223c52;
}

.router-security-summary-chip.is-ok {
  border-color: #bde4d0;
  background: #edf9f3;
}

.router-security-summary-chip.is-warn {
  border-color: #efd7ad;
  background: #fff5e1;
}

.router-security-summary-chip.is-danger {
  border-color: #efc4cb;
  background: #fff1f4;
}

.router-security-assistant-card {
  margin-top: 8px;
  padding: 9px;
  border: 1px solid #cddff0;
  border-radius: 10px;
  background: linear-gradient(180deg, #fcfeff 0%, #eef6ff 100%);
}

.router-security-assistant-title {
  margin: 0 0 7px;
  font-size: 0.78rem;
  color: #244c68;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.router-security-assistant-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin-bottom: 7px;
}

.router-security-assistant-input-wrap input {
  min-height: 36px;
}

.router-security-assistant-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.router-security-assistant-examples .secondary {
  min-height: 30px;
  font-size: 0.73rem;
  padding: 5px 8px;
}

.router-security-assistant-status {
  margin: 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #d4e2ef;
  background: #f6fbff;
  color: #355771;
  font-size: 0.74rem;
  line-height: 1.35;
}

.router-security-assistant-status.is-ok {
  border-color: #c3e6d2;
  background: #eef9f3;
  color: #1b6c4d;
}

.router-security-assistant-status.is-warn {
  border-color: #efdcb7;
  background: #fff7e8;
  color: #8e6115;
}

.router-security-assistant-status.is-danger {
  border-color: #e9c3cb;
  background: #fff1f4;
  color: #8e2c3d;
}

.router-security-assistant-status.is-busy {
  border-color: #c9dced;
  background: #eff6fd;
  color: #275373;
}

.router-security-assistant-preview {
  margin: 0 0 7px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid #cfe0ee;
  background: #f5fafe;
  color: #345a74;
  font-size: 0.73rem;
  line-height: 1.35;
}

.router-security-assistant-preview.is-warn {
  border-color: #edd6aa;
  background: #fff7e7;
  color: #8f6318;
}

.router-security-assistant-preview.is-danger {
  border-color: #ecc2ca;
  background: #fff2f5;
  color: #8d3042;
}

.router-security-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 11px;
  border: 1px solid #d7e4ef;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfeff 0%, #f2f8ff 100%);
}

.router-security-toolbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #34566f;
}

.router-security-toolbar-item select {
  min-height: 34px;
  min-width: 210px;
}

.router-security-advanced-filters {
  margin-bottom: 12px;
  border: 1px dashed #c8daeb;
  border-radius: 11px;
  background: #f8fbff;
}

.router-security-advanced-filters > summary {
  padding: 9px 11px;
  cursor: pointer;
  color: #2f5774;
  font-weight: 600;
}

.router-security-advanced-filters > summary:hover {
  color: #1f4866;
}

.router-security-advanced-filters .router-security-toolbar {
  margin: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0 0 11px 11px;
}

.router-security-section {
  padding: 10px;
  border: 1px solid #d4e3f1;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfeff 0%, #f5faff 100%);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.router-security-section.is-collapsed {
  border-style: dashed;
  background: #f8fbff;
}

.router-security-section-body {
  margin-top: 6px;
  animation: router-security-fade-in 0.2s ease;
}

@keyframes router-security-fade-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.router-security-profile-controls {
  display: grid;
  grid-template-columns: 130px 170px 130px auto auto;
  gap: 8px;
  margin-bottom: 8px;
}

.router-security-profile-controls input {
  min-height: 36px;
}

.router-temp-blocklist-head {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.router-temp-blocklist-head h4 {
  margin: 0;
  font-size: 0.9rem;
}

.router-temp-blocklist-controls {
  display: grid;
  grid-template-columns: 170px 1fr 120px 1.4fr auto auto;
  gap: 8px;
  margin-bottom: 8px;
}

.router-temp-blocklist-controls input {
  min-height: 36px;
}

.router-global-allowlist-controls {
  display: grid;
  grid-template-columns: 130px 1.1fr 1.4fr auto auto;
  gap: 8px;
  margin-bottom: 8px;
}

.router-global-allowlist-controls input {
  min-height: 36px;
}

.router-temp-blocklist-table {
  min-width: 0;
  table-layout: fixed;
}

.router-temp-blocklist-table th,
.router-temp-blocklist-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.router-temp-blocklist-table th:nth-child(1),
.router-temp-blocklist-table td:nth-child(1) {
  width: 160px;
}

.router-temp-blocklist-table th:nth-child(2),
.router-temp-blocklist-table td:nth-child(2) {
  width: 120px;
}

.router-temp-blocklist-table th:nth-child(3),
.router-temp-blocklist-table td:nth-child(3) {
  width: 90px;
}

.router-temp-blocklist-table th:nth-child(4),
.router-temp-blocklist-table td:nth-child(4) {
  width: 140px;
}

.router-temp-blocklist-table th:nth-child(5),
.router-temp-blocklist-table td:nth-child(5) {
  width: 165px;
}

.router-temp-blocklist-table th:nth-child(6),
.router-temp-blocklist-table td:nth-child(6) {
  width: 110px;
}

.router-temp-blocklist-table th:nth-child(7),
.router-temp-blocklist-table td:nth-child(7) {
  width: 180px;
}

.router-temp-blocklist-table th:nth-child(8),
.router-temp-blocklist-table td:nth-child(8) {
  width: 90px;
}

.router-global-allowlist-table th:nth-child(1),
.router-global-allowlist-table td:nth-child(1) {
  width: 110px;
}

.router-global-allowlist-table th:nth-child(2),
.router-global-allowlist-table td:nth-child(2) {
  width: 220px;
}

.router-global-allowlist-table th:nth-child(3),
.router-global-allowlist-table td:nth-child(3) {
  width: 100px;
}

.router-global-allowlist-table th:nth-child(4),
.router-global-allowlist-table td:nth-child(4) {
  width: 150px;
}

.router-global-allowlist-table th:nth-child(5),
.router-global-allowlist-table td:nth-child(5) {
  width: 210px;
}

.router-global-allowlist-table th:nth-child(6),
.router-global-allowlist-table td:nth-child(6) {
  width: 100px;
}

.router-security-table {
  min-width: 0;
  table-layout: fixed;
}

.router-security-table th,
.router-security-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.router-security-table th:nth-child(1),
.router-security-table td:nth-child(1) {
  width: 150px;
}

.router-security-table th:nth-child(2),
.router-security-table td:nth-child(2) {
  width: 130px;
}

.router-security-table th:nth-child(3),
.router-security-table td:nth-child(3) {
  width: 150px;
}

.router-security-table th:nth-child(4),
.router-security-table td:nth-child(4) {
  width: 180px;
}

.router-security-table th:nth-child(5),
.router-security-table td:nth-child(5) {
  width: 220px;
}

.router-security-table th:nth-child(6),
.router-security-table td:nth-child(6) {
  width: 220px;
}

.router-security-table th:nth-child(7),
.router-security-table td:nth-child(7) {
  width: 230px;
}

.router-security-table td:nth-child(6) {
  line-height: 1.35;
}

.router-security-table td:nth-child(7) {
  line-height: 1.35;
}

.router-security-table code {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef4fa;
  border: 1px solid #d6e3ef;
  font-size: 0.7rem;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.router-config-cell-mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.76rem;
}

.router-config-cell-muted {
  color: #5a7389;
}

.router-config-pill {
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.router-config-pill-ok {
  background: #e2f6ec;
  color: #1e6a48;
}

.router-config-pill-warn {
  background: #fff2dc;
  color: #8f5d0e;
}

.router-config-pill-muted {
  background: #e8eef5;
  color: #4f667c;
}

.router-config-editor {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.router-config-editor-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(10, 28, 45, 0.45);
  cursor: pointer;
  box-shadow: none;
}

.router-config-editor-card {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid #c8dcee;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fe 100%);
  box-shadow: 0 22px 54px rgba(12, 34, 55, 0.26);
  padding: 16px;
  z-index: 1;
}

.router-config-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.router-config-editor-head h3 {
  margin: 0;
}

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

.router-config-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.router-config-editor-grid-wide {
  grid-column: span 2;
}

.router-config-editor-fields {
  border: 1px solid #d4e5f2;
  border-radius: 12px;
  padding: 10px;
  background: #fbfdff;
}

.router-config-editor-fields h4 {
  margin: 0 0 8px;
  color: #274762;
}

.router-config-editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.router-config-editor-actions button {
  min-width: 190px;
}

.iface-usage-list {
  display: grid;
  gap: 10px;
}

.iface-usage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.iface-usage-head .muted-line {
  margin: 0;
}

.router-chart-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
}

.router-chart-filter {
  display: grid;
  gap: 4px;
  min-width: 138px;
}

.router-chart-filter > span,
.router-chart-interface-head > span {
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #60778d;
  font-weight: 700;
}

.router-chart-filter-wide {
  min-width: min(100%, 430px);
  flex: 1 1 360px;
}

.router-chart-filter select {
  min-width: 138px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.router-chart-interface-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.router-chart-interface-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.router-chart-interface-actions .secondary {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.72rem;
}

.router-chart-interface-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: 6px;
  max-height: 144px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #d5e5f3;
  border-radius: 10px;
  background: #fff;
}

.router-chart-interface-empty {
  font-size: 0.78rem;
  color: #5a7389;
  padding: 2px;
}

.router-chart-interface-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #dce8f4;
  border-radius: 9px;
  background: #f6fbff;
  padding: 5px 7px;
}

.router-chart-interface-item label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  cursor: pointer;
}

.router-chart-interface-item input[type="checkbox"] {
  margin: 0;
}

.router-chart-interface-name {
  font-size: 0.76rem;
  color: #284a66;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.router-chart-interface-rate {
  font-size: 0.7rem;
  color: #567088;
  font-weight: 700;
  white-space: nowrap;
}

.iface-chart-panel {
  border: 1px solid #d8e6f3;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f2f9ff 100%);
}

.iface-chart {
  width: 100%;
  height: 252px;
  display: block;
}

.iface-chart .grid {
  stroke: #d6e6f3;
  stroke-width: 1;
}

.iface-chart .axis {
  stroke: #96aec4;
  stroke-width: 1;
}

.iface-chart .series {
  fill: none;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.iface-chart .series-line {
  stroke-width: 2.4;
}

.iface-chart .series-area {
  opacity: 0.92;
}

.iface-chart .dot {
  r: 3.1;
  stroke: #ffffff;
  stroke-width: 1.2;
}

.iface-chart .axis-label {
  font-size: 11px;
  fill: #5f768d;
}

.iface-chart-legend {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-height: 150px;
  overflow: auto;
  padding-right: 2px;
}

.iface-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #39546b;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #d7e6f4;
  background: #f5faff;
  white-space: nowrap;
  line-height: 1.2;
}

.iface-chart-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.iface-chart-legend-item-selectable {
  cursor: pointer;
  font: inherit;
  appearance: none;
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.iface-chart-legend-item-selectable:hover {
  transform: translateY(-1px);
}

.iface-chart-legend-item-selectable:focus-visible {
  outline: 2px solid #4f8ec3;
  outline-offset: 2px;
}

.iface-chart-legend-item-selectable.is-active {
  background: linear-gradient(180deg, #eef7ff 0%, #e3f1ff 100%);
  border-color: #9dc4e3;
  color: #20435f;
  box-shadow: 0 4px 10px rgba(31, 86, 124, 0.16);
}

.iface-chart-legend-item-selectable.is-inactive {
  opacity: 0.56;
  filter: saturate(0.64);
  background: #f4f8fc;
}

.iface-chart-legend-value {
  color: #58728a;
  font-weight: 700;
}

.dhcp-pagination {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.dhcp-pagination-meta {
  font-size: 0.79rem;
  color: #5a7389;
}

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

tbody tr.dhcp-fixed-row td {
  background: #dff0ff;
}

tbody tr.dhcp-fixed-row:hover td {
  background: #cfe7ff;
}

.iface-row {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 10px;
}

.iface-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.iface-row-head strong {
  color: var(--ink-strong);
}

.iface-row-head span {
  font-size: 0.78rem;
  color: var(--muted);
}

.iface-bars {
  display: grid;
  gap: 6px;
}

.iface-bar {
  height: 9px;
  border-radius: 999px;
}

.iface-bar.rx {
  background: linear-gradient(90deg, #1b86c8, #51b0e1);
}

.iface-bar.tx {
  background: linear-gradient(90deg, #109975, #4dcfb0);
}

.muted-small {
  margin-top: 5px;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #5f768c;
  white-space: normal;
}

.muted-small.is-danger {
  color: #b42f45;
}

.agent-version-indicator {
  font-weight: 700;
  color: #35526a;
}

.agent-version-indicator.is-outdated {
  color: #b42f45;
}

.agent-version-next {
  color: #b42f45;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #cfdae4;
  background: #f4f8fb;
  color: #2d4a60;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  margin-right: 6px;
  margin-bottom: 4px;
}

.pill.is-ok {
  background: #e8f9f2;
  border-color: #b6e7d5;
  color: #0b7658;
}

.pill.is-danger {
  background: #fff0f2;
  border-color: #f0c6cf;
  color: #9a2f40;
}

.pill.is-warn {
  background: #fff7e9;
  border-color: #f1dbb0;
  color: #9a6509;
}

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

.embedded-card {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.embedded-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--ink-strong);
}

.router-security-radar {
  position: relative;
  overflow: hidden;
  border-color: #d9e6f2;
  background:
    radial-gradient(280px 140px at 90% -20%, rgba(194, 224, 245, 0.42), transparent 70%),
    linear-gradient(180deg, #fbfdff 0%, #f2f7fc 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.router-security-radar.is-loading {
  border-color: #c5dced;
  box-shadow: inset 0 0 0 1px rgba(183, 211, 232, 0.25);
}

.router-security-radar.is-timeout {
  border-color: #edd7ac;
  background:
    radial-gradient(280px 140px at 90% -20%, rgba(250, 220, 156, 0.2), transparent 72%),
    linear-gradient(180deg, #fffdf8 0%, #fff6e6 100%);
}

.router-security-radar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.router-security-radar-head h3 {
  margin: 0;
}

.router-security-radar-meta {
  margin: -1px 0 8px;
  color: #5a7791;
  font-size: 0.74rem;
}

.router-security-radar-items {
  display: grid;
  gap: 8px;
}

.router-security-radar-item {
  border: 1px solid #dbe7f2;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f8fbff;
}

.router-security-radar-item-head {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 6px;
}

.router-security-radar-item-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.router-security-radar-item-head strong {
  color: #20384f;
  font-size: 0.9rem;
}

.router-security-radar-item .router-security-radar-severity-low {
  background: #e9f8f1;
  border-color: #bfe7d5;
  color: #0c7a58;
}

.router-security-radar-item .router-security-radar-severity-medium {
  background: #fff6e6;
  border-color: #efd5a7;
  color: #9a6208;
}

.router-security-radar-item .router-security-radar-severity-high,
.router-security-radar-item .router-security-radar-severity-critical {
  background: #fff0f2;
  border-color: #efc6cf;
  color: #a02f41;
}

.router-security-radar-item-desc,
.router-security-radar-item-when {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.router-security-radar-item-when {
  color: #4f6980;
}

.router-security-radar-empty {
  font-size: 0.82rem;
  color: #4f6980;
}

.router-security-radar-skeleton {
  border: 1px solid #d7e5f1;
  border-radius: 10px;
  padding: 8px;
  background: #f9fcff;
}

.router-security-radar-skeleton-row {
  display: block;
  height: 11px;
  margin: 5px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #e7f0f8 20%, #f4f9fd 50%, #e7f0f8 80%);
  background-size: 220% 100%;
  animation: router-radar-shimmer 1.2s linear infinite;
}

.router-security-radar-skeleton-row:nth-child(1) {
  width: 46%;
}

.router-security-radar-skeleton-row:nth-child(2) {
  width: 92%;
}

.router-security-radar-skeleton-row:nth-child(3) {
  width: 74%;
}

@keyframes router-radar-shimmer {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -20% 0;
  }
}

.router-security-radar-ai-actions {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed #d3e2ef;
  display: grid;
  gap: 8px;
}

.router-security-radar-ai-group {
  display: grid;
  gap: 5px;
}

.router-security-radar-ai-group-title {
  margin: 0;
  font-size: 0.72rem;
  color: #32546d;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

.router-security-radar-ai-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.router-security-radar-ai-btn {
  border: 1px solid #c9dbeb;
  border-radius: 999px;
  min-height: 30px;
  padding: 5px 10px;
  background: #f7fbff;
  color: #244a64;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.router-security-radar-ai-btn:hover {
  transform: translateY(-1px);
  background: #ecf5fd;
  border-color: #94bddf;
}

.router-security-radar-ai-btn.is-danger {
  border-color: #efc4cb;
  background: #fff2f5;
  color: #8f2e3f;
}

.router-security-radar-ai-btn.is-warn {
  border-color: #eed9b4;
  background: #fff8ea;
  color: #8d6116;
}

.router-security-radar-ai-btn.is-ok {
  border-color: #bee3d0;
  background: #eef9f3;
  color: #1d6f4f;
}

.router-security-radar-ai-hint {
  margin: 0;
  font-size: 0.74rem;
  color: #54718a;
}

.router-security-radar-actions {
  margin-top: 8px;
}

.router-api-diagnostics-card {
  margin: 8px 0 9px;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid #cfe1ef;
  background: linear-gradient(180deg, #fafdff 0%, #edf6ff 100%);
  display: grid;
  gap: 6px;
}

.router-api-diagnostics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.router-api-diagnostics-head strong {
  color: #254861;
  font-size: 0.82rem;
}

.router-api-diagnostics-meta {
  margin: 0;
  color: #436680;
  font-size: 0.74rem;
}

.router-api-diagnostics-list {
  display: grid;
  gap: 5px;
}

.router-api-diagnostics-row {
  border: 1px solid #d7e6f2;
  border-radius: 9px;
  padding: 6px 8px;
  background: #f8fcff;
}

.router-api-diagnostics-row strong {
  display: block;
  font-size: 0.76rem;
  color: #24445c;
}

.router-api-diagnostics-row small {
  display: block;
  margin-top: 2px;
  color: #55728a;
  font-size: 0.7rem;
}

.router-api-diagnostics-empty {
  font-size: 0.75rem;
  color: #597790;
}

.router-mitigation-queue-card {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #d6e2ee;
}

.router-block-loading {
  position: relative;
  overflow: hidden;
}

.router-block-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(244, 250, 255, 0) 22%, rgba(229, 241, 251, 0.72) 48%, rgba(244, 250, 255, 0) 74%);
  background-size: 220% 100%;
  animation: router-block-shimmer 1.15s linear infinite;
  pointer-events: none;
}

@keyframes router-block-shimmer {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -20% 0;
  }
}

.router-history-panel[data-router-history-panel="security"].router-security-focus-mode .router-security-section .muted-line {
  display: none;
}

.router-history-panel[data-router-history-panel="security"].router-security-focus-mode .router-security-section .table-wrap {
  margin-top: 4px;
}

.router-history-panel[data-router-history-panel="security"].router-security-persona-basic .router-security-advanced-only {
  display: none;
}

.router-history-panel[data-router-history-panel="security"].router-security-persona-basic .router-security-summary-card {
  border-color: #b9d8ec;
  background:
    radial-gradient(260px 130px at 102% -26%, rgba(139, 205, 240, 0.34), transparent 72%),
    linear-gradient(180deg, #feffff 0%, #eef7ff 100%);
}

.router-mitigation-queue-table th:nth-child(1),
.router-mitigation-queue-table td:nth-child(1) {
  width: 150px;
}

.router-mitigation-queue-table th:nth-child(2),
.router-mitigation-queue-table td:nth-child(2) {
  width: 110px;
}

.router-mitigation-queue-table th:nth-child(3),
.router-mitigation-queue-table td:nth-child(3) {
  width: 130px;
}

.router-mitigation-queue-table th:nth-child(4),
.router-mitigation-queue-table td:nth-child(4) {
  width: 150px;
}

.router-mitigation-queue-table th:nth-child(5),
.router-mitigation-queue-table td:nth-child(5) {
  width: 130px;
}

.router-mitigation-queue-table th:nth-child(6),
.router-mitigation-queue-table td:nth-child(6) {
  width: 230px;
}

.router-mitigation-queue-table th:nth-child(7),
.router-mitigation-queue-table td:nth-child(7) {
  width: 130px;
}

.router-mitigation-queue-table th:nth-child(8),
.router-mitigation-queue-table td:nth-child(8) {
  width: 90px;
}

.router-mitigation-queue-table th:nth-child(9),
.router-mitigation-queue-table td:nth-child(9) {
  width: 110px;
}

.router-internal-threat-card {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid #d6e3ef;
  border-radius: 10px;
  background: #f7fbff;
}

.router-internal-threat-card.is-empty {
  border-style: dashed;
}

.router-internal-threat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.router-internal-threat-head strong {
  font-size: 0.86rem;
  color: #23415d;
}

.router-internal-threat-card .muted-line {
  margin: 6px 0 0;
  font-size: 0.8rem;
}

#routerInternalThreatToggleBtn {
  margin-top: 6px;
}

.router-internal-threat-details {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.router-internal-threat-row {
  border: 1px solid #dce8f3;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px 8px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.router-internal-threat-row strong {
  color: #22415d;
}

.pill.is-neutral {
  background: #e9eef3;
  color: #556b80;
}

/* Router monitor visual refresh */
@keyframes router-shell-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes router-block-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body[data-page="routers"] {
  --router-bg-top: #ecf3fb;
  --router-bg-mid: #e2eef9;
  --router-bg-bottom: #eef5ef;
  --router-ink-strong: #102b43;
  --router-ink: #2e4d65;
  --router-muted: #567189;
  --router-card-border: #c8deef;
  --router-card-shadow: 0 16px 32px rgba(11, 33, 54, 0.12);
  --router-chip-bg: #f0f7ff;
  --router-chip-border: #c8dff1;
  --router-chip-ink: #2f536d;
  --router-accent-list: #1992d8;
  --router-accent-monitor: #169777;
  --router-accent-warm: #d28d1a;
  background:
    radial-gradient(920px 460px at -12% -6%, rgba(27, 147, 220, 0.24), transparent 62%),
    radial-gradient(760px 420px at 110% -4%, rgba(22, 165, 130, 0.16), transparent 62%),
    radial-gradient(620px 260px at 50% 120%, rgba(218, 178, 95, 0.12), transparent 66%),
    linear-gradient(165deg, var(--router-bg-top) 0%, var(--router-bg-mid) 55%, var(--router-bg-bottom) 100%);
  background-attachment: scroll;
}

body[data-page="routers"] .layout {
  gap: 20px;
}

body[data-page="routers"] .card {
  position: relative;
  overflow: hidden;
  border-color: var(--router-card-border);
  border-radius: 20px;
  background: linear-gradient(170deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--router-card-shadow);
  animation: router-shell-enter 0.42s cubic-bezier(0.2, 0.7, 0.1, 1);
}

body[data-page="routers"] .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, rgba(29, 147, 220, 0.92) 0%, rgba(17, 160, 121, 0.9) 58%, rgba(214, 140, 26, 0.86) 100%);
}

body[data-page="routers"] .card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 191, 238, 0.34) 0%, rgba(112, 191, 238, 0) 68%);
  pointer-events: none;
  opacity: 0.34;
}

body[data-page="routers"] #routerListSection::before {
  background: linear-gradient(90deg, rgba(24, 150, 217, 0.92) 0%, rgba(25, 182, 149, 0.84) 100%);
}

body[data-page="routers"] #routerMonitorSection::before {
  background: linear-gradient(90deg, rgba(19, 136, 207, 0.9) 0%, rgba(15, 154, 121, 0.9) 48%, rgba(212, 137, 26, 0.84) 100%);
}

body[data-page="routers"] #routerListSection {
  animation-delay: 0.04s;
}

body[data-page="routers"] #routerMonitorSection {
  animation-delay: 0.11s;
}

body[data-page="routers"] .router-mission-card {
  padding: 24px;
  border-color: rgba(19, 64, 96, 0.14);
  background:
    radial-gradient(520px 260px at -6% -10%, rgba(86, 193, 255, 0.34), transparent 56%),
    radial-gradient(420px 220px at 108% -8%, rgba(70, 219, 186, 0.26), transparent 56%),
    linear-gradient(140deg, #10233c 0%, #123754 42%, #10606a 100%);
  box-shadow: 0 24px 44px rgba(8, 28, 45, 0.22);
}

body[data-page="routers"] .router-mission-card::before {
  height: 4px;
  background: linear-gradient(90deg, rgba(101, 211, 255, 0.98) 0%, rgba(65, 225, 170, 0.95) 46%, rgba(255, 194, 91, 0.92) 100%);
}

body[data-page="routers"] .router-mission-card::after {
  width: 380px;
  height: 380px;
  right: -120px;
  top: -200px;
  background: radial-gradient(circle, rgba(144, 213, 255, 0.28) 0%, rgba(144, 213, 255, 0) 70%);
  opacity: 0.8;
}

body[data-page="routers"] .router-mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

body[data-page="routers"] .router-mission-copy,
body[data-page="routers"] .router-mission-side {
  display: grid;
  gap: 16px;
}

body[data-page="routers"] .router-mission-card .eyebrow {
  margin: 0;
  color: rgba(214, 240, 255, 0.86);
  letter-spacing: 0.16em;
}

body[data-page="routers"] .router-mission-card h2,
body[data-page="routers"] .router-section-kicker + h2,
body[data-page="routers"] .router-fleet-node-top strong,
body[data-page="routers"] .router-mission-selected strong {
  font-family: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

body[data-page="routers"] .router-mission-card h2 {
  margin: 0;
  max-width: 12ch;
  color: #f8fbff;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 0.95;
}

body[data-page="routers"] .router-mission-summary {
  margin: 0;
  max-width: 58ch;
  color: rgba(225, 241, 251, 0.84);
  font-size: 1rem;
  line-height: 1.65;
}

body[data-page="routers"] .router-mission-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body[data-page="routers"] .router-mission-ribbon-item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(188, 232, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(235, 247, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

body[data-page="routers"] .router-mission-links {
  margin-top: 2px;
}

body[data-page="routers"] .router-mission-card .router-mission-links a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(186, 228, 250, 0.2);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
}

body[data-page="routers"] .router-mission-card .router-mission-links .secondary,
body[data-page="routers"] .router-mission-card .router-suite-quick-actions .secondary {
  border-color: rgba(186, 228, 250, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f4fbff;
  box-shadow: none;
}

body[data-page="routers"] .router-mission-card .router-mission-links .secondary.is-active {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.96);
  color: #14344d;
}

body[data-page="routers"] .router-mission-card .router-suite-quick-actions .secondary:not(:disabled):hover,
body[data-page="routers"] .router-mission-card .router-mission-links .secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 240, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

body[data-page="routers"] .router-mission-card .router-suite-quick-actions .secondary:disabled {
  opacity: 0.44;
  filter: saturate(0.75);
}

body[data-page="routers"] .router-mission-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="routers"] .router-mission-stat,
body[data-page="routers"] .router-mission-selected,
body[data-page="routers"] .router-mission-selected-stat {
  border: 1px solid rgba(178, 224, 248, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.07) 100%);
  backdrop-filter: blur(16px);
}

body[data-page="routers"] .router-mission-stat {
  padding: 14px 15px;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(8, 28, 45, 0.18);
}

body[data-page="routers"] .router-mission-stat-label,
body[data-page="routers"] .router-mission-selected-kicker,
body[data-page="routers"] .router-section-kicker {
  display: block;
  color: rgba(212, 239, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-page="routers"] .router-section-kicker {
  margin: 0 0 4px;
  color: #5e7f93;
}

body[data-page="routers"] .router-mission-stat strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 1.88rem;
  line-height: 1;
}

body[data-page="routers"] .router-mission-stat small {
  display: block;
  margin-top: 8px;
  color: rgba(215, 238, 251, 0.76);
  line-height: 1.45;
}

body[data-page="routers"] .router-mission-selected {
  padding: 18px;
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 30px rgba(7, 25, 39, 0.18);
}

body[data-page="routers"] .router-mission-selected-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

body[data-page="routers"] .router-mission-selected-head strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 1.28rem;
  line-height: 1.05;
}

body[data-page="routers"] .router-mission-selected .muted-line {
  margin: 12px 0 0;
  color: rgba(220, 240, 252, 0.8);
}

body[data-page="routers"] .router-mission-selected-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

body[data-page="routers"] .router-mission-selected-stat {
  padding: 12px;
  border-radius: 16px;
}

body[data-page="routers"] .router-mission-selected-stat span {
  display: block;
  color: rgba(220, 240, 252, 0.72);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page="routers"] .router-mission-selected-stat strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.35;
}

body[data-page="routers"] .router-mission-actions-shell {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(190, 231, 251, 0.14);
}

body[data-page="routers"] .router-mission-actions-note {
  margin: 0;
  color: rgba(223, 240, 251, 0.74);
  font-size: 0.84rem;
  line-height: 1.55;
}

body[data-page="routers"] .router-mission-card .pill {
  border-color: rgba(198, 232, 249, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body[data-page="routers"] .router-mission-card .pill.is-ok {
  background: rgba(39, 187, 118, 0.18);
  border-color: rgba(107, 229, 170, 0.28);
}

body[data-page="routers"] .router-mission-card .pill.is-warn {
  background: rgba(219, 163, 58, 0.18);
  border-color: rgba(255, 210, 131, 0.28);
}

body[data-page="routers"] .router-mission-card .pill.is-danger {
  background: rgba(218, 94, 76, 0.2);
  border-color: rgba(248, 156, 143, 0.3);
}

body[data-page="routers"] .section-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d4e6f3;
  align-items: flex-start;
  flex-wrap: wrap;
}

body[data-page="routers"] .section-header h2 {
  margin: 0;
  color: var(--router-ink-strong);
  font-size: 1.24rem;
  letter-spacing: 0.01em;
}

body[data-page="routers"] #routerListSection .inline-actions {
  margin-left: auto;
  justify-content: flex-end;
}

body[data-page="routers"] .router-fleet-toolbar {
  align-items: flex-end;
}

body[data-page="routers"] .router-inline-filter {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

body[data-page="routers"] .router-inline-filter span {
  color: #58788e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="routers"] .router-inline-filter select {
  min-height: 44px;
  border-color: #c5d8e8;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 18px rgba(23, 75, 114, 0.08);
}

body[data-page="routers"] .router-fleet-ops-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #d2e4f0;
  border-radius: 18px;
  background:
    radial-gradient(260px 140px at 100% -30%, rgba(166, 215, 244, 0.22), transparent 72%),
    linear-gradient(180deg, #fcfeff 0%, #f5faff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 18px rgba(12, 40, 62, 0.06);
}

body[data-page="routers"] .router-fleet-ops-copy {
  display: grid;
  gap: 6px;
}

body[data-page="routers"] .router-fleet-ops-copy h3 {
  margin: 0;
  color: var(--router-ink-strong);
  font-size: 1.04rem;
}

body[data-page="routers"] .router-fleet-ops-copy .muted-line {
  margin: 0;
}

body[data-page="routers"] .router-fleet-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

body[data-page="routers"] .router-batch-activity-card {
  background:
    radial-gradient(320px 180px at 100% -18%, rgba(167, 218, 244, 0.2), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #f2f8fd 100%);
}

body[data-page="routers"] .router-batch-activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

body[data-page="routers"] .router-batch-activity-item,
body[data-page="routers"] .router-batch-activity-empty {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid #d6e6f1;
  border-radius: 20px;
  background:
    radial-gradient(220px 120px at 100% -24%, rgba(166, 214, 243, 0.18), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 18px rgba(15, 43, 66, 0.06);
}

body[data-page="routers"] .router-batch-activity-item.is-ok {
  border-color: rgba(88, 189, 137, 0.26);
}

body[data-page="routers"] .router-batch-activity-item.is-warn {
  border-color: rgba(223, 180, 93, 0.32);
}

body[data-page="routers"] .router-batch-activity-item.is-danger {
  border-color: rgba(220, 106, 85, 0.28);
}

body[data-page="routers"] .router-batch-activity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="routers"] .router-batch-activity-kicker {
  margin: 0 0 6px;
  color: #5a7a92;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-page="routers"] .router-batch-activity-head strong {
  color: var(--router-ink-strong);
  font-size: 1.05rem;
}

body[data-page="routers"] .router-batch-activity-meta {
  margin: 0;
  color: #55748c;
  line-height: 1.45;
}

body[data-page="routers"] .router-batch-activity-progress {
  height: 10px;
  border-radius: 999px;
  background: #e2edf5;
  overflow: hidden;
}

body[data-page="routers"] .router-batch-activity-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e72a0 0%, #2bb3a8 100%);
}

body[data-page="routers"] .router-batch-activity-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page="routers"] .router-batch-activity-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #d6e4ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #537289;
  font-size: 0.76rem;
  font-weight: 700;
}

body[data-page="routers"] .router-batch-activity-results {
  display: grid;
  gap: 10px;
}

body[data-page="routers"] .router-batch-router-result {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d9e7f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

body[data-page="routers"] .router-batch-router-result strong {
  color: var(--router-ink-strong);
}

body[data-page="routers"] .router-batch-router-result p {
  margin: 4px 0 0;
  color: #5d7a90;
  line-height: 1.4;
}

body[data-page="routers"] .router-batch-activity-actions {
  display: flex;
  justify-content: flex-end;
}

body[data-page="routers"] #routerListSection .inline-actions input[type="search"] {
  min-width: min(380px, 100%);
  min-height: 44px;
  border-color: #c5d8e8;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 18px rgba(23, 75, 114, 0.08);
}

body[data-page="routers"] #routerListSection .inline-actions #reloadRouters {
  min-height: 44px;
  border-radius: 14px;
}

body[data-page="routers"] .muted-line {
  color: var(--router-muted);
}

body[data-page="routers"] #routerDetailsSubtitle {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #d0e0eb;
  border-radius: 16px;
  background:
    radial-gradient(240px 140px at 100% -36%, rgba(179, 220, 244, 0.26), transparent 74%),
    linear-gradient(180deg, #fbfdff 0%, #f3f9ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 18px rgba(11, 39, 61, 0.06);
  line-height: 1.6;
}

body[data-page="routers"] .table-wrap {
  border-color: #d0e4f3;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 8px 16px rgba(12, 41, 65, 0.08);
}

body[data-page="routers"] th {
  background: linear-gradient(180deg, #f6fbff 0%, #eaf4fd 100%);
  color: #335976;
}

body[data-page="routers"] tbody tr td {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

body[data-page="routers"] tbody tr:nth-child(even) td {
  background: #f8fbff;
}

body[data-page="routers"] tbody tr:hover td {
  background: #ecf6ff;
}

body[data-page="routers"] tbody tr.router-row-selected td,
body[data-page="routers"] tbody tr.dhcp-fixed-row td {
  background: linear-gradient(180deg, #ddf0ff 0%, #d4ecff 100%);
}

body[data-page="routers"] tbody tr.router-row-selected td:first-child,
body[data-page="routers"] tbody tr.dhcp-fixed-row td:first-child {
  box-shadow: inset 4px 0 0 #1a8ece;
}

body[data-page="routers"] #routerListSection .table-wrap {
  padding: 8px 10px 12px;
  background:
    radial-gradient(260px 160px at 100% -42%, rgba(175, 220, 244, 0.24), transparent 74%),
    linear-gradient(180deg, #fbfdff 0%, #f2f8fd 100%);
}

body[data-page="routers"] #routerListSection .table-wrap table {
  border-collapse: separate;
  border-spacing: 0 10px;
}

body[data-page="routers"] #routerListSection th {
  padding: 0 14px 8px;
  border: 0;
  background: transparent;
  color: #59778d;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="routers"] #routerListSection tbody tr td {
  padding: 14px;
  vertical-align: top;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #dbe8f4;
  border-bottom: 1px solid #dbe8f4;
}

body[data-page="routers"] #routerListSection tbody tr td:first-child {
  border-left: 1px solid #dbe8f4;
  border-radius: 18px 0 0 18px;
}

body[data-page="routers"] #routerListSection tbody tr td:last-child {
  border-right: 1px solid #dbe8f4;
  border-radius: 0 18px 18px 0;
}

body[data-page="routers"] #routerListSection tbody tr:nth-child(even) td {
  background: rgba(250, 253, 255, 0.98);
}

body[data-page="routers"] #routerListSection tbody tr:hover td {
  background: #f1f8ff;
  border-color: #bfd8ec;
}

body[data-page="routers"] #routerListSection tbody tr.router-row-selected td {
  background: linear-gradient(180deg, #e3f2ff 0%, #d9edff 100%);
  border-color: #9ecae8;
}

body[data-page="routers"] #routerListSection tbody tr.router-row-selected td:first-child {
  box-shadow: inset 4px 0 0 #1a8ece, 0 0 0 1px rgba(26, 142, 206, 0.08);
}

body[data-page="routers"] .router-fleet-node,
body[data-page="routers"] .router-fleet-cell,
body[data-page="routers"] .router-fleet-status-stack {
  display: grid;
  gap: 6px;
}

body[data-page="routers"] .router-fleet-node {
  min-width: 190px;
}

body[data-page="routers"] .router-fleet-node-top,
body[data-page="routers"] .router-fleet-node-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page="routers"] .router-fleet-node-top--actions {
  align-items: flex-start;
  justify-content: space-between;
}

body[data-page="routers"] .router-fleet-row-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body[data-page="routers"] .router-fleet-node-title {
  display: grid;
  gap: 6px;
}

body[data-page="routers"] .router-batch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #d1e3ef;
  border-radius: 999px;
  background: #f8fbfe;
  color: #4f7087;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body[data-page="routers"] .router-batch-toggle input {
  margin: 0;
}

body[data-page="routers"] .router-favorite-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #d1e2ee;
  border-radius: 999px;
  background: #ffffff;
  color: #4f7087;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

body[data-page="routers"] .router-favorite-toggle.is-active {
  border-color: rgba(208, 156, 46, 0.34);
  background: rgba(255, 211, 108, 0.16);
  color: #8e5c0d;
}

body[data-page="routers"] .router-favorite-toggle:hover {
  transform: translateY(-1px);
}

body[data-page="routers"] .router-fleet-node-top strong,
body[data-page="routers"] .router-fleet-cell strong {
  color: var(--router-ink-strong);
  font-size: 0.98rem;
  line-height: 1.25;
}

body[data-page="routers"] .router-fleet-node-id {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d3e2ee;
  background: #f6fbff;
  color: #55758b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page="routers"] .router-fleet-cell span,
body[data-page="routers"] .router-fleet-inline {
  color: #5d778c;
  font-size: 0.78rem;
  line-height: 1.45;
}

body[data-page="routers"] .router-fleet-inline.is-danger {
  color: #a34940;
  font-weight: 700;
}

body[data-page="routers"] #routerListSection .row-actions {
  display: flex;
  justify-content: flex-end;
}

body[data-page="routers"] #routerListSection .router-table-action-menu > summary,
body[data-page="routers"] .router-detail-action-menu > summary {
  border-color: #bfd7e8;
  background: linear-gradient(180deg, #ffffff 0%, #eaf5ff 100%);
  color: #204a68;
}

body[data-page="routers"] #routerListSection .router-table-action-list,
body[data-page="routers"] .router-detail-action-list {
  border-color: #c9deee;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfeff 0%, #edf6ff 100%);
  box-shadow: 0 12px 22px rgba(12, 40, 64, 0.16);
}

body[data-page="routers"] .router-detail-action-list {
  min-width: 330px;
  padding: 10px;
  gap: 10px;
}

body[data-page="routers"] .router-detail-action-group {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid #cde2f2;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
}

body[data-page="routers"] .router-detail-action-group p {
  margin: 0;
  color: #46647c;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

body[data-page="routers"] .router-suite-card,
body[data-page="routers-manage"] .router-suite-card {
  display: grid;
  gap: 16px;
  border: 1px solid #cfe1ef;
  border-radius: 18px;
  background:
    radial-gradient(340px 140px at 100% -16%, rgba(31, 143, 215, 0.14), transparent 68%),
    linear-gradient(170deg, #ffffff 0%, #f3f9ff 100%);
  box-shadow: 0 16px 28px rgba(12, 42, 66, 0.08);
}

body[data-page="routers"] .router-suite-card-head,
body[data-page="routers-manage"] .router-suite-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

body[data-page="routers"] .router-suite-card-head h2,
body[data-page="routers-manage"] .router-suite-card-head h2 {
  margin: 0 0 6px;
}

body[data-page="routers"] .router-suite-links,
body[data-page="routers-manage"] .router-suite-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page="routers"] .router-suite-links .secondary,
body[data-page="routers-manage"] .router-suite-links .secondary,
body[data-page="routers"] .router-suite-quick-actions .secondary,
body[data-page="routers-manage"] .router-suite-quick-actions .secondary {
  min-height: 36px;
  border-radius: 999px;
}

body[data-page="routers"] .router-suite-quick-actions,
body[data-page="routers-manage"] .router-suite-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body[data-page="routers"] .router-workspace-toolbar {
  position: sticky;
  top: 12px;
  z-index: 18;
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #bed9eb;
  border-radius: 16px;
  background:
    radial-gradient(270px 150px at 95% -24%, rgba(161, 215, 246, 0.38), transparent 73%),
    linear-gradient(170deg, #ffffff 0%, #eef7ff 100%);
  box-shadow: 0 12px 22px rgba(11, 41, 67, 0.1);
}

body[data-page="routers"] .router-workspace-mode,
body[data-page="routers"] .router-workspace-visibility {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

body[data-page="routers"] .router-workspace-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--router-chip-border);
  background: var(--router-chip-bg);
  color: var(--router-chip-ink);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

body[data-page="routers"] .router-workspace-toolbar .secondary {
  min-height: 31px;
  padding: 5px 10px;
  border-radius: 999px;
  border-color: #c6dceb;
  background: #f6fbff;
  color: #365a73;
  font-size: 0.77rem;
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

body[data-page="routers"] .router-workspace-toolbar .secondary:hover {
  transform: translateY(-1px);
  border-color: #aaccde;
}

body[data-page="routers"] .router-workspace-toolbar .secondary.is-active {
  border-color: #2692d3;
  background: linear-gradient(155deg, #2ca1e3 0%, #1588ca 62%, #1175b2 100%);
  color: #ffffff;
  box-shadow: 0 7px 14px rgba(16, 96, 150, 0.28);
}

body[data-page="routers"] .router-workspace-toolbar .secondary.is-off {
  opacity: 0.52;
  filter: saturate(0.8);
}

body[data-page="routers"] .router-workspace-toolbar .muted-line {
  margin: 0;
  font-size: 0.78rem;
}

body[data-page="routers"] .router-workspace-group {
  display: grid;
  gap: 14px;
}

body[data-page="routers"] [data-router-workspace-block]:not(.hidden) {
  animation: router-block-pop 0.28s ease both;
}

body[data-page="routers"] #routerMonitorSection.router-workspace-focus > #routerDetailsSubtitle,
body[data-page="routers"] #routerMonitorSection.router-workspace-focus > .router-monitor-scopes {
  display: none;
}

body[data-page="routers"] #routerMonitorSection.router-workspace-focus .embedded-card {
  padding: 10px;
}

body[data-page="routers"] #routerMonitorSection.router-workspace-focus .router-tab-shell {
  margin: 10px 0 8px;
}

body[data-page="routers"] .router-monitor-scopes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -1px 0 13px;
}

body[data-page="routers"] .router-monitor-scope {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--router-chip-border);
  background: var(--router-chip-bg);
  color: #2e4d65;
  font-size: 0.69rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

body[data-page="routers"] .router-monitor-scope.is-operational {
  border-color: #abd0e8;
  background: #e9f5ff;
  color: #0f5f96;
}

body[data-page="routers"] .router-monitor-scope.is-threat {
  border-color: #ebd5a0;
  background: #fff6e3;
  color: #8f6006;
}

body[data-page="routers"] .router-monitor-scope.is-network {
  border-color: #badfcf;
  background: #ebf9f2;
  color: #17714f;
}

body[data-page="routers"] .router-monitor-scope.is-history {
  border-color: #d2dde7;
  background: #f2f6fa;
  color: #425c72;
}

body[data-page="routers"] .monitor-cards .router-monitor-card {
  border-color: #cfe2f1;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(16, 43, 67, 0.1);
}

body[data-page="routers"] .monitor-cards .router-monitor-card.kpi-ros,
body[data-page="routers"] .monitor-cards .router-monitor-card.kpi-model {
  background:
    radial-gradient(240px 145px at 108% -10%, rgba(49, 156, 223, 0.2) 0%, transparent 62%),
    linear-gradient(162deg, #ffffff 0%, #eff8ff 78%, #e8f3ff 100%);
}

body[data-page="routers"] .monitor-cards .router-monitor-card.kpi-uptime,
body[data-page="routers"] .monitor-cards .router-monitor-card.kpi-memory {
  background:
    radial-gradient(240px 145px at 108% -10%, rgba(24, 168, 128, 0.18) 0%, transparent 62%),
    linear-gradient(162deg, #ffffff 0%, #eefcf7 78%, #e6f6ef 100%);
}

body[data-page="routers"] .monitor-cards .router-monitor-card.kpi-cpu,
body[data-page="routers"] .monitor-cards .router-monitor-card.kpi-disk {
  background:
    radial-gradient(240px 145px at 108% -10%, rgba(219, 145, 28, 0.2) 0%, transparent 62%),
    linear-gradient(162deg, #ffffff 0%, #fff9ef 78%, #fdf1dd 100%);
}

body[data-page="routers"] .monitor-cards .router-monitor-card strong {
  color: var(--router-ink-strong);
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="routers"] .monitor-cards .router-monitor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 26px rgba(10, 40, 64, 0.17);
  }
}

body[data-page="routers"] .embedded-card {
  border-color: #d1e4f2;
  border-radius: 16px;
  background: linear-gradient(175deg, #fcfeff 0%, #f3f9ff 100%);
  box-shadow: 0 10px 18px rgba(13, 43, 67, 0.08);
}

body[data-page="routers"] .embedded-card h3 {
  color: #163a55;
}

body[data-page="routers"] .router-focus-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.96fr) minmax(430px, 1.28fr);
  gap: 14px;
  margin-bottom: 14px;
  align-items: stretch;
}

body[data-page="routers"] #routerSecurityRadarCard {
  border-color: #c8deef;
  background:
    radial-gradient(300px 155px at 87% -20%, rgba(168, 212, 239, 0.44), transparent 72%),
    linear-gradient(180deg, #fcfeff 0%, #f1f8ff 100%);
}

body[data-page="routers"] #routerTrafficSection {
  border-color: #c4ddf0;
  background:
    radial-gradient(300px 160px at 10% -24%, rgba(161, 214, 248, 0.36), transparent 72%),
    linear-gradient(180deg, #fbfeff 0%, #eff7ff 100%);
}

body[data-page="routers"] #routerDhcpSection {
  border-color: #c8e2df;
  background:
    radial-gradient(280px 160px at 88% -22%, rgba(178, 231, 219, 0.3), transparent 72%),
    linear-gradient(180deg, #fdfffe 0%, #f1faf6 100%);
}

body[data-page="routers"] .router-tab-shell {
  margin: 14px 0 12px;
  padding: 11px 12px;
  border: 1px solid #cbdff0;
  border-radius: 16px;
  background:
    radial-gradient(250px 135px at 100% -30%, rgba(178, 220, 244, 0.28), transparent 75%),
    linear-gradient(180deg, #f9fdff 0%, #eef6fd 100%);
}

body[data-page="routers"] .router-tab-shell-title {
  margin-bottom: 8px;
  color: #3e607a;
}

body[data-page="routers"] .router-history-tabs {
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-page="routers"] .router-history-tabs button {
  border: 1px solid #ccdeee;
  background: #f4f9ff;
  color: #33576f;
  border-radius: 999px;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body[data-page="routers"] .router-history-tabs button:hover {
  transform: translateY(-1px);
}

body[data-page="routers"] .router-history-tabs button.is-active {
  border-color: #2593d4;
  background: linear-gradient(160deg, #2fa8e8 0%, #1487c8 64%, #1174af 100%);
  color: #ffffff;
  box-shadow: 0 8px 15px rgba(19, 95, 149, 0.25);
}

body[data-page="routers"] .router-history-panel {
  border: 1px solid #d3e5f3;
  border-radius: 15px;
  box-shadow: 0 9px 17px rgba(14, 43, 67, 0.08);
}

body[data-page="routers"] .router-logs-filters,
body[data-page="routers"] .router-temp-blocklist-controls,
body[data-page="routers"] .router-security-profile-controls,
body[data-page="routers"] .router-global-allowlist-controls {
  padding: 10px;
  border: 1px solid #d1e3f2;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f1f7ff 100%);
}

body[data-page="routers"] .router-temp-blocklist-card {
  border-color: #cadff0;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfeff 0%, #f2f8ff 100%);
}

body[data-page="routers"] .router-security-summary-card.is-neutral,
body[data-page="routers"] .router-security-summary-card.is-loading,
body[data-page="routers"] .router-security-summary-card:not(.is-ok):not(.is-warn):not(.is-danger) {
  border-color: #bed7ea;
  background:
    radial-gradient(260px 120px at 100% -38%, rgba(165, 214, 245, 0.36), transparent 75%),
    linear-gradient(180deg, #fdfeff 0%, #eff7ff 100%);
}

body[data-page="routers"] .router-security-assistant-card {
  border-color: #bfd5e7;
  background:
    radial-gradient(220px 110px at 104% -30%, rgba(158, 209, 245, 0.28), transparent 72%),
    linear-gradient(180deg, #fbfeff 0%, #ecf5ff 100%);
}

body[data-page="routers"] .router-security-toolbar {
  border-color: #cbdeee;
  border-radius: 12px;
  background:
    radial-gradient(240px 140px at 102% -36%, rgba(178, 220, 244, 0.36), transparent 75%),
    linear-gradient(180deg, #fcfeff 0%, #f1f8ff 100%);
}

body[data-page="routers"] .router-mitigation-queue-card {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #cddeec;
}

body[data-page="routers"] .pill {
  border-color: #bfd5e6;
  background: #edf6fd;
  color: #2a4d65;
}

@media (max-width: 1280px) {
  body[data-page="routers"] .router-mission-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="routers"] .router-focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body[data-page="dashboard"] .dashboard-pulse-item-head {
    flex-direction: column;
  }

  body[data-page="routers"] .router-mission-card {
    padding: 20px;
  }

  body[data-page="routers"] .router-mission-card h2 {
    max-width: none;
  }

  body[data-page="routers"] .router-mission-actions-shell {
    margin-top: 14px;
  }

  body[data-page="routers"] .router-workspace-toolbar {
    position: static;
    margin-bottom: 10px;
    padding: 9px 10px;
  }

  body[data-page="routers"] .router-workspace-mode,
  body[data-page="routers"] .router-workspace-visibility {
    gap: 5px;
  }

  body[data-page="routers"] .router-workspace-label {
    min-height: 27px;
    font-size: 0.65rem;
  }

  body[data-page="routers"] .router-workspace-toolbar .secondary {
    min-height: 29px;
    font-size: 0.74rem;
  }

  body[data-page="routers"] .router-tab-shell {
    padding: 8px 10px;
  }

  body[data-page="routers"] .table-wrap {
    border-radius: 13px;
  }

  body[data-page="routers"] #routerListSection .inline-actions {
    width: 100%;
    justify-content: flex-start;
  }

  body[data-page="routers"] .router-fleet-ops-bar {
    grid-template-columns: 1fr;
  }

  body[data-page="routers"] .router-fleet-ops-actions {
    justify-content: flex-start;
  }

  body[data-page="routers"] #routerListSection .inline-actions input[type="search"] {
    min-width: 0;
    flex: 1 1 100%;
  }

  body[data-page="routers"] #routerListSection .table-wrap {
    padding: 6px;
  }
}

@media (max-width: 700px) {
  body[data-page="routers"] .router-mission-card {
    padding: 18px;
  }

  body[data-page="routers"] .router-mission-ribbon,
  body[data-page="routers"] .router-mission-links,
  body[data-page="routers"] .router-mission-selected-head,
  body[data-page="routers"] .router-mission-actions-shell {
    gap: 8px;
  }

  body[data-page="routers"] .router-mission-stat-grid,
  body[data-page="routers"] .router-mission-selected-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="routers"] .router-fleet-node-top--actions {
    flex-direction: column;
    align-items: flex-start;
  }

  body[data-page="routers"] .router-mission-links .secondary,
  body[data-page="routers"] .router-suite-quick-actions .secondary,
  body[data-page="routers"] .router-fleet-ops-actions .secondary {
    width: 100%;
    justify-content: center;
  }

  body[data-page="routers"] .card {
    border-radius: 16px;
  }

  body[data-page="routers"] .card::before {
    height: 4px;
  }

  body[data-page="routers"] .section-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  body[data-page="routers"] .router-workspace-toolbar {
    gap: 7px;
  }

  body[data-page="routers"] .router-workspace-mode,
  body[data-page="routers"] .router-workspace-visibility {
    align-items: stretch;
  }

  body[data-page="routers"] .router-workspace-label {
    width: 100%;
    justify-content: center;
  }

  body[data-page="routers"] .router-workspace-toolbar .secondary {
    flex: 1 1 140px;
    justify-content: center;
  }

  body[data-page="routers"] .router-detail-action-list {
    min-width: 0;
  }

  body[data-page="routers"] .router-monitor-scopes {
    margin-bottom: 10px;
  }

  body[data-page="routers"] #routerListSection .table-wrap {
    padding: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="routers"] .card,
  body[data-page="routers"] [data-router-workspace-block]:not(.hidden),
  body[data-page="routers"] .card::after {
    animation: none;
  }

  body[data-page="routers"] .router-history-tabs button,
  body[data-page="routers"] .router-workspace-toolbar .secondary,
  body[data-page="routers"] .monitor-cards .router-monitor-card {
    transition: none;
  }
}

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

.grid-form > .embedded-card {
  grid-column: span 2;
}

.grid-form > button,
.grid-form > p,
.grid-form > label.checkbox-inline {
  grid-column: span 2;
}

.company-form-block h3 {
  margin-bottom: 4px;
}

.company-hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 213, 115, 0.36), transparent 38%),
    linear-gradient(135deg, #0f314c 0%, #184c73 52%, #226289 100%);
  color: #f5fbff;
}

.company-hero-card::after {
  content: '';
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(6px);
}

.company-hero-card .eyebrow,
.company-hero-card h2,
.company-hero-card .muted-line,
.company-hero-card h3,
.company-hero-card small,
.company-hero-card span,
.company-hero-card strong,
.company-hero-card p {
  color: inherit;
}

.company-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.company-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.company-hero-actions .pill {
  margin: 0;
}

.company-hero-card .secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  color: #eef8ff;
}

.company-hero-card .secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.company-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.company-summary-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 16px;
  display: grid;
  gap: 4px;
}

.company-summary-card span,
.company-summary-card small {
  color: rgba(236, 247, 255, 0.82);
}

.company-summary-card strong {
  font-size: 1.9rem;
  line-height: 1;
}

.company-access-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(4, 20, 33, 0.24);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.company-access-panel h3 {
  margin-bottom: 4px;
}

.company-access-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.company-access-list .pill {
  margin: 0;
}

.company-list-actions {
  align-items: stretch;
}

.company-list-actions select {
  min-width: 190px;
}

.company-list-grid {
  display: grid;
  gap: 16px;
}

.company-list-card,
.company-list-empty {
  border: 1px solid #d9e6ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 18px;
  box-shadow: 0 18px 28px rgba(13, 44, 68, 0.06);
}

.company-list-card.is-owned {
  border-color: #c3def3;
  box-shadow: 0 18px 32px rgba(18, 77, 116, 0.1);
}

.company-list-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.company-list-card-title {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.company-list-card-title h3 {
  margin: 0;
  color: #133a59;
  word-break: break-word;
}

.company-list-card-badges,
.company-card-unit-pills,
.company-unit-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-list-card-badges .pill,
.company-card-unit-pills .pill,
.company-unit-card-badges .pill {
  margin: 0;
}

.company-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

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

.company-card-stat,
.company-unit-card-grid > div {
  border: 1px solid #e1ebf3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 14px;
  min-width: 0;
}

.company-card-stat strong,
.company-unit-card-grid strong {
  display: block;
  color: #173d5b;
  word-break: break-word;
}

.company-card-label {
  display: block;
  margin-bottom: 6px;
  color: #668096;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.company-card-units {
  margin-top: 16px;
  border-top: 1px solid #e4edf4;
  padding-top: 14px;
}

.company-list-empty h3 {
  margin-bottom: 6px;
  color: #173d5b;
}

.company-unit-list {
  margin-top: 14px;
}

.company-unit-board {
  display: grid;
  gap: 12px;
}

.company-unit-card {
  border: 1px solid #dbe8f1;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  padding: 16px;
}

.company-unit-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.company-unit-card-head strong {
  color: #193d59;
}

.company-unit-card-id {
  color: #6a8194;
  font-size: 0.82rem;
  font-weight: 700;
}

.company-unit-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

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

.company-form-grid .company-field-mini,
.company-form-grid .company-field-short,
.company-form-grid .company-field-medium,
.company-form-grid .company-field-coordinate {
  justify-self: start;
  width: 100%;
}

.company-form-grid .company-field-mini {
  max-width: 110px;
}

.company-form-grid .company-field-short {
  max-width: 170px;
}

.company-form-grid .company-field-medium {
  max-width: 240px;
}

.company-form-grid .company-field-coordinate {
  max-width: 220px;
}

body[data-page="companies"] #companyEditStatusWrap {
  grid-column: 1 / -1;
}

.company-branches-list {
  display: grid;
  gap: 10px;
}

.company-branch-row {
  border: 1px solid #d5e4f1;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
}

.company-branch-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.company-unit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-form-block h3 {
  margin-bottom: 4px;
}

.user-hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 229, 160, 0.3), transparent 34%),
    linear-gradient(135deg, #12324a 0%, #145268 46%, #1f756d 100%);
  color: #f4fbfb;
}

.user-hero-card::after {
  content: '';
  position: absolute;
  inset: auto auto -140px -80px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(10px);
}

.user-hero-card .eyebrow,
.user-hero-card h2,
.user-hero-card .muted-line,
.user-hero-card h3,
.user-hero-card small,
.user-hero-card span,
.user-hero-card strong,
.user-hero-card p {
  color: inherit;
}

.user-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.user-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.user-hero-actions .pill {
  margin: 0;
}

.user-hero-card .secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #eefaf8;
}

.user-hero-card .secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.user-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.user-summary-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 16px;
  display: grid;
  gap: 4px;
}

.user-summary-card span,
.user-summary-card small {
  color: rgba(236, 249, 247, 0.84);
}

.user-summary-card strong {
  font-size: 1.9rem;
  line-height: 1;
}

.user-access-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(4, 28, 35, 0.24);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.user-access-panel h3 {
  margin-bottom: 4px;
}

.user-access-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.user-access-list .pill {
  margin: 0;
}

.user-list-actions {
  align-items: stretch;
}

.user-list-actions select {
  min-width: 190px;
}

.user-list-grid {
  display: grid;
  gap: 16px;
}

.user-list-card,
.user-list-empty {
  border: 1px solid #d9e6ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 18px;
  box-shadow: 0 18px 28px rgba(13, 44, 68, 0.06);
}

.user-list-card.is-owned {
  border-color: #c3e6df;
  box-shadow: 0 18px 32px rgba(22, 101, 105, 0.12);
}

.user-list-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.user-list-card-title {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.user-list-card-title h3 {
  margin: 0;
  color: #133a59;
  word-break: break-word;
}

.user-list-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-list-card-badges .pill {
  margin: 0;
}

.user-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

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

.user-card-stat {
  border: 1px solid #e1ebf3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 14px;
  min-width: 0;
}

.user-card-stat strong {
  display: block;
  color: #173d5b;
  word-break: break-word;
}

.user-card-label {
  display: block;
  margin-bottom: 6px;
  color: #668096;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-list-empty h3 {
  margin-bottom: 6px;
  color: #173d5b;
}

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

.user-form-grid .user-field-medium,
.user-form-grid .password-input-wrap {
  justify-self: start;
  width: 100%;
}

.user-form-grid .user-field-medium {
  max-width: 240px;
}

.user-inline-checks .checkbox-inline,
body[data-page="users"] #userGlobalWrap,
body[data-page="users"] #editUserGlobalWrap {
  grid-column: 1 / -1;
}

.user-form-actions {
  grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-form-actions button {
  flex: 0 0 auto;
}

body[data-page="logs"] {
  --audit-bg-top: #f5f8ff;
  --audit-bg-mid: #edf4ff;
  --audit-bg-bottom: #f7fbf5;
  --audit-card-border: #caddeb;
  --audit-card-shadow: 0 16px 32px rgba(12, 38, 61, 0.12);
  background:
    radial-gradient(940px 450px at -10% -6%, rgba(40, 134, 221, 0.18), transparent 62%),
    radial-gradient(880px 460px at 108% -4%, rgba(26, 148, 118, 0.12), transparent 62%),
    linear-gradient(165deg, var(--audit-bg-top) 0%, var(--audit-bg-mid) 56%, var(--audit-bg-bottom) 100%);
}

body[data-page="logs"] .layout {
  gap: 20px;
}

body[data-page="logs"] .card {
  position: relative;
  overflow: hidden;
  border-color: var(--audit-card-border);
  border-radius: 20px;
  background: linear-gradient(170deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--audit-card-shadow);
}

body[data-page="logs"] .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, rgba(24, 135, 216, 0.92) 0%, rgba(16, 164, 116, 0.88) 58%, rgba(214, 146, 33, 0.82) 100%);
}

body[data-page="logs"] .card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 191, 238, 0.3) 0%, rgba(112, 191, 238, 0) 68%);
  pointer-events: none;
  opacity: 0.3;
}

body[data-page="logs"] .audit-hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 226, 152, 0.32), transparent 38%),
    linear-gradient(135deg, #11314a 0%, #155974 46%, #1c6a59 100%);
  color: #f4fbff;
}

body[data-page="logs"] .audit-hero-card::after {
  content: '';
  position: absolute;
  inset: auto -96px -124px auto;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(10px);
}

.audit-hero-card .eyebrow,
.audit-hero-card h2,
.audit-hero-card .muted-line,
.audit-hero-card h3,
.audit-hero-card small,
.audit-hero-card span,
.audit-hero-card strong,
.audit-hero-card p {
  color: inherit;
}

.audit-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.audit-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.audit-hero-actions .pill {
  margin: 0;
}

.audit-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.audit-summary-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 16px;
  display: grid;
  gap: 4px;
}

.audit-summary-card span,
.audit-summary-card small {
  color: rgba(236, 248, 255, 0.84);
}

.audit-summary-card strong {
  font-size: 1.9rem;
  line-height: 1;
}

.audit-access-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(4, 24, 37, 0.24);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.audit-access-panel h3 {
  margin-bottom: 4px;
}

.audit-access-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.audit-access-list .pill {
  margin: 0;
}

.audit-filter-shell {
  margin-bottom: 16px;
}

.audit-log-filter-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audit-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.audit-filter-actions button {
  flex: 0 0 auto;
}

.audit-log-list-grid {
  display: grid;
  gap: 16px;
}

.audit-log-list-card,
.audit-log-list-empty {
  border: 1px solid #d9e6ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 18px;
  box-shadow: 0 18px 28px rgba(13, 44, 68, 0.06);
}

.audit-log-list-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.audit-log-list-card-title {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.audit-log-list-card-title h3 {
  margin: 0;
  color: #133a59;
  word-break: break-word;
}

.audit-log-list-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audit-log-list-card-badges .pill {
  margin: 0;
}

.audit-log-list-card-side {
  display: grid;
  justify-items: end;
  align-content: flex-start;
  gap: 8px;
  min-width: 150px;
}

.audit-log-card-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid #d7e5f0;
  background: rgba(255, 255, 255, 0.9);
  color: #183e5d;
  font-weight: 700;
  text-align: center;
}

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

.audit-log-card-stat {
  border: 1px solid #e1ebf3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 14px;
  min-width: 0;
}

.audit-log-card-stat strong {
  display: block;
  color: #173d5b;
  word-break: break-word;
}

.audit-log-card-label {
  display: block;
  margin-bottom: 6px;
  color: #668096;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.audit-log-card-details {
  margin-top: 16px;
  border-top: 1px solid #e0ebf3;
  padding-top: 12px;
}

.audit-log-card-details summary {
  cursor: pointer;
  color: #0f6197;
  font-size: 0.82rem;
  font-weight: 700;
}

.audit-log-card-details-body {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  color: #2f4a61;
  font-size: 0.82rem;
}

.audit-log-card-details-body p {
  margin: 0;
  word-break: break-word;
}

.audit-log-list-empty h3 {
  margin-bottom: 6px;
  color: #173d5b;
}

body[data-page="releases"] {
  --release-bg-top: #f6f9ff;
  --release-bg-mid: #eef5ff;
  --release-bg-bottom: #f6fbf4;
  --release-card-border: #c9ddec;
  --release-card-shadow: 0 16px 32px rgba(13, 39, 63, 0.12);
  background:
    radial-gradient(940px 450px at -10% -6%, rgba(44, 128, 214, 0.18), transparent 62%),
    radial-gradient(860px 460px at 108% -4%, rgba(17, 148, 113, 0.12), transparent 62%),
    linear-gradient(165deg, var(--release-bg-top) 0%, var(--release-bg-mid) 56%, var(--release-bg-bottom) 100%);
}

body[data-page="releases"] .layout {
  gap: 20px;
}

body[data-page="releases"] .card {
  position: relative;
  overflow: hidden;
  border-color: var(--release-card-border);
  border-radius: 20px;
  background: linear-gradient(170deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--release-card-shadow);
}

body[data-page="releases"] .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, rgba(28, 142, 219, 0.92) 0%, rgba(24, 164, 116, 0.9) 58%, rgba(217, 150, 41, 0.82) 100%);
}

body[data-page="releases"] .card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 191, 238, 0.3) 0%, rgba(112, 191, 238, 0) 68%);
  pointer-events: none;
  opacity: 0.3;
}

body[data-page="releases"] .release-hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 224, 150, 0.32), transparent 38%),
    linear-gradient(135deg, #112f49 0%, #165773 46%, #186c63 100%);
  color: #f4fbff;
}

body[data-page="releases"] .release-hero-card::after {
  content: '';
  position: absolute;
  inset: auto -96px -124px auto;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(10px);
}

.release-hero-card .eyebrow,
.release-hero-card h2,
.release-hero-card .muted-line,
.release-hero-card h3,
.release-hero-card small,
.release-hero-card span,
.release-hero-card strong,
.release-hero-card p {
  color: inherit;
}

.release-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.release-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.release-hero-actions .pill {
  margin: 0;
}

.release-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.release-summary-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 16px;
  display: grid;
  gap: 4px;
}

.release-summary-card span,
.release-summary-card small {
  color: rgba(236, 248, 255, 0.84);
}

.release-summary-card strong {
  font-size: 1.9rem;
  line-height: 1;
}

.release-access-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(4, 23, 36, 0.24);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.release-access-panel h3 {
  margin-bottom: 4px;
}

.release-access-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.release-access-list .pill {
  margin: 0;
}

.release-filter-shell {
  margin-bottom: 18px;
}

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

.release-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.release-filter-actions button {
  flex: 0 0 auto;
}

.release-list-grid {
  display: grid;
  gap: 16px;
}

.release-list-card,
.release-list-empty {
  border: 1px solid #d9e6ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 18px;
  box-shadow: 0 18px 28px rgba(13, 44, 68, 0.06);
}

.release-list-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.release-list-card-title {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.release-list-card-title h3 {
  margin: 0;
  color: #133a59;
  word-break: break-word;
}

.release-list-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.release-list-card-badges .pill {
  margin: 0;
}

.release-list-card-side {
  display: grid;
  justify-items: end;
  align-content: flex-start;
  gap: 8px;
  min-width: 150px;
}

.release-card-date,
.release-card-duration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid #d7e5f0;
  background: rgba(255, 255, 255, 0.9);
  color: #183e5d;
  font-weight: 700;
  text-align: center;
}

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

.release-card-stat {
  border: 1px solid #e1ebf3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 14px;
  min-width: 0;
}

.release-card-stat strong,
.release-card-stat small {
  display: block;
  color: #173d5b;
  word-break: break-word;
}

.release-card-stat small {
  margin-top: 6px;
  color: #69829a;
}

.release-card-label {
  display: block;
  margin-bottom: 6px;
  color: #668096;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.release-card-details {
  margin-top: 16px;
  border-top: 1px solid #e0ebf3;
  padding-top: 12px;
}

.release-card-details summary {
  cursor: pointer;
  color: #0f6197;
  font-size: 0.82rem;
  font-weight: 700;
}

.release-card-details-body {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  color: #2f4a61;
  font-size: 0.82rem;
}

.release-card-details-body p {
  margin: 0;
  word-break: break-word;
}

.release-card-error {
  color: #9a2236;
}

.release-list-empty h3 {
  margin-bottom: 6px;
  color: #173d5b;
}

body[data-page="routers-manage"] {
  --router-manage-bg-top: #f3f8ff;
  --router-manage-bg-mid: #eaf3ff;
  --router-manage-bg-bottom: #eef8f3;
  --router-manage-card-border: #c8deef;
  --router-manage-card-shadow: 0 16px 32px rgba(11, 33, 54, 0.12);
  background:
    radial-gradient(940px 460px at -12% -6%, rgba(27, 147, 220, 0.18), transparent 62%),
    radial-gradient(860px 440px at 110% -4%, rgba(22, 165, 130, 0.12), transparent 62%),
    linear-gradient(165deg, var(--router-manage-bg-top) 0%, var(--router-manage-bg-mid) 55%, var(--router-manage-bg-bottom) 100%);
}

body[data-page="routers-manage"] .layout {
  gap: 20px;
}

body[data-page="routers-manage"] .card {
  position: relative;
  overflow: hidden;
  border-color: var(--router-manage-card-border);
  border-radius: 20px;
  background: linear-gradient(170deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--router-manage-card-shadow);
}

body[data-page="routers-manage"] .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, rgba(29, 147, 220, 0.92) 0%, rgba(17, 160, 121, 0.9) 58%, rgba(214, 140, 26, 0.82) 100%);
}

body[data-page="routers-manage"] .card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 191, 238, 0.34) 0%, rgba(112, 191, 238, 0) 68%);
  pointer-events: none;
  opacity: 0.34;
}

.router-manage-form-block h3 {
  margin-bottom: 4px;
}

body[data-page="routers-manage"] .router-manage-hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 221, 144, 0.34), transparent 38%),
    linear-gradient(135deg, #10324c 0%, #155777 48%, #17705a 100%);
  color: #f5fbff;
}

body[data-page="routers-manage"] .router-manage-hero-card::after {
  content: '';
  position: absolute;
  inset: auto -90px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(8px);
}

.router-manage-hero-card .eyebrow,
.router-manage-hero-card h2,
.router-manage-hero-card .muted-line,
.router-manage-hero-card h3,
.router-manage-hero-card small,
.router-manage-hero-card span,
.router-manage-hero-card strong,
.router-manage-hero-card p {
  color: inherit;
}

.router-manage-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.router-manage-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.router-manage-hero-actions .pill {
  margin: 0;
}

.router-manage-hero-card .secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #eef8ff;
}

.router-manage-hero-card a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.router-manage-hero-card .secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.router-manage-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.router-manage-summary-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 16px;
  display: grid;
  gap: 4px;
}

.router-manage-summary-card span,
.router-manage-summary-card small {
  color: rgba(236, 247, 255, 0.82);
}

.router-manage-summary-card strong {
  font-size: 1.9rem;
  line-height: 1;
}

.router-manage-access-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(4, 20, 33, 0.24);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.router-manage-access-panel h3 {
  margin-bottom: 4px;
}

.router-manage-access-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.router-manage-access-list .pill {
  margin: 0;
}

.router-manage-list-actions {
  align-items: stretch;
}

.router-manage-list-actions select {
  min-width: 190px;
}

.router-manage-list-grid {
  display: grid;
  gap: 16px;
}

.router-manage-card,
.router-manage-list-empty {
  border: 1px solid #d9e6ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 18px;
  box-shadow: 0 18px 28px rgba(13, 44, 68, 0.06);
}

.router-manage-card.is-owned {
  border-color: #c3def3;
  box-shadow: 0 18px 32px rgba(18, 77, 116, 0.1);
}

.router-manage-card.router-row-selected {
  border-color: #89c5ea;
  box-shadow: 0 20px 34px rgba(18, 99, 150, 0.14);
}

.router-manage-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.router-manage-card-title {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.router-manage-card-title h3 {
  margin: 0;
  color: #133a59;
  word-break: break-word;
}

.router-manage-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.router-manage-card-badges .pill {
  margin: 0;
}

.router-manage-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.router-manage-card-grid,
.router-manage-card-meta {
  display: grid;
  gap: 12px;
}

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

.router-manage-card-stat,
.router-manage-card-meta-item {
  border: 1px solid #e1ebf3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 14px;
  min-width: 0;
}

.router-manage-card-meta {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.router-manage-card-stat strong,
.router-manage-card-meta-item strong {
  display: block;
  color: #173d5b;
  word-break: break-word;
}

.router-manage-card-label {
  display: block;
  margin-bottom: 6px;
  color: #668096;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.router-manage-list-empty h3 {
  margin-bottom: 6px;
  color: #173d5b;
}

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

.router-manage-form-grid .router-field-short,
.router-manage-form-grid .router-field-medium,
.router-manage-form-grid .password-input-wrap,
.router-manage-form-grid textarea {
  justify-self: start;
  width: 100%;
}

.router-manage-form-grid .router-field-short {
  max-width: 180px;
}

.router-manage-form-grid .router-field-medium {
  max-width: 240px;
}

.router-manage-form-grid textarea {
  grid-column: 1 / -1;
  min-height: 96px;
  resize: vertical;
}

.router-manage-inline-checks .checkbox-inline {
  grid-column: 1 / -1;
}

.router-manage-form-actions {
  grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.router-manage-form-actions button {
  flex: 0 0 auto;
}

body[data-page="routers-manage"] .section-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d4e6f3;
  align-items: flex-start;
  flex-wrap: wrap;
}

body[data-page="routers-manage"] .section-header h2 {
  margin: 0;
  color: #133a59;
  font-size: 1.24rem;
}

body[data-page="routers-manage"] .muted-line {
  color: #5b7387;
}

body[data-page="routers-manage"] .router-table-action-menu > summary {
  border-color: #bfd7e8;
  background: linear-gradient(180deg, #ffffff 0%, #eaf5ff 100%);
  color: #204a68;
}

body[data-page="routers-manage"] .router-table-action-list {
  border-color: #c9deee;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfeff 0%, #edf6ff 100%);
  box-shadow: 0 12px 22px rgba(12, 40, 64, 0.16);
}

.unit-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #d5e4f1;
  border-radius: 10px;
  padding: 7px 10px;
  background: #f8fbff;
  color: #31506a;
  font-size: 0.85rem;
}

.unit-chip small {
  color: #5f7488;
  font-size: 0.76rem;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: #35506a;
  padding: 6px 0;
}

.checkbox-inline input {
  width: auto;
  min-height: auto;
}

#companyFormMessage,
#companyEditMessage,
#companyUnitFormMessage,
#userFormMessage,
#userEditMessage,
#userPasswordMessage,
#routerFormMessage,
#routerEditMessage {
  min-height: 20px;
  margin: 0;
  color: #2f5772;
  font-size: 0.87rem;
}

pre {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #294a66;
  background: #0d2438;
  color: #e6f3ff;
  overflow: auto;
  font-size: 0.84rem;
}

.hidden {
  display: none !important;
}

@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1360px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sidebar-column {
    position: static;
  }

  .sidebar {
    position: static;
    padding: 18px;
  }

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

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

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

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

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

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

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

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

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

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

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

@media (max-width: 980px) {
  body[data-page="dashboard"] .dashboard-hero-top,
  body[data-page="dashboard"] .dashboard-focus-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="dashboard"] .dashboard-hero-card {
    padding: 20px;
  }

  body[data-page="dashboard"] .dashboard-hero-copy h2 {
    max-width: none;
  }

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

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

  body[data-page="dashboard"] .dashboard-turn-trend-grid,
  body[data-page="dashboard"] .dashboard-turn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-routers-map {
    height: 360px;
  }

  .dashboard-map-frame,
  .dashboard-map-empty {
    min-height: 320px;
  }

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

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

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

  .grid-form > .embedded-card {
    grid-column: span 1;
  }

  .grid-form > button,
  .grid-form > p,
  .grid-form > label.checkbox-inline {
    grid-column: span 1;
  }

  .user-form-actions {
    grid-column: span 1;
  }

  .router-manage-form-actions {
    grid-column: span 1;
  }

  .company-form-grid {
    grid-template-columns: 1fr;
  }

  .user-form-grid {
    grid-template-columns: 1fr;
  }

  .router-manage-form-grid {
    grid-template-columns: 1fr;
  }

  .company-hero-top,
  .audit-hero-top,
  .audit-access-panel,
  .audit-log-list-card-head,
  .release-hero-top,
  .release-access-panel,
  .release-list-card-head,
  .company-access-panel,
  .company-list-card-head,
  .company-unit-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .user-hero-top,
  .user-access-panel,
  .user-list-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .router-manage-hero-top,
  .router-manage-access-panel,
  .router-manage-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .company-summary-grid,
  .audit-summary-grid,
  .release-summary-grid,
  .company-card-grid,
  .company-unit-card-grid {
    grid-template-columns: 1fr;
  }

  .audit-log-card-grid,
  .audit-log-filter-form,
  .release-card-grid,
  .release-filter-form {
    grid-template-columns: 1fr;
  }

  .user-summary-grid,
  .user-card-grid {
    grid-template-columns: 1fr;
  }

  .router-manage-summary-grid,
  .router-manage-card-grid,
  .router-manage-card-meta {
    grid-template-columns: 1fr;
  }

  .company-access-list,
  .audit-access-list,
  .release-access-list,
  .company-card-actions,
  .company-unit-actions {
    justify-content: flex-start;
  }

  .audit-filter-actions,
  .release-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .audit-filter-actions button,
  .audit-log-list-card-side,
  .release-filter-actions button,
  .release-list-card-side {
    width: 100%;
  }

  .audit-log-list-card-side,
  .release-list-card-side {
    justify-items: stretch;
    min-width: 0;
  }

  .user-access-list,
  .user-card-actions,
  .user-form-actions {
    justify-content: flex-start;
  }

  .router-manage-access-list,
  .router-manage-card-actions,
  .router-manage-form-actions {
    justify-content: flex-start;
  }

  .inline-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .inline-actions select,
  .inline-actions button,
  .inline-actions input {
    width: 100%;
  }

  .router-temp-blocklist-controls {
    grid-template-columns: 1fr 1fr;
  }

  .router-security-summary-strip {
    grid-template-columns: 1fr 1fr;
  }

  .router-security-assistant-input-wrap {
    grid-template-columns: 1fr;
  }

  .router-security-profile-controls {
    grid-template-columns: 1fr 1fr;
  }

  .router-global-allowlist-controls {
    grid-template-columns: 1fr 1fr;
  }

  .router-security-radar-ai-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .router-security-radar-ai-btn {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 700px) {
  body[data-page="dashboard"] .dashboard-hero-card {
    padding: 18px;
  }

  body[data-page="dashboard"] .dashboard-hero-links,
  body[data-page="dashboard"] .dashboard-hero-radar-head {
    gap: 8px;
  }

  body[data-page="dashboard"] .dashboard-hero-radar-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="dashboard"] .dashboard-hero-links a.secondary {
    width: 100%;
  }

  body[data-page="dashboard"] .dashboard-turn-trend-grid,
  body[data-page="dashboard"] .dashboard-turn-grid,
  body[data-page="routers"] .router-batch-activity-list {
    grid-template-columns: 1fr;
  }

  body[data-page="dashboard"] .dashboard-turn-lane-head,
  body[data-page="routers"] .router-batch-activity-head,
  body[data-page="routers"] .router-batch-router-result {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-shell {
    width: calc(100% - 12px);
    padding: 6px;
    margin-top: 8px;
  }

  .card,
  .auth-card {
    border-radius: 16px;
  }

  .dashboard-slo-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 13px;
  }

  .auth-logo {
    width: min(220px, 82%);
  }

  .stats-grid,
  .monitor-cards,
  .monitor-cards.monitor-cards-xl,
  .nav-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-routers-map {
    height: 320px;
  }

  .dashboard-map-frame,
  .dashboard-map-empty {
    min-height: 280px;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .company-summary-card strong {
    font-size: 1.6rem;
  }

  .audit-summary-card strong {
    font-size: 1.6rem;
  }

  .release-summary-card strong {
    font-size: 1.6rem;
  }

  .inline-actions input[type="search"] {
    min-width: 0;
  }

  .router-detail-action-wrap {
    justify-content: stretch;
  }

  .router-detail-action-menu {
    width: 100%;
    min-width: 0;
  }

  .router-detail-action-menu > summary {
    width: 100%;
  }

  .router-detail-action-list {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
  }

  .router-temp-blocklist-controls {
    grid-template-columns: 1fr;
  }

  .router-security-summary-strip {
    grid-template-columns: 1fr;
  }

  .router-global-allowlist-controls {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: min(180px, 100%);
  }

  .router-table-action-menu {
    width: auto;
    min-width: 0;
  }

  .router-table-action-menu > summary {
    width: auto;
    min-width: 58px;
  }

  .router-table-action-list {
    position: fixed;
    width: var(--router-action-menu-width, min(300px, calc(100vw - 14px)));
    min-width: 0;
    max-height: var(--router-action-menu-max-height, min(52vh, 300px));
    margin-top: 0;
    grid-template-columns: 1fr;
  }

  .iface-row-head,
  .iface-usage-head,
  .dhcp-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .router-chart-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .router-chart-filter {
    width: 100%;
  }

  .router-chart-filter-wide {
    flex-basis: 100%;
  }

  .router-chart-filter select {
    width: 100%;
  }

  .router-chart-interface-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .router-chart-interface-actions {
    width: 100%;
  }

  .router-chart-interface-actions .secondary {
    flex: 1 1 0;
  }

  .router-chart-interface-list {
    grid-template-columns: 1fr;
    max-height: 180px;
  }

  .router-logs-health {
    align-items: flex-start;
  }

  .router-logs-filters {
    grid-template-columns: 1fr;
  }

  .router-logs-filter-date {
    flex-direction: column;
    align-items: flex-start;
  }

  .router-config-editor {
    padding: 8px;
  }

  .router-config-editor-card {
    max-height: calc(100vh - 16px);
    border-radius: 14px;
    padding: 12px;
  }

  .router-config-editor-head {
    flex-direction: column;
    align-items: stretch;
  }

  .router-config-editor-grid {
    grid-template-columns: 1fr;
  }

  .router-config-editor-grid-wide {
    grid-column: span 1;
  }

  .router-config-editor-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .router-config-editor-actions button {
    min-width: 0;
    width: 100%;
  }
}

body[data-page="ops-health"] {
  --ops-ink: #163142;
  --ops-muted: #547084;
  --ops-panel: rgba(255, 255, 255, 0.92);
  --ops-outline: rgba(43, 92, 119, 0.12);
  --ops-app: #0d8b85;
  --ops-db: #c96a2e;
  --ops-warn: #b8532d;
  background:
    radial-gradient(1200px 480px at 0% -5%, rgba(20, 152, 132, 0.12), transparent 58%),
    radial-gradient(900px 420px at 100% 0%, rgba(212, 131, 47, 0.16), transparent 52%),
    linear-gradient(180deg, #f8fbfd 0%, #edf4f7 48%, #f7fafc 100%);
}

body[data-page="ops-health"] .layout.ops-health-layout {
  gap: 18px;
}

body[data-page="ops-health"] .ops-health-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 74, 101, 0.08);
  background:
    radial-gradient(480px 220px at 105% -10%, rgba(201, 106, 46, 0.18), transparent 60%),
    radial-gradient(360px 240px at -5% 0%, rgba(13, 139, 133, 0.16), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(243, 249, 252, 0.96) 58%, rgba(234, 243, 247, 0.95) 100%);
  box-shadow: 0 18px 42px rgba(20, 54, 73, 0.08);
}

body[data-page="ops-health"] .ops-health-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -48% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 106, 46, 0.18) 0%, transparent 72%);
  pointer-events: none;
}

body[data-page="ops-health"] .ops-health-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.95fr);
  gap: 18px;
  align-items: start;
}

body[data-page="ops-health"] .ops-health-kicker {
  margin: 0 0 8px;
  color: #0f7b88;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page="ops-health"] .ops-health-hero h2,
body[data-page="ops-health"] .ops-health-surface h2,
body[data-page="ops-health"] .ops-health-cluster h3,
body[data-page="ops-health"] .ops-health-subpanel h3 {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  color: var(--ops-ink);
}

body[data-page="ops-health"] .ops-health-hero h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.65rem);
  line-height: 1.04;
}

body[data-page="ops-health"] .ops-health-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--ops-muted);
  font-size: 1rem;
  line-height: 1.6;
}

body[data-page="ops-health"] .ops-health-hero-side {
  display: grid;
  gap: 14px;
  justify-items: end;
  text-align: right;
}

body[data-page="ops-health"] .ops-health-hero-side .secondary {
  min-width: 148px;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(22, 49, 66, 0.12);
}

body[data-page="ops-health"] .ops-health-signal-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

body[data-page="ops-health"] .ops-health-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(26, 67, 92, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ops-ink);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(20, 54, 73, 0.06);
}

body[data-page="ops-health"] .ops-health-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a0b9c8;
  box-shadow: 0 0 0 4px rgba(160, 185, 200, 0.16);
}

body[data-page="ops-health"] .ops-health-chip.is-ok::before {
  background: #1e9f69;
  box-shadow: 0 0 0 4px rgba(30, 159, 105, 0.16);
}

body[data-page="ops-health"] .ops-health-chip.is-warn::before {
  background: #d4842a;
  box-shadow: 0 0 0 4px rgba(212, 132, 42, 0.16);
}

body[data-page="ops-health"] .ops-health-chip.is-danger::before {
  background: #cc5a4b;
  box-shadow: 0 0 0 4px rgba(204, 90, 75, 0.16);
}

body[data-page="ops-health"] .ops-health-chip.is-info::before {
  background: #2781c6;
  box-shadow: 0 0 0 4px rgba(39, 129, 198, 0.16);
}

body[data-page="ops-health"] .ops-health-chip.is-neutral::before {
  background: #879aaa;
  box-shadow: 0 0 0 4px rgba(135, 154, 170, 0.16);
}

body[data-page="ops-health"] .ops-health-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="ops-health"] .ops-health-status-grid .stat-card {
  min-height: 122px;
  border: 1px solid rgba(29, 78, 106, 0.08);
  background:
    radial-gradient(220px 120px at 105% -10%, rgba(13, 139, 133, 0.14), transparent 62%),
    linear-gradient(165deg, #ffffff 0%, #f5fafc 72%, #eef5f8 100%);
  box-shadow: 0 14px 30px rgba(17, 52, 71, 0.06);
}

body[data-page="ops-health"] .ops-health-detail-grid,
body[data-page="ops-health"] .ops-health-story-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="ops-health"] .ops-health-brief-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--ops-outline);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 252, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body[data-page="ops-health"] .ops-health-brief-card h3 {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ops-ink);
}

body[data-page="ops-health"] .ops-health-brief-value {
  margin: 10px 0 8px;
  font-size: 1.55rem;
  line-height: 1.08;
  font-weight: 800;
  color: var(--ops-ink);
}

body[data-page="ops-health"] .ops-health-brief-value.metric-ok {
  color: #1e9f69;
}

body[data-page="ops-health"] .ops-health-brief-value.metric-warn {
  color: #d4842a;
}

body[data-page="ops-health"] .ops-health-brief-value.metric-danger {
  color: #cc5a4b;
}

body[data-page="ops-health"] .ops-health-brief-value.metric-info {
  color: #2781c6;
}

body[data-page="ops-health"] .ops-health-brief-value.metric-neutral {
  color: var(--ops-ink);
}

body[data-page="ops-health"] .ops-health-brief-card ul {
  margin: 0;
  padding-left: 16px;
  color: var(--ops-muted);
  line-height: 1.55;
}

body[data-page="ops-health"] .ops-health-surface {
  border: 1px solid rgba(26, 74, 98, 0.08);
  background: var(--ops-panel);
  box-shadow: 0 16px 36px rgba(17, 52, 71, 0.07);
}

body[data-page="ops-health"] .ops-health-trend-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

body[data-page="ops-health"] .ops-health-trend-card {
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(26, 74, 98, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 249, 252, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body[data-page="ops-health"] .ops-health-trend-card.tone-ok {
  border-color: rgba(30, 159, 105, 0.24);
}

body[data-page="ops-health"] .ops-health-trend-card.tone-warn {
  border-color: rgba(212, 132, 42, 0.24);
}

body[data-page="ops-health"] .ops-health-trend-card.tone-danger {
  border-color: rgba(204, 90, 75, 0.24);
}

body[data-page="ops-health"] .ops-health-trend-card.tone-info {
  border-color: rgba(39, 129, 198, 0.24);
}

body[data-page="ops-health"] .ops-health-trend-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ops-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body[data-page="ops-health"] .ops-health-trend-card strong {
  display: block;
  color: var(--ops-ink);
  font-size: 1.3rem;
  line-height: 1.1;
}

body[data-page="ops-health"] .ops-health-trend-card small {
  display: block;
  margin-top: 6px;
  color: var(--ops-muted);
  line-height: 1.45;
}

body[data-page="ops-health"] .ops-health-trend-meta {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  color: var(--ops-ink);
  font-size: 0.82rem;
}

body[data-page="ops-health"] #opsHealthInfraSection {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1120px;
}

body[data-page="ops-health"] .ops-health-infra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

body[data-page="ops-health"] .ops-health-cluster {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(28, 75, 97, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body[data-page="ops-health"] .ops-health-cluster--app {
  background:
    radial-gradient(260px 120px at 105% -8%, rgba(13, 139, 133, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(250, 255, 254, 0.98) 0%, rgba(237, 248, 246, 0.98) 100%);
}

body[data-page="ops-health"] .ops-health-cluster--db {
  background:
    radial-gradient(260px 120px at 105% -8%, rgba(201, 106, 46, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.98) 0%, rgba(248, 241, 235, 0.98) 100%);
}

body[data-page="ops-health"] .ops-health-cluster-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body[data-page="ops-health"] .ops-health-cluster-head h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
}

body[data-page="ops-health"] .ops-health-cluster-head p,
body[data-page="ops-health"] .ops-health-subpanel p,
body[data-page="ops-health"] .ops-health-brief-card p {
  margin: 0;
  color: var(--ops-muted);
  line-height: 1.55;
}

body[data-page="ops-health"] .ops-health-cluster-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(26, 74, 98, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ops-ink);
}

body[data-page="ops-health"] .ops-health-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="ops-health"] .ops-health-metric-grid .stat-card {
  min-height: 112px;
  border-radius: 18px;
  border: 1px solid rgba(22, 67, 91, 0.08);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(18, 53, 72, 0.05);
}

body[data-page="ops-health"] .ops-health-subpanel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(26, 74, 98, 0.08);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body[data-page="ops-health"] .ops-health-subpanel h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

body[data-page="ops-health"] .ops-health-hotspots {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

body[data-page="ops-health"] .ops-health-hotspot-card {
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(24, 72, 96, 0.08);
  background: linear-gradient(180deg, rgba(253, 252, 250, 0.98) 0%, rgba(246, 248, 250, 0.98) 100%);
}

body[data-page="ops-health"] .ops-health-hotspot-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

body[data-page="ops-health"] .ops-health-hotspot-top strong {
  font-size: 1rem;
  color: var(--ops-ink);
}

body[data-page="ops-health"] .ops-health-hotspot-meta {
  color: var(--ops-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

body[data-page="ops-health"] .ops-health-progress {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 10px;
  margin: 10px 0 8px;
  border-radius: 999px;
  background: #e7eef2;
}

body[data-page="ops-health"] .ops-health-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d8b85 0%, #d08b2f 100%);
}

body[data-page="ops-health"] .ops-health-rich-text {
  display: grid;
  gap: 12px;
}

body[data-page="ops-health"] .ops-health-rich-text .ops-health-brief-card {
  padding: 15px 16px;
}

body[data-page="ops-health"] .ops-health-rich-text .ops-health-brief-value {
  font-size: 1.15rem;
  margin-top: 8px;
  margin-bottom: 6px;
}

body[data-page="ops-health"] #opsHealthInfraSection .table-wrap {
  border-radius: 18px;
  border: 1px solid rgba(25, 72, 95, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(18, 52, 71, 0.05);
}

@media (max-width: 1120px) {
  body[data-page="ops-health"] .ops-health-hero-grid,
  body[data-page="ops-health"] .ops-health-infra-grid,
  body[data-page="ops-health"] .ops-health-detail-grid,
  body[data-page="ops-health"] .ops-health-story-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="ops-health"] .ops-health-trend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="ops-health"] .ops-health-hero-side {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 860px) {
  body[data-page="ops-health"] .ops-health-status-grid,
  body[data-page="ops-health"] .ops-health-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="routers"] .router-suite-card-head,
  body[data-page="routers-manage"] .router-suite-card-head {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  body[data-page="ops-health"] .ops-health-status-grid,
  body[data-page="ops-health"] .ops-health-metric-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="ops-health"] .ops-health-trend-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="ops-health"] .ops-health-hero {
    padding: 18px;
  }

  body[data-page="routers"] .router-suite-quick-actions,
  body[data-page="routers-manage"] .router-suite-quick-actions {
    flex-direction: column;
  }

  body[data-page="routers"] .router-suite-quick-actions .secondary,
  body[data-page="routers-manage"] .router-suite-quick-actions .secondary {
    width: 100%;
  }
}

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