/* Shared visual language of the Mira film and the interactive demo. */
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/polices/inter-tight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/polices/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
.prospect {
  --ink: #0e1330;
  --ink-2: #4b5168;
  --muted: #5d637b;
  --blue: #2a35c9;
  --pink: #c2185b;
  --line: #dfe3f1;
  --lavender: #f3f3fc;
  --title: "Inter Tight", Arial, sans-serif;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: #f6f6fd;
}
.prospect h1, .prospect h2, .prospect h3 {
  font-family: var(--title);
  font-weight: 500;
  letter-spacing: -.025em;
}
.prospect button, .prospect input:not([type="checkbox"]),
.prospect textarea, .prospect select {
  border-color: var(--line);
  color: var(--ink);
}
.prospect :is(button, input, select, textarea, a, summary):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.prospect .primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  font-weight: 600;
}
.prospect .primary:hover:not(:disabled) { background: #222ca8; }
.prospect .top {
  height: 68px;
  border-color: var(--line);
  padding-inline: clamp(16px, 4vw, 56px);
}
.prospect .brand {
  font-family: var(--title);
  color: var(--ink);
  letter-spacing: -.015em;
  font-size: 17px;
}
.prospect .brand img { width: 40px; height: auto; }
.prospect .brand span { color: var(--muted); font-size: 14px; }
.prospect .layout {
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: calc(100dvh - 68px);
  background: radial-gradient(ellipse at 80% 0, #e4e5fc90, transparent 55%), #f6f6fd;
}
.workspace-nav {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 15px;
}
.workspace-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 20px;
  font: 600 16px var(--title);
}
.workspace-brand img { width: 32px; height: auto; }
.prospect .nav {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 7px 10px;
  color: var(--muted);
  font-weight: 600;
}
.prospect .nav::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  mask: var(--nav-icon) center / contain no-repeat;
}
.prospect .nav[data-view="projects"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M3 7h7l2 2h9v11H3zM3 7V4h7l2 3h7'/%3E%3C/svg%3E"); }
.prospect .nav[data-view="monitor"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); }
.prospect .nav[data-view="review"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M6 3h12v18l-6-4-6 4z'/%3E%3C/svg%3E"); }
.prospect .nav[data-view="alerts"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9M10 21h4'/%3E%3C/svg%3E"); }
.prospect .nav:is(.selected, :hover) { background: #eef0ff; color: var(--blue); }
.prospect .aside-note { color: var(--muted); margin-top: auto; }
.prospect .content { width: min(1360px, 100%); padding: 25px clamp(18px, 3.4vw, 56px) 72px; }
.prospect .film-panel { color: var(--blue); margin: 24px 0 0; }
.prospect .film-panel summary { width: fit-content; font-size: 13px; }
.prospect .page-heading {
  align-items: center;
  border-color: var(--line);
  padding-bottom: 14px;
}
.prospect .page-heading .eyebrow { display: none; }
.prospect .page-heading h1 { font-size: 20px; color: var(--ink-2); margin: 0; }
.prospect .project-select { width: min(280px, 100%); font-size: 13px; }
.prospect .project-select select { padding: 7px 10px; }
.prospect .intro { margin: 26px 0 18px; }
.prospect .eyebrow { color: var(--muted) !important; letter-spacing: .16em; }
.prospect .intro h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  max-width: 24ch;
}
.prospect #view-monitor .intro h2 { max-width: 36ch; }
.prospect .intro h2 em { color: var(--blue); font-style: normal; }
.prospect .intro p, .prospect .card p { color: var(--muted); }
.prospect .intro p { margin: 9px 0 0; }
.prospect .card {
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: 0 7px 26px #222e7b0a;
}
.prospect #project-form { border-radius: 24px; padding: clamp(20px, 4vw, 34px); }
.prospect .project-prompt textarea {
  border-radius: 12px;
  padding: 16px 18px;
  font: 500 clamp(19px, 2.2vw, 27px)/1.35 var(--title);
  letter-spacing: -.025em;
  background: #fafaff;
}
.prospect .upload { background: var(--lavender); }
.prospect .search { padding: 16px 20px; }
.prospect .search label { color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.prospect .source-status { gap: 5px; margin: 12px 0; }
.prospect .source { background: #eeeefa; color: var(--ink-2); padding: 3px 9px; }
.prospect .source.error { color: #913a52; background: #fcebf1; }
.prospect .summary-card { border-color: var(--line); padding: 10px 13px; }
.prospect .summary-card strong { color: var(--blue); font-family: var(--title); }
.monitor-board {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 35px 75px #222e7b17, 0 8px 15px #222e7b07;
}
.board-bar, .board-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: clamp(16px, 2.6vw, 32px);
}
.board-bar { min-height: 55px; border-bottom: 1px solid #eef0f7; padding-block: 8px; }
.board-bar img { width: auto; height: 30px; }
.board-bar strong { font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.board-bar small { margin-left: auto; color: var(--blue); letter-spacing: .12em; font-size: 11px; font-weight: 600; }
.prospect .board-review {
  white-space: nowrap;
  border-radius: 999px;
  background: #f3f3fc;
  color: var(--blue);
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 600;
}
.prospect .board-alerts { padding: 5px; border: 0; color: var(--muted); display: grid; place-items: center; }
.board-alerts svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.board-head { min-height: 65px; justify-content: space-between; }
.board-head h3 { margin: 0; font-size: clamp(19px, 2.4vw, 26px); }
.board-head h3 b { color: var(--blue); font-weight: 500; }
.board-switch { display: flex; padding: 3px; border-radius: 9px; background: #f1f3fb; flex: none; }
.prospect .board-switch button { border: 0; color: var(--muted); min-width: 68px; padding: 5px 11px; background: transparent; }
.prospect .board-switch button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: 0 2px 5px #24358012; }
.board-filters { margin: 0 clamp(16px, 2.6vw, 32px) 10px; }
.board-filters summary { width: fit-content; cursor: pointer; color: var(--blue); font-weight: 600; font-size: 13px; }
.board-filter-controls { margin-top: 10px; padding: 12px; background: var(--lavender); border-radius: 10px; }
.prospect .board-filter-controls .filters { background: transparent; border: 0; box-shadow: none; padding: 4px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.board-filter-controls select { padding: 6px; }
.board-filter-controls #upcoming-dates { margin: 4px 0 0; font-size: 13px; padding-left: 16px; }
.board-table { padding: 0 clamp(16px, 2.6vw, 32px) 14px; }
.board-columns, .board-row {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) .44fr 1.05fr .85fr .65fr 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
}
.board-columns { font-size: 12px; color: var(--muted); padding: 5px 0 8px; }
.board-table .results { gap: 0; }
.prospect .board-row {
  width: 100%;
  min-height: 68px;
  padding: 10px 0;
  background: #fff;
  border: 0;
  border-top: 1px solid #edf0f8;
  border-radius: 0;
  font-size: 14px;
}
.prospect .board-row:is(:hover, :focus-visible) { background: #f3f4ff; }
.board-row > span { min-width: 0; overflow-wrap: anywhere; }
.board-row strong { font-family: var(--title); font-size: 16px; font-weight: 500; line-height: 1.2; display: block; }
.board-row small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; margin-top: 3px; }
.board-row .board-date { border-left: 1px solid #e7eaf4; padding-left: 10px; }
.board-pill { display: inline-block; justify-self: start; border-radius: 6px; background: #edf5f4; color: #18794e; padding: 4px 7px; font-size: 12px; line-height: 1.2; }
.board-pill[data-kind="guide"], .board-pill[data-kind="unknown"] { background: #f2f2fb; color: var(--blue); }
.board-impact[data-level="high"] { color: var(--pink); font-weight: 600; }
.board-empty, .board-table .results > p { color: var(--muted); padding: 12px 0; }
.prospect #board-map { padding: 18px clamp(16px, 2.6vw, 32px); margin: 0; background: linear-gradient(145deg, #fafbff, #f5f6ff); }
.prospect #board-map p { color: var(--muted); }
.prospect .geography-layout svg { width: min(100%, 580px); max-height: 320px; background: transparent; }
.prospect .geography-layout path { fill: #e8ecf7; stroke: #fff; stroke-width: .08; }
.prospect .geography-layout path[data-active="true"] { fill: #b3beee; }
.prospect .geography-layout path[data-selected="true"] { fill: #7787df; }
.prospect .geography-layout button { border-radius: 11px; background: #fff; color: var(--blue); }
.prospect .geography-layout button[aria-pressed="true"] { background: #eef0ff; border-color: #bbc4ef; }
.document-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(540px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: auto;
  padding: 0 26px 26px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: -18px 0 50px -20px #0e133048;
}
.document-drawer::backdrop { background: #0e13302c; }
.drawer-top {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  padding-block: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
}
.drawer-top button { padding: 0 10px; font-size: 25px; line-height: 1.15; }
.drawer-detail h3 { font-size: 26px; line-height: 1.14; margin: 6px 0 10px; }
.drawer-detail p { color: var(--ink-2); }
.drawer-meta { color: var(--muted); font-size: 13px; }
.drawer-section { margin: 18px 0; }
.drawer-section h4 { margin: 0 0 5px; font-size: 13px; color: var(--blue); font-weight: 600; }
.drawer-section p { margin: 0; }
.drawer-section strong { display: block; margin: 5px 0 9px; font: 500 18px/1.3 var(--title); }
.drawer-section .copy-brief { margin-left: 8px; }
.drawer-section.is-impact, .drawer-detail .result-scenario { background: var(--lavender); border-color: var(--line); border-radius: 12px; padding: 14px; }
.prospect .result blockquote { border-color: #bcc3ef; color: var(--ink-2); }
.prospect #review-list { background: var(--lavender); padding: 18px; border-radius: 20px; border: 1px solid var(--line); }
.review-record, .alert-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 35%);
  align-items: start;
  gap: 16px;
}
.review-actions { display: grid; gap: 10px; }
.review-actions h3, .alert-mail h3 { margin: 0; font-size: 21px; }
.alert-settings, .alert-mail { align-self: stretch; }
.prospect .alert-mail { border-top: 4px solid var(--blue); }
.alert-mail .eyebrow { margin: 0 0 7px; }
.alert-mail ul { padding-left: 18px; }
.alert-mail li { padding-block: 5px; }
.decision-brief {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px clamp(16px, 2.4vw, 28px);
  box-shadow: 0 10px 30px #222e7b10;
}
.decision-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}
.decision-heading h3 { font-size: 24px; margin: 2px 0 0; }
.decision-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.decision-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.decision-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9f9ff;
}
.decision-item h4 { margin: 0; font: 500 19px/1.2 var(--title); color: var(--ink); }
.decision-item p { margin: 0; color: var(--ink-2); line-height: 1.35; overflow-wrap: anywhere; }
.decision-item .decision-meta { color: var(--muted); font-size: 12px; }
.decision-item .decision-consequence, .prospect .decision-consequence { color: var(--blue); font-weight: 600; }
.decision-item .decision-action { font-weight: 600; }
.prospect .decision-open { align-self: start; margin-top: auto; padding: 5px 0 0; border: 0; background: none; color: var(--blue); font-weight: 600; }
.scenario-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-block: 14px; }
.scenario-actions span, .prospect .value-note, .prospect .value-formula { color: var(--muted); font-size: 13px; }
.value-metrics, .value-sensitivity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 9px;
}
.value-metric { padding: 12px 15px; background: var(--lavender); border-radius: 10px; }
.value-metric span { color: var(--muted); font-size: 13px; display: block; }
.value-metric strong { display: block; font: 500 25px/1.25 var(--title); color: var(--blue); overflow-wrap: anywhere; }
.value-sensitivity .value-metric strong { font-size: 18px; }
.value-scenario h3 { margin: 12px 0 8px; font-size: 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) {
  .prospect .layout { grid-template-columns: 1fr; }
  .prospect .workspace-nav { flex-direction: row; overflow: auto; padding: 9px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .prospect .workspace-brand, .prospect .aside-note { display: none; }
  .prospect .nav { white-space: nowrap; }
}
@media (max-width: 700px) {
  .prospect .workspace-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .prospect .workspace-nav .nav { white-space: normal; }
  .prospect .project-select { width: 100%; }
  .prospect .board-bar { gap: 7px; flex-wrap: wrap; }
  .board-bar small { flex: 1 0 100%; order: 1; }
  .board-bar strong { flex: 1; }
  .prospect .board-filter-controls .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-columns { display: none; }
  .prospect .board-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding-block: 12px; }
  .board-row .board-title { grid-column: 1 / -1; }
  .board-row .board-date { border-left: 0; padding-left: 0; }
  .board-row > [data-column]::before {
    content: attr(data-column);
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    margin-bottom: 2px;
  }
  .document-drawer { padding-inline: 17px; }
  .review-record, .alert-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Run 1: keep results and evidence within the first screen. */
#view-monitor > .intro { margin-bottom: 16px; }
#view-monitor > .intro h2 { font-size: clamp(26px, 3vw, 42px); margin: 8px 0; }
#view-monitor > .intro .eyebrow { display: none; }
.collection-details { margin: 8px 0 16px; }
#collection-summary { font-size: 13px; line-height: 1.6; }
.decision-item { min-width: 0; overflow-wrap: anywhere; }
.decision-relevance { font-size: 12px; }
.drawer-detail { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #ceff53; outline-offset: 3px; }
@media (max-width: 700px) { .decision-items { grid-template-columns: 1fr; } .board-filter-controls { min-width: 0; } }

.decision-relevance, .decision-consequence, .decision-action { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.decision-item .decision-open { margin: 6px 0 8px; }
@media (max-width: 700px) {
  .prospect .workspace-nav { grid-template-columns: repeat(4, minmax(0,1fr)); padding: 6px; gap: 2px; }
  .prospect .workspace-nav .nav { flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 12px; line-height: 1.15; }
  .prospect:has(#view-monitor:not([hidden])) .page-heading h1 { display: none; }
  .prospect:has(#view-monitor:not([hidden])) .page-heading { gap: 0; margin-bottom: 12px; padding-bottom: 10px; }
  .prospect #view-monitor > .intro { margin: 10px 0; }
  .prospect #view-monitor > .intro h2 { font-size: 24px; margin: 0; }
  .prospect #view-monitor > .intro > p { display: none; }
  .prospect #search-form { padding: 14px; }
  .prospect #search-form .search-row { display: flex; flex-direction: row; gap: 6px; }
  .prospect #search-query { width: 0; min-width: 0; flex: 1; }
  .prospect #search-form button { width: auto; margin: 0; padding-inline: 10px; }
  .decision-heading > p, .decision-heading .eyebrow { display: none; }
  .decision-heading h3 { font-size: 21px; }
}
/* Decision workspace, run 2 */
#decision-workspace { margin-block: 16px; min-width: 0; }
#decision-workspace #search-query { width:100%; min-width:0; box-sizing:border-box; }
#decision-workspace .fresh-option { display:flex; align-items:center; gap:8px; margin-top:12px; }
#decision-workspace input[type=checkbox] { width:auto; }
.conversation-turn { padding:16px 0; border-top:1px solid #d6dedc; }
.conversation-turn>summary { font-weight:600; cursor:pointer; overflow-wrap:anywhere; }
.conversation-turn label { display:block; margin:12px 0; }
.conversation-turn small { display:block; }
.decision-note { border-top:1px solid #c8d6cf; padding:18px 0; overflow-wrap:anywhere; }
.decision-note>summary { cursor:pointer; font-weight:700; font-size:1.15rem; }
.decision-note pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.decision-note textarea { display:block; box-sizing:border-box; width:100%; }
.decision-note>a,.decision-note>button { display:inline-block; margin:8px 12px 8px 0; }
.decision-note label { display:flex; gap:10px; align-items:center; margin:10px 0; }
#conversation-status { color:#244f46; }

/* Run 3: estimates, action plan, portfolio and change feed */
.prospect .nav[data-view="portfolio"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M3 7h18v13H3zM8 7V4h8v3M3 12h18'/%3E%3C/svg%3E"); }
.prospect .nav[data-view="changes"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 7h13l-3-3M20 17H7l3 3'/%3E%3C/svg%3E"); }
.r3-meta { color: var(--muted); font-size: 13px; }
.r3-warn { color: #913a52; font-size: 13px; }
.r3-badge { display: inline-block; margin: 0 6px 6px 0; padding: 3px 8px; border-radius: 6px; background: #f2f2fb; color: var(--blue); font-size: 12px; line-height: 1.3; }
.r3-badge.warn { background: #fcebf1; color: #913a52; }
.r3-badge.ok, .r3-badge.done { background: #edf5f4; color: #18794e; }
.r3-tags { margin: 4px 0; }
.r3-plan { border-top: 1px solid #c8d6cf; margin-top: 12px; padding-top: 6px; min-width: 0; }
.r3-plan > h3 { margin: 10px 0 4px; }
.r3-inline { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.r3-inline input { flex: 1; min-width: 0; }
.r3-action, .r3-scenario, .r3-change { border: 1px solid var(--line); border-radius: 12px; background: #fbfbff; padding: 14px; margin: 12px 0; min-width: 0; overflow-wrap: anywhere; }
.r3-scenario { background: var(--lavender); }
.r3-action h4, .r3-scenario h4, .r3-change h4 { margin: 0 0 4px; font: 500 18px/1.25 var(--title); }
.r3-scenario h5, .r3-change h5, .r3-line h5 { margin: 10px 0 4px; font-size: 13px; color: var(--blue); }
.r3-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; margin: 10px 0; }
.r3-field { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 4px; margin: 0 !important; min-width: 0; font-size: 13px; }
.r3-field > span { color: var(--ink-2); font-weight: 600; }
.r3-field small { color: var(--muted); font-size: 12px; }
.r3-field input, .r3-field select, .r3-field textarea { width: 100%; box-sizing: border-box; min-width: 0; }
.r3-check { display: flex !important; gap: 8px; align-items: center; margin: 8px 0 !important; font-size: 13px; }
.r3-check input { width: auto; }
.r3-line { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(70px, .7fr)); gap: 8px; align-items: end; padding: 8px 0; border-top: 1px solid #e3e6f3; }
.r3-line > h5, .r3-line > .r3-check, .r3-line > small, .r3-line > button { grid-column: 1 / -1; }
.r3-line > button { justify-self: start; }
.r3-lines > h5 { margin-bottom: 0; }
.r3-scenario .value-metrics { margin: 12px 0; }
.r3-scenario .value-metric small { display: block; color: var(--muted); font-size: 12px; }
.r3-scenario button, .r3-action button, .r3-change button { margin: 8px 8px 0 0; }
.r3-estimate { margin: 10px 0; }
.r3-estimate > summary, .r3-history > summary, .r3-evidence > summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 13px; }
.r3-evidence { margin: 6px 0; font-size: 14px; }
.r3-evidence blockquote, .r3-change blockquote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid #bcc3ef; color: var(--ink-2); background: #fff; }
.r3-history p { margin: 4px 0; font-size: 13px; color: var(--ink-2); }
.r3-portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.r3-portfolio { padding: 16px; min-width: 0; overflow-wrap: anywhere; }
.r3-portfolio h3 { margin: 0 0 4px; font-size: 21px; }
.r3-counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.r3-counters .summary-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: #fff; border-radius: 10px; min-width: 0; }
.r3-counters .summary-card strong { font-size: 24px; }
.r3-counters .summary-card span { font-size: 12px; color: var(--muted); }
.r3-counters .summary-card[aria-expanded="true"] { border-color: var(--blue); background: #eef0ff; }
.r3-portfolio-list { background: var(--lavender); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.r3-portfolio-list h4 { margin: 4px 0; }
.r3-portfolio-list ul { padding-left: 18px; margin: 4px 0; }
.r3-section { padding: 16px; margin: 14px 0; min-width: 0; overflow-wrap: anywhere; }
.r3-section > h3 { margin: 0 0 4px; }
.r3-diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) {
  .prospect .workspace-nav { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .r3-diff { grid-template-columns: minmax(0, 1fr); }
  .r3-line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .r3-line > .r3-field:first-of-type { grid-column: 1 / -1; }
  .r3-counters .summary-card strong { font-size: 20px; }
}
.r3-span { grid-column: 1 / -1; margin: 0; }
.r3-param { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); }
@media (max-width: 700px) { .r3-param { grid-template-columns: repeat(3, minmax(0, 1fr)); } .r3-param > .r3-field:first-of-type { grid-column: auto; } }
