/* Layout — Vollbild-App (Startseite/Chat) + Overlay/Modal-Gerüst.
   Das frühere Sidebar-/#shell-Layout ist mit dem Telegram-UI-Umbau entfallen;
   die Views (home.js/chat.js) bringen ihr Layout-CSS selbst mit. */

html, body { height: 100%; }

#view {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--md-sys-color-surface);
}
#view > section, #view > div.chat-workspace { flex: 1; min-height: 0; }

.overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: overlayIn .16s ease;
}
.modal {
    width: min(100%, 560px);
    max-height: 86vh;
    overflow: auto;
    animation: modalIn .18s ease;
}
@keyframes overlayIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
    .overlay, .modal { animation: none; }
}
