/* The companion uses the panel's established navy, blue and paper tokens.
   A continuous progress strip connects the conversation to the next action. */
.cc-heading { margin-bottom: 28px; }
.cc-heading h1, .cc-room-heading h1 { font: 800 clamp(25px, 3vw, 36px)/1.2 Manrope, sans-serif; letter-spacing: -.035em; color: var(--ink); margin: 8px 0 12px; }
.cc-heading p, .cc-muted { color: var(--muted-strong, #596b81); font-size: 13px; line-height: 1.65; }
.cc-button, .cc-text-button { cursor: pointer; font: inherit; font-size: 13px; min-height: 40px; padding: 9px 14px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink); background: var(--paper, #fff); text-decoration: none; }
.cc-button:hover { background: #edf3ff; border-color: #96b0de; }
.cc-button:disabled { cursor: wait; opacity: .55; }
.cc-primary { background: #2759bd; color: white; border-color: #2759bd; }
.cc-primary:hover { background: #1c4496; color: white; }
.cc-text-button { border: 0; background: transparent; color: #2656b4; padding-left: 0; }
.cc-danger { color: #9f3434; }
#companion-content :focus-visible, .cc-preview :focus-visible { outline: 3px solid #497cf0; outline-offset: 3px; }
.cc-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin: 18px 0 28px; }
.cc-filters label { display: grid; gap: 6px; color: var(--muted-strong); font-size: 12px; }
.cc-filters input, .cc-filters select { border: 1px solid var(--line); border-radius: 6px; min-height: 42px; background: white; color: var(--ink); padding: 8px 12px; font: inherit; font-size: 14px; }
.cc-filters input { flex: 1; min-width: 150px; }
.cc-task-group, .cc-proposals { margin: 28px 0; }
.cc-task-group h2, .cc-proposals h2, .cc-room-details h2, .cc-room-main h2 { font: 700 15px/1.5 Manrope, sans-serif; }
.cc-task-row { display: flex; justify-content: space-between; gap: 20px; text-decoration: none; color: var(--ink); padding: 20px; margin-bottom: 10px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.cc-task-row:hover { border-color: #839dc9; box-shadow: 0 2px 12px #1936530a; }
.cc-task-row h3 { font-size: 15px; line-height: 1.5; margin: 0 0 5px; }
.cc-task-row p { color: var(--muted-strong); font-size: 13px; margin: 0; }
.cc-task-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.cc-task-meta { display: grid; align-content: center; justify-items: end; gap: 7px; min-width: 165px; font-size: 12px; color: var(--muted-strong); }
.cc-status { color: #274b7c; background: #eaf0fa; padding: 3px 9px; border-radius: 4px; font-weight: 600; }
.cc-proposal { background: #f2f6ff; border-left: 3px solid #4d76c4; padding: 20px; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cc-proposal h3 { width: 100%; margin: 0; font-size: 15px; }
.cc-proposal a { margin-right: auto; font-size: 13px; color: #2656b4; }
.cc-empty { padding: 32px 20px; border: 1px dashed #c3cdda; color: var(--muted-strong); line-height: 1.7; border-radius: 8px; }
.cc-warning, .cc-receipt { margin: 12px 0; padding: 14px 18px; background: #fff6e3; border: 1px solid #e6d1a7; border-radius: 6px; color: #634615; font-size: 13px; line-height: 1.6; }
.cc-warning button { margin-left: 14px; }
.cc-receipt { background: #eef4ff; border-color: #c4d5ef; color: #244c80; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cc-receipt span { flex: 1; }
.cc-inbox-row { background: white; padding: 21px; margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; display: flex; justify-content: space-between; gap: 20px; }
.cc-inbox-row small { color: var(--muted-strong); text-transform: capitalize; }
.cc-inbox-title { display: block; font-weight: 600; line-height: 1.5; font-size: 15px; color: var(--ink); margin-top: 8px; text-decoration: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.cc-inbox-row p { font-size: 13px; color: var(--muted-strong); }
.cc-back { display: inline-block; color: #2656b4; font-size: 13px; margin-bottom: 18px; text-decoration: none; }
.cc-room-heading small { font: 500 11px/1.5 'DM Mono', monospace; color: var(--muted-strong); }
.cc-room-heading h1 { max-width: 1050px; font-size: clamp(23px, 2.4vw, 31px); overflow-wrap: anywhere; }
.cc-progress-strip { display: flex; gap: 16px; padding: 13px 16px; background: #eaf0fa; border-left: 3px solid #4d76c4; font-size: 13px; line-height: 1.6; }
.cc-progress-strip strong { color: #284c7c; white-space: nowrap; }
.cc-room-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 14px 0; font-size: 12px; color: var(--muted-strong); }
.cc-room-meta a { color: #2656b4; margin-left: auto; }
.cc-tabs { display: flex; border-bottom: 1px solid var(--line); gap: 6px; margin: 8px 0 22px; }
.cc-tabs button { border: 0; background: transparent; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 16px; }
.cc-tabs button[aria-pressed=true] { border-bottom-color: #3869ca; color: #244f9b; font-weight: 700; }
.cc-room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.cc-room-main { min-width: 0; }
.cc-room-details > small, .cc-room-details > button { display: block; }
.cc-room-details { position: sticky; top: 90px; padding: 4px 0 10px 22px; border-left: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.cc-conversation { max-height: 65vh; overflow-y: auto; overscroll-behavior: contain; padding: 0 10px 0 0; scrollbar-gutter: stable; }
.cc-message { border-bottom: 1px solid var(--line); padding: 20px 0; }
.cc-message:first-child { padding-top: 4px; }
.cc-message header { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; margin-bottom: 10px; }
.cc-message header a { color: var(--muted-strong); font-size: 11px; text-decoration: none; }
.cc-message-bot header strong { color: #2656b4; }
.cc-message-text { font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.cc-source-file { display: block; font-size: 13px; color: #2656b4; padding: 10px 0 0; overflow-wrap: anywhere; }
.cc-history-controls { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.cc-composer { display: grid; gap: 10px; margin-top: 24px; padding: 20px; border: 1px solid #aebfdc; border-radius: 8px; background: white; }
.cc-composer button { justify-self: end; }
.cc-field { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.cc-field textarea { box-sizing: border-box; width: 100%; resize: vertical; min-height: 90px; border: 1px solid #bcc9d9; padding: 12px; color: var(--ink); background: white; border-radius: 5px; font: 400 14px/1.6 'DM Sans', sans-serif; }
.cc-plan-finish { font-size: 13px; color: var(--muted-strong); }
.cc-plan { list-style: none; padding: 0; margin: 20px 0; }
.cc-plan li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 4px 8px; padding-bottom: 18px; font-size: 13px; }
.cc-plan small, .cc-plan details { grid-column: 2; color: var(--muted-strong); }
.cc-step-mark { color: #7f8da3; }.cc-plan li[data-status=active] .cc-step-mark { color: #2656b4; }.cc-plan li[data-status=done] .cc-step-mark { color: #247453; }
.cc-plan li[data-status=active] > span:nth-child(2) { font-weight: 700; }
.cc-decision { border: 1px solid #b6cbed; background: #f5f8fe; padding: 20px; margin-bottom: 20px; border-radius: 8px; }
.cc-decision fieldset { padding: 0; margin: 18px 0; border: 0; min-width: 0; }
.cc-decision legend { font-size: 15px; font-weight: 600; line-height: 1.6; margin-bottom: 12px; }
.cc-choice { display: flex; align-items: start; gap: 12px; padding: 13px; margin: 8px 0; background: white; border: 1px solid #c7d2e1; border-radius: 6px; cursor: pointer; }
.cc-choice:has(input:checked) { border-color: #4873c5; box-shadow: inset 0 0 0 1px #4873c5; }
.cc-choice input { margin-top: 4px; accent-color: #2759bd; width: 16px; height: 16px; flex: none; }
.cc-choice strong { display: block; font-size: 14px; }.cc-choice small { display: block; margin-top: 4px; color: var(--muted-strong); line-height: 1.6; }
.cc-decision .cc-field { margin: 14px 0; }.cc-decision > a { font-size: 13px; color: #2656b4; }
.cc-review-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-review-preview, .cc-decision-history, .cc-decision pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 13px/1.8 'DM Sans', sans-serif; padding: 14px; background: white; }
.cc-answers { margin: 10px 0 0; font-size: 13px; line-height: 1.6; }.cc-answers dt { font-weight: 600; margin-top: 10px; }.cc-answers dd { margin: 2px 0 0; color: #244c80; overflow-wrap: anywhere; }
.cc-decision-history { display: block; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 6px; }.cc-decision-history small { color: var(--muted-strong); }
.cc-file { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 6px; margin: 12px 0; align-items: center; overflow-wrap: anywhere; }
.cc-file strong { width: 100%; font-size: 14px; }.cc-file small { color: var(--muted-strong); margin-right: auto; }
.cc-preview { width: min(1050px, 94vw); height: min(850px, 90vh); max-width: 96vw; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; }
.cc-preview::backdrop { background: #142740a8; }.cc-preview header { padding: 15px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.cc-preview h2 { font: 700 18px/1.4 Manrope, sans-serif; overflow-wrap: anywhere; }.cc-preview-body { padding: 20px; height: calc(100% - 94px); overflow: auto; box-sizing: border-box; }
.cc-preview-body img, .cc-preview-body video { display: block; max-width: 100%; max-height: 65vh; margin: 20px auto; }.cc-preview-body iframe { width: 100%; height: 65vh; border: 1px solid var(--line); margin-top: 20px; }
.cc-preview-body pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
@media (max-width: 1150px) { .cc-room-layout { grid-template-columns: minmax(0, 1fr); }.cc-room-details { position: static; border-left: 0; padding-left: 0; }.cc-room-details .cc-plan, .cc-room-details .cc-plan-finish, .cc-room-details h2 { display: none; } }
@media (max-width: 600px) { .cc-task-row, .cc-inbox-row { flex-direction: column; gap: 12px; padding: 16px; }.cc-task-meta { justify-items: start; grid-template-columns: auto 1fr; min-width: 0; }.cc-task-meta small { grid-column: 1 / -1; }.cc-filters { gap: 10px; }.cc-filters input { flex-basis: 100%; }.cc-filters label { flex: 1; min-width: 0; }.cc-filters select { width: 100%; }.cc-progress-strip { flex-direction: column; gap: 4px; }.cc-room-meta a { margin-left: 0; }.cc-tabs { gap: 0; }.cc-tabs button { flex: 1; padding: 10px 7px; font-size: 12px; }.cc-decision, .cc-composer { padding: 14px; }.cc-conversation { max-height: 60vh; }.cc-preview header { padding: 12px; }.cc-preview h2 { font-size: 15px; } }
