/* 農民曆・國曆農曆轉換 */
.tool { display: flex; flex-direction: column; gap: 18px; }
.panel { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.panel h2 { margin: 0 0 10px; font-size: 1.125rem; }
.today-date { margin: 0; font-size: 1.5rem; font-weight: 700; }
.today-lunar { margin: 4px 0 0; font-size: 1.25rem; color: var(--accent); font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 8px 16px; margin: 12px 0 0; }
.facts dt { color: var(--muted); font-size: .875rem; }
.facts dd { margin: 0; font-weight: 700; }

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-head strong { font-size: 1.125rem; }
.cal-nav { min-width: 44px; min-height: 44px; font: inherit; font-size: 1.25rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); cursor: pointer; }
.cal-nav:hover, .cal-nav:focus-visible { border-color: var(--accent); outline: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; color: var(--muted); font-size: .875rem; padding: 4px 0; }
.cal-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 4px 0;
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.cal-day:hover, .cal-day:focus-visible { border-color: var(--accent); outline: none; }
.cal-day .sd { font-size: 1.0625rem; font-weight: 700; }
.cal-day .ld { font-size: .75rem; color: var(--muted); }
.cal-day .ld.term { color: var(--accent); font-weight: 700; }
.cal-day.sun .sd { color: #C0392B; }
.cal-day.today { background: var(--accent-soft); }
.cal-day.sel { border: 2px solid var(--accent); }

.conv-modes { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
.conv-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.conv-fields label { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.conv-fields input[type="number"] { width: 5.5rem; font: inherit; font-size: 1.125rem; padding: 6px 10px; border: 2px solid var(--accent); border-radius: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.conv-result { margin: 12px 0 0; font-size: 1.125rem; font-weight: 700; }
.error { color: #C0392B; }
.notes { margin: 0; padding-left: 1.25rem; color: var(--muted); }
