/* Variant C (Cos 16.11) for the Epub engine: loaded after after-family-newtools-b-epub.css, only by «New Tool Epub C.dc.html».
   Every rule is scoped to one tool, so the other tools on this engine look exactly as in B. */

/* ===== ITER «#15 EPUB to PDF · C · 16.11» — rollback = delete down to END ===== */
/* the real file picker is never seen */
.nt-page .ec-fin{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}

/* checking the book in the browser: a small spinner in the file row */
.nt-page .ec-chk{display:inline-flex;align-items:center;gap:7px}
.nt-page .ec-chk i{flex:none;width:11px;height:11px;border:2px solid color-mix(in srgb,var(--green) 30%,transparent);border-top-color:var(--green);border-radius:50%;animation:ec-spin .8s linear infinite}
@keyframes ec-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){ .nt-page .ec-chk i{animation-duration:2.4s} }

/* settings: one row Font size · Margins · Include, every control 43 px (C-PRINCIPLES 3: one height for fields and segments) */
.nt-page .eb-row{gap:16px 22px;align-items:flex-start}
.nt-page .eb-row .eb-step,.nt-page .eb-row .eb-segs{display:flex;width:max-content;max-width:100%}
.nt-page .eb-step{height:43px;padding:4px}
.nt-page .eb-sbtn{width:33px;height:33px}
.nt-page .eb-chip{height:43px;padding:0 15px}
/* Margins: the GO segmented contrast (track a step darker, chosen side white + ink + a thin ring), as Printable B / Resume B */
.nt-page .eb-segs{height:43px;padding:3px;border-radius:12px;background:color-mix(in srgb,var(--line) 55%,var(--surface2));border-color:color-mix(in srgb,var(--line) 70%,var(--muted))}
.nt-page .eb-seg{height:auto;border-radius:9px;color:color-mix(in srgb,var(--ink) 70%,var(--muted))}
.nt-page .eb-seg:hover:not(.on){color:var(--ink)}
.nt-page .eb-seg.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(25,30,26,.16),0 0 0 1px rgba(25,30,26,.06)}
:root[data-theme="dark"] .nt-page .eb-segs{background:color-mix(in srgb,var(--line) 70%,var(--surface));border-color:color-mix(in srgb,var(--line) 80%,var(--muted))}
:root[data-theme="dark"] .nt-page .eb-seg.on{background:color-mix(in srgb,var(--ink) 20%,var(--surface));color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.4)}
.nt-page .eb-livecap .ec-bmline{font-size:12.5px}
.nt-page .ec-short{display:none}

/* the book's own cover on page 1 */
.nt-page .ep-cover.ec-cimg{position:static;margin:0;padding:0;background:none}
.nt-page .ep-cover.ec-cimg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.nt-page .ep-pg:has(.ec-cimg) > span{z-index:1;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.5)}

/* a long book: the bookmark list scrolls inside its box */
.nt-page .eb-bm{max-height:300px;overflow:auto;overscroll-behavior:contain}

@media(max-width:600px){
  /* phone: the four «Made for» cards in a compact 2 × 2, page shape beside the name (half the height of B) */
  .nt-page .eb-size{display:grid;grid-template-columns:26px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:10px 10px 10px 12px}
  .nt-page .eb-size .eb-shape{grid-row:1 / span 2;height:36px;margin:0;width:26px;justify-content:center;align-items:center}
  .nt-page .eb-shape i{height:auto !important;width:22px}
  .nt-page .eb-size b{grid-column:2;align-self:end;line-height:1.2}
  .nt-page .eb-size .eb-use{grid-column:2;align-self:start;line-height:1.3}
  .nt-page .eb-use2{display:none}
  .nt-page .eb-row{flex-direction:row;gap:14px}
  .nt-page .eb-row > .eb-field:nth-child(2){flex:1 1 0;min-width:170px}
  .nt-page .eb-row > .eb-field:nth-child(2) .eb-segs{width:100%}
  .nt-page .eb-size b,.nt-page .eb-size .eb-use{white-space:nowrap}
  .nt-page .eb-row > .eb-field:nth-child(3){flex:1 1 100%}
}
@media(max-width:360px){
  .nt-page .eb-sizes{gap:8px}
  .nt-page .eb-size{column-gap:8px;padding:9px 8px 9px 10px;grid-template-columns:22px minmax(0,1fr)}
  .nt-page .eb-size .eb-shape{width:22px}
  .nt-page .eb-shape i{width:19px}
  .nt-page .eb-size b{font-size:14.5px}
  .nt-page .ec-long{display:none}
  .nt-page .ec-short{display:inline}
}
/* ===== END ===== */

/* ===== C · 17.11 · Cos's GLOBAL rules G1–G6 (batch-2 review, «сквозная правка всех FIX»), #15 (the only tool on this C page).
   No text counters, «+ Add», ↑ ↓ or bare × here (font size ± and the file × are drawn in framed buttons already). G3 = the Wheel
   rule 1:1 (#11 / #02 stand-alone links): Next · Compress PDF · Merge PDF get the plate on hover, darker pressed, a focus ring.
   Rollback = delete down to «END C 17.11». ===== */
.nt-page .eb-next a{display:inline-flex;align-items:center;padding:5px 9px;margin:-5px -9px;border-radius:8px;text-decoration:none;color:var(--green-deep);transition:background-color .15s}
.nt-page .eb-next a:hover{background:var(--green-tint);text-decoration:none}
.nt-page .eb-next a:active{background:var(--green-tint);filter:brightness(.94);transition:none}
.nt-page .eb-next{column-gap:18px}
.nt-page .eb-next a:focus-visible{outline:2px solid var(--green-deep);outline-offset:1px}
:root[data-theme="dark"] .nt-page .eb-next a{color:var(--green)}
/* ===== END C 17.11 ===== */

/* ===== ITER Cos 18.11 b4-5 own pass · #15 EPUB to PDF — the batch-2/3 answers applied without Cos's notes.
   Rollback = delete down to END. ===== */
/* T1 hierarchy · Made for / Font size / Margins / Include / Bookmarks / Compatibility report: real labels (were mono 11 px caps
   over 15 px text); settings labels 15 px, the result boxes' titles 16 px (the #34 / #51 fix) */
.nt-page .eb-cap{margin-bottom:10px;font:600 15px var(--font-body);letter-spacing:0;text-transform:none;color:var(--ink)}
.nt-page .eb-box .eb-cap{margin-bottom:8px;font-size:16px}
.nt-page .eb-sizes{margin-top:-6px}
/* T2 + T1 · the settings sit on one light form plate (Resume B section look: surface2, 1.5 px line, 16 px corners) beside the
   preview desk; the size cards and fields inside stay white; Convert closes the plate under a solid hairline (#28 run row) */
.nt-page .eb-set{padding:18px 20px 20px;border:1.5px solid var(--line);border-radius:16px;background:var(--surface2);gap:18px}
.nt-page .eb-run{margin:0 -20px;padding:16px 20px 0;border-top:1px solid var(--line)}
:root[data-theme="dark"] .nt-page .eb-set{background:color-mix(in srgb,var(--ink) 7%,var(--surface))}
:root[data-theme="dark"] .nt-page .eb-run{border-color:color-mix(in srgb,var(--ink) 14%,var(--surface))}
/* T8 · the preview desk takes the plate's height and keeps the page in its middle, so a paper-size click no longer makes it jump */
@media(min-width:901px){
  .nt-page .eb-grid{align-items:stretch}
  .nt-page .eb-live{justify-content:center}
}
/* T2 · Bookmarks and the compatibility report: light blocks instead of white on white */
.nt-page .eb-box{background:var(--surface2)}
:root[data-theme="dark"] .nt-page .eb-box{background:color-mix(in srgb,var(--ink) 7%,var(--surface))}
@media(max-width:600px){
  .nt-page .eb-set{padding:14px 14px 16px;gap:16px}
  .nt-page .eb-run{margin:0 -14px;padding:14px 14px 0}
}
/* ===== END Cos 18.11 b4-5 ===== */

/* ===== ITER Cos 19.11 batch 4 notes · #15 EPUB to PDF. Rollback = delete down to END. ===== */
/* asesl53z «фонсайз можно на всю ширину»: when the settings stack (phone), Font size spans the plate like Margins under it,
   − and + at the ends, the value in the middle; Include: Cover | Contents page = one pair of equal halves */
@media(max-width:600px){
  .nt-page .eb-row > .eb-field{flex:1 1 100%;min-width:0}
  .nt-page .eb-row .eb-step{width:100%;justify-content:space-between}
  .nt-page .eb-row .eb-sval{flex:1;text-align:center}
  .nt-page .eb-row .eb-chips{flex-wrap:nowrap}
  .nt-page .eb-row .eb-chip{flex:1 1 0;justify-content:center;min-width:0;padding:0 10px;white-space:nowrap}
  .nt-page .eb-row .ec-long{display:none}
  .nt-page .eb-row .ec-short{display:inline}
}
/* ih304gmg tablet: no stray wrap of the done footer. Two clear sides: left = what happened + Next links (two lines),
   right = the two buttons in one row, centred on the left block; Bookmarks | Compatibility side by side (equal halves,
   same height) instead of two long bars; «First 3 pages» caption centred under the strip, as on desktop */
@media(min-width:601px) and (max-width:1023px){
  .nt-page .eb-foot{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:8px 20px}
  .nt-page .eb-foot .eb-gone{grid-column:1;grid-row:1}
  .nt-page .eb-foot .eb-next{grid-column:1;grid-row:2}
  .nt-page .eb-foot .eb-again{grid-column:2;grid-row:1 / span 2;margin-left:0;flex-wrap:nowrap}
}
@media(min-width:601px) and (max-width:900px){
  .nt-page .eb-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  .nt-page .eb-pages .eb-livecap{align-items:center;text-align:center}
}
/* ===== END Cos 19.11 batch 4 notes ===== */

/* ===== GO checks 19.11 (batch 4-5, no GO status) · #15 — copy before: scratchpad go-b45/epub/pre/. Rollback = delete down to END. =====
   phones: a long book title takes two lines in the file row instead of «The Lighthouse Keepe…» (was cut at 390 / 320) */
@media(max-width:600px){
  .nt-page .eb-fname b{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-height:1.3}
}
/* ≤420: the EPUB file icon steps aside, so the title and the file line get the row (the meta ran six lines at 320) */
@media(max-width:420px){
  .nt-page .eb-file > .cp-file-ic{display:none}
}
/* the page previews end in a soft fade, not on a half-cut line of text (seen at 390 on the live page); cover pages keep their art */
.nt-page .ep-pgb:not(:has(.ep-cover)){-webkit-mask-image:linear-gradient(#000 calc(100% - 1.6em),transparent);mask-image:linear-gradient(#000 calc(100% - 1.6em),transparent)}
/* ===== END GO checks 19.11 · #15 ===== */

/* ===== ITER Cos 19.11 · #15 Font size stepper = the #24 stepper 1:1 (− and + on their own plates, visible in dark). Rollback = delete to END. */
.nt-page .eb-step{height:43px;padding:3px;gap:0;border-radius:12px;background:var(--surface)}
.nt-page .eb-sbtn{width:34px;height:auto;align-self:stretch;border-radius:8px;background:color-mix(in srgb,var(--line) 45%,var(--surface));color:var(--ink)}
.nt-page .eb-sbtn:hover:not(:disabled){background:color-mix(in srgb,var(--line) 85%,var(--surface))}
.nt-page .eb-sbtn:active:not(:disabled){transform:scale(.96)}
.nt-page .eb-sbtn:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.nt-page .eb-sbtn:disabled{opacity:.4}
.nt-page .eb-sval{min-width:64px;font:600 16px var(--font-body)}
:root[data-theme="dark"] .nt-page .eb-sbtn{background:color-mix(in srgb,var(--ink) 10%,var(--surface))}
:root[data-theme="dark"] .nt-page .eb-sbtn:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 18%,var(--surface))}
/* ===== END ITER #15 stepper ===== */
