:root {
  color-scheme: dark;
  --bg: #080b0e;
  --panel: #10161b;
  --panel-2: #151d23;
  --panel-3: #1b252d;
  --text: #f3f6f7;
  --muted: #9ba8b1;
  --line: #293640;
  --line-soft: #1f2a32;
  --green: #4de19d;
  --green-dim: rgba(77, 225, 157, 0.12);
  --amber: #ffbd59;
  --amber-dim: rgba(255, 189, 89, 0.12);
  --red: #ff6c6c;
  --red-dim: rgba(255, 108, 108, 0.12);
  --blue: #75a8ff;
  --blue-dim: rgba(117, 168, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% -10%, rgba(77, 225, 157, 0.12), transparent 30rem),
    radial-gradient(circle at 0 34%, rgba(117, 168, 255, 0.08), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.shell { min-height: 100vh; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 11, 14, 0.88);
  backdrop-filter: blur(18px);
}
.topbar-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 800; letter-spacing: 0.14em; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77, 225, 157, 0.58);
  border-radius: 11px;
  color: var(--green);
  background: linear-gradient(145deg, rgba(77, 225, 157, 0.12), rgba(77, 225, 157, 0.02));
  box-shadow: inset 0 0 18px rgba(77, 225, 157, 0.06);
  letter-spacing: 0;
}
.beta-label { color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.user-chip { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.user-chip strong { color: var(--text); }
.link-button { border: 0; background: none; color: var(--muted); padding: 6px; cursor: pointer; }
.link-button:hover { color: var(--text); }

.production-workspace { padding-top: 30px; }
.production-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.production-heading h2 { margin: 4px 0 0; font-size: 24px; }
.production-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.production-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(21, 29, 35, 0.94), rgba(13, 18, 22, 0.94));
  cursor: pointer;
}
.production-card:hover { border-color: #526672; transform: translateY(-1px); }
.production-card.active { border-color: rgba(77, 225, 157, 0.68); box-shadow: inset 0 0 0 1px rgba(77, 225, 157, 0.12); }
.production-card.empty { border-style: dashed; justify-content: center; background: rgba(10, 15, 18, 0.62); }
.production-slot { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.production-status { width: 100%; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }

.hero { padding: 38px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 24px; align-items: end; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 14px; font-size: clamp(36px, 5vw, 64px); line-height: 0.98; letter-spacing: -0.045em; }
h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.025em; }
h3 { font-size: 16px; }
.lead { max-width: 720px; margin-bottom: 0; color: #bdc7cd; font-size: 17px; }

.score-card, .card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(21, 29, 35, 0.95), rgba(13, 18, 22, 0.95));
  box-shadow: var(--shadow);
}
.score-card { padding: 20px; display: grid; grid-template-columns: 94px 1fr; align-items: center; gap: 18px; }
.score-ring {
  --score: 0;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--score) * 1%), #26323a 0);
  position: relative;
}
.score-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--panel); }
.score-ring span { z-index: 1; font-weight: 900; font-size: 23px; }
.score-card .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.score-card .status { margin-top: 4px; font-weight: 800; }

.sessions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px auto 30px; }
.session-tab {
  min-height: 108px;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 22, 27, 0.86);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.session-tab:hover:not(:disabled) { transform: translateY(-2px); border-color: #455762; }
.session-tab.active { border-color: rgba(77, 225, 157, 0.7); background: var(--green-dim); }
.session-tab.complete { border-color: rgba(77, 225, 157, 0.32); }
.session-tab:disabled { cursor: not-allowed; opacity: 0.48; }
.session-number { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.session-title { display: block; margin: 5px 0 8px; font-weight: 800; }
.progress-track { width: 100%; height: 4px; overflow: hidden; border-radius: 9px; background: #26323a; }
.progress-track span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.progress-copy { margin-top: 6px; color: var(--muted); font-size: 11px; }

.stage { padding-bottom: 80px; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 20px; }
.stage-head p { max-width: 690px; color: var(--muted); }
.stage-badge { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 12px; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 20px; box-shadow: none; }
.card-flat { border: 1px solid var(--line-soft); border-radius: 13px; background: #0e1418; padding: 15px; }
.card-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metric { border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; background: rgba(8, 11, 14, 0.5); }
.metric .n { font-size: 24px; font-weight: 900; }
.metric .l { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }

.document-row, .requirement-row, .conflict-row, .checkpoint-row, .department-row, .incident-row {
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: #0d1317;
}
.document-row { display: flex; justify-content: space-between; gap: 14px; padding: 14px; align-items: center; }
.stack { display: grid; gap: 10px; }
.requirement-row { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; }
.requirement-row h3, .conflict-row h3 { margin-bottom: 6px; }
.meta { display: flex; flex-wrap: wrap; gap: 7px 13px; color: var(--muted); font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.badge.green { color: var(--green); background: var(--green-dim); }
.badge.amber { color: var(--amber); background: var(--amber-dim); }
.badge.red { color: var(--red); background: var(--red-dim); }
.badge.blue { color: var(--blue); background: var(--blue-dim); }
.btn { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; background: #172028; color: var(--text); cursor: pointer; text-decoration: none; font-weight: 750; font-size: 13px; }
.btn:hover:not(:disabled) { border-color: #526672; background: #1c2830; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { border-color: rgba(77, 225, 157, 0.65); background: var(--green); color: #07110c; }
.btn.primary:hover:not(:disabled) { background: #67e9ad; }
.btn.danger { border-color: rgba(255, 108, 108, 0.35); color: #ff9b9b; background: var(--red-dim); }
.btn.ghost { background: transparent; }
.btn.small-button { min-height: 32px; padding: 6px 9px; font-size: 11px; }

.upload-zone {
  position: relative;
  width: 100%;
  min-height: 118px;
  margin-top: 18px;
  display: grid;
  place-content: center;
  gap: 5px;
  overflow: hidden;
  border: 1px dashed #4a5b66;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  background: #0c1115;
  cursor: pointer;
}
.upload-zone strong {
  display: block;
  line-height: 1.3;
}
.upload-zone .small {
  display: block;
  line-height: 1.4;
}
.upload-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-zone:hover {
  border-color: rgba(77, 225, 157, 0.48);
  background: rgba(77, 225, 157, 0.035);
}
.upload-zone.busy { opacity: 0.55; pointer-events: none; }

.conflict-row { padding: 18px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.compare > div { border: 1px solid var(--line-soft); border-radius: 11px; padding: 12px; background: #11191e; }
.resolution-form { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; gap: 9px; align-items: end; }
.field { display: grid; gap: 6px; }
.field label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
input, select, textarea { width: 100%; border: 1px solid #35444e; border-radius: 10px; background: #0a0f12; color: var(--text); padding: 10px 11px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(77, 225, 157, 0.09); }
textarea { min-height: 86px; resize: vertical; }
.owner-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line-soft); padding: 11px 0; }
.owner-row:last-child { border-bottom: 0; }

.department-row { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr auto; gap: 14px; align-items: center; padding: 13px; }
.department-bar { height: 6px; border-radius: 99px; background: #26323a; overflow: hidden; }
.department-bar span { display: block; height: 100%; background: var(--green); }

.checkpoint-row { display: flex; align-items: center; gap: 13px; padding: 14px; cursor: pointer; }
.checkpoint-row input { width: 20px; height: 20px; accent-color: var(--green); }
.checkpoint-row.complete { border-color: rgba(77, 225, 157, 0.28); background: var(--green-dim); }
.checkpoint-copy { flex: 1; }
.checkpoint-copy strong { display: block; }

.callout { border-left: 3px solid var(--blue); border-radius: 10px; padding: 13px 15px; color: #c5d3dc; background: var(--blue-dim); font-size: 13px; }
.callout.success { border-left-color: var(--green); background: var(--green-dim); }
.callout.warning { border-left-color: var(--amber); background: var(--amber-dim); }
.callout.danger { border-left-color: var(--red); background: var(--red-dim); }
.report-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.feedback { margin-top: 18px; }
.feedback-form { display: grid; grid-template-columns: 130px 130px minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.footer { border-top: 1px solid var(--line-soft); padding: 24px 0 38px; color: var(--muted); font-size: 12px; }

.start-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 0; }
.start-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 34px; align-items: center; }
.start-copy h1 { font-size: clamp(48px, 7vw, 88px); }
.start-copy .lead { font-size: 19px; }
.start-card { padding: 26px; }
.journey { display: grid; gap: 10px; margin-top: 25px; }
.journey-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; color: #c5d0d6; }
.journey-item span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); font-size: 12px; font-weight: 900; }
.start-form { display: grid; gap: 15px; }
.privacy-note { color: var(--muted); font-size: 11px; }

.boot { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.boot .brand-mark { width: 48px; height: 48px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 22px; transform: translate(-50%, 30px); max-width: min(480px, calc(100% - 32px)); padding: 11px 15px; border: 1px solid var(--line); border-radius: 11px; background: #152029; color: var(--text); opacity: 0; pointer-events: none; transition: all 180ms ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255, 108, 108, 0.55); }
.evidence-dialog { width: min(620px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 17px; background: #11181d; color: var(--text); padding: 26px; box-shadow: var(--shadow); }
.production-dialog { width: min(700px, calc(100% - 28px)); }
.evidence-dialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 25px; cursor: pointer; color: var(--muted); }
.quote { margin-top: 14px; border-left: 3px solid var(--green); padding: 11px 14px; color: #d6dde1; background: var(--green-dim); }
.hidden { display: none !important; }

@media (max-width: 880px) {
  .hero-grid, .start-layout, .grid.two, .grid.three { grid-template-columns: 1fr; }
  .production-grid { grid-template-columns: 1fr; }
  .production-card { min-height: 110px; }
  .sessions { grid-template-columns: 1fr; }
  .session-tab { min-height: auto; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .resolution-form, .feedback-form { grid-template-columns: 1fr; }
  .owner-row { grid-template-columns: 1fr; }
  .requirement-row { grid-template-columns: 1fr; }
  .requirement-row .actions { justify-content: flex-start; }
  .department-row { grid-template-columns: 1fr auto; }
  .department-bar { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 22px, 1180px); }
  .topbar-inner { min-height: 60px; }
  .beta-label { display: none; }
  .user-chip .user-role { display: none; }
  .hero { padding-top: 34px; }
  .production-heading { align-items: flex-start; flex-direction: column; }
  h1 { font-size: 40px; }
  .score-card { grid-template-columns: 78px 1fr; }
  .score-ring { width: 74px; height: 74px; }
  .stage-head { display: block; }
  .stage-badge { display: inline-flex; margin-top: 8px; }
  .compare { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr 1fr; }
}


/* RIGOR FLOW REDESIGN — PASS 1 */
body {
  background:
    radial-gradient(circle at 72% -14%, rgba(77, 225, 157, 0.07), transparent 34rem),
    var(--bg);
}

.production-switcher {
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.production-switcher-label {
  flex: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.production-pills {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}
.production-pills::-webkit-scrollbar { display: none; }
.production-pill {
  min-width: 158px;
  display: grid;
  gap: 1px;
  padding: 9px 12px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.production-pill:hover { background: rgba(255,255,255,0.025); color: var(--text); }
.production-pill.active {
  border-color: rgba(77,225,157,0.28);
  background: rgba(77,225,157,0.055);
  color: var(--text);
}
.production-pill.add { border-color: var(--line-soft); border-style: dashed; }
.production-pill-kicker {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.production-pill strong { font-size: 12px; line-height: 1.25; }
.production-pill > span:last-child { font-size: 10px; color: var(--muted); }

.hero { padding: 42px 0 26px; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 42px; align-items: center; }
.show-identity h1 { margin-bottom: 10px; }
.readiness-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 16px 0 16px 22px;
  border-left: 1px solid var(--line);
}
.readiness-label {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.readiness-number {
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: .95;
}
.readiness-copy { display: grid; gap: 4px; }
.readiness-copy strong { font-size: 13px; }
.readiness-copy span { color: var(--muted); font-size: 11px; line-height: 1.45; }

.flow-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 8px auto 38px;
  padding: 0 6px;
}
.flow-path::before {
  content: "";
  position: absolute;
  left: calc(16.666% + 19px);
  right: calc(16.666% + 19px);
  top: 18px;
  height: 1px;
  background: var(--line);
}
.flow-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
}
.flow-step:nth-child(2) { justify-content: center; }
.flow-step:nth-child(3) { justify-content: flex-end; }
.flow-step:disabled { cursor: default; opacity: .38; }
.flow-dot {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}
.flow-step.active .flow-dot {
  border-color: rgba(77,225,157,.58);
  background: var(--green);
  color: #07110c;
}
.flow-step.complete .flow-dot {
  border-color: rgba(77,225,157,.34);
  color: var(--green);
}
.flow-copy { display: grid; gap: 1px; }
.flow-copy strong { color: #cbd3d7; font-size: 12px; font-weight: 750; white-space: nowrap; }
.flow-copy small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.flow-step.active .flow-copy strong { color: var(--text); }
.flow-step.active .flow-copy small,
.flow-step.complete .flow-copy small { color: var(--green); }

.stage { padding-bottom: 72px; }
.stage-head { margin-bottom: 24px; }
.stage-head h2 { max-width: 720px; margin-bottom: 9px; }
.stage-badge {
  border-color: var(--line-soft);
  background: rgba(255,255,255,.015);
}

.card, .score-card {
  background: rgba(13,18,22,.78);
  border-color: var(--line-soft);
}
.card { border-radius: 14px; }
.metric { background: transparent; }

.badge.blue { color: var(--muted); background: rgba(255,255,255,.04); }
.callout { background: rgba(117,168,255,.06); }
.footer { color: #6f7c84; }

@media (max-width: 880px) {
  .production-switcher { align-items: flex-start; flex-direction: column; gap: 8px; }
  .production-pills { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .readiness-card {
    grid-template-columns: 110px 1fr;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
  .flow-path { margin-top: 2px; }
}

@media (max-width: 560px) {
  .production-pill { min-width: 142px; padding: 8px 10px; }
  .hero { padding-top: 30px; }
  .readiness-card { grid-template-columns: 92px 1fr; gap: 15px; }
  .readiness-number { font-size: 42px; }
  .flow-path { padding: 0; margin-bottom: 30px; }
  .flow-path::before {
    left: calc(16.666% + 14px);
    right: calc(16.666% + 14px);
    top: 15px;
  }
  .flow-step { gap: 5px; padding: 0 2px; }
  .flow-dot { width: 30px; height: 30px; }
  .flow-copy strong { font-size: 10px; white-space: normal; line-height: 1.15; }
  .flow-copy small { display: none; }
  .flow-step:nth-child(2) { justify-content: center; }
  .flow-step:nth-child(3) { justify-content: flex-end; }
}


/* RIGOR FLOW REDESIGN — PASS 2 */
.hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1;
}

.focused-head {
  display: block;
  max-width: 920px;
  margin-bottom: 20px;
}
.focused-head h2 {
  max-width: 900px;
  margin-bottom: 8px;
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.12;
}
.focused-head p {
  max-width: 700px;
  margin-bottom: 0;
}

.source-grid {
  align-items: stretch;
}
.source-card {
  min-height: 0;
  padding: 18px;
}
.source-card > p {
  margin-bottom: 0;
}

.requirement-focus {
  padding: 22px;
}
.requirement-focus-head {
  align-items: center;
}
.requirement-focus-head h3 {
  margin: 3px 0 3px;
  font-size: 20px;
}
.requirement-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.requirement-tools select {
  width: auto;
  min-width: 190px;
}
.requirement-stack {
  margin-top: 16px;
}
.requirement-focus .requirement-row {
  padding: 22px;
  min-height: 138px;
  align-items: center;
}
.requirement-focus .requirement-row h3 {
  font-size: 19px;
  line-height: 1.3;
}
.requirement-focus .requirement-row > div:first-child > p {
  max-width: 760px;
}
.requirement-focus .actions {
  align-self: center;
}
.requirement-focus .btn.primary {
  min-width: 88px;
}

@media (max-width: 880px) {
  .hero h1 { font-size: clamp(34px, 8vw, 48px); }
  .focused-head h2 { font-size: clamp(26px, 6vw, 34px); }
  .requirement-focus { padding: 18px; }
  .requirement-focus .requirement-row { min-height: 0; padding: 18px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 36px; }
  .focused-head h2 { font-size: 28px; }
  .requirement-focus-head {
    align-items: flex-start;
    gap: 12px;
  }
  .requirement-tools {
    justify-content: stretch;
  }
  .requirement-tools select {
    width: 100%;
  }
  .requirement-focus .actions {
    width: 100%;
    justify-content: flex-start;
  }
}


/* RIGOR PARTNER DEMO HARDENING */
.start-actions {
  display: grid;
  gap: 9px;
}
.start-actions .btn {
  width: 100%;
}

.incident-resolution-card {
  border-color: rgba(255, 189, 89, 0.24);
}
.incident-resolution-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.25fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}
.incident-resolution-form:first-child {
  border-top: 0;
}
.incident-resolution-form input {
  min-width: 0;
}

@media (max-width: 880px) {
  .incident-resolution-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .incident-resolution-form .btn {
    justify-self: start;
  }
}


/* RIGOR PARTNER / INVESTOR PRESENTATION LAYER */
.field-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.partner-brief {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(77, 225, 157, 0.22);
  border-radius: 12px;
  background: rgba(77, 225, 157, 0.045);
}

.partner-brief > p {
  margin: 0;
  color: #d9e2e6;
  font-size: 13px;
  line-height: 1.55;
}

.partner-checks {
  display: grid;
  gap: 8px;
}

.partner-checks > div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: start;
}

.partner-checks > div > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77, 225, 157, 0.32);
  border-radius: 50%;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
}

.partner-checks strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.partner-checks small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.partner-direction {
  padding-top: 10px;
  border-top: 1px solid rgba(77, 225, 157, 0.12);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.partner-direction strong {
  color: #cbd6db;
}

@media (max-width: 560px) {
  .partner-brief {
    padding: 14px;
  }
}
