/* Opportunity analysis and Work workspace. Loaded after the marketing-page stylesheet. */
.opportunity-workspace {
  --workspace-blue: #1439c6;
  --workspace-ink: #17283e;
  --workspace-muted: #657184;
  --workspace-line: #e5e9ef;
  --workspace-paper: #fff;
  --workspace-tint: #f3f6ff;
  --demo-height: 580px;
  color: var(--workspace-ink);
  background: var(--workspace-paper);
  border: 1px solid #dce2eb;
  border-radius: 14px;
  box-shadow: 0 16px 48px -24px #23375830;
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
}
.opportunity-workspace [hidden] { display: none !important; }
.opportunity-workspace :is(button,input,textarea,select) { font: inherit; }
.opportunity-workspace :is(button,a,input,textarea,select,summary):focus-visible {
  outline: 2px solid var(--workspace-blue);
  outline-offset: 3px;
}
.opportunity-workspace :is(button,a,summary) { touch-action: manipulation; }
.opportunity-workspace button { transition: background .15s, border-color .15s, color .15s; }
/* A single control system serves overview, analysis and saved agent results. */
.opportunity-workspace .preview-button,
.opportunity-workspace #preview-dialog-content .preview-button,
.opportunity-workspace #preview-dialog-footer .preview-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 14px; margin-top: 0; border: 1px solid #dce3ee; border-radius: 8px; background: #fff; color: var(--workspace-blue); font-size: 13px; font-weight: 550; line-height: 1.4; }
.opportunity-workspace .preview-button.primary,
.opportunity-workspace #preview-dialog-content .preview-button.primary,
.opportunity-workspace #preview-dialog-footer .preview-button.primary { background: var(--workspace-blue); border-color: var(--workspace-blue); color: #fff; box-shadow: 0 2px 3px #1439c612; }
.opportunity-workspace .preview-button:hover { border-color: #a8b9e7; background: #f4f6ff; }
.opportunity-workspace .preview-button.primary:hover { background: #102ea1; border-color: #102ea1; color: #fff; }
.opportunity-workspace .preview-button:disabled { opacity: .5; cursor: default; box-shadow: none; }
.opportunity-workspace .workspace-evidence-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin-top: 14px; padding: 9px 0; border: 0; background: transparent; color: var(--workspace-blue); font-size: 12px; font-weight: 500; text-align: left; }
.opportunity-workspace .ds-disclosure { margin-top: 20px; border-top: 1px solid var(--workspace-line); }
.opportunity-workspace .ds-disclosure > summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 12px; position: relative; min-height: 66px; padding: 16px 22px 16px 0; cursor: pointer; list-style: none; color: #263b55; font-size: 14px; font-weight: 550; }
.opportunity-workspace .ds-disclosure > summary::-webkit-details-marker,
.opportunity-workspace .ds-focus-disclosure > summary::-webkit-details-marker { display: none; }
.opportunity-workspace .ds-disclosure > summary::after { content: '＋'; grid-column: 2; grid-row: 1 / 3; align-self: center; position: absolute; right: 0; color: #8491a6; font-size: 17px; font-weight: 400; }
.opportunity-workspace .ds-disclosure[open] > summary::after { content: '−'; }
.opportunity-workspace .ds-disclosure > summary > small { grid-column: 1; font-size: 11px; color: #758196; font-weight: 400; }
.opportunity-workspace .ds-disclosure > summary:hover { color: var(--workspace-blue); }
.opportunity-workspace .ds-disclosure-body { padding-bottom: 18px; }
.opportunity-workspace .ds-disclosure-body > section:first-child { margin-top: 0; }
.opportunity-workspace .ds-focus-disclosure > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; list-style: none; font-size: 11px; color: #657184; }
.opportunity-workspace .ds-focus-disclosure > summary > span { color: #929bac; font-size: 10px; }
.opportunity-workspace .ds-focus-disclosure > summary:hover { color: var(--workspace-blue); }
.opportunity-workspace .ds-focus-disclosure[open] > summary { margin-bottom: 8px; }
.opportunity-workspace .ds-business-thesis + .ds-next + .ds-known { margin-top: 24px; }
.opportunity-workspace .ds-work-result .preview-insight { padding: 16px; border: 1px solid #e0e7fa; border-radius: 9px; background: #f5f7ff; }
.opportunity-workspace .preview-feedback:empty { display: none; }

.opportunity-workspace .developer-art { display: block; width: 100%; }
.opportunity-workspace .developer-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  min-height: 60px;
  padding: 10px 20px;
  gap: 16px;
  background: #fff;
  border-bottom: 1px solid var(--workspace-line);
}
.opportunity-workspace .developer-workspace {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--workspace-blue);
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  letter-spacing: -.4px;
}
.opportunity-workspace .developer-workspace strong { font-size: inherit; font-weight: 650; }
.opportunity-workspace .developer-workspace img { width: 30px; height: 30px; }
.opportunity-workspace .workspace-dealbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; padding-left: 16px; border-left: 1px solid var(--workspace-line); }
.opportunity-workspace .workspace-dealbar > div { display: grid; min-width: 0; }
.opportunity-workspace .workspace-dealbar > div strong { overflow: hidden; color: #263b55; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.opportunity-workspace .workspace-dealbar > div span { overflow: hidden; color: var(--workspace-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.opportunity-workspace .workspace-dealbar dl { display: flex; align-items: center; gap: 18px; margin: 0; }
.opportunity-workspace .workspace-dealbar dl > div { display: grid; }
.opportunity-workspace .workspace-dealbar dt { color: #6a7788; font-size: 9px; line-height: 1.2; text-transform: uppercase; }
.opportunity-workspace .workspace-dealbar dd { margin: 2px 0 0; color: var(--workspace-blue); font-size: 13px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.opportunity-workspace .preview-toolbar-note { margin-right: auto; font-size: 12px; color: var(--workspace-muted); }
.opportunity-workspace :is(.workspace-toolbar-actions,.workspace-actions) { display: flex; align-items: center; gap: 9px; }
.opportunity-workspace .developer-toolbar > button:not(.developer-workspace),
.opportunity-workspace :is(.workspace-toolbar-actions,.workspace-actions) > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #c2cce0;
  border-radius: 7px;
  background: #fff;
  color: var(--workspace-blue);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.opportunity-workspace .developer-toolbar [data-preview-work-toggle="ask"] {
  border-color: var(--workspace-blue);
  color: #fff;
  background: var(--workspace-blue);
}
.opportunity-workspace .developer-toolbar button svg { width: 17px; height: 17px; }
.opportunity-workspace .developer-toolbar button[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--workspace-blue); }
/* Property identity belongs to the deal pane, leaving the map in view. */
.opportunity-workspace .workspace-property-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 0; margin: 0 0 16px; background: transparent; }
.opportunity-workspace .workspace-property-copy { min-width: 0; }
.opportunity-workspace .workspace-property-header h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: #213249; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.6px; }
.opportunity-workspace .workspace-property-header p { margin: 7px 0 0; color: var(--workspace-muted); font-size: 12px; line-height: 1.5; }
.opportunity-workspace .workspace-property-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 16px; }
.opportunity-workspace .workspace-property-meta > div { display: grid; gap: 3px; }
.opportunity-workspace .workspace-property-meta > div > span { color: var(--workspace-muted); font-size: 12px; }
.opportunity-workspace .workspace-property-meta strong { color: var(--workspace-ink); font-size: 21px; font-weight: 550; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.opportunity-workspace .workspace-property-meta .deal-save { width: 44px; height: 44px; margin-left: auto; flex: none; }
.opportunity-workspace .workspace-stage { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid #d9dfd1; border-radius: 5px; background: #f1f4ea; color: #536146; font-size: 11px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }

/* Five compact square destinations keep the map and property in view. */
.opportunity-workspace .developer-rail { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 14px 5px; min-width: 0; border: 0; border-right: 1px solid var(--workspace-line); background: #fbfcfe; overflow-y: auto; }
.opportunity-workspace .rail-tool { position: relative; display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 44px; height: 44px; min-height: 44px; padding: 4px 1px; border: 0; border-radius: 8px; color: #677484; background: transparent; font-size: 8.5px; font-weight: 500; line-height: 1.15; }
.opportunity-workspace .rail-tool svg { width: 18px; height: 18px; flex: none; }
.opportunity-workspace .rail-tool:hover { color: var(--workspace-blue); background: #eef1f8; }
.opportunity-workspace .rail-tool:is(.active,[aria-selected="true"],[aria-pressed="true"]) { color: var(--workspace-blue); background: #e9eefc; font-weight: 600; }
.opportunity-workspace .rail-tool:is(.active,[aria-selected="true"],[aria-pressed="true"])::before { content: ''; position: absolute; inset: 7px auto 7px -5px; width: 2px; border-radius: 2px; background: var(--workspace-blue); }
.opportunity-workspace .rail-tool:focus-visible { outline-offset: -3px; }

/* Map and tools stay visible. The right pane holds either the selected view or Work. */
.opportunity-workspace .developer-body,
.opportunity-workspace.preview-open .developer-body {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) 410px;
  align-items: stretch;
  height: var(--demo-height);
  min-height: 0;
}
.opportunity-workspace .developer-map { grid-column: 2; grid-row: 1; height: auto; min-height: 0; border-right: 1px solid var(--workspace-line); }
.opportunity-workspace .developer-map-art { object-position: 52% 50%; }
.opportunity-workspace .developer-map-label { top: 43%; left: 52%; max-width: calc(100% - 36px); border-color: #a1b4e1; box-shadow: 0 4px 18px #1735611a; }
.opportunity-workspace .developer-map-label strong { font-size: 13px; }
.opportunity-workspace .map-context { left: 14px; top: 14px; min-height: 44px; padding: 9px 11px; font-size: 12px; max-width: calc(100% - 76px); }
.opportunity-workspace .map-controls { right: 14px; bottom: 61px; }
.opportunity-workspace .map-controls button { width: 44px; height: 44px; min-height: 44px; }
.opportunity-workspace .map-display { left: 14px; bottom: 17px; font-size: 10px; }
.opportunity-workspace .map-legend { left: 14px; right: auto; bottom: 60px; font-size: 10px; }
.opportunity-workspace .map-orientation { top: 18px; right: 14px; }
.opportunity-workspace :is(.developer-deal,#preview-dialog) {
  grid-column: 3;
  grid-row: 1;
  display: block;
  min-height: 0;
  height: var(--demo-height);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--workspace-paper);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #bcc6d5 transparent;
}
.opportunity-workspace #preview-deal-summary { padding: 24px; }
.opportunity-workspace .preview-dialog-inner { height: auto; min-height: 100%; padding: 24px; overflow: visible; }
.opportunity-workspace .preview-dialog-top { margin-bottom: 20px; }
.opportunity-workspace [data-preview-close] { min-height: 36px; padding: 6px 0; border: 0; color: #657184; background: transparent; font-size: 12px; }
.opportunity-workspace [data-preview-close]:hover { color: var(--workspace-blue); background: transparent; }
.opportunity-workspace #preview-dialog-kicker { max-width: none; font-size: 10px; color: #788396; letter-spacing: .025em; }
.opportunity-workspace #preview-dialog-title { font-size: 25px; line-height: 1.2; letter-spacing: -.75px; color: var(--workspace-ink); }
.opportunity-workspace #preview-dialog-description { font-size: 13px; color: var(--workspace-muted); line-height: 1.5; }
.opportunity-workspace #preview-dialog-content { flex: none; margin-top: 24px; padding: 0; overflow: visible; color: #40526a; font-size: 14px; line-height: 1.6; }
.opportunity-workspace #preview-dialog-content h3 { font-size: 16px; }
.opportunity-workspace #preview-dialog-footer { margin-top: 22px; padding-top: 18px; border-color: var(--workspace-line); }
.opportunity-workspace #preview-dialog-footer:empty { display: none; }
.opportunity-workspace:is(.work-open,.preview-work-open) :is(.developer-deal,#preview-dialog) { display: none; }
.opportunity-workspace .workspace-work-panel {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: var(--demo-height);
  padding: 20px;
  background: #fff;
  border-left: 1px solid #cdd7e9;
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.opportunity-workspace .workspace-work-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.opportunity-workspace #preview-work-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.45px; }
.opportunity-workspace .workspace-work-header button { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 8px; border: 0; border-radius: 8px; color: #748094; background: #f5f7fa; font-size: 23px; line-height: 1; }
.opportunity-workspace #preview-work-content { min-height: 0; color: #4d5e74; font-size: 14px; }
.opportunity-workspace .preview-entry { padding: 14px 22px; background: #fffefa; }

/* One decision, one evidence state and one next action per view. */
.opportunity-workspace .workspace-decision { padding: 20px; border: 1px solid #e0e7fa; border-radius: 12px; background: #f5f7ff; }
.opportunity-workspace .workspace-decision h4,
.opportunity-workspace .workspace-priority h4,
.opportunity-workspace .ds-next h4 { margin: 0; color: #273e5e; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.25px; }
.opportunity-workspace .workspace-decision > p:last-of-type,
.opportunity-workspace .workspace-priority p:last-child,
.opportunity-workspace .ds-next p:last-child { margin: 7px 0 0; color: #5c6c81; font-size: 12px; line-height: 1.55; }
.opportunity-workspace .workspace-decision-signals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin-top: 16px; border: 1px solid #dce3ef; border-radius: 7px; overflow: hidden; background: #dce3ef; }
.opportunity-workspace .workspace-decision-signals > div { padding: 12px; background: #fffefa; }
.opportunity-workspace .workspace-decision-signals span,
.opportunity-workspace .workspace-decision-signals small { display: block; color: #66758a; font-size: 10px; line-height: 1.4; }
.opportunity-workspace .workspace-decision-signals strong { display: block; margin: 3px 0; color: var(--workspace-blue); font-size: 23px; font-weight: 600; line-height: 1.15; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.opportunity-workspace .workspace-priority { display: grid; gap: 16px; padding: 22px 0 0; margin-top: 22px; border-top: 1px solid var(--workspace-line); }
.opportunity-workspace .workspace-priority .preview-button { width: 100%; }
.opportunity-workspace .workspace-evidence-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; margin-top: 8px; padding: 8px 2px; border: 0; background: transparent; color: var(--workspace-blue); font-size: 12px; font-weight: 550; text-align: left; }
.opportunity-workspace .ds-known { margin: 0; }
.opportunity-workspace .ds-register,
.opportunity-workspace .ds-route-list { margin-top: 8px; border-top: 1px solid var(--workspace-line); }
.opportunity-workspace .ds-register-row,
.opportunity-workspace .ds-route { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 4px 12px; min-height: 62px; padding: 12px 0; border-bottom: 1px solid var(--workspace-line); }
.opportunity-workspace .ds-register-row > div,
.opportunity-workspace .ds-route > :first-child { min-width: 0; }
.opportunity-workspace .ds-register-row strong,
.opportunity-workspace .ds-route strong { display: block; color: #304761; font-size: 13px; font-weight: 600; line-height: 1.35; }
.opportunity-workspace .ds-register-row span:not(.ds-state),
.opportunity-workspace .ds-route small { display: block; margin-top: 3px; color: #66758a; font-size: 11px; line-height: 1.4; }
.opportunity-workspace .ds-register-row.is-next { padding-inline: 10px; margin-inline: -10px; background: #f3f6fd; border-left: 2px solid var(--workspace-blue); }
.opportunity-workspace .ds-state,
.opportunity-workspace .ds-route > span { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 4px 7px; border: 1px solid #d7dee9; border-radius: 5px; color: #52657e; background: #f7f8fa; font-size: 10px; line-height: 1.3; white-space: nowrap; }
.opportunity-workspace .ds-state.is-missing { border-color: #eadfce; color: #826432; background: #fbf8f2; }
.opportunity-workspace .ds-state.is-complete { border-color: #cfe3d8; color: #236044; background: #eef8f2; }
.opportunity-workspace .ds-register-row.is-reviewed { opacity: .72; }
.opportunity-workspace .ds-section-head > div { min-width: 0; }
.opportunity-workspace .ds-section-head > div > h4 { margin-top: 2px; }
.opportunity-workspace .ds-source-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 0; border: 0; background: transparent; color: #6c7b91; font-size: 10px; font-weight: 450; line-height: 1.4; white-space: normal; }
.opportunity-workspace .ds-source-chip.is-unknown { color: #826432; }
.opportunity-workspace .ds-source-chip.is-assumption { color: #7b6c53; }
.opportunity-workspace .ds-business-thesis { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; align-items: start; padding: 18px; border: 1px solid #e0e7fa; border-radius: 10px; background: #f5f7ff; }
.opportunity-workspace .ds-business-thesis > .ds-state { justify-self: start; }
.opportunity-workspace .ds-business-thesis h4 { margin: 0; color: #294261; font-size: 16px; font-weight: 600; line-height: 1.35; }
.opportunity-workspace .ds-business-thesis p:last-child { margin: 6px 0 0; color: #5c6d84; font-size: 12px; line-height: 1.5; }
.opportunity-workspace .ds-business-gaps,
.opportunity-workspace .ds-market-proof,
.opportunity-workspace .ds-current-screen,
.opportunity-workspace .ds-human-evidence { margin-top: 20px; }
.opportunity-workspace .ds-gap-action { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.opportunity-workspace .ds-find-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 6px 10px; border: 1px solid #dce3f1; border-radius: 7px; background: #fff; color: var(--workspace-blue); font-size: 11px; font-weight: 550; white-space: nowrap; }
.opportunity-workspace .ds-find-button:hover { border-color: var(--workspace-blue); background: #edf1fd; }
.opportunity-workspace .ds-route { grid-template-columns: minmax(0,1fr) auto; }
.opportunity-workspace .ds-route small { grid-column: 1 / -1; margin: -1px 0 0; }
.opportunity-workspace .ds-route.is-leading { padding-inline: 10px; margin-inline: -10px; background: #f3f6fd; border-left: 2px solid var(--workspace-blue); }
.opportunity-workspace .ds-next { padding: 22px 0; margin: 0; border-bottom: 1px solid var(--workspace-line); }
.opportunity-workspace .ds-next + .ds-action-row { margin-top: 14px; }
.opportunity-workspace .ds-workflow-loop { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 7px; padding: 8px 10px; margin: 0 0 12px; border: 1px solid #dce3ee; border-radius: 8px; background: #f8f9fb; }
.opportunity-workspace .ds-workflow-loop > div { display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: center; gap: 0 7px; min-width: 0; }
.opportunity-workspace .ds-workflow-loop > div > span { grid-row: 1 / 3; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #cbd5e5; border-radius: 50%; color: #536981; background: #fff; font-size: 10px; font-weight: 650; }
.opportunity-workspace .ds-workflow-loop strong { color: #304761; font-size: 10px; font-weight: 650; line-height: 1.2; }
.opportunity-workspace .ds-workflow-loop small { overflow: hidden; color: #738095; font-size: 9px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.opportunity-workspace .ds-workflow-loop > i { color: #9aa8ba; font-size: 11px; font-style: normal; }
.opportunity-workspace .ds-workflow-loop > div.is-current > span { border-color: var(--workspace-blue); color: #fff; background: var(--workspace-blue); }
.opportunity-workspace .ds-next-action { display: grid; gap: 9px; margin-top: 14px; }
.opportunity-workspace .ds-agent-focus { display: grid; gap: 5px; margin-bottom: 5px; color: #5e6f84; font-size: 10px; font-weight: 550; }
.opportunity-workspace .ds-agent-focus input { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid #c8d2df; border-radius: 6px; background: #fff; color: #304862; font-size: 12px; }
.opportunity-workspace .ds-next-action .preview-button { width: 100%; }
.opportunity-workspace .ds-next-action small { color: #738095; font-size: 11px; line-height: 1.45; text-align: center; }
.opportunity-workspace .ds-result-facts { display: grid; gap: 0; margin: 14px 0; border-block: 1px solid var(--workspace-line); }
.opportunity-workspace .ds-result-facts > div { padding: 12px 0; }
.opportunity-workspace .ds-result-facts > div + div { border-top: 1px solid var(--workspace-line); }
.opportunity-workspace .ds-result-facts span { display: block; margin-bottom: 4px; color: #66758a; font-size: 9px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.opportunity-workspace .ds-result-facts p { margin: 0; color: #344a65; font-size: 12px; line-height: 1.55; }
.opportunity-workspace .ds-use-finding { position: sticky; bottom: 0; z-index: 2; width: 100%; margin-top: 2px; box-shadow: 0 -8px 18px rgba(250,249,245,.94); }
.opportunity-workspace .ds-flow-next { padding: 14px; margin-top: 15px; border: 1px solid #ccd8ef; border-radius: 8px; background: #f3f6fd; }
.opportunity-workspace .ds-flow-next > strong { display: block; color: #294975; font-size: 14px; font-weight: 600; }
.opportunity-workspace .ds-flow-next > p:not(.workspace-eyebrow) { margin: 5px 0 12px; color: #5d6f86; font-size: 12px; line-height: 1.5; }
.opportunity-workspace .ds-flow-next .preview-button { width: 100%; }
.opportunity-workspace .ds-saved-work { margin-top: 14px; }
.opportunity-workspace #preview-dialog-footer { display: flex; }
.opportunity-workspace #preview-dialog-footer .preview-button { width: 100%; }
.opportunity-workspace .ds-financial-verdict { padding: 20px; border: 1px solid #e0e7fa; border-radius: 12px; background: #f5f7ff; }
.opportunity-workspace .ds-financial-verdict > div:first-of-type { display: flex; align-items: baseline; gap: 10px; }
.opportunity-workspace .ds-financial-verdict strong { color: var(--workspace-blue); font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -1.2px; }
.opportunity-workspace .ds-financial-verdict span { color: #526681; font-size: 12px; }
.opportunity-workspace .ds-financial-verdict > p:last-child { margin: 12px 0 0; color: #64748a; font-size: 11px; }
.opportunity-workspace .ds-financial-unknowns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin-top: 16px; border: 1px solid #d8e0ef; border-radius: 7px; overflow: hidden; background: #d8e0ef; }
.opportunity-workspace .ds-financial-unknowns > div { display: grid; gap: 4px; padding: 11px; background: #fff; }
.opportunity-workspace .ds-financial-unknowns span,
.opportunity-workspace .ds-financial-unknowns small { color: #69778a; font-size: 9px; line-height: 1.35; }
.opportunity-workspace .ds-financial-unknowns b { color: #34435b; font-size: 17px; font-weight: 550; }
.opportunity-workspace .ds-screen-metric { display: flex; align-items: baseline; gap: 10px; padding: 14px; border: 1px solid #dfe3e9; border-radius: 8px; background: #fff; }
.opportunity-workspace .ds-screen-metric strong { color: var(--workspace-blue); font-size: 25px; font-weight: 600; letter-spacing: -.7px; }
.opportunity-workspace .ds-screen-metric span { color: #637287; font-size: 11px; line-height: 1.45; }
.opportunity-workspace .ds-hurdle { position: relative; height: 7px; margin-top: 15px; border-radius: 8px; background: #dfe5ef; }
.opportunity-workspace .ds-hurdle i { display: block; width: 68%; height: 100%; border-radius: inherit; background: var(--workspace-blue); }
.opportunity-workspace .ds-hurdle b { position: absolute; left: 60%; top: 12px; color: #68758a; font-size: 9px; font-weight: 500; }
.opportunity-workspace .ds-assumption-editor { margin-top: 15px; border-top: 1px solid var(--workspace-line); }
.opportunity-workspace .ds-assumption-editor > summary { min-height: 44px; padding-block: 13px; color: var(--workspace-blue); font-size: 12px; font-weight: 550; cursor: pointer; }
.opportunity-workspace .ds-activity-inline { margin-top: 18px; }
.opportunity-workspace .ds-human-evidence { padding-top: 18px; border-top: 1px solid var(--workspace-line); }
.opportunity-workspace .ds-human-evidence-list { display: grid; gap: 8px; margin-bottom: 12px; }
.opportunity-workspace .ds-human-evidence-list > div { padding: 10px 12px; border: 1px solid #dbe2ec; border-radius: 6px; background: #fff; }
.opportunity-workspace .ds-human-evidence-list strong { color: #304963; font-size: 12px; }
.opportunity-workspace .ds-human-evidence-list p { margin: 3px 0; color: #50647d; font-size: 11px; line-height: 1.45; }
.opportunity-workspace .ds-human-evidence-list small { color: #788697; font-size: 9px; }
.opportunity-workspace .ds-empty-inline { margin: 0 0 12px; color: #758294; font-size: 11px; }
.opportunity-workspace [data-preview-evidence-form],
.opportunity-workspace .ds-ask-form { display: grid; gap: 9px; }
.opportunity-workspace [data-preview-evidence-form] label,
.opportunity-workspace .ds-ask-form label { display: grid; gap: 5px; color: #566a82; font-size: 10px; font-weight: 600; }
.opportunity-workspace [data-preview-evidence-form] :is(input,select,textarea),
.opportunity-workspace .ds-ask-form textarea { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid #c5d0de; border-radius: 6px; background: #fff; color: #304862; font-size: 12px; resize: vertical; }
.opportunity-workspace [data-preview-evidence-form] textarea { min-height: 72px; }
.opportunity-workspace [data-preview-evidence-form] .preview-button,
.opportunity-workspace .ds-ask-form .preview-button { width: 100%; margin-top: 0 !important; }
.opportunity-workspace .ds-message-cards { display: grid; gap: 9px; }
.opportunity-workspace .ds-message-cards button { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; width: 100%; min-height: 70px; padding: 12px; border: 1px solid #d5ddea; border-radius: 7px; background: #fff; color: #344d68; text-align: left; }
.opportunity-workspace .ds-message-cards button:hover { border-color: #9eb0d2; background: #f5f7fd; }
.opportunity-workspace .ds-message-cards span { font-size: 13px; font-weight: 600; }
.opportunity-workspace .ds-message-cards strong { color: var(--workspace-blue); font-size: 10px; }
.opportunity-workspace .ds-message-cards small { grid-column: 1/-1; color: #68788c; font-size: 10px; line-height: 1.4; }
.opportunity-workspace .ds-inline-ask { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--workspace-line); }

/* Shared cards, charts and evidence keep each view useful in a compact pane. */
.opportunity-workspace :is(.workspace-overview-grid,.ds-card-grid) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.opportunity-workspace :is(.workspace-overview-card,.ds-card) { min-width: 0; padding: 15px; border: 1px solid #dfe3e9; border-radius: 9px; background: #fffefa; }
.opportunity-workspace :is(.workspace-overview-card,.ds-card) > :last-child { margin-bottom: 0; }
.opportunity-workspace :is(.workspace-overview-card,.ds-card) :is(h3,h4) { margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.4; color: #293d57; }
.opportunity-workspace .ds-card.is-emphasis { background: var(--workspace-tint); border-color: #d3ddf4; }
.opportunity-workspace :is(.workspace-overview-heading,.ds-section-head) { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 12px; }
.opportunity-workspace :is(.workspace-overview-heading,.ds-section-head) :is(h3,h4) { margin: 0; font-size: 17px; font-weight: 550; letter-spacing: -.35px; }
.opportunity-workspace :is(.workspace-overview-heading,.ds-section-head) p { margin: 0; color: var(--workspace-muted); font-size: 12px; }
.opportunity-workspace .workspace-overview-heading { display: block; margin: 0 0 16px; }
.opportunity-workspace .workspace-eyebrow,
.opportunity-workspace .workspace-overview-heading .workspace-eyebrow { margin: 0 0 8px; color: var(--workspace-blue); font-size: 10px; font-weight: 550; letter-spacing: .07em; line-height: 1.4; }
.opportunity-workspace .workspace-overview-heading h3 { margin: 0 0 9px; font-size: 24px; font-weight: 550; line-height: 1.25; letter-spacing: -.55px; }
.opportunity-workspace .workspace-overview-heading p:last-child { max-width: 560px; font-size: 14px; line-height: 1.55; }
.opportunity-workspace .workspace-overview-grid { margin: 0 0 16px; }
.opportunity-workspace .workspace-overview-card .metric-label { display: block; margin: 0 0 8px; font-size: 12px; line-height: 1.4; color: #5e6b7e; }
.opportunity-workspace .workspace-big-number { display: block; color: var(--workspace-blue); font-size: 32px; font-weight: 550; line-height: 1.15; letter-spacing: -1.25px; font-variant-numeric: tabular-nums; }
.opportunity-workspace .workspace-big-number small { font-size: 16px; font-weight: 450; color: #596c84; letter-spacing: 0; }
.opportunity-workspace .workspace-card-note { display: block; margin-top: 7px; color: #657185; font-size: 12px; line-height: 1.5; }
.opportunity-workspace .workspace-card-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.opportunity-workspace .workspace-card-heading h4 { margin: 0; font-size: 14px; font-weight: 550; color: #2d425f; }
.opportunity-workspace .workspace-card-heading .workspace-card-note { margin: 0; }
.opportunity-workspace .workspace-card-heading button { min-height: 44px; margin: -10px -4px -10px 0; padding: 8px 4px; border: 0; border-radius: 4px; background: transparent; color: var(--workspace-blue); font-size: 12px; }
.opportunity-workspace .workspace-capital-card { padding: 14px 15px; }
.opportunity-workspace .workspace-capital-track { display: flex; gap: 3px; height: 16px; margin: 17px 0 13px; border-radius: 4px; background: #e7ebf2; overflow: hidden; }
.opportunity-workspace .workspace-capital-track > span { display: block; min-width: 0; background: var(--workspace-blue); }
.opportunity-workspace .workspace-capital-track > span:last-child { background: #8d9cc6; }
.opportunity-workspace .workspace-capital-labels { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: #5e6d82; }
.opportunity-workspace .workspace-capital-labels > span { display: inline-flex; align-items: center; gap: 6px; }
.opportunity-workspace .workspace-capital-labels i { width: 7px; height: 7px; border-radius: 2px; background: var(--workspace-blue); }
.opportunity-workspace .workspace-capital-labels > :last-child i { background: #8d9cc6; }
.opportunity-workspace .workspace-capital-labels strong { margin-left: 2px; font-size: 13px; color: #2b4263; font-weight: 550; }
.opportunity-workspace .deal-diligence { margin-top: 16px; background: #f1f3ec; border-color: #dce2d5; }
.opportunity-workspace .workspace-overview-agents { margin-top: 18px; }
.opportunity-workspace .workspace-agent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.opportunity-workspace .workspace-agent-actions .preview-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 12px; border: 1px solid #b9c8e2; border-radius: 6px; background: #fffefa; color: var(--workspace-blue); font-size: 12px; font-weight: 500; }
.opportunity-workspace .workspace-agent-actions .preview-button.primary { background: var(--workspace-blue); color: #fff; border-color: var(--workspace-blue); }
.opportunity-workspace .workspace-toolbar-actions [data-preview-work-count],
.opportunity-workspace .rail-tool [data-preview-work-count] { display: inline-flex; justify-content: center; align-items: center; min-width: 18px; height: 18px; padding-inline: 4px; margin-left: 3px; border-radius: 4px; background: #e7edfd; color: var(--workspace-blue); font-size: 10px; font-weight: 550; }
.opportunity-workspace :is(.workspace-overview-thesis,.ds-callout) { padding: 16px 18px; margin: 15px 0; border: 1px solid #d8e0f2; border-left: 3px solid var(--workspace-blue); border-radius: 6px; background: #f0f3fd; color: #3c5273; line-height: 1.65; }
.opportunity-workspace :is(.ds-agent-label,.workspace-overview-eyebrow) { display: flex; align-items: center; gap: 7px; color: var(--workspace-blue); font-size: 11px; font-weight: 600; letter-spacing: .04em; margin-bottom: 8px; }
.opportunity-workspace :is(.workspace-overview-metrics,.ds-metrics) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.opportunity-workspace :is(.workspace-overview-metrics,.ds-metrics) > div,
.opportunity-workspace .ds-metric { padding: 14px; background: #fffefa; border: 1px solid #dce2ec; border-radius: 8px; }
.opportunity-workspace :is(.workspace-overview-metrics,.ds-metrics,.ds-metric) :is(dt,.ds-metric-label) { margin: 0 0 7px; color: var(--workspace-muted); font-size: 11px; font-weight: 450; line-height: 1.4; }
.opportunity-workspace :is(.workspace-overview-metrics,.ds-metrics,.ds-metric) :is(dd,strong) { display: block; margin: 0; color: var(--workspace-blue); font-size: clamp(23px,2.1vw,29px); font-weight: 550; line-height: 1.2; letter-spacing: -.9px; font-variant-numeric: tabular-nums; }
.opportunity-workspace :is(.workspace-overview-metrics,.ds-metrics,.ds-metric) small { display: block; margin-top: 6px; color: #627186; font-size: 11px; line-height: 1.45; }
.opportunity-workspace .ds-cost-bar { display: flex; gap: 3px; min-height: 17px; border-radius: 4px; overflow: hidden; background: #e6eaf1; margin: 16px 0 11px; }
.opportunity-workspace .ds-cost-bar > * { display: block; min-width: 1px; background: var(--workspace-blue); }
.opportunity-workspace .ds-cost-bar > :nth-child(2) { background: #7c94df; }
.opportunity-workspace .ds-cost-bar > :nth-child(3) { background: #b7c6eb; }
.opportunity-workspace .ds-cost-bar > :nth-child(4) { background: #879c7e; }
.opportunity-workspace .ds-chart-legend { display: flex; flex-wrap: wrap; gap: 7px 16px; color: #596a81; font-size: 11px; }
.opportunity-workspace .ds-chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.opportunity-workspace .ds-chart-legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--workspace-blue); }
.opportunity-workspace .ds-chart-legend > :nth-child(2) i { background: #7c94df; }
.opportunity-workspace .ds-chart-legend > :nth-child(3) i { background: #b7c6eb; }
.opportunity-workspace .ds-bar-chart { display: grid; gap: 15px; padding: 17px 0 5px; }
.opportunity-workspace .ds-bar-row { display: grid; grid-template-columns: minmax(90px,1fr) minmax(0,2fr) auto; align-items: center; gap: 12px; font-size: 12px; }
.opportunity-workspace .ds-bar-track { height: 12px; background: #e8edf6; border-radius: 3px; overflow: hidden; }
.opportunity-workspace .ds-bar-fill { display: block; height: 100%; background: var(--workspace-blue); border-radius: 3px; }
.opportunity-workspace .ds-bar-row > :last-child { color: #334e79; font-weight: 550; font-variant-numeric: tabular-nums; }
.opportunity-workspace .ds-step-diagram { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.opportunity-workspace .ds-step { position: relative; padding: 17px 13px; border: 1px solid #d8e0ef; border-radius: 8px; background: #f1f4fc; }
.opportunity-workspace .ds-step strong { display: block; font-size: 14px; color: #2f4a75; margin-bottom: 6px; }
.opportunity-workspace .ds-step p { color: #5d6b7e; font-size: 12px; line-height: 1.6; }
.opportunity-workspace .ds-step + .ds-step:before { content: '→'; position: absolute; left: -12px; top: 20px; background: var(--workspace-paper); color: var(--workspace-blue); font-size: 15px; line-height: 18px; }
.opportunity-workspace .ds-tag { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 3px 7px; border: 1px solid #d4deef; border-radius: 4px; background: #edf2fb; color: #496594; font-size: 12px; font-weight: 500; line-height: 1.45; white-space: nowrap; }
.opportunity-workspace .ds-tag.is-assumption { background: #f5f1e8; border-color: #e6dac5; color: #7d6340; }
.opportunity-workspace .ds-tag.is-missing { background: #fff5eb; border-color: #edddca; color: #885c2e; }
.opportunity-workspace .ds-evidence-list { display: grid; gap: 0; padding: 0; margin: 14px 0; list-style: none; border-top: 1px solid var(--workspace-line); }
.opportunity-workspace .ds-evidence-row { display: block; padding: 13px 0; border-bottom: 1px solid var(--workspace-line); }
.opportunity-workspace .ds-evidence-row > :first-child { flex: 1; }
.opportunity-workspace .ds-evidence-row strong { display: block; font-size: 13px; font-weight: 550; color: #334961; }
.opportunity-workspace .ds-evidence-row p { margin-top: 5px; font-size: 12px; color: var(--workspace-muted); }
.opportunity-workspace .ds-action-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.opportunity-workspace .ds-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 14px; border: 1px solid #c5cfe0; border-radius: 7px; background: #fffefa; color: var(--workspace-blue); font-size: 13px; font-weight: 550; line-height: 1.4; }
.opportunity-workspace .ds-button:is(.primary,.is-primary) { background: var(--workspace-blue); color: #fff; border-color: var(--workspace-blue); }
.opportunity-workspace .ds-button:hover { border-color: var(--workspace-blue); background: #edf1fd; }
.opportunity-workspace .ds-button:is(.primary,.is-primary):hover { background: #2449dc; color: #fff; }
.opportunity-workspace .ds-button:disabled { cursor: default; opacity: .55; }
.opportunity-workspace .ds-table-wrap { overflow-x: auto; margin-top: 15px; border: 1px solid var(--workspace-line); border-radius: 8px; }
.opportunity-workspace .ds-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.opportunity-workspace .ds-table :is(th,td) { padding: 12px; border-bottom: 1px solid #e4e8ee; vertical-align: top; }
.opportunity-workspace .ds-table th { background: #f2f4f9; color: #5c6c82; font-size: 11px; font-weight: 500; }
.opportunity-workspace .ds-table tr:last-child td { border-bottom: 0; }
.opportunity-workspace .ds-table td:last-child { color: var(--workspace-blue); font-weight: 550; font-variant-numeric: tabular-nums; }
.opportunity-workspace .ds-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin: 17px 0; }
.opportunity-workspace .ds-field label { display: block; font-size: 12px; color: #50617a; margin-bottom: 7px; }
.opportunity-workspace .ds-field input { width: 100%; min-height: 44px; border: 1px solid #bdcadd; border-radius: 6px; background: #fffefa; padding: 10px 12px; color: #253c5c; font-size: 16px; }
.opportunity-workspace .ds-work-item { padding: 16px; margin: 12px 0; border: 1px solid #d7e0ee; border-radius: 8px; background: #f6f8fd; }
.opportunity-workspace .ds-work-item h4 { margin: 0 0 7px; font-size: 14px; color: #304865; }
.opportunity-workspace .ds-work-item p { color: var(--workspace-muted); font-size: 13px; line-height: 1.65; }
.opportunity-workspace .ds-work-status { display: inline-block; margin-bottom: 10px; color: var(--workspace-blue); font-size: 11px; font-weight: 550; }
.opportunity-workspace .ds-empty { padding: 22px 18px; border: 1px dashed #cbd4e3; border-radius: 8px; color: #5a6b81; font-size: 13px; line-height: 1.7; }
.opportunity-workspace .preview-source { margin-top: 15px; }
.opportunity-workspace .scenario-tabs { margin-bottom: 17px; }
.opportunity-workspace .scenario-tabs button { font-size: 13px; }
.opportunity-workspace .preview-model-results { padding: 15px 18px; border-color: #d4def3; background: #eef2fd; }
.opportunity-workspace .preview-checklist label { background: #fffefa; border-color: #d7dfeb; padding: 15px; }
.opportunity-workspace #preview-dialog-content textarea,
.opportunity-workspace #preview-work-content textarea { display: block; width: 100%; min-height: 200px; margin-top: 10px; padding: 13px; resize: vertical; border: 1px solid #bcc9de; border-radius: 7px; background: #fffefa; color: #344a65; font: 14px/1.65 var(--font); }

/* Document selection and saved work are embedded in the same property context. */
.opportunity-workspace .ds-strategy-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.opportunity-workspace .ds-card.is-preferred { background: #eff3fd; border-color: #aabde8; }
.opportunity-workspace .ds-eyebrow { margin-bottom: 8px; color: var(--workspace-blue); font-size: 11px; font-weight: 550; }
.opportunity-workspace .ds-library-list { display: grid; gap: 9px; margin: 15px 0; }
.opportunity-workspace .ds-library-item { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; width: 100%; min-height: 60px; padding: 13px 15px; border: 1px solid #d6dfea; border-radius: 7px; background: #fffefa; color: #3c506d; text-align: left; font-size: 13px; }
.opportunity-workspace .ds-library-item strong { display: block; font-size: 14px; font-weight: 550; }
.opportunity-workspace .ds-library-item small { display: block; margin-top: 3px; font-size: 11px; color: var(--workspace-muted); }
.opportunity-workspace .ds-library-item.is-selected,
.opportunity-workspace .ds-library-item[aria-pressed="true"] { border-color: #9db2e5; background: #eef2fd; color: var(--workspace-blue); }
.opportunity-workspace .ds-document-content { margin-top: 18px; padding: 19px; border: 1px solid #dce2eb; border-radius: 8px; background: #fffefa; }
.opportunity-workspace .ds-document-content :is(h3,h4) { margin: 0 0 12px; font-size: 16px; font-weight: 550; }
.opportunity-workspace .ds-document-content p { font-size: 13px; line-height: 1.75; }
.opportunity-workspace .ds-work-tabs { display: flex; gap: 4px; padding: 4px; margin: 16px 0 20px; border: 1px solid #dbe2ed; border-radius: 8px; background: #f4f6f9; }
.opportunity-workspace .ds-work-tabs button { flex: 1; min-height: 44px; padding: 9px 7px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #536881; font-size: 12px; font-weight: 500; }
.opportunity-workspace .ds-work-tabs button[aria-pressed="true"] { border-color: #dce3ee; color: var(--workspace-blue); background: #fffefa; }
.opportunity-workspace .ds-work-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 17px; color: #5b6d83; font-size: 12px; }
.opportunity-workspace .ds-work-summary strong { color: var(--workspace-blue); font-weight: 550; }
.opportunity-workspace .ds-work-list { display: grid; gap: 10px; margin: 14px 0; }
.opportunity-workspace .ds-work-list .ds-work-item { display: block; width: 100%; min-height: 52px; padding: 14px 15px; margin: 0; text-align: left; }
.opportunity-workspace .ds-work-item.is-selected { border-color: #a0b5e4; background: #edf2ff; }
.opportunity-workspace .ds-work-item strong { display: block; color: #334f77; font-size: 13px; font-weight: 550; }
.opportunity-workspace .ds-work-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 6px; color: #63728a; font-size: 11px; line-height: 1.5; }
.opportunity-workspace .ds-work-result { margin-top: 17px; padding-top: 17px; border-top: 1px solid #dae2ee; }
.opportunity-workspace .ds-work-result :is(h3,h4) { margin: 0 0 9px; font-size: 16px; font-weight: 550; }
.opportunity-workspace .ds-work-result p { font-size: 13px; line-height: 1.7; }
.opportunity-workspace #preview-work-content > .ds-callout { margin: 0 0 12px; padding: 0; border: 0; background: transparent; color: #63728a; font-size: 12px; line-height: 1.5; }
.opportunity-workspace #preview-work-content > .ds-work-result { margin-top: 12px; padding-top: 12px; }
.opportunity-workspace .ds-work-result :is(ul,ol) { padding-left: 20px; margin: 12px 0; }
.opportunity-workspace .ds-work-result li + li { margin-top: 8px; }
.opportunity-workspace .ds-ask-form { display: grid; gap: 12px; margin: 15px 0; }
.opportunity-workspace .ds-ask-form label { color: #425873; font-size: 13px; font-weight: 500; }
.opportunity-workspace .ds-ask-input { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #b6c6e0; border-radius: 6px; background: #fffefa; color: #344b6a; font: 14px/1.5 var(--font); }
.opportunity-workspace .ds-ask-input::placeholder { color: #66758b; }
.opportunity-workspace .ds-ask-form .preview-button { margin-top: 0; }
.opportunity-workspace #preview-work-content .preview-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 13px; border: 1px solid #bdcbe1; border-radius: 6px; background: #fffefa; color: var(--workspace-blue); font-size: 13px; font-weight: 500; }
.opportunity-workspace #preview-work-content .preview-button.primary { background: var(--workspace-blue); border-color: var(--workspace-blue); color: #fff; }
.opportunity-workspace #preview-work-content .preview-button:disabled { opacity: .55; cursor: default; }
.opportunity-workspace #preview-work-content .preview-source > summary { min-height: 44px; color: var(--workspace-blue); }
.opportunity-workspace :is(.developer-panel,.developer-deal) { container: workspace-content / inline-size; }
.opportunity-workspace .ds-preserve-text { white-space: pre-wrap; }
.opportunity-workspace .ds-metric > span { display: block; margin-bottom: 8px; color: #5d6d81; font-size: 12px; }
.opportunity-workspace .ds-card > .ds-tag + h3 { margin-top: 12px; }
.opportunity-workspace .ds-card > p { font-size: 14px; line-height: 1.65; }
.opportunity-workspace .ds-card > p + strong { display: block; margin-top: 13px; color: #4d617d; font-size: 12px; line-height: 1.6; font-weight: 500; }
.opportunity-workspace .ds-card-grid + .ds-section-head { margin-top: 24px; }
.opportunity-workspace .ds-step > span { display: block; color: #596c83; font-size: 12px; line-height: 1.6; }
.opportunity-workspace .ds-evidence-row > .ds-tag { margin-bottom: 9px; }
.opportunity-workspace .ds-evidence-row h3 { margin: 0 0 7px; font-size: 15px; }
.opportunity-workspace .ds-evidence-row > p { font-size: 14px; line-height: 1.65; }
.opportunity-workspace .ds-checklist { display: flex; align-items: center; gap: 9px; width: fit-content; min-height: 44px; margin-top: 6px; color: #425a7c; font-size: 13px; cursor: pointer; }
.opportunity-workspace .ds-checklist input { width: 17px; height: 17px; margin: 0; accent-color: var(--workspace-blue); }
.opportunity-workspace .ds-checklist + p { margin-bottom: 10px; }
.opportunity-workspace .ds-evidence-row .preview-source { margin-top: 8px; }
.opportunity-workspace .ds-callout > .ds-tag + p { margin-top: 9px; }
.opportunity-workspace .ds-library-item > span { display: block; width: 100%; color: #5d6f85; font-size: 12px; font-weight: 400; }
.opportunity-workspace #preview-dialog-content .ds-library-item { align-items: flex-start; justify-content: flex-start; margin-top: 0; padding: 14px 15px; text-align: left; }
.opportunity-workspace #preview-dialog-content .ds-library-item[aria-pressed="true"] { border-color: #9db2e5; background: #eef2fd; color: var(--workspace-blue); }
.opportunity-workspace .ds-agent-button { flex-wrap: wrap; }
.opportunity-workspace .ds-agent-button .ds-agent-label,
.opportunity-workspace .preview-button .ds-agent-label { display: inline; margin: 0; padding-left: 5px; border-left: 1px solid #c4d0e7; font-size: 11px; font-weight: 450; letter-spacing: 0; }
.opportunity-workspace .preview-button.primary .ds-agent-label { color: inherit; border-left-color: #ffffff60; }
.opportunity-workspace .ds-financial-chart { padding: 17px; margin: 20px 0; border: 1px solid #dae2ee; border-radius: 8px; background: #fffefa; }
.opportunity-workspace .ds-financial-chart .ds-bar-row + .ds-bar-row { margin-top: 16px; }
.opportunity-workspace .ds-financial-chart .ds-cost-bar { height: 12px; min-height: 0; margin: 0; }
.opportunity-workspace .ds-financial-chart .ds-chart-legend { margin-top: 17px; }
.opportunity-workspace .ds-chart-legend > span:not(:has(i))::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--workspace-blue); }
.opportunity-workspace .ds-chart-legend > span:nth-child(2):not(:has(i))::before { background: #7c94df; }
.opportunity-workspace .ds-chart-legend > span:nth-child(3):not(:has(i))::before { background: #b7c6eb; }
.opportunity-workspace .ds-bar-fill { background: #91a3d7; }
.opportunity-workspace .ds-bar-fill.is-subject { background: var(--workspace-blue); }
.opportunity-workspace .ds-work-item .ds-work-status { margin-top: 7px; margin-bottom: 4px; font-size: 12px; }
.opportunity-workspace .ds-work-item small { display: block; color: #5e6d81; font-size: 12px; }
.opportunity-workspace #preview-work-content .ds-ask-form .ds-ask-input { min-height: 110px; }
.opportunity-workspace #preview-dialog-content .ds-work-tabs button { margin-top: 0; padding: 9px 7px; color: #536881; border-color: transparent; background: transparent; }
.opportunity-workspace #preview-dialog-content .ds-work-tabs button[aria-pressed="true"] { color: var(--workspace-blue); border-color: #c4d2ec; background: #fffefa; }

@container workspace-content (max-width: 560px) {
  .opportunity-workspace .ds-strategy-grid { grid-template-columns: 1fr; }
  .opportunity-workspace .ds-step-diagram { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .opportunity-workspace .ds-step + .ds-step:before { display: none; }
}
@container workspace-content (max-width: 420px) {
  .opportunity-workspace .ds-metrics { grid-template-columns: 1fr; gap: 9px; }
  .opportunity-workspace .ds-metric { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; padding: 12px 14px; }
  .opportunity-workspace .ds-metric > span { align-self: center; margin: 0; }
  .opportunity-workspace .ds-metric > strong { font-size: 24px; text-align: right; }
  .opportunity-workspace .ds-metric small { grid-column: 1/-1; margin: 0; }
}

@media (max-width: 1050px) {
  .opportunity-workspace .developer-body,
  .opportunity-workspace.preview-open .developer-body { grid-template-columns: 54px minmax(0,1fr) 390px; }
  .opportunity-workspace .developer-toolbar { padding-inline: 16px; }
  .opportunity-workspace .preview-toolbar-note { display: none; }
  .opportunity-workspace .workspace-dealbar dl { gap: 10px; }
  .opportunity-workspace .workspace-toolbar-actions > button { padding-inline: 10px; font-size: 11px; }
  .opportunity-workspace #preview-deal-summary,
  .opportunity-workspace .preview-dialog-inner,
  .opportunity-workspace .workspace-work-panel { padding: 18px; }
}

@media (max-width: 800px) {
  .opportunity-workspace { --demo-height: auto; border-radius: 10px; }
  .opportunity-workspace .developer-toolbar { grid-template-columns: auto minmax(0,1fr); min-height: 60px; padding: 8px 14px; gap: 8px 12px; }
  .opportunity-workspace .workspace-dealbar { padding-left: 12px; gap: 10px; }
  .opportunity-workspace .workspace-toolbar-actions { grid-column: 1/-1; justify-content: flex-end; padding-top: 7px; border-top: 1px solid var(--workspace-line); }
  .opportunity-workspace .developer-workspace { font-size: 14px; gap: 5px; }
  .opportunity-workspace .developer-workspace strong { display: inline; }
  .opportunity-workspace .developer-workspace img { width: 27px; height: 27px; }
  .opportunity-workspace :is(.workspace-toolbar-actions,.workspace-actions) { gap: 6px; }
  .opportunity-workspace .developer-toolbar > button:not(.developer-workspace),
  .opportunity-workspace :is(.workspace-toolbar-actions,.workspace-actions) > button { font-size: 12px; padding-inline: 10px; }
  .opportunity-workspace .developer-body,
  .opportunity-workspace.preview-open .developer-body { display: grid; grid-template-columns: 54px minmax(0,1fr); grid-template-rows: 368px auto; height: auto; }
  .opportunity-workspace .developer-rail { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 8px; padding: 14px 5px; border-right: 1px solid var(--workspace-line); border-bottom: 0; overflow: visible; }
  .opportunity-workspace .developer-map { grid-column: 2; grid-row: 1; height: 368px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--workspace-line); }
  .opportunity-workspace .developer-map-label,
  .opportunity-workspace.preview-open .developer-map-label { top: 53%; }
  .opportunity-workspace .map-legend { left: auto; right: 14px; bottom: 18px; }
  .opportunity-workspace :is(.developer-deal,#preview-dialog) { grid-column: 2; grid-row: 2; height: auto; min-height: 0; overflow: visible; overscroll-behavior: auto; }
  .opportunity-workspace #preview-deal-summary,
  .opportunity-workspace .preview-dialog-inner { padding: 20px; }
  .opportunity-workspace .preview-dialog-inner { min-height: 0; }
  .opportunity-workspace .workspace-work-panel { grid-column: 2; grid-row: 2; height: auto; max-height: none; padding: 20px; border-left: 0; overflow: visible; overscroll-behavior: auto; }
  .opportunity-workspace :is(.workspace-overview-grid,.ds-card-grid) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .opportunity-workspace :is(.workspace-overview-metrics,.ds-metrics) { gap: 8px; }
  .opportunity-workspace .preview-entry { padding: 14px 20px; }
}

@media (max-width: 520px) {
  .opportunity-workspace .developer-toolbar { padding-inline: 12px; }
  .opportunity-workspace .developer-workspace { font-size: 13px; }
  .opportunity-workspace .developer-workspace strong { display: none; }
  .opportunity-workspace .workspace-dealbar { border-left: 0; padding-left: 0; }
  .opportunity-workspace .workspace-dealbar > div span { display: none; }
  .opportunity-workspace .workspace-dealbar dl > div:first-child { display: none; }
  .opportunity-workspace .workspace-toolbar-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .opportunity-workspace .workspace-toolbar-actions > button { min-width: 0; padding-inline: 9px; }
  .opportunity-workspace .workspace-toolbar-actions .workspace-export { white-space: normal; text-align: left; }
  .opportunity-workspace .workspace-property-header h3 { font-size: 22px; }
  .opportunity-workspace .workspace-property-meta { gap: 10px 20px; }
  .opportunity-workspace .developer-rail { padding-inline: 5px; }
  .opportunity-workspace #preview-deal-summary,
  .opportunity-workspace .preview-dialog-inner,
  .opportunity-workspace .workspace-work-panel { padding: 20px 17px; }
  .opportunity-workspace #preview-dialog-title { font-size: 22px; }
  .opportunity-workspace .preview-dialog-top { align-items: center; gap: 8px; }
  .opportunity-workspace #preview-dialog-kicker { font-size: 11px; max-width: 125px; }
  .opportunity-workspace :is(.ds-card-grid,.ds-step-diagram) { grid-template-columns: 1fr; }
  .opportunity-workspace .workspace-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .opportunity-workspace .workspace-overview-grid .workspace-overview-card { padding: 15px 12px; }
  .opportunity-workspace .ds-step + .ds-step:before { display: none; }
  .opportunity-workspace :is(.workspace-overview-metrics,.ds-metrics) > div,
  .opportunity-workspace .ds-metric { padding: 12px; }
  .opportunity-workspace :is(.workspace-overview-metrics,.ds-metrics,.ds-metric) :is(dd,strong) { font-size: 23px; letter-spacing: -.75px; }
  .opportunity-workspace .ds-metric small { font-size: 12px; }
  .opportunity-workspace .ds-bar-row { grid-template-columns: 85px minmax(0,1fr) auto; gap: 7px; font-size: 12px; }
  .opportunity-workspace .ds-financial-unknowns { grid-template-columns: 1fr; }
  .opportunity-workspace .ds-register-row { grid-template-columns: minmax(0,1fr); }
  .opportunity-workspace .ds-gap-action { align-items: stretch; flex-direction: row; justify-content: space-between; }
  .opportunity-workspace .ds-action-row .ds-button { flex: 1 1 140px; }
  .opportunity-workspace .scenario-tabs { gap: 3px; }
  .opportunity-workspace .scenario-tabs button { font-size: 12px; }
  .opportunity-workspace .ds-table :is(th,td) { padding: 11px 9px; }
}

/* Developed sample case: facts first, then an explicit next step. */
.opportunity-workspace .ds-property-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px; margin:0 0 20px; }
.opportunity-workspace .ds-property-facts > div { padding:11px 0; border-bottom:1px solid var(--workspace-line); min-width:0; }
.opportunity-workspace .ds-property-facts dt { color:var(--workspace-muted); font-size:11px; margin-bottom:4px; }
.opportunity-workspace .ds-property-facts dd { margin:0; color:var(--workspace-ink); font-size:20px; font-weight:550; line-height:1.25; font-variant-numeric:tabular-nums; letter-spacing:-.5px; }
.opportunity-workspace .ds-property-facts .is-price dd { color:var(--workspace-blue); font-size:28px; }
.opportunity-workspace .ds-property-facts small { color:var(--workspace-muted); font-size:10px; letter-spacing:0; font-weight:400; }
.opportunity-workspace .ds-property-facts dd small { font-size:12px; }
.opportunity-workspace :is(.ds-overview-progress,.ds-case-progress) { margin:0 0 20px; }
.opportunity-workspace :is(.ds-overview-progress,.ds-case-progress) > div { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:11px; color:var(--workspace-muted); }
.opportunity-workspace :is(.ds-overview-progress,.ds-case-progress) strong { font-size:12px; color:var(--workspace-blue); font-weight:600; }
.opportunity-workspace :is(.ds-overview-progress,.ds-case-progress) small { display:block; margin-top:4px; color:#758196; font-size:10px; }
.opportunity-workspace progress { appearance:none; -webkit-appearance:none; display:block; width:100%; height:4px; margin-top:8px; border:0; border-radius:6px; overflow:hidden; background:#e9edf4; }
.opportunity-workspace progress::-webkit-progress-bar { background:#e9edf4; border-radius:6px; }
.opportunity-workspace progress::-webkit-progress-value { background:var(--workspace-blue); border-radius:6px; }
.opportunity-workspace progress::-moz-progress-bar { background:var(--workspace-blue); border-radius:6px; }
.opportunity-workspace .ds-stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:15px 0; margin:8px 0 14px; border-block:1px solid var(--workspace-line); }
.opportunity-workspace .ds-stat-grid > div { min-width:0; }
.opportunity-workspace .ds-stat-grid strong { display:block; font-size:17px; color:var(--workspace-ink); font-weight:550; line-height:1.25; letter-spacing:-.4px; }
.opportunity-workspace .ds-stat-grid span { display:block; margin-top:5px; font-size:10px; color:var(--workspace-muted); }
.opportunity-workspace .ds-concept-grid { display:grid; gap:16px; margin:20px 0; }
.opportunity-workspace .ds-concept-card { overflow:hidden; border:1px solid var(--workspace-line); border-radius:10px; background:#fff; }
.opportunity-workspace .ds-concept-card > summary { list-style:none; cursor:pointer; padding-bottom:13px; }
.opportunity-workspace .ds-concept-card > summary::-webkit-details-marker { display:none; }
.opportunity-workspace .ds-concept-card > summary > img { display:block; width:100%; aspect-ratio:3/2; object-fit:cover; background:#eff1f4; }
.opportunity-workspace .ds-concept-card > summary > strong { display:block; margin:12px 14px 3px; color:var(--workspace-ink); font-size:14px; font-weight:550; }
.opportunity-workspace .ds-concept-card > summary > small { display:block; margin:0 14px; color:var(--workspace-blue); font-size:10px; }
.opportunity-workspace .ds-concept-card > summary:hover > strong { color:var(--workspace-blue); }
.opportunity-workspace .ds-concept-card[open] > summary > img { display:none; }
.opportunity-workspace .ds-concept-expanded { padding:0 14px 14px; }
.opportunity-workspace .ds-concept-expanded img { display:block; width:100%; border-radius:5px; }
.opportunity-workspace .ds-concept-expanded p { margin:10px 0 0; font-size:11px; line-height:1.6; color:var(--workspace-muted); }
.opportunity-workspace .ds-unit-mix { border-top:1px solid var(--workspace-line); }
.opportunity-workspace .ds-unit-mix > div { display:flex; justify-content:space-between; gap:10px; padding:12px 0; border-bottom:1px solid var(--workspace-line); font-size:11px; }
.opportunity-workspace .ds-unit-mix strong { color:var(--workspace-ink); font-weight:550; }
.opportunity-workspace .ds-unit-mix span { color:var(--workspace-muted); text-align:right; }
.opportunity-workspace .ds-timeline { list-style:none; padding:0; margin:16px 0 22px; }
.opportunity-workspace .ds-timeline li { display:grid; grid-template-columns:47px minmax(0,1fr); gap:3px 13px; padding:0 0 19px 13px; border-left:2px solid #dbe3f9; position:relative; }
.opportunity-workspace .ds-timeline li::before { content:''; position:absolute; top:4px; left:-5px; width:8px; height:8px; background:var(--workspace-blue); border-radius:50%; }
.opportunity-workspace .ds-timeline li:last-child { padding-bottom:0; }
.opportunity-workspace .ds-timeline span { grid-row:1 / 3; color:var(--workspace-blue); font-size:11px; font-weight:550; }
.opportunity-workspace .ds-timeline strong { color:var(--workspace-ink); font-size:12px; font-weight:550; }
.opportunity-workspace .ds-timeline small { color:var(--workspace-muted); font-size:10px; }
.opportunity-workspace .ds-comps-table { margin-top:20px; font-size:11px; border:1px solid var(--workspace-line); border-radius:7px; overflow:hidden; }
.opportunity-workspace .ds-comps-table > div { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr) minmax(0,.8fr); gap:9px; padding:10px; border-bottom:1px solid var(--workspace-line); }
.opportunity-workspace .ds-comps-table > div:first-child { background:#f5f7fa; font-size:10px; }
.opportunity-workspace .ds-comps-table > div:last-child { border-bottom:0; }
.opportunity-workspace .ds-comps-table :is(strong,b) { font-weight:550; }
.opportunity-workspace .ds-completed-checks { list-style:none; padding:0; margin:14px 0; }
.opportunity-workspace .ds-completed-checks li { padding:9px 0; border-bottom:1px solid var(--workspace-line); font-size:12px; color:#536578; }
.opportunity-workspace .ds-completed-checks li::before { content:'✓'; color:var(--workspace-blue); margin-right:9px; }
.opportunity-workspace .ds-document-viewer { margin-top:18px; padding:17px; border:1px solid var(--workspace-line); border-radius:8px; background:#fafbfe; font-size:12px; }
.opportunity-workspace .ds-document-viewer h4 { margin:0 0 9px; color:var(--workspace-ink); font-size:15px; }
.opportunity-workspace .ds-document-viewer p { font-size:12px; line-height:1.65; }
.opportunity-workspace .ds-finance-waterfall { margin:16px 0; }
.opportunity-workspace .ds-finance-waterfall > div { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--workspace-line); font-size:12px; }
.opportunity-workspace .ds-finance-waterfall strong { font-variant-numeric:tabular-nums; font-weight:550; color:var(--workspace-ink); }
.opportunity-workspace .ds-finance-waterfall > div:last-child { border-bottom:0; color:var(--workspace-blue); font-weight:550; }
@media (max-width:540px) { .opportunity-workspace .ds-property-facts dd { font-size:19px; } .opportunity-workspace .ds-stat-grid strong { font-size:16px; } }
/* The persistent rail provides navigation; keep panel openings about the deal. */
.opportunity-workspace .preview-dialog-top { display:none; }
.opportunity-workspace #preview-dialog-title { margin:0; }
.opportunity-workspace #preview-dialog-description { margin:7px 0 0; }
.opportunity-workspace #preview-dialog-content { margin-top:18px; }
.opportunity-workspace .ds-business-thesis { padding:14px; gap:10px; }
.opportunity-workspace .ds-business-thesis > .ds-state { padding:2px 6px; min-height:20px; }
.opportunity-workspace .ds-financial-outcomes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; overflow:hidden; margin-top:17px; border:1px solid #dce3ef; border-radius:7px; background:#dce3ef; }
.opportunity-workspace .ds-financial-outcomes > div { display:grid; gap:5px; min-width:0; padding:11px; background:#fff; }
.opportunity-workspace .ds-financial-outcomes span { font-size:10px; line-height:1.35; color:var(--workspace-muted); }
.opportunity-workspace .ds-financial-outcomes b { font-size:20px; font-weight:550; color:var(--workspace-ink); letter-spacing:-.5px; font-variant-numeric:tabular-nums; }
.opportunity-workspace .ds-financial-outcomes small { color:#758196; font-size:9px; line-height:1.4; }
.opportunity-workspace .preview-request-selection { display:grid; gap:10px; margin:18px 0 8px; padding:14px; border:1px solid var(--workspace-line); border-radius:8px; }
.opportunity-workspace .preview-request-selection legend { padding:0 5px; font-size:12px; color:var(--workspace-ink); }
.opportunity-workspace .preview-request-selection label { display:flex; align-items:flex-start; gap:9px; font-size:12px; color:var(--workspace-muted); }
.opportunity-workspace .preview-request-selection input { accent-color:var(--workspace-blue); margin-top:4px; }
.opportunity-workspace .ds-completed-checks li::before { content:none; }
.opportunity-workspace .ds-completed-checks li > span { color:var(--workspace-blue); margin-right:7px; }
.opportunity-workspace .ds-finance-waterfall { display:block; }
.opportunity-workspace .ds-finance-waterfall dt { color:var(--workspace-muted); font-size:11px; }
.opportunity-workspace .ds-finance-waterfall dd { margin:0; font-size:12px; color:var(--workspace-ink); font-weight:550; }
/* Financials: one result hierarchy, quiet metric rows and separate controls. */
.opportunity-workspace .ds-financial-verdict { padding:20px; }
.opportunity-workspace .ds-financial-verdict > div:first-of-type { flex-wrap:wrap; align-items:baseline; gap:7px 10px; }
.opportunity-workspace .ds-financial-outcomes { gap:0 22px; border:0; border-radius:0; background:transparent; margin-top:20px; }
.opportunity-workspace .ds-financial-outcomes > div { gap:7px; padding:16px 0; border-top:1px solid #dce3ef; background:transparent; align-content:start; }
.opportunity-workspace .ds-financial-outcomes span { min-height:28px; font-size:11px; line-height:1.35; }
.opportunity-workspace .ds-financial-outcomes b { font-size:22px; line-height:1.2; }
.opportunity-workspace .ds-financial-outcomes small { font-size:10px; line-height:1.45; }
.opportunity-workspace .ds-financial-verdict > p:last-child { border-top:1px solid #dce3ef; padding-top:14px; margin-top:2px; line-height:1.65; }
.opportunity-workspace .ds-financial-verdict + .scenario-tabs { margin-top:28px; margin-bottom:13px; gap:5px; }
.opportunity-workspace .scenario-tabs button { padding:11px 7px; font-size:12px; }
.opportunity-workspace #preview-model-state { margin:0 0 20px; }
.opportunity-workspace .preview-model-fields { gap:18px 16px; margin:20px 0 16px; }
.opportunity-workspace .preview-model-field label { display:block; margin-bottom:8px; font-size:11px; line-height:1.5; }
.opportunity-workspace .preview-model-field input { min-height:44px; }
.opportunity-workspace .preview-model-feedback { margin:0 0 24px; font-size:11px; line-height:1.6; }
.opportunity-workspace .ds-assumption-editor { margin-top:22px; }
.opportunity-workspace .ds-assumption-editor > summary { padding-block:16px; font-size:12px; }


/* Demo imagery: not draggable, selectable, or saveable from the context menu. */
.developer-preview img{-webkit-user-drag:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.developer-map-art{pointer-events:none}

/* "An AI team around your deal": three agents work the example deal in turn.
   preview.js moves each card through data-state="queued" → "working" → "done". Each card has a short step list
   that ticks off, then a result panel holding that agent's own visual (sourced facts, sensitivity bars, the typed draft). */
.team-flow{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:46px;list-style:none;margin:40px 0 0;padding:0 0 16px}
.team-flow-step{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:550;color:#8a95a0;transition:color .4s}
.team-flow-no{display:inline-grid;place-items:center;width:28px;height:28px;border:1px solid #cfd6d9;border-radius:50%;background:var(--surface);font-size:11px;font-weight:600;color:#8a95a0;transition:background .4s,border-color .4s,color .4s}
.team-flow-step[data-state=working],.team-flow-step[data-state=done]{color:var(--navy)}
.team-flow-step[data-state=working] .team-flow-no{border-color:var(--blue);color:var(--blue);box-shadow:0 0 0 4px #e3e9ff}
.team-flow-step[data-state=done] .team-flow-no{border-color:var(--blue);background:var(--blue);color:#fff}
.team-flow-track{position:absolute;left:0;right:0;bottom:0;height:2px;background:#e3e6e0;border-radius:2px;overflow:hidden}
.team-flow-track span{display:block;height:100%;width:var(--team-progress,0%);background:var(--blue);transition:width .6s cubic-bezier(.4,0,.2,1)}

.team-section .team-grid{margin-top:28px}
.team-card{transition:opacity .5s}
.team-section .team-visual{height:auto;min-height:408px;justify-content:flex-start;gap:0;padding:18px 20px;transition:border-color .4s,box-shadow .4s,background .4s}
.team-card[data-state=working] .team-visual{border-color:#9fb1ea;box-shadow:0 14px 34px -22px rgba(20,57,198,.55)}
.team-card[data-state=queued]{opacity:.62}

/* Agent header. Calm while working: the step spinner is the only looping motion. */
.agent-status{display:flex;align-items:center;gap:9px;padding-bottom:13px;margin-bottom:15px;border-bottom:1px solid #dfe2da;font-size:12px}
.agent-status strong{font-weight:600}
.agent-avatar{position:relative;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:6px;background:var(--navy);color:#fff;font-size:11px;font-weight:600;flex-shrink:0}
.team-card[data-state=working] .agent-avatar{background:var(--blue)}
.agent-state{margin-left:auto;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:11px;color:#6a7682;padding:3px 8px;border-radius:20px;background:#e8e8e0}
.agent-state::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.6}
.team-card[data-state=working] .agent-state{background:#e5eaff;color:var(--blue)}
.team-card[data-state=working] .agent-state::before{opacity:1}
.team-card[data-state=done] .agent-state{background:#e3efe2;color:#2f6b3c}
.team-card[data-state=done] .agent-state::before{content:"✓";width:auto;height:auto;background:none;opacity:1;font-size:10px;font-weight:700}

/* Steps: visible from the start, so a queued card never looks empty. A spinner marks the current step. */
.run-steps{display:grid;gap:9px;margin:0;padding:0;list-style:none}
.run-step{display:flex;align-items:center;gap:9px;font-size:12.5px;line-height:1.3;color:#8a95a0;transition:color .35s}
.run-step.is-in{color:var(--navy)}
.run-icon{position:relative;flex-shrink:0;box-sizing:border-box;width:16px;height:16px;border:1.5px dashed #b9c1c8;border-radius:50%;transition:background .3s,border-color .3s}
.run-step.is-in .run-icon{border:0;background:var(--blue)}
.run-step.is-in .run-icon::after{content:"";position:absolute;left:5.6px;top:3px;width:3.6px;height:7.2px;border:solid #fff;border-width:0 1.7px 1.7px 0;transform:rotate(45deg)}
.team-card[data-state=working] .run-step:first-child:not(.is-in),
.team-card[data-state=working] .run-step.is-in+.run-step:not(.is-in){color:var(--navy)}
.team-card[data-state=working] .run-step:first-child:not(.is-in) .run-icon,
.team-card[data-state=working] .run-step.is-in+.run-step:not(.is-in) .run-icon{border:2px solid #d5ddfa;border-top-color:var(--blue);animation:run-spin .8s linear infinite}

/* Result panel: Pending, In progress, then Saved. Faint placeholder lines stand in while the agent is queued. */
.run-result{position:relative;display:flex;flex:1;flex-direction:column;margin-top:15px;padding:11px 13px 13px;border:1px dashed #cfd5d6;border-radius:9px;transition:background .4s,border-color .4s,box-shadow .4s}
.team-card[data-state=done] .run-result,.run-result:has(.team-reveal.is-in){border-style:solid;border-color:#dde1e4;background:rgba(255,254,250,.62);box-shadow:0 10px 24px -20px rgba(12,29,51,.45)}
.run-result-head{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #e1e3dc;font-size:12px}
.run-result-head svg{width:15px;height:15px;flex-shrink:0;color:#8a95a0;transition:color .3s}
.run-result-head strong{font-weight:600;color:#6a7682;transition:color .3s}
.team-card:not([data-state=queued]) .run-result-head strong{color:var(--navy)}
.team-card:not([data-state=queued]) .run-result-head svg{color:var(--blue)}
.run-result-state{margin-left:auto;font-size:10.5px;white-space:nowrap;color:#8a95a0}
.run-result-state>span{display:none}
.team-card[data-state=queued] .run-result-state .is-queued,
.team-card[data-state=working] .run-result-state .is-working,
.team-card[data-state=done] .run-result-state .is-done{display:inline}
.team-card[data-state=working] .run-result-state{color:var(--blue)}
.team-card[data-state=done] .run-result-state{color:#2f6b3c}
.team-card[data-state=queued] .run-result::after{content:"";position:absolute;left:13px;right:13px;top:calc(50% + 21px);height:57px;transform:translateY(-50%);background:linear-gradient(#e3e3db,#e3e3db) 0 0/82% 9px no-repeat,linear-gradient(#e3e3db,#e3e3db) 0 24px/64% 9px no-repeat,linear-gradient(#e3e3db,#e3e3db) 0 48px/73% 9px no-repeat;opacity:.9}

/* Findings appear with the step that produces them. The visual is sized to its content and centred,
   so the dashed target line stays on the bars. */
.team-steps{display:flex;flex:1;flex-direction:column;justify-content:center;gap:9px}
.run-result .team-steps{flex:0 0 auto;margin-block:auto}
.team-reveal{transition:opacity .5s ease,transform .5s ease}
.team-card[data-state=queued] .team-reveal,.team-reveal:not(.is-in){opacity:0;transform:translateY(8px)}
.team-section .source-line{padding:9px 10px}
.team-section .source-line strong{font-size:12px}
.team-section .source-line small{font-size:10.5px}
.team-section .mini-badge{font-size:10px;padding:2px 6px}
.team-section .source-gap{font-size:12px;padding:9px 10px;color:#8a4b12;border-color:#e2b98c;background:#fdf6ec}
.team-section .source-gap>span{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#e8a25b;color:#fff;font-size:11px;font-weight:700}
.team-section .source-gap.is-in{animation:team-flag .9s ease .2s}

.team-bars{position:relative;gap:12px}
.team-section .sensitivity-row{grid-template-columns:96px 1fr 44px;gap:10px;margin:0;font-size:11.5px;position:relative}
.team-section .sensitivity-row i{position:relative;height:12px;width:0;opacity:1;background:var(--blue);transition:width .7s cubic-bezier(.3,.7,.2,1),background .4s}
.team-section .sensitivity-row.is-in i{width:var(--bar-width)}
.team-section .sensitivity-row:nth-of-type(2) i{background:#5b76db}
.team-section .sensitivity-row.is-risk i{background:#e0873c}
.team-section .sensitivity-row.is-risk small{color:#b0601e;font-weight:600}
.team-section .sensitivity-row small{font-size:11.5px;font-variant-numeric:tabular-nums;color:var(--navy);transition:color .4s}
/* The target line draws in only at the "Compare with the target" step (when the footnote appears),
   and the at-risk bar turns orange at that moment rather than before the comparison. */
.team-bars::before{content:"";position:absolute;top:-4px;height:98px;width:0;border-left:1.5px dashed #0c1d3399;left:calc(106px + (100% - 160px) * .75);opacity:0;transform:scaleY(0);transform-origin:top;transition:opacity .2s,transform .5s cubic-bezier(.2,.7,.2,1)}
.team-bars:has(.model-footnote.is-in)::before{opacity:1;transform:none}
.team-bars:not(:has(.model-footnote.is-in)) .sensitivity-row.is-risk i{background:#5b76db}
.team-bars:not(:has(.model-footnote.is-in)) .sensitivity-row.is-risk small{color:var(--navy);font-weight:400}
.team-section .model-footnote{display:flex;align-items:center;gap:7px;font-size:11px;margin-top:4px;padding-top:11px}
.team-target-key{width:0;height:11px;border-left:1.5px dashed #0c1d3399}

.team-draft{margin:0;min-height:62px;font-size:12.5px;line-height:1.65;color:#40576b}
.team-draft.is-typing::after{content:"";display:inline-block;width:1.5px;height:1.05em;margin-left:1px;vertical-align:-2px;background:var(--blue);animation:team-blink .8s steps(1) infinite}
.team-section .draft-review{margin-top:2px;font-size:11.5px;color:#2f6b3c}
.team-check{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#2f8a4a;color:#fff;font-size:9px;font-weight:700}

.team-section .team-card>p:last-child{font-size:14px}

@keyframes run-spin{to{transform:rotate(360deg)}}
@keyframes team-blink{50%{opacity:.25}}
@keyframes team-flag{50%{box-shadow:0 0 0 4px #f6dcbf}}

@media(max-width:920px){
  .team-flow{gap:20px}
  .team-flow-step{font-size:12px}
}
@media(max-width:800px){
  .team-flow{display:none}
  .team-section .capability{grid-template-columns:1fr}
  .team-section .team-visual{grid-row:auto;min-height:0;margin-bottom:20px}
  .team-section .feature-index,.team-section .capability h3,.team-section .capability>p:last-child{grid-column:1}
  .team-section .capability>p:last-child{font-size:13px}
}

@media(prefers-reduced-motion:reduce){
  .run-icon{animation:none!important}
  .team-reveal,.team-card[data-state=queued] .team-reveal{opacity:1;transform:none}
  .team-section .sensitivity-row i{width:var(--bar-width)}
  .team-card[data-state=queued]{opacity:1}
}

/* Three agent cards share row lines: visuals, labels, titles and copy align across the row. */
@media (min-width: 769px) {
  .team-section .team-grid { grid-template-rows: auto auto auto auto; align-items: stretch; }
  .team-section .team-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  .team-section .team-card .team-visual { height: 100%; margin-bottom: 26px; }
}

/* Roomier property rail: 72px wide, 60px tiles, legible labels. Tablet and up only;
   the phone layout in styles.css keeps its own row rail. */
@media (min-width: 801px) {
  .opportunity-workspace .developer-body,
  .opportunity-workspace.preview-open .developer-body { grid-template-columns: 64px minmax(0,1fr) 410px; }
  .opportunity-workspace .developer-rail { gap: 6px; padding: 12px 5px; }
  .opportunity-workspace .rail-tool { width: 54px; height: 52px; min-height: 52px; gap: 4px; padding: 5px 2px; font-size: 10px; line-height: 1.15; }
  .opportunity-workspace .rail-tool svg { width: 19px; height: 19px; }
  .opportunity-workspace .rail-tool:is(.active,[aria-selected="true"],[aria-pressed="true"])::before { inset: 9px auto 9px -5px; }
}
@media (min-width: 801px) and (max-width: 1100px) { .opportunity-workspace.preview-open .developer-body { grid-template-columns: 64px minmax(0,1fr) 390px; } }

/* UI 22 product demo: deal list · investment memo · map. */
.u22 { --ink: #0c1d33; --blue: #1439c6; --ivory: #fbfaf6; --side: #f3f2ec; --line: #e4e2da; --mute: #6b7584; --good: #1f7a4d; --bad: #a3471c; }
.u22 button { font: inherit; cursor: pointer; }
.u22-app { display: grid; grid-template-columns: 208px minmax(0, 1fr) minmax(0, .78fr); height: 680px; background: var(--ivory); color: var(--ink); }
.u22.u22-nudge .u22-deals .is-active button { animation: u22nudge .5s; }
@keyframes u22nudge { 30% { background: #e2e6f7; } }

/* Left: deal list like a chat history */
.u22-side { background: var(--side); border-right: 1px solid var(--line); padding: 16px 10px; overflow: hidden; }
.u22-brand { display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 14px; }
.u22-new { margin: 18px 8px 0; font-size: 13px; color: #33445a; }
.u22-side-label { margin: 22px 8px 6px; font-size: 11px; color: var(--mute); }
.u22-side-label span { color: #9aa1ab; }
.u22-deals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.u22-deals li { border-radius: 8px; }
.u22-deals button { display: flex; gap: 9px; width: 100%; padding: 9px 8px; border: 0; border-radius: 8px; background: none; text-align: left; color: var(--ink); }
.u22-deals button:hover, .u22-deals .is-active button { background: #e7e5dd; }
.u22-deals i { width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: #b8452a; flex: none; }
.u22-deals i.d-amber { background: #c98a1b; } .u22-deals i.d-grey { background: #8b93a0; }
.u22-deals strong { display: block; font-size: 13px; font-weight: 500; }
.u22-deals small { font-size: 11px; color: var(--mute); }

/* Middle: memo */
.u22-memo { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--ivory); }
.u22-top { position: relative; padding: 4px 44px 0; border-bottom: 1px solid var(--line); background: var(--ivory); }
.u22-close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 20px; line-height: 1; color: var(--mute); }
.u22-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.u22-ready { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--mute); }
.u22-ready span:first-child { color: var(--ink); font-weight: 500; }
.u22-bar { width: 64px; height: 4px; border-radius: 4px; background: #e2e0d8; overflow: hidden; }
.u22-bar i { display: block; height: 100%; background: var(--good); transition: width .5s; }
.u22-export { flex: none; padding: 6px 12px; border: 1px solid var(--blue); border-radius: 7px; background: #fff; color: var(--blue); font-size: 12.5px; font-weight: 600; }
.u22-tabs { display: flex; justify-content: center; gap: 2px; padding: 8px 0 9px; overflow-x: auto; scrollbar-width: none; }
.u22-tabs button { flex: none; padding: 6px 11px; border: 0; border-radius: 8px; background: none; color: #5b6676; font-size: 13px; }
.u22-tabs button:hover { color: var(--ink); }
.u22-tabs button.is-on { background: #ebe9e1; color: var(--ink); font-weight: 500; }
.u22-tabs b { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 4px; border-radius: 8px; background: #a8661a; color: #fff; font-size: 10px; font-weight: 600; }
.u22-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 26px 90px; scroll-behavior: auto; }
.u22-sample { margin: 0 0 6px; font-size: 11px; letter-spacing: .02em; color: #8a6a1f; }
.u22-head h3 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -.01em; }
.u22-sub { margin: 6px 0 16px; font-size: 13px; color: var(--mute); }
.u22-strip, .u22-kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.u22-strip > div, .u22-kpis > div { padding: 11px 13px; border-left: 1px solid var(--line); min-width: 0; }
.u22-strip > div:first-child, .u22-kpis > div:first-child { border-left: 0; }
.u22-strip dt, .u22-kpis dt, .u22-facts dt { font-size: 11px; color: var(--mute); }
.u22-strip dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.is-good { color: var(--good) !important; } .is-bad { color: var(--bad) !important; }
.u22-ch { margin-top: 30px; }
.u22-ch h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.u22-ch > p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: #3c4a5c; }
.u22-pill { padding: 2px 8px; border-radius: 10px; background: #e3f1e8; color: var(--good); font-family: var(--font); font-size: 10.5px; font-weight: 500; }
.u22-photos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 6px; }
.u22-photos img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }
.u22-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.u22-facts dd { margin: 3px 0 1px; font-size: 15px; font-weight: 600; }
.u22-facts small { font-size: 11px; color: #8c94a0; }
.u22-kpis { grid-template-columns: repeat(3, 1fr); }
.u22-kpis dd { margin: 6px 0 4px; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1; }
.u22-kpis small { font-size: 11px; color: var(--mute); }
.u22-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.u22-sliders label { display: block; font-size: 12px; color: #3c4a5c; }
.u22-sliders label > span { display: flex; justify-content: space-between; gap: 8px; }
.u22-sliders b { color: var(--blue); font-weight: 600; }
.u22-sliders input { width: 100%; height: 22px; margin: 4px 0 0; -webkit-appearance: none; appearance: none; background: transparent; }
.u22-sliders input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue) var(--fill, 50%), #dcdfe6 var(--fill, 50%)); }
.u22-sliders input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 1px 3px #0c1d3340; }
.u22-sliders input::-moz-range-track { height: 4px; border-radius: 4px; background: #dcdfe6; }
.u22-sliders input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--blue); }
.u22-sliders input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; }
.u22-note { margin: 8px 0 0 !important; font-size: 12px !important; color: var(--mute) !important; }
.u22-note button { padding: 0; border: 0; background: none; color: var(--blue); font-weight: 500; }

/* Diligence + agents */
.u22-items, .u22-docs { list-style: none; margin: 0; padding: 0; }
.u22-items > li { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.u22-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; }
.u22-item strong { display: block; font-size: 13.5px; font-weight: 600; }
.u22-agent strong { display: block; font-size: 13.5px; font-weight: 500; }
.u22-item small { display: block; margin-top: 2px; font-size: 12px; color: var(--mute); }
.u22-find, .u22-btn { flex: none; padding: 7px 13px; border: 1px solid #d5d9e2; border-radius: 7px; background: #fff; color: var(--blue); font-size: 12.5px; font-weight: 500; }
.u22-find:hover, .u22-btn:hover { border-color: var(--blue); }
.u22-btn { color: var(--ink); }
.u22-btn-primary { padding: 7px 15px; border: 1px solid var(--blue); border-radius: 7px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 600; }
.u22-allow { padding: 13px 14px; box-shadow: 0 6px 20px -12px #0c1d3340; animation: u22rise .25s ease-out; }
.u22-allow-q { margin: 0; font-size: 13.5px; font-weight: 600; }
.u22-allow-q span { color: var(--blue); }
.u22-allow-task { margin: 9px 0 0; padding: 9px 11px; border-radius: 7px; background: #f1f0ea; font-size: 12.5px; line-height: 1.5; }
.u22-allow-note { margin: 8px 0 10px; font-size: 11.5px; color: var(--mute); }
.u22-allow-actions { display: flex; gap: 8px; }
.u22-agent { display: flex; align-items: center; gap: 11px; padding: 11px 14px; animation: u22rise .25s ease-out; }
.u22-agent > div { flex: 1; min-width: 0; }
.u22-agent > div > span { font-size: 12px; color: var(--mute); }
.u22-agent.is-found { border-left: 3px solid var(--good) !important; }
.u22-spin { width: 14px; height: 14px; flex: none; border: 2px solid var(--blue); border-right-color: transparent; border-radius: 50%; animation: u22spin .9s linear infinite; }
.u22-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--good); }
.u22-shimmer { background: linear-gradient(90deg, #9aa1ab 20%, var(--ink) 40%, #9aa1ab 60%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: u22shimmer 1.6s linear infinite; }
.u22-elapsed { font-size: 11.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.u22-link { padding: 0; border: 0; background: none; color: var(--good); font-size: 12px; font-weight: 600; }
.u22-finding { margin-top: 12px; padding: 11px 14px; border: 1px solid var(--line); border-left: 3px solid var(--good); border-radius: 10px; background: #fff; animation: u22rise .35s ease-out; }
.u22-finding-head { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.u22-found { margin-left: auto; font-size: 11.5px; color: var(--good); font-weight: 600; }
.u22-finding p { margin: 6px 0 4px; font-size: 13px; line-height: 1.5; }
.u22-finding small { font-size: 11px; color: #8a6a1f; }
.u22-docs { display: flex; flex-direction: column; gap: 6px; }
.u22-doc { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; transition: border-color .15s, background .15s; }
.u22-doc:hover { border-color: #c7cde0; background: #f7f8fc; }
.u22-doc:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.u22-file { width: 20px; height: 20px; flex: none; color: var(--blue); }
.u22-doc.is-missing .u22-file { color: #a3a9b3; }
.u22-doc-text { flex: 1; min-width: 0; }
.u22-doc-text strong { display: block; font-size: 13.5px; font-weight: 500; }
.u22-doc-text small { font-size: 12px; color: var(--mute); }
.u22-doc.is-missing small { color: #a8661a; }
.u22-doc-act { flex: none; font-size: 12.5px; font-weight: 600; color: var(--blue); }
.u22-doc.is-missing .u22-doc-act { padding: 5px 11px; border: 1px solid #d5d9e2; border-radius: 7px; }
.u22-docview { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: #0c1d3333; }
.u22-docview[hidden] { display: none; }
.u22-docview-card { width: min(420px, 100%); padding: 16px 18px; border-radius: 12px; background: #fff; box-shadow: 0 16px 40px -16px #0c1d3380; animation: u22rise .2s ease-out; }
.u22-docview-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 15px; }
.u22-docview-head button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f1f0ea; font-size: 16px; }
.u22-docview-card p:last-child { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: #3c4a5c; }
@keyframes u22spin { to { transform: rotate(360deg); } }
@keyframes u22shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes u22rise { from { opacity: 0; transform: translateY(4px); } }

.u22-ask { position: absolute; left: 20px; right: 20px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 6px 18px -10px #0c1d3340; font-size: 13px; color: #8a93a0; }
.u22-ask > span:first-child { color: var(--blue); }
.u22-ask-field { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u22-ask-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.u22-ask-slash { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; font: 600 13px/1 ui-monospace, monospace; color: var(--ink-2, #445266) !important; }

/* Right: map */
.u22-map { position: relative; overflow: hidden; background: #dfe3e2; border-left: 1px solid var(--line); }
.u22-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; user-select: none; transform-origin: 50% 42%; transition: transform .25s ease; }
.u22-mapctl { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.u22-mapctl button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 16px; line-height: 1; box-shadow: 0 2px 8px -3px #0c1d3366; }
.u22-mapctl button:hover { background: #eef1fb; color: var(--blue); }
.u22-pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -100%); display: flex; gap: 7px; padding: 7px 12px; border-radius: 20px; background: #fff; box-shadow: 0 4px 14px -6px #0c1d3366; font-size: 12px; white-space: nowrap; }
.u22-pin strong { font-weight: 500; } .u22-pin em { font-style: normal; color: var(--blue); font-weight: 600; }
.u22-map-note { position: absolute; left: 12px; bottom: 12px; padding: 4px 9px; border-radius: 6px; background: #ffffffd9; font-size: 11px; color: #435265; }

@media (max-width: 1100px) {
  .u22-app { grid-template-columns: 180px minmax(0, 1fr) minmax(0, .6fr); }
  .u22-sliders { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .u22-app { display: flex; flex-direction: column; height: auto; }
  .u22-side { order: 1; display: flex; gap: 6px; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .u22-brand, .u22-new, .u22-side-label { display: none; }
  .u22-deals { flex-direction: row; gap: 6px; }
  .u22-deals li { flex: none; }
  .u22-deals button { padding: 7px 11px; border: 1px solid var(--line); background: #fff; }
  .u22-deals small { display: none; }
  .u22-map { order: 2; height: 190px; border-left: 0; }
  .u22-pin { top: 46%; }
  .u22-memo { order: 3; height: 620px; }
  .u22-top { padding: 4px 36px 0 12px; }
  .u22-close { right: 10px; }
  .u22-mapctl { flex-direction: row; right: 10px; bottom: 10px; }
  .u22-tabs { justify-content: flex-start; }
  .u22-scroll { padding: 18px 16px 84px; }
  .u22-head h3 { font-size: 25px; }
  .u22-strip { grid-template-columns: 1fr 1fr; }
  .u22-strip > div:nth-child(3) { border-left: 0; }
  .u22-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .u22-kpis { grid-template-columns: 1fr 1fr; }
  .u22-kpis > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .u22-kpis > div:nth-child(2) { border-left: 0; }
  .u22-kpis dd { font-size: 23px; }
  .u22-photos img { height: 110px; }
  .u22-facts { grid-template-columns: 1fr 1fr; }
  .u22-ask { left: 12px; right: 12px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .u22-spin, .u22-shimmer, .u22-allow, .u22-agent, .u22-finding { animation: none; } }
.u22 .u22-item .u22-find { padding: 5px 11px; font-size: 12px; line-height: 1.3; }
