:root {
  color-scheme: dark;
  --bg: #071318;
  --panel: #0d2027;
  --panel-2: #112a32;
  --text: #f4f8f8;
  --muted: #9db1b6;
  --line: #22404a;
  --accent: #56e3bd;
  --accent-dark: #092c27;
  --blue: #7fb7ff;
  --warning: #ffd37a;
  --danger: #ff8d8d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

/* Commercial site */
.product-page {
  background: #f5f7f6;
  color: #112126;
  color-scheme: light;
}

.product-page .brand { color: #f7fbfa; }
.product-page .button { border-radius: 6px; }
.product-page .button.primary { background: #43d5b1; color: #071b1c; }
.product-page .button.secondary { border-color: #a9bab9; color: #15292e; background: #ffffff; }

.product-topbar {
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  gap: 28px;
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.product-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.product-nav a { color: #e0e9e7; font-size: 0.86rem; font-weight: 700; text-decoration: none; }
.product-actions { display: flex; align-items: center; gap: 8px; }
.product-topbar .button { min-height: 40px; padding: 9px 15px; }
.product-topbar .button.secondary { color: #ffffff; border-color: rgba(255, 255, 255, 0.55); background: rgba(8, 27, 29, 0.48); }

.product-hero {
  min-height: min(820px, 88vh);
  height: 88vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a2529;
}

.product-hero > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; }
.product-hero-shade { position: absolute; inset: 0; background: rgba(4, 18, 20, 0.64); }
.product-hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  color: #ffffff;
  padding-top: 72px;
}

.product-hero-content h1 { margin: 0 0 18px; font-size: 5.8rem; line-height: 0.94; }
.product-hero-content > p:not(.eyebrow) { max-width: 690px; margin-bottom: 30px; color: #d7e4e2; font-size: 1.35rem; line-height: 1.55; }
.product-hero-content > small { display: block; margin-top: 18px; color: #c7d6d4; }
.product-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product-hero-actions .button { min-height: 50px; padding: 13px 20px; }
.product-ghost { border: 1px solid rgba(255, 255, 255, 0.5); color: #ffffff; background: rgba(4, 18, 20, 0.5); }

.product-signal {
  width: min(1180px, calc(100% - 40px));
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #ced9d7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(13, 39, 42, 0.11);
}

.product-signal div { min-width: 0; padding: 23px 24px; border-right: 1px solid #dce4e3; }
.product-signal div:last-child { border-right: 0; }
.product-signal strong, .product-signal span { display: block; }
.product-signal strong { margin-bottom: 5px; font-size: 0.95rem; }
.product-signal span { color: #607277; font-size: 0.78rem; line-height: 1.45; }

.product-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0; }
.product-section-head { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr); gap: 90px; align-items: end; margin-bottom: 48px; }
.product-section-head h2, .product-security-band h2, .product-cta h2 { margin: 0; font-size: 2.65rem; line-height: 1.08; }
.product-section-head > p:last-child { margin: 0; color: #5e7277; font-size: 1.04rem; line-height: 1.7; }
.product-page .eyebrow { color: #087a68; }

.product-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #bac9c7; }
.product-feature-grid article { min-height: 260px; padding: 36px 42px 36px 0; border-bottom: 1px solid #bac9c7; }
.product-feature-grid article:nth-child(odd) { border-right: 1px solid #bac9c7; }
.product-feature-grid article:nth-child(even) { padding-left: 42px; }
.feature-index { color: #087a68; font-weight: 800; font-size: 0.78rem; }
.product-feature-grid h3 { margin: 36px 0 12px; font-size: 1.45rem; }
.product-feature-grid p { max-width: 480px; color: #5b6f74; line-height: 1.65; }

.product-security-band { padding: 82px max(20px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 0.8fr 1fr; gap: 100px; color: #f3f7f6; background: #102a2f; }
.product-security-band .eyebrow { color: #55dbb9; }
.security-principles { border-top: 1px solid #496066; }
.security-principles p { margin: 0; padding: 22px 0; border-bottom: 1px solid #496066; color: #c1cfcd; line-height: 1.6; }
.security-principles strong { color: #ffffff; }

.pricing-section { padding-bottom: 84px; }
.pricing-heading { grid-template-columns: 1fr auto; align-items: end; }
.billing-toggle { display: flex; border: 1px solid #9fb1af; border-radius: 7px; background: #e9efee; padding: 3px; }
.billing-toggle button { min-height: 40px; border: 0; border-radius: 5px; padding: 8px 13px; color: #455b60; background: transparent; font: inherit; font-size: 0.76rem; font-weight: 750; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { color: #10282c; background: #ffffff; box-shadow: 0 1px 4px rgba(18, 49, 52, 0.12); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pricing-plan { min-width: 0; padding: 28px; display: flex; flex-direction: column; border: 1px solid #bdccca; border-radius: 8px; background: #ffffff; }
.pricing-plan.recommended { border: 2px solid #168b77; }
.plan-label { color: #087a68; font-size: 0.7rem; font-weight: 850; text-transform: uppercase; }
.pricing-plan h3 { margin: 12px 0 8px; font-size: 1.5rem; }
.pricing-plan > p { min-height: 48px; color: #607277; line-height: 1.5; font-size: 0.86rem; }
.plan-price { display: block; margin-top: 20px; color: #12272b; font-size: 2.5rem; line-height: 1; }
.pricing-plan > small { margin-top: 6px; color: #6d7e82; }
.pricing-plan ul { display: grid; gap: 12px; margin: 28px 0; padding: 24px 0 0; border-top: 1px solid #d5dfdd; list-style: none; color: #40555a; font-size: 0.86rem; }
.pricing-plan li::before { content: "✓"; margin-right: 9px; color: #087a68; font-weight: 900; }
.pricing-plan .button { width: 100%; margin-top: auto; text-align: center; }
.pricing-note { max-width: 830px; margin: 28px auto 0; color: #66797d; text-align: center; line-height: 1.55; font-size: 0.8rem; }

.product-cta { width: min(1180px, calc(100% - 40px)); margin: 0 auto 90px; padding: 52px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border: 1px solid #9fb5b2; border-radius: 8px; background: #dfecea; }
.product-cta p:not(.eyebrow) { max-width: 700px; margin: 15px 0 0; color: #566a6f; line-height: 1.6; }
.product-cta .button { flex: 0 0 auto; }
.product-footer { min-height: 130px; padding: 30px max(20px, calc((100% - 1180px) / 2)); display: flex; align-items: center; gap: 28px; color: #c8d6d4; background: #091c20; }
.product-footer p { margin: 0 auto 0 0; font-size: 0.82rem; }
.product-footer > a:last-child { color: #ffffff; font-weight: 700; }

.billing-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.billing-status { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 22px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.billing-status strong { color: var(--accent); }
.billing-status span { color: var(--muted); font-size: 0.82rem; text-align: right; }
.admin-pricing-grid .pricing-plan { background: var(--panel); border-color: var(--line); }
.admin-pricing-grid .pricing-plan.recommended { border-color: var(--accent); }
.admin-pricing-grid .pricing-plan h3, .admin-pricing-grid .plan-price { color: var(--text); }
.admin-pricing-grid .pricing-plan p { min-height: 44px; color: var(--muted); }
.billing-device-count { display: grid; grid-template-columns: minmax(180px, 260px) minmax(100px, 160px) 1fr; align-items: center; gap: 16px; margin: 0 0 22px; color: var(--text); font-weight: 750; }
.billing-device-count input { width: 100%; }
.billing-device-count span { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.compact-plan { min-height: 220px; padding: 22px; }
.compact-plan .plan-price { margin-top: 14px; font-size: 1.9rem; }

@media (max-width: 820px) {
  .product-nav { display: none; }
  .product-topbar { gap: 12px; }
  .product-actions { margin-left: auto; }
  .product-actions .secondary { display: none; }
  .product-hero { min-height: 680px; height: 84vh; }
  .product-hero > img { object-position: 62% center; }
  .product-hero-content h1 { font-size: 4rem; }
  .product-hero-content > p:not(.eyebrow) { font-size: 1.08rem; }
  .product-signal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-signal div:nth-child(2) { border-right: 0; }
  .product-signal div:nth-child(-n+2) { border-bottom: 1px solid #dce4e3; }
  .product-section { padding: 82px 0; }
  .product-section-head, .product-security-band { grid-template-columns: 1fr; gap: 30px; }
  .product-section-head h2, .product-security-band h2, .product-cta h2 { font-size: 2.1rem; }
  .pricing-heading { align-items: start; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-plan > p { min-height: 0; }
  .product-cta { align-items: flex-start; flex-direction: column; padding: 34px; }
  .billing-section-heading, .billing-status { align-items: flex-start; flex-direction: column; }
  .billing-status span { text-align: left; }
  .billing-device-count { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  .product-topbar { min-height: 64px; padding: 0 16px; }
  .product-topbar .brand { font-size: 1.12rem; }
  .product-topbar .button { padding: 8px 10px; font-size: 0.74rem; }
  .product-hero-content { width: calc(100% - 32px); }
  .product-hero-content h1 { font-size: 3.1rem; }
  .product-signal, .product-section, .product-cta { width: calc(100% - 28px); }
  .product-signal div { padding: 18px 14px; }
  .product-feature-grid { grid-template-columns: 1fr; }
  .product-feature-grid article, .product-feature-grid article:nth-child(even) { min-height: 0; padding: 30px 0; border-right: 0; }
  .product-feature-grid h3 { margin-top: 22px; }
  .product-security-band { padding: 64px 20px; }
  .billing-toggle { width: 100%; }
  .billing-toggle button { flex: 1; }
  .product-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
}

a { color: inherit; }

.topbar {
  height: 68px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 19, 24, 0.82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span { color: var(--accent); }

.suite-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.suite-nav::-webkit-scrollbar { display: none; }

.suite-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.suite-nav a:hover,
.suite-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--panel-2);
}

.environment {
  color: var(--muted);
  font-size: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
}

.environment.authenticated {
  color: var(--accent);
  border-color: var(--accent);
}

.account-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
}

.account-identity {
  display: grid;
  text-align: right;
  line-height: 1.2;
}

.account-identity strong { font-size: 0.78rem; }
.account-identity small { color: var(--muted); font-size: 0.68rem; }
.account-logout { padding: 7px 10px; border-radius: 6px; font-size: 0.75rem; }

.auth-page { background: #071318; }
.auth-topbar {
  min-height: 68px;
  padding: 0 clamp(22px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.auth-topbar > span { color: var(--muted); font-size: 0.82rem; }
.auth-shell {
  width: min(980px, calc(100% - 36px));
  min-height: calc(100vh - 69px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  align-items: center;
  gap: clamp(42px, 8vw, 110px);
  padding: 54px 0;
}
.auth-intro h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0;
}
.auth-intro > p:last-child { max-width: 520px; color: var(--muted); line-height: 1.65; }
.auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--panel);
}
.auth-panel h2 { margin-bottom: 24px; font-size: 1.15rem; letter-spacing: 0; }
.auth-submit { width: 100%; min-height: 48px; border-radius: 7px; }
.auth-recovery {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  text-align: center;
}
.compact-check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.compact-check input { width: 18px; height: 18px; margin: 0; }
.auth-panel .field-help { margin: -8px 0 0; }
.auth-link { color: var(--accent); font-weight: 750; text-underline-offset: 3px; }
.auth-panel ol { display: grid; gap: 18px; padding-left: 22px; }
.auth-panel li { color: var(--muted); }

.shell, .narrow-shell, .wizard-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.narrow-shell { width: min(720px, calc(100% - 36px)); }
.wizard-shell { width: min(1120px, calc(100% - 36px)); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 50px;
  padding: 40px 0 58px;
}

h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: 0; max-width: 900px; }
h2 { letter-spacing: 0; }
.lead { color: var(--muted); font-size: 1.12rem; line-height: 1.7; max-width: 720px; }
.lead.small { font-size: 1rem; }
.eyebrow { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; }

.health-orbit {
  width: 170px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(17, 42, 50, 0.68);
  box-shadow: 0 0 80px rgba(86, 227, 189, 0.08);
}

.health-orbit small { color: var(--muted); margin-top: 5px; }
.pulse { width: 11px; height: 11px; background: var(--accent); border-radius: 50%; margin-bottom: 12px; box-shadow: 0 0 0 8px rgba(86, 227, 189, 0.1); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(13, 32, 39, 0.72);
}

.stats article { padding: 22px; border-right: 1px solid var(--line); }
.stats article:last-child { border-right: 0; }
.stats strong { display: block; font-size: 1.65rem; }
.stats span { color: var(--muted); font-size: 0.82rem; }

.section-head { margin-top: 64px; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.module-card, .quick-actions article, .panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17, 42, 50, 0.9), rgba(10, 27, 33, 0.88));
  border-radius: 18px;
}

.module-card { padding: 22px; min-height: 190px; display: flex; flex-direction: column; }
.module-card p { color: var(--muted); line-height: 1.55; }
.module-card .tag { margin-top: auto; align-self: flex-start; }
.tag { border: 1px solid var(--line); border-radius: 999px; color: var(--blue); padding: 5px 9px; font-size: 0.72rem; }

.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.quick-actions article { padding: 28px; }
.quick-actions p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }

.dashboard-shell { padding-top: 32px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.dashboard-heading h1 { margin-bottom: 8px; max-width: none; font-size: 2.25rem; line-height: 1.08; letter-spacing: 0; }
.dashboard-heading .lead { margin-bottom: 0; }
.dashboard-access { margin-top: 26px; }
.dashboard-workspace { display: grid; gap: 30px; }
.dashboard-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.dashboard-summary article { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--panel); }
.dashboard-summary strong { display: block; margin-bottom: 5px; font-size: 1.55rem; }
.dashboard-summary span { color: var(--muted); font-size: 0.78rem; }
.dashboard-summary .tone-healthy strong { color: var(--accent); }
.dashboard-summary .tone-warning strong { color: var(--warning); }
.dashboard-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dashboard-actions a { display: grid; gap: 6px; min-width: 0; min-height: 128px; border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: var(--panel); text-decoration: none; }
.dashboard-actions a:hover, .dashboard-actions a:focus-visible { border-color: var(--accent); outline: none; }
.dashboard-actions span { color: var(--accent); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.dashboard-actions strong { font-size: 1rem; }
.dashboard-actions small { color: var(--muted); line-height: 1.45; }
.dashboard-attention { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
.dashboard-attention ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.dashboard-attention li { border-top: 1px solid var(--line); padding: 11px 4px; color: var(--muted); font-size: 0.86rem; }
.dashboard-attention li.tone-healthy { color: var(--accent); }
.dashboard-attention li.tone-warning { color: var(--warning); }
.dashboard-attention li.tone-danger { color: var(--danger); }
.section-head.compact { margin-top: 0; }
.module-grid.compact .module-card { min-height: 150px; border-radius: 8px; background: var(--panel); }

.panel { padding: clamp(24px, 5vw, 48px); }
.panel > h1 { font-size: clamp(2rem, 5vw, 3.4rem); }

.form-stack, .dynamic-fields { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: #dbe7e9; font-size: 0.88rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #071a20;
  color: var(--text);
  border-radius: 11px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(86, 227, 189, 0.1); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary { background: var(--accent); color: #05221d; }
.button.secondary { background: transparent; border-color: var(--line); color: var(--text); }
.button.danger { background: rgba(255, 141, 141, 0.12); border-color: rgba(255, 141, 141, 0.4); color: var(--danger); }
.button.quiet { background: transparent; color: var(--muted); padding-left: 0; }
.button:disabled { cursor: not-allowed; opacity: 0.52; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }

.session-box { margin-top: 30px; padding: 24px; border-radius: 15px; background: rgba(2, 13, 17, 0.55); border: 1px solid var(--line); }
.status-label { display: block; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.session-code { display: block; color: var(--accent); font-size: clamp(2rem, 10vw, 4rem); letter-spacing: 0.13em; margin: 10px 0; }
.code-input { letter-spacing: 0.14em; text-transform: uppercase; font-size: 1.2rem; }
.consent { border: 1px solid rgba(255, 211, 122, 0.32); background: rgba(255, 211, 122, 0.07); padding: 18px; border-radius: 12px; margin: 18px 0; }
.warning { color: var(--warning); line-height: 1.5; }
.error-text { color: var(--danger); min-height: 1.4em; margin-top: 16px; }
.hidden { display: none !important; }

.remote-share-panel { display: grid; gap: 14px; margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.remote-share-panel > header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.remote-share-panel > header strong { display: block; margin-top: 4px; }
.remote-video-frame { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #02080b; }
.remote-video-frame.local-preview { max-width: 520px; }
.remote-video-frame video { width: 100%; height: 100%; object-fit: contain; background: #02080b; }
.remote-diagnostics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.remote-diagnostics > div { min-width: 0; border-left: 2px solid var(--line); padding-left: 10px; }
.remote-diagnostics dt { color: var(--muted); font-size: 0.72rem; }
.remote-diagnostics dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 0.82rem; }

.messages { margin: 24px 0; border-top: 1px solid var(--line); padding-top: 20px; }
.messages h2 { font-size: 1rem; }
.messages ul { min-height: 70px; padding: 12px 12px 12px 28px; background: #071a20; border-radius: 10px; color: var(--muted); }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.wizard-grid { display: grid; grid-template-columns: 176px minmax(0, 1fr); column-gap: 30px; }
.wizard-progress { grid-column: 1; grid-row: 1 / span 6; position: sticky; top: 92px; align-self: start; display: grid; gap: 3px; padding: 16px 18px 16px 0; border-right: 1px solid var(--line); }
.wizard-progress a { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 38px; color: var(--muted); text-decoration: none; font-size: 0.78rem; font-weight: 700; }
.wizard-progress a:hover, .wizard-progress a:focus-visible { color: var(--text); outline: none; }
.wizard-progress span { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); background: var(--bg); }
.wizard-step { grid-column: 2; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 15px; padding: 24px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.step-number { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-dark); color: var(--accent); font-weight: 900; }
.wizard-step h2 { font-size: 1.15rem; margin: 5px 0 18px; }
.wizard-step h3 { font-size: 0.86rem; margin: 18px 0 10px; color: var(--muted); }
.dynamic-fields { margin-top: 18px; padding: 18px; border-radius: 12px; background: rgba(2, 13, 17, 0.4); }
.credential-field { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 4px 0 14px; color: var(--muted); font-size: 0.84rem; }
.credential-field:last-child { border-bottom: 0; padding-bottom: 4px; }
.credential-field strong { color: var(--warning); font-size: 0.78rem; text-align: right; }
.field-help { color: var(--muted); font-size: 0.83rem; line-height: 1.5; margin: 10px 0 0; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.four-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.check-row { grid-template-columns: auto 1fr; align-items: center; margin-top: 15px; font-weight: 500; }
.check-row input { width: auto; accent-color: var(--accent); }
.summary { margin-top: 18px; border-left: 3px solid var(--accent); background: rgba(86, 227, 189, 0.06); padding: 16px; border-radius: 6px 12px 12px 6px; color: var(--muted); line-height: 1.6; }
.summary strong { color: var(--text); }
.step-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.step-heading-row h2 { margin-bottom: 5px; }
.source-browser { margin-top: 18px; border-top: 1px solid var(--line); }
.source-roots, .selected-paths { padding: 2px 0 14px; }
.root-choice-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; color: var(--muted); }
.root-choice { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-weight: 600; }
.root-choice input { width: auto; accent-color: var(--accent); }
.path-editor, .time-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 14px 0; }
.path-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; }
.path-chip, .time-chip { display: inline-grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px 7px 10px; color: var(--text); background: #071a20; font-size: 0.78rem; }
.path-chip span { overflow-wrap: anywhere; }
.path-chip button, .time-chip button { border: 0; background: transparent; color: var(--danger); cursor: pointer; font: inherit; font-weight: 700; padding: 2px 4px; }
.tree-status { border-left: 3px solid var(--warning); margin: 8px 0 0; padding: 8px 12px; color: var(--muted); font-size: 0.8rem; }
.field-state { display: block; margin-top: 6px; color: var(--muted); font-size: 0.76rem; font-weight: 500; }
.field-action { margin-top: 8px; width: fit-content; }
.destination-list { display: grid; }
.destination-item { border-top: 1px solid var(--line); padding: 20px 0 4px; }
.destination-item > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.destination-item h3 { margin: 0; color: var(--text); font-size: 0.94rem; }
.destination-fields { border-radius: 6px; }
.destination-path-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 12px; }
.destination-path-title, .destination-path-field > input, .destination-path-field > datalist, .destination-path-field .field-state { grid-column: 1 / -1; }
.destination-path-field .field-state { margin: 0; }
.destination-path-field .field-action { grid-column: 2; margin: 0; }
.destination-root-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.destination-root-button, .remote-path-root { min-height: 32px; border: 1px solid var(--line); border-radius: 5px; padding: 5px 10px; color: var(--muted); background: var(--bg); font: inherit; font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.destination-root-button:hover, .destination-root-button:focus-visible, .remote-path-root:hover, .remote-path-root:focus-visible, .remote-path-root[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); outline: none; }
.cloud-connection-panel { display: grid; gap: 11px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 14px; }
.cloud-connection-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cloud-connection-heading span { color: var(--muted); font-size: 0.74rem; }
.cloud-connection-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.cloud-connection-actions .button { width: fit-content; }
.cloud-authorization-status { margin: 0; }
.secure-credential-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 10px; }
.secure-credential-editor .button { margin-bottom: 1px; }
.segmented-control { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.segmented-control label { display: block; position: relative; }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control span { display: grid; min-height: 44px; place-items: center; padding: 8px; color: var(--muted); cursor: pointer; font-size: 0.82rem; }
.segmented-control label + label { border-left: 1px solid var(--line); }
.segmented-control input:checked + span { background: var(--accent-dark); color: var(--accent); font-weight: 800; }
.schedule-panel { border-top: 1px solid var(--line); padding: 2px 0 16px; }
.choice-grid { display: grid; gap: 7px; }
.choice-grid.seven { grid-template-columns: repeat(7, minmax(54px, 1fr)); }
.choice-grid.months { grid-template-columns: repeat(6, minmax(62px, 1fr)); }
.choice-grid label { display: block; position: relative; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { display: grid; min-height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); cursor: pointer; font-size: 0.76rem; }
.choice-grid input:checked + span { border-color: var(--accent); background: rgba(86, 227, 189, 0.09); color: var(--accent); font-weight: 800; }
.schedule-options { align-items: end; margin-top: 8px; }
.backup-plan-panel { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 30px; }
.backup-capability-check { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.backup-capability-check .field-help { margin: 0; }
.backup-capability-result { margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--warning); border-radius: 8px; background: var(--panel); }
.backup-capability-result.state-ready { border-left-color: var(--accent); }
.backup-capability-result .device-facts { grid-template-columns: minmax(140px, 0.8fr) minmax(160px, 1.2fr); }
.backup-plan-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.backup-plan-stats > div { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #071a20; }
.backup-plan-stats strong { display: block; font-size: 1.35rem; }
.backup-plan-stats span { color: var(--muted); font-size: 0.78rem; }
.backup-plan-list { display: grid; gap: 12px; color: var(--muted); }
.backup-plan-card { border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; padding: 18px; background: var(--panel); }
.backup-plan-card > header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.backup-plan-card h3 { margin: 0 0 5px; font-size: 1rem; }
.backup-plan-card header p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.backup-plan-card .device-facts { margin-top: 18px; }
.backup-plan-actions { display: flex; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.backup-plan-actions .button { flex: 0 0 auto; }
.backup-recovery-panel { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.backup-recovery-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.backup-recovery-heading h4 { margin: 0; font-size: 0.95rem; }
.backup-recovery-heading p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.backup-recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.backup-recovery-grid label { min-width: 0; }
.backup-recovery-includes { grid-column: 1 / -1; }
.backup-recovery-footer { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.backup-recovery-footer p { margin: 0; }
.backup-recovery-footer .button { flex: 0 0 auto; }
.backup-run-note { margin: 0; }
.plan-status[data-status="protected"], .plan-status[data-status="success"] { color: var(--mint); border-color: var(--mint); }
.plan-status[data-status="queued"], .plan-status[data-status="retrying"] { color: var(--warning); border-color: var(--warning); }
.plan-status[data-status="partial"], .plan-status[data-status="failed"] { color: var(--danger); border-color: var(--danger); }
.plan-status { border: 1px solid var(--warning); color: var(--warning); border-radius: 999px; padding: 5px 9px; font-size: 0.7rem; font-weight: 800; white-space: nowrap; }

.path-dialog { width: min(760px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 28px)); border: 1px solid var(--line); border-radius: 8px; padding: 0; color: var(--text); background: var(--panel); }
.path-dialog::backdrop { background: rgb(0 10 14 / 72%); }
.dialog-surface { display: grid; grid-template-rows: auto auto auto minmax(220px, 1fr) auto; max-height: inherit; }
.dialog-surface > header, .dialog-surface > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dialog-surface > footer { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; }
.dialog-surface h2 { margin: 2px 0 0; }
.path-dialog-location { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 16px 20px 8px; }
.path-dialog-location label { margin: 0; }
.remote-path-roots { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 20px 0; }
.path-dialog .field-help { padding: 0 20px; }
.remote-path-entries { display: grid; align-content: start; gap: 1px; overflow: auto; padding: 8px 20px 18px; }
.remote-path-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 12px 10px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.remote-path-row:hover, .remote-path-row:focus-visible { background: var(--surface); outline: none; }
.remote-path-row span { color: var(--muted); font-size: 0.76rem; }
.backup-device-browser { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); }
.backup-device-browser > div { display: grid; gap: 5px; min-width: 0; }
.backup-device-browser strong { font-size: 0.88rem; }
.backup-device-browser span { color: var(--muted); font-size: 0.76rem; overflow-wrap: anywhere; }

.sql-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 8px 0 12px; }
.sql-toolbar .check-row { margin: 0; }
.sql-instance-list { display: grid; gap: 14px; margin: 14px 0; }
.sql-instance { border: 1px solid var(--line); border-radius: 6px; padding: 15px; }
.sql-instance > header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.sql-instance h3, .sql-instance p { margin: 0; }
.sql-instance p { color: var(--muted); font-size: 0.78rem; }
.sql-database-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.sql-database { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 44px; border-bottom: 1px solid var(--line); padding: 7px 5px; }
.sql-database input { width: auto; accent-color: var(--accent); }
.sql-database span { color: var(--muted); font-size: 0.72rem; }
.sql-manual-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 9px; margin-top: 14px; }
.hyperv-host-facts { margin: 12px 0; padding: 12px 0; border-block: 1px solid var(--line); }
.hyperv-vm-list { display: grid; margin: 14px 0; }
.hyperv-vm-row { display: grid; grid-template-columns: auto minmax(180px, 0.8fr) minmax(220px, 1.2fr); align-items: center; gap: 12px; min-height: 64px; border-bottom: 1px solid var(--line); padding: 10px 4px; cursor: pointer; }
.hyperv-vm-row:hover { background: rgba(86, 227, 189, 0.035); }
.hyperv-vm-row input { width: auto; accent-color: var(--accent); }
.hyperv-vm-identity { display: grid; gap: 4px; min-width: 0; }
.hyperv-vm-identity strong { color: var(--text); overflow-wrap: anywhere; }
.hyperv-vm-identity span, .hyperv-vm-storage { color: var(--muted); font-size: 0.74rem; overflow-wrap: anywhere; }
.hyperv-vm-storage { text-align: right; }

.device-shell { padding-top: 38px; }
.device-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.device-heading h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 10px; }
.device-heading-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.archive-toggle { grid-template-columns: auto 1fr; align-items: center; font-weight: 600; white-space: nowrap; }
.archive-toggle input { width: auto; accent-color: var(--accent); }
.access-bar {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  align-items: end;
  gap: 18px;
  padding: 20px 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.access-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.enrollment-grant-panel { padding: 24px 0 4px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 4px 0 18px; font-size: 1.25rem; }
.installation-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 18px; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); }
.installation-flow li { display: grid; gap: 3px; min-height: 72px; padding: 14px 16px; background: var(--panel); }
.installation-flow li::before { content: counter(list-item); color: var(--accent); font-weight: 800; }
.installation-flow strong { font-size: 0.84rem; }
.installation-flow span { color: var(--muted); font-size: 0.75rem; }
.windows-installer-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--panel); }
.windows-installer-panel h3 { margin: 0 0 5px; font-size: 0.96rem; }
.windows-installer-panel p { margin: 0; }
.windows-installer-panel .button { width: auto; flex: 0 0 auto; }
.server-binding-field { max-width: 980px; margin-bottom: 18px; }
.server-binding-field > label { display: block; margin-bottom: 7px; }
.server-binding-field input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.grant-form { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 150px auto; gap: 12px; align-items: end; }
.grant-result { margin-top: 18px; max-width: 980px; }
.grant-result input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.device-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 28px 0; }
.device-summary article { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--panel); }
.device-summary strong { display: block; font-size: 1.55rem; }
.device-summary span { color: var(--muted); font-size: 0.8rem; }
.device-summary .tone-healthy strong { color: var(--accent); }
.device-summary .tone-warning strong { color: var(--warning); }
.device-list { display: grid; gap: 14px; }
.device-card { border: 1px solid var(--line); border-left-width: 4px; border-radius: 8px; padding: 22px; background: var(--panel); }
.device-card.state-healthy { border-left-color: var(--accent); }
.device-card.state-warning, .device-card.state-enrolled { border-left-color: var(--warning); }
.device-card.state-critical { border-left-color: var(--danger); }
.device-card.state-archived { border-left-color: var(--muted); opacity: 0.78; }
.device-card > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.device-card h2 { margin-bottom: 5px; font-size: 1.15rem; }
.device-card header p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.state-badge { flex: 0 0 auto; border: 1px solid currentColor; border-radius: 999px; padding: 5px 9px; font-size: 0.72rem; font-weight: 800; }
.state-badge.state-healthy { color: var(--accent); }
.state-badge.state-warning, .state-badge.state-enrolled { color: var(--warning); }
.state-badge.state-critical { color: var(--danger); }
.state-badge.state-archived { color: var(--muted); }
.archived-note { margin: 18px 0 0; color: var(--muted); font-size: 0.85rem; }
.device-alerts { margin: 18px 0 0; padding: 12px 12px 12px 34px; background: #071a20; border-radius: 6px; }
.device-alerts li { margin: 5px 0; }
.alert-warning { color: var(--warning); }
.alert-critical { color: var(--danger); }
.device-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.device-facts { display: grid; grid-template-columns: minmax(110px, 0.8fr) 1.2fr; gap: 8px 14px; margin: 0; }
.device-facts dt { color: var(--muted); font-size: 0.78rem; }
.device-facts dd { margin: 0; text-align: right; font-size: 0.82rem; overflow-wrap: anywhere; }
.device-card details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.device-card summary { cursor: pointer; color: var(--blue); font-weight: 800; }
.protection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 34px; margin-top: 18px; }
.protection-grid .device-facts { align-content: start; }
.protection-actions { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.protection-action-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.protection-action-buttons .button { width: auto; min-height: 44px; }
.inventory-columns { margin-bottom: 18px; }
.device-card table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.device-card th, .device-card td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.device-card th { color: var(--muted); }
.inventory-subheading { margin: 24px 0 8px; color: var(--muted); font-size: 0.86rem; }

.support-shell { padding-top: 38px; }
.remote-engine-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 32px 0 16px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--warning); border-radius: 8px; background: var(--panel); }
.remote-engine-panel.state-ready { border-left-color: var(--accent); }
.remote-engine-panel h2 { margin: 3px 0 4px; font-size: 1rem; }
.remote-engine-panel p:last-child { margin: 0; color: var(--muted); font-size: 0.8rem; }
.support-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.support-request-fields { display: grid; grid-template-columns: minmax(180px, 0.6fr) minmax(280px, 1.4fr); gap: 12px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.support-directory-tools { display: grid; grid-template-columns: minmax(260px, 720px); align-items: end; gap: 12px; padding: 24px 0 4px; }
.support-id-form { display: grid; grid-template-columns: minmax(210px, 1fr) auto; align-items: end; gap: 10px; }
.support-id-form .button { min-height: 47px; }
.support-section-heading { display: flex; justify-content: space-between; align-items: end; margin: 32px 0 14px; }
.support-section-heading h2 { margin: 3px 0 0; font-size: 1.25rem; }
.support-section-heading p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 0.8rem; }
.support-device-list { display: grid; gap: 14px; }
.support-customer-group { padding-top: 22px; border-top: 1px solid var(--line); }
.support-customer-group > header { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 18px; }
.support-customer-group > header h2 { margin: 0; font-size: 1.35rem; }
.support-customer-group > header span { color: var(--muted); font-size: 0.78rem; }
.support-site-group { margin-top: 24px; }
.support-site-group > h3 { margin: 0 0 10px; color: var(--muted); font-size: 0.84rem; }
.attended-lab-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 20px 0 0; margin-top: 24px; }
.attended-lab-toolbar h2 { margin: 3px 0 5px; font-size: 1.15rem; }
.attended-lab-toolbar p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 0.84rem; }
.support-site-devices { display: grid; gap: 14px; }
.support-device { border: 1px solid var(--line); border-left: 4px solid var(--warning); border-radius: 8px; padding: 20px; background: var(--panel); }
.support-device.is-unattended-ready { cursor: pointer; }
.support-device.is-unattended-ready:hover,
.support-device.is-connecting { border-color: var(--accent); background: #10282e; }
.support-device.state-healthy { border-left-color: var(--accent); }
.support-device.state-critical { border-left-color: var(--danger); }
.support-device > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.support-device h3 { margin: 0 0 5px; font-size: 1.06rem; }
.support-device header p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.support-device-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.support-quick-connect { min-width: 122px; min-height: 42px; }
.support-quick-status { margin: 14px 0 0; color: var(--muted); font-size: 0.8rem; }
.support-quick-status.state-ready { color: var(--accent); }
.support-device-details { margin-top: 16px; border-top: 1px solid var(--line); }
.support-device-details > summary { width: fit-content; padding-top: 14px; color: var(--muted); cursor: pointer; font-size: 0.78rem; font-weight: 800; }
.support-device-details[open] > summary { color: var(--accent); }
.support-device-body { display: grid; grid-template-columns: minmax(180px, 0.7fr) minmax(250px, 1fr) minmax(250px, 1fr); gap: 26px; padding-top: 20px; margin-top: 18px; border-top: 1px solid var(--line); }
.support-device-body > section { min-width: 0; }
.support-device-body h4 { margin: 0 0 14px; font-size: 0.86rem; color: var(--muted); }
.remote-policy-form, .remote-session-form { display: grid; gap: 13px; }
.remote-host-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.remote-host-actions .button { min-height: 36px; padding: 7px 12px; font-size: 0.74rem; }
.remote-host-actions + .status-note { min-height: 20px; margin: 9px 0 0; }
.remote-policy-form .check-row { margin-top: 0; }
.field-title { color: var(--muted); font-size: 0.78rem; }
.remote-authentication-grid { display: grid; gap: 7px; }
.remote-authentication-grid .check-row { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-height: 30px; font-weight: 600; font-size: 0.76rem; }
.remote-authentication-grid input { width: auto; accent-color: var(--accent); }
.remote-authentication-grid input:disabled + span { color: var(--muted); opacity: 0.62; }
.remote-capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; }
.remote-capability-grid label { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-height: 30px; font-weight: 600; font-size: 0.76rem; }
.remote-capability-grid input { width: auto; accent-color: var(--accent); }
.remote-capability-grid input:disabled + span { color: var(--muted); opacity: 0.55; }
.remote-policy-form .error-text, .remote-session-form .error-text { margin: 0; min-height: 0; }
.support-options { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.support-options > summary { display: grid; gap: 4px; padding: 18px 4px; cursor: pointer; color: var(--text); font-weight: 800; }
.support-options > summary small { color: var(--muted); font-weight: 500; }
.support-options[open] > summary { color: var(--accent); }
.support-options-body { padding: 4px 4px 24px; }
.support-exceptional-access { padding-top: 24px; }
.support-exceptional-access .field-help { min-height: 20px; margin: 8px 0 0; }
.session-history-heading { margin-top: 42px; }
.support-session-list { display: grid; border-top: 1px solid var(--line); }
.support-session-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 66px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.support-session-row > div { display: grid; gap: 5px; }
.support-session-row span:not(.state-badge) { color: var(--muted); font-size: 0.78rem; }
.remote-session-active, .remote-session-authorized { color: var(--accent); }
.remote-session-awaiting-consent, .remote-session-awaiting-password-proof { color: var(--warning); }
.remote-session-rejected, .remote-session-expired { color: var(--danger); }

.dashboard-remote { padding: 26px 0 4px; border-top: 1px solid var(--line); }
.dashboard-remote-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dashboard-remote-device { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; min-height: 78px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--warning); border-radius: 8px; background: var(--panel); }
.dashboard-remote-device.is-ready { border-left-color: var(--accent); cursor: default; }
.dashboard-remote-device.is-ready:hover { border-color: var(--accent); background: #10282e; }
.dashboard-remote-device > div { display: grid; gap: 3px; min-width: 0; }
.dashboard-remote-device strong,
.dashboard-remote-device span { overflow-wrap: anywhere; }
.dashboard-remote-device > div > span,
.dashboard-remote-status { color: var(--muted); font-size: 0.75rem; }
.dashboard-remote-enter { min-height: 38px; padding: 8px 13px; }

.security-shell { padding-top: 38px; }
.security-workspace { display: grid; gap: 30px; }
.security-engine-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
.compact-heading h2 { margin: 3px 0 16px; font-size: 1.2rem; }
.security-provider-list { display: grid; }
.security-provider-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 82px; border-top: 1px solid var(--line); padding: 14px 4px; }
.security-provider-identity { display: grid; gap: 4px; min-width: 0; }
.security-provider-identity > span { color: var(--muted); font-size: 0.8rem; }
.security-provider-capabilities { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.7rem !important; }
.provider-operational, .protection-protected { color: var(--accent); }
.provider-evaluation-required, .provider-commercial-agreement-required, .protection-degraded, .protection-unknown, .protection-not-installed { color: var(--warning); }
.protection-critical { color: var(--danger); }
.security-section-heading { border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.security-section-heading h2 { margin: 3px 0 0; font-size: 1.25rem; }
.security-device-list { display: grid; gap: 10px; }
.security-device-row { border: 1px solid var(--line); border-left: 4px solid var(--warning); border-radius: 8px; padding: 18px 20px; background: var(--panel); }
.security-device-row.protection-protected { border-left-color: var(--accent); color: var(--text); }
.security-device-row.protection-critical { border-left-color: var(--danger); color: var(--text); }
.security-device-row.protection-degraded,
.security-device-row.protection-unknown,
.security-device-row.protection-not-installed { color: var(--text); }
.security-device-row > header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.security-device-row h2 { margin: 0 0 4px; font-size: 1.05rem; }
.security-device-row header p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.security-device-message { margin: 14px 0; color: var(--muted); font-size: 0.82rem; }
.security-facts { display: grid; grid-template-columns: repeat(3, minmax(100px, 0.65fr) minmax(120px, 1fr)); gap: 8px 12px; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.security-facts dt { color: var(--muted); font-size: 0.75rem; }
.security-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 0.8rem; }
.security-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding-top: 14px; }
.security-actions .status-note { flex: 1 1 240px; margin: 0 0 0 6px; }
.security-assessment { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.security-assessment-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.security-assessment-heading strong { font-size: 0.9rem; }
.security-assessment-heading span { color: var(--muted); font-size: 0.75rem; }
.security-assessment-facts { display: grid; grid-template-columns: repeat(2, minmax(110px, 0.75fr) minmax(150px, 1.25fr)); gap: 7px 12px; margin: 0; }
.security-assessment-facts dt { color: var(--muted); font-size: 0.72rem; }
.security-assessment-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 0.78rem; }
.security-findings { display: grid; gap: 6px; margin-top: 14px; }
.security-finding { display: grid; grid-template-columns: minmax(150px, 0.7fr) minmax(240px, 1.3fr); gap: 14px; border-left: 3px solid var(--line-strong); padding: 8px 10px; background: var(--surface); }
.security-finding.finding-warning { border-left-color: var(--warning); }
.security-finding.finding-critical { border-left-color: var(--danger); }
.security-finding strong { font-size: 0.75rem; }
.security-finding span { color: var(--muted); font-size: 0.73rem; }

.admin-shell { padding-top: 38px; }
.admin-section { border-top: 1px solid var(--line); padding: 30px 0 34px; }
.admin-split { display: grid; grid-template-columns: minmax(260px, 0.7fr) minmax(360px, 1.3fr); gap: 34px; }
.admin-form { align-content: start; padding-right: 34px; border-right: 1px solid var(--line); }
.admin-form .button { width: fit-content; }
.admin-list { display: grid; align-content: start; color: var(--muted); }
.admin-list article { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; border-bottom: 1px solid var(--line); padding: 12px 4px; }
.admin-list article:first-child { border-top: 1px solid var(--line); }
.admin-list-copy { display: grid; gap: 5px; min-width: 0; }
.admin-list-copy strong { color: var(--text); overflow-wrap: anywhere; }
.admin-list-copy small { color: var(--muted); overflow-wrap: anywhere; }
.mfa-overview { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mfa-overview p { margin: 8px 0 0; }
.mfa-setup { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.mfa-qr { width: 240px; height: 240px; border-radius: 6px; background: #fff; }
#recovery-codes { width: 100%; resize: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.license-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.license-summary article { display: grid; gap: 5px; min-height: 82px; padding: 16px 18px; border-right: 1px solid var(--line); }
.license-summary article:last-child { border-right: 0; }
.license-summary span { color: var(--muted); font-size: 0.78rem; }
.activation-actions { display: flex; align-items: center; gap: 10px; }
.compact-button { min-height: 34px; padding: 7px 11px; font-size: 0.76rem; }
#activation-code { width: 100%; resize: none; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.invitation-dialog { width: min(680px, calc(100vw - 28px)); border: 1px solid var(--line); border-radius: 8px; padding: 28px; color: var(--text); background: var(--panel); }
.invitation-dialog::backdrop { background: rgb(0 10 14 / 72%); }
.invitation-dialog h2 { margin: 4px 0 8px; }
.invitation-dialog > form { display: flex; justify-content: flex-end; }
.dialog-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-weight: 800; }
.dialog-close:hover, .dialog-close:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.copy-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 18px; }
.copy-field input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.auth-provider { display: grid; gap: 14px; margin-top: 20px; text-align: center; }
.auth-provider > span { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; }
.auth-footnote { margin: 22px 0 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.auth-footnote a, .auth-success a { color: var(--accent); font-weight: 800; }
.auth-success { margin-top: 20px; padding: 16px; border-left: 4px solid var(--accent); color: var(--text); background: rgb(81 224 190 / 8%); }
.signup-shell { align-items: start; }
.compact-auth-shell { min-height: calc(100vh - 76px); }

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; align-content: center; gap: 30px; }
  .auth-intro h1 { margin-bottom: 10px; }
  .wizard-grid { display: block; }
  .wizard-progress { position: sticky; top: 68px; z-index: 4; display: flex; overflow-x: auto; gap: 12px; padding: 10px 0; border-right: 0; border-bottom: 1px solid var(--line); background: var(--panel); }
  .wizard-progress a { flex: 0 0 auto; }
  .wizard-step { grid-template-columns: 44px minmax(0, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .health-orbit { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats article:nth-child(2) { border-right: 0; }
  .stats article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .dashboard-summary { grid-template-columns: repeat(3, 1fr); }
  .dashboard-actions { grid-template-columns: 1fr; }
  .device-summary { grid-template-columns: 1fr 1fr; }
  .backup-plan-stats { grid-template-columns: 1fr 1fr; }
  .three-columns, .four-columns { grid-template-columns: 1fr 1fr; }
  .root-choice-list { grid-template-columns: 1fr 1fr; }
  .sql-database-grid { grid-template-columns: 1fr; }
  .hyperv-vm-row { grid-template-columns: auto minmax(0, 1fr); }
  .hyperv-vm-storage { grid-column: 2; text-align: left; }
  .protection-grid { grid-template-columns: 1fr; }
  .support-device-body { grid-template-columns: 1fr 1fr; }
  .dashboard-remote-list { grid-template-columns: 1fr; }
  .support-device-body > .device-facts { grid-column: 1 / -1; }
  .choice-grid.seven { grid-template-columns: repeat(4, minmax(54px, 1fr)); }
  .choice-grid.months { grid-template-columns: repeat(4, minmax(62px, 1fr)); }
  .grant-form { grid-template-columns: 1fr 1fr; }
  .support-directory-tools { grid-template-columns: 1fr; }
  .support-directory-tools > .field-help { grid-column: auto; }
  .security-facts,
  .security-assessment-facts { grid-template-columns: minmax(100px, 0.7fr) minmax(120px, 1fr); }
  .security-finding { grid-template-columns: 1fr; gap: 3px; }
  .admin-split { grid-template-columns: 1fr; }
  .admin-form { padding-right: 0; padding-bottom: 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mfa-setup { grid-template-columns: 1fr; }
  .mfa-qr { width: min(240px, 100%); height: auto; aspect-ratio: 1; justify-self: center; }
  .license-summary { grid-template-columns: 1fr; }
  .license-summary article { border-right: 0; border-bottom: 1px solid var(--line); }
  .license-summary article:last-child { border-bottom: 0; }
}

@media (max-width: 540px) {
  .auth-topbar { padding-inline: 18px; }
  .auth-topbar > span { display: none; }
  .auth-shell { min-height: calc(100vh - 69px); padding: 28px 0; }
  .auth-intro h1 { font-size: 2.25rem; }
  .auth-panel { padding: 22px; }
  .account-identity { display: none; }
  .account-control { margin-left: 4px; }
  .environment { display: none; }
  .topbar { padding-inline: 14px; }
  .suite-nav { gap: 0; }
  .suite-nav a { padding: 8px 7px; font-size: 0.76rem; }
  .module-grid, .two-columns, .three-columns, .four-columns { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .dashboard-heading { display: grid; align-items: start; }
  .dashboard-summary { grid-template-columns: 1fr 1fr; }
  .dashboard-remote-device { grid-template-columns: minmax(0, 1fr) auto; }
  .dashboard-remote-enter { grid-column: 1 / -1; width: 100%; }
  .stats article { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats article:last-child { border-bottom: 0; }
  .inline-form { grid-template-columns: 1fr; }
  .wizard-step { grid-template-columns: 1fr; }
  .device-heading { display: grid; align-items: start; }
  .access-bar, .access-controls, .device-columns, .grant-form { grid-template-columns: 1fr; }
  .device-summary { grid-template-columns: 1fr; }
  .support-request-fields, .support-device-body { grid-template-columns: 1fr; }
  .remote-engine-panel { display: grid; }
  .support-id-form { grid-template-columns: 1fr; }
  .support-device-body > .device-facts { grid-column: auto; }
  .support-session-row, .support-device > header { display: grid; }
  .security-provider-row, .security-device-row > header { display: grid; }
  .attended-lab-toolbar { display: grid; }
  .backup-plan-stats { grid-template-columns: 1fr; }
  .root-choice-list, .choice-grid.seven, .choice-grid.months { grid-template-columns: 1fr 1fr; }
  .path-editor, .time-editor { grid-template-columns: 1fr; }
  .backup-device-browser { align-items: stretch; flex-direction: column; }
  .path-dialog-location, .sql-manual-editor, .secure-credential-editor { grid-template-columns: 1fr; }
  .hyperv-vm-row { grid-template-columns: auto minmax(0, 1fr); }
  .segmented-control { grid-template-columns: 1fr; }
  .segmented-control label + label { border-left: 0; border-top: 1px solid var(--line); }
  .credential-field, .backup-plan-card > header { display: grid; }
  .backup-plan-actions { align-items: stretch; flex-direction: column; }
  .backup-recovery-heading, .backup-recovery-footer { align-items: stretch; flex-direction: column; }
  .backup-recovery-grid { grid-template-columns: 1fr; }
  .backup-recovery-includes { grid-column: auto; }
  .credential-field strong { text-align: left; }
  .device-card > header { display: grid; }
  .state-badge { justify-self: start; }
  .device-facts dd { text-align: left; }
  .copy-field { grid-template-columns: 1fr; }
  .mfa-overview { align-items: stretch; flex-direction: column; }
  .activation-actions, .activation-list article { align-items: start; }
  .activation-list article { display: grid; }
}
