/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url("/fonts/noto-sans-sc/noto_sans_sc_regular/css.css");
@import url("/fonts/noto-sans-sc/noto_sans_sc_medium/css.css");
@import url("/fonts/noto-sans-sc/noto_sans_sc_bold/css.css");

:root {
  --ink: #182230;
  --muted: #667085;
  --line: #d9e0ea;
  --line-strong: #aab7c7;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --canvas: #edf1f6;
  --nav: #101828;
  --nav-soft: #1d2939;
  --accent: #155eef;
  --accent-dark: #004eeb;
  --accent-soft: #eaf2ff;
  --success: #067647;
  --success-soft: #ecfdf3;
  --warning: #b54708;
  --warning-soft: #fffaeb;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --shadow: 0 14px 38px rgb(16 24 40 / 14%);
  --sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}

.mfa-enrollment-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: #f3f6f3;
  color: #151515;
}

.mfa-enrollment-card {
  width: min(920px, 100%);
  padding: clamp(24px, 5vw, 48px);
  background: #fff;
  border: 1px solid #dfe7e2;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgb(21 21 21 / 8%);
}

.mfa-enrollment-card > header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.mfa-enrollment-card > header p,
.mfa-enrollment-card > header h1,
.mfa-enrollment-card h2,
.mfa-enrollment-card p {
  margin: 0;
}

.mfa-enrollment-card > header p,
.mfa-enrollment-grid section > p,
.mfa-enrollment-form small {
  color: #64716a;
}

.mfa-enrollment-card > header h1 {
  margin-top: 4px;
  font-size: clamp(26px, 4vw, 38px);
}

.mfa-enrollment-grid {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(300px, 1.15fr);
  gap: clamp(28px, 6vw, 64px);
}

.mfa-enrollment-grid h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.mfa-qr-code {
  width: fit-content;
  margin: 22px 0 16px;
  padding: 12px;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  background: #fff;
}

.mfa-qr-code svg {
  display: block;
  width: min(220px, 100%);
  height: auto;
}

.mfa-enrollment-card details code {
  display: block;
  max-width: 280px;
  margin-top: 10px;
  padding: 10px;
  overflow-wrap: anywhere;
  background: #f3f6f3;
  border-radius: 6px;
}

.mfa-enrollment-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.mfa-enrollment-form label {
  display: grid;
  gap: 7px;
  font-weight: 600;
}

.mfa-enrollment-form input:not([type="submit"]) {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd8d0;
  border-radius: 6px;
  font: inherit;
}

.mfa-enrollment-form input:focus-visible {
  outline: 3px solid rgb(0 47 167 / 24%);
  border-color: #002fa7;
}

.mfa-enrollment-card .form-error {
  margin: -12px 0 24px;
  padding: 12px 14px;
  color: #8c1d18;
  background: #fff1f0;
  border-radius: 6px;
}

.mfa-enrollment-invalid {
  max-width: 560px;
  text-align: center;
}

.mfa-enrollment-invalid .brand-mark {
  display: inline-grid;
  margin-bottom: 20px;
}

.mfa-enrollment-invalid h1,
.mfa-enrollment-invalid p {
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .mfa-enrollment-grid {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--canvas);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(21 94 239 / 25%);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

svg {
  width: 18px;
  height: 18px;
}

.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  color: #d0d5dd;
  background:
    radial-gradient(circle at 12% 5%, rgb(21 94 239 / 22%), transparent 24%),
    var(--nav);
}

.brand {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-size: 19px;
  font-weight: 850;
  box-shadow: 0 7px 18px rgb(21 94 239 / 35%);
}

.brand > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.brand strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: .08em;
}

.brand small {
  color: #98a2b3;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
}

.sidebar nav {
  flex: 1;
  padding: 20px 12px;
  overflow-y: auto;
}

.nav-label {
  margin: 0 10px 8px;
  color: #667085;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-label.customer-label {
  margin-top: 28px;
  color: #98a2b3;
}

.nav-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 3px 0;
  padding: 0 11px;
  border-radius: 8px;
  color: #98a2b3;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.nav-link:hover {
  color: #fff;
  background: rgb(255 255 255 / 6%);
}

.nav-link.active {
  color: #fff;
  background: var(--nav-soft);
  box-shadow: inset 3px 0 0 #84adff;
}

.nav-link svg {
  flex: 0 0 auto;
}

.nav-link b {
  min-width: 22px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  color: #d1e0ff;
  background: rgb(21 94 239 / 24%);
  font-size: 10px;
  text-align: center;
}

.sidebar-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgb(255 255 255 / 9%);
}

.actor-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #344054;
  font-weight: 800;
}

.sidebar-footer > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sidebar-footer strong {
  color: #f2f4f7;
  font-size: 12px;
}

.sidebar-footer small {
  color: #98a2b3;
  font-size: 10px;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 93%);
  backdrop-filter: blur(12px);
}

.breadcrumbs {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.breadcrumbs span,
.breadcrumbs b {
  color: var(--muted);
  font-weight: 500;
}

.context-switchers {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.context-switchers label,
.inline-select {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 5px 7px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.context-switchers label > span,
.inline-select > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.context-switchers select,
.inline-select select {
  min-width: 112px;
  height: 28px;
  padding: 0 25px 0 7px;
  border: 0;
  border-radius: 5px;
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.scenario-banner {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 28px;
  border-bottom: 1px solid #b2ccff;
  color: #1849a9;
  background: var(--accent-soft);
}

.scenario-banner > span {
  padding: 3px 6px;
  border-radius: 4px;
  color: #fff;
  background: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.scenario-banner p {
  margin: 0;
  font-size: 10px;
  font-weight: 650;
}

.page-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.search-control {
  width: min(300px, 42vw);
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
}

.search-control:focus-within {
  border-color: #84adff;
  box-shadow: 0 0 0 3px rgb(21 94 239 / 10%);
}

.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
}

.primary-button,
.secondary-button,
.text-button,
.row-link,
.icon-button {
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 750;
}

.primary-button {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 1px 2px rgb(16 24 40 / 8%);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.secondary-button:hover {
  background: var(--surface-soft);
}

.text-button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 6px;
  color: var(--accent-dark);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}

.text-button:hover {
  background: var(--accent-soft);
}

.text-button svg {
  width: 14px;
  height: 14px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 7px;
  background: transparent;
}

.icon-button:hover {
  background: var(--surface-soft);
}

.mobile-only {
  display: none;
}

main {
  min-width: 0;
}

.page-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 24px 28px 44px;
}

.page-stack > *,
.overview-grid > *,
.profile-grid > *,
.panel {
  min-width: 0;
}

.page-heading {
  min-height: 92px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.page-heading.compact {
  min-height: 78px;
}

.page-heading p,
.record-detail header p,
.context-card header p {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.page-heading h1 {
  margin: 0 0 6px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.page-heading > div > span,
.page-heading > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.as-of {
  min-width: 178px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.as-of span {
  color: var(--muted);
  font-size: 9px;
}

.as-of strong {
  font-family: var(--mono);
  font-size: 11px;
}

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

.metric-grid article {
  position: relative;
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.metric-grid article::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  content: "";
}

.metric-grid span,
.metric-grid small {
  color: var(--muted);
  font-size: 10px;
}

.metric-grid strong {
  font-size: 30px;
  letter-spacing: -.04em;
}

.overview-grid,
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .75fr);
  gap: 14px;
}

.panel,
.context-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(16 24 40 / 3%);
}

.panel-heading {
  min-height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

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

.panel-heading h2 {
  margin-bottom: 4px;
  font-size: 14px;
}

.panel-heading p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.channel-health > article {
  display: grid;
  grid-template-columns: 34px minmax(130px, 1fr) auto minmax(210px, .8fr);
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
}

.channel-health > article:nth-child(2) {
  border-top: 0;
}

.record-mark {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #b2ccff;
  border-radius: 8px;
  color: #1849a9;
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 850;
}

.channel-health article > div:nth-child(2),
.record-cell > span:last-child,
.customer-strip a > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.channel-health small,
.record-cell small,
.records-table td > small,
.customer-strip small,
.master-list small,
.competitor-list small,
.reference-list small,
.question-list small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.channel-health dl,
.fact-grid,
.completeness-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.channel-health dl div,
.fact-grid div,
.completeness-card dl div {
  padding-left: 11px;
  border-left: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 9px;
}

dd {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 750;
}

.status {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #344054;
  background: #f2f4f7;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status.success {
  color: var(--success);
  background: var(--success-soft);
}

.status.pending {
  color: var(--warning);
  background: var(--warning-soft);
}

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

.attention-list > article {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
}

.attention-list > article:nth-child(2) {
  border-top: 0;
}

.attention-list strong {
  font-size: 11px;
}

.attention-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.signal {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.signal.danger {
  background: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.signal.pending {
  background: var(--warning);
  box-shadow: 0 0 0 4px var(--warning-soft);
}

.customer-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  overflow-x: auto;
}

.customer-strip a {
  min-width: 190px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  border-right: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.customer-strip a:last-child {
  border-right: 0;
}

.customer-strip a:hover {
  background: var(--surface-soft);
}

.customer-strip b {
  color: var(--accent-dark);
  font-size: 11px;
}

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

.channel-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.channel-card > header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 17px;
  border-bottom: 1px solid var(--line);
}

.channel-card h2,
.channel-card p {
  margin: 0;
}

.channel-card h2 {
  margin-bottom: 3px;
  font-size: 14px;
}

.channel-card header p {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 10px;
  margin: 0;
  padding: 17px;
}

.channel-card blockquote {
  flex: 1;
  margin: 0 17px 14px;
  padding: 12px;
  border: 0;
  border-radius: 7px;
  color: #475467;
  background: var(--surface-soft);
  font-size: 10px;
  line-height: 1.55;
}

.channel-card blockquote span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
}

.channel-card > footer,
.record-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}

.filter-chips {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.filter-chips button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.filter-chips button.active {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.table-panel {
  overflow: hidden;
}

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

.records-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

.compatibility-view-caption {
  caption-side: top;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft, #e2e8f0);
  background: var(--surface, #fff);
  color: var(--muted-ink, #64748b);
  text-align: left;
}

.compatibility-view-caption > * + * {
  margin-left: 12px;
}

.compatibility-state-row td {
  padding: 28px 16px;
  color: var(--muted-ink, #64748b);
  text-align: center;
}

.compatibility-report-column {
  min-width: 168px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.compatibility-action-column {
  min-width: 96px;
  text-align: center;
  white-space: nowrap;
}

.compatibility-mapping-target {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 6px;
  background: var(--surface-soft, #f8fafc);
}

.compatibility-mapping-target span {
  color: var(--muted, #667085);
  font-size: 10px;
  font-weight: 700;
}

.compatibility-mapping-target strong {
  color: var(--ink, #101828);
  font-size: 12px;
  line-height: 1.45;
}

.compatibility-trend-trigger {
  display: inline;
  padding: 0;
  border: 0;
  color: var(--accent-dark, #155eef);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.compatibility-trend-trigger:hover,
.compatibility-trend-trigger:focus-visible {
  color: var(--accent, #155eef);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compatibility-trend-modal[hidden] {
  display: none;
}

.compatibility-trend-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(15 23 42 / 42%);
}

.compatibility-trend-panel {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  background: var(--surface, #fff);
  box-shadow: 0 28px 70px rgb(15 23 42 / 24%);
  animation: compatibility-trend-panel-in 180ms cubic-bezier(.23, 1, .32, 1);
}

@keyframes compatibility-trend-panel-in {
  from {
    opacity: 0;
    transform: scale(.98) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.compatibility-trend-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line-soft, #e2e8f0);
  background: var(--surface, #fff);
}

.compatibility-trend-header p,
.compatibility-trend-header h2,
.compatibility-trend-header small {
  margin: 0;
}

.compatibility-trend-header p {
  color: var(--muted, #667085);
  font-size: 10px;
  font-weight: 700;
}

.compatibility-trend-header h2 {
  margin-top: 6px;
  color: var(--ink, #101828);
  font-size: 20px;
  letter-spacing: 0;
}

.compatibility-trend-header small {
  display: block;
  margin-top: 6px;
  color: var(--muted, #667085);
  font-size: 11px;
}

.compatibility-trend-section h3 {
  display: block;
  margin: 0 0 6px;
  color: var(--muted, #667085);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.compatibility-trend-section {
  padding: 18px 22px 22px;
}

.compatibility-trend-section + .compatibility-trend-section {
  border-top: 1px solid var(--line-soft, #e2e8f0);
}

.compatibility-trend-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.compatibility-trend-granularity {
  display: inline-flex;
  width: max-content;
  overflow: hidden;
  border: 1px solid var(--line, #d9e0ea);
  border-radius: 6px;
  background: var(--surface, #fff);
}

.compatibility-trend-granularity-button {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--line, #d9e0ea);
  color: var(--muted, #667085);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.compatibility-trend-granularity-button:last-child {
  border-right: 0;
}

.compatibility-trend-granularity-button.active {
  color: var(--surface, #fff);
  background: var(--ink, #182230);
}

.compatibility-trend-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compatibility-trend-metric-button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line, #d9e0ea);
  border-radius: 6px;
  color: var(--muted, #667085);
  background: var(--surface, #fff);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 140ms cubic-bezier(.23, 1, .32, 1),
    background-color 140ms cubic-bezier(.23, 1, .32, 1),
    border-color 140ms cubic-bezier(.23, 1, .32, 1),
    transform 120ms cubic-bezier(.23, 1, .32, 1);
}

.compatibility-trend-metric-button.active {
  border-color: var(--ink, #182230);
  color: var(--surface, #fff);
  background: var(--ink, #182230);
}

.compatibility-trend-metric-button:active {
  transform: scale(.98);
}

.compatibility-trend-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.compatibility-trend-platform-button {
  min-width: 0;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid var(--line, #d9e0ea);
  border-radius: 6px;
  color: var(--muted, #667085);
  background: var(--surface, #fff);
  text-align: left;
  cursor: pointer;
  transition:
    color 140ms cubic-bezier(.23, 1, .32, 1),
    background-color 140ms cubic-bezier(.23, 1, .32, 1),
    border-color 140ms cubic-bezier(.23, 1, .32, 1),
    opacity 140ms cubic-bezier(.23, 1, .32, 1),
    transform 120ms cubic-bezier(.23, 1, .32, 1);
}

.compatibility-trend-platform-button span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
}

.compatibility-trend-platform-button i {
  width: 18px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--trend-color);
}

.compatibility-trend-platform-button small {
  display: block;
  margin-top: 6px;
  color: var(--ink, #182230);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.compatibility-trend-platform-button.active {
  border-color: var(--trend-color);
  box-shadow: inset 0 0 0 1px var(--trend-color);
}

.compatibility-trend-platform-button.fixed {
  cursor: default;
  opacity: 1;
}

.compatibility-trend-platform-button[aria-pressed="false"] {
  opacity: .48;
}

.compatibility-trend-platform-button:disabled {
  cursor: not-allowed;
  opacity: .42;
  box-shadow: none;
}

.compatibility-trend-platform-button:active:not(:disabled) {
  transform: scale(.98);
}

.compatibility-trend-chart-wrap {
  --compatibility-trend-chart-width: 960px;
  position: relative;
  display: grid;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 12px 8px;
  border: 1px solid var(--line-soft, #e2e8f0);
  border-radius: 8px;
  background: #fbfcfe;
}

.compatibility-trend-chart-panel {
  display: grid;
  gap: 12px;
}

.compatibility-trend-chart-panel[hidden] {
  display: none;
}

.compatibility-trend-chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: var(--compatibility-trend-chart-width);
  min-width: var(--compatibility-trend-chart-width);
}

.compatibility-trend-chart-heading h4 {
  position: sticky;
  left: 0;
  z-index: 3;
  margin: 0;
  padding-right: 12px;
  color: var(--ink, #182230);
  background: #fbfcfe;
  font-size: 14px;
  font-weight: 600;
}

.compatibility-trend-chart-heading small {
  color: var(--muted, #667085);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.compatibility-trend-chart-stage {
  position: relative;
  width: var(--compatibility-trend-chart-width);
  min-width: var(--compatibility-trend-chart-width);
  height: 370px;
}

.compatibility-trend-y-axis-lock {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 62px;
  height: 360px;
  background:
    linear-gradient(90deg, #fbfcfe 0%, #fbfcfe 82%, rgb(251 252 254 / 0%) 100%);
  pointer-events: none;
}

.compatibility-trend-y-axis[hidden] {
  display: none;
}

.compatibility-trend-y-axis span {
  position: absolute;
  right: 12px;
  color: var(--muted, #667085);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  transform: translateY(-50%);
}

.compatibility-trend-chart {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--compatibility-trend-chart-width);
  min-width: var(--compatibility-trend-chart-width);
  height: 360px;
  overflow: visible;
}

.compatibility-trend-grid line,
.compatibility-trend-x-axis line {
  stroke: var(--line-soft, #e2e8f0);
  stroke-width: 1;
}

.compatibility-trend-grid text,
.compatibility-trend-x-axis text {
  fill: var(--muted, #667085);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.compatibility-trend-grid text {
  display: none;
}

.compatibility-trend-line {
  fill: none;
  stroke: var(--trend-color);
  stroke-dasharray: var(--trend-dasharray);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: var(--trend-width);
}

.compatibility-trend-target-stroke {
  stroke: var(--trend-target-color, #475467);
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  stroke-width: 1.5;
  opacity: .72;
}

.compatibility-trend-target-label {
  fill: var(--trend-target-color, #475467);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  paint-order: stroke;
  stroke: #fbfcfe;
  stroke-linejoin: round;
  stroke-width: 4px;
}

.compatibility-trend-marker {
  fill: var(--surface, #fff);
  stroke: var(--trend-color);
  stroke-width: 2.5;
}

.compatibility-trend-marker-hit {
  fill: transparent;
  stroke: transparent;
}

.compatibility-trend-point {
  cursor: default;
}

.compatibility-trend-point:focus-visible .compatibility-trend-marker,
.compatibility-trend-point.active .compatibility-trend-marker {
  fill: var(--trend-color);
  stroke: var(--surface, #fff);
}

.compatibility-trend-tooltip {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 3px;
  width: max-content;
  max-width: 236px;
  padding: 9px 10px;
  border: 1px solid var(--line-strong, #aab7c7);
  border-radius: 6px;
  color: var(--ink, #182230);
  background: var(--surface, #fff);
  box-shadow: 0 14px 34px rgb(16 24 40 / 18%);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
}

.compatibility-trend-tooltip span {
  color: var(--muted, #667085);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.compatibility-trend-tooltip strong {
  color: var(--ink, #182230);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.compatibility-trend-empty {
  color: var(--muted, #667085);
  font-size: 10px;
}

@media (max-width: 720px) {
  .compatibility-trend-modal {
    padding: 12px;
  }

  .compatibility-trend-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .compatibility-trend-header,
  .compatibility-trend-section {
    padding-left: 14px;
    padding-right: 14px;
  }

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

@media (max-width: 460px) {
  .compatibility-trend-platforms {
    grid-template-columns: 1fr;
  }
}

@media (hover: hover) and (pointer: fine) {
  .compatibility-trend-metric-button:hover {
    border-color: var(--ink, #182230);
    color: var(--ink, #182230);
  }

  .compatibility-trend-metric-button.active:hover {
    color: var(--surface, #fff);
  }

  .compatibility-trend-platform-button:hover:not(:disabled) {
    color: var(--ink, #182230);
    border-color: var(--trend-color);
  }
}

@media (prefers-reduced-motion: reduce) {
  .compatibility-trend-panel {
    animation: none;
  }

  .compatibility-trend-metric-button,
  .compatibility-trend-platform-button {
    transition: none;
  }
}

.records-table th {
  height: 40px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--surface-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}

.records-table td {
  height: 72px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  vertical-align: middle;
}

.records-table tbody tr:hover td {
  background: #f9fafb;
}

.records-table td > strong,
.records-table td > small {
  display: block;
}

.records-table td > small {
  margin-top: 4px;
}

.record-cell {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-link {
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 750;
}

.empty-row td {
  height: 160px;
  color: var(--muted);
  text-align: center;
}

.edit-card form {
  padding: 18px;
}

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

.form-grid label,
.drawer-fields label {
  display: grid;
  gap: 6px;
}

.form-grid label.wide {
  grid-column: 1 / -1;
}

.form-grid label > span,
.drawer-fields label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.form-grid input,
.drawer-fields input,
.drawer-fields textarea,
.drawer-fields select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 11px;
}

.form-grid input[readonly] {
  color: #475467;
  background: var(--surface-soft);
}

.form-grid input:not([readonly]):focus,
.drawer-fields input:focus,
.drawer-fields textarea:focus,
.drawer-fields select:focus {
  border-color: #84adff;
  box-shadow: 0 0 0 3px rgb(21 94 239 / 10%);
}

.edit-card form > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.completeness-card {
  padding: 20px;
}

.completeness-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.completeness-card > strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 42px;
  letter-spacing: -.06em;
}

.completeness-card > strong small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 16px;
}

.progress {
  height: 7px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}

.progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--accent);
}

.completeness-card dl {
  margin: 0 0 20px;
}

.context-card {
  overflow: hidden;
}

.context-card > header,
.context-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
}

.context-card > header {
  border-bottom: 1px solid var(--line);
}

.context-card h2,
.context-card header p,
.context-card header span {
  margin: 0;
}

.context-card h2 {
  margin-bottom: 3px;
  font-size: 14px;
}

.context-card header > div:first-child > span,
.context-card > footer > span {
  color: var(--muted);
  font-size: 9px;
}

.context-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.context-card blockquote {
  margin: 0;
  padding: 22px 24px;
  border: 0;
  color: #344054;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.65;
}

.context-card > footer {
  border-top: 1px solid var(--line);
  background: #fcfcfd;
}

.version-history {
  padding: 0 18px 16px;
  border-top: 1px dashed var(--line);
}

.version-history article {
  display: grid;
  grid-template-columns: 54px 150px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.version-history p {
  margin: 0;
  color: var(--muted);
}

.empty-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.master-detail {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(245px, 300px) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}

.master-list {
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.master-list > button {
  width: 100%;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.master-list > button:hover {
  background: var(--surface-soft);
}

.master-list > button.active {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.master-list button > span:first-child {
  min-width: 0;
}

.master-list strong,
.master-list small {
  display: block;
}

.master-list strong {
  margin-bottom: 4px;
  font-size: 11px;
}

.subject-tree > button {
  padding-left: calc(14px + var(--depth) * 18px);
}

.detail-stack {
  min-width: 0;
  padding: 14px;
}

.detail-stack > div {
  display: grid;
  gap: 14px;
}

.detail-stack > div[hidden] {
  display: none;
}

.record-detail {
  padding: 18px;
}

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

.record-detail h2 {
  margin: 0 0 5px;
  font-size: 20px;
  letter-spacing: -.025em;
}

.record-detail header > div > span {
  color: var(--muted);
  font-size: 10px;
}

.fact-grid {
  gap: 20px 0;
  margin: 24px 0 2px;
}

.fact-grid div:nth-child(4) {
  border-left: 0;
}

.record-actions {
  margin: 18px -18px -18px;
}

.inline-select {
  min-width: 220px;
}

.assessment-workbench {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

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

.question-scope {
  grid-column: 1 / -1;
}

.goal-list,
.competitor-list,
.reference-list,
.question-list {
  display: grid;
}

.goal-list article,
.competitor-list article {
  display: grid;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.goal-list article:first-child,
.competitor-list article:first-child {
  border-top: 0;
}

.goal-list article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.goal-list strong,
.goal-list b {
  font-size: 10px;
}

.goal-list b {
  color: var(--accent-dark);
}

.goal-list small {
  grid-column: 1 / -1;
}

.competitor-list article {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.competitor-list article > span:nth-child(2),
.reference-list span {
  display: grid;
  gap: 3px;
}

.competitor-list b {
  color: var(--muted);
  font-size: 8px;
}

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

.reference-list > span {
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.query-panel {
  overflow: hidden;
}

.question-list > article {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.question-list > article:first-child {
  border-top: 0;
}

.question-list article > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
}

.question-list header strong,
.question-list header small {
  display: block;
}

.question-list header strong {
  margin-bottom: 4px;
  font-size: 11px;
  line-height: 1.45;
}

.version-badge {
  min-width: 34px;
  padding: 4px 6px;
  border-radius: 5px;
  color: #1849a9;
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  text-align: center;
}

.question-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 11px 0 0 45px;
}

.question-tags span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #475467;
  background: var(--surface-soft);
  font-size: 8px;
}

.question-tags b {
  margin-right: 4px;
  color: var(--ink);
}

.question-context {
  margin: 13px 0 0 45px;
  padding: 13px;
  border: 1px solid #b2ccff;
  border-radius: 7px;
  background: var(--accent-soft);
}

.question-context > strong {
  font-size: 10px;
}

.question-context p {
  margin: 5px 0 8px;
  color: #344054;
  font-size: 9px;
  line-height: 1.55;
}

.empty-state,
.failure-state {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 40px;
  text-align: center;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: rgb(255 255 255 / 55%);
}

.empty-state > svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

.empty-state h2,
.empty-state p,
.failure-state h1,
.failure-state p {
  margin: 0;
}

.empty-state h2 {
  font-size: 18px;
}

.empty-state p,
.failure-state p {
  max-width: 520px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.failure-state > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 850;
}

.drawer-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  justify-items: end;
  background: rgb(16 24 40 / 52%);
  backdrop-filter: blur(2px);
}

.drawer {
  width: min(100%, 440px);
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.drawer form {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.drawer form > header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}

.drawer h2 {
  margin: 0;
  font-size: 19px;
}

.drawer-fields {
  display: grid;
  gap: 15px;
  padding: 22px;
}

.operations-role-picker {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.operations-role-picker legend {
  margin-bottom: 7px;
  font-weight: 700;
}

.operations-role-search {
  display: block;
}

.operations-role-options {
  display: grid;
  gap: 8px;
}

.operations-role-options > label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tenant-administrator-options > button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tenant-administrator-options > button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.tenant-administrator-option-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tenant-administrator-chip .member-avatar {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

.tenant-administrator-chip small {
  color: var(--muted);
  font-size: 10px;
}

.operations-role-options > label > span {
  display: grid;
  min-width: 0;
}

.operations-role-options small {
  color: var(--muted);
  font-size: 10px;
}

.drawer [data-drawer-fields] {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.drawer-fields textarea {
  resize: vertical;
}

.drawer form > footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
  padding: 17px 22px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  pointer-events: none;
  z-index: 110;
  right: 22px;
  bottom: 22px;
  max-width: 380px;
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid #75e0a7;
  border-radius: 9px;
  color: var(--success);
  background: var(--success-soft);
  box-shadow: var(--shadow);
}

.toast strong {
  font-size: 11px;
}

.toast span {
  color: #085d3a;
  font-size: 9px;
  line-height: 1.45;
}

.toast.error {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

.toast.error span {
  color: var(--danger);
}

.mobile-backdrop {
  display: none;
}

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

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

  .channel-health > article {
    grid-template-columns: 34px minmax(140px, 1fr) auto;
  }

  .channel-health dl {
    grid-column: 2 / -1;
  }
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
  }

  .mobile-only {
    display: grid;
  }

  .sidebar {
    position: fixed;
    left: -248px;
    width: 236px;
    transition: left 180ms ease;
  }

  .sidebar.open {
    left: 0;
    box-shadow: var(--shadow);
  }

  .brand .icon-button {
    margin-left: auto;
    color: #d0d5dd;
  }

  .mobile-backdrop:not([hidden]) {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    background: rgb(16 24 40 / 38%);
  }

  .topbar {
    min-height: 64px;
    padding: 10px 16px;
  }

  .breadcrumbs {
    display: none;
  }

  .context-switchers {
    width: 100%;
    margin-left: 0;
  }

  .context-switchers label {
    min-width: 0;
    flex: 1;
    grid-template-columns: auto minmax(70px, 1fr);
  }

  .context-switchers select {
    min-width: 0;
    width: 100%;
  }

  .scenario-banner,
  .page-toolbar {
    padding-right: 16px;
    padding-left: 16px;
  }

  .page-stack {
    padding: 20px 16px 38px;
  }

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

  .master-detail,
  .assessment-workbench {
    grid-template-columns: 1fr;
  }

  .master-list {
    max-height: 270px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-y: auto;
  }

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

  .question-scope {
    grid-column: auto;
  }
}

/* PROTOTYPE — source document import and proposal review. Scenario-only routes. */
.knowledge-import-entry {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 12px 15px;
  border: 1px solid #b9d2ff;
  border-left: 4px solid var(--accent);
  border-radius: 7px;
  background: #f2f6ff;
}

.knowledge-import-entry.complete {
  border-color: #9bd7c8;
  border-left-color: var(--success);
  background: #f0faf6;
}

.knowledge-import-entry > div:first-child {
  display: grid;
  gap: 3px;
}

.knowledge-import-entry span,
.knowledge-import-page .knowledge-hero p {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}

.knowledge-import-entry strong {
  font-size: 11px;
}

.knowledge-import-entry small {
  color: var(--muted);
  font-size: 9px;
}

.knowledge-import-entry > div:last-child {
  display: flex;
  gap: 7px;
}

.knowledge-import-page {
  min-height: calc(100dvh - 134px);
  padding: 18px 22px 70px;
  background:
    linear-gradient(90deg, rgb(20 34 54 / 3%) 1px, transparent 1px),
    linear-gradient(rgb(20 34 54 / 3%) 1px, transparent 1px),
    #edf1f4;
  background-size: 24px 24px;
}

.knowledge-import-page .knowledge-hero {
  margin-bottom: 12px;
}

.knowledge-import-flow {
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.knowledge-import-flow a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

.knowledge-import-flow a:first-child {
  border-left: 0;
}

.knowledge-import-flow a::after {
  position: absolute;
  right: -6px;
  z-index: 1;
  width: 11px;
  height: 11px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: inherit;
  content: "";
  transform: rotate(45deg);
}

.knowledge-import-flow a:last-child::after {
  display: none;
}

.knowledge-import-flow a.active {
  color: var(--accent-dark);
  background: #edf3ff;
}

.knowledge-import-flow a.complete {
  color: var(--success);
  background: var(--success-soft);
}

.knowledge-import-flow span {
  width: 25px;
  height: 25px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
}

.knowledge-import-flow strong {
  font-size: 9px;
}

.knowledge-import-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.knowledge-import-metrics article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.knowledge-import-metrics span,
.knowledge-import-metrics small {
  color: var(--muted);
  font-size: 8px;
}

.knowledge-import-metrics strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 24px;
}

.knowledge-import-metrics small {
  grid-column: 1;
}

.knowledge-source-layout {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(520px, 1.5fr);
  gap: 12px;
}

.knowledge-source-list {
  align-self: start;
  overflow: hidden;
}

.knowledge-source-list > header,
.knowledge-source-detail article > header,
.knowledge-upload-form > header,
.knowledge-upload-explainer > header,
.knowledge-proposal-list > header,
.knowledge-proposal-preview article > header,
.knowledge-proposal-decision article > header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.knowledge-source-list header small,
.knowledge-upload-form header small,
.knowledge-upload-explainer header small,
.knowledge-proposal-list header small,
.knowledge-proposal-decision header small {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
}

.knowledge-source-list h2,
.knowledge-source-detail h2,
.knowledge-upload-layout h2,
.knowledge-review-layout h2 {
  margin: 3px 0 0;
  font-size: 13px;
}

.knowledge-source-list header > span,
.knowledge-proposal-list header > span {
  color: var(--muted);
  font-size: 8px;
}

.knowledge-source-list > button {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: left;
}

.knowledge-source-list > header + button {
  border-top: 0;
}

.knowledge-source-list > button:hover,
.knowledge-source-list > button.active {
  background: #f3f6fb;
}

.knowledge-source-list > button.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.knowledge-source-list > button > i {
  width: 34px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: #2b579a;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.knowledge-source-list > button > i.markdown {
  background: #344054;
}

.knowledge-source-list > button > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.knowledge-source-list > button strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-source-list > button small {
  color: var(--muted);
  font-size: 8px;
}

.knowledge-source-list > button em {
  font-style: normal;
}

.knowledge-source-detail article {
  overflow: hidden;
}

.knowledge-source-detail article > header {
  min-height: 82px;
}

.knowledge-source-detail article > header span:first-child,
.knowledge-proposal-preview article > header span {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 8px;
}

.knowledge-source-detail header p,
.knowledge-proposal-preview header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.knowledge-source-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.knowledge-source-facts > div {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.knowledge-source-facts > div:nth-child(-n + 2) {
  border-top: 0;
}

.knowledge-source-facts > div:nth-child(odd) {
  border-left: 0;
}

.knowledge-source-facts span {
  color: var(--muted);
  font-size: 8px;
}

.knowledge-source-facts strong {
  font-size: 9px;
}

.knowledge-source-timeline {
  padding: 13px 18px;
}

.knowledge-source-timeline p {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
  padding: 7px 0 14px;
}

.knowledge-source-timeline p:not(:last-child)::before {
  position: absolute;
  top: 32px;
  bottom: -2px;
  left: 13px;
  width: 1px;
  background: var(--line);
  content: "";
}

.knowledge-source-timeline i {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.knowledge-source-timeline p.complete i {
  border-color: #8bcbb9;
  color: var(--success);
  background: var(--success-soft);
}

.knowledge-source-timeline p.active i {
  border-color: #84adff;
  color: var(--accent);
  background: var(--accent-soft);
}

.knowledge-source-timeline p > span {
  display: grid;
  gap: 4px;
}

.knowledge-source-timeline strong {
  font-size: 9px;
}

.knowledge-source-timeline small {
  color: var(--muted);
  font-size: 8px;
}

.knowledge-source-detail article > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 11px 15px;
  border-top: 1px solid var(--line);
}

.knowledge-upload-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.45fr) minmax(280px, .75fr);
  gap: 12px;
}

.knowledge-upload-form,
.knowledge-upload-explainer {
  overflow: hidden;
}

.knowledge-upload-form header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.knowledge-dropzone {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin: 15px;
  border: 1px dashed #9fb1ca;
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  cursor: pointer;
}

.knowledge-dropzone.ready {
  border-color: #62b59d;
  color: var(--success);
  background: #f1fbf7;
}

.knowledge-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.knowledge-dropzone > i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 20px;
  font-style: normal;
}

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

.knowledge-dropzone span {
  font-size: 8px;
}

.knowledge-sample-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: -7px 15px 14px;
  color: var(--muted);
  font-size: 8px;
}

.knowledge-upload-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 15px;
}

.knowledge-upload-fields label,
.knowledge-proposal-decision label {
  display: grid;
  gap: 6px;
}

.knowledge-upload-fields label > span,
.knowledge-proposal-decision label > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.knowledge-upload-fields select,
.knowledge-proposal-decision select {
  width: 100%;
  height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-size: 9px;
}

.knowledge-safety-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  margin: 0 15px 15px;
  padding: 11px;
  border: 1px solid #b9d2ff;
  border-radius: 6px;
  background: #f2f6ff;
}

.knowledge-safety-option span {
  display: grid;
  gap: 4px;
}

.knowledge-safety-option strong {
  font-size: 9px;
}

.knowledge-safety-option small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.knowledge-upload-form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
}

.knowledge-upload-form > footer > span {
  color: var(--muted);
  font-size: 8px;
}

.knowledge-upload-explainer ol {
  margin: 0;
  padding: 8px 15px;
  list-style: none;
}

.knowledge-upload-explainer li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.knowledge-upload-explainer li > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}

.knowledge-upload-explainer li > div {
  display: grid;
  gap: 4px;
}

.knowledge-upload-explainer li strong {
  font-size: 9px;
}

.knowledge-upload-explainer li small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.knowledge-upload-result {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  margin: 10px 15px 15px;
  padding: 12px;
  border: 1px solid #8bcbb9;
  border-radius: 7px;
  background: var(--success-soft);
}

.knowledge-upload-result > i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-style: normal;
}

.knowledge-upload-result > div {
  display: grid;
  gap: 4px;
}

.knowledge-upload-result strong {
  font-size: 10px;
}

.knowledge-upload-result span {
  color: var(--muted);
  font-size: 8px;
}

.knowledge-upload-result > a {
  grid-column: 1 / -1;
}

.knowledge-review-header-state {
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 10px 13px;
  border-left: 3px solid var(--warning);
  background: var(--warning-soft);
}

.knowledge-review-header-state span {
  color: var(--muted);
  font-size: 8px;
}

.knowledge-review-header-state strong {
  color: var(--warning);
  font-size: 10px;
}

.knowledge-review-toolbar {
  min-height: 60px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
  padding: 10px 14px;
}

.knowledge-review-toolbar > div:first-child {
  display: grid;
  gap: 3px;
}

.knowledge-review-toolbar > div:first-child span,
.knowledge-review-toolbar > div:first-child small {
  color: var(--muted);
  font-size: 8px;
}

.knowledge-review-toolbar > div:first-child strong {
  font-size: 10px;
}

.knowledge-review-counts {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.knowledge-review-counts span {
  padding: 7px 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.knowledge-review-counts span:first-child {
  border-left: 0;
}

.knowledge-review-counts b {
  margin-right: 3px;
  color: var(--ink);
  font-size: 11px;
}

.knowledge-review-layout {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(250px, .68fr) minmax(430px, 1.35fr) minmax(260px, .72fr);
  gap: 12px;
}

.knowledge-proposal-list,
.knowledge-proposal-preview article,
.knowledge-proposal-decision article {
  overflow: hidden;
}

.knowledge-proposal-list > button {
  width: 100%;
  min-height: 67px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: left;
}

.knowledge-proposal-list > header + button {
  border-top: 0;
}

.knowledge-proposal-list > button:hover,
.knowledge-proposal-list > button.active {
  background: #f2f6ff;
}

.knowledge-proposal-list > button.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.knowledge-proposal-list > button.resolved {
  background: #f3faf7;
}

.knowledge-proposal-list > button > i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.knowledge-proposal-list i.conflict {
  color: var(--danger);
  background: var(--danger-soft);
}

.knowledge-proposal-list i.assign {
  color: var(--warning);
  background: var(--warning-soft);
}

.knowledge-proposal-list i.ignore {
  color: var(--muted);
  background: #eaecf0;
}

.knowledge-proposal-list > button > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.knowledge-proposal-list strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-proposal-list small {
  color: var(--muted);
  font-size: 8px;
}

.knowledge-proposal-list em {
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
  font-weight: 750;
}

.knowledge-proposal-list button[data-proposal-state="blocking"] em {
  color: var(--danger);
}

.knowledge-proposal-list button[data-proposal-state="unassigned"] em {
  color: var(--warning);
}

.knowledge-proposal-list button.resolved em {
  color: var(--success);
}

.knowledge-proposal-preview article {
  min-height: 100%;
}

.knowledge-proposal-preview article > header {
  min-height: 76px;
}

.knowledge-proposal-preview article > header b {
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 7px;
}

.knowledge-proposal-preview article > header b.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.knowledge-proposal-preview article > header b.warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.knowledge-source-excerpt {
  margin: 14px;
  padding: 13px;
  border-left: 3px solid #7d91ad;
  background: #f5f7fa;
}

.knowledge-source-excerpt span,
.knowledge-proposed-card > span,
.knowledge-assignment-candidates > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.knowledge-source-excerpt p {
  margin: 8px 0 0;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 11px;
  line-height: 1.75;
}

.knowledge-proposal-diff {
  margin: 14px;
}

.knowledge-proposal-diff h3 {
  margin: 0 0 8px;
  font-size: 9px;
}

.knowledge-proposal-diff p {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  margin: 0;
  padding: 9px;
  border: 1px solid;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 10px;
  line-height: 1.6;
}

.knowledge-proposal-diff p.removed {
  border-color: #efc2bd;
  background: #fff4f2;
}

.knowledge-proposal-diff p.added {
  border-color: #a9d8c8;
  background: #effaf6;
}

.knowledge-proposal-diff p b {
  font-family: var(--mono);
}

.knowledge-proposal-diff p.removed b { color: var(--danger); }
.knowledge-proposal-diff p.added b { color: var(--success); }

.knowledge-proposed-card {
  margin: 14px;
  padding: 18px;
  border: 1px solid #b9d2ff;
  border-radius: 6px;
  background: #f7f9fd;
}

.knowledge-proposed-card h3 {
  margin: 8px 0;
  font-size: 16px;
}

.knowledge-proposed-card p {
  margin: 0;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 11px;
  line-height: 1.75;
}

.knowledge-conflict-claims {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 9px;
  margin: 14px;
}

.knowledge-conflict-claims section {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.knowledge-conflict-claims section:last-child {
  border-color: #efc2bd;
  background: #fff8f7;
}

.knowledge-conflict-claims span {
  color: var(--muted);
  font-size: 8px;
}

.knowledge-conflict-claims p {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.65;
}

.knowledge-conflict-claims > i {
  align-self: center;
  color: var(--danger);
  font-style: normal;
  font-weight: 850;
}

.knowledge-review-warning,
.knowledge-dedup-result {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  margin: 14px;
  padding: 11px;
  border: 1px solid #f4c7a1;
  border-radius: 6px;
  background: var(--warning-soft);
}

.knowledge-review-warning > b,
.knowledge-dedup-result > i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--warning);
  font-style: normal;
}

.knowledge-review-warning > span,
.knowledge-dedup-result > span {
  display: grid;
  gap: 4px;
}

.knowledge-review-warning strong,
.knowledge-dedup-result strong {
  font-size: 9px;
}

.knowledge-review-warning small,
.knowledge-dedup-result small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.knowledge-dedup-result {
  border-color: #a9d8c8;
  background: var(--success-soft);
}

.knowledge-dedup-result > i {
  background: var(--success);
}

.knowledge-assignment-candidates {
  margin: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.knowledge-assignment-candidates p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 9px;
}

.knowledge-assignment-candidates p:nth-child(2) {
  margin-top: 7px;
}

.knowledge-assignment-candidates b {
  color: var(--accent);
}

.knowledge-proposal-decision article {
  position: sticky;
  top: 145px;
}

.knowledge-proposal-decision article > header {
  display: block;
}

.knowledge-proposal-decision dl {
  margin: 0;
  padding: 8px 13px;
}

.knowledge-proposal-decision dl > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.knowledge-proposal-decision dt {
  color: var(--muted);
  font-size: 8px;
}

.knowledge-proposal-decision dd {
  margin: 0;
  font-size: 8px;
  font-weight: 750;
}

.knowledge-proposal-decision article > p {
  margin: 0;
  padding: 13px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

.knowledge-proposal-decision article > label {
  margin: 13px;
}

.knowledge-proposal-decision article > footer {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 11px 13px;
  border-top: 1px solid var(--line);
}

.knowledge-proposal-decision article > footer.stacked {
  align-items: stretch;
  flex-direction: column;
}

.knowledge-apply-bar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 12px 15px;
  border-left: 4px solid var(--warning);
}

.knowledge-apply-bar.complete {
  border-left-color: var(--success);
  background: #f3faf7;
}

.knowledge-apply-bar > div {
  display: grid;
  gap: 4px;
}

.knowledge-apply-bar span {
  font-size: 10px;
  font-weight: 750;
}

.knowledge-apply-bar small {
  color: var(--muted);
  font-size: 8px;
}

.knowledge-apply-result {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 15px;
  border-color: #8bcbb9;
  background: #f2fbf7;
}

.knowledge-apply-result > i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-style: normal;
  font-weight: 850;
}

.knowledge-apply-result > div {
  display: grid;
  gap: 4px;
}

.knowledge-apply-result span {
  color: var(--success);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
}

.knowledge-apply-result h2 {
  margin: 0;
  font-size: 13px;
}

.knowledge-apply-result p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

@media (max-width: 1180px) {
  .knowledge-review-layout {
    grid-template-columns: 240px minmax(420px, 1fr);
  }

  .knowledge-proposal-decision {
    grid-column: 1 / -1;
  }

  .knowledge-proposal-decision article {
    position: static;
  }
}

@media (max-width: 900px) {
  .knowledge-import-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .knowledge-source-layout,
  .knowledge-upload-layout,
  .knowledge-review-layout {
    grid-template-columns: 1fr;
  }

  .knowledge-proposal-decision {
    grid-column: 1;
  }

  .knowledge-review-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .knowledge-import-page {
    padding: 14px 12px 68px;
  }

  .knowledge-import-entry,
  .knowledge-apply-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .knowledge-import-entry > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .knowledge-import-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .knowledge-import-flow a:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .knowledge-import-flow a:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .knowledge-import-metrics,
  .knowledge-source-facts,
  .knowledge-upload-fields {
    grid-template-columns: 1fr;
  }

  .knowledge-source-facts > div,
  .knowledge-source-facts > div:nth-child(-n + 2) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .knowledge-source-facts > div:first-child {
    border-top: 0;
  }

  .knowledge-review-counts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .knowledge-conflict-claims {
    grid-template-columns: 1fr;
  }

  .knowledge-conflict-claims > i {
    justify-self: center;
    transform: rotate(90deg);
  }

  .knowledge-apply-result {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .knowledge-apply-result > a {
    grid-column: 1 / -1;
  }
}

/* Knowledge production workspace shared by production and Scenario adapters. */
.knowledge-workspace {
  --kb-navy: #142236;
  --kb-blue: #2d64da;
  --kb-teal: #0f7b6c;
  --kb-paper: #fbfaf7;
  min-height: calc(100dvh - 134px);
  padding: 18px 22px 72px;
  background:
    linear-gradient(90deg, rgb(20 34 54 / 3%) 1px, transparent 1px),
    linear-gradient(rgb(20 34 54 / 3%) 1px, transparent 1px),
    #edf1f4;
  background-size: 24px 24px;
}

.knowledge-hero {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.knowledge-hero p,
.kb-map small,
.kb-generation small,
.kb-document-layout aside header small,
.kb-release-layout small {
  margin: 0 0 5px;
  color: var(--kb-blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}

.knowledge-hero h1 {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -.035em;
}

.knowledge-hero > div > span {
  color: var(--muted);
  font-size: 10px;
}

.knowledge-hero-status {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 88%);
}

.knowledge-hero-status span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.knowledge-hero-status span:first-child {
  border-left: 0;
}

.knowledge-hero-status b {
  color: var(--ink);
  font-size: 14px;
}

.knowledge-workspace button {
  cursor: pointer;
}

.kb-workbench {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(230px, .68fr) minmax(420px, 1.7fr) minmax(260px, .78fr);
  gap: 12px;
}

.kb-map,
.kb-generation,
.kb-card-editor {
  min-height: 0;
  overflow: hidden;
}

.kb-map {
  display: flex;
  flex-direction: column;
}

.kb-map > header,
.kb-generation > header,
.kb-document-layout aside > header,
.kb-release-steps article > header,
.kb-release-header,
.kb-release-result > header {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.kb-map h2,
.kb-generation h2,
.kb-document-layout aside h2,
.kb-release-layout h2,
.kb-release-layout h3 {
  margin: 0;
  font-size: 14px;
}

.kb-icon-action {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--kb-blue);
  background: #fff;
  font-size: 18px;
}

.kb-inline-search {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 12px 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface-soft);
}

.kb-inline-search svg {
  width: 14px;
}

.kb-inline-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.kb-map-tree {
  flex: 1;
  padding: 5px 8px 12px;
  overflow-y: auto;
}

.kb-map-tree section {
  margin-left: calc(var(--kb-depth) * 10px);
}

.kb-map-tree h3 {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 3px;
  color: #344054;
  font-size: 10px;
}

.kb-map-tree h3 span {
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 600;
}

.kb-map-tree h3 b {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}

.kb-map-tree button {
  width: 100%;
  min-height: 49px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 7px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.kb-map-tree button:hover,
.kb-map-tree button.active {
  background: #edf3ff;
}

.kb-map-tree button.active {
  box-shadow: inset 3px 0 0 var(--kb-blue);
}

.kb-card-type {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #315491;
  background: #e6eeff;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.kb-map-tree button span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.kb-map-tree button strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-map-tree button small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.kb-map-tree button em {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.kb-map-tree button em.success { background: #17a673; }
.kb-map-tree button em.pending { background: #ee9c37; }
.kb-map-tree button em.danger { background: #dc5a52; }

.kb-map > footer {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.kb-map > footer button,
.kb-component-boundary footer button {
  border: 0;
  color: var(--kb-blue);
  background: transparent;
  font-size: 9px;
  font-weight: 750;
}

.kb-card-stage {
  min-width: 0;
}

.kb-card-editor {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.kb-card-editor.diff-open {
  height: auto;
  min-height: 100%;
}

.kb-card-editor > header {
  min-height: 98px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.kb-eyebrow {
  color: var(--kb-blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.kb-card-editor h2 {
  margin: 8px 0 5px;
  font-size: 20px;
  letter-spacing: -.025em;
}

.kb-card-editor header p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.kb-editor-toolbar,
.kb-document-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8f9fb;
}

.kb-editor-toolbar button,
.kb-document-toolbar button {
  min-width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 9px;
}

.kb-editor-toolbar button:hover,
.kb-document-toolbar button:hover {
  background: #e7ebf1;
}

.kb-editor-toolbar > i {
  width: 1px;
  height: 20px;
  margin: 0 4px;
  background: var(--line);
}

.kb-editor-toolbar > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 8px;
}

.kb-editor-canvas {
  flex: 1;
  min-height: 290px;
  padding: 34px clamp(28px, 5vw, 72px);
  outline: 0;
  background:
    linear-gradient(90deg, transparent 49px, #edf0f4 50px, transparent 51px),
    #fff;
}

.kb-editor-canvas:focus {
  box-shadow: inset 0 0 0 2px rgb(45 100 218 / 15%);
}

.kb-editor-canvas h3 {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -.035em;
}

.kb-editor-canvas p {
  margin: 0;
  color: #344054;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 15px;
  line-height: 1.9;
}

.kb-card-metadata {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.kb-card-metadata div {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-left: 1px solid var(--line);
}

.kb-card-metadata div:first-child {
  border-left: 0;
}

.kb-card-metadata span {
  color: var(--muted);
  font-size: 8px;
}

.kb-card-metadata strong {
  font-size: 9px;
}

.kb-version-diff {
  border-top: 1px solid #a9bbe0;
  background: #f7f9fd;
}

.kb-version-diff > header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.kb-version-diff > header span,
.kb-diff-empty > span {
  color: var(--kb-blue);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
}

.kb-version-diff h3 {
  margin: 4px 0 0;
  font-size: 12px;
}

.kb-diff-versions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 8px;
}

.kb-diff-versions b {
  color: var(--muted);
  font-weight: 650;
}

.kb-diff-versions i {
  color: var(--muted);
  font-style: normal;
}

.kb-diff-versions strong {
  color: var(--kb-blue);
}

.kb-diff-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr);
  gap: 12px;
  padding: 12px 16px;
}

.kb-diff-body > article {
  min-width: 0;
}

.kb-diff-body h4 {
  margin: 0 0 8px;
  color: #344054;
  font-size: 9px;
}

.kb-diff-line {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  border: 1px solid;
  border-bottom: 0;
}

.kb-diff-line:last-child {
  border-bottom: 1px solid;
}

.kb-diff-line.removed {
  border-color: #efc2bd;
  background: #fff3f1;
}

.kb-diff-line.added {
  border-color: #a9d8c8;
  background: #edfaf5;
}

.kb-diff-line > b {
  display: grid;
  place-items: start center;
  padding-top: 8px;
  border-right: 1px solid;
  font-family: var(--mono);
  font-size: 10px;
}

.kb-diff-line.removed > b {
  border-color: #efc2bd;
  color: var(--danger);
}

.kb-diff-line.added > b {
  border-color: #a9d8c8;
  color: var(--success);
}

.kb-diff-line p {
  margin: 0;
  padding: 7px 9px;
  color: #344054;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 10px;
  line-height: 1.6;
}

.kb-diff-facts {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.kb-diff-facts dl {
  margin: 0;
}

.kb-diff-facts dl > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.kb-diff-facts dt {
  color: var(--muted);
  font-size: 8px;
}

.kb-diff-facts dd {
  margin: 0;
  font-size: 8px;
  line-height: 1.45;
}

.kb-diff-facts dd span,
.kb-diff-facts dd em {
  display: inline-block;
  margin-right: 5px;
  padding: 2px 4px;
  border-radius: 3px;
  color: var(--muted);
  background: #eaecf0;
  font-size: 7px;
  font-style: normal;
}

.kb-diff-facts dd em {
  color: var(--success);
  background: var(--success-soft);
}

.kb-version-diff > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 8px;
}

.kb-version-diff > footer b {
  margin-right: 5px;
  color: var(--ink);
}

.kb-version-diff > footer strong {
  color: var(--kb-blue);
  font-size: 8px;
}

.kb-diff-empty {
  padding: 18px 20px;
  text-align: center;
}

.kb-diff-empty p {
  max-width: 560px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.kb-card-editor > footer {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
}

.kb-card-editor > footer > div {
  display: flex;
  gap: 8px;
}

.kb-generation {
  display: flex;
  flex-direction: column;
}

.kb-generation header {
  display: block;
}

.kb-generation header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.kb-query-context {
  margin: 12px;
  padding: 12px;
  border: 1px solid #b9d2ff;
  border-radius: 7px;
  background: #eff5ff;
}

.kb-query-context span,
.kb-query-context strong {
  font-size: 9px;
}

.kb-query-context span {
  color: var(--muted);
}

.kb-query-context strong {
  margin-left: 5px;
}

.kb-query-context p {
  margin: 8px 0 0;
  color: #344054;
  font-size: 10px;
  line-height: 1.5;
}

.kb-generation ol {
  flex: 1;
  margin: 0;
  padding: 0 12px;
  list-style: none;
}

.kb-generation li {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.kb-generation li > i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--kb-teal);
  background: #e3f5f1;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.kb-generation li span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.kb-generation li strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-generation li small {
  color: var(--muted);
  font-size: 8px;
}

.kb-generation li > b {
  color: var(--success);
}

.kb-blocked-card {
  display: grid;
  gap: 4px;
  margin: 12px;
  padding: 10px;
  border-left: 3px solid #e15b52;
  background: var(--danger-soft);
}

.kb-blocked-card span,
.kb-blocked-card small {
  color: var(--danger);
  font-size: 8px;
}

.kb-blocked-card strong {
  font-size: 9px;
}

.kb-generation > footer {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.kb-generation > footer p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 9px;
}

.kb-generation > footer p b {
  color: var(--ink);
  font-size: 16px;
}

.kb-generation > footer button {
  width: 100%;
}

.kb-document-layout {
  min-height: 730px;
  display: grid;
  grid-template-columns: 190px minmax(520px, 1fr) 230px;
  gap: 12px;
}

.kb-document-outline,
.kb-document-inspector {
  align-self: start;
  position: sticky;
  top: 148px;
}

.kb-document-outline ol {
  margin: 0;
  padding: 8px;
  list-style: none;
}

.kb-document-outline li {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 10px 8px;
  border-radius: 5px;
}

.kb-document-outline li.active {
  background: #edf3ff;
}

.kb-document-outline li span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.kb-document-outline li a {
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.kb-document-outline li b {
  color: var(--muted);
  font-size: 8px;
}

.kb-document-legend {
  margin: 8px;
  padding: 9px;
  border-top: 1px solid var(--line);
}

.kb-document-legend p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 7px 0;
  color: var(--muted);
  font-size: 8px;
}

.kb-document-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.kb-document-legend i.success { background: #17a673; }
.kb-document-legend i.pending { background: #ee9c37; }
.kb-document-legend i.danger { background: #dc5a52; }

.kb-document {
  overflow: hidden;
}

.kb-document-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

.kb-document-header span {
  color: var(--kb-blue);
  font-family: var(--mono);
  font-size: 8px;
}

.kb-document-header h2 {
  margin: 6px 0 4px;
  font-size: 18px;
}

.kb-document-header p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.kb-document-header > div:last-child {
  display: flex;
  gap: 7px;
}

.kb-document-toolbar {
  position: sticky;
  z-index: 5;
  top: 134px;
}

.kb-document-toolbar > span {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.kb-document-toolbar em {
  margin-left: auto;
  color: var(--muted);
  font-size: 8px;
}

.kb-document-paper {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px clamp(32px, 6vw, 76px) 80px;
  background: var(--kb-paper);
}

.kb-document-paper > section:first-child {
  margin-bottom: 38px;
}

.kb-document-paper h1 {
  margin: 0 0 14px;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 31px;
  letter-spacing: -.035em;
}

.kb-document-lead {
  color: var(--muted);
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 13px;
  line-height: 1.8;
}

.kb-component-boundary {
  position: relative;
  margin: 26px -20px;
  padding: 0 20px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
}

.kb-component-boundary:hover,
.kb-component-boundary:focus-within,
.kb-component-boundary[data-saved="true"] {
  border-color: #9bbcff;
  background: #fff;
  box-shadow: 0 6px 22px rgb(20 34 54 / 7%);
}

.kb-component-boundary.danger {
  border-color: #f2b8b3;
  background: #fff8f7;
}

.kb-component-boundary > header {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -20px 17px;
  padding: 7px 10px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  opacity: .72;
}

.kb-component-boundary > header div {
  display: flex;
  gap: 8px;
}

.kb-component-boundary > header em {
  color: var(--kb-blue);
  font-style: normal;
}

.kb-component-boundary [contenteditable] {
  outline: 0;
}

.kb-component-boundary h2 {
  margin: 0 0 12px;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 21px;
}

.kb-component-boundary p {
  margin: 0;
  color: #344054;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 13px;
  line-height: 1.9;
}

.kb-component-boundary > footer {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.kb-document-inspector .kb-inspection-summary {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.kb-inspection-summary strong {
  font-size: 28px;
}

.kb-inspection-summary span {
  color: var(--muted);
  font-size: 9px;
}

.kb-document-inspector ul {
  margin: 0;
  padding: 8px 12px;
  list-style: none;
}

.kb-document-inspector li,
.kb-review-checks > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.kb-document-inspector li i,
.kb-review-checks i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.kb-document-inspector i.success,
.kb-review-checks i.success {
  color: var(--success);
  background: var(--success-soft);
}

.kb-document-inspector i.pending {
  color: var(--warning);
  background: var(--warning-soft);
}

.kb-document-inspector i.danger,
.kb-review-checks i.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.kb-document-inspector li span,
.kb-review-checks span {
  display: grid;
  gap: 3px;
}

.kb-document-inspector li strong,
.kb-review-checks strong {
  font-size: 9px;
}

.kb-document-inspector li small,
.kb-review-checks small {
  color: var(--muted);
  font-size: 8px;
}

.kb-baseline-preview {
  display: grid;
  gap: 4px;
  margin: 10px 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
}

.kb-baseline-preview span,
.kb-baseline-preview small {
  color: var(--muted);
  font-size: 8px;
}

.kb-baseline-preview strong {
  font-family: var(--mono);
  font-size: 10px;
}

.kb-document-inspector > button {
  width: calc(100% - 24px);
  margin: 2px 12px 12px;
}

.kb-release-layout {
  display: grid;
  gap: 12px;
}

.kb-release-header {
  min-height: 86px;
}

.kb-release-header p,
.kb-release-result header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.kb-current-baseline {
  min-width: 220px;
  display: grid;
  gap: 3px;
  padding: 10px 14px;
  border-left: 3px solid var(--kb-teal);
  background: #edf9f6;
}

.kb-current-baseline span,
.kb-current-baseline small {
  color: var(--muted);
  font-size: 8px;
}

.kb-current-baseline strong {
  font-family: var(--mono);
  font-size: 12px;
}

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

.kb-release-steps > article {
  min-height: 430px;
}

.kb-release-steps article > header {
  justify-content: flex-start;
}

.kb-release-steps article > header > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--kb-navy);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.kb-release-steps article > header > b {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 8px;
}

.kb-release-steps article > header > b.success {
  color: var(--success);
  background: var(--success-soft);
}

.kb-release-steps article > section {
  padding: 12px;
}

.kb-release-card {
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--warning);
  border-radius: 6px;
}

.kb-release-card.danger {
  border-left-color: var(--danger);
  background: #fffafa;
}

.kb-release-card > span {
  color: var(--muted);
  font-size: 8px;
}

.kb-release-card h4 {
  margin: 7px 0 5px;
  font-size: 11px;
}

.kb-release-card p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.kb-release-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.kb-release-card footer button {
  border: 0;
  color: var(--kb-blue);
  background: transparent;
  font-size: 8px;
  font-weight: 750;
}

.kb-release-card footer b {
  color: var(--warning);
  font-size: 8px;
}

.kb-release-card.danger footer b {
  color: var(--danger);
}

.kb-release-steps > article > footer {
  padding: 0 12px 12px;
}

.kb-review-checks {
  min-height: 303px;
}

.kb-review-checks > div {
  padding: 12px 2px;
}

.kb-baseline-manifest > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 11px 3px;
  border-bottom: 1px solid var(--line);
}

.kb-baseline-manifest span {
  font-family: var(--mono);
  font-size: 9px;
}

.kb-baseline-manifest strong {
  color: var(--kb-blue);
  font-family: var(--mono);
  font-size: 9px;
}

.kb-baseline-manifest small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 8px;
}

.kb-baseline-diff {
  padding: 12px !important;
}

.kb-baseline-diff > header {
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 5px 5px 0 0;
  background: #f7f8fa;
  font-family: var(--mono);
  font-size: 8px;
}

.kb-baseline-diff > header span {
  color: var(--muted);
}

.kb-baseline-diff > header i {
  color: var(--muted);
  font-style: normal;
}

.kb-baseline-diff > header strong {
  color: var(--kb-blue);
  text-align: right;
}

.kb-baseline-diff > div {
  display: grid;
  align-items: center;
  gap: 7px;
  padding: 10px 9px;
  border: 1px solid var(--line);
  border-top: 0;
}

.kb-baseline-diff > div:last-child {
  border-radius: 0 0 5px 5px;
}

.kb-baseline-diff > div > b {
  width: max-content;
  padding: 3px 5px;
  border-radius: 3px;
  font-size: 7px;
}

.kb-baseline-diff .updated {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  border-color: #a9d8c8;
  background: #f2fbf7;
}

.kb-baseline-diff .updated > b {
  color: var(--success);
  background: #dff4eb;
}

.kb-baseline-diff .updated > span,
.kb-baseline-diff .excluded > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.kb-baseline-diff code {
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: 8px;
}

.kb-baseline-diff small {
  color: var(--muted);
  font-size: 7px;
}

.kb-baseline-diff del,
.kb-baseline-diff ins {
  padding: 2px 4px;
  font-family: var(--mono);
  font-size: 8px;
  text-decoration: none;
}

.kb-baseline-diff del {
  color: var(--danger);
  background: var(--danger-soft);
  text-decoration: line-through;
}

.kb-baseline-diff ins {
  color: var(--success);
  background: var(--success-soft);
  font-weight: 800;
}

.kb-baseline-diff .updated > i {
  color: var(--muted);
  font-style: normal;
}

.kb-baseline-diff .unchanged {
  grid-template-columns: auto minmax(0, 1fr);
}

.kb-baseline-diff .unchanged > b {
  color: var(--muted);
  background: #eaecf0;
}

.kb-baseline-diff .unchanged p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

.kb-baseline-diff .unchanged code {
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: #fff;
}

.kb-baseline-diff .excluded {
  grid-template-columns: auto minmax(0, 1fr);
  border-color: #efc2bd;
  background: #fff8f7;
}

.kb-baseline-diff .excluded > b {
  color: var(--danger);
  background: var(--danger-soft);
}

.kb-release-result > header {
  min-height: 70px;
}

.kb-contract-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr) auto minmax(0, .9fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 9px;
  padding: 15px;
}

.kb-contract-flow > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
}

.kb-contract-flow > div.result {
  border-color: #9bd7c8;
  background: #edf9f6;
}

.kb-contract-flow > i {
  align-self: center;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.kb-contract-flow span,
.kb-contract-flow small {
  color: var(--muted);
  font-size: 8px;
}

.kb-contract-flow strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1240px) {
  .kb-workbench {
    grid-template-columns: 220px minmax(400px, 1fr);
  }

  .kb-generation {
    grid-column: 1 / -1;
    min-height: 300px;
  }

  .kb-generation ol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 14px;
  }

  .kb-document-layout {
    grid-template-columns: 170px minmax(500px, 1fr);
  }

  .kb-document-inspector {
    position: static;
    grid-column: 1 / -1;
  }

  .kb-document-inspector ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 960px) {
  .kb-workbench,
  .kb-document-layout,
  .kb-release-steps {
    grid-template-columns: 1fr;
  }

  .kb-map,
  .kb-document-outline {
    position: static;
    max-height: none;
  }

  .kb-document {
    grid-column: 1;
  }

  .kb-document-inspector {
    grid-column: 1;
  }

  .kb-release-steps > article {
    min-height: 0;
  }

  .kb-contract-flow {
    grid-template-columns: 1fr;
  }

  .kb-contract-flow > i {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 620px) {
  .knowledge-workspace {
    padding: 14px 12px 70px;
  }

  .knowledge-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .knowledge-hero-status {
    width: 100%;
  }

  .knowledge-hero-status span {
    flex: 1;
    padding: 9px;
  }

  .kb-card-metadata {
    grid-template-columns: repeat(2, 1fr);
  }

  .kb-card-metadata div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .kb-card-metadata div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .kb-diff-body {
    grid-template-columns: 1fr;
  }

  .kb-diff-facts {
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .kb-version-diff > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .kb-card-editor > footer,
  .kb-document-header,
  .kb-release-header {
    align-items: stretch;
    flex-direction: column;
  }

  .kb-document-header > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .kb-document-paper {
    padding: 34px 26px 70px;
  }

  .kb-document-inspector ul,
  .kb-generation ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 8px;
  }

  .context-switchers label {
    padding-left: 7px;
  }

  .context-switchers label > span {
    display: none;
  }

  .context-switchers label,
  .context-switchers select {
    grid-template-columns: 1fr;
  }

  .scenario-banner {
    align-items: flex-start;
  }

  .scenario-banner p {
    line-height: 1.45;
  }

  .page-toolbar {
    min-height: 50px;
  }

  .search-control {
    width: min(210px, 56vw);
  }

  .page-heading,
  .page-heading.compact {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .as-of,
  .inline-select {
    width: 100%;
  }

  .metric-grid {
    gap: 8px;
  }

  .metric-grid article {
    min-height: 104px;
    padding: 14px;
  }

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

  .channel-health > article {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .channel-health > article > .status {
    grid-column: 2;
  }

  .channel-health dl {
    grid-column: 1 / -1;
  }

  .customer-strip {
    grid-template-columns: repeat(4, 210px);
  }

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

  .form-grid label.wide {
    grid-column: auto;
  }

  .context-card > header,
  .context-card > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .context-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .context-card blockquote {
    padding: 18px;
    font-size: 13px;
  }

  .version-history article {
    grid-template-columns: 50px 1fr;
  }

  .version-history p {
    grid-column: 1 / -1;
  }

  .detail-stack {
    padding: 9px;
  }

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

  .fact-grid div:nth-child(4) {
    border-left: 1px solid var(--line);
  }

  .fact-grid div:nth-child(odd) {
    border-left: 0;
  }

  .reference-list {
    grid-template-columns: 1fr;
  }

  .reference-list > span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .question-list article > header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .question-list article > header .text-button {
    grid-column: 2;
    justify-self: start;
  }

  .question-tags,
  .question-context {
    margin-left: 0;
  }

  .drawer {
    width: 100%;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar {
    transition: none;
  }
}

/* Multi-tenant customer ownership prototype */
.scenario-shell .tenant-grid,
.scenario-shell .partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scenario-shell .tenant-card,
.scenario-shell .partner-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.scenario-shell .tenant-card > header,
.scenario-shell .partner-card > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.scenario-shell .tenant-card h2,
.scenario-shell .partner-card h2 {
  margin: 2px 0 4px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 18px;
}

.scenario-shell .tenant-card header p,
.scenario-shell .partner-card header p,
.scenario-shell .tenant-card header span,
.scenario-shell .partner-card header span {
  color: var(--muted);
  font-size: 10px;
}

.scenario-shell .tenant-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--tenant-accent);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 18px;
  font-weight: 800;
}

.scenario-shell .tenant-logo.compact {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  font-size: 14px;
}

.scenario-shell .tenant-card dl,
.scenario-shell .partner-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scenario-shell .tenant-card dl > div,
.scenario-shell .partner-card dl > div {
  padding: 14px 10px;
  border-right: 1px solid var(--line);
}

.scenario-shell .tenant-card dl > div:first-child,
.scenario-shell .partner-card dl > div:first-child {
  padding-left: 0;
}

.scenario-shell .tenant-card dl > div:last-child,
.scenario-shell .partner-card dl > div:last-child {
  border-right: 0;
}

.scenario-shell .tenant-domain,
.scenario-shell .tenant-card > footer,
.scenario-shell .partner-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scenario-shell .tenant-domain span,
.scenario-shell .tenant-card > footer > span,
.scenario-shell .partner-card > footer > span {
  color: var(--muted);
  font-size: 10px;
}

.scenario-shell .tenant-domain code {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 10px;
}

.scenario-shell .model-note {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 22px;
  padding: 20px 22px;
  border-left: 4px solid #e8872d;
}

.scenario-shell .model-note > span {
  color: #a65b16;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}

.scenario-shell .model-note div {
  display: grid;
  gap: 4px;
}

.scenario-shell .model-note strong {
  font-size: 11px;
}

.scenario-shell .model-note p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.scenario-shell .tenant-title,
.scenario-shell .tenant-heading > .tenant-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.scenario-shell .tenant-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.scenario-shell .tenant-facts article {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.scenario-shell .tenant-facts article:last-child {
  border-right: 0;
}

.scenario-shell .tenant-facts span,
.scenario-shell .tenant-facts small {
  color: var(--muted);
  font-size: 9px;
}

.scenario-shell .tenant-facts strong {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-shell .tenant-detail-grid,
.scenario-shell .partner-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: 16px;
}

.scenario-shell .relationship-list {
  display: grid;
}

.scenario-shell .relationship-list > a {
  min-height: 70px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.scenario-shell .relationship-list > a:hover {
  background: var(--surface-soft);
}

.scenario-shell .relationship-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.scenario-shell .relationship-list b {
  color: var(--muted);
  font-size: 10px;
}

.scenario-shell .tenant-relations > div {
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.scenario-shell .tenant-relations > div > span {
  color: var(--muted);
  font-size: 9px;
}

.scenario-shell .tenant-relations > div > strong {
  font-size: 11px;
  line-height: 1.55;
}

.scenario-shell .role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scenario-shell .role-tags span,
.scenario-shell .acquisition-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid #b8d4cd;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 9px;
}

.scenario-shell .partner-hero {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) 1.3fr;
  align-items: center;
  gap: 24px;
  padding: 22px;
}

.scenario-shell .partner-hero > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.scenario-shell .partner-hero dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.scenario-shell .partner-hero dl div {
  padding: 10px 14px;
  border-left: 1px solid var(--line);
}

.scenario-shell .ownership-preview {
  display: grid;
  gap: 5px;
  margin: 0 20px 20px;
  padding: 16px 18px;
  border: 1px solid #b8d4cd;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-soft);
}

.scenario-shell .ownership-preview span {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
}

.scenario-shell .ownership-preview strong {
  font-size: 12px;
}

.scenario-shell .ownership-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.scenario-shell .ownership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scenario-shell .ownership-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.scenario-shell .ownership-card header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scenario-shell .ownership-card header > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
}

.scenario-shell .ownership-card small,
.scenario-shell .ownership-card p {
  color: var(--muted);
  font-size: 9px;
}

.scenario-shell .ownership-card h2 {
  margin-top: 3px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 15px;
}

.scenario-shell .ownership-card p {
  min-height: 32px;
  margin: 0;
  line-height: 1.55;
}

.scenario-shell .commercial-entities dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.scenario-shell .commercial-entities dl div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.scenario-shell .commercial-entities dl div:last-child {
  border-right: 0;
}

.scenario-shell .nested-heading {
  border-top: 1px solid var(--line);
}

.scenario-shell .customer-ownership-table {
  min-width: 1180px;
}

.scenario-shell .permission-matrix > div {
  grid-template-columns: minmax(180px, 1fr) repeat(5, minmax(110px, .5fr));
}

@media (max-width: 1100px) {
  .scenario-shell .tenant-grid,
  .scenario-shell .partner-grid {
    grid-template-columns: 1fr;
  }

  .scenario-shell .tenant-detail-grid,
  .scenario-shell .partner-detail-grid,
  .scenario-shell .partner-hero {
    grid-template-columns: 1fr;
  }

  .scenario-shell .ownership-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .scenario-shell .tenant-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-shell .tenant-facts article:nth-child(2) {
    border-right: 0;
  }

  .scenario-shell .tenant-facts article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .scenario-shell .model-note,
  .scenario-shell .commercial-entities dl {
    grid-template-columns: 1fr;
  }

  .scenario-shell .commercial-entities dl div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scenario-shell .commercial-entities dl div:last-child {
    border-bottom: 0;
  }
}

/* UI prototype v2: workspace rail + context header + browser-like secondary tabs */
.interface-v2 {
  --shell-header-height: 64px;
  --shell-tabs-height: 42px;
  --shell-sidebar-width: 248px;
  min-height: 100dvh;
  grid-template-columns: var(--shell-sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}

.interface-v2 .sidebar {
  width: var(--shell-sidebar-width);
  transition: width 180ms ease, transform 180ms ease;
}

.interface-v2 .brand {
  height: var(--shell-header-height);
  gap: 10px;
  padding: 0 12px 0 16px;
}

.interface-v2 .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  box-shadow: none;
}

.interface-v2 .brand-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.interface-v2 .sidebar-toggle {
  flex: 0 0 auto;
  color: #b8cbc5;
}

.interface-v2 .sidebar-toggle svg {
  transition: transform 180ms ease;
}

.interface-v2 .sidebar nav {
  padding: 14px 10px;
}

.interface-v2 .nav-workspace-group {
  margin: 0 0 14px;
}

.interface-v2 .nav-workspace-label {
  height: 28px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 10px;
  color: #81a29a;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .12em;
}

.interface-v2 .nav-link {
  min-height: 36px;
  gap: 10px;
  margin: 2px 0;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 11px;
}

.interface-v2 .nav-link.active {
  color: #123d3a;
  background: #edf4f1;
  box-shadow: inset 3px 0 0 #e8872d;
}

.interface-v2 .nav-link.active svg {
  color: var(--accent-dark);
}

.interface-v2 .sidebar-footer {
  min-height: 62px;
  padding: 11px 14px;
}

.interface-v2 .workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: var(--shell-header-height) var(--shell-tabs-height) minmax(0, 1fr);
}

.interface-v2 .topbar {
  position: sticky;
  z-index: 35;
  top: 0;
  height: var(--shell-header-height);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px 0 22px;
  border-bottom: 1px solid var(--line-strong);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}

.interface-v2 .context-heading {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  align-content: center;
  gap: 4px;
}

.interface-v2 .workspace-kicker {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}

.interface-v2 .context-path {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  overflow: hidden;
  white-space: nowrap;
}

.interface-v2 .context-path strong,
.interface-v2 .context-path b {
  overflow: hidden;
  text-overflow: ellipsis;
}

.interface-v2 .context-path strong {
  color: var(--ink);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 18px;
}

.interface-v2 .context-path strong:not(:last-of-type) {
  color: #4e615b;
  font-size: 14px;
  font-weight: 650;
}

.interface-v2 .context-path i {
  color: #9ca9a4;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
}

.interface-v2 .context-path b {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.interface-v2 .header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.interface-v2 .header-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--nav);
  border-radius: 4px;
  color: #fff;
  background: var(--nav);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 13px;
  font-weight: 850;
}

.interface-v2 .global-search-wrap,
.interface-v2 .notification-wrap {
  position: relative;
}

.interface-v2 .global-search {
  width: clamp(190px, 22vw, 320px);
  height: 34px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #71817b;
  background: #f7faf8;
}

.interface-v2 .global-search svg {
  width: 14px;
  height: 14px;
}

.interface-v2 .global-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.interface-v2 .global-search kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #81908a;
  background: #fff;
  font-family: var(--mono);
  font-size: 8px;
}

.interface-v2 .global-search-panel,
.interface-v2 .notification-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 9px);
  right: 0;
  width: 340px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 18px 44px rgb(18 61 58 / 18%);
}

.interface-v2 .global-search-panel {
  right: auto;
  left: 0;
  padding: 6px;
}

.interface-v2 .global-search-panel a {
  min-height: 46px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  padding: 7px 10px;
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
}

.interface-v2 .global-search-panel a:hover {
  background: var(--surface-soft);
}

.interface-v2 .global-search-panel a span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.interface-v2 .global-search-panel a strong {
  font-size: 11px;
}

.interface-v2 .global-search-panel > p {
  margin: 0;
  padding: 28px 12px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.interface-v2 .notification-button {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.interface-v2 .notification-button b {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 9px;
  color: #fff;
  background: #d87920;
  font-family: var(--mono);
  font-size: 7px;
}

.interface-v2 .notification-panel header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.interface-v2 .notification-panel header strong {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 14px;
}

.interface-v2 .notification-panel header span {
  color: var(--muted);
  font-size: 9px;
}

.interface-v2 .notification-panel article {
  min-height: 66px;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.interface-v2 .notification-panel article:last-child {
  border-bottom: 0;
}

.interface-v2 .notification-panel article div {
  display: grid;
  gap: 4px;
}

.interface-v2 .notification-panel article strong {
  font-size: 10px;
}

.interface-v2 .notification-panel article span,
.interface-v2 .notification-panel time {
  color: var(--muted);
  font-size: 8px;
}

.interface-v2 .scenario-menu {
  position: relative;
}

.interface-v2 .scenario-menu summary {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  border: 1px dashed #d79a4a;
  border-radius: 4px;
  color: #8a5212;
  background: #fff8e9;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.interface-v2 .scenario-menu summary::-webkit-details-marker {
  display: none;
}

.interface-v2 .scenario-menu > div {
  position: absolute;
  z-index: 80;
  top: calc(100% + 9px);
  right: 0;
  width: 260px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 18px 44px rgb(18 61 58 / 18%);
}

.interface-v2 .scenario-menu label {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.interface-v2 .scenario-menu select {
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 10px;
}

.interface-v2 .scenario-menu small {
  color: #8a5212;
  font-size: 8px;
  text-align: right;
}

.interface-v2 .secondary-nav {
  position: sticky;
  z-index: 30;
  top: var(--shell-header-height);
  min-width: 0;
  height: var(--shell-tabs-height);
  display: flex;
  align-items: flex-end;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-strong);
  background: #edf2ef;
}

.interface-v2 .secondary-context {
  height: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px 0 5px;
  color: #60716b;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 750;
}

.interface-v2 .secondary-context i {
  color: #9ba9a4;
  font-style: normal;
}

.interface-v2 .secondary-tabs {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.interface-v2 .secondary-tabs::-webkit-scrollbar {
  display: none;
}

.interface-v2 .secondary-tab {
  position: relative;
  height: 34px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  color: #60716b;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.interface-v2 .secondary-tab:hover {
  color: var(--ink);
  background: rgb(255 255 255 / 48%);
}

.interface-v2 .secondary-tab.active {
  height: 36px;
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--canvas);
}

.interface-v2 .secondary-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--canvas);
  content: "";
}

.interface-v2 .secondary-actions {
  height: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
}

.interface-v2 .secondary-search {
  width: 150px;
  height: 28px;
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.interface-v2 .secondary-search svg {
  width: 12px;
  height: 12px;
  color: var(--muted);
}

.interface-v2 .secondary-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 9px;
}

.interface-v2 .secondary-page-action {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  background: #fff;
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.interface-v2 .secondary-page-action.primary {
  color: #fff;
  border-color: var(--accent-dark);
  background: var(--accent);
}

.interface-v2 .view-mode-switcher {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
}

.interface-v2 .view-mode-switcher button {
  height: 22px;
  padding: 0 7px;
  border: 0;
  border-radius: 2px;
  color: var(--muted);
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}

.interface-v2 .view-mode-switcher button.active {
  color: #fff;
  background: var(--nav);
}

.interface-v2 .content-stage {
  min-width: 0;
  min-height: 0;
}

.interface-v2 .page-stack {
  gap: 14px;
  padding: 20px 24px 54px;
}

.interface-v2 .page-heading,
.interface-v2 .page-heading.compact {
  min-height: 0;
  align-items: center;
  padding: 0 0 14px;
  border-bottom-width: 1px;
}

.interface-v2 .page-heading p {
  margin-bottom: 5px;
}

.interface-v2 .page-heading h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -.035em;
}

.interface-v2 .page-heading > div > span:not(.status),
.interface-v2 .panel-heading p {
  display: none;
}

.interface-v2 .metric-grid article {
  min-height: 92px;
  padding: 14px 17px;
}

.interface-v2 .panel-heading {
  min-height: 58px;
  padding: 13px 17px;
}

.interface-v2 .panel-heading h2 {
  margin-bottom: 0;
}

.interface-v2.sidebar-collapsed {
  --shell-sidebar-width: 72px;
}

.interface-v2.sidebar-collapsed .brand {
  justify-content: center;
  padding: 0;
}

.interface-v2.sidebar-collapsed .brand-mark,
.interface-v2.sidebar-collapsed .brand-copy,
.interface-v2.sidebar-collapsed .nav-workspace-label,
.interface-v2.sidebar-collapsed .nav-link span,
.interface-v2.sidebar-collapsed .nav-link b,
.interface-v2.sidebar-collapsed .actor-copy {
  display: none;
}

.interface-v2.sidebar-collapsed .sidebar-toggle {
  width: 100%;
  height: var(--shell-header-height);
}

.interface-v2.sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.interface-v2.sidebar-collapsed .sidebar nav {
  padding: 14px 8px;
}

.interface-v2.sidebar-collapsed .nav-workspace-group {
  margin-bottom: 10px;
}

.interface-v2.sidebar-collapsed .nav-link {
  justify-content: center;
  padding: 0;
}

.interface-v2.sidebar-collapsed .sidebar-footer {
  justify-content: center;
  padding: 10px 0;
}

.interface-v2.view-mode-focus {
  --shell-sidebar-width: 56px;
}

.interface-v2.view-mode-focus .workspace {
  grid-template-rows: var(--shell-tabs-height) minmax(0, 1fr);
}

.interface-v2.view-mode-focus .topbar {
  display: none;
}

.interface-v2.view-mode-focus .secondary-nav {
  top: 0;
}

.interface-v2.view-mode-focus .brand {
  height: var(--shell-tabs-height);
  justify-content: center;
  padding: 0;
}

.interface-v2.view-mode-focus .brand-mark,
.interface-v2.view-mode-focus .brand-copy,
.interface-v2.view-mode-focus .nav-workspace-label,
.interface-v2.view-mode-focus .nav-link span,
.interface-v2.view-mode-focus .nav-link b,
.interface-v2.view-mode-focus .actor-copy {
  display: none;
}

.interface-v2.view-mode-focus .sidebar-toggle {
  width: 100%;
  height: var(--shell-tabs-height);
}

.interface-v2.view-mode-focus .sidebar nav {
  padding: 12px 6px;
}

.interface-v2.view-mode-focus .nav-workspace-group {
  margin-bottom: 10px;
}

.interface-v2.view-mode-focus .nav-link {
  min-height: 40px;
  justify-content: center;
  padding: 0;
}

.interface-v2.view-mode-focus .sidebar-footer {
  justify-content: center;
  padding: 8px 0;
}

.interface-v2.view-mode-fullscreen {
  --shell-sidebar-width: 0px;
  grid-template-columns: minmax(0, 1fr);
}

.interface-v2.view-mode-fullscreen .sidebar,
.interface-v2.view-mode-fullscreen .topbar {
  display: none;
}

.interface-v2.view-mode-fullscreen .workspace {
  grid-column: 1;
  grid-template-rows: var(--shell-tabs-height) minmax(0, 1fr);
}

.interface-v2.view-mode-fullscreen .secondary-nav {
  top: 0;
}

.interface-v2.navigation-variant-c:not(.sidebar-collapsed, .view-mode-focus, .view-mode-fullscreen) {
  --shell-sidebar-width: 208px;
}

.interface-v2.navigation-variant-c .nav-workspace-label {
  height: 22px;
}

.interface-v2.navigation-variant-c .nav-link {
  min-height: 33px;
}

.interface-v2.navigation-variant-c .secondary-context {
  display: none;
}

@media (max-width: 1050px) {
  .interface-v2 .global-search {
    width: 190px;
  }

  .interface-v2 .global-search kbd,
  .interface-v2 .secondary-context {
    display: none;
  }

  .interface-v2 .secondary-search {
    width: 112px;
  }

  .interface-v2 .view-mode-switcher button {
    padding-inline: 5px;
  }
}

@media (max-width: 860px) {
  .interface-v2,
  .interface-v2.sidebar-collapsed,
  .interface-v2.view-mode-focus {
    display: block;
  }

  .interface-v2 .workspace,
  .interface-v2.view-mode-focus .workspace {
    display: grid;
    grid-template-rows: var(--shell-header-height) var(--shell-tabs-height) minmax(0, 1fr);
  }

  .interface-v2.view-mode-focus .topbar {
    display: flex;
  }

  .interface-v2 .sidebar {
    width: 248px;
  }

  .interface-v2 .topbar {
    padding-inline: 12px;
  }

  .interface-v2 .header-logo,
  .interface-v2 .global-search-wrap,
  .interface-v2 .workspace-kicker {
    display: none;
  }

  .interface-v2 .secondary-nav {
    top: var(--shell-header-height);
    padding-inline: 8px;
  }

  .interface-v2 .secondary-actions {
    margin-left: auto;
  }

  .interface-v2 .secondary-search {
    display: none;
  }

  .interface-v2 .view-mode-switcher button:not(.active) {
    display: none;
  }
}

@media (max-width: 620px) {
  .interface-v2 .context-path strong {
    max-width: 118px;
    font-size: 14px;
  }

  .interface-v2 .context-path strong:not(:last-of-type),
  .interface-v2 .context-path i,
  .interface-v2 .context-path b {
    display: none;
  }

  .interface-v2 .scenario-menu {
    display: none;
  }

  .interface-v2 .secondary-tab {
    padding-inline: 9px;
  }

  .interface-v2 .secondary-page-action {
    padding-inline: 7px;
  }

  .interface-v2 .view-mode-switcher {
    display: none;
  }

  .interface-v2 .page-stack {
    padding: 16px 12px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .interface-v2,
  .interface-v2 .sidebar,
  .interface-v2 .sidebar-toggle svg {
    transition: none;
  }
}

.scenario-shell .status.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.scenario-shell .release-flow-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.scenario-shell .release-flow-nav > a,
.scenario-shell .release-flow-nav > span {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

.scenario-shell .release-flow-nav > :last-child {
  border-right: 0;
}

.scenario-shell .release-flow-nav > a:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.scenario-shell .release-flow-nav > a.active {
  color: var(--ink);
  background: #edf5f2;
  box-shadow: inset 0 -3px 0 #e8872d;
}

.scenario-shell .release-flow-nav > span[aria-disabled="true"] {
  opacity: .42;
}

.scenario-shell .release-flow-nav span,
.scenario-shell .release-flow-nav b {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 9px;
}

.scenario-shell .release-flow-nav strong {
  font-size: 11px;
}

.scenario-shell .release-table td:nth-child(2) small {
  max-width: 220px;
  display: block;
  overflow: hidden;
  font-family: var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-shell .audit-stream {
  display: grid;
  gap: 8px;
}

.scenario-shell .audit-event {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 12px rgb(27 55 50 / 4%);
}

.scenario-shell .audit-event summary {
  min-height: 70px;
  display: grid;
  grid-template-columns: 92px 140px minmax(240px, 1fr) auto 24px;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
}

.scenario-shell .audit-event summary::-webkit-details-marker {
  display: none;
}

.scenario-shell .audit-event time,
.scenario-shell .audit-event code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.scenario-shell .audit-actor {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scenario-shell .audit-actor b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--nav);
  background: #dbe9e4;
}

.scenario-shell .audit-event summary > span:nth-child(3) {
  display: grid;
  gap: 4px;
}

.scenario-shell .audit-event summary small {
  color: var(--muted);
  font-size: 9px;
}

.scenario-shell .audit-chevron {
  color: var(--muted);
  font-size: 16px;
  transition: transform 140ms ease;
}

.scenario-shell .audit-event[open] .audit-chevron {
  transform: rotate(45deg);
}

.scenario-shell .audit-event > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  background: #f7faf8;
}

.scenario-shell .audit-event > div p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.scenario-shell .compact-empty {
  min-height: 160px;
}

.scenario-shell .readiness-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}

.scenario-shell .readiness-score {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.scenario-shell .readiness-score > span {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

.scenario-shell .readiness-score > strong {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 25px;
}

.scenario-shell .readiness-score > strong small {
  font-family: inherit;
  font-size: 12px;
}

.scenario-shell .readiness-ring {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 83%, #dce5e1 83% 100%);
}

.scenario-shell .readiness-ring.blocked {
  background: conic-gradient(var(--danger) 0 42%, #f0d8d5 42% 100%);
}

.scenario-shell .readiness-ring::before {
  grid-area: 1 / 1;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.scenario-shell .readiness-ring b {
  z-index: 1;
  grid-area: 1 / 1;
  font-family: var(--mono);
  font-size: 18px;
}

.scenario-shell .readiness-score p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.scenario-shell .readiness-checks {
  overflow: hidden;
}

.scenario-shell .readiness-checks .panel-heading > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.scenario-shell .readiness-checks article {
  min-height: 68px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

.scenario-shell .readiness-checks article:first-child {
  border-top: 0;
}

.scenario-shell .readiness-checks article.checked {
  animation: readiness-flash 420ms ease var(--check-delay);
}

@keyframes readiness-flash {
  50% { background: var(--accent-soft); }
}

.scenario-shell .check-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--muted);
}

.scenario-shell .check-mark.success { background: var(--success); }
.scenario-shell .check-mark.pending { color: #744719; background: #f6c66d; }
.scenario-shell .check-mark.danger { background: var(--danger); }

.scenario-shell .readiness-checks article > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.scenario-shell .readiness-checks article small {
  color: var(--muted);
  font-size: 9px;
}

.scenario-shell .readiness-checks > footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: #fbfcfb;
}

.scenario-shell .review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 16px;
  align-items: start;
}

.scenario-shell .release-diff,
.scenario-shell .review-decision {
  overflow: hidden;
}

.scenario-shell .release-diff .panel-heading > strong {
  font-size: 10px;
}

.scenario-shell .release-change-list article {
  min-height: 76px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.scenario-shell .release-change-list article:first-child {
  border-top: 0;
}

.scenario-shell .release-change-list article > div {
  display: grid;
  gap: 4px;
}

.scenario-shell .release-change-list p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.scenario-shell .release-change-list article > span:last-child {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
}

.scenario-shell .release-change-list del { color: var(--danger); }
.scenario-shell .release-change-list ins { color: var(--success); text-decoration: none; }

.scenario-shell .release-diff > footer {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.scenario-shell .review-decision > div {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.scenario-shell .review-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.5;
}

.scenario-shell .review-check input {
  margin-top: 2px;
}

.scenario-shell .review-decision > div > label:last-child {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
}

.scenario-shell .review-decision textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  resize: vertical;
  font-size: 10px;
}

.scenario-shell .review-decision > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.scenario-shell .review-decision > footer p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.scenario-shell .snapshot-ready-link {
  display: block;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.scenario-shell .snapshot-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid #91b8ad;
  border-left: 5px solid var(--accent);
  border-radius: 4px;
  background: #eaf4f0;
}

.scenario-shell .snapshot-hero > div {
  display: grid;
  gap: 5px;
}

.scenario-shell .snapshot-hero > div span {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
}

.scenario-shell .snapshot-hero > div strong {
  font-size: 15px;
}

.scenario-shell .snapshot-hero code {
  color: var(--muted);
  font-size: 9px;
}

.scenario-shell .snapshot-hero dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  margin: 0;
}

.scenario-shell .snapshot-hero dl div {
  padding: 0 14px;
  border-left: 1px solid #b7d1ca;
}

.scenario-shell .snapshot-grid {
  display: grid;
  grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr);
  gap: 16px;
}

.scenario-shell .snapshot-manifest,
.scenario-shell .snapshot-contract {
  overflow: hidden;
}

.scenario-shell .snapshot-manifest article {
  min-height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 74px;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
}

.scenario-shell .snapshot-manifest article b {
  color: var(--success);
  font-size: 9px;
}

.scenario-shell .snapshot-contract pre {
  margin: 0;
  padding: 22px;
  color: #dce8e4;
  background: #173633;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.scenario-shell .snapshot-contract footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
}

.scenario-shell .consumption-list {
  display: grid;
  gap: 9px;
}

.scenario-shell .consumption-list article {
  min-height: 94px;
  display: grid;
  grid-template-columns: 12px minmax(240px, 1fr) minmax(280px, .8fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.scenario-shell .consumer-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.scenario-shell .consumer-pulse.success {
  background: var(--success);
  box-shadow: 0 0 0 5px var(--success-soft);
}

.scenario-shell .consumption-list article > div {
  display: grid;
  gap: 4px;
}

.scenario-shell .consumption-list p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.scenario-shell .consumption-list code {
  color: var(--accent-dark);
  font-size: 9px;
}

.scenario-shell .consumption-list dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.scenario-shell .consumption-list dl div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.scenario-shell .conflict-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid #dfaaa5;
  border-radius: 4px;
  background: var(--danger-soft);
}

.scenario-shell .conflict-summary > div {
  display: grid;
  gap: 5px;
}

.scenario-shell .conflict-summary span {
  color: var(--muted);
  font-size: 9px;
}

.scenario-shell .conflict-summary strong {
  font-family: var(--mono);
  font-size: 11px;
}

.scenario-shell .conflict-summary > b {
  color: var(--danger);
  font-size: 20px;
  text-align: center;
}

.scenario-shell .conflict-summary > p {
  margin: 0;
  font-size: 11px;
  font-weight: 750;
}

.scenario-shell .conflict-fields {
  overflow: hidden;
}

.scenario-shell .conflict-head,
.scenario-shell .conflict-fields article {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  gap: 0;
}

.scenario-shell .conflict-head {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 9px;
}

.scenario-shell .conflict-head > *,
.scenario-shell .conflict-fields article > * {
  margin: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.scenario-shell .conflict-head > :last-child,
.scenario-shell .conflict-fields article > :last-child {
  border-right: 0;
}

.scenario-shell .conflict-fields article {
  min-height: 68px;
  border-top: 1px solid var(--line);
}

.scenario-shell .conflict-fields article p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.scenario-shell .conflict-fields article p:last-child {
  background: #fff8e9;
}

.scenario-shell .conflict-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
}

.scenario-shell .conflict-actions label {
  display: flex;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.scenario-shell .conflict-actions label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.scenario-shell .conflict-actions label span {
  display: grid;
  gap: 4px;
}

.scenario-shell .conflict-actions small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.scenario-shell .permission-failure {
  min-height: calc(100dvh - 122px);
}

.access-problem {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #dfaaa5;
  border-radius: 4px;
  background: #fff5f3;
  text-align: center;
}

.access-problem > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #a94038;
  font-family: var(--mono);
  font-weight: 850;
}

.access-problem > strong {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 20px;
}

.access-problem > p {
  margin: 0;
  color: #79514d;
  font-size: 10px;
  line-height: 1.6;
}

.feishu-login-button.compact {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  margin-top: 4px;
  padding: 0 14px;
  font-size: 11px;
}

.access-state-switcher {
  position: absolute;
  right: 24px;
  bottom: 58px;
  left: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.access-state-switcher a {
  padding: 5px 7px;
  border: 1px solid #c8d2ce;
  border-radius: 3px;
  color: #64716d;
  background: #fff;
  font-size: 8px;
  text-decoration: none;
}

.access-state-switcher a.active {
  border-color: #e0a35e;
  color: #744719;
  background: #fff8e9;
}

@media (max-width: 1100px) {
  .scenario-shell .review-layout,
  .scenario-shell .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .scenario-shell .snapshot-hero {
    grid-template-columns: 1fr auto;
  }

  .scenario-shell .snapshot-hero dl {
    grid-column: 1 / -1;
    order: 3;
  }

  .scenario-shell .consumption-list article {
    grid-template-columns: 12px minmax(220px, 1fr) auto auto;
  }

  .scenario-shell .consumption-list dl {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .scenario-shell .conflict-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .scenario-shell .release-flow-nav {
    grid-template-columns: 1fr 1fr;
  }

  .scenario-shell .release-flow-nav > :nth-child(2) {
    border-right: 0;
  }

  .scenario-shell .release-flow-nav > :nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .scenario-shell .readiness-layout {
    grid-template-columns: 1fr;
  }

  .scenario-shell .audit-event summary {
    grid-template-columns: 80px minmax(0, 1fr) auto;
  }

  .scenario-shell .audit-actor,
  .scenario-shell .audit-chevron {
    display: none;
  }

  .scenario-shell .audit-event > div {
    grid-template-columns: 1fr;
  }

  .scenario-shell .snapshot-hero {
    grid-template-columns: 1fr;
  }

  .scenario-shell .snapshot-hero dl {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .scenario-shell .snapshot-hero dl div {
    padding: 8px 0;
    border-top: 1px solid #b7d1ca;
    border-left: 0;
  }

  .scenario-shell .consumption-list article {
    grid-template-columns: 12px minmax(0, 1fr) auto;
  }

  .scenario-shell .consumption-list article > .text-button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .scenario-shell .conflict-summary {
    grid-template-columns: 1fr;
  }

  .scenario-shell .conflict-summary > b {
    transform: rotate(90deg);
  }

  .scenario-shell .conflict-head,
  .scenario-shell .conflict-fields article {
    grid-template-columns: 100px 1fr 1fr;
  }

  .scenario-shell .conflict-actions {
    grid-template-columns: 1fr;
  }
}

/* Complete MVP maintenance flows */
.flow-page {
  max-width: 1280px;
  margin: 0 auto;
}

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

.danger-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid #fda29b;
  border-radius: 8px;
  color: var(--danger);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.danger-button:hover {
  background: var(--danger-soft);
}

.linked-records {
  display: grid;
}

.linked-records > a {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.linked-records > a:hover {
  background: var(--surface-soft);
}

.linked-records > a > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.linked-records strong,
.linked-records small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linked-records small,
.inline-empty {
  color: var(--muted);
  font-size: 11px;
}

.inline-empty {
  margin: 0;
  padding: 24px 18px;
  border-top: 1px solid var(--line);
}

.destructive-zone {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid #fecdca;
  border-radius: 10px;
  background: var(--danger-soft);
}

.destructive-zone div {
  display: grid;
  gap: 4px;
}

.destructive-zone strong {
  color: #912018;
  font-size: 13px;
}

.destructive-zone p {
  margin: 0;
  color: #b42318;
  font-size: 11px;
  line-height: 1.5;
}

.domain-form,
.collection-editor,
.version-editor,
.compare-card {
  overflow: hidden;
}

.domain-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
  border-top: 1px solid var(--line);
}

.domain-form-grid label,
.version-editor > label,
.collection-row label,
.compare-selects label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 11px;
  font-weight: 700;
}

.domain-form-grid label.wide {
  grid-column: 1 / -1;
}

.domain-form-grid input,
.domain-form-grid select,
.domain-form-grid textarea,
.version-editor input,
.version-editor textarea,
.collection-row input,
.collection-row select,
.compare-selects select {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
}

.domain-form-grid textarea,
.version-editor textarea {
  resize: vertical;
  line-height: 1.6;
}

.domain-form-grid small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.form-warning,
.reference-warning {
  display: grid;
  gap: 4px;
  margin: 0 22px 20px;
  padding: 13px 15px;
  border: 1px solid #fedf89;
  border-radius: 8px;
  color: #93370d;
  background: var(--warning-soft);
}

.reference-warning {
  border-color: #b2ccff;
  color: #1849a9;
  background: #eff4ff;
}

.form-warning strong,
.reference-warning strong {
  font-size: 11px;
}

.form-warning p,
.reference-warning p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.form-actions {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

.form-actions .danger-button {
  margin-right: auto;
}

.version-workbench {
  min-width: 0;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.version-timeline {
  overflow: hidden;
}

.version-timeline > button {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 0;
  border-top: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.version-timeline > button:hover {
  background: var(--surface-soft);
}

.version-timeline > button.active {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.version-timeline > button > span:first-child {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.version-timeline small {
  color: var(--muted);
  font-size: 9px;
}

.version-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.compare-selects,
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 20px 0;
  border-top: 1px solid var(--line);
}

.compare-grid {
  padding-top: 12px;
  padding-bottom: 20px;
  border-top: 0;
}

.compare-grid blockquote,
.question-definition blockquote {
  min-height: 110px;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: var(--surface-soft);
  font-size: 11px;
  line-height: 1.7;
}

.version-editor > label {
  margin: 18px 22px 0;
}

.version-editor .reference-warning {
  margin-top: 18px;
  margin-bottom: 0;
}

.collection-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.collection-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(170px, 1.5fr) minmax(110px, .7fr) minmax(140px, 1fr) minmax(100px, .7fr) 32px;
  align-items: end;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.collection-row.competitor-row {
  grid-template-columns: 32px minmax(160px, 1fr) minmax(130px, .8fr) minmax(220px, 1.5fr) 32px;
}

.row-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  align-self: end;
  margin-bottom: 6px;
  border-radius: 50%;
  color: #344054;
  background: #e4e7ec;
  font-size: 10px;
  font-weight: 800;
}

.remove-row {
  align-self: end;
  margin-bottom: 2px;
  color: var(--danger);
}

.collection-editor > .form-warning,
.collection-editor > .reference-warning {
  margin-top: 20px;
}

.reference-list > a {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.reference-list > a:hover {
  background: var(--surface-soft);
}

.reference-list > a small {
  color: var(--muted);
  font-size: 10px;
}

.question-definition {
  padding-bottom: 18px;
}

.question-definition .question-tags {
  margin: 0;
  padding: 18px 20px 12px;
  border-top: 1px solid var(--line);
}

.question-definition blockquote {
  min-height: 0;
  margin: 0 20px;
}

.confirmation-backdrop {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(16 24 40 / 52%);
  backdrop-filter: blur(2px);
}

.confirmation-dialog {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  padding: 22px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.confirmation-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--danger);
  background: var(--danger-soft);
  font-weight: 900;
}

.confirmation-dialog h2 {
  margin: 2px 0 7px;
  font-size: 16px;
}

.confirmation-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.confirmation-dialog footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
}

@media (max-width: 900px) {
  .version-workbench {
    grid-template-columns: 1fr;
  }

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

  .version-timeline .panel-heading {
    grid-column: 1 / -1;
  }

  .collection-row,
  .collection-row.competitor-row {
    grid-template-columns: 28px repeat(2, minmax(0, 1fr)) 32px;
  }

  .collection-row label:nth-of-type(3),
  .collection-row label:nth-of-type(4),
  .collection-row .wide-row-field {
    grid-column: 2 / 4;
  }

  .collection-row .remove-row {
    grid-column: 4;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  .heading-actions {
    width: 100%;
  }

  .heading-actions > * {
    flex: 1;
  }

  .domain-form-grid,
  .compare-selects,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .domain-form-grid label.wide {
    grid-column: auto;
  }

  .version-timeline {
    grid-template-columns: 1fr;
  }

  .collection-row,
  .collection-row.competitor-row {
    grid-template-columns: 28px minmax(0, 1fr) 32px;
  }

  .collection-row label,
  .collection-row label:nth-of-type(3),
  .collection-row label:nth-of-type(4),
  .collection-row .wide-row-field {
    grid-column: 2 / 3;
  }

  .collection-row .remove-row {
    grid-column: 3;
    grid-row: 1;
  }

  .destructive-zone {
    align-items: flex-start;
    flex-direction: column;
  }

  .destructive-zone .danger-button {
    width: 100%;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions > * {
    width: 100%;
  }

  .form-actions .danger-button {
    margin-right: 0;
  }
}

/* Scenario workspace
 * Visual direction: a daylight operations console. The striped perimeter is
 * reserved for the deterministic sandbox; everything else stays disciplined.
 */
.skip-link {
  position: fixed;
  z-index: 120;
  top: 10px;
  left: 12px;
  padding: 9px 13px;
  border-radius: 4px;
  color: #fff;
  background: #17211f;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.sign-in-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(420px, .85fr);
  color: #17211f;
  background: #f3f6f3;
  font-family: "Avenir Next", "Segoe UI Variable", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.sign-in-brand {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 54px;
  color: #e7f0ed;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 46px 46px,
    radial-gradient(circle at 18% 12%, rgb(82 161 149 / 35%), transparent 33%),
    #123d3a;
}

.sign-in-brand > header {
  display: flex;
  align-items: center;
  gap: 13px;
}

.sign-in-brand > header .brand-mark {
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 5px;
  color: #123d3a;
  background: #dbe9e4;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: none;
}

.sign-in-brand > header > span:last-child {
  display: grid;
  gap: 2px;
}

.sign-in-brand > header strong {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .13em;
}

.sign-in-brand > header small {
  color: #9bb4ad;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .14em;
}

.sign-in-brand > div {
  max-width: 690px;
}

.sign-in-brand > div p,
.sign-in-form > p {
  margin: 0 0 14px;
  color: #f2c180;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

.sign-in-brand h1 {
  max-width: 12em;
  margin: 0 0 24px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.sign-in-brand > div > span {
  max-width: 46em;
  display: block;
  color: #b7cbc5;
  font-size: 12px;
  line-height: 1.8;
}

.sign-in-brand > footer {
  display: flex;
  justify-content: space-between;
  color: #89a59e;
  font-family: var(--mono);
  font-size: 9px;
}

.sign-in-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: 54px;
  background:
    linear-gradient(90deg, rgb(15 118 110 / 4%) 1px, transparent 1px) 0 0 / 32px 32px,
    #f3f6f3;
}

.scenario-stamp {
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 8px 10px;
  border: 1px solid #e0bf86;
  border-radius: 3px;
  color: #744719;
  background: #fff8e9;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.sign-in-form {
  width: min(100%, 460px);
  padding: 34px;
  border: 1px solid #aebbb5;
  border-top: 4px solid #e8872d;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 20px 48px rgb(27 55 50 / 12%);
}

.sign-in-form > p {
  color: #095d57;
}

.sign-in-form h2 {
  margin: 0 0 10px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 34px;
  letter-spacing: -.04em;
}

.sign-in-form > span {
  display: block;
  color: #64716d;
  font-size: 11px;
  line-height: 1.65;
}

.sign-in-form dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0 22px;
  border-top: 1px solid #d5ddd9;
  border-bottom: 1px solid #d5ddd9;
}

.sign-in-form dl div {
  padding: 14px 0;
}

.sign-in-form dt {
  color: #73817d;
  font-family: var(--mono);
  font-size: 8px;
}

.sign-in-form dd {
  margin-top: 5px;
  font-size: 11px;
}

.feishu-login-button {
  min-height: 52px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 10px;
  border-radius: 4px;
  color: #fff;
  background: #3370ff;
  text-decoration: none;
  box-shadow: 0 4px 0 #1f51c7;
}

.feishu-login-button:hover {
  background: #2863e6;
}

.feishu-login-button > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgb(255 255 255 / 16%);
  font-weight: 850;
}

.feishu-login-button strong {
  font-size: 12px;
}

.feishu-login-button b {
  font-size: 18px;
}

.sign-in-form > p.sign-in-help {
  margin: 18px 0 0;
  color: #64716d;
  font-family: inherit;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
  text-align: center;
}

.sign-in-unavailable {
  margin-top: 24px;
  padding: 16px;
  border-left: 3px solid #a94038;
  background: #fff0ee;
}

.sign-in-unavailable strong {
  font-size: 12px;
}

.sign-in-unavailable p {
  margin: 6px 0 0;
  color: #79514d;
  font-size: 10px;
  line-height: 1.55;
}

.no-access-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
  color: #17211f;
  background: #f3f6f3;
}

.no-access-page section {
  max-width: 560px;
  padding: 42px;
  border: 1px solid #c9d3cf;
  border-top: 4px solid #e8872d;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 20px 48px rgb(27 55 50 / 12%);
}

.no-access-page section > span {
  color: #a94038;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.no-access-page h1 {
  margin: 12px 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 34px;
}

.no-access-page p {
  margin: 0 0 24px;
  color: #64716d;
  line-height: 1.7;
}

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

.module-checkbox-grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d5ddd9;
  border-radius: 4px;
}

.module-checkbox-grid label span {
  display: grid;
  gap: 2px;
}

.module-checkbox-grid small {
  color: #73817d;
  font-family: var(--mono);
  font-size: 8px;
}

.sign-in-panel > footer {
  position: absolute;
  right: 32px;
  bottom: 26px;
  left: 32px;
  color: #7e8b86;
  font-size: 9px;
  text-align: center;
}

@media (max-width: 900px) {
  .sign-in-page {
    grid-template-columns: 1fr;
  }

  .sign-in-brand {
    min-height: 42vh;
    padding: 30px;
  }

  .sign-in-brand h1 {
    max-width: 16em;
    font-size: clamp(32px, 8vw, 50px);
  }

  .sign-in-panel {
    min-height: 58vh;
    padding: 72px 24px 88px;
  }
}

.atlas-sign-in {
  --atlas-ink: #151515;
  --atlas-muted: #6c6d6b;
  --atlas-faint: #a5a7a2;
  --atlas-paper: #fbfaf7;
  --atlas-surface: #ffffff;
  --atlas-line: #e0e2dc;
  --atlas-blue: #1743b5;
  --atlas-lime: #e8ff00;
  --atlas-error: #9a332b;
  --atlas-ease-out: cubic-bezier(.23, 1, .32, 1);
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--atlas-ink);
  background:
    linear-gradient(90deg, rgb(21 21 21 / 2.4%) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(rgb(21 21 21 / 2.4%) 1px, transparent 1px) 0 0 / 60px 60px,
    var(--atlas-paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

.atlas-sign-in::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(72vw, 920px);
  height: min(72vw, 920px);
  top: 47%;
  left: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(232 255 0 / 7%), rgb(251 250 247 / 0%) 66%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.atlas-sign-in [hidden] {
  display: none !important;
}

.atlas-sign-in button,
.atlas-sign-in input,
.atlas-sign-in a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(23 67 181 / 12%);
}

.atlas-sign-in button:focus-visible,
.atlas-sign-in input:focus-visible,
.atlas-sign-in a:focus-visible {
  outline: 3px solid rgb(23 67 181 / 24%);
  outline-offset: 3px;
}

.atlas-sign-in ::selection {
  color: var(--atlas-paper);
  background: var(--atlas-blue);
}

.atlas-sign-in-header {
  position: relative;
  z-index: 2;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 36px;
}

.atlas-company-logo {
  width: 118px;
  height: auto;
  display: block;
}

.atlas-sign-in-header > span {
  width: 1px;
  height: 24px;
  background: #b8bab5;
}

.atlas-sign-in-header strong {
  color: #65665f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .01em;
}

.atlas-sign-in-main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100dvh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: clamp(92px, 12vh, 138px) 0 44px;
}

.atlas-sign-in-copy {
  text-align: center;
}

.atlas-sign-in-copy h1 {
  max-width: 960px;
  margin: 0;
  color: var(--atlas-ink);
  font-size: clamp(44px, 4.45vw, 64px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

.atlas-sign-in-copy p {
  max-width: 720px;
  margin: 50px auto 0;
  color: var(--atlas-muted);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.atlas-authentication {
  width: min(100%, 460px);
  display: grid;
  justify-items: center;
  margin-top: 34px;
}

.atlas-auth-mode-tabs {
  width: 256px;
  min-height: 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgb(255 255 255 / 90%);
  box-shadow:
    0 0 0 1px rgb(224 226 232),
    0 8px 24px rgb(37 43 32 / 6%);
}

.atlas-auth-mode-tabs button {
  min-width: 0;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #777974;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 140ms var(--atlas-ease-out),
    background-color 140ms var(--atlas-ease-out),
    transform 140ms var(--atlas-ease-out);
}

.atlas-auth-mode-tabs button[aria-selected="true"] {
  color: var(--atlas-surface);
  background: var(--atlas-ink);
}

.atlas-auth-mode-tabs button:active {
  transform: scale(.97);
}

.atlas-auth-error {
  width: 100%;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e2c3be;
  border-radius: 10px;
  color: var(--atlas-error);
  background: #fff6f4;
}

.atlas-auth-error strong {
  font-size: 13px;
  font-weight: 600;
}

.atlas-auth-error p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.atlas-auth-panel {
  width: 100%;
  margin-top: 16px;
}

.atlas-auth-panel > p {
  margin: 0 0 12px;
  color: var(--atlas-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.atlas-provider-form {
  display: flex;
  justify-content: center;
  margin: 0;
}

.atlas-primary-action {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  border: 1px solid var(--atlas-lime);
  border-radius: 999px;
  color: var(--atlas-ink);
  background: var(--atlas-lime);
  box-shadow:
    0 0 0 1px rgb(232 255 0 / 44%),
    0 20px 60px rgb(232 255 0 / 20%);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 150ms var(--atlas-ease-out),
    box-shadow 150ms var(--atlas-ease-out),
    background-color 150ms var(--atlas-ease-out);
}

.atlas-primary-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.atlas-primary-action:active {
  transform: scale(.97);
}

.atlas-primary-action strong {
  font-weight: 600;
}

.atlas-account-panel {
  padding: 18px;
  border-radius: 16px;
  background: rgb(255 255 255 / 94%);
  box-shadow:
    0 0 0 1px rgb(224 226 232),
    0 18px 52px rgb(37 43 32 / 8%);
}

.atlas-account-form {
  display: grid;
  gap: 12px;
}

.atlas-account-form label {
  display: grid;
  gap: 6px;
  color: #5f625d;
  font-size: 12px;
  font-weight: 500;
}

.atlas-account-form input:not([type="submit"]) {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #d8dad4;
  border-radius: 8px;
  color: var(--atlas-ink);
  background: #f8f8f4;
  font: inherit;
  font-size: 14px;
  transition:
    border-color 140ms var(--atlas-ease-out),
    box-shadow 140ms var(--atlas-ease-out),
    background-color 140ms var(--atlas-ease-out);
}

.atlas-account-form input:not([type="submit"])::placeholder {
  color: #a8aaa5;
}

.atlas-account-form input:not([type="submit"]):focus-visible {
  border-color: var(--atlas-blue);
  background: var(--atlas-surface);
  box-shadow: 0 0 0 3px rgb(23 67 181 / 10%);
  outline: none;
}

.atlas-account-submit {
  width: 100%;
  margin-top: 4px;
}

.atlas-auth-boundary {
  max-width: 420px;
  margin: 14px 0 0;
  color: #92948f;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.atlas-business-map {
  width: min(100%, 680px);
  margin-top: 58px;
  color: var(--atlas-muted);
}

.atlas-business-map-axis {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 10px;
  color: #969893;
  font-size: 11px;
}

.atlas-business-map-content {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
}

.atlas-profile-list {
  display: grid;
  gap: 7px;
}

.atlas-profile-list span,
.atlas-flow-list span {
  min-height: 24px;
  display: flex;
  align-items: center;
  color: var(--atlas-muted);
  font-size: 12px;
  white-space: nowrap;
}

.atlas-profile-list span {
  padding-left: 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 48%);
}

.atlas-flow-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 6px;
  padding-top: 1px;
}

.atlas-flow-list span {
  justify-content: center;
  border-bottom: 1px solid #e1e2de;
}

.atlas-flow-list::after {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  margin-top: 15px;
  background: linear-gradient(90deg, rgb(23 67 181 / 0%), rgb(23 67 181 / 24%), rgb(23 67 181 / 0%));
}

.atlas-trust-indicator {
  position: absolute;
  z-index: 3;
  right: max(28px, env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  color: #4f524d;
  background: rgb(255 255 255 / 92%);
  box-shadow:
    0 0 0 1px rgb(224 226 232),
    0 12px 34px rgb(37 43 32 / 7%);
  backdrop-filter: blur(14px);
}

.atlas-trust-indicator > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--atlas-lime);
  box-shadow: 0 0 0 4px rgb(232 255 0 / 17%);
}

.atlas-trust-indicator strong {
  font-size: 11px;
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .atlas-primary-action:hover {
    background: #efff3b;
    box-shadow:
      0 0 0 1px rgb(232 255 0 / 58%),
      0 24px 68px rgb(232 255 0 / 28%);
    transform: translateY(-1px);
  }

  .atlas-auth-mode-tabs button:not([aria-selected="true"]):hover {
    color: var(--atlas-ink);
    background: #f1f2ed;
  }

}

@media (max-width: 760px) {
  .atlas-sign-in {
    min-height: 100dvh;
    overflow-y: auto;
    background-size: 42px 42px;
  }

  .atlas-sign-in-header {
    height: 64px;
    padding: 0 20px;
  }

  .atlas-company-logo {
    width: 104px;
  }

  .atlas-sign-in-header strong {
    font-size: 18px;
  }

  .atlas-sign-in-main {
    width: min(100% - 32px, 560px);
    min-height: calc(100dvh - 64px);
    padding: 72px 0 130px;
  }

  .atlas-sign-in-copy h1 {
    font-size: clamp(36px, 10.5vw, 48px);
    line-height: 1.18;
  }

  .atlas-sign-in-copy p {
    margin-top: 28px;
    font-size: 14px;
    line-height: 1.75;
  }

  .atlas-authentication {
    margin-top: 28px;
  }

  .atlas-auth-mode-tabs {
    width: min(100%, 256px);
  }

  .atlas-auth-panel {
    margin-top: 14px;
  }

  .atlas-account-panel {
    padding: 16px;
  }

  .atlas-business-map {
    display: none;
  }

  .atlas-trust-indicator {
    position: absolute;
    right: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(50%);
  }
}

@media (max-width: 420px) {
  .atlas-sign-in-header {
    padding: 0 16px;
  }

  .atlas-company-logo {
    width: 96px;
  }

  .atlas-sign-in-main {
    width: min(100% - 24px, 560px);
    padding-top: 52px;
  }

  .atlas-sign-in-copy h1 {
    font-size: 35px;
  }

  .atlas-primary-action {
    min-height: 52px;
    padding: 0 22px;
    font-size: 15px;
  }
}

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

.atlas-reference-sign-in {
  --atlas-ref-blue: #002fa7;
  --atlas-ref-paper: #fbfaf7;
  --atlas-ref-ink: #151515;
  --atlas-ref-muted: #6a6a6a;
  --atlas-ref-fog: #eaeaea;
  --atlas-ref-lime: #e8ff00;
  --atlas-ref-ease: cubic-bezier(.23, 1, .32, 1);
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 620px;
  flex-direction: column;
  overflow: hidden;
  color: var(--atlas-ref-ink);
  background: var(--atlas-ref-paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.atlas-reference-sign-in [hidden] {
  display: none !important;
}

.atlas-reference-sign-in button,
.atlas-reference-sign-in input,
.atlas-reference-sign-in a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(0 47 167 / 10%);
}

.atlas-reference-sign-in button:focus-visible,
.atlas-reference-sign-in input:focus-visible,
.atlas-reference-sign-in a:focus-visible {
  outline: 3px solid rgb(0 47 167 / 22%);
  outline-offset: 3px;
}

.atlas-reference-sign-in ::selection {
  color: var(--atlas-ref-paper);
  background: var(--atlas-ref-blue);
}

.atlas-reference-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.atlas-reference-glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 800px;
  height: 600px;
  border-radius: 999px;
  background: rgb(0 47 167 / 5%);
  filter: blur(100px);
  transform: translateX(-50%);
}

.atlas-reference-grid {
  position: absolute;
  inset: 0;
  opacity: .6;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDQ3LDE2NywwLjAzKSIgc3Ryb2tlLXdpZHRoPSIxIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=");
}

.atlas-reference-chart-field {
  position: absolute;
  bottom: -3.5vh;
  left: 0;
  width: 100%;
  height: min(58vh, 438px);
  opacity: .6;
  mask-image: linear-gradient(to bottom, transparent, black 40%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%);
}

.atlas-reference-chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.atlas-reference-chart-area,
.atlas-reference-chart-line {
  vector-effect: non-scaling-stroke;
}

.atlas-reference-chart-intro .atlas-reference-chart-area {
  opacity: 0;
  animation: atlasReferenceAreaReveal 900ms var(--atlas-ref-ease) 280ms forwards;
}

.atlas-reference-chart-intro .atlas-reference-chart-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: atlasReferenceLineReveal 1200ms cubic-bezier(.77, 0, .175, 1) forwards;
}

.atlas-reference-header {
  position: relative;
  z-index: 30;
  display: flex;
  width: 100%;
  max-width: 1440px;
  min-height: 4rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
  align-items: center;
  justify-content: space-between;
}

.atlas-reference-brand {
  display: flex;
  align-items: center;
  gap: .875rem;
}

.atlas-reference-brand-mark {
  display: block;
  width: auto;
  height: 2.25rem;
  flex: 0 0 auto;
}

.atlas-reference-brand-text {
  display: flex;
  min-height: 2.25rem;
  align-items: center;
  gap: .875rem;
}

.atlas-reference-brand-company {
  position: relative;
  display: inline-flex;
  min-height: 1.125rem;
  align-items: center;
  color: var(--atlas-ref-ink);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.atlas-reference-brand-company::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -.5rem;
  width: 1px;
  height: .95rem;
  background: var(--atlas-ref-fog);
  transform: translateY(-50%);
}

.atlas-reference-brand-wordmark {
  display: inline-flex;
  min-height: 1.125rem;
  align-items: center;
  color: var(--atlas-ref-muted);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  transform: translateY(.03em);
}

.atlas-reference-main {
  position: relative;
  z-index: 20;
  display: flex;
  width: 100%;
  min-height: 100vh;
  max-width: 1000px;
  flex: 1;
  margin: 0 auto;
  padding: 1rem 1rem 1.5rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.atlas-reference-content {
  display: flex;
  width: 100%;
  max-width: 46rem;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  transform: translateY(clamp(-1rem, -.4vh, -.35rem));
}

.atlas-reference-title {
  margin: 0 0 1.85rem;
  color: var(--atlas-ref-ink);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateY(-1.85rem);
}

.atlas-reference-subtitle {
  max-width: 46rem;
  margin: 0 0 2.8rem;
  color: var(--atlas-ref-muted);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 2;
  text-wrap: pretty;
}

.atlas-reference-auth-shell {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 46rem;
  margin-bottom: 4.8rem;
  flex-direction: column;
  align-items: center;
  gap: 1.125rem;
}

.atlas-reference-provider-wrap {
  position: relative;
  width: fit-content;
}

.atlas-reference-account-entry {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: inline-flex;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--atlas-ref-ink);
  font: inherit;
  cursor: pointer;
  transition:
    color 140ms var(--atlas-ref-ease),
    background-color 140ms var(--atlas-ref-ease),
    transform 140ms var(--atlas-ref-ease);
}

.atlas-reference-account-entry svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.atlas-reference-account-entry-tooltip,
.atlas-reference-feishu-tooltip {
  position: absolute;
  width: max-content;
  max-width: 11rem;
  padding: .45rem .6rem;
  border-radius: 6px;
  color: var(--atlas-ref-paper);
  background: var(--atlas-ref-ink);
  box-shadow: 0 8px 24px rgb(21 21 21 / 14%);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 140ms var(--atlas-ref-ease),
    transform 140ms var(--atlas-ref-ease);
}

.atlas-reference-account-entry-tooltip {
  top: 50%;
  left: calc(100% + .65rem);
  transform: translate(-3px, -50%);
}

.atlas-reference-account-entry-tooltip::before,
.atlas-reference-feishu-tooltip::before {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  content: "";
}

.atlas-reference-account-entry-tooltip::before {
  top: 50%;
  left: -6px;
  border-width: 5px 6px 5px 0;
  border-color: transparent var(--atlas-ref-ink) transparent transparent;
  transform: translateY(-50%);
}

.atlas-reference-account-entry:active {
  transform: scale(.97);
}

.atlas-reference-account-entry:focus-visible .atlas-reference-account-entry-tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

.atlas-reference-provider-form {
  display: flex;
  justify-content: center;
  margin: 0;
}

.atlas-reference-cta {
  display: inline-flex;
  min-height: 48px;
  padding: .75rem 2.75rem .75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--atlas-ref-ink);
  background: var(--atlas-ref-lime);
  box-shadow: 0 20px 60px rgb(232 255 0 / 20%);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms var(--atlas-ref-ease),
    box-shadow 160ms var(--atlas-ref-ease),
    background-color 160ms var(--atlas-ref-ease);
}

.atlas-reference-cta svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.atlas-reference-feishu-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.atlas-reference-feishu-tooltip {
  bottom: calc(100% + .75rem);
  left: 50%;
  transform: translate(-50%, 3px);
}

.atlas-reference-feishu-tooltip::before {
  top: 100%;
  left: 50%;
  border-width: 6px 5px 0;
  border-color: var(--atlas-ref-ink) transparent transparent;
  transform: translateX(-50%);
}

.atlas-reference-cta:focus-visible .atlas-reference-feishu-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.atlas-reference-cta:active {
  transform: scale(.97);
}

.atlas-reference-account-dialog {
  width: min(calc(100% - 2rem), 460px);
  max-width: none;
  max-height: min(720px, calc(100dvh - 2rem));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--atlas-ref-ink);
  background: #fff;
  box-shadow:
    rgb(224 226 232) 0 0 0 1px,
    rgb(21 21 21 / 6%) 0 10px 22px,
    rgb(21 21 21 / 8%) 0 24px 68px;
  overflow: hidden;
  overscroll-behavior: contain;
}

.atlas-reference-account-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: atlasReferenceDialogEnter 180ms var(--atlas-ref-ease);
}

.atlas-reference-account-dialog.is-keyboard-open {
  animation: none;
}

.atlas-reference-account-dialog::backdrop {
  background: rgb(21 21 21 / 24%);
}

.atlas-reference-account-dialog-header {
  display: flex;
  padding: 1.25rem 1.25rem 1rem;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: inset 0 -1px rgb(224 226 232 / 80%);
}

.atlas-reference-account-dialog-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  text-wrap: balance;
}

.atlas-reference-account-dialog-header p {
  max-width: 34em;
  margin: .375rem 0 0;
  color: var(--atlas-ref-muted);
  font-size: .875rem;
  line-height: 1.65;
  text-align: left;
  text-wrap: pretty;
}

.atlas-reference-account-dialog-close {
  width: 36px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--atlas-ref-muted);
  background: #f4f4f0;
  cursor: pointer;
  transition:
    color 140ms var(--atlas-ref-ease),
    background-color 140ms var(--atlas-ref-ease),
    transform 140ms var(--atlas-ref-ease);
}

.atlas-reference-account-dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.75;
}

.atlas-reference-account-dialog-close:active {
  transform: scale(.96);
}

.atlas-reference-account-dialog-body {
  min-height: 0;
  padding: 1.125rem 1.25rem 1.25rem;
  overflow-y: auto;
}

.atlas-reference-account-dialog-body .atlas-reference-message {
  width: 100%;
  margin-bottom: .875rem;
}

.atlas-reference-account-form {
  display: grid;
  gap: 12px;
}

.atlas-reference-account-form label {
  display: grid;
  gap: 6px;
  color: #5f625d;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.atlas-reference-account-form input:not([type="submit"]) {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #d8dad4;
  border-radius: 8px;
  color: var(--atlas-ref-ink);
  background: #f8f8f4;
  font: inherit;
  font-size: 14px;
  transition:
    border-color 140ms var(--atlas-ref-ease),
    box-shadow 140ms var(--atlas-ref-ease),
    background-color 140ms var(--atlas-ref-ease);
}

.atlas-reference-account-form input:not([type="submit"])::placeholder {
  color: #a8aaa5;
}

.atlas-reference-account-form input:not([type="submit"]):focus-visible {
  border-color: var(--atlas-ref-blue);
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgb(0 47 167 / 10%);
}

.atlas-reference-account-submit {
  width: 100%;
  margin-top: 4px;
}

.atlas-reference-message {
  width: min(100%, 46rem);
  padding: .75rem 1rem;
  border-radius: 18px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 10px 22px rgb(21 21 21 / 6%);
  text-align: left;
}

.atlas-reference-message strong {
  display: block;
  color: var(--atlas-ref-ink);
  font-size: .875rem;
  font-weight: 600;
}

.atlas-reference-message p {
  margin: .25rem 0 0;
  color: var(--atlas-ref-muted);
  font-size: .875rem;
  line-height: 1.5rem;
}

.atlas-reference-message-error {
  border: 1px solid #fecaca;
  background: rgb(254 242 242 / 90%);
}

.atlas-reference-controls {
  display: flex;
  width: 100%;
  max-width: 46rem;
  padding: 0 .375rem;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.atlas-reference-control-group {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.atlas-reference-platform-group {
  flex: 1;
}

.atlas-reference-control-label {
  margin-bottom: .25rem;
  color: rgb(106 106 106 / 46%);
  font-family: "Avenir Next", "Manrope", sans-serif;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.atlas-reference-dimension-list,
.atlas-reference-platform-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.atlas-reference-pill {
  display: inline-flex;
  padding: .375rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  color: rgb(106 106 106 / 58%);
  background: transparent;
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
  pointer-events: none;
  user-select: none;
  transition:
    color 820ms cubic-bezier(.77, 0, .175, 1),
    background-color 820ms cubic-bezier(.77, 0, .175, 1),
    border-color 820ms cubic-bezier(.77, 0, .175, 1),
    box-shadow 820ms cubic-bezier(.77, 0, .175, 1);
}

.atlas-reference-platform-pill {
  padding-right: .75rem;
  padding-left: .75rem;
}

.atlas-reference-pill.is-active {
  border-color: var(--atlas-ref-blue);
  color: #fff;
  background: var(--atlas-ref-blue);
}

.atlas-reference-divider {
  width: 100%;
  height: 1px;
  margin: .5rem 0;
  background: linear-gradient(to right, transparent, var(--atlas-ref-fog), transparent);
}

.atlas-reference-health {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.atlas-reference-health-card {
  display: flex;
  padding: .5rem .75rem;
  border: 1px solid var(--atlas-ref-fog);
  border-radius: 999px;
  align-items: center;
  gap: .625rem;
  background: #fff;
  box-shadow: 0 10px 22px rgb(21 21 21 / 6%);
}

.atlas-reference-health-dot-wrap {
  position: relative;
  display: flex;
  width: .5rem;
  height: .5rem;
}

.atlas-reference-health-dot-pulse,
.atlas-reference-health-dot {
  border-radius: 999px;
  background: #39ff14;
}

.atlas-reference-health-dot-pulse {
  position: absolute;
  display: inline-flex;
  width: 100%;
  height: 100%;
  opacity: .75;
  animation: atlasReferencePing 1s cubic-bezier(0, 0, .2, 1) infinite;
}

.atlas-reference-health-dot {
  position: relative;
  display: inline-flex;
  width: .5rem;
  height: .5rem;
}

.atlas-reference-health-text {
  color: var(--atlas-ref-ink);
  font-size: .75rem;
  font-weight: 500;
}

@keyframes atlasReferencePing {
  75%,
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

@keyframes atlasReferenceDialogEnter {
  from {
    opacity: 0;
    transform: scale(.96) translateY(6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes atlasReferenceLineReveal {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes atlasReferenceAreaReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .atlas-reference-cta:hover {
    background: #efff3b;
    box-shadow: 0 24px 68px rgb(232 255 0 / 28%);
    transform: translateY(-1px);
  }

  .atlas-reference-account-entry:hover {
    color: #fff;
    background: var(--atlas-ref-blue);
  }

  .atlas-reference-account-entry:hover .atlas-reference-account-entry-tooltip {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .atlas-reference-feishu-icon:hover .atlas-reference-feishu-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .atlas-reference-account-dialog-close:hover {
    color: var(--atlas-ref-ink);
    background: #ecece7;
  }

}

@media (min-width: 640px) {
  .atlas-reference-header {
    min-height: 5rem;
    padding-top: 1.5rem;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .atlas-reference-main {
    padding: 1.25rem 1.5rem 2rem;
  }

  .atlas-reference-title {
    margin-bottom: 2.1rem;
    font-size: 2.25rem;
    transform: translateY(-2.1rem);
  }

  .atlas-reference-subtitle {
    margin-bottom: 3.1rem;
    font-size: 1.0625rem;
    line-height: 2.05;
  }

  .atlas-reference-auth-shell {
    margin-bottom: 5rem;
  }

  .atlas-reference-cta {
    min-height: 56px;
    padding: 1rem 3.25rem 1rem 2rem;
    font-size: 1rem;
  }

  .atlas-reference-controls {
    width: fit-content;
    max-width: min(46rem, 100%);
    margin: 0 auto;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 2.25rem;
  }

  .atlas-reference-control-group {
    width: auto;
    align-items: flex-end;
  }

  .atlas-reference-platform-group {
    min-width: 0;
    flex: 0 0 auto;
    align-items: flex-start;
  }

  .atlas-reference-control-label {
    padding-right: 1.25rem;
  }

  .atlas-reference-platform-group .atlas-reference-control-label {
    padding-right: 0;
    padding-left: 1rem;
  }

  .atlas-reference-dimension-list {
    flex-direction: column;
  }

  .atlas-reference-platform-list {
    width: auto;
    max-width: 29.5rem;
    justify-content: flex-start;
  }

  .atlas-reference-pill {
    padding: .5rem 1.25rem;
    font-size: .875rem;
  }

  .atlas-reference-platform-pill {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .atlas-reference-divider {
    width: 1px;
    height: auto;
    margin: 0;
    background: linear-gradient(to bottom, transparent, var(--atlas-ref-fog), transparent);
  }

  .atlas-reference-health {
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .atlas-reference-health-card {
    padding: .75rem 1rem;
  }
}

@media (min-width: 768px) {
  .atlas-reference-title {
    font-size: 3.125rem;
  }

  .atlas-reference-subtitle {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .atlas-reference-header {
    padding-top: 1.75rem;
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .atlas-reference-main {
    padding-top: 1.5rem;
  }

  .atlas-reference-title {
    font-size: 4rem;
  }

  .atlas-reference-health {
    right: 2rem;
    bottom: 2rem;
  }
}

@media (max-height: 920px) {
  .atlas-reference-chart-field {
    bottom: -2vh;
    height: min(50vh, 352px);
  }

  .atlas-reference-header {
    min-height: 3.5rem;
    padding-top: 1rem;
  }

  .atlas-reference-main {
    padding-top: .875rem;
  }

  .atlas-reference-title {
    margin-bottom: 1rem;
    font-size: clamp(2.35rem, 5vw, 3.2rem);
    white-space: normal;
    transform: translateY(-.9rem);
  }

  .atlas-reference-subtitle {
    margin-bottom: 1.85rem;
    font-size: .9375rem;
    line-height: 1.8;
  }

  .atlas-reference-auth-shell {
    margin-bottom: 3rem;
    gap: .875rem;
  }

  .atlas-reference-controls {
    gap: 1rem;
  }

  .atlas-reference-pill {
    padding-top: .3rem;
    padding-bottom: .3rem;
  }

  .atlas-reference-health {
    right: 1rem;
    bottom: .875rem;
  }
}

@media (max-width: 639px) {
  .atlas-reference-sign-in {
    min-height: 100dvh;
    height: auto;
    overflow-y: auto;
  }

  .atlas-reference-main {
    min-height: calc(100dvh - 4rem);
    overflow: visible;
  }

  .atlas-reference-content {
    padding-bottom: 7rem;
  }

  .atlas-reference-auth-shell {
    margin-top: 1rem;
  }

  .atlas-reference-title {
    max-width: 360px;
    white-space: normal;
  }

  .atlas-reference-auth-shell {
    width: min(100%, 460px);
  }

  .atlas-reference-account-entry-tooltip {
    top: auto;
    right: 0;
    bottom: calc(100% + .55rem);
    left: auto;
    transform: translateY(3px);
  }

  .atlas-reference-account-entry-tooltip::before {
    top: 100%;
    right: 12px;
    left: auto;
    border-width: 6px 5px 0;
    border-color: var(--atlas-ref-ink) transparent transparent;
    transform: none;
  }

  .atlas-reference-account-entry:focus-visible .atlas-reference-account-entry-tooltip {
    transform: translateY(0);
  }

  .atlas-reference-account-entry:hover .atlas-reference-account-entry-tooltip {
    transform: translateY(0);
  }

  .atlas-reference-account-dialog {
    width: min(calc(100% - 1.5rem), 460px);
    max-height: calc(100dvh - 1.5rem);
  }

  .atlas-reference-account-dialog-header {
    padding: 1rem 1rem .875rem;
  }

  .atlas-reference-account-dialog-body {
    padding: 1rem;
  }

  .atlas-reference-controls {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .atlas-reference-health {
    right: 50%;
    transform: translateX(50%);
  }
}

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

  .atlas-reference-health-dot-pulse {
    display: none;
  }

  .atlas-reference-account-dialog[open] {
    animation: none;
  }
}

.scenario-shell {
  --ink: #17211f;
  --muted: #64716d;
  --line: #d5ddd9;
  --line-strong: #aebbb5;
  --surface: #ffffff;
  --surface-soft: #edf2ef;
  --canvas: #f3f6f3;
  --nav: #123d3a;
  --nav-soft: #1b4d49;
  --accent: #0f766e;
  --accent-dark: #095d57;
  --accent-soft: #e3f2ee;
  --success: #156d57;
  --success-soft: #e7f5ee;
  --warning: #a95d0b;
  --warning-soft: #fff4df;
  --danger: #a94038;
  --danger-soft: #fff0ee;
  --shadow: 0 14px 34px rgb(27 55 50 / 7%);
  grid-template-columns: 256px minmax(0, 1fr);
  color: var(--ink);
  background: var(--canvas);
  font-family: "Avenir Next", "Segoe UI Variable", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.scenario-shell button,
.scenario-shell a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(15 118 110 / 14%);
}

.scenario-shell button:focus-visible,
.scenario-shell input:focus-visible,
.scenario-shell select:focus-visible,
.scenario-shell textarea:focus-visible,
.scenario-shell a:focus-visible {
  outline: 3px solid rgb(232 135 45 / 42%);
  outline-offset: 2px;
}

.scenario-shell .sidebar {
  position: sticky;
  isolation: isolate;
  color: #dce8e4;
  background: var(--nav);
}

.scenario-shell .sidebar::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgb(255 255 255 / 8%), transparent 28%),
    linear-gradient(180deg, transparent 0 72%, rgb(5 39 36 / 34%));
  content: "";
  pointer-events: none;
}

.scenario-shell .sidebar::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: -4px;
  width: 4px;
  height: 100%;
  background: repeating-linear-gradient(
    135deg,
    #e8872d 0 7px,
    #f5c16e 7px 14px
  );
  content: "";
  pointer-events: none;
}

.scenario-shell .brand {
  height: 74px;
  gap: 12px;
  padding: 0 22px;
  border-bottom-color: rgb(255 255 255 / 12%);
}

.scenario-shell .brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 5px;
  color: var(--nav);
  background: #dbe9e4;
  box-shadow: none;
  font-family: Georgia, "Times New Roman", serif;
}

.scenario-shell .brand strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  letter-spacing: .13em;
}

.scenario-shell .brand small {
  color: #94ada7;
  font-size: 8px;
  letter-spacing: .14em;
}

.scenario-shell .sidebar nav {
  padding: 26px 14px;
}

.scenario-shell .nav-label {
  margin: 0 10px 9px;
  color: #86a29b;
  font-size: 9px;
  letter-spacing: .16em;
}

.scenario-shell .nav-label.customer-label {
  margin-top: 30px;
  color: #b5cac4;
}

.scenario-shell .nav-link {
  position: relative;
  min-height: 44px;
  margin: 3px 0;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #abc0ba;
  font-size: 13px;
  font-weight: 650;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.scenario-shell .nav-link:hover {
  border-color: rgb(255 255 255 / 9%);
  color: #fff;
  background: rgb(255 255 255 / 7%);
}

.scenario-shell .nav-link.active {
  border-color: #dce8e4;
  color: var(--nav);
  background: #e6efeb;
  box-shadow: none;
}

.scenario-shell .nav-link.active::after {
  position: absolute;
  right: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8872d;
  box-shadow: 0 0 0 3px rgb(232 135 45 / 18%);
  content: "";
}

.scenario-shell .nav-link.active b {
  margin-right: 14px;
}

.scenario-shell .nav-link b {
  border-radius: 3px;
  color: #d9ece6;
  background: rgb(5 39 36 / 42%);
  font-family: var(--mono);
}

.scenario-shell .nav-link.active b {
  color: #fff;
  background: var(--accent);
}

.scenario-shell .nav-link:active {
  transform: translateY(1px);
}

.scenario-shell .nav-link.disabled {
  opacity: .46;
  cursor: not-allowed;
}

.scenario-shell .customer-navigation-disabled > p {
  margin: 10px 10px 0;
}

.scenario-shell .customer-nav-prompt {
  color: #f2c180;
  font-size: 10px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.scenario-shell .customer-nav-prompt:hover {
  color: #fff0d7;
}

.scenario-shell .sidebar-footer {
  min-height: 78px;
  padding: 16px 20px;
  border-top-color: rgb(255 255 255 / 12%);
  background: rgb(5 39 36 / 22%);
}

.scenario-shell .actor-avatar {
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 5px;
  color: var(--nav);
  background: #c6d8d2;
}

.scenario-shell .sidebar-footer strong {
  font-size: 12px;
}

.scenario-shell .sidebar-footer small {
  color: #91aaa4;
  font-size: 10px;
}

.scenario-shell .workspace {
  background:
    linear-gradient(90deg, rgb(15 118 110 / 3%) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--canvas);
}

.scenario-shell .topbar {
  min-height: 66px;
  padding: 9px 32px;
  border-bottom-color: var(--line);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 1px 0 rgb(27 55 50 / 4%);
  backdrop-filter: blur(14px);
}

.scenario-shell .breadcrumbs {
  font-size: 12px;
}

.scenario-shell .breadcrumbs span {
  color: #77847f;
}

.scenario-shell .breadcrumbs b {
  color: #b4beb9;
  font-family: var(--mono);
}

.scenario-shell .breadcrumbs strong {
  color: #263330;
}

.scenario-shell .context-switchers label,
.scenario-shell .inline-select {
  min-height: 40px;
  border-color: var(--line-strong);
  border-radius: 4px;
  background: #fff;
}

.scenario-shell .context-switchers label:focus-within,
.scenario-shell .inline-select:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(15 118 110 / 10%);
}

.scenario-shell .context-switchers label > span,
.scenario-shell .inline-select > span {
  color: #74817d;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .05em;
}

.scenario-shell .context-switchers select,
.scenario-shell .inline-select select {
  border-radius: 2px;
  color: var(--ink);
  background-color: var(--surface-soft);
  font-size: 11px;
}

.scenario-shell .scenario-banner {
  position: relative;
  min-height: 56px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 9px 32px 9px 38px;
  border-bottom: 1px solid #e9c993;
  color: #643c12;
  background: #fff8e9;
  overflow: hidden;
}

.scenario-shell .scenario-banner::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: repeating-linear-gradient(
    135deg,
    #c96f1d 0 7px,
    #f4bc64 7px 14px
  );
  content: "";
}

.scenario-shell .scenario-banner-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #ddb26a;
  border-radius: 4px;
  color: #6c4218;
  background: #ffedc7;
}

.scenario-shell .scenario-banner-mark svg {
  width: 16px;
  height: 16px;
}

.scenario-shell .scenario-banner > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.scenario-shell .scenario-banner strong {
  color: #52300e;
  font-size: 11px;
  letter-spacing: .015em;
}

.scenario-shell .scenario-banner p {
  overflow: hidden;
  color: #83613b;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-shell .scenario-banner .scenario-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scenario-shell .scenario-controls label {
  display: grid;
  grid-template-columns: auto minmax(82px, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 3px 4px 3px 8px;
  border: 1px solid #e0bf86;
  border-radius: 3px;
  background: rgb(255 255 255 / 58%);
}

.scenario-shell .scenario-controls label > span {
  color: #85643d;
  font-family: var(--mono);
  font-size: 8px;
}

.scenario-shell .scenario-controls select {
  min-width: 82px;
  height: 24px;
  border: 0;
  border-radius: 2px;
  outline: 0;
  color: #583513;
  background: #ffedc7;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.scenario-shell .scenario-banner-guard {
  position: relative;
  align-self: center;
  padding-left: 15px;
  color: #714715;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

.scenario-shell .scenario-banner-guard::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d87920;
  box-shadow: 0 0 0 4px rgb(216 121 32 / 14%);
  content: "";
  transform: translateY(-50%);
}

.scenario-shell .customer-tabbar {
  min-height: 58px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow-x: auto;
}

.scenario-shell .customer-tabbar > div {
  min-width: 170px;
  display: grid;
  align-content: center;
  gap: 2px;
  margin-right: 16px;
}

.scenario-shell .customer-tabbar > div span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
}

.scenario-shell .customer-tabbar > div strong {
  font-size: 11px;
}

.scenario-shell .customer-tabbar > a,
.scenario-shell .customer-tabbar > span {
  min-width: max-content;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.scenario-shell .customer-tabbar > a:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.scenario-shell .customer-tabbar > a.active {
  border-bottom-color: #e8872d;
  color: var(--ink);
}

.scenario-shell .customer-tabbar > span {
  opacity: .42;
}

.scenario-shell .customer-tabbar > a.choose-customer {
  margin: 10px 0 10px auto;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent-dark);
}

.scenario-shell .page-toolbar {
  min-height: 58px;
  padding: 8px 32px;
  border-bottom-color: var(--line);
  background: rgb(255 255 255 / 92%);
}

.scenario-shell .search-control {
  height: 38px;
  border-color: var(--line-strong);
  border-radius: 4px;
  color: #73817c;
  background: #fff;
}

.scenario-shell .search-control input {
  font-size: 11px;
}

.scenario-shell .search-control input::placeholder {
  color: #93a09b;
}

.scenario-shell .primary-button,
.scenario-shell .secondary-button,
.scenario-shell .danger-button {
  min-height: 38px;
  border-radius: 4px;
  font-size: 11px;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.scenario-shell .primary-button {
  border: 1px solid #0b645e;
  background: var(--accent);
  box-shadow: 0 3px 0 #084c48;
}

.scenario-shell .primary-button:hover {
  background: var(--accent-dark);
}

.scenario-shell .secondary-button:hover {
  border-color: #82928b;
  background: var(--surface-soft);
}

.scenario-shell .primary-button:active,
.scenario-shell .secondary-button:active,
.scenario-shell .text-button:active,
.scenario-shell .icon-button:active {
  transform: translateY(1px);
}

.scenario-shell .text-button,
.scenario-shell .row-link {
  border-radius: 3px;
  color: var(--accent-dark);
  font-size: 10px;
}

.scenario-shell .text-button:hover {
  background: var(--accent-soft);
}

.scenario-shell .page-stack {
  width: 100%;
  max-width: 1480px;
  gap: 18px;
  margin: 0 auto;
  padding: 30px 34px 54px;
}

.scenario-shell .page-heading {
  min-height: 112px;
  align-items: flex-end;
  padding: 4px 0 22px;
  border-bottom: 2px solid var(--ink);
}

.scenario-shell .page-heading p,
.scenario-shell .record-detail header p,
.scenario-shell .context-card header p {
  margin-bottom: 9px;
  color: var(--accent-dark);
  font-size: 9px;
  letter-spacing: .15em;
}

.scenario-shell .page-heading h1 {
  max-width: 16em;
  margin-bottom: 9px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.scenario-shell .page-heading > div > span,
.scenario-shell .page-heading > span {
  max-width: 68ch;
  color: #65736e;
  font-size: 11px;
  line-height: 1.65;
  text-wrap: pretty;
}

.scenario-shell .as-of {
  position: relative;
  min-width: 205px;
  padding: 13px 15px 13px 38px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
}

.scenario-shell .as-of::before {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  content: "";
}

.scenario-shell .as-of span {
  color: #73807b;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scenario-shell .as-of strong {
  font-family: var(--mono);
  font-size: 11px;
}

.scenario-shell .metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.scenario-shell .metric-grid article {
  min-height: 116px;
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scenario-shell .metric-grid article:last-child {
  border-right: 0;
  background: #fff8e9;
}

.scenario-shell .metric-grid article::after {
  top: auto;
  bottom: 0;
  left: 20px;
  width: 28px;
  height: 3px;
  background: var(--accent);
}

.scenario-shell .metric-grid article:last-child::after {
  background: #d87920;
}

.scenario-shell .metric-grid span,
.scenario-shell .metric-grid small {
  color: #6a7772;
  font-size: 10px;
}

.scenario-shell .metric-grid span {
  font-family: var(--mono);
  letter-spacing: .05em;
}

.scenario-shell .metric-grid strong {
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 36px;
  font-weight: 760;
  letter-spacing: -.04em;
}

.scenario-shell .metric-grid article:last-child strong {
  color: #a65b16;
}

.scenario-shell .overview-grid,
.scenario-shell .profile-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .72fr);
  gap: 16px;
}

.scenario-shell .panel,
.scenario-shell .context-card,
.scenario-shell .channel-card,
.scenario-shell .master-detail,
.scenario-shell .empty-state {
  border-color: var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.scenario-shell .panel-heading {
  min-height: 70px;
  padding: 17px 20px;
  border-bottom-color: var(--line);
  background: #fbfcfb;
}

.scenario-shell .panel-heading h2 {
  margin-bottom: 5px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.scenario-shell .panel-heading p {
  color: #78847f;
  font-size: 10px;
}

.scenario-shell .channel-health > article {
  grid-template-columns: 38px minmax(150px, 1fr) auto minmax(220px, .85fr);
  min-height: 78px;
  padding: 15px 20px;
  border-top-color: var(--line);
  transition: background-color 140ms ease;
}

.scenario-shell .channel-health > article:hover,
.scenario-shell .attention-list > article:hover {
  background: #f5f9f7;
}

.scenario-shell .record-mark {
  width: 38px;
  height: 38px;
  border-color: #9fc1b8;
  border-radius: 4px;
  color: #0b615a;
  background: var(--accent-soft);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 14px;
}

.scenario-shell .channel-health article > div:nth-child(2) > strong,
.scenario-shell .customer-strip strong,
.scenario-shell .record-cell strong {
  font-size: 12px;
}

.scenario-shell .channel-health small,
.scenario-shell .record-cell small,
.scenario-shell .records-table td > small,
.scenario-shell .customer-strip small,
.scenario-shell .master-list small,
.scenario-shell .competitor-list small,
.scenario-shell .reference-list small,
.scenario-shell .question-list small {
  font-size: 10px;
}

.scenario-shell dt {
  color: #7b8782;
  font-family: var(--mono);
  font-size: 9px;
}

.scenario-shell dd {
  font-family: var(--mono);
  font-size: 12px;
}

.scenario-shell .status {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
}

.scenario-shell .attention-list {
  border-top: 3px solid #d87920;
}

.scenario-shell .attention-list > article {
  min-height: 78px;
  padding: 17px 20px;
}

.scenario-shell .attention-list strong {
  font-size: 11px;
}

.scenario-shell .attention-list p {
  font-size: 10px;
}

.scenario-shell .customer-strip a {
  min-height: 74px;
  padding: 16px 18px;
  border-right-color: var(--line);
  transition: background-color 140ms ease;
}

.scenario-shell .customer-strip a:hover {
  background: #f3f8f6;
}

.scenario-shell .customer-strip b {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 11px;
}

.scenario-shell .records-table th {
  height: 44px;
  color: #6e7c77;
  background: #edf2ef;
  font-size: 9px;
}

.scenario-shell .records-table td {
  height: 76px;
  border-top-color: var(--line);
  font-size: 11px;
}

.scenario-shell .records-table tbody tr:hover td {
  background: #f3f8f6;
}

.scenario-shell .form-grid label > span,
.scenario-shell .drawer-fields label > span,
.scenario-shell .domain-form-grid label,
.scenario-shell .version-editor > label,
.scenario-shell .collection-row label,
.scenario-shell .compare-selects label {
  color: #53615c;
  font-size: 10px;
}

.scenario-shell .form-grid input,
.scenario-shell .drawer-fields input,
.scenario-shell .drawer-fields textarea,
.scenario-shell .drawer-fields select,
.scenario-shell .domain-form-grid input,
.scenario-shell .domain-form-grid select,
.scenario-shell .domain-form-grid textarea,
.scenario-shell .version-editor input,
.scenario-shell .version-editor textarea,
.scenario-shell .collection-row input,
.scenario-shell .collection-row select,
.scenario-shell .compare-selects select {
  min-height: 42px;
  border-color: var(--line-strong);
  border-radius: 4px;
  background-color: #fff;
  font-size: 11px;
}

.scenario-shell .filter-chips button,
.scenario-shell .danger-button,
.scenario-shell .form-warning,
.scenario-shell .reference-warning,
.scenario-shell .destructive-zone,
.scenario-shell .compare-grid blockquote,
.scenario-shell .question-definition blockquote {
  border-radius: 4px;
}

.scenario-shell .filter-chips button:hover {
  border-color: #8ca099;
  color: var(--ink);
}

.scenario-shell .filter-chips button.active {
  border-color: var(--accent);
  background: var(--accent);
}

.scenario-shell .master-detail {
  background: #eef3f0;
}

.scenario-shell .master-list > button.active,
.scenario-shell .version-timeline > button.active {
  border-left-color: #e8872d;
  background: var(--accent-soft);
}

.scenario-shell .drawer,
.scenario-shell .confirmation-dialog {
  border-radius: 5px 0 0 5px;
}

.scenario-shell .toast {
  border-radius: 4px;
}

.scenario-shell .toast strong {
  font-size: 11px;
}

.scenario-shell .toast span {
  font-size: 10px;
}

.scenario-shell .prototype-switcher {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 22px;
  display: grid;
  grid-template-columns: 36px minmax(132px, auto) 36px;
  align-items: center;
  border: 1px solid #f2c180;
  border-radius: 5px;
  color: #fff7e9;
  background: #17211f;
  box-shadow: 0 12px 28px rgb(18 61 58 / 24%);
  overflow: hidden;
}

.scenario-shell .prototype-switcher a {
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
}

.scenario-shell .prototype-switcher a:hover {
  background: #29433f;
}

.scenario-shell .prototype-switcher > span {
  min-height: 42px;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 4px 12px;
  border-right: 1px solid rgb(255 255 255 / 14%);
  border-left: 1px solid rgb(255 255 255 / 14%);
  text-align: center;
}

.scenario-shell .prototype-switcher small {
  color: #b7c8c3;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.scenario-shell .prototype-switcher strong {
  font-size: 10px;
}

.scenario-shell .mvp-boundary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.scenario-shell .mvp-boundary article {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.scenario-shell .mvp-boundary article:last-child {
  border-right: 0;
}

.scenario-shell .mvp-boundary article.deferred {
  background: #fff8e9;
}

.scenario-shell .mvp-boundary span {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}

.scenario-shell .mvp-boundary .deferred span {
  color: #a65b16;
}

.scenario-shell .mvp-boundary strong {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 17px;
}

.scenario-shell .mvp-boundary p,
.scenario-shell .integration-body p,
.scenario-shell .integration-preview p,
.scenario-shell .identity-lockup p,
.scenario-shell .decision-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.scenario-shell .access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 16px;
}

.scenario-shell .integration-body {
  min-height: 92px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.scenario-shell .integration-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #3370ff;
  font-size: 18px;
  font-weight: 850;
}

.scenario-shell .integration-body > div {
  display: grid;
  gap: 4px;
}

.scenario-shell .integration-body strong {
  font-size: 13px;
}

.scenario-shell .integration-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scenario-shell .integration-facts > div {
  padding: 14px 12px;
  border-right: 1px solid var(--line);
}

.scenario-shell .integration-facts > div:first-child {
  padding-left: 0;
}

.scenario-shell .integration-facts > div:last-child {
  border-right: 0;
}

.scenario-shell .integration-facts dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-shell .integration-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 20px;
}

.scenario-shell .integration-preview > div {
  display: grid;
  gap: 4px;
}

.scenario-shell .identity-card {
  overflow: hidden;
}

.scenario-shell .identity-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
}

.scenario-shell .identity-lockup .brand-mark {
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--nav);
}

.scenario-shell .identity-lockup strong {
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: .12em;
}

.scenario-shell .identity-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 20px;
  border-top: 1px solid var(--line);
}

.scenario-shell .identity-card dl div {
  padding: 14px 0;
}

.scenario-shell .decision-note {
  margin: 0 20px 20px;
  padding: 12px 13px;
  border-left: 3px solid #e8872d;
  background: #fff8e9;
}

.scenario-shell .members-panel,
.scenario-shell .permission-panel {
  overflow: hidden;
}

.scenario-shell .access-table select {
  min-width: 132px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  font-size: 10px;
}

.scenario-shell button:disabled,
.scenario-shell select:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.scenario-shell .access-table [data-role-scope] {
  color: var(--muted);
  font-size: 10px;
}

.scenario-shell .permission-panel .panel-heading > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.scenario-shell .permission-matrix > div {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(110px, .5fr));
  align-items: center;
  border-top: 1px solid var(--line);
}

.scenario-shell .permission-matrix > div:first-child {
  border-top: 0;
  background: var(--surface-soft);
}

.scenario-shell .permission-matrix span,
.scenario-shell .permission-matrix strong,
.scenario-shell .permission-matrix b {
  padding: 0 18px;
  font-size: 10px;
}

.scenario-shell .permission-matrix strong,
.scenario-shell .permission-matrix b {
  text-align: center;
}

.scenario-shell .permission-matrix .allowed {
  color: var(--success);
  font-size: 15px;
}

.scenario-shell .permission-matrix .denied {
  color: #aeb7b3;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .scenario-shell .overview-grid,
  .scenario-shell .profile-grid {
    grid-template-columns: 1fr;
  }

  .scenario-shell .channel-health > article {
    grid-template-columns: 38px minmax(160px, 1fr) auto;
  }

  .scenario-shell .access-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .scenario-shell {
    display: block;
  }

  .scenario-shell .sidebar {
    position: fixed;
    left: 0;
    width: 256px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .scenario-shell .sidebar.open {
    transform: translateX(0);
  }

  .scenario-shell .topbar,
  .scenario-shell .page-toolbar {
    padding-right: 18px;
    padding-left: 18px;
  }

  .scenario-shell .scenario-banner {
    padding-right: 18px;
    padding-left: 24px;
  }

  .scenario-shell .scenario-banner .scenario-controls {
    grid-column: 2;
    flex-wrap: wrap;
  }

  .scenario-shell .page-stack {
    padding: 24px 18px 44px;
  }

  .scenario-shell .customer-tabbar {
    padding: 0 18px;
  }

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

  .scenario-shell .metric-grid article:nth-child(2) {
    border-right: 0;
  }

  .scenario-shell .metric-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .scenario-shell .scenario-banner {
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
  }

  .scenario-shell .scenario-controls label {
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 4px;
  }

  .scenario-shell .scenario-controls label > span {
    display: none;
  }

  .scenario-shell .scenario-banner-guard {
    display: none;
  }

  .scenario-shell .page-heading,
  .scenario-shell .page-heading.compact {
    gap: 16px;
  }

  .scenario-shell .page-heading h1 {
    font-size: clamp(29px, 10vw, 38px);
  }

  .scenario-shell .metric-grid {
    grid-template-columns: 1fr;
  }

  .scenario-shell .metric-grid article {
    min-height: 102px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scenario-shell .metric-grid article:last-child {
    border-bottom: 0;
  }

  .scenario-shell .channel-health > article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .scenario-shell .mvp-boundary {
    grid-template-columns: 1fr;
  }

  .scenario-shell .mvp-boundary article {
    min-height: 108px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scenario-shell .mvp-boundary article:last-child {
    border-bottom: 0;
  }

  .scenario-shell .integration-body {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .scenario-shell .integration-body .secondary-button {
    grid-column: 1 / -1;
  }

  .scenario-shell .integration-facts {
    grid-template-columns: 1fr;
  }

  .scenario-shell .integration-facts > div {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scenario-shell .integration-facts > div:last-child {
    border-bottom: 0;
  }

  .scenario-shell .integration-preview {
    align-items: stretch;
    flex-direction: column;
  }

  .scenario-shell .permission-matrix {
    min-width: 620px;
  }

  .scenario-shell .permission-panel {
    overflow-x: auto;
  }

  .scenario-shell .prototype-switcher {
    right: 12px;
    bottom: 12px;
  }

  .scenario-shell .drawer,
  .scenario-shell .confirmation-dialog {
    border-radius: 5px 5px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link,
  .scenario-shell .sidebar,
  .scenario-shell .nav-link,
  .scenario-shell .primary-button,
  .scenario-shell .secondary-button,
  .scenario-shell .danger-button,
  .scenario-shell .customer-strip a,
  .scenario-shell .channel-health > article {
    transition: none;
  }
}

/* The v2 shell owns the outer geometry after all legacy Scenario declarations. */
.scenario-shell.interface-v2 {
  grid-template-columns: var(--shell-sidebar-width) minmax(0, 1fr);
}

.scenario-shell.interface-v2 .sidebar {
  width: var(--shell-sidebar-width);
}

.scenario-shell.interface-v2 .page-stack {
  gap: 14px;
  padding: 20px 24px 54px;
}

.scenario-shell.interface-v2 .page-heading,
.scenario-shell.interface-v2 .page-heading.compact {
  min-height: 0;
  align-items: center;
  padding: 0 0 14px;
  border-bottom-width: 1px;
}

.scenario-shell.interface-v2 .page-heading h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -.035em;
}

.scenario-shell.interface-v2 .page-heading > div > span:not(.status),
.scenario-shell.interface-v2 .panel-heading p {
  display: none;
}

.scenario-shell.interface-v2.view-mode-focus {
  grid-template-columns: 56px minmax(0, 1fr);
}

.scenario-shell.interface-v2.view-mode-fullscreen {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 860px) {
  .scenario-shell.interface-v2,
  .scenario-shell.interface-v2.sidebar-collapsed,
  .scenario-shell.interface-v2.view-mode-focus,
  .scenario-shell.interface-v2.view-mode-fullscreen {
    display: block;
  }
}

/* Production-aligned knowledge workspace */
.scenario-shell.interface-v2 .production-overview {
  gap: 16px;
  padding-top: 24px;
}

.scenario-shell.interface-v2 .production-heading {
  min-height: 118px;
  align-items: end;
  padding: 10px 0 22px;
  border-bottom: 2px solid var(--ink);
}

.scenario-shell.interface-v2 .production-heading > div > span {
  max-width: 72ch;
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.production-entry {
  min-width: 210px;
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 2px 18px;
  padding: 10px 16px;
  text-decoration: none;
}

.production-entry span {
  grid-column: 1;
  color: rgb(255 255 255 / 68%);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
}

.production-entry strong {
  grid-column: 1;
  font-size: 11px;
}

.production-entry b {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: 20px;
}

.production-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.production-flow::before {
  position: absolute;
  z-index: 0;
  top: 28px;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--success) 0 36%, #e8872d 36% 78%, var(--line-strong) 78%);
  content: "";
}

.production-flow article {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 126px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-content: start;
  gap: 13px 10px;
  padding: 16px 15px 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0 34px, rgb(255 255 255 / 86%) 34px);
}

.production-flow article:last-child {
  border-right: 0;
}

.production-flow article > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
}

.production-flow article.complete > span {
  border-color: var(--success);
  color: var(--success);
}

.production-flow article.pending > span {
  border-color: #e8872d;
  color: #a95d0b;
}

.production-flow article.blocked > span {
  border-color: var(--danger);
  color: var(--danger);
}

.production-flow article div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.production-flow article small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .11em;
}

.production-flow article strong {
  font-size: 11px;
}

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

.production-flow article > b {
  grid-column: 2;
  width: max-content;
  padding: 3px 6px;
  border-radius: 2px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 8px;
}

.production-flow article.blocked > b {
  color: var(--danger);
  background: var(--danger-soft);
}

.knowledge-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.knowledge-health article {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 3px 12px;
  padding: 14px 17px;
  border-right: 1px solid var(--line);
}

.knowledge-health article:last-child {
  border-right: 0;
}

.knowledge-health span {
  align-self: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
}

.knowledge-health strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--accent-dark);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 32px;
}

.knowledge-health small {
  color: var(--ink);
  font-size: 9px;
}

.knowledge-health article.danger {
  background: var(--danger-soft);
}

.knowledge-health article.danger strong {
  color: var(--danger);
}

.production-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .68fr);
  gap: 16px;
}

.production-queue {
  overflow: hidden;
}

.production-queue .panel-heading p,
.customer-knowledge-spaces .panel-heading p {
  display: block !important;
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .12em;
}

.production-queue .panel-heading span,
.customer-knowledge-spaces .panel-heading span {
  color: var(--muted);
  font-size: 9px;
}

.queue-item {
  min-height: 70px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.queue-item:hover {
  background: var(--surface-soft);
}

.queue-item > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.queue-item.pending > span {
  border-color: #e8872d;
  color: #a95d0b;
  background: var(--warning-soft);
}

.queue-item.danger > span {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

.queue-item div {
  display: grid;
  gap: 3px;
}

.queue-item strong {
  font-size: 11px;
}

.queue-item small,
.queue-item > b {
  color: var(--muted);
  font-size: 9px;
}

.queue-item > b {
  font-family: var(--mono);
}

.generation-contract {
  position: relative;
  border-top: 3px solid var(--accent) !important;
  overflow: hidden;
}

.generation-contract::after {
  position: absolute;
  right: -30px;
  bottom: -38px;
  width: 130px;
  height: 130px;
  border: 18px solid var(--accent-soft);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.generation-contract header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.generation-contract header small {
  grid-column: 1 / -1;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
}

.generation-contract header h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 15px;
}

.generation-contract dl {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 18px;
}

.generation-contract dl div {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.generation-contract dl div:last-child {
  border-bottom: 0;
}

.generation-contract dd {
  margin: 0;
  font-family: inherit;
  font-size: 10px;
}

.generation-contract footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: rgb(237 242 239 / 82%);
}

.generation-contract footer span {
  color: var(--muted);
  font-size: 8px;
}

.generation-contract footer strong {
  font-family: var(--mono);
  font-size: 9px;
}

.customer-knowledge-spaces {
  overflow: hidden;
}

.customer-knowledge-spaces > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-knowledge-spaces > div > a {
  min-height: 72px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  border-right: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.customer-knowledge-spaces > div > a:last-child {
  border-right: 0;
}

.customer-knowledge-spaces > div > a:hover {
  background: var(--surface-soft);
}

.customer-knowledge-spaces > div > a > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.customer-knowledge-spaces strong {
  font-size: 11px;
}

.customer-knowledge-spaces small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-knowledge-spaces b {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 9px;
}

.knowledge-view-nav {
  height: 42px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.knowledge-view-nav a {
  position: relative;
  min-width: 130px;
  display: grid;
  place-items: center;
  padding: 0 22px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.knowledge-view-nav a:last-child {
  border-right: 0;
}

.knowledge-view-nav a:hover {
  color: var(--accent-dark);
  background: var(--surface-soft);
}

.knowledge-view-nav a.active {
  color: #fff;
  background: var(--nav);
}

.knowledge-workspace {
  max-width: 1520px;
  margin: 0 auto;
  padding: 20px 24px 54px;
}

.knowledge-workspace .knowledge-hero {
  padding-top: 4px;
}

@media (max-width: 1100px) {
  .production-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .production-flow::before {
    display: none;
  }

  .production-flow article:nth-child(3) {
    border-right: 0;
  }

  .production-flow article:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

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

  .knowledge-health article:nth-child(2) {
    border-right: 0;
  }

  .knowledge-health article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .customer-knowledge-spaces > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-knowledge-spaces > div > a:nth-child(2) {
    border-right: 0;
  }

  .customer-knowledge-spaces > div > a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .scenario-shell.interface-v2 .production-heading {
    align-items: stretch;
  }

  .production-entry {
    width: 100%;
  }

  .production-flow,
  .knowledge-health,
  .production-dashboard-grid,
  .customer-knowledge-spaces > div {
    grid-template-columns: 1fr;
  }

  .production-flow article,
  .knowledge-health article,
  .customer-knowledge-spaces > div > a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .production-flow article:last-child,
  .knowledge-health article:last-child,
  .customer-knowledge-spaces > div > a:last-child {
    border-bottom: 0;
  }

  .knowledge-view-nav {
    height: auto;
    overflow-x: auto;
  }

  .knowledge-view-nav a {
    min-width: max-content;
    min-height: 40px;
  }

  .knowledge-workspace {
    padding: 16px 14px 42px;
  }
}

/* Scenario proof desk
 * Editorial direction: the interface behaves like a working manuscript.
 * The red rule is a real proofing margin; everything else stays quiet.
 */
.scenario-shell.interface-v2 {
  --ink: #20211e;
  --muted: #6c6d67;
  --line: #d8d5cb;
  --line-strong: #aaa79d;
  --surface: #fbfaf5;
  --surface-soft: #efeee8;
  --canvas: #deddd7;
  --nav: #e8e6de;
  --nav-soft: #dfddd4;
  --accent: #a6362d;
  --accent-dark: #7f211c;
  --accent-soft: #f5e6e2;
  --success: #315f4d;
  --success-soft: #e4eee8;
  --warning: #87551f;
  --warning-soft: #f4ecdc;
  --danger: #9d2d26;
  --danger-soft: #f6e5e1;
  --shadow: 0 1px 0 rgb(32 33 30 / 8%);
  --editorial-serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --editorial-sans: "Avenir Next", "Segoe UI Variable", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --proof-red: #a6362d;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2 button,
.scenario-shell.interface-v2 a {
  -webkit-tap-highlight-color: rgb(166 54 45 / 12%);
}

.scenario-shell.interface-v2 button:focus-visible,
.scenario-shell.interface-v2 input:focus-visible,
.scenario-shell.interface-v2 select:focus-visible,
.scenario-shell.interface-v2 textarea:focus-visible,
.scenario-shell.interface-v2 a:focus-visible {
  outline-color: rgb(166 54 45 / 34%);
}

.scenario-shell.interface-v2 .sidebar {
  color: #42433f;
  border-right: 1px solid #aaa79d;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 20%), transparent 45%),
    var(--nav);
}

.scenario-shell.interface-v2 .sidebar::before,
.scenario-shell.interface-v2 .sidebar::after {
  display: none;
}

.scenario-shell.interface-v2 .brand {
  border-bottom: 1px solid var(--line-strong);
}

.scenario-shell.interface-v2 .brand-mark {
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--editorial-serif);
}

.scenario-shell.interface-v2 .brand strong {
  color: var(--ink);
}

.scenario-shell.interface-v2 .brand small,
.scenario-shell.interface-v2 .nav-workspace-label,
.scenario-shell.interface-v2 .sidebar-footer small {
  color: #73746e;
}

.scenario-shell.interface-v2 .sidebar-toggle {
  color: #656660;
}

.scenario-shell.interface-v2 .nav-workspace-group {
  margin-bottom: 18px;
}

.scenario-shell.interface-v2 .nav-workspace-label {
  height: 24px;
  padding-left: 12px;
  font-size: 7px;
  letter-spacing: .18em;
}

.scenario-shell.interface-v2 .nav-link {
  min-height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  color: #656660;
  font-weight: 600;
}

.scenario-shell.interface-v2 .nav-link:hover {
  color: var(--ink);
  background: rgb(255 255 255 / 42%);
}

.scenario-shell.interface-v2 .nav-link.active {
  color: var(--ink);
  background: #f7f5ee;
  box-shadow: inset 3px 0 0 var(--proof-red);
}

.scenario-shell.interface-v2 .nav-link.active::after {
  display: none;
}

.scenario-shell.interface-v2 .nav-link.active svg {
  color: var(--proof-red);
}

.scenario-shell.interface-v2 .nav-link b,
.scenario-shell.interface-v2 .nav-link.active b {
  border: 1px solid #bbb8ae;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}

.scenario-shell.interface-v2 .sidebar-footer {
  border-top: 1px solid var(--line-strong);
  background: transparent;
}

.scenario-shell.interface-v2 .actor-avatar {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: #f7f5ee;
  font-family: var(--editorial-serif);
}

.scenario-shell.interface-v2 .sidebar-footer strong {
  color: var(--ink);
}

.scenario-shell.interface-v2 .workspace {
  background:
    repeating-linear-gradient(
      0deg,
      rgb(32 33 30 / 2%) 0,
      rgb(32 33 30 / 2%) 1px,
      transparent 1px,
      transparent 4px
    ),
    var(--canvas);
}

.scenario-shell.interface-v2 .topbar {
  border-bottom: 1px solid var(--line-strong);
  background: rgb(248 247 242 / 97%);
  box-shadow: none;
  backdrop-filter: none;
}

.scenario-shell.interface-v2 .workspace-kicker {
  color: var(--proof-red);
  letter-spacing: .16em;
}

.scenario-shell.interface-v2 .context-path strong {
  color: var(--ink);
  font-family: var(--editorial-serif);
  font-size: 19px;
}

.scenario-shell.interface-v2 .context-path strong:not(:last-of-type) {
  color: #52534e;
}

.scenario-shell.interface-v2 .header-logo {
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--editorial-serif);
}

.scenario-shell.interface-v2 .global-search,
.scenario-shell.interface-v2 .notification-button,
.scenario-shell.interface-v2 .global-search kbd {
  border-radius: 0;
  background: transparent;
}

.scenario-shell.interface-v2 .global-search:focus-within {
  border-color: var(--ink);
  background: #fffefa;
}

.scenario-shell.interface-v2 .notification-button b {
  border-color: #f8f7f2;
  border-radius: 0;
  background: var(--proof-red);
}

.scenario-shell.interface-v2 .global-search-panel,
.scenario-shell.interface-v2 .notification-panel,
.scenario-shell.interface-v2 .scenario-menu > div {
  border-radius: 0;
  background: #fffefa;
  box-shadow: 6px 8px 0 rgb(32 33 30 / 10%);
}

.scenario-shell.interface-v2 .scenario-menu summary {
  border: 1px solid var(--proof-red);
  border-radius: 0;
  color: var(--proof-red);
  background: transparent;
  letter-spacing: .08em;
  transform: rotate(-1deg);
}

.scenario-shell.interface-v2 .scenario-menu small {
  color: var(--proof-red);
}

.scenario-shell.interface-v2 .secondary-nav {
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-strong);
  background: #ebe9e2;
}

.scenario-shell.interface-v2 .secondary-context {
  color: #5a5b56;
}

.scenario-shell.interface-v2 .secondary-tabs {
  align-items: center;
  gap: 16px;
}

.scenario-shell.interface-v2 .secondary-tab {
  height: var(--shell-tabs-height);
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  color: #686963;
  font-size: 9px;
}

.scenario-shell.interface-v2 .secondary-tab:hover {
  color: var(--ink);
  background: transparent;
}

.scenario-shell.interface-v2 .secondary-tab.active {
  height: var(--shell-tabs-height);
  border: 0;
  color: var(--ink);
  background: transparent;
}

.scenario-shell.interface-v2 .secondary-tab.active::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--proof-red);
}

.scenario-shell.interface-v2 .secondary-search,
.scenario-shell.interface-v2 .secondary-page-action,
.scenario-shell.interface-v2 .view-mode-switcher,
.scenario-shell.interface-v2 .view-mode-switcher button {
  border-radius: 0;
}

.scenario-shell.interface-v2 .secondary-page-action.primary,
.scenario-shell.interface-v2 .view-mode-switcher button.active {
  border-color: var(--ink);
  background: var(--ink);
}

.scenario-shell.interface-v2 .content-stage {
  position: relative;
  padding: 22px 24px 46px;
}

.scenario-shell.interface-v2 .content-stage::before {
  position: absolute;
  z-index: 0;
  top: 22px;
  bottom: 46px;
  left: 68px;
  width: 1px;
  background: rgb(166 54 45 / 45%);
  content: "";
  pointer-events: none;
}

.scenario-shell.interface-v2 .content-stage > main {
  position: relative;
  z-index: 1;
}

.scenario-shell.interface-v2 .page-stack,
.scenario-shell.interface-v2 .knowledge-workspace {
  max-width: 1500px;
  margin: 0 auto;
  padding: 34px 38px 62px 70px;
  border: 1px solid #bbb8ae;
  border-top: 4px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 43px, rgb(166 54 45 / 22%) 43px, rgb(166 54 45 / 22%) 44px, transparent 44px),
    var(--surface);
  box-shadow: 5px 7px 0 rgb(32 33 30 / 8%);
}

.scenario-shell.interface-v2 .page-heading,
.scenario-shell.interface-v2 .page-heading.compact {
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.scenario-shell.interface-v2 .page-heading h1 {
  font-family: var(--editorial-serif);
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 700;
  letter-spacing: -.055em;
}

.scenario-shell.interface-v2 .page-heading p,
.scenario-shell.interface-v2 .record-detail header p,
.scenario-shell.interface-v2 .context-card header p {
  color: var(--proof-red);
  letter-spacing: .18em;
}

.scenario-shell.interface-v2 .page-heading > div > span:not(.status) {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--editorial-serif);
  font-size: 11px;
  line-height: 1.7;
}

.scenario-shell.interface-v2 .primary-button,
.scenario-shell.interface-v2 .secondary-button,
.scenario-shell.interface-v2 .danger-button {
  border-radius: 0;
  box-shadow: none;
}

.scenario-shell.interface-v2 .primary-button {
  border-color: var(--ink);
  background: var(--ink);
}

.scenario-shell.interface-v2 .primary-button:hover {
  border-color: var(--proof-red);
  background: var(--proof-red);
}

.scenario-shell.interface-v2 .secondary-button {
  background: transparent;
}

.scenario-shell.interface-v2 .text-button,
.scenario-shell.interface-v2 .row-link {
  border-radius: 0;
  color: var(--proof-red);
  text-decoration: underline;
  text-decoration-color: rgb(166 54 45 / 35%);
  text-underline-offset: 4px;
}

.scenario-shell.interface-v2 .text-button:hover,
.scenario-shell.interface-v2 .row-link:hover {
  background: transparent;
  text-decoration-color: currentcolor;
}

.scenario-shell.interface-v2 .panel,
.scenario-shell.interface-v2 .context-card,
.scenario-shell.interface-v2 .channel-card,
.scenario-shell.interface-v2 .master-detail,
.scenario-shell.interface-v2 .empty-state,
.scenario-shell.interface-v2 .tenant-card,
.scenario-shell.interface-v2 .partner-card,
.scenario-shell.interface-v2 .tenant-facts,
.scenario-shell.interface-v2 .mvp-boundary {
  border-color: var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scenario-shell.interface-v2 .panel-heading {
  min-height: 64px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
}

.scenario-shell.interface-v2 .panel-heading h2 {
  font-family: var(--editorial-serif);
  font-size: 17px;
}

.scenario-shell.interface-v2 .panel-heading p {
  display: block;
  margin-bottom: 4px;
  color: var(--proof-red);
  font-size: 7px;
  letter-spacing: .17em;
}

.scenario-shell.interface-v2 .status {
  padding: 2px 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 8px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.scenario-shell.interface-v2 .record-mark,
.scenario-shell.interface-v2 .tenant-logo,
.scenario-shell.interface-v2 .tenant-logo.compact {
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--editorial-serif);
}

.scenario-shell.interface-v2 .records-table th {
  color: #555650;
  background: #e7e5de;
  font-family: var(--mono);
  letter-spacing: .08em;
}

.scenario-shell.interface-v2 .records-table tbody tr:hover td,
.scenario-shell.interface-v2 .channel-health > article:hover,
.scenario-shell.interface-v2 .attention-list > article:hover,
.scenario-shell.interface-v2 .customer-strip a:hover {
  background: #f2eee8;
}

.scenario-shell.interface-v2 .form-grid input,
.scenario-shell.interface-v2 .drawer-fields input,
.scenario-shell.interface-v2 .drawer-fields textarea,
.scenario-shell.interface-v2 .drawer-fields select,
.scenario-shell.interface-v2 .domain-form-grid input,
.scenario-shell.interface-v2 .domain-form-grid select,
.scenario-shell.interface-v2 .domain-form-grid textarea,
.scenario-shell.interface-v2 .version-editor input,
.scenario-shell.interface-v2 .version-editor textarea,
.scenario-shell.interface-v2 .collection-row input,
.scenario-shell.interface-v2 .collection-row select,
.scenario-shell.interface-v2 .compare-selects select,
.scenario-shell.interface-v2 .access-table select {
  border-radius: 0;
  background: #fffefa;
}

.scenario-shell.interface-v2 .production-overview {
  gap: 18px;
  padding-top: 38px;
}

.scenario-shell.interface-v2 .production-heading {
  min-height: 132px;
  padding: 0 0 24px;
  border-bottom: 2px solid var(--ink);
}

.scenario-shell.interface-v2 .production-heading h1 {
  font-size: clamp(38px, 4vw, 58px);
}

.scenario-shell.interface-v2 .production-heading > div > span {
  max-width: 58ch;
  color: #555650;
  font-family: var(--editorial-serif);
  font-size: 12px;
}

.scenario-shell.interface-v2 .production-entry {
  min-width: 224px;
  border-left: 4px solid var(--proof-red);
  color: var(--ink);
  background: transparent;
}

.scenario-shell.interface-v2 .production-entry:hover {
  color: #fff;
}

.scenario-shell.interface-v2 .production-entry span {
  color: var(--muted);
}

.scenario-shell.interface-v2 .production-flow {
  border: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scenario-shell.interface-v2 .production-flow::before {
  display: none;
}

.scenario-shell.interface-v2 .production-flow article {
  min-height: 142px;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 15px 18px 16px;
  background: transparent;
}

.scenario-shell.interface-v2 .production-flow article > span {
  width: auto;
  height: auto;
  display: block;
  border: 0;
  border-radius: 0;
  color: #a5a198;
  background: transparent;
  font-family: var(--editorial-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

.scenario-shell.interface-v2 .production-flow article.complete > span,
.scenario-shell.interface-v2 .production-flow article.pending > span,
.scenario-shell.interface-v2 .production-flow article.blocked > span {
  border-color: transparent;
  color: var(--proof-red);
}

.scenario-shell.interface-v2 .production-flow article small {
  color: var(--muted);
  letter-spacing: .16em;
}

.scenario-shell.interface-v2 .production-flow article strong {
  font-family: var(--editorial-serif);
  font-size: 13px;
}

.scenario-shell.interface-v2 .production-flow article p {
  font-size: 9px;
}

.scenario-shell.interface-v2 .production-flow article > b {
  grid-column: 1;
  padding: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--proof-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.scenario-shell.interface-v2 .knowledge-health {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.scenario-shell.interface-v2 .knowledge-health article {
  min-height: 96px;
  padding: 12px 18px 16px;
}

.scenario-shell.interface-v2 .knowledge-health strong {
  color: var(--ink);
  font-family: var(--editorial-serif);
  font-size: 36px;
  font-weight: 500;
}

.scenario-shell.interface-v2 .knowledge-health article.danger {
  border-left: 2px solid var(--proof-red);
  background: rgb(166 54 45 / 4%);
}

.scenario-shell.interface-v2 .production-dashboard-grid {
  grid-template-columns: minmax(0, 1.62fr) minmax(270px, .58fr);
  gap: 28px;
}

.scenario-shell.interface-v2 .production-queue,
.scenario-shell.interface-v2 .customer-knowledge-spaces {
  border: 0;
}

.scenario-shell.interface-v2 .queue-item {
  min-height: 76px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 12px 0;
  border-top-color: var(--line);
}

.scenario-shell.interface-v2 .queue-item:hover {
  background: #f2eee8;
}

.scenario-shell.interface-v2 .queue-item > span,
.scenario-shell.interface-v2 .queue-item.pending > span,
.scenario-shell.interface-v2 .queue-item.danger > span {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: var(--proof-red);
  background: transparent;
  font-family: var(--editorial-serif);
  font-size: 18px;
}

.scenario-shell.interface-v2 .queue-item strong {
  font-family: var(--editorial-serif);
  font-size: 12px;
}

.scenario-shell.interface-v2 .generation-contract {
  align-self: start;
  border: 0 !important;
  border-top: 3px solid var(--proof-red) !important;
  border-bottom: 1px solid var(--ink) !important;
  background: #f0eee7;
  transform: rotate(.18deg);
}

.scenario-shell.interface-v2 .generation-contract::after {
  display: none;
}

.scenario-shell.interface-v2 .generation-contract header,
.scenario-shell.interface-v2 .generation-contract footer {
  background: transparent;
}

.scenario-shell.interface-v2 .generation-contract header small {
  color: var(--proof-red);
  letter-spacing: .16em;
}

.scenario-shell.interface-v2 .generation-contract header h2 {
  font-family: var(--editorial-serif);
  font-size: 18px;
}

.scenario-shell.interface-v2 .generation-contract dl div {
  border-bottom-style: solid;
}

.scenario-shell.interface-v2 .customer-knowledge-spaces > div > a {
  padding: 14px 12px;
}

.scenario-shell.interface-v2 .customer-knowledge-spaces b {
  color: var(--proof-red);
}

.scenario-shell.interface-v2 .knowledge-view-nav {
  border-radius: 0;
  background: transparent;
}

.scenario-shell.interface-v2 .knowledge-view-nav a.active {
  background: var(--ink);
}

.scenario-shell.interface-v2 .filter-chips {
  gap: 0;
  border-bottom: 1px solid var(--line-strong);
}

.scenario-shell.interface-v2 .filter-chips button {
  min-height: 34px;
  margin-bottom: -1px;
  border-color: var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.scenario-shell.interface-v2 .filter-chips button + button {
  border-left: 0;
}

.scenario-shell.interface-v2 .filter-chips button.active {
  border-color: var(--proof-red);
  color: var(--proof-red);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--proof-red);
}

.scenario-shell.interface-v2 .role-tags span,
.scenario-shell.interface-v2 .acquisition-badge,
.scenario-shell.interface-v2 .question-tags span,
.scenario-shell.interface-v2 .kb-map-tree h3 span {
  border-radius: 0;
  color: #555650;
  background: transparent;
}

.scenario-shell.interface-v2 .knowledge-workspace {
  --kb-navy: var(--ink);
  --kb-blue: var(--proof-red);
  --kb-teal: var(--success);
  --kb-paper: var(--surface);
  min-height: calc(100dvh - 150px);
}

.scenario-shell.interface-v2 .knowledge-hero {
  min-height: 104px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}

.scenario-shell.interface-v2 .knowledge-hero p,
.scenario-shell.interface-v2 .kb-map small,
.scenario-shell.interface-v2 .kb-generation small,
.scenario-shell.interface-v2 .kb-document-layout aside header small,
.scenario-shell.interface-v2 .kb-release-layout small {
  color: var(--proof-red);
  letter-spacing: .15em;
}

.scenario-shell.interface-v2 .knowledge-hero h1 {
  font-family: var(--editorial-serif);
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 700;
  letter-spacing: -.05em;
}

.scenario-shell.interface-v2 .knowledge-hero > div > span {
  font-family: var(--editorial-serif);
  font-size: 11px;
}

.scenario-shell.interface-v2 .knowledge-hero-status {
  border-radius: 0;
  background: transparent;
}

.scenario-shell.interface-v2 .knowledge-hero-status span {
  padding: 10px 13px;
}

.scenario-shell.interface-v2 .knowledge-view-nav {
  height: 42px;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
}

.scenario-shell.interface-v2 .knowledge-view-nav a {
  min-width: 130px;
  border: 0;
  border-right: 1px solid var(--line);
}

.scenario-shell.interface-v2 .knowledge-view-nav a.active {
  color: #fffefa;
}

.scenario-shell.interface-v2 .knowledge-import-entry {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--proof-red);
  border-bottom: 1px solid var(--line);
  background: #f2f0e9;
}

.scenario-shell.interface-v2 .knowledge-import-entry > div {
  min-width: 0;
}

.scenario-shell.interface-v2 .knowledge-import-entry > div:first-child {
  display: grid;
  gap: 3px;
}

.scenario-shell.interface-v2 .knowledge-import-entry > div:last-child {
  display: flex;
  gap: 7px;
}

.scenario-shell.interface-v2 .knowledge-import-entry span {
  color: var(--proof-red);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .16em;
}

.scenario-shell.interface-v2 .knowledge-import-entry strong {
  font-family: var(--editorial-serif);
  font-size: 12px;
}

.scenario-shell.interface-v2 .knowledge-import-entry small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.scenario-shell.interface-v2 .kb-workbench {
  gap: 16px;
}

.scenario-shell.interface-v2 .kb-map,
.scenario-shell.interface-v2 .kb-generation,
.scenario-shell.interface-v2 .kb-card-editor {
  border-color: var(--line-strong);
  background: transparent;
}

.scenario-shell.interface-v2 .kb-map > header,
.scenario-shell.interface-v2 .kb-generation > header,
.scenario-shell.interface-v2 .kb-document-layout aside > header,
.scenario-shell.interface-v2 .kb-release-steps article > header,
.scenario-shell.interface-v2 .kb-release-header,
.scenario-shell.interface-v2 .kb-release-result > header {
  padding-right: 12px;
  padding-left: 12px;
  border-bottom-color: var(--ink);
}

.scenario-shell.interface-v2 .kb-map h2,
.scenario-shell.interface-v2 .kb-generation h2,
.scenario-shell.interface-v2 .kb-document-layout aside h2,
.scenario-shell.interface-v2 .kb-release-layout h2,
.scenario-shell.interface-v2 .kb-release-layout h3,
.scenario-shell.interface-v2 .kb-card-editor h2,
.scenario-shell.interface-v2 .kb-editor-canvas h3,
.scenario-shell.interface-v2 .kb-document-paper h1,
.scenario-shell.interface-v2 .kb-component-boundary h2 {
  font-family: var(--editorial-serif);
}

.scenario-shell.interface-v2 .kb-icon-action,
.scenario-shell.interface-v2 .kb-inline-search,
.scenario-shell.interface-v2 .kb-map-tree button,
.scenario-shell.interface-v2 .kb-card-type,
.scenario-shell.interface-v2 .kb-editor-toolbar button,
.scenario-shell.interface-v2 .kb-document-toolbar button,
.scenario-shell.interface-v2 .kb-query-context {
  border-radius: 0;
}

.scenario-shell.interface-v2 .kb-icon-action {
  color: var(--proof-red);
  background: transparent;
}

.scenario-shell.interface-v2 .kb-inline-search {
  background: #f0eee8;
}

.scenario-shell.interface-v2 .kb-map-tree button:hover,
.scenario-shell.interface-v2 .kb-map-tree button.active {
  background: #f0eee8;
}

.scenario-shell.interface-v2 .kb-map-tree button.active {
  box-shadow: inset 3px 0 0 var(--proof-red);
}

.scenario-shell.interface-v2 .kb-card-type {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
  font-family: var(--editorial-serif);
}

.scenario-shell.interface-v2 .kb-card-editor > header {
  border-bottom-color: var(--ink);
}

.scenario-shell.interface-v2 .kb-eyebrow {
  color: var(--proof-red);
  letter-spacing: .14em;
}

.scenario-shell.interface-v2 .kb-editor-toolbar,
.scenario-shell.interface-v2 .kb-document-toolbar {
  background: #eeece6;
}

.scenario-shell.interface-v2 .kb-editor-toolbar button:hover,
.scenario-shell.interface-v2 .kb-document-toolbar button:hover {
  color: var(--proof-red);
  background: #f8f6f0;
}

.scenario-shell.interface-v2 .kb-editor-canvas {
  background:
    linear-gradient(90deg, transparent 49px, rgb(166 54 45 / 24%) 49px, rgb(166 54 45 / 24%) 50px, transparent 50px),
    #fffefa;
}

.scenario-shell.interface-v2 .kb-editor-canvas:focus {
  box-shadow: inset 0 0 0 2px rgb(166 54 45 / 14%);
}

.scenario-shell.interface-v2 .kb-editor-canvas p,
.scenario-shell.interface-v2 .kb-component-boundary p,
.scenario-shell.interface-v2 .kb-document-lead {
  color: #353631;
  font-family: var(--editorial-serif);
}

.scenario-shell.interface-v2 .kb-card-metadata {
  background: #efede7;
}

.scenario-shell.interface-v2 .kb-query-context {
  border-color: var(--line-strong);
  border-left: 3px solid var(--proof-red);
  background: #f0eee8;
}

.scenario-shell.interface-v2 .kb-generation li > i,
.scenario-shell.interface-v2 .kb-document-inspector li i,
.scenario-shell.interface-v2 .kb-review-checks i {
  border-radius: 0;
}

@media (max-width: 1400px) {
  .scenario-shell.interface-v2 .kb-workbench {
    grid-template-columns: 220px minmax(400px, 1fr);
  }

  .scenario-shell.interface-v2 .kb-generation {
    grid-column: 1 / -1;
    min-height: 300px;
  }
}

@media (max-width: 1100px) {
  .scenario-shell.interface-v2 .production-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .scenario-shell.interface-v2 .generation-contract {
    transform: none;
  }
}

@media (max-width: 860px) {
  .scenario-shell.interface-v2 .content-stage {
    padding: 14px 12px 34px;
  }

  .scenario-shell.interface-v2 .content-stage::before {
    display: none;
  }

  .scenario-shell.interface-v2 .page-stack,
  .scenario-shell.interface-v2 .knowledge-workspace {
    padding: 26px 20px 46px;
    background: var(--surface);
    box-shadow: 3px 5px 0 rgb(32 33 30 / 8%);
  }
}

@media (max-width: 620px) {
  .scenario-shell.interface-v2 .production-heading h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .scenario-shell.interface-v2 .knowledge-import-entry {
    grid-template-columns: 1fr;
  }

  .scenario-shell.interface-v2 .knowledge-import-entry > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .scenario-shell.interface-v2 .production-flow article {
    min-height: 104px;
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .scenario-shell.interface-v2 .production-flow article > b {
    grid-column: 2;
  }
}

/* Apple Developer-inspired Scenario prototype
 * Reference: developer.apple.com/design/
 * Web interpretation only; this does not claim to implement Apple's native
 * materials or platform components.
 */
.scenario-shell.interface-v2 {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #dedee3;
  --line-strong: #c7c7cc;
  --surface: #ffffff;
  --surface-soft: #f5f5f7;
  --canvas: #ffffff;
  --nav: #fbfbfd;
  --nav-soft: #e8e8ed;
  --accent: #0071e3;
  --accent-dark: #0058b0;
  --accent-soft: #e8f2ff;
  --success: #248a3d;
  --success-soft: #eaf7ed;
  --warning: #9a6700;
  --warning-soft: #fff7df;
  --danger: #d70015;
  --danger-soft: #fff0f1;
  --shadow: none;
  --editorial-serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  --editorial-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  --proof-red: var(--accent);
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--editorial-sans);
  letter-spacing: -.006em;
}

.scenario-shell.interface-v2 button:focus-visible,
.scenario-shell.interface-v2 input:focus-visible,
.scenario-shell.interface-v2 select:focus-visible,
.scenario-shell.interface-v2 textarea:focus-visible,
.scenario-shell.interface-v2 a:focus-visible {
  outline: 3px solid rgb(0 113 227 / 28%);
  outline-offset: 2px;
}

.scenario-shell.interface-v2 .sidebar {
  color: #424245;
  border-right: 1px solid rgb(0 0 0 / 9%);
  background: rgb(251 251 253 / 94%);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.scenario-shell.interface-v2 .brand {
  border-bottom-color: rgb(0 0 0 / 9%);
}

.scenario-shell.interface-v2 .brand-mark {
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--ink);
  font-family: var(--editorial-sans);
  font-weight: 700;
}

.scenario-shell.interface-v2 .brand strong {
  font-family: var(--editorial-sans);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .04em;
}

.scenario-shell.interface-v2 .brand small {
  font-size: 7px;
  letter-spacing: .11em;
}

.scenario-shell.interface-v2 .nav-workspace-label {
  color: #86868b;
  font-family: var(--editorial-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

.scenario-shell.interface-v2 .nav-link {
  min-height: 38px;
  margin: 2px 0;
  padding: 0 12px;
  border-radius: 10px;
  color: #5b5b60;
  font-size: 11px;
  font-weight: 500;
}

.scenario-shell.interface-v2 .nav-link:hover {
  color: var(--ink);
  background: rgb(0 0 0 / 4%);
}

.scenario-shell.interface-v2 .nav-link.active {
  color: var(--ink);
  background: #e8e8ed;
  box-shadow: none;
}

.scenario-shell.interface-v2 .nav-link.active svg {
  color: var(--accent);
}

.scenario-shell.interface-v2 .nav-link b,
.scenario-shell.interface-v2 .nav-link.active b {
  border: 0;
  border-radius: 999px;
  color: #4b4b50;
  background: rgb(0 0 0 / 6%);
}

.scenario-shell.interface-v2 .sidebar-footer {
  border-top-color: rgb(0 0 0 / 9%);
}

.scenario-shell.interface-v2 .actor-avatar {
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #6e6e73, #2c2c2e);
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2 .workspace {
  background: #fff;
}

.scenario-shell.interface-v2 .topbar {
  border-bottom-color: rgb(0 0 0 / 12%);
  background: rgb(255 255 255 / 78%);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.scenario-shell.interface-v2 .workspace-kicker {
  color: var(--muted);
  font-family: var(--editorial-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

.scenario-shell.interface-v2 .context-path strong,
.scenario-shell.interface-v2 .context-path strong:not(:last-of-type) {
  color: var(--ink);
  font-family: var(--editorial-sans);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.scenario-shell.interface-v2 .context-path strong:not(:last-of-type) {
  color: #515154;
  font-size: 14px;
}

.scenario-shell.interface-v2 .header-logo {
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--ink);
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2 .global-search {
  border-color: transparent;
  border-radius: 10px;
  background: #f5f5f7;
}

.scenario-shell.interface-v2 .global-search:focus-within {
  border-color: rgb(0 113 227 / 45%);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(0 113 227 / 10%);
}

.scenario-shell.interface-v2 .global-search kbd {
  border: 0;
  border-radius: 5px;
  background: #fff;
}

.scenario-shell.interface-v2 .notification-button {
  border: 0;
  border-radius: 10px;
  background: #f5f5f7;
}

.scenario-shell.interface-v2 .notification-button b {
  border-radius: 999px;
  background: #ff9f0a;
}

.scenario-shell.interface-v2 .global-search-panel,
.scenario-shell.interface-v2 .notification-panel,
.scenario-shell.interface-v2 .scenario-menu > div {
  border: 1px solid rgb(0 0 0 / 10%);
  border-radius: 16px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 16%);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}

.scenario-shell.interface-v2 .scenario-menu summary {
  border: 0;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: var(--editorial-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  transform: none;
}

.scenario-shell.interface-v2 .scenario-menu small {
  color: var(--muted);
}

.scenario-shell.interface-v2 .secondary-nav {
  padding: 0 18px;
  border-bottom-color: rgb(0 0 0 / 10%);
  background: rgb(250 250 252 / 90%);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.scenario-shell.interface-v2 .secondary-context {
  color: #6e6e73;
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2 .secondary-tabs {
  gap: 22px;
}

.scenario-shell.interface-v2 .secondary-tab {
  font-size: 10px;
  font-weight: 500;
}

.scenario-shell.interface-v2 .secondary-tab.active::after {
  height: 1px;
  background: var(--ink);
}

.scenario-shell.interface-v2 .secondary-search {
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.scenario-shell.interface-v2 .secondary-page-action {
  border: 0;
  border-radius: 999px;
  background: #e8e8ed;
}

.scenario-shell.interface-v2 .secondary-page-action.primary {
  border-color: var(--accent);
  background: var(--accent);
}

.scenario-shell.interface-v2 .view-mode-switcher {
  border: 0;
  border-radius: 9px;
  background: #e8e8ed;
}

.scenario-shell.interface-v2 .view-mode-switcher button {
  border-radius: 7px;
}

.scenario-shell.interface-v2 .view-mode-switcher button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 12%);
}

.scenario-shell.interface-v2 .content-stage {
  padding: 0;
  background: #fff;
}

.scenario-shell.interface-v2 .content-stage::before {
  display: none;
}

.scenario-shell.interface-v2 .page-stack,
.scenario-shell.interface-v2 .knowledge-workspace {
  max-width: 1360px;
  margin: 0 auto;
  padding: 38px 40px 72px;
  border: 0;
  background: #fff;
  box-shadow: none;
}

.scenario-shell.interface-v2 .page-heading,
.scenario-shell.interface-v2 .page-heading.compact {
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.scenario-shell.interface-v2 .page-heading h1,
.scenario-shell.interface-v2 .knowledge-hero h1 {
  font-family: var(--editorial-sans);
  font-weight: 650;
  letter-spacing: -.045em;
}

.scenario-shell.interface-v2 .page-heading p,
.scenario-shell.interface-v2 .record-detail header p,
.scenario-shell.interface-v2 .context-card header p,
.scenario-shell.interface-v2 .knowledge-hero p {
  color: var(--accent);
  font-family: var(--editorial-sans);
  font-weight: 600;
  letter-spacing: .02em;
}

.scenario-shell.interface-v2 .page-heading > div > span:not(.status),
.scenario-shell.interface-v2 .knowledge-hero > div > span {
  color: var(--muted);
  font-family: var(--editorial-sans);
  line-height: 1.55;
}

.scenario-shell.interface-v2 .primary-button,
.scenario-shell.interface-v2 .secondary-button,
.scenario-shell.interface-v2 .danger-button {
  border-radius: 999px;
  box-shadow: none;
}

.scenario-shell.interface-v2 .primary-button {
  border-color: var(--accent);
  background: var(--accent);
}

.scenario-shell.interface-v2 .primary-button:hover {
  border-color: #0077ed;
  background: #0077ed;
}

.scenario-shell.interface-v2 .secondary-button {
  border-color: transparent;
  background: #e8e8ed;
}

.scenario-shell.interface-v2 .secondary-button:hover {
  border-color: transparent;
  background: #dedee3;
}

.scenario-shell.interface-v2 .text-button,
.scenario-shell.interface-v2 .row-link {
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
}

.scenario-shell.interface-v2 .text-button::after,
.scenario-shell.interface-v2 .row-link::after {
  content: " ›";
}

.scenario-shell.interface-v2 .panel,
.scenario-shell.interface-v2 .context-card,
.scenario-shell.interface-v2 .channel-card,
.scenario-shell.interface-v2 .master-detail,
.scenario-shell.interface-v2 .empty-state,
.scenario-shell.interface-v2 .tenant-card,
.scenario-shell.interface-v2 .partner-card,
.scenario-shell.interface-v2 .tenant-facts,
.scenario-shell.interface-v2 .mvp-boundary {
  border: 0;
  border-radius: 18px;
  background: var(--surface-soft);
  box-shadow: none;
}

.scenario-shell.interface-v2 .panel-heading {
  min-height: 70px;
  padding: 18px 20px;
  border-bottom-color: rgb(0 0 0 / 8%);
  background: transparent;
}

.scenario-shell.interface-v2 .panel-heading h2 {
  font-family: var(--editorial-sans);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.scenario-shell.interface-v2 .panel-heading p {
  color: var(--accent);
  font-family: var(--editorial-sans);
  font-weight: 600;
  letter-spacing: .02em;
}

.scenario-shell.interface-v2 .status {
  padding: 4px 8px;
  border-radius: 999px;
  font-family: var(--editorial-sans);
  font-size: 8px;
  font-weight: 600;
  text-decoration: none;
}

.scenario-shell.interface-v2 .status.success {
  color: var(--success);
  background: var(--success-soft);
}

.scenario-shell.interface-v2 .status.pending {
  color: var(--warning);
  background: var(--warning-soft);
}

.scenario-shell.interface-v2 .status.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.scenario-shell.interface-v2 .record-mark,
.scenario-shell.interface-v2 .tenant-logo,
.scenario-shell.interface-v2 .tenant-logo.compact {
  border: 0;
  border-radius: 11px;
  color: var(--ink);
  background: #e8e8ed;
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2 .records-table th {
  color: #6e6e73;
  background: #f5f5f7;
  font-family: var(--editorial-sans);
  letter-spacing: 0;
}

.scenario-shell.interface-v2 .records-table tbody tr:hover td,
.scenario-shell.interface-v2 .channel-health > article:hover,
.scenario-shell.interface-v2 .attention-list > article:hover,
.scenario-shell.interface-v2 .customer-strip a:hover {
  background: #f0f7ff;
}

.scenario-shell.interface-v2 .filter-chips {
  gap: 7px;
  border-bottom: 0;
}

.scenario-shell.interface-v2 .filter-chips button,
.scenario-shell.interface-v2 .filter-chips button + button {
  min-height: 34px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #f5f5f7;
}

.scenario-shell.interface-v2 .filter-chips button.active {
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}

.scenario-shell.interface-v2 .role-tags span,
.scenario-shell.interface-v2 .acquisition-badge,
.scenario-shell.interface-v2 .question-tags span,
.scenario-shell.interface-v2 .kb-map-tree h3 span {
  border: 0;
  border-radius: 999px;
  color: #515154;
  background: #e8e8ed;
}

.scenario-shell.interface-v2 .form-grid input,
.scenario-shell.interface-v2 .drawer-fields input,
.scenario-shell.interface-v2 .drawer-fields textarea,
.scenario-shell.interface-v2 .drawer-fields select,
.scenario-shell.interface-v2 .domain-form-grid input,
.scenario-shell.interface-v2 .domain-form-grid select,
.scenario-shell.interface-v2 .domain-form-grid textarea,
.scenario-shell.interface-v2 .version-editor input,
.scenario-shell.interface-v2 .version-editor textarea,
.scenario-shell.interface-v2 .collection-row input,
.scenario-shell.interface-v2 .collection-row select,
.scenario-shell.interface-v2 .compare-selects select,
.scenario-shell.interface-v2 .access-table select {
  border-color: #c7c7cc;
  border-radius: 10px;
  background: #fff;
}

.scenario-shell.interface-v2 .production-overview {
  gap: 22px;
  padding-top: 40px;
}

.scenario-shell.interface-v2 .production-heading {
  position: relative;
  isolation: isolate;
  min-height: 230px;
  align-items: center;
  padding: 44px 46px;
  border: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 8%, rgb(52 199 89 / 12%), transparent 21%),
    radial-gradient(circle at 68% 18%, rgb(10 132 255 / 18%), transparent 33%),
    linear-gradient(145deg, #f4f6fa, #eef0f5);
  overflow: hidden;
}

.scenario-shell.interface-v2 .production-heading::after {
  position: absolute;
  z-index: -1;
  top: -180px;
  right: -60px;
  width: 430px;
  height: 430px;
  border: 1px solid rgb(0 113 227 / 12%);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgb(255 255 255 / 18%),
    0 0 0 108px rgb(255 255 255 / 10%);
  content: "";
}

.scenario-shell.interface-v2 .production-heading h1 {
  max-width: 10em;
  font-family: var(--editorial-sans);
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 650;
  letter-spacing: -.055em;
}

.scenario-shell.interface-v2 .production-heading > div > span {
  max-width: 51ch;
  color: #515154;
  font-family: var(--editorial-sans);
  font-size: 12px;
}

.scenario-shell.interface-v2 .production-entry {
  min-width: 220px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: rgb(29 29 31 / 90%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.scenario-shell.interface-v2 .production-entry span {
  color: rgb(255 255 255 / 66%);
}

.scenario-shell.interface-v2 .production-entry:hover {
  background: var(--accent);
}

.scenario-shell.interface-v2 .production-flow {
  gap: 0;
  border: 0;
  border-radius: 18px;
  background: #f5f5f7;
  overflow: hidden;
}

.scenario-shell.interface-v2 .production-flow article {
  min-height: 146px;
  padding: 22px 20px;
  border-right-color: rgb(0 0 0 / 8%);
}

.scenario-shell.interface-v2 .production-flow article > span {
  color: #86868b;
  font-family: var(--editorial-sans);
  font-size: 24px;
  font-weight: 600;
}

.scenario-shell.interface-v2 .production-flow article.complete > span,
.scenario-shell.interface-v2 .production-flow article.pending > span,
.scenario-shell.interface-v2 .production-flow article.blocked > span {
  color: var(--accent);
}

.scenario-shell.interface-v2 .production-flow article small {
  color: #86868b;
  font-family: var(--editorial-sans);
  letter-spacing: .08em;
}

.scenario-shell.interface-v2 .production-flow article strong {
  font-family: var(--editorial-sans);
  font-size: 12px;
  font-weight: 650;
}

.scenario-shell.interface-v2 .production-flow article > b {
  color: var(--accent);
  text-decoration: none;
}

.scenario-shell.interface-v2 .knowledge-health {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border: 0;
}

.scenario-shell.interface-v2 .knowledge-health article {
  min-height: 112px;
  padding: 20px;
  border: 0;
  border-radius: 16px;
  background: #f5f5f7;
}

.scenario-shell.interface-v2 .knowledge-health strong {
  color: var(--ink);
  font-family: var(--editorial-sans);
  font-size: 34px;
  font-weight: 600;
}

.scenario-shell.interface-v2 .knowledge-health article.danger {
  border: 0;
  background: #fff0f1;
}

.scenario-shell.interface-v2 .production-dashboard-grid {
  gap: 18px;
}

.scenario-shell.interface-v2 .production-queue,
.scenario-shell.interface-v2 .customer-knowledge-spaces {
  background: #f5f5f7;
}

.scenario-shell.interface-v2 .queue-item {
  margin: 0 18px;
  padding-right: 2px;
  padding-left: 2px;
  border-top-color: rgb(0 0 0 / 8%);
}

.scenario-shell.interface-v2 .queue-item:hover {
  border-radius: 10px;
  background: #fff;
}

.scenario-shell.interface-v2 .queue-item > span,
.scenario-shell.interface-v2 .queue-item.pending > span,
.scenario-shell.interface-v2 .queue-item.danger > span {
  color: var(--accent);
  font-family: var(--editorial-sans);
  font-size: 15px;
  font-weight: 650;
}

.scenario-shell.interface-v2 .queue-item strong {
  font-family: var(--editorial-sans);
  font-size: 11px;
}

.scenario-shell.interface-v2 .generation-contract {
  border: 0 !important;
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgb(10 132 255 / 18%), transparent 32%),
    #f5f5f7;
  transform: none;
}

.scenario-shell.interface-v2 .generation-contract header small {
  color: var(--accent);
  font-family: var(--editorial-sans);
  letter-spacing: .05em;
}

.scenario-shell.interface-v2 .generation-contract header h2 {
  font-family: var(--editorial-sans);
  font-size: 18px;
  font-weight: 650;
}

.scenario-shell.interface-v2 .generation-contract dl div {
  border-bottom-color: rgb(0 0 0 / 8%);
}

.scenario-shell.interface-v2 .customer-knowledge-spaces > div > a:hover {
  background: #fff;
}

.scenario-shell.interface-v2 .customer-knowledge-spaces b {
  color: var(--accent);
}

.scenario-shell.interface-v2 .knowledge-workspace {
  --kb-navy: var(--ink);
  --kb-blue: var(--accent);
  --kb-teal: var(--success);
  --kb-paper: #fff;
}

.scenario-shell.interface-v2 .knowledge-hero {
  min-height: 120px;
  padding: 28px 30px;
  border: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 0%, rgb(10 132 255 / 13%), transparent 28%),
    #f5f5f7;
}

.scenario-shell.interface-v2 .knowledge-hero h1 {
  font-size: clamp(32px, 3vw, 46px);
}

.scenario-shell.interface-v2 .knowledge-hero-status {
  border: 0;
  border-radius: 14px;
  background: rgb(255 255 255 / 76%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.scenario-shell.interface-v2 .knowledge-view-nav {
  gap: 5px;
  margin: 12px 0;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: #f5f5f7;
}

.scenario-shell.interface-v2 .knowledge-view-nav a {
  border: 0;
  border-radius: 9px;
}

.scenario-shell.interface-v2 .knowledge-view-nav a.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 5px rgb(0 0 0 / 10%);
}

.scenario-shell.interface-v2 .knowledge-import-entry {
  border: 0;
  border-radius: 16px;
  background: #f0f7ff;
}

.scenario-shell.interface-v2 .knowledge-import-entry span {
  color: var(--accent);
  font-family: var(--editorial-sans);
  letter-spacing: .05em;
}

.scenario-shell.interface-v2 .knowledge-import-entry strong {
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2 .kb-map,
.scenario-shell.interface-v2 .kb-generation,
.scenario-shell.interface-v2 .kb-card-editor {
  border: 0;
  border-radius: 18px;
  background: #f5f5f7;
}

.scenario-shell.interface-v2 .kb-map > header,
.scenario-shell.interface-v2 .kb-generation > header,
.scenario-shell.interface-v2 .kb-document-layout aside > header,
.scenario-shell.interface-v2 .kb-release-steps article > header,
.scenario-shell.interface-v2 .kb-release-header,
.scenario-shell.interface-v2 .kb-release-result > header,
.scenario-shell.interface-v2 .kb-card-editor > header {
  border-bottom-color: rgb(0 0 0 / 8%);
}

.scenario-shell.interface-v2 .kb-map h2,
.scenario-shell.interface-v2 .kb-generation h2,
.scenario-shell.interface-v2 .kb-document-layout aside h2,
.scenario-shell.interface-v2 .kb-release-layout h2,
.scenario-shell.interface-v2 .kb-release-layout h3,
.scenario-shell.interface-v2 .kb-card-editor h2,
.scenario-shell.interface-v2 .kb-editor-canvas h3,
.scenario-shell.interface-v2 .kb-document-paper h1,
.scenario-shell.interface-v2 .kb-component-boundary h2 {
  font-family: var(--editorial-sans);
  font-weight: 650;
}

.scenario-shell.interface-v2 .kb-icon-action {
  border: 0;
  border-radius: 9px;
  color: var(--accent);
  background: #fff;
}

.scenario-shell.interface-v2 .kb-inline-search {
  border: 0;
  border-radius: 10px;
  background: #fff;
}

.scenario-shell.interface-v2 .kb-map-tree h3 span,
.scenario-shell.interface-v2 .kb-card-type,
.scenario-shell.interface-v2 .kb-map-tree button,
.scenario-shell.interface-v2 .kb-editor-toolbar button,
.scenario-shell.interface-v2 .kb-document-toolbar button,
.scenario-shell.interface-v2 .kb-query-context {
  border-radius: 9px;
}

.scenario-shell.interface-v2 .kb-map-tree button:hover,
.scenario-shell.interface-v2 .kb-map-tree button.active {
  background: #fff;
}

.scenario-shell.interface-v2 .kb-map-tree button.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.scenario-shell.interface-v2 .kb-card-type {
  border: 0;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2 .kb-eyebrow {
  color: var(--accent);
  font-family: var(--editorial-sans);
  letter-spacing: .04em;
}

.scenario-shell.interface-v2 .kb-editor-toolbar,
.scenario-shell.interface-v2 .kb-document-toolbar {
  background: #eeeef2;
}

.scenario-shell.interface-v2 .kb-editor-toolbar button:hover,
.scenario-shell.interface-v2 .kb-document-toolbar button:hover {
  color: var(--accent);
  background: #fff;
}

.scenario-shell.interface-v2 .kb-editor-canvas {
  margin: 10px;
  border-radius: 14px;
  background: #fff;
}

.scenario-shell.interface-v2 .kb-editor-canvas:focus {
  box-shadow: inset 0 0 0 2px rgb(0 113 227 / 20%);
}

.scenario-shell.interface-v2 .kb-editor-canvas p,
.scenario-shell.interface-v2 .kb-component-boundary p,
.scenario-shell.interface-v2 .kb-document-lead {
  color: #3a3a3c;
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2 .kb-card-metadata {
  background: #eeeef2;
}

.scenario-shell.interface-v2 .kb-query-context {
  border: 0;
  background: #fff;
}

.scenario-shell.interface-v2 .kb-generation li > i,
.scenario-shell.interface-v2 .kb-document-inspector li i,
.scenario-shell.interface-v2 .kb-review-checks i {
  border-radius: 9px;
}

@media (max-width: 860px) {
  .scenario-shell.interface-v2 .page-stack,
  .scenario-shell.interface-v2 .knowledge-workspace {
    padding: 24px 16px 52px;
    background: #fff;
    box-shadow: none;
  }

  .scenario-shell.interface-v2 .production-heading {
    padding: 34px 28px;
  }
}

@media (max-width: 620px) {
  .scenario-shell.interface-v2 .production-heading {
    min-height: 0;
    align-items: stretch;
    padding: 30px 24px;
  }

  .scenario-shell.interface-v2 .production-heading h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .scenario-shell.interface-v2 .production-heading::after {
    top: -210px;
    right: -220px;
  }

  .scenario-shell.interface-v2 .production-flow article {
    min-height: 100px;
  }

  .scenario-shell.interface-v2 .knowledge-health {
    grid-template-columns: 1fr 1fr;
  }

  .scenario-shell.interface-v2 .knowledge-health article:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .scenario-shell.interface-v2 .knowledge-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .scenario-shell.interface-v2 .sidebar,
  .scenario-shell.interface-v2 .topbar,
  .scenario-shell.interface-v2 .secondary-nav,
  .scenario-shell.interface-v2 .global-search-panel,
  .scenario-shell.interface-v2 .notification-panel,
  .scenario-shell.interface-v2 .scenario-menu > div,
  .scenario-shell.interface-v2 .production-entry,
  .scenario-shell.interface-v2 .knowledge-hero-status {
    background-color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* === ARCHIVED DESIGN CANDIDATE: CARBON (THROWAWAY PROTOTYPE) ===
 * Question: can Carbon's productive density, 2x grid, layers and table
 * language make THOR feel like a serious knowledge-production system?
 * Replace this whole block for candidate 2/5 after user review.
 */
.scenario-shell.interface-v2.design-candidate-carbon {
  --shell-sidebar-width: 224px;
  --shell-header-height: 48px;
  --shell-tabs-height: 48px;
  --ink: #161616;
  --muted: #525252;
  --line: #c6c6c6;
  --line-strong: #8d8d8d;
  --surface: #ffffff;
  --surface-soft: #f4f4f4;
  --canvas: #f4f4f4;
  --nav: #161616;
  --nav-soft: #262626;
  --accent: #0f62fe;
  --accent-dark: #0043ce;
  --accent-soft: #edf5ff;
  --success: #198038;
  --success-soft: #defbe6;
  --warning: #8e6a00;
  --warning-soft: #fcf4d6;
  --danger: #da1e28;
  --danger-soft: #fff1f1;
  --shadow: none;
  --editorial-serif: "IBM Plex Sans", "IBM Plex Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --editorial-sans: "IBM Plex Sans", "IBM Plex Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --proof-red: var(--accent);
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--editorial-sans);
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-carbon *,
.scenario-shell.interface-v2.design-candidate-carbon *::before,
.scenario-shell.interface-v2.design-candidate-carbon *::after {
  border-radius: 0 !important;
}

.scenario-shell.interface-v2.design-candidate-carbon ::selection {
  color: #ffffff;
  background: var(--accent);
}

.scenario-shell.interface-v2.design-candidate-carbon button,
.scenario-shell.interface-v2.design-candidate-carbon a,
.scenario-shell.interface-v2.design-candidate-carbon input,
.scenario-shell.interface-v2.design-candidate-carbon select,
.scenario-shell.interface-v2.design-candidate-carbon textarea {
  font-family: inherit;
}

.scenario-shell.interface-v2.design-candidate-carbon i {
  font-style: normal;
}

.scenario-shell.interface-v2.design-candidate-carbon button:focus-visible,
.scenario-shell.interface-v2.design-candidate-carbon input:focus-visible,
.scenario-shell.interface-v2.design-candidate-carbon select:focus-visible,
.scenario-shell.interface-v2.design-candidate-carbon textarea:focus-visible,
.scenario-shell.interface-v2.design-candidate-carbon a:focus-visible,
.scenario-shell.interface-v2.design-candidate-carbon [contenteditable="true"]:focus-visible {
  z-index: 2;
  outline: 2px solid #ffffff;
  outline-offset: -4px;
  box-shadow: 0 0 0 2px var(--accent);
}

.scenario-shell.interface-v2.design-candidate-carbon .sidebar {
  color: rgba(255, 255, 255, .85);
  border-right: 0;
  background: var(--nav);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-carbon .brand {
  height: var(--shell-header-height);
  min-height: var(--shell-header-height);
  max-height: var(--shell-header-height);
  padding: 0 16px;
  border-bottom: 1px solid #393939;
  box-sizing: border-box;
}

.scenario-shell.interface-v2.design-candidate-carbon .brand-mark,
.scenario-shell.interface-v2.design-candidate-carbon .header-logo {
  width: 32px;
  height: 32px;
  border: 1px solid #6f6f6f;
  color: #ffffff;
  background: transparent;
  font-family: var(--editorial-sans);
  font-size: 14px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-carbon .brand strong {
  color: #ffffff;
  font-family: var(--editorial-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
}

.scenario-shell.interface-v2.design-candidate-carbon .brand small {
  color: #a8a8a8;
  font-size: 8px;
  letter-spacing: .12em;
}

.scenario-shell.interface-v2.design-candidate-carbon .sidebar .icon-button {
  color: #c6c6c6;
}

.scenario-shell.interface-v2.design-candidate-carbon .sidebar nav {
  padding: var(--shell-tabs-height) 0 16px;
}

.scenario-shell.interface-v2.design-candidate-carbon .nav-workspace-group {
  margin-bottom: 16px;
}

.scenario-shell.interface-v2.design-candidate-carbon .nav-workspace-label {
  height: 32px;
  padding: 0 16px;
  color: #a8a8a8;
  font-family: var(--editorial-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .02em;
}

.scenario-shell.interface-v2.design-candidate-carbon .nav-link {
  min-height: 40px;
  gap: 12px;
  margin: 0;
  padding: 0 16px;
  color: #c6c6c6;
  background: transparent;
  font-size: 12px;
  font-weight: 400;
}

.scenario-shell.interface-v2.design-candidate-carbon .nav-link:hover {
  color: #ffffff;
  background: #353535;
}

.scenario-shell.interface-v2.design-candidate-carbon .nav-link.active {
  color: #ffffff;
  background: #393939;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.scenario-shell.interface-v2.design-candidate-carbon .nav-link.active svg {
  color: #78a9ff;
}

.scenario-shell.interface-v2.design-candidate-carbon .nav-link b,
.scenario-shell.interface-v2.design-candidate-carbon .nav-link.active b {
  min-width: 20px;
  padding: 1px 5px;
  border: 1px solid #6f6f6f;
  color: #ffffff;
  background: transparent;
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-carbon .sidebar-footer {
  min-height: 64px;
  padding: 8px 16px;
  border-top: 1px solid #393939;
  background: #262626;
}

.scenario-shell.interface-v2.design-candidate-carbon .actor-avatar {
  border: 1px solid #6f6f6f;
  color: #ffffff;
  background: #393939;
}

.scenario-shell.interface-v2.design-candidate-carbon .actor-copy strong {
  color: #f4f4f4;
  font-weight: 500;
}

.scenario-shell.interface-v2.design-candidate-carbon .actor-copy small {
  color: #a8a8a8;
}

.scenario-shell.interface-v2.design-candidate-carbon .workspace {
  background: var(--canvas);
}

.scenario-shell.interface-v2.design-candidate-carbon .topbar {
  height: var(--shell-header-height);
  min-height: var(--shell-header-height);
  max-height: var(--shell-header-height);
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid #393939;
  color: #ffffff;
  background: var(--nav);
  box-sizing: border-box;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-carbon .workspace-kicker {
  color: #a8a8a8;
  font-family: var(--editorial-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .02em;
}

.scenario-shell.interface-v2.design-candidate-carbon .context-path strong,
.scenario-shell.interface-v2.design-candidate-carbon .context-path strong:not(:last-of-type) {
  color: #ffffff;
  font-family: var(--editorial-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-carbon .context-path strong:not(:last-of-type) {
  color: #c6c6c6;
}

.scenario-shell.interface-v2.design-candidate-carbon .context-path i,
.scenario-shell.interface-v2.design-candidate-carbon .context-path b {
  color: #a8a8a8;
}

.scenario-shell.interface-v2.design-candidate-carbon .global-search {
  width: clamp(220px, 24vw, 360px);
  height: 32px;
  border: 0;
  color: #c6c6c6;
  background: #393939;
}

.scenario-shell.interface-v2.design-candidate-carbon .global-search:focus-within {
  background: #525252;
  box-shadow: inset 0 -2px 0 #78a9ff;
}

.scenario-shell.interface-v2.design-candidate-carbon .global-search input {
  color: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-carbon .global-search input::placeholder {
  color: #c6c6c6;
}

.scenario-shell.interface-v2.design-candidate-carbon .global-search kbd {
  border: 1px solid #6f6f6f;
  color: #c6c6c6;
  background: #262626;
}

.scenario-shell.interface-v2.design-candidate-carbon .notification-button {
  width: 32px;
  height: 32px;
  border: 0;
  color: #ffffff;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-carbon .notification-button:hover {
  background: #353535;
}

.scenario-shell.interface-v2.design-candidate-carbon .notification-button b {
  border: 0;
  color: #161616;
  background: #f1c21b;
}

.scenario-shell.interface-v2.design-candidate-carbon .global-search-panel,
.scenario-shell.interface-v2.design-candidate-carbon .notification-panel {
  border: 1px solid #8d8d8d;
  background: #ffffff;
  box-shadow: 0 8px 16px rgb(22 22 22 / 18%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-carbon .secondary-nav {
  height: var(--shell-tabs-height);
  min-height: var(--shell-tabs-height);
  max-height: var(--shell-tabs-height);
  align-items: stretch;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-sizing: border-box;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-carbon .secondary-context {
  color: var(--muted);
  font-family: var(--editorial-sans);
  font-size: 10px;
  font-weight: 400;
}

.scenario-shell.interface-v2.design-candidate-carbon .secondary-tabs {
  align-items: stretch;
  gap: 0;
}

.scenario-shell.interface-v2.design-candidate-carbon .secondary-tab {
  height: 48px;
  padding: 0 16px;
  color: var(--muted);
  border: 0;
  font-size: 11px;
  font-weight: 400;
}

.scenario-shell.interface-v2.design-candidate-carbon .secondary-tab:hover {
  color: var(--ink);
  background: #e8e8e8;
}

.scenario-shell.interface-v2.design-candidate-carbon .secondary-tab.active {
  height: 48px;
  color: var(--ink);
  background: #f4f4f4;
  font-weight: 500;
}

.scenario-shell.interface-v2.design-candidate-carbon .secondary-tab.active::after {
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 2px;
  background: var(--accent);
}

.scenario-shell.interface-v2.design-candidate-carbon .secondary-actions {
  gap: 0;
  padding-left: 8px;
}

.scenario-shell.interface-v2.design-candidate-carbon .secondary-search {
  width: 176px;
  height: 32px;
  border: 0;
  border-bottom: 1px solid #8d8d8d;
  background: #f4f4f4;
}

.scenario-shell.interface-v2.design-candidate-carbon .secondary-search:focus-within {
  border-bottom: 2px solid var(--accent);
}

.scenario-shell.interface-v2.design-candidate-carbon .secondary-page-action {
  min-height: 32px;
  padding: 0 16px;
  border: 1px solid #8d8d8d;
  color: var(--ink);
  background: #ffffff;
  font-size: 11px;
  font-weight: 500;
}

.scenario-shell.interface-v2.design-candidate-carbon .secondary-page-action.primary {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.scenario-shell.interface-v2.design-candidate-carbon .view-mode-switcher {
  height: 32px;
  padding: 0;
  border: 1px solid #8d8d8d;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-carbon .view-mode-switcher button {
  height: 30px;
  padding: 0 8px;
}

.scenario-shell.interface-v2.design-candidate-carbon .view-mode-switcher button.active {
  color: #ffffff;
  background: #393939;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-carbon .content-stage {
  padding: 0;
  background-color: var(--canvas);
  background-image:
    linear-gradient(to right, rgb(22 22 22 / 3%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(22 22 22 / 2%) 1px, transparent 1px);
  background-size: calc((100vw - var(--shell-sidebar-width)) / 16) 64px, 100% 64px;
}

.scenario-shell.interface-v2.design-candidate-carbon .content-stage::before {
  display: none;
}

.scenario-shell.interface-v2.design-candidate-carbon .page-stack,
.scenario-shell.interface-v2.design-candidate-carbon .knowledge-workspace {
  max-width: none;
  margin: 0;
  padding: 32px;
  background: transparent;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-carbon .page-heading,
.scenario-shell.interface-v2.design-candidate-carbon .page-heading.compact {
  align-items: end;
  min-height: 144px;
  padding: 24px 32px;
  border: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-carbon .page-heading h1,
.scenario-shell.interface-v2.design-candidate-carbon .knowledge-hero h1 {
  font-family: var(--editorial-sans);
  font-weight: 300;
  letter-spacing: 0;
  text-wrap: balance;
}

.scenario-shell.interface-v2.design-candidate-carbon .page-heading p,
.scenario-shell.interface-v2.design-candidate-carbon .record-detail header p,
.scenario-shell.interface-v2.design-candidate-carbon .context-card header p,
.scenario-shell.interface-v2.design-candidate-carbon .knowledge-hero p,
.scenario-shell.interface-v2.design-candidate-carbon .panel-heading p {
  color: var(--accent);
  font-family: var(--editorial-sans);
  font-weight: 500;
  letter-spacing: .06em;
}

.scenario-shell.interface-v2.design-candidate-carbon .page-heading > div > span:not(.status),
.scenario-shell.interface-v2.design-candidate-carbon .knowledge-hero > div > span {
  max-width: 64ch;
  color: var(--muted);
  font-family: var(--editorial-sans);
  font-size: 14px;
  line-height: 1.7;
}

.scenario-shell.interface-v2.design-candidate-carbon .primary-button,
.scenario-shell.interface-v2.design-candidate-carbon .secondary-button,
.scenario-shell.interface-v2.design-candidate-carbon .danger-button {
  min-height: 40px;
  padding-inline: 16px;
  box-shadow: none;
  white-space: nowrap;
}

.scenario-shell.interface-v2.design-candidate-carbon .primary-button {
  border-color: var(--accent);
  background: var(--accent);
}

.scenario-shell.interface-v2.design-candidate-carbon .primary-button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.scenario-shell.interface-v2.design-candidate-carbon .secondary-button {
  border-color: #8d8d8d;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-carbon .secondary-button:hover {
  border-color: var(--ink);
  background: #e8e8e8;
}

.scenario-shell.interface-v2.design-candidate-carbon .text-button,
.scenario-shell.interface-v2.design-candidate-carbon .row-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.scenario-shell.interface-v2.design-candidate-carbon .text-button::after,
.scenario-shell.interface-v2.design-candidate-carbon .row-link::after {
  content: none;
}

.scenario-shell.interface-v2.design-candidate-carbon .panel,
.scenario-shell.interface-v2.design-candidate-carbon .context-card,
.scenario-shell.interface-v2.design-candidate-carbon .channel-card,
.scenario-shell.interface-v2.design-candidate-carbon .master-detail,
.scenario-shell.interface-v2.design-candidate-carbon .empty-state,
.scenario-shell.interface-v2.design-candidate-carbon .tenant-card,
.scenario-shell.interface-v2.design-candidate-carbon .partner-card,
.scenario-shell.interface-v2.design-candidate-carbon .tenant-facts,
.scenario-shell.interface-v2.design-candidate-carbon .mvp-boundary {
  border: 0;
  background: #ffffff;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-carbon .panel-heading {
  min-height: 72px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-carbon .panel-heading h2 {
  font-family: var(--editorial-sans);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-carbon .status {
  padding: 3px 8px;
  border: 1px solid currentColor;
  font-family: var(--editorial-sans);
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
}

.scenario-shell.interface-v2.design-candidate-carbon .record-mark,
.scenario-shell.interface-v2.design-candidate-carbon .tenant-logo,
.scenario-shell.interface-v2.design-candidate-carbon .tenant-logo.compact {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #f4f4f4;
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2.design-candidate-carbon .records-table {
  border-collapse: collapse;
}

.scenario-shell.interface-v2.design-candidate-carbon .records-table th {
  height: 40px;
  color: var(--ink);
  background: #e0e0e0;
  font-family: var(--editorial-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .02em;
}

.scenario-shell.interface-v2.design-candidate-carbon .records-table td {
  min-height: 48px;
  border-bottom: 1px solid #e0e0e0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-carbon .records-table tbody tr:nth-child(even) td {
  background: #f4f4f4;
}

.scenario-shell.interface-v2.design-candidate-carbon .records-table tbody tr:hover td,
.scenario-shell.interface-v2.design-candidate-carbon .channel-health > article:hover,
.scenario-shell.interface-v2.design-candidate-carbon .attention-list > article:hover,
.scenario-shell.interface-v2.design-candidate-carbon .customer-strip a:hover {
  background: #e8e8e8;
}

.scenario-shell.interface-v2.design-candidate-carbon .records-table td[data-numeric],
.scenario-shell.interface-v2.design-candidate-carbon .metric-grid strong,
.scenario-shell.interface-v2.design-candidate-carbon .knowledge-health strong,
.scenario-shell.interface-v2.design-candidate-carbon code {
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-carbon .filter-chips {
  gap: 1px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #e0e0e0;
}

.scenario-shell.interface-v2.design-candidate-carbon .filter-chips button,
.scenario-shell.interface-v2.design-candidate-carbon .filter-chips button + button {
  min-height: 40px;
  margin: 0;
  border: 0;
  background: #f4f4f4;
}

.scenario-shell.interface-v2.design-candidate-carbon .filter-chips button.active {
  color: #ffffff;
  background: #393939;
  box-shadow: inset 0 -2px 0 #78a9ff;
}

.scenario-shell.interface-v2.design-candidate-carbon .role-tags span,
.scenario-shell.interface-v2.design-candidate-carbon .acquisition-badge,
.scenario-shell.interface-v2.design-candidate-carbon .question-tags span,
.scenario-shell.interface-v2.design-candidate-carbon .kb-map-tree h3 span {
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-carbon .form-grid input,
.scenario-shell.interface-v2.design-candidate-carbon .drawer-fields input,
.scenario-shell.interface-v2.design-candidate-carbon .drawer-fields textarea,
.scenario-shell.interface-v2.design-candidate-carbon .drawer-fields select,
.scenario-shell.interface-v2.design-candidate-carbon .domain-form-grid input,
.scenario-shell.interface-v2.design-candidate-carbon .domain-form-grid select,
.scenario-shell.interface-v2.design-candidate-carbon .domain-form-grid textarea,
.scenario-shell.interface-v2.design-candidate-carbon .version-editor input,
.scenario-shell.interface-v2.design-candidate-carbon .version-editor textarea,
.scenario-shell.interface-v2.design-candidate-carbon .collection-row input,
.scenario-shell.interface-v2.design-candidate-carbon .collection-row select,
.scenario-shell.interface-v2.design-candidate-carbon .compare-selects select,
.scenario-shell.interface-v2.design-candidate-carbon .access-table select {
  min-height: 40px;
  border: 0;
  border-bottom: 1px solid #8d8d8d;
  background: #f4f4f4;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-overview {
  gap: 1px;
  padding: 32px;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-heading {
  position: relative;
  isolation: auto;
  min-height: 208px;
  align-items: end;
  padding: 32px;
  border: 0;
  background: #ffffff;
  overflow: hidden;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-heading::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 25%;
  height: 8px;
  background: var(--accent);
  content: "";
}

.scenario-shell.interface-v2.design-candidate-carbon .production-heading::after {
  position: absolute;
  top: 32px;
  right: 32px;
  bottom: 32px;
  width: min(32%, 360px);
  border: 0;
  background:
    linear-gradient(90deg, #161616 25%, #393939 25% 50%, #6f6f6f 50% 75%, #a8a8a8 75%) 0 0 / 100% 24px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 15px, #c6c6c6 15px 16px),
    repeating-linear-gradient(to right, transparent 0 calc(25% - 1px), #e0e0e0 calc(25% - 1px) 25%);
  box-shadow: none;
  content: "";
  opacity: .9;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-heading h1 {
  max-width: 11em;
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 300;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-heading > div {
  position: relative;
  z-index: 1;
  max-width: 58%;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-heading > div > span {
  max-width: 54ch;
  color: var(--muted);
  font-size: 14px;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-entry {
  position: absolute;
  z-index: 2;
  right: 32px;
  bottom: 32px;
  min-width: 240px;
  border: 0;
  color: #ffffff;
  background: var(--accent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-entry span {
  color: #d0e2ff;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-entry:hover {
  background: var(--accent-dark);
}

.scenario-shell.interface-v2.design-candidate-carbon .production-flow {
  gap: 1px;
  border: 0;
  background: #c6c6c6;
  overflow: hidden;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-flow article {
  min-height: 144px;
  padding: 16px;
  border: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-flow article:hover {
  background: #e8e8e8;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-flow article > span {
  color: #6f6f6f;
  font-family: var(--editorial-sans);
  font-size: 24px;
  font-weight: 300;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-flow article.complete > span,
.scenario-shell.interface-v2.design-candidate-carbon .production-flow article.pending > span,
.scenario-shell.interface-v2.design-candidate-carbon .production-flow article.blocked > span {
  color: var(--accent);
}

.scenario-shell.interface-v2.design-candidate-carbon .production-flow article small {
  color: var(--muted);
  font-family: var(--editorial-sans);
  letter-spacing: .06em;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-flow article strong {
  font-family: var(--editorial-sans);
  font-size: 13px;
  font-weight: 500;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-flow article > b {
  color: var(--muted);
  text-decoration: none;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-flow article.blocked > b {
  color: var(--danger);
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-health {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 0;
  background: #c6c6c6;
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-health article {
  min-height: 112px;
  padding: 16px;
  border: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-health strong {
  color: var(--ink);
  font-family: var(--editorial-sans);
  font-size: 36px;
  font-weight: 300;
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-health article.danger {
  border: 0;
  background: var(--danger-soft);
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-health article.danger strong {
  color: var(--danger);
}

.scenario-shell.interface-v2.design-candidate-carbon .production-dashboard-grid {
  gap: 1px;
  background: #c6c6c6;
}

.scenario-shell.interface-v2.design-candidate-carbon .production-queue,
.scenario-shell.interface-v2.design-candidate-carbon .customer-knowledge-spaces,
.scenario-shell.interface-v2.design-candidate-carbon .generation-contract {
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-carbon .queue-item {
  margin: 0;
  min-height: 64px;
  padding: 12px 16px;
  border-top: 1px solid #e0e0e0;
}

.scenario-shell.interface-v2.design-candidate-carbon .queue-item:hover {
  background: #e8e8e8;
}

.scenario-shell.interface-v2.design-candidate-carbon .queue-item > span,
.scenario-shell.interface-v2.design-candidate-carbon .queue-item.pending > span,
.scenario-shell.interface-v2.design-candidate-carbon .queue-item.danger > span {
  color: var(--accent);
  font-family: var(--editorial-sans);
  font-size: 14px;
  font-weight: 400;
}

.scenario-shell.interface-v2.design-candidate-carbon .queue-item strong {
  font-family: var(--editorial-sans);
  font-size: 12px;
  font-weight: 500;
}

.scenario-shell.interface-v2.design-candidate-carbon .generation-contract {
  border: 0 !important;
  background: #262626;
  transform: none;
}

.scenario-shell.interface-v2.design-candidate-carbon .generation-contract header,
.scenario-shell.interface-v2.design-candidate-carbon .generation-contract dl,
.scenario-shell.interface-v2.design-candidate-carbon .generation-contract footer {
  color: rgba(255, 255, 255, .85);
}

.scenario-shell.interface-v2.design-candidate-carbon .generation-contract header small {
  color: #78a9ff;
  font-family: var(--editorial-sans);
  letter-spacing: .06em;
}

.scenario-shell.interface-v2.design-candidate-carbon .generation-contract header h2 {
  color: #ffffff;
  font-family: var(--editorial-sans);
  font-size: 20px;
  font-weight: 300;
}

.scenario-shell.interface-v2.design-candidate-carbon .generation-contract dl div {
  border-bottom-color: #525252;
}

.scenario-shell.interface-v2.design-candidate-carbon .generation-contract dt,
.scenario-shell.interface-v2.design-candidate-carbon .generation-contract footer span {
  color: #c6c6c6;
}

.scenario-shell.interface-v2.design-candidate-carbon .generation-contract code {
  color: #78a9ff;
  background: #393939;
}

.scenario-shell.interface-v2.design-candidate-carbon .customer-knowledge-spaces > div {
  background: #c6c6c6;
  gap: 1px;
}

.scenario-shell.interface-v2.design-candidate-carbon .customer-knowledge-spaces > div > a {
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-carbon .customer-knowledge-spaces > div > a:hover {
  background: #e8e8e8;
}

.scenario-shell.interface-v2.design-candidate-carbon .customer-knowledge-spaces b {
  color: var(--accent);
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-workspace {
  --kb-navy: var(--ink);
  --kb-blue: var(--accent);
  --kb-teal: var(--success);
  --kb-paper: #ffffff;
  padding: 32px;
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-hero {
  min-height: 144px;
  padding: 24px 32px;
  border: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-hero h1 {
  font-size: clamp(34px, 3.2vw, 52px);
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-hero-status {
  border: 1px solid var(--line);
  background: #f4f4f4;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-hero-status span {
  border-color: var(--line);
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-view-nav {
  gap: 0;
  margin: 1px 0;
  padding: 0;
  border: 0;
  background: #e0e0e0;
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-view-nav a {
  min-height: 48px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #f4f4f4;
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-view-nav a.active {
  color: #ffffff;
  background: #393939;
  box-shadow: inset 0 -2px 0 #78a9ff;
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-import-entry {
  border: 0;
  background: #edf5ff;
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-import-entry span {
  color: var(--accent);
  font-family: var(--editorial-sans);
  letter-spacing: .06em;
}

.scenario-shell.interface-v2.design-candidate-carbon .knowledge-import-entry strong {
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-workbench,
.scenario-shell.interface-v2.design-candidate-carbon .kb-document-layout,
.scenario-shell.interface-v2.design-candidate-carbon .kb-release-layout {
  gap: 1px;
  background: #c6c6c6;
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-map,
.scenario-shell.interface-v2.design-candidate-carbon .kb-generation,
.scenario-shell.interface-v2.design-candidate-carbon .kb-card-editor {
  border: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-map > header,
.scenario-shell.interface-v2.design-candidate-carbon .kb-generation > header,
.scenario-shell.interface-v2.design-candidate-carbon .kb-document-layout aside > header,
.scenario-shell.interface-v2.design-candidate-carbon .kb-release-steps article > header,
.scenario-shell.interface-v2.design-candidate-carbon .kb-release-header,
.scenario-shell.interface-v2.design-candidate-carbon .kb-release-result > header,
.scenario-shell.interface-v2.design-candidate-carbon .kb-card-editor > header {
  border-bottom: 1px solid var(--line);
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-map h2,
.scenario-shell.interface-v2.design-candidate-carbon .kb-generation h2,
.scenario-shell.interface-v2.design-candidate-carbon .kb-document-layout aside h2,
.scenario-shell.interface-v2.design-candidate-carbon .kb-release-layout h2,
.scenario-shell.interface-v2.design-candidate-carbon .kb-release-layout h3,
.scenario-shell.interface-v2.design-candidate-carbon .kb-card-editor h2,
.scenario-shell.interface-v2.design-candidate-carbon .kb-editor-canvas h3,
.scenario-shell.interface-v2.design-candidate-carbon .kb-document-paper h1,
.scenario-shell.interface-v2.design-candidate-carbon .kb-component-boundary h2 {
  font-family: var(--editorial-sans);
  font-weight: 400;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-icon-action {
  border: 1px solid var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-inline-search {
  border: 0;
  border-bottom: 1px solid #8d8d8d;
  background: #f4f4f4;
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-map-tree h3 span,
.scenario-shell.interface-v2.design-candidate-carbon .kb-card-type,
.scenario-shell.interface-v2.design-candidate-carbon .kb-map-tree button,
.scenario-shell.interface-v2.design-candidate-carbon .kb-editor-toolbar button,
.scenario-shell.interface-v2.design-candidate-carbon .kb-document-toolbar button,
.scenario-shell.interface-v2.design-candidate-carbon .kb-query-context {
  border-radius: 0;
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-map-tree button:hover {
  background: #e8e8e8;
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-map-tree button.active {
  background: #d0e2ff;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-card-type {
  border: 1px solid #78a9ff;
  color: var(--accent-dark);
  background: #edf5ff;
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-eyebrow {
  color: var(--accent);
  font-family: var(--editorial-sans);
  letter-spacing: .06em;
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-editor-toolbar,
.scenario-shell.interface-v2.design-candidate-carbon .kb-document-toolbar {
  background: #e0e0e0;
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-editor-toolbar button:hover,
.scenario-shell.interface-v2.design-candidate-carbon .kb-document-toolbar button:hover {
  color: #ffffff;
  background: #393939;
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-editor-canvas {
  margin: 0;
  border: 0;
  background:
    linear-gradient(90deg, transparent 63px, #e0e0e0 64px, transparent 65px),
    #ffffff;
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-editor-canvas:focus {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-editor-canvas p,
.scenario-shell.interface-v2.design-candidate-carbon .kb-component-boundary p,
.scenario-shell.interface-v2.design-candidate-carbon .kb-document-lead {
  color: #393939;
  font-family: var(--editorial-sans);
  font-size: 14px;
  line-height: 1.75;
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-card-metadata {
  background: #f4f4f4;
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-query-context {
  border: 1px solid var(--line);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-carbon .kb-generation li > i,
.scenario-shell.interface-v2.design-candidate-carbon .kb-document-inspector li i,
.scenario-shell.interface-v2.design-candidate-carbon .kb-review-checks i {
  border-radius: 0;
}

.scenario-shell.interface-v2.design-candidate-carbon .drawer,
.scenario-shell.interface-v2.design-candidate-carbon .confirmation-dialog {
  border: 1px solid #8d8d8d;
  background: #ffffff;
  box-shadow: 0 16px 32px rgb(22 22 22 / 24%);
}

.scenario-shell.interface-v2.design-candidate-carbon .toast {
  border: 1px solid #6f6f6f;
  color: rgba(255, 255, 255, .85);
  background: #262626;
  box-shadow: none;
}

@media (max-width: 1050px) {
  .scenario-shell.interface-v2.design-candidate-carbon .page-stack,
  .scenario-shell.interface-v2.design-candidate-carbon .knowledge-workspace,
  .scenario-shell.interface-v2.design-candidate-carbon .production-overview {
    padding: 24px;
  }

  .scenario-shell.interface-v2.design-candidate-carbon .production-heading::after {
    width: 28%;
  }
}

@media (max-width: 860px) {
  .scenario-shell.interface-v2.design-candidate-carbon .page-stack,
  .scenario-shell.interface-v2.design-candidate-carbon .knowledge-workspace,
  .scenario-shell.interface-v2.design-candidate-carbon .production-overview {
    padding: 16px;
  }

  .scenario-shell.interface-v2.design-candidate-carbon .topbar {
    background: #161616;
  }

  .scenario-shell.interface-v2.design-candidate-carbon .production-heading {
    padding: 24px;
  }

  .scenario-shell.interface-v2.design-candidate-carbon .production-heading::after {
    right: 24px;
    bottom: 24px;
  }

  .scenario-shell.interface-v2.design-candidate-carbon .kb-workbench,
  .scenario-shell.interface-v2.design-candidate-carbon .kb-document-layout,
  .scenario-shell.interface-v2.design-candidate-carbon .kb-release-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-carbon .kb-map,
  .scenario-shell.interface-v2.design-candidate-carbon .kb-card-stage,
  .scenario-shell.interface-v2.design-candidate-carbon .kb-card-editor,
  .scenario-shell.interface-v2.design-candidate-carbon .kb-generation {
    min-width: 0;
    width: 100%;
  }

  .scenario-shell.interface-v2.design-candidate-carbon.view-mode-focus .sidebar nav {
    padding-top: 16px;
  }
}

@media (max-width: 620px) {
  .scenario-shell.interface-v2.design-candidate-carbon .secondary-nav {
    padding-inline: 0;
  }

  .scenario-shell.interface-v2.design-candidate-carbon .secondary-tab {
    padding-inline: 12px;
  }

  .scenario-shell.interface-v2.design-candidate-carbon .production-heading {
    min-height: 260px;
    align-items: start;
    padding: 24px 20px;
  }

  .scenario-shell.interface-v2.design-candidate-carbon .production-heading > div {
    max-width: none;
  }

  .scenario-shell.interface-v2.design-candidate-carbon .production-heading h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .scenario-shell.interface-v2.design-candidate-carbon .production-heading::after {
    display: none;
  }

  .scenario-shell.interface-v2.design-candidate-carbon .production-entry {
    right: 20px;
    bottom: 20px;
    left: 20px;
    min-width: 0;
  }

  .scenario-shell.interface-v2.design-candidate-carbon .production-flow article {
    min-height: 104px;
  }

  .scenario-shell.interface-v2.design-candidate-carbon .knowledge-health {
    grid-template-columns: 1fr 1fr;
  }

  .scenario-shell.interface-v2.design-candidate-carbon .knowledge-health article:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .scenario-shell.interface-v2.design-candidate-carbon .knowledge-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .scenario-shell.interface-v2.design-candidate-carbon *,
  .scenario-shell.interface-v2.design-candidate-carbon *::before,
  .scenario-shell.interface-v2.design-candidate-carbon *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
/* === END ARCHIVED DESIGN CANDIDATE: CARBON === */

/* === ARCHIVED DESIGN CANDIDATE: PRIMER (THROWAWAY PROTOTYPE) ===
 * Question: does a repository-shaped object model make THOR's files,
 * revisions and split-pane workbench feel easier to locate and operate?
 * This styling hook stays internal; no review controls enter the product UI.
 */
.scenario-shell.interface-v2.design-candidate-primer {
  --shell-sidebar-width: 232px;
  --shell-header-height: 48px;
  --shell-tabs-height: 48px;
  --ink: #1f2328;
  --muted: #59636e;
  --line: #d1d9e0;
  --line-strong: #afb8c1;
  --surface: #ffffff;
  --surface-soft: #f6f8fa;
  --canvas: #f6f8fa;
  --nav: #25292e;
  --nav-soft: #32383f;
  --accent: #0969da;
  --accent-dark: #0550ae;
  --accent-soft: #ddf4ff;
  --success: #1a7f37;
  --success-soft: #dafbe1;
  --warning: #9a6700;
  --warning-soft: #fff8c5;
  --danger: #cf222e;
  --danger-soft: #ffebe9;
  --shadow: 0 8px 24px rgb(140 149 159 / 20%);
  --editorial-serif: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --editorial-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --proof-red: var(--danger);
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--editorial-sans);
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-primer ::selection {
  color: #ffffff;
  background: var(--accent);
}

.scenario-shell.interface-v2.design-candidate-primer button,
.scenario-shell.interface-v2.design-candidate-primer a,
.scenario-shell.interface-v2.design-candidate-primer input,
.scenario-shell.interface-v2.design-candidate-primer select,
.scenario-shell.interface-v2.design-candidate-primer textarea {
  font-family: inherit;
}

.scenario-shell.interface-v2.design-candidate-primer i {
  font-style: normal;
}

.scenario-shell.interface-v2.design-candidate-primer button:focus-visible,
.scenario-shell.interface-v2.design-candidate-primer input:focus-visible,
.scenario-shell.interface-v2.design-candidate-primer select:focus-visible,
.scenario-shell.interface-v2.design-candidate-primer textarea:focus-visible,
.scenario-shell.interface-v2.design-candidate-primer a:focus-visible,
.scenario-shell.interface-v2.design-candidate-primer [contenteditable="true"]:focus-visible {
  z-index: 2;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgb(9 105 218 / 18%);
}

.scenario-shell.interface-v2.design-candidate-primer .sidebar {
  color: var(--ink);
  border-right: 1px solid var(--line);
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-primer .brand {
  height: var(--shell-header-height);
  min-height: var(--shell-header-height);
  max-height: var(--shell-header-height);
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-sizing: border-box;
}

.scenario-shell.interface-v2.design-candidate-primer .brand-mark {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: var(--nav);
  font-family: var(--editorial-sans);
  font-size: 14px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-primer .brand strong {
  color: var(--ink);
  font-family: var(--editorial-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
}

.scenario-shell.interface-v2.design-candidate-primer .brand small {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: .08em;
}

.scenario-shell.interface-v2.design-candidate-primer .sidebar .icon-button {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-primer .sidebar nav {
  padding: var(--shell-tabs-height) 8px 16px;
}

.scenario-shell.interface-v2.design-candidate-primer .nav-workspace-group {
  margin-bottom: 16px;
}

.scenario-shell.interface-v2.design-candidate-primer .nav-workspace-label {
  height: 28px;
  padding: 0 8px;
  color: var(--muted);
  font-family: var(--editorial-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-primer .nav-link {
  min-height: 36px;
  gap: 10px;
  margin: 2px 0;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  font-weight: 400;
}

.scenario-shell.interface-v2.design-candidate-primer .nav-link.active {
  color: var(--accent-dark);
  border-color: #b6e3ff;
  background: var(--accent-soft);
  box-shadow: none;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-primer .nav-link.active svg {
  color: var(--accent);
}

.scenario-shell.interface-v2.design-candidate-primer .nav-link b,
.scenario-shell.interface-v2.design-candidate-primer .nav-link.active b {
  min-width: 20px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-primer .sidebar-footer {
  min-height: 64px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: #f6f8fa;
}

.scenario-shell.interface-v2.design-candidate-primer .actor-avatar {
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #ffffff;
  background: var(--nav);
}

.scenario-shell.interface-v2.design-candidate-primer .actor-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-primer .actor-copy small {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-primer .workspace {
  background: var(--canvas);
}

.scenario-shell.interface-v2.design-candidate-primer .topbar {
  height: var(--shell-header-height);
  min-height: var(--shell-header-height);
  max-height: var(--shell-header-height);
  gap: 16px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid #3d444d;
  color: rgba(255, 255, 255, .85);
  background: var(--nav);
  box-sizing: border-box;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-primer .workspace-kicker {
  color: #b1bac4;
  font-family: var(--editorial-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-primer .context-path strong,
.scenario-shell.interface-v2.design-candidate-primer .context-path strong:not(:last-of-type) {
  color: #ffffff;
  font-family: var(--editorial-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-primer .context-path strong:not(:last-of-type) {
  color: #d0d7de;
}

.scenario-shell.interface-v2.design-candidate-primer .context-path i,
.scenario-shell.interface-v2.design-candidate-primer .context-path b {
  color: #8c959f;
}

.scenario-shell.interface-v2.design-candidate-primer .header-logo {
  width: 30px;
  height: 30px;
  border: 1px solid #57606a;
  border-radius: 6px;
  color: #ffffff;
  background: #32383f;
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2.design-candidate-primer .global-search {
  width: clamp(220px, 24vw, 340px);
  height: 32px;
  border: 1px solid #57606a;
  border-radius: 6px;
  color: #b1bac4;
  background: #25292e;
}

.scenario-shell.interface-v2.design-candidate-primer .global-search:focus-within {
  border-color: #58a6ff;
  background: #32383f;
  box-shadow: 0 0 0 3px rgb(56 139 253 / 20%);
}

.scenario-shell.interface-v2.design-candidate-primer .global-search input {
  color: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-primer .global-search input::placeholder {
  color: #b1bac4;
}

.scenario-shell.interface-v2.design-candidate-primer .global-search kbd {
  border: 1px solid #57606a;
  border-radius: 4px;
  color: #b1bac4;
  background: #32383f;
}

.scenario-shell.interface-v2.design-candidate-primer .notification-button {
  width: 32px;
  height: 32px;
  border: 1px solid #57606a;
  border-radius: 6px;
  color: #ffffff;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-primer .notification-button b {
  border: 2px solid var(--nav);
  border-radius: 999px;
  color: #1f2328;
  background: #f0b72f;
}

.scenario-shell.interface-v2.design-candidate-primer .global-search-panel,
.scenario-shell.interface-v2.design-candidate-primer .notification-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-primer .global-search-panel a {
  border-radius: 6px;
}

.scenario-shell.interface-v2.design-candidate-primer .secondary-nav {
  height: var(--shell-tabs-height);
  min-height: var(--shell-tabs-height);
  max-height: var(--shell-tabs-height);
  align-items: stretch;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-sizing: border-box;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-primer .secondary-context {
  color: var(--muted);
  font-family: var(--editorial-sans);
  font-size: 10px;
  font-weight: 400;
}

.scenario-shell.interface-v2.design-candidate-primer .secondary-tabs {
  align-items: stretch;
  gap: 2px;
}

.scenario-shell.interface-v2.design-candidate-primer .secondary-tab {
  height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.scenario-shell.interface-v2.design-candidate-primer .secondary-tab.active {
  height: 48px;
  color: var(--ink);
  background: transparent;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-primer .secondary-tab.active::after {
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #fd8c73;
}

.scenario-shell.interface-v2.design-candidate-primer .secondary-actions {
  gap: 6px;
  padding-left: 8px;
}

.scenario-shell.interface-v2.design-candidate-primer .secondary-search {
  width: 168px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-primer .secondary-page-action {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: #f6f8fa;
  box-shadow: 0 1px 0 rgb(31 35 40 / 4%);
  font-size: 11px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-primer .secondary-page-action.primary {
  border-color: rgb(31 35 40 / 15%);
  color: #ffffff;
  background: var(--success);
}

.scenario-shell.interface-v2.design-candidate-primer .view-mode-switcher {
  height: 30px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f6f8fa;
}

.scenario-shell.interface-v2.design-candidate-primer .view-mode-switcher button {
  height: 24px;
  padding: 0 7px;
  border-radius: 4px;
}

.scenario-shell.interface-v2.design-candidate-primer .view-mode-switcher button.active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(31 35 40 / 12%);
}

.scenario-shell.interface-v2.design-candidate-primer .content-stage {
  padding: 0;
  background: var(--canvas);
}

.scenario-shell.interface-v2.design-candidate-primer .content-stage::before {
  display: none;
}

.scenario-shell.interface-v2.design-candidate-primer .page-stack,
.scenario-shell.interface-v2.design-candidate-primer .knowledge-workspace {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 64px;
  background: transparent;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-primer .page-heading,
.scenario-shell.interface-v2.design-candidate-primer .page-heading.compact {
  min-height: 0;
  align-items: end;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-primer .page-heading h1,
.scenario-shell.interface-v2.design-candidate-primer .knowledge-hero h1 {
  font-family: var(--editorial-sans);
  font-weight: 600;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.scenario-shell.interface-v2.design-candidate-primer .page-heading p,
.scenario-shell.interface-v2.design-candidate-primer .record-detail header p,
.scenario-shell.interface-v2.design-candidate-primer .context-card header p,
.scenario-shell.interface-v2.design-candidate-primer .knowledge-hero p,
.scenario-shell.interface-v2.design-candidate-primer .panel-heading p {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 500;
  letter-spacing: .04em;
}

.scenario-shell.interface-v2.design-candidate-primer .page-heading > div > span:not(.status),
.scenario-shell.interface-v2.design-candidate-primer .knowledge-hero > div > span {
  max-width: 72ch;
  color: var(--muted);
  font-family: var(--editorial-sans);
  font-size: 14px;
  line-height: 1.7;
}

.scenario-shell.interface-v2.design-candidate-primer .primary-button,
.scenario-shell.interface-v2.design-candidate-primer .secondary-button,
.scenario-shell.interface-v2.design-candidate-primer .danger-button {
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgb(31 35 40 / 4%);
  white-space: nowrap;
}

.scenario-shell.interface-v2.design-candidate-primer .primary-button {
  border-color: rgb(31 35 40 / 15%);
  background: var(--success);
}

.scenario-shell.interface-v2.design-candidate-primer .secondary-button {
  border-color: var(--line-strong);
  background: #f6f8fa;
}

.scenario-shell.interface-v2.design-candidate-primer .text-button,
.scenario-shell.interface-v2.design-candidate-primer .row-link {
  color: var(--accent);
  text-decoration: none;
}

.scenario-shell.interface-v2.design-candidate-primer .text-button::after,
.scenario-shell.interface-v2.design-candidate-primer .row-link::after {
  content: none;
}

.scenario-shell.interface-v2.design-candidate-primer .panel,
.scenario-shell.interface-v2.design-candidate-primer .context-card,
.scenario-shell.interface-v2.design-candidate-primer .channel-card,
.scenario-shell.interface-v2.design-candidate-primer .master-detail,
.scenario-shell.interface-v2.design-candidate-primer .empty-state,
.scenario-shell.interface-v2.design-candidate-primer .tenant-card,
.scenario-shell.interface-v2.design-candidate-primer .partner-card,
.scenario-shell.interface-v2.design-candidate-primer .tenant-facts,
.scenario-shell.interface-v2.design-candidate-primer .mvp-boundary {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-primer .panel-heading {
  min-height: 64px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-primer .panel-heading h2 {
  font-family: var(--editorial-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-primer .status {
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--editorial-sans);
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
}

.scenario-shell.interface-v2.design-candidate-primer .record-mark,
.scenario-shell.interface-v2.design-candidate-primer .tenant-logo,
.scenario-shell.interface-v2.design-candidate-primer .tenant-logo.compact {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #f6f8fa;
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2.design-candidate-primer .records-table {
  border-collapse: separate;
  border-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-primer .records-table th {
  height: 40px;
  color: var(--muted);
  background: #f6f8fa;
  font-family: var(--editorial-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-primer .records-table td {
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-primer .records-table td[data-numeric],
.scenario-shell.interface-v2.design-candidate-primer .metric-grid strong,
.scenario-shell.interface-v2.design-candidate-primer .knowledge-health strong,
.scenario-shell.interface-v2.design-candidate-primer code {
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-primer .filter-chips {
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-primer .filter-chips button,
.scenario-shell.interface-v2.design-candidate-primer .filter-chips button + button {
  min-height: 32px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-primer .filter-chips button.active {
  color: var(--accent-dark);
  border-color: #b6e3ff;
  background: var(--accent-soft);
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-primer .role-tags span,
.scenario-shell.interface-v2.design-candidate-primer .acquisition-badge,
.scenario-shell.interface-v2.design-candidate-primer .question-tags span,
.scenario-shell.interface-v2.design-candidate-primer .kb-map-tree h3 span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f6f8fa;
}

.scenario-shell.interface-v2.design-candidate-primer .form-grid input,
.scenario-shell.interface-v2.design-candidate-primer .drawer-fields input,
.scenario-shell.interface-v2.design-candidate-primer .drawer-fields textarea,
.scenario-shell.interface-v2.design-candidate-primer .drawer-fields select,
.scenario-shell.interface-v2.design-candidate-primer .domain-form-grid input,
.scenario-shell.interface-v2.design-candidate-primer .domain-form-grid select,
.scenario-shell.interface-v2.design-candidate-primer .domain-form-grid textarea,
.scenario-shell.interface-v2.design-candidate-primer .version-editor input,
.scenario-shell.interface-v2.design-candidate-primer .version-editor textarea,
.scenario-shell.interface-v2.design-candidate-primer .collection-row input,
.scenario-shell.interface-v2.design-candidate-primer .collection-row select,
.scenario-shell.interface-v2.design-candidate-primer .compare-selects select,
.scenario-shell.interface-v2.design-candidate-primer .access-table select {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgb(208 215 222 / 20%);
}

.scenario-shell.interface-v2.design-candidate-primer .production-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
  gap: 16px;
  padding: 24px 32px 64px;
}

.scenario-shell.interface-v2.design-candidate-primer .production-heading {
  grid-column: 1 / -1;
  min-height: 0;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  overflow: visible;
}

.scenario-shell.interface-v2.design-candidate-primer .production-heading::before,
.scenario-shell.interface-v2.design-candidate-primer .production-heading::after {
  display: none;
}

.scenario-shell.interface-v2.design-candidate-primer .production-heading h1 {
  max-width: none;
  margin: 4px 0 8px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -.025em;
}

.scenario-shell.interface-v2.design-candidate-primer .production-heading > div {
  max-width: 68%;
}

.scenario-shell.interface-v2.design-candidate-primer .production-heading > div > span {
  max-width: 62ch;
  color: var(--muted);
  font-size: 14px;
}

.scenario-shell.interface-v2.design-candidate-primer .production-entry {
  position: static;
  min-width: 220px;
  border: 1px solid rgb(31 35 40 / 15%);
  border-radius: 6px;
  color: #ffffff;
  background: var(--success);
  box-shadow: 0 1px 0 rgb(31 35 40 / 10%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-primer .production-entry span {
  color: rgb(255 255 255 / 78%);
}

.scenario-shell.interface-v2.design-candidate-primer .production-flow {
  grid-column: 1;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.scenario-shell.interface-v2.design-candidate-primer .production-flow article {
  min-height: 72px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-primer .production-flow article:last-child {
  border-bottom: 0;
}

.scenario-shell.interface-v2.design-candidate-primer .production-flow article > span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 18px;
  font-weight: 400;
}

.scenario-shell.interface-v2.design-candidate-primer .production-flow article.complete > span,
.scenario-shell.interface-v2.design-candidate-primer .production-flow article.pending > span {
  color: var(--accent);
}

.scenario-shell.interface-v2.design-candidate-primer .production-flow article.blocked > span {
  color: var(--danger);
}

.scenario-shell.interface-v2.design-candidate-primer .production-flow article small {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .04em;
}

.scenario-shell.interface-v2.design-candidate-primer .production-flow article strong {
  font-family: var(--editorial-sans);
  font-size: 13px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-primer .production-flow article p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.scenario-shell.interface-v2.design-candidate-primer .production-flow article > b {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f6f8fa;
  text-decoration: none;
}

.scenario-shell.interface-v2.design-candidate-primer .production-flow article.blocked > b {
  color: var(--danger);
  border-color: #ff8182;
  background: var(--danger-soft);
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-health {
  grid-column: 2;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-health article {
  min-height: 112px;
  padding: 14px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-health article:nth-child(2n) {
  border-right: 0;
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-health article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-health strong {
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 28px;
  font-weight: 500;
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-health article.danger {
  border: 0;
  background: var(--danger-soft);
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-health article.danger strong {
  color: var(--danger);
}

.scenario-shell.interface-v2.design-candidate-primer .production-dashboard-grid,
.scenario-shell.interface-v2.design-candidate-primer .customer-knowledge-spaces {
  grid-column: 1 / -1;
}

.scenario-shell.interface-v2.design-candidate-primer .production-dashboard-grid {
  gap: 16px;
}

.scenario-shell.interface-v2.design-candidate-primer .production-queue,
.scenario-shell.interface-v2.design-candidate-primer .customer-knowledge-spaces,
.scenario-shell.interface-v2.design-candidate-primer .generation-contract {
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-primer .queue-item {
  min-height: 58px;
  margin: 4px 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
}

.scenario-shell.interface-v2.design-candidate-primer .queue-item > span,
.scenario-shell.interface-v2.design-candidate-primer .queue-item.pending > span,
.scenario-shell.interface-v2.design-candidate-primer .queue-item.danger > span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
}

.scenario-shell.interface-v2.design-candidate-primer .queue-item strong {
  font-family: var(--editorial-sans);
  font-size: 12px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-primer .generation-contract {
  border: 1px solid var(--line) !important;
  border-radius: 6px;
  transform: none;
}

.scenario-shell.interface-v2.design-candidate-primer .generation-contract header small {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .04em;
}

.scenario-shell.interface-v2.design-candidate-primer .generation-contract header h2 {
  font-family: var(--editorial-sans);
  font-size: 17px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-primer .generation-contract dl div {
  border-bottom-color: var(--line);
}

.scenario-shell.interface-v2.design-candidate-primer .generation-contract code {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.scenario-shell.interface-v2.design-candidate-primer .customer-knowledge-spaces > div {
  gap: 1px;
  background: var(--line);
}

.scenario-shell.interface-v2.design-candidate-primer .customer-knowledge-spaces > div > a {
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-primer .customer-knowledge-spaces b {
  color: var(--accent);
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-workspace {
  --kb-navy: var(--ink);
  --kb-blue: var(--accent);
  --kb-teal: var(--success);
  --kb-paper: #ffffff;
  padding: 24px 32px 64px;
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-hero {
  min-height: 0;
  padding: 4px 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-hero h1 {
  font-size: clamp(28px, 3vw, 36px);
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-hero-status {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-hero-status span {
  border-color: var(--line);
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-view-nav {
  gap: 4px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-view-nav a {
  min-height: 44px;
  padding-inline: 12px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-view-nav a.active {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 -2px 0 #fd8c73;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-import-entry {
  margin-bottom: 16px;
  border: 1px solid #54aeff;
  border-radius: 6px;
  background: var(--accent-soft);
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-import-entry span {
  color: var(--accent-dark);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .04em;
}

.scenario-shell.interface-v2.design-candidate-primer .knowledge-import-entry strong {
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2.design-candidate-primer .kb-workbench {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}

.scenario-shell.interface-v2.design-candidate-primer .kb-document-layout,
.scenario-shell.interface-v2.design-candidate-primer .kb-release-layout {
  gap: 16px;
}

.scenario-shell.interface-v2.design-candidate-primer .kb-map,
.scenario-shell.interface-v2.design-candidate-primer .kb-generation,
.scenario-shell.interface-v2.design-candidate-primer .kb-card-editor {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-primer .kb-map > header,
.scenario-shell.interface-v2.design-candidate-primer .kb-generation > header,
.scenario-shell.interface-v2.design-candidate-primer .kb-document-layout aside > header,
.scenario-shell.interface-v2.design-candidate-primer .kb-release-steps article > header,
.scenario-shell.interface-v2.design-candidate-primer .kb-release-header,
.scenario-shell.interface-v2.design-candidate-primer .kb-release-result > header,
.scenario-shell.interface-v2.design-candidate-primer .kb-card-editor > header {
  border-bottom: 1px solid var(--line);
}

.scenario-shell.interface-v2.design-candidate-primer .kb-map h2,
.scenario-shell.interface-v2.design-candidate-primer .kb-generation h2,
.scenario-shell.interface-v2.design-candidate-primer .kb-document-layout aside h2,
.scenario-shell.interface-v2.design-candidate-primer .kb-release-layout h2,
.scenario-shell.interface-v2.design-candidate-primer .kb-release-layout h3,
.scenario-shell.interface-v2.design-candidate-primer .kb-card-editor h2,
.scenario-shell.interface-v2.design-candidate-primer .kb-editor-canvas h3,
.scenario-shell.interface-v2.design-candidate-primer .kb-document-paper h1,
.scenario-shell.interface-v2.design-candidate-primer .kb-component-boundary h2 {
  font-family: var(--editorial-sans);
  font-weight: 600;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-primer .kb-icon-action {
  border: 1px solid rgb(31 35 40 / 15%);
  border-radius: 6px;
  color: #ffffff;
  background: var(--success);
}

.scenario-shell.interface-v2.design-candidate-primer .kb-inline-search {
  margin: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-primer .kb-map-tree h3 span,
.scenario-shell.interface-v2.design-candidate-primer .kb-card-type,
.scenario-shell.interface-v2.design-candidate-primer .kb-map-tree button,
.scenario-shell.interface-v2.design-candidate-primer .kb-editor-toolbar button,
.scenario-shell.interface-v2.design-candidate-primer .kb-document-toolbar button,
.scenario-shell.interface-v2.design-candidate-primer .kb-query-context {
  border-radius: 6px;
}

.scenario-shell.interface-v2.design-candidate-primer .kb-map-tree button.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-primer .kb-card-type {
  border: 1px solid #54aeff;
  color: var(--accent-dark);
  background: #ffffff;
  font-family: var(--editorial-sans);
}

.scenario-shell.interface-v2.design-candidate-primer .kb-eyebrow {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .04em;
}

.scenario-shell.interface-v2.design-candidate-primer .kb-editor-toolbar,
.scenario-shell.interface-v2.design-candidate-primer .kb-document-toolbar {
  background: #f6f8fa;
}

.scenario-shell.interface-v2.design-candidate-primer .kb-editor-toolbar button,
.scenario-shell.interface-v2.design-candidate-primer .kb-document-toolbar button {
  border-radius: 6px;
}

.scenario-shell.interface-v2.design-candidate-primer .kb-editor-canvas {
  margin: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 55px, #eaeef2 56px, transparent 57px),
    #ffffff;
}

.scenario-shell.interface-v2.design-candidate-primer .kb-editor-canvas:focus {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.scenario-shell.interface-v2.design-candidate-primer .kb-editor-canvas p,
.scenario-shell.interface-v2.design-candidate-primer .kb-component-boundary p,
.scenario-shell.interface-v2.design-candidate-primer .kb-document-lead {
  color: var(--ink);
  font-family: var(--editorial-sans);
  font-size: 14px;
  line-height: 1.75;
}

.scenario-shell.interface-v2.design-candidate-primer .kb-card-metadata {
  background: #f6f8fa;
}

.scenario-shell.interface-v2.design-candidate-primer .kb-query-context {
  border: 1px solid var(--line);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-primer .drawer,
.scenario-shell.interface-v2.design-candidate-primer .confirmation-dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.scenario-shell.interface-v2.design-candidate-primer .toast {
  border: 1px solid #3d444d;
  border-radius: 6px;
  color: rgba(255, 255, 255, .85);
  background: var(--nav);
  box-shadow: var(--shadow);
}

@media (hover: hover) and (pointer: fine) {
  .scenario-shell.interface-v2.design-candidate-primer .nav-link:hover,
  .scenario-shell.interface-v2.design-candidate-primer .global-search-panel a:hover,
  .scenario-shell.interface-v2.design-candidate-primer .records-table tbody tr:hover td,
  .scenario-shell.interface-v2.design-candidate-primer .channel-health > article:hover,
  .scenario-shell.interface-v2.design-candidate-primer .attention-list > article:hover,
  .scenario-shell.interface-v2.design-candidate-primer .customer-strip a:hover,
  .scenario-shell.interface-v2.design-candidate-primer .customer-knowledge-spaces > div > a:hover,
  .scenario-shell.interface-v2.design-candidate-primer .queue-item:hover,
  .scenario-shell.interface-v2.design-candidate-primer .kb-map-tree button:hover {
    background: #f3f4f6;
  }

  .scenario-shell.interface-v2.design-candidate-primer .nav-link.active:hover,
  .scenario-shell.interface-v2.design-candidate-primer .kb-map-tree button.active:hover {
    background: var(--accent-soft);
  }

  .scenario-shell.interface-v2.design-candidate-primer .primary-button:hover,
  .scenario-shell.interface-v2.design-candidate-primer .production-entry:hover,
  .scenario-shell.interface-v2.design-candidate-primer .secondary-page-action.primary:hover,
  .scenario-shell.interface-v2.design-candidate-primer .kb-icon-action:hover {
    background: #2da44e;
  }

  .scenario-shell.interface-v2.design-candidate-primer .secondary-button:hover,
  .scenario-shell.interface-v2.design-candidate-primer .secondary-page-action:hover {
    background: #f3f4f6;
  }

  .scenario-shell.interface-v2.design-candidate-primer .text-button:hover,
  .scenario-shell.interface-v2.design-candidate-primer .row-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (max-width: 1100px) {
  .scenario-shell.interface-v2.design-candidate-primer .production-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-primer .production-flow,
  .scenario-shell.interface-v2.design-candidate-primer .knowledge-health {
    grid-column: 1;
  }

  .scenario-shell.interface-v2.design-candidate-primer .knowledge-health {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .scenario-shell.interface-v2.design-candidate-primer .knowledge-health article,
  .scenario-shell.interface-v2.design-candidate-primer .knowledge-health article:nth-child(2n),
  .scenario-shell.interface-v2.design-candidate-primer .knowledge-health article.danger {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .scenario-shell.interface-v2.design-candidate-primer .knowledge-health article:last-child {
    border-right: 0;
  }
}

@media (max-width: 1050px) {
  .scenario-shell.interface-v2.design-candidate-primer .page-stack,
  .scenario-shell.interface-v2.design-candidate-primer .knowledge-workspace,
  .scenario-shell.interface-v2.design-candidate-primer .production-overview {
    padding: 20px 24px 56px;
  }
}

@media (max-width: 860px) {
  .scenario-shell.interface-v2.design-candidate-primer .page-stack,
  .scenario-shell.interface-v2.design-candidate-primer .knowledge-workspace,
  .scenario-shell.interface-v2.design-candidate-primer .production-overview {
    padding: 16px;
  }

  .scenario-shell.interface-v2.design-candidate-primer .topbar {
    background: var(--nav);
  }

  .scenario-shell.interface-v2.design-candidate-primer .kb-workbench,
  .scenario-shell.interface-v2.design-candidate-primer .kb-document-layout,
  .scenario-shell.interface-v2.design-candidate-primer .kb-release-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-primer .kb-map,
  .scenario-shell.interface-v2.design-candidate-primer .kb-card-stage,
  .scenario-shell.interface-v2.design-candidate-primer .kb-card-editor,
  .scenario-shell.interface-v2.design-candidate-primer .kb-generation {
    min-width: 0;
    width: 100%;
  }

  .scenario-shell.interface-v2.design-candidate-primer.view-mode-focus .sidebar nav {
    padding-top: 16px;
  }
}

@media (max-width: 620px) {
  .scenario-shell.interface-v2.design-candidate-primer .workspace {
    grid-template-rows: var(--shell-header-height) 0 minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-primer .secondary-nav {
    display: none;
  }

  .scenario-shell.interface-v2.design-candidate-primer .secondary-tab {
    padding-inline: 10px;
  }

  .scenario-shell.interface-v2.design-candidate-primer .production-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
  }

  .scenario-shell.interface-v2.design-candidate-primer .production-heading > div {
    max-width: none;
  }

  .scenario-shell.interface-v2.design-candidate-primer .production-heading h1 {
    font-size: 28px;
  }

  .scenario-shell.interface-v2.design-candidate-primer .production-entry {
    width: 100%;
    min-width: 0;
  }

  .scenario-shell.interface-v2.design-candidate-primer .production-flow article {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-primer .production-flow article > b {
    grid-column: 2;
    justify-self: start;
  }

  .scenario-shell.interface-v2.design-candidate-primer .knowledge-health {
    grid-template-columns: 1fr 1fr;
  }

  .scenario-shell.interface-v2.design-candidate-primer .knowledge-health article,
  .scenario-shell.interface-v2.design-candidate-primer .knowledge-health article:nth-child(2n),
  .scenario-shell.interface-v2.design-candidate-primer .knowledge-health article.danger {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .scenario-shell.interface-v2.design-candidate-primer .knowledge-health article:nth-child(2n) {
    border-right: 0;
  }

  .scenario-shell.interface-v2.design-candidate-primer .knowledge-health article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .scenario-shell.interface-v2.design-candidate-primer .knowledge-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scenario-shell.interface-v2.design-candidate-primer *,
  .scenario-shell.interface-v2.design-candidate-primer *::before,
  .scenario-shell.interface-v2.design-candidate-primer *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
/* === END ARCHIVED DESIGN CANDIDATE: PRIMER === */

/* === ARCHIVED DESIGN CANDIDATE: GOV.UK (THROWAWAY PROTOTYPE) ===
 * Question: can direct task language, strong focus treatment and explicit
 * recovery paths make THOR feel more trustworthy without becoming a
 * government-site imitation?
 * The candidate hook is internal; evaluation controls never enter the UI.
 */
.scenario-shell.interface-v2.design-candidate-govuk {
  --shell-sidebar-width: 244px;
  --shell-header-height: 48px;
  --shell-tabs-height: 48px;
  --ink: #0b0c0c;
  --muted: #505a5f;
  --line: #b1b4b6;
  --line-strong: #0b0c0c;
  --surface: #ffffff;
  --surface-soft: #f3f2f1;
  --canvas: #ffffff;
  --nav: #0b0c0c;
  --nav-soft: #262a2c;
  --accent: #1d70b8;
  --accent-dark: #003078;
  --accent-soft: #e8f1f8;
  --success: #00703c;
  --success-dark: #002d18;
  --success-soft: #cce2d8;
  --warning: #594d00;
  --warning-soft: #fff7bf;
  --focus: #ffdd00;
  --danger: #d4351c;
  --danger-soft: #f6d7d2;
  --shadow: none;
  --editorial-serif: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --editorial-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --proof-red: var(--danger);
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--editorial-sans);
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-govuk ::selection {
  color: var(--ink);
  background: var(--focus);
}

.scenario-shell.interface-v2.design-candidate-govuk button,
.scenario-shell.interface-v2.design-candidate-govuk a,
.scenario-shell.interface-v2.design-candidate-govuk input,
.scenario-shell.interface-v2.design-candidate-govuk select,
.scenario-shell.interface-v2.design-candidate-govuk textarea {
  font-family: inherit;
}

.scenario-shell.interface-v2.design-candidate-govuk i {
  font-style: normal;
}

.scenario-shell.interface-v2.design-candidate-govuk button:focus-visible,
.scenario-shell.interface-v2.design-candidate-govuk input:focus-visible,
.scenario-shell.interface-v2.design-candidate-govuk select:focus-visible,
.scenario-shell.interface-v2.design-candidate-govuk textarea:focus-visible,
.scenario-shell.interface-v2.design-candidate-govuk a:focus-visible,
.scenario-shell.interface-v2.design-candidate-govuk [contenteditable="true"]:focus-visible {
  z-index: 3;
  outline: 3px solid var(--focus);
  outline-offset: 0;
  box-shadow: 0 4px 0 var(--ink);
}

.scenario-shell.interface-v2.design-candidate-govuk .sidebar {
  color: var(--ink);
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .brand {
  height: var(--shell-header-height);
  min-height: var(--shell-header-height);
  max-height: var(--shell-header-height);
  gap: 10px;
  padding: 0 14px;
  border: 0;
  border-bottom: 4px solid #00a0a8;
  color: #ffffff;
  background: var(--nav);
  box-sizing: border-box;
}

.scenario-shell.interface-v2.design-candidate-govuk .brand-mark {
  width: 30px;
  height: 30px;
  border: 2px solid #ffffff;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-govuk .brand strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-govuk .brand small {
  color: rgba(255, 255, 255, .72);
  font-size: 8px;
  letter-spacing: .11em;
}

.scenario-shell.interface-v2.design-candidate-govuk .brand .icon-button {
  color: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .sidebar nav {
  padding: calc(var(--shell-tabs-height) + 15px) 15px 20px;
}

.scenario-shell.interface-v2.design-candidate-govuk .nav-workspace-group {
  margin-bottom: 25px;
}

.scenario-shell.interface-v2.design-candidate-govuk .nav-workspace-label {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-govuk .nav-link {
  min-height: 40px;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #d8d8d8;
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .nav-link svg {
  width: 17px;
  height: 17px;
  color: var(--ink);
}

.scenario-shell.interface-v2.design-candidate-govuk .nav-link b {
  min-width: 24px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-govuk .nav-link.active {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--focus);
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .sidebar-footer {
  min-height: 64px;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .actor-avatar {
  border: 2px solid var(--ink);
  border-radius: 0;
  color: #ffffff;
  background: var(--ink);
}

.scenario-shell.interface-v2.design-candidate-govuk .actor-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-govuk .actor-copy small {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-govuk .workspace {
  color: var(--ink);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .topbar {
  height: var(--shell-header-height);
  min-height: var(--shell-header-height);
  max-height: var(--shell-header-height);
  gap: 18px;
  padding: 0 14px 0 18px;
  border: 0;
  border-bottom: 4px solid #00a0a8;
  color: #ffffff;
  background: var(--nav);
  box-sizing: border-box;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .workspace-kicker {
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-govuk .context-path {
  color: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .context-path strong {
  color: #ffffff;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-govuk .context-path i,
.scenario-shell.interface-v2.design-candidate-govuk .context-path b {
  color: rgba(255, 255, 255, .68);
}

.scenario-shell.interface-v2.design-candidate-govuk .header-logo {
  width: 32px;
  height: 32px;
  border: 2px solid #ffffff;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-govuk .global-search {
  min-height: 36px;
  border: 2px solid #ffffff;
  border-radius: 0;
  color: #ffffff;
  background: #262a2c;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .global-search input {
  color: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .global-search input::placeholder {
  color: rgba(255, 255, 255, .68);
}

.scenario-shell.interface-v2.design-candidate-govuk .global-search svg {
  color: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .global-search kbd {
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 0;
  color: #ffffff;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-govuk .notification-button,
.scenario-shell.interface-v2.design-candidate-govuk .mobile-only.icon-button {
  border: 2px solid #ffffff;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-govuk .notification-button b {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--focus);
}

.scenario-shell.interface-v2.design-candidate-govuk .global-search-panel,
.scenario-shell.interface-v2.design-candidate-govuk .notification-panel {
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 5px 0 rgb(11 12 12 / 22%);
}

.scenario-shell.interface-v2.design-candidate-govuk .secondary-nav {
  height: var(--shell-tabs-height);
  min-height: var(--shell-tabs-height);
  max-height: var(--shell-tabs-height);
  gap: 20px;
  padding: 0 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
  box-sizing: border-box;
}

.scenario-shell.interface-v2.design-candidate-govuk .secondary-context {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-govuk .secondary-tabs {
  align-self: stretch;
  gap: 20px;
}

.scenario-shell.interface-v2.design-candidate-govuk .secondary-tab {
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .secondary-tab.active {
  border-bottom: 5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .secondary-actions {
  gap: 10px;
}

.scenario-shell.interface-v2.design-candidate-govuk .secondary-search {
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .view-mode-switcher {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-soft);
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .view-mode-switcher button {
  border-radius: 0;
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-govuk .view-mode-switcher button.active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: inset 0 -3px 0 var(--ink);
}

.scenario-shell.interface-v2.design-candidate-govuk .view-mode-switcher button.active:focus-visible {
  background: var(--focus);
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .page-stack,
.scenario-shell.interface-v2.design-candidate-govuk .knowledge-workspace {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 35px 40px 70px;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-overview {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: start;
  gap: 30px 40px;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-heading {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: 40px;
  min-height: 0;
  padding: 0 0 30px;
  border: 0;
  border-bottom: 5px solid var(--ink);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-heading::before,
.scenario-shell.interface-v2.design-candidate-govuk .production-heading::after {
  display: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-heading > div {
  max-width: 720px;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-heading p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-heading h1 {
  margin: 0 0 15px;
  color: var(--ink);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-heading > div > span {
  display: block;
  max-width: 44em;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.scenario-shell.interface-v2.design-candidate-govuk .primary-button,
.scenario-shell.interface-v2.design-candidate-govuk .production-entry,
.scenario-shell.interface-v2.design-candidate-govuk .secondary-page-action.primary,
.scenario-shell.interface-v2.design-candidate-govuk .kb-icon-action {
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: var(--success);
  box-shadow: 0 2px 0 var(--success-dark);
}

.scenario-shell.interface-v2.design-candidate-govuk .production-entry {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 10px 15px;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-entry span,
.scenario-shell.interface-v2.design-candidate-govuk .production-entry strong {
  grid-column: 1;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-entry span {
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-entry strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-entry b {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #ffffff;
  font-size: 26px;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-flow {
  grid-column: 1;
  display: block;
  overflow: visible;
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-flow::before {
  content: "完成知识发布";
  display: block;
  padding: 15px 0 10px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-flow article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 78px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-flow article > span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-flow article > div small {
  display: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-flow article > div strong {
  display: block;
  color: var(--accent);
  font-size: 17px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-flow article > div p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-flow article > b,
.scenario-shell.interface-v2.design-candidate-govuk .status {
  min-width: max-content;
  padding: 4px 8px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-flow article.complete > b,
.scenario-shell.interface-v2.design-candidate-govuk .status.success {
  color: #ffffff;
  background: var(--success);
}

.scenario-shell.interface-v2.design-candidate-govuk .production-flow article.pending > b,
.scenario-shell.interface-v2.design-candidate-govuk .status.pending {
  color: var(--ink);
  background: var(--warning-soft);
}

.scenario-shell.interface-v2.design-candidate-govuk .production-flow article.blocked > b,
.scenario-shell.interface-v2.design-candidate-govuk .status.danger {
  color: #ffffff;
  background: var(--danger);
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-health {
  grid-column: 2;
  display: block;
  overflow: visible;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-health::before {
  content: "当前生产状态";
  display: block;
  padding: 12px 15px;
  color: #ffffff;
  background: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-health article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 15px;
  min-height: 0;
  padding: 14px 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-health article:last-child {
  border-bottom: 0;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-health article > span {
  grid-column: 1;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-health article > strong {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-health article > small {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-health article.danger {
  border: 0;
  background: var(--danger-soft);
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-health article.danger strong {
  color: var(--danger);
}

.scenario-shell.interface-v2.design-candidate-govuk .production-dashboard-grid,
.scenario-shell.interface-v2.design-candidate-govuk .customer-knowledge-spaces {
  grid-column: 1 / -1;
}

.scenario-shell.interface-v2.design-candidate-govuk .production-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 40px;
}

.scenario-shell.interface-v2.design-candidate-govuk .panel,
.scenario-shell.interface-v2.design-candidate-govuk .production-queue,
.scenario-shell.interface-v2.design-candidate-govuk .generation-contract,
.scenario-shell.interface-v2.design-candidate-govuk .customer-knowledge-spaces {
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .panel-heading {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.scenario-shell.interface-v2.design-candidate-govuk .panel-heading p,
.scenario-shell.interface-v2.design-candidate-govuk .generation-contract header small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.scenario-shell.interface-v2.design-candidate-govuk .panel-heading h2,
.scenario-shell.interface-v2.design-candidate-govuk .generation-contract h2,
.scenario-shell.interface-v2.design-candidate-govuk .customer-knowledge-spaces h2 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-govuk .panel-heading span {
  color: var(--muted);
  font-size: 14px;
}

.scenario-shell.interface-v2.design-candidate-govuk .text-button,
.scenario-shell.interface-v2.design-candidate-govuk .row-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.scenario-shell.interface-v2.design-candidate-govuk .queue-item {
  min-height: 74px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .queue-item > span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-govuk .queue-item strong {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.scenario-shell.interface-v2.design-candidate-govuk .queue-item b {
  border-radius: 0;
}

.scenario-shell.interface-v2.design-candidate-govuk .generation-contract {
  padding: 0;
  background: var(--surface-soft);
}

.scenario-shell.interface-v2.design-candidate-govuk .generation-contract header,
.scenario-shell.interface-v2.design-candidate-govuk .generation-contract dl,
.scenario-shell.interface-v2.design-candidate-govuk .generation-contract footer {
  padding-right: 15px;
  padding-left: 15px;
}

.scenario-shell.interface-v2.design-candidate-govuk .generation-contract header {
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.scenario-shell.interface-v2.design-candidate-govuk .generation-contract dl div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.scenario-shell.interface-v2.design-candidate-govuk .generation-contract dt {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-govuk .generation-contract dd {
  color: var(--ink);
}

.scenario-shell.interface-v2.design-candidate-govuk .generation-contract footer {
  border-top: 0;
}

.scenario-shell.interface-v2.design-candidate-govuk .customer-knowledge-spaces > div {
  gap: 0;
}

.scenario-shell.interface-v2.design-candidate-govuk .customer-knowledge-spaces > div > a {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--accent);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .customer-knowledge-spaces > div > a:last-child {
  border-bottom: 0;
}

.scenario-shell.interface-v2.design-candidate-govuk .record-mark {
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--focus);
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  min-height: 0;
  padding: 0 0 25px;
  border: 0;
  border-bottom: 5px solid var(--ink);
  border-radius: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-hero > div:first-child {
  max-width: 720px;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-hero p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-hero h1 {
  color: var(--ink);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 600;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-hero > div:first-child > span {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-hero-status {
  display: block;
  min-width: 210px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-hero-status span {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-hero-status span:last-child {
  border-bottom: 0;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-view-nav {
  gap: 25px;
  min-height: 54px;
  margin: 0 0 25px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-view-nav a {
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-view-nav a.active {
  border-bottom: 5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-import-entry {
  margin-bottom: 25px;
  padding: 15px;
  border: 4px solid var(--accent);
  border-radius: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-import-entry span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-import-entry strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-govuk .knowledge-import-entry small {
  color: var(--ink);
  line-height: 1.5;
}

.scenario-shell.interface-v2.design-candidate-govuk .secondary-button,
.scenario-shell.interface-v2.design-candidate-govuk .secondary-page-action {
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--surface-soft);
  box-shadow: 0 2px 0 var(--ink);
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-workbench,
.scenario-shell.interface-v2.design-candidate-govuk .kb-document-layout,
.scenario-shell.interface-v2.design-candidate-govuk .kb-release-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-workbench {
  grid-template-columns: 290px minmax(0, 1fr);
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-map,
.scenario-shell.interface-v2.design-candidate-govuk .kb-generation,
.scenario-shell.interface-v2.design-candidate-govuk .kb-card-editor {
  overflow: visible;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-map > header,
.scenario-shell.interface-v2.design-candidate-govuk .kb-generation > header,
.scenario-shell.interface-v2.design-candidate-govuk .kb-card-editor > header,
.scenario-shell.interface-v2.design-candidate-govuk .kb-document-layout aside > header,
.scenario-shell.interface-v2.design-candidate-govuk .kb-release-header,
.scenario-shell.interface-v2.design-candidate-govuk .kb-release-result > header {
  padding: 15px;
  border-bottom: 2px solid var(--ink);
  background: var(--surface-soft);
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-map h2,
.scenario-shell.interface-v2.design-candidate-govuk .kb-generation h2,
.scenario-shell.interface-v2.design-candidate-govuk .kb-card-editor h2,
.scenario-shell.interface-v2.design-candidate-govuk .kb-document-layout aside h2,
.scenario-shell.interface-v2.design-candidate-govuk .kb-release-layout h2,
.scenario-shell.interface-v2.design-candidate-govuk .kb-release-layout h3,
.scenario-shell.interface-v2.design-candidate-govuk .kb-editor-canvas h3,
.scenario-shell.interface-v2.design-candidate-govuk .kb-document-paper h1,
.scenario-shell.interface-v2.design-candidate-govuk .kb-component-boundary h2 {
  color: var(--ink);
  font-family: var(--editorial-sans);
  font-weight: 600;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-inline-search {
  margin: 15px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-map-tree {
  padding: 0 15px 15px;
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-map-tree h3 {
  padding: 10px 0 5px;
  border-bottom: 1px solid var(--line);
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-map-tree h3 span,
.scenario-shell.interface-v2.design-candidate-govuk .kb-card-type,
.scenario-shell.interface-v2.design-candidate-govuk .kb-map-tree button,
.scenario-shell.interface-v2.design-candidate-govuk .kb-editor-toolbar button,
.scenario-shell.interface-v2.design-candidate-govuk .kb-document-toolbar button,
.scenario-shell.interface-v2.design-candidate-govuk .kb-query-context {
  border-radius: 0;
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-map-tree button {
  margin-top: 5px;
  border: 2px solid transparent;
  color: var(--accent);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-map-tree button.active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--focus);
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-card-type {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-editor-toolbar,
.scenario-shell.interface-v2.design-candidate-govuk .kb-document-toolbar {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-editor-toolbar button,
.scenario-shell.interface-v2.design-candidate-govuk .kb-document-toolbar button {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-editor-canvas {
  margin: 0;
  min-height: 300px;
  padding: 30px;
  border: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-editor-canvas p,
.scenario-shell.interface-v2.design-candidate-govuk .kb-component-boundary p,
.scenario-shell.interface-v2.design-candidate-govuk .kb-document-lead {
  max-width: 65ch;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-card-metadata {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.scenario-shell.interface-v2.design-candidate-govuk .kb-query-context {
  border: 2px solid var(--ink);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-govuk .error-summary,
.scenario-shell.interface-v2.design-candidate-govuk .error-state,
.scenario-shell.interface-v2.design-candidate-govuk .failure-summary {
  border: 4px solid var(--danger);
  border-radius: 0;
  color: var(--ink);
  background: #ffffff;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .failure-state {
  display: grid;
  place-items: start;
  align-content: start;
  gap: 15px;
  width: calc(100% - 80px);
  max-width: 760px;
  min-height: 0;
  margin: 50px auto;
  padding: 30px;
  border: 4px solid var(--danger);
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}

.scenario-shell.interface-v2.design-candidate-govuk .failure-state > span {
  color: var(--danger);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 28px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-govuk .failure-state h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

.scenario-shell.interface-v2.design-candidate-govuk .failure-state p {
  max-width: 55ch;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.scenario-shell.interface-v2.design-candidate-govuk .field-error,
.scenario-shell.interface-v2.design-candidate-govuk .error-message {
  color: var(--danger);
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-govuk .drawer,
.scenario-shell.interface-v2.design-candidate-govuk .confirmation-dialog {
  border: 3px solid var(--ink);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 8px 0 rgb(11 12 12 / 24%);
}

.scenario-shell.interface-v2.design-candidate-govuk .toast {
  border: 3px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--focus);
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-govuk .primary-button:active,
.scenario-shell.interface-v2.design-candidate-govuk .production-entry:active,
.scenario-shell.interface-v2.design-candidate-govuk .secondary-page-action.primary:active,
.scenario-shell.interface-v2.design-candidate-govuk .kb-icon-action:active,
.scenario-shell.interface-v2.design-candidate-govuk .secondary-button:active,
.scenario-shell.interface-v2.design-candidate-govuk .secondary-page-action:active {
  transform: translateY(2px);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .scenario-shell.interface-v2.design-candidate-govuk .nav-link:hover,
  .scenario-shell.interface-v2.design-candidate-govuk .secondary-tab:hover,
  .scenario-shell.interface-v2.design-candidate-govuk .knowledge-view-nav a:hover,
  .scenario-shell.interface-v2.design-candidate-govuk .text-button:hover,
  .scenario-shell.interface-v2.design-candidate-govuk .row-link:hover,
  .scenario-shell.interface-v2.design-candidate-govuk .queue-item:hover strong,
  .scenario-shell.interface-v2.design-candidate-govuk .production-flow article:hover strong {
    color: var(--accent-dark);
    text-decoration-thickness: 3px;
  }

  .scenario-shell.interface-v2.design-candidate-govuk .primary-button:hover,
  .scenario-shell.interface-v2.design-candidate-govuk .production-entry:hover,
  .scenario-shell.interface-v2.design-candidate-govuk .secondary-page-action.primary:hover,
  .scenario-shell.interface-v2.design-candidate-govuk .kb-icon-action:hover {
    background: #005a30;
  }

  .scenario-shell.interface-v2.design-candidate-govuk .secondary-button:hover,
  .scenario-shell.interface-v2.design-candidate-govuk .secondary-page-action:hover {
    background: #dbdad9;
  }
}

@media (max-width: 1120px) {
  .scenario-shell.interface-v2.design-candidate-govuk .production-overview,
  .scenario-shell.interface-v2.design-candidate-govuk .production-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-govuk .production-flow,
  .scenario-shell.interface-v2.design-candidate-govuk .knowledge-health {
    grid-column: 1;
  }
}

@media (max-width: 1050px) {
  .scenario-shell.interface-v2.design-candidate-govuk .page-stack,
  .scenario-shell.interface-v2.design-candidate-govuk .knowledge-workspace {
    padding: 30px 25px 60px;
  }
}

@media (max-width: 1000px) and (min-width: 641px) {
  .scenario-shell.interface-v2.design-candidate-govuk .production-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .scenario-shell.interface-v2.design-candidate-govuk .production-entry {
    max-width: 340px;
  }
}

@media (max-width: 860px) {
  .scenario-shell.interface-v2.design-candidate-govuk .page-stack,
  .scenario-shell.interface-v2.design-candidate-govuk .knowledge-workspace {
    padding: 25px 16px 50px;
  }

  .scenario-shell.interface-v2.design-candidate-govuk .kb-workbench,
  .scenario-shell.interface-v2.design-candidate-govuk .kb-document-layout,
  .scenario-shell.interface-v2.design-candidate-govuk .kb-release-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-govuk .kb-map,
  .scenario-shell.interface-v2.design-candidate-govuk .kb-card-stage,
  .scenario-shell.interface-v2.design-candidate-govuk .kb-card-editor,
  .scenario-shell.interface-v2.design-candidate-govuk .kb-generation {
    min-width: 0;
    width: 100%;
  }

  .scenario-shell.interface-v2.design-candidate-govuk.view-mode-focus .sidebar nav {
    padding-top: 15px;
  }
}

@media (max-width: 640px) {
  .scenario-shell.interface-v2.design-candidate-govuk .workspace {
    grid-template-rows: var(--shell-header-height) 0 minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-govuk .secondary-nav {
    display: none;
  }

  .scenario-shell.interface-v2.design-candidate-govuk .production-heading,
  .scenario-shell.interface-v2.design-candidate-govuk .knowledge-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }

  .scenario-shell.interface-v2.design-candidate-govuk .production-heading h1 {
    font-size: 36px;
  }

  .scenario-shell.interface-v2.design-candidate-govuk .production-entry {
    max-width: none;
  }

  .scenario-shell.interface-v2.design-candidate-govuk .production-flow article {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-govuk .production-flow article > b {
    grid-column: 2;
    justify-self: start;
  }

  .scenario-shell.interface-v2.design-candidate-govuk .knowledge-hero-status {
    width: 100%;
  }

  .scenario-shell.interface-v2.design-candidate-govuk .knowledge-view-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .scenario-shell.interface-v2.design-candidate-govuk .knowledge-view-nav a {
    justify-content: center;
    min-width: 0;
    padding-inline: 4px;
    font-size: 14px;
    text-align: center;
  }

  .scenario-shell.interface-v2.design-candidate-govuk .knowledge-import-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .scenario-shell.interface-v2.design-candidate-govuk .failure-state {
    width: calc(100% - 32px);
    margin: 25px auto;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scenario-shell.interface-v2.design-candidate-govuk *,
  .scenario-shell.interface-v2.design-candidate-govuk *::before,
  .scenario-shell.interface-v2.design-candidate-govuk *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
/* === END ARCHIVED DESIGN CANDIDATE: GOV.UK === */

/* === ARCHIVED DESIGN CANDIDATE: ATLASSIAN (THROWAWAY PROTOTYPE) ===
 * Question: does an editing-first, three-pane collaboration workspace make
 * knowledge objects and their release state easier to work with?
 * The styling hook is internal; no evaluation controls enter the product UI.
 */
.scenario-shell.interface-v2.design-candidate-atlassian {
  --shell-sidebar-width: 224px;
  --shell-header-height: 48px;
  --shell-tabs-height: 48px;
  --ink: #172b4d;
  --muted: #44546f;
  --line: #dcdfe4;
  --line-strong: #8590a2;
  --surface: #ffffff;
  --surface-soft: #f7f8f9;
  --canvas: #f7f8f9;
  --nav: #ffffff;
  --nav-soft: #f1f2f4;
  --accent: #1868db;
  --accent-dark: #0c66e4;
  --accent-soft: #e9f2ff;
  --success: #216e4e;
  --success-soft: #dcfff1;
  --warning: #a54800;
  --warning-soft: #fff3eb;
  --danger: #ae2a19;
  --danger-soft: #ffeceb;
  --shadow-raised: 0 1px 1px rgb(9 30 66 / 15%), 0 0 1px rgb(9 30 66 / 31%);
  --shadow-overlay: 0 8px 16px rgb(9 30 66 / 25%), 0 0 1px rgb(9 30 66 / 31%);
  --editorial-serif: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --editorial-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --proof-red: var(--danger);
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--editorial-sans);
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-atlassian ::selection {
  color: var(--ink);
  background: #cce0ff;
}

.scenario-shell.interface-v2.design-candidate-atlassian button,
.scenario-shell.interface-v2.design-candidate-atlassian a,
.scenario-shell.interface-v2.design-candidate-atlassian input,
.scenario-shell.interface-v2.design-candidate-atlassian select,
.scenario-shell.interface-v2.design-candidate-atlassian textarea {
  font-family: inherit;
}

.scenario-shell.interface-v2.design-candidate-atlassian i {
  font-style: normal;
}

.scenario-shell.interface-v2.design-candidate-atlassian button:focus-visible,
.scenario-shell.interface-v2.design-candidate-atlassian input:focus-visible,
.scenario-shell.interface-v2.design-candidate-atlassian select:focus-visible,
.scenario-shell.interface-v2.design-candidate-atlassian textarea:focus-visible,
.scenario-shell.interface-v2.design-candidate-atlassian a:focus-visible,
.scenario-shell.interface-v2.design-candidate-atlassian [contenteditable="true"]:focus-visible {
  z-index: 3;
  outline: 2px solid #388bff;
  outline-offset: 2px;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .sidebar {
  color: var(--ink);
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .brand {
  height: var(--shell-header-height);
  min-height: var(--shell-header-height);
  max-height: var(--shell-header-height);
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
  box-sizing: border-box;
}

.scenario-shell.interface-v2.design-candidate-atlassian .brand-mark {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-atlassian .brand strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-atlassian .brand small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .1em;
}

.scenario-shell.interface-v2.design-candidate-atlassian .brand .icon-button {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-atlassian .sidebar nav {
  padding: calc(var(--shell-tabs-height) + 12px) 10px 20px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .nav-workspace-group {
  margin-bottom: 18px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .nav-workspace-label {
  margin: 0 8px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-atlassian .nav-link {
  min-height: 38px;
  gap: 10px;
  margin: 2px 0;
  padding: 7px 10px;
  border: 2px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .nav-link svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-atlassian .nav-link b {
  min-width: 22px;
  padding: 1px 6px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: #dcdfe4;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-atlassian .nav-link.active {
  border-color: #85b8ff;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 600;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .nav-link.active svg {
  color: var(--accent);
}

.scenario-shell.interface-v2.design-candidate-atlassian .sidebar-footer {
  min-height: 64px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-atlassian .actor-avatar {
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: #5e4db2;
}

.scenario-shell.interface-v2.design-candidate-atlassian .actor-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-atlassian .actor-copy small {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-atlassian .workspace {
  color: var(--ink);
  background: var(--canvas);
}

.scenario-shell.interface-v2.design-candidate-atlassian .topbar {
  height: var(--shell-header-height);
  min-height: var(--shell-header-height);
  max-height: var(--shell-header-height);
  gap: 16px;
  padding: 0 12px 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
  box-sizing: border-box;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .workspace-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-atlassian .context-path {
  color: var(--ink);
}

.scenario-shell.interface-v2.design-candidate-atlassian .context-path strong {
  color: var(--ink);
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-atlassian .context-path i,
.scenario-shell.interface-v2.design-candidate-atlassian .context-path b {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-atlassian .header-logo {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: var(--accent);
}

.scenario-shell.interface-v2.design-candidate-atlassian .global-search {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface-soft);
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .global-search input {
  color: var(--ink);
}

.scenario-shell.interface-v2.design-candidate-atlassian .global-search input::placeholder {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-atlassian .global-search kbd {
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-atlassian .notification-button,
.scenario-shell.interface-v2.design-candidate-atlassian .mobile-only.icon-button {
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-atlassian .notification-button b {
  color: #ffffff;
  background: var(--danger);
}

.scenario-shell.interface-v2.design-candidate-atlassian .global-search-panel,
.scenario-shell.interface-v2.design-candidate-atlassian .notification-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-overlay);
}

.scenario-shell.interface-v2.design-candidate-atlassian .secondary-nav {
  height: var(--shell-tabs-height);
  min-height: var(--shell-tabs-height);
  max-height: var(--shell-tabs-height);
  gap: 20px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
  box-sizing: border-box;
}

.scenario-shell.interface-v2.design-candidate-atlassian .secondary-context {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-atlassian .secondary-tabs {
  align-self: stretch;
  gap: 4px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .secondary-tab {
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .secondary-tab.active {
  border-bottom: 3px solid var(--accent);
  color: var(--accent-dark);
  background: transparent;
  font-weight: 600;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .secondary-search {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.scenario-shell.interface-v2.design-candidate-atlassian .view-mode-switcher {
  border: 0;
  border-radius: 6px;
  background: var(--nav-soft);
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .view-mode-switcher button {
  border-radius: 4px;
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-atlassian .view-mode-switcher button.active {
  color: var(--accent-dark);
  background: #ffffff;
  box-shadow: var(--shadow-raised);
}

.scenario-shell.interface-v2.design-candidate-atlassian .page-stack,
.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-workspace {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 64px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 32px;
  min-height: 0;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-heading::before,
.scenario-shell.interface-v2.design-candidate-atlassian .production-heading::after {
  display: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-heading > div {
  max-width: 760px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-heading p {
  display: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-heading h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-heading > div > span {
  display: block;
  max-width: 52em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

.scenario-shell.interface-v2.design-candidate-atlassian .primary-button,
.scenario-shell.interface-v2.design-candidate-atlassian .production-entry,
.scenario-shell.interface-v2.design-candidate-atlassian .secondary-page-action.primary,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-icon-action {
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: var(--accent);
  box-shadow: none;
  transition: transform 120ms cubic-bezier(.23, 1, .32, 1);
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-entry {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 9px 14px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-entry span,
.scenario-shell.interface-v2.design-candidate-atlassian .production-entry strong {
  grid-column: 1;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-entry span {
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-entry strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-entry b {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #ffffff;
  font-size: 21px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: visible;
  padding: 18px 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(var(--line), var(--line)) center 33px / calc(100% - 17%) 2px no-repeat,
    transparent;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-flow article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  min-height: 142px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-flow article > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 4px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-flow article.complete > span {
  border-color: var(--success);
  color: #ffffff;
  background: var(--success);
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-flow article.blocked > span {
  border-color: var(--danger);
  color: #ffffff;
  background: var(--danger);
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-flow article > div small {
  display: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-flow article > div strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-flow article > div p {
  margin: 4px auto 0;
  max-width: 17em;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-flow article > b,
.scenario-shell.interface-v2.design-candidate-atlassian .status {
  justify-self: center;
  min-width: max-content;
  padding: 3px 8px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: #dcdfe4;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-flow article.complete > b,
.scenario-shell.interface-v2.design-candidate-atlassian .status.success {
  color: var(--success);
  background: var(--success-soft);
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-flow article.pending > b,
.scenario-shell.interface-v2.design-candidate-atlassian .status.pending {
  color: var(--warning);
  background: var(--warning-soft);
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-flow article.blocked > b,
.scenario-shell.interface-v2.design-candidate-atlassian .status.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  min-height: 88px;
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health article:last-child {
  border-right: 0;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health article > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health article > strong {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health article > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health article.danger {
  border: 0;
  background: var(--danger-soft);
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health article.danger strong {
  color: var(--danger);
}

.scenario-shell.interface-v2.design-candidate-atlassian .production-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 20px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .panel,
.scenario-shell.interface-v2.design-candidate-atlassian .production-queue,
.scenario-shell.interface-v2.design-candidate-atlassian .generation-contract,
.scenario-shell.interface-v2.design-candidate-atlassian .customer-knowledge-spaces {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .panel-heading {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.scenario-shell.interface-v2.design-candidate-atlassian .panel-heading p,
.scenario-shell.interface-v2.design-candidate-atlassian .generation-contract header small {
  display: none !important;
}

.scenario-shell.interface-v2.design-candidate-atlassian .panel-heading h2,
.scenario-shell.interface-v2.design-candidate-atlassian .generation-contract h2,
.scenario-shell.interface-v2.design-candidate-atlassian .customer-knowledge-spaces h2 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-atlassian .panel-heading span {
  color: var(--muted);
  font-size: 13px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .text-button,
.scenario-shell.interface-v2.design-candidate-atlassian .row-link {
  color: var(--accent);
  font-weight: 500;
}

.scenario-shell.interface-v2.design-candidate-atlassian .queue-item {
  min-height: 66px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-atlassian .queue-item:last-child {
  border-bottom: 0;
}

.scenario-shell.interface-v2.design-candidate-atlassian .queue-item > span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-atlassian .queue-item strong {
  color: var(--ink);
}

.scenario-shell.interface-v2.design-candidate-atlassian .queue-item b {
  border-radius: 10px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .generation-contract {
  overflow: hidden;
  background: var(--surface-soft);
}

.scenario-shell.interface-v2.design-candidate-atlassian .generation-contract header {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-atlassian .generation-contract dl div {
  border-bottom: 1px solid var(--line);
}

.scenario-shell.interface-v2.design-candidate-atlassian .generation-contract dt {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-atlassian .generation-contract dd {
  color: var(--ink);
}

.scenario-shell.interface-v2.design-candidate-atlassian .customer-knowledge-spaces > div {
  gap: 8px;
  padding: 12px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .customer-knowledge-spaces > div > a {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-atlassian .record-mark {
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #5e4db2;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  min-height: 0;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-hero > div:first-child {
  max-width: 760px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-hero p {
  display: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-hero h1 {
  color: var(--ink);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-hero > div:first-child > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-hero-status {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-hero-status span {
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-hero-status span:last-child {
  border-right: 0;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-view-nav {
  gap: 4px;
  min-height: 48px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-view-nav a {
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-view-nav a.active {
  border-bottom: 3px solid var(--accent);
  color: var(--accent-dark);
  background: transparent;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-import-entry {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--accent-soft);
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-import-entry span {
  display: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-import-entry strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-atlassian .knowledge-import-entry small {
  color: var(--muted);
  line-height: 1.5;
}

.scenario-shell.interface-v2.design-candidate-atlassian .secondary-button,
.scenario-shell.interface-v2.design-candidate-atlassian .secondary-page-action {
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-raised);
  transition: transform 120ms cubic-bezier(.23, 1, .32, 1);
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-workbench {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: start;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-map {
  grid-column: 1;
  grid-row: 1;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-card-stage {
  grid-column: 2;
  grid-row: 1;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-generation {
  grid-column: 3;
  grid-row: 1;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-document-layout,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-release-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-map,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-generation,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-card-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-map,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-generation {
  background: var(--surface-soft);
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-map > header,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-generation > header,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-card-editor > header,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-document-layout aside > header,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-release-header,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-release-result > header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-map > header small,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-generation > header small {
  display: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-map h2,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-generation h2,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-card-editor h2,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-document-layout aside h2,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-release-layout h2,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-release-layout h3,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-editor-canvas h3,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-document-paper h1,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-component-boundary h2 {
  color: var(--ink);
  font-family: var(--editorial-sans);
  font-weight: 600;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-icon-action {
  width: 30px;
  height: 30px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-inline-search {
  margin: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-map-tree {
  padding: 0 8px 10px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-map-tree h3 {
  padding: 9px 6px 4px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-map-tree h3 span,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-card-type,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-map-tree button,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-editor-toolbar button,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-document-toolbar button,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-query-context {
  border-radius: 4px;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-map-tree button {
  margin-top: 2px;
  border: 2px solid transparent;
  color: var(--ink);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-map-tree button.active {
  border-color: #85b8ff;
  color: var(--accent-dark);
  background: var(--accent-soft);
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-card-type {
  border: 0;
  color: var(--accent-dark);
  background: #cce0ff;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-editor-toolbar,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-document-toolbar {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-editor-toolbar button,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-document-toolbar button {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-editor-canvas {
  margin: 0;
  min-height: 320px;
  padding: 28px;
  border: 2px solid transparent;
  border-radius: 0;
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-editor-canvas:focus {
  border-color: #388bff;
  outline: 0;
  box-shadow: inset 0 0 0 1px #388bff;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-editor-canvas p,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-component-boundary p,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-document-lead {
  max-width: 65ch;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-card-metadata {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.scenario-shell.interface-v2.design-candidate-atlassian .kb-query-context {
  border: 1px solid var(--line);
  background: #ffffff;
}

.scenario-shell.interface-v2.design-candidate-atlassian .failure-state {
  display: grid;
  place-items: start;
  align-content: start;
  gap: 12px;
  width: calc(100% - 64px);
  max-width: 720px;
  min-height: 0;
  margin: 32px auto;
  padding: 18px 20px;
  border: 1px solid #f15b50;
  border-radius: 8px;
  color: var(--ink);
  background: var(--danger-soft);
  text-align: left;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-atlassian .failure-state > span {
  padding: 3px 8px;
  border-radius: 10px;
  color: var(--danger);
  background: #ffffff;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-atlassian .failure-state h1 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.scenario-shell.interface-v2.design-candidate-atlassian .failure-state p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.scenario-shell.interface-v2.design-candidate-atlassian .drawer,
.scenario-shell.interface-v2.design-candidate-atlassian .confirmation-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-overlay);
}

.scenario-shell.interface-v2.design-candidate-atlassian .toast {
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #1d2125;
  box-shadow: var(--shadow-overlay);
}

.scenario-shell.interface-v2.design-candidate-atlassian .primary-button:active,
.scenario-shell.interface-v2.design-candidate-atlassian .production-entry:active,
.scenario-shell.interface-v2.design-candidate-atlassian .secondary-page-action.primary:active,
.scenario-shell.interface-v2.design-candidate-atlassian .kb-icon-action:active,
.scenario-shell.interface-v2.design-candidate-atlassian .secondary-button:active,
.scenario-shell.interface-v2.design-candidate-atlassian .secondary-page-action:active {
  transform: scale(.97);
}

@media (hover: hover) and (pointer: fine) {
  .scenario-shell.interface-v2.design-candidate-atlassian .nav-link:hover,
  .scenario-shell.interface-v2.design-candidate-atlassian .queue-item:hover,
  .scenario-shell.interface-v2.design-candidate-atlassian .customer-knowledge-spaces > div > a:hover,
  .scenario-shell.interface-v2.design-candidate-atlassian .kb-map-tree button:hover {
    background: #f1f2f4;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .nav-link.active:hover,
  .scenario-shell.interface-v2.design-candidate-atlassian .kb-map-tree button.active:hover {
    background: #cce0ff;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .primary-button:hover,
  .scenario-shell.interface-v2.design-candidate-atlassian .production-entry:hover,
  .scenario-shell.interface-v2.design-candidate-atlassian .secondary-page-action.primary:hover,
  .scenario-shell.interface-v2.design-candidate-atlassian .kb-icon-action:hover {
    background: var(--accent-dark);
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .secondary-button:hover,
  .scenario-shell.interface-v2.design-candidate-atlassian .secondary-page-action:hover {
    background: var(--surface-soft);
  }
}

@media (max-width: 1160px) {
  .scenario-shell.interface-v2.design-candidate-atlassian .kb-workbench {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .kb-generation {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 1050px) {
  .scenario-shell.interface-v2.design-candidate-atlassian .page-stack,
  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-workspace {
    padding: 24px 24px 56px;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .production-heading {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .production-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .production-flow article {
    min-height: 118px;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .production-flow article > div p {
    display: none;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health {
    grid-template-columns: 1fr 1fr;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health article:nth-child(2n) {
    border-right: 0;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .scenario-shell.interface-v2.design-candidate-atlassian .page-stack,
  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-workspace {
    padding: 20px 16px 48px;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .production-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .production-entry {
    max-width: 320px;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .production-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    background: transparent;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .production-flow article {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 74px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .production-flow article > span {
    margin: 0;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .production-flow article > div p {
    display: block;
    margin-right: 0;
    margin-left: 0;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .production-flow article > b {
    justify-self: end;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .kb-workbench,
  .scenario-shell.interface-v2.design-candidate-atlassian .kb-document-layout,
  .scenario-shell.interface-v2.design-candidate-atlassian .kb-release-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .kb-generation {
    grid-column: 1;
    grid-row: auto;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .kb-map,
  .scenario-shell.interface-v2.design-candidate-atlassian .kb-card-stage {
    grid-column: 1;
    grid-row: auto;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .kb-map,
  .scenario-shell.interface-v2.design-candidate-atlassian .kb-card-stage,
  .scenario-shell.interface-v2.design-candidate-atlassian .kb-card-editor,
  .scenario-shell.interface-v2.design-candidate-atlassian .kb-generation {
    min-width: 0;
    width: 100%;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian.view-mode-focus .sidebar nav {
    padding-top: 12px;
  }
}

@media (max-width: 640px) {
  .scenario-shell.interface-v2.design-candidate-atlassian .workspace {
    grid-template-rows: var(--shell-header-height) 0 minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .secondary-nav {
    display: none;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .production-heading h1 {
    font-size: 30px;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .production-entry {
    max-width: none;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health {
    grid-template-columns: minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health article,
  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health article:nth-child(2n),
  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health article:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-health article:last-child {
    border-bottom: 0;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-hero-status {
    width: 100%;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-view-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-view-nav a {
    justify-content: center;
    min-width: 0;
    padding: 0 4px;
    font-size: 13px;
    text-align: center;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .knowledge-import-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .scenario-shell.interface-v2.design-candidate-atlassian .failure-state {
    width: calc(100% - 32px);
    margin: 20px auto;
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scenario-shell.interface-v2.design-candidate-atlassian *,
  .scenario-shell.interface-v2.design-candidate-atlassian *::before,
  .scenario-shell.interface-v2.design-candidate-atlassian *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
/* === END ARCHIVED DESIGN CANDIDATE: ATLASSIAN === */

/* === ACTIVE DESIGN CANDIDATE: FT ORIGAMI (THROWAWAY PROTOTYPE) ===
 * Question: can an editorial production desk make governed knowledge work
 * feel more authored and less like a generic SaaS dashboard?
 * The styling hook is internal; no evaluation controls enter the product UI.
 */
.scenario-shell.interface-v2.design-candidate-origami {
  --shell-sidebar-width: 224px;
  --shell-header-height: 48px;
  --shell-tabs-height: 48px;
  --ink: #33302e;
  --muted: #4d4845;
  --line: #ccc1b7;
  --line-strong: #807973;
  --surface: #fffaf5;
  --surface-soft: #f2dfce;
  --canvas: #fff1e5;
  --nav: #f2dfce;
  --nav-soft: #e6d9ce;
  --accent: #0d7680;
  --accent-dark: #08474d;
  --accent-soft: #d9ece8;
  --success: #0a5e66;
  --success-soft: #d9ece8;
  --warning: #8c4a18;
  --warning-soft: #f7dfc8;
  --danger: #990f3d;
  --danger-soft: #f6d6df;
  --editorial: #990f3d;
  --shadow-paper:
    0 1px 1px rgb(77 72 69 / 8%),
    0 4px 12px rgb(77 72 69 / 6%),
    0 16px 32px rgb(77 72 69 / 4%);
  --shadow-overlay:
    0 2px 4px rgb(77 72 69 / 12%),
    0 16px 32px rgb(77 72 69 / 14%);
  --editorial-serif: ui-serif, Georgia, "Songti SC", "STSong", serif;
  --editorial-sans: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --proof-red: var(--editorial);
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    radial-gradient(rgb(51 48 46 / 2%) .7px, transparent .7px);
  background-size: 8px 8px;
  font-family: var(--editorial-sans);
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-origami ::selection {
  color: var(--ink);
  background: #f3c6d3;
}

.scenario-shell.interface-v2.design-candidate-origami button,
.scenario-shell.interface-v2.design-candidate-origami a,
.scenario-shell.interface-v2.design-candidate-origami input,
.scenario-shell.interface-v2.design-candidate-origami select,
.scenario-shell.interface-v2.design-candidate-origami textarea {
  font-family: inherit;
}

.scenario-shell.interface-v2.design-candidate-origami i {
  font-style: normal;
}

.scenario-shell.interface-v2.design-candidate-origami button:focus-visible,
.scenario-shell.interface-v2.design-candidate-origami input:focus-visible,
.scenario-shell.interface-v2.design-candidate-origami select:focus-visible,
.scenario-shell.interface-v2.design-candidate-origami textarea:focus-visible,
.scenario-shell.interface-v2.design-candidate-origami a:focus-visible,
.scenario-shell.interface-v2.design-candidate-origami [contenteditable="true"]:focus-visible {
  z-index: 3;
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #ffffff;
}

.scenario-shell.interface-v2.design-candidate-origami * {
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.scenario-shell.interface-v2.design-candidate-origami .sidebar {
  color: var(--ink);
  border-right: 1px solid var(--line);
  background: var(--nav);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-origami .brand {
  height: var(--shell-header-height);
  min-height: var(--shell-header-height);
  max-height: var(--shell-header-height);
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--nav);
  box-sizing: border-box;
}

.scenario-shell.interface-v2.design-candidate-origami .brand-mark,
.scenario-shell.interface-v2.design-candidate-origami .header-logo {
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: #ffffff;
  background: var(--editorial);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-origami .brand strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
}

.scenario-shell.interface-v2.design-candidate-origami .brand small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .16em;
}

.scenario-shell.interface-v2.design-candidate-origami .sidebar nav {
  padding: var(--shell-tabs-height) 10px 18px;
}

.scenario-shell.interface-v2.design-candidate-origami .nav-workspace-group {
  margin-bottom: 22px;
}

.scenario-shell.interface-v2.design-candidate-origami .nav-workspace-label {
  height: 28px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
}

.scenario-shell.interface-v2.design-candidate-origami .nav-link {
  min-height: 38px;
  gap: 11px;
  margin: 2px 0;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .nav-link.active {
  border-color: var(--editorial);
  color: var(--editorial);
  background: var(--canvas);
  font-weight: 600;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .nav-link b,
.scenario-shell.interface-v2.design-candidate-origami .nav-link.active b {
  min-width: 22px;
  padding: 1px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-family: Georgia, serif;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-origami .sidebar-footer {
  min-height: 72px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--nav);
}

.scenario-shell.interface-v2.design-candidate-origami .actor-avatar {
  border: 1px solid var(--ink);
  border-radius: 0;
  color: #ffffff;
  background: var(--ink);
  box-shadow: 2px 2px 0 var(--editorial);
}

.scenario-shell.interface-v2.design-candidate-origami .actor-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-origami .actor-copy small {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-origami .workspace,
.scenario-shell.interface-v2.design-candidate-origami .content-stage {
  background-color: var(--canvas);
  background-image:
    radial-gradient(rgb(51 48 46 / 2%) .7px, transparent .7px);
  background-size: 8px 8px;
}

.scenario-shell.interface-v2.design-candidate-origami .topbar {
  height: var(--shell-header-height);
  min-height: var(--shell-header-height);
  max-height: var(--shell-header-height);
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--canvas);
  box-sizing: border-box;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-origami .workspace-kicker {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .02em;
}

.scenario-shell.interface-v2.design-candidate-origami .context-path strong,
.scenario-shell.interface-v2.design-candidate-origami .context-path b {
  color: var(--ink);
  font-family: var(--editorial-serif);
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-origami .context-path i {
  color: var(--line-strong);
}

.scenario-shell.interface-v2.design-candidate-origami .global-search {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: var(--surface);
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .global-search:focus-within,
.scenario-shell.interface-v2.design-candidate-origami .secondary-search:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink);
}

.scenario-shell.interface-v2.design-candidate-origami .global-search kbd {
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: var(--canvas);
}

.scenario-shell.interface-v2.design-candidate-origami .notification-button {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .notification-button b {
  border: 1px solid var(--canvas);
  color: #ffffff;
  background: var(--editorial);
}

.scenario-shell.interface-v2.design-candidate-origami .global-search-panel,
.scenario-shell.interface-v2.design-candidate-origami .notification-panel {
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
}

.scenario-shell.interface-v2.design-candidate-origami .secondary-nav {
  height: var(--shell-tabs-height);
  min-height: var(--shell-tabs-height);
  max-height: var(--shell-tabs-height);
  gap: 18px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--canvas);
  box-sizing: border-box;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scenario-shell.interface-v2.design-candidate-origami .secondary-context {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-origami .secondary-tabs {
  align-self: stretch;
  gap: 0;
}

.scenario-shell.interface-v2.design-candidate-origami .secondary-tab {
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .secondary-tab.active {
  border-bottom: 4px solid var(--editorial);
  color: var(--ink);
  background: transparent;
  font-weight: 600;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .secondary-search {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.scenario-shell.interface-v2.design-candidate-origami .view-mode-switcher {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .view-mode-switcher button {
  border-radius: 0;
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-origami .view-mode-switcher button.active {
  color: #ffffff;
  background: var(--ink);
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .page-stack,
.scenario-shell.interface-v2.design-candidate-origami .knowledge-workspace {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 64px;
}

.scenario-shell.interface-v2.design-candidate-origami .production-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 26px;
}

.scenario-shell.interface-v2.design-candidate-origami .production-heading,
.scenario-shell.interface-v2.design-candidate-origami .knowledge-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 32px;
  min-height: 0;
  padding: 18px 0 22px;
  border: 0;
  border-top: 7px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .production-heading::before,
.scenario-shell.interface-v2.design-candidate-origami .production-heading::after {
  display: none;
}

.scenario-shell.interface-v2.design-candidate-origami .production-heading p,
.scenario-shell.interface-v2.design-candidate-origami .knowledge-hero p,
.scenario-shell.interface-v2.design-candidate-origami .panel-heading p,
.scenario-shell.interface-v2.design-candidate-origami .generation-contract header small,
.scenario-shell.interface-v2.design-candidate-origami .knowledge-import-entry span,
.scenario-shell.interface-v2.design-candidate-origami .kb-map > header small,
.scenario-shell.interface-v2.design-candidate-origami .kb-generation > header small {
  display: none !important;
}

.scenario-shell.interface-v2.design-candidate-origami .production-heading h1,
.scenario-shell.interface-v2.design-candidate-origami .knowledge-hero h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--editorial-serif);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.scenario-shell.interface-v2.design-candidate-origami .production-heading > div > span,
.scenario-shell.interface-v2.design-candidate-origami .knowledge-hero > div:first-child > span {
  display: block;
  max-width: 40em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}

.scenario-shell.interface-v2.design-candidate-origami .primary-button,
.scenario-shell.interface-v2.design-candidate-origami .production-entry,
.scenario-shell.interface-v2.design-candidate-origami .secondary-page-action.primary,
.scenario-shell.interface-v2.design-candidate-origami .kb-icon-action {
  border: 1px solid var(--accent-dark);
  border-radius: 0;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 2px 2px 0 var(--accent-dark);
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1);
}

.scenario-shell.interface-v2.design-candidate-origami .production-entry {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 9px 14px;
}

.scenario-shell.interface-v2.design-candidate-origami .production-entry span,
.scenario-shell.interface-v2.design-candidate-origami .production-entry strong {
  grid-column: 1;
}

.scenario-shell.interface-v2.design-candidate-origami .production-entry span {
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
}

.scenario-shell.interface-v2.design-candidate-origami .production-entry strong {
  color: #ffffff;
  font-family: var(--editorial-serif);
  font-size: 16px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-origami .production-entry b {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #ffffff;
  font-size: 22px;
}

.scenario-shell.interface-v2.design-candidate-origami .production-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .production-flow article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  min-height: 150px;
  padding: 14px 14px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.scenario-shell.interface-v2.design-candidate-origami .production-flow article:last-child {
  border-right: 0;
}

.scenario-shell.interface-v2.design-candidate-origami .production-flow article > span {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 8px;
  border: 0;
  border-radius: 0;
  color: var(--line-strong);
  background: transparent;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-origami .production-flow article.complete > span {
  color: var(--accent);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .production-flow article.blocked > span {
  color: var(--editorial);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .production-flow article > div small {
  display: none;
}

.scenario-shell.interface-v2.design-candidate-origami .production-flow article > div strong {
  display: block;
  color: var(--ink);
  font-family: var(--editorial-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.scenario-shell.interface-v2.design-candidate-origami .production-flow article > div p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.scenario-shell.interface-v2.design-candidate-origami .production-flow article > b,
.scenario-shell.interface-v2.design-candidate-origami .status {
  justify-self: start;
  min-width: max-content;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
}

.scenario-shell.interface-v2.design-candidate-origami .production-flow article.complete > b,
.scenario-shell.interface-v2.design-candidate-origami .status.success {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--success-soft);
}

.scenario-shell.interface-v2.design-candidate-origami .production-flow article.pending > b,
.scenario-shell.interface-v2.design-candidate-origami .status.pending {
  border-color: var(--warning);
  color: var(--warning);
  background: var(--warning-soft);
}

.scenario-shell.interface-v2.design-candidate-origami .production-flow article.blocked > b,
.scenario-shell.interface-v2.design-candidate-origami .status.danger {
  border-color: var(--editorial);
  color: var(--editorial);
  background: var(--danger-soft);
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-health article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  min-height: 88px;
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-health article:last-child {
  border-right: 0;
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-health article > span,
.scenario-shell.interface-v2.design-candidate-origami .knowledge-health article > small {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-health article > strong {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-health article.danger {
  border: 0;
  background: var(--danger-soft);
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-health article.danger strong {
  color: var(--editorial);
}

.scenario-shell.interface-v2.design-candidate-origami .production-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
}

.scenario-shell.interface-v2.design-candidate-origami .panel,
.scenario-shell.interface-v2.design-candidate-origami .production-queue,
.scenario-shell.interface-v2.design-candidate-origami .generation-contract,
.scenario-shell.interface-v2.design-candidate-origami .customer-knowledge-spaces {
  border: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .generation-contract {
  border-top-color: var(--editorial);
  background: var(--surface-soft);
}

.scenario-shell.interface-v2.design-candidate-origami .panel-heading,
.scenario-shell.interface-v2.design-candidate-origami .generation-contract header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .panel-heading h2,
.scenario-shell.interface-v2.design-candidate-origami .generation-contract h2,
.scenario-shell.interface-v2.design-candidate-origami .customer-knowledge-spaces h2 {
  color: var(--ink);
  font-family: var(--editorial-serif);
  font-size: 23px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-origami .panel-heading span,
.scenario-shell.interface-v2.design-candidate-origami .generation-contract dt {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-origami .text-button,
.scenario-shell.interface-v2.design-candidate-origami .row-link {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.scenario-shell.interface-v2.design-candidate-origami .queue-item {
  min-height: 66px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .queue-item:last-child {
  border-bottom: 0;
}

.scenario-shell.interface-v2.design-candidate-origami .queue-item > span {
  color: var(--muted);
  font-family: Georgia, serif;
  font-variant-numeric: tabular-nums;
}

.scenario-shell.interface-v2.design-candidate-origami .queue-item strong {
  color: var(--ink);
}

.scenario-shell.interface-v2.design-candidate-origami .queue-item b,
.scenario-shell.interface-v2.design-candidate-origami .record-mark {
  border-radius: 0;
}

.scenario-shell.interface-v2.design-candidate-origami .generation-contract dl div {
  border-bottom: 1px solid var(--line);
}

.scenario-shell.interface-v2.design-candidate-origami .generation-contract dd {
  color: var(--ink);
}

.scenario-shell.interface-v2.design-candidate-origami .customer-knowledge-spaces > div {
  gap: 0;
  padding: 0;
}

.scenario-shell.interface-v2.design-candidate-origami .customer-knowledge-spaces > div > a {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .record-mark {
  border: 1px solid var(--editorial);
  color: var(--editorial);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-hero {
  align-items: end;
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-hero-status {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-hero-status span {
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-hero-status span:last-child {
  border-right: 0;
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-view-nav {
  gap: 0;
  min-height: 48px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-view-nav a {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-view-nav a.active {
  border-bottom: 4px solid var(--editorial);
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-import-entry {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent-soft);
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-import-entry strong {
  color: var(--ink);
  font-family: var(--editorial-serif);
  font-size: 17px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-origami .knowledge-import-entry small {
  color: var(--muted);
  line-height: 1.6;
}

.scenario-shell.interface-v2.design-candidate-origami .secondary-button,
.scenario-shell.interface-v2.design-candidate-origami .secondary-page-action {
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--line-strong);
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1);
}

.scenario-shell.interface-v2.design-candidate-origami .kb-workbench {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 224px;
  gap: 18px;
  align-items: start;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-map {
  grid-column: 1;
  grid-row: 1;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-card-stage {
  grid-column: 2;
  grid-row: 1;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-generation {
  grid-column: 3;
  grid-row: 1;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-document-layout,
.scenario-shell.interface-v2.design-candidate-origami .kb-release-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-map,
.scenario-shell.interface-v2.design-candidate-origami .kb-generation,
.scenario-shell.interface-v2.design-candidate-origami .kb-card-editor,
.scenario-shell.interface-v2.design-candidate-origami .kb-document-layout aside,
.scenario-shell.interface-v2.design-candidate-origami .kb-release-result {
  overflow: hidden;
  border: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-map,
.scenario-shell.interface-v2.design-candidate-origami .kb-generation {
  background: var(--surface-soft);
}

.scenario-shell.interface-v2.design-candidate-origami .kb-generation {
  border-top-color: var(--editorial);
}

.scenario-shell.interface-v2.design-candidate-origami .kb-card-editor {
  box-shadow: var(--shadow-paper);
}

.scenario-shell.interface-v2.design-candidate-origami .kb-map > header,
.scenario-shell.interface-v2.design-candidate-origami .kb-generation > header,
.scenario-shell.interface-v2.design-candidate-origami .kb-card-editor > header,
.scenario-shell.interface-v2.design-candidate-origami .kb-document-layout aside > header,
.scenario-shell.interface-v2.design-candidate-origami .kb-release-header,
.scenario-shell.interface-v2.design-candidate-origami .kb-release-result > header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-map h2,
.scenario-shell.interface-v2.design-candidate-origami .kb-generation h2,
.scenario-shell.interface-v2.design-candidate-origami .kb-card-editor h2,
.scenario-shell.interface-v2.design-candidate-origami .kb-document-layout aside h2,
.scenario-shell.interface-v2.design-candidate-origami .kb-release-layout h2,
.scenario-shell.interface-v2.design-candidate-origami .kb-release-layout h3,
.scenario-shell.interface-v2.design-candidate-origami .kb-editor-canvas h3,
.scenario-shell.interface-v2.design-candidate-origami .kb-document-paper h1,
.scenario-shell.interface-v2.design-candidate-origami .kb-component-boundary h2 {
  color: var(--ink);
  font-family: var(--editorial-serif);
  font-weight: 600;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-icon-action {
  width: 30px;
  height: 30px;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-inline-search {
  margin: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
}

.scenario-shell.interface-v2.design-candidate-origami .kb-map-tree {
  padding: 0 8px 10px;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-map-tree h3 {
  padding: 9px 6px 4px;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-map-tree h3 span,
.scenario-shell.interface-v2.design-candidate-origami .kb-card-type,
.scenario-shell.interface-v2.design-candidate-origami .kb-map-tree button,
.scenario-shell.interface-v2.design-candidate-origami .kb-editor-toolbar button,
.scenario-shell.interface-v2.design-candidate-origami .kb-document-toolbar button,
.scenario-shell.interface-v2.design-candidate-origami .kb-query-context {
  border-radius: 0;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-map-tree button {
  margin-top: 2px;
  border: 1px solid transparent;
  color: var(--ink);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-map-tree button.active {
  border-color: var(--editorial);
  color: var(--editorial);
  background: var(--canvas);
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-card-type {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-editor-toolbar,
.scenario-shell.interface-v2.design-candidate-origami .kb-document-toolbar {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.scenario-shell.interface-v2.design-candidate-origami .kb-editor-toolbar button,
.scenario-shell.interface-v2.design-candidate-origami .kb-document-toolbar button {
  color: var(--muted);
}

.scenario-shell.interface-v2.design-candidate-origami .kb-editor-canvas {
  margin: 0;
  min-height: 340px;
  padding: 32px;
  border: 2px solid transparent;
  border-radius: 0;
  background: var(--surface);
}

.scenario-shell.interface-v2.design-candidate-origami .kb-editor-canvas:focus {
  border-color: var(--ink);
  outline: 0;
  box-shadow: inset 0 0 0 1px #ffffff;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-editor-canvas p,
.scenario-shell.interface-v2.design-candidate-origami .kb-component-boundary p,
.scenario-shell.interface-v2.design-candidate-origami .kb-document-lead {
  max-width: 36em;
  color: var(--ink);
  font-family: var(--editorial-serif);
  font-size: 16px;
  line-height: 1.75;
  text-wrap: pretty;
}

.scenario-shell.interface-v2.design-candidate-origami .kb-card-metadata {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.scenario-shell.interface-v2.design-candidate-origami .kb-query-context {
  border: 1px solid var(--line);
  background: var(--surface);
}

.scenario-shell.interface-v2.design-candidate-origami .failure-state {
  display: grid;
  place-items: start;
  align-content: start;
  gap: 12px;
  width: calc(100% - 64px);
  max-width: 720px;
  min-height: 0;
  margin: 32px auto;
  padding: 18px 20px;
  border: 0;
  border-top: 6px solid var(--editorial);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--danger-soft);
  text-align: left;
  box-shadow: none;
}

.scenario-shell.interface-v2.design-candidate-origami .failure-state > span {
  padding: 2px 6px;
  border: 1px solid var(--editorial);
  border-radius: 0;
  color: var(--editorial);
  background: transparent;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 600;
}

.scenario-shell.interface-v2.design-candidate-origami .failure-state h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--editorial-serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.scenario-shell.interface-v2.design-candidate-origami .failure-state p {
  max-width: 40em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.scenario-shell.interface-v2.design-candidate-origami .drawer,
.scenario-shell.interface-v2.design-candidate-origami .confirmation-dialog {
  border: 0;
  border-top: 6px solid var(--editorial);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
}

.scenario-shell.interface-v2.design-candidate-origami .toast {
  border: 1px solid var(--ink);
  border-radius: 0;
  color: #ffffff;
  background: var(--ink);
  box-shadow: var(--shadow-overlay);
}

.scenario-shell.interface-v2.design-candidate-origami .primary-button:active,
.scenario-shell.interface-v2.design-candidate-origami .production-entry:active,
.scenario-shell.interface-v2.design-candidate-origami .secondary-page-action.primary:active,
.scenario-shell.interface-v2.design-candidate-origami .kb-icon-action:active,
.scenario-shell.interface-v2.design-candidate-origami .secondary-button:active,
.scenario-shell.interface-v2.design-candidate-origami .secondary-page-action:active {
  transform: scale(.98);
}

@media (hover: hover) and (pointer: fine) {
  .scenario-shell.interface-v2.design-candidate-origami .nav-link:hover,
  .scenario-shell.interface-v2.design-candidate-origami .queue-item:hover,
  .scenario-shell.interface-v2.design-candidate-origami .customer-knowledge-spaces > div > a:hover,
  .scenario-shell.interface-v2.design-candidate-origami .kb-map-tree button:hover {
    background: var(--nav-soft);
  }

  .scenario-shell.interface-v2.design-candidate-origami .nav-link.active:hover,
  .scenario-shell.interface-v2.design-candidate-origami .kb-map-tree button.active:hover {
    background: var(--canvas);
  }

  .scenario-shell.interface-v2.design-candidate-origami .primary-button:hover,
  .scenario-shell.interface-v2.design-candidate-origami .production-entry:hover,
  .scenario-shell.interface-v2.design-candidate-origami .secondary-page-action.primary:hover,
  .scenario-shell.interface-v2.design-candidate-origami .kb-icon-action:hover,
  .scenario-shell.interface-v2.design-candidate-origami .secondary-button:hover,
  .scenario-shell.interface-v2.design-candidate-origami .secondary-page-action:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 1160px) {
  .scenario-shell.interface-v2.design-candidate-origami .kb-workbench {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-origami .kb-generation {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 1050px) {
  .scenario-shell.interface-v2.design-candidate-origami .page-stack,
  .scenario-shell.interface-v2.design-candidate-origami .knowledge-workspace {
    padding: 24px 24px 56px;
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-heading,
  .scenario-shell.interface-v2.design-candidate-origami .knowledge-hero {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-flow article {
    min-height: 124px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-flow article > div strong {
    font-size: 15px;
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-flow article > div p {
    display: none;
  }

  .scenario-shell.interface-v2.design-candidate-origami .knowledge-health {
    grid-template-columns: 1fr 1fr;
  }

  .scenario-shell.interface-v2.design-candidate-origami .knowledge-health article:nth-child(2n) {
    border-right: 0;
  }

  .scenario-shell.interface-v2.design-candidate-origami .knowledge-health article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .scenario-shell.interface-v2.design-candidate-origami .page-stack,
  .scenario-shell.interface-v2.design-candidate-origami .knowledge-workspace {
    padding: 20px 16px 48px;
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-heading,
  .scenario-shell.interface-v2.design-candidate-origami .knowledge-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-entry {
    max-width: 320px;
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-flow {
    grid-template-columns: minmax(0, 1fr);
    border-top-width: 4px;
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-flow article {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 82px;
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-flow article:last-child {
    border-bottom: 0;
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-flow article > span {
    margin: 0;
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-flow article > div p {
    display: block;
    margin-right: 0;
    margin-left: 0;
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-flow article > b {
    justify-self: end;
  }

  .scenario-shell.interface-v2.design-candidate-origami .kb-workbench,
  .scenario-shell.interface-v2.design-candidate-origami .kb-document-layout,
  .scenario-shell.interface-v2.design-candidate-origami .kb-release-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-origami .kb-map,
  .scenario-shell.interface-v2.design-candidate-origami .kb-card-stage,
  .scenario-shell.interface-v2.design-candidate-origami .kb-generation {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
    width: 100%;
  }

  .scenario-shell.interface-v2.design-candidate-origami.view-mode-focus .sidebar nav {
    padding-top: 12px;
  }
}

@media (max-width: 640px) {
  .scenario-shell.interface-v2.design-candidate-origami .workspace {
    grid-template-rows: var(--shell-header-height) 0 minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-origami .secondary-nav {
    display: none;
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-heading h1,
  .scenario-shell.interface-v2.design-candidate-origami .knowledge-hero h1 {
    font-size: 32px;
  }

  .scenario-shell.interface-v2.design-candidate-origami .production-entry {
    max-width: none;
  }

  .scenario-shell.interface-v2.design-candidate-origami .knowledge-health {
    grid-template-columns: minmax(0, 1fr);
  }

  .scenario-shell.interface-v2.design-candidate-origami .knowledge-health article,
  .scenario-shell.interface-v2.design-candidate-origami .knowledge-health article:nth-child(2n),
  .scenario-shell.interface-v2.design-candidate-origami .knowledge-health article:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scenario-shell.interface-v2.design-candidate-origami .knowledge-health article:last-child {
    border-bottom: 0;
  }

  .scenario-shell.interface-v2.design-candidate-origami .knowledge-hero {
    align-items: start;
  }

  .scenario-shell.interface-v2.design-candidate-origami .knowledge-hero-status {
    width: 100%;
  }

  .scenario-shell.interface-v2.design-candidate-origami .knowledge-view-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .scenario-shell.interface-v2.design-candidate-origami .knowledge-view-nav a {
    justify-content: center;
    min-width: 0;
    padding: 0 4px;
    font-size: 13px;
    text-align: center;
  }

  .scenario-shell.interface-v2.design-candidate-origami .knowledge-import-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .scenario-shell.interface-v2.design-candidate-origami .kb-editor-canvas {
    padding: 24px 20px;
  }

  .scenario-shell.interface-v2.design-candidate-origami .failure-state {
    width: calc(100% - 32px);
    margin: 20px auto;
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scenario-shell.interface-v2.design-candidate-origami *,
  .scenario-shell.interface-v2.design-candidate-origami *::before,
  .scenario-shell.interface-v2.design-candidate-origami *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
/* === END ACTIVE DESIGN CANDIDATE: FT ORIGAMI === */
