.detail-documents { min-width: 0; }
.detail-documents summary { list-style: none; cursor: pointer; }
.detail-documents summary::-webkit-details-marker { display: none; }
.detail-documents summary:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 4px; }
.detail-documents__links { display: grid; gap: .6rem; margin-top: .6rem; }
.document-sheet { position: fixed; inset: auto 0 0; width: min(calc(100% - 2rem), 48rem); max-width: none; max-height: 70svh; margin: 0 auto max(1rem, env(safe-area-inset-bottom)); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--color-border-subtle); background: var(--color-surface-raised); color: var(--color-text-primary); overflow-y: auto; }
.document-sheet::backdrop { background: color-mix(in srgb, var(--color-surface-inverse) 45%, transparent); }
.document-sheet__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.document-sheet__header h2 { margin: 0; font: 400 clamp(1.75rem, 4vw, 2.5rem)/1.2 var(--font-display); }
.document-sheet__close { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem 0 .5rem .5rem; border: 0; background: transparent; color: inherit; font: 400 .9rem/1.2 var(--font-body); cursor: pointer; }
.document-sheet__close span { font-size: 1.75rem; }
.document-sheet__close:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 4px; }
.document-sheet .detail-button { height: auto; min-height: 3.5rem; padding: .75rem 1rem; justify-content: flex-start; text-align: left; }
.has-document-sheet { overflow: hidden; }
.detail-button { display: flex; justify-content: center; align-items: center; width: 100%; height: 3.5rem; min-width: 0; hyphens: auto; overflow-wrap: normal; gap: 1rem; padding: .25rem .4rem; border: 1px solid var(--color-border-control); background: transparent; color: var(--color-text-secondary); font: 400 .85rem/1.15 var(--font-body); text-align: center; transition: background .2s var(--ease-standard), color .2s var(--ease-standard); }
.detail-button:hover { background: var(--color-surface-subtle); }
.detail-button-primary { font-weight: 600; border-color: var(--color-action-primary); background: var(--color-action-primary); color: var(--color-text-on-action); }
.detail-button-primary:hover { background: var(--color-action-primary-hover); }
.detail-button:disabled { color: var(--color-text-secondary); cursor: default; background: transparent; }
