/* Shared public-page tools. Keep all selectors separate from report data styles. */
.aiecho-output-host{height:auto!important;flex-wrap:wrap;gap:12px}
.aiecho-output-bar{display:flex;justify-content:flex-end;padding:8px 20px}
.aiecho-output-tools{position:relative;display:flex;align-items:center;flex:0 0 auto;max-width:100%;margin-left:auto}
#aiecho-output-tools .aiecho-output-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;max-width:100%;padding:6px 10px;border:1px solid #becbdd;border-radius:7px;background:transparent;color:#233a5d;font:600 13px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;cursor:pointer;white-space:nowrap}
#aiecho-output-tools .aiecho-output-button .aiecho-output-label{display:inline!important;position:static;margin:0!important;padding:0;border:0;background:none;color:inherit!important;font:inherit!important;line-height:inherit;letter-spacing:normal;white-space:nowrap}
#aiecho-output-tools .aiecho-output-button svg{display:block;width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.aiecho-report-quick #aiecho-output-tools .aiecho-output-button,.aiecho-report-formal #aiecho-output-tools .aiecho-output-button,.ops-report #aiecho-output-tools .aiecho-output-button{border-color:#ffffff80;color:#fff}
#aiecho-output-tools .aiecho-output-button:hover{background:#64748b18}
.aiecho-report-formal .topbar.aiecho-output-host{min-height:62px;padding-top:8px;padding-bottom:8px}
.aiecho-report-quick .hero{position:relative}
.aiecho-report-quick .hero-main{padding-top:44px}
.aiecho-report-quick .hero>.aiecho-output-tools{position:absolute;z-index:2;right:32px;top:22px}
#aiecho-output-tools .aiecho-output-hint{position:absolute;z-index:50;right:0;top:100%;display:block;width:280px;max-width:calc(100vw - 40px);margin:0;padding:9px 12px;border:1px solid #c3cede;border-radius:7px;background:#fff;color:#233a5d;font:400 12px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;text-align:left;box-shadow:0 5px 16px #10214120}
#aiecho-output-tools .aiecho-output-hint[hidden]{display:none!important}
.aiecho-output-help{margin:12px 20px;padding:14px 16px;border:1px solid #b8cef7;border-radius:10px;background:#f1f6ff;color:#203450;font-size:14px;line-height:1.6}
.aiecho-output-help[hidden]{display:none!important}
.aiecho-output-help p{margin:5px 0}
.aiecho-output-help button{margin:6px 8px 0 0;padding:7px 12px;border:1px solid #b8c9e7;border-radius:6px;background:#fff;color:#155eef;font:inherit;cursor:pointer}
.aiecho-output-button:focus-visible,.aiecho-output-help button:focus-visible{outline:3px solid #7ab7ff;outline-offset:2px}
.aiecho-print-scope{display:none;color:#62718a;font-size:12px;line-height:1.5}
.aiecho-save-view .aiecho-print-scope{display:block}
.aiecho-save-view .filters,.aiecho-save-view .pager,.aiecho-save-view .evidence-controls,.aiecho-save-view .evidence-filters{display:none!important}
.aiecho-save-view #result-body{display:none!important}
.aiecho-save-view #print-body{display:table-row-group!important}
.aiecho-save-view .print-scope{display:block!important}
.aiecho-save-view .report-section>.section-content{display:block!important}
.aiecho-save-view .evidence-viewer,.aiecho-save-view .evidence-cards{display:none!important}
.aiecho-save-view .evidence-table-scroll{display:block!important;overflow:auto}
.aiecho-save-view .snapshot-shell .target-snapshots{position:static!important;width:auto!important;height:auto!important;overflow:visible!important}
.aiecho-save-view .snapshot-shell .target-snapshot{position:static!important;display:block!important;width:auto!important;height:auto!important;max-height:none!important;inset:auto!important;margin:12px 0;padding:12px;box-shadow:none!important}
.aiecho-save-view .snapshot-shell .default-snapshot,.aiecho-save-view .snapshot-guide,.aiecho-save-view .back-link{display:none!important}
.aiecho-save-view .snapshot-shell,.aiecho-save-view .snapshot-stage,.aiecho-save-view .answer-text{height:auto!important;max-height:none!important;overflow:visible!important}
@media(max-width:720px){.aiecho-output-tools{width:auto;align-items:center}.aiecho-output-help{margin:10px 12px}.aiecho-output-bar{padding:8px 12px}.aiecho-output-host.topbar{padding-top:10px;padding-bottom:10px}.aiecho-report-quick .hero>.aiecho-output-tools{right:16px;top:14px}}
@media print{
  @page{size:A4 landscape;margin:10mm}
  .aiecho-print-scope{display:block}
  .aiecho-output-tools,.aiecho-output-help,.aiecho-output-bar{display:none!important}
  html,body{background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .report-page,.ops-report,main.report{width:100%!important;max-width:none!important;margin:0!important;overflow:visible!important;box-shadow:none!important}
  .table-scroll,.matrix-scroll{overflow:visible!important}
  table{width:100%!important;min-width:0!important;table-layout:auto}
  th,td{overflow-wrap:anywhere}
  thead{display:table-header-group}tr{break-inside:avoid}
  /* Paper layout overrides screen breakpoints without changing reading styles. */
  .aiecho-report-formal .topbar{min-height:0!important;height:auto;padding:8px 14px!important;gap:8px}
  .aiecho-report-formal .brand b{font-size:20px}.aiecho-report-formal .brand span,.aiecho-report-formal .snapshot-state{font-size:10px}
  .aiecho-report-formal .hero{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:12px;min-height:0;padding:12px 14px;break-inside:avoid}
  .aiecho-report-formal .hero-copy{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px}
  .aiecho-report-formal .hero-identity{padding:0 12px 0 0;border-right:1px solid #ffffff40}
  .aiecho-report-formal .company{font-size:13px}.aiecho-report-formal .hero h1{font-size:24px;margin:3px 0 6px}
  .aiecho-report-formal .hero-meta{margin:0;padding:0;border:0;gap:5px;font-size:10px}
  .aiecho-report-formal .hero-meta span{white-space:normal;overflow-wrap:anywhere}
  .aiecho-report-formal .month-label,.aiecho-report-formal .scope-chips span{padding:2px 7px;font-size:9px}
  .aiecho-report-formal .scope-chips{margin-top:6px;gap:5px}
  .aiecho-report-formal .metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:0}
  .aiecho-report-formal .metrics article{grid-column:auto;min-height:64px;padding:7px 9px;box-shadow:none}
  .aiecho-report-formal .metrics strong{font-size:25px;margin-top:4px}.aiecho-report-formal .metrics small{font-size:10px}
  .aiecho-report-formal .metrics .kpi-icon{position:static;display:inline-block;width:24px;height:24px;margin-right:6px;vertical-align:middle}
  .aiecho-report-formal .metrics .kpi-line{gap:6px}.aiecho-report-formal .metrics p{font-size:9px;margin-top:3px}
  .aiecho-report-formal .analysis-grid,.aiecho-report-formal .lower-grid{display:block;padding:0 10px}
  .aiecho-report-formal .panel,.aiecho-report-formal .executive,.aiecho-report-formal .evidence-section{height:auto;min-height:0;max-height:none;overflow:visible;break-inside:auto;padding:9px 10px}
  .aiecho-report-formal .panel{margin-top:8px}.aiecho-report-formal .executive,.aiecho-report-formal .evidence-section{margin:8px 10px 0}
  .aiecho-report-formal .report-section>.section-toggle{justify-content:flex-start;padding:0;margin:0 0 6px;break-after:avoid}
  .aiecho-report-formal .report-section>.section-toggle>i{display:none}
  .aiecho-report-formal .report-section>.section-content{padding:0}
  .aiecho-report-formal .executive .section-content{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px}
  .aiecho-report-formal .executive aside{display:block;font-size:10px}
  .aiecho-report-formal .panel-title h2,.aiecho-report-formal .section-heading h2{font-size:13px}
  .aiecho-report-formal .summary-table,.aiecho-report-formal .evidence-table table{font-size:10px}
  .aiecho-report-formal .evidence-layout{display:block}.aiecho-report-formal .evidence-table{width:100%;padding:0;overflow:visible}
  .aiecho-report-formal .evidence-table-scroll{display:block;overflow:visible}
  .aiecho-report-formal .evidence-table table{table-layout:fixed}
  .aiecho-report-formal .evidence-table th,.aiecho-report-formal .evidence-table td{padding:5px 4px;white-space:normal}
  .aiecho-report-formal .evidence-table .platform-name,.aiecho-report-formal .evidence-table .platform-name span{white-space:normal;word-break:normal}
  .aiecho-report-formal .answer-preview{max-width:none;white-space:normal;overflow:visible}
  .aiecho-report-formal footer{display:block;padding:8px 10px;font-size:9px}
  .aiecho-report-quick .hero{display:grid!important;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:12px;align-items:center;min-height:0;padding:12px 14px!important;break-inside:avoid}
  .aiecho-report-quick .hero-main{padding-top:0}.aiecho-report-quick .company{font-size:14px}
  .aiecho-report-quick .hero h1{font-size:26px;margin:4px 0 8px}
  .aiecho-report-quick .chips{gap:5px}.aiecho-report-quick .chips span{padding:3px 7px;font-size:10px;white-space:normal;overflow:visible}
  .aiecho-report-quick .hero-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:0}
  .aiecho-report-quick .hero-metrics article{display:grid;grid-template-columns:24px minmax(0,1fr);min-height:0;padding:8px}
  .aiecho-report-quick .hero-metrics .metric-icon{width:24px;height:24px}.aiecho-report-quick .hero-metrics b{font-size:11px}
  .aiecho-report-quick .hero-metrics .metric-value{font-size:27px;margin-top:5px}.aiecho-report-quick .hero-metrics .metric-value small{font-size:14px}
  .aiecho-report-quick .hero-metrics .metric-note{font-size:9px;margin-top:4px;white-space:normal}
  .aiecho-report-quick .top-grid,.aiecho-report-quick .multi-summary-grid{display:block!important;padding:0 10px}
  .aiecho-report-quick .panel,.aiecho-report-quick .matrix-card,.aiecho-report-quick .snapshot-shell,.aiecho-report-quick .snapshot-stage,.aiecho-report-quick .answer-text{display:block;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;break-inside:auto;box-shadow:none}
  .aiecho-report-quick .panel{margin:8px 0 0;padding:10px;font-size:11px}
  .aiecho-report-quick .panel h2,.aiecho-report-quick .matrix-card h2,.aiecho-report-quick .snapshot-shell h2{font-size:14px;break-after:avoid}
  .aiecho-report-quick .conclusion-body{min-height:0;gap:10px;margin-top:8px}.aiecho-report-quick .conclusion-body strong{font-size:13px}
  .aiecho-report-quick .shield{flex-basis:32px;height:32px;font-size:22px}
  .aiecho-report-quick .name-list,.aiecho-report-quick .coverage-list,.aiecho-report-quick .platform-list{height:auto;max-height:none;overflow:visible!important;margin-top:7px;gap:5px}
  .aiecho-report-quick .name-list>div,.aiecho-report-quick .coverage-list>div{padding:4px 7px;break-inside:avoid}
  .aiecho-report-quick .names-panel .name-list span{white-space:normal;overflow:visible}.aiecho-report-quick .panel-note{font-size:10px;margin-top:6px}
  .aiecho-report-quick .evidence-layout{display:block!important;padding:8px 10px 0}
  .aiecho-report-quick .matrix-card,.aiecho-report-quick .snapshot-shell{padding:10px;margin-bottom:8px}
  .aiecho-report-quick .matrix-card>.matrix-scroll{overflow:visible!important;margin-top:7px}
  .aiecho-report-quick .matrix,.aiecho-report-quick .single-table{font-size:10px!important;table-layout:fixed}
  .aiecho-report-quick .matrix th,.aiecho-report-quick .matrix td,.aiecho-report-quick .single-table th,.aiecho-report-quick .single-table td{min-width:0;padding:5px;white-space:normal!important;overflow:visible!important;text-overflow:clip}
  .aiecho-report-quick .matrix-card .matrix-scroll tbody tr{display:table-row!important}
  .aiecho-report-quick .filter-labels,.aiecho-report-quick .filter-radio{display:none!important}
  .aiecho-report-quick .snapshot-stage:empty{display:none}.aiecho-report-quick .snapshot-stage{margin-top:0}
  .aiecho-report-quick .snapshot-shell .target-snapshots{position:static!important;display:block;width:auto!important;height:auto!important;overflow:visible!important}
  .aiecho-report-quick .snapshot-shell .target-snapshot{position:static!important;display:block!important;width:auto!important;height:auto!important;max-height:none!important;inset:auto!important;margin:8px 0;padding:8px 0;box-shadow:none!important;break-inside:auto;font-size:11px}
  .aiecho-report-quick .snapshot dl{grid-template-columns:70px minmax(0,1fr);gap:5px;font-size:11px;break-inside:avoid}
  .aiecho-report-quick .snapshot h3{font-size:11px;margin:8px 0 4px;break-after:avoid}
  .aiecho-report-quick .answer-text{font-size:11px;line-height:1.5;padding:8px;white-space:pre-wrap;overflow-wrap:anywhere;orphans:3;widows:3}
  .aiecho-report-quick .default-snapshot,.aiecho-report-quick .snapshot-guide,.aiecho-report-quick .back-link{display:none!important}
  .aiecho-report-quick .attention-card,.aiecho-report-quick .platform-overview{margin:8px 10px;padding:10px;break-inside:auto}
  .aiecho-report-quick footer{padding:8px 10px;font-size:9px}
}
