:root {
  color-scheme: light;
  --bg: #f5f6f7;
  --panel: #ffffff;
  --text: #303133;
  --muted: #606266;
  --line: #dcdfe6;
  --green: #72c942;
  --yellow: #ff822a;
  --red: #f56c6c;
  --blue: #337efd;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sidebar {
  background: #111827;
  color: #f9fafb;
  padding: 20px 14px;
  height: 100vh;
  overflow: auto;
}

.brand {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
  padding: 0 8px;
}

.brand strong { font-size: 17px; }
.brand span { color: #aab3c2; font-size: 13px; }

.nav {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 6px;
  margin-bottom: 6px;
  padding: 0 12px;
  text-align: left;
  color: #d5dae4;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

.nav.active,
.nav:hover {
  color: #fff;
  background: #253044;
}

.skill-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.menu-console-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.menu-console-head h2 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.menu-console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.menu-config-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.menu-list-stack {
  min-width: 0;
}

.menu-editor-sticky {
  position: sticky;
  top: 16px;
}

.skill-menu-grid {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.skill-menu-table input[type="text"] {
  min-width: 180px;
}

.skill-menu-table .source-name {
  color: var(--muted);
  font-size: 12px;
}

.skill-editor {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.5fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: end;
  margin: 16px 0;
}

.skill-editor label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 700;
}

.skill-visible-switch {
  min-height: 38px;
  align-content: center;
}

.skill-current-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.skill-current-card span,
.skill-current-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.skill-current-card strong {
  font-size: 16px;
}

.selected-row {
  background: #f1f6ff;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #f8fbff;
}

.compact-menu-table {
  table-layout: fixed;
}

.compact-menu-table th:nth-child(1),
.compact-menu-table td:nth-child(1) {
  width: 96px;
}

.compact-menu-table th:nth-child(2),
.compact-menu-table td:nth-child(2) {
  width: 120px;
}

.compact-menu-table th:nth-child(3),
.compact-menu-table td:nth-child(3) {
  width: 230px;
}

.compact-menu-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.skill-list-controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin: 12px 0;
}

.skill-list-controls input {
  height: 38px;
}

.skill-list-controls label {
  display: grid;
  gap: 8px;
  min-width: 320px;
  color: #344054;
  font-weight: 700;
}

.skill-pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.main {
  min-width: 0;
  max-width: 100%;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
}

h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: 0; }
p { margin: 0; color: var(--muted); }

.actions { display: flex; gap: 8px; }
.session-info {
  display: inline-flex;
  align-items: center;
  height: 36px;
  color: var(--muted);
  font-size: 13px;
}
button {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  cursor: pointer;
}

button.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
#tokens button.metric { height: auto; min-height: 84px; text-align: left; }
button.small-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
  color: #fff;
}
button.ok-action { background: var(--green); border-color: var(--green); }
button.reject-action { background: var(--red); border-color: var(--red); }
button.danger { background: #fff5f5; color: var(--red); border-color: #f1a7a2; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
input:disabled,
select:disabled,
textarea:disabled {
  background: #f1f5f9;
  color: #667085;
  cursor: not-allowed;
}
input:focus,
textarea:focus,
select:focus,
button:focus,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-color: var(--blue);
}

.status {
  min-height: 40px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 10px 12px;
  box-shadow: var(--shadow);
}

.status.ok { border-color: #9bd7bb; color: var(--green); }
.status.warn { border-color: #f2c66d; color: var(--yellow); }
.status.err { border-color: #f1a7a2; color: var(--red); }

.readonly-mode .status:not(.ok):not(.err) {
  border-color: #f2c66d;
}

.readonly-note {
  margin-top: 8px;
  color: var(--yellow);
  font-weight: 700;
}

.customer-action-card {
  margin: 12px 0;
  border: 1px solid #f2c66d;
  border-radius: 6px;
  background: #fffaf0;
}

.customer-action-card > summary,
.audit-customer-guidance > summary {
  padding: 10px 12px;
  cursor: pointer;
  color: #7a4b00;
  font-weight: 700;
}

.customer-action-card[open] > summary,
.audit-customer-guidance[open] > summary {
  border-bottom: 1px solid #f2c66d;
}

.customer-action-card > p,
.customer-action-list {
  margin: 12px;
}

.customer-action-message {
  color: var(--text);
  font-weight: 700;
}

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

.customer-action-item {
  padding: 12px;
  border: 1px solid #f2c66d;
  border-radius: 6px;
  background: #fff;
}

.customer-action-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.customer-action-item ol {
  margin: 8px 0 0 20px;
  padding: 0;
  color: var(--muted);
}

.customer-action-item li + li {
  margin-top: 4px;
}

.audit-customer-guidance {
  display: inline-block;
  max-width: 320px;
  vertical-align: middle;
  border: 1px solid #f2c66d;
  border-radius: 6px;
  background: #fffaf0;
  text-align: left;
}

.audit-customer-guidance[open] {
  width: min(320px, 70vw);
}

.audit-customer-guidance p {
  margin: 10px 12px;
  white-space: normal;
}

.tab {
  display: none;
  min-width: 0;
  max-width: 100%;
}
.tab.active { display: block; }

.token-secondary-nav {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f7;
}

.token-secondary-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.token-secondary-nav button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow);
}

.policy-page-head,
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.policy-page-head h2,
.dialog-header h2 {
  margin: 4px 0 6px;
}

.policy-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 210px auto;
  gap: 12px;
  align-items: end;
  margin: 20px 0 14px;
}

.policy-toolbar label,
.policy-form-grid label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 700;
}

.policy-toolbar input,
.policy-toolbar select,
.policy-form-grid input,
.policy-form-grid textarea {
  width: 100%;
}

.policy-result-count {
  min-height: 38px;
  display: flex;
  align-items: center;
  color: var(--muted);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.smart-policy-table {
  min-width: 1060px;
}

.disabled-policy-row {
  background: #fff7f6;
}

.project-chip {
  display: inline-flex;
  margin: 2px 2px 2px 0;
  padding: 2px 7px;
  border: 1px solid #cdd8ec;
  border-radius: 999px;
  background: #f5f8ff;
  color: #344c74;
  font-size: 12px;
  white-space: nowrap;
}

.stale-version-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #f2c66d;
  border-radius: 7px;
  background: #fff9ec;
  color: #7a4d00;
}

.policy-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.2);
}

.policy-dialog::backdrop {
  background: rgba(17, 24, 39, 0.45);
}

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

.policy-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

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

.policy-toggle-field {
  align-content: start;
}

.dialog-callout {
  margin-top: 16px;
  padding: 12px;
  border-left: 4px solid #f0a000;
  border-radius: 6px;
  background: #fff9ec;
  color: #694100;
}

.danger-callout {
  border-left-color: var(--red);
  background: #fff5f5;
  color: #7a271a;
}

.rollback-reason-field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: #344054;
  font-weight: 700;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.policy-history-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.policy-history-item {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 2fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.policy-history-item > div {
  display: grid;
  gap: 4px;
}

.policy-history-item span {
  color: var(--muted);
  font-size: 12px;
}

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

.state-card {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fafbfc;
  color: var(--muted);
}

.error-state {
  border-color: #f1a7a2;
  background: #fff7f6;
  color: var(--red);
}

@media (max-width: 900px) {
  body {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: auto;
    padding: 10px;
    overflow-x: auto;
  }

  .brand {
    position: sticky;
    left: 0;
    z-index: 2;
    flex: 0 0 auto;
    margin: 0 8px 0 0;
    padding: 0 8px 0 0;
    background: #111827;
  }

  .brand span {
    display: none;
  }

  .nav {
    flex: 0 0 auto;
    width: auto;
    height: 38px;
    margin: 0;
    white-space: nowrap;
  }

  .main {
    padding: 12px;
  }

  .menu-console-head {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-config-layout,
  .skill-editor {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-editor-sticky {
    position: static;
  }

  .skill-list-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .skill-list-controls label {
    min-width: 0;
  }

  .skill-pagination {
    flex-wrap: wrap;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .actions {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
  }

  .actions > * {
    flex: 0 0 auto;
  }

  .actions .session-info {
    flex-basis: 100%;
    height: auto;
  }

  .token-secondary-nav {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
  }

  .token-secondary-nav button {
    flex: 0 0 auto;
  }

  .policy-toolbar,
  .policy-form-grid,
  .policy-history-item {
    grid-template-columns: 1fr;
  }

  .policy-form-grid .full-field { grid-column: auto; }
  .history-policy-values { grid-template-columns: 1fr; }
  .policy-page-head, .dialog-header { flex-direction: column; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.memory-grid {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.gitlab-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.token-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

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

.metric,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric { padding: 16px; }
.metric span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.metric strong { font-size: 22px; }

.panel { padding: 16px; margin-bottom: 16px; overflow: auto; }
.panel h2 { margin: 0 0 12px; font-size: 17px; }

.route3-evidence-table {
  min-width: 1120px;
  table-layout: fixed;
}

.route3-evidence-table th:nth-child(1) { width: 210px; }
.route3-evidence-table th:nth-child(2) { width: 160px; }
.route3-evidence-table th:nth-child(3),
.route3-evidence-table th:nth-child(4) { width: 150px; }
.route3-evidence-table th:nth-child(5) { width: 190px; }
.route3-evidence-table th:nth-child(6) { width: 180px; }
.route3-evidence-table th:nth-child(7) { width: 220px; }

.route3-evidence-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th { color: #475467; background: #f8fafc; font-weight: 600; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue); }
input[type="number"], input[type="search"], input[type="text"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  font: inherit;
}

select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  font: inherit;
}

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

.tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  background: #eef2ff;
  color: #3443a8;
}

.ok-tag { background: #e8f7ef; color: var(--green); }
.warn-tag { background: #fff5dd; color: var(--yellow); }
.danger-tag { background: #fff0f0; color: var(--red); }
.neutral-tag { background: #eef2f7; color: #475467; }
.token-stale-metric { border-color: #fecdca; background: #fffafa; }
.token-stale-metric strong { color: var(--red); }
.runtime-token-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px auto auto;
  gap: 10px;
  align-items: end;
  margin: 16px 0;
}
.runtime-token-toolbar label { display: grid; gap: 6px; color: #344054; font-size: 13px; font-weight: 700; }
.runtime-token-table-scroll { width: 100%; overflow-x: auto; border-radius: 8px; }
.runtime-token-table-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.runtime-token-table { min-width: 1580px; }
.runtime-token-stale-row { background: #fff8f7; }
.runtime-token-stale-row:hover { background: #fff1ef; }
.runtime-token-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.runtime-token-pagination button:disabled { cursor: not-allowed; opacity: 0.45; }
@media (max-width: 900px) {
  .runtime-token-toolbar { grid-template-columns: 1fr 1fr; }
  .runtime-token-toolbar label:first-child { grid-column: span 2; }
}
.muted-text { color: var(--muted); }
.artifact-role-list {
  color: #475467;
  font-size: 13px;
  line-height: 1.6;
}
.artifact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 150px;
}
.artifact-actions .small-select {
  width: auto;
  min-width: 112px;
  height: 30px;
}
.artifact-toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto 110px auto auto;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}
.artifact-toolbar label { color: #475467; font-size: 13px; font-weight: 600; }
.artifact-toolbar select { min-width: 96px; }
.artifact-table-scroll { width: 100%; overflow-x: auto; border-radius: 8px; }
.artifact-table-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.artifact-table-scroll table { min-width: 1120px; }
.artifact-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.artifact-pagination button:disabled { cursor: not-allowed; opacity: 0.45; }
.artifact-trace { margin-top: 6px; }
.artifact-trace summary { cursor: pointer; color: var(--blue); font-size: 12px; }
.artifact-trace .machine-key { overflow-wrap: anywhere; }
@media (max-width: 1366px) {
  .artifact-toolbar { grid-template-columns: auto minmax(180px, 1fr) auto 100px; }
  .artifact-toolbar button { width: 100%; }
}
@media (max-width: 900px) {
  .artifact-toolbar { grid-template-columns: 1fr 1fr; }
  .artifact-toolbar label { grid-column: span 2; }
}
.small-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 9px;
  color: var(--text);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
}
.small-link:hover {
  border-color: #7da0ff;
  color: var(--blue);
}

.risk { color: var(--red); font-weight: 700; }
.audit-failed-row {
  background: #fffaf0;
}

.history-impact-card {
  margin-top: 0.65rem;
  padding: 0.65rem;
  border: 1px solid var(--border, #d8dee8);
  border-radius: 8px;
  background: var(--panel-soft, #f7f9fc);
  min-width: min(32rem, 80vw);
}

.history-impact-card > summary {
  cursor: pointer;
  font-weight: 700;
}

.history-impact-baseline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.7rem 0;
}

.history-impact-card .table-wrap {
  overflow-x: auto;
}
.audit-alert-row {
  background: #fff2f2;
  box-shadow: inset 4px 0 0 var(--red);
}
.audit-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}
.machine-key {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.rule-list {
  display: grid;
  gap: 10px;
  color: #344054;
  line-height: 1.6;
}

.constraint-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.constraint-chip-list.compact .tag {
  font-size: 11px;
}

.stage-actions {
  margin: 0 0 12px;
}

.delivery-chain-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.delivery-chain {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.delivery-chain-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.delivery-chain-head span {
  color: var(--muted);
  font-size: 12px;
}

.beginner-action-card {
  display: grid;
  gap: 14px;
  margin: 0 0 14px;
  padding: 18px;
  border: 2px solid #4f46e5;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 70%);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.12);
}

.guide-blocked .beginner-action-card {
  border-color: #dc2626;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 72%);
}

.guide-complete .beginner-action-card {
  border-color: #16a34a;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 72%);
}

.beginner-action-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.beginner-action-card h3 {
  margin: 4px 0 0;
  color: #111827;
  font-size: 22px;
}

.guide-status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.guide-status.is-ready {
  color: #3730a3;
  background: #e0e7ff;
}

.guide-status.is-blocked {
  color: #991b1b;
  background: #fee2e2;
}

.guide-status.is-pass {
  color: #166534;
  background: #dcfce7;
}

.guide-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
}

.guide-facts > div {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.guide-facts span,
.guide-actions span {
  color: var(--muted);
  font-size: 12px;
}

.guide-blocker {
  padding: 12px;
  border-left: 4px solid #dc2626;
  border-radius: 6px;
  color: #7f1d1d;
  background: #fff1f2;
}

.guide-decision {
  padding: 11px 12px;
  border-radius: 8px;
  color: #312e81;
  background: rgba(224, 231, 255, 0.72);
  line-height: 1.55;
}

.guide-blocked .guide-decision {
  color: #7f1d1d;
  background: #fee2e2;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.guided-action-button {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 800;
}

.guided-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.delivery-stage-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}

.delivery-stage {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.delivery-stage.has-doc {
  border-color: #9bd7bb;
  background: #f6fef9;
}

.delivery-stage.missing-doc {
  background: #f8fafc;
}

.delivery-stage-index {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2ff;
  color: #3443a8;
  font-size: 12px;
  font-weight: 800;
}

.delivery-stage strong {
  font-size: 16px;
}

.delivery-stage em,
.delivery-stage span:not(.delivery-stage-index) {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}

.gitlab-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1.2fr) minmax(160px, 0.8fr) minmax(240px, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.token-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.7fr) minmax(160px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.token-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-weight: 600;
}

.token-result {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #9bd7bb;
  border-radius: 8px;
  background: #f0fdf4;
}

.token-result pre {
  margin: 10px 0;
  background: #052e16;
  color: #dcfce7;
}

.panel-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-heading-row h2 {
  margin-bottom: 6px;
}

.panel-heading-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.token-roster-metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 14px;
}

.token-roster-form {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.token-roster-form label,
.token-roster-fields label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-weight: 600;
}

.token-roster-fields {
  display: grid;
  gap: 12px;
}

.checkbox-row {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  line-height: 1.45;
}

.token-roster-preview {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.token-roster-preview.is-pass {
  border-color: #9bd7bb;
  background: #f0fdf4;
}

.token-roster-preview.is-block,
.token-roster-blockers {
  border-color: #f2c66d;
  background: #fffbeb;
}

.token-roster-blockers {
  margin-top: 14px;
  padding: 12px;
  border-width: 1px;
  border-style: solid;
  border-radius: 8px;
}

.token-roster-blockers ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.table-wrap {
  overflow: auto;
}

.error-text {
  color: #b42318;
  font-weight: 700;
}

@media (max-width: 900px) {
  .panel-heading-row,
  .token-roster-form {
    grid-template-columns: 1fr;
    display: grid;
  }
}

.token-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.ok {
  border-color: #9bd7bb;
  color: var(--green);
  background: #f0fdf4;
}

.status-pill.warn {
  border-color: #f2c66d;
  color: var(--yellow);
  background: #fffbeb;
}

.status-pill.muted {
  color: var(--muted);
  background: #f8fafc;
}

.gitlab-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-weight: 600;
}

.gitlab-form input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
}

.gitlab-inline-sync {
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.login-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
    rgba(15, 23, 42, 0.66);
  padding: 24px;
}
.login-overlay.active { display: flex; }
.login-card {
  width: min(380px, 100%);
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
  padding: 28px;
}
.login-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

@media (max-width: 900px) {
  .memory-grid,
  .gitlab-grid,
  .skill-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .delivery-chain {
    overflow-x: auto;
  }

  .beginner-action-card {
    min-width: 680px;
  }

  .guide-facts {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}
.login-card h2 { margin: 0 0 8px; font-size: 26px; }
.login-card p { margin-bottom: 20px; line-height: 1.6; }
.login-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 600;
}
.login-card input {
  height: 42px;
  font-size: 16px;
}
.login-card button {
  width: 100%;
  height: 42px;
  font-weight: 700;
}
.login-message { margin-top: 10px; color: var(--red); min-height: 20px; }
pre {
  white-space: pre-wrap;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
}

.design-standard-preview {
  scroll-margin-top: 16px;
}

.design-source-content {
  max-height: 68vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.error-text {
  color: #b42318;
}

/* Harness adoption uses the existing console tables and metrics. */
.adoption-filters { display:flex; gap:12px; align-items:end; flex-wrap:wrap; margin:20px 0 0; }
.adoption-filters label { display:grid; gap:6px; flex:1; min-width:180px; }
.adoption-filters input { width:100%; padding:9px 12px; border:1px solid #d7dce6; border-radius:6px; }
.adoption-intro p { max-width:1100px; }
#tokens .adoption-intro ~ .panel td { vertical-align:top; min-width:100px; }
#tokens .adoption-intro ~ .panel details { max-width:300px; overflow-wrap:anywhere; }
#tokens .adoption-intro ~ .panel small { color:var(--muted, #667085); }

/* Personnel drill-down: scoped to the existing Harness monitoring surface. */
#tokens .adoption-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#tokens .adoption-summary .metric { min-width: 0; padding: 12px 16px; }
#tokens .adoption-summary .metric strong { font-size: 24px; }
#tokens .adoption-view-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
#tokens .adoption-section-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
#tokens .adoption-section-head > div { min-width: 0; }
#tokens .adoption-section-head h2, #tokens .adoption-section-head h3, #tokens .adoption-section-head h4 { margin: 0 0 8px; overflow-wrap: anywhere; }
#tokens .adoption-section-head p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
#tokens .adoption-people-table { min-width: 780px; table-layout: fixed; width: 100%; }
#tokens .adoption-people-table th, #tokens .adoption-people-table td { padding: 12px 8px; overflow-wrap: anywhere; }
#tokens .adoption-people-table th:nth-child(1) { width: 18%; }
#tokens .adoption-people-table th:nth-child(2) { width: 22%; }
#tokens .adoption-people-table th:nth-child(3) { width: 17%; }
#tokens .adoption-people-table th:nth-child(4) { width: 19%; }
#tokens .adoption-people-table th:nth-child(5) { width: 14%; }
#tokens .adoption-people-table th:nth-child(6) { width: 10%; }
#tokens .adoption-people-table td:last-child { min-width: 80px; }
#tokens .adoption-project-name { display: block; margin-bottom: 4px; }
#tokens .adoption-selected td { background: #edf4ff; }
#tokens .adoption-person-detail { border-top: 2px solid var(--line); margin-top: 24px; padding-top: 24px; }
#tokens .adoption-eyebrow { color: var(--blue); }
#tokens .adoption-person-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 20px; }
#tokens .adoption-person-metrics > div { border: 1px solid var(--line); border-radius: 6px; padding: 12px; min-width: 0; }
#tokens .adoption-person-metrics strong { display: block; font-size: 20px; margin-bottom: 8px; overflow-wrap: anywhere; }
#tokens .adoption-person-metrics span, #tokens .adoption-help { font-size: 13px; color: var(--muted); line-height: 1.6; }
#tokens .adoption-project-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 20px 0; }
#tokens .adoption-project-card h3 { font-size: 17px; }
#tokens .adoption-demand-card { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
#tokens .adoption-demand-card + .adoption-demand-card { margin-top: 20px; }
#tokens .adoption-demand-card h4 { font-size: 16px; }
#tokens .adoption-demand-card h4 small { font-weight: normal; font-size: 13px; }
#tokens .adoption-stage-track { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 8px 0 16px; }
#tokens .adoption-stage { display: grid; gap: 6px; padding: 12px 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); text-align: center; font-size: 13px; color: var(--muted); }
#tokens .adoption-stage.is-pass { background: #f0f9eb; border-color: #c2e7b0; color: #367c17; }
#tokens .adoption-stage.is-block { background: #fef0f0; border-color: #fbc4c4; color: #b82e2e; }
#tokens .adoption-stage.is-running { background: #edf4ff; border-color: #a3c4ff; color: #225bb7; }
#tokens .adoption-demand-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
#tokens .adoption-people-panel details { max-width: none; margin: 12px 0; }
#tokens .adoption-people-panel summary { cursor: pointer; color: var(--blue); }
#tokens .adoption-evidence-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
#tokens .adoption-evidence-grid > div { padding: 12px; background: var(--bg); border-radius: 6px; min-width: 0; }
#tokens .adoption-people-panel :focus-visible, #tokens .adoption-view-nav :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 1366px) {
  #tokens .adoption-stage-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #tokens .adoption-person-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  #tokens .adoption-summary, #tokens .adoption-evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tokens .adoption-section-head { flex-wrap: wrap; }
}
#tokens .adoption-people-table button { white-space: nowrap; padding: 6px 8px; }

/* Decision dashboard: page-local styling, existing console tokens. */
#tokens .board-intro { padding: 16px 20px; }
#tokens .board-intro > h2 { font-size: 22px; margin: 0 0 8px; }
#tokens .board-intro > p { font-size: 13px; margin: 6px 0; }
#tokens .board-intro > details { display: none; }
#tokens .board-intro .adoption-filters { margin: 12px 0 0; }
#tokens .board-intro [hidden], #tokens .adoption-summary[hidden] { display: none !important; }
#tokens .harness-board { display: grid; gap: 16px; }
#tokens .board-conclusion { display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1px solid #b8d0f5; border-left: 4px solid var(--blue); background: #f0f6ff; border-radius: 8px; padding: 18px 20px; }
#tokens .board-conclusion.is-stale { border-color: #efc58d; background: #fff8ed; }
#tokens .board-conclusion h2 { margin: 6px 0 8px; font-size: 20px; line-height: 1.4; }
#tokens .board-conclusion p { margin: 0; line-height: 1.7; font-size: 14px; }
#tokens .board-eyebrow { font-size: 12px; font-weight: 600; color: #3f6292; }
#tokens .board-review-only { flex-shrink: 0; font-size: 12px; color: var(--muted); line-height: 1.6; text-align: right; }
#tokens .board-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
#tokens .board-kpis article { min-width: 0; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
#tokens .board-kpis article > span { color: var(--muted); font-size: 13px; }
#tokens .board-kpis strong { display: block; font-size: 30px; color: var(--text); margin: 12px 0; line-height: 1.2; font-variant-numeric: tabular-nums; }
#tokens .board-kpis strong small { font-size: 12px; font-weight: 400; color: var(--muted); }
#tokens .board-kpis p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
#tokens .board-charts { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
#tokens .board-card { min-width: 0; padding: 20px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; box-shadow: var(--shadow); }
#tokens .board-section-title { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
#tokens .board-section-title h2, #tokens .board-section-title h3 { font-size: 16px; margin: 0 0 8px; }
#tokens .board-section-title p, #tokens .board-section-title > span { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }
#tokens .board-legend { display: flex; gap: 16px; font-size: 12px; margin: 12px 0; }
#tokens .board-legend span:first-child { color: var(--blue); }
#tokens .board-legend span:last-child { color: #4a942e; }
#tokens .board-trend { height: 134px; display: flex; align-items: stretch; gap: 3px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top,transparent 0,transparent 32px,#eef1f5 33px,#eef1f5 34px); }
#tokens .board-day { min-width: 0; flex: 1; display: flex; align-items: end; gap: 1px; }
#tokens .board-day i { flex: 1; min-height: 2px; background: var(--blue); border-radius: 2px 2px 0 0; }
#tokens .board-day i + i { background: var(--green); }
#tokens .board-axis { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; margin-top: 8px; }
#tokens .board-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; line-height: 1.6; }
#tokens .board-stage-coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin: 22px 0; }
#tokens .board-stage-coverage > div { display: grid; grid-template-columns: 28px 1fr 40px; align-items: center; gap: 8px; font-size: 12px; }
#tokens .board-stage-coverage strong { font-weight: 500; text-align: right; }
#tokens .board-progress { background: #edf0f5; height: 7px; border-radius: 4px; overflow: hidden; }
#tokens .board-progress i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
#tokens .board-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
#tokens .board-filters button { padding: 8px 12px; font-size: 12px; display: flex; gap: 8px; align-items: center; }
#tokens .board-filters button strong { border-radius: 4px; padding: 1px 5px; background: #edf0f4; }
#tokens .board-filters button.selected { border-color: var(--blue); color: #2059b4; background: #edf4ff; }
#tokens .board-decision-table { width: 100%; min-width: 850px; table-layout: fixed; font-size: 13px; }
#tokens .board-decision-table th:nth-child(1) { width: 18%; }
#tokens .board-decision-table th:nth-child(2) { width: 19%; }
#tokens .board-decision-table th:nth-child(3) { width: 13%; }
#tokens .board-decision-table th:nth-child(4) { width: 25%; }
#tokens .board-decision-table th:nth-child(5) { width: 25%; }
#tokens .board-decision-table td { vertical-align: top; padding: 16px 10px; overflow-wrap: anywhere; }
#tokens .board-decision-table p { margin: 8px 0; font-size: 12px; line-height: 1.7; }
#tokens .board-decision-table small { display: block; font-size: 11px; margin-top: 6px; color: var(--muted); line-height: 1.6; }
#tokens .board-project { display: block; margin-bottom: 6px; font-weight: 600; }
#tokens .board-advice { display: inline-block; border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
#tokens .board-advice.keep { color: #367c17; background: #f0f9eb; border-color: #c2e7b0; }
#tokens .board-advice.follow { color: #936010; background: #fff8e8; border-color: #efdaa6; }
#tokens .board-advice.review { color: #b82e2e; background: #fef0f0; border-color: #fbc4c4; }
#tokens .board-advice.unknown, #tokens .board-advice.disabled { color: #626b7c; background: #f4f5f7; }
#tokens .board-decisions > details { margin-top: 16px; font-size: 12px; line-height: 1.8; }
#tokens .board-decisions > details summary { cursor: pointer; color: var(--blue); }
#tokens .harness-decision-drawer { padding: 0; width: min(800px,92vw); max-width: 92vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border: 0; border-left: 1px solid var(--line); background: var(--panel); color: var(--text); }
#tokens .harness-decision-drawer::backdrop { background: rgba(17,24,39,.38); }
#tokens .harness-decision-drawer > header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); height: 86px; }
#tokens .harness-decision-drawer > header h2 { margin: 4px 0 0; font-size: 18px; overflow-wrap: anywhere; }
#tokens .harness-decision-drawer > header span { color: var(--muted); font-size: 12px; }
#tokens .harness-drawer-body { height: calc(100% - 86px); overflow-y: auto; padding: 24px; }
#tokens .drawer-decision { padding: 16px; background: #f5f8fc; border: 1px solid var(--line); border-radius: 6px; }
#tokens .drawer-decision h3 { font-size: 16px; line-height: 1.6; }
#tokens .drawer-decision p { font-size: 13px; line-height: 1.7; }
#tokens .harness-decision-drawer .adoption-person-detail { padding-top: 16px; margin-top: 16px; }
#tokens .harness-decision-drawer .adoption-person-metrics { grid-template-columns: 1fr 1fr; }
#tokens .harness-decision-drawer .adoption-stage-track { grid-template-columns: repeat(4,minmax(0,1fr)); }
#tokens .harness-board :focus-visible, #tokens .harness-decision-drawer :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 1100px) { #tokens .board-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } #tokens .board-charts { grid-template-columns: 1fr; } }
@media (max-width: 700px) { #tokens .board-conclusion { flex-direction: column; align-items: start; } #tokens .board-review-only { text-align: left; } #tokens .board-stage-coverage { grid-template-columns: 1fr; } }
#tokens .board-project-table { width: 100%; min-width: 650px; font-size: 13px; }
#tokens .board-project-table th, #tokens .board-project-table td { padding: 12px; vertical-align: top; overflow-wrap: anywhere; }
#tokens .board-project-table th:first-child { width: 24%; }
#tokens .board-project-table th:last-child { width: 42%; }

/* Harness dashboard: responsive workspace, scoped to the active dashboard only. */
body:has(#tokens.active .board-compact) { grid-template-columns: 192px minmax(0,1fr); }
body:has(#tokens.active .board-compact) .main { width: 100%; max-width: 1640px; margin-inline: auto; padding: 16px 24px 24px; }
body:has(#tokens.active .board-compact) .sidebar { padding: 18px 12px; position: sticky; top: 0; }
body:has(#tokens.active .board-compact) .sidebar .nav { height: 36px; margin-bottom: 4px; font-size: 13px; }
body:has(#tokens.active .board-compact) .topbar { gap: 16px; margin-bottom: 8px; }
body:has(#tokens.active .board-compact) .topbar h1 { font-size: 18px; margin: 0; }
body:has(#tokens.active .board-compact) .topbar > div:first-child > p { display: none; }
body:has(#tokens.active .board-compact) .topbar button,
body:has(#tokens.active .board-compact) .session-info { height: 30px; font-size: 12px; }
body:has(#tokens.active .board-compact) .status { min-height: 0; padding: 4px 0; margin-bottom: 12px; border: 0; background: transparent; box-shadow: none; font-size: 12px; }
#tokens:has(.board-compact) .adoption-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
#tokens:has(.board-compact) .token-secondary-nav { padding: 3px; margin: 0; }
#tokens:has(.board-compact) .token-secondary-nav button { height: 32px; min-height: 32px; padding: 0 10px; font-size: 12px; }
#tokens:has(.board-compact) .adoption-view-nav { display: flex; gap: 2px; margin: 0; flex-wrap: wrap; }
#tokens:has(.board-compact) .adoption-view-nav button { height: 32px; padding: 0 10px; font-size: 12px; border-color: transparent; background: transparent; color: var(--muted); }
#tokens:has(.board-compact) .adoption-view-nav button.primary { color: var(--blue); background: #eaf2ff; font-weight: 600; }
#tokens .board-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 0; margin: 0 0 12px; border: 0; background: transparent; box-shadow: none; overflow: visible; }
#tokens .board-toolbar-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
#tokens .board-toolbar-title h2 { font-size: 18px; margin: 0; }
#tokens .board-toolbar-title > span { flex-basis: 100%; font-size: 12px; color: var(--muted); }
#tokens .board-environment { position: relative; font-size: 11px; color: #936010; }
#tokens .board-environment summary { cursor: pointer; }
#tokens .board-environment p { position: absolute; z-index: 2; top: 22px; left: 0; width: min(260px,70vw); padding: 12px; background: #fff8e8; border: 1px solid #efdaa6; border-radius: 6px; box-shadow: var(--shadow); }
#tokens .board-intro .adoption-filters { display: flex; align-items: center; flex: 1 1 460px; max-width: 620px; gap: 8px; margin: 0; }
#tokens .board-intro .adoption-filters label { flex: 1; min-width: 120px; margin: 0; }
#tokens .board-intro .adoption-filters input { width: 100%; }
#tokens .board-intro .adoption-filters input,
#tokens .board-intro .adoption-filters button { height: 32px; min-height: 32px; padding: 0 10px; font-size: 12px; }
#tokens .board-intro .adoption-filters button { flex-shrink: 0; white-space: nowrap; }
#tokens .board-intro .adoption-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#tokens .board-compact { gap: 12px; }
#tokens .board-compact .board-conclusion { padding: 10px 14px; gap: 12px; border-left-width: 3px; }
#tokens .board-compact .board-conclusion > div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#tokens .board-compact .board-conclusion h2 { font-size: 14px; margin: 0; }
#tokens .board-compact .board-conclusion details { font-size: 12px; }
#tokens .board-compact .board-conclusion summary { color: var(--blue); cursor: pointer; }
#tokens .board-compact .board-conclusion details[open] { flex-basis: 100%; }
#tokens .board-compact .board-conclusion p { font-size: 12px; margin-top: 6px; }
#tokens .board-compact .board-review-only { font-size: 11px; }
#tokens .board-compact .board-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
#tokens .board-compact .board-kpis article { padding: 12px 16px; box-shadow: none; }
#tokens .board-compact .board-kpis article > span { font-size: 12px; }
#tokens .board-compact .board-kpis strong { margin: 6px 0; font-size: 28px; letter-spacing: -.5px; }
#tokens .board-compact .board-kpis strong small { font-size: 11px; letter-spacing: 0; margin-left: 4px; }
#tokens .board-compact .board-kpis p { font-size: 11px; line-height: 1.5; }
#tokens .board-compact .board-card { padding: 14px 16px; box-shadow: none; }
#tokens .board-compact .board-section-title { align-items: center; }
#tokens .board-compact .board-section-title h2,
#tokens .board-compact .board-section-title h3 { font-size: 14px; margin: 0; }
#tokens .board-compact .board-section-title p { margin-top: 4px; font-size: 11px; }
#tokens .board-compact .board-filters { gap: 6px; margin: 12px 0 10px; }
#tokens .board-compact .board-filters button { height: 28px; padding: 0 8px; gap: 6px; }
#tokens .board-compact .board-decision-table { min-width: 880px; font-size: 13px; }
#tokens .board-compact .board-decision-table th { font-size: 12px; padding: 9px 10px; }
#tokens .board-compact .board-decision-table td { padding: 10px; }
#tokens .board-compact .board-decision-table th:nth-child(1) { width: 19%; }
#tokens .board-compact .board-decision-table th:nth-child(2) { width: 20%; }
#tokens .board-compact .board-decision-table th:nth-child(3) { width: 12%; }
#tokens .board-compact .board-decision-table th:nth-child(4) { width: 29%; }
#tokens .board-compact .board-decision-table th:nth-child(5) { width: 20%; }
#tokens .board-compact .board-decision-table p { margin: 5px 0; font-size: 12px; line-height: 1.5; }
#tokens .board-compact .board-decision-table small { margin-top: 4px; font-size: 11px; line-height: 1.5; }
#tokens .board-compact .board-decision-table button { height: 28px; padding: 0 10px; font-size: 12px; color: var(--blue); border-color: #c8dbfc; background: #f8fbff; }
#tokens .board-compact .board-decision-table tbody tr:hover { background: #f8fbff; }
#tokens .board-compact .board-advice { padding: 2px 6px; font-size: 12px; }
#tokens .board-compact .board-project { margin-bottom: 3px; }
#tokens .board-compact .board-decisions > details { margin-top: 10px; font-size: 11px; }
#tokens .board-compact .board-charts { grid-template-columns: 1.1fr 1fr .9fr; gap: 12px; }
#tokens .board-compact .board-charts .board-section-title { align-items: start; flex-wrap: wrap; gap: 4px; }
#tokens .board-compact .board-charts .board-section-title > span { font-size: 11px; }
#tokens .board-compact .board-legend { margin: 10px 0 6px; font-size: 11px; }
#tokens .board-compact .board-trend { height: clamp(72px,7vw,116px); }
#tokens .board-compact .board-axis { margin-top: 6px; font-size: 10px; }
#tokens .board-compact .board-note { margin-top: 10px; font-size: 11px; line-height: 1.5; }
#tokens .board-compact .board-stage-coverage { gap: 14px 16px; margin: 18px 0; }
#tokens .board-compact .board-stage-coverage > div { gap: 6px; grid-template-columns: 26px 1fr 30px; font-size: 12px; }
#tokens .board-compact .board-project-summaries { max-height: 196px; overflow: auto; }
#tokens .board-compact .board-project-summaries article { padding: 14px 0; font-size: 13px; }
#tokens .board-compact .board-project-summaries article + article { border-top: 1px solid var(--line); }
#tokens .board-compact .board-project-summaries p { margin-top: 8px; font-size: 12px; line-height: 1.6; }
@media (min-width: 1440px) {
  #tokens .board-compact .board-decisions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 20px; align-items: center; }
  #tokens .board-compact .board-decisions > .runtime-token-table-scroll,
  #tokens .board-compact .board-decisions > details { grid-column: 1 / -1; }
  #tokens .board-compact .board-filters,
  #tokens .board-compact .board-decisions > details { margin: 0; }
}
@media (max-width: 1200px) {
  body:has(#tokens.active .board-compact) { grid-template-columns: 176px minmax(0,1fr); }
  body:has(#tokens.active .board-compact) .main { padding: 14px 16px; }
  #tokens .board-intro .adoption-filters { max-width: none; }
  #tokens .board-compact .board-charts { grid-template-columns: 1fr 1fr; }
  #tokens .board-compact .board-charts > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  #tokens .board-compact .board-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body:has(#tokens.active .board-compact) .topbar { flex-wrap: wrap; }
  body:has(#tokens.active .board-compact) .actions { flex-wrap: wrap; }
  #tokens .board-compact .board-charts { grid-template-columns: minmax(0,1fr); }
  #tokens .board-compact .board-stage-coverage { grid-template-columns: 1fr 1fr; }
  #tokens .board-compact .board-trend { height: 112px; }
}
@media (max-width: 700px) {
  body:has(#tokens.active .board-compact) { grid-template-columns: minmax(0,1fr); }
  body:has(#tokens.active .board-compact) .sidebar { position: static; height: auto; max-height: 160px; }
  #tokens .board-intro .adoption-filters { flex-wrap: wrap; }
  #tokens .board-intro .adoption-filters label { flex-basis: 100%; }
  #tokens .board-compact .board-conclusion { align-items: start; }
  #tokens .board-compact .board-kpis article { padding: 12px; }
  #tokens .harness-decision-drawer { width: 100vw; max-width: 100vw; }
  #tokens .harness-drawer-body { padding: 16px; }
}
@media (max-width: 1200px) {
  #tokens .board-compact .board-decision-table th:last-child,
  #tokens .board-compact .board-decision-table td:last-child { position: sticky; right: 0; z-index: 1; background: var(--panel); box-shadow: -1px 0 var(--line); }
  #tokens .board-compact .board-decision-table th:last-child { background: #f8fafc; }
}

/* One analysis workspace: conclusions are visible; supporting records expand in place. */
#tokens .board-compact .board-overall { padding: 14px 16px; }
#tokens .board-compact .board-overall > div { display: block; width: 100%; }
#tokens .board-compact .board-overall h2 { margin: 5px 0 7px; font-size: 17px; }
#tokens .board-compact .board-overall-evidence { max-width: 1200px; line-height: 1.7; color: #46546b; }
#tokens .board-compact .board-overall-action { line-height: 1.6; margin-top: 8px; color: #303f57; }
#tokens .board-compact .board-overall-action span { margin-left: 12px; color: var(--muted); font-size: 11px; }
#tokens .board-inline-detail { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 12px; }
#tokens .board-inline-detail > summary { cursor: pointer; color: var(--blue); padding: 2px 0; }
#tokens .board-inline-detail > h2 { margin: 14px 0 6px; font-size: 15px; }
#tokens .board-inline-detail > p { line-height: 1.6; }
#tokens .board-inline-detail .runtime-token-table-scroll { max-height: 360px; overflow: auto; margin-top: 12px; }
#tokens .board-inline-detail table { min-width: 680px; font-size: 12px; }
#tokens .board-inline-detail table th { position: sticky; top: 0; z-index: 1; background: #f8fafc; }
#tokens .board-inline-detail table th, #tokens .board-inline-detail table td { padding: 10px; vertical-align: top; }
#tokens .board-inline-detail code { overflow-wrap: anywhere; }
#tokens .board-charts > .board-card:has(> .board-inline-detail[open]) { grid-column: 1 / -1; }
#tokens .board-inline-detail[data-adoption-expansion="demand-records"] table { min-width: 1300px; }

/* Keep analytical navigation in one predictable place; detail never changes route. */
.analysis-workspace { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 16px; align-items: start; }
.analysis-menu { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 3px; padding: 10px; background: #fff; border: 1px solid #dce2eb; border-radius: 10px; }
.analysis-menu-label { font-size: 11px; color: #667085; padding: 8px 8px 3px; }
.analysis-menu button { display: flex; justify-content: space-between; align-items: center; height: 30px; min-height: 30px; padding: 5px 8px; border: 0; border-radius: 6px; text-align: left; background: transparent; font-size: 13px; color: #344054; }
.analysis-menu button:hover { background: #f1f5fb; }
.analysis-menu button[aria-current="page"], .analysis-menu button[aria-pressed="true"] { background: #eaf2ff; color: #175cd3; font-weight: 600; }
.analysis-menu button:focus-visible { outline: 2px solid #3478f6; outline-offset: 1px; }
.analysis-menu strong { min-width: 20px; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.analysis-person-filters { display: flex; flex-direction: column; gap: 2px; }
.analysis-content { min-width: 0; display: grid; gap: 14px; }
.analysis-content [hidden] { display: none !important; }
.analysis-content .board-charts { grid-template-columns: repeat(2,minmax(0,1fr)); }
.analysis-content .board-charts > :last-child { grid-column: 1 / -1; }
.analysis-detail h2 { font-size: 17px; margin: 0 0 8px; }
.analysis-detail > p { font-size: 13px; color: #667085; line-height: 1.6; }
.analysis-detail table { font-size: 13px; }
.analysis-detail td { overflow-wrap: anywhere; }
.analysis-detail .runtime-token-table-scroll { max-height: 580px; }
.analysis-content .board-section-title { align-items: start; }
@media(min-width:1800px) { .analysis-content .board-charts { grid-template-columns: repeat(3,minmax(0,1fr)); } .analysis-content .board-charts > :last-child { grid-column: auto; } }
@media(max-width:1100px) { .analysis-workspace { grid-template-columns: 150px minmax(0,1fr); gap: 10px; } .analysis-menu { padding: 6px; } .analysis-menu button { font-size: 12px; } .analysis-content .board-charts { grid-template-columns: 1fr; } }
@media(max-width:700px) { .analysis-workspace { grid-template-columns: 1fr; } .analysis-menu { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } .analysis-menu-label { grid-column: 1 / -1; } .analysis-person-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-column: 1 / -1; } }

/* Addressable analysis pages live under Token management in the main sidebar. */
.token-analysis-navigation { margin: 0 0 12px 12px; padding: 4px 0 6px 10px; border-left: 1px solid #3b4659; }
.token-analysis-navigation[hidden] { display: none; }
.token-analysis-navigation > span { display: block; padding: 4px 10px; color: #9ba8bd; font-size: 11px; }
.token-analysis-navigation a { display: block; padding: 9px 10px; border-radius: 5px; color: #d5dae4; text-decoration: none; font-size: 13px; line-height: 1.4; }
.token-analysis-navigation a:hover { background: #253044; color: white; }
.token-analysis-navigation a[aria-current="page"] { background: #244b80; color: white; font-weight: 600; }
.token-analysis-navigation a:focus-visible { outline: 2px solid #80b4ff; outline-offset: 1px; }
.analysis-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #667085; min-height: 28px; }
.analysis-breadcrumb a { color: #476b97; text-decoration: none; }
.analysis-breadcrumb a:hover { text-decoration: underline; }
#tokens .adoption-filters[hidden], #tokens .harness-board [hidden] { display: none !important; }
#tokens #harnessPageTitle { font-size: 22px; line-height: 1.4; outline: none; }
#tokens .analysis-content { width: 100%; }
#tokens .analysis-content .board-charts { grid-template-columns: repeat(3,minmax(0,1fr)); }
#tokens .analysis-content .board-charts > :last-child { grid-column: auto; }
#tokens .analysis-detail { padding: 20px; }
#tokens .analysis-detail .runtime-token-table-scroll { max-height: none; }
#tokens .analysis-detail h2 { font-size: 16px; }
#tokens .board-filters { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
@media(max-width:1200px) { #tokens .analysis-content .board-charts { grid-template-columns: repeat(2,minmax(0,1fr)); } #tokens .analysis-content .board-charts > :last-child { grid-column:1/-1; } }
@media(max-width:800px) { #tokens .analysis-content .board-charts { grid-template-columns: 1fr; } }
#tokens .analysis-demand-table { min-width: 1100px; table-layout: auto; }
#tokens .analysis-demand-table th, #tokens .analysis-demand-table td { padding: 12px 9px; }
#tokens .analysis-demand-table th:first-child { min-width: 145px; }
#tokens .analysis-demand-table th:nth-child(n+3):nth-child(-n+10) { min-width: 76px; }
#tokens .analysis-demand-table th:nth-last-child(2) { min-width: 160px; }
#tokens .analysis-demand-table th:last-child { min-width: 100px; }
body:has(#tokens.active .harness-board) .sidebar .nav { height: 30px; margin-bottom: 2px; }
body:has(#tokens.active .harness-board) #validateBtn,
body:has(#tokens.active .harness-board) #applyBtn { display: none; }

/* Decision-first analysis: a readable answer, visible evidence, and a named next action. */
#tokens .insight-summary { margin: 0 0 18px; }
#tokens .insight-eyebrow { color:#42618a; font-size:12px; font-weight:650; }
#tokens .insight-summary > h2 { font-size:25px; line-height:1.35; margin:8px 0; letter-spacing:-.3px; }
#tokens .insight-summary > p { color:#5b6678; font-size:13px; line-height:1.7; margin:0 0 18px; }
#tokens .insight-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
#tokens .insight-tile { display:flex; flex-direction:column; gap:10px; border:1px solid #dbe3ed; border-top:3px solid #4479c7; border-radius:10px; padding:18px; background:white; min-width:0; }
#tokens .insight-tile > span { font-size:13px; color:#586779; font-weight:600; }
#tokens .insight-tile > strong { font-size:23px; color:#22334c; line-height:1.4; }
#tokens .insight-tile p { margin:0; font-size:13px; color:#5b6678; line-height:1.6; }
#tokens .insight-tile.attention { border-top-color:#ca8a21; }
#tokens .insight-tile.good { border-top-color:#328467; }
#tokens .insight-link { color:#215db4; font-size:13px; font-weight:600; text-decoration:none; display:inline-flex; align-items:center; gap:10px; padding:7px 0; }
#tokens .insight-link:hover { text-decoration:underline; }
#tokens .insight-tile > .insight-link { margin-top:auto; }
#tokens .insight-actions { margin-top:16px; padding:16px 20px; background:white; border:1px solid #dbe3ed; border-radius:10px; }
#tokens .insight-actions h3, #tokens .insight-daily h3 { font-size:16px; margin:0 0 12px; }
#tokens .insight-actions > div { display:grid; grid-template-columns:140px minmax(0,1fr) auto; align-items:center; gap:14px; padding:10px 0; border-top:1px solid #eef1f5; font-size:13px; }
#tokens .insight-actions b { color:#8b5b11; }
#tokens .insight-actions span { overflow-wrap:anywhere; }
#tokens .insight-daily { background:white; margin-top:16px; border:1px solid #dbe3ed; border-radius:10px; padding:20px; }
#tokens .insight-daily > p { color:#6a7687; font-size:12px; }
#tokens .insight-daily > div { display:grid; grid-template-columns:100px minmax(40px,1fr) 60px 140px; align-items:center; gap:20px; padding:12px 0; font-size:13px; border-bottom:1px solid #f0f2f6; }
#tokens .insight-bar { background:#f1f4f9; border-radius:4px; height:16px; overflow:hidden; }
#tokens .insight-bar i { display:block; height:100%; background:#5688d7; border-radius:4px; }
#tokens .insight-demand-list, #tokens .insight-project-list { display:grid; gap:16px; }
#tokens .insight-demand, #tokens .insight-project { border:1px solid #dbe3ed; border-radius:10px; padding:20px; background:white; }
#tokens .insight-demand.is-blocked { border-left:4px solid #cc5757; }
#tokens .insight-demand header, #tokens .insight-project header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
#tokens .insight-demand header h3, #tokens .insight-project h3 { font-size:20px; margin:7px 0; overflow-wrap:anywhere; }
#tokens .insight-demand header span, #tokens .insight-demand p { font-size:13px; color:#5b6678; line-height:1.65; margin:4px 0; }
#tokens .insight-demand header > div:last-child { text-align:right; color:#3a5a84; font-size:14px; }
#tokens .insight-stage-track { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:8px; list-style:none; margin:20px 0; padding:0; }
#tokens .insight-stage-track li { display:flex; flex-direction:column; gap:8px; background:#f3f5f8; border:1px solid #e2e7ef; border-radius:8px; padding:12px 8px; text-align:center; font-size:13px; }
#tokens .insight-stage-track li b { color:#727e8c; font-size:12px; }
#tokens .insight-stage-track li small { color:#6a7687; font-size:11px; }
#tokens .insight-stage-track .passed { background:#edf7f2; border-color:#b8dbc9; }
#tokens .insight-stage-track .passed b { color:#277052; }
#tokens .insight-stage-track .running { background:#edf3ff; border-color:#7ca3e2; }
#tokens .insight-stage-track .running b { color:#215db4; }
#tokens .insight-stage-track .blocked { background:#fff1ef; border-color:#edb4ac; }
#tokens .insight-stage-track .blocked b { color:#b43d3d; }
#tokens .insight-demand footer, #tokens .insight-project-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:14px 0; gap:12px; border-top:1px solid #edf0f5; }
#tokens .insight-demand footer div, #tokens .insight-project-metrics div { display:flex; flex-direction:column; gap:7px; }
#tokens .insight-demand footer span, #tokens .insight-project-metrics span { color:#6a7687; font-size:12px; }
#tokens .insight-demand footer b { font-size:14px; }
#tokens .insight-next { background:#f5f8fc; border-radius:6px; padding:10px 12px; }
#tokens .insight-project header > b { color:#8b5b11; font-size:13px; }
#tokens .insight-project-metrics { margin-top:16px; }
#tokens .insight-project-metrics strong { font-size:24px; }
#tokens .insight-project p { font-size:13px; line-height:1.6; }
#tokens .analysis-detail > details { margin-top:16px; }
#tokens .board-overall:has(> details) { padding:10px 14px; margin-bottom:14px; background:#f5f8fc; }
#tokens .board-overall > details > summary { font-size:12px; }
#tokens .board-overall > details[open] > div { margin-top:12px; }
#tokens .insight-summary + .board-overall + .board-kpis article strong { font-size:24px; }
@media(max-width:1100px) {
 #tokens .insight-stage-track { grid-template-columns:repeat(4,minmax(0,1fr)); }
 #tokens .insight-grid { gap:10px; }
 #tokens .insight-tile { padding:14px; }
 #tokens .insight-tile > strong { font-size:20px; }
}
@media(max-width:760px) {
 #tokens .insight-grid { grid-template-columns:1fr; }
 #tokens .insight-actions > div { grid-template-columns:1fr; gap:4px; }
 #tokens .insight-summary > h2 { font-size:21px; }
 #tokens .insight-daily > div { grid-template-columns:86px minmax(30px,1fr) 40px; gap:8px; }
 #tokens .insight-daily > div > span:last-child { grid-column:2 / -1; }
 #tokens .insight-demand, #tokens .insight-project { padding:14px; }
 #tokens .insight-demand header { flex-wrap:wrap; }
 #tokens .insight-demand header > div:last-child { text-align:left; }
 #tokens .insight-demand footer, #tokens .insight-project-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
/* Keep the analysis hierarchy usable when the legacy shell switches to a horizontal nav. */
@media(max-width:900px) {
  body:has(#tokens.active .harness-board) { display:grid; grid-template-columns:160px minmax(0,1fr); }
  body:has(#tokens.active .harness-board) .sidebar { display:block; width:160px; height:100vh; max-height:none; position:sticky; top:0; padding:12px 8px; overflow-y:auto; overflow-x:hidden; }
  body:has(#tokens.active .harness-board) .sidebar .brand { position:static; display:grid; margin:0 0 16px; padding:0 6px; }
  body:has(#tokens.active .harness-board) .sidebar .brand strong { font-size:15px; }
  body:has(#tokens.active .harness-board) .sidebar .brand span { font-size:11px; }
  body:has(#tokens.active .harness-board) .sidebar .nav { display:block; width:100%; min-width:0; text-align:left; white-space:normal; flex:none; }
  body:has(#tokens.active .harness-board) .token-analysis-navigation { margin-left:6px; padding-left:6px; }
  body:has(#tokens.active .harness-board) .token-analysis-navigation a { padding:8px 6px; font-size:12px; }
  #tokens .insight-grid { grid-template-columns:1fr; }
  #tokens .insight-actions > div { grid-template-columns:1fr; gap:4px; }
}
@media(max-width:600px) {
  body:has(#tokens.active .harness-board) { grid-template-columns:132px minmax(0,1fr); }
  body:has(#tokens.active .harness-board) .sidebar { width:132px; }
  body:has(#tokens.active .harness-board) .main { padding:12px 10px; }
  #tokens .insight-stage-track { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* One analysis entry: stable overall summary followed by a single statistics workspace. */
#tokens .board-summary { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; padding:18px 20px; background:#eef4ff; border:1px solid #cadbf5; border-left:4px solid #3979d7; border-radius:10px; }
#tokens .board-summary h2 { margin:6px 0; font-size:22px; line-height:1.4; }
#tokens .board-summary p { margin:0; color:#56657c; font-size:13px; line-height:1.6; }
#tokens .board-summary-action { display:flex; flex-direction:column; justify-content:center; gap:6px; padding-left:24px; border-left:1px solid #cadbf5; font-size:13px; color:#56657c; }
#tokens .board-summary-action strong { font-size:18px; color:#264e87; }
#tokens .board-kpis { margin:12px 0 18px; gap:12px; }
#tokens .board-kpis article { padding:14px 16px; }
#tokens .board-kpis article > strong { font-size:28px; margin:6px 0; }
#tokens .board-kpis article p { font-size:12px; margin:4px 0 0; }
#tokens .board-statistics { background:white; border:1px solid #dce2eb; border-radius:10px; overflow:hidden; }
#tokens .board-statistics-header { display:flex; align-items:center; gap:16px; padding:16px 18px 10px; }
#tokens .board-statistics-header h2 { font-size:18px; margin:0; }
#tokens .board-statistics-header span { font-size:12px; color:#6c7788; }
#tokens .board-detail-tabs { display:flex; gap:6px; padding:0 18px; border-bottom:1px solid #dce2eb; overflow-x:auto; }
#tokens .board-detail-tabs button { flex:none; border:0; border-bottom:3px solid transparent; border-radius:0; background:transparent; color:#586579; padding:12px 16px; font-size:14px; }
#tokens .board-detail-tabs button[aria-selected="true"] { color:#2264bf; background:#f3f7fe; border-bottom-color:#3478d4; font-weight:700; }
#tokens .board-detail-tabs button:focus-visible { outline:2px solid #3478d4; outline-offset:-3px; }
#tokens #analysis-statistics-panel { min-height:440px; padding:16px 18px; }
#tokens #analysis-statistics-panel > .board-card { padding:0; border:0; box-shadow:none; border-radius:0; margin:0; }
#tokens #harnessPeopleSearchSlot .adoption-filters { display:flex; flex-wrap:wrap; align-items:end; gap:8px; margin:0 0 16px; }
#tokens #harnessPeopleSearchSlot .adoption-filters > label:first-child { flex:1; min-width:180px; max-width:520px; }
#tokens .board-decisions .board-section-title h2 { font-size:16px; }
#tokens .board-decisions .board-section-title p { font-size:12px; }
#tokens .board-filters { justify-content:flex-start; margin:12px 0; }
#tokens .board-filters button { font-size:12px; padding:6px 10px; }
#tokens #analysis-statistics-panel .insight-summary { margin:0 0 16px; }
#tokens #analysis-statistics-panel .insight-summary h2 { font-size:20px; }
#tokens #analysis-statistics-panel .insight-tile { padding:14px; }
#tokens #analysis-statistics-panel .insight-tile strong { font-size:24px; }
@media(max-width:900px) {
  #tokens .board-summary { grid-template-columns:1fr; gap:12px; }
  #tokens .board-summary-action { border-left:0; border-top:1px solid #cadbf5; padding:10px 0 0; }
  #tokens .board-summary h2 { font-size:20px; }
  #tokens .board-detail-tabs { padding:0 10px; }
  #tokens #analysis-statistics-panel { padding:14px 12px; }
}
#tokens:has(.board-statistics) .adoption-navigation { display:none; }
#tokens:has(.board-statistics) .board-toolbar-title { width:100%; }
#tokens:has(.board-statistics) .board-toolbar-title > span { flex-basis:auto; margin-left:auto; }
#tokens .board-compact .board-kpis { margin:10px 0 12px; }
#tokens .board-summary { padding:14px 18px; }
#tokens #harnessPeopleSearchSlot .adoption-search-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#tokens #harnessPeopleSearchSlot .adoption-filters input,
#tokens #harnessPeopleSearchSlot .adoption-filters button { height:34px; min-height:34px; font-size:12px; padding:0 10px; }
#tokens #harnessPeopleSearchSlot .adoption-filters label { margin:0; }
@media(max-width:900px) { #tokens:has(.board-statistics) .board-toolbar-title > span { flex-basis:100%; margin-left:0; } }
/* Statistics lists use a fixed 15-row page; totals above remain global. */
#tokens .harness-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 0; color:#667085; font-size:12px; }
#tokens .harness-pagination > div { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
#tokens .harness-pagination button { min-height:30px; padding:4px 10px; font-size:12px; }
#tokens .harness-pagination button:disabled { opacity:.45; cursor:not-allowed; }
#tokens .quality-data { margin:18px 0; border-top:1px solid #dce2eb; padding-top:16px; }
#tokens .quality-data-header { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
#tokens .quality-data-header h3 { margin:0; font-size:17px; }
#tokens .quality-data-header button { font-size:13px; margin-left:6px; }
#tokens .quality-data-header button[aria-pressed="true"] { background:#edf4ff; color:#2264bf; border-color:#a8c9f7; }
#tokens .quality-data p { font-size:12px; color:#667085; }
#tokens .quality-data table { min-width:760px; font-size:13px; }
#tokens .quality-data table th, #tokens .quality-data table td { padding:12px; }
#tokens button.insight-link { background:transparent; border:0; padding:0; min-height:32px; text-align:left; }
#tokens .quality-data + details { border-top:1px solid #dce2eb; padding-top:14px; font-size:12px; }
#tokens .evaluation-project { padding:6px 0; border-bottom:1px solid #edf0f5; }
#tokens .evaluation-project:last-of-type { border-bottom:0; }
#tokens .evaluation-project .board-advice { margin-top:5px; font-size:11px; }
#tokens .evaluation-use { color:#245f9e; font-weight:600; }
#tokens .evaluation-decision.review { color:#a23d20; }
#tokens .evaluation-decision.unknown { color:#667085; }
#tokens .evaluation-decision.keep { color:#247459; }
#tokens .evaluation-note { font-size:12px; color:#667085; margin:8px 0 14px; }
#tokens #harnessPeopleSearchSlot .adoption-filters > label:has(#harnessOutcomeFilter) { flex:0 1 200px; min-width:170px; }
#tokens #harnessOutcomeFilter { min-height:34px; height:34px; font-size:12px; padding:0 10px; }
#tokens .board-decisions .board-section-title > span { white-space:nowrap; }
#tokens .project-evaluation-table { min-width:1000px; table-layout:fixed; font-size:13px; }
#tokens .project-evaluation-table th, #tokens .project-evaluation-table td { padding:12px; vertical-align:top; }
#tokens .project-evaluation-table small { display:block; color:#667085; margin-top:5px; line-height:1.6; }
#tokens .project-evaluation-table p { font-size:12px; line-height:1.6; }
#tokens .project-evaluation-table button { margin-top:8px; font-size:12px; }
#tokens .board-decision-table td .review-token { display:block; margin-top:8px; color:#a23d20; border-color:#eac4b7; background:#fff8f4; }
#tokens .board-compact .board-decision-table th:nth-child(1) { width:18%; }
#tokens .board-compact .board-decision-table th:nth-child(2) { width:25%; }
#tokens .board-compact .board-decision-table th:nth-child(3) { width:22%; }
#tokens .board-compact .board-decision-table th:nth-child(4) { width:25%; }
#tokens .board-compact .board-decision-table th:nth-child(5) { width:10%; }
.runtime-lifecycle h2 { font-size:20px; }
.runtime-lifecycle p { font-size:13px; color:#667085; line-height:1.7; }
.runtime-lifecycle .lifecycle-policy { display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding:16px; background:#f3f7fe; border-radius:8px; }
.runtime-lifecycle table { min-width:800px; font-size:13px; }
.runtime-lifecycle small { display:block; color:#667085; margin-top:6px; }
.runtime-close-dialog { max-width:520px; border:1px solid #dce2eb; border-radius:12px; padding:24px; }
.runtime-close-dialog::backdrop { background:#11182780; }
.runtime-close-dialog label { display:block; margin:16px 0; }
.runtime-close-dialog textarea,.runtime-close-dialog input { width:100%; box-sizing:border-box; }
.runtime-close-dialog [role=alert] { color:#b42318; }

/* Activity purpose is visible beside the person and project, not hidden in team progress. */
.usage-overview { padding: 12px 0; border-block: 1px solid #e5eaf2; margin-bottom: 12px; }
.usage-overview small { display: block; color: #65738a; margin-top: 4px; }
.usage-stage-counts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; }
.usage-stage-counts > span { color: #52627a; font-size: 13px; }
.usage-stage-counts strong { color: #233b5b; margin-left: 4px; }
.usage-purpose { display: inline-block; padding: 3px 7px; margin: 3px 5px 3px 0; border-radius: 4px; background: #edf4ff; color: #245b9c; font-size: 12px; }
.usage-latest { color: #245b9c !important; font-weight: 600; }
.usage-detail { border: 1px solid #dae4f1; border-radius: 8px; padding: 14px; margin-block: 16px; }
.usage-detail td { min-width: 150px; vertical-align: top; }
.usage-detail small { display: block; margin-top: 5px; color: #66758b; }
.usage-detail details p { overflow-wrap: anywhere; max-width: 320px; }
.board-decision-table [data-board-person] { white-space: nowrap; }

/* Keep identity and client version comparable in the personnel list. */
#tokens .board-compact .board-decision-table { min-width: 1000px; }
#tokens .board-compact .board-decision-table th:nth-child(1) { width: 16%; }
#tokens .board-compact .board-decision-table th:nth-child(2) { width: 12%; }
#tokens .board-compact .board-decision-table th:nth-child(3) { width: 14%; }
#tokens .board-compact .board-decision-table th:nth-child(4) { width: 22%; }
#tokens .board-compact .board-decision-table th:nth-child(5) { width: 14%; }
#tokens .board-compact .board-decision-table th:nth-child(6) { width: 14%; }
#tokens .board-compact .board-decision-table th:nth-child(7) { width: 8%; }
#tokens .account-core-version + .account-core-version { margin-top: 8px; padding-top: 8px; border-top: 1px solid #edf0f5; }
#tokens .account-version strong { overflow-wrap: anywhere; }
