#wfx-wall,.wfx-strip,#wfx-preview {display:block;pointer-events:none;box-sizing:border-box}
#wfx-wall[hidden],.wfx-strip[hidden],#wfx-dialog:not([open]) {display:none!important}
html.wfx-enabled body {isolation:isolate}
#wfx-wall {position:fixed;inset:0;width:100%;height:100%;z-index:-1;opacity:.28}
.wfx-strip {width:100%;height:52px;border-radius:12px;margin:4px 0 12px;border:1px solid var(--wp-line)}
#wfx-settings {margin:14px 0;color:var(--wp-text)}
#wfx-open {display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:54px;padding:12px;border-radius:12px;border:1px solid var(--wp-line);background:var(--wp-raised);color:var(--wp-text);text-align:start;font:600 15px/1.4 system-ui,sans-serif}
#wfx-open strong {color:var(--wp-accent);text-align:end}
#wfx-dialog {box-sizing:border-box;position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,470px);max-width:100%;max-height:92vh;max-height:92dvh;padding:14px 16px calc(12px + env(safe-area-inset-bottom,0px));overflow:auto;border:1px solid var(--wp-line);border-radius:22px 22px 0 0;background:var(--wp-surface);color:var(--wp-text);box-shadow:0 -12px 45px #0005}
#wfx-dialog::backdrop {background:#080d16ad}
#wfx-dialog h2 {margin:0 0 10px;font:700 20px/1.3 system-ui,sans-serif}
#wfx-preview {width:100%;height:86px;border:1px solid var(--wp-line);border-radius:12px}
.wfx-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0}
#wfx-dialog .wfx-options label {display:flex;align-items:center;gap:7px;min-height:46px;padding:7px 9px;background:var(--wp-raised);border:1px solid var(--wp-line);border-radius:10px;font:600 14px/1.35 system-ui,sans-serif;cursor:pointer}
#wfx-dialog label:has(:checked) {border-color:var(--wp-accent);background:var(--wp-tint)}
#wfx-dialog .wfx-options input {position:static;width:16px;height:16px;margin:0;accent-color:var(--wp-accent);flex:none}
.wfx-buttons {position:sticky;bottom:0;display:flex;gap:8px;background:var(--wp-surface);padding:6px 0 0}
#wfx-dialog button {flex:1;min-height:48px;padding:8px;border:1px solid var(--wp-line);border-radius:12px;background:var(--wp-raised);color:var(--wp-text);font:650 16px/1.4 system-ui,sans-serif}
#wfx-dialog [data-wfx-save] {background:var(--wp-accent);color:var(--wp-on)}
#wfx-settings :is(button,input):focus-visible {outline:2px solid var(--wp-accent);outline-offset:2px}
#wfx-note:empty,[data-wfx-error]:empty {display:none}
[data-wfx-error] {color:var(--wp-bad)}
@media(min-width:580px) { #wfx-dialog {inset:0;margin:auto;height:fit-content;border-radius:20px}}
@media print { #wfx-wall,.wfx-strip,#wfx-dialog {display:none!important}}
