.tn-pdfc-page {
  --pdfc-paper: #faf6ee; --pdfc-wash: #f5efdf; --pdfc-ink: #1a1208; --pdfc-muted: #5a4a30;
  --pdfc-line: #b8a888; --pdfc-soft: #ddd4be; --pdfc-button: #ede6d4; --pdfc-hover: #dfd4bb;
  --pdfc-primary: #1a1208; --pdfc-primary-hover: #5a3018; --pdfc-primary-text: #faf6ee; --pdfc-accent: #c44a00;
  width: min(1180px, 100%); margin: 0 auto; color: var(--pdfc-ink);
}
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-d="dark"], [data-scheme="auto"][data-l="dark"]) .tn-pdfc-page,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-pdfc-page {
  --pdfc-paper: #241d12; --pdfc-wash: #322a1a; --pdfc-ink: #f7ead1; --pdfc-muted: #c3b492;
  --pdfc-line: #826744; --pdfc-soft: #574a37; --pdfc-button: #2f2115; --pdfc-hover: #3a2a1b;
  --pdfc-primary: #6a3b1f; --pdfc-primary-hover: #824826; --pdfc-primary-text: #f7ead1; --pdfc-accent: #e8823f;
}
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-pdfc-page {
    --pdfc-paper: #241d12; --pdfc-wash: #322a1a; --pdfc-ink: #f7ead1; --pdfc-muted: #c3b492;
    --pdfc-line: #826744; --pdfc-soft: #574a37; --pdfc-button: #2f2115; --pdfc-hover: #3a2a1b;
    --pdfc-primary: #6a3b1f; --pdfc-primary-hover: #824826; --pdfc-primary-text: #f7ead1; --pdfc-accent: #e8823f;
  }
}
.tn-pdfc-page .tn-pdfc-tool { border: 1px solid var(--pdfc-line); background: var(--pdfc-paper); color: var(--pdfc-ink); font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", system-ui, sans-serif; font-size: 14px; line-height: 1.5; }
.tn-pdfc-tool *, .tn-pdfc-tool *::before, .tn-pdfc-tool *::after { box-sizing: border-box; }
.tn-pdfc-tool [hidden] { display: none !important; }
.tn-pdfc-tool :is(p, figure, dl, dt, dd) { margin: 0; padding: 0; }
.tn-pdfc-tool .tn-pdfc-drop { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 184px; padding: 28px; border-bottom: 1px solid var(--pdfc-line); background: var(--pdfc-wash); }
.tn-pdfc-tool .tn-pdfc-drop > div { min-width: 0; }
.tn-pdfc-tool .tn-pdfc-drop-title { margin-bottom: 10px; color: var(--pdfc-ink); font-size: 23px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.tn-pdfc-tool .tn-pdfc-drop p + p { color: var(--pdfc-muted); }
.tn-pdfc-tool .tn-pdfc-drop .tn-pdfc-caption { margin-top: 8px; }
.tn-pdfc-tool .tn-pdfc-drop.tn-pdfc-dragging { outline: 2px dashed var(--pdfc-accent); outline-offset: -8px; }
.tn-pdfc-tool .tn-pdfc-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  height: 38px; min-height: 38px; padding: 0 12px; margin: 0; border: 1px solid var(--pdfc-line); border-radius: 0;
  background: var(--pdfc-button); color: var(--pdfc-ink); -webkit-text-fill-color: var(--pdfc-ink);
  font-family: "Courier New", monospace; font-size: 13px; font-weight: 900; line-height: 1; text-transform: none;
  text-align: center; letter-spacing: 0; box-shadow: none; cursor: pointer; outline: none;
}
.tn-pdfc-tool .tn-pdfc-btn--primary { background: var(--pdfc-primary); color: var(--pdfc-primary-text); -webkit-text-fill-color: var(--pdfc-primary-text); }
.tn-pdfc-tool button:hover:not(:disabled) { background: var(--pdfc-hover); }
.tn-pdfc-tool .tn-pdfc-btn--primary:hover:not(:disabled) { background: var(--pdfc-primary-hover); }
.tn-pdfc-tool :is(button, select, input):focus-visible { outline: 2px solid var(--pdfc-accent); outline-offset: 3px; }
.tn-pdfc-tool :is(button, select):disabled { opacity: .5; cursor: not-allowed; }
.tn-pdfc-tool .tn-pdfc-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-pdfc-tool .tn-pdfc-file-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; border-bottom: 1px solid var(--pdfc-line); }
.tn-pdfc-tool .tn-pdfc-file-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; flex: 1; gap: 12px 24px; min-width: 0; }
.tn-pdfc-tool .tn-pdfc-file-meta > div { min-width: 0; }
.tn-pdfc-tool :is(.tn-pdfc-file-meta, .tn-pdfc-result-meta) dt { margin-bottom: 3px; color: var(--pdfc-muted); font-size: 12px; font-weight: 600; }
.tn-pdfc-tool #pdfcName { white-space: normal; overflow-wrap: anywhere; word-break: normal; font-weight: 600; }
.tn-pdfc-tool .tn-pdfc-errors:empty { display: none; }
.tn-pdfc-tool .tn-pdfc-errors { padding: 12px 18px; border-bottom: 1px solid var(--pdfc-line); border-left: 3px solid var(--pdfc-accent); background: var(--pdfc-wash); color: var(--pdfc-ink); overflow-wrap: anywhere; }
.tn-pdfc-tool .tn-pdfc-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tn-pdfc-tool[data-state="empty"] .tn-pdfc-previews { display: none; }
.tn-pdfc-tool:not([data-state="done"]) .tn-pdfc-previews { grid-template-columns: minmax(0, 1fr); }
.tn-pdfc-tool:not([data-state="done"]) .tn-pdfc-preview + .tn-pdfc-preview { display: none; }
.tn-pdfc-tool .tn-pdfc-preview { min-width: 0; padding: 14px 18px; }
.tn-pdfc-tool .tn-pdfc-preview + .tn-pdfc-preview { border-left: 1px solid var(--pdfc-soft); }
.tn-pdfc-tool .tn-pdfc-preview figcaption { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--pdfc-muted); }
.tn-pdfc-tool .tn-pdfc-preview-stage { display: flex; align-items: center; justify-content: center; min-height: 190px; padding: 12px; background: var(--pdfc-wash); }
.tn-pdfc-tool :is(#pdfcOriginalPreview, #pdfcResultPreview) { display: block; width: auto; height: auto; max-width: 100%; max-height: 280px; object-fit: contain; border: 1px solid var(--pdfc-line); border-radius: 0; background: #fff; }
.tn-pdfc-tool[data-state="empty"] :is(#pdfcOriginalPreview, #pdfcResultPreview) { visibility: hidden; }
.tn-pdfc-tool .tn-pdfc-caption { font-size: 12px; line-height: 1.6; color: var(--pdfc-muted); overflow-wrap: anywhere; }
.tn-pdfc-tool .tn-pdfc-preview-note { padding: 0 18px 14px; }
.tn-pdfc-tool .tn-pdfc-toolbar { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--pdfc-line); border-bottom: 1px solid var(--pdfc-line); }
.tn-pdfc-tool .tn-pdfc-field { display: grid; gap: 5px; align-content: start; min-width: 0; padding: 0; margin: 0; border: 0; background: transparent; }
.tn-pdfc-tool .tn-pdfc-field > span { font-size: 12px; font-weight: 600; line-height: 18px; }
.tn-pdfc-tool select { display: block; width: 100%; min-width: 0; height: 38px; padding: 0 28px 0 10px; margin: 0; border: 1px solid var(--pdfc-line); border-radius: 0; color: var(--pdfc-ink); -webkit-text-fill-color: var(--pdfc-ink); background-color: var(--pdfc-button); font-family: inherit; font-size: 14px; font-weight: 600; line-height: normal; appearance: auto; cursor: pointer; box-shadow: none; }
.tn-pdfc-tool .tn-pdfc-image-options { padding: 14px 18px; border-bottom: 1px solid var(--pdfc-line); background: var(--pdfc-wash); }
.tn-pdfc-tool .tn-pdfc-image-options > p { font-size: 13px; }
.tn-pdfc-tool .tn-pdfc-consent { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; color: var(--pdfc-ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.tn-pdfc-tool #pdfcConsent { flex: 0 0 18px; width: 18px; height: 18px; min-width: 18px; padding: 0; margin: 2px 0 0; border-radius: 0; appearance: auto; accent-color: var(--pdfc-accent); }
.tn-pdfc-tool .tn-pdfc-process { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; }
.tn-pdfc-tool #pdfcStatus { min-width: 0; overflow-wrap: anywhere; }
.tn-pdfc-tool .tn-pdfc-result { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border-top: 3px double var(--pdfc-line); border-bottom: 1px solid var(--pdfc-line); background: var(--pdfc-wash); }
.tn-pdfc-tool .tn-pdfc-result-meta { display: flex; flex-wrap: wrap; gap: 18px 40px; min-width: 0; }
.tn-pdfc-tool .tn-pdfc-result-meta dd { font-size: 24px; line-height: 1.35; overflow-wrap: anywhere; }
.tn-pdfc-tool :is(.tn-pdfc-number, #pdfcInputSize, #pdfcPages, #pdfcOutputSize, #pdfcSaving) { font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", system-ui, sans-serif; font-weight: 800; font-variant-numeric: lining-nums tabular-nums; letter-spacing: normal; }
.tn-pdfc-tool .tn-pdfc-final-note { padding: 12px 18px 16px; }
.tn-pdfc-tool .tn-pdfc-noscript { padding: 16px 18px; border-top: 1px solid var(--pdfc-line); }
.tn-pdfc-page .tn-pdfc-responsive-ad { width: 100%; max-width: 900px; min-height: 90px; height: auto; max-height: none; margin: 24px auto; background: transparent; border: 0; overflow: visible; }
.tn-pdfc-page .tn-pdfc-responsive-ad--top { margin-top: 54px; }
@media (max-width: 760px) {
  .tn-pdfc-tool .tn-pdfc-file-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .tn-pdfc-tool .tn-pdfc-file-meta { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tn-pdfc-tool .tn-pdfc-filename { grid-column: 1 / -1; }
  .tn-pdfc-tool .tn-pdfc-toolbar { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 10px; }
  .tn-pdfc-tool #pdfcModeNote { grid-column: 1 / -1; }
  .tn-pdfc-tool .tn-pdfc-process { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 600px) {
  .tn-pdfc-page { width: calc(100% - 10px); }
  .tn-pdfc-tool .tn-pdfc-drop { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 14px; }
  .tn-pdfc-tool .tn-pdfc-drop-title { font-size: 21px; }
  .tn-pdfc-tool .tn-pdfc-previews { grid-template-columns: minmax(0, 1fr); }
  .tn-pdfc-tool .tn-pdfc-preview { padding: 12px 14px; }
  .tn-pdfc-tool .tn-pdfc-preview + .tn-pdfc-preview { border-left: 0; border-top: 1px solid var(--pdfc-soft); }
  .tn-pdfc-tool :is(#pdfcOriginalPreview, #pdfcResultPreview) { max-height: 240px; }
  .tn-pdfc-tool .tn-pdfc-result { align-items: flex-start; flex-direction: column; gap: 14px; }
  .tn-pdfc-tool :is(.tn-pdfc-toolbar, .tn-pdfc-file-row, .tn-pdfc-process, .tn-pdfc-result, .tn-pdfc-image-options) { padding-right: 14px; padding-left: 14px; }
  .tn-pdfc-page .tn-pdfc-responsive-ad--top { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) { .tn-pdfc-tool * { scroll-behavior: auto; transition: none; } }
