/* English "Today" page (en/today.html) — layout only; colours come from style.css tokens. */
.t-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.t-nav label { display: flex; gap: 6px; align-items: center; }
#t-date { max-width: 100%; }
#t-verdict .verdict { margin: 6px 0; padding: 8px 10px; border-left: 4px solid var(--line); background: var(--paper); }
#t-verdict .verdict[data-k="good"] { border-left-color: #2E7D32; }
#t-verdict .verdict[data-k="care"] { border-left-color: var(--accent); }
.t-lines li { margin: 8px 0; }
.t-gae li { margin: 10px 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.t-gae li p { margin: 4px 0; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 6px; vertical-align: -2px; border: 1px solid var(--line); }
.swatch[data-el="wood"] { background: #2E7D32; }
.swatch[data-el="fire"] { background: #C62828; }
.swatch[data-el="earth"] { background: #C49A3A; }
.swatch[data-el="metal"] { background: #F5F5F5; }
.swatch[data-el="water"] { background: #263238; }
.t-week { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.t-week li { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9em; }
.t-week li.done { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.t-sijin { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 0; list-style: none; }
.t-sijin li { padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.t-sijin li.now { border: 2px solid var(--accent); }
.t-sijin li p { margin: 4px 0 0; }
#t-jform textarea { width: 100%; box-sizing: border-box; }
#t-jform label { display: block; }
.t-jlist li { margin: 8px 0; }
.t-range li { margin: 4px 0; }
.t-range li.is-today button { font-weight: 700; }
.linkish { background: none; border: 0; padding: 2px 0; color: inherit; text-align: left; font: inherit; text-decoration: underline; text-decoration-color: var(--line); cursor: pointer; }
.t-couple { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 10px; }
.couple-side { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.couple-side h3 { margin-top: 0; }
.t-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-head { text-align: center; font-size: 0.8em; color: var(--muted); }
.cal-day { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 64px; padding: 3px 1px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: 0.85em; cursor: pointer; overflow: hidden; }
.cal-day.is-today { border: 2px solid var(--accent); }
.cal-day.is-view { background: var(--warn-bg); }
.cal-d { font-weight: 700; }
.cal-ij { font-size: 0.8em; color: var(--muted); }
.cal-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; }
.cal-marks span, .t-legend span[data-k] { display: inline-block; padding: 0 3px; border-radius: 4px; font-size: 0.75em; line-height: 1.4; color: #fff; }
[data-k="hap"] { background: #2E7D32; }
[data-k="half"] { background: #558B2F; }
[data-k="clash"] { background: #C62828; }
[data-k="same"] { background: #6D4C41; }
[data-k="stem"] { background: #1565C0; }
.t-range li[data-k], .t-legend li { background: none; }
.t-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.t-table { overflow-x: auto; }
.t-table table { width: 100%; border-collapse: collapse; }
.t-table th, .t-table td { padding: 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cal-day[data-tg="pick"] { background: rgba(46, 125, 50, 0.16); border-color: #2E7D32; }
.cal-day[data-tg="avoid"], .cal-day[data-tg="chung"] { background: var(--paper); border-style: dashed; border-color: #9E9E9E; }
.cal-day[data-past="1"] { opacity: 0.55; }
.cal-of { font-size: 0.75em; color: var(--muted); }
.t-legend .tg-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; border: 1px solid #2E7D32; background: rgba(46, 125, 50, 0.16); }
.t-legend .tg-swatch[data-tg="avoid"] { border: 1px dashed #9E9E9E; background: var(--paper); }
.t-tg-list li, .t-cal-tg li { margin: 4px 0; }
.t-tg-list li.marked, .t-cal-tg li.marked { font-weight: 700; }
.t-cal-tg { margin-top: 12px; }
.t-cal-tg li[data-past="1"] { color: var(--muted); }
.t-basis { margin: 8px 0; }
.t-basis label { display: block; margin: .3rem 0; }
@media (max-width: 480px) {
  .cal-day { min-height: 56px; font-size: 0.75em; }
  .cal-ij { font-size: 0.7em; }
}
