/* Free PDF tools — zencyscan.com/tools/ (loaded after /styles.css) */
.tool-head { background: radial-gradient(900px 360px at 85% -10%, #E4DCFF 0%, rgba(228,220,255,0) 70%), var(--lavender); border-bottom: 1px solid var(--line); padding: 48px 0 120px; }
.tool-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: .3em; }
.tool-head .lead { margin-bottom: 0; }
.tool-head .crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.tool-head .crumbs a { color: var(--muted); text-decoration: none; }
.tool-head .crumbs span { margin: 0 6px; }
.tool-wrap { max-width: 820px; margin: -96px auto 0; padding: 0 24px; position: relative; }
.tz { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-card); padding: 24px; }
.tz-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; border: 2px dashed #D6CFF8; border-radius: 18px; padding: 36px 20px; background: #FBFAFF; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.tz-drop.is-over, .tz-slot.is-over { background: var(--violet-soft); border-color: var(--violet); }
.tz-drop .btn { pointer-events: none; }
.tz-drop small { color: var(--muted); }
.tz-input, .tz-slot input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tz-drop:focus-within, .tz-slot:focus-within { outline: 3px solid rgba(108,76,245,.35); outline-offset: 2px; }
.tz-private { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--green); font-size: .9rem; font-weight: 600; margin: 14px 0 0; }
.tz-private svg { width: 18px; height: 18px; flex: none; }
.tz-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.tz-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tz-item.is-error { border-color: #F3C2D6; background: var(--pink-soft); }
.tz-item.is-error small { color: var(--pink); }
.tz-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--lavender); }
.tz-pdf { display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--pink); background: var(--pink-soft); letter-spacing: .04em; }
.tz-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tz-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-name small { color: var(--muted); font-size: .82rem; }
.tz-ico { width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 1rem; cursor: pointer; }
.tz-ico:hover:not(:disabled) { border-color: var(--violet); color: var(--violet); }
.tz-ico:disabled { opacity: .35; cursor: default; }
.tz-options { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 20px 0 0; padding: 0; border: 0; }
.tz-options fieldset { border: 0; margin: 0; padding: 0; }
.tz-options legend { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tz-seg { display: inline-flex; background: var(--lavender); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.tz-seg label { position: relative; }
.tz-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tz-seg span { display: block; padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.tz-seg input:checked + span { background: #fff; color: var(--violet); box-shadow: 0 1px 4px rgba(21,18,58,.12); }
.tz-seg input:focus-visible + span { outline: 2px solid var(--violet); }
.tz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.tz-run:disabled { background: #C9BEF7; box-shadow: none; cursor: not-allowed; transform: none; }
.tz-run.is-busy { cursor: progress; }
.tz-clear { background: none; border: 0; color: var(--muted); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tz-status { margin: 12px 0 0; min-height: 1.2em; font-size: .92rem; color: var(--muted); }
.tz-status.warn { color: var(--amber); }
.tz-status.error { color: var(--pink); }
.tz-result { margin-top: 18px; padding: 18px; border-radius: 18px; background: var(--green-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tz-result[hidden] { display: none; }
.tz-done { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.tz-done strong { color: var(--green); }
.tz-done span { color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.tz-hint { width: 100%; margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.tz-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.tz-tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink-2); font-size: .75rem; }
.tz-tile img { border-radius: 8px; border: 1px solid var(--line); background: #fff; aspect-ratio: 3 / 4; object-fit: contain; width: 100%; }
.tz-tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .tz-slots { grid-template-columns: 1fr; } }
.tz-slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 190px; padding: 16px; border: 2px dashed #D6CFF8; border-radius: 18px; background: #FBFAFF; cursor: pointer; text-align: center; }
.tz-slot b { font-size: 1rem; }
.tz-slot small { color: var(--muted); }
.tz-slot-img img { max-height: 130px; border-radius: 10px; box-shadow: 0 6px 18px -8px rgba(21,18,58,.35); }
.tz-slot.has-img { border-style: solid; border-color: var(--line); background: #fff; }
.tz-slot.has-img .tz-slot-empty { display: none; }
.tool-body { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.tool-body h2 { font-size: 1.55rem; margin-top: 1.8em; }
.tool-body p, .tool-body li { color: var(--ink-2); font-size: 1.04rem; }
.tool-body ol.how { padding-left: 1.3em; }
.tool-body ol.how li { margin-bottom: .5em; }
.tool-app { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.tool-app .phone { width: 150px; }
@media (max-width: 600px) { .tool-app { grid-template-columns: 1fr; } .tool-app .phone { display: none; } }
.tool-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .tool-cards { grid-template-columns: 1fr; } }
.tool-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.tool-card:hover { color: var(--ink); border-color: #D6CFF8; box-shadow: var(--shadow-card); transform: translateY(-2px); }
.tool-card:hover h3 { color: var(--violet); }
.tool-card .ico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.tool-card .ico svg { width: 24px; height: 24px; }
.tool-card h3 { margin: 0 0 4px; }
.tool-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.tool-more { margin-top: 2.2em; }
@media (prefers-reduced-motion: reduce) { .tool-card, .tool-card:hover, .tz-drop { transition: none; transform: none; } }

@media (pointer: coarse) { .tz-desktop { display: none !important; } }
