.tn-wr-page {
  --wr-paper: #faf6ee;
  --wr-wash: #f5efdf;
  --wr-ink: #1a1208;
  --wr-muted: #5a4a30;
  --wr-line: #b8a888;
  --wr-soft: #ddd4be;
  --wr-button: #ede6d4;
  --wr-button-text: #1a1208;
  --wr-action-line: #b8a888;
  --wr-hover: #dfd4bb;
  --wr-primary: #1a1208;
  --wr-primary-hover: #873600;
  --wr-primary-text: #f7ead1;
  --wr-focus: #a83d00;
  --wr-sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", system-ui, sans-serif;
  --wr-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--wr-ink);
  -webkit-text-fill-color: var(--wr-ink);
}
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-d="dark"], [data-scheme="auto"][data-l="dark"]) .tn-wr-page,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-wr-page {
  --wr-paper: #241d12;
  --wr-wash: #322a1a;
  --wr-ink: #efe6d2;
  --wr-muted: #c3b492;
  --wr-line: #6f6047;
  --wr-soft: #574a37;
  --wr-button: #2f2115;
  --wr-button-text: #f7ead1;
  --wr-action-line: #826744;
  --wr-hover: #3a2a1b;
  --wr-primary: #6a3b1f;
  --wr-primary-hover: #824826;
  --wr-primary-text: #f7ead1;
  --wr-focus: #e8823f;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-wr-page {
    --wr-paper: #241d12;
    --wr-wash: #322a1a;
    --wr-ink: #efe6d2;
    --wr-muted: #c3b492;
    --wr-line: #6f6047;
    --wr-soft: #574a37;
    --wr-button: #2f2115;
    --wr-button-text: #f7ead1;
    --wr-action-line: #826744;
    --wr-hover: #3a2a1b;
    --wr-primary: #6a3b1f;
    --wr-primary-hover: #824826;
    --wr-primary-text: #f7ead1;
    --wr-focus: #e8823f;
    color-scheme: dark;
  }
}
.tn-wr-page [hidden] { display: none !important; }
.tn-wr-page .tn-wr-tool {
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--wr-ink);
  -webkit-text-fill-color: var(--wr-ink);
  font-family: var(--wr-sans);
  font-size: 14px;
  line-height: 1.6;
}
.tn-wr-tool,
.tn-wr-tool *,
.tn-wr-tool *::before,
.tn-wr-tool *::after { box-sizing: border-box; }
.tn-wr-tool :is(form, fieldset, legend, label, p) { margin: 0; padding: 0; }
.tn-wr-tool .tn-wr-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  min-width: 0;
  max-width: 960px;
  margin: 0 auto;
}
.tn-wr-tool .tn-wr-column { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; }
.tn-wr-tool .tn-wr-pane-label { font-family: var(--wr-sans); font-size: 14px; font-weight: 700; line-height: 1.5; }
.tn-wr-tool .tn-wr-pane {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--wr-line);
  background: var(--wr-paper);
}
.tn-wr-tool .tn-wr-modes { min-width: 0; border: 0; }
.tn-wr-tool .tn-wr-modes legend { margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.tn-wr-tool .tn-wr-mode-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tn-wr-tool .tn-wr-mode-options label { position: relative; min-width: 0; cursor: pointer; }
.tn-wr-tool .tn-wr-mode-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.tn-wr-tool .tn-wr-mode-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 4px;
  border: 1px solid var(--wr-action-line);
  background: var(--wr-button);
  color: var(--wr-button-text);
  -webkit-text-fill-color: var(--wr-button-text);
  font-family: var(--wr-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.tn-wr-tool .tn-wr-mode-options input:checked + span {
  background: var(--wr-primary);
  color: var(--wr-primary-text);
  -webkit-text-fill-color: var(--wr-primary-text);
  font-weight: 800;
}
.tn-wr-tool .tn-wr-mode-options input:focus-visible + span { outline: 2px solid var(--wr-focus); outline-offset: 2px; }
.tn-wr-tool .tn-wr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.tn-wr-tool .tn-wr-field {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.tn-wr-tool label {
  display: block;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--wr-ink);
  -webkit-text-fill-color: var(--wr-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: none;
}
.tn-wr-tool .tn-wr-field > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}
.tn-wr-tool .tn-wr-field > label span { color: var(--wr-muted); -webkit-text-fill-color: var(--wr-muted); font-size: 11px; font-weight: 400; }
.tn-wr-tool :is(input[type="text"], select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--wr-line);
  border-radius: 0;
  background-color: var(--wr-paper);
  color: var(--wr-ink);
  -webkit-text-fill-color: var(--wr-ink);
  font-family: var(--wr-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;
}
.tn-wr-tool select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 25px;
  background-image: linear-gradient(45deg, transparent 50%, var(--wr-ink) 50%), linear-gradient(135deg, var(--wr-ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  font-size: 14px;
  cursor: pointer;
}
.tn-wr-tool select option { background: var(--wr-paper); color: var(--wr-ink); }
.tn-wr-tool :is(input, textarea)::placeholder {
  color: var(--wr-muted);
  -webkit-text-fill-color: var(--wr-muted);
  font-family: var(--wr-sans);
  font-weight: 400;
  opacity: .35;
}
.tn-wr-tool :is(input[type="text"], select, textarea):focus-visible { box-shadow: inset 0 -2px 0 var(--wr-focus); }
.tn-wr-tool input[aria-invalid="true"] { box-shadow: inset 0 -2px 0 var(--wr-focus); }
.tn-wr-tool .tn-wr-full { grid-column: 1 / -1; }
.tn-wr-tool :is(.tn-wr-hint, .tn-wr-privacy) {
  color: var(--wr-muted);
  -webkit-text-fill-color: var(--wr-muted);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.tn-wr-tool .tn-wr-error { color: var(--wr-focus); -webkit-text-fill-color: var(--wr-focus); font-size: 13px; overflow-wrap: anywhere; }
.tn-wr-tool :is(#tnWrError, #tnWrCopyStatus):empty { display: none; }
.tn-wr-tool .tn-wr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.tn-wr-tool button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 40px;
  min-height: 40px;
  max-width: 100%;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--wr-action-line);
  border-radius: 0;
  background: var(--wr-button);
  color: var(--wr-button-text);
  -webkit-text-fill-color: var(--wr-button-text);
  font-family: var(--wr-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
  box-shadow: none;
  outline: none;
  cursor: pointer;
}
.tn-wr-tool button:is(:hover, :focus-visible):not(:disabled) { background: var(--wr-hover); }
.tn-wr-tool button.tn-wr-button--primary { background: var(--wr-primary); color: var(--wr-primary-text); -webkit-text-fill-color: var(--wr-primary-text); }
.tn-wr-tool button.tn-wr-button--primary:is(:hover, :focus-visible):not(:disabled) { background: var(--wr-primary-hover); }
.tn-wr-tool button:focus-visible { outline: 2px solid var(--wr-focus); outline-offset: 2px; }
.tn-wr-tool button:disabled { opacity: .55; cursor: not-allowed; }
.tn-wr-tool .tn-wr-number {
  color: var(--wr-ink);
  -webkit-text-fill-color: var(--wr-ink);
  font-family: var(--wr-sans);
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: normal;
}
.tn-wr-tool .tn-wr-current { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--wr-line); }
.tn-wr-tool .tn-wr-current > span { font-size: 14px; font-weight: 700; }
.tn-wr-tool #tnWrCurrent { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; }
.tn-wr-tool:not([data-mode="current"]) #tnWrCurrent { font-size: 28px; }
.tn-wr-tool .tn-wr-goal { display: grid; gap: 12px; padding: 12px 0; border-top: 1px solid var(--wr-soft); border-bottom: 1px solid var(--wr-soft); }
.tn-wr-tool .tn-wr-required { min-width: 0; text-align: center; }
.tn-wr-tool .tn-wr-required > span { font-size: 13px; font-weight: 700; }
.tn-wr-tool .tn-wr-required-value { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 8px; min-width: 0; margin-top: 8px; }
.tn-wr-tool #tnWrRequiredWins { min-width: 0; max-width: 100%; font-size: clamp(24px, 3vw, 36px); line-height: 1.25; overflow-wrap: anywhere; word-break: normal; }
.tn-wr-tool #tnWrRequiredWins[data-long="text"] { font-size: 24px; }
.tn-wr-tool #tnWrRequiredUnit { font-size: 14px; }
.tn-wr-tool .tn-wr-result-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.tn-wr-tool .tn-wr-result-pair > div { display: grid; gap: 8px; min-width: 0; text-align: center; }
.tn-wr-tool .tn-wr-result-pair span { color: var(--wr-muted); -webkit-text-fill-color: var(--wr-muted); font-size: 12px; }
.tn-wr-tool .tn-wr-result-pair strong { font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.tn-wr-tool .tn-wr-summary { font-size: 13px; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.tn-wr-tool .tn-wr-chart { display: grid; gap: 9px; min-width: 0; }
.tn-wr-tool .tn-wr-bar-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 3px; font-size: 12px; }
.tn-wr-tool .tn-wr-track { height: 9px; border: 1px solid var(--wr-line); background: var(--wr-wash); }
.tn-wr-tool .tn-wr-track > span { display: block; width: 0; height: 100%; background: var(--wr-muted); }
.tn-wr-tool .tn-wr-track--target > span { background: var(--wr-line); }
.tn-wr-tool .tn-wr-track--projected > span { background: var(--wr-focus); }
.tn-wr-tool .tn-wr-track[data-empty="true"] > span { width: 0 !important; }
.tn-wr-tool #tnWrCopyText { height: auto; padding: 10px; border: 1px solid var(--wr-line); font-size: 14px; font-weight: 400; line-height: 1.6; resize: vertical; overflow-wrap: anywhere; white-space: pre-wrap; }
.tn-wr-tool :is(.tn-wr-privacy, noscript p) { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--wr-line); }
.tn-wr-page .tn-wr-ad { width: 100%; max-width: 900px; min-height: 90px; height: auto; max-height: none; margin: 24px auto; border: 0; background: transparent; overflow: visible; }
.tn-wr-page .tn-wr-ad--top { margin-top: 0; }
@media (max-width: 720px) {
  .tn-wr-tool .tn-wr-workspace { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tn-wr-tool .tn-wr-pane { padding: 12px; }
  .tn-wr-tool:not([data-mode="current"]) #tnWrCurrent { font-size: 22px; }
  .tn-wr-tool #tnWrRequiredWins { font-size: 26px; }
}
@media (max-width: 374px) {
  .tn-wr-tool .tn-wr-mode-options { gap: 4px; }
  .tn-wr-tool .tn-wr-mode-options span { font-size: 12px; }
  .tn-wr-tool #tnWrRequiredWins { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-wr-tool,
  .tn-wr-tool *,
  .tn-wr-tool *::before,
  .tn-wr-tool *::after { animation: none; transition: none; scroll-behavior: auto; }
}
