/* PDF content baseline: CRM_AI_V2_Design_Proposal.pdf, pages 3–9.
   Owner correction: shared CRM navigation keeps its original appearance and behavior. */
#ai-management.aiv2 { --text: #17263c; --muted: #58687c; --line: #dfe5ed; --accent: #2166c1; --accent-strong: #2166c1; --surface: #fff; --surface-soft: #f3f7fd; display: block; background: #f4f7fb; overflow: auto; min-width: 0; color: var(--text); font-family: Arial, "Microsoft YaHei", sans-serif; font-size: 13px; }
.app:not([data-view="ai-management"]) #ai-management.aiv2 { display: none; }
.aiv2 * { box-sizing: border-box; }
.aiv2 [hidden] { display: none !important; }
.aiv2 :is(h2,h3,h4,p,dl,dd) { margin: 0; }
.aiv2 :is(button,input,textarea,select) { font: inherit; }
.aiv2 a { color: var(--accent); text-decoration: none; }
.aiv2 :is(a,button,input,textarea,select,summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.aiv2 button:disabled { cursor: not-allowed; opacity: .65; }
.aiv2-shell { min-height: 100%; }
.aiv2-header { height: 54px; padding: 0 26px; display: flex; justify-content: space-between; align-items: center; background: white; border-bottom: 1px solid var(--line); font-size: 12px; }
.aiv2-location { display: flex; align-items: center; gap: 14px; min-width: 0; }
.aiv2-parent-back { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 36px; padding-right: 14px; border-right: 1px solid var(--line); white-space: nowrap; }
.aiv2-header nav { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aiv2-header nav a { color: var(--text); }
.aiv2-user { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.aiv2-avatar { display: grid; place-items: center; height: 30px; width: 30px; border-radius: 50%; background: #e9eff6; color: #526982; font-size: 11px; }
.aiv2-content { padding: 24px 26px; min-width: 0; outline: none; }
.aiv2-intro { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.aiv2-intro h2, .aiv2-intro h3 { font-size: 24px; font-weight: 650; margin-bottom: 9px; }
.aiv2-intro p { font-size: 12px; line-height: 1.7; color: var(--muted); }
.aiv2-mode { border: 1px solid var(--line); border-radius: 20px; padding: 5px 11px; font-size: 11px; white-space: nowrap; color: var(--muted); background: white; }
.aiv2-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.aiv2-tabs a { padding: 0 2px 10px; color: var(--muted); font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap; }
.aiv2-tabs a[aria-current] { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.aiv2-panel { background: white; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; min-width: 0; }
.aiv2-panel > header { min-height: 47px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.aiv2 h3 { font-size: 15px; font-weight: 600; }
.aiv2 h4 { font-size: 13px; }
.aiv2 small, .aiv2-muted { color: var(--muted); font-size: 11px; line-height: 1.7; }
.aiv2-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aiv2-metrics a { padding: 14px 16px; color: var(--text); display: grid; gap: 4px; border-right: 1px solid var(--line); }
.aiv2-metrics a:last-child { border: 0; }
.aiv2-metrics span { color: var(--muted); font-size: 12px; }
.aiv2-metrics strong { font-size: 24px; line-height: 1.25; font-weight: 650; }
.aiv2-overview-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; margin-top: 18px; }
.aiv2-priorities { margin: 0; padding: 0 18px; list-style: none; }
.aiv2-priorities li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.aiv2-priorities li:last-child { border: 0; }
.aiv2-number { display: grid; place-items: center; background: #edf3fc; color: var(--accent); border-radius: 5px; min-width: 25px; height: 25px; font-size: 12px; }
.aiv2-priorities li > div { flex: 1; min-width: 0; }
.aiv2-priorities strong { font-size: 12px; font-weight: 600; }
.aiv2-priorities p { color: var(--muted); line-height: 1.5; font-size: 10px; margin-top: 3px; }
.aiv2-priorities a { font-size: 12px; flex-shrink: 0; }
.aiv2-bars { height: 80px; display: flex; align-items: end; gap: 9px; padding: 0 20px; margin: 12px 0; }
.aiv2-bars span { flex: 1; background: #d7e6fb; border-radius: 3px 3px 0 0; }
.aiv2-funnel dl { padding: 4px 18px 12px; }
.aiv2-funnel dl > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.aiv2-funnel dl > div:last-child { border: 0; }
.aiv2-funnel dd { font-weight: 600; }
.aiv2-callout { border-left: 3px solid #83b2ef; background: #f0f6ff; padding: 12px; font-size: 12px; line-height: 1.8; }
.aiv2-funnel .aiv2-callout { margin: 0 18px 16px; font-size: 11px; }
.aiv2-focus { margin-top: 18px; }
.aiv2-table { overflow-x: auto; }
#ai-management.aiv2 table { border-collapse: collapse; width: 100%; min-width: 0; text-align: left; font-size: 12px; }
.aiv2 th { background: #f8fafc; font-weight: 500; color: var(--muted); padding: 11px 16px; white-space: nowrap; font-size: 11px; }
.aiv2 td { padding: 12px 16px; line-height: 1.6; border-top: 1px solid var(--line); }
.aiv2 td strong { font-weight: 600; }
.aiv2 td small { display: block; }
.aiv2-chip { background: #f1f5f9; border-radius: 4px; font-size: 11px; padding: 4px 7px; display: inline-block; white-space: nowrap; }
.aiv2-chip.blue { color: #245b9e; background: #eaf2fe; }
.aiv2-chip.amber { color: #885814; background: #fff4de; }
.aiv2-chip.green { color: #286343; background: #e9f6ee; }
.aiv2-chip.red { color: #9b3535; background: #fff0ee; }
.aiv2 .detail-button, .aiv2 .aiv2-button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--line); border-radius: 5px; padding: 8px 12px; min-height: 35px; font-size: 12px; background: white; color: var(--text); cursor: pointer; box-shadow: none; }
.aiv2 .primary { background: var(--accent); color: white; border-color: var(--accent); }
.aiv2 label { font-size: 12px; display: grid; gap: 7px; min-width: 0; }
.aiv2 :is(input,select,textarea) { border: 1px solid #d7e0eb; border-radius: 5px; background: white; color: var(--text); padding: 9px 11px; min-height: 36px; min-width: 0; width: 100%; }
.aiv2 textarea { resize: vertical; }
.aiv2-filters { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.aiv2-filters label:first-child { width: 280px; }
.aiv2-filters > span { margin-left: auto; color: var(--muted); font-size: 12px; }
.aiv2-search-panel { margin-bottom: 16px; }
.aiv2-search-panel > p { padding: 0 18px 14px; }
.aiv2-search-form { display: grid; grid-template-columns: 150px 130px minmax(220px, 1fr) auto; align-items: end; gap: 12px; padding: 16px 18px 10px; }
.aiv2-read-state { display: flex; align-items: center; gap: 14px; padding: 24px; }
.aiv2-read-state-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #eef4fc; color: var(--accent); font-weight: 700; }
.aiv2-read-state h3 { margin-bottom: 5px; }
.aiv2-read-state p { color: var(--muted); line-height: 1.7; }
.aiv2-detail-split { display: grid; grid-template-columns: minmax(0, 1fr) 288px; min-height: 476px; }
.aiv2-detail-split td, .aiv2-detail-split th { padding: 13px 12px; font-size: 11px; }
.aiv2-detail-split .aiv2-table tr:first-child td { background: #f7faff; }
.aiv2-customer-summary { border-left: 1px solid var(--line); padding: 21px 20px; background: #fcfdff; }
.aiv2-customer-summary h3 { margin-bottom: 6px; }
.aiv2-customer-summary dl { padding: 19px 0; }
.aiv2-customer-summary dl > div { display: flex; gap: 12px; justify-content: space-between; font-size: 11px; margin-bottom: 14px; }
.aiv2-customer-summary dt { color: var(--muted); flex-shrink: 0; }
.aiv2-customer-summary dd { text-align: right; }
.aiv2-customer-summary .primary { margin-top: 18px; width: 100%; }
.aiv2-pagination { display: flex; justify-content: end; gap: 20px; font-size: 12px; margin-top: 16px; }
.aiv2-pagination span { color: var(--muted); }
.aiv2-prose { padding: 20px; margin-bottom: 16px; }
.aiv2-prose p { margin: 12px 0; line-height: 1.8; }
.aiv2-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.aiv2-facts strong { display: block; margin-top: 8px; }
.aiv2-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 11px; color: var(--muted); }
.aiv2-evidence { border: 1px solid var(--line); background: white; border-radius: 6px; padding: 12px; margin: 18px 0; }
.aiv2-evidence summary { font-size: 13px; font-weight: 600; cursor: pointer; }
.aiv2-evidence p { font-size: 10px; color: var(--muted); line-height: 1.8; margin: 8px 0; }
.aiv2-evidence > div { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 11px; }
.aiv2-evidence > div > span:nth-child(2) { flex: 1; }
.aiv2-evidence button { border: 0; background: none; color: var(--accent); font-size: 11px; }
.aiv2-disclaimer { color: var(--muted); font-size: 10px; padding-top: 14px; }
.aiv2-notice:empty { display: none; }
.aiv2-notice:not(:empty) { padding: 12px; border: 1px solid #b9ceeb; background: white; margin-bottom: 12px; color: #205696; font-size: 12px; }
.aiv2-empty, .aiv2-denied { text-align: center; color: var(--muted); padding: 40px 20px; line-height: 2; }
.aiv2-denied a, .aiv2-denied button { margin: 15px; }
.aiv2-states { margin-top: 18px; font-size: 11px; color: var(--muted); }
.aiv2-states summary { cursor: pointer; }
.aiv2-states label { margin: 10px 0; max-width: 300px; }
.aiv2-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aiv2-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1050px) {
  .aiv2-content { padding: 20px; }
  .aiv2-detail-split { grid-template-columns: minmax(0, 1fr); }
  .aiv2-customer-summary { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 767px) {
  .aiv2-search-form { grid-template-columns: 1fr 1fr; }
  .aiv2-search-query { grid-column: 1 / -1; }
  .aiv2-search-form .aiv2-button { grid-column: 1 / -1; width: 100%; }
  #ai-management.aiv2 { padding: 0; }
  .aiv2-header { display: none; }
  .aiv2-header.has-parent { display: flex; height: 48px; padding: 0 14px; }
  .aiv2-header.has-parent .aiv2-user { display: none; }
  .aiv2-parent-back { min-height: 44px; }
  .aiv2-content { padding: 16px 14px; }
  .aiv2-intro { margin-bottom: 18px; align-items: start; }
  .aiv2-intro > .aiv2-button { flex-shrink: 0; white-space: nowrap; }
  .aiv2-intro h2, .aiv2-intro h3 { font-size: 21px; }
  .aiv2-intro p { font-size: 11px; }
  .aiv2-mode { display: none; }
  .aiv2-tabs { gap: 26px; }
  .aiv2-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; background: transparent; border: 0; overflow: visible; }
  .aiv2-metrics a { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 13px; gap: 6px; }
  .aiv2-metrics a:last-child { border: 1px solid var(--line); }
  .aiv2-metrics strong { font-size: 26px; }
  .aiv2-page-analytics .aiv2-content { display: flex; flex-direction: column; }
  .aiv2-page-analytics .aiv2-tabs { order: -2; }
  .aiv2-page-analytics .aiv2-notice { order: -3; }
  .aiv2-page-analytics .aiv2-metrics strong { order: -1; }
  .aiv2-page-analytics .aiv2-metrics small { display: none; }
  .aiv2-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .aiv2-priorities { padding: 0 13px; }
  .aiv2-priorities li { padding: 16px 0; gap: 9px; }
  .aiv2-priorities strong { font-size: 12px; line-height: 1.7; }
  .aiv2-table :is(table,tbody,tr,td) { display: block; width: 100%; }
  .aiv2-table thead { display: none; }
  .aiv2-table tr { padding: 10px 13px; border-top: 1px solid var(--line); }
  .aiv2-table td { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; padding: 5px 0; border: 0; font-size: 12px; overflow-wrap: anywhere; }
  .aiv2-table td::before { content: attr(data-label); color: var(--muted); }
  .aiv2-table td:first-child { display: block; font-weight: 600; }
  .aiv2-table td:first-child::before { display: none; }
  .aiv2-filters { flex-wrap: wrap; }
  .aiv2-filters label:first-child { width: 100%; }
  .aiv2 :is(button,input,select) { min-height: 44px; }
  .aiv2-facts, .aiv2-form-grid { grid-template-columns: minmax(0, 1fr); }
  .aiv2-evidence > div { flex-wrap: wrap; }
  .aiv2-disclaimer { line-height: 1.8; }
}
@media (max-width: 420px) { .aiv2-intro { gap: 8px; } }

/* PDF page 5: history / answer / range, with a compact anchored composer. */
.aiv2-page-qa .aiv2-content { padding: 0; }
.aiv2-page-qa .aiv2-disclaimer { padding: 6px 18px; background: white; }
.aiv2-page-qa .aiv2-notice:not(:empty) { margin: 8px; }
.aiv2-qa { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 680px; height: calc(100dvh - 80px); position: relative; background: white; }
.aiv2-history { background: #f6f8fc; padding: 14px 12px; border-right: 1px solid var(--line); overflow-y: auto; }
.aiv2-history-head a { width: 100%; color: var(--accent); }
.aiv2-history label { margin-top: 12px; }
.aiv2-history h4 { color: var(--muted); font-size: 11px; margin: 24px 6px 10px; font-weight: 500; }
.aiv2-history [data-ai-history-list] a { display: block; padding: 12px 10px; border-radius: 5px; color: var(--text); font-size: 12px; }
.aiv2-history a[aria-current] { background: #e8f0fe; color: #235b9c; }
.aiv2-history strong { font-weight: 500; line-height: 1.6; }
.aiv2-history small { display: none; }
.aiv2-history [data-ai-history-list] a > span { display: block; margin-top: 4px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aiv2-history-nav { font-size: 11px; padding: 20px 6px; margin-top: 18px; }
.aiv2-mobile-history-close { display: none; }
.aiv2-qa-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.aiv2-qa-head { min-height: 50px; padding: 9px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.aiv2-qa-head > div { min-width: 0; }
.aiv2-qa-head h3 { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aiv2-qa-head p { color: var(--muted); margin-top: 3px; font-size: 10px; }
.aiv2 .aiv2-qa-head button { display: none; }
.aiv2-answer { flex: 1; overflow-y: auto; padding: 22px 24px; }
.aiv2-message-stream { display: grid; gap: 24px; max-width: 960px; margin: 0 auto; }
.aiv2-message { display: grid; gap: 8px; }
.aiv2-message > span { color: var(--muted); font-size: 11px; font-weight: 650; }
.aiv2-message-user { justify-items: end; }
.aiv2-message-user > p { max-width: min(78%, 680px); margin: 0; padding: 13px 16px; border-radius: 14px 14px 3px 14px; background: #eaf2ff; color: var(--text); font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.aiv2-message-ai { justify-items: start; }
.aiv2-message-ai > .aiv2-business-answer { margin: 0; width: min(100%, 860px); }
.aiv2-turn-state { display: flex; align-items: center; gap: 11px; margin: 0; padding: 15px 17px; min-width: min(420px, 80vw); }
.aiv2-turn-state div { display: grid; gap: 5px; }
.aiv2-turn-state small { color: var(--muted); font-size: 11px; }
.aiv2-thinking-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: aiv2-thinking-pulse 1.15s ease-in-out infinite; }
.aiv2-turn-error { border-color: #e7c9c9; background: #fffafa; }
.aiv2-new-reply { position: sticky; display: block; bottom: 8px; margin: 14px auto 0; border: 1px solid #b9ceeb; border-radius: 18px; padding: 8px 14px; background: white; color: var(--accent); box-shadow: 0 4px 16px rgba(30, 72, 125, .12); cursor: pointer; }
@keyframes aiv2-thinking-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.aiv2-question { background: #f0f5fd; border: 1px solid #d7e6fa; border-radius: 6px; padding: 14px; margin-left: 28% !important; font-size: 12px; line-height: 1.8; }
.aiv2-answer-label { display: block; margin: 26px 0 10px; }
.aiv2-answer h3 { margin-bottom: 10px; font-size: 16px; }
.aiv2-answer > p:not(.aiv2-question) { font-size: 11px; line-height: 1.9; color: var(--muted); }
.aiv2-business-answer { max-width: 860px; padding: 20px 22px; }
.aiv2-business-answer .aiv2-direct-answer { margin: 0; color: var(--text); font-size: 20px; font-weight: 650; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.aiv2-key-evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 22px 0; }
.aiv2-key-evidence > div { display: grid; gap: 7px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafd; }
.aiv2-key-evidence span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.aiv2-key-evidence strong { font-size: 14px; line-height: 1.6; font-weight: 600; }
.aiv2-business-answer > section { margin-top: 22px; }
.aiv2-business-answer :is(ul) { margin: 8px 0 0; padding-left: 21px; line-height: 1.9; }
.aiv2-answer-source { margin: 22px 0 0 !important; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.aiv2-business-evidence { margin: 12px 0 0; background: #fbfcfe; }
.aiv2-business-evidence > div strong { overflow-wrap: anywhere; font-size: 12px; font-weight: 600; }
.aiv2-action-context { display: inline-flex; margin-left: 7px; padding: 2px 7px; border-radius: 999px; background: #eef6ff; color: #245b98; }
.aiv2-controlled-action { margin-top: 20px; padding: 16px; border: 1px solid #b9cdea; border-radius: 7px; background: #f8fbff; }
.aiv2-controlled-action > header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.aiv2-controlled-action > header div { display: grid; gap: 5px; }
.aiv2-controlled-action > header small, .aiv2-controlled-action > p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.aiv2-controlled-action > header > span { padding: 4px 8px; border-radius: 999px; background: #fff2cf; color: #755516; font-size: 10px; white-space: nowrap; }
.aiv2-controlled-action[data-action-state="SUCCEEDED"] > header > span { background: #e5f6ec; color: #16683b; }
.aiv2-controlled-action[data-action-state="DENIED"] > header > span,
.aiv2-controlled-action[data-action-state="FAILED"] > header > span,
.aiv2-controlled-action[data-action-state="EXPIRED"] > header > span { background: #fbeaea; color: #903737; }
.aiv2-action-confirm { display: grid; gap: 11px; margin-top: 13px; }
.aiv2-action-basis { margin-top: 11px; padding: 10px 12px; border-radius: 10px; background: var(--surface-soft); }
.aiv2-action-basis p { margin: 4px 0; }
.aiv2-action-basis small { color: var(--muted); }
.aiv2-action-confirm label { display: grid; gap: 6px; color: var(--text); font-size: 11px; }
.aiv2-action-confirm textarea { width: 100%; min-height: 112px; resize: vertical; line-height: 1.7; }
.aiv2-action-confirm > div { display: flex; gap: 8px; flex-wrap: wrap; }
.aiv2-action-outcome { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; color: #245e40 !important; }
.aiv2-answer-table { margin-top: 18px; border: 1px solid var(--line); border-radius: 6px; }
.aiv2-answer-table td, .aiv2-answer-table th { font-size: 10px; padding: 10px; }
.aiv2-qa-evidence { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; }
.aiv2-qa-evidence h4 { margin-bottom: 10px; }
.aiv2-qa-evidence details { margin-bottom: 7px; border: 1px solid var(--line); border-radius: 4px; padding: 9px; font-size: 10px; }
.aiv2-qa-evidence summary { cursor: pointer; line-height: 1.7; }
.aiv2-qa-evidence summary span { color: var(--accent); margin-right: 8px; }
.aiv2-qa-evidence details p { margin: 8px 0; color: var(--muted); }
.aiv2-qa-evidence button { color: var(--accent); border: 0; background: white; }
.aiv2-qa-evidence > small { font-size: 9px; }
.aiv2-composer { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); background: white; flex-shrink: 0; position: sticky; bottom: 0; }
.aiv2-composer input { flex: 1; font-size: 12px; }
.aiv2-scope-summary { padding: 22px 18px; border-left: 1px solid var(--line); }
.aiv2-scope-summary h3 { margin-bottom: 18px; }
.aiv2-scope-summary dl > div { padding: 12px; border: 1px solid var(--line); border-radius: 5px; margin-bottom: 10px; font-size: 11px; line-height: 1.8; }
.aiv2-scope-summary dt { color: var(--muted); margin-bottom: 4px; }
.aiv2-scope-summary .detail-button { width: 100%; margin-bottom: 15px; }
.aiv2-scope-status { font-size: 10px; line-height: 1.7; color: var(--muted); margin-bottom: 10px !important; }
.aiv2-scope-panel { position: absolute; z-index: 5; right: 12px; top: 12px; width: min(430px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto; padding: 20px; border: 1px solid #b9cbe3; border-radius: 7px; background: white; box-shadow: 0 10px 36px #18304e22; }
.aiv2-scope-panel header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.aiv2-scope-panel label { margin: 12px 0; }
.aiv2-scope-panel p, .aiv2-scope-panel dl { font-size: 11px; color: var(--muted); line-height: 1.8; }
.aiv2-scope-panel dt { font-weight: 600; margin-top: 10px; }
/* PDF page 6: category rail, one continuous preference form, radio cards and chips. */
.aiv2-preference-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 17px; }
.aiv2-preference-nav { display: flex; flex-direction: column; gap: 5px; align-self: stretch; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.aiv2-preference-nav button { border: 0; border-radius: 5px; background: transparent; color: var(--muted); text-align: left; padding: 13px 15px; font-size: 12px; cursor: pointer; }
.aiv2-preference-nav button[aria-current] { background: #e7effc; color: var(--accent); }
.aiv2-settings { padding: 20px; }
.aiv2-settings section { padding: 0; margin-bottom: 24px; scroll-margin-top: 18px; }
.aiv2-settings h3 { margin-bottom: 12px; font-size: 14px; }
.aiv2-settings p { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 8px 0 12px; }
.aiv2-settings .aiv2-name-input { max-width: 315px; }
.aiv2-settings .aiv2-section-subtitle { margin-top: 22px; }
.aiv2-radio-grid { display: flex; gap: 10px; }
.aiv2-radio-grid label { width: 124px; flex: 0 0 124px; display: flex; position: relative; align-items: flex-start; gap: 8px; border: 1px solid var(--line); border-radius: 5px; padding: 12px; cursor: pointer; }
.aiv2-radio-grid input[type="radio"] { position: absolute; opacity: 0; }
.aiv2-radio-grid label:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.aiv2-radio-grid label:has(:checked) { border-color: #6a9ce2; background: #f1f6ff; }
.aiv2 input:is([type="radio"],[type="checkbox"]) { width: 14px; min-height: 14px; height: 14px; padding: 0; accent-color: var(--accent); flex-shrink: 0; margin: 2px 0; }
.aiv2-radio-grid strong { display: block; font-size: 11px; font-weight: 600; }
.aiv2-radio-grid small { display: block; font-size: 10px; margin-top: 6px; }
.aiv2-checks { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.aiv2-checks label { display: flex; position: relative; }
.aiv2-checks input { position: absolute; opacity: 0; }
.aiv2-checks span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; cursor: pointer; }
.aiv2-checks :checked + span { border-color: #8cb3e9; color: var(--accent); background: #eef5ff; }
.aiv2-checks :checked + span::before { content: "✓ "; }
.aiv2-checks :focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.aiv2-settings footer { font-size: 11px; }
.aiv2-settings textarea { font-size: 12px; line-height: 1.8; }
/* PDF page 8: compact two-column management overview, not navigation tiles. */
.aiv2-management-tabs { gap: 8px; border: 0; }
.aiv2-management-tabs a { border: 1px solid #cfdbea; padding: 9px 12px; border-radius: 5px; background: white; font-size: 11px; }
.aiv2-management-tabs a[aria-current="page"] { background: #eff5ff; border-color: #78a9e8; color: #174f94; }
.aiv2-tabs a.selected { color: var(--accent); border-color: var(--accent); }
.aiv2-management-freshness { display: flex; align-items: center; min-height: 38px; margin: -5px 0 14px; padding: 8px 12px; border: 1px solid #cfe0f4; border-radius: 6px; background: #f7fbff; color: #315a89; font-size: 11px; line-height: 1.7; }
.aiv2-management-freshness[data-tone="warning"] { border-color: #ead7a2; background: #fffaf0; color: #7a5b1f; }
.aiv2-management-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.aiv2-management-summary article { min-width: 0; min-height: 112px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.aiv2-management-summary article > span { display: block; color: var(--muted); font-size: 11px; }
.aiv2-management-summary article > strong { display: block; margin: 11px 0 8px; color: var(--text); font-size: 20px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.aiv2-management-summary article > small { color: var(--muted); font-size: 10px; line-height: 1.55; }
.aiv2-page-management [data-tone] { display: inline-flex; align-items: center; width: fit-content; min-height: 25px; padding: 4px 9px; border-radius: 999px; background: #eef2f7; color: #526477; font-size: 10px; font-weight: 650; line-height: 1.3; }
.aiv2-page-management [data-tone="good"] { background: #e9f7ef; color: #187342; }
.aiv2-page-management [data-tone="protected"] { background: #edf3ff; color: #315f9d; }
.aiv2-page-management [data-tone="warning"] { background: #fff4d9; color: #79591b; }
.aiv2-page-management .aiv2-panel > header > div p { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.aiv2-management-records { overflow-x: auto; }
.aiv2-management-records table { min-width: 1080px !important; }
.aiv2-management-empty-row { padding: 34px 16px !important; color: var(--muted); text-align: center; }
.aiv2-record-detail-button { min-height: 30px !important; padding: 5px 10px !important; }
.aiv2-record-detail-hint { margin-top: 12px; padding: 13px 16px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); font-size: 11px; }
.aiv2-record-detail { margin-top: 14px; }
.aiv2-record-detail .aiv2-status-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aiv2-record-detail .aiv2-status-list > div { margin: 0 9px; }
.aiv2-management-grid { display: grid; grid-template-columns: 1.22fr 1fr; gap: 16px; margin-bottom: 14px; }
.aiv2-management-column { display: grid; align-content: start; gap: 18px; }
.aiv2-status-list { padding: 6px 18px; }
.aiv2-status-list > div { display: grid; grid-template-columns: 37% minmax(0, 1fr); align-items: center; gap: 15px; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 11px; }
.aiv2-status-list > div:last-child { border: 0; }
.aiv2-status-list dd { text-align: left; }
.aiv2-management-grid td { font-size: 11px; padding: 10px 14px; }
.aiv2-cost-summary { display: grid; grid-template-columns: 1fr 1fr; padding: 18px; }
.aiv2-cost-summary span { font-size: 11px; color: var(--muted); }
.aiv2-cost-summary strong { display: block; font-size: 26px; margin-top: 10px; }
.aiv2-budget-preview { font-size: 11px; color: var(--muted); padding: 0 18px 16px; }
.aiv2-risk-note { background: #fff9e9; color: #7c632d; border: 1px solid #eee3c6; padding: 13px; font-size: 11px; line-height: 1.9; border-radius: 6px; }
.aiv2-change-flow { margin-top: 18px; }
.aiv2-steps { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-left: 20px; font-size: 12px; line-height: 1.8; }
@media (min-width: 768px) and (max-width: 1200px) {
  .aiv2-qa { grid-template-columns: 190px minmax(0, 1fr); }
  .aiv2-scope-summary { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .aiv2-qa { height: auto; }
  .aiv2-preference-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
  .aiv2-radio-grid { flex-wrap: wrap; }
  .aiv2-radio-grid label { min-width: 140px; }
}
@media (max-width: 767px) {
  .aiv2-page-qa .aiv2-content { padding: 0; }
  .aiv2-qa { display: block; height: auto; min-height: 0; }
  .aiv2-history { display: none; border: 0; }
  .aiv2-history.is-open { display: block; }
  .aiv2-history-head { display: flex; gap: 10px; }
  .aiv2-mobile-history-close { display: inline-block; border: 1px solid var(--line); background: white; border-radius: 5px; }
  .aiv2-qa-head { padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
  .aiv2-qa-head > div { width: 100%; }
  .aiv2 .aiv2-qa-head button { display: inline-flex; min-height: 36px; }
  .aiv2-qa-head h3 { font-size: 15px; }
  .aiv2-answer { padding: 16px 14px 86px; overflow: visible; }
  .aiv2-question { margin-left: 18px !important; padding: 10px; font-size: 12px; }
  .aiv2-answer h3 { font-size: 15px; }
  .aiv2-business-answer { padding: 20px 17px; }
  .aiv2-business-answer .aiv2-direct-answer { font-size: 18px; }
  .aiv2-key-evidence { grid-template-columns: minmax(0, 1fr); }
  .aiv2-answer-table td { grid-template-columns: 58px minmax(0, 1fr); font-size: 11px; }
  .aiv2-answer-table { border: 0; counter-reset: qa-item; }
  .aiv2-answer-table tr { padding: 4px 0; border: 0; counter-increment: qa-item; }
  .aiv2-answer-table td { display: inline; padding: 0; font-size: 11px; line-height: 1.8; }
  .aiv2-answer-table td::before { display: none; }
  .aiv2-answer-table td:first-child { display: inline; font-weight: 500; }
  .aiv2-answer-table td:first-child::before { display: inline; content: counter(qa-item) ". "; color: var(--text); }
  .aiv2-answer-table td:nth-child(2)::before { display: inline; content: " · "; }
  .aiv2-answer-table td:last-child { display: block; color: var(--muted); }
  .aiv2-composer { position: fixed; left: 0; right: 0; bottom: calc(var(--a6-mobile-nav-height, 64px) + env(safe-area-inset-bottom, 0px)); padding: 10px 12px; z-index: 8; }
  .aiv2-scope-summary { display: none; }
  .aiv2-scope-panel { position: fixed; top: 65px; bottom: calc(var(--a6-mobile-nav-height, 64px) + 12px); max-height: none; z-index: 12; }
  .aiv2-preference-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .aiv2-preference-nav { display: none; }
  .aiv2-preference-nav button { padding: 8px 10px; min-height: 40px; }
  .aiv2-settings { padding: 16px; }
  .aiv2-radio-grid { flex-direction: column; gap: 0; }
  .aiv2-radio-grid label { border: 0; padding: 10px 0; background: transparent !important; align-items: center; min-height: 44px; width: 100%; flex: auto; }
  .aiv2-radio-grid input[type="radio"] { position: static; opacity: 1; }
  .aiv2-radio-grid small { display: none; }
  .aiv2-checks span { min-height: 44px; display: flex; align-items: center; }
  .aiv2-management-grid { grid-template-columns: minmax(0, 1fr); }
  .aiv2-management-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .aiv2-management-summary article { min-height: 104px; padding: 13px; }
  .aiv2-management-summary article > strong { font-size: 17px; }
  .aiv2-management-freshness { margin-top: 0; }
  .aiv2-management-tabs { gap: 22px; overflow-x: auto; }
  .aiv2-record-detail .aiv2-status-list { grid-template-columns: minmax(0, 1fr); }
  .aiv2-status-list > div { font-size: 11px; }
  .aiv2-status-list dt { flex-shrink: 0; }
}
