/* Spec sheet v2 — Letter portrait, 816 × 1056 px. Colors come from the brand. */
.sheet {
  --bg: #1c1c1e;
  --head: #111113;
  --band: #252528;
  --panel: #2a2a2d;
  --row1: #212124;
  --row2: #28282b;
  --line: #3a3a3e;
  --text: #b4b4b4;
  --label: #8c8c90;
  --strong: #ffffff;
  --k: 1;
  --fs: 15.5px;
  font-family: var(--font);
  color: var(--text);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.sheet.theme-light {
  --bg: #ffffff;
  --head: #f3f4f6;
  --band: #f7f8fa;
  --panel: #f4f5f7;
  --row1: #ffffff;
  --row2: #f6f7f9;
  --line: #e2e4e9;
  --text: #3d4148;
  --label: #6b7280;
  --strong: #111318;
}
/* Economical print version: white everywhere, thin lines, colour only for accents. */
.sheet.theme-print {
  --bg: #ffffff;
  --head: #ffffff;
  --band: #ffffff;
  --panel: #ffffff;
  --row1: #ffffff;
  --row2: #f7f7f8;
  --line: #d9d9de;
  --text: #3a3a3c;
  --label: #6e6e73;
  --strong: #1d1d1f;
}
.sheet.theme-print .sh-logo { border-color: #e5e5ea; }
.sheet.theme-print .sh-head { border-bottom-width: 1.5px; }
.sheet.theme-print .ps-spotlight .ps-frame { background: none; }
.sheet.theme-print .badge, .sheet.theme-print .p3-avail { background: #fff; }
.sheet * { box-sizing: border-box; }
.sheet .page {
  width: 816px; height: 1056px; background: var(--bg);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.sheet .pg-body { flex: 1; min-height: 0; padding: 20px 24px; display: flex; flex-direction: column; overflow: hidden; }

/* Header + band */
.sh-head {
  height: 100px; flex: none; background: var(--head); border-bottom: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px 0 34px; position: relative;
}
.sh-head-l { min-width: 0; flex: 1; }
.sh-model-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.sh-model-l { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--label); font-weight: 600; }
.sh-model { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--accent2); min-width: 40px; }
.sh-name { font-size: 30px; font-weight: 700; color: var(--strong); white-space: nowrap; overflow: hidden; line-height: 1.2; }
.sh-logo { width: 190px; height: 70px; flex: none; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; padding: 12px 16px; }
.sh-logo img { max-width: 100%; max-height: 46px; object-fit: contain; }
.draft-tag {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  background: #c0392b; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .14em; padding: 3px 10px; border-radius: 99px;
}
.sh-band {
  height: 52px; flex: none; background: var(--band); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px 0 34px;
}
.sh-cat { font-size: 14.5px; font-weight: 700; font-style: italic; color: var(--strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sheet:not(.mode-edit) .sh-chips.is-empty { visibility: hidden; }
.sh-chips { flex: none; max-width: 330px; padding: 6px 13px; border-radius: 6px; border: 1px solid var(--line); background: var(--head); font-size: 9.5px; white-space: nowrap; overflow: hidden; }
.sh-sub { flex: none; max-width: 320px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--accent); line-height: 1.25; }
.sh-certs { display: flex; gap: 6px; flex: none; }
.cert {
  height: 28px; min-width: 34px; padding: 0 8px; border-radius: 6px; border: 1.5px solid var(--strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--strong);
}
.cert-ip svg { width: 12px; height: 12px; stroke-width: 2.4; }

/* Footer */
.sh-foot {
  height: 34px; flex: none; background: var(--head); border-top: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; font-size: 9px; color: var(--label); white-space: nowrap;
}
.sh-foot i { font-style: normal; opacity: .5; margin: 0 6px; }
.sh-web { color: var(--accent); font-weight: 600; }
.sh-contact { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sh-meta { flex: none; }

/* Images */
.img-slot { display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.img-slot img { width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block; }
.ph-img { color: var(--label); font-size: 11px; text-align: center; border: 1.5px dashed var(--line); padding: 10px; }

/* Page 1 — photo styles */
.p1-hero { display: flex; gap: 20px; height: var(--ph, 372px); flex: none; }
.p1-photo { width: var(--ph); height: var(--ph); flex: none; display: grid; place-items: center; position: relative; }
.ps-frame { position: absolute; inset: 0; }
.p1-photo .img-slot.round { position: absolute; inset: 0; padding: 0; }
.p1-photo .img-slot.round img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: var(--pp, 12%); }
.ps-ring .ps-frame { border-radius: 50%; border: 3px solid var(--accent); background: var(--accent2); }
.ps-ring .img-slot.round { inset: 13px; border-radius: 50%; background: var(--bg); --pp: 15%; }
.ps-spotlight .ps-frame {
  border-radius: 28px;
  background: radial-gradient(60% 55% at 50% 42%, color-mix(in srgb, var(--accent2) 30%, transparent), transparent 72%);
}
.ps-spotlight .ps-frame::after {
  content: ''; position: absolute; left: 22%; right: 22%; bottom: 7%; height: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); filter: blur(2px);
}
.ps-spotlight .img-slot.round { z-index: 1; --pp: 8% 12% 13%; }
.ps-spotlight .img-slot img { filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.ps-card .ps-frame { border-radius: 30px; background: linear-gradient(180deg, #fbfbfd, #e9e9ee); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; }
.ps-card .img-slot.round { --pp: 11%; }
.ps-card .img-slot img { filter: drop-shadow(0 14px 18px rgba(0,0,0,.18)); }
.ps-card .ph-img, .ps-spotlight .ph-img { border-radius: 24px; }
.p1-figs { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 11px; min-width: 0; }
.fig { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px; text-align: center; min-width: 0; }
.fig-ic { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; color: var(--accent); margin-bottom: 3px; flex: none; }
.fig-ic svg { width: 17px; height: 17px; stroke-width: 2; }
.fig-v { font-size: 16.5px; font-weight: 700; color: var(--accent); line-height: 1.15; max-width: 100%; }
.fig-l { font-size: 10.5px; color: var(--text); line-height: 1.25; max-width: 100%; }

.p1-info { flex: 1; min-height: 0; margin-top: 18px; overflow: hidden; background: var(--panel); border-top: 1.5px solid var(--accent); padding: 18px 24px; display: flex; gap: 26px; font-size: var(--fs); }
.p1-info .hl { flex: 0 0 44%; min-width: 0; }
.p1-info .ov { flex: 1; min-width: 0; }
.info-h { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hl ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55em; }
.hl li { position: relative; padding-left: 1.2em; line-height: 1.38; color: var(--strong); font-size: .92em; }
.hl li::before { content: ''; position: absolute; left: 0; top: .5em; width: .45em; height: .45em; border-radius: 50%; background: var(--accent); }
.p1-desc-t { line-height: 1.5; color: var(--text); white-space: pre-wrap; font-size: .92em; }
.p1-info:not(.two) .p1-desc-t { font-size: 1.05em; }
.p1-badges { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 10px; margin-top: 16px; flex: none; }
.badge { height: 46px; border: 1.5px solid var(--accent); border-radius: 10px; background: var(--head); display: grid; place-items: center; text-align: center; padding: 0 8px; font-size: 11px; font-weight: 700; color: var(--strong); line-height: 1.2; }

/* Short format (1 page) */
.p1-short .p1-hero { height: 290px; }
.p1-short .p1-figs { gap: 8px; }
.p1-short .fig { border-radius: 14px; gap: 2px; padding: 4px 6px; }
.p1-short .fig-ic { width: 26px; height: 26px; margin-bottom: 1px; }
.p1-short .fig-ic svg { width: 13px; height: 13px; }
.p1-short .fig-v { font-size: 14px; }
.p1-short .fig-l { font-size: 9.5px; }
.p1-short .p1-info { flex: none; max-height: 190px; margin-top: 14px; padding: 14px 20px; }
.p1-short .spec-area { margin-top: 12px; }
.p1-short .p1-badges { margin-top: 12px; }
.p1-short .badge { height: 38px; }
.end-compact { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.end-compact .p3-avail { padding: 7px 18px; font-size: 10.5px; flex: none; }
.end-compact .p3-legal { text-align: right; }

/* Variants */
.variants { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 6px; padding: 0 12px; }
.var-h { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-right: 4px; }
.var { display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); font-size: 10.5px; }
.var-ref { color: var(--strong); font-weight: 700; }
.var-l { color: var(--text); }

/* Specs */
.sheet .p2 .pg-body { padding: 8px 12px 14px; }
.spec-area { flex: 1; min-height: 0; overflow: hidden; }
.spec-area.cols2 { display: flex; }
.spec-col { flex: 1; min-width: 0; overflow: hidden; padding: 0 12px; }
.spec-col:first-child { border-right: 1px solid var(--line); }
.spec-area.multi { padding: 0 12px; }
.sec { margin-top: calc(14px * var(--k)); }
.sec-h { background: var(--head); border-left: 4px solid var(--accent); padding: calc(8px * var(--k)) 14px; font-size: calc(11px * var(--k)); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.row { display: flex; align-items: center; gap: 12px; min-height: calc(30px * var(--k)); padding: calc(5px * var(--k)) 14px; border-bottom: 1px solid var(--line); font-size: calc(10.5px * var(--k)); line-height: 1.3; }
.row:nth-child(even) { background: var(--row1); }
.row:nth-child(odd) { background: var(--row2); }
.row-l { width: 42%; flex: none; color: var(--label); font-weight: 700; }
.row-v { flex: 1; min-width: 0; color: var(--strong); white-space: pre-line; }
.multi .row-l { width: 30%; }
.multi .row-v { flex: 1 1 0; }
.row-head { background: var(--head) !important; border-bottom: 2px solid var(--accent); min-height: 34px; }
.row-head .row-v { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; }

/* Blocks (page 3+) */
.blk { flex: none; display: flex; flex-direction: column; }
.blk + .blk { margin-top: 18px; }
.blk-h { margin: 0 0 11px; padding-bottom: 7px; border-bottom: 1px solid var(--accent); font-size: 13.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); flex: none; }
.blk-img { flex: 1 1 260px; min-height: 230px; }
.blk-box { flex: 1; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 16px 22px 12px; display: flex; flex-direction: column; gap: 10px; }
.blk-box .dim-img { flex: 1; min-height: 0; border-radius: 12px; }
.blk-box.light { background: #ffffff; border-color: #e5e5ea; }
.blk-box.light .blk-cap { color: #6e6e73; }
.blk-cap { flex: none; text-align: center; font-size: 10.5px; color: var(--label); }
.box-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.box-it { display: flex; align-items: baseline; gap: 6px; padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 11px; color: var(--strong); }
.box-q { font-weight: 800; color: var(--accent); }
.box-x { color: var(--label); }
.ftable { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.ftable th { background: var(--head); color: var(--accent); text-align: left; padding: 7px 10px; font-weight: 700; border-bottom: 2px solid var(--accent); }
.ftable td { padding: 6px 10px; border-bottom: 1px solid var(--line); color: var(--strong); }
.ftable tbody tr:nth-child(odd) td { background: var(--row2); }
.acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.acc { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.acc-img { height: 128px; border-radius: 8px; background: var(--head); margin-bottom: 6px; padding: 8px; }
.acc-n { font-size: 11.5px; font-weight: 700; color: var(--accent); }
.acc-d { font-size: 9.5px; color: var(--text); line-height: 1.4; }
.blk-end { margin-top: auto !important; padding-top: 16px; align-items: center; gap: 12px; }
.p3-avail { padding: 10px 32px; border: 1.5px solid var(--accent); border-radius: 10px; background: var(--head); font-size: 12px; font-weight: 700; color: var(--strong); }
.p3-apps { display: flex; gap: 70px; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-box { width: 88px; height: 88px; background: #fff; border-radius: 8px; padding: 8px; display: grid; place-items: center; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-box.ph-img { background: var(--panel); font-size: 8px; line-height: 1.3; padding: 6px; }
.qr-l { padding: 5px 16px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); font-size: 10px; font-weight: 600; color: var(--strong); }
.p3-legal { font-size: 8.5px; color: var(--label); text-align: center; }

/* Annex (draft) */
.annex .pg-body { gap: 10px; }
.ann-it { flex: none; display: flex; gap: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.ann-n { width: 24px; height: 24px; flex: none; border-radius: 50%; background: #f5c518; color: #1c1c1e; font-weight: 800; font-size: 11px; display: grid; place-items: center; }
.ann-b { min-width: 0; font-size: 10.5px; line-height: 1.45; }
.ann-t { display: flex; gap: 8px; align-items: center; color: var(--strong); margin-bottom: 3px; }
.ann-type { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 99px; background: var(--head); }
.t-conflict { color: #ff8a7a; } .t-check { color: #ffd166; } .t-missing { color: #8ecbff; } .t-fixed { color: #8be3a6; }
.ann-vals { margin: 4px 0; padding-left: 16px; color: var(--strong); }
.ann-vals em { color: var(--label); font-style: normal; }
.ann-dec { color: var(--label); }
.ann-dec b { color: var(--strong); }
.ann-list { flex: none; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; font-size: 10px; line-height: 1.55; }
.ann-list h4 { margin: 0 0 4px; font-size: 10.5px; color: var(--accent); }
.ann-list p { margin: 0; }

/* Placeholders, markers, editing */
.sheet .is-empty::before { content: attr(data-ph); color: var(--label); opacity: .55; font-style: italic; font-weight: 400; }
.sheet .is-untr::before { color: #e0a84a; opacity: .9; }
.sheet.mode-edit .is-untr::after { content: 'FR'; margin-left: 5px; font-size: 7.5px; font-weight: 800; font-style: normal; color: #1c1c1e; background: #e0a84a; border-radius: 3px; padding: 1px 3px; vertical-align: 2px; }
.sheet.mode-draft .is-empty::before { background: #f5c518; color: #1c1c1e; opacity: 1; font-style: normal; font-weight: 700; padding: 0 5px; border-radius: 3px; font-size: .9em; }
.sheet.mode-draft .ph-img { border-color: #f5c518; color: #f5c518; font-weight: 700; }
.sheet .has-mk::after { content: attr(data-mk); display: inline-grid; place-items: center; min-width: 15px; height: 15px; padding: 0 3px; margin-left: 5px; border-radius: 99px; background: #f5c518; color: #1c1c1e; font-size: 8.5px; font-weight: 800; font-style: normal; letter-spacing: 0; vertical-align: 2px; text-transform: none; }
.sheet .img-slot.has-mk::after, .sheet .sh-certs.has-mk::after { position: absolute; top: 8px; right: 8px; margin: 0; }
.sheet .sh-certs { position: relative; padding-right: 0; }
.sheet .sh-certs.has-mk { padding-right: 24px; }
.sheet .sh-certs.has-mk::after { top: 6px; right: 0; }
.sheet .is-untr.has-mk::after { content: attr(data-mk); }
.sheet [contenteditable] { outline: none; border-radius: 3px; cursor: text; }
.sheet [contenteditable]:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.sheet [contenteditable]:focus { box-shadow: 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sheet [data-img-path] { cursor: pointer; }
.sheet [data-img-path]:hover > img { opacity: .85; }
.sheet .mk-flash { animation: mkflash 1.2s ease 2; }
@keyframes mkflash { 50% { box-shadow: 0 0 0 3px #f5c518; } }

@media print {
  .sheet.mode-final .is-empty::before { content: none; }
  .sheet.mode-final .ph-img, .sheet .ph-txt { visibility: hidden; }
  .sheet .screen-only { display: none; }
}
