:root {
  color-scheme: light;
  --bg: #f5f7f3;
  --surface: #ffffff;
  --surface-strong: #eef4f6;
  --ink: #182326;
  --muted: #627176;
  --line: #d9e0df;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --red: #b73535;
  --amber: #b7791f;
  --steel: #496772;
  --mint: #d8efe9;
  --shadow: 0 18px 50px rgba(25, 39, 42, 0.12);
}

.compliance-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 18px 20px 26px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid rgba(24, 35, 38, 0.08);
  background: #f7faf8;
}

.compliance-footer a {
  color: inherit;
  text-decoration: none;
}

.compliance-footer a:hover {
  color: var(--primary);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

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

button {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: #fbfcfa;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: grid;
  gap: 8px;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--mint);
  color: var(--teal-dark);
}

.sidebar-panel {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel-label,
.eyebrow {
  display: block;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar-panel strong {
  display: block;
  margin-top: 8px;
  line-height: 1.55;
}

main {
  min-width: 0;
  padding: 24px clamp(18px, 3vw, 44px) 56px;
}

.admin-page {
  max-width: 1280px;
  margin: 0 auto;
}

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

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 20px;
  background: rgba(245, 247, 243, 0.92);
  backdrop-filter: blur(14px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(620px, 100%);
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

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

.topbar-actions {
  flex-wrap: nowrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  padding: 0 16px;
  background: var(--teal);
  color: white;
}

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

.secondary-button {
  padding: 0 16px;
  border-color: #9bb8b6;
  background: white;
  color: var(--teal-dark);
}

.ghost-button {
  padding: 0 14px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.icon-button {
  width: 38px;
  min-height: 38px;
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 32px;
  align-items: stretch;
  min-height: 520px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px) 0;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.motor-board {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 500px;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid #c9d6d5;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.28)),
    repeating-linear-gradient(0deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.08) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(73, 103, 114, 0.08), rgba(73, 103, 114, 0.08) 1px, transparent 1px, transparent 28px),
    #e5eceb;
  box-shadow: var(--shadow);
}

.motor-photo {
  position: absolute;
  left: 18px;
  bottom: 74px;
  z-index: 3;
  width: min(250px, 44%);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 14px 34px rgba(25, 39, 42, 0.2);
}

.motor-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.motor-photo figcaption {
  padding: 8px 10px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
}

.motor-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

#motorCanvas {
  width: min(92%, 620px);
  height: auto;
}

.visual-stats {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  gap: 10px;
  width: min(230px, calc(100% - 36px));
}

.visual-stats div {
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.visual-stats span,
.metrics-row span,
.challenge-card .meta,
.score-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.visual-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--teal-dark);
  font-size: 28px;
}

.spec-strip {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px;
}

.spec-strip span,
.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.metrics-row article {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metrics-row strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.onboarding-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.onboarding-card {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.onboarding-card h2 {
  margin: 6px 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
}

.onboarding-card p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.engineer-card {
  border-left: 4px solid var(--steel);
}

.company-card {
  border-left: 4px solid var(--teal);
}

.expert-card {
  border-left: 4px solid #7c8a98;
}

.supplier-card {
  border-left: 4px solid #9a6a2f;
}

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

.tabs,
.role-switch {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow-x: auto;
}

.tabs button,
.role-switch button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.tabs button.is-active,
.role-switch button.is-active {
  background: var(--teal);
  color: white;
}

.toggle-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

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

.challenge-card {
  display: flex;
  min-height: 318px;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(25, 39, 42, 0.06);
}

.challenge-card h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.35;
}

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

.card-header,
.card-footer,
.card-stats {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.card-stats {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.card-stats strong {
  display: block;
  margin-top: 3px;
}

.status-pill.open {
  background: #e5f5ef;
  color: var(--teal-dark);
}

.status-pill.nda {
  background: #fff2da;
  color: var(--amber);
}

.status-pill.private {
  background: #f8e6e6;
  color: var(--red);
}

.status-pill.pending,
.status-dot.pending {
  background: #fff2da;
  color: var(--amber);
}

.status-pill.approved,
.status-dot.approved {
  background: #e5f5ef;
  color: var(--teal-dark);
}

.status-pill.supplement,
.status-dot.supplement {
  background: #eef4f6;
  color: var(--steel);
}

.status-pill.rejected,
.status-dot.rejected {
  background: #f8e6e6;
  color: var(--red);
}

.workflow-section,
.rules-section,
.template-section,
.ai-section,
.split-section,
.experts-section,
.admin-section {
  margin-top: 56px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
}

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

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

.rule-summary article,
.rule-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.rule-summary article {
  padding: 18px;
}

.rule-summary span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.rule-summary h3,
.rule-card h3 {
  margin-bottom: 8px;
}

.rule-summary p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.rule-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
}

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

.payout-table div {
  display: grid;
  grid-template-columns: minmax(90px, 0.5fr) minmax(92px, 0.42fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.payout-table span {
  color: var(--ink);
  font-weight: 900;
}

.payout-table strong {
  color: var(--teal-dark);
  white-space: nowrap;
}

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

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

.rule-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.rule-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--teal);
  content: "";
}

.responsibility-section {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

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

.responsibility-grid article {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.responsibility-grid dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.responsibility-grid dt {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--steel);
  font-size: 12px;
  font-weight: 900;
}

.responsibility-grid dd {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.65;
}

.legal-notice {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

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

.legal-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.legal-grid h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.legal-grid p,
.legal-warning p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-warning {
  padding: 16px;
  border: 1px solid rgba(183, 121, 31, 0.28);
  border-radius: 8px;
  background: #fff8ea;
}

.legal-warning strong {
  display: block;
  margin-bottom: 6px;
  color: var(--amber);
}

.permission-board {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.permission-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.permission-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.permission-table th,
.permission-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.permission-table thead th {
  background: var(--surface-strong);
  color: var(--steel);
  font-size: 12px;
  font-weight: 900;
}

.permission-table tbody th {
  color: var(--ink);
  font-weight: 900;
}

.permission-table td {
  color: var(--muted);
  font-weight: 700;
}

.page-access-gate {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
  padding: 28px;
}

.page-access-gate > div {
  width: min(980px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.page-access-gate h1 {
  margin: 6px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
}

.page-access-gate p {
  color: var(--muted);
  line-height: 1.7;
}

.permission-matrix {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.permission-matrix article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.permission-matrix h3 {
  margin-bottom: 8px;
}

.permission-matrix ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.workflow-grid article,
.template-grid article,
.review-panel,
.submit-panel,
.expert-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.workflow-grid article,
.template-grid article {
  padding: 18px;
}

.workflow-grid h3,
.template-grid h3,
.expert-grid h3 {
  margin-bottom: 8px;
}

.workflow-grid p,
.template-grid p,
.expert-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.template-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.template-overview {
  display: grid;
  gap: 14px;
}

.template-score,
.curve-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.template-score {
  padding: 18px;
}

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

.template-score strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 36px;
}

.curve-preview {
  min-height: 320px;
  padding: 12px;
  background:
    repeating-linear-gradient(0deg, rgba(73, 103, 114, 0.07), rgba(73, 103, 114, 0.07) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(90deg, rgba(73, 103, 114, 0.07), rgba(73, 103, 114, 0.07) 1px, transparent 1px, transparent 32px),
    white;
}

.curve-preview canvas {
  width: 100%;
  height: auto;
}

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

.ai-command,
.ai-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.ai-command {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(360px, 1fr);
  gap: 14px;
  align-items: end;
  padding: 18px;
}

.ai-command .ai-actions {
  grid-column: 1 / -1;
}

.ai-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-grid,
.ai-wide-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

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

.ai-wide-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.8fr) minmax(280px, 0.8fr);
}

.ai-panel {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.panel-title {
  display: flex;
  gap: 10px;
  align-items: center;
}

.panel-title h3 {
  margin-bottom: 0;
}

.ai-output,
.expert-brief,
.fingerprint-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.ai-output p,
.expert-brief p,
.fingerprint-list p,
.small-note {
  margin-bottom: 0;
}

.ai-output ul,
.expert-brief ul,
.fingerprint-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.ai-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-kpi-row span {
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

.ai-kpi-row strong {
  display: block;
  margin-top: 3px;
  color: var(--teal-dark);
  font-size: 22px;
}

.score-board {
  display: grid;
  gap: 10px;
}

.score-board div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
}

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

.comparison-table {
  overflow-x: auto;
}

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

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

.comparison-table th {
  color: var(--teal-dark);
  font-weight: 900;
}

.small-note {
  color: var(--steel);
  font-size: 12px;
}

.step-number {
  color: var(--teal-dark);
  font-weight: 900;
}

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

.review-panel,
.submit-panel {
  padding: 22px;
}

.score-list {
  display: grid;
  gap: 14px;
}

.score-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
}

meter {
  width: 100%;
  height: 12px;
}

.submit-panel,
.modal-card {
  display: grid;
  gap: 14px;
}

.hidden-submit-form {
  display: none;
}

.submit-entry p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.submit-entry-list span {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

.link-button {
  text-decoration: none;
}

.submit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.submit-hero h1 {
  max-width: 980px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 58px);
}

.submit-hero p {
  max-width: 860px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.solution-page-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.target-spec-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.orchestration-page {
  max-width: 1440px;
}

.orchestration-panel,
.orchestration-grid {
  margin-bottom: 18px;
}

.orchestration-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.orchestration-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
}

.review-process,
.orchestration-grid,
.scientific-grid {
  display: grid;
  gap: 14px;
}

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

.review-process article,
.scientific-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.review-process span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 900;
}

.review-process h3,
.scientific-grid h3 {
  margin-bottom: 8px;
}

.review-process p,
.scientific-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.expert-match-list,
.anonymous-scoreboard,
.conflict-panel,
.meeting-panel {
  display: grid;
  gap: 10px;
}

.expert-match-card,
.meeting-card,
.minutes-box,
.final-score,
.vote-table div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.expert-match-card.is-leader {
  border-color: rgba(15, 118, 110, 0.36);
  background: var(--mint);
}

.expert-match-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.expert-match-card span,
.expert-match-card p,
.meeting-card p,
.minutes-box li,
.vote-table p,
.final-score p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.conflict-kpis span {
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.conflict-kpis strong,
.final-score strong {
  display: block;
  color: var(--teal-dark);
  font-size: 26px;
}

.meeting-card {
  display: grid;
  gap: 10px;
}

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

.vote-table div {
  display: grid;
  grid-template-columns: 56px 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.vote-table span {
  color: var(--muted);
  font-weight: 900;
}

.vote-table strong {
  color: var(--ink);
  font-size: 22px;
}

.final-score strong {
  font-size: 42px;
}

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

.review-orchestration-link {
  margin-top: 16px;
}

.target-spec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 16px;
  align-items: start;
}

.target-spec-head h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.target-spec-head p {
  max-width: 920px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.target-spec-meta {
  display: grid;
  gap: 8px;
}

.target-spec-meta span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

.target-spec-meta strong {
  color: var(--ink);
}

.target-spec-table-wrap,
.spec-compare-wrap {
  overflow-x: auto;
}

.target-spec-table,
.spec-compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.target-spec-table th,
.target-spec-table td,
.spec-compare-table th,
.spec-compare-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.target-spec-table thead th,
.spec-compare-table thead th {
  background: var(--surface-strong);
  color: var(--steel);
  font-size: 12px;
  font-weight: 900;
}

.target-spec-table tbody th,
.spec-compare-table tbody th {
  width: 150px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.target-spec-table td,
.spec-compare-table td {
  color: var(--steel);
  font-size: 13px;
  font-weight: 700;
}

.spec-compare-table input {
  min-width: 180px;
  height: 40px;
  padding: 0 10px;
  font-size: 13px;
}

.compare-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.compare-status.is-missing {
  background: #edf1f2;
  color: var(--muted);
}

.compare-status.is-meets {
  background: #d8efe9;
  color: var(--teal-dark);
}

.compare-status.is-risk {
  background: #f8e0dc;
  color: var(--red);
}

.compare-status.is-review {
  background: #fff1d6;
  color: var(--amber);
}

label {
  display: grid;
  gap: 7px;
  color: #314246;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd7d7;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: 0;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 110px;
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 700;
}

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

.expert-heading {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  justify-content: space-between;
}

.expert-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.expert-grid article {
  display: flex;
  gap: 14px;
  padding: 18px;
}

.supplier-section {
  margin-top: 24px;
}

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

.supplier-rules article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.supplier-rules h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.supplier-rules p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.supplier-grid article small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.role-portal-page {
  padding-bottom: 72px;
}

.role-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.supplier-portal-page .role-entry-grid {
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.05fr) minmax(300px, 0.82fr);
}

.role-auth-form,
.portal-profile-form {
  display: grid;
  gap: 14px;
}

.portal-dashboard {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

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

.portal-stats p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.portal-rules {
  margin-top: 0;
}

.portal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.supplier-audit-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(154, 106, 47, 0.28);
  border-radius: 8px;
  background: #fffaf2;
}

.supplier-audit-box h4,
.supplier-audit-box p {
  margin: 0;
}

.supplier-audit-box p {
  color: var(--muted);
  line-height: 1.65;
}

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

.supplier-audit-grid label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 700;
}

.supplier-review-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.supplier-audit-guide {
  grid-column: 1 / -1;
  margin-top: 18px;
}

.expert-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--teal-dark);
  font-weight: 900;
}

.admin-locked,
.admin-dashboard,
.workspace-locked,
.user-dashboard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-locked,
.workspace-locked {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
}

.admin-locked div,
.workspace-locked div {
  display: grid;
  gap: 8px;
}

.admin-locked h3,
.admin-locked p,
.workspace-locked h3,
.workspace-locked p {
  margin-bottom: 0;
}

.admin-locked p,
.workspace-locked p {
  color: var(--muted);
}

.admin-dashboard,
.user-dashboard {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.workspace-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.workspace-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.workspace-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.workspace-card strong {
  display: block;
  margin: 8px 0;
  font-size: 28px;
}

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

.workspace-card-link {
  margin-top: 12px;
}

.expert-review-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(240px, 0.8fr) minmax(300px, 1.2fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.conflict-check {
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.conflict-check input {
  width: 18px;
  height: 18px;
}

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

.expert-span {
  grid-column: 1 / -1;
}

.expert-solution-summary,
.attachment-list,
.expert-ai-notes,
.expert-minutes {
  display: grid;
  gap: 10px;
}

.expert-summary-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.expert-summary-kpis span,
.attachment-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.expert-summary-kpis strong {
  display: block;
  color: var(--teal-dark);
  font-size: 24px;
}

.attachment-item {
  display: grid;
  grid-template-columns: minmax(90px, 0.5fr) minmax(0, 1fr) minmax(100px, 0.6fr);
  gap: 10px;
  align-items: center;
}

.attachment-item span {
  color: var(--ink);
  font-weight: 900;
}

.attachment-item strong {
  color: var(--teal-dark);
}

.attachment-item p {
  margin-bottom: 0;
}

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

.expert-score-form label {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.expert-score-form output {
  color: var(--teal-dark);
  font-weight: 900;
}

.expert-final-score {
  margin-top: 12px;
}

.case-page {
  max-width: 1440px;
}

.permission-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.permission-panel h2 {
  margin: 6px 0 8px;
}

.permission-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.permission-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.permission-controls button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--steel);
  font-weight: 900;
}

.permission-controls button.is-active {
  border-color: rgba(15, 118, 110, 0.3);
  background: var(--mint);
  color: var(--teal-dark);
}

.permission-summary {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.permission-summary strong {
  display: block;
  margin-bottom: 4px;
}

[data-access-level] {
  position: relative;
}

[data-access-level].is-locked > :not(.locked-overlay) {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px dashed rgba(183, 121, 31, 0.45);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.92);
  color: var(--amber);
  text-align: center;
}

.locked-overlay p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
}

.access-note {
  max-width: 900px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.case-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.case-timeline article,
.case-bid-card,
.case-ai-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.case-timeline span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 900;
}

.case-timeline h3,
.case-bid-card h3 {
  margin-bottom: 8px;
}

.case-timeline p,
.case-bid-card p,
.case-ai-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.case-grid,
.case-bid-grid,
.case-ai-grid,
.case-review-layout {
  display: grid;
  gap: 18px;
}

.case-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.7fr);
  align-items: start;
}

.case-main-card {
  margin-bottom: 0;
}

.case-payout {
  display: grid;
  gap: 10px;
}

.case-payout div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.case-payout span,
.case-ai-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.case-payout strong,
.case-ai-card strong {
  display: block;
  margin: 4px 0;
  color: var(--teal-dark);
  font-size: 24px;
}

.case-section {
  margin-top: 34px;
}

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

.case-bid-card {
  display: grid;
  gap: 12px;
}

.case-bid-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

.case-review-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.case-result-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.case-result-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.case-result-table th,
.case-result-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.case-result-table th {
  background: var(--surface-strong);
  color: var(--steel);
  font-size: 12px;
  font-weight: 900;
}

.admin-topline {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.admin-topline h3 {
  margin-bottom: 0;
}

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

.admin-metrics article,
.detail-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.admin-metrics span,
.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.admin-metrics strong,
.detail-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

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

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

.review-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 8px 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.review-item.is-active {
  border-color: rgba(15, 118, 110, 0.5);
  background: var(--mint);
}

.review-item strong,
.review-item small {
  grid-column: 2;
}

.review-item small {
  color: var(--muted);
  line-height: 1.5;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
}

.review-detail {
  display: grid;
  gap: 16px;
  min-height: 420px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

.review-detail-head h3 {
  margin: 6px 0 4px;
}

.review-detail-head p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.review-block {
  display: grid;
  gap: 8px;
}

.review-block h4 {
  margin: 0;
}

.review-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-button {
  color: var(--red);
}

.modal {
  width: min(640px, calc(100% - 28px));
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
}

#challengeModal {
  width: min(880px, calc(100% - 28px));
}

.modal::backdrop {
  background: rgba(18, 33, 35, 0.42);
  backdrop-filter: blur(5px);
}

.modal-card {
  position: relative;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 26px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.wide-modal {
  width: min(840px, calc(100vw - 28px));
}

.access-modal {
  width: min(760px, calc(100% - 28px));
}

.access-card {
  gap: 18px;
}

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

.access-option {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.access-option h3,
.access-option p {
  margin-bottom: 0;
}

.access-option p {
  color: var(--muted);
  line-height: 1.65;
}

.access-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

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

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

.modal-intro {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.template-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.template-tabs span {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
}

.form-section {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.form-section legend {
  padding: 0 8px;
  color: var(--teal-dark);
  font-weight: 900;
}

.curve-map-grid,
.upload-grid,
.simulation-upload-grid,
.weight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.file-drop {
  min-height: 88px;
  place-items: center;
  border: 1px dashed #9bb8b6;
  border-radius: 8px;
  background: white;
  color: var(--teal-dark);
  text-align: center;
}

.file-drop small {
  max-width: 210px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.file-drop input {
  height: auto;
  border: 0;
  padding: 0 12px 12px;
  font-size: 12px;
}

.weight-grid label {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.weight-grid input {
  grid-column: 1 / -1;
  height: 26px;
  padding: 0;
}

.weight-grid output {
  color: var(--teal-dark);
  font-weight: 900;
}

.ai-check {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: var(--mint);
}

.solution-completeness {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: var(--mint);
}

.solution-completeness span {
  display: block;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.solution-completeness strong {
  display: block;
  margin-top: 3px;
  font-size: 28px;
}

.solution-completeness p {
  max-width: 520px;
  margin-bottom: 0;
  color: #315c58;
  line-height: 1.6;
}

.ai-check span {
  display: block;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.ai-check strong {
  display: block;
  margin-top: 3px;
  font-size: 28px;
}

.ai-check p {
  max-width: 520px;
  margin-bottom: 0;
  color: #315c58;
  line-height: 1.6;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

[data-icon] {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  flex: 0 0 auto;
}

[data-icon] svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 14px 18px;
  }

  .main-nav {
    display: flex;
    overflow-x: auto;
  }

  .sidebar-panel {
    display: none;
  }

  .hero-section,
  .split-section {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

  .template-layout,
  .ai-command,
  .ai-grid,
  .ai-wide-grid,
  .admin-workspace,
  .orchestration-controls,
  .role-entry-grid,
  .supplier-portal-page .role-entry-grid,
  .review-process,
  .orchestration-grid,
  .permission-panel,
  .case-timeline,
  .case-grid,
  .case-bid-grid,
  .case-ai-grid,
  .case-review-layout,
  .expert-review-toolbar,
  .expert-review-grid,
  .target-spec-head,
  .submit-hero,
  .compact-grid,
  .scientific-grid {
    grid-template-columns: 1fr;
  }

  .supplier-rules {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  main {
    padding: 14px 14px 42px;
  }

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

  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .hero-actions,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .hero-section {
    min-height: 0;
  }

  .motor-board {
    min-height: 430px;
  }

  .motor-photo {
    left: 14px;
    bottom: 76px;
    width: min(210px, 58%);
  }

  .metrics-row,
  .onboarding-section,
  .challenge-grid,
  .workflow-grid,
  .rule-summary,
  .rules-grid,
  .responsibility-grid,
  .legal-grid,
  .template-grid,
  .curve-map-grid,
  .upload-grid,
  .simulation-upload-grid,
  .weight-grid,
  .ai-kpi-row,
  .admin-metrics,
  .portal-stats,
  .detail-grid,
  .workspace-grid,
  .access-grid,
  .submit-entry-list,
  .expert-grid,
  .supplier-rules,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .conflict-kpis,
  .expert-summary-kpis,
  .expert-score-form,
  .supplier-audit-grid,
  .attachment-item,
  .vote-table div {
    grid-template-columns: 1fr;
  }

  .permission-matrix {
    grid-template-columns: 1fr;
  }

  .admin-locked,
  .workspace-locked,
  .admin-topline,
  .review-detail-head,
  .expert-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .expert-actions {
    justify-content: stretch;
  }

  .ai-check {
    align-items: flex-start;
    flex-direction: column;
  }

  .solution-completeness {
    align-items: flex-start;
    flex-direction: column;
  }

  .onboarding-card {
    align-items: stretch;
    flex-direction: column;
  }

  .score-list div {
    grid-template-columns: 1fr;
  }

  .payout-table div {
    grid-template-columns: 1fr;
  }
}
