/* PDF Studio pilot: scoped so shared tool styles on other pages stay independent. */
.pdf-studio-theme { background:#f1f3f5; background-image:none; --gov-border:#d9dde2; --border-color:#d9dde2; }
.pdf-studio-theme .studio-container { max-width:none; padding:12px 16px 20px; grid-template-columns:350px minmax(0,1fr); gap:14px; }
.pdf-studio-theme .sidebar-tools-panel { border-radius:4px; padding:16px; gap:8px; box-shadow:none; top:90px; max-height:calc(100dvh - 108px); }
.pdf-studio-theme .sidebar-section-title { padding-bottom:12px; margin-bottom:4px; color:#1f2d48; font-size:13px; font-weight:700; border-bottom:1px solid #e2e8f0; }
.pdf-studio-theme .pdf-tool-item-card { border:1px solid #dfe3e8; border-radius:6px; background:#fff; padding:11px 10px; box-shadow:none; transform:none; min-width:0; }
.pdf-studio-theme .pdf-tool-item-card:hover { border-color:#93b4e3; background:#f8fbff; transform:none; box-shadow:none; }
.pdf-studio-theme .pdf-tool-item-card.active { border-color:#7897b7; background:#eff6ff; box-shadow:inset 3px 0 #376da4; }
.pdf-studio-theme .pdf-tool-item-left,.pdf-studio-theme .pdf-tool-item-meta { min-width:0; }
.pdf-studio-theme .pdf-tool-item-icon { width:30px; height:30px; min-width:30px; background:#f1f5f9; border-radius:6px; font-size:16px; box-shadow:none; }
.pdf-studio-theme .pdf-tool-item-title { font-size:12px; font-weight:600; }
.pdf-studio-theme .pdf-tool-item-desc { font-size:11px; line-height:1.5; color:#64748b; }
.pdf-studio-theme .pdf-tool-item-open-btn { border:1px solid #cbd5e1; background:#fff; color:#234e7b; border-radius:5px; padding:4px 9px; box-shadow:none; font-size:11px; }
.pdf-studio-theme .pdf-tool-item-badge { display:inline-flex; align-items:center; justify-content:center; background:#2563eb; color:#ffffff!important; font-size:9.5px; font-weight:800; padding:2px 7px; border-radius:4px; line-height:1.2; letter-spacing:0.03em; text-transform:uppercase; box-shadow:0 1px 2px rgba(0,0,0,0.12); }
.pdf-studio-theme .pdf-tool-item-badge[style*="background"] { color:#ffffff!important; }
.pdf-studio-theme .pdf-studio-card { border-radius:4px; box-shadow:none; min-height:calc(100dvh - 108px); background:#e2e5e9; }
.pdf-studio-theme .studio-workspace-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:16px; border-bottom:1px solid #d9dde2; background:#fafafa; }
.pdf-studio-theme .studio-workspace-heading strong { display:block; font-size:14px; color:#1f2d48; }
.pdf-studio-theme .studio-workspace-heading span { font-size:12px; color:#64748b; }
.pdf-studio-theme .studio-workspace-hint { background:#eff6ff; border:1px solid #dbeafe; border-radius:6px; padding:8px 10px; }
.pdf-studio-theme .studio-welcome-dropzone { flex:1; border:0; border-radius:0; padding:40px 24px; background:#e2e5e9; min-height:520px; transform:none; }
.pdf-studio-theme .studio-welcome-dropzone:hover { background:#e2e5e9; transform:none; }
.pdf-studio-theme .studio-welcome-panel { display:flex; flex-direction:column; align-items:center; gap:18px; width:100%; max-width:620px; padding:40px 26px; background:#fff; border:1px solid #d9dde2; border-radius:4px; }
.pdf-studio-theme .studio-welcome-icon { background:transparent; border-radius:0; box-shadow:none; height:52px; }
.pdf-studio-theme .studio-welcome-title { font-family:'Outfit','Inter',sans-serif; font-size:23px; color:#1f2d48; }
.pdf-studio-theme .studio-welcome-sub { font-size:13px; line-height:1.7; }
.pdf-studio-theme .studio-quick-chip { border-radius:5px; font-size:11px; padding:5px 8px; font-weight:500; box-shadow:none; background:#f8fafc; }
.pdf-studio-theme .btn { border-radius:6px!important; box-shadow:none!important; transform:none!important; font-weight:600; }
.pdf-studio-theme .btn-primary { background:#2563eb!important; border-color:#2563eb!important; color:#fff!important; }
.pdf-studio-theme .btn-primary:hover { background:#1d4ed8!important; }
.pdf-studio-theme .btn-secondary { background:#fff!important; border:1px solid #cbd5e1!important; color:#334155!important; }
.pdf-studio-theme :is(.form-control,.form-select,.pdf-input-field,.pdf-select-field) { border:1px solid #cbd5e1; border-radius:6px; font-size:12px; }
.pdf-studio-theme :is(button,a,input,select):focus-visible { outline:2px solid #2563eb; outline-offset:3px; }
.pdf-studio-theme .pdf-modal-header { background:#fff; border-bottom:1px solid #d9dde2; flex-wrap:wrap; gap:12px; }
.pdf-studio-theme .pdf-modal-header>div { min-width:0; max-width:100%; }
.pdf-studio-theme #plPdfDocTitle { overflow-wrap:anywhere; }
.pdf-studio-theme .pdf-modal-nav { background:#fafafa; border-bottom:1px solid #d9dde2; padding:8px 12px; gap:4px; }
.pdf-studio-theme .pdf-tab-btn { background:transparent; color:#626973; border:0; border-bottom:2px solid transparent; border-radius:4px 4px 0 0; box-shadow:none; font-size:12px; font-weight:500; padding:9px 10px; }
.pdf-studio-theme .pdf-tab-btn.active { background:#edf2f8; color:#234e7b; border-bottom-color:#376da4; box-shadow:none; }
.pdf-studio-theme .pdf-modal-body { background:#e2e5e9; padding:16px; }
.pdf-studio-theme .pdf-subtoolbar { background:#fafafa; border:1px solid #d9dde2; border-radius:6px; padding:12px; gap:10px; }
.pdf-studio-theme .pdf-subtoolbar-left,.pdf-studio-theme .pdf-subtoolbar-right { min-width:0; flex-wrap:wrap; }
.pdf-studio-theme .gov-footer { margin-top:0; }
@media(max-width:1200px) {
  .pdf-studio-theme .studio-container { grid-template-columns:290px minmax(0,1fr); }
  .pdf-studio-theme .gov-header-inner { flex-wrap:wrap; }
  .pdf-studio-theme .sidebar-tools-panel { top:130px; max-height:calc(100dvh - 148px); }
}
@media(max-width:760px) {
  .pdf-studio-theme .studio-container { grid-template-columns:minmax(0,1fr); padding:10px; gap:12px; }
  .pdf-studio-theme .pdf-studio-card { grid-row:1; min-height:480px; }
  .pdf-studio-theme .sidebar-tools-panel { grid-row:2; position:static; max-height:none; }
  .pdf-studio-theme .studio-workspace-heading { padding:12px; }
  .pdf-studio-theme .studio-workspace-hint { display:none; }
  .pdf-studio-theme .studio-welcome-dropzone { padding:20px 12px; min-height:400px; }
  .pdf-studio-theme .studio-welcome-panel { padding:26px 16px; gap:14px; }
  .pdf-studio-theme .studio-welcome-title { font-size:20px; }
  .pdf-studio-theme .pdf-modal-body { padding:10px; }
  .pdf-studio-theme .pdf-modal-nav { padding:8px; }
  .pdf-studio-theme .pdf-tab-btn { flex:1 1 130px; justify-content:center; }
}/* Keep the brand readable when the header navigation gets crowded. */
.pdf-studio-theme .gov-brand { flex-shrink:0; }
.pdf-studio-theme .gov-brand-title { white-space:nowrap; }
.pdf-studio-theme .gov-brand-subtitle { max-width:340px; }
.pdf-studio-theme .gov-header-nav { gap:2px; justify-content:flex-end; }
.pdf-studio-theme .gov-header-link { font-size:11px; padding:6px 8px; }
@media(max-width:1200px) {
  .pdf-studio-theme .gov-header-nav { justify-content:flex-start; }
}
@media(max-width:480px) {
  .pdf-studio-theme .gov-brand { gap:8px; max-width:100%; flex-shrink:1; }
  .pdf-studio-theme .gov-brand-title { white-space:normal; flex-wrap:wrap; gap:4px; font-size:16px; }
  .pdf-studio-theme .gov-brand-subtitle { font-size:10px; }
}