@page { size: A4; margin: 14mm; }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: #eceff3;
    color: #1f2933;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11pt;
    line-height: 1.42;
  }
  .page {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto 10mm auto;
    padding: 16mm 18mm;
    background: #fff;
    box-shadow: 0 2mm 8mm rgba(0,0,0,.12);
    position: relative;
    page-break-after: always;
  }
  .cover {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
  }
  .brand { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 40pt; font-weight: 700; letter-spacing: -2pt; margin: 0; color:#000; }
  .brand .two { color: #ff6a00; }
  .subtitle { margin: 4mm 0 8mm 0; font-size: 20pt; color: #666; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: 700; }
  .cover-image {
    width: 132mm;
    max-height: 132mm;
    object-fit: contain;
    margin: 8mm auto;
    display: block;
  }
  .cover-footer { font-size: 18pt; font-weight: 700; margin-bottom: 10mm; }
  header.top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12mm;
    border-bottom: 1px solid #c7d2df;
    padding-bottom: 4mm;
    margin-bottom: 7mm;
  }
  .small-brand { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 28pt; font-weight: 700; letter-spacing: -1.4pt; margin: 0; line-height: .95; color:#000; }
  .small-brand .two { color: #ff6a00; }
  .doc-title { text-align: right; color: #56616f; font-size: 10pt; }
  h1 {
    margin: 0 0 4mm 0;
    color: #365f91;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 18pt;
    line-height: 1.15;
    page-break-after: avoid;
  }
  h2 {
    margin: 6mm 0 2mm 0;
    color: #4f81bd;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 13pt;
    line-height: 1.2;
    page-break-after: avoid;
  }
  p { margin: 0 0 3mm 0; }
  .lead { font-size: 12pt; color: #44505f; }
  .section { margin-bottom: 7mm; }
  .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7mm;
    align-items: start;
  }
  .card {
    border: 1px solid #d6dee8;
    border-radius: 3mm;
    padding: 4mm;
    background: #fbfcfe;
    break-inside: avoid;
  }
  .card h2 { margin-top: 0; }
  .steps {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .steps > li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 9mm 1fr;
    gap: 3mm;
    margin: 0 0 4mm 0;
    break-inside: avoid;
  }
  .steps > li::before {
    content: counter(step);
    width: 7mm;
    height: 7mm;
    border-radius: 50%;
    background: #365f91;
    color: #fff;
    text-align: center;
    line-height: 7mm;
    font-weight: 700;
    font-size: 9pt;
    margin-top: .5mm;
  }
  .steps strong { display: block; color: #111827; margin-bottom: 1mm; }
  ul.clean, ol.clean { margin: 1mm 0 0 5mm; padding-left: 4mm; }
  ul.clean li, ol.clean li { margin-bottom: 2mm; }
  .note {
    border-left: 4px solid #ff6a00;
    background: #fff7ed;
    padding: 3mm 4mm;
    margin: 5mm 0;
    break-inside: avoid;
  }
  .warning {
    border-left: 4px solid #c00000;
    background: #fff1f1;
    padding: 3mm 4mm;
    margin: 5mm 0;
    color: #6b0000;
    font-weight: 700;
    break-inside: avoid;
  }
  .image-row {
    display: flex;
    gap: 6mm;
    align-items: flex-start;
    margin: 4mm 0;
  }
  .manual-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #d6dee8;
    border-radius: 2mm;
    background: #fff;
  }
  .phone-img { width: 50mm; }
  .qr-img { width: 32mm; }
  code { font-family: Consolas, 'Liberation Mono', monospace; background: #eef2f7; padding: .3mm 1mm; border-radius: 1mm; }
  a { color: #0645ad; }
  .footer {
    position: absolute;
    left: 18mm;
    right: 18mm;
    bottom: 9mm;
    border-top: 1px solid #d6dee8;
    padding-top: 2mm;
    font-size: 8pt;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    gap: 8mm;
  }
  .page:last-child { page-break-after: auto; }
  @media print {
    body { background: #fff; }
    .page { box-shadow: none; margin: 0; width: auto; min-height: 269mm; }
  }

/* Semantic replacements for former inline styles */
.setup-context { font-size: 11pt; font-weight: 400; color: #56616f; }
.section-spaced { margin-top: 8mm; }
.note-finish { margin-top: 10mm; }

/* Screen responsiveness: preserve A4-style layout on desktop, fit naturally on tablets/phones. */
@media screen and (max-width: 900px) {
  body { font-size: 10.5pt; }
  .page {
    width: calc(100% - 24px);
    min-height: 0;
    margin: 12px auto;
    padding: 28px 30px 64px;
  }
  .cover-image { width: min(132mm, 85vw); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer { left: 30px; right: 30px; bottom: 20px; }
}

@media screen and (max-width: 600px) {
  body { font-size: 10pt; line-height: 1.45; }
  .page { width: 100%; margin: 0 0 12px; padding: 22px 18px 70px; border-radius: 0; }
  .cover { min-height: 100vh; }
  .brand { font-size: clamp(30pt, 15vw, 40pt); }
  .subtitle { font-size: clamp(16pt, 7vw, 20pt); }
  header.top { align-items: flex-start; gap: 12px; flex-direction: column; }
  .small-brand { font-size: 24pt; }
  .doc-title { text-align: left; }
  h1 { font-size: 16pt; }
  h2 { font-size: 12pt; }
  .image-row { flex-direction: column; }
  .phone-img { width: min(100%, 70vw); }
  .qr-img { width: min(32mm, 35vw); }
  .steps > li { grid-template-columns: 8mm 1fr; gap: 3mm; }
  .footer { left: 18px; right: 18px; flex-wrap: wrap; }
}

