/* BAOI 5.3.34.3 — P2 / PDF Tool Family Convergence.
 * Exact-route presentation layer for the sealed 19 PDF identities.
 * Engines remain native owners; this file only converges visual language.
 */
body.baoi-tool-p2-pdf-v5343{
  --baoi-p2pdf-bg:var(--baoi-gold-bg,#0c1220);
  --baoi-p2pdf-panel:var(--baoi-gold-panel,#111a2b);
  --baoi-p2pdf-panel2:var(--baoi-gold-panel-2,#172236);
  --baoi-p2pdf-border:var(--baoi-gold-border,rgba(148,163,184,.20));
  --baoi-p2pdf-text:var(--baoi-gold-text,#f8fafc);
  --baoi-p2pdf-muted:var(--baoi-gold-muted,#a8b3c7);
  --baoi-p2pdf-accent:var(--baoi-gold-accent,#31d5c8);
  --baoi-p2pdf-success:var(--baoi-gold-success,#5ee09d);
  --baoi-p2pdf-control:#091321;
  --baoi-p2pdf-code:#050914;
  --baoi-p2pdf-danger:#fb7185;
}

/* One PDF workspace, regardless of historical renderer wave. */
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc,.boai-pdfc,.boai-pdftb,.boai-pdftb2,.boai-pdftb3,.boai-pdftb4){
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  color:var(--baoi-p2pdf-text)!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc,.boai-pdfc,.boai-pdftb,.boai-pdftb2,.boai-pdftb3,.boai-pdftb4) *{box-sizing:border-box}

/* P2PDF_HERO_DENSITY — internal PDF heroes become compact application context,
 * not a second mini-site hero competing with the public page H1. */
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__hero,.boai-pdfc-hero,.boai-pdftb-hero,.boai-pdftb2-hero,.boai-pdftb3>header,.boai-pdftb4>header){
  margin:0 0 14px!important;
  padding:0!important;
  color:var(--baoi-p2pdf-text)!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__kicker,.boai-pdfc-kicker,.boai-pdftb-kicker,.boai-pdftb2-kicker,.boai-pdftb3-kicker,.boai-pdftb4-kicker){
  display:inline-flex!important;
  margin:0 0 7px!important;
  color:var(--baoi-p2pdf-accent)!important;
  font-size:11px!important;
  font-weight:850!important;
  letter-spacing:.11em!important;
  line-height:1.2!important;
  text-transform:uppercase!important;
  opacity:1!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__hero h2,.boai-pdfc-hero h2,.boai-pdftb-hero h2,.boai-pdftb2-hero h2,.boai-pdftb3>header h2,.boai-pdftb4>header h2){
  margin:0 0 6px!important;
  color:var(--baoi-p2pdf-text)!important;
  font-size:clamp(22px,2.3vw,30px)!important;
  line-height:1.12!important;
  letter-spacing:-.025em!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__hero p,.boai-pdfc-lead,.boai-pdftb-hero p,.boai-pdftb2-hero p,.boai-pdftb3>header p,.boai-pdftb4>header p){
  max-width:84ch!important;
  margin:0!important;
  color:var(--baoi-p2pdf-muted)!important;
  font-size:14px!important;
  line-height:1.55!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__badges,.boai-pdfc-badges,.boai-pdftb-badges,.boai-pdftb2-badges){
  display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin:10px 0 0!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__badges span,.boai-pdfc-badge,.boai-pdftb-badges span,.boai-pdftb2-badges span){
  border:1px solid rgba(49,213,200,.22)!important;
  border-radius:999px!important;
  padding:5px 9px!important;
  background:rgba(49,213,200,.07)!important;
  color:#c9fbf5!important;
  font-size:12px!important;
  font-weight:760!important;
  box-shadow:none!important;
}

/* Shared primary application surfaces. */
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__panel,.boai-pdfc-card,.boai-pdftb-card,.boai-pdftb2-card,.boai-pdftb3-card,.boai-pdftb4-card){
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:18px!important;
  border:1px solid var(--baoi-p2pdf-border)!important;
  border-radius:18px!important;
  background:rgba(17,26,43,.90)!important;
  color:var(--baoi-p2pdf-text)!important;
  box-shadow:none!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__panel,.boai-pdfc-card,.boai-pdftb-card,.boai-pdftb2-card,.boai-pdftb3-card,.boai-pdftb4-card) :where(h2,h3,legend,label,strong){color:var(--baoi-p2pdf-text)!important}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__panel,.boai-pdfc-card,.boai-pdftb-card,.boai-pdftb2-card,.boai-pdftb3-card,.boai-pdftb4-card) :where(p,small){color:var(--baoi-p2pdf-muted)!important}

/* Full-workspace engines keep their useful split/result geometry. */
body.baoi-tool-p2-pdf-v5343 .boai-uc__grid{grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr)!important;gap:14px!important}
body.baoi-tool-p2-pdf-v5343 .boai-uc__result{height:100%}
body.baoi-tool-p2-pdf-v5343 .boai-uc__metrics{gap:8px!important}
body.baoi-tool-p2-pdf-v5343 .boai-uc__metrics div{
  border:1px solid var(--baoi-p2pdf-border)!important;border-radius:11px!important;background:var(--baoi-p2pdf-panel2)!important;color:var(--baoi-p2pdf-text)!important;
}
body.baoi-tool-p2-pdf-v5343 .boai-uc__engine code{color:#d7f7f4!important}

/* P2PDF_DROPZONE — one drag/drop language across all six PDF renderer owners. */
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__drop,.boai-pdfc-drop,.boai-pdftb-drop,.boai-pdftb2-drop,.boai-pdftb3-drop,.boai-pdftb4-drop){
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:112px!important;
  padding:18px 14px!important;
  border:1px dashed rgba(49,213,200,.38)!important;
  border-radius:14px!important;
  background:rgba(49,213,200,.035)!important;
  color:var(--baoi-p2pdf-text)!important;
  align-items:center!important;
  justify-content:center!important;
  flex-direction:column!important;
  gap:7px!important;
  text-align:center!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__drop:hover,.boai-uc__drop.is-drag,.boai-pdfc-drop:hover,.boai-pdfc-drop.is-drag,.boai-pdftb-drop:hover,.boai-pdftb2-drop:hover,.boai-pdftb3-drop:hover,.boai-pdftb4-drop:hover){
  border-color:rgba(49,213,200,.75)!important;background:rgba(49,213,200,.075)!important;transform:none!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__drop small,.boai-pdfc-file-name,.boai-pdftb-file,.boai-pdftb2-file,.boai-pdftb3-file,.boai-pdftb4-file){
  color:var(--baoi-p2pdf-muted)!important;opacity:1!important;overflow-wrap:anywhere!important;
}
body.baoi-tool-p2-pdf-v5343 .boai-uc__drop-icon{color:var(--baoi-p2pdf-accent)!important}

/* Fields and options. */
body.baoi-tool-p2-pdf-v5343 :where(.boai-pdftb-field,.boai-pdftb2-field,.boai-pdftb3-options label,.boai-pdftb4-options label,.boai-uc__levels legend){
  color:var(--baoi-p2pdf-text)!important;font-weight:750!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-pdftb-field input,.boai-pdftb-field select,.boai-pdftb2-field input,.boai-pdftb2-field select,.boai-pdftb3-options input:not([type=checkbox]):not([type=radio]),.boai-pdftb3-options select,.boai-pdftb4-options input:not([type=checkbox]):not([type=radio]):not([type=range]),.boai-pdftb4-options select){
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:44px!important;
  padding:10px 12px!important;
  border:1px solid var(--baoi-p2pdf-border)!important;
  border-radius:11px!important;
  background:var(--baoi-p2pdf-control)!important;
  color:var(--baoi-p2pdf-text)!important;
  font:inherit!important;
  outline:none!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-pdftb-field input,.boai-pdftb-field select,.boai-pdftb2-field input,.boai-pdftb2-field select,.boai-pdftb3-options input,.boai-pdftb3-options select,.boai-pdftb4-options input,.boai-pdftb4-options select):focus{
  border-color:var(--baoi-p2pdf-accent)!important;box-shadow:0 0 0 3px rgba(49,213,200,.12)!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-pdftb-field small,.boai-pdftb2-field small,.boai-pdftb3-note,.boai-pdftb4-note,.boai-pdftb4-opacity-value){
  color:var(--baoi-p2pdf-muted)!important;opacity:1!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-pdftb2-grid,.boai-pdftb3-grid,.boai-pdftb4-grid){gap:12px!important}
body.baoi-tool-p2-pdf-v5343 .boai-pdftb2-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}

/* Compressor levels use the same selectable-card language as converter formats. */
body.baoi-tool-p2-pdf-v5343 .boai-uc__levels{gap:8px!important;margin:14px 0!important}
body.baoi-tool-p2-pdf-v5343 .boai-uc__levels label,
body.baoi-tool-p2-pdf-v5343 .boai-pdfc-format{
  border:1px solid var(--baoi-p2pdf-border)!important;
  border-radius:11px!important;
  background:var(--baoi-p2pdf-panel2)!important;
  color:var(--baoi-p2pdf-text)!important;
  box-shadow:none!important;
}
body.baoi-tool-p2-pdf-v5343 .boai-uc__levels label{padding:10px!important}
body.baoi-tool-p2-pdf-v5343 .boai-uc__levels label.is-selected,
body.baoi-tool-p2-pdf-v5343 .boai-pdfc-format.is-active{
  outline:0!important;border-color:rgba(49,213,200,.58)!important;background:rgba(49,213,200,.12)!important;color:#dcfffb!important;
}
body.baoi-tool-p2-pdf-v5343 .boai-pdfc-formats{gap:8px!important;margin:14px 0!important}
body.baoi-tool-p2-pdf-v5343 .boai-pdfc-format{min-height:56px!important;padding:9px 7px!important;font-weight:800!important}
body.baoi-tool-p2-pdf-v5343 .boai-pdfc-format small{color:var(--baoi-p2pdf-muted)!important}

/* Shared primary CTA. */
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__button,.boai-pdfc-convert,.boai-pdftb-run,.boai-pdftb2-run,.boai-pdftb3-run,.boai-pdftb4-run){
  min-height:44px!important;
  border:0!important;
  border-radius:11px!important;
  padding:11px 16px!important;
  background:linear-gradient(135deg,var(--baoi-p2pdf-accent),#7ee7dc)!important;
  color:#041313!important;
  font:800 14px/1.2 inherit!important;
  box-shadow:none!important;
  cursor:pointer!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-pdfc-convert,.boai-pdftb-run,.boai-pdftb2-run,.boai-pdftb3-run,.boai-pdftb4-run){margin-top:14px!important}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__button,.boai-pdfc-convert,.boai-pdftb-run,.boai-pdftb2-run,.boai-pdftb3-run,.boai-pdftb4-run):disabled{opacity:.5!important;cursor:not-allowed!important}

/* Progress and status have one quiet product grammar. */
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__progress,.boai-pdfc-progress,.boai-pdftb-bar,.boai-pdftb2-bar,.boai-pdftb3-progress>div,.boai-pdftb4-progress>div){
  height:8px!important;border-radius:999px!important;background:#1e2a3d!important;overflow:hidden!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__progress span,.boai-pdfc-progress span,.boai-pdftb-bar span,.boai-pdftb2-bar span,.boai-pdftb3-progress span,.boai-pdftb4-progress span){
  background:var(--baoi-p2pdf-accent)!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__status,.boai-pdfc-status,.boai-pdftb-status,.boai-pdftb2-status,.boai-pdftb3-status,.boai-pdftb4-status){
  color:var(--baoi-p2pdf-muted)!important;line-height:1.5!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-pdftb-status.is-error,.boai-pdftb2-status.is-error,.boai-pdftb3-status.is-error,.boai-pdftb4-status.is-error,.boai-pdfc-status[data-kind="error"]){color:var(--baoi-p2pdf-danger)!important}
body.baoi-tool-p2-pdf-v5343 .boai-pdfc-status{
  border:1px solid var(--baoi-p2pdf-border)!important;border-radius:10px!important;background:var(--baoi-p2pdf-panel2)!important;padding:10px 12px!important;
}
body.baoi-tool-p2-pdf-v5343 .boai-pdfc-status[data-kind="success"]{color:var(--baoi-p2pdf-success)!important;background:rgba(94,224,157,.07)!important}

/* Help/guide surfaces remain useful but visually secondary. */
body.baoi-tool-p2-pdf-v5343 :where(.boai-pdftb-help,.boai-pdftb2-help,.boai-pdftb3-help,.boai-pdftb4-help){
  margin-top:14px!important;
  padding:13px 14px!important;
  border:1px solid var(--baoi-p2pdf-border)!important;
  border-radius:12px!important;
  background:rgba(17,26,43,.58)!important;
  color:var(--baoi-p2pdf-muted)!important;
  box-shadow:none!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-pdftb-help,.boai-pdftb2-help,.boai-pdftb3-help,.boai-pdftb4-help) h3{margin:0 0 5px!important;color:var(--baoi-p2pdf-text)!important;font-size:14px!important}
body.baoi-tool-p2-pdf-v5343 :where(.boai-pdftb-help,.boai-pdftb2-help,.boai-pdftb3-help,.boai-pdftb4-help) p{margin:0!important;color:var(--baoi-p2pdf-muted)!important;line-height:1.55!important;font-size:13px!important}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__guide,.boai-pdfc-guide){
  margin-top:20px!important;padding-top:18px!important;border-top:1px solid var(--baoi-p2pdf-border)!important;color:var(--baoi-p2pdf-muted)!important;
}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__guide,.boai-pdfc-guide) :where(h2,h3){color:var(--baoi-p2pdf-text)!important}
body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__guide,.boai-pdfc-guide) :where(p,li){color:var(--baoi-p2pdf-muted)!important;line-height:1.6!important}
body.baoi-tool-p2-pdf-v5343 .boai-pdfc-note{color:var(--baoi-p2pdf-muted)!important}
body.baoi-tool-p2-pdf-v5343 .boai-uc__capabilities{margin:14px 0!important;color:var(--baoi-p2pdf-muted)!important}
body.baoi-tool-p2-pdf-v5343 .boai-uc__capabilities>strong{color:var(--baoi-p2pdf-text)!important}
body.baoi-tool-p2-pdf-v5343 .boai-uc__capabilities span{
  border:1px solid var(--baoi-p2pdf-border)!important;border-radius:999px!important;padding:5px 9px!important;background:var(--baoi-p2pdf-panel2)!important;color:var(--baoi-p2pdf-muted)!important;
}
body.baoi-tool-p2-pdf-v5343 .boai-uc__capabilities .is-ok{color:var(--baoi-p2pdf-success)!important}

/* Accessible native check/radio/range controls remain engine-owned. */
body.baoi-tool-p2-pdf-v5343 :where(.boai-pdftb3-check,.boai-pdftb4-check){color:var(--baoi-p2pdf-text)!important}
body.baoi-tool-p2-pdf-v5343 :where(input[type=checkbox],input[type=radio]){accent-color:var(--baoi-p2pdf-accent)}
body.baoi-tool-p2-pdf-v5343 .boai-pdftb4-options input[type=range]{accent-color:var(--baoi-p2pdf-accent);background:transparent!important}

@media(max-width:900px){
  body.baoi-tool-p2-pdf-v5343 .boai-uc__grid{grid-template-columns:1fr!important}
  body.baoi-tool-p2-pdf-v5343 .boai-pdfc-formats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.baoi-tool-p2-pdf-v5343 .boai-pdftb2-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__panel,.boai-pdfc-card,.boai-pdftb-card,.boai-pdftb2-card,.boai-pdftb3-card,.boai-pdftb4-card){padding:14px!important;border-radius:15px!important}
  body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__hero h2,.boai-pdfc-hero h2,.boai-pdftb-hero h2,.boai-pdftb2-hero h2,.boai-pdftb3>header h2,.boai-pdftb4>header h2){font-size:22px!important}
  body.baoi-tool-p2-pdf-v5343 :where(.boai-uc__drop,.boai-pdfc-drop,.boai-pdftb-drop,.boai-pdftb2-drop,.boai-pdftb3-drop,.boai-pdftb4-drop){min-height:98px!important;padding:15px 10px!important}
  body.baoi-tool-p2-pdf-v5343 :where(.boai-pdftb2-grid,.boai-pdftb2-grid-4,.boai-pdftb3-grid,.boai-pdftb4-grid){grid-template-columns:1fr!important}
  body.baoi-tool-p2-pdf-v5343 .boai-pdfc-formats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.baoi-tool-p2-pdf-v5343 :where(.boai-pdfc-convert,.boai-pdftb-run,.boai-pdftb2-run,.boai-pdftb3-run,.boai-pdftb4-run,.boai-uc__button){width:100%!important;justify-content:center!important}
}
@media(max-width:390px){
  body.baoi-tool-p2-pdf-v5343 .boai-pdfc-formats{grid-template-columns:1fr!important}
  body.baoi-tool-p2-pdf-v5343 .boai-uc__levels{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){
  body.baoi-tool-p2-pdf-v5343 *,body.baoi-tool-p2-pdf-v5343 *::before,body.baoi-tool-p2-pdf-v5343 *::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
