:root {
  color-scheme: light dark;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-muted: #eef2f7;
  --surface-subtle: #f8fafc;
  --text: #172033;
  --text-muted: #61708a;
  --text-faint: #8190a8;
  --border: #dce3ed;
  --border-strong: #c3cedd;
  --brand: #3249a8;
  --brand-strong: #233889;
  --brand-soft: #e9edff;
  --success: #16805d;
  --success-soft: #e5f6ef;
  --warning: #9a6400;
  --warning-soft: #fff3d4;
  --danger: #bc3345;
  --danger-strong: #982437;
  --danger-soft: #fde9ec;
  --info: #2775b6;
  --info-soft: #e5f2fd;
  --neutral: #68778d;
  --neutral-soft: #edf1f5;
  --shadow: 0 16px 40px rgba(29, 43, 75, 0.08);
  --shadow-small: 0 4px 16px rgba(29, 43, 75, 0.07);
  --radius: 14px;
  --radius-small: 9px;
  --sidebar-width: 248px;
  --topbar-height: 68px;
  --focus: 0 0 0 3px rgba(50, 73, 168, 0.27);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --surface: #171e2d;
    --surface-raised: #1b2435;
    --surface-muted: #202a3c;
    --surface-subtle: #141b29;
    --text: #edf1f8;
    --text-muted: #a8b4c8;
    --text-faint: #8090a9;
    --border: #2c384c;
    --border-strong: #405069;
    --brand: #8394f2;
    --brand-strong: #a8b4ff;
    --brand-soft: #29345f;
    --success: #54c99b;
    --success-soft: #173d34;
    --warning: #f0bd55;
    --warning-soft: #493817;
    --danger: #ff7887;
    --danger-strong: #ff9aa5;
    --danger-soft: #4b2029;
    --info: #69b2eb;
    --info-soft: #193952;
    --neutral: #adbacd;
    --neutral-soft: #2a3444;
    --shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
    --shadow-small: 0 6px 18px rgba(0, 0, 0, 0.24);
    --focus: 0 0 0 3px rgba(131, 148, 242, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
}

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

button,
select {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.form-divider::before,
.form-divider::after {
  flex: 1;
  height: 1px;
  background: var(--border);
  content: "";
}

.code-editor {
  width: 100%;
  min-height: 420px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  background: var(--surface-subtle);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  resize: vertical;
}

.managed-config-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(430px, 1.05fr);
  gap: 16px;
  align-items: start;
}

.managed-config-pane {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.managed-config-form-pane {
  align-self: start;
}

.managed-config-json-pane {
  position: sticky;
  top: 0;
}

.managed-config-pane__header {
  margin-bottom: 13px;
}

.managed-config-pane__header h3,
.managed-config-section h3 {
  margin: 0;
  font-size: 14px;
}

.managed-config-pane__header p,
.managed-config-section header p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.managed-config-form {
  gap: 13px;
}

.managed-config-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 1px 9px;
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}

.managed-config-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--surface);
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}

.managed-config-tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.managed-config-tab.is-active {
  border-color: color-mix(in srgb, var(--brand) 52%, var(--border));
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.managed-config-tab.has-error::after {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--surface);
  border-radius: 50%;
  background: var(--danger);
  content: "";
}

.managed-config-form--tabs .managed-config-section {
  min-height: 260px;
}

.managed-config-section {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.managed-config-section header {
  margin-bottom: 11px;
}

.managed-config-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  align-items: start;
}

.managed-field--full {
  grid-column: 1 / -1;
}

.managed-fake-settings-grid {
  gap: 12px 16px;
}

.managed-fake-toggle-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.managed-fake-toggle-field .check-row {
  min-height: 39px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  background: var(--surface-subtle);
  font-weight: 450;
}

.managed-fake-toggle-field .check-row input {
  margin-top: 0;
}

.managed-fake-rules::placeholder {
  color: var(--text-faint);
  line-height: 1.55;
  opacity: 1;
}

.fake-artifact-json {
  max-height: 42rem;
  margin: 0;
  padding: var(--space-4);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-subtle);
  white-space: pre;
  font-size: 11px;
  line-height: 1.55;
}

.managed-hour-field {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-subtle);
}

.managed-hour-field legend {
  padding: 0 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.managed-hour-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 7px;
}

.managed-hour-option {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.managed-hour-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.managed-hour-option input {
  margin: 0;
  accent-color: var(--brand);
}

.managed-config-fields .check-row {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-subtle);
}

.managed-config-fields textarea::placeholder {
  color: var(--text-faint);
  line-height: 1.55;
  opacity: 1;
}

.managed-config-boolean-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.managed-config-boolean-field .check-row {
  width: 100%;
  align-items: center;
}

.managed-config-boolean-field .check-row input {
  margin-top: 0;
}

.managed-config-fields .check-row strong,
.managed-config-fields .check-row small {
  display: block;
}

.managed-inline-json {
  min-height: 130px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.managed-config-json-pane .code-editor {
  min-height: 650px;
  max-height: calc(92vh - 300px);
}

.managed-config-pane [aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 16%, transparent);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  transform: translateY(-140%);
  border-radius: var(--radius-small);
  color: #fff;
  background: var(--brand-strong);
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 36%),
    radial-gradient(circle at 85% 85%, color-mix(in srgb, var(--info) 12%, transparent), transparent 34%),
    var(--bg);
}

.login-card {
  width: min(100%, 460px);
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.brand {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
}

.brand--login {
  min-height: 0;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 28%, transparent);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--text-muted);
  font-size: 11px;
}

.login-copy {
  padding: 30px 0 20px;
}

.login-copy h1 {
  margin: 4px 0 8px;
  font-size: 27px;
  line-height: 1.25;
}

.login-copy p:last-child,
.login-footnote {
  color: var(--text-muted);
}

.login-footnote {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--topbar-height) auto minmax(calc(100vh - var(--topbar-height)), auto) auto;
  grid-template-areas:
    "sidebar topbar"
    "sidebar banner"
    "sidebar main"
    "sidebar footer";
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  grid-area: sidebar;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.navigation {
  flex: 1;
  padding: 10px 10px 24px;
  overflow-y: auto;
}

.navigation a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.navigation a:hover {
  color: var(--text);
  background: var(--surface-muted);
  text-decoration: none;
}

.navigation a[aria-current="page"] {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.nav-icon {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  background: var(--surface-subtle);
  font-size: 11px;
}

.navigation a[aria-current="page"] .nav-icon {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand-soft) 75%, var(--surface));
}

.nav-count {
  min-width: 21px;
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.nav-section {
  padding: 19px 10px 5px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  background: var(--surface-subtle);
  font-size: 11px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  grid-area: topbar;
  min-width: 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
}

.nav-toggle {
  display: none !important;
}

.tenant-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
}

.tenant-picker select {
  min-width: 128px;
  padding: 8px 30px 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-muted);
  font-weight: 700;
}

.global-search {
  width: min(390px, 38vw);
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-subtle);
}

.global-search:focus-within {
  border-color: var(--brand);
  box-shadow: var(--focus);
}

.global-search input {
  min-width: 0;
  flex: 1;
  padding: 9px 11px;
  border: 0;
  outline: 0;
  background: transparent;
}

.global-search button {
  padding: 0 12px;
  border: 0;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
}

.topbar-spacer {
  flex: 1;
}

.session-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.session-actor {
  max-width: 130px;
  overflow: hidden;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
}

.system-banner {
  grid-area: banner;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--danger) 30%, var(--border));
  color: var(--danger-strong);
  background: var(--danger-soft);
  font-size: 13px;
}

.system-banner span {
  flex: 1;
}

.system-banner a {
  color: inherit;
  font-weight: 700;
}

.main-content {
  grid-area: main;
  min-width: 0;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 28px clamp(18px, 3vw, 46px) 42px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-header h1 {
  margin: 2px 0 3px;
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-description {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--text-muted);
}

.breadcrumbs {
  display: flex;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--text-faint);
  font-size: 12px;
}

.breadcrumbs a::after {
  content: "/";
  margin-left: 7px;
  color: var(--border-strong);
}

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

.cluster--between {
  justify-content: space-between;
}

.page-content {
  min-height: 240px;
}

.app-footer {
  grid-area: footer;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 3vw, 46px);
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 11px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack--tight {
  gap: 8px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid--metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fake-subscription-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fake-subscription-metrics .metric-card__value {
  font-size: clamp(21px, 1.65vw, 29px);
  overflow-wrap: anywhere;
}

.fake-subscription-metrics .metric-card__detail {
  min-height: 2.9em;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

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

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

.isp-probe-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.isp-probe-summary__item {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-subtle);
}

.isp-probe-summary__item span,
.isp-probe-summary__item small {
  display: block;
  color: var(--text-muted);
}

.isp-probe-summary__item strong {
  display: block;
  margin: 4px 0 2px;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.isp-probe-summary__item small {
  overflow-wrap: anywhere;
}

.isp-probe-toggle-row {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
}

.isp-probe-toggle {
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--brand);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: start;
}

.card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.card--flat {
  box-shadow: none;
}

.card--danger {
  border-color: color-mix(in srgb, var(--danger) 32%, var(--border));
}

.card--warning {
  border-color: color-mix(in srgb, var(--warning) 35%, var(--border));
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px 13px;
  border-bottom: 1px solid var(--border);
}

.card-header h2,
.card-header h3 {
  margin: 0;
  font-size: 15px;
}

.card-header p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.card-body {
  padding: 18px;
}

.card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
}

.metric-card {
  padding: 18px;
}

.metric-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.metric-card__value {
  margin: 7px 0 1px;
  font-size: 29px;
  font-weight: 760;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.metric-card__detail {
  color: var(--text-muted);
  font-size: 11px;
}

.activity-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.activity-total strong {
  font-size: 28px;
  line-height: 1;
}

.activity-total .muted {
  margin-left: auto;
}

.activity-users {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.activity-pie-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(210px, 1.2fr);
  gap: 20px;
  align-items: center;
}

.activity-pie {
  display: block;
  width: min(100%, 230px);
  margin: 0 auto;
  overflow: visible;
  filter: drop-shadow(0 5px 12px rgba(29, 43, 75, 0.12));
}

.activity-slice {
  stroke: var(--surface);
  stroke-width: 1.25px;
}

.activity-slice--empty { fill: var(--surface-muted); }
.activity-slice--1m,
.activity-pie-key--1m { fill: #3249a8; background: #3249a8; }
.activity-slice--5m,
.activity-pie-key--5m { fill: #2775b6; background: #2775b6; }
.activity-slice--1h,
.activity-pie-key--1h { fill: #16805d; background: #16805d; }
.activity-slice--1d,
.activity-pie-key--1d { fill: #d69a16; background: #d69a16; }
.activity-slice--7d,
.activity-pie-key--7d { fill: #d25b45; background: #d25b45; }
.activity-slice--7d_plus,
.activity-pie-key--7d_plus { fill: #7b668f; background: #7b668f; }

.activity-pie-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.activity-pie-legend__item {
  display: grid;
  min-width: 0;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.activity-pie-key {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 3px;
}

.activity-pie-legend__item span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.activity-pie-legend__item strong {
  font-size: 11px;
}

.activity-pie-legend__item small {
  color: var(--text-muted);
  font-size: 10px;
}

.native-log-value {
  display: flex;
  min-width: 120px;
  max-width: 320px;
  flex-direction: column;
  gap: 2px;
  overflow-wrap: anywhere;
}

.native-log-value strong {
  font-size: 11px;
  font-weight: 680;
}

.native-log-value small {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.35;
}

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

.section-title h2 {
  margin: 0;
  font-size: 17px;
}

.section-title p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.table-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.subscribe-log-table {
  width: 3130px;
  min-width: 3130px;
  table-layout: fixed;
}

.subscribe-log-table th,
.subscribe-log-table td {
  overflow: hidden;
  vertical-align: middle;
}

.subscribe-log-table th:nth-child(1),
.subscribe-log-table td:nth-child(1) { width: 145px; }
.subscribe-log-table th:nth-child(2),
.subscribe-log-table td:nth-child(2) { width: 165px; }
.subscribe-log-table th:nth-child(3),
.subscribe-log-table td:nth-child(3) { width: 260px; }
.subscribe-log-table th:nth-child(4),
.subscribe-log-table td:nth-child(4) { width: 190px; }
.subscribe-log-table th:nth-child(5),
.subscribe-log-table td:nth-child(5) { width: 220px; }
.subscribe-log-table th:nth-child(6),
.subscribe-log-table td:nth-child(6) { width: 190px; }
.subscribe-log-table th:nth-child(7),
.subscribe-log-table td:nth-child(7) { width: 115px; }
.subscribe-log-table th:nth-child(8),
.subscribe-log-table td:nth-child(8) { width: 155px; }
.subscribe-log-table th:nth-child(9),
.subscribe-log-table td:nth-child(9) { width: 100px; }
.subscribe-log-table th:nth-child(10),
.subscribe-log-table td:nth-child(10) { width: 320px; }
.subscribe-log-table th:nth-child(11),
.subscribe-log-table td:nth-child(11) { width: 240px; }
.subscribe-log-table th:nth-child(12),
.subscribe-log-table td:nth-child(12) { width: 300px; }
.subscribe-log-table th:nth-child(13),
.subscribe-log-table td:nth-child(13) { width: 440px; }
.subscribe-log-table th:nth-child(14),
.subscribe-log-table td:nth-child(14) { width: 280px; }

.subscribe-log-table .native-log-value {
  min-width: 0;
  max-width: 100%;
}

.subscribe-log-table .native-log-value strong,
.subscribe-log-table .native-log-value small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscribe-log-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.subscribe-log-time strong {
  font-size: 11px;
}

.subscribe-log-time small {
  color: var(--text-muted);
  font-size: 10px;
}

.subscribe-log-token,
.subscribe-log-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.subscribe-log-token strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subscribe-log-actions .button {
  flex: 0 0 auto;
}

.case-review-table {
  min-width: 1120px;
}

.case-review-table th,
.case-review-table td {
  vertical-align: middle;
}

.case-review-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.review-action-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.review-action-choice {
  display: flex;
  min-height: 92px;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  color: var(--text);
  text-align: left;
  background: var(--surface-subtle);
  cursor: pointer;
}

.review-action-choice:hover,
.review-action-choice:focus-visible,
.review-action-choice.is-recommended,
.review-action-choice.is-selected {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--border));
  background: var(--brand-soft);
}

.review-action-choice.is-selected {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 64%, transparent);
}

.review-action-choice input[type="radio"] {
  flex: 0 0 auto;
  margin: 2px 0 0;
}

.review-action-choice small {
  color: var(--text-muted);
  line-height: 1.45;
}

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

th {
  color: var(--text-muted);
  background: var(--surface-subtle);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: -6px -8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
}

.table-sort-button:hover,
.table-sort-button:focus-visible,
.table-sort-button.is-active {
  color: var(--text);
  background: var(--surface-muted);
}

.table-sort-indicator {
  min-width: 10px;
  color: var(--text-faint);
  font-size: 10px;
}

.table-sort-button.is-active .table-sort-indicator {
  color: var(--brand);
}

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

tbody tr:hover td {
  background: color-mix(in srgb, var(--brand-soft) 28%, var(--surface));
}

.row-link {
  color: var(--text);
  font-weight: 700;
}

.row-link:hover {
  color: var(--brand);
}

.filter-bar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.field--grow {
  flex: 1;
  min-width: 180px;
}

.field input,
.field select,
.field textarea,
.input {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  outline: 0;
  color: var(--text);
  background: var(--surface-subtle);
  font-weight: 450;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
  border-color: var(--brand);
  box-shadow: var(--focus);
}

.field-help,
.form-error {
  margin: -5px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.form-error {
  padding: 9px 11px;
  border-radius: var(--radius-small);
  color: var(--danger-strong);
  background: var(--danger-soft);
}

.button,
.icon-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  color: var(--text);
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.icon-button:hover {
  border-color: var(--brand);
  text-decoration: none;
}

.button--primary {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand-strong);
}

.button--primary:hover {
  border-color: var(--brand-strong);
  filter: brightness(1.06);
}

.button--danger {
  border-color: var(--danger);
  color: #fff;
  background: var(--danger-strong);
}

.button--danger-outline {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--border));
  color: var(--danger-strong);
  background: var(--surface);
}

.button--quiet {
  border-color: transparent;
  color: var(--text-muted);
  background: transparent;
}

.button--small {
  min-height: 31px;
  padding: 5px 9px;
  font-size: 12px;
}

.button--wide {
  width: 100%;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.status-pill {
  min-height: 32px;
  padding: 6px 10px;
  background: var(--surface-muted);
  font-size: 11px;
}

.badge {
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.015em;
}

.badge--success,
.status-pill--success {
  border-color: color-mix(in srgb, var(--success) 28%, transparent);
  color: var(--success);
  background: var(--success-soft);
}

.badge--warning,
.status-pill--warning {
  border-color: color-mix(in srgb, var(--warning) 28%, transparent);
  color: var(--warning);
  background: var(--warning-soft);
}

.badge--danger,
.status-pill--danger {
  border-color: color-mix(in srgb, var(--danger) 28%, transparent);
  color: var(--danger-strong);
  background: var(--danger-soft);
}

.badge--info,
.status-pill--info {
  border-color: color-mix(in srgb, var(--info) 28%, transparent);
  color: var(--info);
  background: var(--info-soft);
}

.badge--neutral,
.status-pill--neutral {
  border-color: var(--border);
  color: var(--neutral);
  background: var(--neutral-soft);
}

.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-dot--info {
  color: var(--info);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

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

.faint {
  color: var(--text-faint);
}

.strong {
  font-weight: 750;
}

.nowrap {
  white-space: nowrap;
}

.text-danger {
  color: var(--danger-strong);
}

.text-warning {
  color: var(--warning);
}

.data-list {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.5fr);
  gap: 0;
  margin: 0;
}

.data-list dt,
.data-list dd {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.data-list dt {
  padding-right: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.data-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.data-list dt:last-of-type,
.data-list dd:last-of-type {
  border-bottom: 0;
}

.empty-state,
.error-state,
.loading-state {
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 30px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  background: var(--surface-subtle);
  text-align: center;
}

.state-copy {
  max-width: 520px;
}

.state-copy strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 16px;
}

.state-copy p {
  margin: 0 0 14px;
}

.loading-bars {
  width: min(360px, 75vw);
  display: grid;
  gap: 10px;
}

.loading-bars span {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--surface-muted), var(--border), var(--surface-muted));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.loading-bars span:nth-child(2) {
  width: 76%;
}

.loading-bars span:nth-child(3) {
  width: 88%;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

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

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  color: var(--text-muted);
  background: var(--surface-subtle);
}

.notice--info {
  border-color: color-mix(in srgb, var(--info) 30%, var(--border));
  color: var(--info);
  background: var(--info-soft);
}

.notice--warning {
  border-color: color-mix(in srgb, var(--warning) 30%, var(--border));
  color: var(--warning);
  background: var(--warning-soft);
}

.notice--danger {
  border-color: color-mix(in srgb, var(--danger) 30%, var(--border));
  color: var(--danger-strong);
  background: var(--danger-soft);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  margin-left: 7px;
  padding: 0 0 18px 20px;
  border-left: 1px solid var(--border-strong);
}

.timeline li::before {
  position: absolute;
  top: 3px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline time {
  display: block;
  color: var(--text-faint);
  font-size: 11px;
}

.evidence-grid,
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.evidence-item,
.impact-item {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-subtle);
}

.evidence-item small,
.impact-item small {
  display: block;
  margin-bottom: 3px;
  color: var(--text-muted);
}

.evidence-item strong,
.impact-item strong {
  overflow-wrap: anywhere;
}

.profile-window {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-subtle);
}

.profile-window h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.profile-meter {
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-muted);
  accent-color: var(--brand);
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-muted);
}

.tabs button {
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--text-muted);
  background: transparent;
  font-weight: 700;
}

.tabs button[aria-selected="true"] {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.subpage-count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.subpage-count--danger {
  background: var(--danger);
}

.subpage-count--warning {
  background: var(--warning);
}

.subpage-count--success {
  background: var(--success);
}

.subpage-count--neutral {
  background: var(--text-muted);
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-subtle);
}

details + details {
  margin-top: 8px;
}

summary {
  padding: 11px 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 700;
}

details pre {
  max-height: 380px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border-top: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  white-space: pre-wrap;
  word-break: break-word;
  font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.topology-board {
  display: grid;
  gap: 14px;
}

.topology-route {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 34px minmax(150px, 1fr) 34px minmax(190px, 1.3fr);
  align-items: stretch;
  gap: 8px;
}

.topology-node {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.topology-node small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.topology-node strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topology-arrow {
  display: grid;
  place-items: center;
  color: var(--text-faint);
  font-size: 18px;
}

.dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(86vh, 820px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 17px;
  color: var(--text);
  background: var(--surface-raised);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
}

.dialog--wide {
  width: min(1040px, calc(100vw - 32px));
}

.dialog--managed-config {
  width: min(1420px, calc(100vw - 24px));
  max-height: min(94vh, 980px);
}

.dialog--managed-config .dialog__body {
  max-height: calc(94vh - 150px);
}

.dialog::backdrop {
  background: rgba(6, 12, 24, 0.62);
  backdrop-filter: blur(3px);
}

.dialog__header,
.dialog__body,
.dialog__footer {
  padding: 17px 20px;
}

.dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.dialog__header h2 {
  margin: 0;
  font-size: 19px;
}

.dialog__header p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.dialog__body {
  max-height: calc(86vh - 150px);
  overflow-y: auto;
}

.dialog__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-muted);
}

.check-row input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.sticky-action {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-raised) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.sticky-action p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  width: min(380px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
}

.toast {
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--info);
  border-radius: var(--radius-small);
  color: var(--text);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.toast--success {
  border-left-color: var(--success);
}

.toast--danger {
  border-left-color: var(--danger);
}

@media (max-width: 1279px) {
  :root {
    --sidebar-width: 74px;
  }

  .brand {
    justify-content: center;
    padding-inline: 10px;
  }

  .brand-copy,
  .navigation a > span:not(.nav-icon):not(.nav-count),
  .nav-section,
  .sidebar-note {
    display: none;
  }

  .navigation a {
    justify-content: center;
    padding-inline: 8px;
  }

  .nav-count {
    position: absolute;
    margin: -24px 0 0 28px;
  }

  .global-search {
    width: min(330px, 36vw);
  }

  .grid--metrics,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .managed-config-workspace {
    grid-template-columns: minmax(320px, 0.9fr) minmax(380px, 1.1fr);
  }
}

@media (max-width: 980px) {
  .managed-config-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .managed-config-json-pane {
    position: static;
  }

  .managed-config-json-pane .code-editor {
    min-height: 460px;
    max-height: none;
  }
}

@media (max-width: 767px) {
  :root {
    --topbar-height: 60px;
  }

  .app-shell {
    display: block;
    padding-top: var(--topbar-height);
  }

  .sidebar {
    width: min(82vw, 300px);
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: var(--shadow);
  }

  body.nav-open .sidebar {
    transform: none;
  }

  body.nav-open::after {
    position: fixed;
    z-index: 25;
    inset: 0;
    background: rgba(6, 12, 24, 0.56);
    content: "";
  }

  .brand {
    justify-content: flex-start;
  }

  .brand-copy,
  .navigation a > span:not(.nav-icon):not(.nav-count),
  .nav-section,
  .sidebar-note {
    display: block;
  }

  .navigation a {
    justify-content: flex-start;
  }

  .nav-count {
    position: static;
    margin: 0 0 0 auto;
  }

  .topbar {
    position: fixed;
    inset: 0 0 auto;
    height: var(--topbar-height);
    padding: 0 12px;
  }

  .nav-toggle {
    display: inline-flex !important;
  }

  .tenant-picker span,
  .global-search,
  .session-actor,
  #refresh-button {
    display: none;
  }

  .tenant-picker select {
    min-width: 105px;
    max-width: 30vw;
  }

  .status-pill {
    max-width: 120px;
    overflow: hidden;
  }

  .system-banner {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-inline: 14px;
  }

  .system-banner span {
    flex-basis: calc(100% - 30px);
  }

  .main-content {
    padding: 22px 14px 34px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .grid--metrics,
  .grid--two,
  .grid--three,
  .isp-probe-summary,
  .evidence-grid,
  .impact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .activity-total {
    flex-wrap: wrap;
  }

  .activity-total .muted {
    flex-basis: 100%;
    margin-left: 0;
  }

  .activity-pie-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .activity-pie {
    width: min(100%, 220px);
  }

  .table-shell {
    border: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .table-scroll {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  .subscribe-log-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  .case-review-table {
    min-width: 0;
  }

  .case-review-actions,
  .review-action-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    white-space: normal;
  }

  .subscribe-log-actions {
    flex-wrap: wrap;
    white-space: normal;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tbody tr {
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-small);
  }

  td {
    display: grid;
    grid-template-columns: minmax(92px, 0.7fr) minmax(0, 1.3fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
  }

  td::before {
    color: var(--text-muted);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
  }

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

  .topology-route {
    grid-template-columns: minmax(0, 1fr);
  }

  .topology-arrow {
    min-height: 20px;
    transform: rotate(90deg);
  }

  .sticky-action {
    align-items: stretch;
    flex-direction: column;
  }

  .sticky-action .cluster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .dialog__body {
    max-height: calc(100dvh - 150px);
  }

  .managed-config-pane {
    padding: 12px;
  }

  .managed-config-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .managed-field--full {
    grid-column: auto;
  }

  .managed-config-json-pane .code-editor {
    min-height: 380px;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 14px;
  }
}

@media (max-width: 420px) {
  .login-card {
    padding: 25px 20px;
  }

  #capacity-pill {
    padding-inline: 8px;
  }

  .session-menu {
    padding-left: 4px;
  }
}
.managed-fake-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-4);
}

.managed-fake-preview__pane {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  overflow: hidden;
}

.managed-fake-preview__pane h3 {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

.managed-fake-preview__pane pre {
  max-height: 28rem;
  margin: 0;
  padding: var(--space-4);
  overflow: auto;
  white-space: pre;
}

@media (max-width: 900px) {
  .managed-fake-preview { grid-template-columns: 1fr; }
}
