:root {
  --bg: #070b10;
  --panel: rgba(13, 21, 31, .86);
  --panel-strong: rgba(9, 15, 23, .97);
  --line: rgba(124, 224, 255, .2);
  --line-hot: rgba(255, 95, 163, .34);
  --text: #f0f7fb;
  --muted: #92a7b6;
  --cyan: #7ce0ff;
  --pink: #ff5fa3;
  --indigo: #8c7dff;
  --green: #52e7a4;
  --amber: #ffb84d;
  --red: #ff5c73;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 12% 0%, rgba(124, 224, 255, .2), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(255, 95, 163, .16), transparent 30%),
    radial-gradient(circle at 52% 78%, rgba(140, 125, 255, .12), transparent 34%),
    linear-gradient(135deg, #05080d 0%, #0e1722 48%, #070b10 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 78%);
}

.ambient {
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 38vh;
  background: linear-gradient(to top, rgba(117, 248, 255, .12), transparent);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 54px;
}

.hero {
  min-height: 42vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 0 34px;
}

.public-hero {
  min-height: 54vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 0 42px;
}

.public-hero-body {
  width: min(820px, 100%);
  padding-top: 76px;
}

.public-hero-body h1 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(82px, 18vw, 164px);
  line-height: .78;
  letter-spacing: 0;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.public-actions .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
}

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

.public-service {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 212px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(127, 246, 255, .16);
  border-radius: 8px;
  background: rgba(10, 16, 27, .78);
  box-shadow: var(--shadow);
}

.public-service:hover {
  border-color: rgba(117, 248, 255, .44);
}

.public-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(117, 248, 255, .28);
  border-radius: 8px;
  background: rgba(117, 248, 255, .08);
  color: var(--cyan);
  font-weight: 950;
}

.public-service strong {
  font-size: 25px;
}

.public-service small {
  color: #c5d4e4;
  font-size: 14px;
  line-height: 1.5;
}

.public-service em {
  align-self: end;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.public-note {
  margin-top: 14px;
}

.public-note article {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(127, 246, 255, .13);
  border-radius: 8px;
  background: rgba(7, 12, 20, .56);
}

.public-note h2 {
  margin-top: 4px;
  font-size: 22px;
}

.public-note span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.matrix-public-hero .public-hero-body h1 {
  font-size: clamp(58px, 13vw, 128px);
}

.security-hero {
  min-height: 44vh;
}

.security-hero .public-hero-body {
  padding-top: 48px;
}

.security-hero .public-hero-body h1 {
  font-size: clamp(62px, 15vw, 138px);
}

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

.security-tool {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(127, 246, 255, .16);
  border-radius: 8px;
  background: rgba(10, 16, 27, .78);
  box-shadow: var(--shadow);
}

.security-tool h2 {
  margin: 0;
  font-size: 26px;
}

.security-tool label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.security-tool input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(127, 246, 255, .2);
  border-radius: 8px;
  background: rgba(5, 9, 15, .74);
  color: var(--text);
  font: inherit;
  outline: none;
}

.security-tool input:focus {
  border-color: rgba(117, 248, 255, .68);
  box-shadow: 0 0 0 3px rgba(117, 248, 255, .08);
}

.security-tool input:disabled,
.security-tool button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.security-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.security-result {
  display: grid;
  gap: 5px;
  min-height: 66px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(127, 246, 255, .13);
  border-radius: 8px;
  background: rgba(7, 12, 20, .66);
  color: #c5d4e4;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

.security-result.ok {
  border-color: rgba(80, 255, 159, .36);
}

.security-result.warn {
  border-color: rgba(255, 184, 77, .36);
}

.security-result.fail {
  border-color: rgba(255, 92, 115, .44);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.brand,
.status-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 14, 23, .64);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  gap: 10px;
  min-width: 0;
  padding: 0 14px 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.brand > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(124, 224, 255, .24), rgba(255, 95, 163, .18), rgba(140, 125, 255, .14));
  color: var(--text);
  font-size: 12px;
}

.oz-switcher {
  position: relative;
  flex: 0 0 auto;
}

.oz-switcher > summary {
  list-style: none;
}

.oz-switcher > summary::-webkit-details-marker {
  display: none;
}

.oz-switcher[open] > summary {
  border-color: rgba(124, 224, 255, .54);
}

.oz-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid rgba(124, 224, 255, .18);
  border-radius: 8px;
  background: rgba(7, 12, 20, .97);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
  backdrop-filter: blur(18px);
}

.oz-menu-section {
  display: grid;
  gap: 8px;
}

.oz-menu-section > span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.oz-menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.oz-menu-links a {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 11px;
  border: 1px solid rgba(124, 224, 255, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.oz-menu-links a:hover,
.oz-menu-links a:focus-visible {
  border-color: rgba(255, 95, 163, .46);
  background: rgba(255, 95, 163, .075);
}

.oz-menu-links strong {
  color: var(--text);
  font-size: 14px;
}

.oz-menu-links small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.status-button {
  gap: 10px;
  flex: 0 0 auto;
  padding: 0 14px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
}

.status-button:hover,
.service:hover {
  border-color: var(--cyan);
}

.dot,
.marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 18px currentColor;
}

.is-ok .dot,
.check.ok .marker {
  background: var(--green);
  color: var(--green);
}

.is-warn .dot,
.check.warn .marker {
  background: var(--amber);
  color: var(--amber);
}

.is-fail .dot,
.check.fail .marker {
  background: var(--red);
  color: var(--red);
}

.hero-body {
  max-width: 760px;
  padding-top: 72px;
}

.eyebrow,
.service small {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(66px, 13vw, 148px);
  line-height: .82;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(117, 248, 255, .28), 0 0 50px rgba(255, 79, 216, .13);
}

.lead {
  max-width: 640px;
  margin-top: 22px;
  color: #c5d4e4;
  font-size: 18px;
  line-height: 1.55;
}

.quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.quick-meta span {
  max-width: 100%;
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 17, 28, .72);
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(680px, 100%);
  margin-top: 26px;
}

.metric {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 14, 24, .72);
  box-shadow: var(--shadow);
}

.metric strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 16px;
}

.section-head h2 {
  margin-top: 4px;
  font-size: 28px;
}

.section-head > p {
  color: var(--muted);
}

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

.service {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  min-height: 132px;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 24, 38, .94), rgba(11, 16, 27, .78));
  box-shadow: var(--shadow);
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.service::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  opacity: .55;
}

.service:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(19, 31, 49, .98), rgba(12, 20, 34, .88));
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-hot);
  border-radius: 8px;
  background: rgba(255, 79, 216, .08);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
}

.service h3 {
  overflow-wrap: anywhere;
  margin: 2px 0 6px;
  font-size: 18px;
  line-height: 1.2;
}

.service p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag {
  position: absolute;
  right: 14px;
  bottom: 13px;
  min-width: 60px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 9, 16, .62);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

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

.ops-panel.external-panel {
  grid-column: 1 / -1;
  min-height: 0;
}

.ops-panel {
  min-height: 280px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 16, 27, .78);
  box-shadow: var(--shadow);
}

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

.panel-head h2 {
  margin-top: 4px;
  font-size: 20px;
}

.mini-list,
.todo-list,
.external-list {
  display: grid;
  gap: 9px;
}

.mini-item,
.todo,
.external-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(127, 246, 255, .13);
  border-radius: 8px;
  background: rgba(7, 12, 20, .64);
}

.mini-item::before,
.todo::before,
.external-item::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 2px;
  border-radius: 999px;
  background: var(--cyan);
  opacity: .66;
}

.mini-item.warn::before {
  background: var(--amber);
}

.mini-item.fail::before,
.external-item.fail::before {
  background: var(--red);
}

.external-item.warn::before {
  background: var(--amber);
}

.external-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mini-item span,
.todo strong,
.external-item strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 900;
}

.mini-item strong,
.todo small,
.external-item small {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.mini-item small,
.todo span,
.external-item span {
  grid-column: 1 / -1;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

.todo small {
  margin-top: 2px;
}

.external-item small {
  margin-top: 2px;
}

.lite-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.lite-info article,
.unlock-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 16, 27, .78);
  box-shadow: var(--shadow);
}

.lite-info h2 {
  margin-top: 5px;
  font-size: 20px;
}

.lite-info span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.unlock-shell {
  min-height: 100vh;
}

.unlock-hero {
  min-height: auto;
}

.unlock-panel {
  max-width: 900px;
  margin-top: 72px;
}

.unlock-panel h1 {
  margin-top: 8px;
  font-size: clamp(44px, 9vw, 104px);
  line-height: .9;
}

.unlock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.unlock-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  background: rgba(117, 248, 255, .1);
  color: var(--text);
  font-weight: 950;
}

.unlock-button:hover {
  border-color: var(--pink);
}

.unlock-grid {
  margin-top: 22px;
}

.page-hero {
  min-height: 28vh;
  padding: 18px 0 20px;
}

.hero-body.compact {
  max-width: 860px;
  padding-top: 54px;
}

.hero-body.compact h1 {
  font-size: clamp(54px, 10vw, 112px);
}

.runbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-view {
  min-width: 0;
}

.mobile-tabbar {
  display: none;
}

.action-card {
  grid-column: 1 / -1;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.action-subtitle {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.action-button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 14, 23, .72);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.action-button:hover {
  border-color: var(--cyan);
}

.action-button:disabled {
  cursor: wait;
  opacity: .55;
}

.action-button.warn {
  border-color: rgba(255, 184, 77, .42);
}

.identity-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.identity-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.identity-form label.wide,
.identity-access,
.form-actions {
  grid-column: 1 / -1;
}

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

.identity-form input,
.identity-form select,
.identity-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid rgba(127, 246, 255, .16);
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
  color: var(--text);
  font: inherit;
}

.identity-form textarea {
  resize: vertical;
}

.identity-access {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(127, 246, 255, .14);
  border-radius: 8px;
  background: rgba(0, 0, 0, .16);
}

.identity-access legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.identity-access label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid rgba(127, 246, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
}

.identity-access input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--cyan);
}

.identity-access label:has(input:checked) {
  border-color: rgba(80, 255, 159, .28);
  background: rgba(80, 255, 159, .08);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.identity-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(127, 246, 255, .15);
  border-radius: 10px;
  background: rgba(7, 12, 20, .62);
  cursor: pointer;
}

.identity-card:hover {
  border-color: rgba(117, 248, 255, .36);
}

.identity-card.is-selected {
  border-color: rgba(117, 248, 255, .58);
  background: rgba(117, 248, 255, .08);
}

.identity-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.identity-card header > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.identity-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.identity-card strong {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.identity-card em {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(127, 246, 255, .14);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.identity-card p {
  color: #c5d4e4;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.access-summary {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.access-headline,
.access-service,
.access-row {
  min-width: 0;
  border: 1px solid rgba(127, 246, 255, .14);
  border-radius: 8px;
  background: rgba(7, 12, 20, .66);
}

.access-headline {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 132px;
  padding: 16px;
}

.access-headline span,
.access-service span,
.access-map-head small,
.access-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.access-headline strong {
  color: var(--cyan);
  font-size: 42px;
  line-height: 1;
}

.access-headline small,
.access-service small {
  color: #a9b8c9;
  line-height: 1.35;
}

.access-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
  min-width: 0;
}

.access-service {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 13px;
}

.access-service strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.access-service em {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 7px;
  border: 1px solid rgba(127, 246, 255, .13);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.access-service.sso {
  border-color: rgba(80, 255, 159, .22);
}

.access-service.local,
.access-service.profile,
.access-service.manual {
  border-color: rgba(255, 184, 77, .20);
}

.access-map {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.access-map-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.access-map-head h3 {
  margin-top: 4px;
  font-size: 20px;
}

.access-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 7px;
}

.access-legend span {
  display: grid;
  gap: 2px;
  min-width: 82px;
  padding: 7px 8px;
  border: 1px solid rgba(127, 246, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
}

.access-legend b {
  color: var(--text);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.access-rows {
  display: grid;
  gap: 8px;
}

.access-row {
  display: grid;
  grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.access-row header {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.access-row strong {
  overflow-wrap: anywhere;
}

.access-cells {
  display: grid;
  grid-template-columns: repeat(8, minmax(76px, 1fr));
  gap: 6px;
  min-width: 0;
}

.access-cell {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 6px;
  border: 1px solid rgba(127, 246, 255, .13);
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-align: center;
  overflow-wrap: anywhere;
}

.access-cell.ok,
.access-cell.open {
  border-color: rgba(80, 255, 159, .28);
  color: var(--green);
  background: rgba(80, 255, 159, .06);
}

.access-cell.planned,
.access-cell.manual {
  border-color: rgba(255, 184, 77, .26);
  color: var(--amber);
}

.access-cell.missing {
  opacity: .62;
}

.access-cell.disabled {
  border-color: rgba(255, 92, 122, .22);
  color: var(--pink);
}

.identity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.identity-badge {
  padding: 6px 8px;
  border: 1px solid rgba(127, 246, 255, .14);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.identity-badge.ok {
  border-color: rgba(80, 255, 159, .28);
  color: var(--green);
}

.identity-badge.missing {
  border-color: rgba(255, 184, 77, .2);
  color: var(--amber);
  opacity: .72;
}

.identity-raw {
  margin-top: 14px;
  padding: 0;
  border: 1px solid rgba(127, 246, 255, .12);
  border-radius: 10px;
  background: rgba(0, 0, 0, .16);
}

.identity-raw summary {
  padding: 12px;
}

.identity-raw pre {
  margin: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 0 10px 10px;
}

.provision-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(127, 246, 255, .12);
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
  color: var(--muted);
  font-size: 13px;
}

.provision-pill {
  padding: 7px 9px;
  border: 1px solid rgba(127, 246, 255, .14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.provision-pill.ok {
  color: var(--green);
  border-color: rgba(80, 255, 159, .28);
}

.provision-pill.missing {
  color: var(--amber);
  border-color: rgba(255, 184, 77, .24);
}

.vpn-menu {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.vpn-menu label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.vpn-menu span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.vpn-menu select {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid rgba(127, 246, 255, .16);
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
  color: var(--text);
  font: inherit;
}

.vpn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vpn-result.qr-output {
  max-height: 520px;
  white-space: pre;
  overflow: auto;
  font-size: 9px;
  line-height: 1;
}

.runbook-card,
.incident-panel {
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 16, 27, .82);
  box-shadow: var(--shadow);
}

.runbook-card h2,
.incident-panel h2 {
  margin-top: 5px;
  font-size: 22px;
}

.fold-card {
  padding: 0;
  overflow: hidden;
}

.admin-fold {
  padding: 18px;
}

.admin-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
}

.admin-fold summary::-webkit-details-marker {
  display: none;
}

.admin-fold summary > span:first-child {
  display: grid;
  gap: 5px;
}

.admin-fold summary strong {
  font-size: 20px;
}

.fold-indicator {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(127, 246, 255, .14);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0;
  font-weight: 900;
}

.fold-indicator::after {
  content: "Ouvrir";
  font-size: 12px;
}

.admin-fold[open] .fold-indicator {
  color: var(--cyan);
}

.admin-fold[open] .fold-indicator::after {
  content: "Fermer";
}

.runbook-card pre {
  width: 100%;
  min-width: 0;
  margin: 16px 0 0;
  overflow: auto;
  max-width: 100%;
  padding: 14px;
  border: 1px solid rgba(127, 246, 255, .14);
  border-radius: 8px;
  background: rgba(0, 0, 0, .32);
  color: #d7e5f4;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.runbook-card pre:empty {
  display: none;
}

.incident-panel {
  margin-top: 14px;
}

.steps {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: #c5d4e4;
  line-height: 1.5;
}

.plain-list,
.decision-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li,
.decision-grid article {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(127, 246, 255, .13);
  border-radius: 8px;
  background: rgba(7, 12, 20, .64);
}

.plain-list strong,
.decision-grid strong {
  color: var(--text);
  font-weight: 900;
}

.plain-list span,
.decision-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  justify-items: end;
  background: rgba(3, 6, 10, .54);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}

.drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  width: min(520px, 100%);
  height: 100%;
  padding: 22px;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: rgba(8, 12, 20, .96);
  box-shadow: -28px 0 70px rgba(0, 0, 0, .38);
  transform: translateX(18px);
  transition: transform .16s ease;
}

.drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.drawer-head h2 {
  margin-top: 4px;
}

.close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.checks {
  display: grid;
  gap: 10px;
}

.check {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 25, 39, .72);
}

.check strong,
.check > div > span {
  display: block;
  overflow-wrap: anywhere;
}

.check > div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.check details {
  margin-top: 10px;
}

.check summary {
  width: max-content;
  cursor: pointer;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.check pre {
  max-height: 220px;
  margin: 10px 0 0;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(127, 246, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .26);
  color: #c8d6e4;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.state {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.error {
  padding: 16px;
  border: 1px solid rgba(255, 92, 115, .45);
  border-radius: 8px;
  background: rgba(255, 92, 115, .08);
  color: var(--red);
  font-weight: 800;
}

@media (max-width: 900px) {
  .ops-grid,
  .decision-grid,
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-body {
    padding-top: 50px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 18px, 1180px);
    padding-top: 14px;
    padding-bottom: 96px;
  }

  .nav {
    align-items: stretch;
    max-width: 100%;
    gap: 10px;
  }

  .nav-actions {
    margin: 0 -9px;
    overflow-x: auto;
    padding: 0 9px 4px;
    scrollbar-width: none;
  }

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

  .oz-switcher {
    position: static;
  }

  .oz-menu-panel {
    position: fixed;
    inset: 70px 9px auto;
    width: auto;
    max-height: calc(100vh - 88px);
    overflow: auto;
  }

  .oz-menu-links {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
  }

  .brand,
  .status-button {
    min-height: 40px;
  }

  .brand {
    max-width: 54vw;
  }

  .hero {
    min-height: auto;
    padding-bottom: 24px;
  }

  .hero-body {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(62px, 28vw, 112px);
  }

  .quick-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-meta span {
    white-space: normal;
  }

  .overview {
    gap: 8px;
  }

  .metric {
    min-height: 72px;
    padding: 12px;
  }

  .metric strong {
    font-size: 26px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .public-hero {
    min-height: auto;
    padding-bottom: 28px;
  }

  .public-hero-body {
    padding-top: 44px;
  }

  .public-hero-body h1 {
    font-size: clamp(72px, 32vw, 126px);
  }

  .public-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-actions .action-button {
    width: 100%;
    min-width: 0;
  }

  .public-service-grid {
    grid-template-columns: 1fr;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-tool {
    padding: 16px;
  }

  .security-actions {
    display: grid;
  }

  .public-service {
    min-height: 168px;
    border-radius: 10px;
  }

  .ops-grid,
  .overview,
  .access-summary,
  .lite-info,
  .runbook-grid,
  .admin-grid,
  .action-grid,
  .external-list,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .lead {
    font-size: 16px;
  }

  .lite-info {
    grid-template-columns: 1fr;
  }

  .service {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 124px;
    padding: 14px;
  }

  .icon {
    width: 46px;
    height: 46px;
  }

  .ops-panel,
  .runbook-card,
  .incident-panel {
    padding: 14px;
  }

  .fold-card {
    padding: 0;
  }

  .admin-fold {
    padding: 14px;
  }

  .admin-fold summary strong {
    font-size: 18px;
  }

  .page-hero .nav {
    position: sticky;
    top: 8px;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr;
    padding: 8px;
    border: 1px solid rgba(127, 246, 255, .12);
    border-radius: 12px;
    background: rgba(8, 12, 20, .82);
    backdrop-filter: blur(18px);
  }

  .page-hero .nav-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .page-hero .nav-actions .status-button {
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .hero-body.compact {
    padding-top: 30px;
  }

  .hero-body.compact h1 {
    font-size: 52px;
    line-height: .9;
  }

  .hero-body.compact .lead {
    max-width: 34rem;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.45;
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 14px;
  }

  .admin-view {
    display: none;
  }

  .admin-view.is-active {
    display: grid;
  }

  .admin-view[data-admin-view="home"].is-active {
    display: block;
  }

  .incident-panel {
    display: none;
  }

  .mobile-tabbar {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(127, 246, 255, .16);
    border-radius: 18px;
    background: rgba(8, 12, 20, .88);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
    backdrop-filter: blur(20px);
  }

  .mobile-tab {
    display: grid;
    place-items: center;
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
  }

  .mobile-tab.is-active {
    background: rgba(117, 248, 255, .14);
    color: var(--text);
  }

  .action-card {
    border-color: rgba(117, 248, 255, .26);
    background: rgba(10, 16, 27, .94);
  }

  .action-card h2,
  .action-card .action-subtitle {
    display: none;
  }

  .action-grid {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .action-grid::-webkit-scrollbar {
    display: none;
  }

  .action-button,
  .status-button {
    min-height: 46px;
    border-radius: 10px;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .action-grid .action-button {
    flex: 0 0 auto;
    min-width: 138px;
    scroll-snap-align: start;
  }

  .form-actions .action-button,
  .form-actions .status-button {
    flex: 1 1 100%;
    justify-content: center;
  }

  .vpn-menu {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .vpn-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vpn-menu select {
    min-height: 48px;
    border-radius: 10px;
    font-size: 16px;
  }

  .identity-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .identity-form label,
  .identity-form input,
  .identity-form select,
  .identity-form textarea,
  .form-actions,
  .mini-list,
  .mini-item {
    min-width: 0;
    max-width: 100%;
  }

  .identity-form input,
  .identity-form select,
  .identity-form textarea {
    min-height: 48px;
    border-radius: 10px;
    font-size: 16px;
  }

  .identity-form textarea {
    min-height: 96px;
  }

  .mini-list {
    gap: 8px;
  }

  .mini-item {
    min-height: 58px;
    border-radius: 10px;
  }

  .runbook-card pre {
    max-height: 220px;
    padding: 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #identityResult {
    max-height: 360px;
    font-size: 10px;
    line-height: 1.1;
  }

  .vpn-result.qr-output {
    max-height: 420px;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 7px;
    line-height: 1;
  }

  .drawer {
    justify-items: stretch;
    align-items: end;
  }

  .drawer-panel {
    width: 100%;
    height: min(88vh, 760px);
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 8px 8px 0 0;
    transform: translateY(18px);
  }

  .drawer.open .drawer-panel {
    transform: translateY(0);
  }

  .check {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .state {
    grid-column: 2;
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(100% - 14px, 1180px);
    padding-top: 10px;
    padding-bottom: 96px;
  }

  .brand {
    max-width: 100%;
    padding-right: 10px;
  }

  .status-button {
    padding: 0 11px;
  }

  .page-hero .nav {
    top: 6px;
    gap: 8px;
  }

  .brand {
    width: 100%;
    flex: 1 1 auto;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .page-hero .nav-actions {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .page-hero .nav-actions .status-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero-body.compact {
    padding-top: 24px;
  }

  .hero-body.compact h1 {
    font-size: 44px;
  }

  .hero-body.compact .lead,
  .section-head > p {
    display: none;
  }

  .quick-meta {
    gap: 7px;
    margin-top: 14px;
  }

  .quick-meta span {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
  }

  .section-head {
    margin-top: 16px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .metric {
    min-height: 62px;
    border-radius: 10px;
  }

  .admin-grid {
    gap: 10px;
  }

  .runbook-card,
  .incident-panel {
    padding: 13px;
    border-radius: 12px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
  }

  .fold-card {
    padding: 0;
  }

  .admin-fold {
    padding: 13px;
  }

  .admin-fold summary {
    min-height: 44px;
  }

  .admin-fold summary strong {
    font-size: 17px;
  }

  .runbook-card h2,
  .incident-panel h2 {
    font-size: 19px;
  }

  .action-card {
    margin-inline: 0;
  }

  .action-card .eyebrow {
    font-size: 11px;
  }

  .action-grid .action-button {
    min-width: 118px;
    min-height: 42px;
    padding: 0 10px;
    font-size: 13px;
  }

  .identity-form span {
    font-size: 11px;
  }

  .form-actions {
    gap: 8px;
  }

  #identityRegistry,
  #matrixUsers,
  #matrixRooms,
  #wireguardUsers,
  #vaultwardenUsers,
  #systemState {
    max-height: 170px;
  }

  .overview {
    grid-template-columns: 1fr;
  }

  .access-summary {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .access-headline {
    min-height: 94px;
    border-radius: 10px;
  }

  .access-headline strong {
    font-size: 34px;
  }

  .access-services {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .access-services::-webkit-scrollbar {
    display: none;
  }

  .access-service {
    flex: 0 0 210px;
    min-height: 104px;
    border-radius: 10px;
    scroll-snap-align: start;
  }

  .access-map-head {
    display: grid;
    gap: 8px;
  }

  .access-legend {
    flex-wrap: nowrap;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .access-legend::-webkit-scrollbar {
    display: none;
  }

  .access-legend span {
    flex: 0 0 92px;
  }

  .access-row {
    grid-template-columns: 1fr;
    border-radius: 10px;
  }

  .access-cells {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .access-cells::-webkit-scrollbar {
    display: none;
  }

  .access-cell {
    flex: 0 0 86px;
    min-height: 36px;
    border-radius: 9px;
  }

  .service {
    grid-template-columns: 1fr;
  }

  .tag {
    position: static;
    width: max-content;
    margin-top: 12px;
  }

  .unlock-panel {
    margin-top: 42px;
    padding: 14px;
  }

  .unlock-actions {
    display: grid;
  }
}

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

  .service:hover {
    transform: none;
  }

  .drawer-panel,
  .drawer.open .drawer-panel {
    transform: none;
  }
}
