:root {
  color-scheme: dark;
  --ink: #d8dee8;
  --muted: #9aa8ba;
  --line: #334155;
  --soft: #0b1120;
  --panel: #111827;
  --navy: #0b1120;
  --navy-2: #101827;
  --brand: #f8bf00;
  --brand-hover: #ffd34d;
  --brand-ink: #17120a;
  --brand-soft: #332800;
  --brand-strong: #fff2b3;
  --blue: var(--brand);
  --blue-soft: var(--brand-soft);
  --green: #6ee7b7;
  --green-soft: #12372d;
  --amber: #fbbf24;
  --amber-soft: #211b11;
  --red: #f87171;
  --red-soft: #2b1118;
  --shadow: 0 16px 40px rgba(0, 0, 0, .3);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--soft); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.boot-screen, .auth-screen, .access-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 16% 12%, rgba(248, 191, 0, .16), transparent 32%),
    radial-gradient(circle at 86% 80%, rgba(19, 138, 91, .14), transparent 30%),
    var(--navy);
}
.boot-card, .access-card { display: grid; justify-items: center; gap: 12px; color: white; text-align: center; }
.boot-card span, .access-card p { color: #b9c4da; margin: 0; max-width: 560px; line-height: 1.6; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(248, 191, 0, .42); border-radius: 14px;
  color: white; font-weight: 800; letter-spacing: -.03em;
  background: #101827; box-shadow: 0 12px 30px rgba(248, 191, 0, .16);
}
.brand-mark img { width: 76%; height: 76%; display: block; object-fit: contain; }
.auth-card { width: min(100%, 460px); display: grid; gap: 14px; background: white; border-radius: 24px; box-shadow: 0 24px 70px rgba(0, 0, 0, .26); padding: 32px; }
.auth-brand { display: flex; align-items: center; gap: 16px; padding-bottom: 13px; }
.auth-brand h1 { margin: 3px 0 4px; font-size: 25px; letter-spacing: -.035em; }
.auth-brand p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.auth-brand .eyebrow { color: var(--blue); }
.auth-footnote { padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: center; }
.tekniq-auth { display: grid; gap: 14px; }
.auth-form { display: grid; gap: 14px; }
.auth-heading { display: grid; gap: 6px; padding-bottom: 4px; }
.auth-heading h2 { margin: 0; color: var(--ink); font-size: 21px; letter-spacing: -.025em; }
.auth-heading p { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-kicker { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.auth-field { display: grid; gap: 7px; color: #4e5c76; font-size: 11px; font-weight: 750; }
.auth-field input { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; outline: none; }
.auth-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(248, 191, 0, .14); }
.auth-submit { min-height: 44px; border: 1px solid var(--brand); border-radius: 10px; color: var(--brand-ink); background: var(--brand); font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(248, 191, 0, .18); }
.auth-submit:hover { background: var(--brand-hover); }
.auth-submit:disabled, .auth-link:disabled { cursor: wait; opacity: .58; }
.auth-link { justify-self: center; padding: 2px 6px; border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.auth-link.muted { color: var(--muted); font-weight: 650; }
.auth-error { padding: 10px 12px; border: 1px solid #f2cbd1; border-radius: 9px; color: #9f2638; background: #fff0f2; font-size: 11px; line-height: 1.45; }
.auth-security { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 10px; }
.auth-security span { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-weight: 900; }
.access-card { max-width: 640px; }
.gate-action { min-width: 220px; }
.gate-warning { max-width: 520px; padding: 12px 15px; border: 1px solid rgba(245, 178, 66, .38); border-radius: 10px; color: #ffe0a0; background: rgba(173, 107, 0, .14); font-size: 11px; line-height: 1.5; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; color: #88a0cd; }

.app-shell { min-height: 100vh; display: grid; grid-template-rows: 68px minmax(0, 1fr); }
.topbar {
  display: flex; align-items: center; gap: 18px; padding: 0 24px; background: var(--navy); color: white;
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar-brand { display: flex; align-items: center; gap: 11px; min-width: 245px; }
.topbar-brand strong { display: block; font-size: 15px; }
.topbar-brand span { display: block; margin-top: 2px; font-size: 11px; color: #9eabc4; }
.topbar-title { flex: 1; font-size: 13px; color: #c6d0e3; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 12px; }
.product-nav { align-self: stretch; display: flex; align-items: center; gap: 4px; margin-left: auto; }
.product-nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 11px; border-radius: 8px; color: #aebad3; text-decoration: none; font-size: 11px; font-weight: 750; }
.product-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.product-nav a.active { color: var(--brand-strong); background: var(--brand-soft); box-shadow: inset 0 -2px var(--brand); }
.identity-controls { display: flex; align-items: center; gap: 7px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.12); }
.organization-pill, .user-pill { height: 34px; border: 1px solid #3a496e; border-radius: 9px; color: #e8edff; background: #19294d; font-size: 10px; }
.organization-pill { display: inline-flex; align-items: center; max-width: 170px; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pill { display: inline-flex; align-items: center; gap: 7px; max-width: 180px; padding: 0 9px 0 5px; }
.user-pill i { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: var(--brand-ink); background: var(--brand); font-style: normal; font-size: 9px; font-weight: 800; }
.user-pill > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sign-out-button { width: 34px; height: 34px; border: 1px solid #3a496e; border-radius: 9px; color: #dbe4f8; background: #19294d; cursor: pointer; font-weight: 800; }
.sign-out-button:hover { color: #fff; border-color: #5c6f98; background: #26395f; }

.workspace { min-height: 0; display: grid; grid-template-columns: 310px minmax(0, 1fr); }
.sidebar { background: white; border-right: 1px solid var(--line); min-height: calc(100vh - 68px); display: flex; flex-direction: column; }
.sidebar-head { padding: 22px 20px 14px; display: grid; gap: 14px; border-bottom: 1px solid var(--line); }
.sidebar-title { display: flex; align-items: center; justify-content: space-between; }
.sidebar-title h1 { font-size: 16px; margin: 0; }
.count { min-width: 24px; padding: 3px 7px; text-align: center; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 700; }
.search { position: relative; }
.search input { width: 100%; padding: 10px 12px 10px 35px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--ink); outline: none; }
.search input:focus { border-color: var(--brand); background: white; box-shadow: 0 0 0 3px rgba(248, 191, 0, .14); }
.search::before { content: "⌕"; position: absolute; left: 12px; top: 8px; color: var(--muted); font-size: 18px; }
.sidebar-buttons { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.organization-list { padding: 9px; display: grid; gap: 4px; overflow: auto; }
.org-item { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 11px; background: transparent; text-align: left; color: var(--ink); }
.org-item:hover { background: var(--soft); }
.org-item.active { background: var(--blue-soft); box-shadow: inset 3px 0 var(--blue); }
.org-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #244174; background: #e8eef8; font-size: 12px; font-weight: 800; }
.org-item.active .org-avatar { color: var(--brand-ink); background: var(--brand); }
.org-copy { min-width: 0; }
.org-copy strong, .org-copy span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-copy strong { font-size: 13px; }
.org-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.access-dots { display: flex; gap: 3px; }
.access-dot { width: 7px; height: 7px; border-radius: 50%; background: #d8deea; }
.access-dot.on { background: var(--green); }

.content { padding: 28px; min-width: 0; }
.empty-content { min-height: 65vh; display: grid; place-items: center; text-align: center; color: var(--muted); }
.empty-content strong { display: block; color: var(--ink); margin-bottom: 8px; }
.detail { max-width: 1220px; margin: 0 auto; display: grid; gap: 20px; }
.detail-header { display: flex; align-items: flex-start; gap: 18px; }
.detail-header .org-avatar { width: 54px; height: 54px; font-size: 16px; border-radius: 15px; color: white; background: var(--navy-2); }
.detail-heading { flex: 1; min-width: 0; }
.detail-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.detail-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.detail-actions { display: flex; gap: 8px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.summary-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.summary-card span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.summary-card strong { display: block; margin-top: 8px; font-size: 16px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 20px; align-items: start; }
.column { display: grid; gap: 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 12px rgba(16, 33, 67, .025); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 14px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 19px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #4e5c76; font-size: 11px; font-weight: 700; }
.field input, .field select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; color: var(--ink); background: white; outline: none; }
.field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(248, 191, 0, .12); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.application-list { display: grid; gap: 10px; }
.application-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.application-choice { display: contents; cursor: pointer; }
.application-card > .button { grid-column: 1 / -1; justify-self: start; }
.application-copy strong { display: block; font-size: 13px; }
.application-copy p { margin: 5px 0 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.application-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.switch { position: relative; width: 42px; height: 24px; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #ccd3e1; transition: .18s; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0, 0, 0, .22); transition: .18s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(18px); }

.team-list, .activity-list { display: grid; }
.person, .invitation, .activity-item { display: grid; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.person:last-child, .invitation:last-child, .activity-item:last-child { border-bottom: 0; }
.person { grid-template-columns: 34px minmax(0, 1fr) auto auto; }
.person-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 800; }
.person-copy { min-width: 0; }
.person-copy strong, .person-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-copy strong { font-size: 12px; }
.person-copy span { color: var(--muted); margin-top: 3px; font-size: 10px; }
.role-select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 11px; background: white; }
.invitation { grid-template-columns: minmax(0, 1fr) auto auto; }
.invite-form { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; gap: 8px; margin-bottom: 12px; }
.invite-form input, .invite-form select { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.activity-item { grid-template-columns: 9px minmax(0, 1fr) auto; }
.activity-bullet { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.activity-copy strong { display: block; font-size: 11px; }
.activity-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.activity-item time { color: var(--muted); font-size: 10px; }

.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 20px; padding: 2px 7px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.badge.green { color: var(--green); background: var(--green-soft); }
.badge.amber { color: var(--amber); background: var(--amber-soft); }
.badge.red { color: var(--red); background: var(--red-soft); }
.badge.blue { color: var(--blue); background: var(--blue-soft); }
.button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; color: var(--ink); background: white; font-size: 11px; font-weight: 700; }
.button:hover { background: var(--soft); }
.button.primary { color: var(--brand-ink); background: var(--brand); border-color: var(--brand); }
.button.primary:hover { background: var(--brand-hover); }
.button.danger { color: var(--red); border-color: #f2cbd1; background: var(--red-soft); }
.button.icon { width: 34px; padding: 0; }
.button:disabled { cursor: wait; opacity: .58; }
.button.compact { min-height: 29px; padding: 5px 8px; font-size: 10px; }
.matrix-button { width: 100%; margin-top: 10px; }
.empty-row { padding: 20px; color: var(--muted); text-align: center; font-size: 11px; }

.matrix-view { max-width: 1500px; margin: 0 auto; display: grid; gap: 18px; }
.matrix-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.matrix-heading h2 { margin: 4px 0 0; font-size: 25px; }
.matrix-heading p { margin: 6px 0 0; color: var(--muted); }
.matrix-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.matrix-summary > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.matrix-summary strong { font-size: 12px; }
.matrix-summary p { margin: 0; color: var(--muted); font-size: 11px; }
.matrix-summary.healthy { border-color: #bce2d0; background: var(--green-soft); }
.matrix-summary.attention { border-color: #f2cbd1; background: var(--red-soft); }
.matrix-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.access-matrix { width: 100%; min-width: 760px; border-collapse: collapse; }
.access-matrix th, .access-matrix td { padding: 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: top; }
.access-matrix tr:last-child > * { border-bottom: 0; }
.access-matrix tr > *:last-child { border-right: 0; }
.access-matrix thead th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: #f8f9fb; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.access-matrix tbody th { min-width: 210px; background: #fbfcfd; }
.access-matrix tbody th button { width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.access-matrix tbody th strong, .access-matrix tbody th span { display: block; }
.access-matrix tbody th span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.matrix-cell { min-width: 220px; display: grid; gap: 9px; }
.matrix-toggle { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; cursor: pointer; }
.matrix-error { color: var(--red); line-height: 1.45; }

dialog { width: min(590px, calc(100vw - 32px)); border: 0; border-radius: 18px; padding: 0; color: var(--ink); box-shadow: 0 30px 90px rgba(7, 19, 45, .35); }
dialog::backdrop { background: rgba(7, 19, 45, .68); backdrop-filter: blur(3px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 18px; }
.dialog-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.dialog-body { padding: 22px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.check-card { display: flex; align-items: flex-start; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; }
.check-card strong { display: block; font-size: 11px; }
.check-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; width: min(380px, calc(100vw - 40px)); }
.toast { padding: 13px 15px; color: white; background: var(--navy); border-radius: 10px; box-shadow: var(--shadow); font-size: 11px; animation: toast-in .18s ease-out; }
.toast.error { background: #9e2333; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.skeleton { min-height: 140px; display: grid; place-items: center; color: var(--muted); font-size: 11px; }

@media (max-width: 980px) {
  .workspace { grid-template-columns: 260px minmax(0, 1fr); }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-shell { grid-template-rows: auto minmax(0, 1fr); }
  .topbar { padding: 12px 15px; flex-wrap: wrap; }
  .topbar-brand { min-width: 0; flex: 1; }
  .topbar-title { display: none; }
  .product-nav { display: none; }
  .organization-pill, .user-pill > span { display: none; }
  .identity-controls { padding-left: 0; border-left: 0; }
  .workspace { display: block; }
  .sidebar { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .organization-list { max-height: 235px; }
  .content { padding: 18px 13px; }
  .detail-header { flex-wrap: wrap; }
  .detail-actions { width: 100%; }
  .matrix-heading { align-items: stretch; flex-direction: column; }
  .matrix-summary { grid-template-columns: 1fr; }
  .form-grid, .check-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .invite-form { grid-template-columns: 1fr; }
  .person { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .person .role-select { grid-column: 2 / 3; }
}

/* Tekniq Viewer dark surface language */
.boot-screen,
.auth-screen,
.access-screen {
  background:
    radial-gradient(circle at 78% 12%, rgba(248, 191, 0, .12), transparent 30%),
    linear-gradient(145deg, #090f1d, #111b2e);
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #101827;
  box-shadow: 0 22px 64px rgba(0, 0, 0, .42);
}

.auth-brand {
  border-bottom: 1px solid var(--line);
}

.auth-brand .eyebrow,
.auth-kicker {
  color: var(--brand);
}

.auth-field {
  color: #c8d3e3;
}

.auth-field input,
.field input,
.field select,
.role-select,
.invite-form input,
.invite-form select,
.search input {
  border-color: var(--line);
  color: var(--ink);
  background: #111827;
}

.auth-field input:focus,
.field input:focus,
.field select:focus,
.search input:focus {
  border-color: var(--brand);
  background: #111827;
  box-shadow: 0 0 0 3px rgba(248, 191, 0, .14);
}

.auth-submit,
.button.primary {
  border-color: var(--brand);
  color: var(--brand-ink);
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(248, 191, 0, .18);
}

.auth-submit:hover,
.button.primary:hover {
  background: var(--brand-hover);
}

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

.auth-error {
  border-color: #7f1d1d;
  color: #fecaca;
  background: #2b1118;
}

.auth-security span {
  color: #6ee7b7;
  background: #12372d;
}

.topbar {
  border-bottom: 1px solid #27364d;
  background: #101827;
}

.organization-pill,
.user-pill,
.sign-out-button {
  border-color: var(--line);
  color: var(--ink);
  background: #172033;
}

.product-nav a.active {
  color: var(--brand-strong);
  background: var(--brand-soft);
  box-shadow: inset 0 -2px var(--brand);
}

.sidebar {
  border-color: var(--line);
  background: #101827;
}

.sidebar-head,
.person,
.invitation,
.activity-item {
  border-color: var(--line);
}

.org-item:hover,
.button:hover {
  color: var(--brand-strong);
  background: #172e2a;
}

.org-item.active {
  color: var(--brand-strong);
  background: var(--brand-soft);
  box-shadow: inset 3px 0 var(--brand);
}

.org-avatar,
.person-avatar {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.content {
  background:
    linear-gradient(rgba(11, 17, 32, .97), rgba(11, 17, 32, .99)),
    repeating-linear-gradient(135deg, transparent 0 48px, rgba(51, 65, 85, .18) 49px 51px);
}

.summary-card,
.panel,
.application-card,
.matrix-summary,
.matrix-scroll,
.access-matrix tbody th,
.button,
.check-card,
dialog {
  border-color: var(--line);
  color: var(--ink);
  background: #111827;
}

.panel,
.summary-card,
.matrix-scroll,
dialog {
  border-radius: 8px;
  box-shadow: none;
}

.access-matrix th,
.access-matrix td,
.dialog-head {
  border-color: var(--line);
}

.access-matrix thead th {
  color: var(--muted);
  background: #172033;
}

.access-matrix tbody th {
  background: #101827;
}

.matrix-summary.healthy {
  border-color: #235d4a;
  background: #12372d;
}

.matrix-summary.attention {
  border-color: #7f1d1d;
  background: #2b1118;
}

.badge.green {
  color: #6ee7b7;
  background: #12372d;
}

.badge.amber {
  color: #fbbf24;
  background: #211b11;
}

.badge.red,
.button.danger {
  border-color: #7f1d1d;
  color: #fecaca;
  background: #2b1118;
}

.badge.blue {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.switch span {
  background: #40516b;
}

.switch input:checked + span {
  background: var(--brand);
}

dialog::backdrop {
  background: rgba(3, 7, 18, .78);
}

.toast {
  border: 1px solid #24a77a;
  background: #12372d;
}
