:root{color-scheme:light;--ink:#1d2938;--muted:#526173;--line:#d9dfe7;--surface:#fff;--paper:#f4f6f8;--red:#990f22;--soft:#fff5f5;font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
.wrap{width:min(1120px,calc(100% - 2.5rem));margin-inline:auto}
.site-head{background:var(--surface);border-bottom:1px solid var(--line)}
.site-head nav{display:flex;justify-content:space-between;align-items:center;gap:1.2rem;padding-block:.9rem;flex-wrap:wrap}
.brand{display:inline-flex;align-items:center;gap:.55rem;font-weight:750;color:var(--ink);text-decoration:none}
a{color:var(--red);text-underline-offset:.18em}
.intro{padding-block:clamp(1.5rem,4vw,3.5rem) 1.5rem}
.intro h1{font-size:clamp(2rem,4.8vw,3.5rem);letter-spacing:-.04em;line-height:1.07;margin:.4rem 0 .85rem;max-width:24ch}
.intro p,.help,.form-head p{color:var(--muted);margin:0}
.intro .category{color:var(--red);font-weight:750}
form{display:grid;gap:1rem;scroll-margin-top:1rem}
.form-head,.actions,.rows-head,.preview-actions{display:flex;flex-wrap:wrap;gap:.7rem 1rem;align-items:center}
.form-head,.rows-head,.preview-actions{justify-content:space-between}
fieldset,.legal,#report{background:var(--surface);border:1px solid var(--line);border-radius:.7rem;padding:clamp(.9rem,2.4vw,1.55rem);margin:0;min-width:0}
legend{font-size:1.15rem;font-weight:740;padding-inline:.5rem}
.grid,.company-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem 1rem}
.span{grid-column:1/-1}
label{display:grid;align-content:start;gap:.35rem;font-size:.92rem;font-weight:650;min-width:0}
input,textarea,select,button{font:inherit}
label input,label select,label textarea{width:100%;min-width:0;min-height:44px;border-radius:.4rem;border:1px solid #9eaab8;padding:.48rem .58rem;background:#fff;color:var(--ink);font-weight:400;font-size:1rem}
textarea{resize:vertical}
button{padding:.55rem .75rem;min-height:44px;border:1px solid #9eaab8;background:#fff;color:var(--ink);border-radius:.45rem;font-weight:650;cursor:pointer}
button:hover{border-color:var(--red);color:var(--red)}
button.primary{border-color:var(--red);background:var(--red);color:#fff}
button.primary:hover{background:#790b1a}
:focus-visible{outline:3px solid #196db3;outline-offset:3px}
.rows-head{margin:.9rem 0 .45rem}
.rows-head h2{font-size:1.05rem;margin:0}
.rows{display:grid;gap:.55rem;margin-bottom:1rem}
.entry{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr) minmax(0,1.2fr) auto;gap:.65rem;align-items:end;background:var(--paper);padding:.68rem;border:1px solid var(--line);border-radius:.45rem}
.entry.recommendation{grid-template-columns:minmax(0,1fr) minmax(0,.55fr) auto}
.company-layout{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.qrs{display:flex;align-items:start;justify-content:center;gap:.45rem}
.qrs figure{width:7.15rem;margin:0;min-width:0;text-align:center}
.qrs img{display:block;width:100%;height:auto;image-rendering:pixelated}
.qrs figcaption{font-size:.78rem;line-height:1.2}
.help{font-size:.88rem;margin-block:.3rem}
.status:not(:empty),.notice{padding:.65rem .85rem;border-left:3px solid var(--red);background:var(--soft)}
.status:empty{display:none}
.legal{margin-block:1.65rem}
.legal summary{cursor:pointer;color:var(--ink);font-weight:700}
.legal p{margin:.65rem 0 0;font-size:.93rem}
#preview{margin:1.5rem 0 0;scroll-margin-top:1rem}
.preview-actions{margin-bottom:.75rem}
.preview-actions h2{margin:0;font-size:1.2rem}
#report{overflow-wrap:anywhere}
#report h2{font-size:1.5rem;line-height:1.2;margin:0 0 .65rem}
#report h3{font-size:1.02rem;margin:1.12rem 0 .35rem}
#report p{margin:.35rem 0;white-space:pre-wrap}
.report-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding-bottom:.8rem;border-bottom:1px solid var(--line)}
.report-head .firm{flex:1;min-width:0}
.report-scroll{overflow-x:auto}
#report table{width:100%;table-layout:fixed;border-collapse:collapse;margin:.45rem 0 .75rem}
#report th,#report td{border:1px solid #aeb8c5;text-align:left;vertical-align:top;padding:.32rem .45rem;white-space:pre-wrap}
#report th{background:#eef2f5}
.report-end{break-inside:avoid}
.signatures{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
.signatures p{margin-top:2.5rem!important;border-top:1px solid}
#report .report-delivery{margin-top:1rem}
@media (max-width:620px){
  .wrap{width:calc(100% - 1.4rem)}
  .grid,.company-layout,.entry,.entry.recommendation{grid-template-columns:minmax(0,1fr)}
  .entry button{justify-self:start}
  .company-layout .qrs{justify-content:flex-start}
  .report-head{flex-direction:column}
  .qrs figure{width:6.55rem}
}
@page{size:A4;margin:15mm}
@media print{
  :root,body{background:#fff;color:#000;font-size:10pt}
  .wrap{width:auto}
  .site-head,.intro,form,.legal,.preview-actions{display:none!important}
  #preview{margin:0}
  #report{border:0;border-radius:0;padding:0}
  #report h2{font-size:15pt}
  #report h3{font-size:11pt;break-after:avoid}
  .report-head{display:flex;flex-direction:row;break-inside:avoid}
  .qrs{gap:3mm}
  .qrs figure{width:26mm}
  .qrs figcaption{font-size:8pt}
  .report-scroll{overflow:visible}
  #report thead{display:table-header-group}
  #report tr{break-inside:avoid}
  .report-delivery a{color:inherit}
}

.company-layout .qrs{gap:12px;padding:12px;background:#f5f7f9;border:1px solid #dde4ea;border-radius:8px}.qrs img{object-fit:contain;background:white}.qrs figcaption{margin-top:7px;overflow-wrap:anywhere}.qrs figure{flex:none}@media(max-width:850px){.company-layout{grid-template-columns:1fr}.company-layout .qrs{justify-content:flex-start;flex-wrap:wrap}}
