:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f5f7;
  --ink: #17202a;
  --muted: #657180;
  --line: #d6dde3;
  --line-strong: #aeb8c2;
  --red: #c74634;
  --danger: #d92d20;
  --danger-deep: #a61b12;
  --danger-soft: #fff1f0;
  --danger-line: #f4b8b2;
  --danger-shadow: 0 10px 24px rgba(217, 45, 32, 0.12);
  --teal: #0f766e;
  --green: #2f7d32;
  --amber: #a16207;
  --blue: #2368a2;
  --task-status-backlog: #aeb8c2;
  --task-status-ready: #9bd8b2;
  --task-status-in-progress: #1f7a4d;
  --task-status-blocked: #d92d20;
  --task-status-done: #7dd3fc;
  --task-status-accepted: #2368a2;
  --task-status-cancelled: #111827;
  --task-status-not-applicable: #4b5563;
  --sidebar: #20252b;
  --sidebar-hover: #343b43;
  --shadow: 0 16px 48px rgba(23, 32, 42, 0.12);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0;
}

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

button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  border-color: var(--teal);
}

button.primary,
.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
}

textarea {
  min-height: 92px;
  resize: vertical;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

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

h1 {
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 8px;
}

h2 {
  font-size: 15px;
  margin-bottom: 12px;
}

h3 {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  margin: 16px 0 8px;
}

pre {
  max-height: 520px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #101817;
  color: #e5f2ed;
  border-radius: 6px;
  padding: 14px;
}

.auth-shell {
  align-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(115deg, #151b22 0%, #202935 52%, #2f2a23 100%);
  background-size: 34px 34px, 34px 34px, auto;
  color: #f7fafc;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(350px, 500px) minmax(260px, 360px);
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  padding: clamp(18px, 5vh, 42px) 24px;
  position: relative;
}

.auth-shell::before {
  background: url("../assets/logo/ateam-agentic-ai-logo.png") center / contain no-repeat;
  content: "";
  height: min(740px, 86vw);
  inset: 50% auto auto 50%;
  opacity: 0.11;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, -46%);
  width: min(960px, 92vw);
  z-index: 0;
}

.auth-panel,
.auth-context {
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.auth-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.26);
  color: var(--ink);
  min-height: min-content;
  padding: 22px;
}

.auth-language {
  position: absolute;
  right: 18px;
  top: 18px;
}

.auth-language select {
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 8px;
  width: auto;
}

.auth-brand {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 52px minmax(0, 1fr);
  margin-bottom: 16px;
  padding-right: 108px;
}

.auth-brand img {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 52px;
  object-fit: contain;
  padding: 6px;
  width: 52px;
}

.auth-brand > div {
  min-width: 0;
}

.auth-brand span {
  color: var(--red);
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.auth-brand h1 {
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}

.auth-brand p {
  color: var(--muted);
  line-height: 1.35;
  margin: 5px 0 0;
}

.auth-tabs,
.segmented {
  background: #eef2f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
  padding: 4px;
}

.auth-tabs button,
.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  min-height: 34px;
  min-width: 0;
}

.auth-tabs button.active,
.segmented button.active {
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(23, 32, 42, 0.12);
  color: var(--ink);
}

.stack {
  display: grid;
  gap: 14px;
}

.auth-form {
  gap: 11px;
}

.auth-form label,
.auth-panel .password-row label,
.auth-panel .two-col label {
  color: #344251;
  font-size: 11px;
  font-weight: 850;
}

.auth-form input,
.auth-panel .password-row input,
.auth-panel .two-col input {
  background: #fbfcfd;
  border-color: var(--line-strong);
  font-size: 14px;
  min-height: 44px;
  padding: 10px 12px;
}

.auth-panel button.primary {
  min-height: 42px;
}

.login-password-row {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
}

.login-password-row label {
  color: #344251;
  font-size: 11px;
  font-weight: 850;
}

.login-password-row input {
  background: #fbfcfd;
  border-color: var(--line-strong);
  font-size: 14px;
  min-height: 44px;
  padding: 10px 12px;
}

.login-password-row button {
  background: #eef3f4;
  border: 1px solid var(--line-strong);
  color: #344251;
  font-size: 12px;
  font-weight: 850;
  min-height: 44px;
  padding: 0 12px;
}

.auth-policy {
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  margin: 14px 0 0;
  padding: 10px;
}

.auth-message {
  margin: 10px 0 0;
  min-height: 18px;
}

.auth-context {
  align-content: start;
  align-self: center;
  background: rgba(16, 24, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.2);
  color: #edf2f7;
  display: grid;
  gap: 10px;
  height: fit-content;
  max-height: 100%;
  padding: 14px;
}

.auth-context-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 4px;
  margin-bottom: 4px;
  padding: 2px 4px 12px;
}

.auth-context-head span {
  color: #f5b7aa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.auth-context-head strong {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.25;
}

.auth-signal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 10px;
}

.auth-signal span {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f5b7aa;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.auth-signal strong {
  align-self: center;
  color: #ffffff;
  min-width: 0;
}

.auth-signal small {
  color: #cfd8e3;
  grid-column: 2;
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hidden {
  display: none;
}

.message,
.alert {
  min-height: 20px;
  color: var(--red);
  font-weight: 700;
}

.alert {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff7ed;
}

.alert.notice {
  color: var(--teal);
  background: #ecfdf5;
}

.floating-toast {
  animation: toast-in 0.22s ease-out;
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 32, 42, 0.18);
  color: var(--ink);
  display: grid;
  gap: 3px;
  min-width: min(420px, calc(100vw - 32px));
  padding: 13px 15px;
  position: fixed;
  right: 22px;
  top: 84px;
  z-index: 60;
}

.floating-toast strong {
  color: var(--teal);
  font-size: 10px;
  text-transform: uppercase;
}

.floating-toast span {
  color: var(--ink);
  font-weight: 800;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  grid-template-rows: 72px 1fr;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 3;
}

.top-title {
  min-width: 0;
}

.top-title strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.top-title span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup img {
  width: 118px;
  height: 42px;
  object-fit: contain;
}

.brand-lockup span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: end;
  flex-wrap: wrap;
}

.user-chip {
  align-items: center;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 4px 10px 4px 6px;
}

.user-chip:hover {
  background: #eef3f4;
}

.user-chip > strong {
  align-items: center;
  background: var(--red);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 10px;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  overflow: hidden;
  width: 30px;
}

.user-chip > strong.photo {
  background: #eef3f4;
  border: 1px solid var(--line);
}

.user-chip > strong img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.user-chip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions label {
  min-width: 112px;
}

#language-select {
  min-width: 104px;
  font-weight: 800;
}

.side-nav {
  grid-column: 1;
  grid-row: 1 / -1;
  height: 100vh;
  min-height: 0;
  border-right: 0;
  padding: 18px 14px;
  background: var(--sidebar);
  color: #f7f8f9;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.nav-brand {
  align-items: center;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  padding: 2px 4px 22px;
}

.nav-brand img {
  width: 54px;
  height: 42px;
  object-fit: contain;
  background: white;
  border-radius: 6px;
  padding: 4px;
}

.nav-brand strong,
.nav-brand span {
  display: block;
  min-width: 0;
}

.nav-brand strong {
  color: white;
  line-height: 1.15;
}

.nav-brand span {
  color: #c5cbd1;
  font-size: 10px;
  margin-top: 3px;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.side-nav button {
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  font-weight: 700;
  color: #d7dde3;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 40px;
  padding: 0 10px;
}

.side-nav button .nav-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f0b6ac;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.side-nav button .nav-icon svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 17px;
}

.side-nav button.active .nav-icon,
.side-nav button:hover .nav-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.side-nav button.active {
  background: var(--sidebar-hover);
  color: #ffffff;
}

.side-nav button:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
}

.nav-foot {
  border-top: 1px solid #3a424b;
  color: #c5cbd1;
  display: grid;
  font-size: 10px;
  gap: 4px;
  line-height: 1.45;
  margin-top: auto;
  padding: 16px 8px 0;
}

.nav-foot strong {
  color: #ffffff;
  font-size: 10px;
}

.nav-foot span {
  color: #aeb8c2;
}

.main-panel {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  padding: 22px;
}

.workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

.workspace.two-pane {
  grid-template-columns: minmax(380px, 0.95fr) minmax(420px, 1.05fr);
  align-items: start;
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.page-title p {
  color: var(--muted);
  margin-bottom: 0;
}

.panel,
.metric,
.chart-panel,
.report-card,
.admin-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(23, 33, 31, 0.04);
  padding: 16px;
}

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

.metric-grid.compact .metric {
  padding: 12px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

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

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

.dashboard-grid > *,
.dashboard-metrics > * {
  min-width: 0;
}

.dashboard-workspace {
  gap: 16px;
}

.dashboard-command-surface {
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(31, 46, 56, 0.96) 58%, rgba(24, 70, 66, 0.94)),
    #17202a;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 32, 42, 0.15);
  color: #ffffff;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.dashboard-command-surface::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 68px);
  content: "";
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  position: absolute;
}

.dashboard-command-copy,
.dashboard-command-scoreboard,
.dashboard-command-actions {
  position: relative;
  z-index: 1;
}

.dashboard-command-copy {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.dashboard-command-copy > span {
  color: #f3b8ae;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-command-copy h1 {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
  margin: 0;
}

.dashboard-command-copy p {
  color: #d9e4ec;
  line-height: 1.5;
  margin: 0;
  max-width: 780px;
}

.dashboard-command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-command-meta b {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #eef6f7;
  font-size: 10px;
  font-weight: 850;
  padding: 7px 10px;
  text-transform: uppercase;
}

.dashboard-command-scoreboard {
  align-content: start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-command-scoreboard article {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 12px;
}

.dashboard-command-scoreboard span {
  color: #b9c7d1;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-command-scoreboard strong {
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
}

.dashboard-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.dashboard-command-actions button:not(.primary) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.dashboard-tabs span,
.dashboard-filter-bar span,
.dashboard-panel-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-tabs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-tabs button {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-top: 4px solid transparent;
  display: grid;
  gap: 4px;
  justify-items: start;
  min-width: 0;
  min-height: 82px;
  padding: 14px;
  text-align: left;
}

.dashboard-tabs button.active {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(35, 104, 162, 0.06)), #ffffff;
  border-color: rgba(15, 118, 110, 0.25);
  border-top-color: var(--teal);
  box-shadow: 0 12px 26px rgba(23, 32, 42, 0.08);
  color: var(--ink);
}

.dashboard-tabs button.active span {
  color: var(--teal);
}

.dashboard-filter-bar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  padding: 12px;
}

.dashboard-filter-bar label {
  gap: 5px;
  min-width: 0;
}

.dashboard-filter-bar input,
.dashboard-filter-bar select {
  min-height: 36px;
  min-width: 0;
}

.dashboard-metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.dashboard-metric {
  border-top: 4px solid var(--teal);
  min-height: 112px;
}

.dashboard-metric:nth-child(2) {
  border-top-color: var(--blue);
}

.dashboard-metric:nth-child(3) {
  border-top-color: var(--red);
}

.dashboard-metric:nth-child(4) {
  border-top-color: var(--amber);
}

.dashboard-metric:nth-child(5) {
  border-top-color: var(--green);
}

.dashboard-metric small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin-top: 8px;
}

.dashboard-grid-wide {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.dashboard-decision-panel,
.dashboard-plan-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(23, 33, 31, 0.04);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.dashboard-decision-panel {
  grid-template-columns: minmax(0, 1fr) 116px;
}

.dashboard-decision-panel span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-decision-panel strong {
  display: block;
  font-size: 32px;
  line-height: 1;
  margin: 7px 0;
}

.dashboard-decision-panel p,
.benchmark-panel p {
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.decision-ring {
  align-items: center;
  align-self: center;
  aspect-ratio: 1;
  background: conic-gradient(var(--teal) var(--value), var(--surface-2) 0);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding: 18px;
  position: relative;
}

.decision-ring::before {
  background: var(--surface);
  border-radius: inherit;
  content: "";
  inset: 13px;
  position: absolute;
}

.decision-ring b,
.decision-ring small {
  position: relative;
  z-index: 1;
}

.decision-ring b {
  font-size: 22px;
}

.decision-ring small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.dashboard-decision-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  padding-top: 12px;
}

.dashboard-decision-list span {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.pipeline-status-panel .money-row {
  grid-template-columns: minmax(120px, 0.9fr) minmax(120px, 1fr) minmax(128px, auto);
}

.pipeline-status-panel .money-row b {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.benchmark-panel .bar-row.active {
  background: rgba(15, 118, 110, 0.08);
  border-radius: 8px;
  padding: 7px 8px;
}

.dashboard-panel-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.dashboard-panel-head h2 {
  margin: 4px 0 0;
}

.dashboard-panel-head strong {
  color: var(--teal);
  font-size: 30px;
}

.dashboard-plan-meter {
  background: var(--surface-2);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.dashboard-plan-meter i {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  display: block;
  height: 100%;
}

.dashboard-plan-meter.danger i {
  background: linear-gradient(90deg, #dc3f30, #b86a16);
}

.dashboard-mini-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-mini-grid div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.dashboard-mini-grid span,
.dashboard-mini-grid strong {
  display: block;
}

.dashboard-mini-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-mini-grid strong {
  font-size: 18px;
  margin-top: 4px;
}

.dashboard-queue-panel .record-list {
  margin-top: 10px;
}

.manager-dashboard-grid .dashboard-plan-panel {
  min-height: 270px;
}

.home-workspace {
  gap: 18px;
}

.home-command-surface {
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(31, 46, 56, 0.96) 54%, rgba(21, 63, 58, 0.94)),
    #17202a;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 32, 42, 0.16);
  color: #ffffff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.home-command-surface::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 72px);
  content: "";
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  position: absolute;
}

.home-command-copy,
.home-command-side {
  position: relative;
  z-index: 1;
}

.home-command-copy {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.home-command-copy > span,
.guide-card span {
  color: #f3b8ae;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-command-copy h1 {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.02;
  margin: 0;
}

.home-command-copy p {
  color: #d9e4ec;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  max-width: 820px;
}

.home-command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-command-meta b {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #eef6f7;
  font-size: 10px;
  font-weight: 850;
  padding: 7px 10px;
  text-transform: uppercase;
}

.home-command-side {
  align-content: space-between;
  display: grid;
  gap: 14px;
  justify-items: end;
  min-width: 260px;
}

.home-progress-ring {
  align-items: center;
  background:
    radial-gradient(circle at center, #17202a 0 58%, transparent 59%),
    conic-gradient(var(--teal) var(--value), rgba(255, 255, 255, 0.16) 0);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  display: grid;
  height: 132px;
  justify-items: center;
  place-content: center;
  width: 132px;
}

.home-progress-ring strong {
  color: #ffffff;
  font-size: 28px;
}

.home-progress-ring span {
  color: #b9c7d1;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-actions,
.quick-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.home-actions button:not(.primary) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.home-actions button.primary {
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.28);
}

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

.home-metric-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-top: 4px solid var(--teal);
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.06);
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 14px;
}

.home-metric-card.blue {
  border-top-color: var(--blue);
}

.home-metric-card.red {
  border-top-color: var(--red);
}

.home-metric-card.amber {
  border-top-color: var(--amber);
}

.home-metric-card.green {
  border-top-color: var(--green);
}

.home-metric-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-metric-card strong {
  color: var(--ink);
  font-size: clamp(21px, 3vw, 32px);
  line-height: 1.05;
}

.home-metric-card small {
  color: var(--muted);
  line-height: 1.3;
}

.home-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.quick-link-grid button {
  min-width: 150px;
}

.home-control-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(360px, 1.15fr) minmax(300px, 0.9fr) minmax(280px, 0.85fr);
  grid-template-areas:
    "queue pipeline signals"
    "queue execution execution";
}

.home-priority-panel,
.home-pipeline-panel,
.home-signal-panel,
.home-execution-panel,
.home-next-actions-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.05);
  padding: 14px;
}

.home-next-actions-panel {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.07), rgba(208, 78, 55, 0.05)),
    #ffffff;
  overflow: hidden;
  position: relative;
}

.home-next-actions-panel::after {
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.12), transparent);
  content: "";
  height: 1px;
  inset: auto 14px 0;
  position: absolute;
}

.home-next-actions-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.home-next-action {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 92px;
  padding: 11px;
  text-align: left;
}

.home-next-action:hover,
.home-next-action:focus-visible {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 16px 28px rgba(23, 32, 42, 0.1);
  transform: translateY(-1px);
}

.home-next-action.primary {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.92)),
    #ffffff;
  border-color: rgba(15, 118, 110, 0.38);
  color: var(--ink);
}

.home-next-action.primary strong {
  color: var(--ink);
}

.home-next-action.primary small {
  color: var(--muted);
}

.home-next-action-icon {
  align-items: center;
  background: #edf7f5;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  color: var(--teal);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.home-next-action-icon svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 21px;
}

.home-next-action strong,
.home-next-action small {
  display: block;
}

.home-next-action strong {
  font-size: 12px;
  line-height: 1.25;
}

.home-next-action small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  margin-top: 3px;
}

.home-priority-panel {
  align-content: start;
  align-items: start;
  display: grid;
  gap: 12px;
  grid-area: queue;
}

.home-pipeline-panel {
  grid-area: pipeline;
}

.home-signal-panel {
  grid-area: signals;
}

.home-execution-panel {
  grid-area: execution;
}

.home-panel-head {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.home-panel-head span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-panel-head h2,
.home-panel-head p {
  margin: 0;
}

.home-panel-head h2 {
  font-size: 20px;
  line-height: 1.15;
}

.home-panel-head p {
  color: var(--muted);
  line-height: 1.4;
  margin-top: 4px;
}

.home-requirement-list {
  align-self: start;
  display: grid;
  gap: 9px;
}

.home-requirement-card {
  align-items: start;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 82px;
  padding: 11px;
  text-align: left;
}

.home-requirement-card:hover,
.home-requirement-card:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 12px 26px rgba(23, 32, 42, 0.1);
}

.home-requirement-card strong,
.home-requirement-card span {
  display: block;
}

.home-requirement-card strong {
  color: var(--ink);
  line-height: 1.22;
}

.home-requirement-card span,
.home-requirement-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.home-req-side {
  display: grid;
  gap: 5px;
  justify-items: end;
  min-width: 150px;
}

.home-req-side b {
  background: #eef7f5;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: var(--teal);
  font-size: 10px;
  padding: 5px 8px;
}

.home-pipeline-bars,
.home-signal-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.home-pipeline-row {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(92px, 0.8fr) minmax(100px, 1fr) minmax(116px, auto);
}

.home-pipeline-row span,
.home-pipeline-row b {
  font-size: 10px;
  font-weight: 850;
}

.home-pipeline-row span {
  color: var(--ink);
}

.home-pipeline-row b {
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.home-pipeline-row div {
  background: #e9eef2;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.home-pipeline-row i {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: inherit;
  display: block;
  height: 100%;
}

.home-signal {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px;
}

.home-signal.warn {
  border-left-color: var(--amber);
}

.home-signal.danger {
  border-left-color: var(--red);
}

.home-signal strong {
  color: var(--ink);
  font-size: 20px;
}

.home-signal span {
  color: var(--ink);
  font-weight: 850;
}

.home-signal small {
  color: var(--muted);
  line-height: 1.35;
}

.home-empty-state {
  background: #f4f7f8;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  padding: 18px;
  text-align: center;
}

.home-execution-panel .dashboard-mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-content-rail {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-content-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.home-content-tile span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-content-tile p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.content-card p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.howto-workspace,
.faq-workspace {
  gap: 16px;
}

.methodology-workspace {
  gap: 18px;
}

.methodology-section {
  display: grid;
  gap: 14px;
}

.methodology-story-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.methodology-story-copy {
  display: grid;
  gap: 14px;
}

.methodology-story-lead {
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.methodology-story-copy > p {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

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

.methodology-story-point {
  align-items: start;
  background: linear-gradient(180deg, rgba(179, 93, 71, 0.05), rgba(15, 118, 110, 0.03));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 12px;
}

.methodology-story-point strong {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 10px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.methodology-story-point span {
  color: var(--ink);
  line-height: 1.55;
}

.methodology-story-example {
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.96), rgba(31, 46, 56, 0.94) 60%, rgba(24, 70, 66, 0.9)),
    #17202a;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.methodology-story-example span {
  color: #ffb09a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.methodology-story-example p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
  margin: 0;
}

.methodology-principle-grid,
.methodology-runtime-board,
.methodology-readiness-grid {
  display: grid;
  gap: 14px;
}

.methodology-principle-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.methodology-principle-card,
.methodology-runtime-card,
.methodology-readiness-card {
  align-content: start;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.methodology-principle-card {
  background: linear-gradient(180deg, rgba(179, 93, 71, 0.06), rgba(35, 104, 162, 0.02));
  min-height: 164px;
}

.methodology-principle-card strong,
.methodology-runtime-card strong,
.methodology-readiness-card strong {
  color: var(--ink);
  font-size: 16px;
}

.methodology-principle-card p,
.methodology-runtime-card p,
.methodology-readiness-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

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

.methodology-runtime-card {
  min-height: 182px;
  position: relative;
}

.methodology-runtime-card small {
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.methodology-hero {
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(31, 46, 56, 0.96) 58%, rgba(24, 70, 66, 0.94)),
    #17202a;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(23, 32, 42, 0.15);
  color: #ffffff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.methodology-hero::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 68px);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.methodology-hero > * {
  position: relative;
  z-index: 1;
}

.methodology-hero-copy,
.methodology-hero-signal,
.methodology-scope-head,
.methodology-scope-card,
.methodology-flow-shell {
  display: grid;
  gap: 14px;
}

.methodology-hero-copy > span,
.methodology-comparison-panel span,
.methodology-outcomes-panel span,
.methodology-pillar-card small,
.methodology-flow-note b,
.methodology-compare-card span,
.methodology-scope-head span,
.methodology-scope-block label {
  color: #ffb09a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.methodology-hero-copy h1,
.methodology-flow-card h3,
.methodology-compare-card h3,
.methodology-outcome-card strong {
  margin: 0;
}

.methodology-hero-copy h1 {
  color: #ffffff;
}

.methodology-hero-lead {
  color: #ffffff;
  display: block;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin-top: -2px;
  max-width: none;
  white-space: nowrap;
}

.methodology-hero-copy p,
.methodology-hero-signal p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin: 0;
}

.methodology-hero-copy p {
  font-size: 14px;
  max-width: 70ch;
}

.methodology-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.methodology-badge-row b {
  align-items: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  min-width: 132px;
  padding: 8px 14px;
  text-align: center;
}

.methodology-badge-row b.teal {
  background: rgba(15, 118, 110, 0.28);
}

.methodology-badge-row b.blue {
  background: rgba(35, 104, 162, 0.28);
}

.methodology-badge-row b.violet {
  background: rgba(111, 76, 196, 0.26);
}

.methodology-badge-row b.amber {
  background: rgba(196, 118, 15, 0.28);
}

.methodology-badge-row b.green {
  background: rgba(25, 135, 84, 0.28);
}

.methodology-badge-row b.slate {
  background: rgba(108, 117, 125, 0.3);
}

.methodology-hero-promises {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.methodology-hero-cta {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 16px;
}

.methodology-hero-cta-copy {
  display: grid;
  gap: 6px;
}

.methodology-hero-cta-copy small,
.methodology-value-card > span,
.methodology-benefit-card > span,
.methodology-next-step-copy > span {
  color: #ffb09a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.methodology-hero-cta-copy strong,
.methodology-value-card h2,
.methodology-value-card h3,
.methodology-next-step-copy h2 {
  margin: 0;
}

.methodology-hero-cta-copy strong {
  color: #ffffff;
  font-size: 17px;
}

.methodology-hero-cta-copy p {
  font-size: 13px;
  margin: 0;
  max-width: 68ch;
}

.methodology-hero-cta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.methodology-hero-cta-badges b,
.methodology-trust-badges b {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  text-align: center;
}

.methodology-hero-cta-badges b {
  background: rgba(152, 244, 232, 0.13);
  border: 1px solid rgba(152, 244, 232, 0.22);
  color: #ffffff;
}

.methodology-hero-promises article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 12px;
}

.methodology-hero-promises small {
  color: #98f4e8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.methodology-hero-promises strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.35;
}

.methodology-badge-row.compact b {
  background: #eef3f4;
  border-color: var(--line);
  color: var(--ink);
  font-size: 10px;
  padding: 7px 10px;
}

.methodology-hero-signal {
  align-content: start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.methodology-hero-signal article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 10px;
}

.methodology-hero-signal article:nth-child(1) {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.24), rgba(15, 118, 110, 0.12));
}

.methodology-hero-signal article:nth-child(2) {
  background: linear-gradient(180deg, rgba(35, 104, 162, 0.24), rgba(35, 104, 162, 0.12));
}

.methodology-hero-signal article:nth-child(3) {
  background: linear-gradient(180deg, rgba(196, 118, 15, 0.24), rgba(196, 118, 15, 0.12));
}

.methodology-hero-signal small {
  color: #b7fff5;
  font-size: 9px;
  font-weight: 900;
}

.methodology-hero-signal strong,
.methodology-pillar-card strong,
.methodology-scope-head strong {
  color: var(--ink);
  font-size: 17px;
}

.methodology-hero-signal .methodology-hero-signal strong,
.methodology-hero-signal strong {
  color: #ffffff;
  font-size: 15px;
}

.methodology-hero-signal p {
  font-size: 10px;
  line-height: 1.35;
}

.methodology-pillar-grid,
.methodology-scope-grid,
.methodology-outcome-grid,
.methodology-phase-grid {
  display: grid;
  gap: 14px;
}

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

.methodology-value-grid,
.methodology-benefit-grid {
  display: grid;
  gap: 14px;
}

.methodology-value-grid {
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(280px, 0.65fr));
}

.methodology-value-card {
  align-content: start;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.06), rgba(35, 104, 162, 0.02));
  display: grid;
  gap: 10px;
  min-height: 100%;
}

.methodology-value-card-main {
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(31, 46, 56, 0.96) 58%, rgba(24, 70, 66, 0.94)),
    #17202a;
  border-color: rgba(31, 176, 164, 0.28);
}

.methodology-value-card-main h2,
.methodology-value-card-main p,
.methodology-value-card-main > span {
  color: #ffffff;
}

.methodology-value-card h2 {
  font-size: 28px;
  line-height: 1.1;
}

.methodology-value-card h3 {
  color: var(--ink);
  font-size: 19px;
}

.methodology-value-card p,
.methodology-benefit-card p,
.methodology-next-step-copy p,
.methodology-next-step-actions p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.methodology-value-card-main p {
  color: rgba(255, 255, 255, 0.82);
}

.methodology-title-with-aside {
  align-items: end;
  gap: 18px;
}

.methodology-proof-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: min(100%, 460px);
}

.methodology-proof-strip article {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.9));
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 12px;
}

.methodology-proof-strip strong {
  color: var(--ink);
  font-size: 17px;
}

.methodology-proof-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.methodology-benefit-card {
  align-content: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 247, 0.9));
  display: grid;
  gap: 10px;
  min-height: 170px;
}

.methodology-benefit-card strong,
.methodology-next-step-actions strong {
  color: var(--ink);
  font-size: 18px;
}

.methodology-pillar-card {
  align-content: start;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.06), rgba(35, 104, 162, 0.02));
  display: grid;
  gap: 10px;
  min-height: 180px;
}

.methodology-pillar-card p,
.methodology-scope-head p,
.methodology-scope-block p,
.methodology-outcome-card p,
.methodology-flow-card p,
.methodology-flow-note p,
.methodology-compare-card li {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

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

.methodology-scope-card {
  align-content: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 250, 0.92));
  display: grid;
  gap: 12px;
  min-height: 100%;
  position: relative;
}

.methodology-scope-card::before {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.95), rgba(35, 104, 162, 0.9));
  border-radius: 999px;
  content: "";
  left: 0;
  position: absolute;
  top: 20px;
  bottom: 20px;
  width: 4px;
}

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

.methodology-scope-block,
.methodology-outcome-card,
.methodology-compare-card,
.methodology-flow-card,
.methodology-flow-note {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.methodology-scope-block,
.methodology-outcome-card,
.methodology-compare-card,
.methodology-flow-note {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.methodology-phase-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.methodology-phase-card {
  align-content: start;
  background: linear-gradient(180deg, rgba(35, 104, 162, 0.07), rgba(255, 255, 255, 0.92));
  display: grid;
  gap: 10px;
  min-height: 220px;
  position: relative;
}

.methodology-phase-card::before {
  background: linear-gradient(180deg, rgba(35, 104, 162, 0.95), rgba(15, 118, 110, 0.75));
  border-radius: 999px;
  content: "";
  inset: 18px auto 18px 0;
  position: absolute;
  width: 4px;
}

.methodology-phase-card > span,
.methodology-phase-impact label {
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.methodology-phase-card strong {
  color: var(--ink);
  font-size: 18px;
}

.methodology-phase-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.methodology-phase-impact {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.methodology-flow-track {
  display: none;
}

.methodology-flow-lanes {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.methodology-flow-lane {
  border: 1px solid rgba(28, 63, 72, 0.12);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 14px;
}

.methodology-flow-lane header {
  align-items: center;
  display: flex;
}

.methodology-flow-lane header span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.methodology-flow-lane.teal {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.07), rgba(15, 118, 110, 0.02));
}

.methodology-flow-lane.blue {
  background: linear-gradient(180deg, rgba(35, 104, 162, 0.08), rgba(35, 104, 162, 0.02));
}

.methodology-flow-lane.amber {
  background: linear-gradient(180deg, rgba(196, 118, 15, 0.08), rgba(196, 118, 15, 0.02));
}

.methodology-flow-stage-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.methodology-flow-card {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 14px;
  position: relative;
}

.methodology-flow-card strong {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 10px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.methodology-deliverables-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

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

.methodology-outcome-card {
  min-height: 116px;
}

.methodology-compare-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.methodology-compare-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.methodology-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.methodology-trust-badges b {
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.16);
  color: var(--teal);
}

.methodology-next-step-panel {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(31, 46, 56, 0.96) 58%, rgba(24, 70, 66, 0.94)),
    #17202a;
  color: #ffffff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.methodology-next-step-copy {
  display: grid;
  gap: 10px;
}

.methodology-next-step-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.methodology-next-step-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.methodology-next-step-actions article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.methodology-next-step-actions p {
  color: rgba(255, 255, 255, 0.78);
}

.learning-path {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(35, 104, 162, 0.04)),
    #ffffff;
  display: grid;
  gap: 16px;
}

.learning-path-head {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.learning-path-head span,
.architecture-disclosure summary span,
.faq-visual-card span,
.faq-flow-card span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.learning-path-head p,
.architecture-disclosure summary p,
.faq-visual-card p,
.faq-flow-card p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.learning-method {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.learning-method b {
  background: #eef3f4;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 10px;
  padding: 7px 10px;
}

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

.learning-step {
  background: #fbfcfd;
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  height: auto;
  min-height: 132px;
  padding: 12px;
  text-align: left;
}

.learning-step:hover {
  background: #eff7f6;
}

.learning-step strong {
  align-items: center;
  background: var(--teal);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 10px;
  height: 30px;
  justify-content: center;
  width: 34px;
}

.learning-step span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.learning-step small {
  color: var(--muted);
  line-height: 1.35;
}

.faq-visual-overview {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.faq-visual-card,
.faq-flow-card {
  display: grid;
  gap: 12px;
}

.architecture-disclosure {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.architecture-disclosure summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  list-style: none;
  padding: 24px;
}

.architecture-disclosure summary::-webkit-details-marker {
  display: none;
}

.architecture-disclosure summary strong {
  background: var(--teal);
  border-radius: 999px;
  color: white;
  flex: 0 0 auto;
  font-size: 11px;
  padding: 10px 14px;
}

.architecture-disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}

.architecture-image-stage {
  background:
    linear-gradient(90deg, #f4f7f8 0 1px, transparent 1px 100%),
    linear-gradient(#f4f7f8 0 1px, transparent 1px 100%),
    #ffffff;
  background-size: 28px 28px;
  display: grid;
  justify-items: center;
  margin: 0;
  overflow: auto;
  padding: 18px;
}

.architecture-image-stage img {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23, 32, 42, 0.14);
  height: auto;
  max-height: none;
  width: min(948px, 100%);
}

.faq-visual-card img,
.faq-visual-figure img {
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: top center;
  width: 100%;
}

.operating-flow-map {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.flow-lane-labels {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 2fr 1fr;
}

.flow-lane-labels span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  padding: 7px 10px;
  text-align: center;
  text-transform: uppercase;
}

.flow-track {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  position: relative;
}

.flow-track::before {
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--red), var(--amber));
  content: "";
  height: 3px;
  left: 8%;
  position: absolute;
  right: 8%;
  top: 21px;
  z-index: 0;
}

.flow-stage {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: 12px;
  position: relative;
  z-index: 1;
}

.flow-stage b {
  align-items: center;
  background: var(--ink);
  border: 3px solid white;
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 10px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.flow-stage strong {
  color: var(--ink);
  font-size: 12px;
}

.flow-stage p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  margin: 0;
}

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

.knowledge-rail {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
}

.knowledge-rail span {
  background: #eef2f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 850;
  padding: 6px 10px;
}

.faq-rail span {
  color: var(--teal);
}

.knowledge-groups,
.knowledge-group {
  display: grid;
  gap: 14px;
}

.knowledge-group > header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
}

.knowledge-group > header h2 {
  margin: 0;
}

.guide-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.learning-mini-flow {
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.guide-image {
  aspect-ratio: 16 / 9;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: auto;
  object-fit: contain;
  object-position: top center;
  width: 100%;
}

.guide-summary {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.teaching-steps {
  counter-reset: teaching;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  line-height: 1.55;
  list-style: none;
}

.teaching-steps li {
  align-items: start;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 9px;
}

.teaching-steps b {
  align-items: center;
  background: #eef3f4;
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  font-size: 10px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.guide-card button {
  justify-self: start;
}

.check-list {
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
}

.check-list strong {
  color: var(--muted);
  flex-basis: 100%;
  font-size: 10px;
  text-transform: uppercase;
}

.check-list span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
  text-transform: none;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(23, 33, 31, 0.04);
}

.faq-item summary {
  cursor: pointer;
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.faq-item p {
  color: var(--muted);
  line-height: 1.55;
  margin: 12px 0 0;
}

.faq-visual-figure {
  margin: 12px 0 0;
}

.faq-visual-flow {
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
  padding: 10px;
}

.flow-diagram {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-diagram span {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-size: 10px;
  font-weight: 850;
  min-height: 36px;
  padding: 8px 10px;
  position: relative;
}

.flow-diagram span:not(:last-child)::after {
  background: var(--line-strong);
  content: "";
  height: 1px;
  margin-left: 10px;
  width: 18px;
}

.faq-compare-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.faq-compare-grid div {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.faq-compare-grid strong {
  color: var(--teal);
}

.faq-compare-grid span {
  color: var(--muted);
  line-height: 1.4;
}

.faq-category-pill {
  background: #eef2f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  justify-self: start;
  padding: 4px 8px;
  text-transform: uppercase;
}

.faq-detail-list {
  color: var(--ink);
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.faq-detail-list li {
  line-height: 1.45;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 150px) 1fr 36px;
  gap: 10px;
  align-items: center;
  margin: 9px 0;
  min-width: 0;
}

.bar-row span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row div {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar-row i {
  display: block;
  height: 100%;
  background: var(--teal);
}

.record-list {
  display: grid;
  gap: 8px;
}

.record-list button {
  min-height: 66px;
  text-align: left;
  display: grid;
  gap: 5px;
}

.record-list button.selected {
  border-color: var(--teal);
  background: #ecfdf5;
}

.record-list span,
.record-header p {
  color: var(--muted);
  margin: 0;
}

.record-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
  background: var(--surface-2);
  color: var(--ink);
  white-space: nowrap;
}

.badge.green,
.badge.go {
  background: #dcfce7;
  color: var(--green);
}

.badge.red,
.badge.no-go,
.badge.rejected {
  background: #fee2e2;
  color: var(--red);
}

.badge.amber,
.badge.hold {
  background: #fef3c7;
  color: var(--amber);
}

.facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.facts div {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 10px;
  min-width: 0;
}

.facts span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.facts strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 4px;
}

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

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

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

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

.score-grid label {
  background: var(--surface-2);
  padding: 10px;
  border-radius: 6px;
}

.score-grid span {
  color: var(--ink);
}

.toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.json-editor {
  min-height: 360px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.45;
  white-space: pre;
  overflow: auto;
}

.timeline {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.timeline div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-left: 3px solid var(--teal);
  background: var(--surface-2);
  padding: 8px 10px;
  border-radius: 0 6px 6px 0;
}

.timeline span {
  color: var(--muted);
}

.execution-cockpit-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 48%),
    linear-gradient(115deg, #121a22 0%, #1f3038 54%, #26382f 100%);
  border: 1px solid #2c3945;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #f8fbfc;
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.execution-cockpit-panel::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
}

.execution-cockpit-panel > * {
  position: relative;
}

.execution-cockpit-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.execution-cockpit-head span,
.execution-health-panel span {
  color: #f0b6ac;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.execution-cockpit-head h2 {
  color: #ffffff;
  font-size: 24px;
  margin: 4px 0;
}

.execution-cockpit-head p,
.execution-health-panel small {
  color: #d4dee7;
  line-height: 1.45;
  margin: 0;
}

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

.execution-command-metric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 13px;
}

.execution-command-metric span {
  color: #b8c7d4;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.execution-command-metric strong {
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.execution-command-metric small {
  align-self: end;
  color: #d4dee7;
  line-height: 1.35;
}

.execution-health-panel {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr);
  padding: 14px;
}

.execution-health-panel strong {
  color: #ffffff;
  display: block;
  line-height: 1.25;
  margin: 4px 0;
}

.execution-analytics-panel {
  display: grid;
  gap: 14px;
}

.execution-analytics-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.execution-analytics-metric {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 11px 12px;
}

.execution-analytics-metric.ok {
  border-left-color: var(--green);
}

.execution-analytics-metric.warn {
  border-left-color: var(--amber);
}

.execution-analytics-metric.danger {
  background: var(--danger-soft);
  border-color: var(--danger-line);
  border-left-color: var(--danger);
}

.execution-analytics-metric span,
.mini-section-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.execution-analytics-metric strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.execution-analytics-metric small {
  align-self: end;
  color: var(--muted);
}

.execution-analytics-columns {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1.15fr 1fr;
}

.execution-analytics-card {
  align-content: start;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 12px;
}

.mini-section-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.mini-section-head strong {
  color: var(--ink);
}

.execution-owner-grid,
.execution-stage-readiness,
.execution-sla-list {
  display: grid;
  gap: 8px;
}

.execution-owner-row,
.execution-readiness-row,
.execution-sla-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.execution-owner-row,
.execution-readiness-row {
  align-items: center;
  display: grid;
  gap: 4px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.execution-owner-row span,
.execution-readiness-row strong,
.execution-sla-item strong {
  color: var(--ink);
  font-weight: 850;
}

.execution-owner-row strong {
  color: var(--teal);
  font-size: 18px;
}

.execution-owner-row small,
.execution-readiness-row span,
.execution-sla-item span,
.execution-sla-item small {
  color: var(--muted);
  line-height: 1.35;
}

.execution-owner-row small {
  grid-column: 1 / -1;
}

.execution-readiness-row {
  border-left: 4px solid var(--line-strong);
}

.execution-readiness-row.ready {
  border-left-color: var(--teal);
}

.execution-readiness-row.locked {
  background: var(--danger-soft);
  border-color: var(--danger-line);
  border-left-color: var(--danger);
}

.execution-readiness-row.complete {
  border-left-color: var(--green);
}

.execution-readiness-row b {
  background: #eef7f4;
  border: 1px solid #b7d9d0;
  border-radius: 999px;
  color: var(--green);
  padding: 6px 8px;
}

.execution-sla-item {
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.execution-sla-item.warn {
  border-left: 4px solid var(--amber);
}

.execution-sla-item.danger {
  background: var(--danger-soft);
  border-color: var(--danger-line);
  border-left: 4px solid var(--danger);
}

.execution-sla-item.locked {
  background: #eef2f5;
  border-left: 4px solid var(--danger);
  color: #5c6978;
}

.execution-sla-item:hover,
.execution-sla-item:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 14px 30px rgba(23, 32, 42, 0.12);
  transform: translateY(-1px);
}

.execution-dependency-map {
  display: grid;
  gap: 14px;
}

.dependency-map-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dependency-map-metric {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 11px 12px;
}

.dependency-map-metric.ok {
  border-left-color: var(--green);
}

.dependency-map-metric.warn {
  background: #fff8eb;
  border-color: #f2c46d;
  border-left-color: var(--amber);
}

.dependency-map-metric span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.dependency-map-metric strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.dependency-map-metric small {
  color: var(--muted);
}

.dependency-map-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(230px, 0.9fr) minmax(360px, 1.4fr) minmax(230px, 0.9fr);
}

.dependency-map-card {
  align-content: start;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.dependency-map-list,
.dependency-chain-list {
  display: grid;
  gap: 8px;
}

.dependency-map-row,
.dependency-chain-row {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.dependency-map-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 72px;
  padding: 10px;
}

.dependency-map-row b,
.dependency-chain-row b {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 32px;
  min-width: 32px;
  padding: 6px;
}

.dependency-map-row.blocker b,
.dependency-chain-row b {
  background: #fff1d2;
  border: 1px solid #f2c46d;
  color: #a05a00;
}

.dependency-map-row.ready b {
  background: #eef7f4;
  border: 1px solid #b7d9d0;
  color: var(--green);
}

.dependency-map-row strong,
.dependency-chain-row strong {
  color: var(--ink);
  display: block;
  line-height: 1.25;
}

.dependency-map-row small,
.dependency-chain-row span,
.dependency-chain-row p {
  color: var(--muted);
  line-height: 1.35;
}

.dependency-chain-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.9fr) auto;
  min-height: 82px;
  padding: 10px;
}

.dependency-chain-row p {
  margin: 0;
}

.dependency-map-row:hover,
.dependency-map-row:focus-visible,
.dependency-chain-row:hover,
.dependency-chain-row:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 14px 30px rgba(23, 32, 42, 0.12);
  transform: translateY(-1px);
}

.dependency-map-empty {
  background: #f7faf9;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  margin: 0;
  padding: 14px;
}

@media (max-width: 1160px) {
  .execution-analytics-columns {
    grid-template-columns: 1fr;
  }

  .dependency-map-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .execution-analytics-grid,
  .dependency-map-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .execution-analytics-grid,
  .dependency-map-summary,
  .dependency-chain-row {
    grid-template-columns: 1fr;
  }
}

.execution-progress-track,
.stage-progress-track,
.backlog-card-progress {
  background: rgba(35, 104, 162, 0.12);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.execution-progress-track i,
.stage-progress-track i,
.backlog-card-progress i {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  display: block;
  height: 100%;
}

.execution-plan-control {
  display: grid;
  gap: 14px;
}

.plan-control-head {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(35, 104, 162, 0.05)),
    #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.plan-control-head span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-control-head h2 {
  margin: 4px 0;
}

.plan-control-head p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.plan-status-pill {
  background: #eef2f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  flex: 0 0 auto;
  padding: 9px 12px;
}

.plan-status-pill.approved,
.plan-status-pill.in-execution,
.plan-status-pill.completed {
  background: #e6f4ef;
  border-color: #9ccfc0;
  color: var(--green);
}

.plan-status-pill.pending-approval,
.plan-status-pill.hold {
  background: #fff7e6;
  border-color: #e8c174;
  color: var(--amber);
}

.plan-status-pill.rejected {
  background: #fff0ed;
  border-color: #e7afa5;
  color: var(--red);
}

.business-process-panel {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(35, 104, 162, 0.04)),
    #ffffff;
}

.business-process-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
}

.business-process-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 196px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.business-process-card::before {
  background: var(--line-strong);
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.business-process-card.complete::before {
  background: var(--green);
}

.business-process-card.active::before {
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.business-process-card.pending::before {
  background: var(--amber);
}

.business-process-card span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.business-process-card strong {
  color: var(--ink);
  display: block;
  font-size: 16px;
  line-height: 1.2;
  margin-top: 4px;
}

.business-process-card p {
  color: var(--muted);
  line-height: 1.4;
  margin: 8px 0 0;
}

.business-phase-tags {
  align-content: start;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.business-phase-tags b {
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 10px;
  padding: 6px 8px;
}

.business-process-card small {
  align-self: end;
  color: var(--muted);
  font-weight: 800;
}

.plan-facts,
.stage-gate-grid,
.plan-action-grid {
  display: grid;
  gap: 10px;
}

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

.plan-facts div {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

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

.plan-action-form {
  align-items: end;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.plan-action-form.danger button {
  border-color: var(--red);
  color: var(--red);
  font-weight: 850;
}

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

.stage-gate {
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.stage-gate.ready {
  border-left-color: var(--teal);
}

.stage-gate.blocked {
  background: linear-gradient(180deg, #ffffff 0%, var(--danger-soft) 100%);
  border-color: var(--danger-line);
  border-left-color: var(--danger);
}

.stage-gate div {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.stage-gate span,
.stage-gate small,
.approval-history span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.approval-history {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.approval-flow-panel {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(35, 104, 162, 0.06)),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.approval-flow-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.approval-flow-head strong {
  color: var(--ink);
  display: block;
  font-size: 16px;
}

.approval-flow-head span {
  color: var(--muted);
  display: block;
  line-height: 1.4;
  margin-top: 4px;
}

.approval-flow-head b {
  background: #fff8e7;
  border: 1px solid #f0c56b;
  border-radius: 999px;
  color: #9a5d00;
  padding: 8px 11px;
  white-space: nowrap;
}

.approval-flow-track {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.approval-flow-step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 160px;
  padding: 12px;
}

.approval-flow-step > b {
  align-items: center;
  background: #eef2f5;
  border-radius: 999px;
  color: var(--ink);
  display: inline-grid;
  font-size: 10px;
  height: 28px;
  justify-items: center;
  width: 28px;
}

.approval-flow-step span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.approval-flow-step strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
  line-height: 1.25;
  margin-top: 5px;
}

.approval-flow-step p,
.approval-flow-step small {
  color: var(--muted);
  display: block;
  line-height: 1.35;
  margin: 8px 0 0;
}

.approval-flow-step.completed {
  border-top-color: var(--green);
}

.approval-flow-step.pending {
  border-top-color: var(--teal);
}

.approval-flow-step.blocked {
  background: linear-gradient(180deg, #ffffff 0%, var(--danger-soft) 100%);
  border-color: var(--danger-line);
  border-top-color: var(--danger);
  box-shadow: var(--danger-shadow);
}

.approval-flow-step.rejected {
  border-top-color: var(--red);
}

.approval-flow-step.on-hold {
  border-top-color: var(--amber);
}

.execution-stage-cockpit,
.managed-backlog-panel {
  display: grid;
  gap: 14px;
}

.execution-stage-cockpit {
  overflow-x: auto;
}

.stage-cockpit-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(var(--stage-count, 5), minmax(300px, 1fr));
  min-width: var(--stage-grid-min, 1548px);
  width: 100%;
}

.stage-cockpit-card {
  align-content: start;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-rows: auto auto auto auto auto 1fr;
  min-height: 430px;
  padding: 14px;
}

.stage-cockpit-card.ready {
  border-top-color: var(--teal);
}

.stage-cockpit-card.blocked {
  border-top-color: var(--amber);
}

.stage-cockpit-card.locked {
  background: linear-gradient(180deg, #ffffff 0%, var(--danger-soft) 100%);
  border-color: var(--danger-line);
  border-top-color: var(--danger);
  box-shadow: var(--danger-shadow);
}

.stage-cockpit-card.complete {
  border-top-color: var(--green);
}

.stage-cockpit-card header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.stage-cockpit-card header span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-cockpit-card.ready header span {
  color: var(--teal);
}

.stage-cockpit-card.locked header span {
  background: #ffffff;
  border: 1px solid var(--danger-line);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(217, 45, 32, 0.1);
  color: var(--danger-deep);
  padding: 5px 8px;
}

.stage-cockpit-card.complete header span {
  color: var(--green);
}

.stage-cockpit-card header strong {
  display: block;
  font-size: 16px;
  margin-top: 4px;
}

.stage-cockpit-card header b {
  background: #eef7f4;
  border: 1px solid #b7d9d0;
  border-radius: 999px;
  color: var(--green);
  padding: 7px 9px;
}

.stage-lock-note {
  background: #e8edf2;
  border: 1px dashed #b9c3ce;
  border-radius: 8px;
  color: #526173;
  font-size: 10px;
  line-height: 1.35;
  margin: 0;
  min-height: 74px;
  padding: 9px 10px;
}

.stage-lock-note.placeholder {
  visibility: hidden;
}

.stage-facts {
  display: grid;
  gap: 8px;
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stage-facts div,
.stage-filter-fact {
  align-content: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  min-height: 76px;
  padding: 8px;
}

.stage-filter-fact {
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
}

.stage-filter-fact:hover,
.stage-filter-fact:focus-visible,
.stage-filter-fact.active,
.stage-status-filter-card.active {
  background: #eef7f4;
  border-color: #8fc9ba;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.1);
}

.stage-filter-fact.active {
  border-left: 4px solid var(--teal);
}

.stage-facts span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 850;
}

.stage-facts strong {
  color: var(--ink);
  display: block;
  margin-top: 4px;
}

.stage-status-filter-card {
  gap: 5px;
}

.stage-status-filter-card select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  min-height: 28px;
  padding: 4px 6px;
  width: 100%;
}

.stage-task-list {
  align-content: start;
  display: grid;
  gap: 8px;
}

.stage-cockpit-card.expanded .stage-task-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.stage-list-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 30px;
}

.stage-list-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.stage-list-head button {
  background: #111922;
  border-color: #2c3945;
  color: #ffffff;
  min-height: 30px;
  padding: 6px 9px;
  white-space: nowrap;
}

.dependency-board-toolbar {
  align-items: end;
  display: grid;
  gap: 5px;
  justify-items: end;
}

.dependency-board-toolbar button {
  align-items: center;
  background: rgba(185, 93, 71, 0.1);
  border-color: rgba(185, 93, 71, 0.32);
  color: #8e3f2f;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  text-transform: uppercase;
}

.dependency-board-toolbar button span {
  background: rgba(185, 93, 71, 0.2);
  border: 1px solid rgba(185, 93, 71, 0.36);
  border-radius: 999px;
  height: 9px;
  width: 9px;
}

.dependency-board-toolbar button.active {
  background: rgba(185, 93, 71, 0.9);
  border-color: rgba(185, 93, 71, 0.95);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(185, 93, 71, 0.18);
}

.dependency-board-toolbar button.active span {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.82);
}

.dependency-board-toolbar small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.dependency-board-legend {
  align-items: center;
  background: rgba(185, 93, 71, 0.06);
  border: 1px solid rgba(185, 93, 71, 0.16);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
}

.dependency-board-legend span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 10px;
  font-weight: 850;
  gap: 6px;
}

.dependency-board-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 0;
  width: 24px;
}

.dependency-board-legend i.same-phase {
  border-top: 2px solid rgba(185, 93, 71, 0.88);
}

.dependency-board-legend i.inherited {
  border-top: 2px dashed rgba(185, 93, 71, 0.72);
}

.dependency-board-legend i.ready {
  border-top: 2px solid var(--teal);
}

.dependency-board-legend i.blocked {
  border-top: 2px solid var(--danger);
}

.task-status-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -2px 0 8px;
}

.task-status-legend span {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 10px;
  font-weight: 850;
  gap: 6px;
  min-height: 28px;
  padding: 5px 8px;
}

.task-status-legend i {
  background: var(--task-status-color, var(--task-status-backlog));
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.task-status-legend .status-backlog {
  --task-status-color: var(--task-status-backlog);
}

.task-status-legend .status-ready {
  --task-status-color: var(--task-status-ready);
}

.task-status-legend .status-in-progress {
  --task-status-color: var(--task-status-in-progress);
}

.task-status-legend .status-blocked {
  --task-status-color: var(--task-status-blocked);
}

.task-status-legend .status-done {
  --task-status-color: var(--task-status-done);
}

.task-status-legend .status-accepted {
  --task-status-color: var(--task-status-accepted);
}

.task-status-legend .status-cancelled {
  --task-status-color: var(--task-status-cancelled);
}

.task-status-legend .status-not-applicable {
  --task-status-color: var(--task-status-not-applicable);
}

.dependency-board-shell {
  position: relative;
}

.dependency-board-shell.active {
  overflow: auto;
  padding: 1px;
}

.dependency-board-shell.active .stage-cockpit-grid,
.dependency-board-shell.active .kanban {
  overflow: visible;
  padding-bottom: 16px;
}

.dependency-overlay-svg {
  display: none;
}

.dependency-board-shell.active .dependency-overlay-svg {
  display: block;
  inset: 0 auto auto 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  z-index: 5;
}

.dependency-overlay-svg marker path {
  fill: rgba(185, 93, 71, 0.78);
}

.dependency-line {
  fill: none;
  marker-end: url(#dependency-arrow);
  opacity: 0.3;
  stroke: rgba(185, 93, 71, 0.7);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dependency-line.inherited {
  stroke-dasharray: 7 6;
}

.dependency-line.ready {
  stroke: rgba(15, 118, 110, 0.72);
}

.dependency-line.blocked {
  stroke: rgba(217, 45, 32, 0.72);
}

.dependency-line.related {
  opacity: 0.9;
  stroke-width: 3;
}

.dependency-line.dimmed {
  opacity: 0.07;
}

.dependency-board-shell.active .task-card {
  position: relative;
  z-index: 6;
}

.task-card.dependency-focus,
.task-card.dependency-related {
  border-color: rgba(185, 93, 71, 0.72);
  box-shadow: 0 14px 32px rgba(185, 93, 71, 0.15);
}

.task-card.dependency-focus {
  background: #fff9f6;
}

.task-card.dependency-related {
  background: #fffaf8;
}

.task-card.dependency-muted {
  opacity: 0.52;
}

.execution-board {
  display: grid;
  gap: 12px;
}

.execution-board h2 {
  margin-bottom: 10px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(6, minmax(190px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.kanban-column {
  min-height: 220px;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.kanban-column h3 {
  display: flex;
  justify-content: space-between;
  margin-top: 0;
}

.task-card {
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--task-status-color, var(--task-status-backlog));
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 8px;
  min-height: 96px;
  text-align: left;
  width: 100%;
}

.task-card strong,
.task-row strong {
  line-height: 1.25;
}

.task-card span,
.task-card small,
.task-row span {
  color: var(--muted);
}

.task-card.status-backlog,
.backlog-task-card.status-backlog {
  --task-status-color: var(--task-status-backlog);
}

.task-card.status-ready,
.backlog-task-card.status-ready {
  --task-status-color: var(--task-status-ready);
}

.task-card.status-in-progress,
.backlog-task-card.status-in-progress {
  --task-status-color: var(--task-status-in-progress);
}

.task-card.status-blocked,
.backlog-task-card.status-blocked {
  --task-status-color: var(--task-status-blocked);
}

.task-card.status-done,
.backlog-task-card.status-done {
  --task-status-color: var(--task-status-done);
}

.task-card.status-accepted,
.backlog-task-card.status-accepted {
  --task-status-color: var(--task-status-accepted);
}

.task-card.status-cancelled,
.backlog-task-card.status-cancelled {
  --task-status-color: var(--task-status-cancelled);
}

.task-card.status-not-applicable,
.backlog-task-card.status-not-applicable {
  --task-status-color: var(--task-status-not-applicable);
}

.task-card.locked,
.backlog-task-card.locked {
  background: #eef2f5;
  border-color: #c7d0da;
  border-left-color: var(--task-status-color, var(--task-status-blocked));
  color: #5c6978;
}

.task-card.locked strong,
.backlog-task-card.locked strong {
  color: #5c6978;
}

.task-card:hover,
.task-card:focus-visible,
.backlog-task-card:hover,
.backlog-task-card:focus-visible {
  border-color: var(--blue);
  border-left-color: var(--task-status-color, var(--task-status-backlog));
  box-shadow: 0 14px 30px rgba(23, 32, 42, 0.12);
  transform: translateY(-1px);
}

.task-card.stage {
  margin-bottom: 0;
  min-height: 88px;
}

.backlog-heading {
  align-items: start;
}

.backlog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.backlog-filter-bar button {
  min-height: 34px;
  padding: 7px 10px;
}

.backlog-filter-bar button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.backlog-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.backlog-summary-strip span {
  align-items: center;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 8px;
  padding: 7px 9px;
}

.backlog-summary-strip b {
  color: var(--ink);
}

.managed-backlog-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.backlog-task-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--task-status-color, var(--task-status-backlog));
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 10px;
  min-height: 176px;
  padding: 13px;
  text-align: left;
}

.backlog-task-card strong {
  display: block;
  line-height: 1.25;
  margin-bottom: 5px;
}

.backlog-task-card span,
.backlog-task-card small {
  color: var(--muted);
  line-height: 1.35;
}

.backlog-task-card small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.backlog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.locked-pill {
  background: var(--danger-soft) !important;
  border-color: var(--danger-line) !important;
  color: var(--danger-deep) !important;
  box-shadow: 0 6px 14px rgba(217, 45, 32, 0.1);
}

.locked-inline-pill {
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  margin-right: 6px;
  padding: 4px 6px;
  text-transform: uppercase;
}

.task-card .locked-inline-pill {
  color: var(--danger-deep);
}

.dependency-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  margin-right: 6px;
  padding: 4px 6px;
  text-transform: uppercase;
}

.dependency-pill.ready {
  background: #eef7f4;
  border: 1px solid #b7d9d0;
  color: var(--green);
}

.dependency-pill.blocked {
  background: #fff7e6;
  border: 1px solid #f2c46d;
  color: #a05a00;
}

.backlog-card-meta span {
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 7px;
}

.backlog-task-card > b {
  color: var(--teal);
  font-size: 10px;
  text-transform: uppercase;
}

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

.gantt-row {
  display: grid;
  grid-template-columns: minmax(130px, 190px) 1fr 98px;
  align-items: center;
  gap: 10px;
}

.gantt-row span,
.gantt-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-row div {
  height: 18px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.gantt-row i {
  display: block;
  height: 100%;
  background: var(--blue);
}

.task-table {
  display: grid;
  gap: 8px;
}

.task-row {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) 130px minmax(150px, 1fr) 86px 145px 96px 122px minmax(150px, 1fr) 82px 70px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.task-row > div {
  min-width: 0;
}

.task-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.task-row input,
.task-row select,
.task-row button {
  min-height: 34px;
  padding: 6px 8px;
}

.report-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.admin-workspace {
  gap: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-command-center {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 44%),
    linear-gradient(115deg, #151b22 0%, #21303a 48%, #26322e 100%);
  border: 1px solid #2c3945;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #f7fafc;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.admin-command-center::before,
.requirement-console::before {
  background: linear-gradient(90deg, var(--red), var(--blue), var(--teal), var(--amber));
  content: "";
  height: 3px;
  inset: 0 0 auto;
  position: absolute;
}

.admin-command-copy span {
  color: #f0b6ac;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-command-copy h1 {
  font-size: 22px;
  margin: 6px 0;
}

.admin-command-copy p {
  color: #cfd8e3;
  line-height: 1.4;
  margin-bottom: 0;
}

.admin-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.admin-status-row b {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #edf2f7;
  font-size: 10px;
  padding: 6px 9px;
}

.admin-command-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-command-metrics article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 10px;
}

.admin-command-metrics span,
.admin-command-metrics small {
  color: #cfd8e3;
}

.admin-command-metrics small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-metrics span {
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-command-metrics strong {
  font-size: 18px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-toolbar {
  margin-bottom: 0;
}

.admin-action-strip {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.admin-action-strip button:first-child {
  background: #eef3f4;
  border-color: var(--line-strong);
  font-weight: 850;
}

.admin-focus-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(280px, 1.1fr) minmax(240px, 0.95fr) minmax(240px, 0.95fr);
}

.admin-focus-card {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 34%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(23, 32, 42, 0.06);
  display: grid;
  gap: 9px;
  min-height: 168px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.admin-focus-card::before {
  background: linear-gradient(180deg, var(--teal), var(--blue));
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 3px;
}

.admin-focus-card.primary {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.06)),
    #ffffff;
}

.admin-focus-card span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-focus-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.admin-focus-card small {
  color: var(--muted);
  line-height: 1.35;
  min-height: 38px;
}

.admin-focus-card > button,
.admin-card-actions {
  align-self: end;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-mini-facts {
  align-items: baseline;
  background: #f4f8f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 7px;
  justify-self: start;
  padding: 7px 9px;
}

.admin-mini-facts b {
  color: var(--teal);
  font-size: 16px;
}

.admin-mini-facts em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-auth-card {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(199, 70, 52, 0.08), rgba(15, 118, 110, 0.04)),
    white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
}

.admin-auth-card span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-auth-card h2 {
  margin: 4px 0;
}

.admin-auth-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.admin-switch {
  align-items: center;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
  grid-template-columns: none;
  min-width: 126px;
  padding: 7px 10px 7px 7px;
}

.admin-switch input {
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  position: absolute;
}

.admin-switch span {
  background: #aeb8c2;
  border-radius: 999px;
  display: inline-flex;
  height: 28px;
  letter-spacing: 0;
  position: relative;
  text-transform: none;
  transition: background 0.18s ease;
  width: 52px;
}

.admin-switch span::after {
  background: white;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(23, 32, 42, 0.22);
  content: "";
  height: 22px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform 0.18s ease;
  width: 22px;
}

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

.admin-switch input:checked + span::after {
  transform: translateX(24px);
}

.admin-switch strong {
  color: var(--ink);
  font-size: 11px;
  min-width: 28px;
}

.admin-switch.compact {
  min-width: 98px;
  padding: 5px 9px 5px 5px;
}

.admin-switch.compact span {
  height: 24px;
  width: 46px;
}

.admin-switch.compact span::after {
  height: 18px;
  width: 18px;
}

.admin-switch.compact input:checked + span::after {
  transform: translateX(22px);
}

.admin-module-hub {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(23, 32, 42, 0.06);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-filter-tabs {
  align-items: center;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
}

.admin-filter-tabs button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.admin-filter-tabs button.active {
  background: white;
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.08);
  color: var(--ink);
}

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

.admin-module-card {
  background:
    linear-gradient(180deg, #ffffff, #f9fbfc);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 238px;
  padding: 14px;
  position: relative;
}

.admin-module-card::before {
  background: var(--blue);
  border-radius: 8px 8px 0 0;
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.admin-module-card.lowcode::before {
  background: var(--teal);
}

.admin-module-card.interface::before {
  background: var(--blue);
}

.admin-module-card.governance::before {
  background: var(--red);
}

.admin-module-card.active {
  background: #f5fbfa;
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.24);
}

.admin-module-top,
.admin-module-actions,
.admin-domain-chips {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-module-top {
  justify-content: space-between;
}

.admin-module-icon {
  align-items: center;
  background: #17202a;
  border-radius: 8px;
  color: #f7fafc;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.admin-module-icon svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 18px;
}

.admin-module-type {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  padding: 6px 9px;
}

.admin-module-card h3 {
  color: var(--ink);
  font-size: 16px;
  margin: 0;
}

.admin-module-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.admin-module-signal {
  align-items: center;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 10px;
}

.admin-module-signal strong {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  display: inline-flex;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  min-width: 42px;
}

.admin-module-signal span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.admin-module-facts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-module-facts div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.admin-module-facts strong,
.admin-module-facts span {
  display: block;
}

.admin-module-facts strong {
  color: var(--ink);
  font-size: 16px;
}

.admin-module-facts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  margin-top: 3px;
  text-transform: uppercase;
}

.admin-domain-chips {
  align-content: start;
  min-height: 66px;
}

.admin-domain-chips button,
.admin-domain-chips span {
  background: #eef2f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  height: auto;
  min-height: 26px;
  padding: 5px 8px;
}

.admin-domain-chips button.active {
  background: #e5f4f1;
  border-color: var(--teal);
  color: var(--teal);
}

.admin-module-actions {
  align-self: end;
  justify-content: end;
  margin-top: auto;
}

.api-admin-panel {
  display: grid;
  gap: 14px;
}

.api-command-surface {
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(31, 46, 56, 0.96) 58%, rgba(27, 71, 67, 0.94)),
    #17202a;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.api-command-surface::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 68px);
  content: "";
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  position: absolute;
}

.api-command-copy,
.api-command-actions {
  position: relative;
  z-index: 1;
}

.api-command-copy {
  display: grid;
  gap: 10px;
}

.api-command-copy > span {
  color: #f3b8ae;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.api-command-copy h2,
.api-command-copy p {
  margin: 0;
}

.api-command-copy h2 {
  color: #ffffff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.api-command-copy p {
  color: #d9e4ec;
  line-height: 1.45;
  max-width: 760px;
}

.api-command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.api-command-meta b {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #eef6f7;
  font-size: 10px;
  font-weight: 850;
  padding: 7px 10px;
  text-transform: uppercase;
}

.api-command-actions {
  align-content: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.api-command-actions button {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

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

.api-admin-summary div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.api-admin-summary span,
.api-admin-summary strong {
  display: block;
}

.api-admin-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.api-admin-summary strong {
  color: var(--ink);
  font-size: 16px;
  margin-top: 4px;
}

.api-filter-bar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(130px, 0.75fr));
  padding: 12px;
}

.api-filter-bar label {
  gap: 5px;
  min-width: 0;
}

.api-filter-bar span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.api-filter-bar input,
.api-filter-bar select {
  min-width: 0;
}

.api-group-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.api-group-strip span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  padding: 6px 9px;
}

.api-group-strip b {
  color: var(--teal);
}

.api-governance-strip span {
  background: #fbf7f2;
  border-color: rgba(180, 83, 9, 0.18);
  color: #7c4a18;
}

.api-governance-strip b {
  color: #a35a10;
}

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

.api-endpoint-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.api-endpoint-top {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.api-endpoint-card.method-post {
  border-left-color: var(--teal);
}

.api-endpoint-card.method-put,
.api-endpoint-card.method-patch {
  border-left-color: var(--amber);
}

.api-endpoint-card.method-delete {
  border-left-color: var(--red);
}

.api-endpoint-card.posture-admin_governed {
  background: linear-gradient(135deg, #ffffff, #fff7f5);
  border-left-color: #d35c45;
}

.api-endpoint-card.posture-live_gated {
  background: linear-gradient(135deg, #ffffff, #fef4e6);
  border-left-color: #b45309;
}

.api-endpoint-card.posture-runtime_governed {
  background: linear-gradient(135deg, #ffffff, #eefaf7);
  border-left-color: var(--teal);
}

.api-endpoint-card.posture-download {
  background: linear-gradient(135deg, #ffffff, #f2f7ff);
  border-left-color: var(--blue);
}

.api-endpoint-card span,
.api-endpoint-card b {
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.api-endpoint-card span {
  background: #eef3f4;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 5px 8px;
}

.api-endpoint-card b {
  background: #eef7f5;
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: var(--teal);
  padding: 5px 8px;
}

.api-endpoint-card strong {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

.api-endpoint-card p {
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.api-governance-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.api-governance-row span {
  background: #f7f9fa;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 5px 8px;
}

.api-endpoint-card.posture-live_gated .api-governance-row span:first-child {
  background: #fff3e0;
  border-color: rgba(180, 83, 9, 0.2);
  color: #9a4d06;
}

.api-endpoint-card.posture-admin_governed .api-governance-row span:first-child {
  background: #fff1ee;
  border-color: rgba(211, 92, 69, 0.22);
  color: #b33222;
}

.api-endpoint-card.posture-runtime_governed .api-governance-row span:first-child {
  background: #e8f7f4;
  border-color: rgba(15, 118, 110, 0.2);
  color: var(--teal);
}

.api-permission-hint {
  background: rgba(15, 24, 32, 0.05);
  border-radius: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
  padding: 7px 8px;
}

.api-openapi-raw {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.api-openapi-raw summary {
  cursor: pointer;
  font-weight: 850;
}

.api-openapi-raw pre {
  background: #101820;
  border-radius: 8px;
  color: #eef6f7;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
}

.admin-modal-backdrop {
  backdrop-filter: blur(12px);
  background:
    radial-gradient(circle at 18% 16%, rgba(15, 118, 110, 0.2), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(37, 99, 235, 0.16), transparent 28%),
    rgba(10, 17, 24, 0.64);
  z-index: 24;
}

.admin-section-modal {
  background: #f7f9fb;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 95px rgba(4, 12, 20, 0.42);
  max-height: min(90dvh, 980px);
  width: min(1180px, 94vw);
}

.admin-section-modal.inspector {
  width: min(920px, 94vw);
}

.admin-modal-header {
  background:
    linear-gradient(135deg, #101820, #1e2c36 58%, #25362f);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #f7fafc;
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-modal-header span {
  color: #f0b6ac;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-modal-header h2 {
  color: #ffffff;
}

.admin-modal-header p {
  color: #cfdae4;
}

.admin-modal-header button {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.admin-modal-body {
  max-height: calc(min(90dvh, 980px) - 88px);
  overflow: auto;
  padding: 16px;
}

.admin-section-modal .admin-editor-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: none;
  margin: 0;
}

.admin-modal-domain-cloud {
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
  max-height: 132px;
  overflow: auto;
  padding: 8px;
}

.admin-modal-domain-cloud button {
  background: white;
  border-color: var(--line);
  color: var(--ink);
  font-size: 10px;
  height: auto;
  min-height: 30px;
  padding: 6px 9px;
}

.admin-modal-domain-cloud button.active {
  background: #e7f5f2;
  border-color: var(--teal);
  color: var(--teal);
}

.access-admin-workbench {
  display: grid;
  gap: 12px;
}

.access-command-surface {
  background:
    radial-gradient(circle at top right, rgba(208, 78, 55, 0.24), transparent 34%),
    linear-gradient(135deg, #101820 0%, #1d2e34 54%, #273a32 100%);
  border: 1px solid #2b3a45;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.access-command-surface::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
  position: absolute;
}

.access-command-surface > * {
  position: relative;
}

.access-command-surface span {
  color: #f0b6ac;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-command-surface h2 {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.1;
  margin: 4px 0;
}

.access-command-surface p {
  color: #d9e4ec;
  line-height: 1.45;
  margin: 0;
}

.access-command-metrics,
.access-summary-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.access-command-metrics div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 10px;
}

.access-command-metrics span {
  color: #b8c7d4;
}

.access-command-metrics strong {
  color: #ffffff;
  font-size: 22px;
}

.access-domain-tabs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
}

.access-domain-tabs button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 10px;
  text-align: left;
}

.access-domain-tabs button.active {
  background:
    linear-gradient(135deg, rgba(208, 78, 55, 0.13), rgba(15, 118, 110, 0.08)),
    #ffffff;
  border-color: rgba(208, 78, 55, 0.45);
  box-shadow: 0 14px 28px rgba(23, 32, 42, 0.09);
}

.access-domain-tabs button > span {
  align-items: center;
  background: rgba(208, 78, 55, 0.1);
  border: 1px solid rgba(208, 78, 55, 0.16);
  border-radius: 8px;
  color: var(--red);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.access-domain-tabs svg,
.access-icon-large svg,
.access-timeline-row > span svg,
.access-group-card > span svg,
.access-profile-card > span svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 18px;
}

.access-domain-tabs strong {
  font-size: 12px;
}

.access-domain-tabs small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.access-editor-toolbar {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.access-editor-toolbar span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-editor-toolbar h3,
.access-editor-toolbar p {
  margin: 0;
}

.access-editor-toolbar p {
  color: var(--muted);
  line-height: 1.4;
  margin-top: 3px;
}

.access-toolbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.access-management-console {
  display: grid;
  gap: 12px;
}

.access-filter-bar {
  align-items: end;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(150px, 0.4fr));
  padding: 10px;
}

.access-filter-bar.compact {
  grid-template-columns: minmax(280px, 1fr);
}

.access-search-field div {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.access-search-field .icon-action {
  height: 42px;
  width: 42px;
}

.access-search-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.access-search-button svg,
.access-picker-search-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.access-search-button:hover,
.access-search-button:focus-visible {
  background: #17202a;
  border-color: #17202a;
  color: #ffffff;
}

.access-summary-grid div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 10px;
}

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

.timeline-summary-grid div {
  min-height: 82px;
  width: 100%;
}

.access-summary-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-summary-grid strong {
  color: var(--ink);
  font-size: 22px;
}

.access-split-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(300px, 0.5fr) minmax(0, 1fr);
}

.access-record-editor.full {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.access-record-list,
.access-record-editor,
.access-editor-card,
.access-permission-family,
.access-timeline-row {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(23, 32, 42, 0.045);
}

.access-record-list,
.access-record-editor,
.access-editor-card {
  padding: 12px;
}

.access-list-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.access-list-head span {
  background: #eef7f5;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  padding: 5px 8px;
}

.access-user-cards,
.access-group-cards,
.access-timeline-list {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  min-width: 0;
}

.access-user-card {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 74px;
  padding: 9px;
  text-align: left;
}

.access-user-card.active,
.access-user-card:hover,
.access-user-card:focus-visible,
.access-group-card.active,
.access-profile-card.active {
  border-left-color: var(--red);
  box-shadow: 0 12px 24px rgba(23, 32, 42, 0.08);
}

.access-avatar {
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.13), rgba(208, 78, 55, 0.12));
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  color: var(--teal);
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  overflow: hidden;
  width: 38px;
}

.access-avatar.large {
  font-size: 18px;
  height: 58px;
  width: 58px;
}

.access-avatar.photo {
  background: #eef3f4;
  color: transparent;
}

.access-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.access-user-card strong,
.access-user-card small {
  display: block;
}

.access-user-card small,
.access-editor-head p,
.access-check-card small,
.access-timeline-row small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.access-user-card b,
.access-status-pill {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  padding: 5px 8px;
}

.access-user-card b.ok,
.access-status-pill.ok {
  background: #ecf8f2;
  border: 1px solid rgba(27, 127, 72, 0.18);
  color: var(--green);
}

.access-user-card b.warn,
.access-status-pill.warn {
  background: #fff2ef;
  border: 1px solid rgba(208, 78, 55, 0.2);
  color: var(--red);
}

.access-lock-toggle {
  align-items: center;
  background: #fff8f6;
  border: 1px solid rgba(208, 78, 55, 0.22);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  grid-template-columns: auto 36px minmax(0, 0.32fr) minmax(0, 1fr);
  margin-top: 12px;
  padding: 10px;
}

.access-lock-toggle input {
  accent-color: var(--red);
  height: 16px;
  width: 16px;
}

.access-lock-toggle span {
  align-items: center;
  background: rgba(208, 78, 55, 0.12);
  border: 1px solid rgba(208, 78, 55, 0.18);
  border-radius: 8px;
  color: var(--red);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.access-lock-toggle svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.access-lock-toggle small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.access-lock-toggle.disabled {
  opacity: 0.68;
}

.access-editor-head {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 12px;
}

.access-editor-head h3,
.access-editor-head p {
  margin: 0;
}

.access-editor-head > div > span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-assignment-panel {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
}

.access-governance-note {
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(208, 78, 55, 0.06));
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr);
  margin-bottom: 12px;
  padding: 10px;
}

.access-governance-note.locked {
  background: #f7f9fa;
  border-color: var(--line);
}

.access-governance-note > span {
  align-items: center;
  background: #edf7f5;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  color: var(--teal);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.access-governance-note.locked > span {
  background: #fff2ef;
  border-color: rgba(208, 78, 55, 0.2);
  color: var(--red);
}

.access-governance-note svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.access-governance-note strong,
.access-governance-note small {
  display: block;
}

.access-governance-note small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  margin-top: 2px;
}

.profile-photo-panel {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 12px;
  padding: 12px;
}

.profile-photo-panel.compact {
  margin-bottom: 0;
}

.profile-photo-panel strong,
.profile-photo-panel small {
  display: block;
}

.profile-photo-panel small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  margin-top: 2px;
}

.profile-photo-upload {
  align-items: center;
  background: #ffffff;
  border: 1px dashed rgba(15, 118, 110, 0.35);
  border-radius: 8px;
  color: var(--teal);
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  margin-top: 8px;
  min-height: 36px;
  padding: 8px 10px;
}

.profile-photo-upload input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.access-assignment-panel > div:first-child span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  line-height: 1.35;
  margin-top: 2px;
}

.access-checkbox-grid,
.access-permission-matrix {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.access-check-card {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 58px;
  padding: 9px;
}

.access-check-card input {
  accent-color: var(--teal);
  height: 16px;
  margin-top: 2px;
  width: 16px;
}

.access-check-card strong,
.access-check-card small {
  display: block;
}

.access-picker-backdrop {
  align-items: center;
  background: rgba(16, 24, 32, 0.44);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 25;
}

.access-picker {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 12px;
  max-height: min(78dvh, 720px);
  overflow: auto;
  padding: 14px;
  width: min(1080px, 96vw);
}

.access-picker-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.access-picker-head span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-picker-head h3 {
  margin: 2px 0 0;
}

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

.access-picker-results button {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(280px, 1fr) minmax(110px, 0.25fr) minmax(150px, 0.35fr);
  padding: 9px;
  text-align: left;
}

.access-filter-bar.picker {
  grid-template-columns: minmax(360px, 1fr) repeat(3, minmax(140px, 0.35fr)) auto;
}

.access-filter-actions {
  align-items: end;
  display: flex;
  gap: 8px;
}

.access-filter-actions button,
.access-picker-close {
  min-height: 42px;
}

.access-picker-close {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.user-create-backdrop,
.generated-password-backdrop {
  z-index: 38;
}

.user-create-modal {
  width: min(1180px, 96vw);
}

.user-create-form,
.generated-password-body {
  overflow: auto;
  padding: 16px;
}

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

.password-generate-panel {
  align-items: end;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.6fr) minmax(320px, 1fr);
  padding: 12px;
}

.password-generate-panel strong,
.password-generate-panel span {
  display: block;
}

.password-generate-panel span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  margin-top: 3px;
}

.password-generate-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.password-reset-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
}

.generated-password-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.access-security-panel {
  display: grid;
  gap: 12px;
}

.generated-password-modal {
  width: min(760px, 94vw);
}

.generated-password-body {
  display: grid;
  gap: 12px;
}

.generated-password-body > div {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.generated-password-body > div span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.generated-password-row button {
  align-items: center;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.generated-password-row svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.scope-select-field > span {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.inline-info-button {
  align-items: center;
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  height: 24px;
  justify-content: center;
  min-width: 24px;
  padding: 0;
  width: 24px;
}

.inline-info-button svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  width: 15px;
}

.scope-info-modal,
.scope-impact-modal {
  width: min(1040px, 94vw);
}

.scope-info-body,
.scope-impact-body {
  display: grid;
  gap: 14px;
  max-height: calc(92vh - 112px);
  overflow: auto;
  padding: 18px;
}

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

.scope-info-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(210, 92, 64, 0.78);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.scope-info-card span,
.scope-impact-summary span {
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.scope-info-card strong {
  display: block;
  font-size: 17px;
  margin-top: 3px;
}

.scope-info-card p {
  color: var(--muted);
  margin: 8px 0 0;
}

.scope-info-card dl,
.scope-impact-summary {
  display: grid;
  gap: 10px;
}

.scope-info-card dl div,
.scope-impact-summary div {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.scope-info-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.scope-info-card dd {
  color: var(--ink);
  font-weight: 800;
  margin: 3px 0 0;
}

.scope-impact-summary {
  grid-template-columns: repeat(3, 1fr);
}

.scope-impact-summary strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin: 6px 0;
}

.scope-impact-summary small {
  color: var(--muted);
  display: block;
  font-weight: 800;
}

.scope-impact-summary .positive {
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--teal);
}

.scope-impact-summary .negative {
  border-color: rgba(210, 92, 64, 0.42);
  color: var(--terracotta);
}

.scope-impact-warning {
  align-items: start;
  background: rgba(210, 92, 64, 0.08);
  border: 1px solid rgba(210, 92, 64, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  padding: 12px;
}

.scope-impact-warning svg {
  fill: none;
  height: 22px;
  stroke: var(--terracotta);
  stroke-width: 2;
  width: 22px;
}

.scope-impact-warning p {
  margin: 0;
}

.scope-impact-warning.danger {
  background: rgba(198, 67, 52, 0.1);
  border-color: rgba(198, 67, 52, 0.28);
}

.warning-confirm-modal {
  max-width: 640px;
  width: min(640px, 96vw);
}

.warning-confirm-modal .modal-actions .danger,
.case-action-strip .danger {
  background: linear-gradient(135deg, #b53b2f, #d45445);
  border-color: rgba(181, 59, 47, 0.55);
  color: #fff;
}

.warning-confirm-modal .modal-actions .danger:hover,
.case-action-strip .danger:hover {
  filter: brightness(1.04);
}

@media (max-width: 760px) {
  .scope-impact-summary {
    grid-template-columns: 1fr;
  }
}

.access-picker-user-main strong,
.access-picker-user-main small {
  display: block;
}

.access-picker-user-main small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}

.access-picker-results em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  justify-self: end;
  text-align: right;
}

.access-group-card,
.access-profile-card {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 106px;
  padding: 11px;
  text-align: left;
}

.access-group-cards.home {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.access-group-card.home {
  align-content: start;
  min-height: 168px;
}

.access-group-card.home .access-group-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.access-group-card.home.active-state {
  border-left-color: var(--teal);
}

.access-group-card.home.inactive-state {
  border-left-color: var(--muted);
}

.group-home-list {
  display: grid;
  gap: 12px;
}

.admin-group-editor-modal {
  width: min(1180px, 96vw);
}

.admin-group-editor-form {
  display: grid;
  max-height: min(92vh, 980px);
}

.access-group-members-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-height: 320px;
  overflow: auto;
}

.access-group-card > span,
.access-profile-card > span,
.access-icon-large,
.access-timeline-row > span {
  align-items: center;
  background: #edf7f5;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  color: var(--teal);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.access-group-card small,
.access-profile-card small,
.access-group-card b {
  color: var(--muted);
  font-size: 10px;
}

.access-profile-grid,
.access-permission-family-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.access-permission-family {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.access-permission-family-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.access-permission-family-head span {
  background: #f3f6f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 850;
  padding: 5px 8px;
}

.access-permission-chip-list {
  align-content: flex-start;
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.access-permission-chip-list span {
  align-items: center;
  background: #f3f6f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  max-width: 100%;
  min-height: 26px;
  padding: 5px 8px;
  white-space: nowrap;
}

.access-permission-admin-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.access-permission-edit-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 0.5fr) minmax(0, 1fr);
  min-height: 82px;
  padding: 10px;
}

.access-permission-edit-card.core {
  border-left-color: #17202a;
}

.access-permission-edit-card.hidden-record {
  display: none;
}

.access-permission-edit-card > span {
  align-items: center;
  background: #edf7f5;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  color: var(--teal);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.access-permission-edit-card.core > span {
  background: #f3f6f7;
  border-color: var(--line);
  color: #17202a;
}

.access-permission-edit-card svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.access-permission-edit-card strong,
.access-permission-edit-card small {
  display: block;
}

.access-permission-edit-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  margin-top: 2px;
}

.access-timeline-row {
  align-items: start;
  --timeline-accent: var(--blue);
  --timeline-bg: #eef6fd;
  --timeline-border: rgba(35, 104, 162, 0.22);
  border-left: 4px solid var(--timeline-accent);
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) minmax(120px, auto);
  min-width: 0;
  padding: 12px;
}

.access-timeline-row.info {
  --timeline-accent: var(--blue);
  --timeline-bg: #eef6fd;
  --timeline-border: rgba(35, 104, 162, 0.22);
}

.access-timeline-row.ok {
  --timeline-accent: var(--green);
  --timeline-bg: #ecf8f2;
  --timeline-border: rgba(47, 125, 50, 0.22);
}

.access-timeline-row.warning {
  --timeline-accent: var(--amber);
  --timeline-bg: #fff7e8;
  --timeline-border: rgba(161, 98, 7, 0.22);
}

.access-timeline-row.failed {
  --timeline-accent: var(--danger);
  --timeline-bg: var(--danger-soft);
  --timeline-border: var(--danger-line);
}

.access-timeline-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.access-timeline-main strong {
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.access-timeline-main small {
  overflow-wrap: anywhere;
}

.access-timeline-row b {
  align-self: start;
  background: var(--timeline-bg);
  border: 1px solid var(--timeline-border);
  border-radius: 999px;
  color: var(--timeline-accent);
  font-size: 10px;
  font-weight: 900;
  justify-self: end;
  max-width: 180px;
  overflow: hidden;
  padding: 5px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-management-console.timeline .access-timeline-list {
  display: grid !important;
  gap: 8px;
  grid-template-columns: 1fr;
  min-width: 0;
}

.access-management-console.timeline .access-timeline-row {
  width: 100%;
}

.access-timeline-row > span {
  background: var(--timeline-bg);
  border-color: var(--timeline-border);
  color: var(--timeline-accent);
}

.access-json-workbench .admin-editor-toolbar > div {
  display: grid;
  gap: 3px;
}

.access-json-workbench .admin-editor-toolbar span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.modal-inspector,
.modal-result {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.modal-inspector pre,
.admin-section-modal .admin-result-body pre {
  max-height: min(68dvh, 700px);
}

.admin-section-modal .modern-json-editor {
  min-height: min(58dvh, 560px);
}

.admin-workbench {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(320px, 0.55fr) minmax(0, 1.45fr);
}

.admin-action-result {
  min-width: 0;
}

.admin-empty-result {
  background: #fbfcfd;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.access-user-empty-state {
  align-content: center;
  justify-items: start;
  min-height: 260px;
  padding: 24px;
}

.access-user-empty-state strong {
  font-size: 18px;
}

.access-user-empty-state span {
  max-width: 620px;
}

.access-user-empty-state button {
  margin-top: 8px;
}

.admin-empty-result strong,
.admin-result-body strong {
  color: var(--ink);
}

.admin-empty-result span,
.admin-result-body span {
  color: var(--muted);
  line-height: 1.45;
}

.admin-result-body {
  display: grid;
  gap: 8px;
}

.admin-result-body pre {
  background: #111820;
  border-radius: 8px;
  color: #e8f0f2;
  font-size: 10px;
  line-height: 1.45;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
}

.admin-mode-tabs {
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
  padding: 6px;
}

.admin-mode-tabs button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: 850;
}

.admin-mode-tabs button.active {
  background: white;
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.08);
  color: var(--ink);
}

.admin-ui-form {
  min-width: 0;
}

.admin-ui-editor {
  display: grid;
  gap: 12px;
}

.admin-ui-summary {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
}

.admin-ui-summary strong,
.admin-ui-summary span {
  display: block;
}

.admin-ui-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.admin-record-toolbar {
  align-items: end;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.admin-record-toolbar span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  padding: 8px 10px;
  white-space: nowrap;
}

.admin-generic-record-editor {
  gap: 14px;
}

.admin-generic-record-deck {
  background: linear-gradient(135deg, #fbfcfd, #eef4f5);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.admin-generic-record-deck header {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-generic-record-deck header strong,
.admin-generic-record-deck header span,
.admin-generic-record-deck header small {
  display: block;
}

.admin-generic-record-deck header span,
.admin-generic-record-deck header small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.admin-generic-record-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  max-height: 280px;
  overflow: auto;
  padding-right: 2px;
}

.admin-generic-record-grid button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(17, 24, 39, 0.18);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 5px;
  height: auto;
  justify-items: start;
  min-height: 104px;
  padding: 10px;
  text-align: left;
}

.admin-generic-record-grid button:hover {
  border-left-color: rgba(200, 70, 50, 0.72);
  box-shadow: 0 10px 22px rgba(23, 32, 42, 0.08);
}

.admin-generic-record-grid button.active {
  background: linear-gradient(135deg, #111922, #22313d);
  border-color: #263846;
  border-left-color: #c84632;
  color: #ffffff;
}

.admin-generic-record-grid strong {
  line-height: 1.15;
}

.admin-generic-record-grid span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.admin-generic-record-grid button.active span {
  color: #cbd7e1;
}

.admin-generic-record-grid small,
.admin-generic-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-generic-record-grid small span,
.admin-generic-record-meta span {
  background: #eef3f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  padding: 4px 7px;
}

.admin-generic-record-grid button.active small span {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #edf4f8;
}

.admin-generic-record-active {
  align-items: end;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  padding: 12px;
}

.admin-generic-record-active > div:first-of-type {
  display: grid;
  gap: 4px;
}

.admin-generic-record-active span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.admin-generic-record-active h3,
.admin-generic-record-active p {
  margin: 0;
}

.admin-generic-record-active p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

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

.admin-field-grid.nested {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-field-grid textarea {
  min-height: 112px;
}

.admin-fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
}

.admin-fieldset legend {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  padding: 0 6px;
  text-transform: uppercase;
}

.admin-checkbox-field {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 10px;
}

.admin-checkbox-field input[type="checkbox"] {
  accent-color: var(--teal);
  height: 18px;
  width: 18px;
}

.admin-checkbox-field span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}

.admin-agentic-config {
  display: grid;
  gap: 14px;
}

.agentic-command-surface {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 48%),
    linear-gradient(115deg, #101820 0%, #20303a 54%, #23382f 100%);
  border: 1px solid #2b3a45;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.agentic-command-surface::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
  inset: 0;
  opacity: 0.38;
  pointer-events: none;
  position: absolute;
}

.agentic-command-surface > * {
  position: relative;
}

.agentic-command-surface span,
.agentic-flow-head span,
.agentic-record-head span {
  color: var(--muted);
}

.agentic-command-surface > div:first-child > span {
  color: #f0b6ac;
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.agentic-command-surface h3 {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.1;
  margin: 5px 0;
}

.agentic-command-surface p {
  color: #d4dee7;
  line-height: 1.45;
  margin: 0;
}

.agentic-command-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agentic-command-metrics div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 11px;
}

.agentic-command-metrics span {
  color: #b8c7d4;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.agentic-command-metrics strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.agentic-flow-panel,
.agentic-record-editor,
.agentic-empty-domain {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.agentic-flow-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.agentic-flow-head strong {
  color: var(--ink);
  font-size: 14px;
}

.agentic-flow-head span {
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
}

.agentic-flow-track {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.agentic-flow-node {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 126px;
  padding: 10px;
  position: relative;
}

.agentic-flow-node::after {
  background: var(--line-strong);
  content: "";
  height: 2px;
  left: calc(100% + 3px);
  position: absolute;
  top: 26px;
  width: 9px;
}

.agentic-flow-node:last-child::after {
  display: none;
}

.agentic-flow-node b {
  align-items: center;
  background: #eef4f7;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 10px;
  height: 28px;
  justify-content: center;
  width: 36px;
}

.agentic-flow-node strong {
  color: var(--ink);
  line-height: 1.2;
}

.agentic-flow-node span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.agentic-flow-node.active {
  background: #e7f5f2;
  border-color: #8fc9ba;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.12);
}

.agentic-flow-node.active b {
  background: var(--teal);
  color: #ffffff;
}

.admin-agentic-record-zone {
  display: grid;
  gap: 12px;
}

.agentic-record-ribbon {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.agentic-record-ribbon button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  height: auto;
  justify-items: start;
  min-height: 74px;
  padding: 10px;
  text-align: left;
}

.agentic-record-ribbon button.active {
  background: #111922;
  border-color: #263846;
  color: #ffffff;
}

.agentic-record-ribbon strong {
  line-height: 1.2;
}

.agentic-record-ribbon span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.agentic-record-ribbon button.active span {
  color: #cbd7e1;
}

.agentic-record-head {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
}

.agentic-record-head h3 {
  margin: 4px 0;
}

.agentic-record-head p {
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

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

.mcp-dry-run-panel {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(17, 24, 39, 0.04)),
    #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
}

.mcp-dry-run-panel > div:first-child span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mcp-dry-run-panel h4 {
  font-size: 16px;
  margin: 4px 0;
}

.mcp-dry-run-panel p {
  color: var(--muted);
  margin: 0;
}

.mcp-dry-run-panel label {
  display: grid;
  gap: 8px;
}

.mcp-dry-run-panel textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  min-height: 120px;
}

.mcp-dry-run-panel button {
  justify-self: start;
}

.admin-config-field {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 10px;
}

.admin-config-field.wide {
  grid-column: 1 / -1;
}

.admin-config-field input[readonly] {
  background: #eef2f5;
  color: var(--muted);
}

.admin-config-field textarea {
  min-height: 112px;
}

.admin-config-field small {
  color: var(--muted);
  font-size: 10px;
}

.admin-config-field.checkbox {
  align-items: center;
  display: flex;
  min-height: 64px;
}

.admin-config-field.checkbox input[type="checkbox"] {
  accent-color: var(--teal);
  height: 18px;
  width: 18px;
}

.admin-config-field.readonly {
  background: #f4f7f8;
}

.admin-config-field.readonly strong {
  font-size: 18px;
}

.admin-platform-console {
  gap: 14px;
}

.admin-platform-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(115deg, #111922 0%, #1d2b34 58%, rgba(123, 70, 48, 0.94) 100%);
  border: 1px solid #2c3945;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  padding: 16px;
}

.admin-platform-hero > div:first-child {
  display: grid;
  gap: 5px;
}

.admin-platform-hero span {
  color: #f1b3a7;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-platform-hero h3,
.admin-platform-hero p {
  margin: 0;
}

.admin-platform-hero h3 {
  color: #ffffff;
  font-size: 24px;
}

.admin-platform-hero p {
  color: #d9e4ec;
  line-height: 1.45;
}

.admin-platform-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-platform-metrics article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px;
}

.admin-platform-metrics article.ok {
  border-left-color: #1b8a78;
}

.admin-platform-metrics article.warn {
  border-left-color: #d99024;
}

.admin-platform-metrics span {
  color: #d7e1e8;
}

.admin-platform-metrics strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.admin-language-grid,
.admin-lowcode-domain-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.admin-language-card,
.admin-lowcode-domain-grid article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 14px;
}

.admin-language-card {
  cursor: pointer;
  position: relative;
}

.admin-language-card.active {
  background: linear-gradient(135deg, #ffffff, #edf9f6);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: inset 4px 0 0 var(--teal);
}

.admin-language-card input {
  position: absolute;
  right: 12px;
  top: 12px;
}

.admin-language-card strong {
  color: var(--ink);
  font-size: 20px;
}

.admin-language-card span,
.admin-lowcode-domain-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-lowcode-domain-grid article {
  background: linear-gradient(135deg, #ffffff, #fbf7f2);
  border-left: 4px solid rgba(180, 83, 9, 0.45);
}

.admin-lowcode-domain-grid strong {
  color: var(--ink);
}

.admin-catalog-console {
  gap: 14px;
}

.admin-catalog-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-catalog-section > div:first-child h3,
.admin-catalog-section > div:first-child span {
  margin: 0;
}

.admin-catalog-section > div:first-child span,
.admin-catalog-section small {
  color: var(--muted);
  font-size: 12px;
}

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

.admin-catalog-section label {
  display: grid;
  gap: 7px;
}

.admin-catalog-section textarea {
  min-height: 160px;
}

.admin-catalog-region-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.admin-catalog-region-grid label {
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 10px;
}

.admin-reporting-console {
  gap: 14px;
}

.admin-prompt-template-deck,
.admin-report-library-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-prompt-template-deck button,
.admin-report-library-grid button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(15, 118, 110, 0.45);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 7px;
  min-height: 120px;
  padding: 12px;
  text-align: left;
}

.admin-report-library-grid button {
  border-left-color: rgba(43, 92, 154, 0.55);
}

.admin-prompt-template-deck button.active,
.admin-report-library-grid button.active {
  background: linear-gradient(135deg, #ffffff, #edf9f6);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 14px 32px rgba(15, 24, 32, 0.08);
}

.admin-prompt-template-deck strong,
.admin-report-library-grid strong {
  font-size: 14px;
}

.admin-prompt-template-deck span,
.admin-report-library-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-prompt-template-deck small,
.admin-report-library-grid small {
  color: var(--teal);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-scoring-config {
  display: grid;
  gap: 12px;
}

.admin-scoring-hero {
  background:
    radial-gradient(circle at top right, rgba(199, 70, 52, 0.14), transparent 34%),
    linear-gradient(135deg, #17202a, #15322f);
  border: 1px solid rgba(23, 32, 42, 0.2);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  padding: 16px;
}

.admin-scoring-hero span {
  color: #ffb7a6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-scoring-hero h3 {
  color: white;
  font-size: 18px;
  margin: 4px 0;
}

.admin-scoring-hero p {
  color: #c8d8d9;
  line-height: 1.45;
  margin: 0;
}

.admin-scoring-section {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-scoring-section h3 {
  color: var(--ink);
  margin: 0;
}

.admin-scoring-section-head {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-scoring-section-head span {
  color: var(--muted);
  max-width: 520px;
  text-align: right;
}

.admin-task-dependency-rule-grid,
.admin-scope-profile-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-policy-effective-preview {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.admin-policy-phase-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.admin-policy-phase-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(23, 32, 42, 0.04);
  display: grid;
  gap: 10px;
  padding: 11px;
}

.admin-policy-phase-card > div:first-child span {
  color: var(--red);
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-policy-phase-card > div:first-child strong {
  display: block;
  margin-top: 3px;
}

.admin-policy-phase-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.admin-policy-phase-card dl div {
  align-items: start;
  border-top: 1px solid #edf1f3;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  padding-top: 6px;
}

.admin-policy-phase-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-policy-phase-card dd {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.admin-task-dependency-rule-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(199, 70, 52, 0.78);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-task-dependency-rule-card textarea {
  min-height: 92px;
}

.admin-scope-profile-card {
  align-content: start;
  border-left-color: rgba(15, 118, 110, 0.85);
}

.admin-scope-matrix-section {
  overflow: hidden;
}

.admin-scope-matrix-filters {
  align-items: end;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(210, 92, 64, 0.08));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 0.9fr) minmax(220px, 1.6fr) minmax(190px, 1.2fr) minmax(110px, 0.7fr) auto minmax(220px, 1.2fr);
  margin: 12px 0;
  padding: 12px;
}

.admin-scope-matrix-filters label {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
  text-transform: uppercase;
}

.admin-scope-matrix-filters input,
.admin-scope-matrix-filters select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-size: 13px;
  min-height: 38px;
  padding: 0 10px;
  text-transform: none;
}

.admin-scope-matrix-filters select:disabled {
  background: #edf2f4;
  color: #8b99a5;
}

.admin-scope-matrix-filters button {
  min-height: 38px;
}

.admin-scope-matrix-summary {
  align-self: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 10px 12px;
}

.admin-scope-matrix-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 560px;
  overflow: auto;
}

.admin-scope-matrix-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1180px;
  width: 100%;
}

.admin-scope-matrix-table th,
.admin-scope-matrix-table td {
  background: #ffffff;
  border-bottom: 1px solid #e4eaee;
  border-right: 1px solid #edf1f3;
  padding: 9px;
  text-align: left;
  vertical-align: top;
}

.admin-scope-matrix-table th {
  background: #132229;
  color: #ffffff;
  font-size: 10px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-scope-matrix-table th:first-child,
.admin-scope-matrix-table td:first-child {
  left: 0;
  position: sticky;
  z-index: 1;
}

.admin-scope-matrix-table th:first-child {
  z-index: 3;
}

.admin-scope-matrix-table td:first-child {
  background: #f7fafb;
}

.admin-scope-matrix-table th strong,
.admin-scope-matrix-table td strong,
.admin-scope-matrix-table td span {
  display: block;
}

.admin-scope-matrix-table th small,
.admin-scope-matrix-table td small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 3px;
}

.admin-scope-matrix-table th small {
  color: rgba(255, 255, 255, 0.72);
}

.admin-scope-matrix-table .matrix-check {
  text-align: center;
  vertical-align: middle;
}

.admin-scope-matrix-table .matrix-check input {
  accent-color: var(--teal);
  height: 18px;
  width: 18px;
}

@media (max-width: 1100px) {
  .admin-scope-matrix-filters {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-checkbox-cluster {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.admin-checkbox-cluster > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-checkbox-cluster .admin-config-field.checkbox {
  background: #ffffff;
  min-height: 44px;
  padding: 8px;
}

.admin-scoring-threshold-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.admin-scoring-dimensions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-scoring-dimension-card {
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid #91a4b4;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-scoring-dimension-card.critical {
  border-left-color: var(--red);
}

.admin-scoring-dimension-card > div {
  display: grid;
  gap: 3px;
}

.admin-scoring-dimension-card strong {
  color: var(--ink);
  line-height: 1.25;
}

.admin-scoring-dimension-card span {
  color: var(--muted);
  font-size: 10px;
}

.admin-decision-policy-config {
  display: grid;
  gap: 12px;
}

.admin-decision-policy-hero {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 34%),
    linear-gradient(135deg, #17202a, #2b2420);
}

.admin-decision-rule-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.admin-decision-rule-card {
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--terracotta, #c74634);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-decision-rule-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.admin-decision-rule-head strong {
  color: var(--ink);
  font-size: 14px;
}

.admin-decision-rule-head span {
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  padding: 5px 8px;
}

.admin-approval-policy-config {
  display: grid;
  gap: 12px;
}

.admin-approval-policy-hero {
  background:
    radial-gradient(circle at top right, rgba(199, 70, 52, 0.22), transparent 34%),
    linear-gradient(135deg, #17202a, #28322f);
}

.admin-approval-step-grid,
.admin-approval-action-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.admin-approval-step-card,
.admin-approval-action-card {
  background: linear-gradient(180deg, #ffffff, #f8fbfb);
  border: 1px solid var(--line);
  border-left: 4px solid rgba(199, 70, 52, 0.78);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-approval-action-card {
  border-left-color: rgba(15, 118, 110, 0.82);
}

.admin-workflow-config {
  display: grid;
  gap: 12px;
}

.admin-workflow-hero {
  background:
    radial-gradient(circle at top right, rgba(36, 118, 171, 0.22), transparent 34%),
    linear-gradient(135deg, #17202a, #22313b);
}

.admin-workflow-state-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-workflow-state-card {
  background: linear-gradient(180deg, #ffffff, #f8fbfb);
  border: 1px solid var(--line);
  border-left: 4px solid rgba(15, 118, 110, 0.82);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-workflow-state-card.terminal {
  border-left-color: rgba(199, 70, 52, 0.72);
}

.admin-workflow-state-card textarea {
  min-height: 92px;
}

.agentic-empty-domain p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.agentic-empty-domain div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agentic-empty-domain span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  padding: 7px 9px;
}

.admin-dashboard-config {
  display: grid;
  gap: 14px;
}

.admin-dashboard-basics,
.admin-dashboard-filter-config,
.admin-dashboard-view-config {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.admin-dashboard-basics > div:first-child span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-dashboard-basics h3,
.admin-dashboard-filter-config h3,
.admin-dashboard-view-config h3 {
  margin: 0;
}

.admin-dashboard-basics p {
  color: var(--muted);
  line-height: 1.45;
  margin: 4px 0 0;
}

.admin-check-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.admin-check-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-dashboard-view-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.admin-dashboard-view-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.05);
  display: grid;
  gap: 12px;
  padding: 12px;
}

.admin-dashboard-view-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.admin-dashboard-view-head span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-dashboard-view-head h4 {
  margin: 4px 0 0;
}

.admin-dashboard-columns {
  display: grid;
  gap: 12px;
}

.admin-dashboard-columns strong {
  display: block;
  margin-bottom: 8px;
}

.admin-studio {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
}

.domain-browser {
  align-content: start;
}

.domain-group-list {
  display: grid;
  gap: 12px;
}

.domain-group {
  display: grid;
  gap: 8px;
}

.domain-group h3 {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 10px;
  gap: 8px;
  margin: 0;
  text-transform: uppercase;
}

.domain-group h3 span {
  align-items: center;
  background: #eef3f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--teal);
  display: inline-flex;
  font-size: 10px;
  height: 24px;
  justify-content: center;
  width: 34px;
}

.domain-group > div {
  display: grid;
  gap: 7px;
}

.domain-group button {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  height: auto;
  justify-items: start;
  min-height: 58px;
  padding: 10px;
  text-align: left;
}

.domain-group button:hover,
.domain-group button.active {
  background: #eff7f6;
  border-color: var(--teal);
  box-shadow: inset 3px 0 0 var(--teal);
}

.domain-group button strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
}

.domain-group button small {
  color: var(--muted);
  line-height: 1.25;
}

.admin-editor-panel {
  min-width: 0;
}

.domain-editor .toolbar {
  margin-bottom: 0;
}

.admin-editor-toolbar {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
}

.domain-record-pill {
  align-self: start;
  background: #eef3f4;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  padding: 6px 10px;
}

.modern-json-editor {
  background: #101820;
  border-color: #263646;
  color: #edf2f7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  min-height: 520px;
}

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

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

.admin-inspector pre {
  background: #101820;
  border: 1px solid #263646;
  border-radius: 8px;
  color: #d8e2ee;
  font-size: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
}

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

.panel-heading h2 {
  margin-bottom: 3px;
}

.panel-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.requirement-console {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 38%),
    linear-gradient(115deg, #151b22 0%, #202935 54%, #2a2621 100%);
  border: 1px solid #2c3945;
  border-radius: 8px;
  color: #f7fafc;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.requirement-console div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
}

.requirement-console strong,
.requirement-console span {
  display: block;
}

.requirement-console strong {
  font-size: 23px;
}

.requirement-console span {
  color: #cfd8e3;
  font-size: 10px;
  font-weight: 800;
  margin-top: 4px;
}

.requirements-workspace {
  gap: 16px;
}

.requirements-command-surface {
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(31, 46, 56, 0.96) 58%, rgba(27, 71, 67, 0.94)),
    #17202a;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 32, 42, 0.15);
  color: #ffffff;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.65fr);
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.requirements-command-surface::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 68px);
  content: "";
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  position: absolute;
}

.requirements-command-copy,
.requirements-command-scoreboard,
.requirements-command-actions {
  position: relative;
  z-index: 1;
}

.requirements-command-copy {
  display: grid;
  gap: 12px;
}

.requirements-command-copy > span {
  color: #f3b8ae;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.requirements-command-copy h1 {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
  margin: 0;
}

.requirements-command-copy p {
  color: #d9e4ec;
  line-height: 1.5;
  margin: 0;
  max-width: 780px;
}

.requirements-command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.requirements-command-meta b {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #eef6f7;
  font-size: 10px;
  font-weight: 850;
  padding: 7px 10px;
  text-transform: uppercase;
}

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

.requirements-command-scoreboard article {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 84px;
  min-width: 0;
  padding: 12px;
}

.requirements-command-scoreboard span,
.requirements-command-scoreboard small {
  color: #b9c7d1;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.requirements-command-scoreboard strong {
  color: #ffffff;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.requirements-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.requirements-demo-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
}

.requirements-demo-toggle span {
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.requirements-demo-toggle input {
  accent-color: #0f766e;
}

.requirements-command-actions button:not(.primary) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.requirements-filter-bar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(140px, 0.8fr));
  padding: 12px;
}

.requirements-filter-bar label {
  gap: 5px;
  min-width: 0;
}

.requirements-filter-bar span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.requirements-filter-bar input,
.requirements-filter-bar select {
  min-width: 0;
}

.requirements-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.25fr) minmax(380px, 0.75fr);
  gap: 14px;
  align-items: start;
}

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

.requirements-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.requirements-table th,
.requirements-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

.requirements-table th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.requirements-table tr {
  cursor: pointer;
}

.requirements-table tr:hover,
.requirements-table tr.selected {
  background: #f0f7f6;
}

.requirements-table td span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 4px;
}

.requirement-ops-panel {
  display: grid;
  gap: 12px;
}

.requirement-result-count {
  background: #eef7f5;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: var(--teal);
  font-size: 10px;
  padding: 7px 10px;
}

.requirement-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

.requirement-case-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.05);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
}

.requirement-case-card.ok {
  border-left-color: var(--teal);
}

.requirement-case-card.warn {
  border-left-color: var(--amber);
}

.requirement-case-card.danger {
  border-left-color: var(--red);
}

.requirement-case-card.selected {
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.12);
}

.requirement-case-main {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 9px;
  min-height: 168px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.requirement-case-main:hover,
.requirement-case-main:focus-visible {
  background: #ffffff;
  border-color: var(--teal);
  box-shadow: 0 10px 22px rgba(23, 32, 42, 0.08);
}

.requirement-card-head,
.requirement-card-facts {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.requirement-card-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.requirement-card-head b {
  background: #eef7f5;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: var(--teal);
  font-size: 10px;
  padding: 5px 8px;
}

.requirement-case-card.warn .requirement-card-head b {
  background: #fff7ed;
  border-color: rgba(161, 98, 7, 0.22);
  color: var(--amber);
}

.requirement-case-card.danger .requirement-card-head b {
  background: var(--danger-soft);
  border-color: var(--danger-line);
  color: var(--danger);
}

.requirement-case-main strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.requirement-case-main p {
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}

.requirement-card-facts {
  border-top: 1px solid var(--line);
  justify-content: flex-start;
  padding-top: 9px;
}

.requirement-card-facts span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  padding: 5px 8px;
}

.requirement-card-facts b {
  color: var(--ink);
}

.requirement-card-actions {
  justify-content: flex-end;
}

.requirement-action-table th:last-child,
.requirement-action-table td:last-child {
  width: 146px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.row-actions .icon-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  min-height: 36px;
  padding: 0;
  width: 36px;
}

.row-actions .icon-action svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 17px;
}

.row-actions .icon-action:hover,
.row-actions .icon-action:focus-visible {
  background: #17202a;
  border-color: #17202a;
  color: #ffffff;
  transform: translateY(-1px);
}

.selected-requirement {
  position: sticky;
  top: 94px;
}

.modal-backdrop {
  align-items: center;
  background: rgba(16, 24, 32, 0.58);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 20;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  display: grid;
  max-height: min(92vh, 980px);
  overflow: hidden;
  width: min(1160px, 96vw);
}

.modal-header {
  align-items: start;
  background: #fbfcfd;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px 18px;
}

.modal-header h2 {
  margin-bottom: 4px;
}

.modal-header p {
  color: var(--muted);
  margin-bottom: 0;
}

.modal-header button {
  min-width: 38px;
  padding: 0;
}

.modal-header.admin-modal-header {
  background:
    linear-gradient(135deg, #101820, #1e2c36 58%, #25362f);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #f7fafc;
  position: sticky;
  top: 0;
  z-index: 1;
}

.modal-header.admin-modal-header span {
  color: #f0b6ac;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-header.admin-modal-header h2 {
  color: #ffffff;
}

.modal-header.admin-modal-header p {
  color: #cfdae4;
}

.modal-header.admin-modal-header button {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.requirement-case-backdrop {
  background:
    radial-gradient(circle at 50% 18%, rgba(199, 70, 52, 0.16), transparent 34%),
    rgba(10, 15, 21, 0.68);
  padding: 6px;
}

.requirement-case-modal {
  background: #f8fafb;
  max-height: min(94vh, 1040px);
  width: min(1720px, calc(100vw - 12px));
}

.requirement-case-header {
  background:
    linear-gradient(135deg, #101820, #1f2e38 58%, #26362f);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #f7fafc;
}

.requirement-case-header span {
  color: #f0b6ac;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.requirement-case-header h2 {
  color: #ffffff;
}

.requirement-case-header p {
  color: #cfdae4;
}

.requirement-case-header button {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.reviewer-lookup-field small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  line-height: 1.35;
  margin-top: 4px;
}

.lookup-input-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 42px;
}

.lookup-button {
  align-items: center;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.lookup-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.reviewer-picker-backdrop {
  align-items: center;
  background: rgba(16, 24, 32, 0.5);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 32;
}

.reviewer-picker-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 12px;
  max-height: min(76dvh, 720px);
  overflow: auto;
  padding: 14px;
  width: min(980px, 94vw);
}

.reviewer-picker-panel header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.reviewer-picker-panel header span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.reviewer-picker-panel header h3,
.reviewer-picker-panel header p {
  margin: 0;
}

.reviewer-picker-panel header p {
  color: var(--muted);
  margin-top: 4px;
}

.reviewer-picker-search {
  align-items: end;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(360px, 1fr) auto;
  padding: 10px;
}

.reviewer-picker-results {
  display: grid;
  gap: 8px;
}

.reviewer-picker-results button {
  align-items: center;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(260px, 1fr) minmax(110px, 0.2fr) minmax(150px, 0.3fr);
  padding: 10px;
  text-align: left;
}

.reviewer-picker-results strong,
.reviewer-picker-results small {
  display: block;
}

.reviewer-picker-results small,
.reviewer-picker-results em {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.case-tabs {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(242, 236, 232, 0.76)),
    #f3f1ef;
  border-bottom: 1px solid rgba(179, 93, 71, 0.18);
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 10px 12px;
  scrollbar-width: thin;
}

.case-tabs button {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(179, 93, 71, 0.18), rgba(179, 93, 71, 0.08)),
    rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(179, 93, 71, 0.22);
  border-left: 0;
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
  color: #6b463c;
  display: inline-flex;
  flex: 1 0 146px;
  font-weight: 850;
  justify-content: center;
  margin-left: -13px;
  min-height: 42px;
  padding: 0 24px 0 30px;
  position: relative;
  text-align: center;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.case-tabs button:first-child {
  border-left: 1px solid rgba(179, 93, 71, 0.22);
  border-radius: 8px 0 0 8px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  margin-left: 0;
  padding-left: 22px;
}

.case-tabs button:last-child {
  border-radius: 0 8px 8px 0;
}

.case-tabs button:hover {
  background:
    linear-gradient(135deg, rgba(179, 93, 71, 0.28), rgba(179, 93, 71, 0.14)),
    rgba(255, 255, 255, 0.82);
  color: #40251f;
  transform: translateY(-1px);
}

.case-tabs button.active {
  background:
    linear-gradient(135deg, rgba(185, 87, 56, 0.9), rgba(161, 73, 48, 0.74)),
    #b95d47;
  border-color: rgba(125, 52, 35, 0.45);
  box-shadow: 0 10px 22px rgba(151, 75, 52, 0.22);
  color: #ffffff;
  z-index: 2;
}

.case-modal-body {
  max-height: min(74vh, 820px);
  overflow: auto;
  padding: 14px;
}

.case-tab-panel {
  display: grid;
  gap: 14px;
}

.section-eyebrow {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-action-strip,
.case-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: end;
}

.case-review-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
}

.review-action-stack {
  display: grid;
  gap: 12px;
}

.review-action-stack form,
.subtle-panel,
.empty-execution-case {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.human-decision-form {
  background:
    linear-gradient(135deg, rgba(199, 70, 52, 0.07), rgba(15, 118, 110, 0.05)),
    white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.human-decision-head {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 170px);
}

.human-decision-head span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.human-decision-head h3 {
  font-size: 18px;
  margin: 4px 0;
}

.human-decision-head p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.human-decision-score {
  background: #17202a;
  border-radius: 8px;
  color: white;
  padding: 12px;
  text-align: right;
}

.human-decision-score strong,
.human-decision-score small {
  display: block;
}

.human-decision-score strong {
  font-size: 28px;
  line-height: 1;
}

.human-decision-score small {
  color: #c8d8d9;
  font-weight: 850;
  margin-top: 5px;
}

.decision-guidance-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.decision-guidance-grid article {
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid #b9c5ce;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 9px;
}

.decision-guidance-grid article.active {
  background: #f5fbfa;
  border-color: rgba(15, 118, 110, 0.38);
  border-top-color: var(--teal);
}

.decision-guidance-grid strong {
  color: var(--ink);
  font-size: 11px;
}

.decision-guidance-grid span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.decision-form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) minmax(150px, 0.8fr) auto;
}

.decision-lock-note {
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  border-radius: 8px;
  color: var(--danger-deep) !important;
  font-size: 11px;
  font-weight: 850;
  margin-top: 8px !important;
  padding: 8px 10px;
}

.decision-override-switch {
  align-self: end;
}

.decision-override-note {
  align-self: end;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  padding: 10px;
}

.decision-summary-card {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(35, 104, 162, 0.04)),
    #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

.decision-summary-card.empty {
  background: #fbfcfd;
}

.decision-summary-card > div:first-child {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.decision-summary-card strong {
  color: var(--ink);
  font-size: 14px;
}

.decision-summary-card p,
.decision-summary-card span {
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.decision-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.decision-summary-tags span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 10px;
  padding: 5px 8px;
}

.case-execution-tab {
  gap: 16px;
}

.case-activity-tab {
  gap: 16px;
}

.case-reports-tab {
  gap: 16px;
}

.case-report-center {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(199, 70, 52, 0.05)),
    #ffffff;
}

.case-report-catalog {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.report-template-card {
  --report-accent: var(--teal);
  --report-soft: rgba(15, 118, 110, 0.08);
  background:
    linear-gradient(135deg, var(--report-soft), rgba(255, 255, 255, 0.96) 62%),
    #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--report-accent);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  min-height: 156px;
  padding: 14px;
}

.report-template-head {
  display: grid;
  gap: 6px;
}

.report-template-head strong {
  color: var(--ink);
  font-size: 15px;
}

.report-template-head span,
.report-template-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.report-template-card p {
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}

.case-report-actions {
  align-items: end;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-top: 8px;
}

.case-report-tabs {
  align-items: end;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-top: 8px;
}

.report-filter-bar {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(0, 1fr));
}

.report-filter-bar label {
  display: grid;
  gap: 6px;
}

.report-filter-bar span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-filter-bar input,
.report-filter-bar select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 0 12px;
}

.case-report-actions button,
.case-report-tab {
  --tab-accent: var(--teal);
  --tab-border: rgba(15, 118, 110, 0.28);
  --tab-soft: rgba(15, 118, 110, 0.11);
  background:
    linear-gradient(135deg, var(--tab-soft), rgba(255, 255, 255, 0.92) 56%),
    #ffffff;
  border: 1px solid var(--tab-border);
  border-bottom: 4px solid var(--tab-accent);
  border-radius: 10px 10px 7px 7px;
  box-shadow: 0 10px 22px rgba(17, 25, 34, 0.08);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
  min-height: 54px;
  overflow: visible;
  padding: 16px 12px 11px;
  position: relative;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.case-report-actions button::before,
.case-report-tab::before {
  background: var(--tab-accent);
  border: 1px solid var(--tab-border);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
  height: 11px;
  left: 13px;
  opacity: 0.9;
  position: absolute;
  top: -8px;
  width: 46px;
}

.case-report-actions button::after,
.case-report-tab::after {
  background: linear-gradient(90deg, var(--tab-soft), transparent 60%);
  border-radius: 9px 9px 5px 5px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.case-report-actions button:hover,
.case-report-tab:hover {
  box-shadow: 0 14px 28px rgba(17, 25, 34, 0.12);
  transform: translateY(-2px);
}

.case-report-actions button:focus-visible,
.case-report-tab:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
}

.case-report-actions button span,
.case-report-tab span {
  display: block;
  position: relative;
  z-index: 1;
}

.case-report-actions .report-tone-executive,
.case-report-tabs .report-tone-executive {
  --tab-accent: #0f766e;
  --tab-border: rgba(15, 118, 110, 0.32);
  --tab-soft: rgba(15, 118, 110, 0.13);
}

.case-report-actions .report-tone-qualification,
.case-report-tabs .report-tone-qualification {
  --tab-accent: #b95d47;
  --tab-border: rgba(185, 93, 71, 0.34);
  --tab-soft: rgba(185, 93, 71, 0.14);
}

.case-report-actions .report-tone-plan,
.case-report-tabs .report-tone-plan {
  --tab-accent: #2f6f9f;
  --tab-border: rgba(47, 111, 159, 0.32);
  --tab-soft: rgba(47, 111, 159, 0.13);
}

.case-report-actions .report-tone-status,
.case-report-tabs .report-tone-status {
  --tab-accent: #a16612;
  --tab-border: rgba(161, 102, 18, 0.32);
  --tab-soft: rgba(161, 102, 18, 0.14);
}

.case-report-actions .report-tone-audit,
.case-report-tabs .report-tone-audit {
  --tab-accent: #7a527d;
  --tab-border: rgba(122, 82, 125, 0.32);
  --tab-soft: rgba(122, 82, 125, 0.13);
}

.case-report-tab.active {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tab-soft) 92%, #ffffff 8%), rgba(255, 255, 255, 0.98) 50%),
    #ffffff;
  border-color: var(--tab-border);
  box-shadow: 0 16px 30px rgba(17, 25, 34, 0.14);
  color: color-mix(in srgb, var(--tab-accent) 72%, #17202a);
  transform: translateY(-2px);
}

.case-report-tab.active::before {
  height: 13px;
  opacity: 1;
  top: -9px;
}

.report-template-workspace {
  --report-accent: var(--teal);
  --report-soft: rgba(15, 118, 110, 0.08);
  background:
    linear-gradient(135deg, var(--report-soft), rgba(255, 255, 255, 0.98) 62%),
    #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--report-accent);
  border-radius: 12px;
  display: grid;
  gap: 16px;
  padding: 16px;
}

.report-template-workspace-head {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.report-template-workspace-head h3,
.report-template-workspace-head p {
  margin: 0;
}

.report-template-workspace-head p {
  color: var(--muted);
  margin-top: 6px;
}

.report-template-workspace-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-template-workspace-facts article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.report-template-workspace-facts small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-template-workspace-facts strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.report-template-workspace-body {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.report-template-preview-frame iframe {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 620px;
  width: 100%;
}

.report-template-sidecard {
  align-content: start;
  background: #111922;
  border: 1px solid #2c3945;
  border-radius: 12px;
  color: #e6eef2;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.report-template-sidecopy {
  display: grid;
  gap: 8px;
}

.report-template-sidecopy strong,
.report-template-sidecopy p {
  margin: 0;
}

.report-template-sidecopy p {
  color: #d4e0e9;
  line-height: 1.6;
}

.report-template-generate {
  display: grid;
  gap: 10px;
}

.report-readiness-banner {
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 14px 16px;
}

.report-readiness-banner.ready {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.09), rgba(255, 255, 255, 0.98) 62%);
  border-left-color: var(--teal);
}

.report-readiness-banner.warning {
  background: linear-gradient(135deg, rgba(191, 115, 37, 0.1), rgba(255, 255, 255, 0.98) 62%);
  border-left-color: #bf7325;
}

.report-readiness-banner.blocked {
  background: linear-gradient(135deg, rgba(193, 58, 58, 0.1), rgba(255, 255, 255, 0.98) 62%);
  border-left-color: var(--danger);
}

.report-readiness-banner.loading {
  background: linear-gradient(135deg, rgba(47, 111, 159, 0.1), rgba(255, 255, 255, 0.98) 62%);
  border-left-color: #2f6f9f;
}

.report-readiness-banner-head {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.report-readiness-banner-head h3,
.report-readiness-banner-head p {
  margin: 0;
}

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

.report-readiness-summary article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.report-readiness-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-readiness-summary strong {
  font-size: 18px;
}

.report-readiness-reasons {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.report-readiness-panel {
  display: grid;
  gap: 12px;
}

.report-readiness-panel-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.report-readiness-panel-head strong,
.report-readiness-panel-head span,
.report-readiness-mvr strong,
.report-readiness-mvr p {
  margin: 0;
}

.report-readiness-panel-head span,
.report-readiness-mvr p {
  color: #d4e0e9;
}

.report-readiness-section-list {
  display: grid;
  gap: 10px;
}

.report-readiness-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(216, 227, 236, 0.12);
  border-left: 4px solid rgba(216, 227, 236, 0.26);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.report-readiness-section.complete {
  border-left-color: #2f9d74;
}

.report-readiness-section.partial {
  border-left-color: #bf7325;
}

.report-readiness-section.pending {
  border-left-color: var(--danger);
}

.report-readiness-section header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.report-readiness-section header strong,
.report-readiness-section header span,
.report-readiness-section p {
  margin: 0;
}

.report-readiness-section header span {
  color: #d4e0e9;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-readiness-section p {
  color: #d4e0e9;
  line-height: 1.55;
}

.report-readiness-section ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.report-readiness-section li.complete::marker {
  color: #2f9d74;
}

.report-readiness-section li.partial::marker {
  color: #bf7325;
}

.report-readiness-section li.pending::marker {
  color: var(--danger);
}

.report-readiness-mvr {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(216, 227, 236, 0.18);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.report-readiness-block-note {
  color: #ffcec7;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.report-generate-button {
  border: 1px solid transparent;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-height: 44px;
  padding: 0 14px;
  text-align: center;
}

.report-generate-button:disabled {
  background: rgba(108, 122, 136, 0.55);
  color: rgba(255, 255, 255, 0.72);
  cursor: not-allowed;
}

.report-generate-button.neutral {
  background: #44515c;
}

.report-generate-button.info {
  background: #2f6f9f;
}

.report-generate-button.accent {
  background: #0f766e;
}

.report-latest-open {
  justify-self: stretch;
}

.evidence-pack-preview {
  background:
    linear-gradient(135deg, rgba(17, 25, 34, 0.96), rgba(23, 59, 60, 0.92)),
    #111922;
  border: 1px solid rgba(216, 227, 236, 0.18);
  border-radius: 8px;
  color: #eef5f5;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.evidence-pack-preview-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.evidence-pack-preview-head h3,
.evidence-pack-preview-head p {
  margin: 0;
}

.evidence-pack-preview-head p {
  color: #c4d4d8;
  margin-top: 4px;
}

.evidence-pack-score {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  min-width: 142px;
  padding: 10px 12px;
  text-align: right;
}

.evidence-pack-score.ready {
  background: rgba(15, 118, 110, 0.24);
  color: #d9fff7;
}

.evidence-pack-score.needs-work {
  background: rgba(185, 93, 71, 0.24);
  color: #ffe8df;
}

.evidence-pack-score strong,
.evidence-pack-score span {
  display: block;
}

.evidence-pack-score strong {
  font-size: 22px;
}

.evidence-pack-score span {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-pack-meter {
  background: rgba(216, 227, 236, 0.16);
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.evidence-pack-meter i {
  background: linear-gradient(90deg, var(--terracotta), var(--teal));
  display: block;
  height: 100%;
}

.evidence-pack-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.evidence-pack-grid div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px;
}

.evidence-pack-grid span,
.evidence-pack-grid strong {
  display: block;
}

.evidence-pack-grid span {
  color: #c7d7dd;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.evidence-pack-grid strong {
  color: #ffffff;
  font-size: 16px;
  margin-top: 4px;
}

.evidence-pack-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evidence-pack-checks span {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  padding: 7px 9px;
}

.evidence-pack-checks .ok {
  background: rgba(15, 118, 110, 0.22);
  color: #d9fff7;
}

.evidence-pack-checks .pending {
  background: rgba(255, 255, 255, 0.1);
  color: #d8e3ec;
}

.evidence-pack-gaps {
  background: rgba(185, 93, 71, 0.14);
  border: 1px solid rgba(185, 93, 71, 0.32);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}

.evidence-pack-gaps.clear {
  background: rgba(15, 118, 110, 0.16);
  border-color: rgba(15, 118, 110, 0.34);
}

.evidence-pack-gaps strong {
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.evidence-pack-gaps ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.evidence-pack-gaps li {
  color: #f3e5df;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.evidence-pack-gaps.clear li {
  color: #d9fff7;
}

.evidence-pack-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.evidence-pack-actions strong {
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-pack-actions div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.evidence-pack-actions button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 10px;
}

.evidence-pack-actions button:hover,
.evidence-pack-actions button:focus-visible {
  background: rgba(185, 93, 71, 0.28);
  border-color: rgba(185, 93, 71, 0.5);
}

.case-export-actions {
  align-items: center;
  background: #111922;
  border: 1px solid #2c3945;
  border-radius: 8px;
  color: #d8e3ec;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.case-export-actions a {
  background: var(--teal);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  padding: 9px 12px;
  text-decoration: none;
}

.case-export-actions a:first-child {
  background: #b95d47;
}

.case-export-actions span {
  color: #cbd7e1;
  font-size: 11px;
  font-weight: 750;
}

.case-report-library {
  display: grid;
  gap: 12px;
}

.report-spotlight {
  --report-accent: var(--teal);
  --report-soft: rgba(15, 118, 110, 0.09);
  background:
    linear-gradient(135deg, var(--report-soft), rgba(255, 255, 255, 0.98) 58%),
    #ffffff;
  border-left: 5px solid var(--report-accent);
  display: grid;
  gap: 14px;
}

.report-spotlight-head {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.report-spotlight-head h3,
.report-spotlight-head p {
  margin: 0;
}

.report-spotlight-head p {
  color: var(--muted);
  margin-top: 6px;
}

.report-spotlight-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.report-spotlight-facts article {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.report-spotlight-facts small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-spotlight-facts strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.report-spotlight-body {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.report-spotlight-body iframe {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 560px;
  width: 100%;
}

.report-spotlight-actions {
  background: #111922;
  border: 1px solid #2c3945;
  border-radius: 10px;
  color: #dbe7ef;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
}

.report-spotlight-actions p {
  color: #dbe7ef;
  line-height: 1.6;
  margin: 0;
}

.report-library-group {
  display: grid;
  gap: 12px;
}

.report-library-group-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.report-library-group-head strong {
  color: var(--ink);
  font-size: 14px;
}

.report-library-group-head span {
  background: #eef3f4;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 9px;
}

.case-report-library-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.case-report-library-head h3,
.case-report-library-head p {
  margin: 0;
}

.case-report-library-head p {
  color: var(--muted);
  margin-top: 4px;
}

.case-report-library-head strong {
  background: #111922;
  border-radius: 8px;
  color: #ffffff;
  font-size: 18px;
  min-width: 52px;
  padding: 10px 12px;
  text-align: center;
}

.report-card-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.report-card-head h2,
.report-card-head p {
  margin: 0;
}

.report-card-head p {
  color: var(--muted);
  margin-top: 4px;
}

.report-card-head span {
  background: #eef7f4;
  border: 1px solid #b7d9d0;
  border-radius: 999px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

.library-report-card {
  --report-accent: var(--teal);
  --report-soft: rgba(15, 118, 110, 0.08);
  background:
    linear-gradient(135deg, var(--report-soft), rgba(255, 255, 255, 0.96) 62%),
    #ffffff;
  border-left: 5px solid var(--report-accent);
  display: grid;
  gap: 10px;
  overflow: hidden;
  position: relative;
}

.library-report-card::before {
  background: var(--report-accent);
  border-radius: 0 0 8px 8px;
  content: "";
  height: 7px;
  opacity: 0.95;
  position: absolute;
  right: 16px;
  top: 0;
  width: 72px;
}

.report-card-executive {
  --report-accent: #0f766e;
  --report-soft: rgba(15, 118, 110, 0.09);
}

.report-card-qualification {
  --report-accent: #b95d47;
  --report-soft: rgba(185, 93, 71, 0.1);
}

.report-card-plan {
  --report-accent: #2f6f9f;
  --report-soft: rgba(47, 111, 159, 0.09);
}

.report-card-status {
  --report-accent: #a16612;
  --report-soft: rgba(161, 102, 18, 0.1);
}

.report-card-audit {
  --report-accent: #7a527d;
  --report-soft: rgba(122, 82, 125, 0.09);
}

.report-card-summary {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.report-card-meta {
  display: grid;
  gap: 4px;
}

.report-card-meta b {
  color: var(--ink);
  font-size: 12px;
}

.report-card-meta em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.report-download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-download-row a {
  background: var(--report-accent, #111922);
  border: 1px solid color-mix(in srgb, var(--report-accent, #111922) 70%, #111922);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 850;
  padding: 8px 10px;
  text-decoration: none;
}

.report-open-button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  padding: 8px 10px;
}

.report-open-button:hover,
.report-open-button:focus-visible {
  border-color: var(--report-accent, var(--teal));
  color: var(--report-accent, var(--teal));
}

.report-download-row a + a {
  background: #111922;
  border-color: #2c3945;
}

.report-preview-details {
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 8px;
}

.report-preview-details summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.report-preview-panels {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  margin-top: 10px;
}

.report-preview-panels article {
  display: grid;
  gap: 8px;
}

.report-preview-panels small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-preview-panels iframe {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 420px;
  width: 100%;
}

.report-preview-details pre {
  background: #111922;
  border-radius: 8px;
  color: #e6eef2;
  font-size: 11px;
  line-height: 1.45;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.empty-report-card {
  color: var(--muted);
}

.report-viewer-modal {
  width: min(1440px, 97vw);
}

.report-viewer-body {
  padding: 0 16px 16px;
}

.report-viewer-body iframe {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: min(78vh, 980px);
  width: 100%;
}

.activity-cockpit {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.activity-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.activity-head h2,
.activity-head p {
  margin: 0;
}

.activity-head p {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 4px;
}

.activity-head-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.activity-head-actions a {
  background: rgba(185, 93, 71, 0.12);
  border: 1px solid rgba(185, 93, 71, 0.32);
  border-radius: 8px;
  color: #8c3f2f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 9px 12px;
  text-decoration: none;
}

.activity-head-actions a:hover {
  background: rgba(185, 93, 71, 0.18);
}

.activity-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.activity-summary-grid div {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.activity-summary-grid span,
.activity-summary-grid strong {
  display: block;
}

.activity-summary-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.activity-summary-grid strong {
  color: var(--ink);
  font-size: 16px;
  margin-top: 4px;
}

.activity-filter-panel {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(185, 93, 71, 0.05)),
    #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.activity-filter-head {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
}

.activity-filter-head strong,
.activity-filter-head span {
  display: block;
}

.activity-filter-head strong {
  color: var(--ink);
}

.activity-filter-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  margin-top: 3px;
}

.activity-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.activity-filter-tabs button {
  background: #ffffff;
  border-color: rgba(185, 93, 71, 0.22);
  color: #7d463b;
  font-size: 10px;
  font-weight: 900;
  min-height: 30px;
  padding: 0 10px;
}

.activity-filter-tabs button.active {
  background: rgba(185, 93, 71, 0.92);
  border-color: rgba(185, 93, 71, 0.96);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(185, 93, 71, 0.14);
}

.case-activity-timeline {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 4px 0 4px 18px;
  position: relative;
}

.case-activity-timeline::before {
  background: linear-gradient(180deg, var(--teal), var(--line));
  content: "";
  inset: 8px auto 8px 24px;
  position: absolute;
  width: 2px;
}

.activity-item {
  display: grid;
  gap: 12px;
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 0 0 12px;
  position: relative;
}

.activity-dot {
  background: #ffffff;
  border: 3px solid var(--teal);
  border-radius: 999px;
  box-shadow: 0 0 0 4px #e5f4f1;
  height: 14px;
  margin-top: 18px;
  position: relative;
  width: 14px;
  z-index: 1;
}

.activity-decision .activity-dot,
.activity-approval .activity-dot {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px #e9f1f8;
}

.activity-task .activity-dot,
.activity-attachment .activity-dot {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px #fff7e6;
}

.activity-card {
  background: linear-gradient(180deg, #ffffff, #f8fafb);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 12px;
}

.activity-card-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.activity-card-head strong {
  display: block;
  font-size: 13px;
}

.activity-card-head p {
  color: var(--muted);
  line-height: 1.4;
  margin: 4px 0 0;
}

.activity-card-head time,
.activity-meta-line {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.activity-meta-line,
.activity-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.activity-chip-row span {
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
}

.activity-empty {
  background: #f4f7f8;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  padding: 18px;
  text-align: center;
}

.modal-qualification-cards {
  max-height: none;
}

.execution-task-backdrop {
  background:
    radial-gradient(circle at 50% 18%, rgba(32, 121, 113, 0.22), transparent 36%),
    rgba(9, 14, 20, 0.68);
}

.execution-task-modal {
  background: #f8fafb;
  width: min(1180px, 96vw);
}

.execution-task-modal-header {
  background:
    linear-gradient(135deg, #101820, #1f2e38 58%, #26362f);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #f7fafc;
}

.execution-task-modal-header span {
  color: #f0b6ac;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.execution-task-modal-header h2 {
  color: #ffffff;
}

.execution-task-modal-header p {
  color: #cfdae4;
}

.execution-task-modal-header button {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.execution-task-modal form {
  display: grid;
  min-height: 0;
}

.execution-task-body {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  max-height: min(68vh, 720px);
  overflow: auto;
  padding: 16px;
}

.task-command-panel,
.task-guidance-panel,
.task-edit-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.task-command-panel {
  align-content: start;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(35, 104, 162, 0.05)),
    #ffffff;
}

.task-progress-dial {
  align-items: center;
  background: #111922;
  border: 1px solid #2c3945;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  justify-items: center;
  min-height: 150px;
  padding: 18px;
}

.task-progress-dial strong {
  font-size: 40px;
  line-height: 1;
}

.task-progress-dial span {
  color: #cbd7e1;
  font-weight: 850;
  text-transform: uppercase;
}

.task-fact-grid {
  display: grid;
  gap: 8px;
}

.task-fact-grid div,
.task-guidance-grid div {
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.task-fact-grid span,
.task-guidance-grid span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.task-fact-grid strong {
  color: var(--ink);
  display: block;
  line-height: 1.25;
  margin-top: 4px;
}

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

.task-guidance-grid p {
  color: var(--ink);
  line-height: 1.4;
  margin: 5px 0 0;
}

.task-knowledge-panel {
  background:
    linear-gradient(135deg, rgba(185, 93, 71, 0.07), rgba(15, 118, 110, 0.05)),
    #fbfcfd;
  border: 1px solid rgba(185, 93, 71, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.task-knowledge-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.task-knowledge-head strong {
  color: var(--ink);
  display: block;
}

.task-knowledge-head span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 3px;
}

.task-knowledge-head button {
  background: rgba(185, 93, 71, 0.92);
  border-color: rgba(185, 93, 71, 0.96);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.task-knowledge-empty {
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.task-knowledge-result {
  display: grid;
  gap: 9px;
}

.task-knowledge-answer {
  background: #101820;
  border: 1px solid #263646;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.task-knowledge-answer span {
  color: #f0b6ac;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.task-knowledge-answer p {
  color: #ffffff;
  line-height: 1.38;
  margin: 0;
}

.task-knowledge-answer small {
  color: #cbd7e1;
  font-weight: 750;
}

.task-knowledge-sources {
  display: grid;
  gap: 7px;
}

.task-knowledge-sources > strong {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.task-knowledge-sources article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(185, 93, 71, 0.72);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
}

.task-knowledge-sources article span {
  color: var(--red);
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.task-knowledge-sources article b {
  color: var(--ink);
  line-height: 1.25;
}

.task-action-guidance-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.task-action-guidance-grid article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(15, 118, 110, 0.72);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-height: 168px;
  padding: 11px;
}

.task-action-guidance-grid article span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.task-action-guidance-grid article strong {
  color: var(--ink);
  line-height: 1.25;
}

.task-action-guidance-grid article p {
  color: var(--muted);
  line-height: 1.38;
  margin: 0;
}

.task-action-guidance-grid article button {
  align-self: end;
  background: #111922;
  border-color: #111922;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  min-height: 32px;
}

.task-guidance-detail-backdrop {
  z-index: 80;
}

.task-guidance-detail-modal {
  max-width: min(940px, calc(100vw - 36px));
}

.task-guidance-detail-body {
  max-height: min(68vh, 680px);
  overflow: auto;
  padding: 18px;
}

.task-guidance-detail-section {
  display: grid;
  gap: 14px;
}

.task-guidance-detail-section h3 {
  color: var(--ink);
  margin: 0;
}

.task-guidance-detail-section p,
.task-guidance-detail-section li {
  color: #405064;
  line-height: 1.45;
}

.task-checklist-detail-list {
  display: grid;
  gap: 10px;
}

.task-checklist-detail-item {
  align-items: start;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  padding: 12px;
}

.task-checklist-detail-item input {
  margin-top: 4px;
}

.task-checklist-detail-item span {
  display: grid;
  gap: 4px;
}

.task-checklist-detail-item strong {
  color: var(--ink);
}

.task-checklist-detail-item small,
.task-checklist-detail-item em {
  color: var(--muted);
  line-height: 1.35;
}

.task-dependencies-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.task-dependencies-panel.ready {
  background: #f4faf8;
  border-color: #c7e3db;
}

.task-dependencies-panel.blocked {
  background: #fff8eb;
  border-color: #f2c46d;
}

.task-dependencies-panel > div:first-child,
.task-dependencies-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.task-dependencies-panel strong {
  color: var(--ink);
}

.task-dependencies-panel span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 850;
  margin-top: 3px;
  text-transform: uppercase;
}

.task-dependencies-head b {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  padding: 6px 8px;
}

.task-dependency-list {
  display: grid;
  gap: 7px;
}

.task-dependency-row {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  text-align: left;
  width: 100%;
}

.task-dependency-row:hover:not(:disabled) {
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 8px 18px rgba(14, 25, 36, 0.08);
  transform: translateY(-1px);
}

.task-dependency-row:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.task-dependency-row.ready {
  border-left-color: var(--green);
}

.task-dependency-row.blocked {
  border-left-color: var(--amber);
}

.task-dependency-row small {
  color: var(--muted);
}

.task-edit-panel {
  grid-column: 1 / -1;
}

.task-edit-panel.locked {
  background: #f6f8fa;
}

.task-edit-fieldset {
  border: 0;
  display: grid;
  gap: 12px;
  margin: 0;
  min-inline-size: 0;
  padding: 0;
}

.task-edit-fieldset:disabled {
  opacity: 0.62;
}

.task-edit-heading {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.task-edit-heading span {
  color: var(--red);
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.task-edit-heading strong {
  color: var(--ink);
  display: block;
  font-size: 16px;
  margin-top: 4px;
}

.task-edit-heading small,
.field-with-help p {
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}

.field-with-help {
  display: grid;
  gap: 5px;
}

.task-locked-banner {
  align-items: start;
  background: var(--danger-soft);
  border: 1px dashed var(--danger-line);
  border-radius: 8px;
  color: var(--danger-deep);
  display: grid;
  gap: 4px;
  padding: 11px 12px;
}

.task-locked-banner strong {
  color: var(--danger-deep);
}

.task-locked-banner span {
  line-height: 1.4;
}

.task-edit-panel textarea {
  min-height: 92px;
}

.task-progress-score-card,
.task-evidence-status-card {
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.task-progress-score-card span,
.task-evidence-status-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.task-progress-score-card strong,
.task-evidence-status-card strong {
  color: var(--ink);
  font-size: 22px;
}

.task-progress-score-card p,
.task-evidence-status-card p,
.task-progress-score-card small {
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}

.task-evidence-control-panel {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1fr) minmax(260px, 1fr);
  padding: 12px;
}

.task-evidence-status-card.accepted {
  background: #ecfdf3;
  border-color: #b7e4c7;
}

.task-evidence-status-card.rejected {
  background: #fff1f1;
  border-color: #ffc6c0;
}

.task-evidence-status-card.requested,
.task-evidence-status-card.submitted {
  background: #fff8e8;
  border-color: #ffd58a;
}

.task-evidence-actions {
  align-content: end;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.task-evidence-actions button {
  min-height: 42px;
}

.task-evidence-actions button:nth-child(2) {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.task-evidence-actions button:nth-child(3) {
  color: var(--danger-deep);
}

.task-evidence-readonly-note {
  align-self: end;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.task-note-composer {
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.task-note-log {
  display: grid;
  gap: 8px;
}

.task-note-log > strong {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.task-note-log article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(15, 118, 110, 0.68);
  border-radius: 8px;
  padding: 9px 10px;
}

.task-note-log article span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 850;
  margin-bottom: 5px;
}

.task-note-log article p,
.task-note-log > p {
  color: #405064;
  line-height: 1.38;
  margin: 0;
}

.task-attachments-panel {
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.task-attachments-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.task-attachments-head strong {
  display: block;
}

.task-attachments-head span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  line-height: 1.35;
}

.attachment-upload {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
}

.attachment-upload.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.attachment-upload input {
  display: none;
}

.task-attachment-list {
  display: grid;
  gap: 8px;
}

.task-attachment-list > p {
  color: var(--muted);
  margin: 0;
}

.task-attachment-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 10px;
}

.task-attachment-row strong,
.task-attachment-row span {
  display: block;
}

.task-attachment-row span {
  color: var(--muted);
  font-size: 10px;
}

.attachment-rag-status {
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  color: var(--teal);
  display: inline-block;
  font-size: 10px;
  font-weight: 850;
  margin-top: 6px;
  padding: 4px 7px;
}

.attachment-rag-status.skipped {
  border-color: rgba(180, 83, 9, 0.24);
  color: #9a5a00;
}

.profile-modal {
  width: min(780px, 96vw);
}

.profile-body {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
  padding: 18px;
}

.profile-required-banner {
  background: #fff8e8;
  border: 1px solid rgba(180, 83, 9, 0.24);
  border-left: 4px solid #b45309;
  border-radius: 8px;
  color: #7a3d00;
  display: grid;
  gap: 3px;
  grid-column: 1 / -1;
  padding: 10px 12px;
}

.profile-required-banner strong {
  font-size: 12px;
}

.profile-required-banner span {
  font-size: 11px;
  line-height: 1.4;
}

.profile-summary {
  align-content: start;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.profile-avatar {
  align-items: center;
  background: var(--red);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  width: 58px;
}

.profile-avatar.photo {
  background: #eef3f4;
  border: 1px solid var(--line);
}

.profile-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-summary h3 {
  margin: 0 0 4px;
}

.profile-summary p,
.profile-password-form p,
.profile-photo-form p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.compact-facts {
  grid-template-columns: 1fr;
}

.profile-manage-stack,
.profile-password-form,
.profile-photo-form {
  align-content: start;
  display: grid;
  gap: 12px;
}

.profile-photo-form {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.profile-password-form h3 {
  margin: 0;
}

.profile-actions {
  display: flex;
  gap: 8px;
  justify-content: end;
}

.profile-message {
  color: var(--red);
  font-weight: 800;
  min-height: 18px;
}

.wizard-steps {
  background: #eef2f5;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
}

.wizard-steps button {
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.wizard-steps button.active {
  background: white;
  box-shadow: 0 8px 22px rgba(23, 32, 42, 0.1);
  color: var(--ink);
}

.wizard-form {
  display: grid;
  min-height: 0;
}

.wizard-section {
  display: grid;
  gap: 12px;
  max-height: min(62vh, 680px);
  overflow: auto;
  padding: 16px 18px;
}

.wizard-note {
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  padding: 10px 12px;
}

.modal-actions {
  background: #fbfcfd;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: end;
  padding: 12px 18px;
}

.oracle-contact-editor {
  display: grid;
  gap: 10px;
}

.oracle-contact-row {
  align-items: end;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 0.8fr) repeat(3, minmax(160px, 1fr));
  padding: 12px;
}

.oracle-contact-row span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 4px;
}

.qualification-cards {
  display: grid;
  gap: 12px;
}

.scoring-model-panel {
  background:
    radial-gradient(circle at top left, rgba(199, 70, 52, 0.16), transparent 32%),
    linear-gradient(135deg, #18242a 0%, #102426 52%, #1b252c 100%);
  border: 1px solid rgba(23, 32, 42, 0.22);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(23, 32, 42, 0.16);
  color: #eef7f5;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.scoring-model-head {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
}

.scoring-model-head span {
  color: #ffb7a6;
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scoring-model-head strong {
  color: white;
  display: block;
  font-size: 17px;
  margin-top: 3px;
}

.scoring-model-head p {
  color: #c8d8d9;
  line-height: 1.45;
  margin: 6px 0 0;
  max-width: 860px;
}

.scoring-model-current {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px;
  text-align: right;
}

.scoring-model-current strong {
  font-size: 28px;
  line-height: 1;
}

.scoring-model-current small {
  color: #c8d8d9;
  display: block;
  font-weight: 800;
  margin-top: 6px;
}

.scoring-model-rules {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scoring-rule {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  border-top: 3px solid rgba(255, 255, 255, 0.26);
  display: grid;
  gap: 4px;
  padding: 10px;
}

.scoring-rule-go {
  border-top-color: #35c59b;
}

.scoring-rule-hold,
.scoring-rule-info {
  border-top-color: #f0a23a;
}

.scoring-rule-no-go {
  border-top-color: #ff7968;
}

.scoring-rule span {
  color: #ffcabf;
  font-size: 10px;
  font-weight: 900;
}

.scoring-rule strong {
  color: white;
  font-size: 16px;
}

.scoring-rule p {
  color: #c8d8d9;
  font-size: 10px;
  line-height: 1.35;
  margin: 0;
}

.scoring-formula-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scoring-formula-strip code {
  background: rgba(5, 14, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #d9fff7;
  display: block;
  font-size: 10px;
  line-height: 1.35;
  min-height: 48px;
  padding: 10px;
  white-space: normal;
}

.scoring-model-signals {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scoring-model-signals article {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.scoring-model-signals article span {
  color: #b8ced0;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.scoring-model-signals article strong {
  color: white;
  display: block;
  font-size: 14px;
}

.scoring-weight-details {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.scoring-weight-details summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  padding: 12px;
}

.scoring-weight-details summary::-webkit-details-marker {
  display: none;
}

.scoring-weight-details summary span {
  color: white;
  font-weight: 900;
}

.scoring-weight-details summary b {
  background: rgba(199, 70, 52, 0.22);
  border: 1px solid rgba(255, 183, 166, 0.38);
  border-radius: 999px;
  color: #ffd8cf;
  font-size: 10px;
  padding: 5px 8px;
}

.scoring-weight-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 12px;
}

.scoring-weight-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 9px;
}

.scoring-weight-card.critical {
  border-left-color: #ffb7a6;
}

.scoring-weight-card.support {
  border-left-color: #35c59b;
}

.scoring-weight-card span,
.scoring-weight-card strong,
.scoring-weight-card small {
  display: block;
}

.scoring-weight-card span {
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.scoring-weight-card strong {
  color: #d9fff7;
  font-size: 15px;
}

.scoring-weight-card small {
  color: #c8d8d9;
  font-size: 10px;
}

.qualification-scale-guide {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.07), rgba(35, 104, 162, 0.04)),
    white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.qualification-scale-head {
  display: grid;
  gap: 4px;
  max-width: 880px;
}

.qualification-scale-head span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qualification-scale-head strong {
  color: var(--ink);
  font-size: 16px;
}

.qualification-scale-head p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.qualification-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.qualification-card-head {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.09), rgba(35, 104, 162, 0.05)),
    #f7faf9;
  border: 1px solid #c8dbd8;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
}

.qualification-card-head span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.qualification-question-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr) minmax(0, 1.05fr);
}

.qualification-field {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.qualification-field-question {
  background:
    linear-gradient(135deg, rgba(199, 70, 52, 0.08), rgba(15, 118, 110, 0.06)),
    #ffffff;
  border-color: #c9d8d7;
  box-shadow: inset 4px 0 0 var(--teal);
}

.qualification-field span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.qualification-field p {
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
}

.qualification-field-question p {
  font-size: 13px;
  font-weight: 850;
}

.score-justification-row {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}

.score-justification-row textarea {
  min-height: 104px;
}

.maturity-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
}

.maturity-scale div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
}

.maturity-scale div.active {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.maturity-scale-reference div {
  border-top: 3px solid rgba(15, 118, 110, 0.26);
}

.maturity-scale strong,
.maturity-scale span {
  display: block;
}

.maturity-scale strong {
  font-size: 10px;
}

.maturity-scale span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  margin-top: 5px;
}

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

.framework-guide {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.framework-guide summary {
  cursor: pointer;
  display: grid;
  gap: 4px;
}

.framework-guide summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.framework-guide p {
  color: var(--muted);
  line-height: 1.45;
  margin: 10px 0;
}

.framework-guide ul {
  margin: 0;
  padding-left: 18px;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 14px;
}

.rag-search-panel {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(35, 104, 162, 0.04)),
    #ffffff;
  display: grid;
  gap: 14px;
}

.rag-search-head {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.rag-search-head span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.rag-search-head h2 {
  margin: 4px 0;
}

.rag-search-head p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.rag-source-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: end;
  max-width: 360px;
}

.rag-source-badges span {
  background: #eef4f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 10px;
  padding: 7px 9px;
}

.rag-search-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.rag-result-zone {
  display: grid;
  gap: 12px;
}

.rag-answer-card {
  background: #101820;
  border: 1px solid #2a3844;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 7px;
  padding: 14px;
}

.rag-answer-card span {
  color: #f0b6ac;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.rag-answer-card strong {
  color: #ffffff;
  line-height: 1.35;
}

.rag-answer-card small {
  color: #cbd7e1;
}

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

.rag-result-card {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 12px;
}

.rag-result-card > div:first-child {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.rag-result-card > div:first-child span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.rag-result-card > div:first-child b {
  align-items: center;
  background: #e7f5f2;
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  font-size: 10px;
  justify-content: center;
  min-width: 34px;
  padding: 5px 7px;
}

.rag-result-card h3 {
  margin: 0;
}

.rag-result-card p {
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-height: 1.45;
  margin: 0;
  overflow: hidden;
}

.rag-empty {
  background: #fbfcfd;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  padding: 14px;
}

.framework-card-list {
  display: grid;
  gap: 10px;
}

.framework-card {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.framework-card summary {
  cursor: pointer;
  display: grid;
  gap: 4px;
}

.framework-card summary span,
.framework-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.framework-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 10px 0;
}

.framework-card code {
  background: #101817;
  border-radius: 6px;
  color: #e5f2ed;
  display: block;
  overflow-wrap: anywhere;
  padding: 8px;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-row span {
  background: #eef2f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
}

.framework-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.framework-category-grid div {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.framework-category-grid strong,
.framework-category-grid span {
  display: block;
}

.framework-category-grid strong {
  font-size: 20px;
}

.framework-category-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  margin-top: 3px;
}

@media (max-width: 980px) {
  .auth-shell,
  .app-shell,
  .workspace.two-pane,
  .dashboard-grid,
  .dashboard-tabs,
  .dashboard-filter-bar,
  .dashboard-mini-grid,
  .dashboard-command-surface,
  .dashboard-command-scoreboard,
  .home-command-surface,
  .home-header,
  .home-grid,
  .home-cockpit-grid,
  .home-control-grid,
  .home-next-actions-grid,
  .home-content-rail,
  .home-cockpit-layout,
  .methodology-story-layout,
  .methodology-hero,
  .methodology-value-grid,
  .methodology-benefit-grid,
  .methodology-principle-grid,
  .methodology-pillar-grid,
  .methodology-scope-grid,
  .methodology-phase-grid,
  .methodology-flow-lanes,
  .methodology-runtime-board,
  .methodology-deliverables-layout,
  .methodology-outcome-grid,
  .methodology-readiness-grid,
  .methodology-next-step-panel,
  .methodology-next-step-actions,
  .content-grid,
  .learning-path-head,
  .learning-flow,
  .faq-visual-overview,
  .flow-lane-labels,
  .flow-track,
  .faq-compare-grid,
  .execution-command-grid,
  .execution-health-panel,
  .execution-task-body,
  .approval-flow-track,
  .case-tabs,
  .case-review-grid,
  .human-decision-head,
  .decision-guidance-grid,
  .decision-form-grid,
  .activity-filter-head,
  .activity-summary-grid,
  .task-guidance-grid,
  .task-attachment-row,
  .plan-facts,
  .plan-action-form,
  .business-process-grid,
  .admin-grid,
  .admin-command-center,
  .admin-command-metrics,
  .admin-focus-strip,
  .admin-auth-card,
  .admin-module-facts,
  .access-command-surface,
  .access-command-metrics,
  .access-summary-grid,
  .access-filter-bar,
  .access-split-layout,
  .api-admin-summary,
  .api-command-surface,
  .api-filter-bar,
  .agentic-command-surface,
  .agentic-command-metrics,
  .agentic-flow-track,
  .agentic-record-head,
  .agentic-editor-grid,
  .admin-scoring-hero,
  .admin-scoring-threshold-grid,
  .admin-workbench,
  .admin-field-grid,
  .admin-record-toolbar,
  .admin-studio,
  .admin-editor-toolbar,
  .admin-observability-grid,
  .admin-dashboard-view-grid,
  .admin-dashboard-view-head,
  .framework-grid,
  .rag-search-head,
  .rag-search-form,
  .requirements-grid,
  .requirements-command-surface,
  .requirements-command-scoreboard,
  .requirements-filter-bar,
  .requirement-console,
  .oracle-contact-row,
  .scoring-model-head,
  .scoring-model-rules,
  .scoring-formula-strip,
  .scoring-model-signals,
  .qualification-question-grid,
  .score-justification-row,
  .maturity-scale,
  .profile-body,
  .task-row {
    grid-template-columns: 1fr;
  }

  .task-command-panel,
  .task-edit-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .qualification-card-head {
    align-items: start;
    flex-direction: column;
  }

  .plan-control-head {
    align-items: start;
    flex-direction: column;
  }

  .admin-auth-card {
    align-items: start;
    flex-direction: column;
  }

  .methodology-compare-grid {
    grid-template-columns: 1fr;
  }

  .methodology-hero-promises {
    grid-template-columns: 1fr;
  }

  .methodology-hero-cta {
    grid-template-columns: 1fr;
  }

  .methodology-hero-cta-badges {
    justify-content: flex-start;
  }

  .methodology-hero-signal {
    grid-template-columns: 1fr;
  }

  .methodology-proof-strip {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .methodology-story-points {
    grid-template-columns: 1fr;
  }

  .methodology-scope-summary {
    grid-template-columns: 1fr;
  }

  .report-preview-panels {
    grid-template-columns: 1fr;
  }

  .report-filter-bar {
    grid-template-columns: 1fr;
  }

  .report-spotlight-head,
  .report-spotlight-body,
  .report-template-workspace-head,
  .report-template-workspace-body {
    grid-template-columns: 1fr;
  }

  .report-spotlight-facts,
  .report-template-workspace-facts {
    grid-template-columns: 1fr;
  }

  .report-readiness-banner-head {
    grid-template-columns: 1fr;
  }

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

  .architecture-disclosure summary {
    align-items: start;
    flex-direction: column;
  }

  .architecture-image-stage {
    padding: 12px;
  }

  .flow-lane-labels {
    display: none;
  }

  .flow-track::before {
    background: linear-gradient(180deg, var(--teal), var(--blue), var(--red), var(--amber));
    bottom: 8%;
    height: auto;
    left: 29px;
    right: auto;
    top: 8%;
    width: 3px;
  }

  .flow-stage {
    min-height: 0;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .flow-stage p {
    grid-column: 2;
  }

  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .topbar {
    grid-column: 1;
    grid-row: 2;
    position: static;
    flex-wrap: wrap;
    height: auto;
    gap: 12px;
    padding: 14px;
  }

  .side-nav {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .nav-group {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-foot {
    display: none;
  }

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

  .case-tabs button,
  .case-tabs button:first-child,
  .case-tabs button:last-child {
    border: 1px solid rgba(179, 93, 71, 0.22);
    border-radius: 8px;
    clip-path: none;
    flex: initial;
    margin-left: 0;
    padding: 0 12px;
  }

  .main-panel {
    grid-column: 1;
    grid-row: 3;
    overflow: visible;
  }

  .home-header {
    align-items: start;
  }

  .home-command-surface {
    grid-template-columns: 1fr;
  }

  .home-command-side,
  .home-actions {
    justify-items: start;
    justify-content: start;
  }

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

  .home-control-grid {
    grid-template-areas:
      "queue"
      "pipeline"
      "signals"
      "execution";
  }

  .dashboard-command-actions {
    justify-content: flex-start;
  }

  .rag-source-badges {
    justify-content: flex-start;
    max-width: none;
  }

  .requirements-command-actions,
  .requirement-card-actions,
  .api-command-actions {
    justify-content: flex-start;
  }

  .dashboard-decision-panel {
    grid-template-columns: 1fr;
  }

  .decision-ring {
    width: min(132px, 100%);
  }

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

  .auth-shell {
    align-content: center;
    grid-template-columns: minmax(0, 680px);
  }

  .auth-brand {
    min-height: auto;
  }

  .admin-section-modal {
    max-height: 94dvh;
    width: min(96vw, 980px);
  }

  .requirement-case-modal {
    max-height: 94dvh;
  }

  .admin-modal-body {
    max-height: calc(94dvh - 88px);
  }

  .admin-focus-card {
    min-height: 0;
  }

  .admin-dashboard-view-head {
    align-items: start;
    flex-direction: column;
  }

  .agentic-flow-node::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .auth-shell::before {
    height: min(620px, 128vw);
    opacity: 0.1;
    transform: translate(-50%, -40%);
    width: min(760px, 132vw);
  }

  .auth-panel,
  .auth-context {
    min-width: 0;
    padding: 16px;
    width: 100%;
  }

  .auth-language {
    margin-bottom: 12px;
    position: static;
    text-align: right;
  }

  .auth-brand {
    gap: 10px;
    grid-template-columns: 44px minmax(0, 1fr);
    padding-right: 0;
  }

  .auth-brand img {
    height: 44px;
    width: 44px;
  }

  .main-panel {
    padding: 12px;
  }

  .metric-grid,
  .execution-command-grid,
  .agentic-command-metrics,
  .agentic-record-ribbon,
  .agentic-editor-grid,
  .approval-flow-track,
  .stage-facts,
  .facts,
  .two-col,
  .three-col,
  .score-grid,
  .task-attachment-row,
  .password-row {
    grid-template-columns: 1fr;
  }

  .side-nav {
    padding: 12px;
  }

  .nav-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .wizard-steps,
  .case-tabs,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .home-cockpit-grid,
  .home-content-rail,
  .requirement-card-grid {
    grid-template-columns: 1fr;
  }

  .home-requirement-card,
  .home-pipeline-row {
    grid-template-columns: 1fr;
  }

  .pipeline-status-panel .money-row {
    grid-template-columns: 1fr;
  }

  .pipeline-status-panel .money-row b {
    text-align: left;
  }

  .home-req-side {
    justify-items: start;
  }

  .modal-actions {
    display: grid;
  }

  .execution-cockpit-head,
  .activity-head,
  .activity-head-actions,
  .activity-card-head,
  .evidence-pack-preview-head,
  .api-admin-head,
  .agentic-flow-head,
  .case-action-strip,
  .case-form-actions,
  .backlog-heading {
    align-items: start;
    flex-direction: column;
  }

  .managed-backlog-grid {
    grid-template-columns: 1fr;
  }

  .admin-modal-backdrop {
    padding: 8px;
  }

  .admin-section-modal {
    border-radius: 8px;
    max-height: 96dvh;
    width: 100%;
  }

  .admin-modal-body {
    max-height: calc(96dvh - 96px);
    padding: 10px;
  }

  .admin-command-center,
  .admin-module-hub,
  .admin-auth-card {
    padding: 12px;
  }

  .admin-command-copy h1 {
    font-size: 20px;
  }

  .admin-action-strip,
  .admin-card-actions,
  .admin-module-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-module-card {
    min-height: 0;
  }

  .guide-list {
    grid-template-columns: 1fr;
  }

  .auth-brand h1 {
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .auth-tabs button,
  .segmented button {
    font-size: 11px;
  }
}
