/* Shared surfaces, controls and dialogs across the workspace. */
body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]),html[data-theme=dark] body{--ws-bg:#101318;--ws-panel:#181d25;--ws-soft:#202733;--ws-line:#303a49;--ws-text:#edf1f7;--ws-muted:#a4b0c1;color-scheme:dark}
body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]) :is(main.content,.content-area,.workspace-content){background:var(--ws-bg)!important;color:var(--ws-text)!important}
body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]) :is(.card,.ds-panel,dialog,.modal-content,.popup-content,.profile-menu,.notification-panel){background:var(--ws-panel)!important;border-color:var(--ws-line)!important;color:var(--ws-text)!important;box-shadow:0 16px 48px #0003}
body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]) :is(main,dialog,.modal-content) :is(input,select,textarea){background:#121820!important;border-color:var(--ws-line)!important;color:var(--ws-text)!important;border-radius:9px}
body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]) :is(main,dialog) :is(input,textarea)::placeholder{color:#8593a6!important}
body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]) :is(main,dialog) :is(th,.ds-dialog-head,.modal-actions,.ds-settings){background:var(--ws-soft)!important;color:var(--ws-text)!important;border-color:var(--ws-line)!important}
body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]) :is(main,dialog) :is(td,.ds-stats>div,.ds-domain-card){background:var(--ws-panel)!important;color:var(--ws-text)!important;border-color:var(--ws-line)!important}
body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]) :is(main,dialog) :is(h1,h2,h3,h4,strong,label){color:var(--ws-text)}
body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]) :is(.ds-form-caption,.ds-panel-heading span,.reference-page-heading p,.form-hint){color:var(--ws-muted)!important}
body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]) :is(main,dialog) :is(.btn,button):not(.primary):not(.ds-delete-primary):not(.ds-danger){background:#202733;color:#e4ebf5;border-color:var(--ws-line)}
body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]) :is(input,select,textarea,button,a):focus-visible{outline:2px solid #7aa6ef;outline-offset:3px}
#dsConfirm#dsConfirm{width:480px!important;padding:0!important;border-radius:18px!important;overflow:auto!important}
#dsConfirm#dsConfirm .ds-dialog-head{padding:24px!important;gap:20px;border-bottom:1px solid #e5e9f0}
#dsConfirm#dsConfirm #dsConfirm#dsConfirmText{margin:20px 24px!important;padding:16px 18px!important;border:1px solid #f1cad2!important;border-radius:12px!important;background:#fff5f7!important;color:#942d44!important;overflow-wrap:anywhere;line-height:1.65;min-height:60px}
#dsConfirm#dsConfirm .modal-actions{padding:16px 24px 22px!important;margin:0!important;border-top:0;display:flex;justify-content:flex-end;gap:10px}
#dsConfirm#dsConfirm .modal-actions button{min-height:42px;min-width:88px;border-radius:10px}
body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]) #dsConfirm#dsConfirm #dsConfirm#dsConfirmText{background:#2b1e28!important;border-color:#6d3547!important;color:#ffc5d1!important}
#nawalaPersistentAlert[id]{width:390px!important;right:20px!important;bottom:20px!important;max-height:calc(100dvh - 130px)!important;border-radius:16px!important}
#nawalaPersistentAlert[id] header{padding:15px 16px;align-items:center}
#nawalaPersistentAlert[id] .np-intro{padding:12px 16px}
#nawalaPersistentAlert[id] .np-rows{padding:0 12px;max-height:230px}
#nawalaPersistentAlert[id] .np-domain{padding:12px;margin-bottom:8px}
#nawalaPersistentAlert[id] .np-domain-head{flex-wrap:wrap;gap:6px}
#nawalaPersistentAlert[id] .np-meta{flex-wrap:wrap;gap:8px}
#nawalaPersistentAlert[id] .np-chrome{gap:6px;margin:0 12px;padding:10px 0}
#nawalaPersistentAlert[id] footer{padding:0 12px 12px;flex-wrap:wrap;gap:6px}
#nawalaPersistentAlert[id] footer a{margin-left:0}
#nawalaPersistentAlert[id] .np-live,#nawalaPersistentAlert[id] .np-badge{font-size:9px}
body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]) #nawalaPersistentAlert[id] .np-live,body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]) #nawalaPersistentAlert[id] .np-badge{background:#3a202c!important;border-color:#6e3446!important;color:#ffb8c8!important}
body:is(.dark,[data-ui-mode=dark],[data-admin-theme=dark-mode]) #nawalaPersistentAlert[id] .np-icon{background:#3a202c!important;color:#ff7995}
@media(max-width:600px){#nawalaPersistentAlert[id]{width:calc(100vw - 24px)!important;right:12px!important;bottom:12px!important;max-height:72dvh!important}#nawalaPersistentAlert[id] .np-rows{max-height:22dvh}#dsConfirm#dsConfirm .ds-dialog-head{padding:20px!important}#dsConfirm#dsConfirm #dsConfirm#dsConfirmText{margin:16px 20px!important}}
