@import "preflight.css";

@font-face {
  font-family: "Open Sans";
  src: url("/static/fonts/open-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

/* Keep readiness totals and their mandatory subset readable in disclosure summaries. */
.control-disclosure > summary > b {
  display: grid;
  gap: 2px;
  border-radius: 14px;
  text-align: center;
}
.control-disclosure > summary > b > small {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: .04em;
}

.compliance-form-assist { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border: 1px solid #cbd9f0; border-radius: 12px; background: #f5f8fe; }
.compliance-form-assist span { display: grid; gap: 3px; }
.compliance-form-assist small { color: var(--muted); line-height: 1.4; }
.compliance-editor-footer { flex-wrap: wrap; }
.save-requirement-hint { margin-right: auto; font-size: 12px; font-weight: 800; }
.save-requirement-hint.invalid { color: #a11a2d; }
.save-requirement-hint.ready { color: #287451; }
.staff-guided-action { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 15px; margin: 16px 0; padding: 16px 18px; border: 1px solid #c5d6f3; border-left: 5px solid var(--navy); border-radius: 14px; background: linear-gradient(135deg, #f3f7ff, #fff); }
.staff-guided-action > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-style: normal; font-weight: 900; }
.staff-guided-action > span { display: grid; gap: 3px; }
.staff-guided-action small { color: var(--navy); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.staff-guided-action strong { color: var(--navy-deep); font-size: 17px; }
.staff-guided-action p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.workflow-status-card { display: grid; grid-template-columns: 1fr 145px; gap: 1px; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.workflow-status-card > span { display: grid; gap: 4px; padding: 12px 14px; background: #fff; }
.workflow-status-card small { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.workflow-status-card strong { color: var(--navy-deep); font-size: 13px; line-height: 1.35; }
.workflow-status-card.review, .workflow-status-card.approval { border-color: #c9d7ef; background: #c9d7ef; }
.workflow-status-card.changes { border-color: #efc3cc; background: #efc3cc; }
.workflow-status-card.complete { border-color: #bfdfcf; background: #bfdfcf; }
.primary-nav .nav-item.utility { margin-top: 12px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, .16); }

@media (max-width: 760px) {
  .compliance-form-assist { align-items: stretch; flex-direction: column; }
  .compliance-form-assist .button { width: 100%; }
  .save-requirement-hint { flex-basis: 100%; }
  .staff-guided-action { grid-template-columns: 36px minmax(0, 1fr); }
  .staff-guided-action .button { grid-column: 1 / -1; width: 100%; }
  .workflow-status-card { grid-template-columns: 1fr; }
}

:root {
  /* CEP Brand Toolkit v1.1 — official core palette */
  --font-sans: "Open Sans";
  --navy: #294294;
  --navy-deep: #212121;
  --blue-soft: #6c93cc;
  --red: #c6002d;
  --ink: #212121;
  --muted: #555555;
  --line: #d9dfe8;
  --line-soft: #e9edee;
  --canvas: #f4f6f8;
  --panel: #ffffff;
  --green: #236148;
  --green-bg: #e9f2ed;
  --amber: #9b671d;
  --amber-bg: #f7efdf;
  --red-bg: #faecef;
  --blue-bg: #eef3fa;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono";
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-blue: rgba(41, 66, 148, 0.08);
  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 12px;
  --motion-fast: 160ms ease;
  --shadow: 0 14px 36px rgba(41, 66, 148, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(41, 66, 148, 0.22);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 252px;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #111a2a 0%, #17243a 55%, #111a2a 100%);
  color: #fff;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-height: 116px;
  padding: 10px 24px;
  border-bottom: 1px solid #dce2ea;
  background: linear-gradient(135deg, #ffffff 0%, #f2f5f9 100%);
}

.brand-logo {
  display: block;
  width: 100px;
  height: 96px;
  margin: 0 auto;
  object-fit: contain;
}

.mobile-nav-toggle {
  display: none;
}

.product-name {
  padding: 30px 24px 21px;
}

.eyebrow,
.section-kicker {
  display: block;
  color: var(--blue-soft);
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-name .eyebrow {
  color: rgba(255, 255, 255, 0.42);
}

.product-name > strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 22px;
  letter-spacing: 0.05em;
}

.product-name p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
}

.nav-item {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item.active {
  background: rgba(107, 148, 205, 0.18);
  color: #fff;
  box-shadow: inset 3px 0 var(--blue-soft);
}

.nav-code {
  width: 23px;
  color: rgba(255, 255, 255, 0.32);
  font-family: var(--font-mono), monospace;
  font-size: 9px;
}

.nav-item.active .nav-code {
  color: #a9c2e4;
}

.nav-badge {
  min-width: 22px;
  margin-left: auto;
  border-radius: 20px;
  background: rgba(107, 148, 205, 0.3);
  padding: 3px 6px;
  color: #fff;
  font-size: 9px;
  text-align: center;
}

.nav-badge.danger {
  background: var(--red);
}

.sidebar-footer {
  margin-top: auto;
  padding: 22px 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #dfe7f5;
  color: var(--navy);
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.user-card .avatar {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.user-card > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.user-card strong {
  font-size: 11px;
}

.user-card small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 9px;
}

.text-button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 10px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar-footer .text-button {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.45);
}

.main-column {
  min-height: 100vh;
  margin-left: 252px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  padding: 17px 42px;
  backdrop-filter: blur(14px);
}

.tender-switcher-wrap {
  position: relative;
  min-width: 0;
}

.tender-switcher {
  display: flex;
  max-width: 660px;
  min-width: 410px;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  padding: 5px 0 0;
  color: var(--navy-deep);
  text-align: left;
}

.tender-switcher > span {
  overflow: hidden;
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tender-switcher .switcher-copy { display: grid; gap: 3px; }
.tender-switcher .switcher-copy strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.tender-switcher .switcher-copy small { overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

.caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  transform: rotate(45deg) translateY(-2px);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transition: transform 0.15s ease;
}

.caret.open {
  transform: rotate(225deg) translate(-1px, -2px);
}

.switcher-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: -12px;
  z-index: 30;
  width: min(590px, calc(100vw - 300px));
  max-height: min(70vh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(18, 34, 72, 0.18);
  animation: modal-in 0.16s ease;
}

.switcher-menu-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
}

.switcher-menu-head strong {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.switcher-menu-head button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.switcher-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  padding: 14px 16px;
  color: var(--ink);
  text-align: left;
}

.switcher-option:hover,
.switcher-option.active {
  background: #f4f7fc;
}

.switcher-option-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: stretch;
  border-bottom: 1px solid var(--line-soft);
}

.switcher-option-row .switcher-option {
  width: auto;
  min-width: 0;
  border-bottom: 0;
}

.switcher-delete {
  width: 100%;
  min-width: 0;
  max-width: none;
  border: 0;
  border-left: 1px solid var(--line-soft);
  background: #fff;
  padding: 10px 8px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.switcher-delete:hover {
  background: #fff2f4;
}

.switcher-delete:disabled {
  cursor: not-allowed;
  background: #f7f8fa;
  color: #7a8290;
}

.switcher-option span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.switcher-option strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switcher-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.switcher-option em {
  color: var(--navy);
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.topbar-actions,
.page-actions,
.action-buttons,
.gate-actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.save-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; font-weight: 700; white-space: nowrap; }
.save-indicator i { width: 7px; height: 7px; border-radius: 50%; background: #87a093; }
.save-indicator.saving i { background: #c59a42; animation: save-pulse 900ms ease-in-out infinite alternate; }
.save-indicator.error { color: var(--red); }
.save-indicator.error i { background: var(--red); }
@keyframes save-pulse { to { opacity: .35; } }

.button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 9px 15px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(39, 65, 147, 0.16);
}

.button.primary:hover {
  border-color: var(--navy-deep);
  background: var(--navy-deep);
}

.button.secondary {
  border-color: #cad2e1;
  background: #fff;
  color: var(--navy);
}

.button.secondary:hover {
  border-color: var(--navy);
  background: var(--blue-bg);
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.button.ghost:hover {
  background: var(--line-soft);
  color: var(--navy-deep);
}

.button:disabled {
  border-color: var(--line) !important;
  background: #edf0f4 !important;
  color: #a4abb6 !important;
  box-shadow: none !important;
}

.button.compact {
  min-height: 35px;
  padding: 8px 13px;
}

.button.small {
  min-height: 31px;
  padding: 6px 10px;
  font-size: 10px;
}

.button.wide {
  width: 100%;
  margin-top: 9px;
}

.content {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 34px 42px 60px;
}

.hero-panel {
  position: relative;
  display: flex;
  min-height: 245px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #152033 0%, #1d2f4c 58%, #243a5d 100%);
  padding: 42px 48px;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-panel::before,
.hero-panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-panel::before {
  top: -175px;
  right: -15px;
  width: 400px;
  height: 400px;
  transform: rotate(45deg);
  border: 1px solid rgba(107, 148, 205, 0.24);
}

.hero-panel::after {
  right: 80px;
  bottom: -153px;
  width: 310px;
  height: 310px;
  transform: rotate(45deg);
  border: 1px solid rgba(197, 0, 43, 0.23);
}

.hero-copy,
.completion-block {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy .section-kicker {
  color: #8ba9d1;
}

.hero-copy h1,
.page-header h1,
.panel-heading h2,
.review-gate h2,
.export-panel h2,
.modal h2 {
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 12px 0 8px;
  color: #fff;
  font-size: clamp(29px, 3.1vw, 43px);
  line-height: 1.08;
}

.hero-copy > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 27px;
}

.deadline,
.review-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 700;
}

.deadline {
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.deadline i {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--blue-soft);
}

.deadline.urgent i {
  background: #ed5474;
}

.review-pill {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.78);
}

.review-pill.approved {
  border-color: rgba(106, 205, 159, 0.35);
  background: rgba(39, 118, 83, 0.22);
  color: #bce5d1;
}

.review-pill.submitted {
  border-color: rgba(231, 190, 99, 0.34);
  background: rgba(169, 111, 21, 0.2);
  color: #efd49c;
}

.completion-block {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.segmented-ring {
  position: relative;
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border-radius: 50%;
  background: repeating-conic-gradient(from -3deg, transparent 0 54deg, var(--navy-deep) 54deg 60deg), conic-gradient(#83a6d7 0 var(--progress), rgba(255, 255, 255, 0.13) var(--progress) 100%);
}

.segmented-ring::after {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--navy-deep);
  content: "";
}

.segmented-ring > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.segmented-ring strong {
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 27px;
}

.segmented-ring strong small {
  font-size: 12px;
}

.segmented-ring span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.completion-copy {
  display: flex;
  width: 125px;
  flex-direction: column;
}

.completion-copy strong {
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 15px;
}

.completion-copy span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  line-height: 1.45;
}

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

.metric-card {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  padding: 19px;
}

.metric-mark {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  border: 3px solid currentColor;
}

.metric-card.green .metric-mark { color: var(--green); }
.metric-card.amber .metric-mark { color: var(--amber); border-radius: 50% 50% 0 50%; }
.metric-card.red .metric-mark { color: var(--red); border-radius: 50%; }
.metric-card.blue .metric-mark { color: var(--navy); border-width: 2px; }

.metric-card > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 10px;
}

.metric-card strong {
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  color: var(--navy-deep);
  font-size: 26px;
}

.metric-card span:not(.metric-mark) {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.metric-card small {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.overview-grid,
.package-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  padding: 27px 28px;
}

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

.panel-heading h2 {
  margin: 7px 0 0;
  font-size: 20px;
}

.panel-note {
  color: var(--muted);
  font-size: 9px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.category-list {
  display: flex;
  flex-direction: column;
}

.category-progress {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  padding: 12px 0;
  text-align: left;
}

.category-progress:first-child {
  border-top: 0;
  padding-top: 0;
}

.category-progress:hover strong {
  color: var(--navy);
}

.category-code {
  display: inline-grid;
  width: 29px;
  height: 24px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono), monospace;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.category-name {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.category-name strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-name i,
.team-load > div > i {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line-soft);
}

.category-name i b,
.team-load > div > i b {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--navy);
}

.category-count {
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  text-align: right;
}

.blocker-list {
  display: flex;
  flex-direction: column;
}

.blocker-list button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  padding: 14px 0;
  text-align: left;
}

.blocker-list button:first-child {
  border-top: 0;
  padding-top: 0;
}

.blocker-list button > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.blocker-list strong {
  color: var(--navy-deep);
  font-size: 11px;
}

.blocker-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.status-diamond {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  border: 2px solid currentColor;
}

.status-diamond.complete { color: var(--green); background: var(--green); }
.status-diamond.working { color: var(--amber); border-radius: 50% 50% 0 50%; }
.status-diamond.missing { color: var(--red); border-radius: 50%; }
.status-diamond.changes { color: var(--red); border-radius: 2px; background: #fff; }

.warning-triangle {
  display: inline-block;
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-right: 7px solid transparent;
  border-bottom: 13px solid var(--amber);
  border-left: 7px solid transparent;
}

.arrow {
  display: inline-block;
  width: 7px;
  height: 7px;
  transform: rotate(-45deg);
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  color: #aab0ba;
}

.action-buttons {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.ready-state {
  display: flex;
  gap: 15px;
  border: 1px solid #cce5d8;
  border-radius: 6px;
  background: var(--green-bg);
  padding: 18px;
}

.ready-state strong {
  color: var(--green);
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
}

.ready-state p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.workflow-panel {
  margin-top: 16px;
}

.tender-onboarding {
  margin-top: 16px;
  padding: 24px;
}

.tender-onboarding > p {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.onboarding-steps article {
  display: flex;
  min-height: 98px;
  flex-direction: column;
  border-top: 3px solid var(--blue-soft);
  background: #f7f9fc;
  padding: 15px;
}

.onboarding-steps span {
  color: var(--blue-soft);
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  font-weight: 700;
}

.onboarding-steps strong {
  margin-top: 12px;
  color: var(--navy-deep);
  font-size: 13px;
}

.onboarding-steps small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.onboarding-actions{display:flex;gap:12px;flex-wrap:wrap}.onboarding-actions .button{min-width:220px;justify-content:center}@media(max-width:640px){.onboarding-actions .button{width:100%}}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.workflow-step {
  position: relative;
  display: flex;
  min-height: 100px;
  flex-direction: column;
  border-top: 3px solid var(--line);
  background: #fafbfc;
  padding: 15px 12px;
}

.workflow-step.done { border-top-color: var(--green); }
.workflow-step.current { border-top-color: var(--navy); }

.workflow-step > span {
  color: #a0a7b3;
  font-family: var(--font-mono), monospace;
  font-size: 8px;
}

.workflow-step strong {
  margin-top: 13px;
  color: var(--navy-deep);
  font-size: 10px;
  line-height: 1.3;
}

.workflow-step small {
  margin-top: auto;
  color: var(--muted);
  font-size: 8px;
}

.page-section {
  animation: page-in 0.18s ease;
}

@keyframes page-in {
  from { transform: translateY(4px); opacity: 0; }
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.page-header > div:first-child {
  max-width: 720px;
}

.page-header h1 {
  margin: 8px 0 7px;
  font-size: 32px;
}

.page-header p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}

.search-field {
  position: relative;
  flex: 1;
}

.search-field input,
.filter-bar select,
.field input,
.field select,
.modal textarea {
  width: 100%;
  border: 1px solid #d6dbe4;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}

.search-field input {
  min-height: 39px;
  padding: 8px 12px 8px 36px;
}

.search-mark {
  position: absolute;
  top: 13px;
  left: 14px;
  z-index: 1;
  width: 10px;
  height: 10px;
  border: 1.5px solid #7e8794;
  border-radius: 50%;
}

.search-mark::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  transform: rotate(45deg);
  background: #7e8794;
  content: "";
}

.filter-bar select {
  width: 240px;
  min-height: 39px;
  padding: 8px 11px;
}

.result-count {
  min-width: 110px;
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  text-align: right;
}

.requirements-board {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.manual-order-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid #cbd8ef;
  border-radius: 7px;
  background: #f5f8fd;
  padding: 11px 14px;
}

.manual-order-notice > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  font-weight: 800;
}

.manual-order-notice p {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.manual-order-notice strong { color: var(--navy-deep); font-size: 12px; }
.manual-order-notice small { color: var(--muted); font-size: 10px; line-height: 1.45; }

.requirement-group.manual-order-group > header { background: #f6f8fc; }
.requirement-group.ai-addition-group { border-color: #d7c8e2; }
.requirement-group.ai-addition-group > header { background: #f8f4fa; }

.requirement-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.requirement-group > header {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  padding: 0 18px;
}

.requirement-group > header h2 {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 15px;
}

.requirement-group > header > i {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.requirement-group > header > span:last-child {
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  font-size: 9px;
}

.requirement-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 38px;
  align-items: start;
  border-bottom: 1px solid var(--line-soft);
  padding: 0 13px;
}

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

.requirement-row.expanded {
  background: #fbfcfe;
}

.status-button,
.expand-button,
.requirement-summary {
  border: 0;
  background: transparent;
}

.status-button {
  display: grid;
  min-height: 62px;
  place-items: center;
  padding: 0;
}

.requirement-summary {
  display: flex;
  min-height: 62px;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
  color: var(--ink);
  text-align: left;
}

.requirement-summary > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.requirement-summary strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.required-tag,
.optional-tag,
.checklist-order-tag {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checklist-order-tag {
  border: 1px solid #c8d5eb;
  background: #eef3fb;
  color: var(--navy);
  font-family: var(--font-mono), monospace;
  white-space: nowrap;
}

.checklist-order-tag.addition {
  border-color: #d7c8e2;
  background: #f5eef8;
  color: #674b7a;
}

.required-tag {
  background: var(--red-bg);
  color: var(--red);
}

.optional-tag {
  background: var(--line-soft);
  color: var(--muted);
}

.requirement-summary > small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.requirement-summary > small b.complete { color: var(--green); }
.requirement-summary > small b.working { color: var(--amber); }
.requirement-summary > small b.missing { color: var(--red); }

.requirement-summary .row-warning {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--amber);
  white-space: normal;
}

.row-warning .warning-triangle {
  border-right-width: 4px;
  border-bottom-width: 8px;
  border-left-width: 4px;
}

.expand-button {
  display: grid;
  min-height: 62px;
  place-items: center;
  color: var(--muted);
}

.requirement-detail {
  grid-column: 2 / -1;
  padding: 0 0 16px;
}

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

.detail-meta > span {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: #fff;
  padding: 9px 10px;
}

.detail-meta small,
.vault-suggestion small {
  color: var(--muted);
  font-size: 8px;
}

.detail-meta strong,
.vault-suggestion strong {
  margin-top: 4px;
  color: var(--navy-deep);
  font-size: 9px;
}

.requirement-detail > p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 9px;
  font-style: italic;
}

.vault-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  border: 1px solid #d6e0f0;
  border-radius: 5px;
  background: var(--blue-bg);
  padding: 10px 12px;
}

.vault-suggestion > span {
  display: flex;
  flex-direction: column;
}

.row-actions {
  margin-top: 11px;
}

.file-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.file-button input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.vault-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.vault-summary > span {
  display: flex;
  min-height: 80px;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  padding: 14px 19px;
}

.vault-summary strong {
  color: var(--navy-deep);
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 21px;
}

.vault-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.vault-summary .amber strong { color: var(--amber); }
.vault-summary .red strong { color: var(--red); }

.filter-tabs {
  display: flex;
  gap: 4px;
  margin: 19px 0 11px;
}

.filter-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.filter-tabs button b {
  min-width: 19px;
  border-radius: 999px;
  background: var(--line-soft);
  padding: 2px 5px;
  color: inherit;
  font-size: 8px;
  text-align: center;
}

.filter-tabs button.active b { background: rgba(31, 61, 139, 0.1); }

.filter-tabs button.active {
  border-bottom-color: var(--navy);
  color: var(--navy);
}

.vault-table-wrap,
.task-list,
.audit-timeline {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th {
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.data-table th:first-child { width: 33%; }
.data-table th:nth-child(2) { width: 20%; }
.data-table th:nth-child(3) { width: 20%; }
.data-table th:nth-child(4) { width: 16%; }
.data-table th:last-child { width: 90px; }

.data-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 14px;
  color: var(--ink);
  font-size: 9px;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.document-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.document-cell > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.document-cell strong {
  overflow: hidden;
  color: var(--navy-deep);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-cell small,
.block-note {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-glyph {
  display: grid;
  width: 31px;
  height: 36px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #cad4e5;
  border-radius: 3px 3px 6px 3px;
  background: var(--blue-bg);
  color: var(--navy);
  font-family: var(--font-mono), monospace;
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
}

.mono {
  color: var(--navy-deep);
  font-family: var(--font-mono), monospace;
  font-size: 8px;
}

.block-note {
  display: block;
}

.expiry-label,
.approval-label,
.task-status,
.source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.expiry-label i {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: currentColor;
}

.expiry-label.active,
.approval-label.approved {
  background: var(--green-bg);
  color: var(--green);
}

.expiry-label.warning,
.approval-label.pending {
  background: var(--amber-bg);
  color: var(--amber);
}

.approval-label.changes {
  background: var(--red-bg);
  color: var(--red);
}

.expiry-label.expired {
  background: var(--red-bg);
  color: var(--red);
}

.expiry-label.permanent {
  background: var(--line-soft);
  color: var(--muted);
}

.governance-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  border: 1px solid #d9e2f0;
  border-radius: 5px;
  background: #f5f8fc;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.governance-note strong {
  color: var(--navy-deep);
}

.info-mark {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--blue-soft);
  border-radius: 50%;
  color: var(--navy);
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.team-load {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 17px;
}

.team-load > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 14px;
}

.team-load > div > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.team-load strong {
  color: var(--navy-deep);
  font-size: 10px;
}

.team-load small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.team-load > div > i {
  grid-column: 1 / -1;
  height: 3px;
}

.task-list-head,
.task-row {
  display: grid;
  grid-template-columns: minmax(320px, 2fr) minmax(165px, 0.8fr) 115px 90px 18px;
  align-items: center;
  gap: 12px;
}

.task-list-head {
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  padding: 0 16px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.task-row {
  width: 100%;
  min-height: 66px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  padding: 10px 16px;
  color: var(--ink);
  text-align: left;
}

.task-row:hover {
  background: #fafcff;
}

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

.task-title,
.assignee {
  display: flex;
  align-items: center;
  gap: 11px;
}

.task-title > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.task-title strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-title small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.task-title small b {
  color: var(--navy);
  font-family: var(--font-mono), monospace;
}

.avatar.small {
  width: 25px;
  height: 25px;
  font-size: 7px;
}

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

.due {
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  font-size: 8px;
}

.due.overdue {
  color: var(--red);
}

.task-status.complete { background: var(--green-bg); color: var(--green); }
.task-status.working { background: var(--amber-bg); color: var(--amber); }
.task-status.missing { background: var(--red-bg); color: var(--red); }
.task-status.changes { border: 1px solid #e0bfc3; background: #fbf0f1; color: #9b3842; }

.staff-revision-alert {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #dfb9be;
  border-left: 3px solid var(--red);
  border-radius: 6px;
  background: #fcf2f3;
  padding: 12px;
}
.staff-revision-alert > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.staff-revision-alert small { color: #9b3842; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.staff-revision-alert strong { margin-top: 3px; font-size: 11px; }
.staff-revision-alert em { margin-top: 4px; color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.45; }
.staff-revision-alert > div { display: flex; gap: 8px; }

.review-gate {
  display: flex;
  min-height: 120px;
  align-items: center;
  gap: 18px;
  border: 1px solid #d6e2dd;
  border-radius: 7px;
  background: #f6faf8;
  padding: 21px 24px;
}

.review-gate.blocked {
  border-color: #efd8dd;
  background: #fcf6f7;
}

.review-gate.submitted {
  border-color: #ead9b6;
  background: #fcf8ee;
}

.gate-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  border: 3px solid var(--red);
  border-radius: 50%;
}

.review-gate.submitted .gate-mark {
  border-color: var(--amber);
  border-radius: 50% 50% 0 50%;
}

.gate-mark.ready,
.review-gate.draft .gate-mark {
  border-color: var(--green);
  border-radius: 0;
  background: var(--green);
}

.review-gate > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.review-gate h2 {
  margin: 6px 0 4px;
  font-size: 20px;
}

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

.gate-actions {
  flex: 0 0 auto;
}

.package-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1.35fr) 320px;
}

.package-category {
  margin-top: 18px;
}

.package-category > header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
}

.package-category > header strong {
  color: var(--navy-deep);
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 12px;
}

.package-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 1px;
}

.package-number {
  color: var(--navy);
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  font-weight: 700;
}

.package-row > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.package-row strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-row small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-tag.vault { background: var(--blue-bg); color: var(--navy); }
.source-tag.upload { background: var(--green-bg); color: var(--green); }
.source-tag.draft { background: var(--amber-bg); color: var(--amber); }
.source-tag.manual { background: var(--red-bg); color: var(--red); }

.export-panel {
  position: sticky;
  top: 112px;
}

.export-panel h2 {
  margin: 7px 0 8px;
  font-size: 21px;
}

.export-panel > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.lock-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 8px;
}

.lock-mark {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.lock-mark::before {
  position: absolute;
  bottom: 6px;
  left: 1px;
  width: 6px;
  height: 5px;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  content: "";
}

.export-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.export-facts span {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.export-facts span + span {
  border-left: 1px solid var(--line);
}

.export-facts small {
  color: var(--muted);
  font-size: 7px;
  text-transform: uppercase;
}

.export-facts strong {
  margin-top: 4px;
  color: var(--navy-deep);
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 16px;
}

.audit-timeline {
  padding: 7px 26px;
}

.audit-timeline article {
  position: relative;
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
  padding: 19px 0;
}

.audit-timeline article:last-child {
  border-bottom: 0;
}

.audit-timeline article::before {
  position: absolute;
  top: 36px;
  bottom: -20px;
  left: 6px;
  width: 1px;
  background: var(--line);
  content: "";
}

.audit-timeline article:last-child::before {
  display: none;
}

.audit-dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  border: 2px solid var(--navy);
  background: #fff;
}

.audit-timeline strong {
  color: var(--navy-deep);
  font-size: 11px;
}

.audit-timeline p {
  margin: 4px 0;
  color: var(--ink);
  font-size: 10px;
}

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

.empty-state {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-mark {
  width: 24px;
  height: 24px;
  transform: rotate(45deg);
  border: 2px solid #b6bdc8;
}

.empty-state strong {
  margin-top: 18px;
  color: var(--navy-deep);
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 16px;
}

.empty-state p {
  max-width: 340px;
  margin: 7px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(12, 19, 38, 0.58);
  padding: 24px;
  backdrop-filter: blur(3px);
}

.modal {
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(11, 20, 43, 0.32);
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { transform: translateY(8px) scale(0.99); opacity: 0; }
}

.modal > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 20px 23px 17px;
}

.modal h2 {
  margin: 7px 0 0;
  font-size: 21px;
}

.modal-close {
  border: 0;
  background: transparent;
  color: #9da4af;
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 23px;
  line-height: 1;
}

.modal-body {
  padding: 21px 23px;
}

.modal-intro {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.drop-zone {
  position: relative;
  display: flex;
  min-height: 115px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #b9c5d8;
  border-radius: 6px;
  background: #f7f9fc;
  color: var(--navy-deep);
  cursor: pointer;
}

.drop-zone:hover {
  border-color: var(--navy);
  background: var(--blue-bg);
}

.drop-zone.success {
  border-color: rgba(39, 118, 83, 0.55);
  background: var(--green-bg);
}

.drop-zone.error {
  border-color: rgba(197, 0, 43, 0.45);
  background: var(--red-bg);
}

.drop-zone input,
.compact-upload input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.drop-zone strong {
  margin-top: 8px;
  font-size: 11px;
}

.drop-zone small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.reader-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0 0;
  border-left: 3px solid var(--red);
  background: var(--red-bg);
  padding: 10px 12px;
  color: #8f1730;
  font-size: 11px;
  line-height: 1.55;
}

.reader-error span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.reader-error-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reader-error-actions .reader-error {
  flex: 1 1 auto;
}

.reader-error-actions .button {
  flex: 0 0 auto;
  margin-top: 10px;
}

.manual-checklist-source-panel {
  margin: 18px 0;
  border: 1px solid #cbd6e8;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.tender-source-documents { margin: 18px 0; overflow: hidden; border: 1px solid #cbd6e8; border-radius: 16px; background: #fff; }
.tender-source-documents > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 18px 20px; border-bottom: 1px solid #d9e1ed; background: linear-gradient(135deg, #f7f9fd, #edf3fb); }
.tender-source-documents > header span { display: grid; gap: 4px; }
.tender-source-documents > header small { color: var(--navy); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tender-source-documents > header strong { color: var(--ink); font-size: 17px; }
.tender-source-documents > header p { max-width: 760px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.tender-source-documents > header > b { flex: 0 0 auto; border-radius: 999px; background: #e4ecf9; padding: 8px 11px; color: var(--navy); font-size: 10px; }
.tender-source-document-list { display: grid; gap: 10px; padding: 14px; }
.tender-source-document-list article { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid #d9e1ed; border-radius: 12px; }
.tender-source-document-list article > i { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 9px; background: #eef3fb; color: var(--navy); font-size: 9px; font-style: normal; font-weight: 800; }
.tender-source-document-list article > span { display: grid; min-width: 0; gap: 3px; }
.tender-source-document-list article > span strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tender-source-document-list article > span small { color: var(--muted); }
.tender-source-document-list article > div { display: flex; gap: 8px; }
.tender-source-document-empty { padding: 18px 20px; background: #fffaf0; color: #77520d; }
.tender-source-document-empty p { margin: 5px 0 0; font-size: 12px; line-height: 1.55; }
@media (max-width: 760px) { .tender-source-document-list article { grid-template-columns: 42px minmax(0, 1fr); } .tender-source-document-list article > div { grid-column: 1 / -1; } }

.manual-checklist-source-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid #d9e1ed;
  background: linear-gradient(135deg, #f6f8fc 0%, #eef3fb 100%);
}

.manual-checklist-source-panel > header span {
  display: grid;
  gap: 4px;
}

.manual-checklist-source-panel > header small {
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.manual-checklist-source-panel > header strong {
  color: var(--ink);
  font-size: 17px;
}

.manual-checklist-source-panel > header p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.manual-checklist-source-panel > header > b {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e4ecf9;
  padding: 8px 11px;
  color: var(--navy);
  font-size: 10px;
}

.manual-checklist-source-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.manual-checklist-source {
  border: 1px solid #d9e1ed;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.manual-checklist-source > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  background: #f8faff;
  cursor: pointer;
  list-style: none;
}

.manual-checklist-source > summary::-webkit-details-marker {
  display: none;
}

.manual-checklist-source > summary span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.manual-checklist-source > summary small {
  color: var(--navy);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.manual-checklist-source > summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-checklist-source > summary em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.manual-checklist-table-wrap {
  max-height: 520px;
  overflow: auto;
  border-top: 1px solid #d9e1ed;
}

.manual-checklist-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.manual-checklist-table.compact-source {
  min-width: 660px;
}

.manual-checklist-table th,
.manual-checklist-table td {
  border-right: 1px solid #d9e1ed;
  border-bottom: 1px solid #d9e1ed;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.manual-checklist-table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #eaf0f9;
  color: #233f78;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.manual-checklist-table th:first-child,
.manual-checklist-table td:first-child {
  width: 72px;
  text-align: center;
  white-space: nowrap;
}

.manual-checklist-table.detailed th:nth-child(2) { width: 30%; }
.manual-checklist-table.detailed th:nth-child(3) { width: 44%; }
.manual-checklist-table.detailed th:nth-child(4) { width: 18%; }

.manual-checklist-table td strong {
  display: block;
  font-size: 10px;
  line-height: 1.45;
}

.manual-checklist-table td small {
  display: block;
  margin-top: 4px;
  color: #66758d;
  font-size: 8px;
}

.manual-checklist-section-row th {
  position: static;
  background: #f1f4f8;
  color: #22304a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  text-align: left !important;
  text-transform: uppercase;
}

.manual-checklist-table tbody:last-child tr:last-child td,
.manual-checklist-table tbody:last-child tr:last-child th {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .reader-error-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .reader-error-actions .button {
    width: 100%;
    margin-top: 0;
  }

  .manual-checklist-source-panel > header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .manual-checklist-source-panel > header > b {
    align-self: flex-start;
  }

  .manual-checklist-table-wrap {
    max-height: 420px;
  }
}

.reader-progress {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto auto;
  align-items: center;
  gap: 9px;
  margin: 10px 0 0;
  border: 1px solid #d5dfec;
  border-radius: 6px;
  background: #f7f9fc;
  padding: 9px 11px;
  color: var(--navy-deep);
}

.reader-progress > div {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #dbe3ef;
}

.reader-progress > div span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
  transition: width 180ms ease;
}

.reader-progress small {
  color: var(--muted);
  font-size: 8px;
}

.reader-progress strong {
  min-width: 28px;
  font-size: 9px;
  text-align: right;
}

.reader-progress button {
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
}

.upload-mark {
  position: relative;
  width: 22px;
  height: 17px;
  border: 1.5px solid var(--navy);
  border-top: 0;
}

.upload-mark::before {
  position: absolute;
  bottom: 7px;
  left: 9px;
  width: 1.5px;
  height: 14px;
  background: var(--navy);
  content: "";
}

.upload-mark::after {
  position: absolute;
  bottom: 14px;
  left: 6px;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  border-top: 1.5px solid var(--navy);
  border-left: 1.5px solid var(--navy);
  content: "";
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.or-divider::before,
.or-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.modal textarea {
  min-height: 145px;
  resize: vertical;
  padding: 12px;
  line-height: 1.55;
}

.text-button.inline {
  margin-top: 9px;
  color: var(--navy);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 14px 23px;
}

.reader-results {
  display: flex;
  max-height: 450px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1px 4px 4px 1px;
  scrollbar-gutter: stable;
}

.modal.reader-modal { display: flex; width: min(780px, 100%); flex-direction: column; overflow: hidden; }
.reader-modal .modal-body { min-height: 0; overflow-y: auto; }
.reader-modal > header,
.reader-modal > footer { flex: 0 0 auto; }
.reader-review-body {
  display: block;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.reader-review-body .reader-results {
  display: grid;
  min-height: 0;
  max-height: none;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  overflow: visible;
  padding-right: 0;
  scrollbar-gutter: auto;
}
.reader-review-body:focus-visible { outline: 2px solid var(--navy); outline-offset: -3px; }

.batch-upload-modal { display: flex; width: min(940px, 100%); max-height: min(90vh, 820px); flex-direction: column; overflow: hidden; }
.batch-upload-modal .modal-body { min-height: 0; overflow-y: auto; }
.batch-drop-zone {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1.5px dashed #9fb0cc;
  border-radius: var(--radius-lg);
  background: #f5f8fc;
  color: var(--navy);
  cursor: pointer;
  text-align: center;
}
.batch-drop-zone:hover { border-color: var(--navy); background: var(--blue-bg); }
.batch-drop-zone strong { font-size: 15px; }
.batch-drop-zone small { color: var(--muted); font-size: 11px; }
.batch-drop-zone input,
.batch-upload-summary label input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.batch-upload-summary { display: grid; grid-template-columns: repeat(3, minmax(105px, 1fr)) auto; align-items: center; gap: 9px; margin-bottom: 12px; }
.batch-upload-summary > span { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 9px 11px; }
.batch-upload-summary small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.batch-upload-summary strong { color: var(--navy); font-size: 17px; }
.batch-upload-summary label { position: relative; cursor: pointer; }
.batch-mapping-list { display: grid; gap: 7px; }
.batch-mapping-list article { display: grid; min-width: 0; grid-template-columns: 40px minmax(150px, 1fr) minmax(260px, 1.3fr) auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 10px 11px; }
.batch-mapping-list article.mapped { border-left: 3px solid var(--green); }
.batch-mapping-list article.unmapped { border-left: 3px solid var(--amber); background: #fffdf8; }
.batch-file-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 5px; background: var(--blue-bg); color: var(--navy); font-family: var(--font-mono), monospace; font-size: 9px; font-weight: 850; }
.batch-mapping-list article > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.batch-mapping-list article > span:nth-child(2) strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.batch-mapping-list article > span:nth-child(2) small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.batch-mapping-list label { display: grid; min-width: 0; gap: 4px; }
.batch-mapping-list label small { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.batch-mapping-list select { width: 100%; min-width: 0; min-height: 38px; border: 1px solid #cbd4df; border-radius: 5px; background: #fff; padding: 7px 9px; color: var(--ink); font-size: 10px; }
.batch-mapping-list article > b { border-radius: 999px; background: var(--green-bg); padding: 6px 8px; color: var(--green); font-size: 8px; white-space: nowrap; }
.batch-mapping-list article.unmapped > b { background: var(--amber-bg); color: var(--amber); }
.batch-progress { display: flex; align-items: center; gap: 12px; margin-top: 13px; border: 1px solid rgba(41, 66, 148, .18); border-radius: 7px; background: var(--blue-bg); padding: 12px 14px; }
.batch-progress > span:last-child { display: grid; gap: 3px; }
.batch-progress strong { font-size: 11px; }
.batch-progress small { color: var(--muted); font-size: 9px; }
.batch-result { margin-top: 13px; border: 1px solid rgba(39, 116, 82, .22); border-radius: 7px; background: var(--green-bg); padding: 13px 15px; }
.batch-result.attention { border-color: rgba(183, 120, 27, .28); background: var(--amber-bg); }
.batch-result strong { color: var(--ink); font-size: 12px; }
.batch-result p,
.batch-result li { color: var(--muted); font-size: 10px; line-height: 1.5; }
.batch-result p { margin: 5px 0 0; }
.batch-result ul { margin: 8px 0 0; padding-left: 18px; }
.batch-package-guidance { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 10px; margin: 11px 0; border: 1px solid #c9d6ea; border-radius: 8px; background: #f3f6fb; padding: 11px 12px; }
.batch-package-guidance > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 10px; font-weight: 850; }
.batch-package-guidance p { display: grid; gap: 3px; margin: 0; }
.batch-package-guidance strong { color: var(--navy-deep); font-size: 10px; }
.batch-package-guidance small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.batch-package-guidance b { color: var(--navy); }
.batch-footer-note { margin-right: auto; color: var(--muted); font-size: 10px; }

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

.reader-review-heading > span { display: flex; min-width: 0; flex-direction: column; }
.reader-review-heading small,
.reader-summary-disclosure > summary > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.reader-review-heading strong { margin-top: 4px; color: var(--ink); font-size: 18px; line-height: 1.25; }
.reader-review-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.reader-review-heading em {
  flex: none;
  border-radius: 20px;
  background: #eef3fa;
  padding: 5px 9px;
  color: var(--navy);
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

.reader-summary-disclosure {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fc;
  overflow: hidden;
}

.reader-summary-disclosure > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}
.reader-summary-disclosure > summary::-webkit-details-marker,
.reader-result-details > summary::-webkit-details-marker { display: none; }
.reader-summary-disclosure > summary strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.reader-summary-disclosure[open] > summary .caret,
.reader-result-details[open] > summary .caret { transform: rotate(180deg); }
.reader-summary-disclosure .document-summary-card {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.reader-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-bottom: 9px;
}

.reader-list-heading > span {
  display: flex;
  flex-direction: column;
}

.reader-list-heading small,
.document-summary-card header small,
.document-summary-facts small,
.document-summary-scope small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reader-list-heading strong { margin-top: 3px; font-size: 12px; }
.reader-list-heading em {
  color: var(--navy);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.document-summary-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 5px;
  background: #ffffff;
  padding: 20px 22px;
}

.document-summary-card.compact {
  margin-top: 0;
  border-left-color: var(--blue-soft);
  background: #f7f9fc;
  padding: 14px 15px;
}

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

.document-summary-card > header > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.document-summary-card > header strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}

.document-summary-card.compact > header strong { font-size: 13px; }

.document-summary-card > header em {
  flex: 0 0 auto;
  border: 1px solid #c8d6ea;
  border-radius: 20px;
  background: #eef3fa;
  padding: 5px 8px;
  color: var(--navy);
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

.document-summary-card > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.document-summary-card > .document-summary-lead {
  max-width: 1080px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}

.document-summary-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compact .document-summary-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.document-summary-facts > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 11px 12px;
}

.document-summary-facts > span:first-child { padding-left: 0; }
.document-summary-facts > span:last-child { border-right: 0; }
.compact .document-summary-facts > span:nth-child(2) { border-right: 0; }
.compact .document-summary-facts > span:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

.document-summary-facts strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.45;
}

.document-summary-scope {
  margin-top: 14px;
}

.document-summary-scope p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.document-summary-decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 12px;
  margin-top: 14px;
}

.document-summary-decision-grid > section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f8fafc;
  padding: 13px 14px;
}

.document-summary-decision-grid small,
.document-summary-attention small,
.document-summary-role-focus small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.document-summary-decision-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 11px;
}

.document-summary-decision-grid p,
.document-summary-role-focus p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.document-summary-decision-grid ul,
.document-summary-attention ul {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.45;
}

.document-summary-attention {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #ead6a7;
  border-radius: 5px;
  background: #fffaf0;
  padding: 11px 12px;
}

.document-summary-attention > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #a96d11;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.document-summary-attention ul { color: #704a12; }
.document-summary-attention > .button { white-space: nowrap; }

.document-summary-role-focus {
  margin-top: 12px;
  border-left: 3px solid var(--navy);
  border-radius: 0 5px 5px 0;
  background: #eef3fa;
  padding: 11px 13px;
}

.document-summary-role-focus small { color: var(--navy); }

.document-summary-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.document-summary-areas span {
  border: 1px solid #d1d9d4;
  border-radius: 20px;
  background: #f5f6f3;
  padding: 4px 8px;
  color: #53645d;
  font-size: 9px;
  font-weight: 700;
}

.document-summary-card > footer {
  margin-top: 13px;
  color: var(--muted);
  font-size: 9px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  color: var(--navy-deep);
  font-size: 9px;
  font-weight: 700;
}

.field input,
.field select {
  min-height: 39px;
  padding: 8px 10px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fafbfc;
  padding: 12px;
}

.checkbox-field > span {
  display: flex;
  flex-direction: column;
}

.checkbox-field strong {
  color: var(--navy-deep);
  font-size: 9px;
}

.checkbox-field small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.compact-upload {
  position: relative;
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #b9c5d8;
  border-radius: 5px;
  background: #f7f9fc;
  color: var(--navy);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.form-note,
.draft-note {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.draft-editor {
  padding: 18px 23px 0;
}

.draft-editor textarea {
  min-height: 410px;
  background: #f8f9fb;
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  line-height: 1.7;
}

.draft-note {
  padding: 11px 23px 16px;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 126px);
  z-index: 200;
  max-width: min(470px, calc(100vw - 40px));
  transform: translateX(-50%);
  border-radius: 5px;
  background: var(--navy-deep);
  padding: 12px 17px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 15px 40px rgba(23, 39, 85, 0.28);
  animation: toast-in 0.18s ease;
}

/* Enterprise readability, hierarchy, and decision-support layer */
.eyebrow,
.section-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.product-name p,
.user-card small,
.sidebar-footer .text-button {
  font-size: 12px;
}

.user-card strong {
  font-size: 13px;
}

.nav-item {
  min-height: 48px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.nav-code,
.nav-badge {
  font-size: 10px;
}

.button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13px;
}

.button.compact {
  min-height: 40px;
  padding: 9px 14px;
}

.button.small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 12px;
}

.content {
  padding-top: 30px;
}

.hero-panel {
  min-height: 208px;
  padding: 32px 38px;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1 {
  max-width: 700px;
  margin: 10px 0 9px;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.12;
}

.hero-copy > p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero-copy > p strong {
  color: #fff;
  font-weight: 650;
}

.hero-copy > p span {
  color: rgba(255, 255, 255, 0.62);
}

.hero-meta {
  margin-top: 20px;
}

.deadline,
.review-pill {
  font-size: 12px;
}

.segmented-ring {
  width: 104px;
  height: 104px;
}

.segmented-ring strong {
  font-size: 26px;
}

.segmented-ring span,
.completion-copy span {
  font-size: 11px;
}

.completion-copy strong {
  font-size: 17px;
}

.priority-brief {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  border: 1px solid #d8e2f2;
  border-radius: 8px;
  background: linear-gradient(90deg, #f2f6fc 0%, #fff 62%);
  padding: 17px 20px;
  box-shadow: 0 8px 24px rgba(23, 39, 85, 0.05);
}

.priority-rank {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  transform: rotate(45deg);
  border: 1px solid #b9cbe3;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  font-weight: 800;
}

.priority-rank b {
  transform: rotate(-45deg);
  font-weight: 800;
}

.priority-copy {
  min-width: 0;
}

.priority-copy h2 {
  overflow: hidden;
  margin: 5px 0 3px;
  color: var(--navy);
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.impact-chip {
  display: flex;
  min-width: 138px;
  flex-direction: column;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.impact-chip small {
  color: var(--muted);
  font-size: 11px;
}

.impact-chip strong {
  margin-top: 3px;
  color: var(--green);
  font-size: 12px;
}

.metric-card {
  min-height: 104px;
}

.metric-card span:not(.metric-mark),
.category-name strong,
.blocker-list strong {
  font-size: 13px;
}

.metric-card small,
.blocker-list small,
.ready-state p,
.panel-note,
.category-count {
  font-size: 12px;
}

.panel-heading h2 {
  font-size: 22px;
}

.link-button {
  min-height: 40px;
  font-size: 12px;
}

.workflow-step {
  min-height: 112px;
}

.workflow-step > span,
.workflow-step small {
  font-size: 10px;
}

.workflow-step strong {
  font-size: 12px;
}

.page-header h1 {
  font-size: 34px;
}

.page-header p {
  font-size: 14px;
  line-height: 1.55;
}

.search-field input,
.filter-bar select,
.field input,
.field select,
.modal textarea {
  font-size: 14px;
}

.search-field input,
.filter-bar select {
  min-height: 44px;
}

.search-mark {
  top: 15px;
}

.result-count,
.requirement-group > header > span:last-child {
  font-size: 11px;
}

.requirement-group > header h2 {
  font-size: 17px;
}

.requirement-row {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.status-button,
.requirement-summary,
.expand-button {
  min-height: 72px;
}

.status-button,
.expand-button {
  min-width: 44px;
  border-radius: 5px;
}

.status-button:hover,
.expand-button:hover,
.requirement-summary:hover {
  background: #f4f7fc;
}

.requirement-summary strong {
  font-size: 13px;
}

.required-tag,
.optional-tag {
  font-size: 9px;
}

.requirement-summary > small,
.detail-meta strong,
.vault-suggestion strong,
.requirement-detail > p {
  font-size: 12px;
}

.detail-meta small,
.vault-suggestion small {
  font-size: 11px;
}

.vault-suggestion em,
.provenance-strip em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}

.provenance-strip {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
  border: 1px solid #cfe3d9;
  border-radius: 6px;
  background: var(--green-bg);
  padding: 11px 13px;
}

.provenance-strip > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.provenance-strip small {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.provenance-strip strong {
  margin-top: 3px;
  color: var(--navy-deep);
  font-size: 12px;
}

.trust-mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.vault-static-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfd4c9;
  border-radius: 3px;
  background: #eef5f1;
  padding: 2px 6px;
  color: #315f4d;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.requirement-row.vault-locked {
  box-shadow: inset 3px 0 #5b846f;
}

.requirement-row.vault-locked .status-button:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.requirement-row.vault-locked .status-button:disabled .status-diamond {
  box-shadow: 0 0 0 4px var(--green-bg);
}

.vault-lock-panel,
.version-detection {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  border: 1px solid #cbd9d1;
  border-radius: 5px;
  background: #f2f6f3;
  padding: 12px 13px;
}

.vault-lock-panel > span:nth-child(2),
.version-detection > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.vault-lock-panel small,
.version-detection small {
  color: #3f6e5a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.vault-lock-panel strong,
.version-detection strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
}

.vault-lock-panel em,
.version-detection em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
}

.vault-lock-panel > b {
  border: 1px solid #c3d5cc;
  border-radius: 20px;
  background: #ffffff;
  padding: 5px 9px;
  color: #3f6e5a;
  font-size: 9px;
  white-space: nowrap;
}

.vault-lock-mark {
  position: relative;
  display: block;
  width: 29px;
  height: 25px;
  border: 2px solid #4d7965;
  border-radius: 5px;
}

.vault-lock-mark::before {
  position: absolute;
  top: -10px;
  left: 6px;
  width: 13px;
  height: 12px;
  border: 2px solid #4d7965;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.vault-lock-mark::after {
  position: absolute;
  top: 8px;
  left: 11px;
  width: 4px;
  height: 6px;
  border-radius: 4px;
  background: #4d7965;
  content: "";
}

.version-detection {
  grid-template-columns: 32px minmax(0, 1fr);
  margin-top: 0;
  border-color: #d2ddd7;
  background: #f6f8f5;
}

.strategy-tag {
  display: inline-flex;
  border: 1px solid #d5dbd7;
  border-radius: 3px;
  background: #f6f7f4;
  padding: 2px 6px;
  color: #65716b;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.strategy-tag.vault-only { border-color: #bfd4c9; background: #eef5f1; color: #315f4d; }
.strategy-tag.tender-template { border-color: #c8d7e4; background: #eef3f7; color: #315c7d; }
.strategy-tag.authoring-choice { border-color: #d5cbe1; background: #f4f0f7; color: #674b7a; }
.strategy-tag.company-template { border-color: #ddcfad; background: #f8f2e7; color: #815f25; }
.strategy-tag.ai-assisted { border-color: #d5cbe1; background: #f4f0f7; color: #674b7a; }

.document-route-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(180px, 0.45fr);
  align-items: center;
  gap: 13px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f8f8f5;
  padding: 12px 13px;
}

.route-code {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #cfd6d1;
  border-radius: 50%;
  background: #ffffff;
  color: #50625a;
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  font-weight: 800;
}

.route-code.vault-only { border-color: #adc9bb; color: #315f4d; }
.route-code.tender-template { border-color: #b9cddd; color: #315c7d; }
.route-code.authoring-choice { border-color: #cdbed9; color: #674b7a; }
.route-code.company-template { border-color: #d7c69e; color: #815f25; }
.route-code.ai-assisted { border-color: #cdbed9; color: #674b7a; }

.document-route-card > span:nth-child(2),
.authoring-control > div:first-child > span:last-child,
.draft-source-banner > span:last-child,
.vault-only-panel > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.document-route-card small,
.authoring-control small,
.draft-source-banner small,
.vault-only-panel small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.document-route-card strong,
.authoring-control strong,
.draft-source-banner strong,
.vault-only-panel strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
}

.document-route-card em,
.authoring-control em,
.draft-source-banner em,
.vault-only-panel em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
}

.document-route-card > label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.document-route-card select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cdd4cf;
  border-radius: 4px;
  background: #fff;
  padding: 7px 9px;
  color: var(--ink);
  font-size: 11px;
}

.vault-only-panel {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  border: 1px solid #cbd9d1;
  border-radius: 5px;
  background: #f2f6f3;
  padding: 13px;
}

.authoring-control {
  margin-top: 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  padding: 13px;
}

.authoring-control > div:first-child {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.authoring-control .row-actions {
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding-top: 11px;
}

.method-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.method-choice-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 10px;
  border: 1px solid #d6dbd7;
  border-radius: 5px;
  background: #f8f8f5;
  padding: 12px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.method-choice-card:hover {
  border-color: #9eaaa4;
  background: #fff;
}

.method-choice-card > span {
  display: grid;
  width: 27px;
  height: 27px;
  grid-row: 1 / 4;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  font-weight: 800;
}

.method-choice-card.company > span { color: #815f25; }
.method-choice-card.ai > span { color: #674b7a; }

.method-choice-card strong {
  margin: 0;
  font-size: 11px;
}

.method-choice-card small {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.method-choice-card em {
  margin-top: 8px;
  color: #315c7d;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.method-choice-card input { display: none; }

.preserved-final-panel {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.preserved-final-panel > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.preserved-final-panel strong { font-size: 11px; }
.preserved-final-panel small {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.draft-source-banner {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 18px 23px 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f6f7f4;
  padding: 12px 13px;
}

.draft-source-banner.tender-template { border-left: 3px solid var(--blue-soft); }
.draft-source-banner.company-template { border-left: 3px solid #a07934; }
.draft-source-banner.ai-assisted { border-left: 3px solid #77598b; }

.reader-result-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.reader-result-item.expanded { border-color: #aebfda; box-shadow: 0 5px 18px rgba(31, 58, 105, 0.08); }
.reader-result-item.expanded .reader-expand-label .caret { transform: rotate(180deg); }

.reader-result-item:not(.selected) { border-style: dashed; background: #f7f7f6; }

.reader-result-header {
  display: grid;
  position: relative;
  width: 100%;
  min-height: 62px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 12px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  list-style: none;
  text-align: left;
}
.reader-result-header > * { min-width: 0; }
.reader-result-header:hover { background: #f8fafc; }

.reader-result-title { display: flex; min-width: 0; flex-direction: column; }
.reader-result-header strong { color: var(--ink); font-size: 12px; line-height: 1.4; }
.reader-result-header small { margin-top: 3px; font-size: 8px; line-height: 1.4; }
.reader-trust-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.reader-trust-badges b { border-radius: 999px; background: var(--line-soft); padding: 3px 6px; color: var(--muted); font-size: 8px; line-height: 1.2; }
.reader-trust-badges b.high,
.reader-trust-badges b.verified { background: var(--green-bg); color: var(--green); }
.reader-trust-badges b.medium { background: var(--blue-bg); color: var(--navy); }
.reader-trust-badges b.attention,
.reader-trust-badges b.unverified { background: var(--amber-bg); color: var(--amber); }
.reader-expand-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 9px;
  font-weight: 750;
}
.reader-result-body { border-top: 1px solid var(--line-soft); background: #f7f9fc; }
.reader-source-assurance { display: grid; gap: 7px; border-bottom: 1px solid var(--line-soft); background: #fff; padding: 13px 14px; }
.reader-source-assurance header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reader-source-assurance header > span { display: grid; min-width: 0; gap: 2px; }
.reader-source-assurance small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.reader-source-assurance header small { font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.reader-source-assurance strong { overflow-wrap: anywhere; color: var(--navy); font-size: 11px; }
.reader-source-assurance header > b { border-radius: 999px; background: var(--blue-bg); padding: 5px 8px; color: var(--navy); font-size: 9px; white-space: nowrap; }
.reader-source-assurance p { max-height: 112px; overflow-y: auto; margin: 0; border-left: 3px solid var(--blue-soft); background: #f6f8fc; padding: 9px 11px; color: var(--ink); font-size: 10.5px; line-height: 1.55; }
.reader-include {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 12px;
}
.reader-include input { width: 16px; height: 16px; }
.reader-include > span { display: flex; flex-direction: column; }
.reader-include strong { font-size: 9px; }
.reader-include small { margin-top: 2px; color: var(--muted); font-size: 8px; }

.reader-edit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.reader-edit-fields label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  border: 0;
  padding: 0;
}
.reader-edit-fields label small { margin: 0; font-size: 8px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }

.reader-edit-fields input,
.reader-edit-fields textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #ccd4cf;
  border-radius: 5px;
  background: #fff;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

.reader-edit-fields input {
  font-weight: 750;
}

.reader-name-field,
.reader-description-field {
  grid-column: 1 / -1;
}

.reader-edit-fields textarea {
  min-height: 128px;
  resize: vertical;
}

.reader-edit-fields select {
  min-height: 36px;
  border: 1px solid #ccd4cf;
  border-radius: 5px;
  background: #fff;
  padding: 7px 9px;
  color: var(--ink);
  font-size: 10px;
}
.reader-required { grid-column: 1 / -1; flex-direction: row !important; align-items: center !important; align-self: end; min-height: 44px; }
.reader-required input { width: 16px; height: 16px; }
.reader-required span { font-size: 9px; font-weight: 700; }
.reader-human-check { display: flex; align-items: flex-start; gap: 11px; margin: 0 12px 12px; border: 1px solid rgba(183, 120, 27, .28); border-radius: 6px; background: var(--amber-bg); padding: 12px; cursor: pointer; }
.reader-human-check.verified { border-color: rgba(39, 116, 82, .25); background: var(--green-bg); }
.reader-human-check input { width: 19px; height: 19px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--navy); }
.reader-human-check > span { display: grid; gap: 3px; }
.reader-human-check strong { color: var(--ink); font-size: 11px; }
.reader-human-check small { color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.reader-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding: 9px 12px;
}
.reader-item-actions small { color: var(--muted); font-size: 8px; }
.reader-item-actions > span { display: flex; align-items: center; gap: 12px; }
.text-button.danger { margin: 0; color: var(--red); }
.reader-list-toolbar {
  position: sticky;
  top: -1px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -5px -4px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  padding: 6px 4px 10px;
}
.reader-list-toolbar > span { display: flex; flex-direction: column; }
.reader-list-toolbar > .reader-verification-count { display: inline-flex; flex-direction: row; flex: 0 0 auto; border-radius: 999px; background: var(--amber-bg); padding: 6px 9px; color: var(--amber); font-size: 9px; font-weight: 800; white-space: nowrap; }
.reader-list-toolbar > .reader-verification-count.complete { background: var(--green-bg); color: var(--green); }
.reader-list-toolbar strong { font-size: 11px; }
.reader-list-toolbar small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.reader-empty, .reader-loading { border: 1px dashed var(--line); border-radius: 7px; padding: 22px; text-align: center; }
.reader-empty strong { font-size: 11px; }
.reader-empty p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.reader-import-footer { flex-wrap: wrap; }
.reader-import-status { margin-right: auto; color: var(--muted); font-size: 10px; font-weight: 700; }
.reader-import-status.attention { color: var(--amber); }
.reader-import-status.complete { color: var(--green); }

.requirement-description-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 6px;
  background: #f8fafc;
  padding: 0;
}

.requirement-description-card > summary,
.requirement-description-card > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.requirement-description-card > summary { align-items: center; cursor: pointer; list-style: none; padding: 11px 14px; color: var(--navy); font-size: 10px; font-weight: 750; }
.requirement-description-card > summary::-webkit-details-marker { display: none; }
.requirement-description-card > summary .caret { flex: none; }
.requirement-description-card[open] > summary .caret { transform: rotate(225deg) translate(-1px, -2px); }
.requirement-description-card > div { border-top: 1px solid var(--line); padding: 13px 14px; }

.requirement-description-card > div > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.requirement-description-card small,
.source-wording-card small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.requirement-description-card strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  white-space: pre-line;
}

.requirement-description-card em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.source-wording-card {
  border: 1px solid #d6dde8;
  border-radius: 7px;
  background: #f4f7fc;
  padding: 14px;
}

.source-wording-card strong {
  display: block;
  margin-top: 6px;
  color: var(--navy-deep);
  font-size: 13px;
}

.source-wording-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-line;
}

.route-note {
  margin: -4px 0 0;
  border-left: 3px solid #718b7f;
  background: #f4f6f3;
  padding: 9px 11px;
}

.vault-summary small,
.filter-tabs button,
.governance-note,
.team-load small,
.task-title small,
.assignee,
.due,
.review-gate p,
.package-row small,
.export-panel > p,
.audit-timeline small,
.empty-state p,
.modal-intro,
.reader-results small,
.form-note,
.draft-note {
  font-size: 12px;
}

.data-table th {
  font-size: 10px;
}

.data-table td,
.document-cell strong,
.mono,
.package-row strong,
.task-title strong,
.team-load strong,
.audit-timeline p {
  font-size: 12px;
}

.document-cell small,
.block-note,
.approval-meta {
  font-size: 11px;
}

.approval-meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.expiry-label,
.approval-label,
.task-status,
.source-tag {
  font-size: 10px;
}

.review-gate h2 {
  font-size: 22px;
}

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

/* CEP Brand Toolkit v1.1: official color, typography, and logo treatment */
.sidebar {
  border-right-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(41, 66, 148, 0.34), transparent 38%),
    #212121;
}

.brand-lockup {
  border-bottom-color: var(--line);
  background: #ffffff;
}

.brand-logo {
  width: clamp(66px, 7vw, 94px);
  height: auto;
  max-height: 94px;
  background: transparent;
  object-fit: contain;
}

.product-name {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 25px;
  padding-bottom: 24px;
}

.product-name > strong {
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 19px;
  font-weight: 720;
  letter-spacing: 0.12em;
}

.nav-item {
  border-radius: 4px;
}

.nav-item.active {
  background: rgba(108, 147, 204, 0.2);
  box-shadow: inset 3px 0 var(--blue-soft);
}

.nav-item.active .nav-code {
  color: #dce8f8;
}

.topbar {
  min-height: 84px;
  border-bottom-color: rgba(41, 66, 148, 0.16);
  background: rgba(255, 255, 255, 0.94);
}

.tender-switcher > span {
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.015em;
}

.topbar-actions {
  flex: 0 0 auto;
}

.command-trigger {
  position: relative;
  display: grid;
  min-width: 226px;
  min-height: 40px;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f8f9fb;
  padding: 8px 9px 8px 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.command-trigger:hover {
  border-color: var(--blue-soft);
  background: #fff;
  color: var(--ink);
}

.command-trigger .search-mark {
  position: relative;
  top: auto;
  left: auto;
}

.command-trigger kbd,
.command-search kbd,
.command-palette footer kbd {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 2px 5px;
  color: var(--muted);
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 650;
  box-shadow: 0 1px 1px rgba(24, 38, 33, 0.05);
}

.button {
  border-radius: 4px;
}

.button.primary {
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 0 3px 9px rgba(41, 66, 148, 0.2);
}

.button.primary:hover {
  border-color: var(--navy-deep);
  background: var(--navy-deep);
}

.content {
  width: min(1400px, 100%);
  padding-top: 28px;
}

.hero-panel {
  min-height: 226px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0 71%, rgba(108, 147, 204, 0.12) 71% 100%),
    #ffffff;
  padding: 36px 40px;
  color: var(--ink);
  box-shadow: 0 9px 28px rgba(41, 66, 148, 0.08);
}

.hero-panel::before {
  top: 0;
  right: 28%;
  width: 1px;
  height: 100%;
  transform: none;
  border: 0;
  background: var(--line);
}

.hero-panel::after {
  top: 28px;
  right: 0;
  bottom: auto;
  width: 4px;
  height: 54px;
  transform: none;
  border: 0;
  background: var(--red);
}

.hero-copy .section-kicker,
.section-kicker {
  color: var(--navy);
}

.hero-copy h1 {
  max-width: 800px;
  color: var(--navy);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.06;
}

.hero-copy > p,
.hero-copy > p span {
  color: var(--muted);
}

.hero-copy > p strong {
  color: var(--ink);
}

.deadline {
  color: var(--muted);
}

.review-pill {
  border-color: var(--line);
  background: #f7f9fc;
  color: var(--muted);
}

.review-pill.approved {
  border-color: #bdd7ca;
  background: var(--green-bg);
  color: var(--green);
}

.review-pill.submitted {
  border-color: #e0cfaa;
  background: var(--amber-bg);
  color: var(--amber);
}

.review-pill.changes {
  border-color: #e2bcc5;
  background: var(--red-bg);
  color: var(--red);
}

.completion-block {
  min-width: 260px;
  justify-content: center;
}

.segmented-ring {
  background: repeating-conic-gradient(from -3deg, transparent 0 54deg, #eef1f6 54deg 60deg), conic-gradient(var(--navy) 0 var(--progress), #dce3ef var(--progress) 100%);
}

.segmented-ring::after {
  background: #f7f9fc;
}

.segmented-ring strong,
.completion-copy strong {
  color: var(--navy);
}

.segmented-ring span,
.completion-copy span {
  color: var(--muted);
}

.priority-brief {
  border-color: #cad6e9;
  border-left: 3px solid var(--navy);
  border-radius: 4px;
  background: linear-gradient(90deg, #eef3fa 0%, #ffffff 58%);
  box-shadow: none;
}

.priority-rank {
  transform: none;
  border-color: var(--blue-soft);
  border-radius: 50%;
  color: var(--navy);
}

.priority-rank b {
  transform: none;
}

.priority-copy h2,
.panel-heading h2,
.page-header h1,
.review-gate h2,
.export-panel h2,
.modal h2 {
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.priority-copy h2 {
  font-size: 18px;
}

.panel,
.metric-card {
  border-radius: 5px;
  background: #ffffff;
}

.operating-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 16px;
  margin-top: 16px;
}

.readiness-panel,
.project-control-panel {
  min-height: 330px;
}

.readiness-grade {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 750;
}

.readiness-grade.pass { background: var(--green-bg); color: var(--green); }
.readiness-grade.warn { background: var(--amber-bg); color: var(--amber); }
.readiness-grade.fail { background: var(--red-bg); color: #a2384d; }

.readiness-body {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}

.readiness-score {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.readiness-score::before {
  display: grid;
  width: 122px;
  height: 122px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#346a55 0 var(--score), #e4e8e5 var(--score) 100%);
  content: "";
  mask: radial-gradient(circle, transparent 57%, #000 59%);
}

.readiness-score > span {
  position: absolute;
  margin-top: 37px;
  color: var(--ink);
}

.readiness-score strong {
  font-size: 31px;
  letter-spacing: -0.05em;
}

.readiness-score small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 11px;
}

.readiness-score p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.control-checks {
  display: flex;
  flex-direction: column;
}

.control-checks > div {
  display: grid;
  min-height: 52px;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line-soft);
}

.control-checks > div:last-child {
  border-bottom: 0;
}

.control-checks > div > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

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

.control-checks small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-checks b {
  color: #55635d;
  font-size: 10px;
}

.control-state {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #abb4af;
  box-shadow: 0 0 0 3px #f0f2ef;
}

.control-state.pass { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.control-state.warn { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-bg); }
.control-state.fail { background: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.control-state.neutral { background: #8a9690; }

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

.project-facts > span {
  display: flex;
  min-height: 69px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
}

.project-facts small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-facts strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
}

.risk-text {
  color: var(--red) !important;
}

.milestone-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  border-left: 3px solid var(--navy);
  background: #eef3fa;
  padding: 13px 14px;
}

.milestone-card > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.milestone-card small {
  color: var(--navy);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.milestone-card strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
}

.milestone-card em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.control-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 9px;
}

.control-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.metric-card {
  min-height: 96px;
  border-top-width: 2px;
  box-shadow: none;
}

.metric-card.green { border-top-color: var(--green); }
.metric-card.amber { border-top-color: var(--amber); }
.metric-card.red { border-top-color: var(--red); }
.metric-card.blue { border-top-color: var(--navy); }

.workflow-panel {
  overflow: hidden;
}

.workflow-steps {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-step {
  min-height: 112px;
  border-top: 3px solid transparent;
  border-right: 1px solid var(--line);
  background: #f8f8f5;
}

.workflow-step:last-child {
  border-right: 0;
}

.workflow-step.done {
  border-top-color: var(--green);
  background: #f1f6f2;
}

.workflow-step.current {
  border-top-color: var(--navy);
  background: var(--blue-bg);
}

.workflow-step.current strong {
  color: var(--navy);
}

.workflow-step.locked {
  opacity: 0.66;
}

.document-control-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 4px;
  background: #ffffff;
}

.document-control-strip > span {
  position: relative;
  display: grid;
  min-height: 64px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: center;
  column-gap: 10px;
  border-right: 1px solid var(--line);
  padding: 10px 14px;
}

.document-control-strip > span:last-child {
  border-right: 0;
}

.document-control-strip i {
  display: grid;
  width: 25px;
  height: 25px;
  grid-row: 1 / 3;
  place-items: center;
  border: 1px solid #ccd6d0;
  border-radius: 50%;
  color: #496b5f;
  font-family: var(--font-mono), monospace;
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
}

.document-control-strip small {
  color: var(--muted);
  font-size: 9px;
}

.document-control-strip strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 11px;
}

.command-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  justify-content: center;
  background: rgba(18, 28, 25, 0.42);
  padding: 12vh 20px 20px;
  backdrop-filter: blur(3px);
}

.command-palette {
  width: min(620px, 100%);
  height: fit-content;
  max-height: 72vh;
  overflow: hidden;
  border: 1px solid #cfd6d1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(18, 35, 29, 0.24);
  animation: modal-in 0.16s ease;
}

.command-search {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.command-search .search-mark {
  position: relative;
  top: auto;
  left: auto;
}

.command-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.command-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: 9px;
}

.command-group-label {
  display: block;
  padding: 7px 9px 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.command-results button {
  display: grid;
  width: 100%;
  min-height: 55px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 8px 10px;
  color: var(--ink);
  text-align: left;
}

.command-results button:hover,
.command-results button:focus-visible {
  background: #edf2ef;
}

.command-results button > i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #d5dbd7;
  border-radius: 4px;
  background: #fff;
  color: #49645a;
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

.command-results button > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.command-results strong {
  font-size: 12px;
}

.command-results small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.command-results em {
  color: #9ba49f;
  font-size: 12px;
  font-style: normal;
}

.command-empty {
  padding: 28px 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.command-palette footer {
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: #f7f9fc;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 9px;
}

.command-palette footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@keyframes toast-in {
  from { transform: translate(-50%, 8px); opacity: 0; }
}

.button.ai {
  border-color: var(--navy);
  background: linear-gradient(135deg, var(--navy), #3d5daf 68%, var(--blue-soft));
  color: #fff;
  box-shadow: 0 5px 14px rgba(41, 66, 148, 0.22);
}

.button.ai:hover { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.button.danger { border-color: var(--red); background: #fff; color: var(--red); }
.button.danger:hover { background: #fbefef; }

.vault-delete-warning {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 1px solid rgba(198, 0, 45, 0.28);
  border-radius: 6px;
  background: #fff5f7;
  padding: 14px;
}

.vault-delete-warning > span:first-child {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.vault-delete-warning > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.vault-delete-warning strong { color: var(--ink); font-size: 12px; }
.vault-delete-warning small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.55; }

.deletion-reason-help {
  margin: -8px 0 0;
  color: #48604f;
  font-size: 10px;
  font-weight: 700;
}

.deletion-reason-help.incomplete { color: var(--red); }

.deletion-admin-confirm {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #e7a7ae;
  border-radius: 10px;
  background: #fff7f8;
  cursor: pointer;
}

.reader-ocr-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.deletion-admin-confirm input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); }
.deletion-admin-confirm span { display: grid; gap: 3px; }
.deletion-admin-confirm strong { color: var(--ink); font-size: 11px; }
.deletion-admin-confirm small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.deletion-admin-confirm.incomplete { border-color: var(--red); box-shadow: 0 0 0 3px rgba(208, 0, 48, .08); }
.deletion-validation { margin: -3px 0 0; padding: 10px 12px; border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; background: #fff3f4; color: var(--red); font-size: 10px; font-weight: 800; }

.cleanup-approval-panel {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #c8d6ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 42, 86, 0.07);
}

.cleanup-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(120deg, #f7f9fd, #fff);
  padding: 18px 20px;
}

.cleanup-panel-heading h2 { margin: 3px 0 4px; color: var(--ink); font-size: 17px; }
.cleanup-panel-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.cleanup-queue-count {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef3fb;
  padding: 7px 11px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
}

.cleanup-request-list { display: grid; }

.cleanup-request-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(220px, 330px);
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
  padding: 15px 20px;
}

.cleanup-request-card:last-child { border-bottom: 0; }
.cleanup-request-card.rejected { grid-template-columns: 38px minmax(0, 1fr); background: #fffafa; }

.cleanup-target-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.cleanup-target-icon.vault { background: #5673aa; }
.cleanup-request-copy { min-width: 0; }
.cleanup-request-title { display: flex; align-items: center; gap: 9px; }
.cleanup-request-title strong { overflow-wrap: anywhere; color: var(--ink); font-size: 12px; }
.cleanup-request-copy > small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.cleanup-request-copy p { margin: 7px 0 0; color: #3e4652; font-size: 10px; line-height: 1.5; }
.cleanup-request-copy em { display: block; margin-top: 5px; color: var(--navy); font-size: 9px; font-style: normal; }
.cleanup-request-copy .rejected-note { color: var(--red); }

.cleanup-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  background: #fff3dc;
  color: #8a5a10;
  font-size: 8px;
  font-weight: 800;
}

.cleanup-status.reviewer-approved { background: #eaf1fc; color: var(--navy); }
.cleanup-status.rejected { background: #fff0f2; color: var(--red); }

.cleanup-decision-box { display: grid; gap: 8px; }
.cleanup-decision-box label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 700; }
.cleanup-decision-box textarea { width: 100%; min-height: 52px; resize: vertical; border: 1px solid #cdd6e3; border-radius: 6px; padding: 8px 10px; color: var(--ink); font: inherit; font-weight: 500; }
.cleanup-decision-box > div { display: flex; justify-content: flex-end; gap: 7px; }
.cleanup-waiting-copy { justify-self: end; color: var(--muted); font-size: 9px; font-weight: 700; }

@media (max-width: 900px) {
  .cleanup-panel-heading { flex-direction: column; }
  .cleanup-request-card,
  .cleanup-request-card.rejected { grid-template-columns: 36px minmax(0, 1fr); align-items: start; }
  .cleanup-decision-box,
  .cleanup-waiting-copy { grid-column: 1 / -1; width: 100%; justify-self: stretch; }
  .cleanup-waiting-copy { text-align: right; }
}

.ai-assurance-banner,
.package-ai-preflight {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
  border: 1px solid #c8d6ea;
  border-radius: 6px;
  background: linear-gradient(110deg, #eef3fa, #ffffff 68%, rgba(108, 147, 204, 0.12));
  padding: 16px 18px;
}

.ai-orbit-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--blue-soft);
  border-radius: 50%;
  color: var(--navy);
}

.ai-orbit-mark::before,
.ai-orbit-mark::after {
  position: absolute;
  width: 26px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  transform: rotate(38deg);
}

.ai-orbit-mark::after { transform: rotate(-38deg); }
.ai-orbit-mark i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(41, 66, 148, 0.1); }
.ai-orbit-mark.large { width: 54px; height: 54px; }
.ai-orbit-mark.large::before, .ai-orbit-mark.large::after { width: 36px; height: 15px; }
.ai-assurance-banner > span:nth-child(2), .package-ai-preflight > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.ai-assurance-banner small, .package-ai-preflight small { color: var(--navy); font-size: 8px; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.ai-assurance-banner strong, .package-ai-preflight strong { margin-top: 3px; color: var(--navy-deep); font-size: 13px; }
.ai-assurance-banner em, .package-ai-preflight em { margin-top: 4px; color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.45; }
.ai-assurance-banner > b { border: 1px solid #c8d6ea; border-radius: 999px; background: #fff; padding: 6px 9px; color: var(--navy); font-size: 8px; letter-spacing: 0.05em; text-transform: uppercase; }

.review-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.review-metric-grid > span { display: flex; min-height: 106px; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); padding: 16px 20px; }
.review-metric-grid > span:last-child { border-right: 0; }
.review-metric-grid small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.review-metric-grid strong { margin-top: 5px; color: var(--navy-deep); font-family: var(--font-mono), monospace; font-size: 25px; }
.review-metric-grid em { margin-top: 4px; color: var(--muted); font-size: 9px; font-style: normal; }
.review-metric-grid .risk strong { color: var(--red); }
.review-metric-grid .safe strong { color: var(--green); }

.review-workbench {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1.72fr);
  align-items: start;
  gap: 16px;
}

.review-queue-panel,
.review-detail-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(23, 34, 29, 0.045);
}

.review-queue-panel { position: sticky; top: 104px; max-height: calc(100vh - 126px); }
.review-queue-panel > header { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); background: #f7f8f5; padding: 12px 14px; }
.review-queue-panel > header > span { display: flex; flex-direction: column; }
.review-queue-panel header small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.review-queue-panel header strong { margin-top: 3px; font-size: 12px; }
.review-queue-panel header em { color: var(--muted); font-size: 8px; font-style: normal; }
.review-queue-list { max-height: calc(100vh - 192px); overflow-y: auto; }
.review-queue-list > button { display: grid; width: 100%; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; padding: 13px 14px; color: var(--ink); text-align: left; }
.review-queue-list > button:hover { background: #f6f8f7; }
.review-queue-list > button.active { background: #eef3f7; box-shadow: inset 3px 0 #527493; }
.review-queue-list > button > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.review-queue-list strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.review-queue-list small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.review-queue-list em { margin-top: 4px; color: #627069; font-size: 8px; font-style: normal; }
.review-queue-list > button > span:last-child { display: flex; align-items: flex-end; flex-direction: column; gap: 4px; }
.review-queue-list .document-approval-tag { font-size: 7px; }
.queue-risk { width: 8px; height: 8px; border-radius: 50%; background: #b0b8b4; }
.queue-risk.critical { background: var(--red); box-shadow: 0 0 0 3px rgba(173, 56, 67, 0.1); }
.queue-risk.warning { background: var(--amber); }
.queue-risk.info { background: #587d9d; }
.queue-risk.none { border: 1px solid #aeb7b2; background: transparent; }

.review-detail-panel { min-width: 0; }
.review-document-head { display: flex; min-height: 92px; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 18px 20px; }
.review-document-head > span:first-child { min-width: 0; }
.review-document-head small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.review-document-head h2 { margin: 5px 0 3px; font-family: var(--font-sans), Arial, sans-serif; font-size: 19px; line-height: 1.25; }
.review-document-head p { overflow: hidden; margin: 0; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.review-document-head > span:last-child { display: flex; flex: 0 0 auto; align-items: flex-end; flex-direction: column; gap: 7px; }
.ai-score-badge { border: 1px solid #cbd5df; border-radius: 999px; background: #f2f6fa; padding: 4px 7px; color: #3e5f82; font-size: 8px; font-style: normal; font-weight: 800; }
.ai-score-badge.critical { border-color: #dfc0c3; background: #fbefef; color: var(--red); }
.ai-score-badge.warning { border-color: #dfd0a7; background: #fbf6e8; color: #846317; }
.ai-score-badge.info, .ai-score-badge.none { border-color: #c7d5e0; color: #3d6584; }

.review-source-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); background: #fafaf7; }
.review-source-grid article { min-width: 0; padding: 15px 20px; }
.review-source-grid article:first-child { border-right: 1px solid var(--line); }
.review-source-grid small, .ai-review-summary small, .ai-findings-section header small, .ai-check-section header small, .ai-note-draft small, .review-decision-bar small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.review-source-grid strong { display: block; margin-top: 5px; font-size: 11px; }
.review-source-grid p { margin: 5px 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.review-source-grid em { color: #6a7771; font-size: 8px; font-style: normal; }

.ai-review-empty { display: flex; min-height: 330px; align-items: center; justify-content: center; flex-direction: column; padding: 34px; text-align: center; }
.ai-review-empty h3 { margin: 17px 0 7px; font-size: 18px; }
.ai-review-empty p { max-width: 470px; margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.55; }

.ai-review-summary { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 18px 20px; }
.ai-score-ring { --ai-score: 0%; position: relative; display: grid; width: 82px; height: 82px; place-items: center; border-radius: 50%; background: conic-gradient(#3f6d58 var(--ai-score), #e6ebe7 0); }
.ai-score-ring::after { position: absolute; inset: 7px; border-radius: 50%; background: #ffffff; content: ""; }
.ai-score-ring.warning { background: conic-gradient(#a47b1c var(--ai-score), #eee8d9 0); }
.ai-score-ring.critical { background: conic-gradient(#a9434c var(--ai-score), #f0dfe1 0); }
.ai-score-ring > span { position: relative; z-index: 1; }
.ai-score-ring strong { font-family: var(--font-mono), monospace; font-size: 21px; }
.ai-score-ring small { margin-left: 2px; font-size: 8px; }
.ai-review-summary h3 { margin: 4px 0 5px; font-size: 15px; }
.ai-review-summary p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.ai-check-section, .ai-findings-section { border-bottom: 1px solid var(--line); padding: 18px 20px; }
.ai-check-section > header, .ai-findings-section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ai-check-section h3, .ai-findings-section h3 { margin: 4px 0 0; font-size: 14px; }
.ai-findings-section > header em { color: var(--muted); font-size: 8px; font-style: normal; }
.ai-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ai-check-grid article { display: grid; grid-template-columns: 11px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 54px; border: 1px solid var(--line-soft); border-radius: 4px; background: #fafbf9; padding: 9px 10px; }
.ai-check-grid article > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.ai-check-grid strong { font-size: 9px; }
.ai-check-grid small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.ai-check-grid b { color: var(--muted); font-size: 8px; }
.ai-check-grid article.pass .control-state { background: var(--green); }
.ai-check-grid article.attention .control-state { background: var(--amber); }
.ai-check-grid article.fail .control-state { background: var(--red); }
.ai-check-grid article.pass b { color: var(--green); }
.ai-check-grid article.attention b { color: var(--amber); }
.ai-check-grid article.fail b { color: var(--red); }

.ai-finding-list { display: grid; gap: 9px; }
.ai-finding-list > article { border: 1px solid #d8ddd9; border-left: 3px solid #6685a1; border-radius: 5px; background: #fafbfa; padding: 13px 14px; }
.ai-finding-list > article.warning { border-left-color: #b1882b; background: #fdfaf2; }
.ai-finding-list > article.critical { border-left-color: #b54c56; background: #fdf5f5; }
.ai-finding-list > article.dismissed { opacity: 0.58; background: #f7f7f5; }
.finding-head { display: flex; align-items: center; gap: 7px; }
.risk-label, .confidence-label, .finding-status { border-radius: 999px; padding: 3px 6px; font-size: 7px; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.risk-label { background: #eaf1f7; color: #3c6586; }
.risk-label.warning { background: #f5ecd3; color: #7c5e16; }
.risk-label.critical { background: #f4dee0; color: #983741; }
.confidence-label { border: 1px solid #d8ddd9; color: var(--muted); }
.finding-status { margin-left: auto; background: #eef0ed; color: var(--muted); }
.finding-status.confirmed { background: #f5ecd3; color: #7c5e16; }
.finding-status.dismissed { background: #e8eee9; color: #52665c; }
.ai-finding-list h4 { margin: 10px 0 5px; font-size: 12px; }
.ai-finding-list p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.finding-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.finding-evidence > span { display: flex; min-width: 0; flex-direction: column; border: 1px solid rgba(105, 120, 112, 0.18); border-radius: 4px; background: rgba(255, 255, 255, 0.58); padding: 8px; }
.finding-evidence small { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.finding-evidence strong { margin-top: 3px; font-size: 8px; font-weight: 650; line-height: 1.4; }
.finding-actions { display: flex; gap: 7px; margin-top: 10px; }

.ai-note-draft { margin: 14px 20px; border: 1px dashed #c8b989; border-radius: 5px; background: #fbf8ee; padding: 12px 13px; }
.ai-note-draft > span { display: flex; flex-direction: column; }
.ai-note-draft strong { margin-top: 4px; font-size: 10px; line-height: 1.45; }
.ai-note-draft em { margin-top: 4px; color: var(--muted); font-size: 8px; font-style: normal; }

.review-decision-bar { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); background: #f6f7f4; padding: 14px 20px; }
.review-decision-bar > span:first-child { display: flex; min-width: 0; flex-direction: column; }
.review-decision-bar strong { margin-top: 4px; font-size: 10px; line-height: 1.35; }
.review-decision-bar > div { display: flex; flex: 0 0 auto; gap: 8px; }
.review-decision-bar.multi-level-decision-bar {
  display: grid;
  width: 100%;
  align-items: stretch;
  gap: 12px;
}
.multi-level-decision-bar > * {
  min-width: 0;
  max-width: 100%;
}
.multi-level-decision-bar > .approval-stage-strip {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.multi-level-decision-bar > .review-feedback-list {
  display: grid;
  width: 100%;
}
.multi-level-decision-bar > .review-feedback-composer {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.multi-level-decision-bar > .review-feedback-composer label,
.multi-level-decision-bar > .review-correction-note {
  min-width: 0;
}
.multi-level-decision-bar > .review-decision-actions {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-end;
}
.multi-level-decision-bar > .review-decision-actions .button {
  flex: 0 1 auto;
}
.revision-decision-bar { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(280px, 1.35fr) auto; align-items: end; }
.revision-decision-bar > span:first-child em { margin-top: 5px; color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.45; }
.review-correction-note { display: grid; min-width: 0; gap: 5px; }
.review-correction-note textarea { width: 100%; min-height: 72px; resize: vertical; border: 1px solid #c7d1dc; border-radius: 6px; background: #fff; padding: 9px 10px; color: var(--ink); font-size: 10px; line-height: 1.45; }
.review-correction-note textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(41, 66, 148, .08); outline: 0; }
.review-correction-note > em { color: var(--muted); font-size: 8px; font-style: normal; line-height: 1.4; }
.review-decision-actions { align-items: stretch; flex-direction: column; }

.package-ai-preflight { border-color: #cbd6e0; background: #f6f8fb; }
.package-ai-preflight.risk { border-color: #ddc0c3; background: #fbf3f3; }
.package-ai-preflight.ready { border-color: #c6d9ce; background: #f2f7f4; }
.package-ai-preflight > div { display: flex; max-width: 250px; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.package-ai-preflight > div b { border-radius: 999px; background: #edf0ee; padding: 4px 7px; color: var(--muted); font-size: 7px; letter-spacing: 0.04em; text-transform: uppercase; }
.package-ai-preflight > div b.pass { background: #e3f0e9; color: var(--green); }
.package-ai-preflight > div b.warn { background: #f5ecd3; color: #7c5e16; }
.package-ai-preflight > div b.fail { background: #f4dee0; color: var(--red); }
.vault-ai-hint { display: flex; max-width: 210px; align-items: center; gap: 5px; margin-top: 6px; color: #466d5a; font-size: 8px; font-weight: 700; line-height: 1.35; }
.vault-ai-hint i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.vault-ai-hint.warning { color: #886619; }
.vault-ai-hint.critical { color: var(--red); }

.identity-check-card {
  display: grid;
  gap: 9px;
  margin-top: 11px;
  border: 1px solid #b9d0c3;
  border-left: 3px solid #4f745f;
  border-radius: 5px;
  background: #f3f8f5;
  padding: 12px 13px;
}

.identity-check-card.attention,
.identity-check-card.unreadable {
  border-color: #dfc98c;
  border-left-color: #9a721d;
  background: #fbf8ee;
}

.identity-check-card.mismatch {
  border-color: #dfb5ba;
  border-left-color: var(--red);
  background: #fcf2f3;
}

.identity-check-card > header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.identity-check-card > header > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.identity-check-card > header small { color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.identity-check-card > header strong { margin-top: 2px; font-size: 11px; }
.identity-check-card > header b { border-radius: 999px; background: #e2eee7; padding: 5px 8px; color: #35614f; font-family: var(--font-mono), monospace; font-size: 8px; }
.identity-check-card.attention > header b,
.identity-check-card.unreadable > header b { background: #f3e9ce; color: #806019; }
.identity-check-card.mismatch > header b { background: #f3dcdf; color: #963d47; }
.identity-check-card > p { margin: 0; color: var(--ink); font-size: 9px; font-weight: 650; line-height: 1.5; }
.identity-check-card > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; gap: 8px; }
.identity-check-card > div > small { padding-top: 4px; color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.identity-check-card > div > span { display: flex; flex-wrap: wrap; gap: 4px; }
.identity-check-card > div em { border-radius: 999px; background: rgba(255, 255, 255, 0.75); padding: 3px 6px; color: #496457; font-size: 7px; font-style: normal; font-weight: 750; }
.identity-check-card.mismatch > div em { color: #8d3e47; }
.identity-check-card > blockquote { margin: 0; border-left: 2px solid rgba(68, 91, 78, 0.2); padding-left: 9px; color: var(--muted); font-size: 8px; font-style: italic; line-height: 1.5; }

.preview-metadata-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8f9f7;
  padding: 11px 16px;
}

.preview-metadata-strip > span { display: flex; min-width: 0; flex-direction: column; }
.preview-metadata-strip small { color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.preview-metadata-strip strong { margin-top: 3px; overflow-wrap: anywhere; font-size: 9px; line-height: 1.4; }
.attachment-preview-modal > .identity-check-card { margin: 12px 16px 0; }
.identity-check-legacy { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; margin: 12px 16px 0; border: 1px solid #dfc98c; border-left: 3px solid #9a721d; border-radius: 5px; background: #fbf8ee; padding: 11px 13px; }
.identity-check-legacy > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.identity-check-legacy small { color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.identity-check-legacy strong { margin-top: 2px; font-size: 10px; }
.identity-check-legacy em { margin-top: 3px; color: var(--muted); font-size: 8px; font-style: normal; line-height: 1.45; }
.preview-decision-note { display: flex; align-items: center; border-top: 1px solid var(--line); background: #f8f9f7; padding: 11px 20px; }
.preview-decision-note > span { display: flex; flex-direction: column; }
.preview-decision-note small { color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.preview-decision-note strong { margin-top: 3px; font-size: 9px; line-height: 1.45; }
.preview-decision-actions { flex-wrap: wrap; }

.attachment-control {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  border: 1px solid #c9d8d0;
  border-radius: 5px;
  background: #f3f8f5;
  padding: 12px 13px;
}

.attachment-control.missing { border-color: #e0c0c4; background: #fcf2f3; }
.attachment-control > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.attachment-control small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.attachment-control strong { margin-top: 3px; font-size: 11px; }
.attachment-control em { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.attachment-mark { position: relative; display: block; width: 23px; height: 28px; border: 1px solid #6e8e7e; border-radius: 3px; color: #547463; }
.attachment-mark::before { position: absolute; top: -1px; right: -1px; width: 8px; height: 8px; border-bottom: 1px solid currentColor; border-left: 1px solid currentColor; background: #f3f8f5; content: ""; }
.attachment-mark::after { position: absolute; bottom: 7px; left: 5px; width: 11px; height: 1px; background: currentColor; box-shadow: 0 -5px currentColor; content: ""; opacity: 0.55; }
.attachment-control.missing .attachment-mark, .missing-attachment-state .attachment-mark { border-color: #b55b64; color: #a5414b; }
.attachment-control.missing .attachment-mark::before, .missing-attachment-state .attachment-mark::before { background: #fcf2f3; }

.compact-upload.required-upload { min-height: 76px; flex-direction: column; gap: 5px; border-color: #cf9ca2; background: #fcf3f4; color: #9c3e47; }
.compact-upload.complete { min-height: 62px; flex-direction: column; gap: 5px; border-color: #99b6a7; background: #f1f7f3; color: #35634f; }
.compact-upload small { color: var(--muted); font-size: 8px; font-weight: 500; }
.attachment-required-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; border: 1px solid #ead0d3; border-radius: 4px; background: #fdf7f7; padding: 9px 10px; color: #9a3e48; font-size: 9px; line-height: 1.45; }
.attachment-required-note > span { display: grid; width: 16px; height: 16px; place-items: center; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; font-weight: 800; }
.selected-attachment-list { display: grid; gap: 6px; }
.selected-attachment-list > span { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line-soft); border-radius: 4px; background: #fafbf9; padding: 8px 9px; }
.selected-attachment-list > span > span { display: flex; min-width: 0; flex-direction: column; }
.selected-attachment-list strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.selected-attachment-list small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.review-source-grid article .button { width: fit-content; margin-top: 10px; }
.attachment-preview-modal { width: min(1120px, 100%); }
.pdf-preview-shell { width: 100%; min-height: 100%; background: #dfe4e8; }
.pdf-preview-status { position: sticky; z-index: 2; top: 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); padding: 8px 14px; color: var(--muted); font-size: 9px; font-weight: 800; text-align: center; }
.pdf-preview-pages { display: flex; align-items: center; flex-direction: column; gap: 14px; padding: 16px; }
.pdf-preview-page { display: block; max-width: 100%; height: auto; background: #fff; box-shadow: 0 3px 16px rgba(25, 35, 45, 0.18); }
.attachment-preview-layout { display: grid; min-height: 560px; grid-template-columns: 250px minmax(0, 1fr); }
.attachment-preview-list { overflow-y: auto; border-right: 1px solid var(--line); background: #f7f8f5; }
.attachment-preview-list > header { display: flex; min-height: 64px; justify-content: center; flex-direction: column; border-bottom: 1px solid var(--line); padding: 12px 14px; }
.attachment-preview-list header small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.attachment-preview-list header strong { margin-top: 3px; font-size: 12px; }
.attachment-preview-list > button { display: grid; width: 100%; grid-template-columns: 27px minmax(0, 1fr); align-items: center; gap: 9px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; padding: 12px 14px; color: var(--ink); text-align: left; }
.attachment-preview-list > button:hover, .attachment-preview-list > button.active { background: #eef3f0; }
.attachment-preview-list > button.active { box-shadow: inset 3px 0 #567765; }
.attachment-preview-list > button > i { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #bdc9c2; border-radius: 50%; color: #52705f; font-family: var(--font-mono), monospace; font-size: 8px; font-style: normal; font-weight: 800; }
.attachment-preview-list > button > span { display: flex; min-width: 0; flex-direction: column; }
.attachment-preview-list button strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-preview-list button small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-viewer { display: grid; min-width: 0; grid-template-rows: auto minmax(0, 1fr) auto; background: #e9ece9; }
.attachment-viewer > header { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #ccd2ce; background: #ffffff; padding: 10px 14px; }
.attachment-viewer > header > span { display: flex; min-width: 0; flex-direction: column; }
.attachment-viewer header small { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.attachment-viewer header strong { margin-top: 3px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-viewer header em { margin-top: 2px; color: var(--muted); font-size: 7px; font-style: normal; }
.attachment-viewer-canvas { display: grid; min-height: 440px; overflow: auto; place-items: center; padding: 16px; }
.attachment-viewer-canvas iframe { width: 100%; height: 100%; min-height: 520px; border: 0; border-radius: 4px; background: #fff; box-shadow: 0 4px 18px rgba(21, 28, 24, 0.12); }
.attachment-viewer-canvas > img { display: block; max-width: 100%; max-height: 520px; border-radius: 4px; background: #fff; object-fit: contain; box-shadow: 0 4px 18px rgba(21, 28, 24, 0.12); }
.attachment-viewer-canvas pre { width: 100%; min-height: 500px; margin: 0; overflow: auto; border-radius: 4px; background: #fff; padding: 24px; color: var(--ink); font-family: var(--font-mono), monospace; font-size: 9px; line-height: 1.65; white-space: pre-wrap; box-shadow: 0 4px 18px rgba(21, 28, 24, 0.1); }
.viewer-loading, .viewer-error, .viewer-unsupported { display: flex; max-width: 380px; align-items: center; flex-direction: column; color: var(--muted); text-align: center; }
.viewer-loading strong, .viewer-error strong, .viewer-unsupported strong { margin-top: 13px; color: var(--ink); font-size: 12px; }
.viewer-error > span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--red); border-radius: 50%; color: var(--red); font-weight: 800; }
.viewer-error p, .viewer-unsupported p { margin: 7px 0 0; font-size: 9px; line-height: 1.5; }
.viewer-unsupported .document-glyph { width: 46px; height: 46px; }
.attachment-viewer > footer { display: flex; min-height: 38px; align-items: center; gap: 7px; border-top: 1px solid #ccd2ce; background: #f7f8f5; padding: 8px 13px; color: var(--muted); font-size: 8px; }
.missing-attachment-state { display: flex; min-height: 420px; align-items: center; justify-content: center; flex-direction: column; padding: 36px; text-align: center; }
.missing-attachment-state .attachment-mark { width: 32px; height: 39px; }
.missing-attachment-state h3 { margin: 18px 0 8px; font-size: 19px; }
.missing-attachment-state > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.missing-attachment-state > div { max-width: 560px; margin-top: 18px; border: 1px solid #e0c0c4; border-radius: 5px; background: #fcf2f3; padding: 12px 14px; color: #913c45; font-size: 9px; line-height: 1.45; }
.missing-attachment-state > div span { display: block; margin-bottom: 4px; font-size: 7px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }

.role-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid #c9d7d0;
  border-radius: 999px;
  background: #f1f6f3;
  padding: 4px 8px;
  color: #35614f;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.role-badge.reviewer { border-color: #c6d2df; background: #f0f4f8; color: #315c7d; }
.role-badge.admin { border-color: #d7cbe2; background: #f5f1f8; color: #674b7a; }
.sidebar-footer > .role-badge { margin: 12px 0 0 44px; border-color: rgba(255, 255, 255, 0.17); background: rgba(255, 255, 255, 0.08); color: #dbe8e2; }

.persona-switcher {
  display: flex;
  min-width: 188px;
  flex-direction: column;
  gap: 3px;
}

.persona-switcher > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.persona-switcher select {
  min-height: 34px;
  max-width: 220px;
  border: 1px solid #d1d8d4;
  border-radius: 4px;
  background: #fff;
  padding: 6px 28px 6px 9px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
}

.document-approval-tag {
  display: inline-flex;
  border: 1px solid #d5dbd7;
  border-radius: 999px;
  background: #f7f8f6;
  padding: 2px 7px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.document-approval-tag.submitted { border-color: #dacb9e; background: #fbf6e9; color: #896719; }
.document-approval-tag.approved { border-color: #bcd4c8; background: #edf6f1; color: #2f684f; }
.document-approval-tag.changes { border-color: #e0bfc3; background: #fbf0f1; color: #9b3842; }

.document-review-panel {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  border: 1px solid #d7ddd9;
  border-radius: 5px;
  background: #f8f9f7;
  padding: 13px;
}

.document-review-panel.submitted { border-color: #dfd1a8; background: #fbf8ef; }
.document-review-panel.approved { border-color: #c4d8cd; background: #f0f7f3; }
.document-review-panel.changes { border-color: #e1c2c6; background: #fcf2f3; }
.review-state-mark { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: #78827d; }
.review-state-mark::after { content: "…"; font-size: 12px; font-weight: 800; line-height: 1; }
.document-review-panel.approved .review-state-mark { color: var(--green); }
.document-review-panel.approved .review-state-mark::after { content: "✓"; }
.document-review-panel.changes .review-state-mark { color: var(--red); }
.document-review-panel.changes .review-state-mark::after { content: "!"; }
.document-review-panel > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.document-review-panel small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.document-review-panel strong { margin-top: 3px; font-size: 12px; }
.document-review-panel em { margin-top: 3px; color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.45; }
.document-review-panel b { margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 650; }
.review-actions { display: flex; align-items: center; gap: 7px; }
.read-only-note { display: flex; align-items: center; gap: 8px; margin-top: 11px; border-top: 1px solid var(--line-soft); padding-top: 11px; color: var(--muted); font-size: 10px; }
.table-readonly, .waiting-note { color: var(--muted); font-size: 10px; font-weight: 650; }

.role-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.role-model-card {
  min-height: 180px;
  border: 1px solid var(--line);
  border-top: 3px solid #6e9483;
  border-radius: 6px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(26, 39, 33, 0.04);
}

.role-model-card.reviewer { border-top-color: #577b9a; }
.role-model-card.admin { border-top-color: #7a608b; }
.role-model-card h2 { margin: 18px 0 12px; font-size: 16px; line-height: 1.35; }
.role-model-card ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.role-model-card li { position: relative; padding-left: 15px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.role-model-card li::before { position: absolute; top: 6px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #80968c; content: ""; }

.access-panel, .access-list-panel { margin-top: 18px; }
.access-form { display: grid; grid-template-columns: 1fr 1.25fr 0.85fr auto; align-items: end; gap: 12px; }
.access-form label { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.access-form label > span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.access-form input, .access-form select, .access-table select { width: 100%; min-height: 39px; border: 1px solid #ccd4cf; border-radius: 4px; background: #fff; padding: 8px 10px; color: var(--ink); font-size: 11px; }
.access-table-wrap { overflow-x: auto; margin: 0 -22px -22px; }
.access-table { min-width: 720px; }
.access-table tr.inactive { opacity: 0.55; }
.account-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.account-status i { width: 7px; height: 7px; border-radius: 50%; background: #a5ada9; }
.account-status.active { color: var(--green); }
.account-status.active i { background: var(--green); box-shadow: 0 0 0 3px rgba(50, 112, 83, 0.1); }

.button:disabled, select:disabled { cursor: not-allowed; opacity: 0.52; }

/* PCC Proposal Command Centre — light executive visual system */
.sidebar {
  width: 232px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 8px 0 28px rgba(41, 66, 148, 0.045);
}

.main-column { margin-left: 232px; }

.brand-lockup {
  min-height: 92px;
  gap: 12px;
  border-bottom: 0;
  background: var(--surface);
  padding: 14px 18px 10px;
}

.brand-logo {
  width: auto;
  height: 54px;
  max-width: 52px;
  max-height: 54px;
  margin: 0;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.brand-copy strong {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-copy small {
  max-width: 120px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.35;
}

.brand-strokes {
  display: flex;
  width: 88px;
  height: 3px;
  gap: 4px;
  margin: 0 18px 18px;
}

.brand-strokes i {
  display: block;
  height: 100%;
  border-radius: 2px;
}

.brand-strokes i:first-child { width: 56px; background: var(--red); }
.brand-strokes i:last-child { width: 28px; background: var(--blue-soft); }
.product-name { display: none; }

.primary-nav {
  gap: 5px;
  padding: 0 12px 18px;
}

.nav-item {
  min-height: 46px;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0 11px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast);
}

.nav-item:hover {
  border-color: var(--line-soft);
  background: var(--surface-soft);
  color: var(--ink);
  transform: translateX(2px);
}

.nav-item.active {
  border-color: rgba(41, 66, 148, 0.12);
  background: var(--surface-blue);
  color: var(--navy);
  font-weight: 700;
  box-shadow: inset 3px 0 var(--navy);
}

.nav-code {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: #747b87;
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.nav-item.active .nav-code {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.nav-badge {
  background: rgba(41, 66, 148, 0.12);
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
}

.nav-badge.danger { background: var(--red); color: #fff; }

.sidebar-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 16px;
}

.user-card { gap: 11px; }
.user-card .avatar {
  border: 1px solid rgba(41, 66, 148, 0.14);
  background: rgba(108, 147, 204, 0.18);
  color: var(--navy);
}
.user-card strong { color: var(--ink); font-size: 11.5px; }
.user-card small { color: var(--muted); font-size: 9.5px; }

.sidebar-persona-switcher {
  display: flex;
  margin-top: 14px;
  flex-direction: column;
  gap: 6px;
}

.sidebar-persona-switcher > span {
  color: var(--navy);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-persona-switcher select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 7px 9px;
  color: var(--ink);
  font-size: 9.5px;
}

.sidebar-footer .text-button {
  margin-top: 13px;
  color: var(--muted);
  font-size: 9px;
}

.mobile-persona-switcher { display: none; }

.topbar {
  min-height: 80px;
  border-bottom-color: rgba(41, 66, 148, 0.12);
  background: rgba(255, 255, 255, 0.96);
  padding: 13px 34px;
  box-shadow: 0 5px 18px rgba(41, 66, 148, 0.035);
}

.eyebrow,
.section-kicker {
  color: var(--navy);
  font-family: var(--font-sans), "Open Sans", Arial, sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.tender-switcher { padding-top: 4px; }
.tender-switcher > span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

.command-trigger {
  min-width: 208px;
  border-color: var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  font-size: 11.5px;
}

.command-trigger:hover {
  border-color: rgba(41, 66, 148, 0.3);
  background: #fff;
}

.button {
  min-height: 40px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
}

.button.small { min-height: 35px; font-size: 10.5px; }

.content {
  width: min(1420px, 100%);
  padding: 30px 34px 64px;
}

.hero-panel {
  display: grid;
  min-height: 258px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
  gap: 38px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, #fff 0 65%, rgba(108, 147, 204, 0.11) 65% 100%);
  padding: 38px 42px;
  box-shadow: 0 18px 44px rgba(41, 66, 148, 0.08);
}

.hero-panel::before {
  top: 0;
  right: 0;
  width: 35%;
  height: 100%;
  transform: none;
  border: 0;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(41, 66, 148, 0.045) 46% 47%, transparent 47% 59%, rgba(108, 147, 204, 0.07) 59% 60%, transparent 60%);
}

.hero-panel::after {
  top: 27px;
  right: 0;
  bottom: auto;
  width: 4px;
  height: 60px;
  transform: none;
  border: 0;
  border-radius: 4px 0 0 4px;
  background: var(--red);
}

.hero-copy h1 {
  max-width: 760px;
  margin-top: 13px;
  color: var(--navy);
  font-size: clamp(31px, 3vw, 42px);
  font-weight: 750;
  line-height: 1.1;
}

.hero-copy > p { margin-top: 13px; font-size: 13px; }
.hero-copy > p strong { color: var(--ink); font-size: 13px; }
.hero-copy > p span { color: var(--muted); }
.hero-meta { margin-top: 25px; }
.deadline, .review-pill { font-size: 10.5px; }

.hero-command {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 18px;
  border-left: 1px solid rgba(41, 66, 148, 0.12);
  padding-left: 28px;
}

.completion-block {
  display: grid;
  min-width: 0;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
}

.segmented-ring { width: 108px; height: 108px; }
.segmented-ring::after { inset: 10px; }
.segmented-ring strong { font-size: 27px; }
.completion-copy strong { color: var(--navy); font-size: 14px; }
.completion-copy span { margin-top: 5px; font-size: 10px; line-height: 1.4; }

.hero-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(41, 66, 148, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.hero-signal-grid > span {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(41, 66, 148, 0.11);
  padding: 10px;
}

.hero-signal-grid > span:last-child { border-right: 0; }
.hero-signal-grid small {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.25;
}
.hero-signal-grid strong { margin-top: 4px; color: var(--navy); font-size: 18px; line-height: 1; }

.priority-brief {
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 17px;
  margin-top: 16px;
  border: 1px solid #cad6e9;
  border-left: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(41, 66, 148, 0.075), #fff 60%);
  padding: 17px 19px;
  box-shadow: 0 8px 22px rgba(41, 66, 148, 0.045);
}

.priority-rank {
  width: 38px;
  height: 38px;
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.priority-copy h2 { font-size: 17px; line-height: 1.3; }
.priority-copy p { font-size: 10.5px; line-height: 1.5; }
.impact-chip { border-left-color: var(--line); }

.panel,
.metric-card,
.review-workbench,
.role-model-card {
  border-color: var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(41, 66, 148, 0.045);
}

.panel-heading h2,
.page-header h1,
.review-gate h2,
.export-panel h2,
.modal h2 {
  color: var(--navy);
  font-weight: 700;
}

.panel-heading h2 { font-size: 20px; line-height: 1.28; }
.page-header h1 { font-size: 31px; }
.panel-heading p, .panel > p { font-size: 12px; line-height: 1.65; }

.metric-card { min-height: 108px; padding: 17px; }
.metric-card strong { font-size: 29px; }
.metric-card span:not(.metric-mark) { font-size: 12.5px; }
.metric-card small { font-size: 10.5px; line-height: 1.4; }

.category-progress { min-height: 56px; }
.category-name strong { font-size: 11.5px; }
.category-count { font-size: 10.5px; }
.requirement-summary strong { font-size: 12.5px; }
.requirement-summary > small { font-size: 10.5px; }
.data-table { font-size: 11px; }

.strategy-tag.vault-only,
.strategy-tag.tender-template,
.strategy-tag.authoring-choice,
.strategy-tag.company-template,
.strategy-tag.ai-assisted {
  border-color: rgba(41, 66, 148, 0.18);
  background: var(--blue-bg);
  color: var(--navy);
}

.strategy-tag.company-template { background: #f4f6f8; color: var(--muted); }
.strategy-tag.ai-assisted { border-color: rgba(41, 66, 148, 0.28); background: rgba(108, 147, 204, 0.15); }

.route-code.vault-only,
.route-code.tender-template,
.route-code.authoring-choice,
.route-code.company-template,
.route-code.ai-assisted {
  border-color: rgba(41, 66, 148, 0.25);
  color: var(--navy);
}

.method-choice-card.company > span,
.method-choice-card.ai > span { color: var(--navy); }
.draft-source-banner.tender-template,
.draft-source-banner.company-template,
.draft-source-banner.ai-assisted { border-left-color: var(--navy); }

.role-badge,
.role-badge.staff,
.role-badge.reviewer,
.role-badge.admin {
  border-color: rgba(41, 66, 148, 0.18);
  background: var(--blue-bg);
  color: var(--navy);
}

.role-model-card,
.role-model-card.reviewer,
.role-model-card.admin { border-top-color: var(--navy); }
.role-model-card li { font-size: 11px; line-height: 1.5; }
.role-model-card li::before { background: var(--blue-soft); }

@media (max-width: 1120px) {
  .sidebar { width: 232px; }
  .main-column { margin-left: 232px; }
  .content, .topbar { padding-right: 28px; padding-left: 28px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .operating-grid { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: repeat(4, 1fr); }
  .tender-switcher { min-width: 300px; }
  .priority-brief { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .priority-brief .button { grid-column: 2 / -1; justify-self: start; }
  .task-list-head, .task-row { grid-template-columns: minmax(260px, 2fr) minmax(145px, 0.8fr) 100px 80px 12px; }
  .persona-switcher { min-width: 150px; }
  .persona-switcher select { max-width: 170px; }
  .command-trigger { min-width: 44px; width: 44px; grid-template-columns: 16px; justify-content: center; }
  .command-trigger > span:nth-child(2), .command-trigger kbd { display: none; }
  .review-workbench { grid-template-columns: minmax(245px, 0.68fr) minmax(0, 1.5fr); }
  .review-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-metric-grid > span:nth-child(2) { border-right: 0; }
  .review-metric-grid > span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .sidebar {
    position: sticky;
    inset: 0 0 auto;
    z-index: 40;
    width: 100%;
    overflow: visible;
  }

  .brand-lockup { min-height: 72px; padding: 8px 20px; }
  .brand-logo { width: auto; height: 46px; max-width: 45px; margin: 0; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { max-width: none; font-size: 8.5px; }
  .brand-strokes { display: none; }

  .mobile-nav-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    border: 1px solid #c7cfda;
    border-radius: 6px;
    background: #fff;
    padding: 8px 12px;
    color: var(--navy-deep);
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-nav-toggle > span { display: flex; width: 15px; flex-direction: column; gap: 3px; }
  .mobile-nav-toggle i { display: block; height: 1px; background: currentColor; }
  .product-name { display: none; }

  .primary-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 14px 16px;
    box-shadow: 0 18px 34px rgba(10, 19, 43, 0.28);
  }

  .primary-nav.open { display: grid; }
  .nav-item { width: 100%; min-height: 48px; padding: 0 13px; }
  .nav-item.active { box-shadow: inset 3px 0 var(--navy); }
  .nav-code { display: grid; }
  .sidebar-footer { display: none; }
  .main-column { margin-left: 0; }

  .topbar { top: 72px; min-height: 80px; padding: 12px 20px; }
  .mobile-persona-switcher { display: block; }
  .mobile-persona-switcher select {
    width: 112px;
    min-height: 39px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 7px 24px 7px 8px;
    color: var(--ink);
    font-size: 9px;
    text-overflow: ellipsis;
  }
  .tender-switcher { min-width: 0; max-width: 450px; }
  .tender-switcher > span { font-size: 16px; }
  .switcher-menu { width: min(590px, calc(100vw - 40px)); }

  .content { padding: 26px 20px 96px; }
  .hero-panel { grid-template-columns: 1fr; align-items: flex-start; padding: 30px; }
  .hero-panel::before { right: 0; width: 100%; opacity: 0.55; }
  .hero-command { width: 100%; border-top: 1px solid rgba(41, 66, 148, 0.12); border-left: 0; padding-top: 22px; padding-left: 0; }
  .completion-copy { display: flex; }
  .overview-grid, .package-layout { grid-template-columns: 1fr; }
  .document-control-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .export-panel { position: static; }
  .workflow-steps { grid-template-columns: repeat(3, 1fr); }
  .review-workbench { grid-template-columns: 1fr; }
  .review-queue-panel { position: static; max-height: 420px; }
  .review-queue-list { max-height: 350px; }
  .ai-assurance-banner, .package-ai-preflight { grid-template-columns: 42px minmax(0, 1fr); }
  .ai-assurance-banner > b, .package-ai-preflight > div { grid-column: 1 / -1; justify-self: start; }
  .role-model-grid { grid-template-columns: 1fr; }
  .access-form { grid-template-columns: 1fr 1fr; }
  .attachment-preview-layout { min-height: 0; grid-template-columns: 210px minmax(0, 1fr); }
  .page-header { align-items: flex-start; flex-direction: column; gap: 17px; }
  .page-actions { flex-wrap: wrap; }
  .task-list { overflow-x: auto; }
  .task-list-head, .task-row { min-width: 850px; }
  .toast { left: 50%; }
}

@media (max-width: 680px) {
  .multi-level-decision-bar > .approval-stage-strip,
  .multi-level-decision-bar > .review-feedback-composer {
    grid-template-columns: 1fr;
  }
  .multi-level-decision-bar > .review-decision-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .multi-level-decision-bar > .review-decision-actions .button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .brand-lockup { padding-right: 14px; padding-left: 14px; }
  .mobile-nav-toggle { padding-right: 10px; padding-left: 10px; }

  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 16px; }
  .topbar .eyebrow { font-size: 9px; }
  .topbar-actions .button { max-width: 118px; white-space: nowrap; }
  .persona-switcher { min-width: 76px; }
  .persona-switcher > span { display: none; }
  .persona-switcher select { width: 76px; max-width: 76px; overflow: hidden; padding: 6px 20px 6px 7px; font-size: 9px; text-overflow: ellipsis; }
  .mobile-persona-switcher select { width: 78px; max-width: 78px; }
  .command-trigger { display: none; }
  .tender-switcher-wrap { min-width: 0; }
  .tender-switcher { width: 100%; }
  .tender-switcher > span { font-size: 14px; }
  .switcher-menu { left: 0; width: calc(100vw - 32px); }
  .switcher-option-row { grid-template-columns: minmax(0, 1fr) 74px; }
  .switcher-delete { width: 74px; min-width: 74px; max-width: 74px; padding: 9px 6px; font-size: 9px; }

  .content { padding: 20px 16px 90px; }
  .hero-panel { min-height: 0; grid-template-columns: 1fr; gap: 22px; background: #ffffff; padding: 24px 20px; }
  .hero-panel::before { display: none; }
  .hero-copy { min-width: 0; }
  .hero-copy h1 { font-size: 25px; }
  .hero-copy > p strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-meta { align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 17px; }
  .completion-block { min-width: 0; grid-template-columns: 84px minmax(0, 1fr); align-self: stretch; justify-content: flex-start; }
  .segmented-ring { width: 84px; height: 84px; }
  .segmented-ring::after { inset: 8px; }
  .segmented-ring strong { font-size: 22px; }
  .hero-signal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-signal-grid > span { min-height: 58px; padding: 8px 6px; }
  .hero-signal-grid small { font-size: 7.5px; }
  .hero-signal-grid strong { font-size: 16px; }

  .priority-brief { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .priority-rank { width: 32px; height: 32px; }
  .priority-copy h2 { font-size: 16px; white-space: normal; }
  .impact-chip { grid-column: 2; min-width: 0; border-left: 0; padding-left: 0; }
  .priority-brief .button { grid-column: 1 / -1; width: 100%; }
  .onboarding-steps { grid-template-columns: 1fr; }

  .readiness-panel, .project-control-panel { min-height: 0; }
  .readiness-body { grid-template-columns: 1fr; align-items: start; }
  .readiness-score { align-items: flex-start; position: relative; min-height: 122px; padding-left: 138px; justify-content: center; }
  .readiness-score::before { position: absolute; left: 0; }
  .readiness-score > span { left: 0; width: 122px; margin-top: 0; text-align: center; }
  .readiness-score p { margin: 0; font-size: 12px; }
  .project-facts { grid-template-columns: 1fr; }
  .milestone-card { align-items: flex-start; flex-direction: column; }
  .milestone-card .button { width: 100%; }

  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-card { min-height: 108px; align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px; }
  .metric-card > div { column-gap: 7px; }
  .metric-card strong { font-size: 23px; }
  .metric-card span:not(.metric-mark) { font-size: 12px; }
  .metric-card small { font-size: 11px; line-height: 1.35; }

  .panel { padding: 22px 18px; }
  .action-buttons { align-items: stretch; flex-direction: column; }
  .action-buttons .button { width: 100%; }
  .panel-heading { gap: 12px; }
  .panel-heading h2 { font-size: 20px; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .panel-heading { flex-direction: column; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .document-control-strip { grid-template-columns: 1fr; }
  .document-control-strip > span { border-right: 0; border-bottom: 1px solid var(--line); }
  .document-control-strip > span:last-child { border-bottom: 0; }
  .filter-bar select { width: 100%; }
  .result-count { text-align: left; }

  .page-header { margin-bottom: 22px; }
  .page-header h1 { font-size: 29px; }
  .page-actions { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .page-actions .button { width: 100%; }

  .requirement-group > header { padding: 0 13px; }
  .requirement-group > header h2 { font-size: 15px; }
  .requirement-row { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 0 5px; }
  .requirement-summary > span:first-child { align-items: flex-start; flex-wrap: wrap; gap: 6px; }
  .requirement-summary strong { overflow: visible; font-size: 13px; line-height: 1.35; white-space: normal; }
  .requirement-summary > small { line-height: 1.4; white-space: normal; }
  .requirement-detail { grid-column: 1 / -1; padding: 0 9px 16px; }
  .detail-meta { grid-template-columns: 1fr; }
  .row-actions { align-items: stretch; flex-direction: column; }
  .row-actions .button { width: 100%; }
  .vault-lock-panel { grid-template-columns: 32px minmax(0, 1fr); }
  .vault-lock-panel > .button, .vault-lock-panel > b { grid-column: 1 / -1; width: 100%; text-align: center; }
  .vault-only-panel { grid-template-columns: 32px minmax(0, 1fr); }
  .vault-only-panel > .button { grid-column: 1 / -1; width: 100%; }
  .document-route-card { grid-template-columns: 36px minmax(0, 1fr); }
  .document-route-card > label { grid-column: 1 / -1; }
  .document-review-panel { grid-template-columns: 32px minmax(0, 1fr); }
  .document-review-panel > .button, .document-review-panel > .review-actions { grid-column: 1 / -1; width: 100%; }
  .attachment-control { grid-template-columns: 32px minmax(0, 1fr); }
  .attachment-control > .button { grid-column: 1 / -1; width: 100%; }
  .review-actions { align-items: stretch; flex-direction: column; }
  .review-actions .button { width: 100%; }
  .authoring-control .row-actions { flex-direction: column; }
  .method-choice-grid { grid-template-columns: 1fr; }
  .draft-source-banner { margin-right: 14px; margin-left: 14px; }

  .vault-summary { grid-template-columns: repeat(2, 1fr); }
  .filter-tabs { overflow-x: auto; }
  .filter-tabs button { white-space: nowrap; }

  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tbody { padding: 0 14px; }
  .data-table tr { border-bottom: 1px solid var(--line); padding: 16px 0; }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 10px; border: 0; padding: 6px 0; }
  .data-table td::before { color: var(--muted); content: attr(data-label); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
  .data-table td:first-child { display: block; padding-bottom: 11px; }
  .data-table td:first-child::before { display: none; }
  .data-table td:last-child .button { width: fit-content; }
  .approval-meta { margin-top: 4px; }

  .team-load { grid-template-columns: 1fr; }
  .review-gate { align-items: flex-start; flex-direction: column; }
  .gate-actions { align-items: stretch; width: 100%; flex-direction: column; }
  .package-row { grid-template-columns: 28px minmax(0, 1fr); }
  .package-row .source-tag { grid-column: 2; justify-self: start; }
  .form-grid { grid-template-columns: 1fr; }
  .access-form { grid-template-columns: 1fr; }
  .access-form .button { width: 100%; }
  .review-metric-grid { grid-template-columns: 1fr 1fr; }
  .review-metric-grid > span { min-height: 94px; padding: 13px; }
  .review-document-head { flex-direction: column; }
  .review-document-head > span:last-child { align-items: flex-start; flex-direction: row; }
  .review-source-grid, .finding-evidence, .ai-check-grid { grid-template-columns: 1fr; }
  .review-source-grid article:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .ai-review-summary { grid-template-columns: 78px minmax(0, 1fr); }
  .ai-score-ring { width: 70px; height: 70px; }
  .ai-review-summary > .button { grid-column: 1 / -1; width: 100%; }
  .finding-head { align-items: flex-start; flex-wrap: wrap; }
  .finding-status { margin-left: 0; }
  .finding-actions { align-items: stretch; flex-direction: column; }
  .finding-actions .button { width: 100%; }
  .review-decision-bar { align-items: stretch; flex-direction: column; }
  .review-decision-bar > div { flex-direction: column; }
  .review-decision-bar .button { width: 100%; }
  .attachment-preview-layout { grid-template-columns: 1fr; }
  .preview-metadata-strip { grid-template-columns: 1fr; }
  .identity-check-card > div { grid-template-columns: 1fr; }
  .attachment-preview-list { max-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .attachment-viewer-canvas { min-height: 360px; padding: 9px; }
  .attachment-viewer-canvas iframe, .attachment-viewer-canvas pre { min-height: 380px; }
  .table-actions { align-items: stretch; flex-direction: column; }
  .table-actions .button { width: 100%; }
  .preview-decision-actions { align-items: stretch; flex-direction: column; }
  .preview-decision-actions .button { width: 100%; }
  .modal-backdrop { padding: 10px; }
  .modal { max-height: calc(100vh - 20px); }
  .command-backdrop { padding: 76px 10px 10px; }
  .command-palette { max-height: calc(100vh - 86px); }
  .command-results { max-height: calc(100vh - 220px); }
  .command-palette footer { display: none; }
  .reader-review-heading { flex-direction: column; gap: 8px; }
  .reader-result-header { grid-template-columns: 31px minmax(0, 1fr); }
  .reader-expand-label { grid-column: 2; justify-self: start; }
  .reader-edit-fields { grid-template-columns: 1fr; padding: 10px; }
  .reader-list-toolbar, .reader-item-actions { align-items: stretch; flex-direction: column; }
  .reader-item-actions > span { align-items: stretch; flex-direction: column; }
  .reader-item-actions .button { width: 100%; }
  .reader-list-toolbar .button { width: 100%; }
  .reader-summary-disclosure > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .reader-summary-disclosure > summary > span { grid-column: 1 / -1; }
  .staff-revision-alert { grid-template-columns: 18px minmax(0, 1fr); align-items: start; }
  .staff-revision-alert > div { grid-column: 1 / -1; flex-direction: column; }
  .staff-revision-alert .button { width: 100%; }
  .requirement-description-card { align-items: stretch; flex-direction: column; }
  .reader-results .required-tag { display: none; }
  .document-summary-card > header { flex-direction: column; }
  .document-summary-facts, .compact .document-summary-facts { grid-template-columns: 1fr; }
  .document-summary-facts > span, .compact .document-summary-facts > span:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
  .document-summary-facts > span:last-child { border-bottom: 0; }
  .document-summary-decision-grid { grid-template-columns: 1fr; }
}

.portfolio-overview { display:grid; gap:0; margin-bottom:18px; overflow:hidden; }
.global-view-context { display:grid; align-content:center; gap:3px; min-width:0; }.global-view-context > strong { overflow:hidden; color:var(--navy-deep); font-size:15px; text-overflow:ellipsis; white-space:nowrap; }.global-view-context > small { color:var(--muted); font-size:9px; }
.about-pcc { display:grid; gap:18px; }.about-pcc-hero { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,.55fr); gap:28px; align-items:center; border-radius:18px; padding:30px; background:linear-gradient(135deg,#193675,#3155a7); color:#fff; }.about-pcc-hero>span { display:grid; gap:10px; }.about-pcc-hero small,.about-feature-section header small,.about-pcc-purpose small { font-size:9px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }.about-pcc-hero h1 { max-width:900px; margin:0; font-size:28px; line-height:1.16; }.about-pcc-hero p { max-width:860px; margin:0; color:#dce6fb; font-size:12px; line-height:1.7; }.about-pcc-hero>b { display:grid; grid-template-columns:58px 1fr; gap:14px; border:1px solid rgba(255,255,255,.24); border-radius:14px; padding:16px; background:rgba(255,255,255,.08); }.about-pcc-hero>b>i { display:grid; width:54px; height:54px; place-items:center; border-radius:12px; background:#fff; color:var(--navy); font-size:13px; font-style:normal; }.about-pcc-hero>b>span { display:grid; gap:3px; }.about-pcc-hero>b strong { font-size:14px; }.about-pcc-hero>b em { color:#dce6fb; font-size:9px; font-style:normal; line-height:1.5; }.about-pcc-purpose { display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,.8fr); gap:30px; border:1px solid var(--line); border-left:4px solid var(--navy); border-radius:14px; padding:22px 24px; background:#fff; }.about-pcc-purpose span { display:grid; gap:6px; }.about-pcc-purpose small,.about-feature-section header small { color:var(--navy); }.about-pcc-purpose h2,.about-feature-section h2 { margin:0; color:var(--navy-deep); font-size:18px; line-height:1.35; }.about-pcc-purpose p { margin:0; color:var(--muted); font-size:11px; line-height:1.7; }.about-feature-section { display:grid; gap:14px; }.about-feature-section>header { display:flex; align-items:end; justify-content:space-between; gap:18px; padding:0 4px; }.about-feature-section>header span { display:grid; gap:5px; }.about-feature-section>header b { border-radius:999px; padding:7px 10px; background:#edf3ff; color:var(--navy); font-size:9px; }.about-feature-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.about-feature-grid article { display:grid; grid-template-columns:38px minmax(0,1fr); gap:13px; border:1px solid var(--line); border-radius:14px; padding:16px; background:#fff; }.about-feature-grid article>i { display:grid; width:36px; height:36px; place-items:center; border-radius:10px; background:#eaf0fb; color:var(--navy); font-size:9px; font-style:normal; font-weight:900; }.about-feature-grid article>span { display:grid; gap:7px; }.about-feature-grid h3 { margin:0; color:var(--navy-deep); font-size:13px; }.about-feature-grid p { display:grid; grid-template-columns:70px minmax(0,1fr); gap:8px; margin:0; color:var(--muted); font-size:9.5px; line-height:1.55; }.about-feature-grid p strong { color:var(--navy); font-size:8px; letter-spacing:.06em; text-transform:uppercase; }.about-feature-grid p.pain strong { color:#9a5f00; }.about-pcc-footer { display:flex; align-items:center; justify-content:space-between; gap:24px; border-radius:14px; padding:18px 20px; background:#f1f5fc; }.about-pcc-footer strong { color:var(--navy-deep); font-size:13px; }.about-pcc-footer p { max-width:650px; margin:0; color:var(--muted); font-size:9.5px; line-height:1.6; text-align:right; }@media(max-width:860px){.about-pcc-hero,.about-pcc-purpose,.about-feature-grid{grid-template-columns:1fr}.about-pcc-footer{align-items:flex-start;flex-direction:column}.about-pcc-footer p{text-align:left}}@media(max-width:620px){.about-pcc-hero{padding:22px}.about-pcc-hero h1{font-size:22px}.about-feature-grid p{grid-template-columns:1fr}}
.portfolio-overview > header { display:flex; align-items:start; justify-content:space-between; gap:18px; padding:18px 20px; background:linear-gradient(135deg,#f3f7ff,#fff); }
.portfolio-overview > header > span { display:grid; gap:4px; }.portfolio-overview > header small { color:var(--navy); font-size:9px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }.portfolio-overview > header h2 { margin:0; color:var(--navy-deep); font-size:20px; }.portfolio-overview > header p { margin:0; color:var(--muted); font-size:10px; }.portfolio-overview > header > b { border-radius:999px; padding:8px 12px; background:#e8effd; color:var(--navy); font-size:10px; }
.tender-title-line { display:flex!important; align-items:center; gap:7px; min-width:0; }.trial-badge { display:inline-flex; align-items:center; width:max-content; border:1px solid #e6bd72; border-radius:999px; padding:3px 6px; background:#fff6df; color:#835916; font-size:7px; font-style:normal; font-weight:900; letter-spacing:.04em; line-height:1; text-transform:uppercase; white-space:nowrap; }.switcher-copy>strong,.switcher-option>span>strong { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }.switcher-copy .trial-badge { font-size:6px; }
.portfolio-signals { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#f7f9fd; }.portfolio-signals button { display:grid; gap:3px; border:0; border-right:1px solid var(--line); padding:13px 18px; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }.portfolio-signals button:last-child { border-right:0; }.portfolio-signals button:hover,.portfolio-signals button.active { background:#fff; box-shadow:inset 0 -3px var(--navy); }.portfolio-signals button.risk strong { color:#9a5f00; }.portfolio-signals button.trial strong { color:#835916; }.portfolio-signals button.trial.active { box-shadow:inset 0 -3px #c5892f; }.portfolio-signals small { color:var(--muted); font-size:8px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }.portfolio-signals strong { color:var(--navy-deep); font-size:20px; }.portfolio-signals em { color:var(--muted); font-size:8px; font-style:normal; }.portfolio-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:11px 18px; }.portfolio-tools label { display:flex; align-items:center; gap:9px; width:min(460px,100%); border:1px solid var(--line); border-radius:10px; padding:8px 11px; background:#fff; }.portfolio-tools input { width:100%; border:0; outline:0; color:var(--ink); font-size:10px; }.portfolio-tools>span { color:var(--muted); font-size:9px; }.portfolio-empty { display:grid; justify-items:center; gap:4px; padding:30px; color:var(--navy-deep); }.portfolio-empty small { color:var(--muted); font-size:9px; }
.portfolio-table { overflow:auto; }.portfolio-head,.portfolio-table > button { display:grid; grid-template-columns:minmax(240px,1.5fr) minmax(180px,1fr) minmax(170px,.9fr) minmax(150px,.8fr) 100px; gap:14px; align-items:center; min-width:920px; padding:12px 18px; }

/* Requirement evidence packages */
.evidence-package-modal { display:flex; width:min(1080px,100%); max-height:calc(100vh - 36px); flex-direction:column; overflow:hidden; }
.evidence-package-modal > header { flex:0 0 auto; padding:20px 26px 17px; }
.evidence-package-modal > header p { max-width:760px; margin:6px 0 0; color:var(--muted); font-size:11px; line-height:1.45; }
.evidence-package-body { display:grid; min-height:0; flex:1 1 auto; gap:16px; overflow-y:auto; overscroll-behavior:contain; padding:20px 26px 24px; scrollbar-gutter:stable; }
.evidence-package-modal > .modal-footer { flex:0 0 auto; padding:15px 26px; background:#fff; }
.evidence-readiness { display:grid; grid-template-columns:58px minmax(0,1fr); gap:14px; align-items:center; border:1px solid #efc5ca; border-radius:13px; padding:15px 17px; background:#fff7f8; }
.evidence-readiness.ready { border-color:#b9dccb; background:#f3fbf7; }
.evidence-readiness-score { display:grid; width:54px; height:54px; place-items:center; border-radius:14px; background:#fff; box-shadow:0 5px 18px rgba(20,37,75,.08); color:#b42338; font-size:18px; font-weight:900; }
.evidence-readiness.ready .evidence-readiness-score { color:#176b4d; }
.evidence-readiness > span:last-child { display:grid; gap:3px; }
.evidence-readiness small,.evidence-logic-panel small,.evidence-package-toolbar small,.evidence-slot-card small { color:var(--muted); font-size:8px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.evidence-readiness strong { color:var(--navy-deep); font-size:14px; }
.evidence-readiness em { color:var(--muted); font-size:10px; font-style:normal; line-height:1.45; }
.evidence-logic-panel { display:grid; gap:12px; border:1px solid var(--line); border-radius:13px; padding:16px; background:#f8faff; }
.evidence-logic-panel > span { display:grid; gap:3px; }
.evidence-logic-panel > span > strong { color:var(--navy-deep); font-size:13px; }
.evidence-logic-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.evidence-logic-options > label { display:grid; grid-template-columns:16px minmax(0,1fr); gap:8px; align-items:start; min-height:64px; border:1px solid var(--line); border-radius:10px; padding:11px; background:#fff; cursor:pointer; }
.evidence-logic-options > label.selected { border-color:#7898d5; box-shadow:0 0 0 2px rgba(48,77,156,.1); background:#f4f7ff; }
.evidence-logic-options input { margin-top:2px; accent-color:var(--navy); }
.evidence-logic-options span { display:grid; gap:4px; }
.evidence-logic-options strong { color:var(--navy-deep); font-size:10px; }
.evidence-logic-options small { font-size:7.5px; font-weight:600; letter-spacing:0; line-height:1.35; text-transform:none; }
.evidence-minimum { display:flex; align-items:center; gap:9px; width:max-content; max-width:100%; color:var(--navy-deep); font-size:10px; font-weight:750; }
.evidence-minimum input { width:64px; border:1px solid var(--line); border-radius:8px; padding:8px; background:#fff; color:var(--navy-deep); font-weight:850; text-align:center; }
.evidence-minimum em { color:var(--muted); font-size:9px; font-style:normal; }
.evidence-package-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.evidence-package-toolbar > span { display:grid; gap:3px; }
.evidence-package-toolbar strong { color:var(--navy-deep); font-size:11px; line-height:1.45; }
.evidence-slot-list { display:grid; gap:11px; }
.evidence-slot-card { display:grid; gap:14px; border:1px solid var(--line); border-left:4px solid #d3dbe9; border-radius:13px; padding:15px 16px; background:#fff; box-shadow:0 6px 20px rgba(25,43,83,.035); }
.evidence-slot-card.complete { border-left-color:#2d8b68; }
.evidence-slot-card > header { display:flex; align-items:center; gap:10px; }
.evidence-slot-card > header > span:nth-child(2) { display:grid; gap:1px; }
.evidence-slot-card > header > span:nth-child(2) strong { color:var(--navy-deep); font-size:11px; }
.evidence-slot-card > header .button { margin-left:auto; }
.evidence-slot-number { display:grid; width:34px; height:34px; place-items:center; border-radius:9px; background:#edf2fb; color:var(--navy); font-family:var(--font-mono),monospace; font-size:9px; font-weight:900; }
.evidence-slot-card.complete .evidence-slot-number { background:#e5f4ed; color:#176b4d; }
.danger-text { color:#b42338!important; }
.evidence-slot-fields { display:grid; grid-template-columns:minmax(220px,.7fr) minmax(300px,1.3fr); gap:10px; }
.evidence-slot-fields label { display:grid; gap:6px; }
.evidence-slot-fields input { width:100%; border:1px solid #cbd5e4; border-radius:9px; padding:10px 11px; background:#fff; color:var(--ink); font-size:11px; line-height:1.35; }
.evidence-slot-fields input:focus { border-color:#6487cf; outline:3px solid rgba(48,77,156,.1); }
.evidence-file-list,.evidence-vault-selection { display:grid; gap:7px; }
.evidence-file-list > span,.evidence-vault-selection > span { display:grid; grid-template-columns:34px minmax(0,1fr) 28px; gap:9px; align-items:center; border:1px solid var(--line); border-radius:9px; padding:8px 9px; background:#f8fafc; }
.evidence-file-list > span.pending { border-style:dashed; background:#f5f8ff; }
.evidence-file-list i { display:grid; width:32px; height:32px; place-items:center; border-radius:7px; background:#e6edf9; color:var(--navy); font-size:8px; font-style:normal; font-weight:900; }
.evidence-file-list span > span,.evidence-vault-selection span > span { display:grid; min-width:0; gap:2px; }
.evidence-file-list strong,.evidence-vault-selection strong { overflow:hidden; color:var(--navy-deep); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.evidence-file-list button,.evidence-vault-selection button { display:grid; width:26px; height:26px; place-items:center; border:0; border-radius:7px; background:transparent; color:#8a94a5; font-size:16px; cursor:pointer; }
.evidence-file-list button:hover,.evidence-vault-selection button:hover { background:#feecee; color:#b42338; }
.evidence-file-list .evidence-preview-link { display:inline-flex; width:max-content; height:auto; margin-top:3px; padding:3px 7px; border:1px solid #9fb1d5; border-radius:6px; background:#fff; color:var(--navy); font-size:8px; font-weight:850; }
.evidence-file-list .evidence-preview-link:hover { border-color:var(--navy); background:#eef3fc; color:var(--navy); }
.evidence-file-list .evidence-preview-link.viewed { border-color:#8fc8b2; background:#e7f5ee; color:#176b4d; }
.evidence-manual-override,.review-manual-override { display:grid; gap:12px; border:1px solid #efb4bc; border-left:4px solid var(--red); border-radius:12px; padding:14px 15px; background:#fff5f6; }
.evidence-manual-override > header,.review-manual-override { grid-template-columns:34px minmax(0,1fr); align-items:start; }
.evidence-manual-override > header { display:grid; gap:10px; }
.evidence-manual-override > header > span:first-child,.review-manual-override > span:first-child { display:grid; width:30px; height:30px; place-items:center; border-radius:50%; background:var(--red); color:#fff; font-weight:900; }
.evidence-manual-override > header > span:last-child,.review-manual-override > span:last-child { display:grid; gap:3px; }
.evidence-manual-override small,.review-manual-override small { color:#9f1730; font-size:8px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.evidence-manual-override strong,.review-manual-override strong { color:var(--navy-deep); font-size:11px; }
.evidence-manual-override p,.review-manual-override p { margin:0; color:var(--muted); font-size:9px; line-height:1.5; }
.evidence-manual-override ul { display:grid; gap:5px; margin:0; padding:0; list-style:none; }
.evidence-manual-override li { display:grid; gap:2px; border:1px solid #f0ccd1; border-radius:8px; padding:8px 10px; background:#fff; }
.evidence-manual-override li span,.review-manual-override i { color:#87505a; font-size:8px; font-style:normal; line-height:1.45; }
.evidence-manual-override > label { display:grid; gap:5px; }
.evidence-manual-override textarea { width:100%; min-height:82px; resize:vertical; border:1px solid #d4a2aa; border-radius:9px; padding:10px 11px; background:#fff; color:var(--ink); font:inherit; font-size:10px; line-height:1.45; }
.evidence-manual-override .evidence-override-confirm { display:flex; align-items:flex-start; gap:9px; border:1px solid #d4a2aa; border-radius:9px; padding:10px; background:#fff; }
.evidence-override-confirm input { width:18px; height:18px; margin:1px 0 0; accent-color:var(--navy); }
.evidence-override-confirm span { display:grid; gap:2px; }
.review-manual-override { margin-top:12px; }
.review-manual-override em { color:#87505a; font-size:8px; font-style:normal; }
.evidence-vault-selection > small { color:var(--navy); }
.evidence-vault-selection .trust-mark { display:grid; width:28px; height:28px; place-items:center; border-radius:8px; background:#e3f4ec; color:#176b4d; font-size:10px; }
.evidence-vault-selection.unavailable > small { color:#a4650c; }
.evidence-vault-selection.unavailable > span { border-color:#e5c487; background:#fffaf0; }
.evidence-vault-selection.unavailable > span > i { display:grid; width:28px; height:28px; place-items:center; border-radius:8px; background:#fff0cf; color:#9b620e; font-size:10px; font-style:normal; font-weight:900; }
.evidence-slot-actions { display:flex; align-items:flex-start; gap:8px; flex-wrap:wrap; }
.evidence-vault-picker { position:relative; }
.evidence-vault-picker > summary { list-style:none; cursor:pointer; }
.evidence-vault-picker > summary::-webkit-details-marker { display:none; }
.evidence-vault-popover { display:grid; width:min(620px,calc(100vw - 100px)); gap:9px; margin-top:8px; border:1px solid #bdcbe2; border-radius:11px; padding:11px; background:#fff; box-shadow:0 14px 36px rgba(20,37,75,.14); }
.evidence-vault-popover .search-field { width:100%; }
.evidence-vault-popover > div { display:grid; max-height:230px; gap:5px; overflow-y:auto; }
.evidence-vault-popover > div > label { display:grid; grid-template-columns:17px minmax(0,1fr); gap:9px; align-items:start; border:1px solid transparent; border-radius:8px; padding:9px; cursor:pointer; }
.evidence-vault-popover > div > label:hover,.evidence-vault-popover > div > label.selected { border-color:#c8d5ec; background:#f3f7ff; }
.evidence-vault-popover input[type="checkbox"] { margin-top:3px; accent-color:var(--navy); }
.evidence-vault-popover label > span { display:grid; gap:3px; }
.evidence-vault-popover strong { color:var(--navy-deep); font-size:10px; }
.evidence-vault-popover p { margin:0; padding:14px; color:var(--muted); font-size:9px; line-height:1.55; text-align:center; }
.evidence-route-note { display:flex; align-items:center; gap:8px; margin:0; color:var(--muted); font-size:9px; line-height:1.45; }
.evidence-add-slot { display:grid; grid-template-columns:36px minmax(0,1fr); gap:2px 11px; align-items:center; width:100%; border:1px dashed #aabbd9; border-radius:12px; padding:12px 14px; background:#f8faff; color:var(--navy-deep); text-align:left; cursor:pointer; }
.evidence-add-slot:hover { border-color:#6988c6; background:#f1f5ff; }
.evidence-add-slot:disabled { border-color:#d4dbe6; background:#f5f6f8; color:#7e8896; cursor:not-allowed; opacity:.78; }
.evidence-add-slot > span { grid-row:1 / 3; display:grid; width:34px; height:34px; place-items:center; border-radius:9px; background:#e4ecfa; color:var(--navy); font-size:17px; font-weight:800; }
.evidence-add-slot strong { font-size:10px; }
.evidence-add-slot small { font-weight:500; letter-spacing:0; text-transform:none; }
.requirement-evidence-summary { display:grid; grid-template-columns:46px minmax(0,1fr) auto; gap:11px; align-items:center; border:1px solid #e2c78e; border-radius:11px; padding:12px; background:#fffbf1; }
.requirement-evidence-summary.ready { border-color:#badbcc; background:#f4fbf7; }
.requirement-evidence-score { display:grid; width:44px; height:44px; place-items:center; border-radius:11px; background:#fff; color:#9a6509; font-size:13px; font-weight:900; }
.requirement-evidence-summary.ready .requirement-evidence-score { color:#176b4d; }
.requirement-evidence-summary > span:nth-child(2) { display:grid; min-width:0; gap:2px; }
.requirement-evidence-summary small { color:var(--muted); font-size:7.5px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.requirement-evidence-summary strong { color:var(--navy-deep); font-size:11px; }
.requirement-evidence-summary em { color:var(--muted); font-size:8.5px; font-style:normal; line-height:1.45; }
.requirement-evidence-summary > b { color:var(--muted); font-size:8px; }
.requirement-evidence-missing { grid-column:2 / -1; display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.requirement-evidence-missing > span { border-radius:999px; padding:4px 7px; background:#fff; color:#8a5b0b; font-size:7.5px; font-weight:750; }
.review-evidence-matrix { display:grid; gap:10px; border:1px solid #e2c78e; border-radius:12px; padding:14px; background:#fffbf1; }
.review-evidence-matrix.ready { border-color:#badbcc; background:#f4fbf7; }
.review-evidence-matrix > header { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.review-evidence-matrix > header span { display:grid; gap:3px; }
.review-evidence-matrix > header small { color:var(--muted); font-size:8px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.review-evidence-matrix h3 { margin:0; color:var(--navy-deep); font-size:13px; }
.review-evidence-matrix > header b { border-radius:999px; padding:6px 9px; background:#fff; color:var(--navy); font-size:8px; }
.review-evidence-matrix > div { display:grid; gap:6px; }
.review-evidence-matrix article { display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:9px; align-items:center; border:1px solid rgba(134,151,182,.28); border-radius:9px; padding:9px; background:#fff; }
.review-evidence-matrix article > span:first-child { display:grid; width:28px; height:28px; place-items:center; border-radius:8px; background:#edf1f7; color:var(--muted); font-size:8px; font-weight:900; }
.review-evidence-matrix article.complete > span:first-child { background:#e2f3eb; color:#176b4d; }
.review-evidence-matrix article > span:nth-child(2) { display:grid; gap:2px; }
.review-evidence-matrix article strong { color:var(--navy-deep); font-size:10px; }
.review-evidence-matrix article small { color:var(--muted); font-size:8px; }
.review-evidence-matrix article em { overflow-wrap:anywhere; color:#566575; font-size:7.5px; font-style:normal; line-height:1.4; }
.review-evidence-matrix .slot-identity { width:max-content; max-width:100%; border-radius:999px; padding:3px 6px; background:#eef1f5; color:#596777; font-size:7px; font-style:normal; font-weight:800; }
.review-evidence-matrix .slot-identity.match { background:#e4f2ea; color:#176b4d; }
.review-evidence-matrix .slot-identity.attention,.review-evidence-matrix .slot-identity.unreadable { background:#fff0cf; color:#8b5b10; }
.review-evidence-matrix .slot-identity.mismatch { background:#fee8eb; color:#a22438; }
.review-evidence-matrix article > b { color:#a46a0b; font-size:8px; }
.review-evidence-matrix article.complete > b { color:#176b4d; }

@media (max-width: 820px) {
  .evidence-logic-options { grid-template-columns:1fr 1fr; }
  .evidence-slot-fields { grid-template-columns:1fr; }
  .evidence-package-toolbar { align-items:stretch; flex-direction:column; }
  .evidence-package-toolbar .button { width:100%; }
}
@media (max-width: 620px) {
  .evidence-package-modal { max-height:calc(100vh - 20px); border-radius:8px; }
  .evidence-package-modal > header,.evidence-package-body,.evidence-package-modal > .modal-footer { padding-left:14px; padding-right:14px; }
  .evidence-package-modal > .modal-footer { align-items:stretch; flex-direction:column-reverse; }
  .evidence-package-modal > .modal-footer .button { width:100%; }
  .evidence-logic-options { grid-template-columns:1fr; }
  .evidence-minimum { align-items:flex-start; flex-wrap:wrap; }
  .evidence-slot-card { padding:12px; }
  .evidence-slot-card > header { align-items:flex-start; flex-wrap:wrap; }
  .evidence-slot-card > header .button { width:100%; margin-left:0; }
  .evidence-slot-actions { align-items:stretch; flex-direction:column; }
  .evidence-slot-actions > .button,.evidence-vault-picker,.evidence-vault-picker > summary { width:100%; }
  .evidence-vault-popover { width:100%; }
  .requirement-evidence-summary { grid-template-columns:44px minmax(0,1fr); }
  .requirement-evidence-summary > .button,.requirement-evidence-summary > b { grid-column:1 / -1; width:100%; }
  .requirement-evidence-missing { grid-column:1 / -1; }
  .review-evidence-matrix > header { align-items:flex-start; flex-direction:column; }
}
.portfolio-head { background:#f2f5fa; color:var(--muted); font-size:8px; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }.portfolio-table > button { width:100%; border:0; border-top:1px solid var(--line); background:#fff; color:var(--ink); text-align:left; cursor:pointer; }.portfolio-table > button:hover,.portfolio-table > button.active { background:#f7f9fd; }.portfolio-table > button > span { display:grid; gap:3px; min-width:0; }.portfolio-table > button strong { overflow-wrap:anywhere; font-size:11px; }.portfolio-table > button small { color:var(--muted); font-size:9px; }.portfolio-table > button span:nth-child(2)>b { width:max-content; border-radius:999px; padding:5px 8px; background:#edf3ff; color:var(--navy); font-size:9px; }.portfolio-table > button span:nth-child(2)>b.attention { background:#fff0da; color:#8a5816; }.portfolio-table > button i { display:block; height:6px; border-radius:99px; overflow:hidden; background:#e4e9f2; }.portfolio-table > button i b { display:block; height:100%; background:var(--navy); }.portfolio-table > button > span:last-child { color:var(--navy); font-size:9px; font-weight:900; text-align:right; }
.workbench-summary { display:grid; gap:2px; border-radius:12px; padding:9px 13px; background:#edf3ff; color:var(--navy); text-align:right; }.workbench-summary strong { font-size:11px; }.workbench-summary small { color:var(--muted); font-size:8px; }.role-task-list { display:grid; gap:8px; }.role-task-list > button { display:grid; grid-template-columns:44px minmax(0,1fr) 150px 100px; gap:14px; align-items:center; width:100%; border:1px solid var(--line); border-radius:13px; padding:13px 14px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; }.role-task-list > button:hover { border-color:#aebfda; box-shadow:0 5px 18px rgba(31,58,105,.08); }.role-task-rank { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; background:#edf3ff; color:var(--navy); font-size:10px; font-weight:900; }.role-task-list > button > span:nth-child(2),.task-sla { display:grid; gap:3px; }.role-task-list small { color:var(--muted); font-size:8px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }.role-task-list strong { font-size:11px; }.role-task-list em { color:var(--muted); font-size:9px; font-style:normal; }.task-sla.urgent strong { color:#9a5f00; }.task-sla.overdue strong { color:var(--red); }.role-task-list > button > b { color:var(--navy); font-size:9px; text-align:right; }.sprint-governance-note { display:block; padding:8px 14px 12px; color:#8a5816; font-size:9px; font-weight:800; }
@media(max-width:760px){.portfolio-overview>header{flex-direction:column}.portfolio-signals{grid-template-columns:repeat(2,minmax(0,1fr))}.portfolio-signals button:nth-child(2){border-right:0}.portfolio-tools{align-items:stretch;flex-direction:column}.role-task-list>button{grid-template-columns:40px minmax(0,1fr)}.role-task-list>button>span:nth-child(3),.role-task-list>button>b{grid-column:2;text-align:left}}
.tender-trial-toggle{display:flex;align-items:flex-start;gap:11px;border:1px solid var(--line);border-radius:12px;padding:12px 13px;background:#fff;cursor:pointer}.tender-trial-toggle.selected{border-color:#d3a449;background:#fff9ea}.tender-trial-toggle input{margin-top:2px}.tender-trial-toggle>span{display:grid;gap:3px}.tender-trial-toggle strong{color:var(--navy-deep);font-size:11px}.tender-trial-toggle small{color:var(--muted);font-size:9px;line-height:1.5}

/* Addendum and clarification change control */
.addendum-page{display:grid;gap:20px}.addendum-header{align-items:stretch}.addendum-readiness{display:grid;align-content:center;min-width:220px;border:1px solid var(--line);border-left:4px solid var(--navy);border-radius:14px;padding:13px 16px;background:#f7f9fd}.addendum-readiness small,.change-metrics small,.change-register header small{color:var(--navy);font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.addendum-readiness strong{margin:4px 0;color:var(--navy-deep);font-size:17px}.addendum-readiness em,.change-metrics em{color:var(--muted);font-size:10px;font-style:normal}.change-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:15px;overflow:hidden;background:#fff}.change-metrics>span{display:grid;gap:4px;padding:15px 17px;border-right:1px solid var(--line)}.change-metrics>span:last-child{border-right:0}.change-metrics strong{color:var(--navy-deep);font-size:24px}.change-entry-panel,.change-register{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.change-tabs{display:flex;border-bottom:1px solid var(--line);background:#f6f8fc}.change-tabs button{border:0;border-right:1px solid var(--line);padding:13px 18px;background:transparent;color:var(--muted);font-weight:800}.change-tabs button.active{background:#fff;color:var(--navy);box-shadow:inset 0 -3px var(--navy)}.change-form{display:grid;gap:17px;padding:18px}.change-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.change-form-grid label{display:grid;align-content:start;gap:6px}.change-form-grid label.wide{grid-column:span 2}.change-form-grid label>span,.clarification-editor label>span{color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.change-form-grid input,.change-form-grid textarea,.clarification-editor input,.clarification-editor textarea,.clarification-editor select,.impact-list select{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 11px;background:#fff;color:var(--ink)}.change-form-grid textarea{min-height:82px;resize:vertical}.change-form-grid label>small{color:var(--muted);font-size:9px}.impact-picker{display:grid;gap:10px;margin:0;border:1px solid var(--line);border-radius:13px;padding:13px}.impact-picker legend{padding:0 6px;color:var(--navy-deep);font-weight:800}.impact-picker>p{margin:0;color:var(--muted);font-size:11px}.impact-picker>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:280px;overflow:auto}.impact-picker label{display:flex;align-items:flex-start;gap:9px;border:1px solid var(--line);border-radius:10px;padding:9px;background:#fff}.impact-picker label:has(input:checked){border-color:#91a9dd;background:#f4f7fd}.impact-picker label>span{display:grid;gap:2px}.impact-picker label strong{font-size:11px}.impact-picker label small{color:var(--muted);font-size:9px}.change-form>footer{display:flex;align-items:center;justify-content:space-between;gap:14px}.change-form>footer>span{color:var(--muted);font-size:11px}.change-register>header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:15px 17px;background:#f7f9fd}.change-register>header span{display:grid;gap:3px}.change-register h2{margin:0;color:var(--navy-deep);font-size:17px}.change-register>header>b{border-radius:999px;padding:6px 10px;background:#e9eef8;color:var(--navy);font-size:10px}.addendum-list,.clarification-list{display:grid;gap:10px;padding:14px}.addendum-list>article,.clarification-card{border:1px solid var(--line);border-radius:13px;padding:14px}.addendum-list>article.open{border-left:4px solid #bd7c20}.addendum-list>article.resolved{border-left:4px solid #23815d}.addendum-list>article>header,.clarification-card>header{display:flex;align-items:flex-start;gap:11px}.addendum-list>article>header>span:nth-child(2),.clarification-card>header>span{display:grid;flex:1;gap:3px}.addendum-list>article header small,.clarification-card header small{color:var(--muted);font-size:9px}.addendum-list>article header>b,.clarification-card header>b{border-radius:999px;padding:5px 8px;background:#f0f3f8;color:var(--muted);font-size:9px}.change-code{display:grid;min-width:54px;height:32px;place-items:center;border-radius:9px;background:var(--navy);color:#fff;font-family:var(--font-mono),monospace;font-size:10px;font-weight:900}.addendum-list>article>p{margin:11px 0;color:var(--muted);font-size:11px;line-height:1.55}.attachment-note{display:block;margin-bottom:10px;color:var(--navy);font-size:9px;font-style:normal}.impact-list{display:grid;border-top:1px solid var(--line)}.impact-list>div{display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:10px 0}.impact-list>div:last-child{border-bottom:0}.impact-list>div>span{display:grid;gap:3px}.impact-list strong{font-size:11px}.impact-list small,.impact-list em{color:var(--muted);font-size:9px;font-style:normal}.impact-list>div.resolved strong{text-decoration:line-through;color:var(--muted)}.clarification-editor{display:grid;grid-template-columns:180px minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:12px;border-top:1px solid var(--line);padding-top:12px}.clarification-editor label{display:grid;gap:5px}.clarification-editor textarea{min-height:58px;resize:vertical}.change-empty{padding:26px;text-align:center}.change-empty strong{color:var(--navy-deep)}.change-empty p{margin:5px 0 0;color:var(--muted);font-size:11px}
@media(max-width:980px){.change-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.clarification-editor{grid-template-columns:1fr 1fr}.clarification-editor .wide{grid-column:span 1}}
@media(max-width:700px){.change-metrics,.change-form-grid,.impact-picker>div,.clarification-editor{grid-template-columns:1fr}.change-metrics>span{border-right:0;border-bottom:1px solid var(--line)}.change-metrics>span:last-child{border-bottom:0}.change-form-grid label.wide{grid-column:auto}.change-form>footer,.addendum-list>article>header,.clarification-card>header{align-items:stretch;flex-direction:column}.change-form>footer .button{width:100%}.impact-list>div{grid-template-columns:1fr}.addendum-readiness{min-width:0}.change-tabs button{flex:1;padding-inline:10px}}

/* Structured compliance matrix */
.proposal-estimate-control{margin:20px 0;padding:22px;border:1px solid #d7e0ee;border-radius:16px;background:#fff}.proposal-estimate-control header{margin-bottom:14px}.proposal-estimate-control header small{color:#2c4ca0;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.proposal-estimate-control header h2{margin:5px 0}.proposal-estimate-control header p,.proposal-estimate-control article p{margin:4px 0;color:#647084}.proposal-estimate-control article{display:grid;grid-template-columns:48px 1fr auto;gap:16px;align-items:start;padding:16px 0;border-top:1px solid #e3e8f0}.proposal-estimate-control article>b{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#edf3ff;color:#29479c}.proposal-estimate-control article>strong{font-size:20px;color:#29479c}.proposal-estimate-control details{margin-top:8px}.proposal-estimate-control summary{cursor:pointer;font-weight:700;color:#29479c}.proposal-estimate-control ul{padding:0;list-style:none}.proposal-estimate-control li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px dashed #dce2eb}.proposal-estimate-control li span{display:grid;gap:3px}.proposal-estimate-control li small{color:#647084}.proposal-estimate-control li button{border:0;background:none;color:#29479c;font-weight:700;cursor:pointer}@media(max-width:720px){.proposal-estimate-control article{grid-template-columns:42px 1fr}.proposal-estimate-control article>strong{grid-column:2}.proposal-estimate-control li{align-items:start}}
.compliance-matrix-panel{display:grid;margin:18px 0;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.compliance-matrix-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#f7f9fd,#fff)}.compliance-matrix-panel>header>span{display:grid;gap:3px}.compliance-matrix-panel header small{color:var(--navy);font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.compliance-matrix-panel h2{margin:0;color:var(--navy-deep);font-size:17px}.compliance-matrix-panel header p{margin:0;color:var(--muted);font-size:10px}.compliance-matrix-panel>header>div{display:grid;min-width:110px;text-align:right}.compliance-matrix-panel>header>div strong{color:var(--navy);font-size:24px}.compliance-matrix-panel>header>div small{color:var(--muted)}.compliance-table-wrap{max-height:440px;overflow:auto}.compliance-table{width:100%;min-width:1100px;border-collapse:collapse}.compliance-table th{position:sticky;top:0;z-index:1;padding:10px 12px;background:#f2f5fa;color:var(--muted);font-size:8px;letter-spacing:.07em;text-align:left;text-transform:uppercase}.compliance-table td{padding:11px 12px;border-top:1px solid var(--line);vertical-align:top;font-size:10px}.compliance-table td>strong,.compliance-table td>small{display:block}.compliance-table td>small{margin-top:3px;color:var(--muted);font-size:8px}.compliance-table tr.incomplete{background:#fffaf3}.matrix-state{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:8px;font-weight:900;white-space:nowrap}.matrix-state.ready{background:#e8f6ef;color:#176548}.matrix-state.incomplete{background:#fff0da;color:#8a5816}.compliance-editor-modal{width:min(1040px,calc(100vw - 32px))}.compliance-editor-body{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.5fr);gap:20px}.compliance-editor-body>section{display:grid;align-content:start;gap:11px}.compliance-editor-body h3{margin:0;color:var(--navy-deep);font-size:14px}.compliance-editor-body label{display:grid;gap:5px}.compliance-editor-body label>span,.compliance-fields label>span{color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.compliance-editor-body input,.compliance-editor-body textarea,.compliance-editor-body select{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;color:var(--ink)}.compliance-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.compliance-fields .wide{grid-column:1/-1}.compliance-editor-body .checkbox-field{display:flex}.compliance-editor-body .checkbox-field input{width:auto}
@media(max-width:760px){.compliance-matrix-panel>header{align-items:stretch;flex-direction:column}.compliance-matrix-panel>header>div{text-align:left}.compliance-editor-body,.compliance-fields{grid-template-columns:1fr}.compliance-fields .wide{grid-column:auto}}
.compliance-editor-body .wide-section{grid-column:1/-1;border-top:1px solid var(--line);padding-top:16px}.control-disclosure{display:block;margin:18px 0;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.control-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;cursor:pointer;list-style:none;background:linear-gradient(135deg,#f7f9fd,#fff)}.control-disclosure>summary::-webkit-details-marker{display:none}.control-disclosure>summary>span{display:grid;gap:3px}.control-disclosure>summary small{color:var(--navy);font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.control-disclosure>summary strong{color:var(--navy-deep);font-size:17px}.control-disclosure>summary em{color:var(--muted);font-size:10px;font-style:normal}.control-disclosure>summary>b{border-radius:999px;padding:7px 11px;background:#edf3ff;color:var(--navy);font-size:10px;white-space:nowrap}.control-disclosure[open]>summary{border-bottom:1px solid var(--line)}.proposal-estimate-body{padding:0 18px}@media(max-width:760px){.control-disclosure>summary{align-items:flex-start;flex-direction:column}.compliance-editor-body .wide-section{grid-column:auto}}

/* Role-aware practical help center */
.help-center { display: grid; gap: 18px; }
.help-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); padding: 6px 0 22px; }
.help-hero-actions{display:flex!important;align-items:center;max-width:none!important;gap:10px}.help-hero-actions>b{display:flex;align-items:center;gap:11px;border:1px solid #c8d5ed;border-radius:12px;background:#f5f8fd;padding:10px 13px}.help-hero-actions>b>i{display:grid;width:38px;height:38px;place-items:center;border-radius:9px;background:var(--navy);color:#fff;font-family:var(--font-mono),monospace;font-size:11px;font-style:normal}.help-hero-actions>b>span{display:grid;gap:2px}.help-hero-actions>b small{color:var(--muted);font-size:8px}.help-hero-actions>b strong{color:var(--navy-deep);font-size:11px}
.help-hero > span { display: grid; gap: 5px; max-width: 780px; }
.help-hero small, .help-main-panel header small, .help-side-panel header small, .help-purpose small { color: var(--navy); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.help-hero h1 { margin: 0; color: var(--navy-deep); font-size: clamp(28px, 4vw, 44px); letter-spacing: -.035em; line-height: 1.05; }
.help-hero p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.help-hero > b { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; border: 1px solid #c8d5ed; border-radius: 12px; background: #f5f8fd; padding: 10px 13px; }
.help-hero > b > i { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; background: var(--navy); color: #fff; font-family: var(--font-mono), monospace; font-size: 11px; font-style: normal; }
.help-hero > b > span { display: grid; gap: 2px; }
.help-hero > b small { color: var(--muted); font-size: 8px; }
.help-hero > b strong { color: var(--navy-deep); font-size: 11px; }
.help-role-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 7px; scrollbar-width: thin; }
.help-role-tabs button { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 12px 8px 8px; color: var(--muted); cursor: pointer; }
.help-role-tabs button i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; background: #edf0f5; font-family: var(--font-mono), monospace; font-size: 8px; font-style: normal; font-weight: 850; }
.help-role-tabs button span { font-size: 10px; font-weight: 800; }
.help-role-tabs button.active { border-color: var(--navy); background: var(--blue-bg); color: var(--navy); box-shadow: 0 0 0 2px rgba(41, 66, 148, .07); }
.help-role-tabs button.active i { background: var(--navy); color: #fff; }
.help-purpose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px; background: #fff; }
.help-purpose > span { display: grid; gap: 5px; padding: 14px 17px; }
.help-purpose > span + span { border-left: 1px solid var(--line); }
.help-purpose strong { color: var(--ink); font-size: 11px; line-height: 1.55; }
.help-release-panel { border: 1px solid #b9c9e6; border-radius: 14px; background: linear-gradient(145deg, #f0f4fb, #fff 48%); overflow: hidden; box-shadow: 0 12px 30px rgba(31, 48, 91, .06); }
.help-release-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid #ced8ea; padding: 18px 20px; }
.help-release-panel > header > span { display: grid; gap: 4px; }
.help-release-panel > header small, .help-evidence-guide summary small { color: var(--navy); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.help-release-panel > header h2 { margin: 0; color: var(--navy-deep); font-size: 21px; letter-spacing: -.02em; }
.help-release-panel > header p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.help-release-panel > header > b { flex: 0 0 auto; border-radius: 999px; background: var(--navy); padding: 7px 11px; color: #fff; font-family: var(--font-mono), monospace; font-size: 9px; letter-spacing: .08em; }
.help-release-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.help-release-grid article { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 10px; min-width: 0; padding: 16px; }
.help-release-grid article + article { border-left: 1px solid #d9e1ee; }
.help-release-grid article > i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: #e1e9f8; color: var(--navy); font-family: var(--font-mono), monospace; font-size: 8px; font-style: normal; font-weight: 900; }
.help-release-grid article > span { display: grid; gap: 4px; }
.help-release-grid strong { color: var(--ink); font-size: 10.5px; line-height: 1.35; }
.help-release-grid p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.help-evidence-guide { border-top: 1px solid #ced8ea; background: #fff; }
.help-evidence-guide > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 20px; cursor: pointer; list-style: none; }
.help-evidence-guide > summary::-webkit-details-marker { display: none; }
.help-evidence-guide > summary > span { display: grid; gap: 3px; }
.help-evidence-guide > summary strong { color: var(--navy-deep); font-size: 13px; }
.help-evidence-guide > summary > i { width: 9px; height: 9px; transform: rotate(45deg); border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transition: transform .16s ease; }
.help-evidence-guide[open] > summary > i { transform: rotate(225deg); }
.help-evidence-guide-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: 16px; border-top: 1px solid var(--line); padding: 18px 20px 20px; }
.help-evidence-guide-body > ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.help-evidence-guide-body > ol li { display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: start; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.help-evidence-guide-body > ol li > b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-mono), monospace; font-size: 8px; }
.help-evidence-guide-body > ol li > span { display: grid; gap: 3px; }
.help-evidence-guide-body > ol strong { color: var(--ink); font-size: 10.5px; }
.help-evidence-guide-body > ol p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.help-evidence-guide-body > aside { display: grid; align-content: start; gap: 10px; border-radius: 10px; background: #f3f6fb; padding: 15px; }
.help-evidence-guide-body > aside > strong { color: var(--navy-deep); font-size: 11px; }
.help-evidence-guide-body dl { display: grid; gap: 0; margin: 0; }
.help-evidence-guide-body dl > div { display: grid; grid-template-columns: minmax(105px, .75fr) minmax(0, 1fr); gap: 8px; border-top: 1px solid #d8e0ed; padding: 8px 0; }
.help-evidence-guide-body dt { color: var(--ink); font-size: 9px; font-weight: 850; }
.help-evidence-guide-body dd { margin: 0; color: var(--muted); font-size: 9px; }
.help-evidence-guide-body aside p { margin: 0; border-left: 3px solid var(--navy); padding: 8px 10px; background: #fff; color: var(--muted); font-size: 9px; line-height: 1.55; }
.help-evidence-guide-body aside .button { justify-self: start; }
.help-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr); align-items: start; gap: 16px; }
.help-main-panel, .help-side-panel > section { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.help-main-panel > header, .help-side-panel section > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: #f7f9fc; padding: 14px 16px; }
.help-main-panel header > span { display: grid; gap: 3px; }
.help-main-panel h2, .help-side-panel h2 { margin: 0; color: var(--navy-deep); font-size: 15px; }
.help-main-panel header > b { border-radius: 999px; background: #e7edf9; padding: 6px 9px; color: var(--navy); font-size: 9px; }
.help-steps { margin: 0; padding: 0; list-style: none; }
.help-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 13px 15px; }
.help-steps li:last-child { border-bottom: 0; }
.help-steps li > i { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #c6d2e6; border-radius: 50%; color: var(--navy); font-family: var(--font-mono), monospace; font-size: 8px; font-style: normal; font-weight: 850; }
.help-steps li > span { display: grid; gap: 3px; }
.help-steps strong { color: var(--ink); font-size: 11px; }
.help-steps p { margin: 0; color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.help-side-panel { display: grid; gap: 16px; }
.help-checks { display: grid; gap: 0; margin: 0; padding: 8px 14px 12px; list-style: none; }
.help-checks li { display: grid; grid-template-columns: 23px minmax(0, 1fr); align-items: start; gap: 8px; border-bottom: 1px solid var(--line-soft); padding: 9px 0; color: var(--ink); font-size: 9.5px; line-height: 1.45; }
.help-checks li:last-child { border-bottom: 0; }
.help-checks i { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--green-bg); color: var(--green); font-size: 10px; font-style: normal; font-weight: 900; }
.help-faq { display: grid; padding: 6px 14px 12px; }
.help-faq details { border-bottom: 1px solid var(--line-soft); }
.help-faq details:last-child { border-bottom: 0; }
.help-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--ink); font-size: 9.5px; font-weight: 800; cursor: pointer; list-style: none; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary i { width: 7px; height: 7px; transform: rotate(45deg); border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transition: transform .16s ease; }
.help-faq details[open] summary i { transform: rotate(225deg); }
.help-faq p { margin: -2px 0 12px; border-left: 2px solid #9fb1d6; padding-left: 9px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.help-footer-note { display: flex; align-items: center; gap: 11px; border-radius: 8px; background: #202838; padding: 12px 15px; color: #fff; }
.help-footer-note strong { flex: 0 0 auto; color: #b9c9ed; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.help-footer-note span { font-size: 9.5px; line-height: 1.5; }

@media (max-width: 900px) {
  .help-release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-release-grid article:nth-child(3) { border-top: 1px solid #d9e1ee; border-left: 0; }
  .help-release-grid article:nth-child(4) { border-top: 1px solid #d9e1ee; }
  .help-evidence-guide-body { grid-template-columns: 1fr; }
  .help-layout { grid-template-columns: 1fr; }
  .help-side-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .help-hero { align-items: stretch; flex-direction: column; }
  .help-hero > b { align-self: flex-start; }
  .help-release-panel > header { align-items: flex-start; flex-direction: column; }
  .help-release-grid { grid-template-columns: 1fr; }
  .help-release-grid article + article, .help-release-grid article:nth-child(3), .help-release-grid article:nth-child(4) { border-top: 1px solid #d9e1ee; border-left: 0; }
  .help-evidence-guide > summary, .help-evidence-guide-body { padding-right: 15px; padding-left: 15px; }
  .help-purpose, .help-side-panel { grid-template-columns: 1fr; }
  .help-purpose > span + span { border-top: 1px solid var(--line); border-left: 0; }
  .help-steps li { grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
  .help-steps li .button { grid-column: 2; justify-self: start; }
  .help-footer-note { align-items: flex-start; flex-direction: column; }
}

.feedback-studio { display: grid; gap: 16px; margin-top: 8px; border: 1px solid #c7d5eb; border-radius: 14px; background: linear-gradient(145deg, #f4f7fc, #fff 42%); padding: 20px; }
.feedback-studio > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.feedback-studio > header > span { display: grid; gap: 4px; max-width: 760px; }
.feedback-studio > header small, .feedback-prompts > small, .feedback-history > header small { color: var(--navy); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.feedback-studio > header h2 { margin: 0; color: var(--navy-deep); font-size: 22px; letter-spacing: -.02em; }
.feedback-studio > header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.feedback-studio > header > b { flex: 0 0 auto; border-radius: 999px; background: var(--green-bg); padding: 7px 10px; color: var(--green); font-size: 9px; }
.feedback-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .65fr); align-items: start; gap: 14px; }
.feedback-form { display: grid; gap: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 17px; }
.feedback-form fieldset { margin: 0; border: 0; padding: 0; }
.feedback-form legend { margin-bottom: 9px; color: var(--ink); font-size: 10px; font-weight: 850; }
.feedback-kind-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.feedback-kind-grid label { position: relative; display: grid; min-height: 68px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; padding: 9px; cursor: pointer; }
.feedback-kind-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.feedback-kind-grid span { display: grid; align-content: start; gap: 3px; }
.feedback-kind-grid strong { color: var(--ink); font-size: 9px; line-height: 1.35; }
.feedback-kind-grid small { color: var(--muted); font-size: 7.5px; line-height: 1.35; }
.feedback-kind-grid label.selected { border-color: var(--navy); background: var(--blue-bg); box-shadow: inset 0 0 0 1px rgba(41, 66, 148, .08); }
.feedback-kind-grid label.selected strong { color: var(--navy); }
.feedback-message textarea { min-height: 150px; resize: vertical; }
.feedback-message > small { color: var(--muted); font-size: 8.5px; line-height: 1.5; }
.feedback-meta-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feedback-meta-fields em { color: var(--muted); font-size: 8px; font-style: normal; font-weight: 500; }
.feedback-form .feedback-attachments { display: grid; gap: 9px; }
.feedback-attachments legend { display: block; width: 100%; }
.feedback-attachments legend em { color: var(--muted); font-size: 8px; font-style: normal; font-weight: 500; }
.feedback-dropzone { position: relative; border: 1px dashed #9fb1d2; border-radius: 10px; background: #f8faff; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.feedback-dropzone.dragging { border-color: var(--navy); background: var(--blue-bg); box-shadow: inset 0 0 0 1px rgba(41, 66, 148, .12); }
.feedback-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.feedback-dropzone label { display: flex; min-height: 86px; align-items: center; justify-content: center; gap: 11px; padding: 14px; cursor: pointer; text-align: left; }
.feedback-dropzone label > i { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--navy); color: #fff; font-size: 20px; font-style: normal; }
.feedback-dropzone label > span { display: grid; gap: 3px; }.feedback-dropzone label strong { color: var(--navy-deep); font-size: 10px; }.feedback-dropzone label small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.feedback-selected-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.feedback-selected-files article { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) 22px; align-items: center; gap: 8px; min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 7px; }
.feedback-selected-files img, .feedback-selected-files article > i { width: 48px; height: 42px; border-radius: 6px; object-fit: cover; }.feedback-selected-files article > i { display: grid; place-items: center; background: #eef2fa; color: var(--navy); font-size: 8px; font-style: normal; font-weight: 850; }
.feedback-selected-files span { display: grid; min-width: 0; gap: 2px; }.feedback-selected-files strong { overflow: hidden; color: var(--ink); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.feedback-selected-files small { color: var(--muted); font-size: 7px; }
.feedback-selected-files button { display: grid; width: 22px; height: 22px; place-items: center; border: 0; border-radius: 50%; background: #f3f5f8; color: #7a2630; cursor: pointer; font-size: 15px; line-height: 1; }.feedback-selected-files button:hover { background: #ffecee; }
.feedback-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 13px; }
.feedback-submit-row > span { display: grid; gap: 2px; }
.feedback-submit-row strong { color: var(--ink); font-size: 9.5px; }
.feedback-submit-row small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.feedback-thanks { display: flex; align-items: center; gap: 9px; margin: 0; border-left: 3px solid var(--green); border-radius: 0 7px 7px 0; background: var(--green-bg); padding: 10px 12px; }
.feedback-thanks > i { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-style: normal; }
.feedback-thanks > span { display: grid; gap: 2px; }.feedback-thanks strong { color: var(--green); font-size: 9.5px; }.feedback-thanks small { color: #476b5d; font-size: 8px; }
.feedback-error { margin: 0; padding: 12px 14px; border: 1px solid #efb3b3; border-radius: 10px; color: #9f1d2b; background: #fff5f5; font-weight: 700; }
.feedback-prompts { display: grid; gap: 9px; border: 1px solid #d5deeb; border-radius: 11px; background: #f7f9fc; padding: 15px; }
.feedback-prompts blockquote { margin: 0; border-left: 2px solid #94a8d0; padding: 7px 9px; color: var(--ink); font-size: 9.5px; font-style: italic; line-height: 1.5; }
.feedback-prompts p { margin: 3px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.55; }
.feedback-history { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 15px; }
.feedback-history > header h3 { margin: 2px 0 0; color: var(--ink); font-size: 14px; }
.feedback-history > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.feedback-history article { display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 11px; }
.feedback-history article header, .feedback-history article footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feedback-history article header b { color: var(--navy); font-size: 8px; text-transform: uppercase; }.feedback-history article header small { color: var(--muted); font-size: 7.5px; }
.feedback-history article p { margin: 0; color: var(--ink); font-size: 9.5px; line-height: 1.5; white-space: pre-wrap; }
.feedback-history-attachments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.feedback-history-attachments a { display: grid; min-width: 0; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 7px; border: 1px solid var(--line-soft); border-radius: 8px; background: #f8faff; padding: 6px; color: inherit; text-decoration: none; }
.feedback-history-attachments a:hover { border-color: #9fb1d2; background: var(--blue-bg); }.feedback-history-attachments img, .feedback-history-attachments a > i { width: 44px; height: 38px; border-radius: 5px; object-fit: cover; }.feedback-history-attachments a > i { display: grid; place-items: center; background: #e8edf8; color: var(--navy); font-size: 7px; font-style: normal; font-weight: 850; }
.feedback-history-attachments span { display: grid; min-width: 0; gap: 2px; }.feedback-history-attachments strong { overflow: hidden; color: var(--ink); font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }.feedback-history-attachments small { color: var(--muted); font-size: 6.5px; }
.feedback-history article footer { border-top: 1px solid var(--line-soft); padding-top: 7px; color: var(--muted); font-size: 7.5px; }
.feedback-history article footer em { font-style: normal; text-align: right; }
.feedback-history > header { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.feedback-history > header > label { display: grid; gap: 4px; min-width: 190px; color: var(--muted); font-size: 8px; font-weight: 750; }
.admin-triage > div { grid-template-columns: 1fr; }
.admin-triage article { gap: 10px; }
.admin-triage article.critical { border-left: 4px solid var(--red); }
.triage-editor { display: grid; gap: 10px; border-top: 1px solid var(--line); background: #f8fafc; padding: 12px; }
.triage-fields { display: grid; grid-template-columns: 1.25fr 1fr .8fr 1fr; gap: 8px; }
.triage-editor label { display: grid; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 800; }
.triage-editor select, .triage-editor input, .triage-editor textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 8px; color: var(--ink); font: inherit; }
.triage-editor textarea { min-height: 72px; resize: vertical; font-size: 9px; font-weight: 500; line-height: 1.5; }
.triage-save { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.triage-save small { color: var(--muted); font-size: 8px; }
.feedback-user-status { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 9px; }
.feedback-user-status > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feedback-user-status small { color: var(--muted); font-size: 8px; }.feedback-user-status strong { color: var(--navy); font-size: 8.5px; }
.feedback-user-status p { display: grid; gap: 4px; margin: 0; border-left: 3px solid var(--blue); background: var(--blue-bg); padding: 9px 10px; }
.feedback-user-status p b { color: var(--navy); font-size: 8px; text-transform: uppercase; }

@media (max-width: 980px) { .feedback-kind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.feedback-layout { grid-template-columns: 1fr; }.feedback-prompts { grid-template-columns: repeat(3, minmax(0, 1fr)); }.feedback-prompts > small, .feedback-prompts p { grid-column: 1 / -1; }.triage-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }.feedback-selected-files, .feedback-history-attachments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .feedback-studio { padding: 15px; }.feedback-studio > header, .feedback-submit-row, .feedback-history > header, .triage-save { align-items: stretch; flex-direction: column; }.feedback-studio > header > b { align-self: flex-start; }.feedback-kind-grid, .feedback-meta-fields, .feedback-history > div, .feedback-prompts, .triage-fields, .feedback-selected-files, .feedback-history-attachments { grid-template-columns: 1fr; }.feedback-prompts > small, .feedback-prompts p { grid-column: auto; }.feedback-submit-row .button, .triage-save .button { width: 100%; } }

/* PCC cross-page resilience: keep dense enterprise controls readable at every width. */
.page-section,
.page-header,
.page-header > div,
.panel,
.requirements-board,
.requirement-group,
.package-layout > *,
.review-workbench > *,
.review-detail-panel,
.vault-review-cell,
.vault-review-status {
  min-width: 0;
}

[data-view-heading]:focus { outline: none; }

.page-actions,
.row-actions,
.gate-actions,
.review-actions,
.review-decision-bar > div,
.modal-footer {
  flex-wrap: wrap;
}

.button {
  max-width: 100%;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.button.small {
  min-height: 38px;
  padding-right: 12px;
  padding-left: 12px;
}

.approval-meta,
.vault-ai-hint,
.block-note,
.table-readonly,
.review-decision-bar strong,
.review-document-head p {
  overflow-wrap: anywhere;
}

.vault-table-wrap {
  overflow: hidden;
}

.vault-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 7px 7px;
  background: #fff;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 9px;
}

.vault-pagination > div { display: flex; align-items: center; gap: 9px; }
.vault-pagination strong { color: var(--ink); font-size: 9px; }

.vault-data-table th:nth-child(1) { width: 30%; }
.vault-data-table th:nth-child(2) { width: 18%; }
.vault-data-table th:nth-child(3) { width: 16%; }
.vault-data-table th:nth-child(4),
.vault-data-table th:last-child { width: 36%; }

.vault-review-cell {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(190px, auto);
  align-items: center;
  gap: 14px;
}

.vault-review-status {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.vault-review-cell .vault-ai-hint { max-width: none; }
.vault-review-cell .table-actions {
  display: flex;
  max-width: 270px;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.vault-review-cell .table-actions .button { flex: 0 1 auto; }
.vault-review-cell .table-readonly { align-self: center; }

@media (max-width: 1400px) {
  .vault-data-table th:nth-child(1) { width: 28%; }
  .vault-data-table th:nth-child(2) { width: 19%; }
  .vault-data-table th:nth-child(3) { width: 17%; }
  .vault-data-table th:nth-child(4),
  .vault-data-table th:last-child { width: 36%; }
  .vault-review-cell { grid-template-columns: 1fr; gap: 10px; }
  .vault-review-cell .table-actions { max-width: none; justify-content: flex-start; }
}

@media (max-width: 1120px) {
  .vault-table-wrap { overflow: visible; }
  .data-table:not(.access-table),
  .data-table:not(.access-table) tbody,
  .data-table:not(.access-table) tr,
  .data-table:not(.access-table) td {
    display: block;
    width: 100%;
  }

  .data-table:not(.access-table) thead { display: none; }
  .data-table:not(.access-table) tbody { padding: 0 16px; }
  .data-table:not(.access-table) tr { border-bottom: 1px solid var(--line); padding: 17px 0; }
  .data-table:not(.access-table) tr:last-child { border-bottom: 0; }
  .data-table:not(.access-table) td {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    border: 0;
    padding: 7px 0;
  }

  .data-table:not(.access-table) td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .data-table:not(.access-table) td:first-child {
    display: block;
    padding-bottom: 12px;
  }

  .data-table:not(.access-table) td:first-child::before { display: none; }
  .vault-review-cell { grid-template-columns: 1fr; }
  .vault-review-cell .table-actions { justify-content: flex-start; }

  .task-list-head { display: none; }
  .task-row {
    position: relative;
    min-width: 0;
    grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
    align-items: start;
    gap: 15px 24px;
    padding: 17px 48px 17px 17px;
  }

  .task-row > span { min-width: 0; }
  .task-row > span::before {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .task-row .task-title { grid-column: 1 / -1; }
  .task-row .task-title::before { display: none; }
  .task-row > .arrow { position: absolute; top: 50%; right: 20px; transform: translateY(-50%) rotate(-45deg); }
}

@media (max-width: 620px) {
  .vault-pagination { align-items: stretch; flex-direction: column; }
  .vault-pagination > div { justify-content: space-between; }
}

@media (max-width: 620px) {
  .access-table-wrap { overflow: hidden; }
  .access-table { min-width: 0; }
  .data-table:not(.access-table) tbody { padding: 0 13px; }
  .data-table:not(.access-table) td { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  .vault-review-cell .table-actions { display: grid; width: 100%; max-width: none; grid-template-columns: 1fr; }
  .vault-review-cell .table-actions .button { width: 100%; }
  .task-row { grid-template-columns: 1fr; gap: 13px; }
  .task-row .task-title { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* PCC secure access and executive brand lockup */
.brand-lockup {
  min-height: 188px;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  padding: 18px 18px 13px;
}

.brand-logo {
  width: 118px;
  height: 118px;
  max-width: 118px;
  max-height: 118px;
  flex: 0 0 auto;
}

.brand-copy {
  align-items: center;
  text-align: center;
}

.brand-copy strong {
  font-size: 21px;
  letter-spacing: 0.12em;
}

.brand-copy small {
  max-width: none;
  margin-top: 5px;
  color: #68707c;
  font-size: 9.5px;
  letter-spacing: 0.025em;
}

.brand-strokes {
  align-self: center;
  margin: 0 auto 13px;
}

.primary-nav {
  flex: 1 1 auto;
  padding-bottom: 12px;
}

.sidebar-footer {
  padding: 14px 15px 15px;
}

.user-card > span:last-child {
  min-width: 0;
}

.user-card small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sidebar-account-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.sidebar-footer .sidebar-account-actions .text-button {
  margin: 0;
  padding: 3px 0;
  text-align: left;
}

.danger-text { color: var(--red) !important; }

.access-form {
  grid-template-columns: minmax(120px, 1fr) minmax(190px, 1.25fr) minmax(120px, 0.8fr) minmax(170px, 1fr) auto;
}

.access-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.invite-delivery {
  margin-top: 4px;
  font-size: 8.5px !important;
  font-weight: 700;
}

.invite-delivery.sent { color: var(--green); }
.invite-delivery.pending { color: var(--amber); }

.mobile-account-actions { display: none; }

.secure-loading {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 9px;
  background:
    radial-gradient(circle at 50% 42%, rgba(108, 147, 204, 0.14), transparent 30%),
    var(--canvas);
  color: var(--ink);
  text-align: center;
}

.secure-loading strong { margin-top: 10px; font-size: 15px; }
.secure-loading small { color: var(--muted); font-size: 10px; }
.secure-loading.error { gap: 9px; padding: 28px; text-align: center; }
.secure-loading.error small { max-width: 430px; line-height: 1.55; }
.secure-loading.error .button { margin-top: 8px; }
.secure-loading.error a { color: var(--navy); font-size: 9px; font-weight: 700; }
.load-error-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #fff1f2; color: var(--red); font-size: 17px; font-weight: 800; }

.empty-workspace {
  display: flex;
  min-height: min(690px, calc(100vh - 150px));
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(41, 66, 148, 0.035), transparent 55%),
    #fff;
  padding: 58px 8vw;
  text-align: center;
  box-shadow: var(--shadow);
}

.empty-workspace-mark {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(41, 66, 148, 0.15);
  border-radius: 20px;
  background: var(--surface-blue);
}

.empty-workspace-mark i {
  position: absolute;
  width: 29px;
  height: 5px;
  border-radius: 4px;
  background: var(--navy);
}
.empty-workspace-mark i:first-child { transform: translateY(-10px); }
.empty-workspace-mark i:nth-child(2) { transform: translateY(0); }
.empty-workspace-mark i:last-child { width: 18px; transform: translate(-5px, 10px); background: var(--red); }
.empty-workspace h1 { max-width: 650px; margin: 12px 0 0; font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.035em; }
.empty-workspace > p { max-width: 650px; margin: 16px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.empty-workspace-steps { display: grid; width: min(760px, 100%); grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 44px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); text-align: left; }
.empty-workspace-steps > span { display: grid; min-height: 128px; align-content: start; gap: 6px; background: var(--surface); padding: 20px; }
.empty-workspace-steps b { color: var(--red); font-family: var(--font-mono), monospace; font-size: 10px; }
.empty-workspace-steps strong { font-size: 13px; }
.empty-workspace-steps small { color: var(--muted); font-size: 10px; line-height: 1.5; }

.password-modal { width: min(540px, 100%); }
.modal-footer-spacer { flex: 1 1 auto; }
.password-form { display: grid; gap: 15px; }
.password-form label,
.login-form label { display: grid; gap: 7px; }
.password-form label > span,
.login-form label > span { color: var(--ink); font-size: 10px; font-weight: 700; }
.password-form input,
.login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd3df;
  border-radius: 7px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 12px;
}
.password-form input:focus,
.login-form input:focus { border-color: var(--navy); }
.form-note { margin: -3px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.5; }

.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  background: #fff;
}

.login-brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  justify-content: space-between;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(108, 147, 204, 0.34), transparent 27%),
    linear-gradient(145deg, #202f69 0%, #294294 48%, #1e347d 100%);
  padding: clamp(34px, 5vw, 68px);
  color: #fff;
}

.login-brand-panel::after {
  position: absolute;
  right: -15%;
  bottom: -22%;
  width: 480px;
  height: 480px;
  transform: rotate(45deg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  content: "";
}

.login-brand-lockup { position: relative; z-index: 1; display: flex; align-items: flex-start; flex-direction: column; gap: 11px; }
.login-brand-logo {
  display: block;
  width: 122px;
  height: 122px;
  flex: 0 0 auto;
  background: #fff;
  -webkit-mask-image: url("/static/cep-logo.png");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("/static/cep-logo.png");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.login-brand-lockup > span:not(.login-brand-logo) { display: grid; gap: 5px; }
.login-brand-lockup strong { color: #fff; font-size: 27px; letter-spacing: 0.14em; }
.login-brand-lockup small { color: rgba(255, 255, 255, 0.68); font-size: 10px; letter-spacing: 0.04em; }

.login-brand-copy { position: relative; z-index: 1; max-width: 590px; padding: 80px 0; }
.login-brand-copy .section-kicker { color: #adc6e8; }
.login-brand-copy h1 { margin: 18px 0 0; color: #fff; font-size: clamp(37px, 4.2vw, 65px); font-weight: 720; letter-spacing: -0.045em; line-height: 1.03; }
.login-brand-copy p { max-width: 560px; margin: 25px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 14px; line-height: 1.8; }

.login-assurance { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 17px 24px; }
.login-assurance span { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.72); font-size: 10px; font-weight: 650; }
.login-assurance i { width: 6px; height: 6px; border-radius: 50%; background: #9fc5a9; box-shadow: 0 0 0 4px rgba(159, 197, 169, 0.12); }

.login-form-panel { display: grid; min-height: 100vh; place-items: center; background: var(--surface-soft); padding: clamp(28px, 7vw, 90px); }
.login-form-card { width: min(470px, 100%); }
.login-step { display: inline-flex; border: 1px solid rgba(41, 66, 148, 0.14); border-radius: 99px; background: var(--surface-blue); padding: 6px 10px; color: var(--navy); font-size: 9px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.login-form-card h2 { margin: 21px 0 0; color: var(--ink); font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.035em; }
.login-form-card > p { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.login-form { display: grid; gap: 16px; margin-top: 30px; }
.login-submit { width: 100%; min-height: 49px; margin-top: 5px; }
.login-footnote { display: block; margin-top: 23px; color: #7a818b; font-size: 9.5px; line-height: 1.6; }
.login-loading { display: flex; min-height: 180px; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: var(--muted); font-size: 11px; }
.login-loading span { width: 28px; height: 28px; border: 2px solid rgba(41, 66, 148, 0.16); border-top-color: var(--navy); border-radius: 50%; animation: login-spin 0.8s linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }

.login-alert { border-left: 3px solid var(--red); background: var(--red-bg); padding: 11px 13px; color: #8f1830; font-size: 10px; line-height: 1.5; }
.login-alert.warning { border-left-color: var(--amber); background: var(--amber-bg); color: #754c15; }
.login-alert.inline { margin-top: 2px; }

@media (max-width: 1100px) {
  .login-page { grid-template-columns: minmax(340px, 0.8fr) minmax(460px, 1.2fr); }
  .login-brand-panel { padding: 38px; }
  .login-brand-copy { padding: 48px 0; }
  .access-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-form .button { justify-self: start; }
}

@media (max-width: 900px) {
  .brand-lockup {
    min-height: 72px;
    justify-content: flex-start;
    flex-direction: row;
    gap: 10px;
    padding: 8px 20px;
  }
  .brand-logo { width: 52px; height: 52px; max-width: 52px; max-height: 52px; }
  .brand-copy { align-items: flex-start; text-align: left; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 8.5px; }
  .mobile-account-actions { display: flex; align-items: center; gap: 6px; }
  .mobile-account-button,
  .mobile-logout-button { display: inline-grid; min-width: 39px; min-height: 39px; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--navy); font-size: 9px; font-weight: 800; }
  .mobile-logout-button { padding: 0 9px; color: var(--red); font-size: 8.5px; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: auto; padding: 28px 30px; }
  .login-brand-copy { padding: 55px 0 42px; }
  .login-brand-copy h1 { max-width: 720px; }
  .login-assurance { display: none; }
  .login-form-panel { min-height: auto; padding: 60px 30px 90px; }
}

@media (max-width: 620px) {
  .mobile-logout-button { display: none; }
  .login-brand-panel { padding: 22px 20px; }
  .login-brand-logo { width: 92px; height: 92px; }
  .login-brand-lockup strong { font-size: 21px; }
  .login-brand-copy { padding: 40px 0 26px; }
  .login-brand-copy h1 { font-size: 34px; }
  .login-form-panel { padding: 45px 20px 70px; }
  .empty-workspace { min-height: 570px; padding: 40px 20px; }
  .empty-workspace-steps { grid-template-columns: 1fr; }
  .empty-workspace-steps > span { min-height: 96px; }
  .access-form { grid-template-columns: 1fr; }
  .access-row-actions { align-items: stretch; flex-direction: column; }
  .access-row-actions .button { width: 100%; }
}

/* Checklist approval baseline */
.checklist-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 9px; font-weight: 750; }
.checklist-pill.approved { border-color: rgba(35, 97, 72, 0.2); background: var(--green-bg); color: var(--green); }
.checklist-pill.submitted { border-color: rgba(41, 66, 148, 0.2); background: var(--blue-bg); color: var(--navy); }
.checklist-pill.changes { border-color: rgba(198, 0, 45, 0.2); background: var(--red-bg); color: var(--red); }
.checklist-approval-panel { margin-bottom: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.checklist-approval-panel.approved { border-color: rgba(35, 97, 72, 0.24); }
.checklist-approval-panel.submitted { border-color: rgba(41, 66, 148, 0.26); }
.checklist-approval-panel.changes { border-color: rgba(198, 0, 45, 0.24); }
.checklist-approval-head { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(135deg, rgba(41, 66, 148, 0.055), rgba(108, 147, 204, 0.025)); }
.checklist-lock-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 17px; font-weight: 850; }
.checklist-approval-panel.approved .checklist-lock-symbol { background: var(--green); }
.checklist-approval-panel.changes .checklist-lock-symbol { background: var(--red); }
.checklist-approval-head small { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 8px; font-weight: 800; }
.checklist-approval-head h2 { margin: 3px 0; color: var(--ink); font-size: 18px; letter-spacing: -0.02em; }
.checklist-approval-head p { margin: 0; color: var(--muted); font-size: 10px; }
.checklist-approval-tag { padding: 7px 10px; border-radius: 6px; background: var(--blue-bg); color: var(--navy); letter-spacing: 0.08em; font-size: 8px; font-weight: 850; }
.checklist-approval-tag.approved { background: var(--green-bg); color: var(--green); }
.checklist-approval-tag.changes { background: var(--red-bg); color: var(--red); }
.checklist-approval-message, .checklist-return-note, .checklist-locked-message { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; }
.checklist-approval-message > span, .checklist-return-note > span, .checklist-locked-message > span { display: grid; min-width: 0; gap: 4px; }
.checklist-approval-message strong, .checklist-return-note strong, .checklist-locked-message strong { color: var(--ink); font-size: 11px; }
.checklist-approval-message small, .checklist-return-note small, .checklist-locked-message small { color: var(--muted); font-size: 9.5px; line-height: 1.55; }
.checklist-return-note em, .checklist-locked-message em { color: var(--muted); font-size: 8.5px; font-style: normal; }
.checklist-return-note { background: var(--red-bg); }
.submission-disabled-reason { margin-top: 5px; color: var(--red); font-size: 9px; font-style: normal; font-weight: 750; }
.checklist-validation-panel { display: grid; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(197, 48, 48, 0.18); background: #fff8f8; }
.checklist-validation-panel > header { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; }
.checklist-validation-panel > header > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 850; }
.checklist-validation-panel header span:last-child { display: grid; gap: 3px; }
.checklist-validation-panel header strong { color: var(--ink); font-size: 11px; }
.checklist-validation-panel header small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.checklist-validation-panel > div { display: grid; gap: 6px; padding-left: 40px; }
.checklist-validation-panel > div > button, .checklist-validation-panel > div > span { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid rgba(197, 48, 48, 0.16); border-radius: 7px; background: #fff; color: inherit; text-align: left; }
.checklist-validation-panel > div > button { cursor: pointer; }
.checklist-validation-panel > div > button:hover, .checklist-validation-panel > div > button:focus-visible { border-color: rgba(197, 48, 48, 0.48); box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.08); outline: none; }
.checklist-validation-panel > div span span, .checklist-validation-panel > div button span { display: grid; gap: 2px; }
.checklist-validation-panel > div strong { color: var(--ink); font-size: 9.5px; }
.checklist-validation-panel > div small { color: var(--muted); font-size: 8.5px; }
.checklist-validation-panel > div b { flex: 0 0 auto; color: var(--red); font-size: 8.5px; }
.checklist-locked-message { background: var(--green-bg); }
.checklist-locked-message > .lock-mark { flex: 0 0 auto; }
.checklist-locked-message > div { display: grid; min-width: 260px; gap: 9px; }
.checklist-review-workbench { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); min-height: 420px; }
.checklist-ai-column, .checklist-manual-column { min-width: 0; padding: 20px; }
.checklist-ai-column { border-right: 1px solid var(--line-soft); background: var(--surface-soft); }
.checklist-manual-column { display: flex; flex-direction: column; gap: 13px; }
.checklist-manual-column > h3 { margin: -6px 0 0; color: var(--ink); font-size: 15px; }
.checklist-ai-empty { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 110px; padding: 16px; border: 1px dashed rgba(41, 66, 148, 0.28); border-radius: var(--radius-md); background: #fff; }
.checklist-ai-empty > span:nth-child(2) { display: grid; gap: 5px; }
.checklist-ai-empty strong { font-size: 11px; }
.checklist-ai-empty small { color: var(--muted); font-size: 9px; line-height: 1.55; }
.checklist-ai-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px; border: 1px solid rgba(41, 66, 148, 0.15); border-radius: var(--radius-md); background: #fff; }
.checklist-ai-summary > span:first-child { display: grid; min-width: 74px; }
.checklist-ai-summary small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.checklist-ai-summary > span:first-child strong { color: var(--navy); font-size: 25px; }
.checklist-ai-summary > span:first-child i { font-size: 9px; font-style: normal; }
.checklist-ai-summary h3 { margin: 0 0 4px; font-size: 11px; }
.checklist-ai-summary p { margin: 0; color: var(--muted); font-size: 8.5px; line-height: 1.45; }
.checklist-ai-checks { display: grid; gap: 7px; margin-top: 12px; }
.checklist-ai-checks > span { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line-soft); border-radius: 7px; background: #fff; }
.checklist-ai-checks i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.checklist-ai-checks .attention i { background: var(--amber); }
.checklist-ai-checks .fail i { background: var(--red); }
.checklist-ai-checks span span { display: grid; gap: 2px; }
.checklist-ai-checks strong { font-size: 9px; }
.checklist-ai-checks small { color: var(--muted); font-size: 8px; }
.checklist-ai-checks b { color: var(--muted); font-size: 8px; }
.checklist-ai-findings { display: grid; gap: 8px; margin-top: 12px; }
.checklist-ai-findings article { padding: 12px; border-left: 3px solid var(--blue-soft); border-radius: 5px; background: #fff; }
.checklist-ai-findings article.critical { border-left-color: var(--red); }
.checklist-ai-findings article.warning { border-left-color: var(--amber); }
.checklist-ai-findings article.dismissed { opacity: 0.55; }
.checklist-ai-findings header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.checklist-ai-findings header b { color: var(--navy); font-size: 8px; text-transform: uppercase; }
.checklist-ai-findings article.critical header b { color: var(--red); }
.checklist-ai-findings header small { color: var(--muted); font-size: 8px; }
.checklist-ai-findings article > strong { font-size: 10px; }
.checklist-ai-findings p { margin: 4px 0; color: var(--muted); font-size: 8.5px; line-height: 1.45; }
.checklist-ai-findings em { color: var(--muted); font-size: 7.8px; font-style: normal; }
.checklist-ai-findings footer { display: flex; gap: 6px; margin-top: 8px; }
.checklist-baseline-list { display: grid; max-height: 330px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.checklist-baseline-list article { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.checklist-baseline-list article:last-child { border-bottom: 0; }
.checklist-baseline-list article > b { color: var(--blue-soft); font-family: var(--font-mono); font-size: 9px; }
.checklist-baseline-list article > span { display: grid; gap: 3px; }
.checklist-baseline-list strong { font-size: 9.5px; }
.checklist-baseline-list small { color: var(--muted); font-size: 8px; }
.checklist-baseline-list p { margin: 2px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.45; }
.baseline-source { margin-top: 4px; font-size: 8px; font-style: normal; line-height: 1.4; }
.baseline-source.verified { color: var(--green); }
.baseline-source.attention { color: var(--red); }
.checklist-manual-confirm { display: flex; align-items: flex-start; gap: 9px; padding: 11px; border: 1px solid rgba(41, 66, 148, 0.18); border-radius: 7px; background: var(--blue-bg); }
.checklist-manual-confirm input { margin-top: 2px; accent-color: var(--navy); }
.checklist-manual-confirm span { display: grid; gap: 3px; }
.checklist-manual-confirm strong { font-size: 9px; }
.checklist-manual-confirm small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.checklist-review-note { display: grid; gap: 5px; }
.checklist-review-note > span { color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; }
.checklist-review-note textarea { min-height: 68px; resize: vertical; border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; background: #fff; color: var(--ink); font-size: 9px; line-height: 1.45; }
.checklist-decision-actions { display: flex; justify-content: flex-end; gap: 8px; }
.decision-helper { color: var(--muted); text-align: right; font-size: 8px; }
.decision-helper.risk { color: var(--red); }

@media (max-width: 1120px) {
  .checklist-review-workbench { grid-template-columns: 1fr; }
  .checklist-ai-column { border-right: 0; border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 620px) {
  .checklist-approval-head { grid-template-columns: 38px minmax(0, 1fr); padding: 15px; }
  .checklist-approval-tag { grid-column: 2; justify-self: start; }
  .checklist-approval-message, .checklist-return-note, .checklist-locked-message { flex-direction: column; align-items: stretch; padding: 15px; }
  .checklist-locked-message > div { min-width: 0; }
  .checklist-ai-column, .checklist-manual-column { padding: 15px; }
  .checklist-ai-empty, .checklist-ai-summary { grid-template-columns: 1fr; }
  .checklist-decision-actions { flex-direction: column; }
  .checklist-validation-panel { padding: 15px; }
  .checklist-validation-panel > div { padding-left: 0; }
}

/* Visual and UX QA: readable controls, resilient wrapping, and consistent touch targets. */
.button {
  font-size: 12px;
  line-height: 1.35;
}

.button.small { font-size: 11px; }
.button:disabled { color: #5f6670 !important; }

.action-buttons {
  align-items: stretch;
  flex-wrap: wrap;
}

.action-buttons .button { flex: 1 1 120px; }

.block-note {
  overflow: visible;
  line-height: 1.45;
  text-overflow: clip;
  white-space: normal;
}

.modal-close {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  margin: -10px -10px 0 0;
  border-radius: 50%;
  cursor: pointer;
}

.modal-close:hover { background: var(--line-soft); color: var(--navy); }

.reader-results .reader-include {
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 14px;
}

.reader-results .reader-include input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--navy);
}

.reader-results .reader-include > span {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.reader-results .reader-include strong { font-size: 12px; line-height: 1.4; }
.reader-results .reader-include small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.reader-result-header strong { font-size: 13px; }
.reader-result-header small { font-size: 10.5px; }
.reader-expand-label { font-size: 11px; }
.reader-list-toolbar strong { font-size: 12px; }
.reader-list-toolbar small,
.reader-item-actions small { font-size: 10.5px; line-height: 1.45; }
.reader-edit-fields label small { font-size: 10px; }
.reader-edit-fields input,
.reader-edit-fields textarea,
.reader-edit-fields select { font-size: 12px; }
.reader-required span { font-size: 11px; }

.section-kicker,
.eyebrow { font-size: 10px; line-height: 1.35; }

.ai-assurance-banner small,
.package-ai-preflight small { font-size: 10px; }
.ai-assurance-banner em,
.package-ai-preflight em { font-size: 11px; }
.ai-assurance-banner > b,
.package-ai-preflight > div b { font-size: 9px; }

.checklist-pill,
.checklist-approval-head small,
.checklist-approval-tag { font-size: 10px; }
.checklist-approval-head p { font-size: 12px; line-height: 1.45; }
.checklist-approval-message strong,
.checklist-return-note strong,
.checklist-locked-message strong { font-size: 13px; }
.checklist-approval-message small,
.checklist-return-note small,
.checklist-locked-message small { font-size: 11.5px; }
.checklist-return-note em,
.checklist-locked-message em { font-size: 10.5px; }
.checklist-ai-empty strong { font-size: 12px; }
.checklist-ai-empty small { font-size: 11px; }
.checklist-ai-summary small { font-size: 10px; }
.checklist-ai-summary > span:first-child i { font-size: 11px; }
.checklist-ai-summary h3 { font-size: 13px; }
.checklist-ai-summary p { font-size: 11px; }
.checklist-ai-checks strong { font-size: 11px; }
.checklist-ai-checks small,
.checklist-ai-checks b { font-size: 10px; }
.checklist-ai-findings header b,
.checklist-ai-findings header small { font-size: 9.5px; }
.checklist-ai-findings article > strong { font-size: 12px; }
.checklist-ai-findings p { font-size: 11px; }
.checklist-ai-findings em { font-size: 10px; }
.checklist-baseline-list article > b { font-size: 10px; }
.checklist-baseline-list strong { font-size: 11.5px; }
.checklist-baseline-list small { font-size: 10px; }
.checklist-baseline-list p { font-size: 11px; }
.checklist-manual-confirm { min-height: 58px; }
.checklist-manual-confirm input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 auto; }
.checklist-manual-confirm strong { font-size: 11.5px; }
.checklist-manual-confirm small { font-size: 10.5px; }
.checklist-review-note > span { font-size: 10px; }
.checklist-review-note textarea { font-size: 12px; }
.decision-helper { font-size: 10.5px; }

.review-metric-grid small,
.review-queue-panel header small,
.review-source-grid small,
.ai-review-summary small,
.ai-findings-section header small,
.ai-check-section header small,
.ai-note-draft small,
.review-decision-bar small { font-size: 10px; }
.review-metric-grid em,
.review-queue-panel header em { font-size: 10.5px; }
.review-queue-panel header strong { font-size: 13px; }
.review-queue-list strong { font-size: 12px; }
.review-queue-list small,
.review-queue-list em { font-size: 10.5px; line-height: 1.4; }
.review-queue-list .document-approval-tag,
.risk-label,
.confidence-label,
.finding-status { font-size: 9px; }
.review-source-grid strong { font-size: 12px; }
.review-source-grid p,
.ai-review-summary p,
.ai-check-grid strong,
.ai-finding-list p { font-size: 11px; }
.review-source-grid em,
.ai-check-grid small,
.ai-check-grid b,
.ai-findings-section > header em { font-size: 10px; }
.finding-evidence small { font-size: 9.5px; }
.finding-evidence strong { font-size: 10.5px; }
.ai-note-draft strong,
.review-decision-bar strong { font-size: 11.5px; }
.ai-note-draft em { font-size: 10px; }
.vault-ai-hint { max-width: none; font-size: 10.5px; }

@media (max-width: 620px) {
  .mobile-nav-toggle,
  .mobile-account-button,
  .mobile-logout-button,
  .tender-switcher,
  .topbar .button,
  .content .button,
  .modal-footer .button,
  .filter-tabs button {
    min-height: 44px;
  }

  .modal .button,
  .modal .text-button {
    min-height: 44px;
  }

  .modal .text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-account-button { min-width: 44px; }

  .content input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .content select,
  .modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .modal select,
  .login-form-panel input {
    min-height: 44px;
  }

  .reader-results { max-height: min(52vh, 460px); }
  .reader-result-header { min-height: 58px; }
  .reader-results .reader-include { min-height: 76px; }
  .review-queue-list > button { min-height: 64px; align-items: flex-start; }
  .review-queue-list strong,
  .review-queue-list small,
  .review-queue-list em,
  .review-document-head p,
  .ai-check-grid small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .checklist-decision-actions .button { width: 100%; }
}

/* Staff adoption phase 1: visible persistence, trustworthy sources, and focused work. */
.save-control {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #f8fafc;
  padding: 5px 8px;
}

.save-control.error {
  border-color: rgba(198, 0, 45, 0.22);
  background: var(--red-bg);
}

.save-indicator { gap: 8px; }
.save-indicator > span { display: grid; gap: 1px; }
.save-indicator strong { color: var(--ink); font-size: 10px; line-height: 1.25; }
.save-indicator small { color: var(--muted); font-size: 8.5px; font-weight: 550; line-height: 1.25; }
.save-indicator.error strong,
.save-indicator.error small { color: var(--red); }
.save-retry { min-height: 30px; border: 1px solid rgba(198, 0, 45, 0.3); border-radius: 5px; background: #fff; padding: 5px 8px; color: var(--red); font-size: 9px; font-weight: 800; }
.save-retry:hover,
.save-retry:focus-visible { border-color: var(--red); box-shadow: 0 0 0 3px rgba(198, 0, 45, 0.08); outline: 0; }

.requirement-source-trace {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  border: 1px solid rgba(41, 66, 148, 0.18);
  border-radius: 6px;
  background: #f5f8fc;
  padding: 12px 13px;
}

.requirement-source-trace.attention { border-color: rgba(183, 120, 27, 0.25); background: var(--amber-bg); }
.requirement-source-trace.verified { border-color: rgba(39, 116, 82, .22); background: var(--green-bg); }
.source-trace-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-mono), monospace; font-size: 12px; font-weight: 850; }
.requirement-source-trace.verified .source-trace-mark { background: var(--green); }
.requirement-source-trace.attention .source-trace-mark { background: var(--amber); }
.requirement-source-trace > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.requirement-source-trace small { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.requirement-source-trace strong { overflow-wrap: anywhere; color: var(--navy-deep); font-size: 12px; line-height: 1.35; }
.requirement-source-trace em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.5; }
.requirement-source-trace > b { border-radius: 999px; background: var(--blue-bg); padding: 6px 9px; color: var(--navy); font-size: 9px; white-space: nowrap; }
.requirement-source-trace.attention > b { background: #fff; color: var(--amber); }
.requirement-source-trace.verified > b { background: #fff; color: var(--green); }
.requirement-source-trace .source-verification-meta { margin-top: 2px; color: var(--green); letter-spacing: 0; text-transform: none; }

.staff-workbench .page-header { align-items: center; }
.delivery-readiness-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.delivery-readiness-grid > span { display: grid; min-width: 0; gap: 3px; border: 1px solid var(--line); border-top: 3px solid #aab7c8; border-radius: 7px; background: #fff; padding: 11px 13px; }
.delivery-readiness-grid > span.ready { border-top-color: var(--green); background: linear-gradient(180deg, var(--green-bg), #fff 58%); }
.delivery-readiness-grid > span.attention { border-top-color: var(--amber); background: linear-gradient(180deg, var(--amber-bg), #fff 58%); }
.delivery-readiness-grid > span.blocked { border-top-color: var(--red); background: linear-gradient(180deg, var(--red-bg), #fff 58%); }
.delivery-readiness-grid small { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.delivery-readiness-grid strong { color: var(--navy-deep); font-size: 17px; }
.delivery-readiness-grid em { overflow-wrap: anywhere; color: var(--muted); font-size: 9.5px; font-style: normal; }
.revision-command-card { margin-bottom: 16px; border: 1px solid rgba(198, 0, 45, .22); border-radius: 8px; background: linear-gradient(105deg, #fff3f5, #fff 65%); padding: 16px 18px; box-shadow: 0 8px 24px rgba(23, 39, 85, .04); }
.revision-command-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.revision-command-card > header > span { display: grid; min-width: 0; gap: 4px; }
.revision-command-card header small { color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.revision-command-card header strong { color: var(--navy-deep); font-size: 15px; }
.revision-command-card header p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.revision-command-card > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.revision-command-card > div button { display: grid; min-width: 0; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: start; gap: 8px; border: 1px solid rgba(198, 0, 45, .16); border-radius: 6px; background: #fff; padding: 10px; color: var(--ink); text-align: left; }
.revision-command-card > div button:hover { border-color: var(--red); transform: translateY(-1px); }
.revision-command-card > div button > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.revision-command-card > div strong { overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.revision-command-card > div small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.revision-command-card > div em { color: var(--red); font-size: 8.5px; font-style: normal; font-weight: 800; }
.revision-overflow-note { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; }
.task-progress { display: grid; min-width: 190px; gap: 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 12px 14px; }
.task-progress > span { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.task-progress strong { color: var(--navy); font-size: 19px; }
.task-progress small { color: var(--muted); font-size: 10px; }
.task-progress > i,
.team-load > div > i { display: block; overflow: hidden; height: 4px; border-radius: 999px; background: var(--line-soft); }
.task-progress > i b,
.team-load > div > i b { display: block; height: 100%; border-radius: inherit; background: var(--navy); }

.task-gate-banner,
.task-focus-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  border: 1px solid #d8e2f2;
  border-radius: 8px;
  background: linear-gradient(100deg, #f2f6fc, #fff 68%);
  padding: 18px 20px;
}

.task-gate-banner.changes { border-color: rgba(198, 0, 45, 0.22); background: linear-gradient(100deg, var(--red-bg), #fff 68%); }
.task-gate-banner > span:nth-child(2),
.task-focus-card > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.task-gate-banner small,
.task-focus-card small { color: var(--muted); font-size: 10px; }
.task-gate-banner strong,
.task-focus-card strong { color: var(--navy-deep); font-size: 15px; line-height: 1.35; }
.task-gate-banner p,
.task-focus-card p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }

.task-focus-card { grid-template-columns: 40px minmax(0, 1fr) minmax(150px, auto) auto; box-shadow: 0 8px 24px rgba(23, 39, 85, 0.05); }
.task-focus-card.revision { border-color: rgba(198, 0, 45, 0.24); background: linear-gradient(100deg, #fff3f5, #fff 68%); }
.task-focus-card.overdue,
.task-focus-card.urgent { border-color: rgba(183, 120, 27, 0.28); background: linear-gradient(100deg, #fff8e9, #fff 68%); }
.task-focus-rank { display: grid; width: 38px; height: 38px; place-items: center; transform: rotate(45deg); border: 1px solid #b9cbe3; background: #fff; color: var(--navy); font-family: var(--font-mono), monospace; font-size: 10px; font-weight: 850; }
.task-focus-rank b { transform: rotate(-45deg); font-weight: 850; }
.task-focus-meta { display: grid; gap: 2px; border-left: 1px solid var(--line); padding-left: 16px; }
.task-focus-meta strong { font-size: 11.5px; }

.task-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 13px; }
.task-filter-tabs { display: flex; min-width: 0; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
.task-filter-tabs button { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 8px 12px; color: var(--muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
.task-filter-tabs button b { min-width: 20px; border-radius: 999px; background: var(--line-soft); padding: 2px 5px; color: inherit; font-size: 9px; }
.task-filter-tabs button.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.task-filter-tabs button.active b { background: rgba(255, 255, 255, 0.16); }
.task-search { position: relative; display: block; width: min(320px, 34vw); flex: 0 0 auto; }
.task-search .search-mark { left: 13px; }
.task-search input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 9px 12px 9px 38px; color: var(--ink); font-size: 11px; }
.task-search input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(41, 66, 148, 0.08); outline: 0; }

.staff-workbench .team-load { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.staff-workbench .team-load > div { min-width: 0; }
.staff-workbench .team-load > div > span:nth-child(2) { min-width: 0; }
.staff-workbench .team-load strong { overflow-wrap: anywhere; font-size: 11px; }
.staff-workbench .team-load small { font-size: 10px; }
.task-priority-label { font-style: normal; font-weight: 750; }
.task-priority-label.revision,
.task-priority-label.overdue { color: var(--red); }
.task-priority-label.urgent { color: var(--amber); }
.task-priority-label.required { color: var(--navy); }
.task-review-note { display: -webkit-box; overflow: hidden; margin-top: 2px; color: #8b3a45; font-size: 9px; font-style: normal; font-weight: 600; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.task-row .due { display: grid; gap: 2px; }
.task-row .due small { color: var(--amber); font-size: 8.5px; }
.task-row-action { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--navy); font-size: 9px; font-weight: 800; white-space: nowrap; }
.task-row-action .arrow { display: inline-block; flex: 0 0 auto; }

/* Phase 5 — controlled package release and delivery receipt */
.package-command-centre { min-width: 0; }
.package-version-chip { display: grid; min-width: 210px; gap: 2px; border: 1px solid var(--line); border-top: 3px solid #aab7c8; border-radius: 6px; background: #fff; padding: 11px 14px; }
.package-version-chip.submitted { border-top-color: var(--amber); background: var(--amber-bg); }
.package-version-chip.approved { border-top-color: var(--green); background: var(--green-bg); }
.package-version-chip.changes { border-top-color: var(--red); background: var(--red-bg); }
.package-version-chip small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.package-version-chip strong { color: var(--navy-deep); font-size: 17px; }
.package-version-chip em { overflow-wrap: anywhere; color: var(--muted); font-family: var(--font-mono), monospace; font-size: 9px; font-style: normal; }
.package-release-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.package-release-steps > span { position: relative; display: grid; min-width: 0; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 9px; border-right: 1px solid var(--line); padding: 12px 14px; }
.package-release-steps > span:last-child { border-right: 0; }
.package-release-steps b { grid-row: 1 / 3; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #c8d2e0; border-radius: 50%; color: var(--muted); font-family: var(--font-mono), monospace; font-size: 9px; }
.package-release-steps strong { overflow-wrap: anywhere; color: var(--navy-deep); font-size: 11px; }
.package-release-steps small { overflow-wrap: anywhere; color: var(--muted); font-size: 9px; line-height: 1.4; }
.package-release-steps > span.active { background: #eef3fa; box-shadow: inset 0 -3px var(--navy); }
.package-release-steps > span.active b { border-color: var(--navy); background: var(--navy); color: #fff; }
.package-release-steps > span.done b { border-color: var(--green); background: var(--green); color: transparent; }
.package-release-steps > span.done b::after { content: "✓"; position: absolute; color: #fff; font-size: 12px; }
.package-release-gate { display: grid; grid-template-columns: 48px minmax(260px, 1fr) minmax(300px, .9fr); align-items: center; gap: 18px; margin: 16px 0; border: 1px solid var(--line); border-left: 4px solid #aab7c8; border-radius: 6px; background: #fff; padding: 18px; }
.package-release-gate.submitted { border-left-color: var(--amber); background: linear-gradient(90deg, var(--amber-bg), #fff 44%); }
.package-release-gate.approved { border-left-color: var(--green); background: linear-gradient(90deg, var(--green-bg), #fff 44%); }
.package-release-gate.changes, .package-release-gate.blocked { border-left-color: var(--red); background: linear-gradient(90deg, var(--red-bg), #fff 44%); }
.package-release-gate h2 { margin: 4px 0 5px; color: var(--navy-deep); font-size: 18px; }
.package-release-gate p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.package-decision-controls { display: flex; min-width: 0; flex-direction: column; align-items: stretch; gap: 8px; }
.package-decision-controls > label { display: grid; gap: 5px; }
.package-decision-controls label small { color: var(--navy-deep); font-size: 9px; font-weight: 750; }
.package-decision-controls textarea { min-height: 64px; resize: vertical; background: #fff; font-size: 10px; line-height: 1.45; }
.package-decision-controls > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.release-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
.package-release-sidebar { display: grid; min-width: 0; gap: 14px; }
.package-release-sidebar .export-panel { position: static; }
.package-manifest .panel-heading { align-items: flex-start; }
.package-manifest .panel-note { max-width: 240px; overflow-wrap: anywhere; text-align: right; }
.manifest-row { grid-template-columns: 32px minmax(0, 1fr) 128px; align-items: center; }
.manifest-row > span:nth-child(2) { display: grid; gap: 3px; }
.manifest-row > span:nth-child(2) em { color: var(--muted); font-size: 9px; font-style: normal; }
.manifest-integrity { display: grid; justify-items: end; gap: 5px; }
.manifest-integrity code { color: var(--muted); font-family: var(--font-mono), monospace; font-size: 8px; }
.delivery-receipt { padding: 18px; }
.delivery-receipt.recorded { border-top: 3px solid var(--green); background: linear-gradient(180deg, var(--green-bg), #fff 55%); }
.delivery-receipt h2 { margin: 5px 0 8px; color: var(--navy-deep); font-size: 16px; }
.delivery-receipt > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.delivery-form { display: grid; gap: 9px; }
.delivery-form label { display: grid; gap: 5px; }
.delivery-form label small { color: var(--navy-deep); font-size: 9px; font-weight: 750; }
.delivery-form input, .delivery-form select { min-width: 0; min-height: 38px; background: #fff; font-size: 10px; }
.delivery-record { display: grid; gap: 9px; }
.delivery-record > span { display: grid; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.delivery-record small { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.delivery-record strong { overflow-wrap: anywhere; color: var(--navy-deep); font-size: 11px; }
.delivery-record p { margin: 2px 0 0; color: var(--green); font-size: 9px; font-weight: 700; }
.inline-error { margin: 9px 0 0; border-left: 3px solid var(--red); background: var(--red-bg); padding: 8px 10px; color: var(--red); font-size: 9px; line-height: 1.45; }

@media (max-width: 1120px) {
  .task-focus-card { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .task-focus-meta { grid-column: 2; border-left: 0; padding-left: 0; }
  .task-focus-card > .button { grid-column: 3; grid-row: 1 / span 2; }
  .staff-workbench .task-row { padding-right: 17px; }
  .staff-workbench .task-row-action { position: static; }
}

@media (max-width: 900px) {
  .save-indicator small { display: none; }
  .task-toolbar { align-items: stretch; flex-direction: column; }
  .task-search { width: 100%; }
  .task-filter-tabs { width: 100%; padding-bottom: 3px; }
  .delivery-readiness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .revision-command-card > header { align-items: stretch; flex-direction: column; }
  .revision-command-card > header .button { width: 100%; }
  .revision-command-card > div { grid-template-columns: 1fr; }
  .package-release-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .package-release-steps > span:nth-child(2) { border-right: 0; }
  .package-release-steps > span:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .package-release-gate { grid-template-columns: 42px minmax(0, 1fr); }
  .package-decision-controls { grid-column: 1 / -1; }
  .release-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .save-control { min-height: 44px; padding: 5px 7px; }
  .save-indicator > span { display: none; }
  .save-retry { min-height: 34px; }
  .staff-workbench .page-header { align-items: stretch; }
  .delivery-readiness-grid { grid-template-columns: 1fr 1fr; }
  .delivery-readiness-grid > span { padding: 10px; }
  .package-version-chip { width: 100%; min-width: 0; }
  .package-release-steps { grid-template-columns: 1fr; }
  .package-release-steps > span { border-right: 0; border-bottom: 1px solid var(--line); }
  .package-release-steps > span:last-child { border-bottom: 0; }
  .package-release-gate { grid-template-columns: 1fr; padding: 14px; }
  .package-release-gate > .gate-mark { display: none; }
  .package-decision-controls > div { justify-content: stretch; }
  .package-decision-controls > div .button { flex: 1 1 100%; }
  .manifest-row { grid-template-columns: 28px minmax(0, 1fr); }
  .manifest-integrity { grid-column: 2; justify-items: start; }
  .package-manifest .panel-heading { align-items: stretch; flex-direction: column; }
  .package-manifest .panel-note { max-width: none; text-align: left; }
  .revision-command-card { padding: 14px; }
  .task-progress { width: 100%; min-width: 0; }
  .task-gate-banner,
  .task-focus-card { grid-template-columns: 34px minmax(0, 1fr); align-items: start; padding: 16px; }
  .task-gate-banner > .button,
  .task-focus-card > .button { grid-column: 1 / -1; grid-row: auto; width: 100%; }
  .task-focus-rank { width: 32px; height: 32px; }
  .task-focus-meta { grid-column: 2; }
  .task-filter-tabs button { min-height: 44px; }
  .staff-workbench .team-load { grid-template-columns: 1fr; }
  .staff-workbench .task-row { grid-template-columns: 1fr; padding: 17px; }
  .staff-workbench .task-row .task-title { grid-column: auto; }
  .staff-workbench .task-row-action { justify-content: flex-start; border-top: 1px solid var(--line-soft); padding-top: 10px; }
  .requirement-source-trace { grid-template-columns: 28px minmax(0, 1fr); align-items: start; }
  .requirement-source-trace > b { grid-column: 2; justify-self: start; }
  .reader-list-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .reader-list-toolbar > span:first-child { width: 100%; }
  .reader-list-toolbar > .button { flex: 1 1 auto; }
  .reader-import-footer .reader-import-status { width: 100%; }
  .batch-upload-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .batch-upload-summary label { grid-column: 1 / -1; justify-content: center; }
  .batch-mapping-list article { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .batch-mapping-list label,
  .batch-mapping-list article > b { grid-column: 2; }
  .batch-mapping-list article > b { justify-self: start; }
  .batch-upload-modal .modal-footer { align-items: stretch; flex-direction: column; }
  .batch-footer-note { margin: 0 0 3px; }
  .revision-decision-bar { grid-template-columns: 1fr; align-items: stretch; }
}

/* Phase 6 — outcome journal, retrospective validation, and organizational playbook */
.learning-command-centre { min-width: 0; }
.learning-header { align-items: center; }
.learning-status-chip { display: grid; min-width: 210px; gap: 2px; border: 1px solid var(--line); border-top: 3px solid #aab7c8; border-radius: 6px; background: #fff; padding: 11px 14px; }
.learning-status-chip.submitted { border-top-color: var(--amber); background: var(--amber-bg); }
.learning-status-chip.approved { border-top-color: var(--green); background: var(--green-bg); }
.learning-status-chip.changes { border-top-color: var(--red); background: var(--red-bg); }
.learning-status-chip small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.learning-status-chip strong { color: var(--navy-deep); font-size: 15px; }
.learning-status-chip em { color: var(--muted); font-size: 9px; font-style: normal; }
.learning-cycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.learning-cycle > span { display: grid; min-width: 0; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 9px; border-right: 1px solid var(--line); padding: 12px 14px; }
.learning-cycle > span:last-child { border-right: 0; }
.learning-cycle b { grid-row: 1 / 3; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #c8d2e0; border-radius: 50%; color: var(--muted); font-family: var(--font-mono), monospace; font-size: 9px; }
.learning-cycle strong { color: var(--navy-deep); font-size: 11px; }
.learning-cycle small { color: var(--muted); font-size: 9px; }
.learning-cycle > span.active { background: var(--amber-bg); box-shadow: inset 0 -3px var(--amber); }
.learning-cycle > span.done { background: linear-gradient(180deg, var(--green-bg), #fff); }
.learning-cycle > span.done b { border-color: var(--green); background: var(--green); color: #fff; }
.learning-gate-note { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 15px; border: 1px solid rgba(183, 120, 27, .22); border-left: 4px solid var(--amber); border-radius: 6px; background: var(--amber-bg); padding: 11px 14px; }
.learning-gate-note > span:last-child { display: grid; gap: 2px; }
.learning-gate-note strong { color: var(--navy-deep); font-size: 11px; }
.learning-gate-note small { color: var(--muted); font-size: 9.5px; }
.learning-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.learning-metrics > span { display: grid; min-width: 0; gap: 3px; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 7px; background: #fff; padding: 11px 13px; }
.learning-metrics small { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.learning-metrics strong { color: var(--navy-deep); font-size: 18px; }
.learning-metrics em { overflow-wrap: anywhere; color: var(--muted); font-size: 9px; font-style: normal; }
.learning-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 16px; }
.learning-main-column, .learning-side-column { display: grid; min-width: 0; gap: 16px; }
.outcome-journal, .retrospective-journal, .insight-engine, .organization-playbook, .learning-review-panel { padding: 18px; }
.outcome-badge { border-radius: 999px; background: var(--line-soft); padding: 6px 10px; color: var(--muted); font-size: 9px; font-weight: 800; }
.outcome-badge.won { background: var(--green-bg); color: var(--green); }
.outcome-badge.lost, .outcome-badge.cancelled { background: var(--red-bg); color: var(--red); }
.outcome-badge.awaiting { background: var(--amber-bg); color: var(--amber); }
.outcome-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.outcome-form-grid label { display: grid; min-width: 0; gap: 5px; }
.outcome-form-grid label.wide { grid-column: 1 / -1; }
.outcome-form-grid label small, .retrospective-grid label small, .learning-review-panel label small { color: var(--navy-deep); font-size: 9px; font-weight: 750; }
.outcome-form-grid label small em { color: var(--muted); font-style: normal; font-weight: 500; }
.outcome-form-grid input, .outcome-form-grid select, .outcome-form-grid textarea, .retrospective-grid textarea, .learning-review-panel textarea { width: 100%; min-width: 0; background: #fff; color: var(--ink); font-size: 10.5px; line-height: 1.5; }
.outcome-form-grid textarea, .retrospective-grid textarea, .learning-review-panel textarea { resize: vertical; }
.outcome-form-grid :disabled, .retrospective-grid :disabled { background: #f6f8fb; color: var(--muted); }
.retrospective-grid { display: grid; gap: 10px; }
.retrospective-grid > label { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 11px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfe; padding: 12px; }
.retrospective-grid > label > span:last-child { display: grid; min-width: 0; gap: 6px; }
.retrospective-number { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #bdcce0; border-radius: 4px; background: #fff; color: var(--navy); font-family: var(--font-mono), monospace; font-size: 8px; font-weight: 800; }
.learning-author-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 13px; border-top: 1px solid var(--line); padding-top: 13px; }
.learning-author-actions > span { display: grid; min-width: 0; gap: 2px; margin-right: auto; }
.learning-author-actions strong { color: var(--navy-deep); font-size: 10px; }
.learning-author-actions small { color: var(--muted); font-size: 9px; }
.learning-wait-note, .learning-approved-note { margin: 13px 0 0; border-radius: 6px; background: var(--amber-bg); padding: 10px 12px; color: var(--amber); font-size: 10px; line-height: 1.5; }
.learning-approved-note { display: flex; align-items: center; gap: 8px; background: var(--green-bg); color: var(--green); }
.learning-review-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr) auto; align-items: end; gap: 14px; border-left: 4px solid var(--amber); background: linear-gradient(90deg, var(--amber-bg), #fff 48%); }
.learning-review-panel.approved { border-left-color: var(--green); background: linear-gradient(90deg, var(--green-bg), #fff 48%); }
.learning-review-panel h2, .insight-engine h2, .organization-playbook h2 { margin: 5px 0 6px; color: var(--navy-deep); font-size: 16px; }
.learning-review-panel p, .insight-engine > p, .organization-playbook > p { margin: 0; color: var(--muted); font-size: 9.5px; line-height: 1.55; }
.learning-review-panel label { display: grid; gap: 5px; }
.learning-review-panel > div:last-child { display: flex; flex-direction: column; gap: 7px; }
.insight-engine { border-top: 3px solid var(--blue); background: linear-gradient(180deg, #f2f6fc, #fff 40%); }
.insight-list { display: grid; gap: 8px; margin-top: 13px; }
.insight-list article { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 10px; }
.insight-list article > span:last-child { display: grid; min-width: 0; gap: 3px; }
.insight-list strong { color: var(--navy-deep); font-size: 10px; line-height: 1.4; }
.insight-list small { color: var(--muted); font-size: 8.8px; line-height: 1.5; }
.insight-signal { width: 7px; height: 7px; margin-top: 4px; transform: rotate(45deg); background: var(--navy); }
.insight-list article.positive .insight-signal { background: var(--green); }
.insight-list article.attention .insight-signal { background: var(--amber); }
.insight-disclaimer { display: block; margin-top: 11px; border-top: 1px solid var(--line); padding-top: 9px; color: var(--muted); font-size: 8.5px; line-height: 1.5; }
.organization-playbook > div { display: grid; gap: 8px; margin-top: 13px; }
.organization-playbook article { display: grid; gap: 7px; border-left: 3px solid var(--green); background: #f7faf9; padding: 10px 11px; }
.organization-playbook article > span { display: grid; gap: 2px; }
.organization-playbook article strong { overflow-wrap: anywhere; color: var(--navy-deep); font-size: 10px; }
.organization-playbook article small { color: var(--muted); font-size: 8px; }
.organization-playbook article p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--ink); font-size: 9px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.empty-playbook { justify-items: center; border: 1px dashed var(--line); border-radius: 6px; padding: 18px; text-align: center; }
.empty-playbook span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--line-soft); color: var(--navy); font-family: var(--font-mono), monospace; font-size: 9px; }
.empty-playbook strong { color: var(--navy-deep); font-size: 10px; }
.empty-playbook small { color: var(--muted); font-size: 8.5px; line-height: 1.5; }

@media (max-width: 1120px) {
  .learning-review-panel { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); }
  .learning-review-panel > div:last-child { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
}

@media (max-width: 900px) {
  .learning-layout { grid-template-columns: 1fr; }
  .learning-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-cycle > span:nth-child(2) { border-right: 0; }
  .learning-cycle > span:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .learning-review-panel { grid-template-columns: 1fr; align-items: stretch; }
  .learning-review-panel > div:last-child { grid-column: auto; }
}

@media (max-width: 620px) {
  .learning-header { align-items: stretch; }
  .learning-status-chip { width: 100%; min-width: 0; }
  .learning-cycle, .learning-metrics, .learning-side-column, .outcome-form-grid { grid-template-columns: 1fr; }
  .learning-cycle > span { border-right: 0; border-bottom: 1px solid var(--line); }
  .learning-cycle > span:last-child { border-bottom: 0; }
  .outcome-form-grid label.wide { grid-column: auto; }
  .learning-author-actions { align-items: stretch; flex-direction: column; }
  .learning-author-actions > span { margin-right: 0; }
  .learning-author-actions .button { width: 100%; }
  .learning-review-panel > div:last-child { flex-direction: column; }
  .learning-review-panel .button { width: 100%; }
}
.manual-checklist-gate{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin:16px 0;border:1px solid #cbd9ef;border-left:4px solid #29479b;border-radius:14px;background:#f7f9fd}.manual-checklist-gate>span{min-width:0}.manual-checklist-gate small{display:block;color:#29479b;font-size:11px;font-weight:800;letter-spacing:.08em}.manual-checklist-gate strong{display:block;margin-top:5px;color:#202838;font-size:16px;overflow-wrap:anywhere}.manual-checklist-gate p{margin:5px 0 0;color:#5d6675;font-size:13px}.manual-checklist-gate .file-button{flex:0 0 auto}@media(max-width:720px){.manual-checklist-gate{align-items:stretch;flex-direction:column}.manual-checklist-gate .file-button{justify-content:center;width:100%}}
/* Sprint collaboration and multi-level approval */
.sprint-workflow-panel{display:grid;gap:20px;margin-bottom:24px}.sprint-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.sprint-panel-head small,.sprint-card header small{color:var(--muted);font-weight:700;letter-spacing:.08em;text-transform:uppercase}.sprint-panel-head h2,.sprint-card h3{margin:4px 0}.sprint-panel-head p,.sprint-card p{margin:0;color:var(--muted)}.sprint-create-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#f7f9fd}.sprint-create-form label,.sprint-create-form fieldset{display:grid;gap:7px}.sprint-create-form .wide{grid-column:1/-1}.sprint-create-form fieldset{border:0;padding:0;margin:0}.sprint-member-options{display:flex;flex-wrap:wrap;gap:8px}.sprint-member-options label{display:flex;grid-auto-flow:column;align-items:center;gap:7px;padding:8px 11px;border:1px solid var(--line);border-radius:999px;background:#fff}.sprint-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.sprint-card{padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}.sprint-card.active{border-color:#3153a5;box-shadow:0 8px 24px rgba(35,61,130,.08)}.sprint-card header{display:flex;justify-content:space-between;gap:12px}.sprint-progress{display:flex;align-items:center;gap:10px;margin:14px 0}.sprint-progress i{height:7px;flex:1;border-radius:99px;background:#e8edf6;overflow:hidden}.sprint-progress i b{display:block;height:100%;background:#3153a5}.sprint-progress span{font-size:12px;color:var(--muted)}.sprint-members{display:flex;flex-wrap:wrap;gap:6px}.sprint-members span{padding:5px 8px;border-radius:999px;background:#edf2fb;color:#29458f;font-size:12px;font-weight:700}.sprint-empty{display:grid;gap:4px;padding:20px;border:1px dashed var(--line);border-radius:14px;color:var(--muted)}.sprint-assignment-table{display:grid;border:1px solid var(--line);border-radius:16px;overflow:hidden}.sprint-assignment-table>header,.sprint-assignment-table>div{display:grid;grid-template-columns:minmax(260px,1fr) 210px minmax(220px,.7fr);align-items:center;gap:14px;padding:12px 14px;border-bottom:1px solid var(--line)}.sprint-assignment-table>header{background:#f5f7fb}.sprint-assignment-table>header small{grid-column:2/-1;color:var(--muted)}.sprint-assignment-table>div:last-child{border-bottom:0}.sprint-assignment-table>div>span{display:grid;gap:3px}.sprint-assignment-table>div>span small{color:var(--muted)}.assignment-members{display:flex;flex-wrap:wrap;gap:5px}.assignment-members label input{position:absolute;opacity:0}.assignment-members label span{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;font-size:11px;font-weight:800;color:var(--muted);cursor:pointer}.assignment-members label input:checked+span{background:#2e4b98;border-color:#2e4b98;color:#fff}.approval-stage-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.approval-stage-strip span{display:grid;gap:3px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}.approval-stage-strip span.approved{border-color:#8fc7ae;background:#eff9f4}.approval-stage-strip span.changes{border-color:#e9a0a8;background:#fff3f4}.approval-stage-strip small{color:var(--muted)}.review-feedback-list{display:grid;gap:8px;margin:12px 0}.review-feedback-list article{padding:11px 13px;border-left:3px solid #3153a5;background:#f4f7fd;border-radius:0 10px 10px 0}.review-feedback-list article header{display:flex;justify-content:space-between;gap:8px}.review-feedback-list article p{margin:6px 0 0}.review-feedback-composer{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}.review-feedback-composer textarea{width:100%}
@media(max-width:800px){.sprint-panel-head{display:grid}.sprint-create-form{grid-template-columns:1fr}.sprint-create-form .wide{grid-column:auto}.sprint-assignment-table>header,.sprint-assignment-table>div{grid-template-columns:1fr}.sprint-assignment-table>header small{grid-column:auto}.approval-stage-strip{grid-template-columns:1fr}}

/* Intake choice, AI gap analysis, and pull-based sprint backlog */
.tender-intake-modal { width: min(920px, calc(100vw - 32px)); }
.tender-intake-form { gap: 24px; }
.tender-meta-fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(190px, .7fr); gap: 14px; }
.intake-mode-fieldset { margin: 0; border: 0; padding: 0; }
.intake-mode-fieldset > legend { color: var(--navy-deep); font-size: 16px; font-weight: 800; }
.intake-mode-fieldset > p { margin: 6px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.intake-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.intake-mode-options > label { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; min-height: 184px; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.intake-mode-options > label:hover { border-color: #9cb0df; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(24, 48, 104, .08); }
.intake-mode-options > label.selected { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(41, 71, 155, .1); background: linear-gradient(145deg, #fff, #f3f6fc); }
.intake-mode-options > label > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.intake-mode-mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: var(--navy); color: #fff; font-family: var(--font-mono), monospace; font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.intake-mode-mark.manual { background: #617bb7; }
.intake-mode-options > label > span:last-child { display: grid; align-content: start; gap: 5px; min-width: 0; }
.intake-mode-options small { color: var(--navy); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.intake-mode-options strong { color: var(--navy-deep); font-size: 15px; line-height: 1.35; }
.intake-mode-options p { margin: 3px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.intake-mode-options em { align-self: end; color: var(--navy); font-size: 11px; font-style: normal; font-weight: 700; }

.checklist-intake-workflow { display: grid; gap: 14px; margin: 16px 0; border: 1px solid #c8d5ed; border-radius: 16px; padding: 18px; background: linear-gradient(145deg, #f8faff, #fff); }
.checklist-intake-workflow > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.checklist-intake-workflow > header > span { display: grid; gap: 4px; }
.checklist-intake-workflow > header small, .checklist-gap-analysis header small, .sprint-pull-backlog > header small { color: var(--navy); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.checklist-intake-workflow > header strong { color: var(--navy-deep); font-size: 17px; }
.checklist-intake-workflow > header p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.checklist-intake-workflow > header > b { flex: 0 0 auto; border-radius: 999px; padding: 7px 10px; background: #e8eef9; color: var(--navy); font-size: 10px; letter-spacing: .08em; }
.intake-progress-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.ai-document .intake-progress-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.intake-progress-grid > article { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 10px; min-height: 112px; border: 1px solid var(--line); border-radius: 13px; padding: 13px; background: #fff; }
.intake-progress-grid > article > i { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #e7ebf3; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 900; }
.intake-progress-grid > article.complete { border-color: #9dcab6; background: #f3faf7; }
.intake-progress-grid > article.complete > i { background: #237357; color: #fff; }
.intake-progress-grid > article.active { border-color: #9cb0df; box-shadow: inset 0 0 0 1px rgba(41, 71, 155, .08); }
.intake-progress-grid > article.active > i { background: var(--navy); color: #fff; }
.intake-progress-grid > article > span { display: grid; gap: 4px; min-width: 0; }
.intake-progress-grid small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.intake-progress-grid strong { overflow-wrap: anywhere; color: var(--navy-deep); font-size: 12px; line-height: 1.35; }
.intake-progress-grid em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.45; }
.intake-progress-grid .button { grid-column: 1 / -1; justify-self: start; margin-top: auto; }
.intake-format-note { margin: 0; border-left: 3px solid #7d94ca; padding: 7px 10px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.checklist-gap-analysis { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 15px; }
.checklist-gap-analysis > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.checklist-gap-analysis > header > span { display: grid; gap: 3px; }
.checklist-gap-analysis > header strong { color: var(--navy-deep); font-size: 14px; }
.checklist-gap-analysis > header p { margin: 0; color: var(--muted); font-size: 11px; }
.checklist-gap-analysis > header > b { color: var(--navy); font-size: 26px; }
.checklist-gap-analysis > header > b i { font-size: 10px; font-style: normal; }
.gap-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.gap-checks > span { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 9px; background: #fff; }
.gap-checks > span > i { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #b1b8c5; }
.gap-checks > span.pass > i { background: #23815d; }.gap-checks > span.fail > i { background: var(--red); }.gap-checks > span.attention > i { background: #bd7c20; }
.gap-checks span span { display: grid; gap: 2px; }.gap-checks strong { font-size: 11px; }.gap-checks small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.gap-findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gap-findings article { display: grid; gap: 4px; border: 1px solid var(--line); border-left: 3px solid #7887a8; border-radius: 10px; padding: 10px 11px; background: #fff; }
.gap-findings article.critical { border-left-color: var(--red); }.gap-findings article.warning { border-left-color: #bd7c20; }
.gap-findings article > b { color: var(--muted); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }.gap-findings article > strong { font-size: 11px; }.gap-findings article p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }.gap-findings article em { color: var(--ink); font-size: 9px; font-style: normal; }

.manual-gap-review { display: grid; gap: 14px; }
.manual-gap-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; border: 1px solid #bfd1eb; border-left: 4px solid var(--navy); border-radius: 14px; background: linear-gradient(135deg, #f4f8ff, #fff); padding: 18px; }
.manual-gap-summary > span { display: grid; gap: 5px; min-width: 0; }.manual-gap-summary > span > small { color: var(--navy); font-size: 10px; font-weight: 900; letter-spacing: .1em; }.manual-gap-summary > span > strong { color: var(--navy-deep); font-size: 17px; }.manual-gap-summary p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.manual-gap-summary > div { display: grid; grid-template-columns: repeat(4, minmax(68px, 1fr)); gap: 7px; }.manual-gap-summary > div > b { display: grid; justify-items: center; gap: 2px; border: 1px solid var(--line); border-top: 3px solid #8290a8; border-radius: 10px; background: #fff; padding: 9px 10px; }.manual-gap-summary > div > b.matched { border-top-color: var(--green); }.manual-gap-summary > div > b.adjustment { border-top-color: #bd7c20; }.manual-gap-summary > div > b.addition { border-top-color: var(--navy); }.manual-gap-summary > div > b.manual-only { border-top-color: #8c6672; }.manual-gap-summary > div strong { font-size: 20px; }.manual-gap-summary > div small { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.manual-gap-group { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.manual-gap-group > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); background: #f8fafc; padding: 12px 15px; }.manual-gap-group > header > span { display: grid; gap: 2px; }.manual-gap-group > header strong { font-size: 13px; }.manual-gap-group > header small { color: var(--muted); font-size: 10px; }.manual-gap-group > header > b { color: var(--navy); font-size: 10px; }.manual-gap-group > div { display: grid; gap: 0; }
.manual-gap-group article { border-bottom: 1px solid var(--line); }.manual-gap-group article:last-child { border-bottom: 0; }.manual-gap-group article > label { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px 15px; cursor: pointer; }.manual-gap-group article input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }.manual-gap-group article label > span { display: grid; gap: 4px; min-width: 0; }.manual-gap-group article label > span > small:first-child { color: var(--navy); font-size: 9px; font-weight: 900; letter-spacing: .06em; }.manual-gap-group article strong { font-size: 13px; }.manual-gap-group article em { color: var(--muted); font-size: 10px; font-style: normal; }.manual-gap-group article p { margin: 2px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }.manual-gap-group article blockquote { margin: 3px 0; border-left: 3px solid #d4deef; padding: 7px 10px; background: #f8fafc; color: var(--ink); font-size: 10px; line-height: 1.5; }.manual-gap-group.adjustment { border-left: 3px solid #bd7c20; }.manual-gap-group.addition { border-left: 3px solid var(--navy); }
.manual-gap-disclosure { border: 1px solid var(--line); border-radius: 12px; background: #fff; }.manual-gap-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; cursor: pointer; }.manual-gap-disclosure > summary > span { display: grid; gap: 2px; }.manual-gap-disclosure > summary strong { font-size: 12px; }.manual-gap-disclosure > summary small { color: var(--muted); font-size: 9px; }.manual-gap-disclosure > div { display: grid; gap: 0; border-top: 1px solid var(--line); max-height: 260px; overflow-y: auto; }.manual-gap-disclosure article { display: grid; gap: 3px; border-bottom: 1px solid var(--line); padding: 10px 14px; }.manual-gap-disclosure article:last-child { border-bottom: 0; }.manual-gap-disclosure article strong { font-size: 11px; }.manual-gap-disclosure article p,.manual-gap-disclosure article small { margin: 0; color: var(--muted); font-size: 9px; }.manual-gap-disclosure.matched { border-color: #b8daca; background: #f8fcfa; }
.gap-decision-summary { display: grid; gap: 10px; border: 1px solid #b8daca; border-left: 4px solid var(--green); border-radius: 13px; background: #f7fcf9; padding: 14px; }.gap-decision-summary > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.gap-decision-summary > header > span { display: grid; gap: 3px; }.gap-decision-summary > header small { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .07em; }.gap-decision-summary > header strong { font-size: 13px; }.gap-decision-summary > header p { margin: 0; color: var(--muted); font-size: 10px; }.gap-decision-summary > header > b { display: grid; min-width: 76px; justify-items: center; color: var(--green); font-size: 26px; }.gap-decision-summary > header > b small { font-size: 8px; text-transform: uppercase; }.gap-decision-summary > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }.gap-decision-summary > div > span { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 9px 11px; }.gap-decision-summary > div strong { font-size: 13px; }.gap-decision-summary > div small { color: var(--muted); font-size: 9px; }

.sprint-pull-backlog { display: grid; gap: 12px; border: 1px solid #c8d5ed; border-radius: 16px; padding: 16px; background: #f7f9fd; }
.sprint-create-form .form-error { margin: 0; border: 1px solid #efb3bc; border-radius: 9px; background: #fff2f4; padding: 9px 11px; color: #a3162d; font-size: 10px; font-weight: 750; }
.sprint-date-shortcut { display: flex; align-items: center; gap: 10px; }.sprint-date-shortcut small { color: var(--muted); font-size: 9px; }
.sprint-pull-backlog > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.sprint-pull-backlog > header > span { display: grid; gap: 3px; }
.sprint-pull-backlog > header strong { color: var(--navy-deep); font-size: 16px; }.sprint-pull-backlog > header p { margin: 0; color: var(--muted); font-size: 11px; }
.sprint-pull-backlog > header > label { display: grid; gap: 4px; min-width: 220px; }.sprint-pull-backlog > header > label small { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.sprint-backlog-list { display: grid; gap: 7px; max-height: 460px; overflow: auto; padding-right: 3px; }
.sprint-backlog-list > article { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff; }
.sprint-backlog-list > article.claimed { border-color: #91c9b1; background: #f2faf6; }
.sprint-backlog-list > article.owned { background: #f3f5f8; }.sprint-backlog-list > article.owned .button { border-color: #d2d7df; background: #e8ebf0; color: #687182; }
.task-row.owned-by-other { cursor: not-allowed; opacity: .72; }
.sprint-backlog-list > article > span { display: grid; gap: 3px; min-width: 0; }.sprint-backlog-list small { color: var(--muted); font-size: 9px; text-transform: uppercase; }.sprint-backlog-list strong { color: var(--navy-deep); font-size: 12px; }.sprint-backlog-list em { overflow-wrap: anywhere; color: var(--muted); font-size: 9px; font-style: normal; }

.sprint-portfolio-monitor { display: grid; gap: 18px; margin-top: 24px; overflow: hidden; }
.sprint-monitor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.sprint-monitor-head > span { display: grid; gap: 4px; max-width: 820px; }
.sprint-monitor-head small { color: var(--navy); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.sprint-monitor-head h2 { margin: 0; color: var(--navy-deep); font-size: clamp(20px, 2vw, 27px); }
.sprint-monitor-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.sprint-monitor-head > b { flex: 0 0 auto; border: 1px solid #c8d5ed; border-radius: 999px; background: #edf2fb; padding: 8px 12px; color: var(--navy); font-size: 11px; }
.sprint-monitor-signals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.sprint-monitor-signals > span { display: grid; gap: 3px; border: 1px solid var(--line); border-top: 3px solid #8190aa; border-radius: 12px; background: #fff; padding: 12px 14px; }
.sprint-monitor-signals > span.claimed { border-top-color: var(--navy); }.sprint-monitor-signals > span.attention { border-top-color: #bd7c20; background: #fffbf4; }.sprint-monitor-signals > span.ready { border-top-color: var(--green); background: #f7fcfa; }
.sprint-monitor-signals small, .sprint-task-facts small, .sprint-monitor-detail > span > small { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.sprint-monitor-signals strong { color: var(--navy-deep); font-size: 24px; }.sprint-monitor-signals em { color: var(--muted); font-size: 9px; font-style: normal; }
.sprint-monitor-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.sprint-monitor-tools label { display: flex; align-items: center; gap: 9px; width: min(460px, 100%); border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 11px; }
.sprint-monitor-tools input { width: 100%; border: 0; outline: 0; background: transparent; padding: 10px 0; font-size: 11px; }
.sprint-monitor-tools > span { color: var(--muted); font-size: 10px; }
.sprint-monitor-list { display: grid; gap: 10px; }
.sprint-monitor-list > article { display: grid; gap: 13px; border: 1px solid var(--line); border-left: 4px solid #98a5bb; border-radius: 14px; background: #fff; padding: 15px 16px; }
.sprint-monitor-list > article.active { border-left-color: var(--navy); box-shadow: 0 8px 22px rgba(35,61,130,.07); }.sprint-monitor-list > article.attention:not(.active) { border-left-color: #bd7c20; }
.sprint-monitor-list > article > header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .32fr); align-items: start; gap: 20px; }
.sprint-monitor-list > article > header > span:first-child { display: grid; gap: 4px; min-width: 0; }.sprint-monitor-list > article > header > span:first-child > small { color: var(--muted); font-size: 9px; }
.sprint-monitor-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }.sprint-monitor-title-line > strong { overflow-wrap: anywhere; color: var(--navy-deep); font-size: 14px; }
.sprint-state { display: grid; justify-items: end; gap: 2px; text-align: right; }.sprint-state small { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }.sprint-state strong { color: #6b7485; font-size: 11px; }.sprint-state.active strong { color: var(--navy); }.sprint-state.completed strong { color: var(--green); }.sprint-state em { max-width: 260px; overflow-wrap: anywhere; color: var(--muted); font-size: 9px; font-style: normal; }
.sprint-task-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.sprint-task-facts > span { display: grid; gap: 3px; border-right: 1px solid var(--line); background: #fbfcfe; padding: 10px 11px; }.sprint-task-facts > span:last-child { border-right: 0; }.sprint-task-facts > span.claimed { background: #f4f7fd; }.sprint-task-facts > span.attention { background: #fff8ed; }.sprint-task-facts > span.ready { background: #f3faf7; }.sprint-task-facts strong { color: var(--navy-deep); font-size: 17px; }
.sprint-monitor-detail { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(260px, 1.25fr) minmax(150px, .55fr) auto; align-items: end; gap: 14px; }
.sprint-monitor-detail > span { display: grid; gap: 6px; min-width: 0; }.sprint-monitor-detail .button { white-space: nowrap; }
.sprint-owner-chips, .sprint-run-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sprint-owner-chips em, .sprint-run-chips em { border-radius: 999px; background: #edf2fb; padding: 5px 8px; color: var(--navy); font-size: 8px; font-style: normal; font-weight: 750; }
.sprint-run-chips em.planned { background: #f3f4f7; color: #687182; }.sprint-run-chips em.completed { background: #eaf7f1; color: #246e56; }.sprint-owner-chips em.empty, .sprint-run-chips em.empty { background: #f3f4f7; color: var(--muted); font-weight: 650; }
.sprint-risk-summary strong { color: var(--ink); font-size: 10px; line-height: 1.4; }

@media (max-width: 860px) {
  .tender-meta-fields, .intake-mode-options, .intake-progress-grid, .ai-document .intake-progress-grid, .gap-checks, .gap-findings { grid-template-columns: 1fr; }
  .intake-mode-options > label { min-height: 0; }
  .checklist-intake-workflow > header, .checklist-gap-analysis > header, .sprint-pull-backlog > header { align-items: stretch; flex-direction: column; }
  .sprint-pull-backlog > header > label { min-width: 0; }
  .manual-gap-summary { grid-template-columns: 1fr; }
  .gap-decision-summary > header { align-items: flex-start; flex-direction: column; }
  .sprint-monitor-signals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sprint-monitor-list > article > header, .sprint-monitor-detail { grid-template-columns: 1fr; }
  .sprint-state { justify-items: start; text-align: left; }
  .sprint-task-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sprint-task-facts > span:nth-child(3) { border-right: 0; }.sprint-task-facts > span:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .sprint-monitor-detail .button { justify-self: start; }
}

@media (max-width: 620px) {
  .intake-mode-options > label { grid-template-columns: 40px minmax(0, 1fr); padding: 14px; }
  .intake-mode-mark { width: 38px; height: 38px; border-radius: 11px; }
  .intake-progress-grid > article { grid-template-columns: 28px minmax(0, 1fr); }
  .sprint-backlog-list > article { align-items: stretch; flex-direction: column; }
  .sprint-backlog-list .button { width: 100%; }
  .manual-gap-summary > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gap-decision-summary > div { grid-template-columns: 1fr; }
  .sprint-monitor-head, .sprint-monitor-tools { align-items: stretch; flex-direction: column; }
  .sprint-monitor-head > b { align-self: flex-start; }
  .sprint-task-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sprint-task-facts > span { border-bottom: 1px solid var(--line); }.sprint-task-facts > span:nth-child(2n) { border-right: 0; }.sprint-task-facts > span:nth-last-child(-n+2) { border-bottom: 0; }
  .sprint-monitor-detail .button { width: 100%; }
}
