:root {
  --ink: #111111;
  --muted: #625d52;
  --paper: #f8f7f3;
  --panel: #ffffff;
  --line: #d9d4c7;
  --line-strong: #b8b09f;
  --green: #27745f;
  --green-soft: #e5f3ed;
  --red: #b44642;
  --red-soft: #fae9e7;
  --amber: #ad741c;
  --amber-soft: #fbefd9;
  --blue: #2b6e99;
  --blue-soft: #e4f0f7;
  --violet: #6d5c91;
  --gold: #c79a32;
  --soft: #eee9dd;
  --shadow: 0 16px 40px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Avenir Next, Helvetica Neue, Arial, sans-serif;
  line-height: 1.45;
}

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

button {
  min-height: 38px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 8px 13px;
  font-weight: 760;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease,
    filter 0.18s ease;
}

button:hover {
  filter: brightness(1.06);
}

button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

button.secondary:hover,
button.secondary:focus-visible {
  background: rgba(199, 154, 50, 0.96);
  border-color: rgba(199, 154, 50, 0.88);
  color: #111111;
  box-shadow:
    0 0 0 1px rgba(199, 154, 50, 0.22),
    0 0 22px rgba(199, 154, 50, 0.14);
  outline: none;
}

button.secondary:active {
  background: rgba(199, 154, 50, 0.96);
  border-color: #c79a32;
  color: #111111;
  box-shadow:
    0 0 0 1px rgba(199, 154, 50, 0.3),
    0 0 24px rgba(199, 154, 50, 0.18);
}

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

h1 {
  margin-bottom: 0;
  font-size: 25px;
}

h2 {
  margin-bottom: 6px;
  font-size: 25px;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

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

.eyebrow,
.label {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar {
  min-height: 78px;
  padding: 14px 24px;
  background: rgba(248, 247, 243, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.customer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  gap: 0;
}

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

.brand-product-name {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 820;
  line-height: 0.96;
}

.brand-product-name .tm {
  margin-left: 0.08em;
  font-size: 0.24em;
  vertical-align: super;
  letter-spacing: 0;
  font-weight: 800;
}

.yistiva-mark {
  display: inline-block;
  font: inherit;
  line-height: inherit;
  letter-spacing: 0;
  white-space: nowrap;
}

.yistiva-mark .brand-initial {
  color: #c79a32;
}

.yistiva-mark .brand-rest {
  color: currentColor;
}

.brand-endorsement {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 0;
}

.brand-from {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.powered-by-link {
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.powered-by-link:hover,
.powered-by-link:focus-visible {
  color: var(--ink);
  outline: none;
}

.kat-logo {
  width: auto;
  height: 18px;
  flex: 0 0 auto;
}

.powered-by-link img {
  display: block;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.customer-bar {
  justify-content: flex-end;
  color: var(--muted);
  font-size: 14px;
}

.customer-bar strong,
.customer-bar span {
  display: block;
  text-align: right;
}

.customer-bar strong {
  color: var(--ink);
}

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}

.sidebar {
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #f9fbfc;
}

.workspace-card,
.quick-tools {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

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

.workspace-card span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.nav {
  display: grid;
  gap: 6px;
  padding: 16px 0;
}

.nav button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}

.nav button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.quick-tools input {
  width: 100%;
  margin-bottom: 10px;
}

.setup-demo-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(229, 211, 160, 0.28);
  border-radius: 10px;
  background: rgba(3, 13, 13, 0.64);
  color: rgba(249, 248, 244, 0.9);
}

.setup-demo-tools .label,
.setup-demo-tools strong {
  display: block;
}

.setup-demo-tools strong {
  margin-top: 4px;
  color: #fff;
}

.setup-demo-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.setup-demo-actions input {
  width: auto;
  max-width: 220px;
  margin: 0;
  color: rgba(249, 248, 244, 0.92);
}

.demo-scenario-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(247, 243, 232, 0.72);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-scenario-control select {
  min-height: 38px;
  min-width: 132px;
  border-color: rgba(229, 211, 160, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Styled CSV import control: hide the native file input, present its label as a button. */
.csv-import-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(229, 211, 160, 0.34);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 760;
  cursor: pointer;
}

.csv-import-control input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.setup-action-status {
  flex-basis: 100%;
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 720;
  color: rgba(247, 243, 232, 0.78);
}

.setup-action-status.is-error {
  color: var(--red);
}

.workspace {
  padding: 24px;
  overflow: hidden;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.landing {
  min-height: 260px;
  padding: 28px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 32, 42, 0.88), rgba(23, 32, 42, 0.58)),
    url("assets/kat-qa-hero-replaced-core.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-content: end;
}

.landing h2 {
  max-width: 680px;
  font-size: 30px;
  line-height: 1.18;
}

.landing .muted {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
}

.landing .eyebrow {
  color: #9fd0ec;
}

.landing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.landing-actions .secondary {
  border-color: rgba(255, 255, 255, 0.72);
}

.scene-page .page-head,
#home.scene-page .landing {
  --scene-image: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #f8f7f3;
  border: 1px solid rgba(199, 154, 50, 0.26);
  border-radius: 12px;
  background: #070a0d;
  box-shadow: 0 24px 56px rgba(16, 22, 29, 0.18);
}

.scene-page .page-head::before,
#home.scene-page .landing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.93) 0%, rgba(3, 6, 7, 0.8) 38%, rgba(3, 6, 7, 0.42) 100%),
    var(--scene-image) center / cover no-repeat;
}

.scene-page .page-head::after,
#home.scene-page .landing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    radial-gradient(circle at 18% 22%, rgba(39, 116, 95, 0.18), transparent 32%),
    radial-gradient(circle at 76% 18%, rgba(199, 154, 50, 0.16), transparent 26%);
  pointer-events: none;
}

.scene-page .page-head > *,
#home.scene-page .landing > * {
  position: relative;
  z-index: 1;
}

.scene-page .page-head {
  min-height: clamp(232px, 34vh, 320px);
  padding: clamp(24px, 3vw, 34px);
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
}

#home.scene-page .landing {
  min-height: clamp(260px, 38vh, 340px);
  padding: clamp(24px, 3vw, 34px);
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  align-content: end;
  gap: 18px;
}

.scene-page .page-head h2,
#home.scene-page .landing h2 {
  max-width: 820px;
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 0.96;
}

.scene-page .page-head.module-hero,
#home.scene-page .landing.module-hero {
  min-height: clamp(148px, 22vh, 190px);
}

.scene-page .page-head.module-hero h2,
#home.scene-page .landing.module-hero h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 52px);
}

.scene-page .page-head .eyebrow,
#home.scene-page .landing .eyebrow {
  color: #9fd0ec;
}

.scene-page .page-head .muted,
#home.scene-page .landing .muted {
  max-width: 760px;
  color: rgba(248, 247, 243, 0.82);
}

.scene-page .page-head .toolbar,
#home.scene-page .landing .landing-actions {
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.scene-page .page-head button,
#home.scene-page .landing button {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 780;
}

.scene-page .page-head button.secondary,
#home.scene-page .landing button.secondary {
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
  border-color: rgba(255, 255, 255, 0.82);
}

.scene-page .page-head button:not(.secondary),
#home.scene-page .landing button:not(.secondary) {
  background: rgba(248, 247, 243, 0.96);
  color: #111111;
  border-color: rgba(255, 255, 255, 0.84);
}

.scene-page .page-head .search {
  min-width: 190px;
  color: rgba(248, 247, 243, 0.82);
}

.scene-page .page-head .search input,
.scene-page .page-head .search select {
  background: rgba(8, 12, 14, 0.78);
  color: #f8f7f3;
  border-color: rgba(255, 255, 255, 0.22);
}

.scene-page .page-head .search input::placeholder {
  color: rgba(248, 247, 243, 0.48);
}

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

#home .landing {
  --scene-image: url("assets/yistiva-scene-program.png");
}

#subscription .page-head {
  --scene-image: url("assets/yistiva-scene-subscription.png");
}

#release .page-head {
  --scene-image: url("assets/yistiva-scene-rules.png");
}

#entry .page-head {
  --scene-image: url("assets/yistiva-scene-entry.png");
}

#run .page-head {
  --scene-image: url("assets/yistiva-scene-run.png");
}

#analytics .page-head {
  --scene-image: url("assets/yistiva-scene-analytics.png");
}

#comparison .page-head {
  --scene-image: url("assets/yistiva-scene-reports.png");
}

#profile .page-head {
  --scene-image: url("assets/yistiva-scene-program.png");
}

#people .page-head {
  --scene-image: url("assets/yistiva-scene-manual.png");
}

#access .page-head {
  --scene-image: url("assets/yistiva-scene-database.png");
}

#calendar .page-head {
  --scene-image: url("assets/yistiva-scene-run.png");
}

#shipping .page-head {
  --scene-image: url("assets/yistiva-scene-subscription.png");
}

#schedule .page-head {
  --scene-image: url("assets/yistiva-scene-method.png");
}

#method .page-head {
  --scene-image: url("assets/yistiva-scene-method.png");
}

#rules .page-head {
  --scene-image: url("assets/yistiva-scene-rules.png");
}

#reports .page-head {
  --scene-image: url("assets/yistiva-scene-reports.png");
}

#database .page-head {
  --scene-image: url("assets/yistiva-scene-database.png");
}

#audit .page-head {
  --scene-image: url("assets/yistiva-scene-audit.png");
}

#manual .page-head {
  --scene-image: url("assets/yistiva-scene-manual.png");
}

.program-grid,
.method-grid,
.schema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.program-grid article,
.method-card,
.schema-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.program-grid span,
.method-card span,
.schema-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.program-grid strong,
.method-card strong,
.schema-card strong {
  display: block;
  margin: 5px 0;
}

.program-grid p,
.method-card p,
.schema-card p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}

.method-card {
  display: grid;
  gap: 8px;
}

.method-card.active {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.method-card.locked,
.locked-row {
  opacity: 0.55;
  background: #eef2f5;
}

.active-row {
  background: var(--green-soft);
}

.addon-row {
  background: var(--blue-soft);
}

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

.test-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 10px;
}

.test-tile,
.plan-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.test-tile {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.test-tile.ok {
  border-color: #9ccab8;
}

.test-tile.review {
  border-color: #e2bf80;
}

.test-tile.hold {
  border-color: #e5aaa5;
}

.test-tile > span,
.plan-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.test-tile p,
.plan-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tile-title,
.tile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tile-title strong {
  font-size: 18px;
}

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

.tile-metrics span {
  min-height: 28px;
  border-radius: 6px;
  background: #edf2f6;
  color: #334251;
  padding: 5px 7px;
  font-size: 12px;
  font-weight: 760;
}

.tile-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

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

.plan-item {
  border-left-width: 5px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.plan-item.due {
  border-left-color: var(--blue);
}

.plan-item.done {
  border-left-color: var(--green);
}

.plan-item.missing {
  border-left-color: var(--amber);
}

.plan-item.hold {
  border-left-color: var(--red);
}

.coverage-list,
.flow-list {
  display: grid;
  gap: 10px;
}

.coverage-list div,
.flow-list div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.coverage-list div:last-child,
.flow-list div:last-child {
  border-bottom: 0;
}

.coverage-list strong,
.coverage-list span,
.flow-list strong,
.flow-list span {
  display: block;
}

.coverage-list span,
.flow-list span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

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

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

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-verdict {
  margin-bottom: 10px;
}

.dashboard-compact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.04);
}

.dashboard-compact-band.ok {
  border-color: rgba(92, 170, 123, 0.42);
  background: linear-gradient(180deg, rgba(230, 246, 236, 0.68), #ffffff 70%);
}

.dashboard-compact-band.review {
  border-color: rgba(199, 154, 50, 0.48);
  background: linear-gradient(180deg, rgba(255, 246, 225, 0.78), #ffffff 70%);
}

.dashboard-compact-band.hold {
  border-color: rgba(203, 96, 96, 0.42);
  background: linear-gradient(180deg, rgba(255, 236, 234, 0.82), #ffffff 70%);
}

.dashboard-compact-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-compact-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-compact-copy strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.08;
}

.dashboard-compact-copy p {
  margin: 0;
  color: #556476;
  font-size: 13px;
  line-height: 1.28;
}

.dashboard-compact-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-compact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-compact-pill.ok {
  color: #2f8751;
}

.dashboard-compact-pill.review {
  color: #a97515;
}

.dashboard-compact-pill.hold {
  color: #b14444;
}

.dashboard-verdict-band {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(240px, 0.76fr);
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(23, 32, 42, 0.06);
}

.dashboard-verdict-band.ok {
  border-color: #9ccab8;
  background: linear-gradient(135deg, rgba(214, 244, 230, 0.7), #ffffff 62%);
}

.dashboard-verdict-band.review {
  border-color: #e2bf80;
  background: linear-gradient(135deg, rgba(255, 244, 219, 0.76), #ffffff 62%);
}

.dashboard-verdict-band.hold {
  border-color: #e5aaa5;
  background: linear-gradient(135deg, rgba(255, 232, 230, 0.78), #ffffff 62%);
}

.dashboard-verdict-main strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.98;
}

.dashboard-verdict-main p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #425466;
  font-size: 15px;
  line-height: 1.45;
}

.dashboard-kicker {
  display: block;
  color: #406f92;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-driver-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}

.dashboard-driver-list span {
  position: relative;
  padding-left: 12px;
  color: #566577;
  font-size: 13px;
  font-weight: 760;
}

.dashboard-driver-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.dashboard-verdict-meta {
  display: grid;
  gap: 10px;
  align-content: start;
}

.dashboard-verdict-meta div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.dashboard-verdict-meta span,
.dashboard-summary-button span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.dashboard-verdict-meta strong,
.dashboard-summary-button strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.dashboard-verdict-meta strong {
  font-size: 18px;
}

.dashboard-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-summary-stat {
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 4px;
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.04);
}

.dashboard-summary-stat.ok {
  border-color: rgba(92, 170, 123, 0.42);
}

.dashboard-summary-stat.review {
  border-color: rgba(199, 154, 50, 0.48);
}

.dashboard-summary-stat.hold {
  border-color: rgba(203, 96, 96, 0.42);
}

.dashboard-summary-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.dashboard-summary-stat strong {
  display: block;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.dashboard-summary-stat small {
  color: #6a7785;
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-summary-button {
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  display: grid;
  gap: 4px;
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.dashboard-summary-button strong {
  font-size: 26px;
  line-height: 1;
}

.dashboard-summary-button small {
  color: #6a7785;
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-summary-button:hover,
.dashboard-summary-button:focus-visible {
  border-color: rgba(199, 154, 50, 0.9);
  outline: none;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(199, 154, 50, 0.18),
    0 14px 30px rgba(23, 32, 42, 0.08);
}

.dashboard-summary-button.active {
  border-color: rgba(199, 154, 50, 0.94);
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.9), #ffffff);
  box-shadow:
    0 0 0 1px rgba(199, 154, 50, 0.18),
    0 14px 30px rgba(23, 32, 42, 0.08);
}

.dashboard-worklist-panel {
  margin-bottom: 0;
}

.dashboard-readiness-panel {
  padding: 12px;
  margin-bottom: 0;
}

.dashboard-readiness-head {
  align-items: center;
  margin-bottom: 14px;
}

.dashboard-readiness-head[hidden] {
  display: none;
}

.dashboard-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.dashboard-legend-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.dashboard-legend-item.ok {
  color: #2f8751;
}

.dashboard-legend-item.review {
  color: #a97515;
}

.dashboard-legend-item.hold {
  color: #b14444;
}

.dashboard-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 10px;
}

.dashboard-method-card {
  display: grid;
  gap: 6px;
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(23, 32, 42, 0.05);
}

.dashboard-method-card.ok {
  border-color: rgba(92, 170, 123, 0.4);
  background: linear-gradient(180deg, rgba(230, 246, 236, 0.62), #ffffff 48%);
}

.dashboard-method-card.review {
  border-color: rgba(199, 154, 50, 0.48);
  background: linear-gradient(180deg, rgba(255, 246, 225, 0.72), #ffffff 48%);
}

.dashboard-method-card.hold {
  border-color: rgba(203, 96, 96, 0.42);
  background: linear-gradient(180deg, rgba(255, 236, 234, 0.78), #ffffff 48%);
}

.dashboard-method-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.dashboard-method-top strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.06;
}

.dashboard-method-decision {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.18;
}

.dashboard-method-notes {
  display: grid;
  gap: 3px;
}

.dashboard-method-notes span {
  color: #556476;
  font-size: 11.5px;
  font-weight: 760;
  line-height: 1.28;
}

.dashboard-method-assets {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.dashboard-method-assets span {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 820;
  line-height: 1.15;
}

.dashboard-method-assets span.hold {
  background: rgba(203, 96, 96, 0.14);
  color: #9b3f3f;
}

.dashboard-method-assets span.review {
  background: rgba(199, 154, 50, 0.16);
  color: #7b5918;
}

.dashboard-method-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.dashboard-method-actions .mini-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.dashboard-worklist-head {
  margin-bottom: 12px;
}

.dashboard-worklist-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.dashboard-table-wrap {
  max-height: 520px;
  overflow: auto;
}

.release-focus-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(194, 153, 59, 0.32);
  border-radius: 14px;
  background: rgba(194, 153, 59, 0.08);
}

.release-focus-bar strong {
  font-size: 15px;
  color: var(--ink-strong);
}

.release-focus-bar span {
  color: var(--ink-muted);
  font-size: 13px;
}

.dashboard-worklist-table {
  min-width: 1120px;
}

.dashboard-worklist-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.dashboard-row.hold td:first-child {
  box-shadow: inset 4px 0 0 var(--red);
}

.dashboard-row.review td:first-child {
  box-shadow: inset 4px 0 0 var(--amber);
}

.dashboard-row.due td:first-child {
  box-shadow: inset 4px 0 0 var(--blue);
}

.dashboard-row.ok td:first-child {
  box-shadow: inset 4px 0 0 var(--green);
}

.dashboard-cell-stack {
  display: grid;
  gap: 3px;
}

.dashboard-cell-stack strong {
  color: var(--ink);
  font-size: 14px;
}

.dashboard-cell-stack small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-signal-cell {
  min-width: 260px;
  color: #4d5b6a;
  font-size: 13px;
  line-height: 1.42;
}

.dashboard-signal-stack {
  display: grid;
  gap: 5px;
}

.dashboard-signal-stack span {
  color: #4d5b6a;
}

.dashboard-signal-stack .dashboard-signal-lead {
  color: var(--ink);
  font-weight: 700;
}

.dashboard-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.access-inline-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.dashboard-empty-state {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}

.dashboard-empty-state strong {
  color: var(--ink);
}

.dashboard-empty-state span {
  color: var(--muted);
  font-size: 13px;
}

.demo-guide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 7px solid var(--gold);
  border-radius: 8px;
  background: #fff;
}

.demo-guide h3 {
  margin-bottom: 4px;
}

.demo-guide p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.demo-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 320px;
}

.status-card,
.metric-grid article,
.panel,
.chart-panel,
.report-body,
.rules-list article,
.note-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.06);
}

.status-card {
  padding: 13px;
  min-height: 82px;
}

.status-card strong,
.metric-grid strong,
.note-grid strong {
  display: block;
  margin-top: 5px;
}

.status-card span,
.metric-grid span,
.note-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.status-card.ok {
  border-color: #9ccab8;
  background: var(--green-soft);
}

.status-card.review {
  border-color: #e2bf80;
  background: var(--amber-soft);
}

.status-card.hold {
  border-color: #e5aaa5;
  background: var(--red-soft);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

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

.metric-grid strong {
  font-size: 25px;
}

.chart-panel,
.panel,
.report-body {
  padding: 16px;
  margin-bottom: 16px;
}

.chart-panel.wide {
  margin-bottom: 16px;
}

.chart-frame {
  position: relative;
  width: 100%;
  height: 340px;
  min-height: 340px;
  max-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.chart-panel.wide .chart-frame {
  height: 430px;
  min-height: 430px;
  max-height: 430px;
}

canvas {
  display: block;
}

.chart-frame canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
}

button:disabled,
input:disabled,
select:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

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

.subscription-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.36fr);
  gap: 16px;
  align-items: start;
}

.subscription-stage {
  margin-bottom: 16px;
}

.subscription-scope-head {
  align-items: center;
  gap: 16px;
}

.subscription-scope-actions,
.subscription-order-actions {
  flex-wrap: wrap;
}

.subscription-legal-list {
  margin-top: 14px;
}

.subscription-legal-list .detail-flow-list {
  margin-top: 0;
}

.subscription-terms-preview {
  max-height: 220px;
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.quote-card {
  position: sticky;
  top: 96px;
}

.quote-note {
  margin-top: 10px;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}

.segmented button {
  border: 0;
  border-right: 1px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  background: var(--ink);
  color: #fff;
}

.detail-overview-band {
  margin-bottom: 16px;
}

.detail-verdict-band {
  align-items: stretch;
}

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

.detail-hero-facts div {
  padding: 12px 14px;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.detail-hero-facts span,
.detail-hero-facts strong {
  display: block;
}

.detail-hero-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.detail-hero-facts strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.detail-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

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

.threshold-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.06);
}

.threshold-card.ok {
  border-color: #9ccab8;
  background: var(--green-soft);
}

.threshold-card.review {
  border-color: #e2bf80;
  background: var(--amber-soft);
}

.threshold-card.hold {
  border-color: #e5aaa5;
  background: var(--red-soft);
}

.threshold-card.muted {
  border-color: #d7dfe6;
  background: #f6f8fa;
}

.threshold-card > span,
.threshold-card strong {
  display: block;
}

.threshold-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.threshold-card strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.05;
}

.threshold-track {
  position: relative;
  display: flex;
  height: 10px;
  margin: 14px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 42, 0.08);
}

.threshold-band {
  flex: 0 0 auto;
  height: 100%;
}

.threshold-band.ok {
  background: #63a77f;
}

.threshold-band.review {
  background: #d2a457;
}

.threshold-band.hold {
  background: #c76a63;
}

.threshold-band.muted {
  background: #ccd5de;
}

.threshold-marker {
  position: absolute;
  top: -4px;
  width: 12px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #17202a;
  box-shadow: 0 4px 10px rgba(23, 32, 42, 0.18);
  transform: translateX(-50%);
}

.threshold-card-legend {
  display: grid;
  gap: 4px;
  min-height: 38px;
}

.threshold-card-legend span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.threshold-card p {
  margin: 8px 0 0;
  color: #425466;
  font-size: 13px;
  line-height: 1.42;
}

.detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.detail-primary-panel {
  margin-bottom: 0;
}

.detail-primary-frame {
  height: 430px;
  min-height: 430px;
  max-height: 430px;
}

.detail-side-stack {
  display: grid;
  gap: 16px;
}

.detail-panel-copy {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

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

.detail-flow-list div {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}

.detail-flow-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-flow-list strong,
.detail-flow-list span {
  display: block;
}

.detail-flow-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.detail-program-summary,
.detail-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-program-summary {
  margin-bottom: 18px;
}

.detail-focus-section {
  min-width: 0;
}

.detail-focus-section h4 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 16px;
}

.detail-secondary-frame {
  height: 320px;
  min-height: 320px;
  max-height: 320px;
}

.detail-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.detail-kv-grid.compact {
  margin-top: 12px;
}

.detail-kv-grid div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.detail-kv-grid dt,
.detail-kv-grid dd {
  margin: 0;
}

.detail-kv-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.detail-kv-grid dd {
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.35;
}

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

.detail-reading-list div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.detail-reading-list div:last-child {
  border-bottom: 0;
}

.detail-reading-list strong,
.detail-reading-list span {
  display: block;
}

.detail-reading-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.detail-disclosure {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.detail-disclosure summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.form-grid label,
.search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.search input,
.search select,
.login-card input,
.login-card select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
}

.form-grid input.range-warning {
  border-color: #e2bf80;
  background: var(--amber-soft);
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.entry-guardrail {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.entry-guardrail.warning {
  border-color: #e2bf80;
  background: var(--amber-soft);
  color: var(--amber);
}

.entry-guardrail strong,
.entry-guardrail span {
  display: block;
}

.entry-guardrail span {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

.readonly-field {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #edf2f6;
  color: var(--ink);
  padding: 9px 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
}

.input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.input-with-unit span {
  min-width: 56px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #edf2f6;
  color: var(--muted);
  padding: 9px 10px;
  font-weight: 800;
  text-align: center;
}

.entry-validation {
  border: 1px solid #e2bf80;
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber);
  padding: 10px 12px;
  font-weight: 760;
}

.entry-option-panel {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8fa;
}

.entry-option-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.entry-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.entry-option-button {
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf1f4;
  color: #6d7781;
  text-align: left;
  display: grid;
  gap: 5px;
  box-shadow: none;
}

.entry-option-button strong {
  color: #58626c;
  font-size: 15px;
  line-height: 1.15;
}

.entry-option-button small {
  color: #7d8790;
  font-size: 12px;
  line-height: 1.38;
}

.entry-option-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.05);
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 13px;
}

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

th {
  background: #edf2f6;
  color: #334251;
  font-size: 12px;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
  margin: 0 4px 4px 0;
}

.badge.ok {
  background: var(--green-soft);
  color: var(--green);
}

.badge.review,
.badge.caution {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge.hold,
.badge.action {
  background: var(--red-soft);
  color: var(--red);
}

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

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

.capa-register {
  display: grid;
  gap: 16px;
}

.capa-register-section + .capa-register-section {
  padding-top: 4px;
}

.compact-panel-head {
  align-items: center;
  margin-bottom: 10px;
}

.compact-panel-head h4 {
  margin: 0 0 4px;
}

.compact-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.capa-inline-note {
  color: var(--muted);
  font-weight: 700;
}

.audit-layout {
  display: grid;
  gap: 16px;
}

.status-card-audit {
  padding: 18px 20px;
}

.status-card-audit strong,
.status-card-audit span {
  display: block;
}

.status-card-audit span + span {
  margin-top: 6px;
}

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

.audit-summary-card {
  padding: 14px 16px;
}

.audit-summary-card strong,
.audit-summary-card span {
  display: block;
}

.audit-summary-card strong {
  font-size: 31px;
  line-height: 1;
}

.audit-summary-card span:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.audit-controls-panel,
.audit-table-panel {
  display: grid;
  gap: 16px;
}

.audit-control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.audit-view-group {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 850;
  color: var(--muted);
  text-transform: uppercase;
}

.audit-viewbar {
  width: fit-content;
  max-width: 100%;
}

.audit-viewbar button {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 13px;
}

.audit-filter-grid {
  grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(140px, 0.8fr));
}

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

.audit-filter-grid input,
.audit-filter-grid select {
  width: 100%;
}

.audit-search-field {
  min-width: 0;
}

.audit-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.audit-active-filters[hidden] {
  display: none;
}

.audit-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: #f5f1e8;
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
}

.audit-chip.audit-chip-muted {
  background: transparent;
  border-color: transparent;
  padding-left: 0;
  color: var(--muted);
}

.audit-table-head {
  display: grid;
  grid-template-columns: 140px 170px 160px minmax(220px, 1.2fr) minmax(180px, 1fr) 110px;
  gap: 12px;
  padding: 0 4px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

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

.audit-record {
  border: 1px solid var(--line);
  border-left: 5px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.audit-record[data-severity="notable"] {
  border-left-color: var(--amber);
}

.audit-record[data-severity="exception"] {
  border-left-color: var(--red);
}

.audit-record[data-severity="normal"] {
  border-left-color: var(--green);
}

.audit-record summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
}

.audit-record summary::-webkit-details-marker {
  display: none;
}

.audit-record-head {
  display: grid;
  grid-template-columns: 140px 170px 160px minmax(220px, 1.2fr) minmax(180px, 1fr) 110px;
  gap: 12px;
  align-items: start;
}

.audit-col {
  min-width: 0;
}

.audit-col strong,
.audit-col span {
  display: block;
}

.audit-col strong {
  font-size: 13px;
}

.audit-col span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.audit-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: var(--soft);
  color: var(--ink);
}

.audit-flag.exception {
  background: var(--red-soft);
  color: var(--red);
}

.audit-flag.notable {
  background: var(--amber-soft);
  color: var(--amber);
}

.audit-flag.normal {
  background: var(--green-soft);
  color: var(--green);
}

.audit-record-body {
  padding: 0 14px 14px;
}

.audit-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.audit-detail-card {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fcfbf8;
}

.audit-detail-card strong,
.audit-detail-card span {
  display: block;
}

.audit-detail-card strong {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}

.audit-detail-card span {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink);
}

.audit-empty {
  padding: 18px 20px;
}

.audit-empty strong,
.audit-empty span {
  display: block;
}

.audit-empty span {
  margin-top: 4px;
  color: var(--muted);
}

.event-item {
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 7px;
  padding: 10px;
  background: #fff;
}

.event-item.action {
  border-left-color: var(--red);
}

.event-item.caution {
  border-left-color: var(--amber);
}

.event-item.ok {
  border-left-color: var(--green);
}

.event-item strong,
.event-item span {
  display: block;
}

.event-item span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.event-item button {
  margin-top: 8px;
}

.mini-button {
  min-height: 28px;
  padding: 3px 8px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .audit-summary-grid,
  .audit-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-filter-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .audit-table-head {
    display: none;
  }

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

@media (max-width: 720px) {
  .audit-summary-grid,
  .audit-detail-grid,
  .audit-filter-grid,
  .audit-record-head {
    grid-template-columns: 1fr;
  }

  .audit-viewbar {
    width: 100%;
  }

  .audit-control-bar {
    align-items: stretch;
  }

  .instrument-entry-row {
    grid-template-columns: 1fr;
  }
}

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

#profileSummaryCards {
  margin-bottom: 16px;
}

.note-grid article {
  padding: 13px;
}

.note-grid article.ok {
  border-color: #9ccab8;
  background: var(--green-soft);
}

.note-grid article.review {
  border-color: #e2bf80;
  background: var(--amber-soft);
}

.note-grid article.hold {
  border-color: #e5aaa5;
  background: #f8e7e4;
}

.note-grid article.info {
  border-color: #c7d6e4;
  background: #f3f7fb;
}

.note-grid article.muted {
  border-color: #d7dfe6;
  background: #f6f8fa;
}

.note-grid strong {
  font-size: 20px;
}

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

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

.setup-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(115px, 0.7fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr);
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.setup-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.setup-row input,
.setup-row select,
.setup-table input,
.setup-table select,
#subscriptionCatalog select,
#methodSetupDetails input,
#methodSetupDetails select,
#methodSetupDetails textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 7px 9px;
}

.checkline {
  display: flex !important;
  align-items: center;
  gap: 9px;
  color: var(--ink) !important;
}

.checkline input {
  width: 18px !important;
  min-height: 18px !important;
  flex: 0 0 auto;
}

.checkline span,
.checkline strong,
.checkline small {
  display: block;
}

.checkline small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.checkline.compact {
  justify-content: flex-start;
}

.setup-meta {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.setup-note {
  margin-bottom: 12px;
}

.setup-table {
  margin-top: 12px;
}

.setup-subpanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

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

.instrument-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.instrument-entry-row label {
  margin: 0;
}

.setup-actions {
  margin-top: 12px;
}

.address-field {
  position: relative;
}

.address-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.address-search-row button {
  min-width: 82px;
}

.address-lookup-status {
  min-height: 18px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.address-lookup-status.ok {
  color: #27745f;
}

.address-lookup-status.warning {
  color: #ad741c;
}

.address-lookup-status.muted {
  color: var(--muted);
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.14);
}

.address-suggestions button {
  display: grid;
  gap: 3px;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  text-align: left;
  cursor: pointer;
}

.address-suggestions button:hover,
.address-suggestions button:focus-visible {
  background: var(--paper);
  outline: none;
  filter: none;
}

.address-suggestions button:last-child {
  border-bottom: 0;
}

.address-suggestions strong {
  font-size: 13px;
}

.address-suggestions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.operator-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.setup-note-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--ink);
  padding: 11px 12px;
  margin: 14px 0 10px;
}

.setup-note-row.slim {
  margin-top: 0;
}

.setup-note-row span {
  color: var(--muted);
}

.logistics-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin: 12px 0;
}

.logistics-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.logistics-actions strong,
.logistics-actions span {
  display: block;
}

.logistics-actions span {
  color: var(--muted);
  font-size: 13px;
}

.address-actions,
.inline-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.address-actions {
  margin-top: 12px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.inline-link:hover,
.inline-link:focus-visible {
  background: rgba(199, 154, 50, 0.96);
  border-color: rgba(199, 154, 50, 0.88);
  color: #111;
  box-shadow:
    0 0 0 1px rgba(199, 154, 50, 0.22),
    0 0 22px rgba(199, 154, 50, 0.14);
  outline: none;
}

.consent-line {
  margin-top: 14px;
}

.view-only-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.schedule-inline-controls {
  margin-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.ok {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.review {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.hold {
  background: var(--red-soft);
  color: var(--red);
}

.status-pill.info,
.status-pill.muted {
  background: #edf2f7;
  color: #52606d;
}

.cell-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.detail-handoff-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
}

.subscription-table th:first-child,
.subscription-table td:first-child {
  min-width: 130px;
}

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

.comparison-page-stack {
  display: grid;
  gap: 14px;
}

.comparison-workbench {
  display: grid;
  gap: 16px;
}

.comparison-filter-panel {
  padding: 14px 18px;
}

.comparison-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.comparison-action-toggle {
  margin-left: auto;
}

.comparison-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.comparison-summary-card,
.comparison-dossier-card,
.comparison-action-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comparison-summary-card {
  padding: 14px 16px;
}

.comparison-summary-card span,
.comparison-dossier-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.comparison-summary-card strong,
.comparison-dossier-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.comparison-summary-card p,
.comparison-action-card span {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

#comparison .page-head.module-hero {
  min-height: clamp(118px, 16vh, 152px);
  padding: clamp(18px, 2vw, 24px);
}

#comparison .page-head.module-hero h2 {
  font-size: clamp(28px, 3.6vw, 46px);
}

#comparison .comparison-summary-card {
  padding: 10px 12px;
}

#comparison .comparison-summary-card strong {
  margin-top: 4px;
  font-size: 24px;
}

#comparison .comparison-summary-card p {
  margin-top: 6px;
  font-size: 12px;
}

.comparison-summary-card.ok {
  border-color: rgba(39, 116, 95, 0.38);
  background: rgba(229, 243, 237, 0.72);
}

.comparison-summary-card.review {
  border-color: rgba(173, 116, 28, 0.38);
  background: rgba(251, 239, 217, 0.76);
}

.comparison-summary-card.hold {
  border-color: rgba(180, 70, 66, 0.38);
  background: rgba(250, 233, 231, 0.78);
}

.comparison-summary-card.info {
  border-color: rgba(43, 110, 153, 0.28);
  background: rgba(228, 240, 247, 0.62);
}

.comparison-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
  min-height: clamp(520px, calc(100vh - 350px), 760px);
}

.comparison-queue-list {
  display: grid;
  gap: 10px;
  max-height: none;
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding-right: 4px;
}

.comparison-queue-item {
  width: 100%;
  min-height: 0;
  padding: 14px 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.comparison-queue-item:hover,
.comparison-queue-item:focus-visible {
  background: rgba(199, 154, 50, 0.08);
  border-color: rgba(199, 154, 50, 0.76);
  box-shadow: 0 0 0 1px rgba(199, 154, 50, 0.14);
  outline: none;
}

.comparison-queue-item.active {
  border-color: rgba(39, 116, 95, 0.86);
  box-shadow:
    0 0 0 1px rgba(39, 116, 95, 0.18),
    0 10px 24px rgba(23, 32, 42, 0.08);
}

.comparison-queue-item.hold {
  border-left: 4px solid var(--red);
}

.comparison-queue-item.review {
  border-left: 4px solid var(--amber);
}

.comparison-queue-item.info {
  border-left: 4px solid var(--blue);
}

.comparison-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comparison-queue-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.comparison-queue-item strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.08;
}

.comparison-queue-item p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 640;
  line-height: 1.4;
}

.comparison-queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
}

.comparison-queue-meta span,
.comparison-queue-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 640;
  line-height: 1.4;
}

.comparison-queue-item small {
  display: block;
  margin-top: 8px;
}

.comparison-dossier-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.comparison-queue-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

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

.comparison-detail-chooser {
  width: fit-content;
}

.comparison-dossier-body {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.comparison-results-stack,
.comparison-diagnostic-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.comparison-dossier-card {
  padding: 12px 14px;
}

.comparison-dossier-card strong {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.3;
}

.comparison-asset-trend-frame {
  height: 240px;
  min-height: 240px;
  max-height: 240px;
}

.comparison-asset-actions {
  display: grid;
  gap: 10px;
}

.comparison-asset-actions-compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.comparison-action-card {
  padding: 12px 14px;
}

.comparison-action-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.comparison-diagnostic-frame {
  height: 300px;
  min-height: 300px;
  max-height: 300px;
}

.comparison-diagnostic-inline-frame {
  margin-bottom: 0;
}

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

.comparison-inline-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.comparison-hover-note {
  margin: -4px 0 0;
  color: #6a7785;
  font-size: 12px;
  line-height: 1.4;
}

.comparison-empty-state {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.comparison-empty-state strong {
  color: var(--ink);
  font-size: 15px;
}

.comparison-empty-state span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ranking-page-stack {
  display: grid;
  gap: 18px;
}

.comparison-note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.comparison-note strong {
  color: var(--ink);
}

.comparison-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.comparison-highlight-grid {
  margin: 0;
}

.comparison-highlight-grid .evidence-card p {
  line-height: 1.45;
}

.ranking-summary-grid {
  margin: 0;
}

.ranking-grid {
  align-items: start;
}

.ranking-chart-frame {
  height: 360px;
  min-height: 360px;
  max-height: 360px;
}

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

.ranking-stat-list div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-stat-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ranking-stat-list strong,
.ranking-stat-list span,
.ranking-stat-list small {
  display: block;
}

.ranking-stat-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.ranking-stat-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.ranking-empty {
  color: var(--muted);
  font-size: 13px;
}

.summary-row {
  display: grid;
  grid-template-columns: 1fr 60px 80px 80px 100px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row.header {
  color: #334251;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row.low-n {
  opacity: 0.76;
}

.summary-row span {
  color: var(--muted);
  font-size: 13px;
}

.summary-row.asset-performance {
  grid-template-columns: minmax(0, 1.2fr) 70px 74px 74px 120px 110px;
}

.summary-row strong small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 640;
  line-height: 1.35;
}

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

.rules-list article {
  padding: 14px;
}

.rules-list p {
  color: var(--muted);
  margin-bottom: 7px;
}

.report-toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.report-body {
  max-width: 1160px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.report-body ul {
  padding-left: 20px;
}

.report-sheet {
  padding: 26px 28px;
  border: 1px solid #d7d1c2;
  border-radius: 12px;
  background: #f8f7f3;
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.14);
  display: grid;
  gap: 18px;
}

.report-sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid #d7d1c2;
}

.report-sheet-head h3 {
  margin: 0;
  color: #111;
  font-size: 34px;
  line-height: 1.02;
}

.report-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #c79a32;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-lead {
  margin: 12px 0 0;
  max-width: 760px;
  color: #625d52;
  font-size: 15px;
  line-height: 1.45;
}

.report-sheet-meta {
  display: grid;
  gap: 6px;
  text-align: right;
  color: #625d52;
  font-size: 13px;
  line-height: 1.35;
}

.report-hero {
  padding: 20px 22px;
  border: 1px solid #d7d1c2;
  border-left-width: 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 8px;
}

.report-hero.ok {
  border-left-color: var(--green);
}

.report-hero.review {
  border-left-color: var(--amber);
}

.report-hero.hold {
  border-left-color: var(--red);
}

.report-hero-label {
  color: #625d52;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-hero strong {
  color: #111;
  font-size: 34px;
  line-height: 1.03;
}

.report-hero p {
  margin: 0;
  color: #625d52;
  font-size: 15px;
  line-height: 1.44;
}

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

.report-summary-card {
  min-height: 112px;
  padding: 14px 16px;
  border: 1px solid #d7d1c2;
  border-top-width: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  align-content: start;
  gap: 5px;
}

.report-summary-card span {
  color: #625d52;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-summary-card strong {
  color: #111;
  font-size: 26px;
  line-height: 1.02;
}

.report-summary-card small {
  color: #625d52;
  font-size: 12px;
  line-height: 1.4;
}

.report-summary-card.ok {
  border-top-color: var(--green);
}

.report-summary-card.review {
  border-top-color: var(--amber);
}

.report-summary-card.hold {
  border-top-color: var(--red);
}

.report-summary-card.neutral {
  border-top-color: #d7d1c2;
}

.report-section {
  padding: 18px 20px;
  border: 1px solid #d7d1c2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 14px;
}

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

.report-section-head span {
  display: block;
  color: #625d52;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.report-section-head strong {
  color: #111;
  font-size: 22px;
  line-height: 1.08;
}

.report-section-head small {
  color: #625d52;
  font-size: 12px;
  line-height: 1.35;
}

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

.report-method-card {
  min-height: 120px;
  padding: 14px 15px;
  border: 1px solid #d7d1c2;
  border-left-width: 4px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  align-content: start;
  gap: 10px;
}

.report-method-card.ok {
  border-left-color: var(--green);
}

.report-method-card.review {
  border-left-color: var(--amber);
}

.report-method-card.hold {
  border-left-color: var(--red);
}

.report-method-card.neutral {
  border-left-color: #d7d1c2;
}

.report-method-top,
.report-action-card-top,
.report-threshold-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.report-method-top strong,
.report-action-card-top strong,
.report-threshold-head strong {
  color: #111;
  font-size: 20px;
  line-height: 1.05;
}

.report-method-top span,
.report-action-card-top span,
.report-threshold-head span {
  color: #625d52;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

.report-method-card p,
.report-action-card p,
.report-threshold-card p {
  margin: 0;
  color: #111;
  font-size: 15px;
  line-height: 1.38;
}

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

.report-action-card,
.report-threshold-card {
  min-height: 148px;
  padding: 16px;
  border: 1px solid #d7d1c2;
  border-left-width: 4px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  align-content: start;
  gap: 10px;
}

.report-action-card.ok,
.report-threshold-card.ok {
  border-left-color: var(--green);
}

.report-action-card.review,
.report-threshold-card.review {
  border-left-color: var(--amber);
}

.report-action-card.hold,
.report-threshold-card.hold {
  border-left-color: var(--red);
}

.report-action-card.neutral,
.report-threshold-card.neutral {
  border-left-color: #d7d1c2;
}

.report-action-card small,
.report-threshold-card small,
.report-empty-note {
  color: #625d52;
  font-size: 12px;
  line-height: 1.42;
}

.report-threshold-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.report-threshold-card dl div {
  padding-top: 8px;
  border-top: 1px solid #e5e0d3;
}

.report-threshold-card dt {
  color: #625d52;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-threshold-card dd {
  margin: 4px 0 0;
  color: #111;
  font-size: 16px;
  font-weight: 780;
}

.report-table-wrap {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.report-table th {
  padding: 10px 12px;
  border-bottom: 1px solid #d7d1c2;
  color: #625d52;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.report-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #ebe6db;
  color: #111;
  font-size: 14px;
  line-height: 1.35;
}

.report-table tr.ok td:first-child {
  border-left: 3px solid var(--green);
}

.report-table tr.review td:first-child {
  border-left: 3px solid var(--amber);
}

.report-table tr.hold td:first-child {
  border-left: 3px solid var(--red);
}

.report-disclosures {
  display: grid;
  gap: 10px;
}

.report-disclosures details {
  border: 1px solid #d7d1c2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 14px;
}

.report-disclosures summary {
  cursor: pointer;
  color: #111;
  font-size: 14px;
  font-weight: 780;
  list-style: none;
}

.report-disclosures summary::-webkit-details-marker {
  display: none;
}

.report-disclosures p {
  margin: 10px 0 0;
  color: #625d52;
  font-size: 13px;
  line-height: 1.46;
}

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

.report-signoff-grid article {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  display: grid;
  gap: 5px;
}

.report-signoff-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-signoff-grid strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pdf-report-page {
  position: relative;
  width: 794px;
  min-height: 1123px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.pdf-report-safe {
  padding: 56px 64px 96px;
  display: grid;
  gap: 16px;
}

.pdf-report-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.pdf-report-brand {
  color: var(--ink);
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
}

.pdf-report-brand span {
  color: var(--gold);
}

.pdf-report-meta {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.pdf-report-heading {
  display: grid;
  gap: 8px;
}

.pdf-report-eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdf-report-heading h1 {
  margin: 0;
  max-width: 620px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.04;
}

.pdf-report-heading p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.44;
}

.pdf-report-band {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  gap: 5px;
}

.pdf-report-band.ok {
  border-left-color: var(--green);
}

.pdf-report-band.review {
  border-left-color: var(--amber);
}

.pdf-report-band.hold {
  border-left-color: var(--red);
}

.pdf-report-band span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdf-report-band strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
}

.pdf-report-band p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.pdf-report-signoff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pdf-report-signoff-grid article {
  min-height: 52px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  align-content: start;
  gap: 4px;
}

.pdf-report-signoff-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdf-report-signoff-grid strong {
  color: var(--ink);
  font-size: 10px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pdf-report-summary-grid {
  display: grid;
  gap: 10px;
}

.pdf-report-summary-grid-program {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pdf-report-summary-grid-method {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pdf-report-summary-card {
  min-height: 82px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-top-width: 4px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  align-content: start;
  gap: 5px;
}

.pdf-report-summary-card.ok {
  border-top-color: var(--green);
}

.pdf-report-summary-card.review {
  border-top-color: var(--amber);
}

.pdf-report-summary-card.hold {
  border-top-color: var(--red);
}

.pdf-report-summary-card.neutral {
  border-top-color: var(--line);
}

.pdf-report-summary-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdf-report-summary-card strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.03;
}

.pdf-report-summary-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.32;
}

.pdf-report-panel {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: grid;
  gap: 12px;
}

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

.pdf-report-panel-head span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.pdf-report-panel-head strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.08;
}

.pdf-report-panel-head small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

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

.pdf-report-method-tile {
  min-height: 76px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 9px;
  background: #fff;
  display: grid;
  align-content: start;
  gap: 6px;
}

.pdf-report-method-tile.ok {
  border-left-color: var(--green);
}

.pdf-report-method-tile.review {
  border-left-color: var(--amber);
}

.pdf-report-method-tile.hold {
  border-left-color: var(--red);
}

.pdf-report-method-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.pdf-report-method-topline strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.04;
}

.pdf-report-method-topline span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

.pdf-report-method-tile p,
.pdf-report-threshold-card p,
.pdf-report-action-row p,
.pdf-report-note p {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.34;
}

.pdf-report-method-tile small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.pdf-report-action-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.pdf-report-action-list.compact {
  gap: 8px;
}

.pdf-report-action-row {
  padding: 0 0 8px;
  border-bottom: 1px solid #ebe6db;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.pdf-report-action-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pdf-report-action-row strong,
.pdf-report-note strong,
.pdf-report-threshold-top strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}

.pdf-report-action-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

.pdf-report-action-row.ok {
  box-shadow: inset 3px 0 0 var(--green);
  padding-left: 10px;
}

.pdf-report-action-row.review {
  box-shadow: inset 3px 0 0 var(--amber);
  padding-left: 10px;
}

.pdf-report-action-row.hold {
  box-shadow: inset 3px 0 0 var(--red);
  padding-left: 10px;
}

.pdf-report-note-stack {
  display: grid;
  gap: 10px;
}

.pdf-report-inline-notes {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.pdf-report-note {
  padding-top: 8px;
  border-top: 1px solid #ebe6db;
  display: grid;
  gap: 4px;
}

.pdf-report-note:first-child {
  padding-top: 0;
  border-top: 0;
}

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

.pdf-report-threshold-card {
  min-height: 120px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 9px;
  background: #fff;
  display: grid;
  align-content: start;
  gap: 8px;
}

.pdf-report-threshold-card.ok {
  border-left-color: var(--green);
}

.pdf-report-threshold-card.review {
  border-left-color: var(--amber);
}

.pdf-report-threshold-card.hold {
  border-left-color: var(--red);
}

.pdf-report-threshold-card.neutral {
  border-left-color: var(--line);
}

.pdf-report-threshold-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.pdf-report-threshold-top span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

.pdf-report-threshold-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pdf-report-threshold-card dl div {
  padding-top: 8px;
  border-top: 1px solid #ebe6db;
}

.pdf-report-threshold-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdf-report-threshold-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.pdf-report-table-wrap {
  overflow: hidden;
  border: 1px solid #ebe6db;
  border-radius: 9px;
}

.pdf-report-table {
  width: 100%;
  border-collapse: collapse;
}

.pdf-report-table th {
  padding: 7px 8px;
  background: #f4efe3;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.pdf-report-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #ebe6db;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.28;
}

.pdf-report-table tbody tr:last-child td {
  border-bottom: 0;
}

.pdf-report-table tr.ok td:first-child {
  border-left: 3px solid var(--green);
}

.pdf-report-table tr.review td:first-child {
  border-left: 3px solid var(--amber);
}

.pdf-report-table tr.hold td:first-child {
  border-left: 3px solid var(--red);
}

.pdf-report-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.pdf-report-footer {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.pdf-export-host {
  position: fixed;
  top: 0;
  left: -200vw;
  width: 794px;
  min-height: 1123px;
  padding: 0;
  pointer-events: none;
  z-index: -1;
  background: #ddd8ca;
}

.pdf-export-viewport {
  position: relative;
  width: 794px;
  min-height: 1123px;
  overflow: hidden;
}

.pdf-export-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-28deg);
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 6px;
  color: rgba(180, 70, 66, 0.13);
  white-space: nowrap;
  pointer-events: none;
  z-index: 50;
}

.pdf-export-viewport[data-scaled="true"] .pdf-report-page {
  transform: scale(var(--pdf-export-scale, 1));
  transform-origin: top left;
}

.pdf-export-host .pdf-report-page {
  margin: 0;
  box-shadow: none;
}

.report-sheet,
.report-hero,
.report-summary-card,
.report-section,
.report-action-card,
.report-method-card,
.report-threshold-card,
.report-table-wrap,
.pdf-report-summary-card,
.pdf-report-panel,
.pdf-report-method-tile,
.pdf-report-threshold-card,
.pdf-report-signoff-grid,
.pdf-report-table-wrap {
  break-inside: avoid;
  page-break-inside: avoid;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.evidence-card {
  min-height: 146px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  align-content: start;
  gap: 6px;
}

.evidence-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.evidence-card strong {
  font-size: 21px;
  line-height: 1.1;
}

.evidence-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.evidence-card.ok {
  border-left-color: var(--green);
}

.evidence-card.review {
  border-left-color: var(--amber);
}

.evidence-card.hold {
  border-left-color: var(--red);
}

.evidence-crosswalk {
  margin: 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.evidence-crosswalk div {
  display: grid;
  grid-template-columns: minmax(145px, 0.32fr) minmax(0, 1fr);
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.evidence-crosswalk div:last-child {
  border-bottom: 0;
}

.evidence-crosswalk strong {
  color: var(--ink);
}

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

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

.topbar .brand-product-name,
.topbar .brand-from {
  display: none;
}

.demo-badge {
  min-height: 32px;
  border: 1px solid #d7b163;
  border-radius: 999px;
  background: #fff8e5;
  color: #6f4b08;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  display: none !important;
}

.signed-out .shell {
  display: block !important;
  min-height: calc(100vh - 56px);
}

.signed-out .sidebar {
  display: none !important;
}

.signed-out .workspace {
  padding: 0;
  overflow: visible;
}

.navless-mode .shell {
  display: block;
  min-height: calc(100vh - 78px);
}

.navless-mode .topbar {
  background: rgba(3, 6, 7, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.navless-mode .customer-bar strong {
  color: #f7f3e8;
}

.navless-mode .customer-bar,
.navless-mode .customer-bar span,
.navless-mode .powered-by-link {
  color: rgba(247, 243, 232, 0.72);
}

.navless-mode .sidebar {
  display: none;
}

.signed-out .topbar {
  background: rgba(3, 6, 7, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.directory-mode {
  background: #030607;
  color: #f7f3e8;
}

.directory-mode .topbar {
  background: rgba(3, 6, 7, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.directory-mode .shell {
  min-height: calc(100vh - 78px - 44px);
}

.directory-mode .brand-product-name,
.directory-mode .customer-bar strong {
  color: #f7f3e8;
}

.directory-mode .brand-from,
.directory-mode .customer-bar,
.directory-mode .customer-bar span,
.directory-mode .powered-by-link {
  color: rgba(247, 243, 232, 0.72);
}

.navless-mode #signOutBtn,
.navless-mode #loginBtn {
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.navless-mode #signOutBtn:hover,
.navless-mode #signOutBtn:focus-visible,
.navless-mode #loginBtn:hover,
.navless-mode #loginBtn:focus-visible {
  border-color: rgba(199, 154, 50, 0.8);
  box-shadow:
    0 0 0 1px rgba(199, 154, 50, 0.28),
    0 0 20px rgba(199, 154, 50, 0.18);
  outline: none;
}

.navless-mode #signOutBtn:active,
.navless-mode #loginBtn:active {
  background: rgba(199, 154, 50, 0.96);
  border-color: #c79a32;
  color: #111111;
  box-shadow:
    0 0 0 1px rgba(199, 154, 50, 0.42),
    0 0 24px rgba(199, 154, 50, 0.24);
  transform: translateY(1px);
}

.signed-out .brand-product-name,
.signed-out .brand-from {
  display: none;
}

.signed-out .powered-by-link {
  color: rgba(247, 243, 232, 0.72);
}

.directory-mode .demo-badge {
  background: rgba(199, 154, 50, 0.12);
  border-color: rgba(199, 154, 50, 0.52);
  color: #ead08c;
}

.directory-mode .shell {
  display: block;
  min-height: calc(100vh - 78px);
}

.directory-mode .sidebar {
  display: none;
}

.directory-mode .workspace {
  padding: 0;
  overflow: visible;
}

.front-hero {
  min-height: clamp(500px, 72vh, 760px);
  padding: clamp(32px, 7vw, 88px);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.82), rgba(17, 17, 17, 0.45)),
    url("assets/kat-qa-hero-replaced-core.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: grid;
  align-items: center;
}

.front-hero-content {
  max-width: 780px;
}

.front-hero h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.03;
}

.front-hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.front-hero .eyebrow {
  color: #a8d6ee;
}

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

.front-actions .secondary {
  border-color: rgba(255, 255, 255, 0.72);
}

.front-note {
  margin-top: 12px;
  color: #e8eef2;
  font-size: 14px;
}

.front-stats,
.front-example-grid,
.front-section,
.front-workflow,
.privacy-band {
  width: min(1180px, calc(100% - 40px));
  margin: 22px auto;
}

.front-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.front-example {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.05);
}

.front-example span {
  color: var(--muted);
  font-size: 13px;
}

.front-example strong {
  display: block;
  margin: 6px 0;
  font-size: 20px;
}

.front-example p {
  margin-bottom: 0;
  color: var(--muted);
}

.front-example.hold {
  border-color: #e7aaa7;
  background: #fff8f7;
}

.front-example.ok {
  border-color: #a9d1c3;
  background: #f4fbf7;
}

.front-example.review {
  border-color: #e1c280;
  background: #fffaf0;
}

.front-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
  align-items: start;
  padding: 20px 0;
}

.front-proof-grid,
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.front-proof-grid article,
.front-workflow article,
.manual-card,
.manual-sections article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.05);
}

.front-proof-grid span,
.front-workflow span,
.portal-tile span,
.portal-identity span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.front-proof-grid strong,
.front-workflow strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.front-proof-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.front-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  padding-bottom: 32px;
}

.privacy-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef6fa;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: start;
}

.privacy-band p {
  margin-bottom: 0;
  color: var(--muted);
}

.directory-page.active {
  display: block;
}

.module-directory {
  position: relative;
  min-height: calc(100vh - 78px - 44px);
  padding: clamp(28px, 4vw, 62px);
  overflow: hidden;
  isolation: isolate;
  color: #f7f3e8;
  background:
    linear-gradient(90deg, rgba(1, 4, 5, 0.9) 0%, rgba(1, 4, 5, 0.74) 38%, rgba(1, 4, 5, 0.46) 100%),
    url("assets/yistiva-directory-lab.png") center / cover no-repeat;
}

.module-directory::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    radial-gradient(circle at 18% 24%, rgba(39, 116, 95, 0.2), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(199, 154, 50, 0.16), transparent 26%);
  pointer-events: none;
}

.directory-scrim {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: -1;
  background: linear-gradient(0deg, rgba(1, 4, 5, 0.86), transparent);
  pointer-events: none;
}

.directory-content {
  width: min(100%, 1220px);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  padding-bottom: clamp(76px, 10vh, 116px);
}

.directory-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.directory-copy {
  max-width: 560px;
  padding-top: clamp(12px, 4vh, 42px);
}

.directory-copy h2 {
  max-width: 460px;
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 0.98;
  letter-spacing: 0;
}

.qa-directory .directory-copy h2 {
  max-width: none;
  font-size: clamp(42px, 6vw, 82px);
}

.qa-directory .directory-copy .tm {
  margin-left: 0.08em;
  font-size: 0.18em;
  vertical-align: super;
  letter-spacing: 0;
  font-weight: 800;
}

.portal-title-wordmark {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.12em 0.18em;
  white-space: normal;
}

.portal-title-wordmark .yistiva-mark {
  font: inherit;
  line-height: inherit;
}

.portal-title-wordmark .tm {
  margin-left: 0.08em;
  font-size: 0.18em;
  vertical-align: super;
  letter-spacing: 0;
  font-weight: 800;
}

.portal-title-tail {
  color: #ffffff;
}

.directory-copy .muted:empty {
  display: none;
}

.directory-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: clamp(18px, 4vh, 54px);
}

.directory-actions .secondary {
  min-width: 124px;
  font-weight: 780;
}

.qa-directory {
  background:
    linear-gradient(90deg, rgba(1, 4, 5, 0.94) 0%, rgba(1, 4, 5, 0.74) 34%, rgba(1, 4, 5, 0.42) 100%),
    url("assets/yistiva-qa-directory-lab.png") center / cover no-repeat;
}

.setup-directory {
  background:
    linear-gradient(90deg, rgba(1, 4, 5, 0.94) 0%, rgba(1, 4, 5, 0.74) 34%, rgba(1, 4, 5, 0.42) 100%),
    url("assets/yistiva-directory-lab.png") center / cover no-repeat;
}

.people-directory {
  background:
    linear-gradient(90deg, rgba(1, 4, 5, 0.94) 0%, rgba(1, 4, 5, 0.74) 34%, rgba(1, 4, 5, 0.42) 100%),
    url("assets/yistiva-qa-directory-lab.png") center / cover no-repeat;
}

.work-directory {
  background:
    linear-gradient(90deg, rgba(1, 4, 5, 0.94) 0%, rgba(1, 4, 5, 0.74) 34%, rgba(1, 4, 5, 0.42) 100%),
    url("assets/yistiva-directory-lab.png") center / cover no-repeat;
}

.sample-directory {
  background:
    linear-gradient(90deg, rgba(1, 4, 5, 0.94) 0%, rgba(1, 4, 5, 0.74) 34%, rgba(1, 4, 5, 0.42) 100%),
    url("assets/yistiva-directory-lab.png") center / cover no-repeat;
}

.manuals-directory {
  background:
    linear-gradient(90deg, rgba(1, 4, 5, 0.94) 0%, rgba(1, 4, 5, 0.74) 34%, rgba(1, 4, 5, 0.42) 100%),
    url("assets/yistiva-qa-directory-lab.png") center / cover no-repeat;
}

.qa-directory::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    radial-gradient(circle at 20% 28%, rgba(39, 116, 95, 0.18), transparent 34%),
    radial-gradient(circle at 74% 22%, rgba(199, 154, 50, 0.14), transparent 28%);
}

.qa-directory .directory-copy {
  max-width: 620px;
  padding-top: clamp(20px, 6vh, 64px);
}

.module-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  color: rgba(234, 232, 226, 0.82);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.directory-breadcrumb {
  margin-bottom: 18px;
}

.module-breadcrumb > span:not(.breadcrumb-sep) {
  color: rgba(234, 232, 226, 0.88) !important;
}

.breadcrumb-sep {
  color: rgba(234, 232, 226, 0.58) !important;
}

.breadcrumb-link {
  all: unset;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: rgba(234, 232, 226, 0.88) !important;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  font: inherit;
  font-weight: 760;
  letter-spacing: inherit;
  text-transform: inherit;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  color: #c79a32 !important;
  text-shadow:
    0 0 10px rgba(199, 154, 50, 0.28),
    0 0 20px rgba(199, 154, 50, 0.16);
  filter: none;
  outline: none;
}

.breadcrumb-link:active {
  color: #c79a32;
  transform: none;
}

.app-footer {
  display: none;
}

.directory-mode .app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 18px 14px;
  color: rgba(247, 243, 232, 0.56);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
  text-align: center;
  background: #030607;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.module-roadmap {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(7, 12, 13, 0.46);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.module-roadmap-head {
  display: grid;
  gap: 4px;
}

.module-roadmap-head span {
  color: rgba(234, 208, 140, 0.84);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-roadmap-head strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
}

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

.module-roadmap-card {
  position: relative;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.module-roadmap-ribbon {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(234, 208, 140, 0.86);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-roadmap-card strong {
  display: block;
  color: rgba(247, 243, 232, 0.9);
  font-size: 14px;
  line-height: 1.2;
}

.module-roadmap-card p {
  margin: 6px 0 0;
  color: rgba(247, 243, 232, 0.56);
  font-size: 12px;
  line-height: 1.35;
}

.module-tile {
  min-height: 194px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 12, 13, 0.72);
  color: rgba(247, 243, 232, 0.78);
  text-align: left;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 9px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.module-visual {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

.module-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(9, 14, 16, 0.92);
  color: rgba(234, 208, 140, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.module-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.module-arrow {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.38);
  transition: transform 180ms ease, color 180ms ease, opacity 180ms ease;
}

.module-arrow svg {
  width: 20px;
  height: 20px;
  display: block;
}

.module-tile strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
}

.module-tile small {
  color: rgba(247, 243, 232, 0.68);
  font-size: 14px;
  line-height: 1.42;
}

.module-meta {
  color: rgba(234, 208, 140, 0.88);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.module-tile.enabled {
  border-color: rgba(199, 154, 50, 0.52);
  background:
    linear-gradient(135deg, rgba(39, 116, 95, 0.32), rgba(7, 12, 13, 0.78) 58%),
    rgba(7, 12, 13, 0.72);
  cursor: pointer;
}

.module-tile.enabled:hover,
.module-tile.enabled:focus-visible {
  border-color: #69daac;
  color: #fff;
  outline: none;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(105, 218, 172, 0.24),
    0 22px 70px rgba(0, 0, 0, 0.36),
    0 0 46px rgba(39, 116, 95, 0.24);
}

.module-tile.enabled:hover .module-arrow,
.module-tile.enabled:focus-visible .module-arrow {
  color: #9befca;
  transform: translateX(3px);
}

.module-tile.enabled:hover .module-icon,
.module-tile.enabled:focus-visible .module-icon {
  border-color: rgba(105, 218, 172, 0.44);
  color: #f0d391;
  background:
    linear-gradient(180deg, rgba(105, 218, 172, 0.08), rgba(255, 255, 255, 0.01)),
    rgba(8, 13, 15, 0.96);
}

.module-tile.selected {
  border-color: #69daac;
  box-shadow:
    inset 0 0 0 2px rgba(105, 218, 172, 0.9),
    0 24px 80px rgba(0, 0, 0, 0.42),
    0 0 54px rgba(39, 116, 95, 0.34);
}

.module-tile.selected .module-icon {
  border-color: rgba(105, 218, 172, 0.62);
}

.module-tile.coming-soon {
  opacity: 0.62;
  cursor: not-allowed;
}

.module-tile.coming-soon .module-icon {
  color: rgba(214, 214, 214, 0.62);
  border-color: rgba(255, 255, 255, 0.08);
}

.module-tile.coming-soon strong,
.module-tile.coming-soon small,
.module-tile.coming-soon .module-meta {
  color: rgba(247, 243, 232, 0.58);
}

.qa-hub-shell {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.qa-hub-nav {
  position: sticky;
  top: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(8, 13, 15, 0.92), rgba(6, 9, 11, 0.78)),
    rgba(7, 12, 13, 0.78);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.qa-hub-nav-group + .qa-hub-nav-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qa-hub-nav-group header {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.qa-hub-nav-label {
  color: rgba(247, 243, 232, 0.88);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qa-hub-nav-detail {
  color: rgba(247, 243, 232, 0.44);
  font-size: 12px;
}

.qa-hub-nav-list {
  display: grid;
  gap: 8px;
}

.qa-hub-nav-button {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  color: rgba(247, 243, 232, 0.84);
}

.qa-hub-nav-button:hover,
.qa-hub-nav-button:focus-visible {
  background: rgba(199, 154, 50, 0.14);
  border-color: rgba(199, 154, 50, 0.7);
  color: #fff;
  outline: none;
  box-shadow:
    0 0 0 1px rgba(199, 154, 50, 0.18),
    0 0 26px rgba(199, 154, 50, 0.12);
}

.qa-hub-nav-icon,
.qa-hub-priority-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(9, 14, 16, 0.9);
  color: rgba(234, 208, 140, 0.9);
}

.qa-hub-nav-icon svg,
.qa-hub-priority-icon svg,
.qa-hub-priority-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

.qa-hub-nav-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.qa-hub-nav-copy strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.1;
}

.qa-hub-nav-copy small {
  color: rgba(247, 243, 232, 0.46);
  font-size: 12px;
  line-height: 1.3;
}

.qa-hub-nav-signal,
.qa-hub-priority-signal {
  color: rgba(247, 243, 232, 0.72);
  font-size: 12px;
  font-weight: 760;
}

.qa-hub-nav-signal.ok,
.qa-hub-priority-signal.ok {
  color: #9befca;
}

.qa-hub-nav-signal.review,
.qa-hub-priority-signal.review {
  color: #ead08c;
}

.qa-hub-nav-signal.hold,
.qa-hub-priority-signal.hold {
  color: #f0a7a1;
}

.qa-hub-main {
  display: grid;
  gap: 18px;
}

.qa-hub-command,
.qa-hub-action-list,
.qa-hub-method-strip {
  display: grid;
}

.qa-hub-command-card,
.qa-hub-surface {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(7, 12, 13, 0.9), rgba(7, 12, 13, 0.76)),
    rgba(7, 12, 13, 0.78);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.qa-hub-command-card {
  display: grid;
  gap: 18px;
}

.qa-hub-command-card.ok {
  border-color: rgba(105, 218, 172, 0.34);
}

.qa-hub-command-card.review {
  border-color: rgba(234, 208, 140, 0.34);
}

.qa-hub-command-card.hold {
  border-color: rgba(240, 167, 161, 0.34);
}

.qa-hub-command-copy {
  display: grid;
  gap: 8px;
}

.qa-hub-command-label,
.qa-hub-surface-head span {
  color: rgba(234, 208, 140, 0.84);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qa-hub-command-copy strong,
.qa-hub-surface-head strong {
  color: #fff;
  font-size: 32px;
  line-height: 1.02;
}

.qa-hub-command-copy p {
  margin: 0;
  color: rgba(247, 243, 232, 0.74);
  font-size: 14px;
  line-height: 1.45;
}

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

.qa-hub-command-stat {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.qa-hub-command-stat span {
  display: block;
  color: rgba(247, 243, 232, 0.56);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qa-hub-command-stat strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.qa-hub-command-stat.ok {
  border-color: rgba(105, 218, 172, 0.3);
}

.qa-hub-command-stat.review {
  border-color: rgba(234, 208, 140, 0.3);
}

.qa-hub-command-stat.hold {
  border-color: rgba(240, 167, 161, 0.3);
}

.qa-hub-surface {
  display: grid;
  gap: 14px;
}

.qa-hub-surface-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.qa-hub-surface-head strong {
  font-size: 22px;
}

.qa-hub-surface-meta {
  color: rgba(247, 243, 232, 0.56);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.qa-hub-actions {
  display: grid;
  gap: 10px;
}

.qa-hub-action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.qa-hub-action-item.review {
  border-color: rgba(234, 208, 140, 0.28);
}

.qa-hub-action-item.hold {
  border-color: rgba(240, 167, 161, 0.28);
}

.qa-hub-action-main,
.qa-hub-action-side,
.qa-hub-action-top {
  display: grid;
}

.qa-hub-action-top {
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.qa-hub-action-top strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.05;
}

.qa-hub-action-main p {
  margin: 8px 0 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
}

.qa-hub-action-main small,
.qa-hub-action-side span,
.qa-hub-empty-state p,
.qa-hub-overflow-note {
  color: rgba(247, 243, 232, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.qa-hub-action-main small {
  display: block;
  margin-top: 7px;
}

.qa-hub-action-facts {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
}

.qa-hub-action-facts div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.qa-hub-action-facts dt {
  color: rgba(234, 208, 140, 0.78);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qa-hub-action-facts dd {
  margin: 0;
  color: rgba(247, 243, 232, 0.76);
  font-size: 13px;
  line-height: 1.35;
}

.dashboard-asset-details,
.dashboard-action-asset-note {
  margin-top: 10px;
  color: rgba(247, 243, 232, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-asset-details summary {
  cursor: pointer;
  color: rgba(234, 208, 140, 0.9);
  font-weight: 800;
}

.dashboard-asset-details div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.dashboard-asset-details span,
.dashboard-action-asset-note {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid rgba(240, 167, 161, 0.28);
  border-radius: 999px;
  background: rgba(240, 167, 161, 0.08);
}

.dashboard-action-asset-note.review {
  border-color: rgba(234, 208, 140, 0.28);
  background: rgba(234, 208, 140, 0.08);
}

.qa-hub-action-side {
  min-width: 240px;
  justify-items: end;
  gap: 12px;
  text-align: right;
}

.qa-hub-action-buttons {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.qa-hub-empty-state {
  padding: 18px 20px;
  border: 1px solid rgba(105, 218, 172, 0.24);
  border-radius: 8px;
  background: rgba(105, 218, 172, 0.04);
}

.qa-hub-empty-state strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
}

.qa-hub-overflow-note {
  margin: 0;
}

.tasks-layout {
  display: grid;
  gap: 16px;
}

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

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

.qa-task-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(19, 26, 28, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(11, 17, 18, 0.04);
}

.qa-task-item.ok {
  border-color: rgba(69, 156, 119, 0.34);
}

.qa-task-item.review {
  border-color: rgba(199, 154, 50, 0.38);
}

.qa-task-item.hold {
  border-color: rgba(204, 96, 88, 0.34);
}

.qa-task-main,
.qa-task-side,
.qa-task-top {
  display: grid;
}

.qa-task-top {
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.qa-task-top small {
  color: rgba(24, 31, 33, 0.58);
  font-size: 12px;
  line-height: 1.35;
}

.qa-task-main strong {
  color: #12181a;
  font-size: 20px;
  line-height: 1.08;
}

.qa-task-main p {
  margin: 8px 0 0;
  color: rgba(24, 31, 33, 0.86);
  font-size: 14px;
  line-height: 1.45;
}

.qa-task-note {
  margin-top: 8px;
  color: rgba(24, 31, 33, 0.62);
  font-size: 12px;
  line-height: 1.4;
}

.qa-task-side {
  min-width: 220px;
  justify-items: end;
  gap: 12px;
  text-align: right;
}

.qa-task-side span {
  color: rgba(24, 31, 33, 0.66);
  font-size: 13px;
  line-height: 1.4;
}

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

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

.qa-hub-method-pill {
  min-height: 108px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.68);
  display: grid;
  gap: 8px;
  text-align: left;
  color: rgba(247, 243, 232, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.qa-hub-method-pill strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.06;
}

.qa-hub-method-pill span {
  color: rgba(234, 208, 140, 0.92);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qa-hub-method-pill small {
  color: rgba(247, 243, 232, 0.58);
  font-size: 12px;
  line-height: 1.35;
}

.qa-hub-method-pill.ok {
  border-color: rgba(105, 218, 172, 0.38);
  background:
    linear-gradient(180deg, rgba(105, 218, 172, 0.13), rgba(17, 17, 17, 0.78) 68%),
    rgba(17, 17, 17, 0.76);
}

.qa-hub-method-pill.review {
  border-color: rgba(234, 208, 140, 0.42);
  background:
    linear-gradient(180deg, rgba(234, 208, 140, 0.15), rgba(17, 17, 17, 0.8) 68%),
    rgba(17, 17, 17, 0.76);
}

.qa-hub-method-pill.hold {
  border-color: rgba(240, 167, 161, 0.42);
  background:
    linear-gradient(180deg, rgba(240, 167, 161, 0.16), rgba(17, 17, 17, 0.82) 68%),
    rgba(17, 17, 17, 0.76);
}

.qa-hub-method-pill.ok span {
  color: rgba(143, 232, 188, 0.96);
}

.qa-hub-method-pill.review span {
  color: rgba(234, 208, 140, 0.98);
}

.qa-hub-method-pill.hold span {
  color: rgba(247, 178, 171, 0.98);
}

.qa-hub-method-pill.locked {
  cursor: default;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(17, 17, 17, 0.82) 68%),
    rgba(17, 17, 17, 0.76);
}

.qa-hub-method-pill.locked span {
  color: rgba(234, 208, 140, 0.9);
}

.qa-hub-method-pill.locked small {
  color: rgba(247, 243, 232, 0.62);
}

.qa-hub-method-pill:hover,
.qa-hub-method-pill:focus-visible {
  border-color: rgba(199, 154, 50, 0.82);
  color: #fff;
  outline: none;
  box-shadow:
    0 0 0 1px rgba(199, 154, 50, 0.18),
    0 18px 44px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(199, 154, 50, 0.12);
}

.qa-hub-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.qa-hub-status-card,
.qa-hub-preview-card {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(7, 12, 13, 0.88), rgba(7, 12, 13, 0.72)),
    rgba(7, 12, 13, 0.74);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.qa-hub-status-card span,
.qa-hub-preview-card span {
  display: block;
  color: rgba(247, 243, 232, 0.54);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qa-hub-status-card strong,
.qa-hub-preview-card strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.qa-hub-status-card p,
.qa-hub-preview-card p {
  margin: 10px 0 0;
  color: rgba(247, 243, 232, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.qa-hub-status-card.ok {
  border-color: rgba(105, 218, 172, 0.34);
}

.qa-hub-status-card.review {
  border-color: rgba(234, 208, 140, 0.34);
}

.qa-hub-status-card.hold {
  border-color: rgba(240, 167, 161, 0.34);
}

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

.qa-hub-priority-card {
  min-height: 208px;
  padding: 18px;
  border: 1px solid rgba(199, 154, 50, 0.44);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(39, 116, 95, 0.22), rgba(7, 12, 13, 0.82) 60%),
    rgba(7, 12, 13, 0.8);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  text-align: left;
  color: rgba(247, 243, 232, 0.86);
}

.qa-hub-priority-card:hover,
.qa-hub-priority-card:focus-visible {
  border-color: rgba(199, 154, 50, 0.88);
  background:
    linear-gradient(135deg, rgba(39, 116, 95, 0.28), rgba(7, 12, 13, 0.86) 60%),
    rgba(7, 12, 13, 0.84);
  box-shadow:
    0 0 0 1px rgba(199, 154, 50, 0.18),
    0 20px 56px rgba(0, 0, 0, 0.32),
    0 0 34px rgba(199, 154, 50, 0.12);
  outline: none;
}

.qa-hub-priority-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qa-hub-priority-arrow {
  color: rgba(247, 243, 232, 0.4);
}

.qa-hub-priority-kicker {
  color: rgba(234, 208, 140, 0.84);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qa-hub-priority-card strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.05;
}

.qa-hub-priority-card p {
  margin: 0;
  color: rgba(247, 243, 232, 0.72);
  font-size: 14px;
  line-height: 1.42;
}

.qa-hub-group-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.qa-hub-preview-card small {
  display: block;
  margin-top: 10px;
  color: rgba(247, 243, 232, 0.44);
  font-size: 12px;
  line-height: 1.45;
}

.module-qms .module-icon,
.module-enterprise .module-icon {
  color: rgba(175, 210, 240, 0.88);
}

.module-samples .module-icon,
.module-chemicals .module-icon {
  color: rgba(214, 193, 141, 0.9);
}

.module-data .module-icon,
.module-reports .module-icon {
  color: rgba(170, 220, 202, 0.88);
}

.module-dashboard .module-icon,
.module-analytics .module-icon,
.module-database .module-icon {
  color: rgba(170, 220, 202, 0.9);
}

.module-home .module-icon,
.module-subscription .module-icon,
.module-manual .module-icon {
  color: rgba(234, 208, 140, 0.9);
}

.module-entry .module-icon,
.module-run .module-icon,
.module-audit .module-icon {
  color: rgba(176, 205, 238, 0.9);
}

.module-method .module-icon,
.module-rules .module-icon {
  color: rgba(157, 233, 194, 0.92);
}

.module-people .module-icon {
  color: rgba(207, 188, 234, 0.86);
}

.manual-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.manual-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.manual-card {
  position: sticky;
  top: 104px;
}

.manual-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.manual-sections {
  display: grid;
  gap: 14px;
}

.manual-sections ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.manual-sections li + li {
  margin-top: 7px;
}

/* Expanded manual: contents index + document body */
.manual-toc {
  position: sticky;
  top: 104px;
  align-self: start;
  max-height: calc(100vh - 130px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.manual-toc > strong {
  display: block;
  font-size: 16px;
  margin: 2px 0 6px;
}

.manual-toc-intro {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.manual-toc-eyebrow {
  margin-top: 6px;
}

.manual-toc-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.manual-toc-link {
  width: 100%;
  min-height: 0;
  text-align: left;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.manual-toc-link:hover {
  background: var(--soft);
}

.manual-toc-link:focus-visible {
  outline: none;
  border-color: var(--blue);
}

.manual-body {
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  max-width: 880px;
}

.manual-doc-head {
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.manual-doc-head h1 {
  margin: 0 0 4px;
  font-size: 26px;
}

.manual-doc-head .muted {
  margin: 0;
}

.manual-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.manual-section:last-child {
  border-bottom: 0;
}

.manual-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.manual-section p {
  margin: 0 0 12px;
  color: #25221c;
}

.manual-section ul,
.manual-section ol {
  margin: 0 0 12px;
  padding-left: 22px;
  color: #25221c;
}

.manual-section li + li {
  margin-top: 6px;
}

.manual-section code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--ink);
}

.manual-deeplink {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.manual-deeplink:hover {
  text-decoration: underline;
}

.manual-deeplink:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

.manual-table {
  width: 100%;
  min-width: 0; /* override the global `table { min-width: 980px }` so fixed layout fits the panel */
  table-layout: fixed;
  border-collapse: collapse;
  margin: 4px 0 14px;
  font-size: 13px;
}

.manual-table th,
.manual-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 11px;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.manual-table thead th {
  background: var(--soft);
  font-weight: 800;
}

.manual-table tbody tr:nth-child(even) {
  background: rgba(238, 233, 221, 0.32);
}

.manual-glossary {
  margin: 0;
  display: grid;
  gap: 10px;
}

.manual-def {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.manual-def dt {
  margin: 0;
  font-weight: 800;
}

.manual-def dd {
  margin: 0;
  color: var(--muted);
}

.manual-top-link {
  min-height: 0;
  margin-top: 4px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.manual-top-link:hover {
  color: var(--blue);
}

@media (max-width: 900px) {
  .manual-layout {
    grid-template-columns: 1fr;
  }
  .manual-toc {
    position: static;
    max-height: none;
  }
  .manual-body {
    padding: 20px;
  }
  .manual-def {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

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

.signed-out .topbar {
  justify-content: flex-start;
  min-height: 56px;
  padding: 8px 22px;
  border-bottom-color: rgba(248, 247, 243, 0.12);
  background: #070a0d;
  color: #f8f7f3;
}

.signed-out .customer-bar {
  display: none;
}

.signed-out .brand {
  gap: 0;
}

.signed-out .brand-lockup,
.signed-out .brand-endorsement {
  gap: 0;
}

.signed-out .brand-endorsement {
  padding-bottom: 0;
}

.signed-out .powered-by-link {
  gap: 0;
  color: rgba(248, 247, 243, 0.62);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.signed-out .powered-by-link span {
  font-size: 10px;
  letter-spacing: 0;
}

.signed-out .customer-actions .secondary {
  background: transparent;
  color: #f8f7f3;
  border-color: rgba(248, 247, 243, 0.22);
}

.signed-out .kat-logo {
  width: 94px;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.signed-out .customer-bar .demo-badge {
  background: rgba(248, 247, 243, 0.96);
  border-color: rgba(199, 154, 50, 0.72);
  color: #6f4b08;
}

.qa-launch-screen {
  position: relative;
  min-height: calc(100vh - 56px);
  overflow: hidden;
  isolation: isolate;
  color: #f8f7f3;
  background: #070a0d;
  --launch-title-x: clamp(28px, 5vw, 72px);
  --launch-title-top: clamp(130px, 23vh, 230px);
  --launch-title-size: clamp(42px, 7vw, 88px);
  --logo-rise-start: clamp(190px, 34vh, 360px);
}

.qa-launch-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("assets/yistiva-launch-poster.png");
  background-size: cover;
  background-position: center;
}

.qa-launch-screen::after {
  content: none;
}

.launch-loader {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  background: #05080a;
  animation: loaderOut 4.22s linear forwards;
  pointer-events: none;
}

.launch-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.launch-video-disabled .launch-video {
  display: none;
}

.cinema-bg {
  position: absolute;
  inset: -9%;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 8, 10, 0.92), rgba(5, 8, 10, 0.22) 56%, rgba(5, 8, 10, 0.56)),
    url("assets/yistiva-launch-poster.png");
  background-size: cover;
  background-position: 58% center;
  filter: none;
  transform-origin: 64% 38%;
}

.cinema-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(circle at 76% 43%, rgba(255, 255, 255, 0.11), transparent 15%),
    radial-gradient(circle at 74% 57%, rgba(86, 180, 233, 0.17), transparent 25%),
    linear-gradient(0deg, rgba(5, 8, 10, 0.62), transparent 48%, rgba(5, 8, 10, 0.48));
  animation: cinematicGlow 3.55s ease-out forwards;
}

.cinema-lightfield,
.cinema-aura {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.cinema-lightfield {
  background:
    radial-gradient(ellipse at 73% 43%, rgba(248, 247, 243, 0.26), transparent 13%),
    radial-gradient(ellipse at 72% 70%, rgba(199, 154, 50, 0.16), transparent 18%),
    radial-gradient(ellipse at 48% 53%, rgba(86, 180, 233, 0.18), transparent 24%),
    radial-gradient(ellipse at 85% 20%, rgba(248, 247, 243, 0.12), transparent 18%);
  mix-blend-mode: screen;
  animation: lightfieldSettle 3.55s ease-out forwards;
}

.cinema-aura {
  background:
    linear-gradient(132deg, transparent 0 48%, rgba(248, 247, 243, 0.13) 52%, transparent 60%),
    radial-gradient(circle at 69% 50%, rgba(86, 180, 233, 0.13), transparent 26%);
  opacity: 0;
  transform: scale(1.035);
  animation: apertureSettle 3.55s cubic-bezier(.2, .8, .2, 1) forwards;
}

.cinema-probe {
  position: absolute;
  z-index: 5;
  right: clamp(80px, 18vw, 300px);
  top: clamp(155px, 25vh, 275px);
  width: 104px;
  height: 104px;
  border: 1px solid rgba(86, 180, 233, 0.58);
  border-radius: 999px;
  opacity: 0;
  box-shadow:
    0 0 28px rgba(86, 180, 233, 0.28),
    inset 0 0 22px rgba(86, 180, 233, 0.12);
  animation: probePulse 3.2s ease-out .42s forwards;
}

.cinema-probe::before,
.cinema-probe::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(199, 154, 50, 0.42);
  border-radius: inherit;
}

.cinema-probe::after {
  inset: -18px;
  border-color: rgba(86, 180, 233, 0.18);
}

.cinema-logo {
  position: absolute;
  z-index: 5;
  left: var(--launch-title-x);
  top: var(--launch-title-top);
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform-origin: left top;
  transform: translate3d(0, var(--logo-rise-start), 0) scale(.52);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation:
    cinemaLogoLand 4.12s cubic-bezier(.12, .78, .08, 1) forwards,
    cinemaLogoFade 1.05s ease-out .12s forwards;
}

.cinema-logo strong {
  display: block;
  color: #fff;
  font-size: var(--launch-title-size);
  line-height: .92;
  letter-spacing: 0;
}

.loader-line {
  position: absolute;
  z-index: 7;
  left: var(--launch-title-x);
  right: var(--launch-title-x);
  bottom: 18px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(248, 247, 243, 0.16);
}

.loader-line span {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: linear-gradient(90deg, #27745f, #56b4e9, #c79a32);
  animation: loaderLine 3.85s cubic-bezier(.42, 0, .18, 1) forwards;
}

.qa-launch-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(320px, 760px);
  gap: 0;
  align-items: start;
  padding: var(--launch-title-top) var(--launch-title-x) clamp(28px, 5vw, 72px);
}

.qa-launch-copy {
  max-width: 760px;
  display: grid;
  gap: 16px;
  animation: launchRise .8s ease-out .55s both;
}

.qa-launch-title {
  margin: 0;
  max-width: 640px;
  color: #fff;
  font-size: var(--launch-title-size);
  line-height: .92;
  letter-spacing: 0;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
  user-select: none;
}

.launch-title .tm,
.cinema-logo .tm,
.qa-launch-title .tm {
  margin-left: 0.08em;
  font-size: .18em;
  vertical-align: super;
  letter-spacing: 0;
  font-weight: 800;
}

.qa-launch-tagline {
  margin: 10px 0 0 14px;
  color: rgba(248, 247, 243, 0.96);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 620;
  line-height: 1.12;
}

.qa-launch-tagline-main,
.qa-launch-tagline-sub {
  display: block;
}

.qa-launch-tagline-sub {
  margin-top: 6px;
  margin-left: 14px;
  color: rgba(248, 247, 243, 0.88);
  font-size: 0.7em;
  font-weight: 500;
  letter-spacing: 0;
}

.qa-launch-subtitle {
  margin: 0;
  max-width: 640px;
  color: rgba(248, 247, 243, 0.78);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.35;
}

.qa-launch-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 230px));
  gap: 12px;
  margin-top: 20px;
}

.qa-launch-action {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  border: 1px solid rgba(248, 247, 243, 0.16);
  border-radius: 8px;
  padding: 16px;
  color: #f8f7f3;
  text-align: left;
  text-decoration: none;
  background: rgba(20, 24, 27, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.20);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.qa-launch-action.primary {
  background: linear-gradient(135deg, rgba(43, 110, 153, 0.84), rgba(39, 116, 95, 0.72));
  border-color: rgba(86, 180, 233, 0.42);
  box-shadow: 0 24px 70px rgba(43, 110, 153, 0.24);
}

.qa-launch-action:hover,
.qa-launch-action:focus-visible,
.sample-tile:hover,
.sample-tile:focus-visible,
.dock-item:hover,
.dock-item:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(248, 247, 243, 0.44);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.34);
  filter: none;
  outline: none;
}

.qa-launch-action:active,
.sample-tile:active,
.dock-item:active {
  transform: translateY(-1px) scale(.99);
}

.action-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(248, 247, 243, 0.12);
  color: #fff;
}

.qa-launch-action strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.qa-launch-action small {
  color: rgba(248, 247, 243, 0.66);
  font-weight: 650;
}

.qa-launch-side {
  align-self: center;
  display: grid;
  gap: 12px;
  animation: launchRise .8s ease-out .72s both;
}

.sample-tile {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid rgba(248, 247, 243, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 12, 15, 0.90), rgba(8, 12, 15, 0.58)),
    linear-gradient(90deg, rgba(86, 180, 233, 0.15), transparent);
  color: #f8f7f3;
  text-align: left;
  padding: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.sample-tile::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: #c79a32;
}

.sample-tile strong {
  align-self: end;
  padding-top: 26px;
  font-size: 19px;
  line-height: 1.08;
}

.sample-tile:hover,
.sample-tile:focus-visible {
  border-color: rgba(199, 154, 50, 0.56);
  background: rgba(8, 12, 15, 0.62);
}

.sample-tile span {
  color: rgba(248, 247, 243, 0.66);
  font-size: 13px;
  line-height: 1.35;
}

.dock-item:not(button) {
  cursor: default;
}

.qa-launch-dock {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  animation: launchRise .8s ease-out .86s both;
}

.dock-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(248, 247, 243, 0.12);
  border-radius: 8px;
  background: rgba(8, 12, 15, 0.80);
  color: rgba(248, 247, 243, 0.88);
  text-align: left;
  padding: 10px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.dock-item:hover,
.dock-item:focus-visible {
  border-color: rgba(86, 180, 233, 0.42);
  background: rgba(8, 12, 15, 0.60);
}

.dock-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(248, 247, 243, 0.10);
}

.dock-item strong {
  font-size: 13px;
}

.dock-item em {
  font-style: normal;
  border: 1px solid rgba(248, 247, 243, 0.16);
  border-radius: 999px;
  padding: 2px 7px;
  color: rgba(248, 247, 243, 0.64);
  font-size: 11px;
  font-weight: 760;
}

.dock-item[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(100% + 8px);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  border: 1px solid rgba(248, 247, 243, 0.13);
  border-radius: 8px;
  background: rgba(6, 9, 11, 0.92);
  color: rgba(248, 247, 243, 0.82);
  padding: 8px 9px;
  font-size: 12px;
  line-height: 1.3;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transition: opacity .18s ease, transform .18s ease;
}

.dock-item[data-tip]:hover::after,
.dock-item[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

@keyframes loaderLine {
  from { transform: translateX(-78%); }
  to { transform: translateX(142%); }
}

@keyframes loaderOut {
  0%, 99.2% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes cinematicGlow {
  0% { opacity: .20; }
  28% { opacity: .78; }
  68% { opacity: .28; }
  100% { opacity: 0; }
}

@keyframes lightfieldSettle {
  0% { opacity: 0; filter: blur(10px); transform: scale(1.015); }
  22% { opacity: .84; filter: blur(5px); transform: scale(1.006); }
  58% { opacity: .34; filter: blur(2px); transform: scale(1); }
  100% { opacity: 0; filter: blur(0); transform: scale(1); }
}

@keyframes apertureSettle {
  0% { opacity: 0; transform: scale(1.05); }
  24% { opacity: .58; transform: scale(1.022); }
  64% { opacity: .18; transform: scale(1.004); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes probePulse {
  0% { opacity: 0; transform: scale(.58) translateY(-22px); }
  24% { opacity: .94; transform: scale(1) translateY(0); }
  52% { opacity: .64; transform: scale(1.34) translateY(5px); }
  100% { opacity: 0; transform: scale(1.85) translateY(9px); }
}

@keyframes cinemaLogoLand {
  from { transform: translate3d(0, var(--logo-rise-start), 0) scale(.52); }
  to { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes cinemaLogoFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes launchRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .launch-loader,
  .loader-line span,
  .qa-launch-copy,
  .qa-launch-side,
  .qa-launch-dock,
  .cinema-bg,
  .cinema-vignette,
  .cinema-lightfield,
  .cinema-aura,
  .cinema-probe,
  .cinema-logo {
    animation: none;
  }

  .launch-loader {
    display: none;
  }
}

dialog {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0;
}

dialog::backdrop {
  background: rgba(23, 32, 42, 0.38);
}

.login-card {
  width: min(420px, 92vw);
  padding: 22px;
  display: grid;
  gap: 12px;
}

.wide-dialog {
  width: min(680px, 94vw);
}

#capaDialog .wide-dialog {
  width: min(980px, 96vw);
}

#capaDialog .form-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.access-detail-dialog {
  width: min(920px, 96vw);
}

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

.access-detail-panel {
  margin-bottom: 0;
}

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

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

.access-method-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 13px;
  display: grid;
  gap: 8px;
}

.access-method-status.ok {
  border-color: #9ccab8;
  background: var(--green-soft);
}

.access-method-status.review {
  border-color: #e2bf80;
  background: var(--amber-soft);
}

.access-method-status.hold {
  border-color: #e5aaa5;
  background: #f8e7e4;
}

.access-method-status.muted {
  border-color: #d7dfe6;
  background: #f6f8fa;
}

.access-method-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.access-method-status strong {
  font-size: 16px;
  line-height: 1.2;
}

.access-method-status p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.privacy-dialog-text {
  display: grid;
  gap: 14px;
}

.privacy-notice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 10px;
}

.privacy-review-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  text-align: right;
}

.privacy-review-status.ok {
  color: var(--green);
}

.privacy-review-status.hold {
  color: #a5524d;
}

.privacy-notice-scroll {
  max-height: min(44vh, 360px);
  overflow: auto;
  padding: 2px 4px 2px 0;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.privacy-notice-scroll.review-complete {
  border-color: #9ccab8;
  box-shadow: inset 0 0 0 1px rgba(99, 167, 127, 0.18);
}

.privacy-notice-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  padding: 16px 18px;
}

.privacy-notice-section h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.privacy-notice-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.privacy-notice-section li + li {
  margin-top: 7px;
}

.privacy-status-card {
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.privacy-status-card.ok {
  border-left-color: var(--green);
}

.privacy-status-card.hold {
  border-left-color: var(--red);
  background: #fff8f7;
}

.privacy-status-card strong {
  font-size: 16px;
}

.privacy-status-card p,
.privacy-attestation {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.login-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.hidden-login-control {
  display: none !important;
}

.login-error {
  margin: 0;
  border: 1px solid rgba(180, 70, 66, 0.34);
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 760;
}

.terms-card {
  max-width: 540px;
}

.terms-body {
  max-height: 52vh;
  overflow: auto;
  margin: 6px 0 10px;
  padding-right: 6px;
}

.terms-fineprint {
  font-size: 12px;
  line-height: 1.5;
  color: #2c2820;
}

.terms-intro {
  margin: 0 0 8px;
  font-weight: 700;
}

.terms-fineprint ol {
  margin: 0;
  padding-left: 20px;
}

.terms-fineprint li + li {
  margin-top: 7px;
}

.terms-body ol {
  margin: 0;
  padding-left: 20px;
}

.terms-body li + li {
  margin-top: 8px;
}

.terms-legal-note {
  margin: 12px 0 0;
  font-style: italic;
}

.terms-agree {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-weight: 700;
}

.terms-agree input {
  width: auto;
  min-height: 0;
  margin: 0;
}

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

.role-switcher {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

@media (max-width: 760px) {
  .access-detail-grid {
    grid-template-columns: 1fr;
  }

  .access-method-status-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    display: block;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
  }

  .nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 0 4px;
    -webkit-overflow-scrolling: touch;
  }

  .nav button {
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    padding: 7px 10px;
    text-align: center;
    white-space: nowrap;
  }

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

  .workspace-card,
  .quick-tools {
    padding-bottom: 10px;
  }

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

  .quick-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
  }

  .quick-tools input {
    margin-bottom: 0;
  }

  .metric-grid,
  .status-strip,
  .dashboard-summary-row,
  .program-grid,
  .method-grid,
  .schema-grid,
  .front-example-grid,
  .front-proof-grid,
  .portal-grid,
  .module-grid,
  .module-roadmap-list,
  .directory-strip,
  .comparison-summary-strip,
  .comparison-diagnostic-kpis {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .front-section,
  .front-workflow,
  .privacy-band,
  .manual-layout,
  .qa-launch-content,
  .qa-launch-dock,
  .directory-head,
  .qa-hub-shell,
  .dashboard-verdict-band {
    grid-template-columns: 1fr;
  }

  .module-directory {
    padding: 28px 20px;
  }

  .directory-copy {
    padding-top: 24px;
  }

  .directory-identity {
    margin-top: 0;
    text-align: left;
  }

  .qa-launch-content {
    align-items: start;
  }

  .qa-launch-dock {
    left: 24px;
    right: 24px;
  }

  .manual-card {
    position: static;
  }

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

  .landing-actions {
    justify-content: flex-start;
  }

  .demo-guide {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-steps {
    justify-content: flex-start;
    min-width: 0;
  }

  .two-col,
  .subscription-layout,
  .form-grid,
  .setup-row,
  .operator-choice-list,
  .logistics-actions,
  .detail-main-grid,
  .detail-program-summary,
  .detail-focus-grid,
  .detail-kv-grid,
  .detail-hero-facts,
  .comparison-primary-grid,
  .comparison-dossier-grid {
    grid-template-columns: 1fr;
  }

  .comparison-primary-grid {
    min-height: 0;
  }

  .report-sheet {
    padding: 20px;
  }

  .report-sheet-head,
  .report-section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .report-sheet-meta {
    text-align: left;
  }

  .report-hero strong,
  .report-sheet-head h3 {
    font-size: 28px;
  }

  .report-summary-grid,
  .report-method-grid,
  .report-action-list,
  .report-threshold-grid {
    grid-template-columns: 1fr;
  }

  .report-table {
    min-width: 560px;
  }

  .comparison-dossier-body {
    overflow: visible;
    padding-right: 0;
  }

  .qa-hub-status-grid,
  .qa-hub-command-stats,
  .qa-hub-group-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qa-hub-priority-grid {
    grid-template-columns: 1fr;
  }

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

  .qa-hub-action-item {
    grid-template-columns: 1fr;
  }

  .qa-task-item {
    grid-template-columns: 1fr;
  }

  .qa-hub-surface-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .qa-hub-action-side,
  .qa-task-side {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }

  .qa-hub-action-buttons,
  .qa-task-actions {
    justify-content: flex-start;
  }

  .entry-option-grid {
    grid-template-columns: 1fr;
  }

  .comparison-action-toggle {
    margin-left: 0;
  }

  .comparison-queue-list {
    max-height: none;
  }

  .comparison-asset-trend-frame,
  .comparison-diagnostic-frame {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }

  .detail-primary-frame {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
  }

  .detail-secondary-frame {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
  }

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

  .qa-hub-nav {
    position: static;
  }

  .summary-row {
    grid-template-columns: 1fr 48px 64px 64px 86px;
    gap: 7px;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 12px 14px;
  }

  .brand {
    align-items: center;
    width: 100%;
  }

  .kat-logo {
    width: 96px;
  }

  .signed-out .kat-logo {
    width: 74px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-product-name {
    font-size: 22px;
  }

  .brand-from {
    font-size: 9px;
  }

  .kat-logo {
    height: 13px;
  }

  .customer-bar,
  .customer-bar strong,
  .customer-bar span {
    text-align: left;
  }

  .customer-bar {
    width: 100%;
    justify-content: space-between;
  }

  .workspace {
    padding: 14px;
  }

  .page-head,
  .panel-head {
    flex-direction: column;
  }

  .qa-hub-status-grid,
  .qa-hub-command-stats,
  .qa-hub-group-preview {
    grid-template-columns: 1fr;
  }

  .qa-hub-nav-button {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .qa-hub-nav-signal {
    grid-column: 2;
    justify-self: start;
  }

  .qa-hub-method-grid,
  .module-roadmap-list {
    grid-template-columns: 1fr;
  }

  .qa-hub-command-copy strong {
    font-size: 28px;
  }

  .scene-page .page-head,
  #home.scene-page .landing {
    min-height: 220px;
    grid-template-columns: 1fr;
    align-content: end;
  }

  .scene-page .page-head .toolbar,
  #home.scene-page .landing .landing-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .scene-page .page-head .search {
    min-width: 0;
    width: 100%;
  }

  .metric-grid,
  .status-strip,
  .dashboard-summary-row,
  .program-grid,
  .method-grid,
  .schema-grid,
  .note-grid,
  .front-example-grid,
  .front-proof-grid,
  .portal-grid,
  .module-grid,
  .directory-strip,
  .comparison-summary-strip,
  .comparison-diagnostic-kpis,
  .comparison-dossier-grid,
  .comparison-primary-grid {
    grid-template-columns: 1fr;
  }

  .comparison-primary-grid {
    min-height: 0;
  }

  .comparison-dossier-body {
    overflow: visible;
    padding-right: 0;
  }

  .dashboard-verdict-meta {
    grid-template-columns: 1fr;
  }

  .front-hero {
    min-height: 560px;
    padding: 30px 18px;
  }

  .front-hero h2 {
    font-size: 34px;
  }

  .front-section,
  .front-workflow,
  .front-example-grid,
  .privacy-band,
  .front-stats {
    width: min(100% - 28px, 1180px);
  }

  .portal-head {
    flex-direction: column;
  }

  .portal-identity {
    width: 100%;
    text-align: left;
  }

  .module-directory {
    min-height: calc(100vh - 154px - 38px);
    padding: 24px 16px 30px;
  }

  .directory-content {
    padding-bottom: 72px;
  }

  .directory-copy h2 {
    font-size: 38px;
  }

  .qa-directory .directory-copy h2 {
    font-size: 52px;
  }

  .portal-title-wordmark {
    gap: 0.08em 0.16em;
  }

  .directory-copy .muted {
    font-size: 16px;
  }

  .customer-actions {
    justify-content: flex-start;
  }

  .role-choice-grid {
    grid-template-columns: 1fr;
  }

  .qa-launch-content {
    min-height: auto;
    padding: var(--launch-title-top) var(--launch-title-x) 64px;
  }

  .qa-launch-screen {
    --launch-title-x: 18px;
    --launch-title-top: 122px;
    --launch-title-size: 60px;
  }

  .qa-launch-tagline {
    margin-left: 10px;
    font-size: 24px;
  }

  .qa-launch-actions {
    grid-template-columns: 1fr;
  }

  .directory-mode .app-footer {
    padding: 0 20px;
    font-size: 10px;
  }

  .qa-launch-dock {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  table {
    min-width: 900px;
  }
}

@media print {
  .topbar,
  .sidebar,
  .toolbar,
  .nav,
  .quick-tools,
  .form-grid,
  .segmented {
    display: none;
  }

  .shell {
    display: block;
  }

  .workspace {
    padding: 0;
  }

  .page {
    display: none;
  }

  #reports {
    display: block;
  }

  #reports .page-head {
    display: none;
  }

  #reports .report-body {
    max-width: none;
  }

  #reports .report-sheet {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
}
