/* 06-components/_sheet.css — .c-sheet: the one dialog pattern. Head, body, actions. */
.c-overlay { position: fixed; inset: 0; z-index: var(--z-sheet); display: none; align-items: center; justify-content: center; padding: var(--space-md); background: var(--scrim); }
.c-overlay.is-open, .c-overlay:has(.c-sheet[open]) { display: flex; }
.c-sheet { width: 100%; max-width: 32rem; max-height: calc(100svh - 2 * var(--space-md)); display: flex; flex-direction: column; background: var(--surface-raised); border: var(--stroke) solid var(--rule); border-radius: var(--radius-md); box-shadow: var(--shadow-sheet); color: var(--ink); }
.c-sheet--wide { max-width: 44rem; }
.c-sheet--narrow { max-width: 24rem; }
.c-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--pad-panel) var(--space-sm); border-bottom: var(--stroke) solid var(--rule); }
.c-sheet__title { font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-tight); }
.c-sheet__sub { margin-top: 2px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-faint); }
.c-sheet__body { padding: var(--space-md) var(--pad-panel); overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-md); }
.c-sheet__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-xs); padding: var(--space-sm) var(--pad-panel) var(--space-md); border-top: var(--stroke) solid var(--rule); }
.c-sheet__actions .c-button--danger, .c-sheet__actions .c-button--ghost:first-child { margin-inline-end: auto; }
.c-sheet__section { padding-top: var(--space-md); border-top: var(--stroke) solid var(--rule); }
.c-sheet__section-title { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-xs); }
dialog.c-sheet { padding: 0; margin: auto; }
dialog.c-sheet::backdrop { background: var(--scrim); }
/* added for pages/activity.html — a mono-dated key/value list inside a sheet (history) */
.c-sheet__facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2xs) var(--space-md); font-size: var(--text-sm); margin: 0; }
.c-sheet__facts dt { font-family: var(--font-mono); color: var(--ink-faint); }
.c-sheet__facts dd { margin: 0; }
