/* Passada — impressão / PDF
   O PDF não é a página do laudo: é uma folha própria (PrintSheet, em views/report.js), em A4.
   Refeita em 26/11/2026 ("formata esse pdf, deixe ele lindo"): capa escura com o índice num anel,
   achados em cartões com a foto, medidas em cartões com barra, plano numa tabela limpa.
   Três folhas: 1) quem é e o que encontramos; 2) as medidas; 3) o plano. */
@page { size: A4; margin: 11mm 12mm 12mm; }
html, body { background: #fff !important; }
body { font-size: 9.5pt; line-height: 1.42; color: #12161d; }
.topbar, .toasts, .scrim { display: none !important; }
.report > *:not(.print-sheet) { display: none !important; }
.print-sheet { display: block; -webkit-print-color-adjust: exact; print-color-adjust: exact; --ps-ink: #12161d; --ps-2: #454c58; --ps-3: #6c7480; --ps-rule: #d9dde4; --ps-soft: #f3f5f8; --ps-signal: #0E9BD3; --ps-night: #05070D; }
.print-sheet * { box-sizing: border-box; }
.print-sheet h1, .print-sheet h2, .print-sheet h3, .print-sheet p, .print-sheet ul, .print-sheet ol, .print-sheet figure { margin: 0; }
.print-sheet a { color: inherit; text-decoration: none; }
.ps-break { break-before: page; }

/* capa: a sala escura do app, com o anel aceso */
.ps-cover { display: flex; justify-content: space-between; align-items: center; gap: 8mm; padding: 6.5mm 9mm; border-radius: 5mm; color: #EAF0FA;
  background: radial-gradient(90mm 50mm at 86% 0%, rgba(46, 140, 255, .32), transparent 70%), linear-gradient(rgba(148, 176, 232, .06) .3mm, transparent .3mm) 0 0 / 100% 6mm, linear-gradient(90deg, rgba(148, 176, 232, .06) .3mm, transparent .3mm) 0 0 / 6mm 100%, var(--ps-night); }
.ps-brand { font-size: 13pt; font-weight: 800; font-stretch: 72%; text-shadow: -1.2mm 0 0 rgba(69, 208, 255, .4), -2.4mm 0 0 rgba(69, 208, 255, .16); padding-left: 2.4mm; }
.ps-kind { font-size: 8pt; color: #8A96AC; margin-top: .6mm !important; }
.ps-cover h1 { font-size: 34pt; line-height: .95; font-weight: 850; font-stretch: 66%; margin-top: 4.5mm !important; }
.ps-meta { display: flex; flex-wrap: wrap; gap: 1.5mm; margin-top: 3.5mm !important; }
.ps-meta span { font-size: 8pt; padding: .8mm 2.4mm; border-radius: 3mm; background: rgba(148, 176, 232, .14); color: #C9D3E6; }
.ps-cover__score { display: flex; align-items: center; gap: 6mm; flex: none; }
.ps-cover__score svg { width: 34mm; height: 34mm; }
.ps-ring__track { fill: none; stroke: rgba(148, 176, 232, .2); stroke-width: 9; }
.ps-ring__val { fill: none; stroke: #45D0FF; stroke-width: 9; stroke-linecap: round; }
.ps-ring__num { font: 800 34px Archivo, system-ui, sans-serif; font-stretch: 72%; fill: #fff; }
.ps-ring__cap { font: 600 9px Archivo, system-ui, sans-serif; fill: #8A96AC; }
.ps-cover__bars { display: grid; gap: 2.6mm; width: 46mm; }
.ps-cover__bars p { display: grid; grid-template-columns: 1fr auto; gap: .8mm 2mm; font-size: 8pt; color: #B9C3D6; align-items: baseline; }
.ps-cover__bars b { font-size: 11pt; color: #fff; font-stretch: 80%; }
.ps-cover__bars p > i { grid-column: 1 / -1; display: block; height: 1.3mm; border-radius: 1mm; background: rgba(148, 176, 232, .2); overflow: hidden; }
.ps-cover__bars p > i > i { display: block; height: 100%; background: #45D0FF; border-radius: 1mm; }
.ps-note { font-size: 7.5pt; color: var(--ps-3); margin-top: 2mm !important; }

/* seções */
.ps-sec { margin-top: 5.5mm; }
.ps-sec h2 { position: relative; font-size: 15pt; font-weight: 800; font-stretch: 72%; padding-left: 3.6mm; margin-bottom: 3mm !important; break-after: avoid; }
.ps-sec h2::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 1.2mm; border-radius: .6mm; background: var(--ps-signal); }
.ps-sec h3 { font-size: 10pt; font-weight: 750; break-after: avoid; }
.ps-lead { font-size: 8.5pt; color: var(--ps-3); margin: -1.5mm 0 3mm !important; }
.ps-clean { padding: 4mm 5mm; border-radius: 3mm; background: #e4f4ec; color: #0f5637; }
.ps-tag { display: inline-block; padding: .5mm 2.2mm; border-radius: 3mm; font-size: 7.5pt; font-weight: 750; background: #e6e9ee; color: #454c58; white-space: nowrap; }
.ps-tag--ok { background: #d9eee2; color: #136844; }
.ps-tag--watch { background: #f6e8c4; color: #7a5200; }
.ps-tag--priority { background: #f8d8d6; color: #9e2228; }
.ps-band { font-size: 7.5pt; color: var(--ps-3); margin-left: 1.6mm; }

/* achados: um cartão com a foto para cada um */
.ps-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; align-items: start; }
.ps-card { border: .3mm solid var(--ps-rule); border-radius: 3.5mm; overflow: hidden; break-inside: avoid; background: #fff; }
.ps-card__shot { position: relative; background: #0b0d12; overflow: hidden; }
.ps-card__shot .shot { margin: 0; border-radius: 0; box-shadow: none; background: none; padding: 0; }
.ps-card__shot canvas { display: block; width: 100% !important; height: auto; }
.ps-card__n { position: absolute; left: 2.4mm; top: 2.4mm; width: 6.4mm; height: 6.4mm; border-radius: 50%; display: grid; place-items: center; font-size: 9pt; font-weight: 800; color: #fff; background: rgba(5, 7, 13, .8); box-shadow: inset 0 0 0 .35mm #fff; }
.ps-card--watch .ps-card__n { box-shadow: inset 0 0 0 .35mm #FFC24B; }
.ps-card--priority .ps-card__n { box-shadow: inset 0 0 0 .35mm #FF6B5E; }
.ps-card__body { padding: 3mm 3.4mm 3.6mm; display: grid; gap: 1.4mm; }
.ps-card__body h3 { font-size: 12pt; line-height: 1.08; font-stretch: 72%; font-weight: 800; }
.ps-card__body h3 small { font-size: 7.5pt; font-weight: 600; color: var(--ps-3); font-stretch: 100%; }
.ps-card__body p { font-size: 8.5pt; color: var(--ps-2); line-height: 1.35; }

/* o que fazer */
.ps-do { break-inside: avoid; }
.ps-do__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 6mm; align-items: start; }
.ps-do__grid h3 { margin-bottom: 2mm !important; color: var(--ps-2); font-size: 8.5pt; font-weight: 700; }
.ps-cues { list-style: none; padding: 0; display: grid; gap: 2mm; counter-reset: cue; }
.ps-cues li { counter-increment: cue; padding: 2.6mm 3.4mm; border-radius: 3mm; background: var(--ps-soft); display: grid; gap: .8mm; }
.ps-cues li.is-now { background: #e3f5fd; box-shadow: inset 0 0 0 .3mm #7fd0f2; }
.ps-cues li > b { font-size: 11pt; font-stretch: 76%; font-weight: 800; }
.ps-cues li > b::before { content: counter(cue) ". "; color: var(--ps-signal); }
.ps-cues li > span { font-size: 8pt; color: var(--ps-2); line-height: 1.35; }
.ps-cues li .ps-nums { justify-self: start; }
.ps-exs { list-style: none; padding: 0; display: grid; }
.ps-exs li { display: flex; justify-content: space-between; gap: 3mm; align-items: center; padding: 1.1mm 0; border-bottom: .2mm solid var(--ps-rule); font-size: 8.5pt; }
.ps-exs b { font-weight: 600; }
.ps-nums { display: inline-flex; gap: .8mm; flex: none; }
.ps-nums i { font-style: normal; width: 4.2mm; height: 4.2mm; border-radius: 50%; display: grid; place-items: center; font-size: 6.8pt; font-weight: 800; color: var(--ps-ink); box-shadow: inset 0 0 0 .25mm #9aa3b0; }
.ps-hint { font-size: 7.5pt; color: var(--ps-3); margin-top: 2mm !important; }

/* medidas: cartões com barra */
.ps-mets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; align-items: stretch; }
.ps-met { border: .3mm solid var(--ps-rule); border-top: 1mm solid #b7bec9; border-radius: 3mm; padding: 2.8mm 3mm 3mm; display: grid; gap: 1.2mm; align-content: start; break-inside: avoid; }
.ps-met--ok { border-top-color: #2bb673; }
.ps-met--watch { border-top-color: #e0a100; }
.ps-met--priority { border-top-color: #d9363c; }
.ps-met header { display: flex; justify-content: space-between; gap: 2mm; align-items: flex-start; }
.ps-met h3 { font-size: 8.8pt; line-height: 1.15; font-weight: 750; }
.ps-met__val b { font-size: 17pt; font-weight: 800; font-stretch: 72%; line-height: 1; }
.ps-met__val span { font-size: 7.5pt; color: var(--ps-3); }
.ps-met .pm__bar { margin: 1.6mm 0 .4mm; }
.ps-met__range { font-size: 7pt; color: var(--ps-3); font-weight: 600; }
.ps-met__text { font-size: 7.8pt; color: var(--ps-2); line-height: 1.32; }
.ps-chain { margin-top: 4mm !important; padding: 3mm 4mm; border-radius: 3mm; background: #fbf3dc; font-size: 8.5pt; color: #4d3a08; break-inside: avoid; }
.print-sheet .stridebar { margin: 0; break-inside: avoid; }
.ps-style { display: grid; grid-template-columns: repeat(auto-fit, minmax(30mm, 1fr)); gap: 3mm; }
.ps-style p { padding: 2.6mm 3mm; border-radius: 3mm; background: var(--ps-soft); font-size: 8pt; color: var(--ps-3); }
.ps-style span { display: block; font-size: 7.5pt; margin-bottom: .6mm; }
.ps-style b { font-size: 13pt; font-weight: 800; font-stretch: 72%; color: var(--ps-ink); }

/* plano */
.ps-primary { display: flex; justify-content: space-between; align-items: center; gap: 6mm; padding: 4.5mm 5mm; border-radius: 4mm; background: var(--ps-night); color: #EAF0FA; margin-bottom: 4mm; break-inside: avoid; }
.ps-primary__k { font-size: 7.5pt; font-weight: 700; color: #45D0FF; }
.ps-primary h3 { font-size: 16pt; font-stretch: 72%; font-weight: 800; margin: .6mm 0 1.2mm !important; }
.ps-primary p { font-size: 8pt; color: #B9C3D6; line-height: 1.35; }
.ps-cad { display: grid; grid-template-columns: auto auto auto auto auto; gap: 1mm 2.4mm; align-items: center; flex: none; }
.ps-cad p { padding: 1.6mm 3mm; border-radius: 2.4mm; background: rgba(148, 176, 232, .14); text-align: center; }
.ps-cad span { display: block; font-size: 6.8pt; color: #8A96AC; }
.ps-cad b { font-size: 15pt; font-weight: 800; font-stretch: 76%; color: #fff; }
.ps-cad i { font-style: normal; color: #5E6A80; }
.ps-cad small { grid-column: 1 / -1; text-align: center; font-size: 6.8pt; color: #8A96AC; }
.ps-alert { padding: 3mm 4mm; background: #f8d8d6; border-radius: 3mm; margin-bottom: 3mm !important; }
.ps-table { width: 100%; border-collapse: collapse; font-size: 7.8pt; }
.ps-table th { text-align: left; font-size: 7pt; font-weight: 700; color: var(--ps-3); padding: 1.5mm 2mm; border-bottom: .4mm solid var(--ps-ink); }
.ps-table td { padding: 2mm; vertical-align: top; border-bottom: .2mm solid var(--ps-rule); line-height: 1.32; }
.ps-table tr { break-inside: avoid; }
.ps-table tbody tr:nth-child(even) td { background: #f7f8fa; }
.ps-table small { display: block; font-size: 6.8pt; color: var(--ps-3); margin-top: .4mm; }
.ps-weeks td:nth-child(1) { width: 11%; }
.ps-weeks td:nth-child(2) { width: 25%; }
.ps-weeks td:nth-child(3), .ps-weeks td:nth-child(4) { width: 22%; }
.ps-wk { display: inline-grid; place-items: center; width: 6mm; height: 6mm; border-radius: 50%; background: var(--ps-night); color: #fff; font-size: 9pt; font-stretch: 80%; }
.ps-ex { display: block; color: var(--ps-2); }
.ps-ex + .ps-ex { margin-top: .9mm; }
.ps-ex b { color: var(--ps-ink); font-weight: 650; }
.ps-cap { padding: 2.6mm 4mm; border-radius: 3mm; background: #e3f5fd; font-size: 8.5pt; margin-bottom: 3mm !important; }
.ps-cap b { font-size: 12pt; font-stretch: 76%; }
.ps-rules { padding-left: 4.5mm; font-size: 8pt; display: grid; gap: 1.4mm; }
.ps-rules li { break-inside: avoid; }
.ps-rules span { color: var(--ps-2); }
.ps-foot { display: flex; justify-content: space-between; gap: 6mm; margin-top: 6mm; padding-top: 2mm; border-top: .2mm solid var(--ps-rule); font-size: 7pt; color: var(--ps-3); }
.ps-foot b { color: var(--ps-ink); font-stretch: 72%; font-size: 8.5pt; }
