/* Fixed-costs calendar, burden gauges, and the overview tab. */
.seal-text { color: var(--seal); }

/* Month navigation */
.month-nav { display: flex; align-items: center; gap: 4px; }
.month-nav h2 { min-width: 132px; text-align: center; font-size: 19px; }

.fixed-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.fixed-grid .sheet + .sheet, .fixed-side .sheet + .sheet { margin-top: 0; }
.fixed-side { display: grid; gap: 18px; }
.fixed-grid + .sheet { margin-top: 18px; }

.month-total { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 16px; }
.month-total div { display: grid; }
.month-total small { font-size: 12.5px; }
.month-total b { font-size: 20px; font-weight: 700; }

/* Calendar: Sunday first, the way Korean wall calendars read. */
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule-soft); }
.cal-head { font-size: 12px; color: var(--muted); text-align: center; padding: 6px 0; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule); }
.cal-head.sun { color: var(--seal); }
.cal-cell { min-height: 92px; padding: 4px 5px 5px; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-cell.pad { background: color-mix(in srgb, var(--paper) 55%, transparent); }
.cal-cell.today .cal-day { background: var(--pine); color: var(--pine-ink); }
.cal-day { align-self: flex-start; font-size: 12px; font-weight: 600; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; }
.cal-item { font-size: 11.5px; line-height: 1.35; padding: 1px 5px; border-radius: 4px; background: var(--brass-wash); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item.ins { background: var(--good-wash); }
.cal-item.paid { text-decoration: line-through; opacity: .6; }
.cal-item.overdue { background: var(--seal-wash); color: var(--seal); }
.cal-more { font-size: 11px; color: var(--muted); }
.cal-sum { margin-top: auto; font-size: 11.5px; font-weight: 600; text-align: right; color: var(--muted); }
.agenda-wrap { display: none; }

/* Agenda list (phones, and the overview's next 30 days) */
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px dashed var(--rule); }
.agenda li:last-child { border-bottom: 0; }
.agenda li.paid { opacity: .6; }
.agenda-date { font-weight: 600; display: grid; line-height: 1.25; }
.agenda-date small { font-weight: 400; font-size: 12px; }
.agenda-name { display: grid; min-width: 0; }
.agenda-name small { font-size: 12.5px; color: var(--muted); }
.agenda b { font-weight: 600; }

/* Category bars: one hue, the length is the message. */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.bars .bar { height: 10px; background: var(--rule-soft); border-radius: 0 5px 5px 0; overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: var(--pine-2); border-radius: 0 5px 5px 0; }
.bars b { font-weight: 600; }

/* Burden gauges with the guideline marked on the track */
.gauge { margin: 6px 0 4px; }
.gauge-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.gauge-top b { font-size: 18px; font-weight: 700; }
.gauge.over .gauge-top b { color: var(--seal); }
.gauge-track { position: relative; height: 12px; margin: 8px 0 26px; background: var(--rule-soft); border-radius: 0 6px 6px 0; }
.gauge-track i { display: block; height: 100%; background: var(--pine-2); border-radius: 0 6px 6px 0; }
.gauge.over .gauge-track i { background: var(--seal); }
.gauge-track em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); font-style: normal; }
.gauge-track em span { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.burden .note { margin: 0 0 16px; }
.burden-facts { display: grid; gap: 6px; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--rule-soft); }
.burden-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.burden-facts dt { color: var(--muted); }
.burden-facts dd { margin: 0; font-weight: 600; }

/* Overview */
.kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.kpis .sheet + .sheet { margin-top: 0; }
.kpi { display: grid; gap: 2px; align-content: start; text-decoration: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.kpi:hover { border-color: var(--pine-2); }
.kpi small { font-size: 13px; }
.kpi b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.over b { color: var(--seal); }
.worth-kpi { border-left: 8px solid var(--pine); }
.worth-kpi b { font-size: 30px; }
.worth-kpi span { color: var(--brass); font-weight: 500; }

.overview-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; align-items: start; }
.overview-grid .sheet + .sheet { margin-top: 0; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo a { display: grid; gap: 1px; padding: 10px 12px 10px 14px; border-radius: 10px; background: var(--paper); color: inherit; text-decoration: none; border-left: 4px solid var(--rule); }
.todo a:hover { background: var(--rule-soft); }
.todo .seal a { border-left-color: var(--seal); }
.todo .seal span { color: var(--seal); font-weight: 600; }
.todo .brass a { border-left-color: var(--brass); }
.todo small { font-size: 12.5px; }

.start { border-left: 8px solid var(--brass); }
.start-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.start-steps li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.start-steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--brass-wash); color: var(--brass); }
.start-steps li.done::before { background: var(--good-wash); color: var(--good); }
.start-steps p { font-size: 13.5px; color: var(--muted); }
.start-steps .button { min-height: 34px; }

@media (max-width: 1060px) {
  .fixed-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .worth-kpi { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .calendar { display: none; }
  .agenda-wrap { display: block; }
  .overview-grid { grid-template-columns: 1fr; }
  .kpi b { font-size: 22px; }
  .worth-kpi b { font-size: 28px; }
}
