.wrap{max-width:760px}
.big{border-radius:16px;color:#fff;padding:16px;text-align:center;margin:10px 0;background:#03539C}
.big h2{margin:0;font-size:34px;line-height:1.1}.big p{margin:6px 0 0}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{display:block;text-align:center;padding:18px 10px;border-radius:14px;border:2px solid var(--line);background:var(--surface);font:inherit;font-size:17px;font-weight:700;cursor:pointer;color:var(--ink)}
.tile .i{font-size:34px;display:block}.tile small{display:block;font-weight:400;color:var(--muted)}
.it{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.it .ar{display:block;color:var(--muted);font-size:13.5px}
.yn{display:flex;gap:6px}.yn button{font:inherit;font-weight:700;border:2px solid var(--line);background:var(--surface);border-radius:10px;padding:8px 12px;cursor:pointer;color:var(--ink)}
.yn .y.on{background:#1b8a3a;border-color:#1b8a3a;color:#fff}.yn .n.on{background:#b3261e;border-color:#b3261e;color:#fff}
.it.bad{background:#fdecea55}.it.miss{outline:2px solid #e53935;border-radius:8px}
label.f{display:block;font-size:13.5px;color:var(--muted);margin:8px 0}
label.f input,label.f select,label.f textarea{display:block;width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:9px;border-radius:8px;border:1px solid var(--line);background:var(--sunk);color:var(--ink);margin-top:3px}
label.f.bad input,label.f.bad textarea,label.f.bad select{border-color:#e53935;background:#fdecea}
.chips{display:flex;flex-wrap:wrap;gap:6px}.chips label{display:flex;gap:6px;align-items:center;border:1.5px solid var(--line);border-radius:10px;padding:7px 10px;font-size:14px;cursor:pointer;background:var(--surface)}
.chips.bad{outline:2px solid #e53935;border-radius:10px}
.err{background:#fdecea;color:#9b1c13;border-radius:10px;padding:12px;margin:10px 0}.ok{background:#e3f5e8;color:#1b6b34;border-radius:12px;padding:16px;text-align:center}
.small{font-size:13px;color:var(--muted)}
.res{border-radius:14px;color:#fff;text-align:center;padding:22px;font-size:30px;font-weight:800;margin:10px 0}
table.ra,table.lst{width:100%;border-collapse:collapse;font-size:13px}table.ra th,table.lst th{background:#03539C;color:#fff;text-align:start}table.ra td,table.ra th,table.lst td,table.lst th{border:1px solid #c9d2db;padding:5px 6px;vertical-align:top}
#printarea{display:none}
.page{width:210mm;min-height:297mm;box-sizing:border-box;padding:14mm;position:relative;page-break-after:always;font-family:'IBM Plex Sans','IBM Plex Sans Arabic',sans-serif;color:#0b2a4a;background:#fff}
.page::before{content:"";position:absolute;inset:6mm;border:1.2mm solid #03539C;outline:.5mm solid #EE7411;outline-offset:-2.5mm}
.lh{display:flex;align-items:center;gap:4mm;border-bottom:.8mm solid #EE7411;padding-bottom:3mm;margin-bottom:4mm}.lh img{height:16mm}.lh>div{display:flex;flex-direction:column;font-size:10pt}.lh .lht{margin-inline-start:auto;text-align:end}.lh .lht b{font-size:14pt;color:#03539C}
.page .kv{display:grid;grid-template-columns:55mm 1fr;gap:2mm 4mm;font-size:10pt;margin-bottom:4mm}.page .kv b{color:#5b6770}
.page h3{color:#03539C;font-size:11.5pt}.page table.ra{font-size:9pt}
.sig{display:flex;justify-content:space-between;margin-top:12mm;font-size:10pt}.lf{position:absolute;bottom:9mm;left:0;right:0;text-align:center;font-size:9pt;color:#03539C;font-weight:700}
@media print{
  @page{size:A4;margin:0}
  body.printing>*:not(#printarea){display:none!important}
  body.printing #printarea{display:block!important}
  /* every form is exactly one A4 page: fixed height, content kept inside the frame, no blank page after the last form */
  .page{height:297mm;min-height:0;max-height:297mm;overflow:hidden;padding:12mm 14mm;font-size:9pt;page-break-after:always;break-after:page}
  .page:last-child{page-break-after:auto;break-after:auto}
  .page .lh{margin-bottom:2.5mm;padding-bottom:2mm}
  .page .lh img{height:13mm}
  .page .kv{font-size:8.5pt;gap:1mm 3mm;margin-bottom:2.5mm;grid-template-columns:38mm 1fr}
  .page .kv span{overflow-wrap:anywhere;word-break:break-word}
  .page h3{font-size:10pt;margin:2.5mm 0 1mm}
  .page p{margin:1mm 0;font-size:8.5pt;line-height:1.3;overflow-wrap:anywhere}
  .page table.ra{font-size:8pt}
  .page table.ra td,.page table.ra th{padding:1mm 1.5mm;line-height:1.25}
  .sig{margin-top:5mm;font-size:8.5pt}
  .sig br{display:none}
  .lf{bottom:7mm;font-size:8pt}
}
@media(max-width:520px){.tiles{grid-template-columns:1fr 1fr}.res{font-size:24px}}

.plate{display:inline-flex;align-items:stretch;border:2px solid #111;border-radius:6px;background:#fff;color:#111;font-family:'IBM Plex Sans','IBM Plex Sans Arabic',sans-serif;overflow:hidden;vertical-align:middle;line-height:1.05;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.plate .pc{color:#fff;font-weight:800;font-size:18px;padding:4px 8px;display:flex;align-items:center}
.plate .pe{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2px 6px;border-inline:1px solid #111;font-size:9px}.plate .pe b{font-size:11px}
.plate .pn{font-weight:800;font-size:22px;letter-spacing:.06em;padding:3px 10px;display:flex;align-items:center}
.plate.big .pc{font-size:24px}.plate.big .pn{font-size:30px}.plate.big .pe{font-size:10px}.plate.big .pe b{font-size:13px}
