
.e-group { display: grid; gap: var(--sp-3); padding: var(--sp-3) 0 0 var(--sp-4); border-left: 2px solid var(--green-200); }
.e-group[hidden] { display: none; }
.e-subhead { font-size: var(--fs-15); font-weight: var(--fw-semibold); margin: var(--sp-2) 0 0; color: var(--color-text); }
.e-ledger thead th { font-size: var(--fs-13); font-weight: var(--fw-semibold); color: var(--color-text-muted); padding: 0 0 6px; text-align: right; }
.e-ledger thead th:first-child { text-align: left; }
.e-ledger th[scope="row"] { line-height: 1.25; }
.e-ledger .e-was { display: block; font-size: var(--fs-13); font-weight: var(--fw-regular, 400); color: var(--color-text-muted); margin-top: 2px; font-variant-numeric: var(--num); }
.e-ledger td.e-new { color: var(--color-text); }
.e-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.e-week .chip { min-width: 0; width: 100%; padding: 0; }
.e-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2); align-items: start; }
.e-add .btn { height: 48px; }
.e-days { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.e-days li { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 2px 0 12px; border-radius: 999px; border: 1px solid var(--green-300); background: var(--color-surface-tint); font-size: var(--fs-14); color: var(--color-text); font-variant-numeric: var(--num); }
.e-days button { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-600); cursor: pointer; transition: background-color var(--dur-press), color var(--dur-press); }
.e-days button:hover { background: var(--green-100); color: var(--color-error); }
.e-days button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.e-days button svg { width: 14px; height: 14px; }
.e-hols { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: var(--fs-14); color: var(--ink-700); }
.e-hols li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-3); padding: 5px 0; border-bottom: 1px dashed var(--green-200); }
.e-hols li:last-child { border-bottom: 0; }
.e-hols time { font-variant-numeric: var(--num); color: var(--color-text); font-weight: var(--fw-semibold); white-space: nowrap; }
.e-hols .e-more { color: var(--color-text-muted); grid-template-columns: 1fr; }
.e-hols-wrap[hidden] { display: none; }
.bar__seg--off { background: var(--ink-200); }
.key-off { background: var(--ink-200); border: 1px solid var(--ink-400); }
.data-table td.d { white-space: nowrap; font-variant-numeric: var(--num); }
.data-table .moved { color: var(--color-text-muted); font-size: var(--fs-13); display: block; }
.ledger th[scope="row"] { white-space: normal; padding-right: var(--sp-2); }
.ledger td.calc { white-space: nowrap; font-size: var(--fs-14); }
.ledger td.calc.e-wrap { white-space: normal; }
.e-ledger .e-wascol { display: none; }
@media print {
  .e-ledger th.e-wascol, .e-ledger td.e-wascol { display: table-cell !important; }
  .e-ledger .e-was { display: none !important; }
  .tool__result .e-ledger th, .tool__result .e-ledger td { padding-right: 14pt !important; }
  .tool__result .e-ledger th:last-child, .tool__result .e-ledger td:last-child { padding-right: 0 !important; }
}
.p-list li { align-items: start; }
.p-list li > span { display: grid; gap: 2px; }
.p-list .p-note { font-size: var(--fs-13); color: var(--color-text-muted); font-weight: var(--fw-regular); }
.p-list .is-moved time { color: var(--color-ot-text); }
.e-actions:has(#ics) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.e-actions:has(#ics) #ics { grid-column: 1 / -1; }
.e-actions:has(#ics) .btn { justify-content: center; white-space: nowrap; }
@media (max-width: 359px) { .e-actions:has(#ics) .btn { padding-inline: var(--sp-3); } }
.p-slot { display: grid; min-height: calc(2 * 1.45em * 0.875); }
.p-slot > * { grid-area: 1 / 1; align-self: start; margin: 0; }
.p-slot .field__hint[hidden] { display: none; }
@media print { label[for="remind"], #ics-note { display: none !important; } }
#tool:has(#semi-field) .result__stale { min-height: 1.6em; }
#tool:has(#semi-field) .result__stale:empty { display: block; }
@media screen and (max-width: 520px) { #tool:has(#semi-field) .result__stale { min-height: 3.2em; } }
