.pdf-merge-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.pdf-dropzone {
  border: 2px dashed rgba(15, 118, 110, 0.35);
  border-radius: 18px;
  padding: 22px;
  background: rgba(15, 118, 110, 0.06);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pdf-dropzone.dragover {
  border-color: rgba(15, 118, 110, 0.9);
  background: rgba(15, 118, 110, 0.12);
}

.pdf-dropzone p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pdf-dropzone .btn-secondary {
  margin-top: 12px;
}

.file-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.file-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-name {
  font-weight: 600;
}

.file-size {
  font-size: 13px;
  color: var(--muted);
}

.file-actions {
  display: flex;
  gap: 8px;
}

.file-btn {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.file-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.merge-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.merge-actions .btn-primary,
.merge-actions .btn-secondary {
  width: 100%;
  text-align: center;
}

.status-message {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.2);
  font-size: 14px;
  color: var(--text);
}

.status-message.hidden {
  display: none;
}

.status-message.error {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.4);
}

.download-link {
  display: none;
}

.download-link.ready {
  display: inline-flex;
  justify-content: center;
}

.privacy-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .pdf-merge-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .file-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-actions {
    width: 100%;
    justify-content: space-between;
  }
}
.split-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.option-row input[type="radio"] {
  accent-color: var(--primary);
}

.range-input {
  display: none;
  gap: 10px;
  align-items: center;
}

.range-input.active {
  display: flex;
}

.range-input input {
  flex: 1;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.download-item span {
  font-size: 14px;
}

.download-item a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.download-item a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .download-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.compress-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.option-hint {
  font-size: 12px;
  color: var(--muted);
  margin-left: 26px;
}

.notice-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  font-size: 13px;
  color: var(--text);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.color-input {
  width: 100%;
  height: 40px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}
.order-input {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: var(--surface-strong);
  color: var(--text);
  resize: vertical;
}

.order-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
