.hue-ico-lock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Crect x='4' y='11' width='16' height='10'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.hue-ico-key { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Ccircle cx='7.5' cy='15.5' r='4.5'/%3E%3Cpath d='M10.7 12.3 20 3M16 7l3 3M13.5 9.5l2.5 2.5'/%3E%3C/svg%3E"); }

.hue-sc-lock, .vk-dlg-lock { color: #2F9A52; }
.hue-sc-lock { width: 15px; height: 15px; flex: 0 0 15px; margin-right: 5px; }
.vk-dlg-lock { width: 14px; height: 14px; flex: 0 0 14px; margin: 0 5px 0 0; vertical-align: -2px; }
.vk-chat-call.hue-sc-on { color: #2F9A52 !important; }
.vk-chat-call[data-secure-start] .hue-ico, .vk-chat-call.hue-sc-on .hue-ico { width: 20px; height: 20px; flex: 0 0 20px; }
.theme-modern .vk-chat-call { text-decoration: none !important; }
.theme-modern .hue-sc-head .vk-chat-head-av { display: block; }
.theme-modern .hue-sc-head .vk-chat-head-name { justify-content: center; }

#chat-box.hue-sc-box.hue-sc-empty { display: flex; flex-direction: column; }
#chat-box .hue-sc-panel { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    min-height: 220px; padding: 24px 12px; box-sizing: border-box; text-align: center; color: var(--muted, #808080); }
#chat-box .hue-sc-panel b { max-width: 320px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text, #222222); overflow-wrap: anywhere; }
#chat-box .hue-sc-big { width: 44px; height: 44px; flex: 0 0 44px; color: #2F9A52; }
.hue-sc-btns { display: flex; justify-content: center; gap: 8px; }
.hue-sc-btns .hue-sc-btn { height: 36px; min-width: 128px; padding: 0 16px; font-size: 13.5px; }

#chat-box .hue-sc-text { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.theme-modern #chat-box .hue-sc-text { font-size: 13.5px; line-height: 1.45; }
#chat-box .hue-sc-bad { display: flex; align-items: center; gap: 6px; color: var(--muted, #808080); font-style: italic; }
#chat-box .hue-sc-bad .hue-ico { width: 14px; height: 14px; flex: 0 0 14px; }
#chat-box .hue-sc-photo-box { position: relative; max-width: 100%; margin-top: 6px; background: var(--hover, #F0F2F5); overflow: hidden; }
#chat-box .hue-sc-photo-box.bad { display: flex; align-items: center; justify-content: center; color: var(--muted, #808080); }
#chat-box .hue-sc-photo-box .hue-sc-img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; cursor: zoom-in; }
#chat-box .hue-sc-photo-box + .hue-sc-text { margin-top: 6px; }

.theme-modern #sc-form.vk-chat-compose { padding: 10px; position: relative; margin-top: 8px; }
.theme-modern #sc-form .vk-chat-row { display: flex; align-items: flex-end; gap: 6px; min-width: 0; position: relative; }
.theme-modern #sc-form .vk-chat-row > .vk-tool,
.theme-modern #sc-form .vk-chat-row > .vk-send {
    flex: 0 0 38px; width: 38px !important; height: 38px !important; min-width: 0; margin: 0 !important; padding: 0 !important; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center; border: 0; vertical-align: bottom; }
.theme-modern #sc-form .vk-chat-row > .vk-tool { background: #F2F3F5; color: #818C99 !important; cursor: pointer; }
.theme-modern #sc-form .vk-chat-row > .vk-tool:hover { background: #E5E7EB; color: #3A3F45 !important; }
.theme-modern #sc-form .vk-chat-row .hue-ico { width: 20px; height: 20px; flex: 0 0 20px; }
.theme-modern #sc-form .vk-chat-row > textarea#sc-input {
    flex: 1 1 0; min-width: 0; width: auto !important; max-width: none; height: 38px; min-height: 38px; margin: 0; display: block;
    box-sizing: border-box; padding: 9px 12px !important; line-height: 20px !important; font-size: 14px; resize: none; }
.theme-modern #sc-form .vk-chat-row > textarea#sc-input::placeholder { line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-modern #sc-form .vk-chat-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0; min-width: 0; }
.theme-modern #sc-form .vk-chat-extra:not(:empty) { padding-bottom: 8px; }
.theme-modern #sc-form .vk-chat-extra:empty { display: none; }
#sc-form .hue-sc-photo input[type="file"] { display: none; }
#sc-form[hidden] { display: none !important; }
@media (max-width: 700px) {
    .theme-modern #sc-form.vk-chat-compose { padding: 8px; }
    .theme-modern #sc-form .vk-chat-row { gap: 4px; }
    .theme-modern #sc-form .vk-chat-row > textarea#sc-input { padding: 9px 10px !important; }
}

.hue-sc-fp { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0 6px 0; border-top: 1px solid var(--line, #E7E8EC); }
.hue-sc-fp[hidden] { display: none; }
.hue-sc-fp-cap { font-weight: 600; font-size: 13px; color: var(--muted, #808080); }
.hue-sc-emoji { display: grid; grid-template-columns: repeat(4, 44px); gap: 6px; }
.hue-sc-emoji span { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 26px; line-height: 1;
    background: var(--hover, #F0F2F5); }
.hue-sc-hex { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 14px; font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--text, #222222); letter-spacing: 0.04em; }
.hue-sc-fp-none { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line, #E7E8EC);
    color: var(--muted, #808080); font-weight: 600; }
.hue-sc-fp-none[hidden] { display: none; }
.hue-sc-fp-none .hue-ico { width: 18px; height: 18px; flex: 0 0 18px; color: #2F9A52; }
.hue-sc-modal .gc-info-acts > a[hidden] { display: none; }

.hue-sc-view { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.88); cursor: zoom-out; }
.hue-sc-view img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.hue-sc-view-x { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 10px; width: 40px; height: 40px; display: flex; align-items: center;
    justify-content: center; font-size: 30px; line-height: 1; color: #FFFFFF !important; text-decoration: none !important; background: rgba(0, 0, 0, 0.4); }

.theme-legacy .hue-sc-modal { position: fixed; inset: 0; z-index: 1250; background: rgba(0, 0, 0, 0.5); display: flex; align-items: flex-start; justify-content: center;
    padding: 60px 8px; box-sizing: border-box; overflow-y: auto; }
.theme-legacy .hue-sc-modal[hidden] { display: none; }
.theme-legacy .hue-sc-modal .vk-modal-box { width: 420px; max-width: 100%; background: #FFFFFF; border: 1px solid #D0D0D0; }
.theme-legacy .hue-sc-modal .vk-modal-head { display: flex; align-items: center; padding: 7px 12px; background: #3A3A3A; color: #FFFFFF; font-size: 13px; }
.theme-legacy .hue-sc-modal .vk-modal-x { margin-left: auto; color: #FFFFFF; text-decoration: none; font-size: 20px; }
.theme-legacy .hue-sc-modal .vk-modal-body { padding: 12px; }
.theme-legacy .hue-sc-modal .gc-info-top { display: flex; align-items: center; gap: 12px; }
.theme-legacy .hue-sc-modal .gc-info-top img { width: 48px; height: 48px; object-fit: cover; }
.theme-legacy .hue-sc-modal .gc-info-acts { display: flex; flex-direction: column; border-top: 1px solid #E0E0E0; margin-top: 8px; }
.theme-legacy .hue-sc-modal .gc-info-acts > a { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.theme-legacy #sc-form { margin-top: 8px; padding: 8px; border: 1px solid #CCCCCC; background: #FFFFFF; }
.theme-legacy #sc-form .vk-chat-row { display: flex; align-items: flex-end; gap: 6px; }
.theme-legacy #sc-form textarea { flex: 1 1 auto; min-height: 38px; box-sizing: border-box; }
.theme-legacy #sc-form .vk-tool, .theme-legacy #sc-form .vk-send { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; }

html.hue-dark .hue-sc-lock, html.hue-dark .vk-dlg-lock, html.hue-dark .vk-chat-call.hue-sc-on, html.hue-dark #chat-box .hue-sc-big,
html.hue-dark .hue-sc-fp-none .hue-ico { color: #4CB874 !important; }
html.hue-dark #chat-box .hue-sc-panel b { color: var(--dk-text); }
html.hue-dark #chat-box .hue-sc-panel, html.hue-dark #chat-box .hue-sc-bad { color: var(--dk-muted); }
html.hue-dark #chat-box .hue-sc-photo-box { background: var(--dk-raise); }
html.hue-dark.theme-modern #sc-form .vk-chat-row > .vk-tool { background: var(--dk-raise); color: var(--dk-muted) !important; }
html.hue-dark.theme-modern #sc-form .vk-chat-row > .vk-tool:hover { background: var(--dk-raise-2); color: var(--dk-text) !important; }
html.hue-dark .hue-sc-emoji span { background: var(--dk-raise); }
html.hue-dark .hue-sc-hex { color: var(--dk-text); }
html.hue-dark .hue-sc-fp, html.hue-dark .hue-sc-fp-none { border-top-color: var(--dk-line); }
html.hue-dark .hue-sc-fp-cap, html.hue-dark .hue-sc-fp-none { color: var(--dk-muted); }
