.ro-stte{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ro-text,#172033);background:var(--ro-bg,#f4f7fb);border-radius:22px;padding:clamp(14px,3vw,30px);width:100%;min-height:75vh;box-sizing:border-box;color-scheme:light}.ro-stte *{box-sizing:border-box}.ro-stte[data-active-theme="dark"]{--ro-bg:#101827;--ro-card:#182437;--ro-text:#eaf1fb;--ro-muted:#b8c5d8;--ro-border:#40516a;--ro-control:#111c2d;color-scheme:dark}.ro-stte[data-active-theme="light"]{--ro-muted:#596579;--ro-border:#cbd5e1;--ro-control:#fff;color-scheme:light}.ro-stte-head{display:flex;align-items:center;gap:14px;margin-bottom:20px;padding:clamp(14px,2.5vw,24px);border-radius:18px;background:var(--ro-title-bg,transparent);border:1px solid #8b98ad25}.ro-stte-brand{flex:0 0 auto}.ro-stte-logo{width:54px;height:54px;object-fit:contain;border-radius:13px}.ro-stte-mark{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;color:white;font-weight:900;background:linear-gradient(135deg,var(--ro-accent),var(--ro-accent2));font-size:19px}.ro-stte-heading{flex:1;min-width:0}.ro-stte h2{font-size:clamp(21px,3vw,30px);line-height:1.2;margin:0 0 6px;color:var(--ro-title-color,var(--ro-text));overflow-wrap:anywhere}.ro-stte h3{font-size:17px;margin:0 0 16px;color:var(--ro-text)}.ro-stte p{margin:0 0 8px}.ro-stte-heading p{color:var(--ro-subtitle-color,var(--ro-muted));opacity:1}.ro-theme{white-space:nowrap;border:1px solid var(--ro-border);background:var(--ro-card);color:var(--ro-text);border-radius:999px;padding:10px 13px;cursor:pointer}.ro-stte-privacy{padding:12px 15px;border:1px solid #16b8a644;background:color-mix(in srgb,var(--ro-accent2) 9%,var(--ro-card));border-radius:12px;margin-bottom:20px;font-size:13px;line-height:1.55}.ro-stte-workspace{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.2fr);gap:18px}.ro-stte-panel{background:var(--ro-card);border:1px solid var(--ro-border);border-radius:18px;padding:20px;min-width:0;box-shadow:0 8px 30px #17203308}.ro-stte-drop{border:2px dashed var(--ro-border);border-radius:16px;min-height:245px;padding:20px 14px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:10px;cursor:text;outline:none}.ro-stte-drop:focus,.ro-stte-drop.dragover{border-color:var(--ro-accent);background:color-mix(in srgb,var(--ro-accent) 7%,var(--ro-card))}.ro-drop-icon{font-size:30px;color:var(--ro-accent);background:color-mix(in srgb,var(--ro-accent) 12%,transparent);border-radius:50%;width:52px;height:52px;display:grid;place-items:center}.ro-stte-drop span,.ro-stte-drop small{font-size:12px;color:var(--ro-muted);line-height:1.5}.ro-file{display:none}.ro-primary,.ro-secondary{border:0;border-radius:10px;padding:11px 15px;font-weight:700;cursor:pointer;font-size:13px;transition:transform .15s,opacity .15s;line-height:1.35}.ro-primary{background:var(--ro-accent);color:#fff!important}.ro-secondary{background:color-mix(in srgb,var(--ro-text) 9%,var(--ro-card));color:var(--ro-text)!important;border:1px solid var(--ro-border)}.ro-primary:hover,.ro-secondary:hover{transform:translateY(-1px);filter:brightness(1.05)}.ro-primary:disabled{opacity:.45;cursor:not-allowed;transform:none}.ro-stte .ro-language-label{display:block;font-size:13px;font-weight:700;margin:18px 0 12px;color:var(--ro-text)}.ro-language,.ro-pages,.ro-stte input:not([type="file"]),.ro-stte select,.ro-stte textarea{font:inherit}.ro-language,.ro-pages{display:block;width:100%;margin-top:7px;background:var(--ro-control,var(--ro-card))!important;color:var(--ro-text)!important;border:1px solid var(--ro-border)!important;border-radius:10px;padding:11px;min-height:42px;box-shadow:none!important}.ro-stte select option,.ro-stte select optgroup{background:var(--ro-control,#fff)!important;color:var(--ro-text)!important}.ro-pdf-pages{margin-top:12px;font-size:13px;color:var(--ro-text)}.ro-pdf-pages small{color:var(--ro-muted)}.ro-preview-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.ro-preview-item{font-size:12px;border-radius:8px;background:color-mix(in srgb,var(--ro-accent) 9%,var(--ro-card));padding:7px 9px;max-width:100%;overflow-wrap:anywhere;color:var(--ro-text)}.ro-extract{width:100%;margin-top:12px}.ro-progress{font-size:12px;min-height:20px;margin-top:10px;color:var(--ro-muted);white-space:pre-wrap;overflow-wrap:anywhere}.ro-tabs{display:flex;gap:6px;padding:4px;background:color-mix(in srgb,var(--ro-text) 5%,var(--ro-card));border-radius:12px;margin-bottom:13px}.ro-tabs button{flex:1;border:0;background:transparent;color:var(--ro-text);padding:10px;border-radius:9px;cursor:pointer;font-weight:700;font-size:13px}.ro-tabs button.active{background:var(--ro-card);box-shadow:0 2px 8px #17203312;color:var(--ro-accent)}.ro-output,.ro-table-output{display:block;width:100%;min-height:330px;resize:vertical;background:var(--ro-control,var(--ro-card))!important;color:var(--ro-text)!important;border:1px solid var(--ro-border)!important;border-radius:12px;padding:14px;line-height:1.65;font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;box-shadow:none!important}.ro-output::placeholder,.ro-table-output::placeholder,.ro-pages::placeholder{color:var(--ro-muted);opacity:.8}.ro-table-output{min-height:300px}.ro-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.ro-help,.ro-empty{font-size:12px;color:var(--ro-muted)}.ro-empty{margin-top:10px}.ro-stte-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px;font-size:12px;color:var(--ro-muted)}.ro-stte-footer a{color:var(--ro-accent);text-decoration:none;font-weight:700}.ro-stte [hidden]{display:none!important}.ro-stte button:focus-visible,.ro-stte select:focus-visible,.ro-stte textarea:focus-visible,.ro-stte input:focus-visible{outline:2px solid var(--ro-accent);outline-offset:2px}.ro-stte ::selection{background:var(--ro-accent);color:#fff}@media(max-width:780px){.ro-stte-workspace{grid-template-columns:1fr}.ro-stte-head{align-items:flex-start;flex-wrap:wrap}.ro-theme{margin-left:auto}.ro-output{min-height:250px}}@media(prefers-reduced-motion:reduce){.ro-stte *{transition:none!important;scroll-behavior:auto!important}}
/* 1.0.3 explicit complete theme palettes; keep every form control and button readable. */
.ro-stte[data-active-theme="light"]{--ro-bg:#f4f7fb;--ro-card:#ffffff;--ro-text:#172033;--ro-muted:#596579;--ro-border:#cbd5e1;--ro-control:#ffffff;color-scheme:light;background:var(--ro-bg);color:var(--ro-text)}
.ro-stte[data-active-theme="dark"]{--ro-bg:#101827;--ro-card:#182437;--ro-text:#edf3fc;--ro-muted:#c0ccdc;--ro-border:#455670;--ro-control:#101a2a;color-scheme:dark;background:var(--ro-bg);color:var(--ro-text)}
.ro-stte[data-active-theme="dark"] .ro-stte-panel,.ro-stte[data-active-theme="dark"] .ro-stte-guide{background:#182437;color:#edf3fc;border-color:#455670}
.ro-stte[data-active-theme="dark"] .ro-stte-drop{background:#121e30;color:#edf3fc;border-color:#536681}
.ro-stte[data-active-theme="dark"] .ro-stte select,.ro-stte[data-active-theme="dark"] .ro-stte select option,.ro-stte[data-active-theme="dark"] .ro-stte input,.ro-stte[data-active-theme="dark"] .ro-stte textarea{background-color:#101a2a!important;color:#edf3fc!important;border-color:#536681!important;color-scheme:dark}
.ro-stte[data-active-theme="light"] .ro-stte select,.ro-stte[data-active-theme="light"] .ro-stte select option,.ro-stte[data-active-theme="light"] .ro-stte input,.ro-stte[data-active-theme="light"] .ro-stte textarea{background-color:#fff!important;color:#172033!important;border-color:#cbd5e1!important;color-scheme:light}
.ro-stte[data-active-theme="dark"] .ro-secondary,.ro-stte[data-active-theme="dark"] .ro-theme{background:#26364c!important;color:#f4f7fb!important;border-color:#536681!important}
.ro-stte[data-active-theme="light"] .ro-secondary,.ro-stte[data-active-theme="light"] .ro-theme{background:#fff!important;color:#172033!important;border-color:#cbd5e1!important}
.ro-stte[data-active-theme="dark"] .ro-tabs{background:#101a2a}
.ro-stte[data-active-theme="dark"] .ro-tabs button{color:#edf3fc}
.ro-stte[data-active-theme="dark"] .ro-tabs button.active{background:#30435d;color:#9cc3ff}
.ro-stte[data-active-theme="light"] .ro-tabs button{color:#172033}
.ro-stte[data-active-theme="light"] .ro-tabs button.active{background:#fff;color:#155bd7}
.ro-stte[data-active-theme="dark"] .ro-primary{background:#2875ed!important;color:#fff!important}
.ro-stte[data-active-theme="light"] .ro-primary{background:#1769ff!important;color:#fff!important}
.ro-stte-guide{margin-top:24px;padding:22px;border:1px solid var(--ro-border);border-radius:18px;background:var(--ro-card);color:var(--ro-text)}
.ro-stte-guide h3{margin:0 0 12px;color:var(--ro-text)}
.ro-stte-guide-content{white-space:normal;line-height:1.8;color:var(--ro-text);overflow-wrap:anywhere}
.ro-stte-footer{margin-top:14px;padding:12px 2px 0;border-top:1px solid var(--ro-border);align-items:center}
.ro-stte .ro-paste{background:color-mix(in srgb,var(--ro-accent2) 16%,var(--ro-card));border:1px solid var(--ro-accent2);color:var(--ro-text)!important}
.ro-stte[data-active-theme="dark"] .ro-paste{background:#163d3a!important;color:#e8fffb!important;border-color:#278c80!important}
.ro-stte button{opacity:1}
/* 1.0.4: override common theme hover rules so button foreground/background stay contrasted. */
.ro-stte .ro-primary,.ro-stte .ro-primary:visited{background:#1769ff!important;color:#fff!important;border:1px solid #1769ff!important}
.ro-stte .ro-primary:hover,.ro-stte .ro-primary:focus,.ro-stte .ro-primary:active{background:#0b4fc4!important;color:#fff!important;border-color:#0b4fc4!important;filter:none!important;opacity:1!important}
.ro-stte[data-active-theme="dark"] .ro-primary,.ro-stte[data-active-theme="dark"] .ro-primary:visited{background:#2875ed!important;color:#fff!important;border-color:#2875ed!important}
.ro-stte[data-active-theme="dark"] .ro-primary:hover,.ro-stte[data-active-theme="dark"] .ro-primary:focus,.ro-stte[data-active-theme="dark"] .ro-primary:active{background:#4a8fff!important;color:#071326!important;border-color:#4a8fff!important}
.ro-stte .ro-secondary,.ro-stte .ro-theme,.ro-stte .ro-tabs button{transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.ro-stte[data-active-theme="light"] .ro-secondary,.ro-stte[data-active-theme="light"] .ro-theme{background:#fff!important;color:#172033!important;border:1px solid #cbd5e1!important}
.ro-stte[data-active-theme="light"] .ro-secondary:hover,.ro-stte[data-active-theme="light"] .ro-secondary:focus,.ro-stte[data-active-theme="light"] .ro-theme:hover,.ro-stte[data-active-theme="light"] .ro-theme:focus{background:#172033!important;color:#fff!important;border-color:#172033!important;filter:none!important}
.ro-stte[data-active-theme="dark"] .ro-secondary,.ro-stte[data-active-theme="dark"] .ro-theme{background:#26364c!important;color:#f4f7fb!important;border:1px solid #536681!important}
.ro-stte[data-active-theme="dark"] .ro-secondary:hover,.ro-stte[data-active-theme="dark"] .ro-secondary:focus,.ro-stte[data-active-theme="dark"] .ro-theme:hover,.ro-stte[data-active-theme="dark"] .ro-theme:focus{background:#edf3fc!important;color:#101827!important;border-color:#edf3fc!important;filter:none!important}
.ro-stte[data-active-theme="light"] .ro-tabs button:hover,.ro-stte[data-active-theme="light"] .ro-tabs button:focus{background:#172033!important;color:#fff!important}
.ro-stte[data-active-theme="dark"] .ro-tabs button:hover,.ro-stte[data-active-theme="dark"] .ro-tabs button:focus{background:#edf3fc!important;color:#101827!important}
.ro-stte .ro-stte-drop{cursor:pointer}
/* 1.0.5: deterministic hover/focus contrast, isolated from the active WordPress theme. */
.ro-stte button{font-family:inherit;cursor:pointer;opacity:1!important;text-shadow:none!important}
.ro-stte[data-active-theme="light"] button.ro-primary:not(:disabled),.ro-stte[data-active-theme="light"] button.ro-primary:not(:disabled):visited{background:#1769ff!important;color:#fff!important;border-color:#1769ff!important}
.ro-stte[data-active-theme="light"] button.ro-primary:not(:disabled):hover,.ro-stte[data-active-theme="light"] button.ro-primary:not(:disabled):focus-visible{background:#0b4fc4!important;color:#fff!important;border-color:#0b4fc4!important}
.ro-stte[data-active-theme="dark"] button.ro-primary:not(:disabled),.ro-stte[data-active-theme="dark"] button.ro-primary:not(:disabled):visited{background:#2875ed!important;color:#fff!important;border-color:#2875ed!important}
.ro-stte[data-active-theme="dark"] button.ro-primary:not(:disabled):hover,.ro-stte[data-active-theme="dark"] button.ro-primary:not(:disabled):focus-visible{background:#4a8fff!important;color:#071326!important;border-color:#4a8fff!important}
.ro-stte[data-active-theme="light"] button.ro-secondary,.ro-stte[data-active-theme="light"] button.ro-theme{background:#fff!important;color:#172033!important;border:1px solid #cbd5e1!important}
.ro-stte[data-active-theme="light"] button.ro-secondary:hover,.ro-stte[data-active-theme="light"] button.ro-secondary:focus-visible,.ro-stte[data-active-theme="light"] button.ro-theme:hover,.ro-stte[data-active-theme="light"] button.ro-theme:focus-visible{background:#172033!important;color:#fff!important;border-color:#172033!important}
.ro-stte[data-active-theme="dark"] button.ro-secondary,.ro-stte[data-active-theme="dark"] button.ro-theme{background:#26364c!important;color:#f4f7fb!important;border:1px solid #536681!important}
.ro-stte[data-active-theme="dark"] button.ro-secondary:hover,.ro-stte[data-active-theme="dark"] button.ro-secondary:focus-visible,.ro-stte[data-active-theme="dark"] button.ro-theme:hover,.ro-stte[data-active-theme="dark"] button.ro-theme:focus-visible{background:#edf3fc!important;color:#101827!important;border-color:#edf3fc!important}
.ro-stte[data-active-theme="light"] .ro-tabs button.active{background:#fff!important;color:#155bd7!important}
.ro-stte[data-active-theme="dark"] .ro-tabs button.active{background:#30435d!important;color:#c6ddff!important}
.ro-stte[data-active-theme="light"] .ro-tabs button:not(.active):hover,.ro-stte[data-active-theme="light"] .ro-tabs button:not(.active):focus-visible{background:#172033!important;color:#fff!important}
.ro-stte[data-active-theme="dark"] .ro-tabs button:not(.active):hover,.ro-stte[data-active-theme="dark"] .ro-tabs button:not(.active):focus-visible{background:#edf3fc!important;color:#101827!important}

/* 1.0.6: avoid flicker during palette changes and scope color-scheme to this tool only. */
.ro-stte[data-theme-changing="1"],.ro-stte[data-theme-changing="1"] *{transition:none!important;animation:none!important}
.ro-stte[data-active-theme="light"]{color-scheme:light!important}
.ro-stte[data-active-theme="dark"]{color-scheme:dark!important}
