/* Website surroundings only. Preserve supplied window, theme and control styles. */
html { background: #0c1019; }
body { background: #0c1019 !important; }
.review, .review-strip, .preview-bar { background-color: #101520; border-color: #2b3243; }
:focus-visible { outline: 2px solid #b5a8ff; outline-offset: 2px; }
html[data-preview-plugin="vermaxion"] .overlay .content { grid-auto-rows: max-content; align-content: start; }
html[data-preview-plugin="vermaxion"] .settings-shell input[type="search"] { width: 100%; min-width: 0; }
html[data-preview-plugin="vermaxion"] .profile-list { grid-auto-rows: max-content; }
html[data-preview-plugin="vermaxion"] .profile-list button { white-space: normal; min-width: 0; width: 100%; }
html[data-preview-plugin="vermaxion"] .settings-shell .stack,
html[data-preview-plugin="vermaxion"] .settings-shell .list { grid-template-columns: minmax(0, 1fr); }
html[data-preview-plugin="vermaxion"] .settings-shell > aside .field { display: grid; gap: 6px; }
html[data-preview-plugin="vermaxion"] .settings-shell > aside .field input,
html[data-preview-plugin="vermaxion"] .settings-shell > aside .field select { width: 100%; max-width: 100%; }
@media (max-width: 600px) {
    html[data-preview-layout="desktop"] .window {
        left: 6px !important;
        top: 6px !important;
        transform: none !important;
        min-width: 0 !important;
        max-width: calc(100vw - 12px) !important;
        max-height: calc(100dvh - var(--preview-toolbar-height, 100px) - 12px) !important;
    }
    html[data-preview-layout="desktop"] #desktop {
        height: calc(100dvh - var(--preview-toolbar-height, 100px));
        min-height: 0;
    }
    html[data-preview-plugin="frenrider"] .window {
        top: calc(var(--preview-toolbar-height, 100px) + 6px) !important;
    }
}
