/* The PDF reuses the result components; only paper spacing is adjusted. */
.pdf-report{display:none}
.pdf-report.is-preparing{display:block;position:fixed;left:-12000px;top:0;width:960px;pointer-events:none}
.pdf-report .pdf-page{width:960px;height:1358px;display:flex;flex-direction:column;background:var(--paper);color:var(--ink);font-family:"Montserrat",Arial,sans-serif;font-size:16px;line-height:1.7;overflow:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.pdf-report *{box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
.pdf-report h1,.pdf-report h2,.pdf-report h3,.pdf-report h4{line-height:1.35}
.pdf-report p{line-height:1.75}
.pdf-page-header,.pdf-page-footer{background:linear-gradient(115deg,#0b1224 0%,#123e89 52%,#096db3 100%);color:#e4f0ff;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0}
.pdf-page-header{height:72px;padding:0 36px}
.pdf-page-header img{width:192px;height:32px;object-fit:contain;filter:brightness(0) invert(1)}
.pdf-page-header>span{font-size:13px;font-weight:550}
.pdf-page-footer{height:65px;padding:0 36px;font-size:12px}
.pdf-page-footer strong{display:block;color:white;font-size:12px;font-weight:600}
.pdf-page-footer a{font-size:11px;color:#e4f0ff;text-decoration:none;display:block;margin-top:2px}
.pdf-page-number{white-space:nowrap;font-size:11px}
.pdf-page-body{flex:1;min-height:0;padding:24px 32px}
.pdf-page-content{height:100%;display:flex;flex-direction:column;gap:24px}
.pdf-page-content>*{flex:none;min-width:0}
.pdf-report .result-header{display:block;margin:0}
.pdf-report .result-header h1{font-size:34px;letter-spacing:-.6px}
.pdf-report .result-header p{max-width:none;font-size:15px;margin-top:9px;overflow-wrap:anywhere}
.pdf-report .goal-summary{display:flex;padding:30px;border-radius:18px;gap:24px;box-shadow:none}
.pdf-report .goal-summary .section-label{font-size:13px;letter-spacing:.65px}
.pdf-report .goal-amount{font-size:56px;margin:16px 0;letter-spacing:-1.3px}
.pdf-report .goal-summary p{font-size:16px}
.pdf-report .sales-summary{display:block;max-width:230px;text-align:right;border-top:0;border-left:1px solid #b9d9ff42;padding:5px 0 5px 24px;margin:0}
.pdf-report .sales-summary strong{font-size:32px;max-width:none;margin-bottom:8px}
.pdf-report .sales-summary span{font-size:15px;max-width:none;line-height:1.75}
.pdf-report .essentials{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-top:22px}
.pdf-report .essential{padding:24px 28px;border-radius:15px}
.pdf-report .essential-icon{position:absolute;right:20px;top:17px;width:36px;height:36px;margin:0}
.pdf-report .essential-icon .ui-icon{width:21px;height:21px}
.pdf-report .essential-label{font-size:15px;min-height:0;padding-right:44px}
.pdf-report .essential-label small{font-size:13px;margin-top:5px}
.pdf-report .essential-value{font-size:40px;letter-spacing:-1px;margin:14px 0 9px}
.pdf-report .essential p{font-size:14px;line-height:1.75}
.pdf-report .cpl-line{padding:16px 20px;margin-top:20px;font-size:16px}
.pdf-report .cpl-line small{font-size:14px;max-width:none;margin-top:8px;line-height:1.75}
.pdf-report .simple-note{font-size:14px;line-height:1.75;margin-top:18px}
.pdf-report .priority-box{margin-top:22px;padding:22px 24px;gap:16px}
.pdf-report .priority-box h2{font-size:20px;margin:0 0 12px}
.pdf-report .priority-box p{font-size:15px;line-height:1.8}
.pdf-report .priority-symbol{width:32px;height:32px;font-size:18px}
.pdf-report .section-title{font-size:26px}
.pdf-report .section-subtitle{font-size:15px;margin:10px 0 22px}
.pdf-report .funnel-panel{padding:24px 26px}
.pdf-report .funnel-caption{font-size:12px;margin:0 2px 20px}
.pdf-report .funnel-caption span:last-child{padding:3px 10px}
.pdf-report .funnel-list{gap:8px}
.pdf-report .funnel-stage{min-height:86px;padding:12px 24px;gap:14px}
.pdf-report .funnel-icon{width:28px;height:28px;border-radius:8px}
.pdf-report .funnel-icon .ui-icon{width:17px;height:17px}
.pdf-report .funnel-heading{gap:12px}
.pdf-report .stage-name{font-size:16px;line-height:1.5}
.pdf-report .stage-total{font-size:30px;max-width:39%;line-height:1.25;letter-spacing:-.6px}
.pdf-report .funnel-conversion{margin-top:7px;gap:12px}
.pdf-report .funnel-track{height:3px}
.pdf-report .funnel-rate{font-size:11px;line-height:1.5}
.pdf-report .funnel-panel>.simple-note{font-size:12px;margin:16px 3px 0;line-height:1.75}
.pdf-report .funnel-footer{display:block;margin:12px 3px 0;padding-top:12px;font-size:12px;line-height:1.75}
.pdf-report .funnel-footer p{max-width:none}
.pdf-report .campaign-panel{padding:0}
.pdf-report .route-banner{display:flex;padding:20px 24px;gap:20px}
.pdf-report .route-platform{gap:14px}
.pdf-report .route-icon{width:43px;height:43px;border-radius:12px}
.pdf-report .route-icon .ui-icon{width:24px;height:24px}
.pdf-report .route-label{font-size:10px;letter-spacing:.4px}
.pdf-report .route-platform h3{font-size:23px}
.pdf-report .route-platform p{font-size:13px}
.pdf-report .route-budget{display:block;border-top:0;border-left:1px solid #c3d6ef38;margin:0;padding:0 0 0 22px;text-align:right}
.pdf-report .route-budget>span{font-size:12px;margin-bottom:3px}
.pdf-report .route-budget strong{font-size:25px}
.pdf-report .route-budget small{font-size:12px}
.pdf-report .campaign-body{padding:22px 24px 24px}
.pdf-report .route-explanation{font-size:16px;line-height:1.75}
.pdf-report .campaign-pills{gap:9px;margin:20px 0 24px}
.pdf-report .campaign-pills span{font-size:11px;padding:6px 9px}
.pdf-report .action-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.pdf-report .action-list li{padding:22px}
.pdf-report .action-top{margin-bottom:16px}
.pdf-report .action-list h4{font-size:16px;line-height:1.5;margin-bottom:14px}
.pdf-report .action-list p{font-size:15px;line-height:1.8}
.pdf-report .metrics-section{margin:0}
.pdf-report .metrics-head{display:block;margin-bottom:14px}
.pdf-report .metrics-head .section-subtitle{margin-bottom:0}
.pdf-report .reading-note{font-size:14px;line-height:1.75;margin-bottom:16px}
.pdf-report .metric-groups{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.pdf-report .metric-group{margin:0;border-radius:13px}
.pdf-report .metric-group h3{font-size:11px;padding:13px 16px}
.pdf-report .metric-row{grid-template-columns:minmax(0,1fr) minmax(0,38%);min-height:82px;padding:14px 16px;gap:16px;pointer-events:none;align-items:start}
.pdf-report .metric-name{display:block;font-size:14px;line-height:1.6}
.pdf-report .metric-name small{font-size:12px;line-height:1.65;margin-top:6px}
.pdf-report .metric-right{max-width:none;min-width:0}
.pdf-report .metric-value{display:block;font-size:16px;line-height:1.5}
.pdf-report .metric-state{font-size:11px;line-height:1.6;margin-top:7px}
.pdf-report .roas-panel{display:block;padding:24px;margin-top:24px;box-shadow:none}
.pdf-report .roas-panel h3{font-size:21px;margin-bottom:12px}
.pdf-report .roas-panel p{font-size:14px;line-height:1.75;max-width:none}
.pdf-report .roas-values{display:flex;flex-wrap:nowrap;gap:16px;margin:20px 0 0}
.pdf-report .roas-values>div{padding:18px 20px;flex:1 1 0;min-width:0}
.pdf-report .roas-values small{font-size:13px;line-height:1.6}
.pdf-report .roas-values strong{font-size:36px;line-height:1.3;margin-top:10px}
.pdf-guide-card{padding:28px 30px;border:1px solid var(--line);border-radius:18px;background:white}
.pdf-guide-heading{display:flex;gap:16px;align-items:center;margin-bottom:20px}
.pdf-guide-number{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:linear-gradient(130deg,#0b1224,#0a5da5);color:white;font-size:15px;font-weight:700;flex:none}
.pdf-guide-heading .section-label{display:block;font-size:11px;letter-spacing:.6px;line-height:1.6}
.pdf-guide-heading h2{font-size:25px;line-height:1.4;margin-top:7px}
.pdf-guide-why{font-size:16px;color:var(--muted);line-height:1.8}
.pdf-reference{display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap;background:var(--brand-soft);border:1px solid #c8ddf5;border-radius:10px;padding:16px 18px;margin:22px 0;font-size:14px;line-height:1.7;color:var(--brand)}
.pdf-reference>span{font-size:17px;font-weight:700;margin-left:auto}
.pdf-reference>small{font-size:13px;line-height:1.7;flex-basis:100%}
.pdf-guide-ranges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.pdf-range{border:1px solid var(--line);border-top:3px solid var(--brand);border-radius:9px;padding:16px}
.pdf-range h3,.pdf-scenario h3{font-size:15px;line-height:1.5;margin-bottom:12px}
.pdf-range p{font-size:14px;line-height:1.8;color:var(--muted)}
.pdf-range.good{border-top-color:#167a5d}.pdf-range.watch{border-top-color:#bc850d}.pdf-range.bad{border-top-color:#b44949}
.pdf-scenarios{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin:24px 0}
.pdf-scenario{padding:20px;border-radius:10px}
.pdf-scenario.bad{background:#fff2f0;color:#913337}.pdf-scenario.good{background:#eaf8f0;color:#135740}
.pdf-scenario p{font-size:15px;line-height:1.8;color:var(--ink)}
.pdf-measure{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.pdf-measure p{font-size:14px;line-height:1.8;color:var(--muted)}
.pdf-measure strong{display:block;font-size:14px;line-height:1.6;color:var(--ink);margin-bottom:10px}
.pdf-caution{border-top:1px solid var(--line);padding-top:18px;margin-top:24px;font-size:13px;line-height:1.8;color:var(--muted)}
.pdf-appendix-card{border:1px solid var(--line);border-radius:16px;background:white;padding:26px 28px}
.pdf-appendix-card h2{font-size:24px;line-height:1.4;margin-bottom:20px}
.pdf-appendix-card h3{font-size:17px;line-height:1.5;margin:24px 0 12px}
.pdf-appendix-card p{font-size:15px;line-height:1.8;color:var(--muted);margin:16px 0}
.pdf-appendix-card .source-link{font-size:14px;line-height:1.75;margin:16px 0}
.pdf-appendix-card .detail-table{font-size:14px;line-height:1.7;margin:12px 0 20px}
.pdf-appendix-card .detail-table td{padding:10px 6px}
.pdf-appendix-card .formula{font-size:14px;line-height:1.9;padding:18px;margin:20px 0}
@media print{
  @page{size:A4;margin:0}
  html,body{margin:0;padding:0;background:white;scroll-behavior:auto;overflow:visible!important}
  body:has(.pdf-page)>*:not(#print-report){display:none!important}
  #print-report:has(.pdf-page){display:block!important;position:static;left:auto;top:auto;width:960px;zoom:.8267716535}
  .pdf-report *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .pdf-report .pdf-page{break-after:page;break-inside:avoid;height:1357px}
  .pdf-report .pdf-page:last-child{break-after:auto}
}
