/* Opportunities: a focused workspace. Keep layout and controls together here. */
.opp-shell {
  --opp-surface: #132035;
  --opp-inset: #0c1420;
  --opp-border: #354c6a;
  --opp-muted: #93a2b8;
  width: min(1328px, 100%);
  max-width: 1328px;
  padding-inline: 32px;
}
.opp-shell [hidden] { display: none !important; }
.opp-shell main { container: opportunity / inline-size; }
.opp-shell .opp-eyebrow { margin: 0 0 8px; color: #83b4f7; font-size: 10px; letter-spacing: 1.6px; line-height: 1.5; }
.opp-shell .opp-tool-nav { gap: 4px; padding-top: 14px; }
.opp-shell .opp-tool-nav a { padding: 8px 12px; font-size: 12px; border-radius: 7px; }
.opp-shell .opp-tool-nav a[aria-current=page] { background: linear-gradient(155deg,#304b70,#1b2c45); border-color: #52719b; color: #dce9fc; box-shadow: inset 0 1px 0 #d1e6ff2b,0 3px 9px #02091630; }

/* Preserve the original interactive clock and hero geometry from opportunity-horizon.css. */
.opp-hero {
  padding: 42px 0 34px;
  gap: 32px;
}
.opp-hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -2px;
  margin: 14px 0;
}
.opp-hero p:not(.opp-eyebrow) {
  font-size: 14px;
  margin-bottom: 0;
}

.opp-shell .opp-workspace-tabs { display: flex; gap: 3px; width: max-content; max-width: 100%; margin: 0 0 24px; padding: 4px; border: 1px solid #354a66; border-radius: 10px; background: linear-gradient(#101c2c,#0c1523); box-shadow: inset 0 2px 5px #0005,0 1px 0 #c4e0ff0a; }
.opp-shell .opp-workspace-tabs button { display: flex; align-items: center; justify-content: center; min-height: 37px; margin: 0; padding: 8px 16px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #94a3b9; font: 500 12px var(--font-family); cursor: pointer; }
.opp-shell .opp-workspace-tabs button[aria-selected=true] { background: linear-gradient(150deg,#3b5a84,#254163 50%,#1b304b); border-color: #6381a7; color: #e9f2ff; box-shadow: inset 0 1px 0 #d9ebff45,inset 1px 0 0 #c9e3ff0c,0 3px 8px #02071155; }
.opp-shell .opp-workspace-tabs button span { margin-left: 8px; padding: 1px 6px; min-width: 19px; border-radius: 4px; background: #2b3d57; color: #b7d3fa; font-size: 10px; }
.opp-shell .opp-panel { margin-bottom: 24px; padding: 26px; background: radial-gradient(ellipse at 0% 0%,#83b8ff15,transparent 56%),linear-gradient(135deg,#1b2b42,#131f31 55%,#101b2b); border: 1px solid var(--opp-border); border-radius: 16px; box-shadow: inset 0 1px 0 #d5e6ff25,inset 1px 0 0 #c9e3ff09,0 12px 32px #01071040; }
.opp-shell .opp-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.opp-shell .opp-heading > div:first-child { min-width: 0; }
.opp-shell .opp-heading h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.55px; }
.opp-shell .opp-heading p:not(.opp-eyebrow) { margin: 8px 0 0; color: var(--opp-muted); font-size: 12px; line-height: 1.7; }
.opp-shell .opp-chip { padding: 6px 10px; border: 1px solid #486585; border-radius: 7px; background: linear-gradient(145deg,#2a4363,#182c45); color: #bdd7fc; box-shadow: inset 0 1px 0 #d5e6ff1c; font-size: 10px; }
.opp-shell .opp-fields { display: grid; gap: 16px; align-items: end; }
.opp-shell .opp-essential-fields { grid-template-columns: repeat(4,minmax(0,1fr)); }
.opp-shell label:not(.opp-check) { gap: 7px; color: #a7b6cb; font-size: 11px; line-height: 1.5; }
.opp-shell input:not([type=checkbox]),.opp-shell select { height: 44px; margin: 0; padding: 10px 12px; border: 1px solid #344056; border-radius: 8px; background: linear-gradient(#0a1422,#101c2c); color: #e2ebfa; font-size: 13px; box-shadow: inset 0 2px 4px #01071050,0 1px 0 #c9e4ff07; transition: border-color .16s,background-color .16s; }
.opp-shell input:not([type=checkbox]):hover:not(:disabled),.opp-shell select:hover:not(:disabled) { border-color: #526887; }
.opp-shell input:not([type=checkbox]):focus,.opp-shell select:focus { border-color: #78a7e6; background: #101b2b; }
.opp-shell .opp-check input { width: 16px; height: 16px; margin: 0; accent-color: #91baff; }
.opp-shell .opp-check { color: #c5d0e1; font-size: 12px; line-height: 1.5; }
.opp-shell .opp-leagues { min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 23px; padding: 10px 12px 12px; border: 1px solid #29384e; border-radius: 10px; background: #0d1623; }
.opp-shell .opp-leagues legend { padding: 0 6px; font-size: 11px; color: #a5b5cc; }
.opp-shell .opp-leagues label { min-height: 34px; padding: 6px 10px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; }
.opp-shell .opp-leagues label:has(input:checked) { background: linear-gradient(145deg,#3d5d86,#233d5e); border-color: #5d80aa; color: #e1edff; box-shadow: inset 0 1px 0 #d1e8ff30,0 2px 5px #04091035; }
.opp-shell .opp-leagues > span { margin-left: auto; font-size: 10px; color: #899bb4; }
.opp-shell .opp-section-label { display: flex; align-items: baseline; gap: 12px; margin: 24px 0 12px; }
.opp-shell .opp-section-label h3 { margin: 0; font-size: 13px; font-weight: 600; }
.opp-shell .opp-section-label span { color: #899bb2; font-size: 11px; line-height: 1.6; }
.opp-shell .opp-book-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: start; gap: 10px; margin: 0 0 20px; }
.opp-shell .opp-book { position: relative; padding: 15px; background: linear-gradient(140deg,#18263b,#0e1929 76%); border: 1px solid #344963; border-radius: 11px; box-shadow: inset 0 1px 0 #cbe3ff12,0 4px 10px #02061025; transform: none; transition: border-color .16s,background-color .16s; }
.opp-shell .opp-book.is-selected { background: radial-gradient(ellipse at 10% 0%,#9cc6ff20,transparent 64%),linear-gradient(135deg,#2b4568,#1a2e49 54%,#14253d); border-color: #6a8fb9; box-shadow: inset 0 1px 0 #d6eaff4a,inset 1px 0 0 #b9d7ff12,0 6px 18px #02071145; }
.opp-shell .opp-book:hover { border-color: #587493; }
.opp-shell .opp-book:focus-within { border-color: #95bbef; }
.opp-shell .opp-book > .opp-check { min-height: 34px; gap: 12px; flex-wrap: nowrap; cursor: pointer; }
.opp-shell .opp-book .book-logo { display: inline-block; width: 82px; height: 29px; margin: 0; border-radius: 0; object-fit: contain; object-position: left center; }
.opp-shell .opp-book-symbol { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: #253b56; color: #c1dafa; font-weight: 700; }
/* Names remain available to assistive technology and become visible if no logo exists. */
.opp-shell .opp-book > .opp-check:has(.book-logo) .opp-book-name { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.opp-shell .opp-book-summary { display: flex; align-items: center; min-height: 30px; margin: 10px 0 0; color: #9eafc8; font-size: 10px; line-height: 1.6; }
.opp-shell .opp-book summary { min-height: 33px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #293b54; color: #a4bedd; font-size: 10px; line-height: 1.6; cursor: pointer; }
.opp-shell .opp-book details label { margin-top: 12px; font-size: 10px; }
.opp-shell .opp-book details input { height: 38px; padding: 8px; font-size: 12px; }
.opp-shell .opp-book details .opp-check input { width: 15px; height: 15px; }
.opp-shell .opp-book input:disabled { opacity: .45; }
.opp-shell .opp-book .profile-picker { gap: 7px; margin-bottom: 0; padding-top: 10px; border-color: #293b54; }
.opp-shell .opp-book .profile-picker select { width: 100%; max-width: 100%; height: 36px; padding: 6px 8px; font-size: 10px; }
.opp-shell .opp-book .profile-picker .text-button { font-size: 10px; }
.opp-shell .opp-advanced { padding: 14px 0; border-block: 1px solid #2b374b; color: #b2c2d8; font-size: 12px; }
.opp-shell .opp-advanced summary { display: flex; gap: 9px; align-items: center; cursor: pointer; list-style: none; font-weight: 500; }
.opp-shell .opp-advanced summary::-webkit-details-marker { display: none; }
.opp-shell .opp-advanced summary::before { content: '+'; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #3b506d; border-radius: 4px; color: #9dbdec; font-size: 13px; font-weight: 400; }
.opp-shell .opp-advanced[open] summary::before { content: '\2212'; }
.opp-shell .opp-advanced summary > span { margin-left: auto; color: #8b9db7; font-size: 10px; font-weight: 400; }
.opp-shell .opp-advanced .opp-fields { grid-template-columns: 1fr 1fr 1.4fr; margin-top: 18px; }
.opp-shell .opp-note { color: #8e9fb8; font-size: 11px; line-height: 1.75; }
.opp-shell #opp-scope-note { margin-top: 11px; }
.opp-shell .opp-actions { gap: 10px; align-items: center; }
.opp-shell #opportunity-form > .opp-actions { margin-top: 21px; }
.opp-shell .opp-primary,.opp-shell .opp-secondary { min-height: 42px; padding: 11px 16px; border-radius: 8px; font-size: 12px; line-height: 1.4; font-weight: 600; }
.opp-shell .opp-primary { background: linear-gradient(165deg,#d0e5ff,#a8ccff 38%,#7cabee); border-color: #bfdcff; color: #0b1c34; box-shadow: inset 0 1px 0 #f4faffbb,inset 0 -1px 0 #4379bd55,0 4px 14px #5289dc20; }
.opp-shell .opp-primary:hover:not(:disabled) { background: linear-gradient(165deg,#e0eeff,#b5d5ff 38%,#8db8f4); box-shadow: inset 0 1px 0 #ffffffbb,0 6px 18px #6a9fe030; }
.opp-shell .opp-secondary { background: linear-gradient(150deg,#304968,#1b2f49 64%,#17283e); border-color: #4b678a; color: #d0e1f7; box-shadow: inset 0 1px 0 #d0e6ff27,0 3px 8px #02081235; }
.opp-shell .opp-secondary:hover:not(:disabled) { background: linear-gradient(150deg,#3b587b,#244061 70%); border-color: #7394bc; }
.opp-shell button:disabled { cursor: not-allowed; }
.opp-shell #opp-progress { margin-left: auto; font-size: 11px; color: #9aabc2; }

/* Results use a stable left-to-right hierarchy: fixture, stakes, minimum return. */
.opp-shell #opp-results { scroll-margin-top: 24px; margin-top: 32px; }
.opp-shell #opp-results > .opp-heading { margin-bottom: 19px; }
.opp-shell #opp-summary { max-width: 750px; }
.opp-shell .opp-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); overflow: hidden; margin-bottom: 16px; border: 1px solid #3d5676; border-radius: 12px; background: radial-gradient(ellipse at 12% 0%,#6c9dde1d,transparent 65%),linear-gradient(135deg,#20334d,#142238 70%); box-shadow: inset 0 1px 0 #d2e7ff2a,0 7px 20px #01071035; }
.opp-shell .opp-metrics > div { padding: 19px 20px; border-right: 1px solid #29374c; }
.opp-shell .opp-metrics > div:last-child { border-right: 0; }
.opp-shell .opp-metrics small { display: block; color: #a0afc5; font-size: 10px; }
.opp-shell .opp-metrics strong { display: block; margin: 6px 0; color: #e5eefb; font-size: 26px; font-weight: 600; letter-spacing: -.8px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.opp-shell .opp-metrics > div:nth-child(2) strong,.opp-shell .opp-metrics > div:nth-child(3) strong { color: #91dfc5; }
.opp-shell .opp-metrics span { color: #8295af; font-size: 10px; }
.opp-shell .opp-source-details { margin: 0 0 18px; padding: 13px 16px; border: 1px solid #29364a; border-radius: 9px; background: #0d1522; }
.opp-shell .opp-source-details summary { display: flex; align-items: center; gap: 9px; color: #b2c5df; font-size: 11px; list-style: none; cursor: pointer; }
.opp-shell .opp-source-details summary::-webkit-details-marker { display: none; }
.opp-shell .opp-source-details summary::before { content: '+'; font-size: 14px; color: #88aee1; }
.opp-shell .opp-source-details[open] summary::before { content: '\2212'; }
.opp-shell .opp-source-details summary span { float: none; margin-left: auto; text-align: right; color: #93a7c3; font-size: 10px; }
.opp-shell .opp-source-status { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 16px 0 0; }
.opp-shell .opp-source-item { min-width: 0; padding: 12px; background: #142033; border-left: 2px solid #71bca3; border-radius: 5px; color: #c1d2e9; font-size: 11px; }
.opp-shell .opp-source-item strong { font-weight: 500; }
.opp-shell .opp-source-item small { display: block; margin-top: 5px; color: #97a8c0; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.opp-shell .opp-source-item.failed { border-color: #dcaa78; }
.opp-shell .opp-result-tools { display: grid; grid-template-columns: minmax(210px,1.8fr) minmax(120px,1fr) minmax(110px,.8fr) minmax(145px,1.1fr); align-items: end; gap: 12px; margin: 24px 0 18px; }
.opp-shell .opp-result { padding: 24px; margin-bottom: 16px; background: radial-gradient(ellipse at 0% 0%,#8abaff15,transparent 58%),linear-gradient(135deg,#203249,#142135 60%,#111d2e); border: 1px solid #3f5878; border-radius: 14px; box-shadow: inset 0 1px 0 #d5e8ff2b,inset 1px 0 0 #d5e8ff08,0 10px 28px #0107103d; }
.opp-shell .opp-result:hover { border-color: #6989af; box-shadow: inset 0 1px 0 #d5e8ff3d,0 12px 30px #01071045; }
.opp-shell .opp-result .opp-heading { display: grid; grid-template-columns: minmax(0,1fr) 192px; align-items: start; gap: 24px; margin-bottom: 0; }
.opp-shell .opp-result .opp-eyebrow { font-size: 9px; letter-spacing: 1.3px; }
.opp-shell .opp-result h3 { margin: 0 0 9px; font-size: 20px; font-weight: 600; letter-spacing: -.5px; line-height: 1.4; overflow-wrap: anywhere; }
.opp-shell .opp-result .opp-heading p:not(.opp-eyebrow) { margin-top: 0; color: #97abc5; font-size: 11px; line-height: 1.85; }
.opp-shell .opp-return { min-width: 0; padding: 2px 0 2px 20px; border-left: 1px solid #314156; text-align: right; }
.opp-shell .opp-return strong { display: block; margin: 5px 0 8px; color: #83ddbd; font-size: 30px; font-weight: 600; line-height: 1.3; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.opp-shell .opp-return.negative strong { color: #f19e9e; }
.opp-shell .opp-return small { color: #99abc3; font-size: 9px; line-height: 1.7; }
.opp-shell .opp-legs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 19px 0 16px; }
.opp-shell .opp-leg { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 16px; border: 1px solid #344c69; border-radius: 9px; background: linear-gradient(150deg,#112238,#0b1726); box-shadow: inset 0 1px 0 #d0e6ff10,inset 0 2px 6px #02071020; }
.opp-shell .opp-leg > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.opp-shell .opp-leg > div:last-child { white-space: nowrap; text-align: right; }
.opp-shell .opp-leg strong { margin: 6px 0; font-size: 14px; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; }
.opp-shell .opp-leg small { color: #98b6df; font-size: 10px; }
.opp-shell .opp-leg > div:last-child strong { font-size: 17px; }
.opp-shell .opp-result > .opp-actions { margin-top: 0; gap: 8px; }
.opp-shell .opp-result > .opp-actions button { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.opp-shell .opp-result details { margin-top: 17px; padding-top: 14px; border-top: 1px solid #2b394e; color: #9db7d8; font-size: 11px; }
.opp-shell .opp-result summary { padding: 2px 0; line-height: 1.6; }
.opp-shell .opp-result table { margin-top: 14px; font-size: 11px; }
.opp-shell .opp-result caption { padding: 13px 12px; color: #b9cce6; text-align: left; font-size: 11px; font-weight: 600; }
.opp-shell .opp-result th { background: #0e1827; color: #99aecb; font-weight: 500; }
.opp-shell .opp-result th,.opp-shell .opp-result td { padding: 13px 12px; border-bottom-color: #2a394e; }
.opp-shell .opp-result table th:not(:first-child),.opp-shell .opp-result table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opp-shell .opp-stale { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid #66513d; border-radius: 10px; background: #251e19; color: #e7bc8e; font-size: 12px; }
.opp-shell .opp-stale p { margin: 5px 0 0; color: #c4a689; font-size: 11px; }
.opp-shell .opp-chip.is-stale { color: #e4b991; border-color: #705536; background: #2a231d; }
.opp-shell .opp-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 24px 0; font-size: 11px; color: #a5b8d2; }
.opp-shell .opp-empty { padding: 32px 20px; text-align: center; border: 1px dashed #2e415b; border-radius: 13px; background: #0d1623; color: #a0b3ce; }
.opp-shell .opp-empty h2 { margin: 13px 0 8px; color: #dce7f7; font-size: 19px; font-weight: 500; letter-spacing: -.4px; }
.opp-shell .opp-empty p { margin: 0; font-size: 12px; line-height: 1.8; }
.opp-shell .opp-empty-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid #3b5679; border-radius: 9px; background: #17283e; color: #b2cff5; font-size: 19px; }
.opp-shell #opp-idle::before { display: none; }
.opp-shell .opp-loading { display: inline-block; width: 25px; height: 25px; border: 2px solid #294566; border-top-color: #adceff; border-radius: 50%; animation: opp-spin .8s linear infinite; }
@keyframes opp-spin { to { transform: rotate(360deg); } }

/* Saved alerts use the same panel and form rhythm. */
.opp-shell .watch-config-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; padding: 16px; border: 1px solid #456284; border-radius: 9px; background: linear-gradient(135deg,#273d5b,#172a43 70%); box-shadow: inset 0 1px 0 #d3e8ff24,0 4px 12px #030a132a; }
.opp-shell .watch-config-summary p { margin: 0; color: #b2c4df; font-size: 11px; line-height: 1.9; }
.opp-shell .watch-config-summary button { flex-shrink: 0; font-size: 11px; }
.opp-shell .watch-card { background: linear-gradient(135deg,#192a41,#101d30); border-color: #3e5675; box-shadow: inset 0 1px 0 #c9e3ff1e,0 5px 14px #0107102b; border-radius: 10px; padding: 18px; }
.opp-shell .watch-card-title strong { font-size: 15px; }
.opp-shell .watch-card-title .opp-chip { font-size: 9px; padding: 4px 8px; }
.opp-shell .watch-card p { font-size: 11px; }
.opp-shell .watch-card-actions { align-content: center; }
.opp-shell .watch-card-actions button { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.opp-shell .watch-fields { grid-template-columns: 2fr 1.6fr 1.4fr auto; align-items: end; }
.opp-shell .watch-fields > .opp-check,.opp-shell .watch-fields > .opp-chip { display: flex; align-items: center; min-height: 44px; }
.opp-shell .watch-list:empty { display: none; }
.opp-shell .watch-editor-heading { padding-top: 22px; }
.opp-shell #watch-status { color: #95a8c3; font-size: 11px; }

/* Content-width queries also handle the optional left navigation. */
@container opportunity (max-width: 1050px) {
  .opp-shell .opp-book-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .opp-shell .opp-result-tools { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .opp-shell .opp-search { grid-column: 1/-1; }
  .opp-shell .watch-fields { grid-template-columns: 1fr 1fr; }
  .opp-shell .watch-card { flex-direction: column; }
}
@container opportunity (max-width: 820px) {
  .opp-shell .opp-essential-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .opp-shell .opp-metrics > div { padding: 16px; }
  .opp-shell .opp-result .opp-heading { grid-template-columns: minmax(0,1fr) 168px; gap: 20px; }
  .opp-shell .opp-return strong { font-size: 26px; }
  .opp-shell .opp-return { padding-left: 18px; }
}
@container opportunity (max-width: 640px) {
  .opp-shell .opp-panel,.opp-shell .opp-result { padding: 20px; }
  .opp-shell .opp-heading { flex-wrap: wrap; gap: 12px; }
  .opp-shell .opp-book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .opp-shell .opp-section-label { flex-direction: column; gap: 5px; }
  .opp-shell .opp-leagues > span { width: 100%; margin: 3px 0 0; }
  .opp-shell .opp-advanced summary > span { display: none; }
  .opp-shell .opp-advanced .opp-fields { grid-template-columns: 1fr 1fr; }
  .opp-shell .opp-advanced .opp-check { grid-column: 1/-1; }
  .opp-shell .opp-result .opp-heading { grid-template-columns: 1fr; gap: 16px; }
  .opp-shell .opp-return { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 3px 12px; border-left: 0; border-top: 1px solid #2f4058; padding: 13px 0 0; text-align: left; }
  .opp-shell .opp-return small:first-child { grid-column: 1/-1; }
  .opp-shell .opp-return strong { margin: 0; }
  .opp-shell .opp-return small:last-child { text-align: right; }
  .opp-shell .opp-legs { grid-template-columns: 1fr; gap: 9px; margin-top: 16px; }
  .opp-shell .opp-metrics { grid-template-columns: 1fr 1fr; }
  .opp-shell .opp-metrics > div:nth-child(2) { border-right: 0; }
  .opp-shell .opp-metrics > div:nth-child(-n+2) { border-bottom: 1px solid #29374c; }
  .opp-shell .opp-result-tools { grid-template-columns: 1fr 1fr; }
  .opp-shell .opp-sort { grid-column: 1/-1; }
  .opp-shell .opp-source-status { grid-template-columns: 1fr; }
  .opp-shell .opp-stale,.opp-shell .watch-config-summary { flex-direction: column; align-items: stretch; gap: 12px; }
  .opp-shell .watch-fields { grid-template-columns: 1fr; }
  .opp-shell .watch-fields > .opp-chip { min-height: 30px; }
  .opp-shell #opp-progress { margin-left: 0; }
}
@container opportunity (max-width: 400px) {
  .opp-shell .opp-panel,.opp-shell .opp-result { padding: 16px; border-radius: 12px; }
  .opp-shell .opp-fields { grid-template-columns: 1fr; gap: 14px; }
  .opp-shell .opp-book { padding: 12px; }
  .opp-shell .opp-book .book-logo { width: 68px; }
  .opp-shell .opp-book > .opp-check { gap: 8px; }
  .opp-shell .opp-workspace-tabs { width: 100%; }
  .opp-shell .opp-workspace-tabs button { flex: 1; padding-inline: 10px; font-size: 11px; }
  .opp-shell #opportunity-form > .opp-actions { display: grid; grid-template-columns: 1fr; }
  .opp-shell .opp-metrics > div { padding: 14px; }
  .opp-shell .opp-metrics strong { font-size: 23px; }
  .opp-shell .opp-leg { padding: 13px; gap: 10px; }
  .opp-shell .opp-leg strong { font-size: 13px; }
  .opp-shell .opp-leg > div:last-child strong { font-size: 15px; }
  .opp-shell .opp-pagination { gap: 10px; }
}
@media (max-width: 650px) {
  .opp-shell { padding-inline: 18px; }
  .opp-shell .opp-tool-nav { flex-wrap: nowrap; gap: 2px; }
  .opp-shell .opp-tool-nav a { font-size: 10px; padding: 8px 9px; white-space: nowrap; }
  .opp-shell footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .opp-shell .opp-loading { animation: none; }
  .opp-shell .opp-book,.opp-shell input,.opp-shell select { transition: none; }
}
