:root {
  color-scheme: light;
  --bg: #edf4f6;
  --panel: #ffffff;
  --panel-tint: #f8fbfb;
  --text: #1f2933;
  --muted: #667085;
  --line: #d5e2e5;
  --line-strong: #c3d4d8;
  --accent: #00927e;
  --accent-dark: #006f62;
  --accent-soft: #e0f4f1;
  --accent-blue: #009ddc;
  --accent-gold: #e58e1a;
  --accent-glow: rgba(0, 157, 220, 0.22);
  --nav: #071f26;
  --nav-2: #0d3d48;
  --nav-3: #006f62;
  --ok: #18794e;
  --warn: #a15c07;
  --bad: #b42318;
  --shadow: 0 14px 34px rgb(18 44 49 / 9%);
  --shadow-soft: 0 6px 16px rgb(18 44 49 / 7%);
  --sidebar-width: 250px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: block;
  background:
    radial-gradient(circle at 90% 8%, rgba(0, 157, 220, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fcfc 0%, var(--bg) 46%, #f7fafb 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.app-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.app-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(23, 111, 112, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 111, 112, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(115deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
  opacity: 0.72;
}

.app-fiber {
  position: absolute;
  display: block;
  height: 2px;
  width: 720px;
  background: linear-gradient(90deg, transparent, rgba(23, 111, 112, 0.08), rgba(41, 174, 176, 0.4), transparent);
  box-shadow: 0 0 18px rgba(41, 174, 176, 0.22);
  transform-origin: center;
}

.app-fiber-a {
  top: 96px;
  right: -180px;
  transform: rotate(-18deg);
}

.app-fiber-b {
  top: 360px;
  right: -240px;
  transform: rotate(14deg);
  opacity: 0.72;
}

.app-fiber-c {
  bottom: 90px;
  left: 180px;
  transform: rotate(-8deg);
  opacity: 0.46;
}

body.auth-page {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(18, 130, 132, 0.28), transparent 42%),
    linear-gradient(245deg, rgba(0, 157, 220, 0.24), transparent 48%),
    #071c1f;
  color: #eef8f8;
}

body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(115deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
}

aside {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: var(--sidebar-width);
  height: 100vh;
  min-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, rgba(0, 157, 220, 0.18), transparent 28%),
    linear-gradient(155deg, var(--nav-3), var(--nav-2) 34%, var(--nav) 76%, #041416);
  color: #fff;
  padding: 22px 16px;
  box-shadow: 10px 0 34px rgb(8 31 34 / 16%);
}

.brand {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  padding: 4px 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-logo {
  width: 100%;
  height: 96px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 252, 0.96)),
    #ffffff;
  padding: 9px 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.brand span {
  color: #8bdff7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand strong {
  color: #f5ffff;
  display: block;
  font-size: 19px;
  line-height: 1.1;
}

nav {
  display: grid;
  gap: 18px;
}

.nav-group {
  display: grid;
  gap: 5px;
}

.nav-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  color: #8bdcdd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}

.nav-heading::-webkit-details-marker {
  display: none;
}

.nav-heading::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.nav-group[open] .nav-heading::after {
  transform: rotate(45deg);
}

.nav-heading:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #b7f3f4;
}

.nav-links {
  display: grid;
  gap: 5px;
}

nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d2e2e3;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.2;
}

.nav-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(139, 220, 221, 0.26);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
}

.nav-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(139, 220, 221, 0.72);
}

nav a:hover,
nav a.active {
  background: rgba(255, 255, 255, 0.105);
  border-color: rgba(139, 232, 233, 0.22);
  color: #fff;
}

nav a.active {
  box-shadow: inset 3px 0 0 var(--accent-gold), 0 8px 18px rgba(0, 0, 0, 0.1);
}

nav a.active .nav-icon {
  border-color: rgba(139, 232, 233, 0.55);
  background: rgba(119, 228, 230, 0.16);
}

.logout-form {
  margin-top: 18px;
}

.logout-form button {
  width: 100%;
  background: #194142;
  color: #c8d7d8;
}

.logout-form button:hover {
  background: #255253;
  color: #fff;
}

main {
  margin-left: var(--sidebar-width);
  padding: 24px 28px 40px;
  overflow-x: visible;
  min-width: 0;
}

.auth-main {
  width: 100%;
  max-width: 460px;
  margin-left: 0;
  padding: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px 22px;
  border: 1px solid rgba(211, 226, 229, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.93), rgba(248, 253, 253, 0.84)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.page-title {
  min-width: 0;
}

.page-title span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: 30px;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.env {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.user-pill {
  padding: 6px 10px;
  border: 1px solid rgba(41, 174, 176, 0.26);
  border-radius: 999px;
  background: rgba(235, 249, 249, 0.94);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(20, 125, 128, 0.08);
}

.muted {
  color: var(--muted);
}

section {
  margin-bottom: 24px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(41, 174, 176, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 146, 126, 0.12), transparent 42%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 252, 0.92)),
    var(--panel);
  box-shadow: var(--shadow);
}

.dashboard-hero span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-hero h2 {
  margin: 0;
  font-size: 30px;
}

.dashboard-hero p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

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

.dashboard-metrics {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.dashboard-grid,
.dashboard-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
}

.dashboard-table-grid {
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
}

.signal-panel,
.quick-actions-panel,
.dashboard-grid .panel,
.table-panel {
  padding: 18px;
  min-width: 0;
  overflow-x: auto;
}

.table-panel table {
  min-width: 720px;
  box-shadow: none;
}

.signal-list,
.quick-actions,
.distribution-list {
  display: grid;
  gap: 10px;
}

.signal-item,
.quick-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfb);
}

.signal-item:hover,
.quick-action:hover {
  border-color: rgba(41, 174, 176, 0.42);
  box-shadow: var(--shadow-soft);
}

.signal-item strong,
.quick-action strong {
  display: block;
  overflow-wrap: anywhere;
}

.signal-item span,
.quick-action span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.quick-action {
  grid-template-columns: minmax(0, 1fr);
  min-height: 74px;
}

.distribution-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.distribution-row span,
.distribution-row strong {
  position: relative;
  z-index: 1;
}

.distribution-row span {
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.distribution-row strong {
  color: var(--accent-dark);
}

.distribution-row i {
  position: absolute;
  inset: auto auto 0 0;
  width: var(--bar-width);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
}

.dashboard-empty {
  padding: 14px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.metric small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.metric-good::before {
  background: linear-gradient(90deg, var(--ok), var(--accent));
}

.metric-warn::before {
  background: linear-gradient(90deg, var(--accent-gold), var(--accent));
}

.metric-bad::before {
  background: linear-gradient(90deg, var(--bad), var(--accent-gold));
}

.metric-neutral::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
}

.portal-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(41, 174, 176, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(235, 249, 249, 0.96), rgba(255, 255, 255, 0.92)),
    var(--panel);
  box-shadow: var(--shadow);
}

.portal-hero span {
  display: block;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-hero h2 {
  margin: 6px 0 0;
  font-size: 30px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.portal-card {
  display: block;
  min-height: 112px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.portal-card:hover {
  border-color: rgba(41, 174, 176, 0.42);
  transform: translateY(-1px);
}

.portal-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
}

.portal-card span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.portal-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.portal-card::before {
  content: "";
  display: block;
  height: 3px;
  margin: -18px -18px 16px;
  background: var(--accent);
}

.portal-card-good::before {
  background: var(--ok);
}

.portal-card-warn::before {
  background: var(--accent-gold);
}

.portal-card-bad::before {
  background: var(--bad);
}

.portal-card-neutral::before {
  background: var(--accent-blue);
}

.portal-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.portal-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 16px;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.portal-tabs a.active {
  color: var(--accent-dark);
  border-color: rgba(41, 174, 176, 0.38);
  background: rgba(235, 249, 249, 0.82);
}

.portal-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.portal-compact-table {
  table-layout: fixed;
  width: 100%;
  box-shadow: var(--shadow-soft);
}

.portal-compact-table th,
.portal-compact-table td {
  padding: 10px 12px;
  vertical-align: middle;
}

.portal-compact-table th {
  white-space: normal;
}

.portal-compact-table td {
  overflow-wrap: anywhere;
}

.portal-compact-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.portal-compact-table td strong {
  font-size: 14px;
  line-height: 1.3;
}

.metric,
.panel,
table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  background:
    linear-gradient(180deg, #ffffff, #f9fcfc),
    var(--panel);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue), rgba(229, 142, 26, 0.42));
}

.metric strong {
  display: block;
  font-size: 28px;
  margin-bottom: 4px;
  letter-spacing: 0;
}

.metric span {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(600px, 1fr);
  gap: 20px;
  align-items: start;
}

.read-only-split {
  grid-template-columns: minmax(0, 1fr);
}

.read-only-split > section {
  min-width: 0;
}

.ops-split {
  grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.2fr);
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.health-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f9fcfc),
    var(--panel);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.health-card:hover {
  border-color: rgba(20, 125, 128, 0.28);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.health-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.health-card-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.health-card p {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.health-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.section-title-row h2 {
  margin: 0;
}

.readiness-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.readiness-summary span {
  color: var(--muted);
}

.deploy-readiness-table {
  table-layout: fixed;
  min-width: 780px;
}

.deploy-readiness-table th:nth-child(1),
.deploy-readiness-table td:nth-child(1) {
  width: 120px;
}

.deploy-readiness-table th:nth-child(2),
.deploy-readiness-table td:nth-child(2) {
  width: 170px;
}

.deploy-readiness-table th:nth-child(3),
.deploy-readiness-table td:nth-child(3) {
  width: 230px;
}

.deploy-readiness-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.compact-table {
  width: 100%;
  box-shadow: none;
}

.login-shell {
  display: grid;
  gap: 18px;
  position: relative;
}

.login-form {
  display: grid;
  gap: 6px;
  position: relative;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.login-brand {
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
  color: #f5ffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.26);
}

.login-logo {
  width: min(260px, 82vw);
  height: auto;
  max-height: 118px;
  object-fit: contain;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 252, 0.94)),
    #ffffff;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.login-brand span {
  color: #9ee7ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-brand strong {
  font-size: 31px;
}

.login-form-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.login-form-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.login-status-strip span {
  border: 1px solid #cce8ed;
  border-radius: 6px;
  padding: 8px 6px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f3fbfb);
}

.fiber-scene {
  position: absolute;
  inset: -120px -120px -80px -120px;
  pointer-events: none;
  z-index: -1;
}

.fiber-line,
.fiber-node {
  position: absolute;
  display: block;
}

.fiber-line {
  height: 2px;
  width: 680px;
  background: linear-gradient(90deg, transparent, rgba(135, 238, 239, 0.1), rgba(135, 238, 239, 0.95), rgba(246, 255, 255, 0.86), transparent);
  box-shadow: 0 0 18px rgba(88, 228, 230, 0.55);
  transform-origin: center;
}

.line-a {
  top: 135px;
  left: -170px;
  transform: rotate(-24deg);
}

.line-b {
  top: 315px;
  left: -105px;
  transform: rotate(18deg);
}

.line-c {
  top: 250px;
  left: -215px;
  transform: rotate(-7deg);
  opacity: 0.72;
}

.fiber-node {
  width: 9px;
  height: 9px;
  border: 2px solid #d8ffff;
  border-radius: 50%;
  background: #6ce4e6;
  box-shadow: 0 0 18px rgba(123, 240, 241, 0.9);
}

.node-a {
  top: 145px;
  left: 45px;
}

.node-b {
  top: 292px;
  right: 30px;
}

.node-c {
  bottom: 92px;
  left: 140px;
}

.panel {
  position: relative;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 253, 0.98)),
    var(--panel);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading h2 {
  min-width: 0;
}

.panel-heading form {
  flex: 0 0 auto;
}

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

.panel-actions form {
  flex: 0 0 auto;
}

form {
  margin: 0;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8d5d9;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  background: linear-gradient(180deg, #ffffff, #fbfdfd);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

input,
select {
  height: 38px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(41, 174, 176, 0.17);
  border-color: var(--accent);
}

.check {
  grid-template-columns: 18px 1fr;
  align-items: center;
}

.check input {
  width: 16px;
  height: 16px;
}

button {
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #00a08c, var(--accent));
  color: #fff;
  height: 38px;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgb(16 86 87 / 16%);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

button:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgb(16 86 87 / 18%);
}

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

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  background: linear-gradient(180deg, #00a08c, var(--accent));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 16px rgb(16 86 87 / 16%);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.button-link:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  transform: translateY(-1px);
}

.button-link.secondary {
  background: linear-gradient(180deg, #667381, #53606b);
}

.button-link.secondary:hover {
  background: linear-gradient(180deg, #53606b, #3f4a54);
}

.button-link.danger {
  background: linear-gradient(180deg, #c4372b, var(--bad));
}

.button-link.danger:hover {
  background: #8f1d14;
}

.button-link.small {
  height: 30px;
  padding: 0 10px;
}

button.small {
  height: 30px;
  padding: 0 10px;
}

button.secondary {
  background: linear-gradient(180deg, #667381, #53606b);
}

button.secondary:hover {
  background: #3f4a54;
}

button.danger {
  background: linear-gradient(180deg, #c4372b, var(--bad));
}

button.danger:hover {
  background: #8f1d14;
}

.actions {
  width: 1%;
  min-width: 112px;
  white-space: nowrap;
}

.actions form {
  margin: 0;
}

.action-menu {
  display: inline-block;
}

.action-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, #6b7785, #596673);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.action-menu summary:hover {
  background: #4b5563;
}

.action-menu summary::after {
  content: "v";
  margin-left: 8px;
  font-size: 11px;
}

.action-menu[open] summary::after {
  content: "^";
}

.action-menu-panel {
  display: grid;
  gap: 4px;
  width: 190px;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgb(31 41 51 / 18%);
}

.menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #344054;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.menu-item:hover {
  background: #eef2f5;
  color: #1f2933;
}

.menu-item.danger {
  color: var(--bad);
}

.menu-item.danger:hover {
  background: #fdecec;
  color: var(--bad);
}

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

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.filter-form label:first-of-type {
  min-width: min(260px, 100%);
}

.filter-form h2 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.filter-form label {
  margin-bottom: 0;
}

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

.import-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
  gap: 8px;
  align-items: end;
  min-width: 780px;
}

.import-form label {
  margin-bottom: 0;
}

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

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

.section-heading span {
  color: var(--muted);
  font-weight: 700;
}

.notice {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.notice span {
  color: var(--muted);
}

.notice.success {
  border-color: rgba(20, 150, 96, 0.22);
  background: rgba(239, 252, 246, 0.9);
}

.notice.error {
  border-color: #f0b8b4;
  background: #fff7f6;
}

.notice.error strong {
  color: var(--bad);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}

.compliance-panel {
  grid-column: 1 / -1;
}

.operator-panel {
  grid-column: 1 / -1;
}

.incident-panel {
  grid-column: 1 / -1;
}

.network-node-notes {
  grid-column: 1 / -1;
}

.network-node-notes p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
  white-space: pre-wrap;
}

.incident-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.incident-summary div {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 251, 0.96));
  box-shadow: var(--shadow-soft);
}

.incident-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.incident-summary strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.incident-details {
  margin-bottom: 14px;
}

.copy-box {
  display: grid;
  gap: 8px;
}

.copy-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.copy-box textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 252, 252, 0.9);
  color: var(--ink);
  font: 700 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  box-sizing: border-box;
}

.provisioning-flow-panel {
  grid-column: 1 / -1;
}

.operator-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.operator-strip div {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f5fbfb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.operator-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.job-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.job-flow-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbfb);
  box-shadow: var(--shadow-soft);
}

.job-flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.job-flow-head h3 {
  margin: 0;
  font-size: 1rem;
}

.job-flow-head span,
.mini-details dt,
.job-flow-steps small {
  color: var(--muted);
  font-weight: 700;
}

.mini-details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.mini-details div {
  display: grid;
  gap: 3px;
}

.mini-details dd {
  overflow-wrap: anywhere;
}

.job-flow-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-flow-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(205, 224, 226, 0.8);
}

.job-flow-steps li:first-child {
  border-top: 0;
}

.job-flow-steps li span,
.job-flow-steps li small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.job-flow-steps li small {
  grid-column: 2;
  font-size: 0.82rem;
}

.compliance-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.compliance-head strong {
  font-size: 16px;
}

.compliance-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.compliance-part {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f6fbfb;
}

.compliance-part span {
  font-weight: 700;
  color: #344054;
}

.details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.details div {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 12px;
  align-items: start;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

dd small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #e5f3f3;
  color: #124c4e;
  border: 1px solid rgba(20, 125, 128, 0.1);
}

.inline-action {
  margin-left: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.inline-action:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.edit-form {
  max-width: 720px;
}

.delete-panel {
  max-width: 760px;
}

.delete-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.delete-check {
  flex-basis: 100%;
  margin-bottom: 4px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.table-scroll table {
  border: 0;
  border-radius: 0;
}

.radius-session-scroll table {
  min-width: 1180px;
}

.compact-table th,
.compact-table td {
  padding: 9px 10px;
  white-space: nowrap;
}

.ops-backup-scroll {
  box-shadow: none;
}

.ops-backup-table {
  table-layout: fixed;
  min-width: 560px;
}

.ops-backup-table th:nth-child(1),
.ops-backup-table td:nth-child(1) {
  width: auto;
}

.ops-backup-table th:nth-child(2),
.ops-backup-table td:nth-child(2) {
  width: 82px;
}

.ops-backup-table th:nth-child(3),
.ops-backup-table td:nth-child(3) {
  width: 96px;
}

.ops-backup-table th:nth-child(4),
.ops-backup-table td:nth-child(4) {
  width: 112px;
}

.backup-name {
  min-width: 0;
}

.backup-name code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-check-table {
  table-layout: fixed;
  min-width: 760px;
}

.live-check-table th,
.live-check-table td {
  padding: 8px 10px;
}

.live-check-table th:nth-child(1),
.live-check-table td:nth-child(1) {
  width: 92px;
}

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

.live-check-table th:nth-child(3),
.live-check-table td:nth-child(3),
.live-check-table th:nth-child(4),
.live-check-table td:nth-child(4) {
  width: 160px;
}

.live-check-table th:nth-child(5),
.live-check-table td:nth-child(5) {
  width: auto;
}

.live-check-table .badge {
  white-space: nowrap;
}

.path-cell {
  min-width: 0;
}

.path-cell code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docsis-rf-grid {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.docsis-rf-table h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
}

.docsis-rf-data-table {
  table-layout: fixed;
  min-width: 620px;
}

.docsis-rf-table-wide {
  min-width: 720px;
}

.docsis-rf-data-table th,
.docsis-rf-data-table td {
  padding: 8px 10px;
}

.docsis-rf-data-table th:nth-child(1),
.docsis-rf-data-table td:nth-child(1) {
  width: 92px;
}

.docsis-rf-data-table th:nth-child(2),
.docsis-rf-data-table td:nth-child(2) {
  width: 72px;
}

.docsis-rf-data-table th:nth-child(3),
.docsis-rf-data-table td:nth-child(3),
.docsis-rf-data-table th:nth-child(4),
.docsis-rf-data-table td:nth-child(4),
.docsis-rf-data-table th:nth-child(5),
.docsis-rf-data-table td:nth-child(5),
.docsis-rf-data-table th:nth-child(6),
.docsis-rf-data-table td:nth-child(6) {
  width: 118px;
}

.docsis-rf-data-table th:last-child,
.docsis-rf-data-table td:last-child {
  width: auto;
}

.docsis-rf-data-table td small {
  white-space: normal;
}

.docsis-rf-data-table .badge {
  white-space: nowrap;
}

.optical-table {
  min-width: 980px;
}

.optical-table code {
  display: inline-block;
  max-width: 360px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.optical-cards {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.optical-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
  background: linear-gradient(180deg, #ffffff, #f7fbfb);
}

.optical-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.optical-gauge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.optical-gauge-card,
.optical-status-metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
  background: #ffffff;
}

.optical-gauge-card.completed,
.optical-status-metric.completed {
  border-color: #c7ead8;
  background: linear-gradient(180deg, #ffffff, #f3fbf7);
}

.optical-gauge-card.warning,
.optical-status-metric.warning {
  border-color: #f7d7a5;
  background: linear-gradient(180deg, #ffffff, #fff9ef);
}

.optical-gauge-card.critical,
.optical-status-metric.critical {
  border-color: #f1c4c0;
  background: linear-gradient(180deg, #ffffff, #fff5f3);
}

.optical-gauge-title {
  margin-bottom: 6px;
  color: #243647;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.optical-gauge-visual {
  min-width: 180px;
  text-align: center;
}

.optical-gauge-card {
  display: grid;
  grid-template-columns: minmax(176px, 220px) minmax(170px, 1fr);
  align-items: center;
  gap: 16px;
}

.optical-gauge {
  position: relative;
  width: 176px;
  height: 176px;
  margin: 0 auto;
  overflow: hidden;
}

.optical-gauge-svg {
  position: absolute;
  inset: 0;
  width: 176px;
  height: 176px;
}

.optical-gauge-track {
  fill: none;
  stroke-linecap: round;
  stroke-width: 11;
}

.optical-gauge-segment {
  fill: none;
  stroke-linecap: butt;
  stroke-width: 11;
}

.optical-gauge-track {
  stroke: #e8f0f2;
}

.optical-gauge-svg-needle {
  stroke: #344054;
  stroke-linecap: round;
  stroke-width: 3;
  filter: drop-shadow(0 1px 2px rgba(31, 44, 53, 0.2));
}

.optical-gauge-svg-hub {
  fill: #8a96a3;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3;
}

.optical-gauge-tick {
  position: absolute;
  z-index: 2;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.92), 0 -1px 0 rgba(255, 255, 255, 0.92);
}

.optical-gauge-tick.tick-policy {
  color: #1f2d3a;
  font-size: 14px;
  font-weight: 900;
}

.optical-gauge-tick.tick-endpoint {
  color: #667085;
  font-size: 12px;
}

.optical-gauge-tick.tick-mid {
  color: #344054;
  font-size: 13px;
}

.optical-gauge-needle {
  position: absolute;
  left: 50%;
  bottom: 19px;
  z-index: 3;
  width: 3px;
  height: 44px;
  border-radius: 999px;
  background: #344054;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(var(--needle-angle));
  box-shadow: 0 1px 5px rgba(31, 44, 53, 0.22);
}

.optical-gauge-hub {
  position: absolute;
  left: 50%;
  bottom: 13px;
  z-index: 4;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8a96a3;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.optical-gauge-value {
  display: block;
  margin-top: 2px;
  text-align: center;
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.optical-gauge-policy {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.optical-policy {
  display: grid;
  gap: 12px;
}

.optical-policy div {
  display: grid;
  gap: 5px;
}

.optical-policy strong {
  color: #1f2d3a;
  font-size: 15px;
  font-weight: 800;
}

.optical-policy span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.optical-policy small {
  color: #6b7788;
  font-size: 12px;
  font-weight: 800;
}

.optical-policy hr {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

.threshold::before {
  display: inline-block;
  width: 20px;
  margin-right: 7px;
  color: #3386ff;
  font-weight: 900;
}

.threshold.lower::before {
  content: "⇩";
}

.threshold.upper::before {
  content: "⇧";
  color: #7b61ff;
}

.optical-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.optical-status-metric span,
.optical-status-metric small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.optical-status-metric strong {
  display: block;
  margin: 5px 0;
  font-size: 21px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.compact-details {
  gap: 7px;
}

.compact-details div {
  grid-template-columns: minmax(95px, 130px) minmax(0, 1fr);
}

.compact-details code {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.usage-panel {
  grid-column: 1 / -1;
}

.usage-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.usage-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.usage-legend .download,
.usage-bar.download {
  background: var(--accent);
}

.usage-legend .upload,
.usage-bar.upload {
  background: var(--accent-blue);
}

.usage-metrics {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 16px;
}

.usage-chart {
  display: grid;
  grid-template-columns: repeat(24, minmax(8px, 1fr));
  align-items: end;
  gap: 5px;
  height: 170px;
  padding: 14px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 125, 128, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #fbfefe, #f5fbfb);
  background-size: 100% 38px, auto;
}

.usage-bar-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 2px;
  height: 100%;
  min-width: 0;
}

.usage-bar {
  display: block;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 5px 10px rgba(16, 86, 87, 0.14);
}

.usage-axis {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

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

td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.template-table td {
  min-width: 140px;
}

.template-table td:nth-child(4),
.template-table td:nth-child(5),
.template-table td:nth-child(6),
.template-table td:nth-child(7) {
  min-width: 220px;
}

.capability-list,
.template-table .capability-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.capability-list {
  margin-bottom: 12px;
}

.capability-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
}

.capability-chip strong {
  font-size: 12px;
  white-space: nowrap;
}

.template-detail-list {
  display: grid;
  gap: 10px;
}

.template-detail-card {
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.template-detail-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.template-detail-card summary::-webkit-details-marker {
  display: none;
}

.template-detail-card summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  font-weight: 900;
}

.template-detail-card[open] summary::after {
  content: "-";
}

.template-detail-card summary span {
  min-width: 0;
}

.template-detail-card summary small,
.summary-meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.template-detail-card .capability-list,
.template-detail-card .details,
.template-detail-card .table-scroll {
  margin: 0 14px 14px;
}

.template-path-table {
  min-width: 760px;
}

.import-device-table {
  min-width: 1280px;
}

.provisioning-runs-panel {
  grid-column: 1 / -1;
}

.provisioning-runs-table {
  min-width: 1120px;
}

.provisioning-runs-table td:nth-child(3),
.provisioning-runs-table td:nth-child(4) {
  max-width: 360px;
  overflow-wrap: anywhere;
}

.template-path-table td:first-child,
.template-path-table td:nth-child(2) {
  width: 180px;
}

.template-path-table code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.job-message {
  max-width: 460px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

th {
  background: linear-gradient(180deg, #edf8f8, #e5eef1);
  color: #2e5559;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #edf0f3;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

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

.badge.provisioned,
.badge.completed,
.badge.compliant,
.badge.wifi_applied,
.badge.management_applied,
.badge.wan_applied,
.badge.online,
.badge.active {
  background: #e8f5ee;
  border-color: #c7ead8;
  color: var(--ok);
}

.badge.offline,
.badge.expired {
  background: #edf0f3;
  border-color: #d9dee4;
  color: #667085;
}

.badge.pending,
.badge.queued,
.badge.running,
.badge.inform_received,
.badge.partial,
.badge.warning,
.badge.would_block,
.badge.reboot_requested,
.badge.new,
.badge.provisioning,
.badge.maintenance,
.badge.factory_reset_expected {
  background: #fff4e5;
  border-color: #f7d7a5;
  color: var(--warn);
}

.badge.failed,
.badge.critical,
.badge.non_compliant,
.badge.inactive,
.badge.replaced,
.badge.return,
.badge.decommissioned {
  background: #fdecec;
  border-color: #f1c4c0;
  color: var(--bad);
}

.badge.skipped,
.badge.unknown {
  background: #edf0f3;
  color: #667085;
}

.badge.resolved {
  background: #edf7f7;
  border-color: #cde8e8;
  color: var(--accent-dark);
}

.release-note + .release-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.release-note h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.release-note ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

@media (max-width: 900px) {
  body {
    grid-template-columns: 1fr;
  }

  aside {
    position: static;
    width: auto;
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: 18px 16px;
  }

  .brand {
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .brand-logo {
    height: 62px;
    padding: 6px 8px;
  }

  nav {
    gap: 12px;
  }

  .nav-group {
    display: block;
  }

  .nav-heading {
    padding: 7px 8px;
  }

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

  nav a {
    justify-content: center;
    text-align: center;
    padding: 9px 8px;
  }

  .nav-icon {
    display: none;
  }

  main {
    margin-left: 0;
    padding: 18px;
  }

  header {
    display: grid;
    gap: 6px;
    padding: 15px;
  }

  .page-title span {
    font-size: 10px;
  }

  h1 {
    font-size: 25px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics,
  .portal-grid,
  .portal-summary-grid,
  .portal-detail-grid,
  .split,
  .detail-grid,
  .incident-summary,
  .operator-strip,
  .job-flow-grid,
  .optical-gauge-grid,
  .filter-form,
  .import-form {
    grid-template-columns: 1fr;
  }

  .optical-gauge-card {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .details div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
