:root {
  --bg: #061019;
  --panel: rgba(10, 24, 39, 0.9);
  --panel-strong: rgba(16, 36, 59, 0.95);
  --content-bg: #e6edf6;
  --content-card: #ffffff;
  --content-line: rgba(16, 36, 59, 0.08);
  --content-text: #10243b;
  --content-muted: #5f7186;
  --line: rgba(135, 188, 255, 0.14);
  --line-strong: rgba(135, 188, 255, 0.26);
  --text: #eff7ff;
  --muted: #9ab0c7;
  --accent: #31d0aa;
  --accent-2: #2286d9;
  --warning: #ffcb6b;
  --danger: #ff6f91;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --layout-gap: 1.25rem;
  --page-header-overlap: 1.15rem;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(49, 208, 170, 0.16), transparent 25%),
    radial-gradient(circle at top right, rgba(102, 179, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #061019 0%, #081523 100%);
  color: var(--text);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
button, input, select {
  font: inherit;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.8rem 1rem;
}
button {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}
button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #041019;
  font-weight: 700;
}
label { display: grid; gap: 0.4rem; color: var(--muted); }
h1, h2, h3, p { margin: 0; }
pre {
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.28);
  padding: 1rem;
  border-radius: 16px;
  overflow: auto;
}
.app-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 100vh;
  min-height: 100vh;
  min-width: 0;
  overflow: hidden;
}
.sidebar {
  padding: 1.4rem;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(49, 208, 170, 0.12), transparent 35%),
    rgba(4, 14, 24, 0.92);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 1.2rem;
  height: 100vh;
  overflow: hidden;
}
.brand {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 0.45rem 0.55rem;
    margin: -0.45rem -0.55rem 0;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  }
.brand:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(120, 196, 255, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}
.brand:active {
    transform: translateY(1px) scale(0.992);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(49, 208, 170, 0.24);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}
.brand:focus-visible {
    outline: none;
    border-color: rgba(49, 208, 170, 0.42);
    box-shadow: 0 0 0 3px rgba(49, 208, 170, 0.18);
}
.brand-copy { display: grid; gap: 0.25rem; }
.brand span, .eyebrow, .hint, .sidebar-footer-meta { color: var(--muted); }
.logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #081523;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(34, 134, 217, 0.35);
}
.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.sidebar-summary {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0.45rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  align-items: center;
}
.summary-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #9fdcff;
  position: relative;
}
.summary-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  background: rgba(4, 14, 24, 0.96);
  color: #f6fbff;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 30;
  border: 1px solid rgba(159, 220, 255, 0.18);
  box-shadow: 0 10px 22px rgba(4, 14, 24, 0.24);
}
.summary-icon:hover::after,
.summary-icon:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.summary-icon:hover,
.summary-icon:focus-visible {
  color: #d7ecff;
  background: rgba(255, 255, 255, 0.08);
}
nav {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
nav a.active, nav a:hover { background: rgba(255, 255, 255, 0.06); }
nav a i { width: 1.1rem; text-align: center; color: #9fdcff; }
.sidebar-actions, .stack { display: grid; gap: 0.8rem; }
.sidebar-actions button { text-align: left; }
.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}
.sidebar-footer strong,
.sidebar-footer-meta {
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-footer strong {
  flex: 1 1 auto;
  min-width: 0;
}
.sidebar-footer-meta {
  flex: 0 0 auto;
}
.content {
  padding: 1.5rem;
  display: grid;
  gap: var(--layout-gap);
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
  background: linear-gradient(180deg, #f0f5fb 0%, var(--content-bg) 100%);
  color: var(--content-text);
  height: 100vh;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.content > * {
  margin: 0;
}
.content > .page-header + * {
  margin-top: calc(var(--page-header-overlap) * -1);
  position: relative;
  z-index: 1;
}
.content > .page-header + .stack,
.content > .page-header + .grid-2,
.content > .page-header + .hero-panel,
.content > .page-header + .card {
  padding-top: var(--page-header-overlap);
}
.content > .page-header + .configuration-grid,
.content > .page-header + .service-grid,
.content > .page-header + .diagnostics-stack {
  padding-top: 0;
}
.content > .page-header + .configuration-feedback {
  padding-top: 0;
}
.content,
.content h1,
.content h2,
.content h3,
.content p,
.content th,
.content td,
.content strong,
.content label,
.content pre,
.content .toolbar,
.content .pagination,
.content .table-wrap {
  color: var(--content-text);
}
.content .eyebrow,
.content .lead,
.content .hint,
.content .page-stat span,
.content .metric-card span { color: var(--content-muted); }
.content label,
.content th {
  color: #33485f;
}
.content input::placeholder {
  color: #7e91a6;
}
.modal-card input::placeholder,
.modal-card textarea::placeholder {
  color: #6b7f95;
}
.content button,
.content input,
.content select {
  background: #fff;
  color: var(--content-text);
  border-color: rgba(16, 36, 59, 0.12);
}
.content .primary { color: #041019; }
.content .status {
  background: rgba(16, 36, 59, 0.08);
  color: #23384f;
}
.content .status.synced,
.content .status.success,
.content .status.running,
.content .status.current,
.content .status.info,
.content .status.allow,
.content .status.allowed,
.content .status.active,
.content .status.reachable,
.content .status.user {
  background: rgba(49, 208, 170, 0.16);
  color: #0f6f59;
}
.content .status.degraded,
.content .status.warning,
.content .status.selectable,
.content .status.holdover,
.content .status.idle,
.content .status.intermittent,
.content .status.stale {
  background: rgba(255, 203, 107, 0.22);
  color: #8a5b00;
}
.content .status.unsynced,
.content .status.failed,
.content .status.unreachable,
.content .status.critical,
.content .status.falseticker,
.content .status.stopped,
.content .status.denied,
.content .status.lost,
.content .status.admin,
.content .status.error {
  background: rgba(255, 111, 145, 0.16);
  color: #a12b4a;
}
.content .status.stable,
.content .status.reachable {
  background: rgba(49, 208, 170, 0.16);
  color: #0f6f59;
}
.content .status.ok {
  background: rgba(49, 208, 170, 0.16);
  color: #0f6f59;
}
.content .status.unknown {
  background: rgba(95, 113, 134, 0.16);
  color: #55697d;
}
.content .status.c4isr {
  background: rgba(255, 111, 145, 0.16);
  color: #a12b4a;
}
.content .status.c2 {
  background: rgba(255, 203, 107, 0.22);
  color: #8a5b00;
}
.content .status.edge,
.content .status.radar,
.content .status.rf,
.content .status.uav,
.content .status.ew,
.content .status.missile,
.content .status.anti-aircraft,
.content .status.machine-gun {
  background: rgba(34, 134, 217, 0.16);
  color: #1c5d9a;
}
.content .status.camera {
  background: rgba(255, 203, 107, 0.22);
  color: #8a5b00;
}
.content .status.workstation {
  background: rgba(49, 208, 170, 0.16);
  color: #0f6f59;
}
.toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.pill, .status {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.content .pill { background: rgba(16, 36, 59, 0.08); color: var(--content-text); }
.status.synced, .status.success, .status.running, .status.current, .status.info, .status.allow { background: rgba(49, 208, 170, 0.18); color: #8bf2da; }
.status.degraded, .status.warning, .status.selectable, .status.holdover { background: rgba(255, 203, 107, 0.18); color: #ffd98f; }
.status.unsynced, .status.failed, .status.unreachable, .status.critical, .status.falseticker, .status.stopped, .status.deny { background: rgba(255, 111, 145, 0.2); color: #ff9fb5; }
.status.stable, .status.reachable { background: rgba(49, 208, 170, 0.18); color: #8bf2da; }
.status.intermittent, .status.stale { background: rgba(255, 203, 107, 0.18); color: #ffd98f; }
.status.lost { background: rgba(255, 111, 145, 0.2); color: #ff9fb5; }
.status.c4isr { background: rgba(255, 111, 145, 0.2); color: #ff9fb5; }
.status.c2, .status.camera { background: rgba(255, 203, 107, 0.18); color: #ffd98f; }
.status.edge, .status.radar, .status.rf, .status.uav, .status.ew, .status.missile, .status.anti-aircraft, .status.machine-gun { background: rgba(34, 134, 217, 0.18); color: #9fdcff; }
.status.workstation { background: rgba(49, 208, 170, 0.18); color: #8bf2da; }
.hero-panel, .card {
  background: var(--content-card);
  border: 1px solid var(--content-line);
  border-radius: 28px;
  padding: 1.25rem;
  box-shadow: 0 18px 40px rgba(16, 36, 59, 0.08);
}
.revision-history-card,
.revision-preview-card {
  overflow: hidden;
  align-content: start;
}
.revision-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}
.revision-status-card {
  gap: 0.85rem;
  align-content: start;
  padding: 1rem 1.05rem;
  border-radius: 24px;
}
.revision-status-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--content-muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.revision-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.revision-status-card strong {
  font-size: 0.98rem;
  line-height: 1.28;
  color: #0f2540;
}
.revision-status-list {
  display: grid;
  gap: 0.55rem;
}
.revision-status-list div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.85rem;
  align-items: baseline;
}
.revision-status-list span {
  color: #6b7f95;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.revision-status-list strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #11283f;
}
.revision-status-meta,
.revision-meta {
  color: #5f7186;
  font-size: 0.88rem;
  line-height: 1.42;
}
.revision-panel-active {
  border-color: rgba(49, 208, 170, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f6fffb 100%);
}
.revision-panel-generated {
  border-color: rgba(34, 134, 217, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}
.revision-panel-diff {
  border-color: rgba(255, 203, 107, 0.22);
}
.revision-panel-history {
  border-color: rgba(16, 36, 59, 0.1);
}
.revision-status-active {
  border-color: rgba(49, 208, 170, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f8fffc 100%);
}
.revision-status-pending {
  border-color: rgba(255, 203, 107, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
}
.revision-status-result {
  border-color: rgba(49, 208, 170, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f8fffc 100%);
}
.revision-status-access {
  border-color: rgba(16, 36, 59, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}
.revision-preview-card .revision-preview-pre,
.revision-history-card .revision-diff-pre {
  margin-top: 0;
}
.revision-pre {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  box-sizing: border-box;
}
.diff-view {
  display: grid;
  gap: 0;
  border: 1px solid rgba(16, 36, 59, 0.08);
  border-radius: 20px;
  overflow: hidden;
  background: #f5f8fc;
}
.diff-line {
  padding: 0.44rem 0.8rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.87rem;
  white-space: pre-wrap;
  line-height: 1.5;
  color: #1a3046;
}
.diff-line + .diff-line {
  border-top: 1px solid rgba(16, 36, 59, 0.06);
}
.diff-added {
  background: rgba(49, 208, 170, 0.14);
  color: #0f6f59;
}
.diff-removed {
  background: rgba(255, 111, 145, 0.14);
  color: #a12b4a;
}
.diff-context {
  background: #f5f8fc;
}
.empty-state {
  border: 1px dashed rgba(16, 36, 59, 0.14);
  border-radius: 20px;
  padding: 1.1rem 1.15rem;
  background: #f8fbff;
  display: grid;
  gap: 0.45rem;
}
.empty-state p {
  color: #5f7186;
  line-height: 1.45;
}
.revision-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.active-revision-row {
  background: rgba(49, 208, 170, 0.06);
}
.active-revision-row td {
  border-bottom-color: rgba(49, 208, 170, 0.16);
}
.page-header {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  min-height: 220px;
  align-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.88);
  margin-bottom: 17px;
}
.page-header-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.page-header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.page-header-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
}
.page-stat {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--content-line);
  background: #f8fbff;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.page-stat span { color: var(--muted); font-size: 0.9rem; }
.page-stat strong {
  font-size: 1.1rem;
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.page-stat-inline-value {
  display: inline-block;
  vertical-align: middle;
}
.page-stat-inline-status {
  display: block;
  margin-top: 0.35rem;
}
.quality-page .page-header-stats {
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 0.45rem;
}
.quality-page .page-stat {
  padding: 0.62rem 0.66rem;
}
.quality-page .page-stat span {
  font-size: 0.76rem;
}
.quality-page .page-stat strong {
  font-size: 0.92rem;
}
.hero-panel { display: grid; gap: 1.25rem; }
.mini-grid, .grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--layout-gap);
}
.metric-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid var(--content-line);
  min-width: 0;
}
.metric-card span { color: var(--muted); font-size: 0.92rem; }
.metric-card strong {
  font-size: 1.2rem;
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.metric-card i { color: #2b78c4; margin-right: 0.45rem; }
.metric-card-ok {
  border-color: rgba(49, 208, 170, 0.2);
  background: linear-gradient(180deg, #f8fbff 0%, rgba(49, 208, 170, 0.06) 100%);
}
.metric-card-degraded {
  border-color: rgba(255, 203, 107, 0.26);
  background: linear-gradient(180deg, #f8fbff 0%, rgba(255, 203, 107, 0.08) 100%);
}
.metric-card-bad {
  border-color: rgba(255, 111, 145, 0.26);
  background: linear-gradient(180deg, #f8fbff 0%, rgba(255, 111, 145, 0.08) 100%);
}
.dashboard-summary-panel {
  gap: 1rem;
}
.dashboard-page {
  min-width: 0;
  overflow: visible;
  gap: 0.9rem;
}
.hero-panel,
.dashboard-page .mini-grid,
.dashboard-page .metric-card {
  overflow: visible;
}
.dashboard-page .mini-grid,
.dashboard-page .dashboard-summary-grid {
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.dashboard-header .page-header-top > div:first-child,
.dashboard-summary-head > div:first-child {
  min-width: 0;
}
.dashboard-summary-head {
  flex-wrap: wrap;
}
.dashboard-page .metric-card,
.dashboard-page .page-stat {
  min-width: 0;
}
.dashboard-page .metric-card {
  padding: 0.88rem 0.92rem;
  gap: 0.45rem;
}
.dashboard-page .metric-card span {
  font-size: 0.86rem;
}
.dashboard-page .metric-card strong {
  font-size: 1.08rem;
}
.dashboard-page .page-stat {
  padding: 0.8rem 0.92rem;
}
.dashboard-page .page-stat strong,
.dashboard-page .metric-card strong {
  white-space: normal;
}
.dashboard-header .page-header-stats {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.dashboard-header .page-stat {
  min-width: 0;
  padding: 0.78rem 0.9rem;
}
.dashboard-header .page-stat strong {
  white-space: normal;
}
.dashboard-header .status,
.dashboard-page .status {
  max-width: 100%;
  white-space: normal;
  justify-content: flex-start;
}
.license-banner {
  display: grid;
  gap: 0.85rem;
  border-radius: 24px;
  padding: 1rem 1.1rem;
}
.license-banner-active {
  border-color: rgba(49, 208, 170, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, rgba(49, 208, 170, 0.08) 100%);
}
.license-banner-warning {
  border-color: rgba(255, 203, 107, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 203, 107, 0.08) 100%);
}
.license-banner-critical {
  border-color: rgba(255, 111, 145, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 111, 145, 0.08) 100%);
}
.license-banner-unknown {
  border-color: rgba(95, 113, 134, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, rgba(95, 113, 134, 0.06) 100%);
}
.license-banner-head,
.license-banner-body,
.license-status-strip,
.license-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: center;
}
.license-banner-body,
.license-footer {
  flex-wrap: wrap;
}
.license-banner-link,
.license-toolbar a {
  color: #1c5d9a;
  text-decoration: none;
}
.license-banner-link:hover,
.license-toolbar a:hover {
  text-decoration: underline;
}
.license-page {
  gap: 1rem;
}
.license-toolbar {
  align-items: flex-start;
}
.license-toolbar .button-row button {
  min-height: 46px;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: none;
}
.license-toolbar #license-renew {
  min-width: 168px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #041019;
  font-weight: 700;
}
.license-status-strip {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.license-last-checked {
  color: var(--content-muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.license-warning-list {
  display: grid;
  gap: 0.6rem;
}
.license-warning-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 203, 107, 0.12);
  border: 1px solid rgba(255, 203, 107, 0.24);
  color: #8a5b00;
}
.license-warning-item i {
  color: #c28800;
  margin-top: 0.12rem;
}
.license-meta-grid,
.license-deadline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.license-meta-row,
.license-deadline-card {
  border: 1px solid rgba(16, 36, 59, 0.1);
  border-radius: 18px;
  background: #f8fbff;
  padding: 0.95rem 1rem;
}
.license-meta-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0.9rem;
  align-items: center;
}
.license-meta-row span,
.license-deadline-label {
  color: var(--content-muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.license-meta-row strong,
.license-deadline-card strong {
  font-size: 1rem;
  line-height: 1.45;
  color: #10243b;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
  overflow-wrap: anywhere;
}
.license-deadline-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.license-footer {
  padding-top: 0.95rem;
  border-top: 1px solid rgba(16, 36, 59, 0.08);
  color: var(--content-muted);
  font-size: 0.9rem;
}
.license-footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.status.active {
  background: rgba(49, 208, 170, 0.18);
  color: #8bf2da;
}
.status.warning {
  background: rgba(255, 203, 107, 0.18);
  color: #ffd98f;
}
.status.critical {
  background: rgba(255, 111, 145, 0.2);
  color: #ff9fb5;
}
.status.unknown {
  background: rgba(95, 113, 134, 0.18);
  color: #d0d8e3;
}
.dashboard-summary-card {
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid var(--content-line);
  display: grid;
  gap: 0.9rem;
}
.dashboard-summary-ok {
  background: linear-gradient(135deg, rgba(49, 208, 170, 0.12), rgba(248, 251, 255, 0.96));
  border-color: rgba(49, 208, 170, 0.24);
}
.dashboard-summary-degraded {
  background: linear-gradient(135deg, rgba(255, 203, 107, 0.16), rgba(248, 251, 255, 0.96));
  border-color: rgba(255, 203, 107, 0.28);
}
.dashboard-summary-bad {
  background: linear-gradient(135deg, rgba(255, 111, 145, 0.16), rgba(248, 251, 255, 0.96));
  border-color: rgba(255, 111, 145, 0.28);
}
.dashboard-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.dashboard-summary-head h3 {
  margin: 0.2rem 0 0.3rem;
  font-size: 1.45rem;
}
.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td {
  text-align: left;
  padding: 0.72rem 0.62rem;
  border-bottom: 1px solid var(--content-line);
  font-size: 0.92rem;
  line-height: 1.3;
}
th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.clients-table {
  min-width: 0;
  table-layout: auto;
  width: 100%;
}
.clients-header .page-header-stats {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.34rem;
  width: 100%;
  align-items: stretch;
}
.clients-header .page-stat {
  min-width: 0;
  padding: 0.46rem 0.5rem;
  border-radius: 12px;
  gap: 0.14rem;
}
.clients-header .page-stat span {
  font-size: 0.62rem;
  white-space: nowrap;
  line-height: 1.05;
}
.clients-header .page-stat strong {
  font-size: 0.9rem;
  white-space: nowrap;
  line-height: 1.05;
}
.clients-type-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.clients-type-stat-label i {
  font-size: 0.74rem;
}
.clients-header .client-type-stat {
  border-color: rgba(77, 117, 162, 0.18);
  background: #f7fbff;
}
.clients-header .client-type-c4isr {
  background: rgba(255, 111, 145, 0.12);
  border-color: rgba(255, 111, 145, 0.24);
}
.clients-header .client-type-c4isr-adms {
  background: rgba(255, 111, 145, 0.12);
  border-color: rgba(255, 111, 145, 0.24);
}
.clients-header .client-type-c2 {
  background: rgba(255, 176, 90, 0.16);
  border-color: rgba(255, 176, 90, 0.28);
}
.clients-header .client-type-c2-adms,
.clients-header .client-type-c1-adms {
  background: rgba(255, 176, 90, 0.16);
  border-color: rgba(255, 176, 90, 0.28);
}
.clients-header .client-type-mvt-adms-server,
.clients-header .client-type-splat-adms-server,
.clients-header .client-type-awds-adms-server,
.clients-header .client-type-cop-adms-server,
.clients-header .client-type-kms-adms-server,
.clients-header .client-type-vpn-adms-server,
.clients-header .client-type-edge,
.clients-header .client-type-radar,
.clients-header .client-type-rf,
.clients-header .client-type-uav,
.clients-header .client-type-ew,
.clients-header .client-type-missile,
.clients-header .client-type-anti-aircraft,
.clients-header .client-type-machine-gun {
  background: rgba(100, 149, 237, 0.14);
  border-color: rgba(100, 149, 237, 0.28);
}
.clients-header .client-type-camera {
  background: rgba(255, 203, 107, 0.18);
  border-color: rgba(255, 203, 107, 0.3);
}
.clients-header .client-type-workstation {
  background: rgba(49, 208, 170, 0.15);
  border-color: rgba(49, 208, 170, 0.28);
}
.clients-header .client-type-unknown {
  background: rgba(140, 152, 168, 0.14);
  border-color: rgba(140, 152, 168, 0.24);
}
@media (max-width: 1800px) {
  .clients-header .page-header-stats {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}
@media (max-width: 1280px) {
  .clients-header .page-header-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .clients-header .page-header-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.clients-wrap {
  overflow-x: hidden;
}
.clients-table th,
.clients-table td {
  font-size: 0.88rem;
  padding: 0.62rem 0.48rem;
  vertical-align: middle;
}
.clients-table th {
  font-size: 0.84rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
}
.clients-table th:nth-child(6),
.clients-table th:nth-child(7),
.clients-table th:nth-child(9),
.clients-table th:nth-child(10),
.clients-table th:nth-child(11),
.clients-table th:nth-child(12),
.clients-table th:nth-child(17),
.clients-table td:nth-child(6),
.clients-table td:nth-child(7),
.clients-table td:nth-child(9),
.clients-table td:nth-child(10),
.clients-table td:nth-child(11),
.clients-table td:nth-child(12),
.clients-table td:nth-child(17) {
  text-align: center;
}
.clients-table th:nth-child(17),
.clients-table td:nth-child(17) { white-space: nowrap; }
.clients-table .status {
  max-width: 100%;
  justify-content: center;
  padding: 0.3rem 0.58rem;
  font-size: 0.82rem;
}
.source-endpoint {
  display: grid;
  gap: 0.12rem;
}
.sources-table th,
.sources-table td {
  font-size: 0.82rem;
  padding: 0.56rem 0.42rem;
  vertical-align: middle;
}
.sources-table th {
  font-size: 0.82rem;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: 0;
}
.source-endpoint strong,
.source-endpoint span {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-endpoint span {
  color: var(--content-muted);
  font-size: 0.82rem;
}
.metric-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
}
.metric-pill-ok {
  color: #0f6f59;
  background: rgba(49, 208, 170, 0.12);
  border-color: rgba(49, 208, 170, 0.22);
}
.metric-pill-degraded {
  color: #966300;
  background: rgba(255, 203, 107, 0.16);
  border-color: rgba(255, 203, 107, 0.28);
}
.metric-pill-bad {
  color: #a12b4a;
  background: rgba(255, 111, 145, 0.14);
  border-color: rgba(255, 111, 145, 0.24);
}
.metric-pill-unknown {
  color: #536579;
  background: rgba(120, 139, 164, 0.1);
  border-color: rgba(120, 139, 164, 0.2);
}
.editor-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.7rem;
  align-items: center;
}
.chart-card {
  background: #f8fbff;
  border: 1px solid var(--content-line);
  border-radius: 22px;
  padding: 1rem;
}
.chart { width: 100%; height: 140px; }
.chart polyline { fill: none; stroke: var(--accent); stroke-width: 3; }
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1rem;
}
.quality-correlation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.quality-chart-card {
  display: grid;
  gap: 0.85rem;
}
.quality-chart-card.quality-ok {
  border-color: rgba(49, 208, 170, 0.2);
}
.quality-chart-card.quality-degraded {
  border-color: rgba(255, 203, 107, 0.24);
}
.quality-chart-card.quality-bad {
  border-color: rgba(255, 111, 145, 0.22);
}
.quality-chart-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.quality-chart-meta,
.quality-chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--content-muted);
  font-size: 0.86rem;
}
.quality-chart-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart-axis {
  stroke: rgba(16, 36, 59, 0.24);
  stroke-width: 1.2;
}
.chart-grid {
  stroke: rgba(16, 36, 59, 0.08);
  stroke-width: 1;
}
.chart-baseline {
  stroke: rgba(34, 134, 217, 0.55);
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
}
.chart-threshold {
  stroke-width: 1.3;
  stroke-dasharray: 6 4;
}
.chart-threshold-ok {
  stroke: rgba(49, 208, 170, 0.9);
}
.chart-threshold-warn {
  stroke: rgba(255, 203, 107, 0.95);
}
.chart-threshold-bad {
  stroke: rgba(255, 111, 145, 0.95);
}
.chart-threshold-label,
.chart-label,
.chart-unit {
  fill: #5f7186;
  font-size: 11px;
}
.chart-polyline {
  fill: none;
  stroke: #2286d9;
  stroke-width: 2.2;
}
.chart-point {
  fill: #2286d9;
  opacity: 0.8;
  cursor: pointer;
}
.chart-point:hover {
  opacity: 1;
  r: 4;
}
.chart-point-anomaly {
  fill: #b42345;
  opacity: 1;
}
.chart-export {
  min-height: 36px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.login-card {
    width: min(580px, 100%);
    padding: 2rem;
    border-radius: 32px;
    background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
    display: grid;
    gap: 1rem;
  }
.login-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
.login-brand-copy {
    display: grid;
    gap: 0.2rem;
  }
.login-brand-copy h1 {
    margin: 0;
  }
.login-card-footer {
    padding-top: 0.95rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
  }
.login-card-footer strong,
.login-card-footer .sidebar-footer-meta {
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
.login-card-footer strong {
    flex: 1 1 auto;
    min-width: 0;
  }
.lead { color: var(--muted); max-width: 65ch; }
.button-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.service-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.service-action-guide {
  display: grid;
  gap: 0.75rem;
}
.service-action-guide-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid var(--content-line);
  background: #f8fbff;
}
.service-action-guide-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(34, 134, 217, 0.08);
  color: #2b6fa7;
}
.service-action-guide-item strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--content-strong);
}
.service-action-guide-item p {
  margin: 0;
  color: var(--content-text-soft);
  line-height: 1.45;
  font-size: 0.9rem;
}
.service-actions button {
  min-height: 44px;
}
.service-feedback {
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--content-line);
  font-size: 0.92rem;
}
.service-feedback-ok {
  background: rgba(49, 208, 170, 0.12);
  border-color: rgba(49, 208, 170, 0.22);
  color: #0f6f59;
}
.service-feedback-error {
  background: rgba(255, 111, 145, 0.12);
  border-color: rgba(255, 111, 145, 0.22);
  color: #a12b4a;
}
.service-capabilities {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--content-line);
  background: #f8fbff;
}
.service-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.service-feature-list .status {
  padding-inline: 0.7rem;
  background: rgba(36, 170, 94, 0.14);
  color: #1f7a45;
  border-color: rgba(36, 170, 94, 0.28);
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--content-text);
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch-slider {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(16, 36, 59, 0.16);
  border: 1px solid rgba(16, 36, 59, 0.12);
  position: relative;
  transition: background 140ms ease, border-color 140ms ease;
}
.switch-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 36, 59, 0.14);
  transition: transform 140ms ease;
}
.switch input:checked + .switch-slider {
  background: rgba(49, 208, 170, 0.24);
  border-color: rgba(49, 208, 170, 0.28);
}
.switch input:checked + .switch-slider::after {
  transform: translateX(18px);
}
.switch input:disabled + .switch-slider {
  opacity: 0.55;
}
.switch-label {
  font-size: 0.88rem;
  color: #4d6277;
}
.form-error {
  color: #a12b4a;
  font-size: 0.84rem;
}
.form-warning,
.access-inline-warning {
  color: #8a5b00;
  font-size: 0.84rem;
}
.access-inline-warning {
  margin-top: 0.2rem;
}
.table-actions {
  display: flex;
  gap: 0.3rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
}
.icon-action {
  width: 28px;
  height: 28px;
  padding: 0;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(16, 36, 59, 0.08);
  position: relative;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.icon-action i {
  margin: 0 !important;
  width: auto;
  line-height: 1;
  display: block;
  pointer-events: none;
}
.icon-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(16, 36, 59, 0.12);
}
.action-edit {
  background: #ffe3bf !important;
  border: 1px solid #efc58a !important;
  color: #7a4307 !important;
}
.action-edit:hover {
  background: #ffd7a3 !important;
  border-color: #e6b164 !important;
}
.action-details {
  background: #dcecff !important;
  border: 1px solid #bdd8f7 !important;
  color: #1a4e7d !important;
}
.action-details:hover {
  background: #cfe4ff !important;
  border-color: #9fc6ee !important;
}
.action-history {
  background: #e0f3d2 !important;
  border: 1px solid #bddfa4 !important;
  color: #2d5b17 !important;
}
.action-history:hover {
  background: #d3edc0 !important;
  border-color: #9fc878 !important;
}
.action-password {
  background: #dfe5ff !important;
  border: 1px solid #c2cbf3 !important;
  color: #384d9d !important;
}
.action-password:hover {
  background: #d2dbff !important;
  border-color: #aebcea !important;
}
.action-delete {
  background: #ffd9e1 !important;
  border: 1px solid #efbcc9 !important;
  color: #a12b4a !important;
}
.action-delete:hover {
  background: #ffcdd8 !important;
  border-color: #e6a8b8 !important;
}
.icon-action::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: rgba(16, 36, 59, 0.96);
  color: #f6fbff;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 20;
}
.icon-action:hover::after,
.icon-action:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.danger-button {
  border-color: rgba(201, 56, 92, 0.18) !important;
  color: #b42345 !important;
  background: rgba(201, 56, 92, 0.08) !important;
}
.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
}
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.field-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 0.25rem;
  border-radius: 999px;
  color: #2b78c4;
  background: rgba(43, 120, 196, 0.12);
  border: 1px solid rgba(43, 120, 196, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  position: relative;
  vertical-align: middle;
}
.field-tip i {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1;
  color: inherit;
}
.field-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: rgba(16, 36, 59, 0.96);
  color: #f6fbff;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: normal;
  min-width: 180px;
  max-width: min(260px, calc(100vw - 32px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 25;
  border: 1px solid rgba(159, 220, 255, 0.2);
  box-shadow: 0 10px 22px rgba(4, 14, 24, 0.22);
}
.field-tip:hover::after,
.field-tip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.field-tip:hover,
.field-tip:focus-visible {
  color: #1d5d9c;
  background: rgba(43, 120, 196, 0.18);
  border-color: rgba(43, 120, 196, 0.3);
}
.config-source-list,
.config-group {
  display: grid;
  gap: 0.9rem;
}
.config-source-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--content-line);
  background: #f8fbff;
}
.config-source-card-active {
  border-color: rgba(49, 208, 170, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f6fffb 100%);
}
.config-source-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.config-source-title {
  display: grid;
  gap: 0.45rem;
}
.config-source-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.config-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.config-source-state {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--content-line);
  background: #ffffff;
}
.config-source-state strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.config-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}
.config-group {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--content-line);
  background: #f8fbff;
}
.config-group .switch {
  min-height: 42px;
}
.config-group input[type="number"] {
  width: 100%;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 16, 25, 0.48);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  z-index: 100;
}
.modal-card {
  width: min(760px, 100%);
  background: #ffffff;
  border: 1px solid var(--content-line);
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(16, 36, 59, 0.18);
  padding: 1.25rem;
  color: var(--content-text);
  display: grid;
  gap: 1rem;
}
.modal-card h3,
.modal-card p,
.modal-card label,
.modal-card strong {
  color: var(--content-text);
}
.modal-card .eyebrow {
  color: #61758c;
}
.modal-card label {
  color: #22384f;
}
.modal-card input,
.modal-card select,
.modal-card textarea {
  background: #ffffff;
  color: #13283f;
  border: 1px solid rgba(16, 36, 59, 0.16);
}
.modal-card input::placeholder,
.modal-card textarea::placeholder {
  color: #6b7f95;
}
.modal-card input[readonly] {
  color: #5d7186;
  background: #f4f8fc;
  border-color: rgba(16, 36, 59, 0.1);
}
.modal-card select {
  color: #13283f;
}
.modal-card button {
  color: #17304a;
  background: #ffffff;
  border: 1px solid rgba(16, 36, 59, 0.14);
}
.modal-card button:hover {
  background: #f5f8fc;
}
.modal-card .primary {
  color: #041019;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
}
.modal-card .icon-button {
  color: #6f849a;
  background: #f8fbff;
  border-color: rgba(16, 36, 59, 0.08);
}
.modal-card .icon-button:hover {
  background: #eef4fb;
}
.modal-card-sm {
  width: min(520px, 100%);
}
.modal-card-xl {
  width: min(1240px, 100%);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.modal-actions {
  justify-content: flex-end;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--line); }
  .content { padding: 1rem; }
  .content > .page-header + * {
    margin-top: calc(var(--page-header-overlap) * -0.8);
  }
  .content > .page-header + .stack,
  .content > .page-header + .grid-2,
  .content > .page-header + .hero-panel,
  .content > .page-header + .card {
    padding-top: calc(var(--page-header-overlap) * 0.8);
  }
  .modal-grid { grid-template-columns: 1fr; }
  .revision-status-grid { grid-template-columns: 1fr; }
  .page-header-actions { justify-content: flex-start; }
  .service-actions { grid-template-columns: 1fr; }
  .service-action-guide-item { grid-template-columns: 34px 1fr; }
  .config-source-grid { grid-template-columns: 1fr; }
  .license-meta-grid,
  .license-deadline-grid { grid-template-columns: 1fr; }
  .license-meta-row { grid-template-columns: 1fr; gap: 0.45rem; }
}
@media (max-width: 1700px) {
  .clients-table th:nth-child(5),
  .clients-table td:nth-child(5),
  .clients-table th:nth-child(7),
  .clients-table td:nth-child(7),
  .clients-table th:nth-child(15),
  .clients-table td:nth-child(15) {
    display: none;
  }
}
@media (max-width: 1440px) {
  .clients-table th:nth-child(8),
  .clients-table td:nth-child(8),
  .clients-table th:nth-child(10),
  .clients-table td:nth-child(10),
  .clients-table th:nth-child(11),
  .clients-table td:nth-child(11) {
    display: none;
  }
}
@media (max-width: 1240px) {
  .clients-table th:nth-child(6),
  .clients-table td:nth-child(6),
  .clients-table th:nth-child(12),
  .clients-table td:nth-child(12),
  .clients-table th:nth-child(13),
  .clients-table td:nth-child(13) {
    display: none;
  }
}
@media (max-width: 1080px) {
  .clients-table th:nth-child(14),
  .clients-table td:nth-child(14),
  .clients-table th:nth-child(16),
  .clients-table td:nth-child(16) {
    display: none;
  }
}
