/* Toolszu PDF Convert — shared uploader styles (all scoped to .tzc) */
.tzc { --tzc-blue: #0066cc; --tzc-blue-d: #004d99; --tzc-ink: #0f172a; --tzc-muted: #64748b; --tzc-line: #e2e8f0;
  max-width: 760px; margin: -1.5rem auto 0; padding: 0 1rem; position: relative; z-index: 2; font-family: 'Inter', system-ui, sans-serif; }
.tzc-card { background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); border: 1px solid var(--tzc-line); padding: 1.25rem; }
.tzc, .tzc *, .tzc *::before, .tzc *::after { box-sizing: border-box; }
.tzc [hidden] { display: none !important; }

/* panels by state */
.tzc-panel { display: none; }
.tzc[data-state="idle"] .tzc-p-idle,
.tzc[data-state="ready"] .tzc-p-ready,
.tzc[data-state="working"] .tzc-p-working,
.tzc[data-state="done"] .tzc-p-done,
.tzc[data-state="error"] .tzc-p-error { display: block; }

/* drop zone */
.tzc-drop { border: 2px dashed #93c5fd; background: #f8fbff; border-radius: 16px; padding: 2.25rem 1rem; text-align: center; cursor: pointer;
  transition: background .2s, border-color .2s; outline: none; }
.tzc-drop:hover, .tzc-drop:focus-visible, .tzc-drop.is-over { background: #eff6ff; border-color: var(--tzc-blue); }
.tzc-drop-icon { width: 64px; height: 64px; margin: 0 auto .75rem; border-radius: 16px; background: #e0efff; color: var(--tzc-blue);
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.tzc-drop h2 { font: 700 1.25rem/1.3 'Poppins', 'Inter', sans-serif; color: var(--tzc-ink); margin: 0 0 .35rem; }
.tzc-drop p { color: var(--tzc-muted); font-size: .92rem; margin: 0 0 1.1rem; }
.tzc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 12px; cursor: pointer;
  font: 700 1rem/1 'Inter', sans-serif; padding: .9rem 1.6rem; text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; }
.tzc-btn-primary { background: var(--tzc-blue); color: #fff; box-shadow: 0 6px 16px rgba(0, 102, 204, .25); }
.tzc-btn-primary:hover { background: var(--tzc-blue-d); transform: translateY(-1px); color: #fff; }
.tzc-btn-soft { background: #f1f5f9; color: #334155; }
.tzc-btn-soft:hover { background: #e2e8f0; }
.tzc-btn-lg { padding: 1rem 2rem; font-size: 1.05rem; width: 100%; max-width: 360px; }
.tzc-btn[disabled], .tzc-btn.is-disabled { opacity: .55; pointer-events: none; }
.tzc-limit { margin-top: .9rem; font-size: .8rem; color: var(--tzc-muted); }
.tzc-secure { margin-top: .35rem; font-size: .8rem; color: #059669; font-weight: 600; }

/* chosen file */
.tzc-file-row { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; background: #f8fafc; border: 1px solid var(--tzc-line); border-radius: 14px; }
.tzc-file-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: #fee2e2; color: #dc2626; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.tzc-file-meta { min-width: 0; flex: 1; }
.tzc-fname { font-weight: 700; color: var(--tzc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzc-fsize { font-size: .82rem; color: var(--tzc-muted); }
.tzc-link { background: none; border: 0; color: var(--tzc-blue); font-weight: 600; cursor: pointer; font-size: .9rem; padding: .4rem; white-space: nowrap; }
.tzc-link:hover { text-decoration: underline; }
.tzc-flash { margin-top: .75rem; padding: .65rem .9rem; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: .9rem; }

/* options */
.tzc-options { margin: 1.1rem 0 0; }
.tzc-options:empty { display: none; }
.tzc-opt-title { font-weight: 700; font-size: .92rem; color: var(--tzc-ink); margin: 0 0 .55rem; }
.tzc-choices { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tzc-choice { position: relative; display: block; cursor: pointer; }
.tzc-choice input { position: absolute; opacity: 0; pointer-events: none; }
.tzc-choice span { display: block; height: 100%; border: 2px solid var(--tzc-line); border-radius: 14px; padding: .8rem .9rem; transition: border-color .15s, background .15s; }
.tzc-choice b { display: block; color: var(--tzc-ink); font-size: .95rem; margin-bottom: .15rem; }
.tzc-choice small { display: block; color: var(--tzc-muted); font-size: .8rem; line-height: 1.35; }
.tzc-choice input:checked + span { border-color: var(--tzc-blue); background: #eff6ff; }
.tzc-choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0, 102, 204, .25); }
.tzc-field { display: block; margin-bottom: .75rem; }
.tzc-field > span { display: block; font-weight: 600; font-size: .88rem; color: #334155; margin-bottom: .3rem; }
.tzc-input { width: 100%; border: 2px solid var(--tzc-line); border-radius: 12px; padding: .75rem .9rem; font-size: 1rem; color: var(--tzc-ink); background: #fff; }
.tzc-input:focus { outline: none; border-color: var(--tzc-blue); }
.tzc-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: #334155; margin: .35rem 0; cursor: pointer; }
.tzc-check input { width: 18px; height: 18px; accent-color: var(--tzc-blue); }
.tzc-row2 { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .tzc-row2 { grid-template-columns: 1fr; } }
.tzc-go { text-align: center; margin-top: 1.2rem; }

/* working */
.tzc-p-working { text-align: center; padding: 1.75rem .5rem; }
.tzc-status { font-weight: 700; color: var(--tzc-ink); margin-bottom: 1rem; min-height: 1.4em; }
.tzc-bar { height: 10px; background: #e2e8f0; border-radius: 99px; overflow: hidden; max-width: 460px; margin: 0 auto; }
.tzc-bar > span { display: block; height: 100%; width: 3%; background: linear-gradient(90deg, #0066cc, #00bcd4); border-radius: 99px; transition: width .4s; }
.tzc-bar.is-indeterminate > span { width: 35% !important; animation: tzc-slide 1.2s ease-in-out infinite; }
@keyframes tzc-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(310%); } }
.tzc-hint { margin-top: .9rem; font-size: .82rem; color: var(--tzc-muted); }
.tzc-turnstile { display: flex; justify-content: center; margin-top: .75rem; }
.tzc-turnstile.is-needed { margin-top: 1.25rem; }

/* done */
.tzc-p-done { text-align: center; padding: 1.25rem .5rem .5rem; }
.tzc-ok { width: 64px; height: 64px; margin: 0 auto .75rem; border-radius: 50%; background: #dcfce7; color: #16a34a; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.tzc-p-done h3 { font: 700 1.25rem/1.3 'Poppins', 'Inter', sans-serif; color: var(--tzc-ink); margin: 0 0 .3rem; }
.tzc-rname { color: #334155; font-weight: 600; word-break: break-all; }
.tzc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: .7rem 0 0; }
.tzc-chips span { background: #f1f5f9; color: #334155; font-size: .82rem; font-weight: 600; padding: .3rem .7rem; border-radius: 99px; }
.tzc-chips span:first-child { background: #dcfce7; color: #166534; }
.tzc-note { margin: .8rem auto 0; max-width: 480px; font-size: .88rem; color: #92400e; background: #fffbeb; border-radius: 10px; padding: .6rem .8rem; }
.tzc-actions { margin-top: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.tzc-actions-2 { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.tzc-expire { margin-top: .9rem; font-size: .8rem; color: var(--tzc-muted); }

/* error */
.tzc-p-error { text-align: center; padding: 1.5rem .5rem .75rem; }
.tzc-bad { width: 60px; height: 60px; margin: 0 auto .75rem; border-radius: 50%; background: #fee2e2; color: #dc2626; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.tzc-error-text { color: #7f1d1d; font-weight: 600; max-width: 520px; margin: 0 auto 1.1rem; line-height: 1.5; }

@media (max-width: 640px) {
  .tzc { margin-top: -1rem; padding: 0 .75rem; }
  .tzc-card { padding: 1rem; border-radius: 16px; }
  .tzc-drop { padding: 1.75rem .75rem; }
}

/* paste box (text tools, e.g. Markdown to PDF) */
.tzc-idle-extra { margin-top: 1rem; }
.tzc-or { display: flex; align-items: center; gap: .75rem; color: var(--tzc-muted); font-size: .85rem; font-weight: 600; margin: .25rem 0 .75rem; }
.tzc-or::before, .tzc-or::after { content: ""; flex: 1; height: 1px; background: var(--tzc-line); }
.tzc-paste { width: 100%; min-height: 180px; resize: vertical; font: .92rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tzc-idle-extra .tzc-btn { margin-top: .6rem; }

/* target size picker (compress-pdf-to-XXkb pages) */
.tzc-sizes { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .8rem; }
.tzc-sizes button { border: 1px solid var(--tzc-line); background: #fff; color: #334155; border-radius: 99px; padding: .4rem .8rem; font: 600 .85rem/1 'Inter', sans-serif; cursor: pointer; }
.tzc-sizes button:hover { border-color: #93c5fd; background: #eff6ff; }
.tzc-sizes button.is-on { background: var(--tzc-blue); border-color: var(--tzc-blue); color: #fff; }
.tzc-size-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: .6rem; max-width: 360px; }
.tzc-size-row input { font-weight: 700; font-size: 1.1rem; }
.tzc-size-hint { margin: .5rem 0 0; font-size: .85rem; color: #92400e; }
.tzc-size-hint.is-bad { color: #b91c1c; }
[data-tzc="convert"]:disabled { opacity: .5; cursor: not-allowed; }
