.tn-text-cleaner-page {
  --tcl-paper: #faf6ee;
  --tcl-surface: #fffcf4;
  --tcl-wash: #f5efdf;
  --tcl-ink: #1a1208;
  --tcl-muted: #5a4a30;
  --tcl-line: #b8a888;
  --tcl-soft: #ddd4be;
  --tcl-button: #ede6d4;
  --tcl-accent: #c44a00;
  width: calc(100% - 10px);
  max-width: 1180px;
  margin-inline: auto;
  color: var(--tcl-ink);
  -webkit-text-fill-color: var(--tcl-ink);
}
.tn-text-cleaner-page *, .tn-text-cleaner-page *::before, .tn-text-cleaner-page *::after { box-sizing: border-box; }
.tn-text-cleaner-page .tcl-ad { width: min(900px, 100%); min-height: 90px; margin-inline: auto; background: transparent; }
.tn-text-cleaner-page .tcl-ad--top { margin-top: 54px; margin-bottom: 18px; }
.tn-text-cleaner-page .tcl-ad--bottom { margin-top: 16px; margin-bottom: 26px; }
.tn-text-cleaner-page .tcl-ad ins { max-width: 100%; }
.tn-text-cleaner-page .tcl-tool { border: 1px solid var(--tcl-line); padding: 18px; background: var(--tcl-paper); font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
.tn-text-cleaner-page .tcl-tool :is(button, select, input, textarea) { font: inherit; }
.tn-text-cleaner-page .tcl-tool :is(h2, p) { margin: 0; }
.tn-text-cleaner-page .tcl-tool :is(button, select, input, textarea):focus-visible,
.tn-text-cleaner-page .tcl-file-label:focus-within { outline: 2px solid var(--tcl-accent); outline-offset: 2px; }
.tn-text-cleaner-page .tcl-tool :is(button, select, input[type="checkbox"], input[type="file"]) { cursor: pointer; }
.tn-text-cleaner-page .tcl-tool :is(button, select):disabled { opacity: .5; cursor: not-allowed; }
.tn-text-cleaner-page .tcl-toolbar, .tn-text-cleaner-page .tcl-command-row, .tn-text-cleaner-page .tcl-pane-head, .tn-text-cleaner-page .tcl-pane-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tn-text-cleaner-page .tcl-toolbar { padding-bottom: 14px; flex-wrap: wrap; }
.tn-text-cleaner-page .tcl-privacy { color: var(--tcl-muted); -webkit-text-fill-color: var(--tcl-muted); font-size: 12px; line-height: 1.4; }
.tn-text-cleaner-page .tcl-top-actions, .tn-text-cleaner-page .tcl-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tn-text-cleaner-page .tcl-tool :is(button, .tcl-file-label) { display: inline-grid; place-items: center; min-height: 40px; padding: 8px 13px; border: 1px solid var(--tcl-line); border-radius: 0; box-shadow: none; background: var(--tcl-button); color: var(--tcl-ink); -webkit-text-fill-color: var(--tcl-ink); font-size: 12px; font-weight: 800; line-height: 1.25; text-align: center; }
.tn-text-cleaner-page .tcl-tool :is(button:not(.tcl-primary), .tcl-file-label):hover:not(:disabled) { background: #dfd4bb; border-color: var(--tcl-ink); }
.tn-text-cleaner-page .tcl-file-label { position: relative; cursor: pointer; }
.tn-text-cleaner-page .tcl-file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tn-text-cleaner-page .tcl-tool button.tcl-primary { min-width: 174px; background: var(--tcl-ink); border-color: var(--tcl-ink); color: var(--tcl-paper); -webkit-text-fill-color: var(--tcl-paper); }
.tn-text-cleaner-page .tcl-tool button.tcl-primary:hover { background: var(--tcl-accent); border-color: var(--tcl-accent); }
.tn-text-cleaner-page .tcl-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.tn-text-cleaner-page .tcl-pane { min-width: 0; border: 1px solid var(--tcl-line); background: var(--tcl-surface); }
.tn-text-cleaner-page .tcl-pane--output { background: var(--tcl-wash); }
.tn-text-cleaner-page .tcl-pane-head { min-height: 46px; padding: 9px 13px; border-bottom: 1px solid var(--tcl-soft); }
.tn-text-cleaner-page .tcl-pane-head :is(label, h2) { display: flex; align-items: center; gap: 8px; color: var(--tcl-ink); -webkit-text-fill-color: var(--tcl-ink); font-size: 15px; font-weight: 850; line-height: 1.3; }
.tn-text-cleaner-page .tcl-pane-index { color: var(--tcl-accent); -webkit-text-fill-color: var(--tcl-accent); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tn-text-cleaner-page .tcl-pane-head small, .tn-text-cleaner-page .tcl-pane-foot { color: var(--tcl-muted); -webkit-text-fill-color: var(--tcl-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tn-text-cleaner-page .tcl-pane-head small { white-space: nowrap; }
.tn-text-cleaner-page .tcl-pane textarea { display: block; width: 100%; min-height: 320px; max-width: 100%; padding: 15px; border: 0; border-radius: 0; resize: vertical; background: transparent; color: var(--tcl-ink); -webkit-text-fill-color: var(--tcl-ink); font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: hidden; }
.tn-text-cleaner-page .tcl-pane textarea::placeholder { color: var(--tcl-muted); -webkit-text-fill-color: var(--tcl-muted); opacity: .58; }
.tn-text-cleaner-page .tcl-pane-foot { min-height: 31px; padding: 7px 13px; border-top: 1px solid var(--tcl-soft); }
.tn-text-cleaner-page .tcl-pane-foot span { min-width: 0; overflow-wrap: anywhere; }
.tn-text-cleaner-page .tcl-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 12px; border: 1px solid var(--tcl-line); background: var(--tcl-surface); }
.tn-text-cleaner-page .tcl-options fieldset { min-width: 0; margin: 0; padding: 12px 13px 14px; border: 0; border-right: 1px solid var(--tcl-soft); }
.tn-text-cleaner-page .tcl-options fieldset:last-child { border-right: 0; }
.tn-text-cleaner-page .tcl-options legend { margin: 0 0 8px; padding: 0; color: var(--tcl-muted); -webkit-text-fill-color: var(--tcl-muted); font-size: 12px; font-weight: 800; }
.tn-text-cleaner-page .tcl-options select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--tcl-line); border-radius: 0; background: var(--tcl-paper); color: var(--tcl-ink); -webkit-text-fill-color: var(--tcl-ink); font-size: 13px; }
.tn-text-cleaner-page .tcl-check { display: flex; align-items: flex-start; gap: 7px; min-height: 26px; margin-top: 5px; color: var(--tcl-ink); -webkit-text-fill-color: var(--tcl-ink); font-size: 12px; line-height: 1.4; cursor: pointer; }
.tn-text-cleaner-page .tcl-check input { width: 16px; height: 16px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--tcl-accent); }
.tn-text-cleaner-page .tcl-command-row { flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--tcl-soft); }
.tn-text-cleaner-page .tcl-status { flex: 1 1 180px; color: var(--tcl-muted); -webkit-text-fill-color: var(--tcl-muted); font-size: 12px; line-height: 1.45; }
.tn-text-cleaner-page[data-state="error"] .tcl-status, .tn-text-cleaner-page[data-state="stale"] .tcl-status { color: var(--tcl-accent); -webkit-text-fill-color: var(--tcl-accent); }
.tn-text-cleaner-page .tcl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; border: 1px solid var(--tcl-line); background: var(--tcl-wash); }
.tn-text-cleaner-page .tcl-stats > div { min-width: 0; padding: 9px 13px; border-right: 1px solid var(--tcl-soft); }
.tn-text-cleaner-page .tcl-stats > div:last-child { border-right: 0; }
.tn-text-cleaner-page .tcl-stats span { display: block; color: var(--tcl-muted); -webkit-text-fill-color: var(--tcl-muted); font-size: 11px; }
.tn-text-cleaner-page .tcl-stats strong { display: block; margin-top: 3px; color: var(--tcl-ink); -webkit-text-fill-color: var(--tcl-ink); font-size: 21px; font-weight: 800; font-variant-numeric: lining-nums tabular-nums; }
.tn-text-cleaner-page .tcl-hint { margin-top: 9px !important; color: var(--tcl-muted); -webkit-text-fill-color: var(--tcl-muted); font-size: 12px; line-height: 1.45; }

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-text-cleaner-page,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-text-cleaner-page {
  --tcl-paper: #241d12; --tcl-surface: #322a1a; --tcl-wash: #2c2517; --tcl-ink: #efe6d2; --tcl-muted: #c3b492; --tcl-line: #6f6047; --tcl-soft: #574a37; --tcl-button: #3c321f; --tcl-accent: #e8823f;
}
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-text-cleaner-page .tcl-tool button.tcl-primary,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-text-cleaner-page .tcl-tool button.tcl-primary { background: #4a3116; border-color: #e8823f; color: #f7ead1; -webkit-text-fill-color: #f7ead1; }
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-text-cleaner-page .tcl-tool :is(button, .tcl-file-label),
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-text-cleaner-page .tcl-tool :is(button, .tcl-file-label) { color: #f7ead1; -webkit-text-fill-color: #f7ead1; }
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-text-cleaner-page .tcl-tool :is(button:not(.tcl-primary), .tcl-file-label):hover:not(:disabled),
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-text-cleaner-page .tcl-tool :is(button:not(.tcl-primary), .tcl-file-label):hover:not(:disabled) { background: #4a3b27; border-color: #c3b492; }
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-text-cleaner-page { --tcl-paper: #241d12; --tcl-surface: #322a1a; --tcl-wash: #2c2517; --tcl-ink: #efe6d2; --tcl-muted: #c3b492; --tcl-line: #6f6047; --tcl-soft: #574a37; --tcl-button: #3c321f; --tcl-accent: #e8823f; }
  body[data-scheme="auto"] .tn-text-cleaner-page .tcl-tool button.tcl-primary { background: #4a3116; border-color: #e8823f; color: #f7ead1; -webkit-text-fill-color: #f7ead1; }
  body[data-scheme="auto"] .tn-text-cleaner-page .tcl-tool :is(button, .tcl-file-label) { color: #f7ead1; -webkit-text-fill-color: #f7ead1; }
  body[data-scheme="auto"] .tn-text-cleaner-page .tcl-tool :is(button:not(.tcl-primary), .tcl-file-label):hover:not(:disabled) { background: #4a3b27; border-color: #c3b492; }
}
@media (max-width: 850px) { .tn-text-cleaner-page .tcl-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tn-text-cleaner-page .tcl-options fieldset:nth-child(2) { border-right: 0; } .tn-text-cleaner-page .tcl-options fieldset:nth-child(-n+2) { border-bottom: 1px solid var(--tcl-soft); } }
@media (max-width: 720px) {
  .tn-text-cleaner-page .tcl-ad--top { margin-top: 48px; }
  .tn-text-cleaner-page .tcl-tool { padding: 9px; }
  .tn-text-cleaner-page .tcl-workspace { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .tn-text-cleaner-page .tcl-pane textarea { min-height: 190px; }
  .tn-text-cleaner-page .tcl-top-actions, .tn-text-cleaner-page .tcl-result-actions { width: 100%; }
  .tn-text-cleaner-page .tcl-top-actions > *, .tn-text-cleaner-page .tcl-result-actions > * { flex: 1 1 auto; }
  .tn-text-cleaner-page .tcl-tool button.tcl-primary { width: 100%; }
  .tn-text-cleaner-page .tcl-status { order: 3; flex-basis: 100%; }
  .tn-text-cleaner-page .tcl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-text-cleaner-page .tcl-stats > div:nth-child(2) { border-right: 0; }
  .tn-text-cleaner-page .tcl-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--tcl-soft); }
}
@media (max-width: 430px) { .tn-text-cleaner-page .tcl-options { grid-template-columns: minmax(0, 1fr); } .tn-text-cleaner-page .tcl-options fieldset { border-right: 0; border-bottom: 1px solid var(--tcl-soft); } .tn-text-cleaner-page .tcl-options fieldset:last-child { border-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .tn-text-cleaner-page .tcl-tool button { transition: none; } }
