.v300-copilot { padding-bottom: 56px; }
.v300-eyebrow { color: var(--accent, #1f6a4a); font-size: 12px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.v300-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; padding: 30px 32px; margin-bottom: 18px; border: 1px solid var(--line, #dfe5e0); border-radius: 22px; background: linear-gradient(135deg, #f2f7f3, #fbfcfb 62%); }
.v300-intro h2 { max-width: 760px; margin: 8px 0 10px; font-size: clamp(25px, 3vw, 38px); line-height: 1.16; letter-spacing: -.035em; }
.v300-intro p { max-width: 720px; margin: 0; color: var(--muted, #657168); line-height: 1.7; }
.v300-boundary { display: grid; gap: 8px; min-width: 190px; padding: 16px 18px; border-left: 1px solid #cfdad2; }
.v300-boundary b { margin-bottom: 2px; }
.v300-boundary span { color: var(--muted, #657168); font-size: 13px; }
.v300-boundary span::before { content: "✓"; margin-right: 7px; color: var(--accent, #1f6a4a); font-weight: 800; }
.v300-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; align-items: start; }
.v300-builder, .v300-history { padding: 24px; }
.v300-history { position: sticky; top: 94px; }
.v300-scenarios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 24px; }
.v300-scenario { min-width: 0; padding: 15px; border: 1px solid var(--line, #dfe5e0); border-radius: 14px; background: #fff; color: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.v300-scenario:hover { border-color: #9ab7a5; transform: translateY(-1px); }
.v300-scenario.active { border-color: var(--accent, #1f6a4a); background: #eef6f0; box-shadow: inset 0 0 0 1px var(--accent, #1f6a4a); }
.v300-scenario span { display: block; margin-bottom: 6px; font-weight: 760; }
.v300-scenario small { display: block; color: var(--muted, #657168); line-height: 1.5; }
.v300-question textarea { min-height: 112px; resize: vertical; line-height: 1.65; }
.v300-context-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .85fr); gap: 12px; align-items: end; }
.v300-ima-check { display: flex; align-items: center; min-height: 74px; gap: 12px; padding: 12px 14px; border: 1px solid var(--line, #dfe5e0); border-radius: 13px; background: #fafcfb; cursor: pointer; }
.v300-ima-check input { width: 18px; height: 18px; accent-color: var(--accent, #1f6a4a); }
.v300-ima-check span { display: grid; gap: 3px; }
.v300-ima-check small { color: var(--muted, #657168); line-height: 1.4; }
.v301-source-types { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 14px; padding: 14px 15px; border: 1px solid var(--line, #dfe5e0); border-radius: 13px; background: #fafcfb; }
.v301-source-types > div:first-child { display: grid; gap: 3px; }
.v301-source-types small { color: var(--muted, #657168); }
.v301-source-checks { display: flex; flex-wrap: wrap; gap: 7px; }
.v301-source-checks label { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line, #dfe5e0); border-radius: 999px; background: #fff; cursor: pointer; }
.v301-source-checks label:has(input:checked) { border-color: #9ab7a5; background: #eef6f0; color: var(--accent, #1f6a4a); }
.v301-source-checks input { width: 15px; height: 15px; accent-color: var(--accent, #1f6a4a); }
.v300-source-preview { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; margin-top: 14px; padding: 13px 15px; border-radius: 12px; background: #f5f7f5; font-size: 13px; }
.v300-source-preview span, .v300-source-preview small { color: var(--muted, #657168); }
.v300-source-preview small { grid-column: 2; }
.v300-generate { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.v300-generate .btn { min-width: 150px; }
.v300-generate span { color: var(--muted, #657168); font-size: 13px; }
.v300-history #v300History { display: grid; gap: 8px; }
.v300-history-item { display: grid; gap: 5px; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 12px; background: #f6f8f6; color: inherit; text-align: left; cursor: pointer; }
.v300-history-item:hover, .v300-history-item.active { border-color: #aac0b0; background: #eef5f0; }
.v300-history-item span { color: var(--accent, #1f6a4a); font-size: 11px; font-weight: 760; }
.v300-history-item b { overflow: hidden; font-size: 13px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.v300-history-item small { color: var(--muted, #657168); }
.v300-result { margin-top: 18px; padding: 28px; border: 1px solid var(--line, #dfe5e0); border-radius: 22px; background: #fff; scroll-margin-top: 90px; }
.v300-result-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--line, #dfe5e0); }
.v300-result-head h2 { max-width: 900px; margin: 7px 0 8px; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.28; letter-spacing: -.025em; }
.v300-result-head p { margin: 0; color: var(--muted, #657168); font-size: 13px; }
.v300-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.v300-output-card { min-width: 0; padding: 20px; border: 1px solid var(--line, #dfe5e0); border-radius: 16px; background: #fbfcfb; }
.v300-output-card.risks { background: #fdfaf6; }
.v300-output-card.questions { background: #f8faf9; }
.v300-output-title { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.v300-output-title span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #e7f1ea; color: var(--accent, #1f6a4a); font-size: 11px; font-weight: 800; }
.v300-output-title h3 { margin: 0; font-size: 16px; }
.v300-output-card ol { display: grid; gap: 11px; margin: 0; padding-left: 22px; }
.v300-output-card li { padding-left: 4px; }
.v300-output-card li::marker { color: #8ca196; font-weight: 700; }
.v300-output-card li p { margin: 0; line-height: 1.58; }
.v300-output-card li small { display: block; margin-top: 5px; color: var(--muted, #657168); line-height: 1.45; }
.v300-ref { margin-top: 6px; padding: 0; border: 0; background: transparent; color: var(--accent, #1f6a4a); font-size: 11px; cursor: pointer; }
.v300-action-list { display: grid; gap: 10px; }
.v300-action-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: #fff; }
.v300-action-list b, .v300-action-list p, .v300-action-list small { display: block; }
.v300-action-list p { margin: 5px 0; color: var(--muted, #657168); line-height: 1.45; }
.v300-action-list small { color: #7a847d; }
.v300-adopted { padding: 6px 9px; border-radius: 999px; background: #e7f2ea; color: var(--accent, #1f6a4a); font-size: 12px; font-weight: 700; white-space: nowrap; }
.v300-empty { padding: 18px; border-radius: 12px; background: #f5f7f5; color: var(--muted, #657168); text-align: center; }
.v300-draft { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; margin-top: 14px; padding: 22px; border-radius: 16px; background: #173b2c; color: #fff; }
.v300-draft h3 { margin: 7px 0 0; }
.v300-draft .v300-eyebrow { color: #a9d3b7; }
.v300-draft pre { margin: 0; color: #eff7f1; font: inherit; line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere; }
.v300-sources { margin-top: 14px; border: 1px solid var(--line, #dfe5e0); border-radius: 14px; background: #fff; overflow: hidden; }
.v300-sources summary { display: flex; justify-content: space-between; align-items: center; padding: 15px 17px; cursor: pointer; list-style: none; }
.v300-sources summary span:first-child { display: grid; gap: 2px; }
.v300-sources summary small { color: var(--muted, #657168); }
.v300-sources > div { display: grid; gap: 1px; padding: 0 12px 12px; }
.v300-sources article { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 10px; background: #f7f9f7; transition: background .2s ease; }
.v300-sources article.highlight { background: #e4f2e8; }
.v300-sources article > span { color: var(--accent, #1f6a4a); font-size: 12px; font-weight: 760; }
.v300-sources article p { margin: 4px 0; color: var(--muted, #657168); line-height: 1.45; }
.v300-sources article small { color: #7b857e; }
.v300-brief { padding: 20px 22px; border: 1px solid var(--line, #dfe5e0); border-radius: 18px; background: #fff; }
.v300-brief-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.v300-brief-head h3 { margin: 4px 0 0; }
.v300-brief-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.v300-brief-item { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 10px; align-items: start; min-width: 0; padding: 13px; border: 1px solid var(--line, #dfe5e0); border-radius: 13px; background: #fafcfb; color: inherit; text-align: left; cursor: pointer; }
.v300-brief-item:hover { border-color: #9fb7a7; background: #f2f7f3; }
.v300-signal-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #6d9a79; }
.v300-brief-item.high .v300-signal-dot { background: #b84c35; }
.v300-brief-item.medium .v300-signal-dot { background: #c38b32; }
.v300-brief-item b { display: block; font-size: 13px; }
.v300-brief-item p { margin: 4px 0 0; color: var(--muted, #657168); font-size: 12px; line-height: 1.5; }
.v300-arrow { color: var(--accent, #1f6a4a); }
.v300-writeback { width: min(560px, calc(100vw - 28px)); }
.v300-write-preview { display: grid; gap: 7px; margin-top: 14px; padding: 16px; border-radius: 13px; background: #f3f7f4; }
.v300-write-preview span, .v300-write-note { color: var(--muted, #657168); font-size: 13px; }
.v300-write-preview p { margin: 0; line-height: 1.55; }
.v300-write-note { margin: 12px 0; line-height: 1.55; }

@media (max-width: 1080px) {
  .v300-layout { grid-template-columns: 1fr; }
  .v300-history { position: static; }
  .v300-history #v300History { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v300-scenarios { grid-template-columns: repeat(2, 1fr); }
  .v300-brief-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .v300-intro { grid-template-columns: 1fr; padding: 22px; }
  .v300-boundary { grid-template-columns: repeat(3, 1fr); min-width: 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid #cfdad2; }
  .v300-boundary b { grid-column: 1 / -1; }
  .v300-layout, .v300-result-grid, .v300-context-row, .v300-draft { grid-template-columns: 1fr; }
  .v301-source-types { grid-template-columns: 1fr; }
  .v300-builder, .v300-history, .v300-result { padding: 18px; }
  .v300-history #v300History { grid-template-columns: 1fr; }
  .v300-result-head { display: grid; }
  .v300-action-list article { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .v300-scenarios { grid-template-columns: 1fr; }
  .v300-boundary { grid-template-columns: 1fr; }
  .v300-generate { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .v300-scenario, .v300-sources article { transition: none; }
}
