.pdf-content > .container {
  max-width: 1140px;
}

.pdf-directory {
  display: grid;
  gap: 2rem;
  margin-top: 2.2rem;
}

.pdf-directory-section {
  min-width: 0;
}

.pdf-directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}

.pdf-directory-heading h2,
.pdf-related h2,
.pdf-seo-copy h2 {
  margin: 0;
  color: var(--fc-ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.pdf-directory-heading > span {
  color: var(--fc-muted);
  font-size: .78rem;
}

.pdf-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.pdf-directory-card {
  display: flex;
  min-width: 0;
  min-height: 86px;
  align-items: center;
  gap: .8rem;
  padding: .9rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fff;
  color: var(--fc-ink);
  text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.pdf-directory-card:hover {
  transform: translateY(-2px);
  border-color: #b7addf;
  box-shadow: 0 8px 20px rgba(26, 39, 63, .06);
  color: var(--fc-ink);
}

.pdf-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 10px;
  background: #f0eef9;
  color: var(--fc-violet);
  font-size: 1.1rem;
}

.pdf-card-copy {
  display: grid;
  min-width: 0;
  gap: .2rem;
}

.pdf-card-copy strong {
  font-size: .86rem;
}

.pdf-card-copy small {
  color: var(--fc-muted);
  font-size: .72rem;
  line-height: 1.4;
}

.pdf-card-arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: #8190a6;
  font-size: .82rem;
}

.pdf-workspace {
  max-width: 940px;
  margin: 1.4rem 0 1.8rem;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border: 1px solid #e0e5ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(26, 39, 63, .07);
}

.pdf-workspace h2 {
  margin: 0 0 .45rem;
  color: var(--fc-ink);
  font-size: 1.4rem;
  font-weight: 820;
  letter-spacing: -.035em;
}

.pdf-workspace > p {
  margin: 0;
  color: var(--fc-muted);
  font-size: .9rem;
}

.pdf-workspace .pdf-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.pdf-upload-zone {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-top: 1.25rem;
  padding: 1.5rem;
  border: 2px dashed #aeb8ca;
  border-radius: 14px;
  background: #f8f9fc;
  text-align: center;
  transition: border-color .15s, background .15s;
}

.pdf-upload-zone.drag-active,
.pdf-upload-zone:hover {
  border-color: var(--fc-violet);
  background: #f3f0ff;
}

.pdf-upload-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
  background: #eeecf8;
  color: var(--fc-violet);
  font-size: 1.55rem;
}

.pdf-upload-zone strong {
  color: #263248;
  font-size: .97rem;
}

.pdf-upload-zone small {
  color: var(--fc-muted);
  font-size: .76rem;
}

.pdf-file-list {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}

.pdf-file-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .65rem;
  padding: .7rem .8rem;
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  background: #fff;
}

.pdf-file-row[draggable="true"] {
  cursor: grab;
}

.pdf-file-row.is-dragging {
  opacity: .55;
}

.pdf-file-row > i:first-child {
  color: var(--fc-violet);
}

.pdf-file-name {
  overflow: hidden;
  color: #344158;
  font-size: .83rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-file-size {
  color: var(--fc-muted);
  font-size: .74rem;
  white-space: nowrap;
}

.pdf-remove-file {
  border: 0;
  background: transparent;
  color: #a33a39;
}

.pdf-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1rem;
}

.pdf-control {
  display: grid;
  min-width: 0;
  gap: .35rem;
  color: #344158;
  font-size: .78rem;
  font-weight: 750;
}

.pdf-control input,
.pdf-control select,
.pdf-control textarea {
  width: 100%;
  min-width: 0;
  padding: .58rem .68rem;
  border: 1px solid #d8deea;
  border-radius: 8px;
  background: #fff;
  color: var(--fc-ink);
  font: inherit;
  font-weight: 500;
}

.pdf-control input[type="range"] {
  padding: 0;
  accent-color: var(--fc-violet);
}

.pdf-control textarea {
  min-height: 92px;
  resize: vertical;
}

.pdf-integration-note,
.pdf-redact-warning {
  margin: .9rem 0 0;
  padding: .8rem .9rem;
  border: 1px solid #e5d9b5;
  border-radius: 9px;
  background: #fffaf0;
  color: #705b27;
  font-size: .8rem;
  line-height: 1.5;
}

.pdf-redact-warning {
  border-color: #efc4c1;
  background: #fff6f5;
  color: #8e2b23;
}

.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1rem;
}

.pdf-actions .btn {
  min-height: 42px;
  border-radius: 9px;
  font-weight: 750;
}

.pdf-mini-button {
  padding: .2rem .4rem;
  border: 1px solid var(--fc-line);
  border-radius: 6px;
  background: #fff;
  color: #59677e;
  font-size: .7rem;
}

.pdf-page-card.is-removed {
  opacity: .4;
  outline: 2px dashed #ae4a43;
}

.pdf-page-card.is-rotated canvas {
  transform: rotate(90deg);
}

.pdf-camera-preview {
  display: block;
  width: min(100%, 640px);
  max-height: 50vh;
  margin: 1rem 0;
  border-radius: 12px;
  background: #17233d;
}

.pdf-status .pdf-progress.is-indeterminate > span {
  width: 35%;
  animation: pdf-progress-indeterminate 1.2s ease-in-out infinite alternate;
}

@keyframes pdf-progress-indeterminate {
  from { transform: translateX(-30%); }
  to { transform: translateX(190%); }
}

.pdf-control-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #344158;
  font-size: .82rem;
}

.pdf-control-check input {
  accent-color: var(--fc-violet);
}

.pdf-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: .7rem;
  margin-top: 1rem;
}

.pdf-page-card {
  min-width: 0;
  padding: .5rem;
  border: 1px solid var(--fc-line);
  border-radius: 9px;
  background: #fff;
  cursor: grab;
}

.pdf-page-card.is-selected {
  border-color: var(--fc-violet);
  box-shadow: 0 0 0 2px #5f46cb22;
}

.pdf-page-card canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #eef0f4;
  border-radius: 5px;
  background: #f8f9fc;
}

.pdf-page-card label {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .45rem;
  color: #59677e;
  font-size: .72rem;
}

.pdf-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .6rem;
}

.pdf-page-toolbar button {
  padding: .2rem .4rem;
  border: 1px solid var(--fc-line);
  border-radius: 6px;
  background: #fff;
  color: #59677e;
  font-size: .7rem;
}

.pdf-status {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border: 1px solid #e7eaf2;
  border-radius: 10px;
  background: #fbfcff;
}

.pdf-status[hidden] {
  display: none;
}

.pdf-status[role="alert"] {
  border-color: #f1c6c2;
  background: #fff6f5;
  color: #8e2b23;
}

.pdf-status-title {
  margin: 0;
  color: #344158;
  font-size: .88rem;
  font-weight: 800;
}

.pdf-status-message {
  margin: .25rem 0 0;
  color: var(--fc-muted);
  font-size: .8rem;
  overflow-wrap: anywhere;
}

.pdf-progress {
  height: 8px;
  margin-top: .65rem;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eaf1;
}

.pdf-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--fc-violet);
  transition: width .2s ease;
}

.pdf-timer {
  margin: .55rem 0 0;
  color: var(--fc-muted);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.pdf-timer strong {
  color: #263248;
}

.pdf-output {
  display: grid;
  gap: .7rem;
  margin-top: 1rem;
}

.pdf-output[hidden] {
  display: none;
}

.pdf-output-summary {
  color: #344158;
  font-size: .85rem;
}

.pdf-output a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .5rem;
}

.pdf-output-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .65rem;
}

.pdf-output-preview img {
  width: 100%;
  border: 1px solid var(--fc-line);
  border-radius: 8px;
}

.pdf-related,
.pdf-seo-copy {
  max-width: 940px;
  margin: 1.7rem 0;
  padding: 1.2rem;
  border: 1px solid var(--fc-line);
  border-radius: 13px;
  background: #fff;
}

.pdf-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .8rem;
}

.pdf-related-links a {
  padding: .42rem .65rem;
  border-radius: 8px;
  background: #f3f1fb;
  color: var(--fc-violet);
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
}

.pdf-seo-copy h2 {
  margin: 1.1rem 0 .45rem;
  font-size: 1rem;
}

.pdf-seo-copy h2:first-child {
  margin-top: 0;
}

.pdf-seo-copy p {
  margin: 0;
  color: var(--fc-muted);
  font-size: .85rem;
}

.pdf-error {
  color: #8e2b23;
}

@media (max-width: 767px) {
  .pdf-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .pdf-directory-grid,
  .pdf-controls {
    grid-template-columns: 1fr;
  }

  .pdf-file-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .pdf-file-size {
    grid-column: 2;
  }

  .pdf-remove-file {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .pdf-workspace {
    padding: 1rem;
  }
}
