/* Общие диалоги, уведомления и загрузка. */ .modal-title { font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: var(--text-primary); } .modal-shell[hidden] { display: none; } .modal-shell { position: fixed; inset: 0; z-index: 60; } .modal-backdrop { position: absolute; inset: 0; background: var(--scrim); } .modal-dialog { position: absolute; left: 16px; right: 16px; bottom: 24px; display: grid; gap: 12px; box-shadow: var(--shadow); } .modal { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; padding: 16px; z-index: 60; } .modal-card { width: min(100%, 560px); max-height: calc(100dvh - 32px); overflow-y: auto; color: var(--text-primary); background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); } .toast-host { position: fixed; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; z-index: 140; pointer-events: none; } .toast { max-width: min(92vw,420px); padding: 12px 16px; border-radius: 12px; color: var(--text-primary); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border-subtle); opacity: 0; transition: opacity 160ms; } .toast.is-visible { opacity: 1; } .toast.is-hiding { opacity: 0; } .toast.toast--error { color: var(--danger); } .skeleton-card { display: grid; gap: 12px; } .skeleton-line { height: 12px; border-radius: 6px; background: var(--surface-selected); animation: skeleton-pulse 1.2s ease-in-out infinite alternate; } .skeleton-line.w-40 { width: 40%; } .skeleton-line.w-70 { width: 70%; } .skeleton-line.w-90 { width: 90%; } @keyframes skeleton-pulse { to { opacity: .4; } } @media (prefers-reduced-motion: reduce) { .skeleton-line, .toast { animation: none; transition: none; } } @media (max-width: 599px) { .modal { place-items: end stretch; padding: 0; } .modal > .modal-card { width: 100%; max-width: 100%; max-height: calc(100dvh - 48px - env(safe-area-inset-top)); border-width: 1px 0 0; border-radius: 20px 20px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); animation: modal-sheet-in 180ms ease-out; } } @keyframes modal-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } } @media (prefers-reduced-motion: reduce) { .modal-card { animation: none; } } /* Общий диалог подтверждения (js/components/confirm-dialog.js). */ .confirm-dialog__card { width: min(100%, 400px); display: grid; gap: 12px; } .confirm-dialog__text { margin: 0; color: var(--text-secondary); font-size: .9375rem; line-height: 1.375rem; overflow-wrap: anywhere; } .confirm-dialog__danger { color: #fff; background: var(--danger); } :root[data-theme='dark'] .confirm-dialog__danger { color: var(--background); }