.thp-pdf-image-app { --thp-recents-width:0px; grid-template-columns:var(--thp-rail-width) minmax(0,1fr); background:var(--thp-bg); }
.thp-pdf-image-app .thp-rail { background:var(--thp-sidebar); }
.thp-pdf-image-app .thp-rail__mark { text-decoration:none; }
.thp-pdf-image-app .thp-rail__item b { font-size:9px; }
.thp-pdf-image-main { grid-column:2; min-height:100vh; padding:8px 18px 70px; background:var(--thp-bg); overflow:visible; }

.thp-pdf-image-header { min-height:78px; padding:13px 18px; display:flex; align-items:center; justify-content:space-between; gap:22px; border-radius:18px; background:var(--thp-panel); }
.thp-pdf-image-header h1 { margin:3px 0 0; color:var(--thp-text); font-size:24px; line-height:1.35; font-weight:900; }
.thp-pdf-image-header p { margin:3px 0 0; color:var(--thp-muted); font-size:11px; }
.thp-pdf-image-back { display:inline-flex; align-items:center; gap:4px; color:var(--thp-purple)!important; font-size:10px; font-weight:800; text-decoration:none; }
.thp-pdf-image-back svg { width:14px; height:14px; transform:rotate(180deg); }
.thp-pdf-image-header__actions { display:flex; align-items:center; gap:10px; }
.thp-pdf-image-private { min-height:34px; padding:0 12px; display:inline-flex; align-items:center; gap:6px; border-radius:999px; background:color-mix(in srgb,#13a36e 11%,var(--thp-panel)); color:#08794f; font-size:10px; font-weight:800; }
.thp-pdf-image-private svg { width:15px; height:15px; }

.thp-pdf-image-hero { min-height:170px; margin-top:14px; padding:27px 34px; overflow:hidden; position:relative; display:flex; align-items:center; justify-content:space-between; gap:25px; border-radius:21px; background:linear-gradient(115deg,#def7eb 0%,#f7f9f8 52%,#e3f5ff 100%); }
.thp-pdf-image-hero::after { content:""; position:absolute; width:230px; height:230px; left:-55px; bottom:-130px; border-radius:50%; background:rgba(255,255,255,.58); }
.thp-pdf-image-hero > div { position:relative; z-index:1; }
.thp-pdf-image-hero > div > span { display:inline-block; margin-bottom:7px; color:#08794f; font-size:10px; font-weight:900; }
.thp-pdf-image-hero h2 { margin:0; color:#20202a; font-size:30px; line-height:1.45; font-weight:950; }
.thp-pdf-image-hero p { margin:5px 0 0; color:#514e59; font-size:12px; }
.thp-pdf-image-hero__icon { position:relative; z-index:1; width:88px; height:88px; flex:0 0 auto; display:grid; place-items:center; border-radius:25px; background:rgba(255,255,255,.84); color:#0c9b68; box-shadow:0 16px 38px rgba(12,135,94,.14); transform:rotate(-4deg); }
.thp-pdf-image-hero__icon svg { width:43px; height:43px; }

.thp-pdf-image-upload-card,.thp-pdf-image-preview,.thp-pdf-image-settings,.thp-pdf-image-result { padding:20px; border:1px solid var(--thp-line); border-radius:18px; background:var(--thp-panel); }
.thp-pdf-image-upload-card { margin-top:16px; }
.thp-pdf-image-card-head > div > span { color:#08794f; font-size:9px; font-weight:900; }
.thp-pdf-image-card-head h2 { margin:3px 0 0; color:var(--thp-text); font-size:17px; line-height:1.5; font-weight:900; }
.thp-pdf-image-card-head p { margin:3px 0 0; color:var(--thp-muted); font-size:10px; }
.thp-pdf-image-card-head p b { color:#08794f; }

.thp-pdf-image-drop { min-height:220px; margin-top:18px; padding:26px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; border:2px dashed color-mix(in srgb,#0c9b68 42%,var(--thp-line)); border-radius:16px; background:color-mix(in srgb,#0c9b68 4%,var(--thp-panel)); text-align:center; cursor:pointer; transition:.18s ease; }
.thp-pdf-image-drop:hover,.thp-pdf-image-drop.is-dragging { border-color:#0c9b68; background:color-mix(in srgb,#0c9b68 9%,var(--thp-panel)); transform:translateY(-1px); }
.thp-pdf-image-drop input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.thp-pdf-image-drop > span { width:58px; height:58px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,#0c9b68,#18aebb); color:#fff; box-shadow:0 10px 24px rgba(12,155,104,.2); }
.thp-pdf-image-drop > span svg { width:28px; height:28px; }
.thp-pdf-image-drop strong { color:var(--thp-text); font-size:13px; font-weight:900; }
.thp-pdf-image-drop small { color:var(--thp-muted); font-size:9px; }
.thp-pdf-image-file { margin-top:12px; padding:12px; display:grid; grid-template-columns:42px minmax(0,1fr) 30px; align-items:center; gap:10px; border:1px solid var(--thp-line); border-radius:13px; background:var(--thp-bg); }
.thp-pdf-image-file[hidden] { display:none!important; }
.thp-pdf-image-file > span { width:42px; height:42px; display:grid; place-items:center; border-radius:11px; background:#ffe2e6; color:#e73851; }
.thp-pdf-image-file > span svg { width:22px; height:22px; }
.thp-pdf-image-file > div { min-width:0; display:grid; gap:4px; }
.thp-pdf-image-file b { overflow:hidden; color:var(--thp-text); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.thp-pdf-image-file small { display:flex; flex-wrap:wrap; gap:8px; color:var(--thp-muted); font-size:8px; }
.thp-pdf-image-file small i { font-style:normal; }
.thp-pdf-image-file button { width:30px; height:30px; padding:0; border:0; border-radius:8px; background:var(--thp-soft); color:var(--thp-text); cursor:pointer; font-size:20px; line-height:1; }

.thp-pdf-image-workspace { margin-top:16px; display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:16px; align-items:start; }
.thp-pdf-image-workspace[hidden] { display:none!important; }
.thp-pdf-image-settings { position:sticky; top:16px; }
.admin-bar .thp-pdf-image-settings { top:48px; }
.thp-pdf-image-modes { margin-top:15px; display:flex; flex-wrap:wrap; gap:7px; }
.thp-pdf-image-modes label { cursor:pointer; }
.thp-pdf-image-modes input { position:absolute; opacity:0; pointer-events:none; }
.thp-pdf-image-modes span { min-height:37px; padding:0 13px; display:flex; align-items:center; border:1px solid var(--thp-line); border-radius:10px; background:var(--thp-panel); color:var(--thp-text); font-size:9px; font-weight:850; }
.thp-pdf-image-modes input:checked + span { border-color:#0c9b68; background:color-mix(in srgb,#0c9b68 9%,var(--thp-panel)); color:#08794f; box-shadow:0 0 0 2px color-mix(in srgb,#0c9b68 10%,transparent); }
.thp-pdf-image-range { margin-top:11px; padding:12px; display:flex; gap:10px; border-radius:12px; background:var(--thp-bg); }
.thp-pdf-image-range[hidden],.thp-pdf-image-manual-tools[hidden] { display:none!important; }
.thp-pdf-image-range label { flex:1; display:grid; gap:5px; }
.thp-pdf-image-range span { color:var(--thp-text); font-size:8px; font-weight:800; }
.thp-pdf-image-range input { width:100%; min-height:39px; padding:0 10px; border:1px solid var(--thp-line); border-radius:9px; background:var(--thp-panel); color:var(--thp-text); }
.thp-pdf-image-manual-tools { margin-top:10px; display:flex; gap:7px; }
.thp-pdf-image-manual-tools button { min-height:35px; padding:0 11px; border:1px solid var(--thp-line); border-radius:9px; background:var(--thp-panel); color:var(--thp-text); cursor:pointer; font-size:8px; font-weight:800; }
.thp-pdf-image-manual-tools button:first-child { border-color:color-mix(in srgb,#0c9b68 35%,var(--thp-line)); color:#08794f; }

.thp-pdf-image-pages { margin-top:15px; display:grid; grid-template-columns:repeat(auto-fill,minmax(118px,1fr)); gap:10px; }
.thp-pdf-image-page { min-width:0; padding:8px; position:relative; display:grid; gap:7px; border:2px solid transparent; border-radius:13px; background:var(--thp-bg); color:var(--thp-text); cursor:pointer; text-align:center; transition:.16s ease; }
.thp-pdf-image-page:disabled { cursor:default; opacity:1; }
.thp-pdf-image-page.is-selected { border-color:#0c9b68; background:color-mix(in srgb,#0c9b68 7%,var(--thp-panel)); }
.thp-pdf-image-page__check { width:23px; height:23px; position:absolute; top:5px; right:5px; z-index:2; display:none; place-items:center; border-radius:50%; background:#0c9b68; color:#fff; box-shadow:0 3px 9px rgba(12,155,104,.25); }
.thp-pdf-image-page.is-selected .thp-pdf-image-page__check { display:grid; }
.thp-pdf-image-page__check svg { width:14px; height:14px; }
.thp-pdf-image-page__canvas { height:155px; overflow:hidden; display:grid; place-items:center; border-radius:8px; background:#e9e9ec; }
.thp-pdf-image-page__canvas canvas { max-width:100%; max-height:100%; display:block; box-shadow:0 2px 8px rgba(0,0,0,.12); }
.thp-pdf-image-page__canvas > i { width:29px; height:29px; display:grid; place-items:center; border:3px solid #d1d1d7; border-top-color:#0c9b68; border-radius:50%; color:var(--thp-muted); font-size:7px; font-style:normal; animation:tftImageSpin 1s linear infinite; }
.thp-pdf-image-page[data-render-state="error"] .thp-pdf-image-page__canvas > i { width:auto; height:auto; border:0; animation:none; }
.thp-pdf-image-page > b { color:var(--thp-text); font-size:9px; font-weight:850; }
.thp-pdf-image-page > b i { font-style:normal; }
@keyframes tftImageSpin { to { transform:rotate(360deg); } }

.thp-pdf-image-option-title { margin:15px 0 7px; color:var(--thp-text); font-size:9px; font-weight:900; }
.thp-pdf-image-options { display:grid; gap:7px; }
.thp-pdf-image-options label { min-height:58px; padding:9px 10px; position:relative; display:grid; grid-template-columns:18px minmax(0,1fr) 19px; align-items:center; gap:8px; border:1px solid var(--thp-line); border-radius:11px; cursor:pointer; }
.thp-pdf-image-options label:has(input:checked) { border-color:#0c9b68; background:color-mix(in srgb,#0c9b68 7%,var(--thp-panel)); box-shadow:0 0 0 2px color-mix(in srgb,#0c9b68 10%,transparent); }
.thp-pdf-image-options input { accent-color:#0c9b68; }
.thp-pdf-image-options label > span { display:grid; gap:3px; }
.thp-pdf-image-options b { color:var(--thp-text); font-size:10px; }
.thp-pdf-image-options small { color:var(--thp-muted); font-size:8px; line-height:1.55; }
.thp-pdf-image-options label > i { opacity:0; color:#0c9b68; }
.thp-pdf-image-options label:has(input:checked) > i { opacity:1; }
.thp-pdf-image-options label > i svg { width:17px; height:17px; }
.thp-pdf-image-name { margin-top:14px; display:grid; gap:6px; }
.thp-pdf-image-name span { color:var(--thp-text); font-size:9px; font-weight:850; }
.thp-pdf-image-name input { width:100%; min-height:43px; padding:0 12px; border:1px solid var(--thp-line); border-radius:11px; outline:0; background:var(--thp-panel); color:var(--thp-text); font-size:10px; }
.thp-pdf-image-name input:focus { border-color:#0c9b68; box-shadow:0 0 0 3px color-mix(in srgb,#0c9b68 12%,transparent); }
.thp-pdf-image-submit { width:100%; min-height:49px; margin-top:16px; padding:0 15px; border:0; border-radius:12px; display:flex; align-items:center; justify-content:center; gap:8px; background:linear-gradient(135deg,#08794f,#0ca578); color:#fff; cursor:pointer; font-size:11px; font-weight:900; box-shadow:0 8px 20px rgba(12,155,104,.2); }
.thp-pdf-image-submit:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; }
.thp-pdf-image-submit svg { width:20px; height:20px; }
.thp-pdf-image-progress { margin-top:13px; }
.thp-pdf-image-progress[hidden] { display:none!important; }
.thp-pdf-image-progress > span { height:7px; overflow:hidden; display:block; border-radius:999px; background:var(--thp-soft); }
.thp-pdf-image-progress > span i { width:0; height:100%; display:block; border-radius:inherit; background:linear-gradient(90deg,#0c9b68,#18aebb); transition:width .2s ease; }
.thp-pdf-image-progress p,.thp-pdf-image-status { margin:6px 0 0; color:var(--thp-muted); text-align:center; font-size:8px; line-height:1.7; }
.thp-pdf-image-status.is-error { color:#c9223d; }
.thp-pdf-image-status.is-success { color:#08794f; }
.thp-pdf-image-status.is-warning { color:#9a4c0d; }

.thp-pdf-image-result { margin-top:16px; }
.thp-pdf-image-result[hidden] { display:none!important; }
.thp-pdf-image-result > header { display:flex; align-items:center; gap:11px; }
.thp-pdf-image-result > header > span { width:44px; height:44px; flex:0 0 auto; display:grid; place-items:center; border-radius:50%; background:#dff6eb; color:#08794f; }
.thp-pdf-image-result > header > span svg { width:23px; height:23px; }
.thp-pdf-image-result h2 { margin:0; color:var(--thp-text); font-size:18px; font-weight:900; }
.thp-pdf-image-result header p { margin:3px 0 0; color:var(--thp-muted); font-size:9px; }
.thp-pdf-image-result__actions { margin-top:15px; display:flex; gap:8px; }
.thp-pdf-image-result__actions button { min-height:43px; padding:0 16px; border:1px solid var(--thp-line); border-radius:11px; display:inline-flex; align-items:center; justify-content:center; gap:7px; background:var(--thp-panel); color:var(--thp-text); cursor:pointer; font-size:9px; font-weight:900; }
.thp-pdf-image-result__actions button:first-child { border:0; background:linear-gradient(135deg,#08794f,#0ca578); color:#fff; }
.thp-pdf-image-result__actions svg { width:18px; height:18px; }
.thp-pdf-image-note { margin:12px 3px 0; color:var(--thp-muted); font-size:8px; line-height:1.9; }

.tesoroz-dark-theme .thp-pdf-image-hero,.tesoroz-car-dark-theme .thp-pdf-image-hero { background:linear-gradient(115deg,#1e3b31 0%,#25262a 52%,#1c3944 100%); }
.tesoroz-dark-theme .thp-pdf-image-hero h2,.tesoroz-car-dark-theme .thp-pdf-image-hero h2 { color:#fff; }
.tesoroz-dark-theme .thp-pdf-image-hero p,.tesoroz-car-dark-theme .thp-pdf-image-hero p { color:#d0cfd5; }
.tesoroz-dark-theme .thp-pdf-image-hero__icon,.tesoroz-car-dark-theme .thp-pdf-image-hero__icon { background:rgba(35,36,40,.82); color:#60d8ac; }
.tesoroz-dark-theme .thp-pdf-image-private,.tesoroz-car-dark-theme .thp-pdf-image-private { color:#78e0b8; }
.tesoroz-dark-theme .thp-pdf-image-page__canvas,.tesoroz-car-dark-theme .thp-pdf-image-page__canvas { background:#333438; }

html body.tesoroz-pdf-image-active .thp-pdf-image-header p,
html body.tesoroz-pdf-image-active .thp-pdf-image-hero p,
html body.tesoroz-pdf-image-active .thp-pdf-image-card-head p,
html body.tesoroz-pdf-image-active .thp-pdf-image-drop small,
html body.tesoroz-pdf-image-active .thp-pdf-image-file small,
html body.tesoroz-pdf-image-active .thp-pdf-image-options small,
html body.tesoroz-pdf-image-active .thp-pdf-image-progress p,
html body.tesoroz-pdf-image-active .thp-pdf-image-status,
html body.tesoroz-pdf-image-active .thp-pdf-image-result header p,
html body.tesoroz-pdf-image-active .thp-pdf-image-note { color:#55515f!important; -webkit-text-fill-color:#55515f!important; opacity:1!important; }
html body.tesoroz-pdf-image-active .thp-pdf-image-private { color:#08794f!important; -webkit-text-fill-color:#08794f!important; opacity:1!important; }
html body.tesoroz-pdf-image-active .thp-pdf-image-status.is-error { color:#c9223d!important; -webkit-text-fill-color:#c9223d!important; }
html body.tesoroz-pdf-image-active .thp-pdf-image-status.is-success { color:#08794f!important; -webkit-text-fill-color:#08794f!important; }
html body.tesoroz-pdf-image-active .thp-pdf-image-status.is-warning { color:#9a4c0d!important; -webkit-text-fill-color:#9a4c0d!important; }
html.tesoroz-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-header p,
html.tesoroz-car-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-header p,
html.tesoroz-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-hero p,
html.tesoroz-car-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-hero p,
html.tesoroz-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-card-head p,
html.tesoroz-car-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-card-head p,
html.tesoroz-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-drop small,
html.tesoroz-car-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-drop small,
html.tesoroz-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-file small,
html.tesoroz-car-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-file small,
html.tesoroz-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-options small,
html.tesoroz-car-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-options small,
html.tesoroz-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-progress p,
html.tesoroz-car-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-progress p,
html.tesoroz-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-status,
html.tesoroz-car-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-status,
html.tesoroz-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-result header p,
html.tesoroz-car-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-result header p,
html.tesoroz-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-note,
html.tesoroz-car-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-note { color:#cbc8d2!important; -webkit-text-fill-color:#cbc8d2!important; }
html.tesoroz-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-private,
html.tesoroz-car-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-private,
html.tesoroz-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-status.is-success,
html.tesoroz-car-dark-theme body.tesoroz-pdf-image-active .thp-pdf-image-status.is-success { color:#78e0b8!important; -webkit-text-fill-color:#78e0b8!important; }

@media (max-width:900px) {
  .thp-pdf-image-workspace{grid-template-columns:1fr}.thp-pdf-image-settings{position:static}
}
@media (max-width:700px) {
  .thp-pdf-image-main{padding:8px 8px 90px}.thp-pdf-image-app .thp-rail__profile{display:none}.thp-pdf-image-header{min-height:68px;padding:11px 13px}.thp-pdf-image-header h1{font-size:20px}.thp-pdf-image-header p{display:none}.thp-pdf-image-private{display:none}.thp-pdf-image-hero{min-height:140px;padding:22px 18px}.thp-pdf-image-hero h2{font-size:24px}.thp-pdf-image-hero p{font-size:10px}.thp-pdf-image-hero__icon{width:66px;height:66px;border-radius:19px}.thp-pdf-image-hero__icon svg{width:32px;height:32px}.thp-pdf-image-upload-card,.thp-pdf-image-preview,.thp-pdf-image-settings,.thp-pdf-image-result{padding:15px}.thp-pdf-image-result__actions{display:grid}
}
@media (max-width:420px) {
  .thp-pdf-image-hero__icon{display:none}.thp-pdf-image-drop{min-height:190px;padding:18px}.thp-pdf-image-pages{grid-template-columns:repeat(2,minmax(0,1fr))}.thp-pdf-image-page__canvas{height:138px}.thp-pdf-image-range{display:grid}
}
