/* PDFdostD4_3 merged application styling. */
:root {
  --pdfdost-saffron: #f97316;
  --pdfdost-deep: #9a3412;
  --pdfdost-ink: #431407;
  --pdfdost-cream: #fff7ed;
  --pdfdost-border: #fed7aa;
  --pdfdost-soft: #ffedd5;
  --pdfdost-green: #166534;
  --pdfdost-blue: #1d4ed8;
  --pdfdost-red: #991b1b;
}
.new-apps-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(251,146,60,.16), transparent 24%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 45%, #fffaf4 100%);
}
.new-apps-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 22px auto 34px;
}
.new-apps-hero,
.new-apps-home-card,
.new-apps-workspace,
.new-apps-policy-note,
.new-apps-panel,
.new-app-output {
  border: 1px solid rgba(251,146,60,.35);
  background: rgba(255,255,255,.94);
  box-shadow: 0 22px 48px rgba(124,45,18,.10);
  border-radius: 28px;
}
.new-apps-hero {
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}
.new-apps-hero h2,
.new-apps-home-card h3,
.new-apps-workspace h3,
.new-apps-panel h4,
.new-app-output h4 {
  margin: 6px 0 10px;
  color: var(--pdfdost-ink);
  line-height: 1.12;
}
.new-apps-hero h2 { font-size: clamp(30px, 4vw, 54px); }
.new-apps-hero p,
.new-apps-home-card p,
.new-apps-workspace p,
.new-apps-policy-note p,
.new-apps-panel p,
.new-app-output p,
.new-app-help {
  color: #6b3a16;
  font-weight: 650;
  line-height: 1.55;
  margin: 0;
}
.new-apps-kicker,
.new-app-stage,
.new-app-status,
.new-apps-chip,
.new-app-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .02em;
}
.new-apps-kicker {
  padding: 7px 12px;
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
  font-size: 12px;
  text-transform: uppercase;
}
.new-apps-hero-actions,
.new-apps-home-card {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.new-apps-primary,
.new-apps-secondary,
.new-apps-home-action,
.new-app-open-btn,
.new-apps-back-link,
.new-apps-filter-btn,
.new-app-action,
.new-app-ghost,
.new-app-download {
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #fdba74;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  font-family: inherit;
}
.new-apps-primary,
.new-apps-home-action,
.new-app-open-btn,
.new-app-action,
.new-app-download {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
  box-shadow: 0 12px 24px rgba(234,88,12,.18);
}
.new-apps-secondary,
.new-apps-back-link,
.new-apps-filter-btn,
.new-app-ghost {
  background: #fff7ed;
  color: #9a3412;
}
.new-apps-primary,
.new-apps-secondary,
.new-apps-home-action,
.new-apps-back-link,
.new-app-action,
.new-app-ghost,
.new-app-download {
  padding: 11px 16px;
}
.new-app-open-btn {
  padding: 10px 14px;
  width: 100%;
}
.new-apps-primary:hover,
.new-apps-secondary:hover,
.new-apps-home-action:hover,
.new-app-open-btn:hover,
.new-apps-back-link:hover,
.new-apps-filter-btn:hover,
.new-app-action:hover,
.new-app-ghost:hover,
.new-app-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(124,45,18,.13);
}
.new-apps-home-card {
  margin: 18px 0 22px;
  padding: 18px;
  justify-content: space-between;
}
.new-apps-home-copy { max-width: 820px; }
.new-apps-policy-note { padding: 18px 20px; margin: 18px 0; }
.new-apps-lab-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  margin: 18px 0;
  align-items: center;
}
.new-apps-search,
.new-app-field input,
.new-app-field select,
.new-app-field textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid #fdba74;
  padding: 0 14px;
  font-weight: 760;
  background: #fff;
  color: #431407;
  outline-color: #fb923c;
  box-sizing: border-box;
}
.new-app-field textarea { padding: 12px 14px; min-height: 86px; resize: vertical; }
.new-app-field input[type="file"] { padding-top: 11px; }
.new-app-field input[type="checkbox"] { width: auto; min-height: auto; margin-right: 8px; }
.new-apps-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.new-apps-filter-btn { min-height: 42px; padding: 0 13px; }
.new-apps-filter-btn.active { background: #ea580c; color: #fff; border-color: #ea580c; }
.new-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.new-app-card {
  border: 1px solid rgba(251,146,60,.34);
  border-radius: 26px;
  background: rgba(255,255,255,.95);
  padding: 16px;
  box-shadow: 0 18px 40px rgba(124,45,18,.10);
  display: grid;
  grid-template-rows: 104px auto auto 1fr auto;
  min-height: 350px;
  gap: 9px;
  position: relative;
  overflow: hidden;
}
.new-app-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #f97316, #fed7aa);
}
.new-app-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 12px 22px rgba(124,45,18,.12));
}
.new-app-card h3 {
  text-align: center;
  margin: 0;
  color: #431407;
  font-size: 1.05rem;
  line-height: 1.2;
}
.new-app-card p {
  margin: 0;
  color: #744210;
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.38;
  text-align: center;
}
.new-app-meta {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.new-app-stage,
.new-app-status,
.new-app-mini-pill {
  padding: 5px 9px;
  font-size: 10.5px;
}
.new-app-stage { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.new-app-status { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
.new-app-status.planned { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.new-app-status.requires-local { background: #fff7ed; color: #9a3412; border-color: #fdba74; }
.new-app-status.warning { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.new-apps-workspace {
  margin-top: 22px;
  padding: clamp(18px, 2.5vw, 28px);
}
.new-apps-workspace.hidden,
.hidden { display: none !important; }
.new-apps-workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.new-apps-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.new-apps-chip,
.new-app-mini-pill {
  padding: 7px 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 12px;
}
.new-apps-tool-mount { margin-top: 8px; }
.new-app-tool-grid {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(320px, 1.05fr);
  gap: 16px;
  align-items: start;
}
.new-apps-panel,
.new-app-output {
  padding: 18px;
  box-shadow: 0 14px 34px rgba(124,45,18,.08);
}
.new-app-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.new-app-field { display: grid; gap: 6px; }
.new-app-field label,
.new-app-inline-label {
  color: #431407;
  font-weight: 900;
  font-size: 13px;
}
.new-app-row,
.new-app-button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.new-app-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.new-app-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.new-app-button-row { display: flex; flex-wrap: wrap; }
.new-app-action[disabled],
.new-app-ghost[disabled],
.new-app-download[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.new-app-progress {
  min-height: 22px;
  font-weight: 900;
  color: #9a3412;
  margin-top: 8px;
}
.new-app-note {
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #6b3a16;
  font-weight: 760;
  line-height: 1.45;
}
.new-app-note.good { background: #ecfdf5; border-color: #bbf7d0; color: #166534; }
.new-app-note.bad { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.new-app-output-card {
  display: grid;
  gap: 10px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  padding: 13px;
  background: #fffaf4;
  margin-top: 12px;
}
.new-app-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.new-app-stat {
  border-radius: 16px;
  background: #fff;
  border: 1px solid #fed7aa;
  padding: 10px;
}
.new-app-stat strong { display: block; color: #431407; font-size: 1.05rem; }
.new-app-stat span { color: #9a3412; font-weight: 800; font-size: 12px; }
.new-app-table-wrap { overflow: auto; max-height: 360px; border: 1px solid #fed7aa; border-radius: 16px; margin-top: 10px; }
.new-app-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.new-app-table th,
.new-app-table td { border-bottom: 1px solid #ffedd5; padding: 8px 10px; text-align: left; vertical-align: top; }
.new-app-table th { position: sticky; top: 0; background: #fff7ed; color: #431407; z-index: 1; }
.new-app-table td input,
.new-app-table td select { min-height: 36px; border-radius: 10px; padding: 0 8px; border: 1px solid #fdba74; width: 100%; box-sizing: border-box; }
.new-app-preview-box {
  border: 1px dashed #fdba74;
  border-radius: 20px;
  background: #fff7ed;
  padding: 12px;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #9a3412;
  font-weight: 900;
  text-align: center;
  overflow: auto;
}
.new-app-preview-canvas-wrap { position: relative; display: inline-block; max-width: 100%; }
.new-app-preview-canvas { max-width: 100%; height: auto; border-radius: 12px; background: #fff; box-shadow: 0 8px 18px rgba(124,45,18,.12); cursor: crosshair; }
.new-app-redaction-box {
  position: absolute;
  border: 2px solid #dc2626;
  background: rgba(220,38,38,.28);
  pointer-events: none;
}
.new-app-footer-note,
.new-apps-footer-note {
  margin: 16px 0;
  color: #9a3412;
  font-weight: 900;
  text-align: center;
}
.new-app-flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.new-app-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  border-radius: 12px;
  padding: 10px;
  overflow: auto;
  white-space: pre-wrap;
}
@media (max-width: 1100px) {
  .new-app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .new-app-tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .new-apps-hero,
  .new-apps-lab-controls { grid-template-columns: 1fr; }
  .new-apps-filters { justify-content: flex-start; }
  .new-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .new-apps-workspace-head { display: grid; }
  .new-app-row,
  .new-app-three,
  .new-app-four { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .new-apps-shell { width: min(100% - 20px, 1280px); }
  .new-app-grid { grid-template-columns: 1fr; }
  .new-app-card { min-height: unset; }
  .new-app-stats { grid-template-columns: 1fr; }
}


/* PDFdostD4_3 independent application pages */
.new-app-single-body .new-apps-shell { width: min(1180px, calc(100% - 28px)); }
.new-app-single-body .new-apps-hero { grid-template-columns: 96px minmax(0, 1fr) auto; }
.new-app-single-icon { width: 86px; height: 86px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(124,45,18,.14)); }
.new-app-single-body .new-apps-workspace { margin-top: 20px; }
.new-app-single-body .new-apps-workspace.hidden { display: block !important; }
.new-app-testing-notes { margin-top: 18px; padding: 18px 20px; }
.new-app-testing-notes ul { margin: 10px 0 0 20px; color: #6b3a16; font-weight: 700; line-height: 1.55; }
.new-app-testing-notes textarea { width: 100%; min-height: 120px; margin-top: 12px; border-radius: 18px; border: 1px solid #fdba74; padding: 12px 14px; font: inherit; color: #431407; box-sizing: border-box; }
.new-app-card-secondary { width: 100%; margin-top: 4px; padding: 9px 12px; }
.new-apps-directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.new-apps-directory-card { border: 1px solid rgba(251,146,60,.34); border-radius: 24px; background: #fff; padding: 16px; display: grid; gap: 8px; box-shadow: 0 16px 32px rgba(124,45,18,.08); }
.new-apps-directory-card img { width: 76px; height: 76px; object-fit: contain; justify-self: center; }
.new-apps-directory-card h3 { text-align: center; color: #431407; margin: 0; }
@media (max-width: 980px) {
  .new-app-single-body .new-apps-hero { grid-template-columns: 72px minmax(0, 1fr); }
  .new-app-single-body .new-apps-hero-actions { grid-column: 1 / -1; }
  .new-apps-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .new-app-single-body .new-apps-hero { grid-template-columns: 1fr; text-align: center; }
  .new-app-single-icon { justify-self: center; }
  .new-apps-directory-grid { grid-template-columns: 1fr; }
}

/* PDFdostD4_3 Compress PDF refinements */
.new-app-inline-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff7ed;
  color: #6b3a16;
  font-weight: 780;
  line-height: 1.35;
}
.new-app-inline-check input {
  margin-top: 3px;
  accent-color: #ea580c;
}
.new-app-note.warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

/* PDFdostD4_3 Compress PDF diagnostics */
.new-app-live-size {
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff7ed;
  color: #7c2d12;
  padding: 10px 12px;
  font-weight: 850;
  line-height: 1.45;
}
.compress-live-card .new-app-stat strong {
  word-break: break-word;
}
.compress-attempt-wrap {
  max-height: 420px;
}
.compress-attempt-table th,
.compress-attempt-table td {
  white-space: nowrap;
}
.compress-attempt-table td:nth-child(3) {
  white-space: normal;
  min-width: 240px;
}
.new-app-attempt-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid #fed7aa;
  color: #9a3412;
  background: #fff7ed;
}
.new-app-attempt-status.good {
  background: #ecfdf5;
  color: #166534;
  border-color: #bbf7d0;
}
.new-app-attempt-status.bad {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.ghostscript-install-actions {
  margin: 12px 0;
}
.new-app-inline-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #6b3a16;
  font-weight: 800;
  line-height: 1.45;
}
.new-app-inline-check input {
  margin-top: 4px;
}

/* PDFdostD4_3 Ghostscript setup helper */
.new-app-help-list {
  margin: 0.65rem 0 0.85rem 1.25rem;
  padding: 0;
  color: #5f3719;
  line-height: 1.55;
}
.new-app-help-list li { margin: 0.28rem 0; }

/* PDFdostD4_3 compression engines setup */
.engine-progress-shell {
  width: 100%;
  min-height: 18px;
  border-radius: 999px;
  background: #ffedd5;
  border: 1px solid #fdba74;
  overflow: hidden;
  margin-bottom: 12px;
}
.engine-progress-bar {
  min-height: 18px;
  width: 0%;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  transition: width .35s ease;
}
.engine-log-box {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow: auto;
  background: #431407;
  color: #fff7ed;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #9a3412;
  font-size: 13px;
  line-height: 1.45;
}
.engine-link-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.new-app-code {
  display: inline-block;
  background: #ffedd5;
  color: #7c2d12;
  border: 1px solid #fed7aa;
  border-radius: 9px;
  padding: 2px 6px;
  font-weight: 900;
}


/* PDFdostD4_3 application grouping and Bhagwa icon refinement */
.new-apps-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  padding: 10px;
  border: 1px solid rgba(251,146,60,.35);
  border-radius: 999px;
  background: rgba(255,247,237,.88);
  box-shadow: 0 14px 30px rgba(124,45,18,.08);
}
.new-apps-tab-btn {
  border: 1px solid #fdba74;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 999px;
  padding: 11px 15px;
  font-weight: 950;
  cursor: pointer;
  font-family: inherit;
}
.new-apps-tab-btn.active {
  background: linear-gradient(135deg, #fb923c, #c2410c);
  color: #fff;
  border-color: #c2410c;
  box-shadow: 0 12px 22px rgba(194,65,12,.20);
}
.new-apps-directory-section { display: none; }
.new-apps-directory-section.active { display: block; }
.new-apps-section-head {
  margin: 18px 0 12px;
  border: 1px solid rgba(251,146,60,.35);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  padding: 18px 20px;
  box-shadow: 0 12px 26px rgba(124,45,18,.08);
}
.new-apps-section-head h3 { margin: 7px 0 8px; color: #431407; font-size: clamp(22px, 2.4vw, 34px); }
.new-apps-section-head p { margin: 0; color: #6b3a16; font-weight: 760; line-height: 1.5; }
.new-apps-directory-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,247,237,.92)),
    radial-gradient(circle at 50% 0%, rgba(249,115,22,.18), transparent 42%);
}
.new-apps-directory-card img,
.new-app-icon,
.new-app-single-icon {
  border-radius: 24px;
  background: linear-gradient(135deg, #fb923c, #9a3412);
  padding: 6px;
  box-sizing: border-box;
}
.new-app-card[data-app-category="Testing Lab"]::before { background: linear-gradient(90deg, #f97316, #fb923c, #9a3412); }
.new-app-card[data-app-category="Paused"] { opacity: .92; }
.new-app-card[data-app-category="Paused"]::before { background: linear-gradient(90deg, #991b1b, #f97316); }
.testing-lab-nav-link,
.tool-menu a[href*="tab=testing"] {
  font-weight: 950;
}
@media (max-width: 680px) {
  .new-apps-tabbar { border-radius: 24px; }
  .new-apps-tab-btn { width: 100%; }
}


/* PDFdostD4_3 merged layout standardization */
.new-apps-body {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fffaf4 100%);
}
.merged-apps-shell, .new-single-shell { width: min(1280px, calc(100% - 32px)); margin: 22px auto 34px; }
.merged-hero { background:#fff; border:1px solid rgba(233,179,122,.64); border-radius:28px; padding:26px 22px; box-shadow:0 6px 20px rgba(120,65,0,.045); }
.new-apps-tabbar.merged-tabbar { max-width:1120px; margin:18px auto; display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.new-apps-tab-btn { width:auto; min-height:44px; padding:10px 18px; border-radius:999px; border:1px solid rgba(233,179,122,.85); background:#fff; color:#7c2d12; font-weight:900; }
.new-apps-tab-btn.active, .new-apps-tab-btn:hover { background:linear-gradient(135deg,#fb923c,#ea580c); color:#fff; box-shadow:0 10px 24px rgba(234,88,12,.16); }
.merged-tab-section { display:none; }
.merged-tab-section.active { display:block; }
.new-apps-section-head { max-width:1120px; margin:18px auto 8px; padding:18px 20px; border:1px solid rgba(233,179,122,.64); border-radius:24px; background:#fff; box-shadow:0 6px 20px rgba(120,65,0,.045); text-align:left; }
.new-apps-section-head h3 { margin:8px 0 6px; color:#2b211a; font-size:22px; }
.new-apps-section-head p { margin:0; color:#667085; line-height:1.5; font-weight:600; }
.new-merged-grid, .new-home-grid { max-width:1120px; margin:18px auto 0; grid-template-columns:repeat(auto-fill, minmax(205px, 1fr)); gap:14px; }
a.tool-card.new-merged-card, a.tool-card.new-home-tool-card { text-decoration:none; color:inherit; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; text-align:center; }
.new-merged-card .tool-card-icon, .new-home-tool-card .tool-card-icon { width:96px; height:96px; object-fit:contain; margin-bottom:10px; }
.new-app-mini-pill { padding:5px 9px; margin:0 auto 8px; background:#fff7ed; color:#9a3412; border:1px solid #fed7aa; font-size:11px; font-weight:900; }
.testing-grid .new-app-mini-pill { background:#eff6ff; border-color:#bfdbfe; color:#1d4ed8; }
.support-grid .new-app-mini-pill { background:#f8fafc; border-color:#cbd5e1; color:#475569; }
.new-home-section { max-width:1120px; margin:18px auto 6px; }
.section-heading-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:space-between; margin:8px 0 4px; }
.section-heading-row h3 { margin:0; color:#2b211a; font-size:22px; flex:1; min-width:220px; }
.new-apps-home-action.slim { width:auto; padding:10px 16px; }
.testing-lab-home-card { max-width:1120px; margin:22px auto 0; }
.new-single-header { max-width:1120px; margin:0 auto 18px; background:#fff; border:1px solid rgba(233,179,122,.64); border-radius:28px; box-shadow:0 6px 20px rgba(120,65,0,.045); display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:18px; padding:18px 22px; position:relative; }
.new-single-header .active-tool-reset { grid-column:3; grid-row:1 / span 3; align-self:start; justify-self:end; background:linear-gradient(135deg,#fb923c,#ea580c); color:#fff; border-radius:999px; padding:10px 16px; }
.new-single-header .active-tool-icon-stage { grid-column:1; grid-row:1 / span 3; width:110px; height:110px; border-radius:24px; background:#fff; display:flex; align-items:center; justify-content:center; }
.new-single-header .active-tool-icon { width:96px; height:96px; object-fit:contain; }
.new-single-header .active-tool-title { grid-column:2; margin:0; font-size:28px; color:#2b211a; }
.new-single-header .active-tool-punchline { grid-column:2; color:#667085; font-weight:650; line-height:1.4; }
.new-single-workspace { max-width:1120px; margin:0 auto 18px; border:1px solid rgba(233,179,122,.64); border-radius:28px; background:#fff; box-shadow:0 6px 20px rgba(120,65,0,.045); }
.new-single-workspace .new-apps-workspace-head { padding:18px 20px 0; }
.new-apps-tool-mount { padding:0 20px 20px; }
.new-app-tool-grid { display:grid; grid-template-columns:minmax(320px, 1fr) minmax(320px, .9fr); gap:18px; align-items:start; }
.new-apps-panel, .new-app-output { border:1px solid rgba(233,179,122,.64); border-radius:22px; background:#fff; box-shadow:0 6px 20px rgba(120,65,0,.045); padding:18px; }
.new-apps-panel p, .new-app-output p, .new-app-help { color:#667085; font-weight:600; }
.new-app-field input, .new-app-field select, .new-app-field textarea, .new-apps-search { border:1px solid #e9b37a; background:#fff; color:#2b211a; border-radius:14px; }
.new-app-action, .new-app-download, .new-apps-primary, .new-apps-home-action { background:linear-gradient(135deg,#fb923c,#ea580c); color:#fff; }
.new-app-ghost, .new-apps-secondary, .new-apps-back-link { background:#fff; color:#7c2d12; border:1px solid #e9b37a; }
.new-app-testing-notes { max-width:1120px; margin:18px auto; border:1px solid rgba(233,179,122,.64); background:#fff; box-shadow:0 6px 20px rgba(120,65,0,.045); }
.new-app-testing-notes textarea { width:100%; min-height:80px; border:1px solid #e9b37a; border-radius:14px; padding:12px; margin-top:12px; font-family:inherit; }
.new-app-card { background:#fff; border:1px solid rgba(233,179,122,.64); box-shadow:0 6px 20px rgba(120,65,0,.045); }
.new-app-icon { width:96px; height:96px; object-fit:contain; }
.new-app-grid { max-width:1120px; margin:18px auto 0; grid-template-columns:repeat(auto-fill, minmax(205px,1fr)); gap:14px; }
@media (max-width: 820px) {
  .new-app-tool-grid { grid-template-columns:1fr; }
  .new-single-header { grid-template-columns:1fr; text-align:center; }
  .new-single-header .active-tool-reset, .new-single-header .active-tool-icon-stage, .new-single-header .active-tool-title, .new-single-header .active-tool-punchline { grid-column:1; }
  .new-single-header .active-tool-reset { grid-row:auto; justify-self:center; }
  .section-heading-row { justify-content:center; text-align:center; }
}
/* end PDFdostD4_3 merged layout standardization */


/* PDFdostD4_3: all applications are shown together on the dashboard. */
.all-app-grid { max-width: 1120px; margin: 18px auto 0; }
.testing-lab-nav-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-height: 38px !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  border: 1px solid #fdba74 !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}
.testing-lab-nav-link:hover { background: linear-gradient(135deg,#fb923c,#ea580c) !important; color: #fff !important; }
.merged-regular-tool .tool-card-icon { width: 106px !important; height: 106px !important; }


/* PDFdostD4_3 direct modular pages mounted in the approved classic PDFdost workspace */
.pdfdost-integrated-new-app-panel .pdfdost-old-ui-mounted-workspace {
  margin-top: 12px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.pdfdost-integrated-new-app-panel .new-apps-workspace-head {
  display: none;
}
.pdfdost-integrated-new-app-panel .new-apps-chip-row {
  margin: 0 0 12px;
}
.pdfdost-integrated-new-app-panel .new-app-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.pdfdost-integrated-new-app-panel .new-apps-panel,
.pdfdost-integrated-new-app-panel .new-app-output {
  border-radius: 22px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  background: linear-gradient(180deg, #fffaf3 0%, #ffffff 100%);
  box-shadow: 0 14px 38px rgba(146, 64, 14, 0.08);
}
.pdfdost-integrated-new-app-panel .new-app-form input[type="file"] {
  width: 100%;
  border: 1.5px dashed rgba(249, 115, 22, 0.42);
  border-radius: 20px;
  padding: 18px;
  background: #fff7ed;
}
.pdfdost-integrated-new-app-panel .new-app-action,
.pdfdost-integrated-new-app-panel .new-app-download {
  border-radius: 999px;
  font-weight: 800;
}
@media (min-width: 1100px) {
  .pdfdost-integrated-new-app-panel .new-app-tool-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  }
}

/* PDFdostD4_3 fix: new modular tool panels mounted inside the approved classic workspace
   must show their controls immediately. The classic upload-first rule hides
   non-upload children until a job starts; these tools already contain their
   upload/action controls inside #newAppsWorkspace. */
.tab-panel.pdfdost-integrated-new-app-panel:not(.job-started) > .pdfdost-old-ui-mounted-workspace,
.tab-panel.pdfdost-integrated-new-app-panel:not(.job-started) > .new-apps-workspace,
.tab-panel.pdfdost-integrated-new-app-panel:not(.job-started) #newAppsToolMount,
.tab-panel.pdfdost-integrated-new-app-panel:not(.job-started) .new-app-tool-grid,
.tab-panel.pdfdost-integrated-new-app-panel:not(.job-started) .new-apps-panel,
.tab-panel.pdfdost-integrated-new-app-panel:not(.job-started) .new-app-output {
  display: block !important;
}
.tab-panel.pdfdost-integrated-new-app-panel:not(.job-started) .new-app-tool-grid {
  display: grid !important;
}
.tool-layout.preview-hidden .tab-panel.active.pdfdost-integrated-new-app-panel:not(.job-started) {
  display: block !important;
  justify-content: flex-start !important;
  min-height: auto !important;
}
.tab-panel.pdfdost-integrated-new-app-panel .new-apps-tool-mount:empty::before {
  content: 'Loading tool controls...';
  display: block;
  padding: 18px;
  border: 1px dashed rgba(249, 115, 22, 0.34);
  border-radius: 18px;
  color: #9a3412;
  background: #fff7ed;
  font-weight: 700;
}

/* Strong override against the classic pre-upload hiding selector. */
body .tool-layout.preview-hidden .tab-panel.active.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started),
body .tool-layout.preview-visible .tab-panel.active.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started) {
  display: block !important;
  justify-content: flex-start !important;
  min-height: auto !important;
}
body .tab-panel.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started) > section.pdfdost-old-ui-mounted-workspace.new-apps-workspace.new-single-workspace,
body .tab-panel.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started) > .pdfdost-old-ui-mounted-workspace.new-apps-workspace {
  display: block !important;
}
body .tab-panel.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started) .new-apps-workspace-head,
body .tab-panel.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started) .new-apps-chip-row,
body .tab-panel.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started) #newAppsToolMount,
body .tab-panel.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started) .new-apps-panel,
body .tab-panel.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started) .new-app-output {
  display: block !important;
}
body .tab-panel.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started) .new-app-tool-grid {
  display: grid !important;
}

/* Avoid duplicate title/tagline inside the app panel; the approved classic header already shows them. */
body .tab-panel.pdfdost-integrated-new-app-panel .new-apps-workspace-head,
body .tab-panel.pdfdost-integrated-new-app-panel .new-apps-chip-row {
  display: none !important;
}

/* PDFdostD4_3 direct-app correction: modular tools after My Vault must use the same
   approved upload-first PDFdost workspace as older tools.  The functional
   controls are shown only after the standard file/mobile upload step. */
body .tab-panel.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started) {
  min-height: 420px !important;
}
body .tool-layout.preview-hidden .tab-panel.active.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started) {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 420px !important;
}
body .tab-panel.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started) > .new-app-primary-upload {
  display: block !important;
}
body .tab-panel.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started) > section.pdfdost-old-ui-mounted-workspace.new-apps-workspace,
body .tab-panel.pdfdost-integrated-new-app-panel[data-panel]:not([data-panel="home"]):not(.job-started) > .new-app-primary-file-list {
  display: none !important;
}
body .tab-panel.pdfdost-integrated-new-app-panel.job-started > .new-app-primary-upload {
  display: none !important;
}
body .tab-panel.pdfdost-integrated-new-app-panel.job-started > section.pdfdost-old-ui-mounted-workspace.new-apps-workspace {
  display: block !important;
}
body .tab-panel.pdfdost-integrated-new-app-panel.job-started > .new-app-primary-file-list {
  display: block !important;
  margin: 0 0 12px !important;
}
body .pdfdost-integrated-new-app-panel .new-app-primary-selected-field {
  border: 1px dashed rgba(249, 115, 22, 0.28);
  background: #fffaf3;
  border-radius: 16px;
  padding: 12px 14px;
}
body .pdfdost-integrated-new-app-panel .new-app-selected-file-summary {
  display: grid;
  gap: 3px;
  color: #5c4633;
  font-size: 13px;
}
body .pdfdost-integrated-new-app-panel .new-app-selected-file-summary strong {
  color: #1f2937;
  font-size: 14px;
  word-break: break-word;
}
