/* Light theme colors */
body[data-theme="light"] {
  --bg-main: #f2f7fd;
  --bg-main-accent: #dfecfb;
  --bg-panel: #ffffff;
  --bg-panel-2: #f5f9ff;
  --bg-hover: #e9f2fc;
  --bg-active: #d5e8fb;
  --line: #b8cee4;
  --text: #132c46;
  --muted: #486582;
  --text-soft: #5a7692;
  --primary: #1f7be8;
  --primary-2: #3063d4;
  --danger: #b63552;
  --shadow: 0 24px 56px rgba(59, 99, 142, 0.22);
}
body[data-theme="light"] .ui-placeholder-red {
  border-color: rgba(196, 44, 69, 0.62) !important;
  background-color: rgba(255, 92, 119, 0.14) !important;
  color: #a62a40 !important;
}
body[data-theme="light"] .chat-search-results {
  background: rgba(220, 236, 255, 0.42);
}
body[data-theme="light"] .official-account-badge {
  background: rgba(203, 224, 244, 0.88);
  box-shadow: inset 0 0 0 1px rgba(122, 164, 201, 0.42);
}
body[data-theme="light"] .chat-row-preview-avatar {
  border-color: rgba(106, 161, 212, 0.44);
  background: rgba(232, 244, 255, 0.92);
}
body[data-theme="light"] .chat-row-preview-avatar.fallback {
  color: #376996;
}
body[data-theme="light"] .chat-row-mention {
  border-color: rgba(83, 141, 200, 0.45);
  background: rgba(95, 155, 214, 0.2);
  color: #1d5c96;
}
body[data-theme="light"] .chat-storage-separator {
  border-top-color: rgba(105, 152, 198, 0.42);
}
body[data-theme="light"] .right-pane {
  background: #f4f9ff;
}
body[data-theme="light"] .right-pane.drop-file-active {
  box-shadow: inset 0 0 0 2px rgba(62, 137, 216, 0.82);
  background: linear-gradient(180deg, rgba(236, 247, 255, 0.98), rgba(226, 240, 255, 0.98));
}
body[data-theme="light"] .chat-drop-overlay {
  background: rgba(209, 227, 247, 0.66);
}
body[data-theme="light"] .chat-drop-overlay-label {
  border-color: rgba(68, 141, 216, 0.72);
  background: rgba(238, 247, 255, 0.95);
  color: #1f4f80;
}
body[data-theme="light"] .selection-cancel-btn {
  color: #1f6fbf;
}
body[data-theme="light"] .selection-range-card {
  border-color: rgba(121, 163, 200, 0.46);
  background: linear-gradient(180deg, #f8fbff, #edf4ff);
  color: #214567;
  box-shadow: 0 24px 60px rgba(71, 107, 142, 0.22);
}
body[data-theme="light"] .selection-range-card .modal-head h3 {
  color: #204668;
}
body[data-theme="light"] .chat-menu {
  background: linear-gradient(170deg, #f8fbff, #ecf4ff);
}
body[data-theme="light"] .chat-list-context-menu {
  background: linear-gradient(170deg, #f8fbff, #ecf4ff);
}
body[data-theme="light"] .chat-menu-item.active {
  color: #1f6fbf;
}
body[data-theme="light"] .chat-list-submenu {
  background: linear-gradient(170deg, #f8fbff, #ecf4ff);
}
body[data-theme="light"] .chat-list-folder-toggle-icon {
  color: #2f79c0;
}
body[data-theme="light"] .chat-list-folder-item.active .chat-list-folder-toggle-icon {
  color: #3d9b45;
}
body[data-theme="light"] .message-list::-webkit-scrollbar-track {
  background: rgba(189, 211, 235, 0.45);
}
body[data-theme="light"] .chat-mentions-empty {
  background: rgba(238, 245, 255, 0.92);
  color: #4b6280;
}
body[data-theme="light"] .chat-mentions-result {
  background: rgba(233, 243, 255, 0.86);
}
body[data-theme="light"] .chat-mentions-result:hover {
  background: rgba(219, 235, 254, 0.98);
  border-color: rgba(102, 158, 218, 0.56);
}
body[data-theme="light"] .chat-mentions-avatar {
  background: rgba(88, 145, 209, 0.23);
  color: #184a7c;
}
body[data-theme="light"] .message-list::-webkit-scrollbar-thumb {
  background: rgba(67, 127, 196, 0.55);
}
body[data-theme="light"] .chat-header {
  background: rgba(243, 249, 255, 0.98);
}
body[data-theme="light"] .chat-closure-banner {
  border-color: rgba(134, 173, 207, 0.48);
  background: linear-gradient(180deg, rgba(228, 241, 253, 0.98), rgba(215, 233, 250, 0.99)),
    radial-gradient(circle at 88% 24%, rgba(111, 170, 226, 0.18), transparent 52%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 8px 20px rgba(64, 108, 154, 0.16);
}
body[data-theme="light"] .chat-closure-banner-title {
  color: #1f5788;
}
body[data-theme="light"] .chat-closure-banner-meta {
  color: #2d628f;
}
body[data-theme="light"] .chat-closure-banner-timer {
  color: #1d4e78;
  border-color: rgba(116, 164, 205, 0.5);
  background: linear-gradient(180deg, rgba(245, 251, 255, 0.95), rgba(235, 246, 255, 0.9));
}
body[data-theme="light"] .chat-closure-banner.closed {
  border-color: rgba(124, 163, 200, 0.5);
  background: linear-gradient(160deg, rgba(214, 232, 249, 0.98), rgba(200, 223, 245, 0.98));
}
body[data-theme="light"] .chat-closure-banner.write-locked .chat-closure-banner-timer {
  border-color: rgba(201, 151, 105, 0.52);
  background: linear-gradient(180deg, rgba(252, 239, 225, 0.94), rgba(247, 227, 203, 0.9));
  color: #7d4e26;
}
body[data-theme="light"] .chat-closure-banner.write-allowed .chat-closure-banner-timer {
  border-color: rgba(104, 168, 128, 0.52);
  background: linear-gradient(180deg, rgba(235, 248, 240, 0.92), rgba(223, 242, 230, 0.88));
  color: #1f6841;
}
body[data-theme="light"] .chat-closure-banner.closed .chat-closure-banner-title {
  color: #205283;
}
body[data-theme="light"] .chat-closure-banner.closed .chat-closure-banner-meta {
  color: #35638f;
}
body[data-theme="light"] .chat-list,
body[data-theme="light"] .chat-search-results,
body[data-theme="light"] .participant-list,
body[data-theme="light"] .forward-target-list,
body[data-theme="light"] .chat-profile-info-column,
body[data-theme="light"] .chat-profile-modal-card,
body[data-theme="light"] .chat-profile-members-list,
body[data-theme="light"] .group-manage-modal-card,
body[data-theme="light"] .chat-media-modal-card,
body[data-theme="light"] .chat-media-content {
  scrollbar-color: rgba(67, 127, 196, 0.55) rgba(189, 211, 235, 0.45);
}
body[data-theme="light"] .left-pane-filters {
  background: var(--bg-panel);
}
body[data-theme="light"] .left-pane-filter-btn {
  border-color: rgba(126, 166, 205, 0.38);
  background: rgba(236, 245, 253, 0.92);
  color: #567792;
}
body[data-theme="light"] .left-pane-filter-btn:hover {
  background: rgba(223, 238, 251, 0.96);
  color: #294d72;
}
body[data-theme="light"] .left-pane-filter-btn.active {
  background: rgba(196, 224, 249, 0.95);
  border-color: rgba(102, 157, 211, 0.62);
  color: #214468;
  box-shadow: inset 0 0 0 1px rgba(150, 190, 228, 0.28);
}
body[data-theme="light"] .private-incoming-call-bar {
  border-bottom-color: rgba(120, 166, 209, 0.46);
  background: linear-gradient(180deg, rgba(224, 239, 252, 0.96), rgba(213, 232, 249, 0.96));
}
body[data-theme="light"] .private-incoming-call-label {
  color: #4f7698;
}
body[data-theme="light"] .private-incoming-call-caller {
  color: #1f476d;
}
body[data-theme="light"] .private-incoming-call-btn {
  border-color: rgba(118, 165, 210, 0.5);
  background: rgba(239, 247, 255, 0.95);
  color: #2a5379;
}
body[data-theme="light"] .private-incoming-call-btn.decline {
  border-color: rgba(201, 119, 138, 0.58);
  background: rgba(249, 227, 232, 0.92);
  color: #883b50;
}
body[data-theme="light"] .private-incoming-call-btn.accept {
  border-color: rgba(113, 176, 141, 0.62);
  background: rgba(222, 243, 231, 0.94);
  color: #245f3f;
}
body[data-theme="light"] .private-active-call-bar {
  border-bottom-color: rgba(120, 166, 209, 0.46);
  background: linear-gradient(180deg, rgba(221, 238, 252, 0.96), rgba(209, 231, 249, 0.96));
}
body[data-theme="light"] .private-active-call-label {
  color: #4e789f;
}
body[data-theme="light"] .private-active-call-caller {
  color: #1f466f;
}
body[data-theme="light"] .private-active-call-btn {
  border-color: rgba(118, 165, 210, 0.5);
  background: rgba(239, 247, 255, 0.95);
  color: #2a5379;
}
body[data-theme="light"] .private-active-call-btn.expand {
  border-color: rgba(110, 168, 218, 0.6);
  background: rgba(222, 239, 255, 0.95);
  color: #28597f;
}
body[data-theme="light"] .private-active-call-btn.hangup {
  border-color: rgba(201, 119, 138, 0.58);
  background: rgba(249, 227, 232, 0.92);
  color: #883b50;
}
body[data-theme="light"] .chat-list::-webkit-scrollbar-track,
body[data-theme="light"] .chat-search-results::-webkit-scrollbar-track,
body[data-theme="light"] .participant-list::-webkit-scrollbar-track,
body[data-theme="light"] .forward-target-list::-webkit-scrollbar-track,
body[data-theme="light"] .chat-profile-info-column::-webkit-scrollbar-track,
body[data-theme="light"] .chat-profile-modal-card::-webkit-scrollbar-track,
body[data-theme="light"] .chat-profile-members-list::-webkit-scrollbar-track,
body[data-theme="light"] .group-manage-modal-card::-webkit-scrollbar-track,
body[data-theme="light"] .chat-media-modal-card::-webkit-scrollbar-track,
body[data-theme="light"] .chat-media-content::-webkit-scrollbar-track {
  background: rgba(189, 211, 235, 0.45);
}
body[data-theme="light"] .chat-list::-webkit-scrollbar-thumb,
body[data-theme="light"] .chat-search-results::-webkit-scrollbar-thumb,
body[data-theme="light"] .participant-list::-webkit-scrollbar-thumb,
body[data-theme="light"] .forward-target-list::-webkit-scrollbar-thumb,
body[data-theme="light"] .chat-profile-info-column::-webkit-scrollbar-thumb,
body[data-theme="light"] .chat-profile-modal-card::-webkit-scrollbar-thumb,
body[data-theme="light"] .chat-profile-members-list::-webkit-scrollbar-thumb,
body[data-theme="light"] .group-manage-modal-card::-webkit-scrollbar-thumb,
body[data-theme="light"] .chat-media-modal-card::-webkit-scrollbar-thumb,
body[data-theme="light"] .chat-media-content::-webkit-scrollbar-thumb {
  background: rgba(67, 127, 196, 0.55);
}
body[data-theme="light"] .empty-chat-bubble {
  color: #1d324d;
  border-color: rgba(87, 142, 200, 0.26);
  background: radial-gradient(circle at top left, rgba(137, 190, 242, 0.48), transparent 58%),
    rgba(233, 244, 255, 0.84);
  box-shadow: 0 18px 44px rgba(74, 104, 138, 0.16);
}
body[data-theme="light"] .message {
  background: #fff;
}
body[data-theme="light"] .message-row-avatar {
  border-color: rgba(114, 167, 217, 0.46);
  background: rgba(236, 246, 255, 0.9);
}
body[data-theme="light"] .message-row-avatar.fallback {
  color: #3f6f9d;
}
body[data-theme="light"] .message.own {
  background: #e4f2ff;
}
body[data-theme="light"] .message.message-system {
  border-color: rgba(130, 168, 204, 0.42);
  background: rgba(208, 227, 245, 0.72);
}
body[data-theme="light"] .member-tag-badge {
  border-color: rgba(161, 132, 219, 0.62);
  background: rgba(214, 232, 249, 0.92);
  color: var(--text);
}
body[data-theme="light"] .message-system-text {
  color: #355d83;
}
body[data-theme="light"] .message.reply-swipe-ready {
  border-color: rgba(56, 129, 206, 0.58);
  box-shadow: 0 0 0 1px rgba(64, 140, 221, 0.28), 0 10px 24px rgba(63, 107, 156, 0.24);
}
body[data-theme="light"] .message.search-highlight {
  box-shadow: 0 0 0 2px rgba(42, 118, 204, 0.52), 0 0 18px rgba(49, 127, 214, 0.3);
}
body[data-theme="light"] .message-day-separator-chip {
  border-color: rgba(122, 159, 195, 0.42);
  background: rgba(225, 236, 247, 0.96);
  box-shadow: 0 10px 20px rgba(133, 162, 193, 0.2);
  color: #234364;
}
body[data-theme="light"] .jump-unread-btn {
  background: rgba(227, 240, 255, 0.6);
  color: #1c3959;
}
body[data-theme="light"] .composer-mention {
  border-color: rgba(131, 173, 215, 0.45);
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(228, 240, 253, 0.98));
  box-shadow: 0 10px 22px rgba(41, 87, 129, 0.16);
}
body[data-theme="light"] .composer-mention-head {
  border-bottom-color: rgba(124, 162, 200, 0.28);
}
body[data-theme="light"] .composer-mention-title {
  color: #2f5a84;
}
body[data-theme="light"] .composer-mention-close {
  background: rgba(255, 255, 255, 0.86);
  color: #33597e;
}
body[data-theme="light"] .composer-mention-close:hover {
  background: rgba(225, 238, 252, 0.96);
}
body[data-theme="light"] .composer-mention-item {
  border-bottom-color: rgba(118, 163, 209, 0.26);
}
body[data-theme="light"] .composer-mention-item:hover,
body[data-theme="light"] .composer-mention-item.active {
  background: rgba(185, 214, 241, 0.52);
}
body[data-theme="light"] .composer-mention-avatar {
  border-color: rgba(112, 161, 209, 0.38);
  background: rgba(174, 207, 237, 0.74);
  color: #224d77;
}
body[data-theme="light"] .composer-mention-name {
  color: #1f4367;
}
body[data-theme="light"] .composer-mention-meta {
  color: #3f6b92;
}
body[data-theme="light"] .message-upload-progress {
  background: rgba(36, 104, 178, 0.2);
}
body[data-theme="light"] .composer-reply {
  background: rgba(222, 237, 255, 0.68);
}
body[data-theme="light"] .composer-link-preview {
  background: rgba(222, 237, 255, 0.68);
}
body[data-theme="light"] .composer-link-preview-thumb {
  border-color: rgba(97, 152, 211, 0.38);
  background: rgba(194, 216, 243, 0.58);
  color: #24578f;
}
body[data-theme="light"] .message-bundle {
  background: rgba(207, 230, 255, 0.72);
}
body[data-theme="light"] .message-bundle.nested {
  background: rgba(191, 218, 247, 0.76);
}
body[data-theme="light"] .message-bundle.mode-reply .message-bundle-item {
  background: rgba(219, 236, 255, 0.88);
  border-color: rgba(91, 148, 206, 0.34);
}
body[data-theme="light"] .message-bundle.mode-forward .message-bundle-item {
  background: rgba(214, 232, 252, 0.92);
  border-color: rgba(103, 152, 204, 0.3);
}
body[data-theme="light"] .message-bundle.mode-reply .message-bundle-item.clickable:hover {
  background: rgba(206, 228, 252, 0.95);
  border-color: rgba(73, 135, 198, 0.58);
}
body[data-theme="light"] .message-bundle.mode-forward .message-bundle-item .message-bundle-sender {
  color: #24527e;
}
body[data-theme="light"] .message-bundle.mode-forward .message-bundle-item .message-bundle-text {
  color: #35587d;
}
body[data-theme="light"] .message-bundle.mode-reply .message-bundle-item.clickable:focus-visible {
  outline-color: rgba(47, 117, 186, 0.86);
}
body[data-theme="light"] .message-bundle-head {
  color: #1d74c4;
}
body[data-theme="light"] .message-bundle-sender {
  color: #204e7b;
}
body[data-theme="light"] .message-bundle-text {
  color: #2a4f77;
}
body[data-theme="light"] .message-bundle-text-toggle {
  background: rgba(72, 128, 188, 0.18);
  color: #1d5d98;
}
body[data-theme="light"] .message-bundle-toggle {
  background: rgba(72, 128, 188, 0.2);
  color: #1d5d98;
}
body[data-theme="light"] .message-link {
  color: #1b64ac;
  text-decoration-color: rgba(38, 105, 172, 0.48);
}
body[data-theme="light"] .message-link:hover {
  color: #0e4d8c;
  text-decoration-color: rgba(20, 91, 164, 0.72);
}
body[data-theme="light"] .message-mention {
  color: #1f5d98;
  border-bottom-color: rgba(31, 93, 152, 0.52);
}
body[data-theme="light"] .message-mention:hover {
  color: #0d4a84;
  border-bottom-color: rgba(13, 74, 132, 0.8);
}
body[data-theme="light"] .message-link-preview {
  border-color: rgba(82, 136, 196, 0.46);
  background: rgba(227, 239, 255, 0.84);
}
body[data-theme="light"] .message-link-preview:hover {
  border-color: rgba(64, 125, 191, 0.72);
  background: rgba(213, 232, 252, 0.95);
}
body[data-theme="light"] .message-link-preview-image {
  border-color: rgba(97, 152, 211, 0.38);
}
body[data-theme="light"] .message-link-preview-video {
  border-color: rgba(97, 152, 211, 0.38);
  background: rgba(197, 219, 244, 0.36);
}
body[data-theme="light"] .message-link-preview-site {
  color: #2a6cac;
}
body[data-theme="light"] .message-link-preview-title {
  color: #173a5f;
}
body[data-theme="light"] .message-link-preview-desc {
  color: #2f5479;
}
body[data-theme="light"] .message-invite-preview {
  background: linear-gradient(135deg, rgba(220, 238, 255, 0.96), rgba(199, 224, 249, 0.96));
}
body[data-theme="light"] .message-invite-preview-avatar {
  background: linear-gradient(145deg, #5aa8f5, #2f76d6);
  color: #ffffff;
}
body[data-theme="light"] .message-invite-preview-label {
  color: #246da7;
}
body[data-theme="light"] .message-invite-preview-title {
  color: #16395d;
}
body[data-theme="light"] .message-invite-preview-meta {
  color: #547696;
}
body[data-theme="light"] .message-invite-preview-join {
  border-color: rgba(55, 126, 196, 0.44);
  background: rgba(42, 125, 220, 0.14);
  color: #1f5e9f;
}
body[data-theme="light"] .message-invite-preview-join:hover:not(:disabled) {
  border-color: rgba(39, 117, 196, 0.72);
  background: rgba(42, 125, 220, 0.24);
  color: #164d84;
}
body[data-theme="light"] .message-media-group {
  background: rgba(209, 228, 249, 0.6);
  border-color: rgba(83, 132, 189, 0.28);
}
body[data-theme="light"] .message-media-group-head {
  color: #24609a;
}
body[data-theme="light"] .message-media-stack {
  background: rgba(209, 228, 249, 0.62);
  border-color: rgba(83, 132, 189, 0.3);
}
body[data-theme="light"] .message-media-stack-badge {
  background: rgba(233, 244, 255, 0.88);
  color: #215684;
  border-color: rgba(80, 128, 180, 0.58);
}
body[data-theme="light"] .message-media-stack-title {
  color: #2c628f;
}
body[data-theme="light"] .composer-voice {
  background: linear-gradient(180deg, rgba(230, 241, 252, 0.98), rgba(219, 234, 249, 0.98));
  border-color: rgba(111, 160, 209, 0.34);
}
body[data-theme="light"] .composer-voice.paused {
  background: linear-gradient(180deg, rgba(251, 242, 224, 0.98), rgba(247, 233, 206, 0.98));
  border-color: rgba(208, 169, 104, 0.34);
}
body[data-theme="light"] .composer-voice-status {
  color: #204a73;
}
body[data-theme="light"] .composer-voice-time {
  color: #416b93;
}
body[data-theme="light"] .composer-voice-delete,
body[data-theme="light"] .composer-voice-send {
  background: rgba(243, 249, 255, 0.92);
  border-color: rgba(105, 159, 214, 0.32);
}
body[data-theme="light"] .composer-voice-wave-bar {
  background: linear-gradient(180deg, rgba(114, 176, 235, 0.76), rgba(83, 141, 207, 0.58));
}
body[data-theme="light"] .message-voice {
  background: linear-gradient(180deg, rgba(219, 236, 252, 0.96), rgba(209, 228, 248, 0.95));
  border-color: rgba(103, 153, 206, 0.3);
}
body[data-theme="light"] .message-voice-play {
  border-color: rgba(105, 160, 214, 0.28);
  background: linear-gradient(180deg, rgba(87, 158, 229, 0.94), rgba(75, 136, 214, 0.9));
}
body[data-theme="light"] .message-voice-slider {
  background: transparent;
}
body[data-theme="light"] .message-voice-slider-track {
  background: rgba(88, 142, 198, 0.18);
}
body[data-theme="light"] .message-voice-slider-fill {
  background: rgba(84, 154, 225, 0.96);
}
body[data-theme="light"] .message-voice-meta {
  color: #356086;
}
body[data-theme="light"] .message-document {
  background: rgba(218, 233, 248, 0.86);
  border-color: rgba(101, 149, 202, 0.34);
}
body[data-theme="light"] .message-document:hover {
  background: rgba(204, 225, 247, 0.96);
}
body[data-theme="light"] .message-document-meta {
  color: #4d6f92;
}
body[data-theme="light"] .message-document-photo-preview {
  border-color: rgba(92, 141, 195, 0.35);
  background: rgba(220, 235, 250, 0.92);
}
body[data-theme="light"] .image-editor-stage {
  border-color: rgba(95, 137, 184, 0.45);
  background: rgba(224, 238, 255, 0.82);
}
body[data-theme="light"] .image-editor-canvas {
  background: #cfe3f9;
}
body[data-theme="light"] .image-editor-crop {
  border-color: #2f86dc;
  box-shadow: 0 0 0 9999px rgba(20, 44, 72, 0.22);
}
body[data-theme="light"] .image-editor-crop.avatar-circle {
  box-shadow: 0 0 0 9999px rgba(25, 52, 84, 0.3);
}
body[data-theme="light"] .image-editor-avatar-preview {
  border-color: rgba(123, 166, 205, 0.45);
  background: linear-gradient(180deg, rgba(232, 243, 255, 0.97), rgba(221, 236, 252, 0.97)),
    radial-gradient(circle at 76% 20%, rgba(114, 174, 229, 0.18), transparent 56%);
}
body[data-theme="light"] .image-editor-avatar-preview-title {
  color: #255584;
}
body[data-theme="light"] .image-editor-avatar-preview-item canvas {
  border-color: rgba(109, 160, 209, 0.5);
  background: rgba(244, 250, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
body[data-theme="light"] .image-editor-avatar-preview-item span {
  color: #3f6f9d;
}
body[data-theme="light"] .stack-editor-list {
  border-color: rgba(95, 137, 184, 0.45);
  background: rgba(224, 238, 255, 0.72);
}
body[data-theme="light"] .stack-editor-item {
  border-color: rgba(98, 143, 193, 0.34);
  background: rgba(214, 232, 251, 0.7);
}
body[data-theme="light"] .stack-editor-item.live-drag {
  box-shadow: 0 8px 20px rgba(72, 112, 156, 0.26), 0 0 0 1px rgba(55, 124, 195, 0.35);
}
body[data-theme="light"] .stack-editor-icon-btn {
  background: rgba(230, 241, 255, 0.95);
  border-color: rgba(86, 128, 177, 0.48);
  color: #2a5e8f;
}
body[data-theme="light"] .stack-editor-pool-list {
  border-color: rgba(95, 137, 184, 0.42);
  background: rgba(227, 240, 255, 0.78);
}
body[data-theme="light"] .stack-editor-pool-item {
  border-color: rgba(95, 137, 184, 0.3);
  background: rgba(215, 234, 253, 0.74);
}
body[data-theme="light"] .stack-editor-pool-add {
  border-color: rgba(86, 128, 177, 0.48);
  background: rgba(233, 244, 255, 0.96);
  color: #2a5e8f;
}
body[data-theme="light"] .stack-editor-pool-check {
  accent-color: #2f6db0;
}
body[data-theme="light"] .stack-editor-sort-reset-btn {
  border-color: rgba(86, 128, 177, 0.48);
  background: rgba(233, 244, 255, 0.96);
  color: #2a5e8f;
}
body[data-theme="light"] .media-compose-card.drop-file-active,
body[data-theme="light"] .stack-editor-card.drop-file-active {
  border-color: rgba(67, 143, 219, 0.72);
  box-shadow: 0 0 0 2px rgba(67, 143, 219, 0.32), 0 10px 24px rgba(63, 107, 156, 0.22);
}
body[data-theme="light"] .media-composer-thumb {
  background: rgba(228, 241, 255, 0.82);
  border-color: rgba(78, 126, 181, 0.38);
  color: #244f7b;
}
body[data-theme="light"] .media-composer-thumb.drag-over-before::after,
body[data-theme="light"] .media-composer-thumb.drag-over-after::after {
  background: #2b7ed0;
  box-shadow: 0 0 0 1px rgba(43, 126, 208, 0.2);
}
body[data-theme="light"] .media-composer-thumb.live-drag {
  box-shadow: 0 8px 18px rgba(72, 112, 156, 0.26), 0 0 0 1px rgba(55, 124, 195, 0.35);
}
body[data-theme="light"] .media-composer-thumb-stack-badge {
  background: rgba(237, 247, 255, 0.96);
  color: #2a5b88;
  border-color: rgba(78, 126, 181, 0.52);
}
body[data-theme="light"] .media-composer-thumb-doc-toggle {
  background: rgba(236, 246, 255, 0.95);
  color: #295784;
  border-color: rgba(78, 126, 181, 0.5);
}
body[data-theme="light"] .media-composer-thumb-doc-toggle.active {
  background: rgba(62, 132, 206, 0.92);
  color: #fff;
  border-color: rgba(50, 113, 180, 0.9);
}
body[data-theme="light"] .media-composer-thumb-remove {
  background: rgba(236, 246, 255, 0.96);
  color: #2a5e8f;
  border-color: rgba(86, 128, 177, 0.56);
}
body[data-theme="light"] .media-viewer-thumbs {
  background: rgba(237, 246, 255, 0.95);
  border-top-color: rgba(92, 137, 189, 0.3);
}
body[data-theme="light"] .media-viewer-thumb {
  background: rgba(231, 242, 255, 0.9);
  border-color: rgba(87, 130, 181, 0.4);
  color: #1f4f84;
}
body[data-theme="light"] .media-viewer-nav-zone {
  background: linear-gradient(90deg, rgba(217, 234, 250, 0.56), rgba(217, 234, 250, 0));
  color: #2e567f;
}
body[data-theme="light"] .media-viewer-nav-zone.next {
  background: linear-gradient(270deg, rgba(217, 234, 250, 0.56), rgba(217, 234, 250, 0));
}
body[data-theme="light"] .side-menu-action-icon {
  background: rgba(60, 135, 210, 0.12);
  color: #2d72b3;
}
body[data-theme="light"] .folder-menu-overlay {
  background: rgba(80, 100, 120, 0.34);
}
body[data-theme="light"] .folder-menu-panel {
  border-color: rgba(168, 192, 217, 0.76);
  background: linear-gradient(180deg, #f5faff, #edf5ff 55%, #e8f1fc);
  color: #18334e;
  box-shadow: 18px 0 42px rgba(74, 105, 139, 0.24);
}
body[data-theme="light"] .folder-menu-kicker,
body[data-theme="light"] .folder-menu-section-title {
  color: #2473b8;
}
body[data-theme="light"] .folder-menu-close {
  border-color: rgba(114, 158, 202, 0.46);
  background: rgba(229, 241, 253, 0.92);
  color: #23496d;
}
body[data-theme="light"] .folder-menu-hero {
  background: rgba(216, 232, 248, 0.82);
}
body[data-theme="light"] .folder-menu-hero p,
body[data-theme="light"] .folder-menu-row-meta,
body[data-theme="light"] .folder-menu-note {
  color: #58728d;
}
body[data-theme="light"] .folder-menu-row-title,
body[data-theme="light"] .folder-menu-radio-row {
  color: #18334e;
}
body[data-theme="light"] .folder-menu-empty {
  border-color: rgba(96, 145, 193, 0.32);
  color: #607e9b;
  background: rgba(234, 244, 254, 0.62);
}
body[data-theme="light"] .folder-menu-delete-btn:hover {
  background: rgba(217, 68, 99, 0.12);
  color: #bb3655;
}
body[data-theme="light"] .folder-menu-edit-btn:hover {
  background: rgba(64, 136, 210, 0.14);
  color: #2d72b3;
}
body[data-theme="light"] .folder-menu-row:hover,
body[data-theme="light"] .folder-menu-recommendation:hover {
  background: rgba(201, 224, 247, 0.64);
}
body[data-theme="light"] .folder-menu-divider {
  background: rgba(210, 226, 242, 0.9);
  border-color: rgba(174, 200, 224, 0.72);
}
body[data-theme="light"] .folder-create-field {
  color: #59738e;
}
body[data-theme="light"] .folder-create-field input {
  border-color: rgba(116, 158, 198, 0.5);
  background: rgba(248, 252, 255, 0.96);
  color: #17324d;
}
body[data-theme="light"] .folder-create-picker-title {
  color: #244a70;
}
body[data-theme="light"] .folder-create-chat-list {
  border-color: rgba(116, 158, 198, 0.44);
  background: rgba(236, 246, 255, 0.68);
}
body[data-theme="light"] .folder-create-chat-row {
  border-color: rgba(130, 169, 207, 0.34);
  background: rgba(249, 253, 255, 0.86);
  color: #1e3c5a;
}
body[data-theme="light"] .folder-create-chat-row:hover {
  border-color: rgba(77, 139, 199, 0.52);
  background: rgba(224, 239, 253, 0.92);
}
body[data-theme="light"] .folder-create-chat-row:has(.folder-create-chat-checkbox:checked) {
  border-color: rgba(62, 135, 205, 0.58);
  background: linear-gradient(135deg, rgba(209, 232, 253, 0.98), rgba(190, 219, 247, 0.92));
}
body[data-theme="light"] .folder-create-chat-title {
  color: #163653;
}
body[data-theme="light"] .folder-create-chat-meta {
  color: #617f9c;
}
body[data-theme="light"] .folder-create-chat-empty {
  border-color: rgba(103, 150, 197, 0.38);
  color: #607d98;
  background: rgba(248, 252, 255, 0.72);
}
body[data-theme="light"] .chat-profile-modal-card {
  border-color: rgba(126, 165, 204, 0.58);
  background: radial-gradient(120% 65% at 12% -10%, rgba(133, 187, 238, 0.42) 0%, rgba(133, 187, 238, 0) 62%),
    linear-gradient(176deg, #e6f3ff 0%, #dcebfa 58%, #d4e5f6 100%);
  box-shadow: 0 30px 58px rgba(42, 79, 115, 0.26);
}
body[data-theme="light"] .chat-profile-top {
  background: radial-gradient(circle at 15% 16%, rgba(255, 255, 255, 0.45) 0 4px, transparent 5px),
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.4) 0 4px, transparent 5px),
    linear-gradient(162deg, #8db6de 0%, #7ca5ce 44%, #7398c2 100%);
  border-bottom-color: rgba(120, 158, 194, 0.38);
}
body[data-theme="light"] .chat-profile-name {
  color: #f7fbff;
}
body[data-theme="light"] .chat-profile-status {
  color: rgba(241, 250, 255, 0.95);
}
body[data-theme="light"] .chat-profile-quick-actions {
  background: rgba(205, 226, 245, 0.8);
  border-bottom-color: rgba(124, 163, 201, 0.32);
}
body[data-theme="light"] .chat-profile-quick-btn {
  border-color: rgba(132, 171, 208, 0.5);
  background: linear-gradient(180deg, rgba(230, 241, 253, 0.96), rgba(219, 233, 248, 0.95));
  color: #234869;
}
body[data-theme="light"] .chat-profile-quick-btn.active {
  border-color: rgba(88, 143, 197, 0.65);
  background: linear-gradient(180deg, rgba(204, 228, 249, 0.98), rgba(191, 218, 244, 0.97));
}
body[data-theme="light"] .chat-profile-quick-btn.muted {
  border-color: rgba(124, 162, 196, 0.5);
  background: linear-gradient(180deg, rgba(223, 237, 251, 0.96), rgba(214, 230, 247, 0.96));
}
body[data-theme="light"] #chatProfileMoreBtn:disabled {
  border-color: rgba(132, 171, 208, 0.5);
  background: linear-gradient(180deg, rgba(230, 241, 253, 0.96), rgba(219, 233, 248, 0.95));
  color: #234869;
}
body[data-theme="light"] .chat-profile-info-block {
  background: rgba(238, 247, 255, 0.92);
  border-bottom-color: rgba(134, 172, 210, 0.26);
}
body[data-theme="light"] .chat-profile-main-line {
  color: #1f4569;
}
body[data-theme="light"] .chat-profile-bio-toggle-btn {
  color: #2b6ea4;
}
body[data-theme="light"] .chat-profile-bio-toggle-btn:hover {
  color: #1e5a8a;
}
body[data-theme="light"] .chat-profile-main-line#chatProfileUsername {
  color: #2a73af;
}
body[data-theme="light"] .chat-profile-sub-line {
  color: #567a9d;
}
body[data-theme="light"] .chat-profile-type-line {
  color: #3d6488;
}
body[data-theme="light"] .chat-profile-stats {
  background: rgba(233, 245, 255, 0.95);
}
body[data-theme="light"] .chat-profile-stat-row {
  color: #1f4467;
  background: rgba(224, 238, 252, 0.9);
  border-color: rgba(130, 169, 207, 0.34);
}
body[data-theme="light"] .chat-profile-stat-ico {
  color: #3f7bb1;
}
body[data-theme="light"] .chat-profile-stat-action:hover {
  background: rgba(184, 216, 247, 0.88);
  border-color: rgba(106, 152, 198, 0.5);
}
body[data-theme="light"] .chat-profile-stat-action:focus-visible {
  background: rgba(176, 211, 244, 0.9);
  box-shadow: inset 0 0 0 1px rgba(101, 149, 196, 0.58);
}
body[data-theme="light"] .chat-profile-members-block {
  background: rgba(230, 243, 255, 0.96);
  border-top-color: rgba(129, 168, 206, 0.3);
}
body[data-theme="light"] .chat-profile-members-title-wrap {
  color: #1f4467;
}
body[data-theme="light"] .chat-profile-members-ico {
  color: #3f7fb5;
}
body[data-theme="light"] .chat-profile-members-btn {
  border-color: rgba(129, 168, 205, 0.48);
  background: rgba(221, 236, 251, 0.96);
  color: #2d5e8b;
}
body[data-theme="light"] .chat-profile-members-btn:hover {
  background: rgba(203, 223, 244, 0.97);
  border-color: rgba(101, 148, 194, 0.58);
}
body[data-theme="light"] .chat-profile-members-btn.active {
  border-color: rgba(51, 126, 198, 0.58);
  background: rgba(181, 219, 252, 0.92);
  color: #123a5d;
}
body[data-theme="light"] .chat-profile-members-search {
  border-color: rgba(126, 167, 206, 0.46);
  background: rgba(239, 247, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}
body[data-theme="light"] .chat-profile-members-search-ico {
  color: #3c75aa;
}
body[data-theme="light"] .chat-profile-members-search input {
  color: #1e3f60;
}
body[data-theme="light"] .chat-profile-members-search input::placeholder {
  color: #6684a2;
}
body[data-theme="light"] .chat-profile-members-search-clear {
  background: rgba(204, 226, 247, 0.96);
  color: #2b5b87;
}
body[data-theme="light"] .chat-profile-members-search-clear:hover {
  background: rgba(178, 212, 245, 0.98);
}
body[data-theme="light"] .chat-profile-members-list {
  background: rgba(233, 245, 255, 0.98);
  border-top-color: rgba(128, 168, 206, 0.24);
}
body[data-theme="light"] .chat-profile-members-column {
  border-left-color: rgba(128, 168, 206, 0.34);
  background: rgba(226, 242, 255, 0.86);
}
body[data-theme="light"] .chat-profile-member-row {
  background: rgba(222, 238, 252, 0.86);
  border-color: rgba(129, 169, 207, 0.32);
}
body[data-theme="light"] .chat-profile-member-row.clickable:hover {
  background: rgba(198, 223, 246, 0.92);
  border-color: rgba(103, 153, 201, 0.46);
}
body[data-theme="light"] .chat-profile-member-row.clickable:focus-visible {
  background: rgba(191, 218, 244, 0.94);
  box-shadow: inset 0 0 0 1px rgba(84, 138, 191, 0.55);
}
body[data-theme="light"] .chat-profile-member-name {
  color: #163b5d;
}
body[data-theme="light"] .chat-profile-member-status {
  color: #587da0;
}
body[data-theme="light"] .chat-profile-member-status.online {
  color: #1670b6;
}
body[data-theme="light"] .chat-profile-member-role {
  background: rgba(214, 232, 249, 0.92);
  border-color: rgba(161, 132, 219, 0.62);
  color: var(--text);
}
body[data-theme="light"] .chat-profile-member-role.owner {
  border-color: rgba(161, 132, 219, 0.62);
  color: #704ca8;
}
body[data-theme="light"] .chat-profile-member-role.admin {
  border-color: rgba(93, 186, 123, 0.56);
  color: #2f8351;
}
body[data-theme="light"] .chat-profile-member-remove-btn {
  color: #2e72b2;
}
body[data-theme="light"] .chat-profile-member-remove-btn:hover {
  color: #1f527f;
  background: rgba(153, 193, 229, 0.42);
}
body[data-theme="light"] .chat-profile-members-empty {
  color: #557ea3;
  border-color: rgba(126, 167, 206, 0.44);
  background: rgba(221, 237, 251, 0.8);
}
body[data-theme="light"] .chat-member-tag-target {
  border-color: rgba(126, 163, 198, 0.3);
  background: rgba(235, 244, 252, 0.84);
}
body[data-theme="light"] .chat-member-tag-card {
  border-color: rgba(122, 165, 203, 0.58);
  background: linear-gradient(178deg, #ecf6ff 0%, #dcecff 100%);
  color: #214567;
  box-shadow: 0 28px 52px rgba(38, 72, 108, 0.24);
}
body[data-theme="light"] .chat-member-tag-card .modal-head h3 {
  color: #204668;
}
body[data-theme="light"] .chat-member-tag-target-name {
  color: #1e3650;
}
body[data-theme="light"] .chat-member-tag-target-hint,
body[data-theme="light"] .chat-member-tag-note {
  color: #6280a1;
}
body[data-theme="light"] .chat-profile-member-context-menu {
  border-color: rgba(127, 166, 206, 0.5);
  background: rgba(241, 247, 255, 0.97);
  box-shadow: 0 20px 36px rgba(39, 73, 109, 0.24);
}
body[data-theme="light"] .chat-profile-more-menu {
  border-color: rgba(127, 166, 206, 0.5);
  background: rgba(241, 247, 255, 0.98);
  box-shadow: 0 20px 36px rgba(39, 73, 109, 0.24);
}
body[data-theme="light"] .chat-profile-more-item {
  color: #214365;
}
body[data-theme="light"] .chat-profile-more-item:hover {
  background: rgba(189, 220, 249, 0.62);
}
body[data-theme="light"] .chat-profile-more-item.danger {
  color: #b04d4d;
}
body[data-theme="light"] .chat-profile-more-item.danger:hover {
  background: rgba(232, 174, 181, 0.32);
}
body[data-theme="light"] .contact-edit-card {
  border-color: rgba(126, 165, 204, 0.58);
  background: radial-gradient(120% 70% at 16% -10%, rgba(133, 187, 238, 0.34) 0%, rgba(133, 187, 238, 0) 60%),
    linear-gradient(176deg, #edf7ff 0%, #dfedfb 54%, #d4e5f6 100%);
  color: #1f4569;
  box-shadow: 0 28px 52px rgba(42, 79, 115, 0.24);
}
body[data-theme="light"] .contact-edit-card .modal-head h3 {
  color: #204668;
}
body[data-theme="light"] .contact-edit-avatar-btn {
  border-color: rgba(132, 171, 208, 0.5);
  background: linear-gradient(145deg, #7fb0e0, #5da4e8);
  color: #f8fcff;
}
body[data-theme="light"] .contact-edit-field {
  color: #567a9d;
}
body[data-theme="light"] .contact-edit-field input,
body[data-theme="light"] .contact-edit-field textarea {
  border-color: rgba(129, 168, 205, 0.48);
  background: rgba(247, 251, 255, 0.94);
  color: #1d3f60;
}
body[data-theme="light"] .contact-edit-field input:focus,
body[data-theme="light"] .contact-edit-field textarea:focus {
  border-color: rgba(75, 141, 203, 0.72);
  box-shadow: 0 0 0 3px rgba(83, 145, 202, 0.18);
}
body[data-theme="light"] .contact-delete-card {
  border-color: rgba(207, 120, 132, 0.5);
  background: radial-gradient(120% 70% at 12% -12%, rgba(228, 122, 138, 0.26) 0%, rgba(228, 122, 138, 0) 60%),
    linear-gradient(176deg, #fff2f4 0%, #eaf4ff 56%, #dcecff 100%);
  color: #1f4569;
  box-shadow: 0 28px 52px rgba(42, 79, 115, 0.24);
}
body[data-theme="light"] .folder-delete-card {
  border-color: rgba(207, 120, 132, 0.5);
}
body[data-theme="light"] .contact-delete-card .modal-head h3 {
  color: #8f3343;
}
body[data-theme="light"] .contact-delete-text {
  color: #4f7192;
}
body[data-theme="light"] .contact-delete-text strong {
  color: #7f2d3a;
}
body[data-theme="light"] .chat-profile-member-context-item {
  color: #214365;
  border-top-color: rgba(121, 161, 201, 0.26);
}
body[data-theme="light"] .chat-profile-member-context-item:hover {
  background: rgba(189, 220, 249, 0.62);
}
body[data-theme="light"] .chat-profile-member-context-item.danger {
  color: #b04d4d;
}
body[data-theme="light"] .chat-profile-member-context-item.danger:hover {
  background: rgba(244, 196, 196, 0.46);
}
body[data-theme="light"] .chat-profile-member-context-ico {
  color: #356995;
}
body[data-theme="light"] .chat-profile-add-members-card {
  border-color: rgba(122, 164, 203, 0.56);
  background: linear-gradient(178deg, #edf7ff 0%, #e1f0ff 100%);
  box-shadow: 0 24px 48px rgba(39, 73, 109, 0.22);
}
body[data-theme="light"] .chat-profile-add-members-card .modal-head {
  background: linear-gradient(180deg, rgba(223, 238, 252, 0.98), rgba(214, 233, 250, 0.96));
  border-bottom-color: rgba(124, 162, 198, 0.3);
}
body[data-theme="light"] .chat-profile-add-members-card .modal-head h3 {
  color: #214568;
}
body[data-theme="light"] .chat-profile-add-members-card .search-wrap input {
  border-color: rgba(119, 161, 199, 0.5);
  background: rgba(237, 247, 255, 0.94);
  color: #224467;
}
body[data-theme="light"] .chat-profile-add-members-card .search-wrap input:focus {
  border-color: rgba(97, 149, 198, 0.7);
  box-shadow: 0 0 0 2px rgba(101, 156, 208, 0.18);
}
body[data-theme="light"] .chat-profile-add-members-card .participant-list {
  border-color: rgba(121, 163, 201, 0.42);
  background: rgba(234, 245, 255, 0.93);
}
body[data-theme="light"] .chat-profile-add-members-card .participant-item {
  border-bottom-color: rgba(126, 166, 202, 0.28);
  color: #1e4265;
}
body[data-theme="light"] .chat-profile-add-members-card .participant-item:hover {
  background: rgba(190, 220, 247, 0.78);
}
body[data-theme="light"] .chat-profile-add-members-card .participant-item.selected {
  background: rgba(169, 208, 242, 0.8);
}
body[data-theme="light"] .chat-profile-add-members-card .participant-meta {
  color: #4f7598;
}
body[data-theme="light"] .chat-profile-add-members-card .modal-actions {
  background: linear-gradient(180deg, rgba(222, 238, 252, 0.94), rgba(212, 232, 250, 0.98));
  border-top-color: rgba(123, 164, 201, 0.32);
}
body[data-theme="light"] .group-manage-modal-card {
  border-color: rgba(122, 165, 203, 0.58);
  background: linear-gradient(178deg, #ecf6ff 0%, #dcecff 100%);
  box-shadow: 0 28px 52px rgba(38, 72, 108, 0.24);
}
body[data-theme="light"] .group-manage-members-card {
  border-color: rgba(122, 165, 203, 0.58);
  background: linear-gradient(178deg, #ecf6ff 0%, #dcecff 100%);
  box-shadow: 0 28px 52px rgba(38, 72, 108, 0.24);
}
body[data-theme="light"] .group-admin-permissions-card {
  border-color: rgba(122, 165, 203, 0.58);
  background: linear-gradient(178deg, #ecf6ff 0%, #dcecff 100%);
  box-shadow: 0 28px 52px rgba(38, 72, 108, 0.24);
}
body[data-theme="light"] .group-manage-members-list {
  border-color: rgba(123, 164, 201, 0.32);
  background: rgba(231, 243, 255, 0.88);
}
body[data-theme="light"] .group-manage-members-search {
  border-color: rgba(123, 164, 201, 0.36);
  background: rgba(231, 243, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}
body[data-theme="light"] .group-manage-members-search-ico {
  color: #3c75aa;
}
body[data-theme="light"] .group-manage-members-search input {
  color: #1e3f60;
}
body[data-theme="light"] .group-manage-members-search input::placeholder {
  color: #6684a2;
}
body[data-theme="light"] .group-manage-members-search-clear {
  background: rgba(204, 226, 247, 0.96);
  color: #2b5b87;
}
body[data-theme="light"] .group-manage-members-search-clear:hover {
  background: rgba(178, 212, 245, 0.98);
}
body[data-theme="light"] .group-manage-head {
  border-bottom-color: rgba(123, 163, 199, 0.3);
  background: linear-gradient(180deg, rgba(220, 236, 252, 0.98), rgba(210, 230, 248, 0.95));
}
body[data-theme="light"] .group-manage-head h3 {
  color: #204668;
}
body[data-theme="light"] .group-manage-top {
  background: rgba(232, 244, 255, 0.84);
  border-bottom-color: rgba(126, 168, 205, 0.24);
}
body[data-theme="light"] .group-manage-field {
  color: #4f7598;
}
body[data-theme="light"] .group-manage-field input,
body[data-theme="light"] .group-manage-field textarea {
  border-color: rgba(121, 163, 200, 0.48);
  background: rgba(236, 246, 255, 0.94);
  color: #214567;
}
body[data-theme="light"] .group-manage-field input:focus,
body[data-theme="light"] .group-manage-field textarea:focus {
  border-color: rgba(97, 148, 198, 0.72);
  box-shadow: 0 0 0 2px rgba(102, 156, 206, 0.18);
}
body[data-theme="light"] .group-manage-static-list {
  border-top-color: rgba(124, 164, 201, 0.28);
  border-bottom-color: rgba(124, 164, 201, 0.28);
  background: rgba(228, 242, 255, 0.84);
}
body[data-theme="light"] .group-manage-row {
  color: #234466;
  background: rgba(218, 235, 251, 0.88);
  border-color: rgba(123, 163, 200, 0.34);
}
body[data-theme="light"] .group-manage-invite-controls input {
  border-color: rgba(124, 166, 203, 0.52);
  background: rgba(238, 247, 255, 0.95);
  color: #1f456a;
}
body[data-theme="light"] .group-manage-invite-controls input:focus {
  border-color: rgba(95, 147, 191, 0.76);
  box-shadow: 0 0 0 2px rgba(93, 148, 197, 0.18);
}
body[data-theme="light"] .group-manage-row-button:hover {
  border-color: rgba(110, 156, 197, 0.56);
  background: rgba(207, 228, 247, 0.98);
}
body[data-theme="light"] .group-manage-row span:last-child {
  color: #2d6ba0;
}
body[data-theme="light"] .group-manage-danger {
  color: #b04865;
  border-color: rgba(198, 115, 137, 0.46);
  background: rgba(250, 219, 226, 0.72);
}
body[data-theme="light"] .chat-profile-closure-notice {
  border-color: rgba(198, 144, 82, 0.42);
  background: rgba(255, 239, 210, 0.88);
}
body[data-theme="light"] .chat-profile-closure-text {
  color: #6e4616;
}
body[data-theme="light"] .chat-profile-closure-cancel-btn {
  border-color: rgba(102, 148, 188, 0.46);
  background: rgba(227, 241, 255, 0.92);
  color: #244c73;
}
body[data-theme="light"] .chat-profile-closure-cancel-btn:hover {
  border-color: rgba(92, 138, 178, 0.66);
  background: rgba(218, 236, 252, 0.98);
}
body[data-theme="light"] .group-closure-title {
  color: #17314d;
}
body[data-theme="light"] .group-closure-note,
body[data-theme="light"] .group-closure-slider-labels {
  color: #4a7193;
}
body[data-theme="light"] .group-closure-step-dot {
  border-color: rgba(124, 165, 201, 0.34);
  color: #3e6890;
  background: rgba(226, 240, 252, 0.92);
}
body[data-theme="light"] .group-closure-step-dot.active {
  color: #ffffff;
  background: rgba(75, 143, 206, 0.88);
  border-color: rgba(79, 145, 207, 0.92);
}
body[data-theme="light"] .group-closure-toggle-row {
  border-color: rgba(123, 165, 202, 0.34);
  background: rgba(222, 238, 253, 0.9);
  color: #224162;
}
body[data-theme="light"] .group-closure-final-hint {
  color: #b56446;
}
body[data-theme="light"] .group-closure-final-hint.error {
  color: #b43f2f;
}
body[data-theme="light"] .group-closure-slider::-webkit-slider-runnable-track {
  border-color: rgba(93, 140, 180, 0.44);
  background: linear-gradient(
    90deg,
    #4b95d7 0%,
    #4b95d7 var(--group-closure-progress),
    rgba(168, 199, 228, 0.56) var(--group-closure-progress),
    rgba(168, 199, 228, 0.56) 100%
  );
}
body[data-theme="light"] .group-closure-slider::-moz-range-track {
  border-color: rgba(93, 140, 180, 0.44);
  background: rgba(168, 199, 228, 0.56);
}
body[data-theme="light"] .group-closure-slider::-moz-range-progress {
  background: #4b95d7;
}
body[data-theme="light"] .group-manage-actions {
  border-top-color: rgba(126, 168, 205, 0.3);
  background: linear-gradient(180deg, rgba(221, 238, 252, 0.94), rgba(211, 232, 250, 0.97));
}
body[data-theme="light"] .group-admin-permissions-target {
  color: #2f618f;
}
body[data-theme="light"] .chat-media-head {
  background: rgba(240, 247, 255, 0.98);
  border-bottom-color: rgba(138, 177, 216, 0.2);
}
body[data-theme="light"] .chat-media-title {
  color: #17314f;
}
body[data-theme="light"] .chat-media-head-btn {
  background: rgba(233, 243, 255, 0.94);
  border-color: rgba(118, 160, 201, 0.34);
  color: #27496e;
}
body[data-theme="light"] .chat-media-search-wrap,
body[data-theme="light"] .chat-media-content {
  background: rgba(244, 250, 255, 0.98);
}
body[data-theme="light"] .chat-media-search-wrap {
  border-bottom-color: rgba(138, 177, 216, 0.2);
}
body[data-theme="light"] .chat-media-search-box {
  background: rgba(236, 246, 255, 0.96);
  border-color: rgba(118, 160, 201, 0.4);
  color: #24456a;
}
body[data-theme="light"] .chat-media-search-box input {
  color: #24456a;
}
body[data-theme="light"] .chat-media-group-title {
  color: #183555;
}
body[data-theme="light"] .chat-media-empty {
  color: #5d7b9c;
}
body[data-theme="light"] .chat-media-file-row,
body[data-theme="light"] .chat-media-link-row {
  border-top-color: rgba(136, 176, 216, 0.2);
}
body[data-theme="light"] .chat-media-voice-row {
  border-top-color: rgba(136, 176, 216, 0.2);
}
body[data-theme="light"] .chat-media-file-row:hover,
body[data-theme="light"] .chat-media-link-row:hover {
  background: rgba(49, 108, 201, 0.12);
}
body[data-theme="light"] .chat-media-file-name,
body[data-theme="light"] .chat-media-link-title {
  color: #17324f;
}
body[data-theme="light"] .chat-media-file-size,
body[data-theme="light"] .chat-media-file-date,
body[data-theme="light"] .chat-media-link-summary {
  color: #4d6f93;
}
body[data-theme="light"] .channel-delete-modal-card {
  border-color: rgba(121, 171, 217, 0.34);
  background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
  box-shadow: 0 26px 60px rgba(88, 128, 176, 0.22);
}
body[data-theme="light"] .channel-delete-head {
  border-bottom-color: rgba(147, 181, 214, 0.28);
}
body[data-theme="light"] .channel-delete-note {
  color: #567598;
}
body[data-theme="light"] .channel-delete-summary {
  border-color: rgba(135, 175, 214, 0.28);
  background: rgba(255, 255, 255, 0.78);
}
body[data-theme="light"] .channel-delete-summary-label {
  color: #6888ab;
}
body[data-theme="light"] .channel-delete-summary-name {
  color: #17324f;
}
body[data-theme="light"] .channel-delete-actions {
  border-top-color: rgba(147, 181, 214, 0.26);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(231, 241, 252, 0.98));
}
body[data-theme="light"] .forward-modal-card {
  border-color: rgba(131, 167, 201, 0.58);
  background: linear-gradient(180deg, #eef7ff, #e5f2ff 66%, #e0efff 100%);
  color: #1f3855;
  box-shadow: 0 18px 46px rgba(40, 74, 110, 0.2);
}
body[data-theme="light"] .forward-modal-card .modal-head h3 {
  color: #20486f;
}
body[data-theme="light"] .forward-modal-card .search-wrap input {
  border-bottom-color: #7fa9d1;
  color: #23496f;
}
body[data-theme="light"] .forward-modal-card .search-wrap input::placeholder {
  color: #6b8db0;
}
body[data-theme="light"] .forward-modal-card .search-wrap input:focus {
  border-bottom-color: #4d8cc6;
}
body[data-theme="light"] .forward-list-section {
  color: #51779e;
  background: rgba(216, 232, 249, 0.82);
  border-bottom-color: #bfd5eb;
}
body[data-theme="light"] .forward-target-list {
  border-color: #bfd5eb;
  background: rgba(244, 250, 255, 0.94);
}
body[data-theme="light"] .forward-target-row {
  color: #1f3855;
  border-bottom-color: #c8dcef;
}
body[data-theme="light"] .forward-target-row:hover {
  background: rgba(119, 170, 227, 0.2);
}
body[data-theme="light"] .forward-target-row.selected {
  background: rgba(102, 164, 230, 0.3);
}
body[data-theme="light"] .forward-target-meta,
body[data-theme="light"] .forward-target-empty {
  color: #567a9f;
}
body[data-theme="light"] .forward-modal-card .ghost-btn {
  border-color: rgba(122, 164, 202, 0.52);
  background: rgba(236, 247, 255, 0.95);
  color: #426f99;
}
body[data-theme="light"] .forward-modal-card .ghost-btn:hover {
  background: rgba(208, 228, 247, 0.9);
  color: #21456b;
}
body[data-theme="light"] .settings-modal-card {
  background: linear-gradient(180deg, #eef7ff, #e5f2ff 66%, #e0efff 100%);
  border-color: rgba(131, 167, 201, 0.58);
  color: #1f3855;
  box-shadow: 0 18px 46px rgba(40, 74, 110, 0.2);
}
body[data-theme="light"] .settings-modal-head h3 {
  color: #20486f;
}
body[data-theme="light"] .settings-head-btn {
  border-color: rgba(120, 158, 194, 0.54);
  background: rgba(237, 246, 255, 0.94);
  color: #2b5b87;
}
body[data-theme="light"] .settings-home-profile-card {
  background: linear-gradient(180deg, #d6e9fb, #cfe3f7);
  border-bottom-color: rgba(120, 157, 193, 0.4);
  color: #204262;
}
body[data-theme="light"] .settings-home-profile-name {
  color: #1f456b;
}
body[data-theme="light"] .settings-home-profile-username {
  color: #376996;
}
body[data-theme="light"] .settings-entry-btn {
  border-bottom-color: rgba(121, 159, 195, 0.3);
  color: #224365;
}
body[data-theme="light"] .settings-entry-btn:hover {
  background: rgba(131, 177, 222, 0.2);
}
body[data-theme="light"] .settings-entry-separator {
  border-top-color: rgba(160, 190, 220, 0.52);
  border-bottom-color: rgba(160, 190, 220, 0.38);
  background: rgba(214, 229, 244, 0.82);
}
body[data-theme="light"] .settings-entry-separator-danger {
  border-top-color: rgba(205, 78, 91, 0.36);
  border-bottom-color: rgba(205, 78, 91, 0.28);
  background: rgba(255, 228, 232, 0.72);
}
body[data-theme="light"] .settings-entry-btn.settings-entry-danger {
  border-bottom-color: rgba(204, 77, 90, 0.26);
  color: #8e2433;
}
body[data-theme="light"] .settings-entry-btn.settings-entry-danger .settings-entry-icon {
  color: #b43245;
}
body[data-theme="light"] .settings-entry-btn.settings-entry-danger .settings-entry-hint {
  color: #9d3f4f;
}
body[data-theme="light"] .settings-entry-btn.settings-entry-danger:hover {
  background: rgba(219, 106, 120, 0.16);
}
body[data-theme="light"] .settings-entry-hint {
  color: #547ca4;
}
body[data-theme="light"] .settings-language-select {
  background: rgba(239, 247, 255, 0.95);
  border-color: rgba(118, 159, 198, 0.42);
  color: #1f3a55;
}
body[data-theme="light"] .settings-page-head {
  border-bottom-color: rgba(121, 159, 195, 0.34);
  background: rgba(218, 236, 252, 0.72);
}
body[data-theme="light"] .settings-page-title {
  color: #234a71;
}
body[data-theme="light"] .settings-back-btn {
  border-color: rgba(122, 164, 202, 0.52);
  background: rgba(236, 247, 255, 0.95);
  color: #426f99;
}
body[data-theme="light"] .settings-field {
  color: #5e84ab;
}
body[data-theme="light"] .settings-field input {
  border-color: rgba(117, 161, 199, 0.44);
  background: rgba(238, 247, 255, 0.95);
  color: #1f4163;
}
body[data-theme="light"] .settings-field textarea {
  border-color: rgba(117, 161, 199, 0.44);
  background: rgba(238, 247, 255, 0.95);
  color: #1f4163;
}
body[data-theme="light"] .settings-field-counter {
  color: #5f85aa;
}
body[data-theme="light"] .settings-block {
  border-color: rgba(121, 167, 206, 0.38);
  background: rgba(222, 238, 252, 0.62);
}
body[data-theme="light"] .settings-block-title {
  color: #1d446b;
}
body[data-theme="light"] .settings-password-modal-card {
  background: linear-gradient(180deg, #eef7ff, #e5f2ff 66%, #e0efff 100%);
  border-color: rgba(131, 167, 201, 0.58);
  box-shadow: 0 18px 46px rgba(40, 74, 110, 0.2);
}
body[data-theme="light"] .settings-password-head h3 {
  color: #20486f;
}
body[data-theme="light"] .settings-admin-hero-subtitle {
  color: #567ca3;
}
body[data-theme="light"] .settings-admin-error {
  border-color: rgba(208, 93, 114, 0.28);
  background: rgba(255, 232, 236, 0.92);
  color: #962f43;
}
body[data-theme="light"] .settings-admin-value {
  color: #18395a;
}
body[data-theme="light"] .settings-admin-note {
  color: #547ca4;
}
body[data-theme="light"] .settings-admin-service-row {
  color: #25496d;
}
body[data-theme="light"] .settings-admin-service-badge {
  border-color: rgba(107, 153, 194, 0.34);
  background: rgba(203, 225, 246, 0.92);
  color: #25547f;
}
body[data-theme="light"] .settings-admin-metric {
  border-color: rgba(119, 165, 206, 0.24);
  background: rgba(240, 248, 255, 0.92);
}
body[data-theme="light"] .settings-admin-metric span {
  color: #5a81a9;
}
body[data-theme="light"] .settings-admin-metric b {
  color: #1f456b;
}
body[data-theme="light"] .settings-switch-label {
  color: #2b547c;
}
body[data-theme="light"] .settings-version-value {
  border-color: rgba(96, 144, 192, 0.42);
  background: rgba(191, 218, 246, 0.75);
  color: #245586;
}
body[data-theme="light"] .settings-log-entry {
  border-color: rgba(118, 164, 206, 0.28);
  background: rgba(234, 245, 255, 0.92);
}
body[data-theme="light"] .settings-log-entry-version {
  color: #173450;
}
body[data-theme="light"] .settings-log-entry-date {
  color: #4f7398;
}
body[data-theme="light"] .settings-log-entry-items {
  color: #29496a;
}
body[data-theme="light"] .chat-profile-main-line#chatProfileUsername {
  color: #2e6aa0;
}
body[data-theme="light"] .chat-profile-close-btn {
  border-color: rgba(84, 129, 174, 0.38);
  background: rgba(243, 250, 255, 0.88);
  color: #24517a;
}
body[data-theme="light"] .sound-setting input[type="range"] {
  border-color: rgba(104, 149, 192, 0.45);
  background: rgba(104, 149, 192, 0.22);
}
body[data-theme="light"] .sound-setting input[type="range"]::-webkit-slider-runnable-track,
body[data-theme="light"] .sound-setting input[type="range"]::-moz-range-track {
  background: rgba(104, 149, 192, 0.26);
}
body[data-theme="light"] .settings-trash-btn {
  color: #bf425f;
  border-color: rgba(197, 112, 132, 0.5);
}
body[data-theme="light"] .settings-trash-btn:hover {
  background: rgba(224, 130, 152, 0.2);
  color: #a3334e;
  border-color: rgba(179, 96, 118, 0.58);
}
body[data-theme="light"] .private-call-card {
  border-color: rgba(122, 168, 210, 0.5);
  background: linear-gradient(160deg, #e8f3ff, #daeafc);
  color: #234c74;
}
body[data-theme="light"] .private-call-meta {
  color: #46698f;
}
body[data-theme="light"] .private-call-connection-badge {
  border-color: rgba(118, 166, 210, 0.54);
  background: rgba(222, 238, 252, 0.92);
  color: #2b587f;
}
body[data-theme="light"] .private-call-connection-badge.good {
  border-color: rgba(120, 186, 152, 0.58);
  background: rgba(216, 244, 229, 0.95);
  color: #275f41;
}
body[data-theme="light"] .private-call-connection-badge.poor {
  border-color: rgba(205, 142, 114, 0.58);
  background: rgba(250, 233, 221, 0.94);
  color: #8f4b2e;
}
body[data-theme="light"] .private-call-timer {
  color: #24517a;
}
body[data-theme="light"] .private-call-minimize-btn {
  border-color: rgba(126, 171, 212, 0.56);
  background: rgba(234, 244, 255, 0.95);
  color: #2d547a;
}
body[data-theme="light"] .private-call-minimize-btn:hover {
  border-color: rgba(103, 160, 213, 0.7);
  background: rgba(225, 239, 253, 0.98);
}
body[data-theme="light"] .private-call-leave-btn {
  border-color: rgba(190, 111, 133, 0.48);
  background: rgba(236, 198, 208, 0.4);
  color: #89364d;
}
body[data-theme="light"] .private-call-leave-btn:hover {
  border-color: rgba(182, 87, 114, 0.62);
  background: rgba(231, 174, 190, 0.5);
  color: #7b2d44;
}
body[data-theme="light"] .private-call-decline-btn {
  border-color: rgba(190, 111, 133, 0.48);
  background: rgba(236, 198, 208, 0.4);
  color: #89364d;
}
body[data-theme="light"] .private-call-decline-btn:hover {
  border-color: rgba(182, 87, 114, 0.62);
  background: rgba(231, 174, 190, 0.5);
  color: #7b2d44;
}
body[data-theme="light"] .private-call-mic-meter-label,
body[data-theme="light"] .private-call-field,
body[data-theme="light"] .private-call-volume-row,
body[data-theme="light"] .private-call-log-title {
  color: #4f7398;
}
body[data-theme="light"] .private-call-mic-meter-track,
body[data-theme="light"] .private-call-log {
  border-color: rgba(115, 163, 206, 0.36);
  background: rgba(235, 245, 254, 0.94);
}
body[data-theme="light"] .private-call-field select {
  border-color: rgba(113, 161, 205, 0.46);
  background: rgba(238, 247, 255, 0.96);
  color: #284f75;
}
body[data-theme="light"] .private-call-volume-row b {
  color: #2a547b;
}
body[data-theme="light"] .private-call-log-item {
  border-color: rgba(111, 159, 203, 0.28);
  background: rgba(215, 233, 249, 0.92);
  color: #285078;
}
body[data-theme="light"] .private-call-mute-btn.active {
  border-color: rgba(206, 147, 123, 0.58);
  background: rgba(248, 226, 215, 0.92);
  color: #8b4e30;
}
body[data-theme="light"] .app-shell {
  border-color: rgba(121, 161, 198, 0.52);
  box-shadow: 0 24px 56px rgba(59, 99, 142, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
body[data-theme="light"] .left-pane,
body[data-theme="light"] .left-pane-top,
body[data-theme="light"] .left-pane-filters {
  background: linear-gradient(180deg, #f9fcff, #f1f7ff);
}
body[data-theme="light"] .left-folder-rail {
  border-right-color: rgba(122, 164, 202, 0.5);
  background: linear-gradient(180deg, rgba(230, 241, 252, 0.98), rgba(217, 233, 249, 0.96));
}
body[data-theme="light"] .folder-rail-menu-btn,
body[data-theme="light"] .folder-rail-item,
body[data-theme="light"] .folder-rail-settings {
  border-color: rgba(116, 158, 198, 0.42);
  background: rgba(244, 250, 255, 0.86);
  color: #315d85;
}
body[data-theme="light"] .folder-rail-item:hover,
body[data-theme="light"] .folder-rail-settings:hover {
  border-color: rgba(84, 144, 203, 0.56);
  background: rgba(223, 238, 252, 0.98);
  color: #1f456b;
}
body[data-theme="light"] .folder-rail-item.active {
  border-color: rgba(72, 143, 213, 0.66);
  background: linear-gradient(180deg, rgba(212, 232, 251, 0.98), rgba(191, 218, 245, 0.96));
  color: #17456e;
}
body[data-theme="light"] .folder-rail-item.drag-target {
  border-color: rgba(69, 144, 215, 0.76);
  background: linear-gradient(180deg, rgba(199, 225, 248, 0.99), rgba(180, 211, 243, 0.98));
  color: #163f66;
  box-shadow: 0 10px 22px rgba(73, 109, 149, 0.2), 0 0 0 1px rgba(77, 143, 208, 0.14);
}
body[data-theme="light"] .chat-row-drag-ghost {
  background: rgba(238, 247, 255, 0.98);
  box-shadow: 0 18px 34px rgba(69, 107, 147, 0.22), 0 0 0 1px rgba(108, 154, 199, 0.26);
}
body[data-theme="light"] .main-search-wrap input {
  border-color: rgba(121, 162, 201, 0.46);
  background: rgba(245, 250, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
body[data-theme="light"] .menu-toggle-btn,
body[data-theme="light"] .chat-header-btn {
  border-color: rgba(117, 158, 198, 0.48);
  background: rgba(239, 247, 255, 0.94);
  color: #2f5b86;
}
body[data-theme="light"] .menu-toggle-btn:hover,
body[data-theme="light"] .chat-header-btn:not(:disabled):hover {
  background: rgba(219, 236, 252, 0.96);
  color: #1f456b;
}
body[data-theme="light"] .right-pane {
  background: linear-gradient(180deg, #f8fcff, #eef6ff);
}
body[data-theme="light"] .chat-header {
  background: linear-gradient(180deg, rgba(246, 252, 255, 0.98), rgba(236, 246, 255, 0.98));
  border-bottom-color: rgba(123, 162, 198, 0.44);
}
body[data-theme="light"] .message-list,
body[data-theme="light"] .chat-mentions-view {
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(237, 247, 255, 0.98));
}
body[data-theme="light"] .composer {
  background: linear-gradient(180deg, rgba(245, 251, 255, 0.98), rgba(234, 245, 255, 0.98));
  border-top-color: rgba(123, 162, 198, 0.42);
}
body[data-theme="light"] .channel-action-bar {
  border-top-color: rgba(123, 162, 198, 0.42);
  background: linear-gradient(180deg, rgba(246, 252, 255, 0.98), rgba(232, 244, 255, 0.98)),
    radial-gradient(circle at top right, rgba(96, 157, 216, 0.12), transparent 54%);
  color: #23486f;
}
body[data-theme="light"] .channel-action-bar:hover {
  background: linear-gradient(180deg, rgba(238, 248, 255, 0.98), rgba(222, 238, 253, 0.98)),
    radial-gradient(circle at top right, rgba(96, 157, 216, 0.16), transparent 54%);
}
body[data-theme="light"] .channel-action-bar:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(93, 149, 205, 0.34);
}
body[data-theme="light"] .channel-action-title {
  color: #23486f;
}
body[data-theme="light"] .channel-action-hint {
  color: #5d7d9d;
}
body[data-theme="light"] .attach-btn {
  border-color: rgba(117, 158, 198, 0.46);
  background: rgba(243, 249, 255, 0.96);
  color: #2f5b86;
}
body[data-theme="light"] .attach-btn:hover {
  background: rgba(218, 236, 253, 0.98);
  color: #214569;
}
body[data-theme="light"] .composer textarea {
  border-color: rgba(117, 159, 199, 0.54);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(232, 243, 255, 0.97));
  color: #1f456b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
body[data-theme="light"] .composer textarea:focus {
  border-color: rgba(87, 149, 208, 0.74);
  box-shadow: 0 0 0 4px rgba(90, 154, 220, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}
body[data-theme="light"] .attach-menu {
  border-color: rgba(122, 163, 201, 0.56);
  background: linear-gradient(180deg, #f8fcff, #eaf4ff);
  box-shadow: 0 18px 40px rgba(55, 95, 138, 0.22);
}
body[data-theme="light"] .attach-menu-item {
  color: #264a71;
}
body[data-theme="light"] .attach-menu-item:hover {
  background: rgba(196, 221, 246, 0.58);
}
body[data-theme="light"] .chat-menu,
body[data-theme="light"] .chat-list-context-menu {
  border-color: rgba(122, 163, 201, 0.56);
  background: linear-gradient(180deg, #f8fcff, #eaf4ff);
  box-shadow: 0 18px 40px rgba(55, 95, 138, 0.22);
}
body[data-theme="light"] .emoji-picker-panel {
  border-left-color: rgba(123, 161, 196, 0.44);
  background: linear-gradient(180deg, rgba(247, 252, 255, 0.99), rgba(235, 245, 255, 0.99)),
    radial-gradient(circle at top right, rgba(96, 157, 216, 0.16), transparent 52%);
}
body[data-theme="light"] .emoji-picker-head {
  border-bottom-color: rgba(120, 160, 199, 0.28);
}
body[data-theme="light"] .emoji-picker-title {
  color: #2a5178;
}
body[data-theme="light"] .emoji-picker-close-btn {
  border-color: rgba(117, 158, 197, 0.48);
  background: rgba(240, 248, 255, 0.94);
  color: #2f5b86;
}
body[data-theme="light"] .emoji-picker-close-btn:hover {
  background: rgba(220, 237, 253, 0.97);
  color: #214569;
}
body[data-theme="light"] .emoji-picker-search {
  border-color: rgba(118, 159, 197, 0.44);
  background: rgba(243, 249, 255, 0.95);
}
body[data-theme="light"] .emoji-picker-section-title {
  color: #4a759f;
}
body[data-theme="light"] .emoji-picker-item {
  background: rgba(227, 240, 252, 0.92);
  border-color: rgba(125, 167, 206, 0.12);
  color: #1f4469;
}
body[data-theme="light"] .emoji-picker-item:hover {
  background: rgba(203, 225, 247, 0.95);
  border-color: rgba(117, 161, 202, 0.52);
}
body[data-theme="light"] .modal-overlay {
  background: rgba(43, 69, 98, 0.34);
}
body[data-theme="light"] .modal-card {
  border-color: rgba(122, 163, 201, 0.56);
  background: linear-gradient(180deg, #f8fcff, #eaf4ff);
  color: #214366;
  box-shadow: 0 28px 60px rgba(50, 87, 125, 0.26);
}
body[data-theme="light"] .modal-head h3 {
  color: #234a71;
}
body[data-theme="light"] .modal .ghost-btn {
  border-color: rgba(118, 159, 198, 0.56);
  background: rgba(241, 248, 255, 0.95);
  color: #31597f;
}
body[data-theme="light"] .modal .ghost-btn:hover {
  background: rgba(218, 235, 252, 0.96);
  color: #1f4469;
}
body[data-theme="light"] .invite-preview-body {
  border-color: rgba(123, 163, 200, 0.34);
  background: linear-gradient(145deg, rgba(224, 239, 252, 0.98), rgba(210, 229, 247, 0.95));
}
body[data-theme="light"] .invite-preview-title {
  color: #234a71;
}
body[data-theme="light"] .invite-preview-meta {
  color: #517aa1;
}
body[data-theme="light"] .create-channel-title-label,
body[data-theme="light"] .create-channel-description-label {
  color: #4e7398;
}
body[data-theme="light"] .create-channel-title-wrap input,
body[data-theme="light"] .create-channel-description-wrap textarea {
  border-bottom-color: rgba(126, 166, 204, 0.9);
  color: #244a71;
}
body[data-theme="light"] .create-channel-title-wrap input:focus,
body[data-theme="light"] .create-channel-description-wrap textarea:focus {
  border-bottom-color: #5ea4e4;
}
body[data-theme="light"] .create-channel-actions .ghost-btn,
body[data-theme="light"] .create-channel-actions .primary-btn {
  background: transparent;
  color: #4d7398;
}
body[data-theme="light"] .create-channel-actions .primary-btn {
  color: #2f73c0;
}
body[data-theme="light"] .create-channel-actions .ghost-btn:hover,
body[data-theme="light"] .create-channel-actions .primary-btn:hover {
  background: rgba(197, 220, 243, 0.72);
  color: #1f4b76;
}
body[data-theme="light"] .media-compose-card .media-preview-wrap {
  border-color: rgba(117, 158, 198, 0.5);
  background: rgba(232, 242, 252, 0.9);
}
body[data-theme="light"] .media-compose-card .media-option-row {
  color: #2f5378;
}
body[data-theme="light"] .media-compose-card .media-option-row span {
  color: inherit;
}
body[data-theme="light"] .media-caption-wrap {
  color: #3d6084;
}
body[data-theme="light"] .media-caption-wrap input,
body[data-theme="light"] .media-caption-wrap textarea {
  border-color: rgba(117, 159, 199, 0.5);
  background: rgba(244, 249, 255, 0.96);
  color: #1f456b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
body[data-theme="light"] .media-caption-wrap input:focus,
body[data-theme="light"] .media-caption-wrap textarea:focus {
  border-color: rgba(87, 149, 208, 0.72);
  box-shadow: 0 0 0 4px rgba(90, 154, 220, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}
body[data-theme="light"] .media-caption-wrap input::placeholder,
body[data-theme="light"] .media-caption-wrap textarea::placeholder {
  color: #67839f;
}
body[data-theme="light"] input::placeholder,
body[data-theme="light"] textarea::placeholder {
  color: #6b8198;
}
body[data-theme="light"] .chat-title,
body[data-theme="light"] .chat-row-title,
body[data-theme="light"] .message-text {
  color: #133451;
}
body[data-theme="light"] .chat-row-archive-badge {
  background: rgba(66, 124, 189, 0.12);
  box-shadow: inset 0 0 0 1px rgba(66, 124, 189, 0.22);
  color: #2d5e8f;
}
body[data-theme="light"] .chat-row-preview,
body[data-theme="light"] .chat-search-preview,
body[data-theme="light"] .chat-row-date,
body[data-theme="light"] .message-sender,
body[data-theme="light"] .message-time,
body[data-theme="light"] .message-edited-mark,
body[data-theme="light"] .settings-entry-hint,
body[data-theme="light"] .chat-profile-sub-line,
body[data-theme="light"] .chat-profile-status {
  color: #4d6b88;
}
