/* Materials command layer: same Regal tokens, no new visual system or purchasing states. */
.material-dialog { width: min(880px, calc(100vw - 20px)); padding: 18px; }
.material-dialog h2 { font-size: 20px; margin-bottom: 6px; }
.material-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: -18px; z-index: 1; background: var(--surface); padding: 8px 0; }
.material-dialog-bar .tbtn { flex: none; }
.material-heading h3 { font-size: 25px; margin: 4px 0; letter-spacing: -.025em; overflow-wrap: anywhere; }
.material-heading p { margin: 6px 0; }
.material-kicker { color: var(--muted); font-size: 14px; }
.material-check-state { display: grid; gap: 5px; padding: 12px; border-left: 4px solid var(--brand-600); background: var(--surface-2); margin: 14px 0; }
.material-check-state span { font-size: 14px; line-height: 1.5; }
.material-refresh { display: flex; justify-content: flex-end; margin: 4px 0 12px; }
.material-dialog .tbtn, .material-dialog summary { min-height: 48px; font-size: 15px; }
.material-dialog .tbtn { white-space: normal; }
.material-grid { display: grid; gap: 14px; }
.material-section { min-width: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.material-section-head { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.material-section-head h4 { font-size: 19px; margin: 0; }
.material-section-head > span { font-weight: 800; font-size: 20px; }
.material-status, .material-footnote { color: var(--muted); font-size: 13px; }
.material-unverified .material-status, .material-local { color: var(--st-stuck); font-weight: 700; }
.material-section ul { padding: 0; margin: 10px 0; list-style: none; }
.material-section li { padding: 10px 0; display: grid; gap: 4px; border-bottom: 1px solid var(--line-2); overflow-wrap: anywhere; }
.material-section li strong { font-size: 16px; font-weight: 750; }
.material-section li span { font-size: 14px; line-height: 1.45; }
.material-section summary { display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.material-section > .tbtn { width: 100%; margin-top: 8px; }
@media (min-width: 700px) { .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
.today-shortcuts:has([data-today-materials]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
