.tn-excel-page {
  --excel-paper: #faf6ee;
  --excel-surface: #fffcf4;
  --excel-wash: #f5efdf;
  --excel-ink: #1a1208;
  --excel-muted: #5a4a30;
  --excel-line: #b8a888;
  --excel-soft: #ddd4be;
  --excel-button: #ede6d4;
  --excel-hover: #dfd4bb;
  --excel-accent: #c44a00;
  width: calc(100% - 10px);
  max-width: 1180px;
  margin-inline: auto;
  color: var(--excel-ink);
  -webkit-text-fill-color: var(--excel-ink);
}
.tn-excel-page *, .tn-excel-page *::before, .tn-excel-page *::after { box-sizing: border-box; }
.tn-excel-page .tn-excel-ad { width: min(900px, 100%); margin-inline: auto; background: transparent; }
.tn-excel-page .tn-excel-ad--top { margin-top: 54px; margin-bottom: 18px; }
.tn-excel-page .tn-excel-ad--bottom { margin-top: 16px; margin-bottom: 26px; }
.tn-excel-page .tn-excel-ad ins { max-width: 100%; }
.tn-excel-page .tn-excel-tool { font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Segoe UI', system-ui, sans-serif; }
.tn-excel-page .tn-excel-tool :is(h2, h3, p) { margin: 0; }
.tn-excel-page .tn-excel-tool :is(button, textarea) { font-family: inherit; }
.tn-excel-page .tn-excel-tool :is(button, textarea):focus-visible { outline: 2px solid var(--excel-accent); outline-offset: 2px; }
.tn-excel-page .tn-excel-tool :is(code, pre, kbd, samp) { padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; -webkit-text-fill-color: inherit; }
.tn-excel-page .tn-excel-tool button { display: inline-grid; place-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--excel-line); border-radius: 0; box-shadow: none; background: var(--excel-button); color: var(--excel-ink); -webkit-text-fill-color: var(--excel-ink); font-size: 12px; font-weight: 800; line-height: 1.15; text-align: center; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.tn-excel-page .tn-excel-tool button:hover:not(:disabled) { background: var(--excel-hover); border-color: var(--excel-ink); }
.tn-excel-page .tn-excel-tool button:active:not(:disabled) { transform: scale(.96); }
.tn-excel-page .tn-excel-tool button:disabled { opacity: .48; cursor: not-allowed; }
.tn-excel-page .tn-excel-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr); align-items: stretch; gap: 0; }
.tn-excel-page .tn-excel-pane { display: flex; flex-direction: column; min-width: 0; padding: 16px; border: 1px solid var(--excel-line); background: var(--excel-paper); }
.tn-excel-page .tn-excel-pane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 48px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--excel-soft); }
.tn-excel-page .tn-excel-pane-head h2 { color: var(--excel-ink); -webkit-text-fill-color: var(--excel-ink); font-size: 17px; font-weight: 800; line-height: 1.3; text-wrap: balance; }
.tn-excel-page .tn-excel-pane-head :is(span, small) { color: var(--excel-muted); -webkit-text-fill-color: var(--excel-muted); font-size: 11px; font-weight: 650; line-height: 1.4; }
.tn-excel-page .tn-excel-pane-head label { display: inline; margin: 0; padding: 0; color: inherit; -webkit-text-fill-color: inherit; font: inherit; cursor: text; }
.tn-excel-page .tn-excel-pane textarea { display: block; width: 100%; min-width: 0; min-height: 146px; max-width: 100%; padding: 15px 16px; border: 1px solid var(--excel-line); border-radius: 0; background: var(--excel-surface); color: var(--excel-ink); -webkit-text-fill-color: var(--excel-ink); font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Segoe UI', system-ui, sans-serif; font-size: 25px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; line-height: 1.28; letter-spacing: -.02em; resize: vertical; overflow-x: hidden; overflow-wrap: anywhere; white-space: pre-wrap; }
.tn-excel-page .tn-excel-pane textarea::placeholder { color: var(--excel-muted); -webkit-text-fill-color: var(--excel-muted); font-weight: 400; opacity: .35; }
.tn-excel-page .tn-excel-pane textarea[aria-invalid="true"] { border-color: var(--excel-accent); }
.tn-excel-page .tn-excel-tool[data-excel-active="letters"] .tn-excel-numbers textarea,
.tn-excel-page .tn-excel-tool[data-excel-active="numbers"] .tn-excel-letters textarea { font-weight: 800; }
.tn-excel-page .tn-excel-pane-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; min-height: 48px; padding-top: 8px; }
.tn-excel-page .tn-excel-pane-footer :is(p, span, small) { color: var(--excel-muted); -webkit-text-fill-color: var(--excel-muted); font-size: 11px; line-height: 1.4; }
.tn-excel-page .tn-excel-pane-footer .tn-excel-copy { margin-left: auto; min-width: 88px; background: var(--excel-ink); border-color: var(--excel-ink); color: var(--excel-paper); -webkit-text-fill-color: var(--excel-paper); }
.tn-excel-page .tn-excel-pane-footer .tn-excel-copy:hover:not(:disabled) { background: var(--excel-accent); border-color: var(--excel-accent); }
.tn-excel-page .tn-excel-swap { display: grid; place-items: center; align-self: center; min-width: 0; color: var(--excel-accent); -webkit-text-fill-color: var(--excel-accent); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: 30px; font-weight: 600; line-height: 1; }
.tn-excel-page .tn-excel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tn-excel-page .tn-excel-actions > div { display: flex; flex-wrap: wrap; gap: 6px; }
.tn-excel-page .tn-excel-actions > :is(p, span, small) { margin-left: auto; color: var(--excel-muted); -webkit-text-fill-color: var(--excel-muted); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.4; }
.tn-excel-page #tnExcelStatus { min-height: 19px; margin-top: 9px; color: var(--excel-muted); -webkit-text-fill-color: var(--excel-muted); font-size: 12px; line-height: 1.55; text-wrap: pretty; }
.tn-excel-page .tn-excel-mapping { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 17px; border-top: 1px solid var(--excel-soft); border-bottom: 1px solid var(--excel-soft); background: var(--excel-wash); }
.tn-excel-page .tn-excel-mapping > * { display: flex; align-items: baseline; justify-content: center; gap: 9px; min-width: 0; margin: 0; padding: 9px 5px; color: var(--excel-ink); -webkit-text-fill-color: var(--excel-ink); font-size: 12px; line-height: 1.4; }
.tn-excel-page .tn-excel-mapping > * + * { border-left: 1px solid var(--excel-soft); }
.tn-excel-page .tn-excel-mapping b { font-weight: 800; font-variant-numeric: tabular-nums; }
.tn-excel-page .tn-excel-mapping b { color: var(--excel-accent); -webkit-text-fill-color: var(--excel-accent); }
.tn-excel-page .tn-excel-noscript { margin-top: 12px !important; color: var(--excel-muted); font-size: 13px; }
.tn-excel-page .tn-excel-article .tn-info-card :is(p, li, a) { overflow-wrap: anywhere; }

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-excel-page,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-excel-page {
  --excel-paper: #241d12; --excel-surface: #322a1a; --excel-wash: #2c2517; --excel-ink: #efe6d2; --excel-muted: #c3b492; --excel-line: #6f6047; --excel-soft: #574a37; --excel-button: #3c321f; --excel-hover: #4a3b27; --excel-accent: #e8823f;
}
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-excel-page .tn-excel-tool button,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-excel-page .tn-excel-tool button { 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-excel-page .tn-excel-pane-footer .tn-excel-copy,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-excel-page .tn-excel-pane-footer .tn-excel-copy { background: #4a3116; border-color: #e8823f; color: #f7ead1; -webkit-text-fill-color: #f7ead1; }
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-excel-page { --excel-paper: #241d12; --excel-surface: #322a1a; --excel-wash: #2c2517; --excel-ink: #efe6d2; --excel-muted: #c3b492; --excel-line: #6f6047; --excel-soft: #574a37; --excel-button: #3c321f; --excel-hover: #4a3b27; --excel-accent: #e8823f; }
  body[data-scheme="auto"] .tn-excel-page .tn-excel-tool button { color: #f7ead1; -webkit-text-fill-color: #f7ead1; }
  body[data-scheme="auto"] .tn-excel-page .tn-excel-pane-footer .tn-excel-copy { background: #4a3116; border-color: #e8823f; color: #f7ead1; -webkit-text-fill-color: #f7ead1; }
}
@media (max-width: 720px) {
  .tn-excel-page .tn-excel-ad--top { margin-top: 48px; }
  .tn-excel-page .tn-excel-workbench { grid-template-columns: minmax(0, 1fr); }
  .tn-excel-page .tn-excel-pane { padding: 11px; }
  .tn-excel-page .tn-excel-swap { min-height: 36px; transform: rotate(90deg); font-size: 25px; }
  .tn-excel-page .tn-excel-pane textarea { min-height: 156px; font-size: 22px; }
  .tn-excel-page .tn-excel-mapping { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-excel-page .tn-excel-mapping > :nth-child(3) { border-left: 0; border-top: 1px solid var(--excel-soft); }
  .tn-excel-page .tn-excel-mapping > :nth-child(4) { border-top: 1px solid var(--excel-soft); }
}
@media (max-width: 360px) {
  .tn-excel-page .tn-excel-actions > :is(p, span, small) { flex-basis: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .tn-excel-page .tn-excel-tool button { transition: none; } }
