.tn-bcs-page {
  --bcs-paper: #faf6ee; --bcs-wash: #f5efdf; --bcs-ink: #1a1208; --bcs-muted: #5a4a30;
  --bcs-line: #b8a888; --bcs-soft-line: #ddd4be; --bcs-button: #ede6d4; --bcs-hover: #dfd4bb;
  --bcs-focus: #a83d00; --bcs-primary: #6a3b1f; --bcs-primary-hover: #824826; --bcs-primary-text: #f7ead1;
  width: min(1180px, 100%); margin: 0 auto; color: var(--bcs-ink); -webkit-text-fill-color: var(--bcs-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-bcs-page,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-bcs-page {
  --bcs-paper: #241d12; --bcs-wash: #322a1a; --bcs-ink: #f7ead1; --bcs-muted: #c3b492;
  --bcs-line: #826744; --bcs-soft-line: #51432c; --bcs-button: #2f2115; --bcs-hover: #3a2a1b; --bcs-focus: #e8823f;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-bcs-page {
    --bcs-paper: #241d12; --bcs-wash: #322a1a; --bcs-ink: #f7ead1; --bcs-muted: #c3b492;
    --bcs-line: #826744; --bcs-soft-line: #51432c; --bcs-button: #2f2115; --bcs-hover: #3a2a1b; --bcs-focus: #e8823f;
    color-scheme: dark;
  }
}
.tn-bcs-page .tn-bcs-tool {
  box-sizing: border-box; width: 100%; min-width: 0; margin: 0;
  border: 1px solid var(--bcs-line); border-radius: 0; background: var(--bcs-paper);
  color: var(--bcs-ink); -webkit-text-fill-color: var(--bcs-ink); box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", system-ui, sans-serif;
  font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.tn-bcs-tool *, .tn-bcs-tool *::before, .tn-bcs-tool *::after { box-sizing: border-box; }
.tn-bcs-tool [hidden] { display: none !important; }
.tn-bcs-tool p { margin: 0; padding: 0; word-break: keep-all; overflow-wrap: anywhere; }
.tn-bcs-tool .tn-bcs-modebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--bcs-line); }
.tn-bcs-tool :is(.tn-bcs-modebar button, .tn-bcs-button) {
  appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; max-width: 100%; height: 42px; min-height: 42px; margin: 0; padding: 0 14px;
  border: 1px solid var(--bcs-line); border-radius: 0; background: var(--bcs-button); background-image: none;
  color: var(--bcs-ink); -webkit-text-fill-color: var(--bcs-ink); box-shadow: none; outline: none;
  font-family: "Courier New", Courier, monospace; font-size: 13px; font-weight: 900; line-height: 1; letter-spacing: normal;
  text-align: center; text-transform: none; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.tn-bcs-tool .tn-bcs-modebar button { border: 0; border-right: 1px solid var(--bcs-line); background: var(--bcs-paper); }
.tn-bcs-tool .tn-bcs-modebar button:last-child { border-right: 0; }
.tn-bcs-tool :is(.tn-bcs-modebar button, .tn-bcs-button):hover:not(:disabled) { background: var(--bcs-hover); }
.tn-bcs-tool .tn-bcs-modebar button[aria-pressed="true"] { background: var(--bcs-wash); box-shadow: inset 0 -3px var(--bcs-focus); }
.tn-bcs-tool .tn-bcs-button.tn-bcs-button--primary { background: var(--bcs-primary); border-color: var(--bcs-primary); color: var(--bcs-primary-text); -webkit-text-fill-color: var(--bcs-primary-text); }
.tn-bcs-tool .tn-bcs-button.tn-bcs-button--primary:is(:hover, :focus-visible):not(:disabled) { background: var(--bcs-primary-hover); border-color: var(--bcs-primary-hover); }
.tn-bcs-tool button:disabled { opacity: .6; cursor: not-allowed; }
.tn-bcs-tool :is(button, input, .tn-bcs-drop, a):focus-visible { outline: 2px solid var(--bcs-focus); outline-offset: 2px; }
.tn-bcs-tool .tn-bcs-workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; padding: 22px; align-items: start; }
.tn-bcs-tool :is(.tn-bcs-input, .tn-bcs-panel, .tn-bcs-result) { display: grid; align-content: start; gap: 12px; min-width: 0; }
.tn-bcs-tool .tn-bcs-camera { position: relative; isolation: isolate; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1610; border: 1px solid var(--bcs-line); }
.tn-bcs-tool .tn-bcs-camera :is(video, canvas) { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: 100%; margin: 0; object-fit: contain; border: 0; border-radius: 0; }
.tn-bcs-tool .tn-bcs-camera canvas.drawingBuffer { pointer-events: none; }
.tn-bcs-tool .tn-bcs-camera-guide { position: absolute; z-index: 2; inset: 25% 12%; border: 1px solid #c3b492; pointer-events: none; }
.tn-bcs-tool .tn-bcs-scanline { position: absolute; top: 50%; left: 4%; right: 4%; height: 1px; background: #e8823f; }
.tn-bcs-tool :is(.tn-bcs-hint, .tn-bcs-privacy, .tn-bcs-result-note) { color: var(--bcs-muted); -webkit-text-fill-color: var(--bcs-muted); font-size: 12px; line-height: 1.75; }
.tn-bcs-tool .tn-bcs-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tn-bcs-tool .tn-bcs-status { padding-top: 12px; border-top: 1px solid var(--bcs-soft-line); font-size: 13px; color: var(--bcs-ink); -webkit-text-fill-color: var(--bcs-ink); }
.tn-bcs-tool .tn-bcs-status:is([data-state="error"], .is-error) { border: 1px solid var(--bcs-focus); padding: 10px 12px; background: var(--bcs-wash); }
.tn-bcs-tool .tn-bcs-status:empty { display: none; }
.tn-bcs-tool .tn-bcs-result { border-left: 1px solid var(--bcs-soft-line); padding-left: 24px; }
.tn-bcs-tool .tn-bcs-result-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--bcs-line); }
.tn-bcs-tool .tn-bcs-result-head > span { color: var(--bcs-muted); -webkit-text-fill-color: var(--bcs-muted); font-size: 12px; }
.tn-bcs-tool .tn-bcs-result-head > strong { font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.tn-bcs-tool .tn-bcs-value { display: block; min-width: 0; padding: 12px 0 4px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.35; letter-spacing: .01em; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--bcs-ink); -webkit-text-fill-color: var(--bcs-ink); }
.tn-bcs-tool .tn-bcs-check { font-size: 13px; line-height: 1.7; color: var(--bcs-muted); -webkit-text-fill-color: var(--bcs-muted); }
.tn-bcs-tool .tn-bcs-result-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 4px; }
.tn-bcs-tool .tn-bcs-result-actions .tn-bcs-button { width: 100%; padding-inline: 8px; font-size: 12px; }
.tn-bcs-tool .tn-bcs-result-note { padding-top: 12px; border-top: 1px solid var(--bcs-soft-line); }
.tn-bcs-tool .tn-bcs-result-note a { color: var(--bcs-ink); -webkit-text-fill-color: var(--bcs-ink); text-decoration: underline; text-underline-offset: 3px; }
.tn-bcs-tool .tn-bcs-drop { display: grid; justify-items: center; align-content: center; gap: 10px; min-width: 0; min-height: 220px; padding: 24px 16px; border: 1px dashed var(--bcs-line); background: var(--bcs-wash); text-align: center; cursor: pointer; }
.tn-bcs-tool .tn-bcs-drop-symbol { font-size: 36px; line-height: 1; color: var(--bcs-muted); -webkit-text-fill-color: var(--bcs-muted); }
.tn-bcs-tool .tn-bcs-drop strong { font-size: 17px; font-weight: 800; word-break: keep-all; overflow-wrap: anywhere; }
.tn-bcs-tool .tn-bcs-drop p { font-size: 13px; color: var(--bcs-muted); -webkit-text-fill-color: var(--bcs-muted); }
.tn-bcs-tool .tn-bcs-drop.is-dragover { border-color: var(--bcs-focus); border-style: solid; background: var(--bcs-hover); }
.tn-bcs-tool .tn-bcs-file-input { position: absolute; width: 1px; height: 1px; min-width: 0; min-height: 0; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
.tn-bcs-tool .tn-bcs-file-input:focus-visible + .tn-bcs-drop { outline: 2px solid var(--bcs-focus); outline-offset: 2px; }
.tn-bcs-tool .tn-bcs-preview { display: block; width: 100%; max-width: 100%; max-height: 240px; margin: 0; padding: 8px; border: 1px solid var(--bcs-line); border-radius: 0; background: var(--bcs-wash); object-fit: contain; box-shadow: none; }
.tn-bcs-tool .tn-bcs-field-label { margin: 0; font-size: 13px; font-weight: 700; color: var(--bcs-ink); -webkit-text-fill-color: var(--bcs-ink); }
.tn-bcs-tool .tn-bcs-manual-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.tn-bcs-tool #bcsManual { appearance: none; width: 100%; min-width: 0; height: 42px; margin: 0; padding: 0 10px; border: 1px solid var(--bcs-line); border-radius: 0; background: var(--bcs-paper); color: var(--bcs-ink); -webkit-text-fill-color: var(--bcs-ink); box-shadow: none; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: normal; }
.tn-bcs-tool #bcsManual::placeholder { color: var(--bcs-muted); -webkit-text-fill-color: var(--bcs-muted); font-size: 14px; font-weight: 600; opacity: 1; }
.tn-bcs-tool[aria-busy="true"] .tn-bcs-drop { cursor: progress; }
.tn-bcs-tool noscript p { padding: 12px 22px; border-top: 1px solid var(--bcs-line); }
.tn-bcs-page .tn-bcs-responsive-ad { width: 100%; max-width: 900px; min-height: 90px; height: auto; max-height: none; margin: 24px auto; border: 0; background: transparent; overflow: visible; }
.tn-bcs-page .tn-bcs-responsive-ad--top { margin-top: 54px; }
.tn-bcs-page .tn-bcs-responsive-ad--bottom { margin-bottom: 28px; }
html body .tn-bcs-page[data-tn-fixed-partials="character-counter"] .tn-bcs-responsive-ad,
html body .tn-bcs-page[data-tn-fixed-partials="character-counter"] .tn-bcs-responsive-ad > .aicp,
html body .tn-bcs-page[data-tn-fixed-partials="character-counter"] .tn-bcs-responsive-ad ins.adsbygoogle { width: 100% !important; min-width: 0 !important; height: auto !important; max-height: none !important; overflow: visible !important; }
html body .tn-bcs-page[data-tn-fixed-partials="character-counter"] .tn-bcs-responsive-ad > .aicp,
html body .tn-bcs-page[data-tn-fixed-partials="character-counter"] .tn-bcs-responsive-ad ins.adsbygoogle { max-width: 100% !important; }
@media (max-width: 760px) {
  .tn-bcs-tool .tn-bcs-workspace { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tn-bcs-tool .tn-bcs-result { border-left: 0; border-top: 1px solid var(--bcs-line); padding: 16px 0 0; }
  .tn-bcs-tool .tn-bcs-value { padding-top: 4px; font-size: 26px; }
}
@media (max-width: 720px) {
  .tn-bcs-page .tn-bcs-responsive-ad--top { margin-top: 48px; }
}
@media (max-width: 600px) {
  .tn-bcs-page { width: calc(100% - 10px); }
  .tn-bcs-tool .tn-bcs-workspace { padding: 12px; }
  .tn-bcs-tool .tn-bcs-modebar button { padding-inline: 6px; font-size: 12px; }
  .tn-bcs-tool .tn-bcs-drop { min-height: 190px; padding: 20px 12px; }
  .tn-bcs-tool .tn-bcs-manual-row { gap: 6px; }
  .tn-bcs-tool .tn-bcs-manual-row .tn-bcs-button { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-bcs-tool *, .tn-bcs-tool *::before, .tn-bcs-tool *::after { scroll-behavior: auto; transition: none; animation: none; }
}
