/* Pişti-only movable private chat; native modal dialogs remain in the top layer. */
.pisti-dm-root{position:fixed;inset:0;z-index:1600;font:13px/1.4 system-ui,sans-serif;color:#eaf5fa;pointer-events:none}
.pisti-dm-root [hidden]{display:none!important}.pisti-dm-deck{pointer-events:none}
.pisti-dm-window{position:fixed;width:300px;height:340px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);display:flex;flex-direction:column;border:1px solid #52717e;border-radius:12px;background:#0e2533;box-shadow:0 8px 30px #0009;pointer-events:auto;overflow:hidden;box-sizing:border-box}
.pisti-dm-head{display:flex;align-items:center;gap:4px;padding:6px 8px;background:#183746;border-bottom:1px solid #385764;cursor:grab;touch-action:none;user-select:none;flex:0 0 auto}.pisti-dm-head h3{min-width:0;flex:1;margin:0;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pisti-dm-window.is-dragging .pisti-dm-head{cursor:grabbing}
.pisti-dm-root button,.pisti-dm-root textarea{font:inherit}.pisti-dm-root button{border:1px solid #52717e;background:#1b4151;color:#effaff;border-radius:7px;cursor:pointer;padding:5px 9px}.pisti-dm-root button:disabled{opacity:.55;cursor:wait}.pisti-dm-root :is(button,a,textarea,.pisti-dm-head):focus-visible{outline:2px solid #f5d15f;outline-offset:-2px}
.pisti-dm-root .pisti-dm-icon,.pisti-dm-root .pisti-dm-menu{min-width:30px;min-height:30px;padding:2px 7px;font-size:18px;touch-action:manipulation}.pisti-dm-body{display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto}
.pisti-dm-privacy,.pisti-dm-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
.pisti-dm-log{flex:1;min-height:64px;overflow:auto;overscroll-behavior:contain;padding:10px;display:flex;flex-direction:column;gap:7px}.pisti-dm-message{align-self:flex-start;background:#244655;border:1px solid transparent;border-radius:10px 10px 10px 2px;padding:7px 9px;max-width:86%;overflow-wrap:anywhere;white-space:pre-wrap}.pisti-dm-message.is-mine{align-self:flex-end;background:#1e645d;border-radius:10px 10px 2px 10px}.pisti-dm-message.is-new{background:#3e3520;border-color:#e4b959;color:#fff0c8;box-shadow:inset 3px 0 #e4b959}.pisti-dm-empty{color:#a9c1cc;font-size:12px}
.pisti-dm-window.has-unread{border-color:#e4b959;box-shadow:0 0 0 1px #e4b95966,0 8px 30px #0009}.pisti-dm-window.has-unread .pisti-dm-head{background:#50401d;color:#fff0c8;border-bottom-color:#9d7c35}
.pisti-dm-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:8px;border-top:1px solid #385764;flex:0 0 auto}.pisti-dm-form textarea{resize:none;min-height:40px;max-height:80px;min-width:0;color:#f4fbff;background:#091c27;border:1px solid #52717e;border-radius:8px;padding:8px;box-sizing:border-box}.pisti-dm-root .pisti-dm-send{background:#216b63;min-height:40px;font-size:12px;padding:6px 10px}
.pisti-dm-actions{display:flex;align-items:center;justify-content:space-between;padding:4px 9px 8px;gap:8px;flex:0 0 auto}.pisti-dm-actions a{color:#c3e3f3;font-size:11px}.pisti-dm-actions button{font-size:11px}.pisti-dm-confirm{margin:0 9px 9px;padding:8px;border:1px solid #cd9c67;border-radius:8px;font-size:12px;flex:0 0 auto}.pisti-dm-confirm p{margin:0 0 6px}.pisti-dm-confirm button{margin-right:5px}.pisti-dm-status{margin:4px 9px;font-size:11px;color:#f3d47c;overflow-wrap:anywhere;flex:0 0 auto}
.pisti-dm-window.is-minimized{width:220px;height:auto;min-height:0}.pisti-dm-notice{position:fixed;right:10px;bottom:50px;z-index:2001;pointer-events:auto;max-width:min(500px,calc(100vw - 36px));margin:0;background:#123444;border:1px solid #7391a0;border-radius:9px;padding:9px 12px;overflow-wrap:anywhere}.pisti-dm-inbox{position:fixed;right:10px;bottom:10px;z-index:2000;max-width:calc(100vw - 20px);max-height:min(18dvh,160px);overflow:auto;overscroll-behavior:contain;pointer-events:auto;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px}.pisti-dm-incoming{pointer-events:auto;max-width:280px;overflow-wrap:anywhere}
.pisti-dm-switcher{position:fixed;left:8px;bottom:8px;z-index:2000;display:flex;gap:4px;max-width:calc(100vw - 16px);max-height:80px;overflow:auto;pointer-events:auto;padding:3px;border-radius:8px;background:#091c27e8}.pisti-dm-root .pisti-dm-tab{white-space:nowrap;font-size:11px;padding:5px 8px}.pisti-dm-root .pisti-dm-tab.has-unread{background:#50401d;border-color:#e4b959;color:#fff0c8}
@media(max-width:600px){.pisti-dm-window{width:290px;height:310px}.pisti-dm-head,.pisti-dm-form{padding-left:7px;padding-right:7px}.pisti-dm-inbox{max-height:90px}.pisti-dm-switcher{max-width:70vw}}

.pisti-dm-root .pisti-dm-incoming.is-unread{background:#50401d;border-color:#e4b959;color:#fff0c8}
