@import "https://fonts.googleapis.com/css2?family=Forum&family=Noto+Serif:wght@400;500;600;700&display=swap&subset=cyrillic";:root{font-family:IBM Plex Sans,Segoe UI,sans-serif;line-height:1.4}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}button,input,textarea{font:inherit}.auth-page{--font-display:"Forum", "Noto Serif", "Times New Roman", Georgia, serif;--font-body:"Noto Serif", "Times New Roman", Georgia, serif;--bg-tavern:url(/uikit-auth/bg/tavern-scene.png);--texture-wood-dark:url(/uikit-auth/textures/wood_dark.png);--btn-primary:url(/uikit-auth/buttons/auth_submit_default.png);--btn-primary-pressed:url(/uikit-auth/buttons/auth_submit_pressed.png);--btn-ghost:url(/uikit-auth/buttons/btn_ghost_default.png);--btn-ghost-hover:url(/uikit-auth/buttons/btn_ghost_hover.png);--btn-ghost-pressed:url(/uikit-auth/buttons/btn_ghost_pressed.png);--btn-wood:url(/uikit-auth/buttons/btn_primary_default.png);--btn-wood-hover:url(/uikit-auth/buttons/btn_primary_hover.png);--btn-wood-pressed:url(/uikit-auth/buttons/btn_primary_pressed.png);height:100%;min-height:100vh;font-family:var(--font-body);color:#f2e6d0;background-color:#1f140d}.auth-page .tg-auth-wrap{background:radial-gradient(circle at center, transparent 30%, #000000c7), var(--bg-tavern);background-position:50%;background-repeat:no-repeat;background-size:100% 100%;place-items:center;min-height:100vh;padding:24px;display:grid;position:relative}.auth-page .tg-auth-wrap:after{content:"";pointer-events:none;background:radial-gradient(circle at 52% 20%,#ffb96124,#0000 36%),linear-gradient(#160c0838,#160c0861);position:absolute;inset:0}.auth-page .tg-auth-panel{z-index:1;background:linear-gradient(#0003, #0000008f), var(--texture-wood-dark);transform-origin:50%;background-size:cover;border:1px solid #7b512f;border-radius:16px;grid-template-rows:auto minmax(0,1fr);gap:10px;width:400px;min-height:510px;max-height:510px;padding:14px 16px 18px;display:grid;transform:scale(.975);box-shadow:inset 0 0 25px #00000080,0 10px 30px #000000b3}.auth-page .tg-auth-panel>h2{opacity:0;pointer-events:none;height:0;margin:0;overflow:hidden}.auth-page .auth-grid{background:linear-gradient(#140c08b3,#0e0906c2),radial-gradient(circle at 20% 10%,#ffc4780f,#0000 46%);border:1px solid #835634ad;border-radius:12px;gap:12px;padding:14px;display:grid}.auth-page .mode-switch{border:1px solid #865a35;border-radius:10px;justify-content:space-between;align-items:center;gap:0;height:48px;padding:0;display:flex;box-shadow:inset 0 1px #ffd59a24,inset 0 -8px 18px #00000054}.auth-page .mode-switch .korchma-button{background-image:var(--btn-ghost);color:#fff;text-shadow:0 1px 2px #000c;border-color:#78502fbf;border-radius:11px;flex:1;min-width:0;height:48px;min-height:48px}.auth-page .mode-switch .korchma-button.active{background-image:var(--btn-wood);color:#2b1d14;text-shadow:0 1px #ffe5bc73}.auth-page .mode-switch .korchma-button:hover:not(:disabled){background-image:var(--btn-ghost-hover)}.auth-page .mode-switch .korchma-button.active:hover:not(:disabled){background-image:var(--btn-wood-hover)}.auth-page .mode-switch .korchma-button:active:not(:disabled){background-image:var(--btn-ghost-pressed)}.auth-page .mode-switch .korchma-button.active:active:not(:disabled){background-image:var(--btn-wood-pressed)}.auth-page .mode-switch .auth-mode-tab:first-child,.auth-page .mode-switch .auth-mode-tab:first-child.active,.auth-page .mode-switch .auth-mode-tab:first-child:hover:not(:disabled),.auth-page .mode-switch .auth-mode-tab:first-child:active:not(:disabled){color:#fff}.auth-page .mode-switch .auth-mode-tab:last-child,.auth-page .mode-switch .auth-mode-tab:last-child.active,.auth-page .mode-switch .auth-mode-tab:last-child:hover:not(:disabled),.auth-page .mode-switch .auth-mode-tab:last-child:active:not(:disabled){color:#2b1d14}.auth-page .auth-form{gap:10px;display:grid}.auth-page .auth-form label{font-family:var(--font-body);color:#f2debc;text-shadow:0 1px 2px #00000080;gap:10px;font-size:clamp(1.02rem,1.15vw,1.12rem);font-weight:600;display:grid}.auth-page .auth-form .korchma-input{width:100%;height:48px;min-height:48px;font-family:var(--font-body);letter-spacing:.01em;color:#f6e5c8;background:linear-gradient(#2a1b11cc, #1b110adb), var(--texture-wood-dark);background-size:cover;border:1px solid #b18553b3;border-radius:12px;padding:8px 12px;font-size:1.02rem;font-weight:600;box-shadow:inset 0 1px 2px #ffe8c224,inset 0 -4px 10px #00000059}.auth-page .auth-form .korchma-input::placeholder{color:#e6caa4d6;font-weight:500}.auth-page .auth-form .korchma-input:focus{border-color:#deb77b;outline:none;box-shadow:0 0 0 2px #e6b16759,0 0 16px #e09a492e,inset 0 1px 2px #ffe8c229,inset 0 -4px 10px #00000061}.auth-page .auth-form .korchma-button{width:100%}.auth-page .auth-submit{height:48px;min-height:48px;padding-top:0;padding-bottom:0;font-size:calc(1rem + 2px)}.auth-page .korchma-button{appearance:none;white-space:nowrap;color:#f8e8ca;cursor:pointer;min-height:48px;font-family:var(--font-display);letter-spacing:.04em;text-shadow:0 1px 2px #000000d1,0 0 8px #ffc67638;background-color:#0000;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border:1px solid #8b5f37b3;border-radius:10px;justify-content:center;align-items:center;padding:10px 14px;font-weight:700;display:inline-flex;box-shadow:inset 0 1px #ffdda042,0 2px 6px #0006}.auth-page .korchma-button--primary{background-image:var(--btn-primary);color:#2f1f11;text-shadow:0 1px #ffe5bc8c;box-shadow:inset 0 2px 3px #ffffff2e,inset 0 -3px 6px #00000052,0 2px 6px #00000080}.auth-page .korchma-button--primary:active:not(:disabled){background-image:var(--btn-primary-pressed);transform:translateY(2px);box-shadow:inset 0 3px 6px #00000080}.auth-page .korchma-button--wood{background-image:var(--btn-wood);color:#2f1f11;text-shadow:0 1px #ffe5bc73}.auth-page .korchma-button--wood:hover:not(:disabled){background-image:var(--btn-wood-hover)}.auth-page .korchma-button--wood:active:not(:disabled){background-image:var(--btn-wood-pressed)}.auth-page .status{color:#ecd4b1;font-size:.95rem}.auth-page .muted{color:#dec7a3}.auth-page .token-row{border-top:1px solid #664328;justify-content:space-between;align-items:center;gap:10px;padding-top:10px;display:flex}.auth-page .auth-reset{color:#f3e4c9;text-shadow:0 1px 2px #000000bf}.chat-page{--sidebar-left:clamp(8px, 1vw, 16px);--sidebar-width:clamp(210px, 16vw, 260px);--panel-top:clamp(98px, calc(8vh + 50px), 142px);--panel-height:min(84vh, 930px);--sidebar-height:min(56vh, 620px);--chat-panel-sidebar:url(/uikit-chat/panels/sidebar_panel_a65.png);--chat-main-panel-bg:url(/uikit-chat/panels/chat_panel.png);--chat-header-panel-bg:url(/uikit-chat/panels/header_panel_custom_a85.png);--chat-messages-panel-bg:url(/uikit-chat/panels/messages_panel_custom.png);--chat-page-bg:url(/uikit-chat/bg/chat-scene.png);--chat-input-panel-bg:url(/uikit-chat/panels/input_panel_custom.png);--chat-input-texture-bg:url(/uikit-chat/textures/parchment.png);--chat-btn-attach-icon:url(/uikit-chat/icons/attach.png);--chat-btn-send-icon:url(/uikit-chat/icons/send.png);--chat-btn-logout-idle:url(/uikit-chat/icons/logout_lantern_idle.png);--chat-btn-logout-hover:url(/uikit-chat/icons/logout_lantern_hover.png);--chat-btn-clear-history:url(/uikit-chat/icons/clear_history_bucket.png);--chat-bubble-incoming:url(/korchma/bubbles/incoming.png);--chat-bubble-outgoing:url(/korchma/bubbles/outgoing.png);--chat-bubble-system:url(/korchma/bubbles/system.png);--chat-icon-online:url(/uikit-chat/icons/online.png);--chat-icon-offline:url(/uikit-chat/icons/offline.png);--chat-frame-corner-tl:url(/uikit-chat/frames/window_corner_tl.png);--chat-frame-corner-tr:url(/uikit-chat/frames/window_corner_tr.png);--chat-frame-corner-bl:url(/uikit-chat/frames/window_corner_bl.png);--chat-frame-corner-br:url(/uikit-chat/frames/window_corner_br.png);--chat-frame-edge-top:url(/uikit-chat/frames/window_edge_top.png);--chat-frame-edge-right:url(/uikit-chat/frames/window_edge_right.png);--chat-frame-edge-bottom:url(/uikit-chat/frames/window_edge_bottom.png);--chat-frame-edge-left:url(/uikit-chat/frames/window_edge_left.png);--chat-frame-size:18px;--chat-right-frame-corner-tl:url(/uikit-chat/frames/right_window_corner_tl.png);--chat-right-frame-corner-tr:url(/uikit-chat/frames/right_window_corner_tr.png);--chat-right-frame-corner-bl:url(/uikit-chat/frames/right_window_corner_bl.png);--chat-right-frame-corner-br:url(/uikit-chat/frames/right_window_corner_br.png);--chat-right-frame-edge-top:url(/uikit-chat/frames/right_window_edge_top.png);--chat-right-frame-edge-right:url(/uikit-chat/frames/right_window_edge_right.png);--chat-right-frame-edge-bottom:url(/uikit-chat/frames/right_window_edge_bottom.png);--chat-right-frame-edge-left:url(/uikit-chat/frames/right_window_edge_left.png);--chat-right-frame-size:22px;--chat-dialog-idle:url(/uikit-chat/sidebar/dialog_item_idle.png);--chat-dialog-active:url(/uikit-chat/sidebar/dialog_item_active.png);background:#1e1e1e;background-image:var(--chat-page-bg);color:#ececec;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;width:100vw;min-height:100dvh;position:relative;overflow:hidden}.chat-page .ui-wood,.chat-page .ui-parchment{background-position:50%;background-size:cover}.chat-page .ui-frame{position:relative}.chat-page .ui-frame-inner{z-index:2;position:relative}.chat-page .ui-frame:before{content:"";pointer-events:none;position:absolute;inset:0}.chat-page .chat-scene{width:100%;min-height:100vh;position:relative}.chat-page .chat-sidebar-layer{left:var(--sidebar-left);top:var(--panel-top);width:var(--sidebar-width);height:var(--sidebar-height);z-index:2;position:absolute}.chat-page .chat-sidebar-shell{background:#242424;background-image:var(--chat-panel-sidebar);background-position:50%;background-repeat:no-repeat;background-size:calc(100% - 8px) calc(100% - 8px);border:1px solid #3a3a3a;border-radius:12px;height:100%;min-height:0;overflow:hidden}.chat-page .chat-sidebar-shell:before{z-index:1;background-image:var(--chat-frame-edge-top), var(--chat-frame-edge-right), var(--chat-frame-edge-bottom), var(--chat-frame-edge-left);background-size:calc(100% - (var(--chat-frame-size) * 2)) var(--chat-frame-size), var(--chat-frame-size) calc(100% - (var(--chat-frame-size) * 2)), calc(100% - (var(--chat-frame-size) * 2)) var(--chat-frame-size), var(--chat-frame-size) calc(100% - (var(--chat-frame-size) * 2));background-position:top,100%,bottom,0;background-repeat:no-repeat}.chat-page .chat-sidebar-shell:after{content:"";pointer-events:none;z-index:1;background-image:var(--chat-frame-corner-tl), var(--chat-frame-corner-tr), var(--chat-frame-corner-bl), var(--chat-frame-corner-br);background-size:var(--chat-frame-size) var(--chat-frame-size), var(--chat-frame-size) var(--chat-frame-size), var(--chat-frame-size) var(--chat-frame-size), var(--chat-frame-size) var(--chat-frame-size);background-position:0 0,100% 0,0 100%,100% 100%;background-repeat:no-repeat;position:absolute;inset:0}.chat-page .chat-sidebar-shell .ui-frame-inner{z-index:2;height:100%;min-height:0}.chat-page .dialogs{flex-direction:column;height:100%;min-height:0;display:flex}.chat-page .dialogs-search-wrap{border-bottom:1px solid #444;padding:21px 12px 12px}.chat-page .dialogs-search{background:#2f2f2f;background-image:var(--chat-panel-sidebar);color:#2f1b10;background-position:50%;background-repeat:no-repeat;background-size:cover;border:1px solid #444;border-radius:999px;width:calc(100% - 10px);margin:0 5px;padding:9px 12px}.chat-page .dialogs-search::placeholder{color:#3a2415;opacity:1}.chat-page .dialogs-list{flex:1;grid-auto-rows:max-content;align-content:start;gap:8px;min-height:0;padding:8px;display:grid;overflow-y:auto}.chat-page .dialog-item{background:0 0;background-image:var(--chat-dialog-idle);color:#eaeaea;cursor:pointer;text-align:left;z-index:10;background-position:0 0;background-repeat:no-repeat;background-size:100% 100%;border:0;border-radius:0;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;width:calc(100% - 10px);margin:0 5px;padding:10px 12px;display:grid;position:relative}.chat-page .dialog-item.active{background:0 0;background-image:var(--chat-dialog-active);background-position:0 0;background-size:100% 100%;border-color:#666}.chat-page .dialog-avatar{color:#0000;background-color:#2e2e2e;background-repeat:no-repeat;background-size:cover;border:0;border-radius:50%;place-items:center;width:36px;height:36px;font-weight:700;display:inline-grid;overflow:hidden}.chat-page .dialog-main{min-width:0;display:grid}.chat-page .dialog-name{font-weight:600}.chat-page .dialog-sub{color:#adadad;white-space:nowrap;text-overflow:ellipsis;font-size:.9rem;overflow:hidden}.chat-page .dialog-presence-box{background-color:#0000;background-position:50%;background-repeat:no-repeat;background-size:contain;border:0;width:36px;height:36px;display:inline-block}.chat-page .dialog-presence-box.online{background-image:var(--chat-icon-online);border-color:#2f7e5a}.chat-page .dialog-presence-box.offline{background-image:var(--chat-icon-offline);border-color:#666}.chat-page .dialog-presence-box.unknown{background-image:var(--chat-icon-offline);opacity:.75;border-color:#7a6435}.chat-page .dialogs-status{color:#b2b2b2;border-top:1px solid #444;margin:0;padding:10px 12px;font-size:.9rem}.chat-page .chat-main-layer{top:var(--panel-top);left:calc(var(--sidebar-left) + var(--sidebar-width));height:var(--panel-height);z-index:1;min-height:0;display:block;position:absolute;right:clamp(12px,2vw,24px)}.chat-page .chat-window{background:0 0;border:0;border-radius:0;width:80%;min-width:0;height:100%;min-height:0;overflow:visible}.chat-page .chat-side-float-button{background:0 0;background-image:var(--chat-btn-clear-history);cursor:pointer;z-index:20;background-position:50%;background-repeat:no-repeat;background-size:contain;border:0;border-radius:0;width:50px;height:70px;padding:0;transition:transform .16s,filter .16s;position:absolute;top:auto;bottom:0;left:calc(100% + 8px)}.chat-page .chat-side-float-button:hover{filter:brightness(1.12)drop-shadow(0 0 6px #ffc66b73);transform:translateY(-3px)scale(1.04)}.chat-page .chat-side-float-button:active{filter:brightness(.96);transform:translateY(-1px)scale(.98)}.chat-page .chat-window:before{content:none;z-index:5;background-image:var(--chat-right-frame-edge-top), var(--chat-right-frame-edge-right), var(--chat-right-frame-edge-bottom), var(--chat-right-frame-edge-left);background-size:calc(100% - (var(--chat-right-frame-size) * 2)) var(--chat-right-frame-size), var(--chat-right-frame-size) calc(100% - (var(--chat-right-frame-size) * 2)), calc(100% - (var(--chat-right-frame-size) * 2)) var(--chat-right-frame-size), var(--chat-right-frame-size) calc(100% - (var(--chat-right-frame-size) * 2));background-position:top,100%,bottom,0;background-repeat:no-repeat}.chat-page .chat-window:after{content:none;pointer-events:none;z-index:6;background-image:var(--chat-right-frame-corner-tl), var(--chat-right-frame-corner-tr), var(--chat-right-frame-corner-bl), var(--chat-right-frame-corner-br);background-size:var(--chat-right-frame-size) var(--chat-right-frame-size), var(--chat-right-frame-size) var(--chat-right-frame-size), var(--chat-right-frame-size) var(--chat-right-frame-size), var(--chat-right-frame-size) var(--chat-right-frame-size);background-position:0 0,100% 0,0 100%,100% 100%;background-repeat:no-repeat;position:absolute;inset:0}.chat-page .chat-window .ui-frame-inner{grid-template-rows:auto minmax(0,1fr);gap:0;height:100%;min-height:0;padding:0;display:grid}.chat-page .chat-window-header{box-shadow:none;background:0 0;background-image:var(--chat-header-panel-bg);isolation:isolate;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border:0;border-radius:0;outline:none;padding:10px 16px 8px;position:relative}.chat-page .chat-window-header h1{color:#2f1b10;letter-spacing:.03em;text-align:center;text-shadow:0 1px #ffe5ba59;margin:0;font-family:Forum,Cinzel,Papyrus,Noto Serif,Times New Roman,serif;font-size:1.25rem;font-weight:700;transform:translateY(2px)}.chat-page .chat-window-header-top{justify-content:center;align-items:center;gap:10px;display:flex;transform:translateY(-10px)}.chat-page .chat-logout{background:0 0;background-image:var(--chat-btn-logout-idle);color:#0000;cursor:pointer;background-position:50%;background-repeat:no-repeat;background-size:contain;border:0;border-radius:0;width:54px;height:110px;padding:0;font-size:0;position:absolute;top:0;left:100%;right:auto}.chat-page .chat-logout:hover{background-image:var(--chat-btn-logout-hover)}.chat-page .chat-window-subtitle{color:#3a2415;letter-spacing:.02em;text-align:center;text-shadow:0 1px #ffe5ba40;margin:1px 0 0;font-family:Forum,Cinzel,Papyrus,Noto Serif,Times New Roman,serif;font-weight:600;transform:translateY(-12px)}.chat-page .chat-window-body{height:100%;min-height:0}.chat-page .messages-layout{grid-template-rows:minmax(0,1fr) auto;gap:5px;height:100%;min-height:0;display:grid}.chat-page .messages-window{--messages-frame-size:15px;isolation:isolate;background:0 0;border:0;height:100%;min-height:0;overflow:visible}.chat-page .messages-window:before{content:"";z-index:5;background-image:var(--chat-right-frame-edge-top), var(--chat-right-frame-edge-right), var(--chat-right-frame-edge-bottom), var(--chat-right-frame-edge-left);background-size:calc(100% - (var(--messages-frame-size) * 2)) var(--messages-frame-size), var(--messages-frame-size) calc(100% - (var(--messages-frame-size) * 2)), calc(100% - (var(--messages-frame-size) * 2)) var(--messages-frame-size), var(--messages-frame-size) calc(100% - (var(--messages-frame-size) * 2));background-position:top,100%,bottom,0;background-repeat:no-repeat}.chat-page .messages-window:after{content:"";pointer-events:none;z-index:6;background-image:var(--chat-right-frame-corner-tl), var(--chat-right-frame-corner-tr), var(--chat-right-frame-corner-bl), var(--chat-right-frame-corner-br);background-size:var(--messages-frame-size) var(--messages-frame-size), var(--messages-frame-size) var(--messages-frame-size), var(--messages-frame-size) var(--messages-frame-size), var(--messages-frame-size) var(--messages-frame-size);background-position:0 0,100% 0,0 100%,100% 100%;background-repeat:no-repeat;position:absolute;inset:0}.chat-page .messages-window .ui-frame-inner{height:100%;min-height:0;position:relative;overflow:hidden}.chat-page .messages-window .ui-frame-inner:before{content:"";z-index:1;pointer-events:none;background-image:var(--chat-messages-panel-bg);opacity:.5;background-position:50%;background-repeat:no-repeat;background-size:cover;position:absolute;inset:0}.chat-page .message-list{z-index:2;scrollbar-width:none;-ms-overflow-style:none;background:0 0;border:1px solid #c8c8c859;border-radius:0;align-content:start;gap:8px;min-height:0;padding:0 16px 8px;display:grid;position:relative;overflow-y:auto}.chat-page .message-list::-webkit-scrollbar{width:0;height:0}.chat-page .message{background:0 0;background-image:var(--chat-bubble-incoming);color:#ececec;overflow-wrap:anywhere;word-break:break-word;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border:0;border-radius:12px;justify-self:start;width:fit-content;max-width:min(74%,760px);padding:8px 10px 18px}.chat-page .message.mine{background:0 0;background-image:var(--chat-bubble-outgoing);background-position:50%;background-repeat:no-repeat;background-size:100% 100%;justify-self:end;margin-left:0}.chat-page .message-head{color:#3a2415;text-shadow:0 1px #ffe5ba33;justify-content:space-between;gap:12px;margin-bottom:4px;font-family:Forum,Cinzel,Papyrus,Noto Serif,Times New Roman,serif;font-size:.82rem;font-weight:600;display:flex}.chat-page .message-text{color:#2f1b10;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;text-shadow:0 1px #ffe5ba40;font-family:Forum,Cinzel,Papyrus,Noto Serif,Times New Roman,serif;font-size:1.08rem;font-weight:700;line-height:1.28}.chat-page .message-reply-quote{color:#4a2e1d;border-left:2px solid #492c188c;margin-bottom:6px;padding-left:8px;font-size:.9rem}.chat-page .file-message{gap:6px;display:grid}.chat-page .message-media-preview{border:1px solid #341f118c;border-radius:8px;max-width:min(100%,360px);max-height:240px;display:block}.chat-page .file-link{color:#2f1b10;cursor:pointer;background:0 0;border:2px solid #4b2d18;border-radius:8px;justify-self:start;padding:6px 10px;font-weight:700}.chat-page .mention-token{color:#5d2f12;font-weight:700}.chat-page .message-link{color:#3d2210;text-underline-offset:2px;word-break:break-all;text-decoration:underline}.chat-page .message-link:hover{color:#5a3218}.chat-page .message-edit-row{grid-template-columns:minmax(0,1fr) auto auto;gap:6px;margin-top:6px;display:grid}.chat-page .message-reactions{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.chat-page .message-reaction-chip{color:#2f1b10;cursor:pointer;background:#ffeecdb3;border:1px solid #492c18a6;border-radius:999px;align-items:center;gap:5px;padding:2px 8px;font-size:.82rem;display:inline-flex}.chat-page .message-reaction-chip.active{background:#ffe6afe6;border-color:#5f3a1ce6}.chat-page .message-edit-row input{color:#2f1b10;background:#fff6e3d9;border:1px solid #492c18b3;border-radius:6px;padding:5px 8px}.chat-page .message-edit-row button{color:#2f1b10;cursor:pointer;background:#ffe8c0d9;border:1px solid #492c18b3;border-radius:6px;padding:4px 8px}.chat-page .message-footer{justify-content:flex-end;align-items:center;gap:10px;margin-top:4px;display:flex}.chat-page .muted{color:#5f4129;font-size:.78rem}.chat-page .message-status{color:#3b2416;text-transform:lowercase;font-size:.72rem;font-weight:600}.chat-page .typing-indicator{color:#3f2818;margin:2px 0 0;font-size:.84rem;font-style:italic}.message-context-menu{z-index:10000;background:#f2dab2fa;border:1px solid #482b18db;border-radius:8px;gap:4px;min-width:170px;padding:6px;display:grid;position:fixed;box-shadow:0 8px 18px #140a0573}.message-context-menu button{color:#2f1b10;text-align:left;cursor:pointer;background:#ffeecdf2;border:1px solid #56361cc2;border-radius:6px;padding:6px 8px}.message-context-menu button:hover{background:#fff7e1f5}.message-context-menu .context-reactions{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;display:grid}.message-context-menu .reaction-pick{text-align:center;padding:6px 0}.chat-page .input-window{isolation:isolate;background:0 0;border:0;border-radius:0;flex:none;margin:0;position:relative;overflow:visible}.chat-page .input-window .ui-frame-inner{padding:8px 16px 16px}.chat-page .input-area{box-shadow:none;background:0 0;border:0;position:relative}.chat-page .input-main{z-index:2;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 10px;display:grid;position:relative}.chat-page .input-field-wrap{min-width:0;position:relative}.chat-page .input-field-wrap.with-reply .input-field{padding-top:30px}.chat-page .reply-inline{z-index:3;color:#ffffffeb;align-items:center;gap:6px;min-width:0;font-size:.75rem;display:flex;position:absolute;top:5px;left:12px;right:10px}.chat-page .reply-inline-label{opacity:.85;flex:none}.chat-page .reply-inline-text{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}.chat-page .reply-inline-close{color:#ffffffeb;cursor:pointer;background:0 0;border:0;margin-left:auto;font-size:1rem;line-height:1}.chat-page .input-attach,.chat-page .input-send{color:#0000;cursor:pointer;background-color:#fff2da4d;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border:1px solid #6a4a2f;border-radius:10px;width:42px;height:42px;padding:0;font-size:0}.chat-page .input-attach{background-image:var(--chat-btn-attach-icon);min-width:42px}.chat-page .input-send{background-image:var(--chat-btn-send-icon);width:84px;min-width:84px}.chat-page .input-field{color:#fff;resize:none;scrollbar-width:none;-ms-overflow-style:none;background:0 0;border:2px solid #f2dfb4;border-radius:10px;outline:none;width:100%;min-width:0;height:42px;padding:10px 12px;font-family:Forum,Cinzel,Papyrus,Noto Serif,Times New Roman,serif;font-weight:600;line-height:1.3;display:block;overflow-y:hidden;box-shadow:inset 0 0 0 1px #3e1f0ce0,0 0 0 1px #00000094}.chat-page .input-field::placeholder{color:#ffffffb8}.chat-page .input-field::-webkit-scrollbar{width:0;height:0}.chat-page .file-picker-input{display:none}.chat-page .input-file-status{z-index:2;margin:0;font-size:.82rem;position:relative}.chat-page .input-file-error{z-index:2;color:#e06d6d;margin:0;font-size:.82rem;position:relative}.chat-page .dialogs-list{scrollbar-width:none;-ms-overflow-style:none}.chat-page .dialogs-list::-webkit-scrollbar{width:0;height:0}@media (width<=1200px){.chat-page .chat-sidebar-layer{--sidebar-width:clamp(200px, 18vw, 240px)}.chat-page .chat-main-layer{right:12px}}@media (width<=980px){.chat-page .chat-sidebar-layer{width:auto;height:38vh;margin:12px;position:static}.chat-page .chat-main-layer{height:auto;min-height:0;margin:0 12px 12px;position:static}.chat-page .chat-window{width:100%;min-width:0;height:56vh}}
