/* Wallpaper cost workspace only; the shared fixed partials own the hero and Article. */
.tn-wc-page {
  --wc-paper: #faf6ee;
  --wc-surface: #fffdf7;
  --wc-wash: #f5efdf;
  --wc-ink: #1a1208;
  --wc-muted: #5a4a30;
  --wc-line: #b8a888;
  --wc-soft: #ddd4be;
  --wc-accent: #c44a00;
  --wc-error: #8a2b15;
  --wc-button: #1a1208;
  --wc-button-hover: #823200;
  --wc-button-text: #faf6ee;
  --wc-quiet: #ede6d4;
  --wc-quiet-hover: #dfd4bb;
  --wc-field: #fffdf7;
  --wc-scheme: light;
  --wc-sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", system-ui, sans-serif;
}
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-d="dark"], [data-scheme="auto"][data-l="dark"]) .tn-wc-page,
html:is([data-scheme="dark"], [data-scheme="inverse"]) body:not([data-scheme="light"]) .tn-wc-page {
  --wc-paper: #241d12;
  --wc-surface: #322a1a;
  --wc-wash: #2c2418;
  --wc-ink: #efe6d2;
  --wc-muted: #c3b492;
  --wc-line: #826744;
  --wc-soft: #574a37;
  --wc-accent: #f29a5d;
  --wc-error: #f1a078;
  --wc-button: #4a3116;
  --wc-button-hover: #5d3c1b;
  --wc-button-text: #f7ead1;
  --wc-quiet: #2f2115;
  --wc-quiet-hover: #3a2a1b;
  --wc-field: #21170f;
  --wc-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-wc-page,
  html[data-scheme="auto"] body:not([data-scheme="light"]):not([data-scheme="dark"]):not([data-scheme="inverse"]) .tn-wc-page {
    --wc-paper: #241d12;
    --wc-surface: #322a1a;
    --wc-wash: #2c2418;
    --wc-ink: #efe6d2;
    --wc-muted: #c3b492;
    --wc-line: #826744;
    --wc-soft: #574a37;
    --wc-accent: #f29a5d;
    --wc-error: #f1a078;
    --wc-button: #4a3116;
    --wc-button-hover: #5d3c1b;
    --wc-button-text: #f7ead1;
    --wc-quiet: #2f2115;
    --wc-quiet-hover: #3a2a1b;
  --wc-field: #21170f;
    --wc-scheme: dark;
  }
}
.tn-wc-page [hidden] { display: none !important; }
/* The creative is SDK-sized; these wrappers reserve minimum space, never cap its height. */
.tn-wc-page .tn-wc-ad {
  width: 100%;
  max-width: 900px;
  min-height: 90px;
  height: auto;
  max-height: none;
  margin-inline: auto;
  overflow: visible;
  background: transparent;
}
.tn-wc-page .tn-wc-ad--top { margin-block: 54px 18px; }
.tn-wc-page .tn-wc-ad--bottom { margin-block: 28px 26px; }
.tn-wc-page .tn-wc-tool,
.tn-wc-page .tn-wc-tool *,
.tn-wc-page .tn-wc-tool *::before,
.tn-wc-page .tn-wc-tool *::after { box-sizing: border-box; }
.tn-wc-page .tn-wc-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto;
  border: 1px solid var(--wc-line);
  border-block: 3px double var(--wc-line);
  background: var(--wc-paper);
  color: var(--wc-ink);
  -webkit-text-fill-color: currentColor;
  color-scheme: var(--wc-scheme);
  font: 14px/1.6 var(--wc-sans);
  overflow-wrap: break-word;
}
.tn-wc-page .tn-wc-tool :is(p, dl, dt, dd, ul, li) { margin: 0; }
.tn-wc-page .tn-wc-tool :is(ul, ol, li) { padding-left: 0; list-style: none; }
.tn-wc-page .tn-wc-tool li::before { content: none; }
.tn-wc-page .tn-wc-tool :is(code, pre, kbd, samp) { padding: 0; border: 0; border-radius: 0; background: none; background-color: transparent; color: inherit; -webkit-text-fill-color: inherit; }
.tn-wc-page .tn-wc-tool fieldset { min-width: 0; margin: 0; border: 0; }
.tn-wc-page .tn-wc-inputs,
.tn-wc-page .tn-wc-results {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 28px;
}
.tn-wc-page .tn-wc-results { border-left: 1px solid var(--wc-line); background: var(--wc-wash); }
.tn-wc-page .tn-wc-tool .tn-wc-kicker { color: var(--wc-muted); -webkit-text-fill-color: var(--wc-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; line-height: 1.4; }

/* Mode tabs: two visible modes, full row, no idle gap beside them. */
.tn-wc-page .tn-wc-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--wc-line); background: var(--wc-surface); }
.tn-wc-page .tn-wc-tabs .tn-wc-tab {
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--wc-muted);
  -webkit-text-fill-color: var(--wc-muted);
  font: 700 14px/1.2 var(--wc-sans);
  text-align: center;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.tn-wc-page .tn-wc-tabs .tn-wc-tab + .tn-wc-tab { border-left: 1px solid var(--wc-line); }
.tn-wc-page .tn-wc-tabs .tn-wc-tab:hover:not([aria-selected="true"]) { background: var(--wc-quiet); color: var(--wc-ink); -webkit-text-fill-color: var(--wc-ink); }
.tn-wc-page .tn-wc-tabs .tn-wc-tab[aria-selected="true"] { background: var(--wc-button); color: var(--wc-button-text); -webkit-text-fill-color: var(--wc-button-text); box-shadow: inset 0 -2px 0 var(--wc-accent); }

.tn-wc-page .tn-wc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.tn-wc-page .tn-wc-fields--options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tn-wc-page .tn-wc-fields[hidden] { display: none !important; }
.tn-wc-page .tn-wc-field--wide { grid-column: 1 / -1; }
.tn-wc-page .tn-wc-field { display: grid; align-content: start; gap: 5px; min-width: 0; margin: 0; padding: 0; border: 0; background: none; }
.tn-wc-page .tn-wc-field label { display: block; padding: 0; color: var(--wc-ink); -webkit-text-fill-color: var(--wc-ink); font-size: 13px; font-weight: 700; line-height: 1.5; word-break: keep-all; }
.tn-wc-page .tn-wc-tool .tn-wc-control {
  position: relative;
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  padding-inline: 12px;
  border: 1px solid var(--wc-line);
  background: var(--wc-field);
  color: var(--wc-ink);
}
.tn-wc-page .tn-wc-tool .tn-wc-control:has(:focus-visible) { outline: 2px solid var(--wc-accent); outline-offset: -1px; }
.tn-wc-page .tn-wc-tool .tn-wc-control:has([aria-invalid="true"]) { border-color: var(--wc-error); }
.tn-wc-page .tn-wc-tool .tn-wc-control :is(input, select) {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: var(--wc-ink);
  -webkit-text-fill-color: var(--wc-ink);
  font: 600 16px/1.4 var(--wc-sans);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: normal;
}
.tn-wc-page .tn-wc-tool .tn-wc-control :is(input, select),
.tn-wc-page .tn-wc-tool .tn-wc-control :is(input, select):is(:hover, :focus) { background: transparent !important; background-color: transparent !important; box-shadow: none !important; }
.tn-wc-page .tn-wc-tool .tn-wc-control input { text-align: right; }
.tn-wc-page .tn-wc-tool .tn-wc-control input[id$="-name"] { text-align: left; font-weight: 500; }
.tn-wc-page .tn-wc-tool .tn-wc-control input::placeholder { color: var(--wc-ink); -webkit-text-fill-color: var(--wc-ink); opacity: .35; font-weight: 400; }
.tn-wc-page .tn-wc-tool .tn-wc-control > b { flex: 0 0 auto; padding: 0; border: 0; color: var(--wc-muted); -webkit-text-fill-color: var(--wc-muted); font-size: 13px; font-weight: 600; }
.tn-wc-page .tn-wc-tool .tn-wc-select select { appearance: none; -webkit-appearance: none; padding-right: 22px; cursor: pointer; font-weight: 600; font-size: 15px; }
.tn-wc-page .tn-wc-tool .tn-wc-select::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--wc-muted);
  border-bottom: 1.5px solid var(--wc-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.tn-wc-page .tn-wc-tool option { background: var(--wc-field); color: var(--wc-ink); }
.tn-wc-page .tn-wc-field small { color: var(--wc-muted); -webkit-text-fill-color: var(--wc-muted); font-size: 12px; line-height: 1.6; word-break: keep-all; }
.tn-wc-page .tn-wc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tn-wc-page .tn-wc-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid var(--wc-line);
  border-radius: 0;
  background: var(--wc-quiet);
  box-shadow: none;
  color: var(--wc-ink);
  -webkit-text-fill-color: var(--wc-ink);
  font: 700 13px/1 var(--wc-sans);
  cursor: pointer;
  transition: background-color .16s ease;
}
.tn-wc-page .tn-wc-actions button:hover { background: var(--wc-quiet-hover); }
.tn-wc-page .tn-wc-tool :is(button, input, select):focus-visible { outline: 2px solid var(--wc-accent); outline-offset: 2px; }
.tn-wc-page .tn-wc-tool .tn-wc-control :is(input, select):focus-visible { outline: none; }
.tn-wc-page .tn-wc-tool .tn-wc-error { color: var(--wc-error); -webkit-text-fill-color: var(--wc-error); font-size: 13px; font-weight: 700; line-height: 1.6; word-break: keep-all; }
.tn-wc-page .tn-wc-tool .tn-wc-error[hidden] { display: none !important; }

/* Results */
.tn-wc-page .tn-wc-primary {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 1px solid var(--wc-line);
  border-block: 3px double var(--wc-line);
  background: var(--wc-surface);
  text-align: center;
}
.tn-wc-page .tn-wc-primary > span { color: var(--wc-muted); -webkit-text-fill-color: var(--wc-muted); font-size: 13px; font-weight: 700; }
.tn-wc-page .tn-wc-tool output { color: var(--wc-ink); -webkit-text-fill-color: var(--wc-ink); font-family: var(--wc-sans); font-weight: 800; font-variant-numeric: lining-nums tabular-nums; letter-spacing: normal; white-space: nowrap; }
.tn-wc-page .tn-wc-primary output { font-size: clamp(34px, 3.6vw, 46px); line-height: 1.15; }
.tn-wc-page .tn-wc-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tn-wc-page .tn-wc-metric { display: grid; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid var(--wc-soft); background: var(--wc-surface); }
.tn-wc-page .tn-wc-metric dt { color: var(--wc-muted); -webkit-text-fill-color: var(--wc-muted); font-size: 12px; font-weight: 700; line-height: 1.4; }
.tn-wc-page .tn-wc-metric dd output { font-size: 21px; line-height: 1.3; }
.tn-wc-page .tn-wc-tool .tn-wc-hint { padding: 10px 12px; border: 1px solid var(--wc-soft); background: var(--wc-wash); color: var(--wc-muted); -webkit-text-fill-color: var(--wc-muted); font-size: 12.5px; line-height: 1.65; word-break: keep-all; }
.tn-wc-page .tn-wc-tool .tn-wc-caption { color: var(--wc-muted); -webkit-text-fill-color: var(--wc-muted); font-size: 13px; line-height: 1.7; word-break: keep-all; }

/* Quotes */
.tn-wc-page .tn-wc-quotes { grid-column: 1 / -1; display: grid; gap: 16px; min-width: 0; padding: 26px 28px; border-top: 1px solid var(--wc-line); }
.tn-wc-page .tn-wc-quotes-head { display: grid; gap: 4px; }
.tn-wc-page .tn-wc-quotes-head p:not(.tn-wc-kicker) { color: var(--wc-muted); -webkit-text-fill-color: var(--wc-muted); font-size: 13px; line-height: 1.7; word-break: keep-all; }
.tn-wc-page .tn-wc-quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.tn-wc-page .tn-wc-tool .tn-wc-quote { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px 10px; min-width: 0; padding: 16px; border: 1px solid var(--wc-line); background: var(--wc-wash); }
.tn-wc-page .tn-wc-quote-title { grid-column: 1 / -1; color: var(--wc-ink); -webkit-text-fill-color: var(--wc-ink); font-size: 15px; font-weight: 800; line-height: 1.3; }
.tn-wc-page .tn-wc-quote .tn-wc-error { grid-column: 1 / -1; }
.tn-wc-page .tn-wc-compare { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--wc-line); background: var(--wc-surface); }
.tn-wc-page .tn-wc-tool .tn-wc-summary { color: var(--wc-ink); -webkit-text-fill-color: var(--wc-ink); font-size: 14px; font-weight: 700; line-height: 1.6; word-break: keep-all; }
.tn-wc-page .tn-wc-bars { display: grid; gap: 14px; }
.tn-wc-page .tn-wc-bar { display: grid; gap: 6px; min-width: 0; }
.tn-wc-page .tn-wc-bar + .tn-wc-bar { padding-top: 14px; border-top: 1px solid var(--wc-soft); }
.tn-wc-page .tn-wc-bar-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tn-wc-page .tn-wc-bar-name { color: var(--wc-muted); -webkit-text-fill-color: var(--wc-muted); font-size: 13px; font-weight: 700; }
.tn-wc-page .tn-wc-bar-value { color: var(--wc-ink); -webkit-text-fill-color: var(--wc-ink); font: 800 19px/1.3 var(--wc-sans); font-variant-numeric: lining-nums tabular-nums; }
.tn-wc-page .tn-wc-bar.is-lowest .tn-wc-bar-head::after { content: "최저"; padding: 2px 7px; border: 1px solid var(--wc-accent); color: var(--wc-accent); -webkit-text-fill-color: var(--wc-accent); font-size: 11px; font-weight: 800; line-height: 1.4; }
.tn-wc-page .tn-wc-bar-track { height: 12px; border: 1px solid var(--wc-soft); background: var(--wc-wash); }
.tn-wc-page .tn-wc-bar-fill { display: block; height: 100%; background: var(--wc-line); transition: width .25s ease; }
.tn-wc-page .tn-wc-bar.is-lowest .tn-wc-bar-fill { background: var(--wc-accent); }
.tn-wc-page .tn-wc-tool .tn-wc-bar-detail { color: var(--wc-muted); -webkit-text-fill-color: var(--wc-muted); font-size: 12.5px; line-height: 1.6; font-variant-numeric: lining-nums tabular-nums; word-break: keep-all; }
.tn-wc-page .tn-wc-tool .tn-wc-privacy,
.tn-wc-page .tn-wc-tool > noscript { grid-column: 1 / -1; margin: 0; padding: 12px 28px; border-top: 1px solid var(--wc-soft); color: var(--wc-muted); -webkit-text-fill-color: var(--wc-muted); font-size: 12px; line-height: 1.6; }

@media (max-width: 1024px) {
  .tn-wc-page .tn-wc-quote-grid { grid-template-columns: minmax(0, 1fr); }
  .tn-wc-page .tn-wc-tool .tn-wc-quote { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tn-wc-page .tn-wc-quote .tn-wc-field--wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  .tn-wc-page .tn-wc-ad--top { margin-top: 48px; }
  .tn-wc-page .tn-wc-tool { grid-template-columns: minmax(0, 1fr); }
  .tn-wc-page :is(.tn-wc-inputs, .tn-wc-results) { padding: 20px 16px; }
  .tn-wc-page .tn-wc-results { border-left: 0; border-top: 1px solid var(--wc-line); }
  .tn-wc-page .tn-wc-quotes { padding: 20px 16px; }
  .tn-wc-page .tn-wc-tool .tn-wc-quote { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-wc-page .tn-wc-quote .tn-wc-field--wide { grid-column: 1 / -1; }
  .tn-wc-page .tn-wc-fields--options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-wc-page .tn-wc-fields--options > :first-child { grid-column: 1 / -1; }
  .tn-wc-page .tn-wc-tool .tn-wc-privacy,
  .tn-wc-page .tn-wc-tool > noscript { padding-inline: 16px; }
}
@media (max-width: 390px) {
  .tn-wc-page :is(.tn-wc-inputs, .tn-wc-results, .tn-wc-quotes) { padding-inline: 12px; }
  .tn-wc-page .tn-wc-fields { gap: 10px; }
  .tn-wc-page .tn-wc-tool .tn-wc-control { gap: 6px; padding-inline: 10px; }
  .tn-wc-page .tn-wc-tool .tn-wc-quote { padding: 12px; }
  .tn-wc-page .tn-wc-tabs .tn-wc-tab { font-size: 13px; padding-inline: 6px; }
  .tn-wc-page .tn-wc-metric dd output { font-size: 19px; }
  .tn-wc-page .tn-wc-compare { padding: 14px 12px; }
  .tn-wc-page .tn-wc-tool .tn-wc-privacy,
  .tn-wc-page .tn-wc-tool > noscript { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-wc-page .tn-wc-tool :is(button, .tn-wc-bar-fill) { transition: none; }
}
