/* Owner-directed six-scenario RAMP 90S prelaunch correction, Nov 5, 2026.
   Visual hierarchy only. All factual states and authorization remain in JS. */
:root {
  --r90-owner-review: var(--r90-stage-review);
  --r90-owner-align: var(--r90-stage-align);
  --r90-owner-mobilize: var(--r90-stage-mobilize);
  --r90-owner-prove: var(--r90-stage-prove);
  --r90-owner-sustain: var(--r90-stage-sustain);
  --r90-owner-ink: #123349;
}
#view .r90-owner-source-finding,
#view .r90-owner-action-card,
#view .r90-owner-takeover-overview,
#view .r90-owner-revision-check,
#view .r90-owner-conditional-watchlist {
  border: 1px solid #dae5e8;
  border-radius: 11px;
  background: var(--surface, #fff);
  box-shadow: 0 2px 8px rgba(9,46,72,.045);
}
#view .r90-owner-source-finding {
  padding: 14px 16px;
  border-left: 5px solid var(--r90-owner-review);
}
#view .r90-owner-source-finding > strong {
  display: block; font-size: 16px; line-height: 1.4; color: var(--r90-owner-ink);
}
#view .r90-owner-source-finding .citation {margin: 8px 0 0; font-size: 12px;}
#view .r90-owner-source-detail > summary,
#view .r90-owner-action-support > summary,
#view .r90-owner-report-technical > summary,
#view .r90-owner-report-expert > summary {
  cursor: pointer; font-weight: 600; line-height: 1.5;
}
#view .r90-owner-source-detail,
#view .r90-owner-action-support,
#view .r90-owner-report-expert {
  margin-top: 10px; color: #334e5e;
}
#view .r90-owner-optional-details {
  margin-top: 12px; border: 1px solid #d9e5e9; padding: 11px 14px;
}
#view .r90-owner-optional-details > summary {cursor: pointer; font-weight: 600;}
#view .r90-owner-management-inner {margin-top: 14px;}
#view .r90-owner-bid-fit-lead {font-size: 15px; font-weight: 600; line-height: 1.5;}
#view .r90-owner-takeover-overview {padding: 18px; border-top: 5px solid var(--r90-owner-review);}
#view .r90-owner-takeover-overview h2,
#view .r90-owner-conditional-watchlist h2,
#view .r90-owner-revision-check h2 {margin-top: 0; color: var(--r90-owner-ink);}
#view .r90-owner-takeover-groups {
  display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
#view .r90-owner-takeover-groups > div {
  padding: 12px 14px; background: #f7fafb; border: 1px solid #e1e9ed; border-radius: 8px;
}
#view .r90-owner-takeover-groups h3 {margin: 0 0 8px; font-size: 15px; color: #123349;}
#view .r90-owner-takeover-groups ul {padding-left: 20px; margin: 7px 0 0;}
#view .r90-owner-takeover-groups li {margin-bottom: 8px;}
#view .r90-owner-takeover-groups li span,
#view .r90-owner-takeover-groups li small {display: block;}
#view .r90-owner-action-card {
  border-left: 5px solid var(--r90-owner-mobilize);
  padding: 14px 16px;
}
#view .r90-owner-action-card h3 {font-size: 17px; line-height: 1.4; color: var(--r90-owner-ink);}
#view .r90-owner-recommendation {
  margin: 11px 0; padding: 11px 13px; background: #f2faf8;
  border: 1px solid #d0e9e3; border-radius: 8px;
}
#view .r90-owner-recommendation > strong {font-size: 13px; color: #195c53;}
#view .r90-owner-recommendation p {margin: 5px 0 0; line-height: 1.5; overflow-wrap: anywhere;}
#view .r90-owner-choice-status {font-size: 12px; font-weight: 600; color: #23485b;}
#view .r90-owner-action-card .r90-simple-four {margin: 10px 0;}
#view .r90-owner-action-buttons {display:flex; flex-wrap:wrap; gap:9px; align-items:center;}
#view .r90-owner-action-buttons .btn {min-height: 38px; white-space: normal;}
#view .r90-owner-modify-panel:not([hidden]) {
  padding:12px; margin:10px 0; border:1px solid #c6dde7; border-radius:8px;
}
#view .r90-owner-modify-panel textarea {width:100%; line-height:1.5;}
#view .r90-owner-action-support {padding: 10px 12px; border-top: 1px solid #e1eaeb;}
#view .r90-owner-support-body {margin-top:12px;}
#view .r90-owner-support-body > .inline-actions {margin-top:12px;}
#view .r90-owner-revision-check {border-top: 5px solid var(--r90-owner-prove); padding:18px;}
#view .r90-revision-checklist ol,
#view .r90-owner-revision-issues,
#view .r90-owner-redline ol {padding-left:22px;}
#view .r90-revision-checklist li,
#view .r90-owner-revision-issues li,
#view .r90-owner-conditional-watchlist li {margin-bottom:9px;}
#view .r90-revision-checklist li span,
#view .r90-revision-checklist li small,
#view .r90-owner-revision-issues li span,
#view .r90-owner-conditional-watchlist li span,
#view .r90-owner-conditional-watchlist li small {
  display:block; margin-top:3px; line-height:1.45; overflow-wrap:anywhere;
}
#view .r90-owner-compare-controls {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;
  padding:12px; background:#f5f9fa; border-radius:8px;
}
#view .r90-owner-compare-controls select {width:100%; margin-top:5px; padding:9px; min-width:0;}
#view .r90-owner-compare-controls button {grid-column:1/-1; justify-self:start;}
#view .r90-redline-removed, #view .r90-redline-added {padding:9px 11px; border-radius:7px; margin:7px 0;}
#view .r90-redline-removed {background:#fff2f0; border-left:4px solid #b8352f;}
#view .r90-redline-added {background:#eef9f3; border-left:4px solid #19734c;}
#view .r90-redline-removed strong,
#view .r90-redline-added strong {display:block; margin-bottom:5px; font-size:12px;}
#view .r90-redline-removed del, #view .r90-redline-added ins {overflow-wrap:anywhere;}
#view .r90-owner-conditional-watchlist {padding:16px; border-left:5px solid var(--r90-owner-sustain);}
#view .r90-owner-conditional-watchlist ul {padding-left:21px;}
#view .r90-owner-report-journey {display:grid; gap:12px; margin-bottom:15px;}
#view .r90-owner-report-executive {border-left:5px solid var(--r90-owner-review); padding:16px;}
#view .r90-owner-report-stage {
  padding:16px 19px; border:1px solid #dce5e9;
  border-left:5px solid var(--r90-owner-review);
  border-radius:9px; break-inside:avoid;
}
#view .r90-owner-report-stage h2 {font-size:17px; margin:0 0 9px; line-height:1.3;}
#view .r90-owner-report-stage p {line-height:1.5;}
#view .r90-owner-report-stage ul {margin:8px 0 0; padding-left:21px;}
#view .r90-owner-report-stage li {margin-bottom:9px;}
#view .r90-owner-report-stage li span, #view .r90-owner-report-stage li small {display:block; color:#395667;}
#view .r90-owner-report-align {border-left-color:var(--r90-owner-align);}
#view .r90-owner-report-mobilize {border-left-color:var(--r90-owner-mobilize);}
#view .r90-owner-report-prove {border-left-color:var(--r90-owner-prove);}
#view .r90-owner-report-sustain {border-left-color:var(--r90-owner-sustain);}
#view .r90-owner-report-expert,
#view .r90-owner-report-technical {border:1px solid #d7e4e8; border-radius:8px; padding:12px 14px;}
#view .r90-owner-report-technical-body {margin-top:13px;}
#view [hidden] {display:none!important;}
#view :is(.r90-owner-action-buttons button,.r90-owner-source-detail summary,
  .r90-owner-action-support summary,.r90-owner-report-expert summary,
  .r90-owner-compare-controls button,.r90-owner-optional-details summary):focus-visible {
  outline:3px solid var(--r90-owner-review); outline-offset:3px;
}
#view .r90-owner-accuracy-buttons {display:flex; flex-wrap:wrap; gap:9px; margin-top:10px;}
#view .r90-owner-accuracy-buttons button {min-height:35px; white-space:normal;}
#view .r90-owner-accuracy-status {font-size:12px; font-weight:600; color:#235b55; line-height:1.5;}
#view .r90-owner-proof-card {
  border:1px solid #dce5e9; border-left:5px solid var(--r90-owner-prove);
  border-radius:9px; padding:12px 15px; box-shadow:0 2px 8px rgba(9,46,72,.035);
}
#view .r90-owner-proof-card .r90-prove-card-head {display:flex; justify-content:space-between; gap:12px; align-items:start;}
#view .r90-owner-proof-card .r90-simple-complete-question {display:flex; flex-wrap:wrap; gap:10px; margin-top:12px;}
#view .r90-owner-proof-card .r90-owner-proof-evidence {font-size:13px; color:#26485a; line-height:1.5;}
#view .r90-owner-proof-support {border-top:1px solid #dce5e9; padding:12px 0 0; margin-top:13px;}
#view .r90-owner-proof-support > summary, #view .r90-owner-proof-context > summary {cursor:pointer; font-weight:600;}
#view .r90-owner-proof-support > summary:focus-visible,
#view .r90-owner-proof-context > summary:focus-visible,
#view .r90-owner-accuracy-buttons button:focus-visible {
  outline:3px solid var(--r90-owner-review); outline-offset:3px;
}
#view .r90-owner-proof-context {padding:11px 13px; border:1px solid #d8e5e8; border-radius:8px; margin-bottom:13px;}

@media (max-width:760px) {
  #view .r90-owner-takeover-groups, #view .r90-owner-compare-controls {grid-template-columns:1fr;}
  #view .r90-owner-action-buttons {flex-direction:column; align-items:stretch;}
  #view .r90-owner-action-buttons .btn {width:100%;}
  #view .r90-owner-report-stage {padding:12px;}
}
@media print {
  #view .r90-owner-action-buttons, #view .r90-owner-action-support,
  #view .r90-owner-source-detail {display:none!important;}
  /* Nov 6: essential decisions, Done When, source and proof remain in the
     normal PDF after removal of the full supporting appendix. */
  #view .r90-owner-report-technical, #view .r90-owner-report-expert {display:block!important;}
  #view .r90-owner-report-stage, #view .r90-owner-report-executive {
    box-shadow:none; background:#fff; break-inside:avoid;
  }
  #view .r90-owner-report-journey {display:block;}
  #view .r90-owner-report-stage {margin-bottom:12px;}
}
/* Final owner UAT: bid capacity details are subordinate to Bid Fit. */
#view .r90-pursuit-readiness .r90-owner-bid-capacity-support {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d9e6e9;
  border-radius: 8px;
  background: #f7fafb;
}
#view .r90-owner-bid-capacity-support > summary {
  font-weight: 600;
  cursor: pointer;
  color: #214353;
}
#view .r90-owner-bid-capacity-support > summary:focus-visible {
  outline: 3px solid var(--r90-owner-align);
  outline-offset: 3px;
}
#view .r90-owner-bid-capacity-support > p {
  margin: 10px 0;
  color: #2b4b59;
  line-height: 1.45;
}
#view .r90-owner-bid-capacity-support .r90-capacity-layer {
  margin: 10px 0 0;
  padding: 12px;
  border: none;
  background: transparent;
  box-shadow: none;
}
#view .r90-owner-bid-capacity-support .r90-capacity-head {
  margin-top: 2px;
}
@media (max-width: 760px) {
  #view .r90-owner-bid-capacity-support .r90-capacity-layer {
    padding: 8px 0;
  }
}

/* Submitted/considering bid: keep long review titles from pushing header controls
   beyond the viewport on desktop-width QA screens. Do not clip report contents. */
@media (min-width: 821px) and (max-width: 1240px) {
  body.r90-simple-workflow #appShell:not([hidden]) .topbar > div:first-of-type {
    min-width: 0;
    flex: 1 1 0;
  }
  body.r90-simple-workflow #appShell:not([hidden]) .topbar .top-title {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.r90-simple-workflow #appShell:not([hidden]) .topbar .top-actions {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 50%;
  }
}
