/* Switch placement and the plugin's own settings only. No site layout reset. */
zenkai-theme-switch:not(:defined) { visibility: hidden; }
#zdm-automatic-switch {
    position: fixed;
    z-index: 9990;
    left: min(calc(var(--zdm-offset-x, 20px) + env(safe-area-inset-left, 0px)), max(8px, calc(100vw - 124px)));
    bottom: min(calc(var(--zdm-offset-y, 24px) + env(safe-area-inset-bottom, 0px)), max(8px, calc(100dvh - 64px)));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1;
    pointer-events: auto;
}
#zdm-automatic-switch[hidden] { display: none !important; }
#zdm-automatic-switch.zdm-side-right {
    left: auto;
    right: min(calc(var(--zdm-offset-x, 20px) + env(safe-area-inset-right, 0px)), max(8px, calc(100vw - 124px)));
}
#zdm-automatic-switch.zdm-in-header {
    position: static;
    flex: 0 0 84px;
    width: 84px;
    height: 44px;
    margin: 0 8px;
    z-index: auto;
}
#wpadminbar #wp-admin-bar-zenkai-dark-mode { display: block !important; }
#wpadminbar #wp-admin-bar-zenkai-dark-mode > .ab-item {
    display: flex;
    align-items: center;
    height: 32px;
    padding: 0 8px;
    background: transparent;
}
@media (max-width: 782px) {
    #wpadminbar #wp-admin-bar-zenkai-dark-mode > .ab-item { height: 46px; }
}
.zdm-settings { max-width: 1050px; }
.zdm-settings .zdm-preview {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 22px 24px;
    margin: 20px 0;
    background: #fff;
    color: #202532;
    border: 1px solid #dcdcde;
    border-radius: 8px;
}
.zdm-settings .zdm-preview p { margin: 6px 0 0; }
.zdm-settings .form-table td p:first-child { margin-top: 0; }
.zdm-settings .small-text { margin: 0 16px 0 6px; }
@media print {
    #zdm-automatic-switch, zenkai-theme-switch { display: none !important; }
}
