.tn-mp3-page {
  --mp3-paper: #faf6ee;
  --mp3-wash: #f0e8d7;
  --mp3-ink: #241a0e;
  --mp3-muted: #645139;
  --mp3-line: #b8a888;
  --mp3-soft: #ddd4be;
  --mp3-button: #ede6d4;
  --mp3-button-text: #241a0e;
  --mp3-action-line: #b8a888;
  --mp3-hover: #dfd4bb;
  --mp3-primary: #382311;
  --mp3-primary-hover: #633511;
  --mp3-primary-text: #f7ead1;
  --mp3-focus: #963d0b;
  --mp3-sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", system-ui, sans-serif;
  --mp3-mono: "Courier New", Courier, monospace;
  color: var(--mp3-ink);
  -webkit-text-fill-color: var(--mp3-ink);
  color-scheme: light;
}
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-d="dark"], [data-scheme="auto"][data-l="dark"]) .tn-mp3-page,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-mp3-page {
  --mp3-paper: #241d12;
  --mp3-wash: #322a1a;
  --mp3-ink: #f7ead1;
  --mp3-muted: #c3b492;
  --mp3-line: #826744;
  --mp3-soft: #574a37;
  --mp3-button: #2f2115;
  --mp3-button-text: #f7ead1;
  --mp3-action-line: #826744;
  --mp3-hover: #3a2a1b;
  --mp3-primary: #6a3b1f;
  --mp3-primary-hover: #824826;
  --mp3-primary-text: #f7ead1;
  --mp3-focus: #e8823f;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-mp3-page {
    --mp3-paper: #241d12;
    --mp3-wash: #322a1a;
    --mp3-ink: #f7ead1;
    --mp3-muted: #c3b492;
    --mp3-line: #826744;
    --mp3-soft: #574a37;
    --mp3-button: #2f2115;
    --mp3-button-text: #f7ead1;
    --mp3-action-line: #826744;
    --mp3-hover: #3a2a1b;
    --mp3-primary: #6a3b1f;
    --mp3-primary-hover: #824826;
    --mp3-primary-text: #f7ead1;
    --mp3-focus: #e8823f;
    color-scheme: dark;
  }
}
.tn-mp3-page [hidden] { display: none !important; }
.tn-mp3-page .tn-mp3-tool {
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--mp3-ink);
  -webkit-text-fill-color: var(--mp3-ink);
  font-family: var(--mp3-sans);
  font-size: 14px;
  line-height: 1.6;
}
.tn-mp3-tool,
.tn-mp3-tool *,
.tn-mp3-tool *::before,
.tn-mp3-tool *::after { box-sizing: border-box; }
.tn-mp3-tool :is(p, label, strong) { margin: 0; padding: 0; }
.tn-mp3-tool :is(code, pre, kbd, samp) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  -webkit-text-fill-color: inherit;
}
.tn-mp3-tool .tn-mp3-workspace {
  min-width: 0;
  border: 1px solid var(--mp3-line);
  background: var(--mp3-paper);
}
.tn-mp3-tool .tn-mp3-drop {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 280px;
  margin: 16px;
  padding: 28px 18px;
  border: 1px dashed var(--mp3-line);
  background: var(--mp3-wash);
  text-align: center;
}
.tn-mp3-tool .tn-mp3-drop-title {
  color: var(--mp3-ink);
  -webkit-text-fill-color: var(--mp3-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.tn-mp3-tool .tn-mp3-drop.is-dragging {
  border-color: var(--mp3-focus);
  box-shadow: inset 0 0 0 1px var(--mp3-focus);
}
.tn-mp3-tool .tn-mp3-file-info {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  max-width: 600px;
  padding-top: 12px;
  border-top: 1px solid var(--mp3-line);
}
.tn-mp3-tool .tn-mp3-file-name {
  min-width: 0;
  color: var(--mp3-ink);
  -webkit-text-fill-color: var(--mp3-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: normal;
}
.tn-mp3-tool .tn-mp3-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--mp3-line);
  border-bottom: 1px solid var(--mp3-soft);
}
.tn-mp3-tool :is(.tn-mp3-field, .tn-mp3-actions) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.tn-mp3-tool label {
  display: block;
  color: var(--mp3-ink);
  -webkit-text-fill-color: var(--mp3-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.tn-mp3-tool select {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 124px;
  min-width: 0;
  max-width: 100%;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0 28px 0 10px;
  border: 1px solid var(--mp3-line);
  border-radius: 0;
  background-color: var(--mp3-wash);
  background-image: linear-gradient(45deg, transparent 50%, var(--mp3-ink) 50%), linear-gradient(135deg, var(--mp3-ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  color: var(--mp3-ink);
  -webkit-text-fill-color: var(--mp3-ink);
  font-family: var(--mp3-sans);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: normal;
  letter-spacing: normal;
  box-shadow: none;
  outline: none;
  cursor: pointer;
}
.tn-mp3-tool select option { background: var(--mp3-paper); color: var(--mp3-ink); }
.tn-mp3-page .tn-mp3-tool :is(button, #tnMp3Download) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--mp3-action-line);
  border-radius: 0;
  background: var(--mp3-button);
  color: var(--mp3-button-text);
  -webkit-text-fill-color: var(--mp3-button-text);
  font-family: var(--mp3-mono);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  outline: none;
  cursor: pointer;
}
.tn-mp3-page .tn-mp3-tool :is(button, #tnMp3Download):is(:hover, :focus-visible):not(:disabled) { background: var(--mp3-hover); }
.tn-mp3-page .tn-mp3-tool :is(#tnMp3Convert, #tnMp3Download) {
  background: var(--mp3-primary);
  color: var(--mp3-primary-text);
  -webkit-text-fill-color: var(--mp3-primary-text);
}
.tn-mp3-page .tn-mp3-tool :is(#tnMp3Convert, #tnMp3Download):is(:hover, :focus-visible):not(:disabled) { background: var(--mp3-primary-hover); }
.tn-mp3-page .tn-mp3-tool :is(button, select):disabled { opacity: .55; cursor: not-allowed; }
.tn-mp3-page .tn-mp3-tool :is(button, select, a, #tnMp3Download, audio, .tn-mp3-drop):focus-visible { outline: 2px solid var(--mp3-focus); outline-offset: 2px; }
.tn-mp3-tool [aria-invalid="true"] { border-color: var(--mp3-focus); }
.tn-mp3-tool .tn-mp3-hint {
  color: var(--mp3-muted);
  -webkit-text-fill-color: var(--mp3-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.tn-mp3-tool .tn-mp3-quality { padding: 10px 16px; }
.tn-mp3-tool .tn-mp3-number {
  color: var(--mp3-ink);
  -webkit-text-fill-color: var(--mp3-ink);
  font-family: var(--mp3-sans);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
}
.tn-mp3-tool #tnMp3ResultSize { font-weight: 800; }
.tn-mp3-tool .tn-mp3-feedback { padding: 0 16px; }
.tn-mp3-tool .tn-mp3-feedback > :not([hidden]):not(:empty) { margin-bottom: 12px; }
.tn-mp3-tool #tnMp3Progress {
  display: block;
  width: 100%;
  height: 8px;
  margin: 4px 0 12px;
  border: 0;
  border-radius: 0;
  accent-color: var(--mp3-focus);
  background: var(--mp3-wash);
}
.tn-mp3-tool #tnMp3Progress::-webkit-progress-bar { background: var(--mp3-wash); }
.tn-mp3-tool #tnMp3Progress::-webkit-progress-value { background: var(--mp3-focus); }
.tn-mp3-tool #tnMp3Progress::-moz-progress-bar { background: var(--mp3-focus); }
.tn-mp3-tool .tn-mp3-error {
  color: var(--mp3-focus);
  -webkit-text-fill-color: var(--mp3-focus);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.tn-mp3-tool :is(#tnMp3Error, #tnMp3Status):empty { display: none; }
.tn-mp3-tool .tn-mp3-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  min-width: 0;
  padding: 16px;
  border-top: 1px solid var(--mp3-line);
  background: var(--mp3-wash);
}
.tn-mp3-tool .tn-mp3-result-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px;
  min-width: 0;
  color: var(--mp3-ink);
  -webkit-text-fill-color: var(--mp3-ink);
}
.tn-mp3-tool .tn-mp3-result-heading strong { font-size: 15px; font-weight: 800; }
.tn-mp3-tool #tnMp3Audio {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 54px;
  margin: 0;
}
.tn-mp3-tool :is(.tn-mp3-note, noscript p) {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--mp3-line);
  color: var(--mp3-muted);
  -webkit-text-fill-color: var(--mp3-muted);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.tn-mp3-page .tn-mp3-ad {
  width: 100%;
  max-width: 900px;
  min-height: 90px;
  height: auto;
  max-height: none;
  margin: 24px auto;
  border: 0;
  background: transparent;
  overflow: visible;
}
.tn-mp3-page .tn-mp3-ad--top { margin-top: 0; }
@media (max-width: 600px) {
  .tn-mp3-tool .tn-mp3-drop { min-height: 236px; margin: 12px; padding: 24px 12px; gap: 14px; }
  .tn-mp3-tool .tn-mp3-drop-title { font-size: 18px; }
  .tn-mp3-tool .tn-mp3-toolbar { gap: 10px; padding: 12px; }
  .tn-mp3-tool .tn-mp3-field { width: 100%; }
  .tn-mp3-tool .tn-mp3-actions { gap: 6px; }
  .tn-mp3-tool .tn-mp3-quality { padding: 10px 12px; }
  .tn-mp3-tool .tn-mp3-feedback { padding: 0 12px; }
  .tn-mp3-tool .tn-mp3-result { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .tn-mp3-tool #tnMp3Download { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-mp3-tool,
  .tn-mp3-tool *,
  .tn-mp3-tool *::before,
  .tn-mp3-tool *::after { animation: none; transition: none; scroll-behavior: auto; }
}
