.hv-tool {
  --hv-ink: #30251b;
  --hv-muted: #6b5745;
  --hv-line: #e7d8bc;
  --hv-paper: #fffaf0;
  --hv-green: #1e5d44;
  --hv-gold: #f3c351;
  color: var(--hv-ink);
  font: 16px/1.55 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-width: 0;
}
.hv-tool *, .hv-tool *::before, .hv-tool *::after { box-sizing: border-box; }
.hv-tool [hidden] { display: none !important; }
.hv-tool :where(h2, h3, p, ul) { margin: 0; }
.hv-tool :where(button, input) { font: inherit; }
.hv-tool :where(button, a, input):focus-visible { outline: 2px solid #70530b; outline-offset: 3px; }
.hv-search, .hv-result, .hv-matches {
  border: 1px solid var(--hv-line);
  border-radius: 22px;
  background: var(--hv-paper);
}
.hv-search { padding: clamp(16px, 4vw, 34px); }
.hv-heading, .hv-profile, .hv-calendar-heading, .hv-source, .hv-examples, .hv-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.hv-heading, .hv-profile, .hv-calendar-heading, .hv-source { justify-content: space-between; }
.hv-heading h2 { font-size: clamp(25px, 4vw, 36px); line-height: 1.2; margin-bottom: 7px; }
.hv-heading p, .hv-source, .hv-observed, .hv-range, .hv-calendar-note, .hv-message, .hv-day-detail { color: var(--hv-muted); }
.hv-signal { display: flex; align-items: end; gap: 4px; padding-right: 3px; }
.hv-signal i { display: block; width: 16px; height: 17px; background: #b48320; clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
.hv-signal i:nth-child(2) { transform: translateY(-7px); background: #d7a52c; }
.hv-signal i:nth-child(3) { transform: translateY(-14px); background: var(--hv-gold); }
.hv-form { margin-top: 22px; }
.hv-form label { display: block; margin-bottom: 7px; font-weight: 650; }
.hv-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.hv-tool .hv-field input {
  width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #ab9065;
  border-radius: 11px; background: #fffdf7; color: var(--hv-ink);
}
.hv-tool button { cursor: pointer; }
.hv-tool button:disabled { cursor: wait; opacity: .65; }
.hv-field button, .hv-links .hv-room {
  min-height: 44px; padding: 8px 17px; border: 1px solid #b48724; border-radius: 11px;
  background: var(--hv-gold); color: var(--hv-ink); font-weight: 700;
}
.hv-examples { margin-top: 13px; font-size: 14px; color: var(--hv-muted); }
.hv-examples-list, .hv-links { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.hv-examples button, .hv-matches button {
  color: var(--hv-ink); border: 1px solid var(--hv-line); border-radius: 999px;
  background: #fffdf7; padding: 5px 11px; overflow-wrap: anywhere;
}
.hv-source { margin-top: 14px; font-size: 13px; }
.hv-refresh, .hv-links a { color: #654503; text-decoration: underline; text-underline-offset: 3px; }
.hv-refresh, .hv-calendar-retry, .hv-open-latest { border: 0; background: transparent; min-height: 36px; padding: 2px 5px; }
.hv-message { margin: 12px 0; }
.hv-message:empty { margin: 0; }
.hv-matches { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 14px; margin: 12px 0; }
.hv-result { margin-top: 14px; }
.hv-profile, .hv-calendar { padding: clamp(14px, 3vw, 24px); }
.hv-profile { border-bottom: 1px solid var(--hv-line); }
.hv-name { font-size: clamp(21px, 3vw, 27px); overflow-wrap: anywhere; }
.hv-status { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-weight: 650; }
.hv-dot { border-radius: 50%; width: 9px; height: 9px; background: #806e58; }
.hv-status[data-level="live"] { color: var(--hv-green); }
.hv-status[data-level="live"] .hv-dot { background: var(--hv-green); }
.hv-observed, .hv-range, .hv-calendar-note, .hv-legend, .hv-day-detail { font-size: 14px; }
.hv-links { gap: 8px 14px; }
.hv-links a { display: inline-flex; align-items: center; min-height: 36px; }
.hv-links .hv-room { text-decoration: none; }
.hv-calendar-note { margin-top: 4px; }
.hv-calendar-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px;
  max-width: 570px; margin: 13px 0;
}
.hv-weekday { text-align: center; color: var(--hv-muted); font-size: 13px; }
.hv-tool .hv-day {
  padding: 4px 2px; min-width: 0; min-height: 44px; border: 1px solid var(--hv-line);
  border-radius: 7px; display: grid; place-items: center; line-height: 1.15;
}
.hv-tool .hv-day[aria-pressed="true"] { border-color: #674f1e; box-shadow: inset 0 0 0 1px #674f1e; }
.hv-day-num { font-size: 11px; }
.hv-day-count { font-size: 14px; font-weight: 700; }
.hv-tool :is(.hv-day,.hv-legend i)[data-level="unknown"] { background: #faf5ea; color: #695948; }
.hv-tool :is(.hv-day,.hv-legend i)[data-level="observed"] { background: #f0e8d5; color: #52412c; }
.hv-tool :is(.hv-day,.hv-legend i)[data-level="one"] { background: #f9df93; color: #412f0d; }
.hv-tool :is(.hv-day,.hv-legend i)[data-level="many"] { background: #d9e8d7; color: #204d38; }
.hv-legend { gap: 5px 12px; }
.hv-legend span { display: inline-flex; align-items: center; gap: 5px; }
.hv-legend i {
  display: inline-grid; place-items: center; min-width: 23px; height: 23px;
  border: 1px solid var(--hv-line); border-radius: 5px; font-style: normal; font-weight: 700;
}
.hv-day-detail { margin-top: 8px; min-height: 1.55em; }
@media (max-width: 480px) {
  .hv-signal { display: none; }
  .hv-field button { padding-inline: 11px; }
  .hv-calendar-grid { gap: 3px; }
}

.hv-latest { padding: 10px clamp(14px, 3vw, 24px); border-bottom: 1px solid var(--hv-line); }
.hv-open-latest, .hv-calendar-retry, .hv-latest-link { color: #654503; text-decoration: underline; text-underline-offset: 3px; }
.hv-latest-panel { margin: 6px 0; }
.hv-latest-note { margin-bottom: 4px; }
.hv-frame iframe { display: block; width: 100%; height: min(72vh, 670px); border: 1px solid var(--hv-line); margin-top: 10px; border-radius: 9px; }
.hv-day-signals { font-size: 11px; letter-spacing: 1px; }

.hv-day-detail{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:14px}.hv-fact{background:#fffaf2;border:1px solid var(--hv-line);border-radius:6px;padding:3px 7px;font-size:13px}.hv-selected-date{font-variant-numeric:tabular-nums;margin-right:4px}

.tool-page { margin: 0; background: #fcf8ef; color: #30251b; font: 16px/1.5 system-ui, sans-serif; }
.tool-header, .tool-main, .tool-footer { width: min(900px, calc(100% - 32px)); margin-inline: auto; }
.tool-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; border-bottom: 1px solid #e7d8bc; }
.tool-brand { font-size: 1.25rem; font-weight: 800; }
.tool-header a, .tool-footer a { color: inherit; }
.tool-header nav, .tool-footer { display: flex; gap: 16px; }
.tool-main { padding-block: clamp(20px, 5vw, 56px); }
.tool-main > h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 12px; }
.tool-footer { padding-bottom: 24px; }

.tool-help { margin-top: 2.5rem; }
.tool-help details { border-top: 1px solid #e7d8bc; padding: .75rem 0; }
.tool-help summary { cursor: pointer; font-weight: 650; }
.tool-help p { margin: .75rem 0 .15rem; }
.tool-help code { overflow-wrap: anywhere; }
.tool-help a { color: #1e5d44; }

.tool-privacy { width: min(900px, calc(100% - 32px)); margin: 0 auto 12px; color: #6b5745; font-size: .875rem; }
.tool-privacy a { color: #1e5d44; }
