/* Today (src/today.js), on the M3 theme (docs/theme.md). Tokens only. It sits
   in the same fixed overlay as the Handbook (.hb in styles.css). */
body.td-open { overflow: hidden; }
.td { gap: var(--m3-space-3); }
.td .m3-card-header { flex-wrap: wrap; gap: var(--m3-space-1) var(--m3-space-3); }
.td-status { gap: var(--m3-space-2); flex-wrap: wrap; align-items: center; }
.td-cat { display: flex; flex-direction: column; gap: var(--m3-space-2); }
.td-cat .m3-overline { margin: 0; }
.td-post {
  display: flex; flex-direction: column; gap: var(--m3-space-1);
  padding: var(--m3-space-3); border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container);
}
.td-post-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.td-comment { padding-left: var(--m3-space-3); box-shadow: inset 2px 0 0 var(--md-sys-color-outline-variant); }
.td-photos { display: flex; gap: var(--m3-space-2); flex-wrap: wrap; }
.td-photos img {
  width: 96px; height: 96px; object-fit: cover; display: block;
  border-radius: var(--md-sys-shape-corner-small); background: var(--md-sys-color-surface-container-high);
}
.td-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--m3-space-3); }
.td-nights { flex-wrap: wrap; }
.td-details summary { cursor: pointer; padding: var(--m3-space-2) 0; }
.td .m3-list-item-content .m3-progress { margin-top: var(--m3-space-2); }
.td-note { background: var(--md-sys-color-surface-container-high); }
.td-note .m3-overline { margin: 0; }
.td-ticket { cursor: pointer; }
.td-ticket:hover .m3-list-item-headline { color: var(--md-sys-color-primary); }
.td-dialog-form { display: contents; }
.td-issue { padding: var(--m3-space-3); border-radius: var(--md-sys-shape-corner-medium); background: var(--md-sys-color-surface-container); }
.td-issue-head { gap: var(--m3-space-2); align-items: center; }
.td-issue-head .m3-input { flex: 1; min-width: 0; }
.m3-top-app-bar-title .m3-badge { vertical-align: middle; margin-left: var(--m3-space-2); }
.td-pastdue summary { display: flex; align-items: center; gap: var(--m3-space-2); }
.td-pastdue-night { padding: var(--m3-space-3) 0; border-top: 1px solid var(--md-sys-color-outline-variant); }
.td-pastdue-night .td-status { justify-content: space-between; }
.td-costs { width: 100%; border-collapse: collapse; font: var(--md-sys-typescale-body-medium); }
.td-costs th, .td-costs td { text-align: left; padding: var(--m3-space-2); border-top: 1px solid var(--md-sys-color-outline-variant); }
.td-costs thead th { border-top: 0; color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-label-medium); }
.td-costs tbody th { font-weight: 500; }
@media (max-width: 520px) { .td-costs th, .td-costs td { padding: var(--m3-space-1); font-size: 13px; } }
.td-cost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--m3-space-3); }
.td-cost { display: flex; flex-direction: column; gap: 4px; padding: var(--m3-space-3);
  border-radius: var(--md-sys-shape-corner-medium); background: var(--md-sys-color-surface-container); }
.td-cost .m3-stat-value .m3-badge { font: inherit; }
