:root {
  --color-primary: #3390EC;
  --color-primary-opacity: #50A2E91E;
  --color-primary-opacity-hover: #50A2E940;
  --color-primary-tint: #3390ec1a;
  --color-primary-shade: #4a95d6;
  --color-primary-shade-darker: #2b79c6;
  --color-background: #FFFFFF;
  --color-background-compact-menu: #FFFFFFBB;
  --color-web-app-browser: #FFFFFFBB;
  --color-background-compact-menu-reactions: #FFFFFFEB;
  --color-background-compact-menu-hover: #00000011;
  --color-background-secondary: #F4F4F5;
  --color-background-secondary-accent: #E4E4E5;
  --color-background-sidebar: #E4E4E5;
  --color-background-own: #E1FFC7;
  --color-background-selected: #F4F4F5;
  --color-background-own-selected: #d0ffac;
  --color-chat-hover: #F4F4F5;
  --color-chat-active: #3390EC;
  --color-chat-active-greyed: #60a7f0;
  --color-item-hover: #F4F4F5;
  --color-item-active: #EDEDED;
  --color-text: #000000;
  --color-text-own: #000000;
  --color-text-secondary-own: #707579;
  --color-text-secondary: #707579;
  --color-icon-secondary: #707579;
  --color-text-secondary-apple: #8E8E92;
  --color-borders: #DADCE0;
  --color-borders-input: #DADCE0;
  --color-dividers: #C8C6CC;
  --color-dividers-android: #E7E7E7;
  --color-links: #3390EC;
  --color-gray: #C4C9CC;
  --color-list-icon: #ABAFB1;
  --color-default-shadow: #72727240;
  --color-light-shadow: #7272722B;
  --color-active: #00C73E;
  --color-active-darker: #00a734;
  --color-green: #00C73E;
  --color-green-darker: #00A734;
  --color-success: #00C73E;
  --color-text-meta-colored: #4DCD5E;
  --color-reply-hover: #F4F4F4;
  --color-reply-active: #E8E9E9;
  --color-reply-own-hover: #CFF5B8;
  --color-reply-own-active: #BEECAA;
  --color-accent-own: #45AF54;
  --color-message-meta-own: #4FAE4EFF;
  --color-poll-check-own: #FFFFFF;
  --color-own-links: #3390EC;
  --color-code: #4a729a;
  --color-code-own: #3c7940;
  --color-code-bg: #70757914;
  --color-code-own-bg: #70757914;
  --color-composer-button: #000000;
  --color-message-reaction: #ebf3fd;
  --color-message-reaction-hover: #c5def9;
  --color-message-reaction-own: #c6eab2;
  --color-message-reaction-hover-own: #b5e0a4;
  --color-message-reaction-chosen-hover: #1a82ea;
  --color-message-reaction-chosen-hover-own: #3f9d4b;
  --color-message-non-contact: #cceebf;
  --color-voice-transcribe-button: #e8f3ff;
  --color-voice-transcribe-button-own: #cceebf;
  --color-topic-blue: #2F7772;
  --color-topic-yellow: #7F693B;
  --color-topic-violet: #8B5A96;
  --color-topic-green: #44774A;
  --color-topic-rose: #9B576B;
  --color-topic-red: #EB6858;
  --color-topic-grey: #6C6C6C;
  --color-forum-unread-topic-hover: #e9e9e9;
  --color-forum-hover-unread-topic-hover: #e2e2e2;
  --color-chat-username: #3C7EB0;
  --color-borders-read-story: #C4C9CC;
  --color-background-menu-separator: #0000001a;
  --color-web-app-placeholder: #EFEFF4;
  --color-hover-overlay: #00000006;
  --color-toast-background: #202020CC;
}
[data-theme="dark"] {
  --color-primary: #8774E1;
  --color-primary-opacity: #8378DB1E;
  --color-primary-opacity-hover: #8378DB40;
  --color-primary-tint: #8774e11a;
  --color-primary-shade: #7b71c6;
  --color-primary-shade-darker: #7161bd;
  --color-background: #212121;
  --color-background-compact-menu: #212121DD;
  --color-web-app-browser: #0303038F;
  --color-background-compact-menu-reactions: #212121DD;
  --color-background-compact-menu-hover: #00000066;
  --color-background-secondary: #0F0F0F;
  --color-background-secondary-accent: #191919;
  --color-background-sidebar: #0F0F0F;
  --color-background-own: #766AC8;
  --color-background-selected: #2C2C2C;
  --color-background-own-selected: #6549d4;
  --color-chat-hover: #2C2C2C;
  --color-chat-active: #766AC8;
  --color-chat-active-greyed: #9288d3;
  --color-item-hover: #2C2C2C;
  --color-item-active: #292929;
  --color-text: #FFFFFF;
  --color-text-own: #FFFFFF;
  --color-text-secondary-own: #AAAAAA;
  --color-text-secondary: #AAAAAA;
  --color-icon-secondary: #AAAAAA;
  --color-text-secondary-apple: #AAAAAA;
  --color-borders: #303030;
  --color-borders-input: #5B5B5A;
  --color-dividers: #3B3B3D;
  --color-dividers-android: #0F0F0F;
  --color-links: #8774E1;
  --color-gray: #717579;
  --color-list-icon: #A2A2A2;
  --color-default-shadow: #1010109c;
  --color-light-shadow: #00000040;
  --color-active: #8774E1;
  --color-active-darker: #7b71c6;
  --color-green: #00C73E;
  --color-green-darker: #00A734;
  --color-success: #00C73E;
  --color-text-meta-colored: #8378DB;
  --color-reply-hover: #272727;
  --color-reply-active: #2E2F2F;
  --color-reply-own-hover: #8775DA;
  --color-reply-own-active: #917DEA;
  --color-accent-own: #FFFFFF;
  --color-message-meta-own: #FFFFFF88;
  --color-poll-check-own: #766AC8;
  --color-own-links: #FFFFFF;
  --color-code: #8774E1;
  --color-code-own: #FFFFFF;
  --color-code-bg: #00000080;
  --color-code-own-bg: #00000050;
  --color-composer-button: #FFFFFF;
  --color-message-reaction: #2b2a35;
  --color-message-reaction-hover: #343147;
  --color-message-reaction-own: #675CAF;
  --color-message-reaction-hover-own: #5B529B;
  --color-message-reaction-chosen-hover: #7864dd;
  --color-message-reaction-chosen-hover-own: #f5f5f5;
  --color-message-non-contact: #AAAAAA;
  --color-voice-transcribe-button: #2a2a3c;
  --color-voice-transcribe-button-own: #8373d3;
  --color-topic-blue: #6ff9f0;
  --color-topic-yellow: #ffd67e;
  --color-topic-violet: #cb86db;
  --color-topic-green: #8eee98;
  --color-topic-rose: #ff93b2;
  --color-topic-red: #fb6f5f;
  --color-topic-grey: #999999;
  --color-forum-unread-topic-hover: #363636;
  --color-forum-hover-unread-topic-hover: #3f3f3f;
  --color-chat-username: #E9EEF4;
  --color-borders-read-story: #737373;
  --color-background-menu-separator: #ffffff1a;
  --color-web-app-placeholder: #333334;
  --color-hover-overlay: #ffffff06;
  --color-toast-background: #000000CC;
}
.icon-2fa-filled::before { content: "\f101"; }
.icon-account-filled::before { content: "\f102"; }
.icon-add::before { content: "\f103"; }
.icon-add-caption::before { content: "\f104"; }
.icon-add-filled::before { content: "\f105"; }
.icon-add-music::before { content: "\f106"; }
.icon-add-user::before { content: "\f107"; }
.icon-add-user-filled::before { content: "\f108"; }
.icon-admin::before { content: "\f109"; }
.icon-ai::before { content: "\f10a"; }
.icon-ai-edit::before { content: "\f10b"; }
.icon-ai-fix::before { content: "\f10c"; }
.icon-allow-share::before { content: "\f10d"; }
.icon-allow-speak::before { content: "\f10e"; }
.icon-animals::before { content: "\f10f"; }
.icon-animations::before { content: "\f110"; }
.icon-animations-filled::before { content: "\f111"; }
.icon-appearance-filled::before { content: "\f112"; }
.icon-archive::before { content: "\f113"; }
.icon-archive-filled::before { content: "\f114"; }
.icon-archive-from-main::before { content: "\f115"; }
.icon-archive-to-main::before { content: "\f116"; }
.icon-arrow-down::before { content: "\f117"; }
.icon-arrow-down-circle::before { content: "\f118"; }
.icon-arrow-left::before { content: "\f119"; }
.icon-arrow-right::before { content: "\f11a"; }
.icon-arrow-up-circle-filled::before { content: "\f11b"; }
.icon-article::before { content: "\f11c"; }
.icon-aspect-1-1::before { content: "\f11d"; }
.icon-aspect-16-9::before { content: "\f11e"; }
.icon-aspect-2-3::before { content: "\f11f"; }
.icon-aspect-3-2::before { content: "\f120"; }
.icon-aspect-3-4::before { content: "\f121"; }
.icon-aspect-4-3::before { content: "\f122"; }
.icon-aspect-4-5::before { content: "\f123"; }
.icon-aspect-5-4::before { content: "\f124"; }
.icon-aspect-5-7::before { content: "\f125"; }
.icon-aspect-7-5::before { content: "\f126"; }
.icon-aspect-9-16::before { content: "\f127"; }
.icon-attach::before { content: "\f128"; }
.icon-auction::before { content: "\f129"; }
.icon-auction-drop::before { content: "\f12a"; }
.icon-auction-filled::before { content: "\f12b"; }
.icon-auction-next-round::before { content: "\f12c"; }
.icon-author-hidden::before { content: "\f12d"; }
.icon-auto-delete-clock::before { content: "\f12e"; }
.icon-auto-delete-empty::before { content: "\f12f"; }
.icon-avatar-deleted-account::before { content: "\f130"; }
.icon-birthday-filled::before { content: "\f131"; }
.icon-bitcoin::before { content: "\f132"; }
.icon-block-filled::before { content: "\f133"; }
.icon-blockchain-verified::before { content: "\f134"; }
.icon-blockquote::before { content: "\f135"; }
.icon-bold::before { content: "\f136"; }
.icon-bolt::before { content: "\f137"; }
.icon-boost::before { content: "\f138"; }
.icon-boost-craft-chance::before { content: "\f139"; }
.icon-boost-outline::before { content: "\f13a"; }
.icon-boostcircle::before { content: "\f13b"; }
.icon-boosts::before { content: "\f13c"; }
.icon-bot-command::before { content: "\f13d"; }
.icon-bot-commands-filled::before { content: "\f13e"; }
.icon-bot-keyboard::before { content: "\f13f"; }
.icon-bots::before { content: "\f140"; }
.icon-brush::before { content: "\f141"; }
.icon-bug::before { content: "\f142"; }
.icon-bullet-list::before { content: "\f143"; }
.icon-button::before { content: "\f144"; }
.icon-calendar::before { content: "\f145"; }
.icon-camera::before { content: "\f146"; }
.icon-camera-add::before { content: "\f147"; }
.icon-car::before { content: "\f148"; }
.icon-card::before { content: "\f149"; }
.icon-card-alt::before { content: "\f14a"; }
.icon-card-arrow::before { content: "\f14b"; }
.icon-card-crossed::before { content: "\f14c"; }
.icon-card-star::before { content: "\f14d"; }
.icon-carousel::before { content: "\f14e"; }
.icon-cash-circle::before { content: "\f14f"; }
.icon-cash-circle-filled::before { content: "\f150"; }
.icon-channel::before { content: "\f151"; }
.icon-chat-badge::before { content: "\f152"; }
.icon-chats-badge::before { content: "\f153"; }
.icon-check::before { content: "\f154"; }
.icon-check-filled::before { content: "\f155"; }
.icon-choice-selected::before { content: "\f156"; }
.icon-clear-formatting::before { content: "\f157"; }
.icon-clock::before { content: "\f158"; }
.icon-clock-edit::before { content: "\f159"; }
.icon-clock-filled::before { content: "\f15a"; }
.icon-close::before { content: "\f15b"; }
.icon-close-circle::before { content: "\f15c"; }
.icon-cloud-download::before { content: "\f15d"; }
.icon-code::before { content: "\f15e"; }
.icon-collage::before { content: "\f15f"; }
.icon-collapse::before { content: "\f160"; }
.icon-collapse-modal::before { content: "\f161"; }
.icon-colorize::before { content: "\f162"; }
.icon-combine-craft::before { content: "\f163"; }
.icon-comments::before { content: "\f164"; }
.icon-copy::before { content: "\f165"; }
.icon-copy-media::before { content: "\f166"; }
.icon-craft::before { content: "\f167"; }
.icon-crop::before { content: "\f168"; }
.icon-crown-take-off::before { content: "\f169"; }
.icon-crown-take-off-outline::before { content: "\f16a"; }
.icon-crown-wear::before { content: "\f16b"; }
.icon-crown-wear-outline::before { content: "\f16c"; }
.icon-darkmode::before { content: "\f16d"; }
.icon-data::before { content: "\f16e"; }
.icon-delete::before { content: "\f16f"; }
.icon-delete-left::before { content: "\f170"; }
.icon-delete-user::before { content: "\f171"; }
.icon-details-block::before { content: "\f172"; }
.icon-device-android::before { content: "\f173"; }
.icon-device-apple::before { content: "\f174"; }
.icon-device-linux::before { content: "\f175"; }
.icon-device-ubuntu::before { content: "\f176"; }
.icon-device-unknown::before { content: "\f177"; }
.icon-device-weba::before { content: "\f178"; }
.icon-device-webk::before { content: "\f179"; }
.icon-device-windows::before { content: "\f17a"; }
.icon-devices-filled::before { content: "\f17b"; }
.icon-diamond::before { content: "\f17c"; }
.icon-direct::before { content: "\f17d"; }
.icon-document::before { content: "\f17e"; }
.icon-double-badge::before { content: "\f17f"; }
.icon-down::before { content: "\f180"; }
.icon-download::before { content: "\f181"; }
.icon-dropdown-arrows::before { content: "\f182"; }
.icon-earnings::before { content: "\f183"; }
.icon-eats::before { content: "\f184"; }
.icon-edit::before { content: "\f185"; }
.icon-email::before { content: "\f186"; }
.icon-enter::before { content: "\f187"; }
.icon-eraser::before { content: "\f188"; }
.icon-expand::before { content: "\f189"; }
.icon-expand-modal::before { content: "\f18a"; }
.icon-eye::before { content: "\f18b"; }
.icon-eye-crossed::before { content: "\f18c"; }
.icon-eye-crossed-outline::before { content: "\f18d"; }
.icon-eye-outline::before { content: "\f18e"; }
.icon-file-badge::before { content: "\f18f"; }
.icon-flag::before { content: "\f190"; }
.icon-flag-filled::before { content: "\f191"; }
.icon-flip::before { content: "\f192"; }
.icon-folder::before { content: "\f193"; }
.icon-folder-filled::before { content: "\f194"; }
.icon-folder-tabs-bot::before { content: "\f195"; }
.icon-folder-tabs-chats::before { content: "\f196"; }
.icon-footer::before { content: "\f197"; }
.icon-formula::before { content: "\f198"; }
.icon-forums::before { content: "\f199"; }
.icon-forward::before { content: "\f19a"; }
.icon-fragment::before { content: "\f19b"; }
.icon-frozen-time::before { content: "\f19c"; }
.icon-fullscreen::before { content: "\f19d"; }
.icon-gifs::before { content: "\f19e"; }
.icon-gift::before { content: "\f19f"; }
.icon-gift-filled::before { content: "\f1a0"; }
.icon-gift-transfer-inline::before { content: "\f1a1"; }
.icon-gram::before { content: "\f1a2"; }
.icon-gram-filled::before { content: "\f1a3"; }
.icon-gram-outline::before { content: "\f1a4"; }
.icon-group::before { content: "\f1a5"; }
.icon-group-filled::before { content: "\f1a6"; }
.icon-grouped::before { content: "\f1a7"; }
.icon-grouped-disable::before { content: "\f1a8"; }
.icon-hamburger::before { content: "\f1a9"; }
.icon-hand-stop::before { content: "\f1aa"; }
.icon-hand-stop-filled::before { content: "\f1ab"; }
.icon-hashtag::before { content: "\f1ac"; }
.icon-hd-photo::before { content: "\f1ad"; }
.icon-heading::before { content: "\f1ae"; }
.icon-heading-1::before { content: "\f1af"; }
.icon-heading-2::before { content: "\f1b0"; }
.icon-heading-3::before { content: "\f1b1"; }
.icon-heading-4::before { content: "\f1b2"; }
.icon-heading-5::before { content: "\f1b3"; }
.icon-heading-6::before { content: "\f1b4"; }
.icon-heart::before { content: "\f1b5"; }
.icon-heart-outline::before { content: "\f1b6"; }
.icon-help::before { content: "\f1b7"; }
.icon-help-filled::before { content: "\f1b8"; }
.icon-info::before { content: "\f1b9"; }
.icon-info-filled::before { content: "\f1ba"; }
.icon-install::before { content: "\f1bb"; }
.icon-italic::before { content: "\f1bc"; }
.icon-key::before { content: "\f1bd"; }
.icon-key-filled::before { content: "\f1be"; }
.icon-keyboard::before { content: "\f1bf"; }
.icon-keyboard-filled::before { content: "\f1c0"; }
.icon-lamp::before { content: "\f1c1"; }
.icon-language::before { content: "\f1c2"; }
.icon-link::before { content: "\f1c3"; }
.icon-link-badge::before { content: "\f1c4"; }
.icon-link-broken::before { content: "\f1c5"; }
.icon-list::before { content: "\f1c6"; }
.icon-location::before { content: "\f1c7"; }
.icon-location-filled::before { content: "\f1c8"; }
.icon-lock::before { content: "\f1c9"; }
.icon-lock-crossed::before { content: "\f1ca"; }
.icon-lock-filled::before { content: "\f1cb"; }
.icon-logout::before { content: "\f1cc"; }
.icon-loop::before { content: "\f1cd"; }
.icon-mark::before { content: "\f1ce"; }
.icon-market::before { content: "\f1cf"; }
.icon-media::before { content: "\f1d0"; }
.icon-media-add::before { content: "\f1d1"; }
.icon-media-crossed::before { content: "\f1d2"; }
.icon-megaphone-filled::before { content: "\f1d3"; }
.icon-mention::before { content: "\f1d4"; }
.icon-mention-filled::before { content: "\f1d5"; }
.icon-message::before { content: "\f1d6"; }
.icon-message-failed::before { content: "\f1d7"; }
.icon-message-pending::before { content: "\f1d8"; }
.icon-message-read::before { content: "\f1d9"; }
.icon-microphone::before { content: "\f1da"; }
.icon-microphone-outline::before { content: "\f1db"; }
.icon-monospace::before { content: "\f1dc"; }
.icon-more::before { content: "\f1dd"; }
.icon-move-caption-down::before { content: "\f1de"; }
.icon-move-caption-up::before { content: "\f1df"; }
.icon-move-to-gifts::before { content: "\f1e0"; }
.icon-move-to-wallet::before { content: "\f1e1"; }
.icon-music::before { content: "\f1e2"; }
.icon-music-note::before { content: "\f1e3"; }
.icon-mute::before { content: "\f1e4"; }
.icon-muted::before { content: "\f1e5"; }
.icon-my-notes::before { content: "\f1e6"; }
.icon-new-chat-filled::before { content: "\f1e7"; }
.icon-new-send::before { content: "\f1e8"; }
.icon-next::before { content: "\f1e9"; }
.icon-next-link::before { content: "\f1ea"; }
.icon-no-download::before { content: "\f1eb"; }
.icon-no-fees::before { content: "\f1ec"; }
.icon-no-share::before { content: "\f1ed"; }
.icon-nochannel::before { content: "\f1ee"; }
.icon-non-contacts::before { content: "\f1ef"; }
.icon-note::before { content: "\f1f0"; }
.icon-note-filled::before { content: "\f1f1"; }
.icon-notifications-filled::before { content: "\f1f2"; }
.icon-numbered-list::before { content: "\f1f3"; }
.icon-one-filled::before { content: "\f1f4"; }
.icon-open-in-new-tab::before { content: "\f1f5"; }
.icon-order::before { content: "\f1f6"; }
.icon-palette::before { content: "\f1f7"; }
.icon-palette-crossed::before { content: "\f1f8"; }
.icon-paste::before { content: "\f1f9"; }
.icon-pause::before { content: "\f1fa"; }
.icon-pause-circle::before { content: "\f1fb"; }
.icon-permissions::before { content: "\f1fc"; }
.icon-phone::before { content: "\f1fd"; }
.icon-phone-discard::before { content: "\f1fe"; }
.icon-phone-filled::before { content: "\f1ff"; }
.icon-piechart-filled::before { content: "\f200"; }
.icon-pin::before { content: "\f201"; }
.icon-pin-filled::before { content: "\f202"; }
.icon-pin-list::before { content: "\f203"; }
.icon-pip::before { content: "\f204"; }
.icon-play::before { content: "\f205"; }
.icon-play-story::before { content: "\f206"; }
.icon-poll::before { content: "\f207"; }
.icon-poll-badge::before { content: "\f208"; }
.icon-previous::before { content: "\f209"; }
.icon-previous-link::before { content: "\f20a"; }
.icon-privacy-policy::before { content: "\f20b"; }
.icon-privacy-policy-filled::before { content: "\f20c"; }
.icon-profile-music::before { content: "\f20d"; }
.icon-proof-of-ownership::before { content: "\f20e"; }
.icon-pullquote::before { content: "\f20f"; }
.icon-quote::before { content: "\f210"; }
.icon-quote-close::before { content: "\f211"; }
.icon-quote-open::before { content: "\f212"; }
.icon-radial-badge::before { content: "\f213"; }
.icon-rating-icons-level1::before { content: "\f214"; }
.icon-rating-icons-level10::before { content: "\f215"; }
.icon-rating-icons-level2::before { content: "\f216"; }
.icon-rating-icons-level20::before { content: "\f217"; }
.icon-rating-icons-level3::before { content: "\f218"; }
.icon-rating-icons-level30::before { content: "\f219"; }
.icon-rating-icons-level4::before { content: "\f21a"; }
.icon-rating-icons-level40::before { content: "\f21b"; }
.icon-rating-icons-level5::before { content: "\f21c"; }
.icon-rating-icons-level50::before { content: "\f21d"; }
.icon-rating-icons-level6::before { content: "\f21e"; }
.icon-rating-icons-level60::before { content: "\f21f"; }
.icon-rating-icons-level7::before { content: "\f220"; }
.icon-rating-icons-level70::before { content: "\f221"; }
.icon-rating-icons-level8::before { content: "\f222"; }
.icon-rating-icons-level80::before { content: "\f223"; }
.icon-rating-icons-level9::before { content: "\f224"; }
.icon-rating-icons-level90::before { content: "\f225"; }
.icon-rating-icons-negative::before { content: "\f226"; }
.icon-readchats::before { content: "\f227"; }
.icon-record-dot::before { content: "\f228"; }
.icon-record-play::before { content: "\f229"; }
.icon-redo::before { content: "\f22a"; }
.icon-reload::before { content: "\f22b"; }
.icon-reload-arrows::before { content: "\f22c"; }
.icon-remove::before { content: "\f22d"; }
.icon-remove-music::before { content: "\f22e"; }
.icon-remove-quote::before { content: "\f22f"; }
.icon-reopen-topic::before { content: "\f230"; }
.icon-reorder-tabs::before { content: "\f231"; }
.icon-repeat::before { content: "\f232"; }
.icon-repeat-one::before { content: "\f233"; }
.icon-repeat-order::before { content: "\f234"; }
.icon-repeat-shuffle::before { content: "\f235"; }
.icon-replace::before { content: "\f236"; }
.icon-replace-round::before { content: "\f237"; }
.icon-replies::before { content: "\f238"; }
.icon-reply::before { content: "\f239"; }
.icon-reply-filled::before { content: "\f23a"; }
.icon-revenue-split::before { content: "\f23b"; }
.icon-revote::before { content: "\f23c"; }
.icon-rotate::before { content: "\f23d"; }
.icon-round-video::before { content: "\f23e"; }
.icon-save-story::before { content: "\f23f"; }
.icon-saved-messages::before { content: "\f240"; }
.icon-saved-messages-filled::before { content: "\f241"; }
.icon-schedule::before { content: "\f242"; }
.icon-sd-photo::before { content: "\f243"; }
.icon-search::before { content: "\f244"; }
.icon-select::before { content: "\f245"; }
.icon-select-filled::before { content: "\f246"; }
.icon-sell::before { content: "\f247"; }
.icon-sell-outline::before { content: "\f248"; }
.icon-send::before { content: "\f249"; }
.icon-send-outline::before { content: "\f24a"; }
.icon-settings::before { content: "\f24b"; }
.icon-settings-filled::before { content: "\f24c"; }
.icon-share-filled::before { content: "\f24d"; }
.icon-share-screen::before { content: "\f24e"; }
.icon-share-screen-stop::before { content: "\f24f"; }
.icon-show-message::before { content: "\f250"; }
.icon-shuffle::before { content: "\f251"; }
.icon-sidebar::before { content: "\f252"; }
.icon-skip-next::before { content: "\f253"; }
.icon-skip-previous::before { content: "\f254"; }
.icon-smallscreen::before { content: "\f255"; }
.icon-smile::before { content: "\f256"; }
.icon-smile-filled::before { content: "\f257"; }
.icon-sort-by-date::before { content: "\f258"; }
.icon-sort-by-number::before { content: "\f259"; }
.icon-sort-by-price::before { content: "\f25a"; }
.icon-speaker::before { content: "\f25b"; }
.icon-speaker-muted-story::before { content: "\f25c"; }
.icon-speaker-story::before { content: "\f25d"; }
.icon-spoiler::before { content: "\f25e"; }
.icon-spoiler-disable::before { content: "\f25f"; }
.icon-spoiler-text::before { content: "\f260"; }
.icon-sport::before { content: "\f261"; }
.icon-star::before { content: "\f262"; }
.icon-star-crossed::before { content: "\f263"; }
.icon-star-outline::before { content: "\f264"; }
.icon-star-regular::before { content: "\f265"; }
.icon-star-regular-filled::before { content: "\f266"; }
.icon-stars-filled::before { content: "\f267"; }
.icon-stars-lock::before { content: "\f268"; }
.icon-stars-refund::before { content: "\f269"; }
.icon-stats::before { content: "\f26a"; }
.icon-stealth-future::before { content: "\f26b"; }
.icon-stealth-past::before { content: "\f26c"; }
.icon-stickers::before { content: "\f26d"; }
.icon-stop::before { content: "\f26e"; }
.icon-stop-raising-hand::before { content: "\f26f"; }
.icon-stop-square::before { content: "\f270"; }
.icon-story-caption::before { content: "\f271"; }
.icon-story-expired::before { content: "\f272"; }
.icon-story-priority::before { content: "\f273"; }
.icon-story-reply::before { content: "\f274"; }
.icon-strikethrough::before { content: "\f275"; }
.icon-subscript::before { content: "\f276"; }
.icon-superscript::before { content: "\f277"; }
.icon-support-filled::before { content: "\f278"; }
.icon-table::before { content: "\f279"; }
.icon-table-align-bottom::before { content: "\f27a"; }
.icon-table-align-center::before { content: "\f27b"; }
.icon-table-align-left::before { content: "\f27c"; }
.icon-table-align-middle::before { content: "\f27d"; }
.icon-table-align-right::before { content: "\f27e"; }
.icon-table-align-top::before { content: "\f27f"; }
.icon-table-borderless::before { content: "\f280"; }
.icon-table-compact::before { content: "\f281"; }
.icon-table-delete::before { content: "\f282"; }
.icon-table-fill::before { content: "\f283"; }
.icon-table-insert-above::before { content: "\f284"; }
.icon-table-insert-below::before { content: "\f285"; }
.icon-table-insert-left::before { content: "\f286"; }
.icon-table-insert-right::before { content: "\f287"; }
.icon-table-merge-horizontal::before { content: "\f288"; }
.icon-table-merge-vertical::before { content: "\f289"; }
.icon-table-move-left::before { content: "\f28a"; }
.icon-table-move-right::before { content: "\f28b"; }
.icon-table-split-horizontal::before { content: "\f28c"; }
.icon-table-split-vertical::before { content: "\f28d"; }
.icon-table-striped::before { content: "\f28e"; }
.icon-tag::before { content: "\f28f"; }
.icon-tag-crossed::before { content: "\f290"; }
.icon-tag-filter::before { content: "\f291"; }
.icon-tag-name::before { content: "\f292"; }
.icon-task-list::before { content: "\f293"; }
.icon-text::before { content: "\f294"; }
.icon-timer::before { content: "\f295"; }
.icon-timer-filled::before { content: "\f296"; }
.icon-timer-off::before { content: "\f297"; }
.icon-toncoin::before { content: "\f298"; }
.icon-tone::before { content: "\f299"; }
.icon-tools::before { content: "\f29a"; }
.icon-topic-new::before { content: "\f29b"; }
.icon-trade::before { content: "\f29c"; }
.icon-transcribe::before { content: "\f29d"; }
.icon-truck::before { content: "\f29e"; }
.icon-unarchive::before { content: "\f29f"; }
.icon-underlined::before { content: "\f2a0"; }
.icon-understood::before { content: "\f2a1"; }
.icon-undo::before { content: "\f2a2"; }
.icon-unique-profile::before { content: "\f2a3"; }
.icon-unlist::before { content: "\f2a4"; }
.icon-unlist-outline::before { content: "\f2a5"; }
.icon-unlock::before { content: "\f2a6"; }
.icon-unlock-filled::before { content: "\f2a7"; }
.icon-unmute::before { content: "\f2a8"; }
.icon-unpin::before { content: "\f2a9"; }
.icon-unread::before { content: "\f2aa"; }
.icon-up::before { content: "\f2ab"; }
.icon-user::before { content: "\f2ac"; }
.icon-user-filled::before { content: "\f2ad"; }
.icon-user-online::before { content: "\f2ae"; }
.icon-user-stars::before { content: "\f2af"; }
.icon-user-tag::before { content: "\f2b0"; }
.icon-video::before { content: "\f2b1"; }
.icon-video-outlined::before { content: "\f2b2"; }
.icon-video-stop::before { content: "\f2b3"; }
.icon-view-once::before { content: "\f2b4"; }
.icon-voice-chat::before { content: "\f2b5"; }
.icon-volume-1::before { content: "\f2b6"; }
.icon-volume-2::before { content: "\f2b7"; }
.icon-walt::before { content: "\f2b8"; }
.icon-warning::before { content: "\f2b9"; }
.icon-warning-filled::before { content: "\f2ba"; }
.icon-web::before { content: "\f2bb"; }
.icon-web-filled::before { content: "\f2bc"; }
.icon-webapp::before { content: "\f2bd"; }
.icon-word-wrap::before { content: "\f2be"; }
.icon-zoom-in::before { content: "\f2bf"; }
.icon-zoom-out::before { content: "\f2c0"; }
:root {
    --border-radius-button: 1.75rem;
    --border-radius-modal: 2rem;
    --border-radius-menu: 1rem;
    --border-radius-list-item: 1rem;
    --border-radius-island: 1.5rem;
    --border-radius-pane: 1.5rem;
    --shadow-island: 0 1px 4px 0 #0000000D;
    --shadow-pane: 0 1px 5px -1px rgba(0, 0, 0, 0.21);
    --border-radius-messages: 0.9375rem;
    --border-radius-messages-small: 0.375rem;
    --messages-container-width: 47.5rem;
    --middle-panel-inline-padding: 1rem;
    --middle-header-height: 3rem;
    --middle-header-gap: 0.5rem;
    --column-header-height: 4rem;
    --symbol-menu-width: 24rem;
    --symbol-menu-height: 22.375rem;
    --symbol-menu-footer-height: 3rem;
    --layer-transition: 300ms cubic-bezier(0.33, 1, 0.68, 1);
    --slide-transition: 300ms cubic-bezier(0.25, 1, 0.5, 1);
  --composer-pill-radius: 1.5rem;
  --composer-control-radius: 1.25rem;
  --composer-height: 3rem;
  --composer-embed-radius: 0.5rem;
  --composer-pill-padding: 0.25rem;
  --composer-row-gap: 0.25rem;
  --composer-bottom-gap: 1rem;
  --composer-bottom-gap-mobile: 0.5rem;
  --composer-top-gap: 0.5rem;
  --composer-min-bottom-reserve: calc(var(--composer-height) + var(--composer-bottom-gap));
  --composer-embedded-message-gap: 0.5rem;
  --composer-embedded-message-duration: 150ms;
  --composer-input-grow-duration: 100ms;
  --composer-icon-button-padding: 0.5rem;
  --composer-icon-size: 1.5rem;
  --composer-main-button-width: 2.5rem;
  --composer-main-button-height: 2.5rem;
}
/* stylelint-disable */
/* cyrillic-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Roboto'), local('Roboto-Regular'), url(KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Roboto'), local('Roboto-Regular'), url(KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz.woff2) format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Roboto'), local('Roboto-Regular'), url(KFOmCnqEu92Fr1Mu7mxKKTU1Kvnz.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Roboto'), local('Roboto-Regular'), url(KFOmCnqEu92Fr1Mu4WxKKTU1Kvnz.woff2) format('woff2');
  unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Roboto'), local('Roboto-Regular'), url(KFOmCnqEu92Fr1Mu7WxKKTU1Kvnz.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Roboto'), local('Roboto-Regular'), url(KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Roboto'), local('Roboto-Regular'), url(KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Roboto Medium'), local('Roboto-Medium'), url(KFOlCnqEu92Fr1MmEU9fCRc4AMP6lbBP.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Roboto Medium'), local('Roboto-Medium'), url(KFOlCnqEu92Fr1MmEU9fABc4AMP6lbBP.woff2) format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Roboto Medium'), local('Roboto-Medium'), url(KFOlCnqEu92Fr1MmEU9fCBc4AMP6lbBP.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Roboto Medium'), local('Roboto-Medium'), url(KFOlCnqEu92Fr1MmEU9fBxc4AMP6lbBP.woff2) format('woff2');
  unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Roboto Medium'), local('Roboto-Medium'), url(KFOlCnqEu92Fr1MmEU9fCxc4AMP6lbBP.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Roboto Medium'), local('Roboto-Medium'), url(KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Roboto Medium'), local('Roboto-Medium'), url(KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Persian, v33.001, https://github.com/rastikerdar/vazirmatn */
@font-face {
  font-family: Vazirmatn;
  src: url('Vazirmatn-NL-Regular.woff2') format('woff2');
  font-weight: normal;
  font-display:swap;
  unicode-range:U+0627-06FF;
}

/* Persian, v33.003, https://github.com/rastikerdar/vazirmatn */
@font-face {
  font-family: Vazirmatn;
  src: url('Vazirmatn-NL-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display:swap;
  unicode-range: U+0600-06FF;
}

@font-face {
  font-family: 'Numbers Rounded';
  src: url('Numbers-Rounded.woff2') format('woff2');
  unicode-range: U+0030-0039, U+002B, U+002D;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('Roboto-Condensed-Regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-weight: 800;
  font-display: swap;
  src: url('Nunito-ExtraBold.woff2') format('woff2');
}

@font-face {
  font-family: "IM Icons";
  src: url("/icons.woff2") format("woff2");
  font-display: block;
}

:root {
  font-family: Roboto, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: var(--color-background);
  color-scheme: light;
  --page-width: 42rem;
  --workspace-width: 100rem;
  --workspace-gap: clamp(.875rem, 1.45vw, 1.5rem);
  --page-gutter: clamp(.75rem, 3vw, 1.125rem);
  --viewport-safe-inline: max(env(safe-area-inset-left), env(safe-area-inset-right));
  --header-control: 2.75rem;
  --header-height: var(--column-header-height);
  --chat-list-width: clamp(16rem, 24vw, 23rem);
  --detail-width: clamp(17rem, 24vw, 21rem);
  --chat-gutter: clamp(.625rem, 2.4vw, 1.25rem);
  --pane-width: min(45rem, calc(100% - 2 * var(--chat-gutter)));
  --slide: var(--slide-transition);
  --fast: 180ms ease;
  --bg-gradient: radial-gradient(ellipse at 5% 12%, #dce5b3, transparent 72%),
    radial-gradient(ellipse at 95% 82%, #8fbf9f, transparent 78%), #bdd3a2;
  --pattern-opacity: .17;
  --message-service: #3e735482;
  --dock-height: 3.65rem;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-gradient: radial-gradient(ellipse at 30% 0, #212233, transparent 70%), #15141c;
  --pattern-opacity: .31;
  --message-service: #0007;
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; width: 100%; margin: 0; overflow: hidden; }
button, textarea, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
input, textarea { outline: none; }
a { color: var(--color-links); text-decoration: none; }
h1, h2, p { margin: 0; }
strong, b { font-weight: 600; }
::selection { background: var(--color-primary-opacity-hover); }
::-webkit-scrollbar { width: .375rem; }
::-webkit-scrollbar-thumb { background: #8885; border-radius: 1rem; }

.ico {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  font: 400 1.5rem/1 "IM Icons";
  text-transform: none;
  vertical-align: middle;
  -webkit-font-smoothing: antialiased;
}
.ico::before { display: block; line-height: 1; }
.icon-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  color: var(--color-icon-secondary);
  line-height: 1;
  vertical-align: middle;
  transition: background var(--fast), color var(--fast);
}
.icon-button.on, .icon-button:active:enabled { background: var(--color-item-hover); }
@media (hover: hover) and (pointer: fine) {
  .icon-button:hover:enabled { background: var(--color-item-hover); }
}
.text-button, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1rem;
  min-height: 2.625rem;
  border-radius: .625rem;
  color: var(--color-primary);
  font-weight: 600;
  transition: background var(--fast);
}
.text-button:hover { background: var(--color-primary-tint); }
.primary-button { background: var(--color-primary); color: #fff; }
.primary-button:hover:enabled, a.primary-button:hover { background: var(--color-primary-shade-darker); }
.primary-button .ico { font-size: 1.125rem; }
.danger { color: var(--color-error) !important; }
.danger-button { background: var(--color-error); }
.danger-button:hover:enabled { background: #ba302e; }

.avatar {
  flex: 0 0 auto;
  display: inline-grid;
  width: 3.375rem;
  height: 3.375rem;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  background: linear-gradient(160deg, #70cef9, #3b9be7);
  user-select: none;
}
.avatar.lavender { background: linear-gradient(160deg, #a294f5, #7264db); }
.avatar.rose { background: linear-gradient(160deg, #f99baf, #e9708e); }
.avatar.teal { background: linear-gradient(160deg, #6fe2c9, #32b1a8); }
.avatar.peach { background: linear-gradient(160deg, #fcc385, #ea915e); }
.avatar.indigo { background: linear-gradient(160deg, #85a9ff, #6270dc); }
.avatar.yellow { background: linear-gradient(160deg, #f5d074, #dfae43); }
.avatar.large { width: 6rem; height: 6rem; font-size: 2.25rem; }
.avatar.large .ico { font-size: 2.875rem; }
.avatar.medium { width: 2.625rem; height: 2.625rem; font-size: 1rem; }
.avatar.header-avatar { width: 2.5rem; height: 2.5rem; font-size: 1rem; }
.avatar.small { width: 2.125rem; height: 2.125rem; font-size: .875rem; }
.avatar.tiny { width: 1.875rem; height: 1.875rem; font-size: .75rem; }
.avatar .ico { font-size: 1.4em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.auth-screen, .boot { height: 100dvh; height: var(--app-height, 100dvh); overflow: auto; }
.auth-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(var(--page-gutter), env(safe-area-inset-top)) max(var(--page-gutter), var(--viewport-safe-inline))
    max(var(--page-gutter), env(safe-area-inset-bottom));
}
.auth-content { flex: 0 0 auto; width: min(100%, 23rem); margin-block: auto; padding-block: 1rem; text-align: center; }
.auth-mark {
  width: clamp(4rem, 13dvh, 6rem);
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #42b8f1, var(--color-primary));
  color: #fff;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -.065em;
}
.auth-content h1 { font-size: 1.875rem; font-weight: 600; }
.auth-form { margin-top: 1.5rem; }
.auth-form, .stack-form, .editor-form { display: grid; gap: .875rem; text-align: left; }
.auth-form .primary-button, .auth-form .text-button { min-height: 3.125rem; }
.auth-form .primary-button .loading { padding: 0; }
.auth-form .primary-button .spinner { border-color: #fff5; border-top-color: #fff; }
.auth-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: stretch; }
.auth-code-action { min-width: 6.6rem; white-space: nowrap; padding-inline: .5rem; }
.auth-registration-note { text-align: center; }
.ios-install-link { margin: .65rem auto 0; gap: .45rem; }
.field {
  display: grid;
  gap: .4rem;
  padding: .55rem .85rem .65rem;
  border: 1px solid var(--color-borders-input);
  border-radius: .6875rem;
  color: var(--color-text-secondary);
  text-align: left;
  font-size: .75rem;
  transition: border-color var(--fast);
}
.field:focus-within { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); color: var(--color-primary); }
.field :is(input, textarea, select) {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  outline: 0;
  color: var(--color-text);
  resize: vertical;
  font-size: .975rem;
}
.field-note, .form-error { font-size: .875rem; line-height: 1.5; }
.field-note { color: var(--color-text-secondary); }
.field select { background: var(--color-background); }
.registration-admin { display: grid; gap: 1rem; width: min(100%, 32rem); margin-inline: auto; }
.mail-toggle { padding-inline: .8rem; border-radius: .75rem; background: var(--color-background-secondary); }
.mail-form { gap: .7rem; }
.mail-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .7rem; }
.mail-host { grid-column: 1 / -1; }
.mail-test-form { border-top: 1px solid var(--color-borders); padding-top: 1rem; }
.mail-result { display: grid; gap: .4rem; }
.form-error { color: var(--color-error); }
.demo-accounts { margin-top: 1.5rem; }
.demo-accounts > span { font-size: .85rem; color: var(--color-text-secondary); }
.demo-list { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .7rem; }
.demo-list button { display: flex; align-items: center; gap: .45rem; min-height: 2.75rem; border-radius: 1.75rem; padding: .25rem .55rem .25rem .25rem; background: var(--color-background-selected); font-size: .875rem; }
.demo-list button:hover { background: var(--color-primary-tint); }
.boot { display: grid; place-items: center; }
.start-error { display: grid; justify-items: center; gap: .75rem; color: var(--color-text-secondary); }
.loading { display: grid; padding: 1rem; place-items: center; }
.spinner { width: 1.6rem; height: 1.6rem; display: inline-block; border: .16rem solid var(--color-primary-opacity-hover); border-top-color: var(--color-primary); border-radius: 50%; animation: spin .7s linear infinite; }

.app-shell {
  position: relative;
  --dock-inset: max(.625rem, env(safe-area-inset-bottom));
  --dock-reserve: calc(var(--dock-height) + var(--dock-inset) + 1.125rem);
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100dvh;
  height: var(--app-height, 100dvh);
  padding: env(safe-area-inset-top) var(--viewport-safe-inline) 0;
  overflow: hidden;
  background: var(--color-background-secondary);
}
.app-shell.no-bottom-nav {
  --dock-reserve: 0px;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav {
  isolation: isolate;
  position: absolute;
  z-index: 10;
  inset-inline: max(var(--page-gutter), var(--viewport-safe-inline));
  bottom: var(--dock-inset);
  max-width: 31rem;
  margin-inline: auto;
  padding: .125rem .35rem;
  border: 1px solid var(--color-borders);
  border-radius: 1.65rem;
  background: var(--color-background);
  background: color-mix(in srgb, var(--color-background) 79%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
  box-shadow: 0 .4rem 1.5rem #1c2d431e, inset 0 1px 0 #ffffff32;
}
.bottom-nav-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin: 0 auto;
}
.bottom-tab {
  display: grid;
  grid-template-rows: 1.75rem 1rem;
  align-content: center;
  justify-items: center;
  gap: .1rem;
  min-height: var(--dock-height);
  padding: .25rem 0;
  color: var(--color-icon-secondary);
  touch-action: manipulation;
  transition: color var(--fast);
}
.bottom-tab > span { display: grid; width: 3rem; height: 1.75rem; place-items: center; border-radius: 2rem; }
.bottom-tab .ico { font-size: 1.35rem; }
.bottom-tab small { font-size: .75rem; line-height: 1rem; white-space: nowrap; }
.bottom-tab[aria-current="page"] { color: var(--color-primary); }
.bottom-tab[aria-current="page"] > span, .bottom-tab:active > span { background: var(--color-primary-tint); }
.bottom-tab[aria-current="page"] small { font-weight: 600; }
.bottom-tab:focus-visible { outline-offset: -.2rem; }
@media (hover: hover) and (pointer: fine) {
  .bottom-tab:hover > span { background: var(--color-item-hover); }
}
.workspace {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, var(--page-width));
  grid-template-rows: minmax(0, 1fr);
  justify-content: center;
  gap: var(--workspace-gap);
  width: min(100%, var(--workspace-width));
  height: 100%;
  margin-inline: auto;
  padding: var(--workspace-gap);
}
.workspace.chat-open { grid-template-columns: var(--chat-list-width) minmax(0, 1fr); }
.sidebar {
  position: relative;
  z-index: 3;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--border-radius-island);
  background: var(--color-background);
  box-shadow: var(--shadow-island);
  corner-shape: squircle;
}
.column-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem 1rem;
  min-height: var(--header-height);
  flex-shrink: 0;
  background: var(--color-background);
}
.column-header :is(h1, h2) { margin: 0 .375rem; font-size: 1.15rem; font-weight: 600; }
.column-header > .anchored, .composer > .anchored {
  display: flex;
  align-items: center;
}
.sidebar-header { z-index: 5; }
.page-header, .modal-heading {
  display: grid;
  grid-template-columns: var(--header-control) minmax(0, 1fr) var(--header-control);
  align-items: center;
  gap: .4rem;
  padding-inline: var(--page-gutter);
}
.page-header :is(h1, h2), .modal-heading h2 {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-start { grid-column: 1; grid-row: 1; }
.header-end, .modal-heading .icon-button { grid-column: 3; grid-row: 1; }
.column-header .icon-button, .modal-heading .icon-button { width: var(--header-control); height: var(--header-control); }
.compose-toggle { color: var(--color-primary); }
.sidebar-header.compact, .details .column-header { border-bottom: 1px solid var(--color-borders); }
.animated-menu-icon { position: relative; display: block; }
.animated-menu-icon::before, .animated-menu-icon::after { content: ""; position: absolute; left: 0; }
.animated-menu-icon::before { top: -.3125rem; }
.animated-menu-icon::after { top: .3125rem; }
.animated-menu-icon, .animated-menu-icon::before, .animated-menu-icon::after {
  width: 1.125rem;
  height: .125rem;
  border-radius: .125rem;
  background: currentColor;
  transition: transform .25s;
}
.animated-menu-icon.state-back { transform: rotate(180deg); }
.animated-menu-icon.state-back::before { transform: rotate(45deg) scaleX(.75) translate(.375rem, -.1875rem); }
.animated-menu-icon.state-back::after { transform: rotate(-45deg) scaleX(.75) translate(.375rem, .1875rem); }
.search-box {
  display: flex;
  flex: 1 1 auto;
  gap: .6rem;
  align-items: center;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0 .875rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  background: var(--color-background-selected);
  color: var(--color-icon-secondary);
}
.search-box:focus-within { border-color: var(--color-primary); background: var(--color-background); color: var(--color-primary); }
.search-box input { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: .95rem; color: var(--color-text); }
.search-box input::placeholder { color: var(--color-text-secondary); }
.search-box input::-webkit-search-cancel-button { appearance: none; }
.search-box .icon-button { width: 1.8rem; height: 1.8rem; }
.search-box .ico, .search-box .icon-button .ico { font-size: 1.25rem; }
.page-search { flex: 0 0 auto; padding: 0 var(--page-gutter) .5rem; }
.page-search .search-box { min-height: var(--header-control); }
.tabs { display: flex; flex: 0 0 auto; padding: 0 .35rem; box-shadow: inset 0 -1px var(--color-borders); }
.tabs button {
  position: relative;
  flex: 1;
  min-height: 2.65rem;
  padding: .55rem .2rem;
  border-radius: .4rem .4rem 0 0;
  color: var(--color-text-secondary);
  font-size: .875rem;
  font-weight: 600;
}
.tabs button:hover { background: var(--color-item-hover); }
.tabs button.active { color: var(--color-primary); }
.tabs button.active::after {
  position: absolute;
  right: .6rem;
  bottom: 0;
  left: .6rem;
  height: .185rem;
  border-radius: .25rem .25rem 0 0;
  background: var(--color-primary);
  content: "";
}
.room-list, .side-page { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.room-list, .side-page { padding: .5rem var(--page-gutter) max(1rem, var(--dock-reserve)); }
.room-list, .side-page, .search-scroll, .details-body, .message-scroll { scrollbar-gutter: stable both-edges; }
.room-row {
  display: flex;
  align-items: center;
  gap: .625rem;
  width: 100%;
  min-width: 0;
  min-height: 4.5rem;
  padding: .45rem .55rem;
  border-radius: var(--border-radius-list-item);
  text-align: left;
  transition: background .12s ease;
}
.room-row:active { background: var(--color-chat-hover); }
@media (hover: hover) and (pointer: fine) {
  .room-row:hover { background: var(--color-chat-hover); }
}
.room-row.selected { background: var(--color-chat-active); color: #fff; }
.room-copy { flex: 1 1 auto; display: grid; gap: .3rem; min-width: 0; }
.room-line { display: flex; align-items: center; gap: .36rem; min-width: 0; }
.room-line strong, .room-line > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title-line strong { min-width: 0; font-size: .975rem; }
.title-line .ico { font-size: .9rem; }
.room-line time { margin-left: auto; flex: 0 0 auto; font-size: .73rem; color: var(--color-text-secondary); }
.preview-line { min-height: 1.3rem; color: var(--color-text-secondary); font-size: .88rem; }
.preview-line > span { flex: 1; }
.preview-line .ico { font-size: 1rem; margin-left: auto; }
.room-row.selected :is(time, .preview-line) { color: #ffffffc9; }
.unread-badge { display: grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .27rem; border-radius: 1rem; background: var(--color-primary); color: #fff; font-size: .69rem; }
.unread-badge.muted { background: var(--color-text-secondary); }
.room-row.selected .unread-badge { background: #fff; color: var(--color-chat-active); }
.icon-button.send-button {
  width: 3.5rem;
  height: 3.5rem;
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 2px 8px #10223626;
}
.icon-button.send-button:active:enabled { background: var(--color-primary-shade-darker); }
@media (hover: hover) and (pointer: fine) {
  .icon-button.send-button:hover:enabled { background: var(--color-primary-shade-darker); }
}
.icon-button.send-button:disabled { opacity: .82; }
.send-button .ico { font-size: 1.5rem; }
.connection-status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2rem;
  padding: .25rem .75rem;
  border-bottom: 1px solid var(--color-borders);
  background: var(--color-background-secondary);
  color: var(--color-text-secondary);
  font-size: .8rem;
}
.connection-status .spinner { flex: 0 0 auto; width: .8rem; height: .8rem; border-width: .125rem; }

.main-column, .chat-shell { min-width: 0; min-height: 0; height: 100%; }
.main-column { position: relative; overflow: hidden; border-radius: var(--border-radius-island); }
.wallpaper-pattern, .chat-wallpaper { position: absolute; inset: 0; pointer-events: none; }
.chat-wallpaper { z-index: -1; background: var(--bg-gradient); }
.wallpaper-pattern {
  opacity: var(--pattern-opacity);
  background: url("/pattern.svg") center / min(100%, 39rem) auto repeat;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .wallpaper-pattern { filter: invert(1); mix-blend-mode: screen; opacity: .14; }
.date-divider > span, .pill-button, .read-only {
  border-radius: 1.125rem;
  background: var(--message-service);
  color: #fff;
  padding: .4rem .75rem;
  font-size: .82rem;
  font-weight: 600;
}
.chat-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 0; transition: grid-template-columns var(--slide); }
.chat-shell.details-open { grid-template-columns: minmax(0, 1fr) var(--detail-width); }
.chat { position: relative; isolation: isolate; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.chat-header {
  position: relative;
  z-index: 7;
  flex: 0 0 var(--middle-header-height);
  width: var(--pane-width);
  min-height: var(--middle-header-height);
  margin: var(--chat-gutter) auto 0;
  padding: .25rem;
  border-radius: 2rem;
  box-shadow: var(--shadow-pane);
}
.chat-identity { flex: 1; display: flex; align-items: center; gap: .625rem; min-width: 0; padding: 0 .25rem; text-align: left; }
.chat-identity > span:nth-child(2) { display: grid; gap: .125rem; min-width: 0; }
.chat-identity :is(strong, small) { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.chat-identity small { color: var(--color-text-secondary); font-size: .8rem; }
.pinned-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: var(--pane-width);
  min-height: 2.65rem;
  margin: var(--middle-header-gap) auto 0;
  padding: .35rem 1rem;
  border-radius: var(--border-radius-pane);
  background: var(--color-background);
  box-shadow: var(--shadow-pane);
  text-align: left;
}
.pinned-strip > span { display: grid; gap: .15rem; min-width: 0; border-left: 2px solid var(--color-primary); padding-left: .55rem; }
.pinned-strip strong { color: var(--color-primary); font-size: .75rem; }
.pinned-strip small { color: var(--color-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinned-strip .ico { color: var(--color-icon-secondary); }
.message-scroll { flex: 1 1 auto; overflow: hidden auto; min-height: 0; overscroll-behavior: contain; }
.message-feed {
  width: var(--pane-width);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 auto;
  padding-block: 1rem .4rem;
  gap: .25rem;
}
.message-feed > .loading, .message-feed > .empty { margin: auto; }
.date-divider, .feed-note { align-self: center; margin: .55rem 0 .6rem; color: var(--color-text); }
.date-divider > span { display: block; padding: .35rem .65rem; }
.feed-note { display: flex; align-items: center; gap: .5rem; }
.message-row { position: relative; display: flex; align-items: flex-end; gap: .35rem; width: 100%; padding: .08rem 0; border-radius: .55rem; animation: message-in var(--fast) both; }
.message-row.own { flex-direction: row-reverse; }
.message-row.highlight { animation: highlight 1.4s both; }
.bubble {
  position: relative;
  min-width: 5rem;
  max-width: min(30.5rem, 82%);
  padding: .375rem .5rem .25rem;
  border-radius: var(--border-radius-messages) var(--border-radius-messages) var(--border-radius-messages) var(--border-radius-messages-small);
  background: var(--color-background);
  box-shadow: 0 1px 2px #2635282d;
  overflow-wrap: anywhere;
}
.own .bubble {
  border-radius: var(--border-radius-messages) var(--border-radius-messages) var(--border-radius-messages-small) var(--border-radius-messages);
  background: var(--color-background-own);
  color: var(--color-text-own);
}
.message-text { white-space: pre-wrap; font-size: 1rem; line-height: 1.31; }
.message-author, .forward-label { display: block; margin-bottom: .2rem; font-size: .81rem; color: var(--color-primary); }
.message-author.rose { color: #da6584; }
.message-author.teal { color: #209c9d; }
.message-author.peach { color: #c0783c; }
.message-author.lavender { color: #806fdf; }
.message-meta { display: flex; align-items: center; justify-content: flex-end; gap: .25rem; padding-top: .08rem; white-space: nowrap; color: var(--color-text-secondary); font-size: .68rem; line-height: 1.15; }
.own .message-meta { color: var(--color-message-meta-own); }
.message-meta .ico { font-size: .85rem; }
.quoted {
  display: grid;
  width: 100%;
  gap: .13rem;
  padding: .28rem .45rem;
  margin: .15rem 0 .25rem;
  min-width: 0;
  border-left: 2px solid var(--color-primary);
  border-radius: .35rem;
  background: var(--color-primary-tint);
  text-align: left;
  font-size: .79rem;
}
.quoted strong { color: var(--color-primary); }
.quoted span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.own .quoted { border-color: var(--color-accent-own); }
.own .quoted strong, .own .forward-label { color: var(--color-accent-own); }
.message-tools { flex: 0 0 auto; }
.message-tools > .icon-button { width: 1.9rem; height: 1.9rem; opacity: 0; background: var(--message-service); color: #fff; }
.message-tools > .icon-button .ico { font-size: 1rem; }
.message-tools > .icon-button:enabled:hover { background: var(--message-service); }
.message-tools > .icon-button:is(:focus-visible, .on) { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .message-row:hover .message-tools > .icon-button { opacity: 1; }
}
.press-target { touch-action: pan-y pinch-zoom; -webkit-touch-callout: none; }
.attachment-chip, .file-row { display: flex; width: 100%; align-items: center; gap: .6rem; padding: .35rem .15rem; border-radius: .5rem; text-align: left; }
.attachment-chip:hover, .file-row:hover { background: var(--color-primary-tint); }
.attachment-chip > span:nth-child(2), .file-row > span:nth-child(2) { min-width: 0; display: grid; gap: .24rem; }
.attachment-chip :is(strong, small), .file-row :is(strong, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-chip small, .file-row small { color: var(--color-text-secondary); font-size: .75rem; }
.file-glyph { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; flex: 0 0 auto; border-radius: 50%; background: var(--color-primary); color: #fff; }
.file-glyph .ico { font-size: 1.2rem; }
.reactions { display: flex; flex-wrap: wrap; gap: .28rem; padding-top: .24rem; }
.reactions button { min-width: 2.45rem; padding: .12rem .4rem; border-radius: 1rem; background: var(--color-message-reaction); color: var(--color-primary); }
.own .reactions button { background: var(--color-message-reaction-own); }
.reactions button.chosen { background: var(--color-primary); color: #fff; }
.reactions button small { font-size: .7rem; }

.compose-footer { position: relative; z-index: 9; padding: .25rem 0 var(--composer-bottom-gap); }
.compose-inner { position: relative; display: flex; align-items: flex-end; gap: var(--composer-row-gap); width: var(--pane-width); margin: 0 auto; }
.composer-card { flex: 1 1 auto; min-width: 0; border-radius: var(--composer-pill-radius); background: var(--color-background); box-shadow: var(--shadow-pane); }
.composer { display: flex; align-items: flex-end; min-height: var(--composer-height); gap: var(--composer-row-gap); padding: var(--composer-pill-padding); }
.composer > .symbols-anchor { position: static; }
.composer .icon-button { color: var(--color-composer-button); }
.composer .icon-button.on { color: var(--color-primary); }
.composer textarea { flex: 1; min-width: 0; min-height: 2.5rem; max-height: 7rem; padding: .6rem .125rem; border: 0; outline: 0; resize: none; background: none; field-sizing: content; line-height: 1.25; }
.icon-button.send-button { width: var(--composer-height); height: var(--composer-height); border-radius: var(--composer-pill-radius); }
.composer textarea::placeholder { color: var(--color-text-secondary); }
.hidden-input { display: none; }
.compose-preview { display: flex; align-items: center; gap: .5rem; min-width: 0; padding: .35rem .4rem .15rem .75rem; color: var(--color-primary); }
.compose-preview > span { flex: 1; min-width: 0; display: grid; gap: .12rem; padding-left: .5rem; border-left: 2px solid var(--color-primary); }
.compose-preview :is(strong, small) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .79rem; }
.compose-preview small { color: var(--color-text-secondary); }
.back-latest { display: flex; align-items: center; gap: .2rem; margin: .25rem auto .55rem; }
.back-latest .ico, .read-only .ico { font-size: .95rem; }
.read-only { width: fit-content; margin: .2rem auto; display: flex; align-items: center; gap: .35rem; }

.anchored { position: relative; }
.popover, .drawer-popover, .reaction-picker {
  min-width: 10.75rem;
  padding: .3rem;
  border-radius: var(--border-radius-menu);
  color: var(--color-text);
  background: var(--color-background-compact-menu-reactions);
  box-shadow: 0 .25rem 1.25rem var(--color-default-shadow);
  backdrop-filter: blur(16px);
  animation: menu-in 150ms cubic-bezier(.2, .85, .3, 1) both;
}
.popover { position: absolute; z-index: 15; top: calc(100% + .25rem); right: 0; }
.popover > button { display: flex; width: 100%; align-items: center; gap: .625rem; min-height: 2.3rem; padding: .35rem .625rem; border-radius: .4rem; white-space: nowrap; text-align: left; font-size: .865rem; }
.popover > button:hover { background: var(--color-background-compact-menu-hover); }
.popover > button .ico { font-size: 1.13rem; color: var(--color-icon-secondary); }
.popover > button.danger .ico { color: inherit; }
.drawer-popover { position: absolute; z-index: 20; top: calc(100% + .25rem); left: 0; width: 15.5rem; transform-origin: top left; }
.drawer-popover .popover { position: static; padding: 0; background: none; animation: none; box-shadow: none; backdrop-filter: none; }
.drawer-profile { display: flex; align-items: center; gap: .7rem; width: 100%; margin-bottom: .3rem; padding: .55rem; border-radius: .4rem; text-align: left; }
.drawer-profile:hover { background: var(--color-item-hover); }
.drawer-profile > span:last-child { display: grid; min-width: 0; gap: .25rem; }
.drawer-profile :is(strong, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-profile small { color: var(--color-text-secondary); }
.reaction-picker { display: flex; min-width: 0; justify-content: center; gap: .2rem; padding-bottom: .5rem; }
.reaction-picker button { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; border-radius: 50%; font-size: 1.25rem; }
.reaction-picker button:active { background: var(--color-item-hover); }
@media (hover: hover) and (pointer: fine) {
  .reaction-picker button:hover { background: var(--color-item-hover); }
}

.side-page > .search-box { margin-block: .25rem .6rem; }
.details {
  position: relative;
  z-index: 8;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  margin: var(--chat-gutter) var(--chat-gutter) var(--chat-gutter) 0;
  border-radius: var(--border-radius-island);
  background: var(--color-background);
  box-shadow: var(--shadow-island);
  corner-shape: squircle;
}
.details-body { flex: 1 1 auto; overflow: auto; }
.details-body > .tabs { position: sticky; top: 0; z-index: 1; background: var(--color-background); }
.profile-hero { display: grid; place-items: center; gap: .55rem; min-height: 11rem; padding: 1.1rem .85rem; text-align: center; }
.profile-hero h2 { font-size: 1.22rem; }
.profile-hero p, .profile-hero > span:last-child { color: var(--color-text-secondary); font-size: .85rem; line-height: 1.5; }
.profile-hero > :is(h2, span:last-child) { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.profile-avatar-button, .avatar-pick-control { position: relative; display: grid; place-items: center; width: max-content; padding: 0; border-radius: 50%; }
.avatar-camera { position: absolute; inset: auto -.15rem -.15rem auto; width: 2.125rem; height: 2.125rem; display: grid; place-items: center; border: 2px solid var(--color-background); border-radius: 50%; background: var(--color-primary); color: #fff; }
.avatar-camera .ico { font-size: 1.05rem; }
.avatar-picker { display: grid; justify-items: center; gap: .3rem; margin-block: .375rem; text-align: center; }
.avatar-pick-control { cursor: pointer; }
.avatar-pick-control:focus-within { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.avatar-pick-control input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.avatar-picker > .text-button { min-height: 2rem; padding-block: .2rem; font-size: .8rem; }
.detail-hero { min-height: 0; padding-bottom: .85rem; }
.detail-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .45rem; margin: 0 var(--page-gutter) .85rem; }
.detail-actions button { display: grid; justify-items: center; align-content: center; gap: .28rem; min-height: 3.2rem; padding: .32rem .125rem; border-radius: .75rem; background: var(--color-primary-tint); color: var(--color-primary); font-size: .75rem; }
.detail-actions .ico { font-size: 1.2rem; }
.detail-description { padding: .7rem .35rem; margin: 0 var(--page-gutter); border-top: 1px solid var(--color-borders); color: var(--color-text-secondary); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.person-row, .setting-row, .action-row, .result-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: .48rem .63rem;
  gap: .65rem;
  border-radius: .55rem;
  text-align: left;
}
:is(.person-row, .setting-row, .action-row, .result-row):active { background: var(--color-item-hover); }
@media (hover: hover) and (pointer: fine) {
  :is(.person-row, .setting-row, .action-row, .result-row):hover { background: var(--color-item-hover); }
}
.member-role { flex: 0 0 auto; margin-left: auto; color: var(--color-primary); font-size: .75rem; }
.person-text, .result-body { display: grid; flex: 1 1 auto; min-width: 0; gap: .22rem; }
.person-text :is(strong, small), .result-body :is(strong, span) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-text small, .result-body span { color: var(--color-text-secondary); font-size: .82rem; }
.result-row time { flex: 0 0 auto; color: var(--color-text-secondary); font-size: .72rem; }
.section-label { padding: .63rem .65rem .28rem; color: var(--color-primary); font-size: .8rem; font-weight: 600; }
.section-label.separated { border-top: 1px solid var(--color-borders); margin-top: .5rem; }
.list-note { color: var(--color-text-secondary); font-size: .85rem; padding: .8rem .65rem; }
.action-row { color: var(--color-primary); min-height: 2.8rem; }
.file-row { padding: .55rem .7rem; }
.settings-group { padding: .45rem 0; border-top: 1px solid var(--color-borders); }
.setting-row { min-height: 2.9rem; }
.setting-row span { flex: 1; }
.setting-row .ico { color: var(--color-icon-secondary); font-size: 1.15rem; }
.sound-setting { cursor: pointer; }
.sound-setting input { accent-color: var(--color-primary); width: 1.1rem; height: 1.1rem; margin-inline-end: .2rem; }
.settings-content .stack-form { padding: .4rem; }
.theme-option { display: flex; align-items: center; gap: .65rem; min-height: 2.4rem; cursor: pointer; padding: .35rem; }
.theme-option input { accent-color: var(--color-primary); }
.shortcut-list { padding: .5rem; margin: 0; }
.shortcut-list div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--color-borders); font-size: .8rem; }
.shortcut-list dd { margin: 0; white-space: nowrap; }
kbd { display: inline-block; padding: .2rem .3rem; border-radius: .25rem; background: var(--color-background-selected); }
.details-body .person-row { width: calc(100% - 1rem); margin-inline: .5rem; }
.empty { display: grid; width: 100%; justify-items: center; gap: .6rem; padding: 2.1rem 1rem; color: var(--color-text-secondary); text-align: center; font-size: .875rem; }
.empty-icon { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; background: var(--color-primary-tint); color: var(--color-primary); }
.empty-icon .ico { font-size: 1.55rem; }
.message-feed .empty { color: #284537; }
.message-feed .empty-icon { background: var(--message-service); color: #fff; }
[data-theme="dark"] .message-feed .empty { color: #ddd; }

.modal-shade {
  position: fixed;
  inset: 0;
  height: var(--app-height, 100dvh);
  z-index: 30;
  display: grid;
  place-items: center;
  padding: max(var(--page-gutter), env(safe-area-inset-top)) max(var(--page-gutter), var(--viewport-safe-inline))
    max(var(--page-gutter), env(safe-area-inset-bottom));
  background: #0006;
  opacity: 0;
  transition: opacity var(--fast);
}
.modal-shade.open { opacity: 1; }
.modal { width: min(100%, 26rem); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; border-radius: var(--border-radius-modal); background: var(--color-background); box-shadow: 0 10px 40px #0003; transform: scale(.96); transition: transform var(--fast); }
.modal-shade.open .modal { transform: scale(1); }
.modal.wide { width: min(100%, 43rem); }
.modal-heading { padding-block: .45rem .35rem; }
.modal-heading h2 { font-size: 1.15rem; }
.modal-content { padding: .25rem var(--page-gutter) 1rem; }
.floating-menu {
  position: fixed;
  z-index: 38;
  visibility: hidden;
  width: min(15rem, calc(100vw - 1.25rem));
  max-height: calc(var(--app-height, 100dvh) - 1.25rem);
  padding: .375rem;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--color-borders);
  border-radius: 1rem;
  background: var(--color-background);
  box-shadow: 0 .5rem 1.75rem var(--color-default-shadow);
  animation: fade-in .12s ease both;
}
.sheet-actions { display: grid; gap: .12rem; }
.sheet-actions > button { display: flex; align-items: center; text-align: start; gap: .8rem; min-height: 2.875rem; padding: .45rem .6rem; border-radius: .65rem; }
.sheet-actions .ico { width: 1.5rem; height: 1.5rem; color: var(--color-icon-secondary); font-size: 1.25rem; }
.sheet-actions .danger .ico { color: inherit; }
.sheet-actions > button:active { background: var(--color-item-hover); }
@media (hover: hover) and (pointer: fine) {
  .sheet-actions > button:hover { background: var(--color-item-hover); }
}
.list-skeleton { display: grid; gap: .25rem; padding: .5rem .75rem; }
.list-skeleton > div { display: flex; align-items: center; gap: .75rem; min-height: 3.35rem; }
.list-skeleton i { display: block; border-radius: 1rem; background: var(--color-background-selected); }
.list-skeleton > div > i { width: 2.5rem; height: 2.5rem; border-radius: 50%; }
.list-skeleton span { display: grid; flex: 1; gap: .35rem; }
.list-skeleton span > i { width: 46%; height: .6rem; }
.list-skeleton span > i + i { width: 67%; height: .45rem; }
.message-feed .list-skeleton { width: min(100%, 22rem); }
.people-picker { max-height: min(34dvh, 18rem); overflow: auto; }
.select-check { display: grid; place-items: center; width: 1.15rem; height: 1.15rem; flex: 0 0 auto; border: 1px solid var(--color-borders-input); border-radius: 50%; color: #fff; }
.select-check.checked { border-color: var(--color-primary); background: var(--color-primary); }
.select-check .ico { font-size: .8rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .35rem; margin-top: .6rem; }
.delete-actions { display: grid; gap: .2rem; margin-top: .6rem; }
.selected-people { display: flex; flex-wrap: wrap; max-height: 7rem; overflow: auto; gap: .35rem; }
.selected-person { display: flex; align-items: center; gap: .35rem; min-height: 2.25rem; max-width: 100%; border-radius: 1.15rem; padding: .125rem .45rem .125rem .2rem; background: var(--color-primary-tint); color: var(--color-primary); font-size: .8rem; }
.selected-person > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-person > .ico { font-size: .9rem; }
.group-member-count { color: var(--color-text-secondary); font-size: .82rem; text-align: center; }
.confirm-copy { padding: .3rem 0 .55rem; color: var(--color-text-secondary); line-height: 1.5; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: max(.65rem, var(--dock-reserve)); transform: translateX(-50%); padding: .6rem .9rem; border-radius: .65rem; background: var(--color-toast-background); color: #fff; font-size: .85rem; max-width: 90vw; animation: fade-in var(--fast); }

.enter-fade { animation: fade-in var(--fast) both; }
.enter-slide { animation: slide-panel var(--slide) both; }
.enter-chat { animation: fade-in var(--fast) both; }
.enter-details { animation: slide-details var(--slide) both; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-panel { from { opacity: .55; transform: translateX(-.6rem); } to { opacity: 1; transform: translateX(0); } }
@keyframes slide-details { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes menu-in { from { opacity: 0; transform: scale(.93); } to { opacity: 1; transform: scale(1); } }
@keyframes message-in { from { transform: translateY(.2rem); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@keyframes highlight { from { background: #3390ec56; } to { background: transparent; } }

@media (max-width: 1180px) {
  .chat-shell.details-open { grid-template-columns: minmax(0, 1fr) 0; }
  .details { position: absolute; inset: 0 0 0 auto; width: min(100% - var(--chat-gutter), var(--detail-width)); box-shadow: -2px 0 16px var(--color-default-shadow); }
}
@media (max-width: 925px), (max-width: 1024px) and (max-height: 520px) {
  .workspace.chat-open { grid-template-columns: minmax(0, 1fr); }
  .workspace.chat-open .sidebar, .workspace.chat-open .main-column { grid-area: 1 / 1; }
  .workspace.chat-open .sidebar { visibility: hidden; }
}
@media (max-width: 640px), (max-width: 1024px) and (max-height: 520px) {
  :root { --chat-gutter: .625rem; --symbol-menu-height: 17.6875rem; }
  .workspace { padding: 0; grid-template-columns: minmax(0, 1fr); }
  .sidebar, .main-column { border-radius: 0; box-shadow: none; }
  .room-list, .side-page, .search-scroll, .details-body, .message-scroll { scrollbar-gutter: auto; }
  .chat-header { gap: .25rem; }
  .compose-footer { padding-bottom: .5rem; }
  .composer textarea, .field :is(input, textarea, select), .search-box input { font-size: 1rem; }
  .details { width: 100%; margin: 0; border-radius: 0; }
}
@media (max-width: 360px) {
  .room-row { gap: .5rem; padding-inline: .4rem; }
  .room-row .avatar { width: 3rem; height: 3rem; }
  .reaction-picker { gap: 0; }
  .reaction-picker button { min-width: 2.45rem; }
}
@media (max-height: 520px) {
  :root { --dock-height: 3.1rem; }
  .auth-content { padding-block: .375rem; }
  .auth-mark { margin-bottom: .75rem; }
  .auth-form, .demo-accounts { margin-top: 1rem; }
}
@media (hover: none), (pointer: coarse) {
  .message-tools > .icon-button { opacity: .84; min-width: 2.25rem; min-height: 2.25rem; }
  .press-target { -webkit-user-select: none; user-select: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --slide: 1ms linear; --layer-transition: 1ms linear; --fast: 1ms linear; }
  .popover, .drawer-popover, .message-row.highlight { animation-duration: 1ms; }
}

.search-active .sidebar-header, .search-active .page-search, .search-pane { background: var(--color-background-secondary); }
.search-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.search-tabs {
  overflow-x: auto;
  scrollbar-width: none;
  margin: .25rem var(--page-gutter) 0;
  padding: 0 .25rem;
  border-radius: var(--border-radius-island);
  background: var(--color-background);
  box-shadow: var(--shadow-island);
}
.search-tabs button { flex: 0 0 auto; padding-inline: .75rem; }
.search-scroll { flex: 1; min-height: 0; overflow: auto; padding: .75rem var(--page-gutter) 1rem; }
.search-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .625rem; }
.date-filter, .chat-search-filters select {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  max-width: 100%;
  min-height: 2rem;
  padding: .2rem .5rem;
  border: 0;
  border-radius: 1rem;
  background: var(--color-background-selected);
  color: var(--color-text-secondary);
  font: inherit;
  font-size: .78rem;
}
.date-filter .ico { font-size: 1rem; }
.date-filter input { color: inherit; border: 0; background: none; font-size: .8rem; }
.search-tools .text-button { min-height: 2rem; padding: .25rem .5rem; font-size: .75rem; }
.search-island {
  margin-bottom: 1rem;
  overflow: hidden;
  padding: .5rem;
  border-radius: var(--border-radius-island);
  background: var(--color-background);
  box-shadow: var(--shadow-island);
  corner-shape: squircle;
}
.search-island h3, .symbol-scroll h3 {
  margin: .45rem .5rem;
  color: var(--color-text-secondary);
  font-size: .875rem;
  font-weight: 500;
}
.search-note { padding: .75rem; color: var(--color-text-secondary); font-size: .875rem; }
.search-pane mark, .chat-search mark { color: var(--color-primary); background: var(--color-primary-tint); border-radius: .2rem; }
.search-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; }
.search-media-cell { padding: 0; position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; }
.load-search { width: 100%; font-size: .85rem; }
.chat-search {
  position: relative;
  z-index: 10;
  width: var(--pane-width);
  margin: var(--chat-gutter) auto 0;
  padding: .25rem;
  border-radius: var(--border-radius-pane);
  background: var(--color-background);
  box-shadow: var(--shadow-pane);
}
.chat-search-row { display: flex; align-items: center; gap: .125rem; }
.chat-search-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; padding: .25rem .5rem; }
.chat-search-filters select { max-width: 9rem; }
.result-count { margin-inline-start: auto; padding-inline: .25rem; color: var(--color-text-secondary); font-size: .77rem; }
.chat-search-results {
  position: absolute;
  z-index: 10;
  top: calc(100% + .375rem);
  inset-inline: 0;
  max-height: 50dvh;
  overflow: auto;
  padding: .5rem;
  border-radius: var(--border-radius-pane);
  background: var(--color-background);
  box-shadow: var(--shadow-pane);
}

.attachment-anchor .popover {
  top: auto;
  bottom: calc(100% + .5rem);
  transform-origin: bottom right;
}
.attachment-modal { width: min(100%, 26.25rem); background: var(--color-background-secondary); }
.attachment-dialog { display: grid; gap: .75rem; }
.attachment-tabs { border-radius: 1rem; background: var(--color-background); box-shadow: var(--shadow-island); }
.attachment-preview-grid, .attachment-files {
  max-height: min(49dvh, 26rem);
  overflow: auto;
  border-radius: var(--border-radius-island);
  background: var(--color-background);
}
.attachment-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.attachment-preview-grid.single { grid-template-columns: 1fr; }
.pending-attachment { position: relative; min-width: 0; }
.attachment-preview-grid .pending-attachment { height: min(29dvh, 11rem); background: var(--color-background-selected); }
.attachment-preview-grid.single .pending-attachment { height: min(46dvh, 22rem); }
.pending-attachment :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.attachment-preview-grid.single :is(img, video) { object-fit: contain; }
.pending-attachment .icon-button { position: absolute; top: .375rem; right: .375rem; width: 1.85rem; height: 1.85rem; }
.attachment-preview-grid .pending-attachment .icon-button { color: #fff; background: #0007; }
.pending-attachment .icon-button .ico { font-size: 1.1rem; }
.attachment-files .pending-attachment {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem 2.625rem .625rem .75rem;
  min-height: 3.5rem;
}
.queued-file-name { min-width: 0; display: grid; gap: .2rem; }
.queued-file-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queued-file-name small { color: var(--color-text-secondary); }
.attachment-options { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.attachment-options .text-button { min-height: 2.25rem; padding: .375rem .5rem; }
.attachment-options label { display: flex; align-items: center; gap: .2rem; font-size: .79rem; }
.attachment-options input { accent-color: var(--color-primary); }
.caption-field {
  display: flex;
  align-items: end;
  gap: .25rem;
  padding: .25rem .375rem .25rem .875rem;
  border-radius: 1.5rem;
  background: var(--color-background);
  box-shadow: var(--shadow-island);
}
.caption-field textarea {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding-block: .65rem;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  line-height: 1.4;
}
.caption-send.icon-button { color: #fff; background: var(--color-primary); }
.caption-send.icon-button:hover:enabled { background: var(--color-primary-shade-darker); }
.drop-targets {
  position: absolute;
  inset: 4rem 1rem 4rem;
  z-index: 14;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: .75rem;
  padding: .75rem;
  border-radius: var(--border-radius-island);
  background: var(--color-background-compact-menu-reactions);
  backdrop-filter: blur(8px);
}
.drop-target { display: grid; place-content: center; justify-items: center; gap: .5rem; border: 2px dashed var(--color-primary); border-radius: var(--border-radius-pane); color: var(--color-primary); }
.drop-target .ico { font-size: 2rem; }
.attachment-preview { display: grid; position: relative; place-items: center; width: 100%; height: 100%; background: var(--color-background-secondary-accent); color: var(--color-text-secondary); }
.attachment-preview :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.attachment-preview .media-play, .gif-badge {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0006;
}
.media-play { width: 2.35rem; height: 2.35rem; border-radius: 50%; }
.gif-badge { top: .4rem; left: .4rem; padding: .18rem .4rem; border-radius: .6rem; font-size: .625rem; }
.bubble.has-media { width: min(29rem, 82%); }
.message-album {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--border-radius-messages) - .25rem);
  background: var(--color-background-secondary);
}
.album-cell { position: absolute; display: block; overflow: hidden; padding: 1px; }
.message-album.single .album-cell { padding: 0; }
.message-album + .message-text { margin-top: .375rem; }
.bubble.media-only .message-meta {
  position: absolute;
  right: .75rem;
  bottom: .65rem;
  padding: .28rem .4rem;
  border-radius: .8rem;
  color: #fff;
  background: #0007;
}
.bubble.sticker-bubble { padding: 0 .25rem; background: transparent; box-shadow: none; }
.sticker-bubble .sticker-canvas, .sticker-bubble .sticker-emoji-fallback { width: 10rem; height: 10rem; }
.sticker-bubble .message-meta {
  width: fit-content;
  margin: .2rem 0 0 auto;
  padding: .25rem .5rem;
  border-radius: .8rem;
  background: var(--message-service);
  color: #fff;
}
.sticker-bubble .message-author, .sticker-bubble .forward-label { width: fit-content; padding: .2rem .4rem; border-radius: .65rem; background: var(--color-background); }
.sticker-emoji-fallback { display: grid; place-items: center; font-size: 3.75rem; }
.sticker-canvas { display: block; object-fit: contain; }

.media-overlay {
  position: fixed;
  z-index: 35;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #000e;
  color: #fff;
}
.media-toolbar { display: flex; align-items: center; gap: .375rem; padding: max(.75rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) .75rem max(1rem, env(safe-area-inset-left)); min-height: 4rem; }
.media-toolbar > div { display: grid; flex: 1; min-width: 0; gap: .25rem; }
.media-toolbar :is(strong, small) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.media-toolbar small { color: #ffffffb0; }
.media-overlay .icon-button { color: #fff; }
.media-overlay .icon-button:active { background: #fff2; }
@media (hover: hover) and (pointer: fine) { .media-overlay .icon-button:hover { background: #fff2; } }
.media-stage { min-height: 0; flex: 1; display: grid; align-content: center; justify-items: center; overflow: auto; padding: .5rem 2.75rem max(1.25rem, env(safe-area-inset-bottom)); }
.media-stage :is(img, video) { display: block; max-width: 100%; max-height: calc(100dvh - 6rem); object-fit: contain; }
.media-stage img { cursor: zoom-in; transition: transform var(--layer-transition); }
.media-stage img.zoomed { transform: scale(2); cursor: zoom-out; }
.media-previous, .media-next { position: absolute; top: 50%; background: #0005; }
.media-previous { left: .375rem; }
.media-next { right: .375rem; }

.symbol-panel {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + .625rem);
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, var(--symbol-menu-width));
  height: var(--symbol-menu-height);
  max-height: max(6rem, calc(var(--app-height, 100dvh) - 8rem));
  margin-inline: auto;
  padding: .375rem 0 0;
  overflow: hidden;
  border-radius: var(--border-radius-island);
  background: var(--color-background);
  box-shadow: 0 4px 24px var(--color-default-shadow);
  corner-shape: squircle;
}
.symbol-panel .symbol-search { flex: 0 0 auto; margin: .375rem .75rem 0; }
.symbol-categories { display: flex; align-items: center; gap: .125rem; padding: .25rem .375rem; overflow-x: auto; scrollbar-width: none; min-height: 2.5rem; }
.symbol-categories .icon-button { width: 2rem; height: 2rem; }
.symbol-categories .ico { font-size: 1.25rem; }
.symbol-categories > button:not(.icon-button) { flex: 0 0 auto; min-height: 1.875rem; padding-inline: .625rem; border-radius: 1rem; font-size: .78rem; }
.symbol-categories button.active { color: var(--color-primary); background: var(--color-primary-tint); }
.symbol-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 .625rem .625rem; overscroll-behavior: contain; }
.emoji-grid, .sticker-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.emoji-grid button, .sticker-option { display: grid; place-items: center; padding: .15rem; min-width: 0; aspect-ratio: 1; border-radius: .6rem; }
.emoji-grid button { font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 1.5rem; line-height: 1; }
.sticker-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sticker-option .sticker-canvas { width: 100%; height: auto; }
.sticker-option .sticker-emoji-fallback { font-size: 2rem; }
.emoji-grid button:hover, .sticker-option:hover { background: var(--color-item-hover); }
.symbol-tabs { position: relative; display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: var(--symbol-menu-footer-height); border-top: 1px solid var(--color-borders); }
.symbol-tabs .icon-button { width: 2.125rem; height: 2.125rem; }
.symbol-tabs .icon-button.on { color: var(--color-text); }
.symbol-tabs .symbol-erase { position: absolute; right: .375rem; }

@media (max-width: 640px) {
  .chat-search-row .icon-button { width: 2rem; height: 2rem; }
  .chat-search-row .icon-button .ico { font-size: 1.25rem; }
  .chat-search-filters { gap: .25rem; }
  .attachment-modal { width: 100%; }
  .symbol-panel { width: 100%; }
  .bubble.has-media { width: 84%; }
  .message-album { min-width: 0; }
  .media-stage { padding-inline: 2.35rem; }
}
