/* v8.9.31 PDF Tools: hub and tool pages. Site tokens: navy tiles, gold accents, Lora headings, Inter text. */
.pt-hero { padding: 54px 0 34px; background: radial-gradient(900px 300px at 85% -40px, rgba(226,184,103,.22), transparent 70%), linear-gradient(180deg, #F6F4EE, #fff); text-align: center; }
.pt-hero h1 { font-size: 46px; line-height: 1.08; margin: 10px auto 12px; max-width: 820px; text-wrap: balance; }
.pt-hero > .wrap > p { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 auto; }
.pt-search { display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 26px auto 0; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: 0 18px; height: 60px; box-shadow: var(--sh-2); color: var(--gold-2); }
.pt-search .gi { width: 22px; height: 22px; --gia: var(--navy); }
.pt-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 17px; background: transparent; color: var(--ink); }
.pt-pop { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px auto 0; max-width: 820px; font-size: 14px; }
.pt-pop span { color: var(--soft); align-self: center; font-weight: 600; }
.pt-pop a { text-decoration: none; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.pt-pop a:hover { border-color: var(--gold-light); color: var(--gold); }
.pt-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; color: var(--muted); font-size: 14px; font-weight: 500; }
.pt-trust li { display: flex; align-items: center; gap: 8px; } .pt-trust .gi { color: var(--gold-2); --gia: var(--navy); width: 18px; height: 18px; }

.pt-tabs-wrap { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pt-tabs { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.pt-tabs::-webkit-scrollbar { display: none; }
.pt-tab { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.pt-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.pt-sec { margin-top: 38px; } .pt-sec h2 { font-size: 26px; margin-bottom: 14px; }
.pt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pt-card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); box-shadow: 0 10px 30px -22px rgba(20,27,45,.3); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; min-width: 0; }
.pt-card:hover { transform: translateY(-2px); border-color: var(--gold-light); box-shadow: 0 18px 36px -22px rgba(20,27,45,.4); color: var(--ink); }
.pt-ic { width: 46px; height: 46px; border-radius: 14px; }
.pt-ic-lg { width: 64px; height: 64px; border-radius: 19px; }
.pt-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pt-txt b { font-size: 16.5px; font-weight: 600; line-height: 1.25; }
.pt-txt small { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.pt-tag { align-self: flex-start; margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; background: #EEF9F1; color: #146C36; }
.pt-tag.gold { background: #FBF3E2; color: #8A6418; }


.pt-exam { margin-top: 46px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 32px; border-radius: 26px; background: linear-gradient(140deg, var(--navy), #2E3757); color: #fff; }
.pt-exam-l { display: flex; gap: 18px; align-items: flex-start; } .pt-exam .pt-ic { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(226,184,103,.4); }
.pt-exam h2 { color: #fff; font-size: 26px; margin: 6px 0 8px; } .pt-exam p { color: #B9BECD; } .pt-exam .kick { color: var(--gold-light); }
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-chips a { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.04); cursor: pointer; }
.pt-exam-btn { margin-top: 18px; display: inline-flex; gap: 8px; align-items: center; } .pt-exam-btn .gi { --gia: currentColor; }

.pt-plans { margin-top: 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pt-plan { position: relative; border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: #fff; }
.pt-plan .pt-tag { position: static; display: inline-block; }
.pt-plan.pro { border-color: var(--gold-light); background: linear-gradient(180deg, #FFFBF2, #fff); }
.pt-plan h3 { font-family: var(--serif); font-size: 22px; margin: 10px 0 12px; }
.pt-plan ul { margin: 0 0 16px; padding: 0 0 0 18px; color: var(--muted); line-height: 1.9; }

.pt-how { margin-top: 46px; } .pt-how h2 { font-size: 26px; margin-bottom: 16px; }
.pt-how ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pt-how li { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 18px; background: var(--tint); }
.pt-how li span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); font-weight: 700; margin-bottom: 6px; }
.pt-how small { color: var(--muted); font-size: 14px; }

.pt-xsell { margin-top: 30px; display: flex; gap: 16px; align-items: center; padding: 18px 22px; border: 1px dashed var(--line-2); border-radius: 18px; }
.pt-xsell div { flex: 1; display: flex; flex-direction: column; } .pt-xsell small { color: var(--muted); }
.pt-xsell .link-arrow { white-space: nowrap; font-weight: 600; color: var(--navy); display: inline-flex; gap: 6px; align-items: center; }

.pt-faq { margin: 46px 0 60px; max-width: 860px; } .pt-faq h2 { font-size: 26px; margin-bottom: 12px; }
.pt-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; } .pt-faq summary { font-weight: 600; cursor: pointer; } .pt-faq p { color: var(--muted); margin-top: 8px; }

/* tool page */
.pt-tool-head { display: flex; gap: 18px; align-items: center; margin: 18px 0 22px; }
.pt-tool-head h1 { font-size: 40px; } .pt-tool-head p { color: var(--muted); font-size: 17px; margin-top: 6px; max-width: 720px; }
.pt-work { display: none; } .pt-tool[data-state="empty"] .pt-s-empty, .pt-tool[data-state="done"] .pt-s-done { display: block; } .pt-tool[data-state="files"] .pt-s-files { display: grid; }
.pt-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 54px 24px; border: 2px dashed #C9CCD8; border-radius: 26px; background: linear-gradient(180deg, #FAFAFC, #F4F5F9); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.pt-drop:hover { border-color: var(--gold-light); background: #FFFBF2; }
.pt-drop-ic { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(150deg, var(--navy), #2E3757); color: var(--gold-light); --gia: #fff; margin-bottom: 8px; }
.pt-drop-ic .gi { width: 56%; height: 56%; }
.pt-drop b { font-family: var(--serif); font-size: 26px; font-weight: 600; } .pt-drop small { color: var(--muted); font-size: 15px; }
.pt-drop-btn { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; } .pt-drop-btn .gi { --gia: var(--gold-light); }
.pt-drop-note { margin-top: 10px; font-size: 13.5px; color: var(--soft); }
.pt-mini-trust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; color: var(--muted); font-size: 14px; }
.pt-mini-trust li { display: flex; gap: 8px; align-items: center; } .pt-mini-trust .gi { color: var(--gold-2); --gia: var(--navy); }

.pt-s-files { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.pt-files-main { border: 1px solid var(--line); border-radius: 24px; padding: 20px; background: var(--tint); min-width: 0; }
.pt-files-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-files-act { display: flex; gap: 8px; }
.pt-ghost { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; padding: 7px 12px; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; } .pt-ghost .gi { color: var(--navy); --gia: var(--gold-2); }
.pt-hint { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.pt-files { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pt-file { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 22px -18px rgba(20,27,45,.35); min-width: 0; }
.pt-file b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 8px; }
.pt-file small { font-size: 12.5px; color: var(--muted); }
.pt-thumb { aspect-ratio: 3/4; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 14% 12%; display: flex; flex-direction: column; gap: 8%; box-shadow: inset 0 0 0 6px #F7F7FA; }
.pt-thumb i { display: block; height: 5%; border-radius: 3px; background: #DCDFE8; } .pt-thumb i.s { width: 60%; } .pt-thumb i.h { height: 14%; background: #E9E1CC; }
.pt-thumb.t2 { background: #FFFDF7; } .pt-thumb.t3 i:first-child { height: 22%; width: 40%; background: #D6DBE8; }
.pt-n { position: absolute; top: 18px; left: 18px; z-index: 1; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); font-size: 13px; font-weight: 700; }
.pt-x { position: absolute; top: 18px; right: 18px; z-index: 1; width: 28px; height: 28px; border-radius: 999px; border: 0; background: rgba(20,27,45,.75); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; } .pt-x .gi { width: 14px; height: 14px; }
.pt-grip { position: absolute; bottom: 12px; right: 10px; color: var(--soft); } .pt-grip .gi { width: 18px; height: 18px; }
.pt-add { align-items: center; justify-content: center; text-align: center; border: 2px dashed #C9CCD8; background: transparent; box-shadow: none; cursor: pointer; min-height: 220px; }
.pt-add b { margin-top: 10px; white-space: normal; } .pt-add-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); --gia: var(--navy); } .pt-add-ic .gi { width: 22px; height: 22px; }
.pt-side { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: 24px; padding: 22px; background: #fff; box-shadow: var(--sh-2); }
.pt-side h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 14px; }
.pt-field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); position: relative; }
.pt-field input { height: 46px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 48px 0 14px; font-size: 16px; color: var(--ink); }
.pt-field em { position: absolute; right: 14px; bottom: 13px; font-style: normal; color: var(--soft); font-weight: 500; }
.pt-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.pt-sum div { background: var(--tint); border-radius: 12px; padding: 10px; text-align: center; } .pt-sum small { display: block; color: var(--soft); font-size: 12px; } .pt-sum b { font-size: 18px; }
.pt-go { display: flex; gap: 8px; align-items: center; justify-content: center; } .pt-go .gi, .pt-mobar .gi { --gia: currentColor; }
.pt-side-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.pt-mobar { display: none; }

.pt-done { text-align: center; padding: 40px 24px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(180deg, #F2FAF5, #fff); }
.pt-done-ic { width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 999px; display: grid; place-items: center; background: #17734A; color: #fff; --gia: #fff; } .pt-done-ic .gi { width: 56%; height: 56%; }
.pt-done h2 { font-size: 32px; }
.pt-done-file { display: inline-flex; gap: 10px; align-items: center; margin: 14px 0 20px; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--gold-2); --gia: var(--navy); }
.pt-done-file b { color: var(--ink); } .pt-done-file small { color: var(--muted); }
.pt-done-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; } .pt-done-btns .btn { display: inline-flex; gap: 8px; align-items: center; } .pt-done-btns .gi { --gia: currentColor; }
.pt-again { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--navy); }
.pt-next { margin-top: 26px; } .pt-next h3 { font-size: 18px; margin-bottom: 12px; }
.pt-next-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pt-card.sm { padding: 14px; } .pt-card.sm .pt-ic { width: 40px; height: 40px; border-radius: 12px; }
.pt-how-tool { margin-top: 40px; }
.pt-rel { margin: 0 0 60px; } .pt-rel h2 { font-size: 24px; margin-bottom: 12px; }
.pt-rel-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pt-rel-row a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--navy); } .pt-rel-row a .gi { color: var(--gold-2); --gia: var(--navy); }

@media (max-width: 1100px) { .pt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pt-files { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt-exam, .pt-plans { grid-template-columns: minmax(0, 1fr); }
  .pt-s-files { grid-template-columns: minmax(0, 1fr); } .pt-side { position: static; } .pt-next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pt-hero { padding: 34px 0 24px; } .pt-hero h1 { font-size: 31px; } .pt-hero > .wrap > p { font-size: 16px; }
  .pt-search { height: 54px; margin-top: 20px; border-radius: 16px; } .pt-search input { font-size: 16px; }
  .pt-pop { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-left: -16px; margin-right: -16px; padding: 0 16px; scrollbar-width: none; } .pt-pop a { flex: none; } .pt-pop span { flex: none; }
  .pt-trust { gap: 8px 16px; font-size: 13px; }
  .pt-sec { margin-top: 28px; } .pt-sec h2 { font-size: 22px; }
  .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pt-card { flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; }
  .pt-card .pt-txt small { display: none; } .pt-txt b { font-size: 15px; }
  .pt-tag { font-size: 9.5px; padding: 2px 7px; margin-top: 2px; }
  .pt-ic { width: 42px; height: 42px; border-radius: 13px; }
  .pt-exam { padding: 22px; border-radius: 22px; } .pt-exam-l { flex-direction: column; } .pt-exam h2 { font-size: 22px; } .pt-exam-btn { width: 100%; justify-content: center; }
  .pt-how ol { grid-template-columns: minmax(0, 1fr); }
  .pt-xsell { flex-direction: column; align-items: flex-start; }
  .pt-tool-head { align-items: flex-start; } .pt-tool-head h1 { font-size: 30px; } .pt-tool-head p { font-size: 15.5px; } .pt-ic-lg { width: 54px; height: 54px; }
  .pt-drop { padding: 36px 18px; } .pt-drop b { font-size: 22px; } .pt-drop-btn { width: 100%; justify-content: center; }
  .pt-files-main { padding: 14px; border-radius: 20px; } .pt-files { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pt-add { min-height: 180px; }
  .pt-side .pt-go { display: none; }
  .pt-mobar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); align-items: center; justify-content: space-between; gap: 12px; }
  .pt-mobar span { display: flex; flex-direction: column; line-height: 1.25; } .pt-mobar small { color: var(--muted); font-size: 12.5px; }
  .pt-mobar .btn { display: inline-flex; gap: 6px; align-items: center; }
  .pt-done { padding: 30px 18px; } .pt-done h2 { font-size: 26px; } .pt-done-file { flex-wrap: wrap; justify-content: center; } .pt-done-btns .btn { width: 100%; justify-content: center; }
  .pt-next-grid { grid-template-columns: minmax(0, 1fr); }
  .pt-tool[data-state="files"] { padding-bottom: 84px; }
  body:has(.pt-tool[data-state="files"]) .rh-fab { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- built pages (v8.9.31) ---- */
.pt-tab { text-decoration: none; } .pt-tab:hover { color: var(--navy); }
.pt-card.soon { cursor: default; box-shadow: none; background: #FAFAFC; } .pt-card.soon:hover { transform: none; border-color: var(--line); }
.pt-card.soon .pt-ic { opacity: .55; } .pt-card.soon b { color: var(--muted); }
.pt-tag.soon { background: #EEF0F5; color: #5B6275; }
.pt-none { margin: 30px 0 0; color: var(--muted); text-align: center; }
.pt-exam-note { margin-top: 12px; font-size: 13px; color: #B9BECD; }
.pt-chips a { text-decoration: none; } .pt-chips a:hover { border-color: var(--gold-light); color: var(--gold-light); }
a.pt-xsell { text-decoration: none; color: var(--ink); } .pt-xs-t { flex: 1; display: flex; flex-direction: column; } .pt-xs-t small { color: var(--muted); }
.pt-xsell .pt-ic { flex: none; }
.pt-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pt-drop { position: relative; } .pt-drop.over { border-color: var(--gold-light); background: #FFFBF2; }
.pt-drop:focus-within { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.pt-err { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #FDECEC; color: #9B1C1C; font-size: 14px; font-weight: 500; }
.pt-s-empty .pt-err { text-align: center; }
.pt-tool[data-state="busy"] .pt-s-busy { display: block; }

/* settings */
.pt-opts { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.pt-field select, .pt-field input[type="number"], .pt-field input[type="text"] { height: 46px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; font-size: 16px; color: var(--ink); background: #fff; width: 100%; min-width: 0; font-family: inherit; }
.pt-field input[type="number"] { padding-right: 44px; }
.pt-field input[type="file"] { font-size: 14px; font-weight: 500; color: var(--ink); }
.pt-field input[type="range"] { width: 100%; accent-color: var(--navy); }
.pt-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; } .pt-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.pt-mini { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; } .pt-mini .gi { color: var(--gold-2); --gia: var(--navy); margin-right: 4px; }
.pt-seg { display: flex; gap: 4px; padding: 4px; background: var(--tint); border-radius: 12px; }
.pt-seg label { flex: 1; } .pt-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pt-seg span { display: block; text-align: center; padding: 9px 6px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.pt-seg input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 2px 8px -4px rgba(20,27,45,.35); }
.pt-seg input:focus-visible + span { outline: 2px solid var(--gold-light); }
.pt-wide { width: 100%; justify-content: center; padding: 10px 12px; }
.pt-two .pt-ghost { justify-content: center; padding: 10px 8px; }
.pt-link { border: 0; background: none; color: var(--navy); font-weight: 600; font-size: 14px; padding: 6px 0; cursor: pointer; text-decoration: underline; }
.pt-pad { display: block; width: 100%; height: auto; aspect-ratio: 600 / 220; border: 1.5px dashed #C9CCD8; border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; }
.pt-side-note { display: flex; gap: 6px; align-items: flex-start; } .pt-side-note .gi { flex: none; color: var(--gold-2); --gia: var(--navy); margin-top: 2px; }

/* files and pages */
.pt-file canvas, .pt-file img, .pt-page canvas { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.pt-thumb { padding: 0; overflow: hidden; display: grid; place-items: center; box-shadow: none; background: #F4F5F9; }
.pt-mv { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 4px; }
.pt-mv button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--navy); --gia: var(--navy); }
.pt-mv button:disabled { opacity: .35; cursor: default; } .pt-mv .gi { width: 16px; height: 16px; }
.pt-file small { padding-right: 70px; }
.pt-pages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pt-page { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; background: #fff; border: 2px solid transparent; border-radius: 14px; box-shadow: 0 6px 18px -14px rgba(20,27,45,.4); cursor: pointer; min-width: 0; user-select: none; }
.pt-page .pt-pv { width: 100%; aspect-ratio: 3/4; display: grid; place-items: center; background: #F4F5F9; border-radius: 8px; overflow: hidden; }
.pt-page .pt-pv canvas { width: auto; height: auto; max-width: 100%; max-height: 100%; transition: transform .25s var(--ease); box-shadow: 0 1px 4px rgba(20,27,45,.18); }
.pt-page .pt-pn { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pt-page.sel { border-color: var(--navy); } .pt-page.sel .pt-pn { color: var(--navy); }
.pt-page.sel::after { content: ""; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 999px; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.pt-page.del { border-color: #D64545; } .pt-page.del .pt-pv { opacity: .35; } .pt-page.del .pt-pn { color: #B42318; }
.pt-page.del::after { content: ""; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 999px; background: #D64545 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center/12px no-repeat; }
.pt-page:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.pt-page .pt-mv { position: static; } .pt-page .pt-mv button { width: 28px; height: 28px; }
.pt-rotb { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 999px; background: rgba(20,27,45,.75); color: #fff; display: grid; place-items: center; --gia: #fff; } .pt-rotb .gi { width: 15px; height: 15px; }
.pt-more { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 13.5px; padding: 6px; }

/* single-file preview (compress, numbers, watermark, crop, sign, photo tools) */
.pt-one { display: flex; gap: 16px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.pt-one .pt-thumb { width: 74px; flex: none; aspect-ratio: 3/4; }
.pt-one b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pt-one small { color: var(--muted); font-size: 13px; } .pt-one > div { min-width: 0; }
.pt-preview { margin-top: 14px; display: grid; place-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.pt-stage { position: relative; display: inline-block; max-width: 100%; line-height: 0; box-shadow: 0 2px 10px rgba(20,27,45,.15); }
.pt-stage canvas, .pt-stage img { display: block; max-width: 100%; height: auto; max-height: 560px; }
.pt-cropbox { position: absolute; border: 2px dashed #D64545; box-shadow: 0 0 0 9999px rgba(20,27,45,.35); pointer-events: none; }
.pt-sigbox { position: absolute; border: 1.5px dashed var(--navy); background: rgba(255,255,255,.25); pointer-events: none; } .pt-sigbox img { width: 100%; height: 100%; object-fit: contain; max-height: none; }
.pt-sigbox small { position: absolute; left: 0; top: 100%; font: 600 10px/1.3 var(--sans); color: var(--ink); white-space: nowrap; }
.pt-stage.tap { cursor: crosshair; }
.pt-imgprev { background: repeating-conic-gradient(#F1F2F6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }

/* busy */
.pt-busy { max-width: 520px; margin: 0 auto; text-align: center; padding: 40px 24px; border: 1px solid var(--line); border-radius: 26px; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pt-busy b { font-family: var(--serif); font-size: 22px; font-weight: 600; } .pt-busy small { color: var(--muted); }
.pt-spin { width: 46px; height: 46px; border-radius: 999px; border: 4px solid #E8EAF0; border-top-color: var(--gold); animation: ptspin .8s linear infinite; }
@keyframes ptspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pt-spin { animation-duration: 2.4s; } }
.pt-bar { width: 100%; height: 8px; border-radius: 99px; background: #EEF0F5; overflow: hidden; } .pt-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-light), var(--gold)); transition: width .2s; }

/* done */
.pt-done-note { max-width: 560px; margin: 8px auto 0; color: var(--muted); font-size: 14.5px; }
.pt-done-note.warn { color: #8A4B08; background: #FFF6E5; border-radius: 12px; padding: 10px 14px; }
.pt-outs { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
.pt-outs .pt-done-file { margin: 0; max-width: 100%; } .pt-done-file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pt-outlist { list-style: none; padding: 0; margin: 0; width: 100%; max-width: 620px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.pt-outlist li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pt-outlist li > span { flex: 1; min-width: 0; } .pt-outlist b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pt-outlist small { color: var(--muted); font-size: 12.5px; }
.pt-outlist img { width: 44px; height: 58px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.pt-outlist .btn { flex: none; display: inline-flex; gap: 6px; align-items: center; } .pt-outlist .btn .gi { --gia: currentColor; }
.pt-text { width: 100%; max-width: 760px; margin: 16px auto 0; display: block; border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; font: 14px/1.6 var(--sans); color: var(--ink); background: #fff; resize: vertical; }
.pt-imgout { max-width: 260px; max-height: 300px; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--sh-2); }

@media (max-width: 1100px) { .pt-pages { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pt-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .pt-page { padding: 6px; border-radius: 12px; }
  .pt-page .pt-mv button { width: 26px; height: 26px; }
  .pt-outlist li { flex-wrap: wrap; } .pt-outlist .btn { width: 100%; justify-content: center; }
  .pt-tool[data-state="files"] .pt-side { margin-bottom: 8px; }
  .pt-stage canvas, .pt-stage img { max-height: 420px; }
}
.pt-tool [hidden] { display: none !important; }
.pt-card[hidden], .pt-sec[hidden], .pt-none[hidden] { display: none !important; }
.pt-pages.pt-onelist { display: block; }
