/* PDF 3001 recovered runtime UI rules: same-document-edit-2026.08.2. */
[hidden] {
  display: none !important;
}

input.visually-hidden[type="file"] {
  display: none !important;
}

/* Reader-first entry: keep the unopened workspace focused on one clear action. */
.app-shell.is-empty {
  grid-template-rows: var(--size-topbar) minmax(0, 1fr);
}

.app-shell.is-empty .commandbar,
.app-shell.is-empty .sidebar,
.app-shell.is-empty .inspector,
.app-shell.is-empty .statusbar {
  display: none;
}

.app-shell.is-empty .viewer-main,
.app-shell.is-empty.sidebar-hidden .viewer-main,
.app-shell.is-empty.inspector-hidden .viewer-main,
.app-shell.is-empty.sidebar-hidden.inspector-hidden .viewer-main {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.is-empty .viewer-scroll {
  grid-column: 1;
  scrollbar-gutter: auto;
}

.app-shell.is-empty .empty-state {
  gap: 18px;
  padding: 40px 24px;
}

.app-shell.is-empty .drop-zone {
  width: min(680px, 100%);
  padding: 42px 36px 32px;
  border: 2px dashed color-mix(in srgb, var(--color-brand) 34%, #d7d7dc);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(30, 30, 36, 0.12);
}

.app-shell.is-empty .empty-open-button {
  min-width: 210px;
  height: 48px;
  font-size: 14px;
}

.app-shell.is-empty .empty-capabilities {
  width: min(680px, 100%);
}

.app-shell.is-empty .empty-capabilities article {
  min-height: 84px;
  background: rgba(255, 255, 255, 0.7);
}

.roadmap.product-assurance {
  align-items: center;
}

.roadmap.product-assurance p:last-child {
  max-width: 620px;
  color: #4b5563;
  line-height: 1.65;
}

@media (max-width: 820px) {
  .app-shell.is-empty .empty-state {
    justify-content: flex-start;
    gap: 12px;
    padding: 24px 14px 28px;
  }

  .app-shell.is-empty .drop-zone {
    padding: 30px 18px 24px;
  }

  .app-shell.is-empty .drop-zone h1 {
    font-size: 28px;
  }

  .app-shell.is-empty .empty-description {
    margin-top: 14px;
    font-size: 14px;
  }

  .app-shell.is-empty .empty-open-button {
    width: 100%;
    min-width: 0;
    margin-top: 20px;
  }

  .app-shell.is-empty .empty-capabilities {
    gap: 8px;
  }

  .app-shell.is-empty .empty-capabilities article {
    min-height: 0;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    padding: 12px 14px;
  }

  .app-shell.is-empty .empty-capabilities strong {
    flex: 0 0 92px;
  }

  .commandbar {
    overscroll-behavior-inline: contain;
    padding-block: 2px;
    scroll-padding-inline: 6px;
  }

  .commandbar .command-button,
  .commandbar .icon-button,
  .commandbar .zoom-value,
  .commandbar .mode-button,
  .commandbar .search-control button,
  .commandbar input {
    min-height: 44px;
  }

  .commandbar .command-button,
  .commandbar .icon-button,
  .commandbar .mode-button,
  .commandbar .search-control button,
  .commandbar #page-number {
    min-width: 44px;
  }

  .commandbar .icon-button,
  .commandbar .search-control button {
    width: 44px;
  }

  .commandbar .workspace-mode,
  .commandbar .mode-button {
    height: 44px;
  }

  .command-file #download-file,
  .command-file #print-file {
    display: inline-flex !important;
  }

  labs-3001-brand-core[data-product="pdf3001"] {
    --mobile-safe-bottom: 94px !important;
  }

  .pdf-development-side-menu {
    right: max(76px, calc(env(safe-area-inset-right) + 76px));
    bottom: max(94px, calc(env(safe-area-inset-bottom) + 94px));
  }

  .pdf-development-side-panel {
    bottom: max(40px, calc(env(safe-area-inset-bottom) + 40px));
    max-height: calc(100dvh - 52px);
  }
}
