.tn-hw-page {
  --hw-paper: #faf6ee; --hw-wash: #f5efdf; --hw-ink: #1a1208; --hw-muted: #5a4a30;
  --hw-line: #b8a888; --hw-soft: #ddd4be; --hw-accent: #983700;
  --hw-button: #ede6d4; --hw-hover: #dfd4bb;
  --hw-sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", system-ui, sans-serif;
  color: var(--hw-ink); -webkit-text-fill-color: currentColor;
}
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-d="dark"], [data-scheme="auto"][data-l="dark"]) .tn-hw-page,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-hw-page {
  --hw-paper: #241d12; --hw-wash: #322a1a; --hw-ink: #efe6d2; --hw-muted: #c3b492;
  --hw-line: #826744; --hw-soft: #574a37; --hw-accent: #f29a5d;
  --hw-button: #2f2115; --hw-hover: #3a2a1b; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-hw-page {
    --hw-paper: #241d12; --hw-wash: #322a1a; --hw-ink: #efe6d2; --hw-muted: #c3b492;
    --hw-line: #826744; --hw-soft: #574a37; --hw-accent: #f29a5d;
    --hw-button: #2f2115; --hw-hover: #3a2a1b; color-scheme: dark;
  }
}
.tn-hw-page [hidden] { display: none !important; }
.tn-hw-page .hw-ad { width: 100%; max-width: 900px; min-height: 90px; height: auto; max-height: none; margin: 54px auto 28px; overflow: visible; }
.tn-hw-page .hw-ad--top { margin-bottom: 24px; }
.tn-hw-page .hw-ad--bottom { margin-bottom: 30px; }
.tn-hw-page .hw-ad :is(.aicp, ins.adsbygoogle) { max-height: none; overflow: visible; }
.tn-hw-page .tn-hw-tool, .tn-hw-page .tn-hw-tool *, .tn-hw-page .tn-hw-tool *::before, .tn-hw-page .tn-hw-tool *::after { box-sizing: border-box; }
.tn-hw-page .tn-hw-tool {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px;
  width: 100%; max-width: 1180px; min-width: 0; margin: 0 auto;
  background: transparent; color: var(--hw-ink); font: 14px/1.6 var(--hw-sans);
}
.tn-hw-page .tn-hw-tool :is(p, ol, li, label) { margin: 0; }
.tn-hw-page :is(.tn-hw-input, .tn-hw-result) {
  display: grid; align-content: start; gap: 18px; min-width: 0; padding: 28px;
  border: 1px solid var(--hw-line); background: var(--hw-paper);
}
.tn-hw-page .tn-hw-result { gap: 16px; }
.tn-hw-page .tn-hw-kicker { color: var(--hw-muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; }
.tn-hw-page .tn-hw-field { display: grid; gap: 5px; min-width: 0; }
.tn-hw-page .tn-hw-field label { color: var(--hw-ink); font-size: 14px; font-weight: 700; }
.tn-hw-page .tn-hw-field :is(select, input) {
  width: 100%; min-width: 0; min-height: 49px; padding: 10px 12px;
  border: 1px solid var(--hw-line); border-radius: 0; background: var(--hw-paper); color: var(--hw-ink);
  -webkit-text-fill-color: currentColor; box-shadow: none; font: 600 16px/1.45 var(--hw-sans);
  font-variant-numeric: lining-nums tabular-nums;
}
.tn-hw-page .tn-hw-field input::-webkit-date-and-time-value { text-align: left; }
.tn-hw-page .tn-hw-field :is(small, .tn-hw-help), .tn-hw-page .tn-hw-note { color: var(--hw-muted); font-size: 12px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.tn-hw-page .tn-hw-tool :is(input, select, button):focus-visible { outline: 2px solid var(--hw-accent); outline-offset: 3px; }
.tn-hw-page .tn-hw-field [aria-invalid="true"] { outline: 2px solid var(--hw-accent); outline-offset: -2px; }
.tn-hw-page .tn-hw-date-label { color: var(--hw-muted); font-size: 13px; }
.tn-hw-page .tn-hw-result-actions { display: grid; justify-items: start; gap: 8px; }
.tn-hw-page .tn-hw-result-actions small, .tn-hw-page .tn-hw-safety { color: var(--hw-muted); font-size: 12px; line-height: 1.75; word-break: keep-all; }
.tn-hw-page .tn-hw-safety { padding-top: 12px; border-top: 1px solid var(--hw-soft); }
.tn-hw-page .tn-hw-field label > span { color: var(--hw-muted); font-size: 11px; font-weight: 400; }
.tn-hw-page .tn-hw-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-hw-page .tn-hw-tool button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%;
  margin: 0; padding: 10px 15px; border: 1px solid var(--hw-line); border-radius: 0;
  background: var(--hw-button); color: var(--hw-ink); -webkit-text-fill-color: currentColor;
  box-shadow: none; font: 700 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; cursor: pointer; transition: background-color .15s ease;
}
.tn-hw-page .tn-hw-tool button:hover:not(:disabled) { background: var(--hw-hover); }
.tn-hw-page .tn-hw-tool button:disabled { opacity: .5; cursor: not-allowed; }
.tn-hw-page [data-hw="error"] { color: var(--hw-accent); font-size: 13px; font-weight: 700; }
.tn-hw-page [data-hw="date"] {
  color: var(--hw-ink); font: 800 clamp(28px, 3.5vw, 44px)/1.3 var(--hw-sans);
  letter-spacing: 0; font-kerning: normal; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
}
.tn-hw-page [data-hw="countdown"] {
  width: fit-content; max-width: 100%; padding: 6px 12px; border: 1px solid var(--hw-line);
  color: var(--hw-accent); font: 800 20px/1.5 var(--hw-sans); font-variant-numeric: lining-nums tabular-nums;
}
.tn-hw-page [data-hw="status"] { min-height: 3.3em; color: var(--hw-muted); font-size: 14px; line-height: 1.65; word-break: keep-all; }
.tn-hw-page .tn-hw-announcement { position: absolute; width: 1px; height: 1px; margin: -1px !important; padding: 0 !important; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tn-hw-page[data-hw-status="past"] [data-hw="status"] { color: var(--hw-accent); font-weight: 700; }
.tn-hw-page [data-hw="future"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0 !important; list-style: none !important; border-block: 1px solid var(--hw-line); }
.tn-hw-page [data-hw="future"] li { display: grid; gap: 6px; padding: 14px 6px !important; margin: 0 !important; list-style: none !important; min-width: 0; }
.tn-hw-page [data-hw="future"] li + li { border-left: 1px solid var(--hw-soft); }
.tn-hw-page [data-hw="future"] li::before, .tn-hw-page [data-hw="future"] li::after { content: none; }
.tn-hw-page [data-hw="future"] span { color: var(--hw-muted); font-size: 11px; }
.tn-hw-page [data-hw="future"] time { color: var(--hw-ink); font: 700 12px/1.5 var(--hw-sans); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.tn-hw-page [data-hw="test"] { padding: 12px; border: 1px solid var(--hw-soft); color: var(--hw-muted); font-size: 12px; line-height: 1.7; word-break: keep-all; }
@media (max-width: 700px) {
  .tn-hw-page .hw-ad { margin-top: 48px; }
  .tn-hw-page .tn-hw-tool { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tn-hw-page :is(.tn-hw-input, .tn-hw-result) { padding: 20px 16px; gap: 15px; }
  .tn-hw-page [data-hw="status"] { min-height: 0; }
  .tn-hw-page [data-hw="date"] { font-size: clamp(27px, 8vw, 36px); }
}
@media (max-width: 370px) {
  .tn-hw-page [data-hw="future"] { grid-template-columns: minmax(0, 1fr); }
  .tn-hw-page [data-hw="future"] li { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 0 !important; }
  .tn-hw-page [data-hw="future"] li + li { border-left: 0; border-top: 1px solid var(--hw-soft); }
}
@media (prefers-reduced-motion: reduce) { .tn-hw-page .tn-hw-tool button { transition: none; } }
