.tn-ote-page { width: 100%; max-width: 1180px; min-width: 0; margin-inline: auto; }
.tn-ote-page .tn-ote-ad { display: flow-root; width: 100%; max-width: 900px; margin-inline: auto; background: transparent; }
.tn-ote-page .tn-ote-ad--top { min-height: 90px; margin: 54px auto 20px; }
.tn-ote-page .tn-ote-ad--bottom { min-height: 90px; margin: 24px auto 28px; }
.tn-ote-tool {
  --ote-ink: #1a1208; --ote-muted: #5a4a30; --ote-line: #b8a888; --ote-soft: #ddd4be;
  --ote-paper: #faf6ee; --ote-wash: #f5efdf; --ote-button: #ede6d4; --ote-hover: #dfd4bb; --ote-accent: #c44a00;
  --ote-sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", system-ui, sans-serif;
  display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); gap: 22px;
  width: 100%; max-width: 1180px; margin-inline: auto; color: var(--ote-ink); -webkit-text-fill-color: var(--ote-ink);
  font: 14px/1.55 var(--ote-sans); color-scheme: light;
}
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-d="dark"], [data-scheme="auto"][data-l="dark"]) .tn-ote-tool,
html:is([data-scheme="dark"], [data-scheme="inverse"], .theme-dark) body:not([data-scheme="light"]) .tn-ote-tool {
  --ote-ink: #efe6d2; --ote-muted: #c3b492; --ote-line: #6f6047; --ote-soft: #574a37;
  --ote-paper: #241d12; --ote-wash: #322a1a; --ote-button: #322a1a; --ote-hover: #4a3116; --ote-accent: #e8823f; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-ote-tool, html[data-scheme="auto"] body:not([data-scheme="light"]) .tn-ote-tool {
    --ote-ink: #efe6d2; --ote-muted: #c3b492; --ote-line: #6f6047; --ote-soft: #574a37;
    --ote-paper: #241d12; --ote-wash: #322a1a; --ote-button: #322a1a; --ote-hover: #4a3116; --ote-accent: #e8823f; color-scheme: dark;
  }
}
.tn-ote-tool, .tn-ote-tool * { box-sizing: border-box; }
.tn-ote-tool [hidden] { display: none !important; }
.tn-ote-tool :is(h2,p,fieldset,legend,dl,dt,dd,ol,li,label) { margin: 0; padding: 0; }
.tn-ote-tool :is(h2,legend) { color: var(--ote-ink); -webkit-text-fill-color: var(--ote-ink); }
.tn-ote-tool :is(.tn-ote-input,.tn-ote-result) { min-width: 0; border-top: 3px double var(--ote-line); }
.tn-ote-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 10px 0; border-bottom: 1px solid var(--ote-line); }
.tn-ote-tool .tn-ote-pane-head h2, .tn-ote-tool .tn-ote-map h2 { font: 700 16px/1.4 var(--ote-sans); }
.tn-ote-pane-head span { color: var(--ote-muted); -webkit-text-fill-color: var(--ote-muted); font-size: 12px; text-align: right; }
.tn-ote-tool .tn-ote-intro { padding: 14px 0 16px; color: var(--ote-muted); -webkit-text-fill-color: var(--ote-muted); font-size: 13px; }
.tn-ote-rows { display: grid; gap: 12px; }
.tn-ote-tool .tn-ote-row { min-width: 0; border: 1px solid var(--ote-line); background: var(--ote-paper); padding: 9px 14px 11px; }
.tn-ote-tool .tn-ote-row legend { float: none; width: auto; padding: 0 6px; font: 700 12px/1.4 var(--ote-sans); }
.tn-ote-times { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tn-ote-times label { display: grid; gap: 5px; min-width: 0; font-size: 12px; font-weight: 600; }
.tn-ote-tool :is(input[type="time"],select) { width: 100%; min-width: 0; height: 42px; margin: 0; padding: 6px 10px; border: 1px solid var(--ote-line); border-radius: 0; background: var(--ote-paper); color: var(--ote-ink); -webkit-text-fill-color: var(--ote-ink); font: 600 17px/1.4 var(--ote-sans); font-variant-numeric: lining-nums tabular-nums; box-shadow: none; }
.tn-ote-tool select { width: auto; height: 36px; font-size: 13px; padding: 5px 24px 5px 8px; }
.tn-ote-tool input::placeholder { font-weight: 400; opacity: .35; }
.tn-ote-options { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.tn-ote-options > label { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.tn-ote-tool input[type="checkbox"] { appearance: auto; width: 17px; height: 17px; margin: 0; accent-color: var(--ote-accent); }
.tn-ote-tool button { min-width: 40px; min-height: 40px; margin: 0; padding: 8px 13px; border: 1px solid var(--ote-line); border-radius: 0; background: var(--ote-button); color: var(--ote-ink); -webkit-text-fill-color: var(--ote-ink); font: 600 13px/1.35 var(--ote-sans); box-shadow: none; text-transform: none; letter-spacing: normal; cursor: pointer; }
.tn-ote-tool button:hover:not(:disabled) { background: var(--ote-hover); box-shadow: none; transform: none; }
.tn-ote-tool button:disabled { opacity: .52; cursor: not-allowed; }
.tn-ote-tool :is(input,select,button):focus-visible { outline: 2px solid var(--ote-accent); outline-offset: 2px; }
.tn-ote-tool .tn-ote-remove { margin-left: auto; border-color: transparent; background: transparent; font-size: 12px; }
.tn-ote-tool .tn-ote-row-note { min-height: 19px; margin-top: 3px; color: var(--ote-muted); -webkit-text-fill-color: var(--ote-muted); font-size: 12px; }
.tn-ote-tool .has-error { border-color: var(--ote-accent); }
.tn-ote-tool .has-error .tn-ote-row-note { color: var(--ote-accent); -webkit-text-fill-color: var(--ote-accent); }
.tn-ote-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tn-ote-actions .tn-ote-add { flex: 1 1 150px; }
.tn-ote-total-area { padding: 18px 18px 16px; border-bottom: 1px solid var(--ote-line); background: var(--ote-wash); }
.tn-ote-tool .tn-ote-total { display: block; color: var(--ote-ink); -webkit-text-fill-color: var(--ote-ink); font: 800 clamp(30px,3.4vw,44px)/1.2 var(--ote-sans); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.tn-ote-tool .tn-ote-status { margin-top: 10px; color: var(--ote-muted); -webkit-text-fill-color: var(--ote-muted); font-size: 12px; }
.tn-ote-tool .tn-ote-equation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--ote-soft); }
.tn-ote-equation > div { min-width: 0; padding: 10px 12px; background: var(--ote-paper); border: 1px solid var(--ote-soft); }
.tn-ote-equation dt, .tn-ote-units dt { color: var(--ote-muted); -webkit-text-fill-color: var(--ote-muted); font-size: 12px; }
.tn-ote-tool .tn-ote-equation dd, .tn-ote-tool .tn-ote-units dd { margin-top: 5px; font: 800 18px/1.35 var(--ote-sans); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.tn-ote-equation > div:nth-child(2) dd { color: var(--ote-accent); -webkit-text-fill-color: var(--ote-accent); }
.tn-ote-tool .tn-ote-units { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 16px 0; }
.tn-ote-units > div { min-width: 0; }
.tn-ote-units dd { font-size: 15px; }
.tn-ote-tool .tn-ote-copy { width: auto; border-color: var(--ote-line); background: var(--ote-ink); color: var(--ote-paper); -webkit-text-fill-color: var(--ote-paper); }
.tn-ote-tool .tn-ote-copy:hover:not(:disabled) { background: var(--ote-muted); }
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-d="dark"], [data-scheme="auto"][data-l="dark"]) .tn-ote-tool .tn-ote-copy,
html:is([data-scheme="dark"], [data-scheme="inverse"], .theme-dark) body:not([data-scheme="light"]) .tn-ote-tool .tn-ote-copy { background: var(--ote-paper); border-color: var(--ote-accent); color: var(--ote-ink); -webkit-text-fill-color: var(--ote-ink); }
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-ote-tool .tn-ote-copy, html[data-scheme="auto"] body:not([data-scheme="light"]) .tn-ote-tool .tn-ote-copy { background: var(--ote-paper); border-color: var(--ote-accent); color: var(--ote-ink); -webkit-text-fill-color: var(--ote-ink); }
}
.tn-ote-tool .tn-ote-copy-status { min-height: 19px; margin-top: 5px; color: var(--ote-muted); -webkit-text-fill-color: var(--ote-muted); font-size: 12px; }
.tn-ote-map { grid-column: 1 / -1; min-width: 0; margin-top: 1px; padding: 16px 18px 18px; border: 1px solid var(--ote-line); background: var(--ote-paper); }
.tn-ote-map-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.tn-ote-map-head p { color: var(--ote-muted); -webkit-text-fill-color: var(--ote-muted); font-size: 12px; }
.tn-ote-timeline { margin: 17px 0 14px; }
.tn-ote-timeline-track { position: relative; height: 19px; border: 1px solid var(--ote-soft); background: var(--ote-wash); }
.tn-ote-timeline-track > span { position: absolute; top: 0; bottom: 0; background: var(--ote-accent); }
.tn-ote-axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 5px; color: var(--ote-muted); -webkit-text-fill-color: var(--ote-muted); font: 600 12px/1.4 var(--ote-sans); font-variant-numeric: lining-nums tabular-nums; }
.tn-ote-merged-list { list-style: none !important; display: grid; gap: 0; padding: 0 !important; margin: 0 !important; }
.tn-ote-tool .tn-ote-merged-list li { list-style: none !important; display: flex; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--ote-soft); }
.tn-ote-merged-list li::before { content: none !important; }
.tn-ote-merged-list strong { font: 800 14px/1.5 var(--ote-sans); font-variant-numeric: lining-nums tabular-nums; }
.tn-ote-empty { color: var(--ote-muted); -webkit-text-fill-color: var(--ote-muted); font-size: 12px; }
@media (max-width: 720px) {
  .tn-ote-page { padding-inline: 5px; }
  .tn-ote-page .tn-ote-ad--top { margin-top: 48px; }
  .tn-ote-tool { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .tn-ote-map { grid-column: 1; padding: 14px 12px; }
  .tn-ote-tool .tn-ote-row { padding-inline: 10px; }
  .tn-ote-times { gap: 8px; }
  .tn-ote-options { gap: 2px 10px; }
  .tn-ote-total-area { padding: 16px 14px; }
}
@media (max-width: 360px) {
  .tn-ote-tool :is(input[type="time"],select) { font-size: 15px; }
  .tn-ote-options > label { min-height: 36px; }
  .tn-ote-tool .tn-ote-remove { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-ote-tool :is(button,input,select) { scroll-behavior: auto; transition: none; }
}
