.view-tabs { flex-wrap: wrap; }
.portfolio-toolbar {
  display: flex; flex: none; flex-wrap: wrap; align-items: center;
  gap: 7px 12px; padding: 10px 20px; background: #f7fafc; border-bottom: 1px solid #cbd7e2;
  font-size: 13px;
}
.portfolio-toolbar label { font-weight: 700; }
.portfolio-toolbar select, .layer-controls select {
  font: inherit; color: #193954; background: #fff;
  border: 1px solid #9eb3c4; border-radius: 5px; padding: 8px; max-width: 100%;
}
#portfolio-stage-help { color: #456079; }
.strategic-view { display: flex; flex: 1; min-height: 0; }
.strategic-layout { display: flex; flex: 1; min-width: 0; min-height: 0; }
.strategic-main { flex: 1; min-width: 0; padding: 23px; overflow: auto; }
.strategic-heading { max-width: 860px; margin-bottom: 18px; }
.eyebrow { display: block; color: #46627b; font-size: 12px; letter-spacing: .05em; margin-bottom: 7px; text-transform: uppercase; }
.strategic-heading h2 { font-size: 25px; margin: 0 0 9px; }
.strategic-heading p, .strategic-main p, .strategy-detail p { font-size: 14px; line-height: 1.55; margin: 7px 0 12px; }
.strategic-main h3 { font-size: 17px; margin: 0 0 7px; }
.strategy-detail {
  width: 330px; flex: none; overflow: auto; padding: 23px 20px;
  border-left: 1px solid #cbd7e2; background: #fff; overflow-wrap: anywhere;
}
.strategy-detail h2 { font-size: 21px; margin: 0 0 14px; }
.strategy-detail h3 { font-size: 14px; margin: 21px 0 7px; }
.strategy-detail a { color: #205b89; }
.family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.family-card { display: grid; text-align: left; gap: 8px; padding: 14px; line-height: 1.4; align-content: start; border-top: 3px solid #547fa2; }
.family-card span { font-size: 13px; }
.family-card .family-name { font-size: 15px; font-weight: 700; }
.family-card small { color: #47617a; font-size: 12px; }
.family-card[aria-pressed="true"] { background: #e8f2fb; border-color: #346589; }
.vfm-section, .complementary-section { margin-top: 27px; }
.vfm-scroll { overflow-x: auto; }
#vfm-table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 12px; }
#vfm-table caption { text-align: left; color: #456079; padding: 8px 0; }
#vfm-table th { text-align: left; padding: 8px 5px; line-height: 1.35; background: #e4ecf3; border-bottom: 1px solid #b9c9d7; }
#vfm-table thead th { vertical-align: bottom; }
#vfm-table tbody th { min-width: 130px; background: #f4f7fa; }
#vfm-table td { padding: 4px; text-align: center; border-bottom: 1px solid #d3dfe9; }
.rating { display: inline-block; border-radius: 4px; padding: 5px 8px; font-size: 12px; font-weight: 400; }
button.rating { width: 100%; border: 1px solid transparent; min-height: 36px; }
.rating.G { background: #dcebdc; color: #234e35; }
.rating.A { background: #f7e7bd; color: #634b13; }
.rating.R { background: #f2dcd8; color: #792e28; }
.rating.M { background: #e5e5f0; color: #4c4565; }
.rating-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.strategy-footnote { color: #50677d; font-size: 12px !important; }
.instrument-links { display: flex; flex-wrap: wrap; gap: 7px; }
.instrument-links button { display: grid; gap: 5px; padding: 9px 10px; font-size: 13px; text-align: left; max-width: 100%; }
.instrument-links small { font-size: 11px; color: #46627b; }
.strategy-detail .instrument-links { display: grid; }
.empty-group { color: #5a6c7b; font-size: 12px !important; }
.strategy-sources { padding-left: 17px; font-size: 12px; line-height: 1.5; }
.strategy-sources li { margin-bottom: 7px; }
.lifecycle-badge { color: #254f70; font-size: 12px; line-height: 1.4; }
.instrument-stage-basis { color: #46627b; }
.layer-controls { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 10px; }
.layer-controls label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; max-width: 100%; }
.design-message { padding: 11px 14px; background: #fff4d9; border-left: 3px solid #b18b38; }
.early-action-band { padding: 14px 16px; background: #e8eee8; border-radius: 6px; margin-top: 15px; }
.early-action-band .instrument-links { margin-top: 8px; }
.layer-matrix { display: grid; gap: 9px; }
.layer-row { display: grid; grid-template-columns: 130px repeat(3, minmax(0, 1fr)); gap: 8px; }
.layer-head { color: #365772; font-size: 13px; font-weight: 700; }
.layer-head div { padding: 8px 3px; }
.layer-label { display: grid; align-content: center; gap: 10px; background: #e2ebf3; border: 1px solid #c3d2df; text-align: left; }
.layer-label span { font-size: 16px; font-weight: 700; }
.layer-label small { font-size: 12px; line-height: 1.4; }
.layer-label[aria-pressed="true"] { background: #d1e4f3; border-color: #245b84; }
.layer-cell { padding: 10px; border-radius: 6px; background: #edf2f6; }
.layer-cell h3 { font-size: 14px; line-height: 1.4; margin-bottom: 10px; }
.layer-cell.transfer { background: #eeebf5; }
.layer-cell.retention { background: #e7efe9; }
.layer-cell.bridge { background: #edf0f7; }
.layer-cell.delivery { background: #e9eff3; }
.layer-instrument { display: grid; text-align: left; width: 100%; gap: 4px; margin-bottom: 6px; padding: 8px; font-size: 12px; }
.layer-instrument small { font-size: 11px; color: #496078; line-height: 1.4; }
.layer-instrument.unavailable { border: 2px dashed #a5554a; background: #f8ebe7; }
.layer-instrument.delayed { border: 2px dashed #a78331; background: #fff7e6; }
.layer-instrument .stress-label { color: #6b3e20; }
.layer-note { font-size: 12px !important; color: #456079; }
.mobile-window { display: none; }
.residual-band { padding: 14px; background: #f2e9df; border-radius: 6px; }
.delivery-strip { border-top: 2px solid #8eacbe; border-bottom: 1px solid #c3d2df; padding: 17px 0 9px; margin-top: 21px; }
.strategy-disclosure { margin: 20px 0; }
.strategy-disclosure summary { cursor: pointer; font-size: 14px; color: #205b89; padding: 8px 0; }
.strategy-disclosure a { color: #205b89; }
.benchmark-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.benchmark-table :is(th, td) { text-align: left; padding: 8px; border-bottom: 1px solid #c7d5e0; }
.benchmark-table caption { text-align: left; padding: 8px 0; }
button:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #bd7825; outline-offset: 2px; }
@media (max-width: 1150px) {
  .strategy-detail { width: 285px; padding: 18px 14px; }
  .strategic-main { padding: 18px; }
  .layer-row { grid-template-columns: 105px repeat(3, minmax(0, 1fr)); gap: 5px; }
  .layer-cell { padding: 7px; }
}
@media (max-width: 950px) {
  .strategic-layout { flex-direction: column; }
  .strategy-detail { width: 100%; height: 36%; min-height: 160px; border-left: 0; border-top: 1px solid #b9cbd9; }
  .strategic-main { min-height: 0; }
}
@media (max-width: 620px) {
  .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layer-head { display: none; }
  .layer-row { grid-template-columns: 1fr; gap: 5px; }
  .layer-label { gap: 4px; margin-top: 12px; }
  .mobile-window { display: block; color: #456079; font-size: 12px; margin-bottom: 6px; }
  .portfolio-toolbar { padding: 8px 12px; }
  #portfolio-stage-help { display: none; }
  .portfolio-toolbar select, .layer-controls select { font-size: 16px; }
  .strategic-main { padding: 14px; }
  .view-tabs { gap: 2px; padding: 4px 9px 0; }
  .view-tabs button { padding: 8px; font-size: 13px; }
}
@media print {
  html, body { height: auto !important; overflow: visible !important; }
  .portfolio-toolbar, .layer-controls { display: none; }
  .strategic-view, .strategic-layout { display: block; }
  .strategic-main, .strategy-detail { overflow: visible; width: 100%; height: auto; }
  .layer-row, .family-card { break-inside: avoid; }
}
