body[data-tool="html-to-pdf"] [hidden]{display:none!important}body[data-tool="html-to-pdf"] #web-options{display:flex;flex-direction:column;gap:11px;min-width:0;width:100%;text-align:left}body[data-tool="html-to-pdf"] #web-start-source{width:100%;margin-top:14px}body[data-tool="html-to-pdf"] #web-start-source #web-options{padding:20px;border:1px solid var(--tool-border);border-radius:24px;background:#fff;box-shadow:0 4px 20px #29213b03}body[data-tool="html-to-pdf"] #web-start-source .web-print-settings{display:none}body[data-tool="html-to-pdf"] #web-empty{margin:auto;min-height:0;max-width:640px}body[data-tool="html-to-pdf"] #web-empty h1{font-size:clamp(30px,4vw,46px)}
.web-mode-tabs{margin-bottom:3px;width:100%;padding:4px;background:var(--tool-action-tint);border-radius:16px}.web-mode-tabs button{flex:1;white-space:nowrap;justify-content:center;background:transparent!important;color:var(--tool-action)!important;min-height:36px;border-radius:12px!important;font-size:12px!important;padding:6px 9px!important}.web-mode-tabs button[aria-pressed=true]{background:white!important;box-shadow:0 1px 4px #22173910;color:var(--tool-action)!important}
#web-url-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}#web-url-form label{grid-column:1/-1;margin:0;font-size:12px}#web-url{min-width:0;width:100%}#web-url-form button{min-height:44px;border-radius:14px!important;margin:0!important;padding:9px 17px!important}#web-start-source #web-original,#web-wikipedia-pdf{display:none!important}#web-work-source #web-original{display:inline-flex;font-size:12px;padding:7px 0;background:transparent}
#web-pdf-result .document-paper-scroll{height:calc(100dvh - 300px);max-height:none;min-height:260px}#web-pdf-result .document-paper{width:min(100%,640px)}#web-pdf-count{font-size:12px;color:#6e6474}#web-work-source{min-height:0;overflow:auto;scrollbar-width:thin;flex:1}#web-progress{height:5px;width:100%}body.web-pending #status-area{font-size:13px;color:var(--tool-action)}body.web-pending #status-area .status-msg{background:transparent;padding:4px 0;margin:0}body[data-tool="html-to-pdf"] #drop-zone{display:flex;gap:14px}body[data-tool="html-to-pdf"] .web-print-settings .adv-options{margin-top:10px}
#web-stage{position:relative;overflow:auto;height:calc(100dvh - 320px);min-height:300px;border:1px solid var(--tool-border);background:white;border-radius:18px}#web-frame{border:0;transform-origin:top left}body[data-tool="html-to-pdf"]:not(.has-advanced-files) #main-workspace-drop{display:flex;flex-direction:column}body[data-tool="html-to-pdf"]:not(.has-advanced-files) .workspace-toolbar{display:none}
@media(max-width:767px),(max-height:620px){#web-pdf-result .document-paper-scroll{height:auto;max-height:65dvh}#web-stage{height:60dvh}#web-start-source #web-options{padding:15px!important}body[data-tool="html-to-pdf"] #web-empty{padding-top:10px}#web-url-form button{padding:9px 12px!important}}
body[data-tool="html-to-pdf"]:not(.has-advanced-files) .tool-layout{grid-template-columns:minmax(0,1fr)!important}body[data-tool="html-to-pdf"]:not(.has-advanced-files) #drop-zone{display:none!important}#web-start-feedback{max-width:560px;width:100%;margin:0 auto}#web-feedback .option-actions{display:flex;align-items:center;gap:12px}#web-feedback .status-msg{font-size:12px;margin:5px 0;padding:4px 0}#web-feedback progress{flex:1}#web-feedback button{font-size:12px;padding:7px 12px;border-radius:11px;background:var(--tool-action-tint);color:var(--tool-action)}
body[data-tool="html-to-pdf"] #main-workspace-drop>#web-start-feedback{display:block!important}#web-start-feedback:empty{display:none!important}
