/* Docu report panel on the main page (Quan 3.5 routes single-company report
   requests here). Rules mirror the Quan page panel, scoped to the main chat
   area and re-tokened to the main chat's dark palette. */
#copilotChatArea .company-report-panel {
  --text: #e5e7eb; --soft: #cbd5e1; --muted: #9ca3af;
  --line: #242B3D; --line-soft: #1A2030;
  --surface: #0F1520; --surface-soft: #121a28; --surface-hover: #162033;
  --blue: #60a5fa; --green: #22c55e;
  --docu-accent: #1d4ed8; --docu-on-accent: #ffffff; --docu-selected: #13233f; --docu-radius: 4px;
  color: var(--text); background: var(--surface);
}
/* The main site styles buttons with an explicit display; keep [hidden] hidden. */
#copilotChatArea .company-report-panel [hidden] { display: none !important; }
#copilotChatArea .company-report-panel { display: block; width: min(780px,100%); max-width: 100%; margin: 28px auto; padding: 28px; border: 0; border-radius: var(--docu-radius); background: var(--surface-soft); color: var(--text); font-size: 15px; line-height: 1.55; box-shadow: none; }
#copilotChatArea .company-report-panel h3 { margin: 0 0 8px; font-size: 22px !important; line-height: 1.25 !important; font-weight: 600 !important; }
#copilotChatArea .company-report-panel h4 { margin: 0 0 10px; font-size: 15px !important; font-weight: 600 !important; }
#copilotChatArea .company-report-panel p { margin: 8px 0 16px; }
#copilotChatArea .company-report-panel .docu-status { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
#copilotChatArea .company-report-panel .docu-meta, #copilotChatArea .docu-note { color: var(--muted); font-size: 14px; }
#copilotChatArea .company-report-panel .docu-request-title { font-weight: 500; color: var(--soft); }
#copilotChatArea .company-report-panel .docu-result-headline { margin: 12px 0; font-size: 19px; line-height: 1.4; max-width: 60ch; }
#copilotChatArea .company-report-panel button, #copilotChatArea .company-report-panel a, #copilotChatArea .company-report-panel select { min-height: 44px; font: inherit; border-radius: 8px; cursor: pointer; }
#copilotChatArea .company-report-panel button, #copilotChatArea .company-report-panel a { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; text-decoration: none; transition: background-color 160ms ease-out,color 160ms ease-out; }
#copilotChatArea .company-report-panel .docu-primary { border: 1px solid transparent; background: var(--docu-accent); color: var(--docu-on-accent); font-weight: 600; }
#copilotChatArea .company-report-panel .docu-primary:hover { background: var(--blue); }
#copilotChatArea .company-report-panel .docu-secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
#copilotChatArea .company-report-panel .docu-secondary:hover { background: var(--surface-hover); }
#copilotChatArea .company-report-panel button:disabled { opacity: .6; cursor: wait; }
#copilotChatArea .company-report-panel label { display: grid; gap: 8px; margin: 20px 0; color: var(--soft); }
#copilotChatArea .company-report-panel select { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 10px 12px; }
#copilotChatArea .company-report-panel .report-controls { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
#copilotChatArea .company-report-panel > button:last-child { margin-top: 12px; }
#copilotChatArea .report-question { padding: 0; margin: 24px 0; border: 0; min-width: 0; }
#copilotChatArea .report-question legend { font-weight: 600; margin-bottom: 12px; }
#copilotChatArea .docu-company-choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit,minmax(min(240px,100%),1fr)); }
#copilotChatArea .docu-company-choices button { display: grid; justify-content: start; text-align: left; gap: 4px; padding: 18px; background: var(--surface); }
#copilotChatArea .docu-company-choices small { color: var(--muted); font-size: 13px; }
#copilotChatArea .docu-ticker { color: var(--soft); font-size: 14px; }
#copilotChatArea .docu-segments { display: flex; flex-wrap: wrap; gap: 8px; }
#copilotChatArea .docu-segments button { flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
#copilotChatArea .docu-segments small { font-size: 12px; color: var(--muted); }
#copilotChatArea .company-report-panel button[aria-pressed=true] { background: var(--docu-selected); border-color: var(--blue); }
#copilotChatArea .docu-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
#copilotChatArea .docu-plan ul { margin: 0; padding-left: 18px; }
#copilotChatArea .docu-plan li { padding: 3px 0; }
#copilotChatArea .company-report-panel .docu-disclosure { margin: 16px 0; }
#copilotChatArea .company-report-panel summary { cursor: pointer; color: var(--soft); padding: 8px 0; min-height: 44px; }
#copilotChatArea .company-report-panel summary span { display: block; margin: 4px 0 0 18px; color: var(--muted); font-size: 14px; }
#copilotChatArea .company-report-panel .docu-disclosure ul { padding-left: 20px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
#copilotChatArea .company-report-panel .docu-disclosure li { margin: 10px 0; }
#copilotChatArea .docu-steps { padding: 0; margin: 24px 0; list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
#copilotChatArea .docu-steps li { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
#copilotChatArea .docu-steps small { font-size: 12px; }
#copilotChatArea .docu-step-mark { width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%; }
#copilotChatArea .docu-steps [data-state=current] { color: var(--text); }
#copilotChatArea .docu-steps [data-state=current] .docu-step-mark { border-color: var(--blue); border-top-color: transparent; animation: docu-checking 1.4s linear infinite; }
#copilotChatArea .docu-steps [data-state=complete] .docu-step-mark { background: var(--green); border-color: var(--green); }
#copilotChatArea .company-report-panel progress { accent-color: var(--blue); width: 100%; height: 6px; display: block; }
#copilotChatArea .company-report-panel .docu-elapsed { margin: 14px 0 24px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
#copilotChatArea .company-report-panel .docu-error { color: var(--text); }
#copilotChatArea .company-report-panel :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
#copilotChatArea .quan-recent-panel .docu-history-headline { margin: 6px 0; font-size: 14px; }
@keyframes docu-checking { to { transform: rotate(360deg); } }
@media(max-width:600px) {
  #copilotChatArea .company-report-panel { margin: 16px auto; padding: 20px 16px; }
  #copilotChatArea .company-report-panel h3 { font-size: 20px !important; }
  #copilotChatArea .docu-plan { grid-template-columns: 1fr; gap: 20px; }
  #copilotChatArea .docu-segments { flex-direction: column; }
  #copilotChatArea .docu-segments button { width: 100%; }
  #copilotChatArea .docu-steps { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  #copilotChatArea .report-controls > * { flex: 1; }
}
@media(prefers-reduced-motion:reduce) {
  #copilotChatArea .company-report-panel * { animation: none !important; transition: none !important; }
}
#copilotChatArea .company-report-panel { border-radius: var(--docu-radius) !important; }
#copilotChatArea .company-report-panel button, #copilotChatArea .company-report-panel a, #copilotChatArea .company-report-panel select { border-radius: 8px !important; }
#copilotChatArea .company-report-panel .docu-step-mark { border-radius: 50% !important; }
#copilotChatArea .company-report-panel progress { appearance: none; border: 0; background: var(--line-soft); border-radius: 3px !important; overflow: hidden; }
#copilotChatArea .company-report-panel progress::-webkit-progress-bar { background: var(--line-soft); }
#copilotChatArea .company-report-panel progress::-webkit-progress-value { background: var(--blue); }
#copilotChatArea .company-report-panel progress::-moz-progress-bar { background: var(--blue); }
#copilotChatArea .company-report-panel { border: 1px solid var(--line-soft) !important; padding: 28px 32px !important; }
#copilotChatArea .company-report-panel .docu-status { text-transform: none; letter-spacing: .01em; font-size: 13px; color: var(--muted); }
#copilotChatArea .company-report-panel .docu-steps { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; margin: 20px 0 18px !important; }
#copilotChatArea .company-report-panel .docu-steps li { position: relative; display: grid !important; grid-template-columns: 22px 1fr auto; align-items: center; column-gap: 14px; min-height: 44px; padding: 0; color: var(--muted); font-size: 15px; }
#copilotChatArea .company-report-panel .docu-steps li + li::before { content: ""; position: absolute; left: 10px; top: -12px; height: 24px; width: 2px; background: var(--line-soft); }
#copilotChatArea .company-report-panel .docu-steps li[data-state=complete] + li::before { background: var(--green); opacity: .55; }
#copilotChatArea .company-report-panel .docu-steps small { justify-self: end; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
#copilotChatArea .company-report-panel .docu-steps [data-state=current] { color: var(--text); font-weight: 500; }
#copilotChatArea .company-report-panel .docu-steps [data-state=current] small { color: var(--blue); }
#copilotChatArea .company-report-panel .docu-step-mark { position: relative; z-index: 1; box-sizing: border-box; width: 22px !important; height: 22px !important; border: 2px solid var(--line-soft) !important; border-radius: 50% !important; background: var(--surface-soft); }
#copilotChatArea .company-report-panel .docu-steps [data-state=current] .docu-step-mark { border-color: var(--blue) !important; border-top-color: transparent !important; animation: docu-checking 1s linear infinite; }
#copilotChatArea .company-report-panel .docu-steps [data-state=complete] .docu-step-mark { border-color: var(--green) !important; background: var(--green); }
#copilotChatArea .company-report-panel .docu-steps [data-state=complete] .docu-step-mark::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #04130c; border-width: 0 2px 2px 0; transform: rotate(45deg); }
#copilotChatArea .company-report-panel progress { height: 4px !important; margin-top: 4px; }
#copilotChatArea .company-report-panel .docu-elapsed { margin: 12px 0 20px !important; }
#copilotChatArea .company-report-panel summary { list-style: none; display: block; position: relative; padding-left: 22px !important; }
#copilotChatArea .company-report-panel summary::-webkit-details-marker { display: none; }
#copilotChatArea .company-report-panel summary::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border: solid var(--soft); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform 160ms ease-out; }
#copilotChatArea .company-report-panel details[open] > summary::before { transform: rotate(45deg); top: 14px; }
#copilotChatArea .company-report-panel summary span { margin-left: 0 !important; }
#copilotChatArea .company-report-panel .docu-disclosure { border-top: 1px solid var(--line-soft); margin: 0 !important; padding: 6px 0; }
#copilotChatArea .company-report-panel .docu-disclosure + .docu-disclosure { border-top-color: var(--line-soft); }
#copilotChatArea .company-report-panel .docu-disclosure:last-of-type { border-bottom: 1px solid var(--line-soft); }
#copilotChatArea .company-report-panel .docu-plan { margin: 24px 0 20px !important; }
#copilotChatArea .company-report-panel .report-controls { margin-top: 24px !important; }
@media (max-width: 600px) {
  #copilotChatArea .company-report-panel { padding: 22px 18px !important; border-radius: 14px !important; }
  #copilotChatArea .company-report-panel .report-controls { display: grid !important; grid-template-columns: 1fr; gap: 10px; }
  #copilotChatArea .company-report-panel .report-controls > * { width: 100%; }
  #copilotChatArea .company-report-panel > button:last-child { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #copilotChatArea .company-report-panel .docu-steps [data-state=current] .docu-step-mark { animation: none; border-top-color: var(--blue) !important; }
}
#copilotChatArea .company-report-panel .docu-steps { max-width: 560px; }
#copilotChatArea .company-report-panel .docu-steps[hidden], #copilotChatArea .company-report-panel progress[hidden], #copilotChatArea .company-report-panel .docu-elapsed[hidden] { display: none !important; }
#copilotChatArea .company-report-panel .docu-cancel-note { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
#copilotChatArea .company-report-panel .docu-cancel-note[hidden] { display: none !important; }
