.dc-open { margin-top: .5rem; max-width: 100%; white-space: normal; }
.document-camera { width: min(780px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-sizing: border-box; overflow: auto; color: var(--text, #d5e0e8); background: var(--panel, #131c23); border: 1px solid var(--cyan, #00dfff); border-radius: 14px; padding: 20px; }
.document-camera::backdrop { background: rgba(0, 0, 0, .76); }
.dc-head, .dc-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dc-head h2 { margin: 0; font-size: 1.15rem; }
.dc-name { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; }
.dc-name input { width: 100%; box-sizing: border-box; }
.dc-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 0; list-style: none; counter-reset: none; }
.dc-page { min-width: 0; border: 1px solid var(--border, #293a46); border-radius: 10px; padding: 10px; }
.dc-preview { height: 190px; display: flex; align-items: center; justify-content: center; background: #fff; color: #263747; border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.dc-preview img { width: 100%; height: 100%; object-fit: contain; image-orientation: from-image; }
.dc-preview span { padding: 10px; color: #52616d; }
.dc-page-actions { display: flex; gap: 5px; margin-top: 8px; }
.dc-page-actions button { flex: 1 1 auto; min-width: 36px; min-height: 36px; padding: 6px 9px; }
.dc-message { min-height: 1.5em; font-size: .87rem; line-height: 1.5; overflow-wrap: anywhere; }
.dc-error { color: #ff8b94; }
.dc-actions { position: sticky; bottom: -20px; background: var(--panel, #131c23); padding: 12px 0; border-top: 1px solid var(--border, #293a46); }
.dc-actions button { min-height: 42px; }
.document-camera button[hidden] { display: none; }
@media (max-width: 480px) {
.document-camera { padding: 14px; width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
.dc-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dc-page { padding: 7px; }
.dc-preview { height: 155px; }
.dc-page-actions { flex-wrap: wrap; }
.dc-page-actions button:last-child { flex-basis: 100%; }
.dc-actions { bottom: -14px; }
.dc-actions .btn-primary { width: 100%; }
}