html:has(.cw-window){background:#0c0914}
body.cw-window{width:calc(100% - 16px);max-width:960px;height:calc(100dvh - 24px);margin:12px auto;overflow:auto;border-radius:14px}
.cw-window #frame{height:100%;min-height:0}
body.cw-frame{display:flex;flex-direction:column;margin:0;height:100dvh;overflow:hidden}
body.cw-frame.cw-window{margin:12px auto;height:calc(100dvh - 24px)}
.cw-frame>header{display:none}
.cw-frame>iframe{display:block;width:100%;height:0;min-height:0;flex:1;border:0}
.cw-bar{display:flex;align-items:center;justify-content:space-between;flex:none;box-sizing:border-box;padding:max(2px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) 2px max(8px,env(safe-area-inset-left));background:#171120}
.cw-bar a,.cw-bar button{padding:4px 10px;color:#fff;background:#302339;border:1px solid #65516e;border-radius:9px;font:600 14px/1.35 system-ui;text-decoration:none;cursor:pointer}
