/* Чат дома — виджет и PWA */
:root {
    --hc-bg: #0f1419;
    --hc-surface: #1a222c;
    --hc-surface2: #232d3a;
    --hc-border: rgba(255, 255, 255, 0.08);
    --hc-text: #f1f5f9;
    --hc-muted: #94a3b8;
    --hc-accent: #00ac5e;
    --hc-accent-dim: rgba(0, 172, 94, 0.15);
    --hc-danger: #f87171;
    --hc-radius: 14px;
    --hc-font: "Inter", system-ui, -apple-system, sans-serif;
    --hc-scrollbar: rgba(148, 163, 184, 0.32);
    --hc-scrollbar-hover: rgba(148, 163, 184, 0.48);
}

/* Тонкие скроллбары внутри чата */
.hc-shell *,
.hc-body--standalone textarea {
    scrollbar-width: thin;
    scrollbar-color: var(--hc-scrollbar) transparent;
}
.hc-shell *::-webkit-scrollbar,
.hc-body--standalone textarea::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.hc-shell *::-webkit-scrollbar-track,
.hc-body--standalone textarea::-webkit-scrollbar-track {
    background: transparent;
}
.hc-shell *::-webkit-scrollbar-thumb,
.hc-body--standalone textarea::-webkit-scrollbar-thumb {
    background: var(--hc-scrollbar);
    border-radius: 5px;
}
.hc-shell *::-webkit-scrollbar-thumb:hover,
.hc-body--standalone textarea::-webkit-scrollbar-thumb:hover {
    background: var(--hc-scrollbar-hover);
}

.hc-body--standalone {
    margin: 0;
    min-height: 100dvh;
    background: var(--hc-bg);
    font-family: var(--hc-font);
}

.hc-standalone-fallback {
    padding: 24px;
    color: var(--hc-text);
    max-width: 420px;
    margin: 0 auto;
}
.hc-standalone-fallback a {
    color: var(--hc-accent);
}

.hc-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.hc-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.hc-main--hidden {
    display: none !important;
}

.hc-fab {
    position: fixed;
    z-index: 9998;
    right: 18px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #00ac5e, #019655);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 172, 94, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hc-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 36px rgba(0, 172, 94, 0.5);
}
.hc-fab svg {
    width: 26px;
    height: 26px;
}

.hc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    opacity: 0;
    animation: hc-fade-in 0.22s ease forwards;
}
@keyframes hc-fade-in {
    to { opacity: 1; }
}

.hc-panel {
    position: fixed;
    z-index: 10000;
    right: 16px;
    bottom: 16px;
    /* контейнер для модалки поверх .hc-shell */
    isolation: isolate;
    width: min(420px, calc(100vw - 24px));
    height: min(560px, calc(100vh - 100px));
    max-height: calc(100dvh - 24px);
    background: var(--hc-surface);
    border-radius: var(--hc-radius);
    border: 1px solid var(--hc-border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    animation: hc-panel-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes hc-panel-in {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.hc-root--fullscreen .hc-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: none;
    animation: none;
    transform: none;
    opacity: 1;
    box-shadow: none;
}

.hc-install-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: var(--hc-accent-dim);
    font-size: 13px;
    color: var(--hc-text);
}
.hc-install-bar button {
    background: var(--hc-accent);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

.hc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--hc-border);
    background: var(--hc-surface2);
}
.hc-header__title {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    font-size: 15px;
    color: var(--hc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hc-header__btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--hc-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hc-header__btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--hc-text);
}

.hc-panel-resize {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 20px;
    padding: 8px 6px 8px 2px;
    margin-right: 4px;
    cursor: nwse-resize;
    align-self: center;
    border-radius: 8px;
    opacity: 0.75;
    transition: opacity 0.15s ease, background 0.15s ease;
}
.hc-panel-resize:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}
.hc-panel-resize__bar {
    display: block;
    height: 2px;
    width: 14px;
    margin-left: 2px;
    border-radius: 1px;
    background: rgba(148, 163, 184, 0.65);
    transform: skewX(-38deg);
    transform-origin: left center;
}
.hc-panel-resize:hover .hc-panel-resize__bar {
    background: rgba(226, 232, 240, 0.85);
}
@media (max-width: 767px) {
    .hc-panel-resize {
        display: none !important;
        width: 0 !important;
        flex: 0 0 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden;
        pointer-events: none;
    }
}

.hc-loader {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
}
.hc-loader__rings {
    position: relative;
    width: 48px;
    height: 48px;
}
.hc-loader__rings span {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--hc-accent);
    border-radius: 50%;
    animation: hc-spin 0.9s linear infinite;
}
.hc-loader__rings span:nth-child(2) {
    inset: 6px;
    border-top-color: rgba(0, 172, 94, 0.35);
    animation-duration: 1.2s;
    animation-direction: reverse;
}
@keyframes hc-spin {
    to { transform: rotate(360deg); }
}
.hc-loader__text {
    font-size: 13px;
    color: var(--hc-muted);
    animation: hc-pulse 1.2s ease-in-out infinite;
}
.hc-loader__text--err {
    color: #fca5a5;
    text-align: center;
    max-width: 280px;
    line-height: 1.45;
    animation: none;
    opacity: 1;
}
.hc-name-inline {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}
.hc-name-inline--loading {
    align-items: center;
    text-align: center;
}
.hc-reg-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--hc-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}
.hc-name-inline .hc-in-first,
.hc-name-inline .hc-in-apt,
.hc-name-inline .hc-in-captcha {
    box-sizing: border-box;
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--hc-border);
    background: var(--hc-bg);
    color: var(--hc-text);
    font-family: inherit;
    font-size: 15px;
}
.hc-name-inline .hc-in-captcha {
    max-width: 120px;
}
.hc-captcha-q {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--hc-muted);
    line-height: 1.4;
}
.hc-captcha-expr {
    color: var(--hc-text);
    font-size: 15px;
}
.hc-captcha-note {
    display: block;
    font-size: 11px;
    opacity: 0.85;
    margin-top: 4px;
}
.hc-name-muted {
    margin: 0;
    font-size: 11px;
    color: var(--hc-muted);
    line-height: 1.35;
    opacity: 0.9;
}
.hc-auth {
    max-width: 360px;
    margin: 0 auto;
    padding: 4px;
}
.hc-auth .hc-name-hint {
    margin-top: 0;
}
.hc-auth .hc-in-email,
.hc-auth .hc-in-password,
.hc-auth .hc-in-first,
.hc-auth .hc-in-apt,
.hc-auth .hc-in-captcha,
.hc-auth .hc-in-code {
    box-sizing: border-box;
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--hc-border);
    background: var(--hc-bg);
    color: var(--hc-text);
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 10px;
}
.hc-auth .hc-btn-primary {
    width: 100%;
    margin-top: 4px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--hc-accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.hc-linklike {
    background: none;
    border: none;
    color: var(--hc-accent);
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    text-decoration: underline;
    font-family: inherit;
}
.hc-name-hint--err {
    color: #fca5a5 !important;
}
.hc-name-inline .hc-name-ok {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--hc-accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.hc-name-inline .hc-name-ok:disabled {
    opacity: 0.55;
    cursor: wait;
}
.hc-captcha-retry {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--hc-accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
@keyframes hc-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    -webkit-user-select: text;
    user-select: text;
}
.hc-msg {
    max-width: 92%;
    align-self: flex-start;
    position: relative;
}
.hc-msg--own {
    align-self: flex-end;
}
.hc-msg__bubble {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 7px 40px 17px 10px;
    border-radius: 12px;
    background: var(--hc-surface2);
    border: 1px solid var(--hc-border);
    overflow: visible;
}
.hc-msg--own .hc-msg__bubble {
    background: var(--hc-accent-dim);
    border-color: rgba(0, 172, 94, 0.25);
}
.hc-msg--by-admin .hc-msg__bubble {
    border-color: var(--hc-border);
}
.hc-msg--own.hc-msg--by-admin .hc-msg__bubble {
    border-color: rgba(0, 172, 94, 0.25);
}
.hc-msg__admin-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--hc-muted);
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.22);
    vertical-align: middle;
    line-height: 1.35;
}
.hc-msg__call {
    font-weight: 600;
    color: var(--hc-text);
}
.hc-msg__apt {
    font-weight: 400;
    color: var(--hc-muted);
}
.hc-msg__replyref {
    font-size: 11px;
    line-height: 1.35;
    color: var(--hc-muted);
    margin: 0 0 4px 0;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08);
    border-left: 3px solid rgba(0, 172, 94, 0.45);
    position: relative;
    z-index: 1;
}
.hc-msg__replyref__auth {
    font-weight: 600;
    color: var(--hc-text);
}
.hc-msg__replyref__txt {
    word-break: break-word;
}
.hc-msg__meta {
    font-size: 11px;
    color: var(--hc-muted);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.25;
    padding-right: 72px;
    position: relative;
    z-index: 1;
}
.hc-msg__edited {
    font-size: 9px;
    color: var(--hc-muted);
    font-style: italic;
}
.hc-msg__body {
    font-size: 14px;
    line-height: 1.45;
    color: var(--hc-text);
    word-break: break-word;
    -webkit-user-select: text;
    user-select: text;
    cursor: text;
    position: relative;
    z-index: 1;
}
.hc-msg__time {
    position: absolute;
    right: 7px;
    bottom: 4px;
    font-size: 10px;
    line-height: 1.1;
    color: var(--hc-muted);
    opacity: 0.88;
    letter-spacing: -0.02em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}
.hc-msg__tools {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 5;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 8px;
    background: rgba(15, 20, 25, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.hc-msg--show-tools .hc-msg__tools {
    opacity: 1;
    pointer-events: auto;
}
.hc-msg--editing .hc-msg__tools {
    opacity: 0;
    pointer-events: none;
}
.hc-msg__iconbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--hc-muted);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}
.hc-msg__iconbtn:hover {
    background: rgba(148, 163, 184, 0.2);
    color: var(--hc-text);
}
.hc-msg__del {
    color: var(--hc-danger);
}
.hc-msg__del:hover {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.12);
}
.hc-ic {
    width: 12px;
    height: 12px;
    display: block;
    flex-shrink: 0;
}
.hc-msg__edit-ta {
    width: 100%;
    min-height: 72px;
    max-height: 200px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--hc-accent);
    background: var(--hc-bg);
    color: var(--hc-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    resize: vertical;
    box-sizing: border-box;
}
.hc-msg__edit-bar {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.hc-welcome {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--hc-muted);
    padding: 6px 10px;
    background: rgba(0, 172, 94, 0.08);
    border-radius: 10px;
    border: 1px dashed rgba(0, 172, 94, 0.25);
    margin-bottom: 4px;
    -webkit-user-select: text;
    user-select: text;
    cursor: text;
}
.hc-welcome__text {
    flex: 1;
    min-width: 0;
}
.hc-welcome__x {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin: -2px -4px 0 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--hc-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}
.hc-welcome__x:hover {
    color: var(--hc-text);
    background: rgba(255, 255, 255, 0.06);
}

.hc-composer {
    padding: 8px 12px 10px;
    border-top: 1px solid var(--hc-border);
    background: var(--hc-surface2);
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}
.hc-composer__row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.hc-composer__reply {
    flex-shrink: 0;
}
.hc-composer__reply-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(0, 172, 94, 0.1);
    border: 1px solid rgba(0, 172, 94, 0.22);
    font-size: 12px;
    color: var(--hc-muted);
}
.hc-composer__reply-lbl {
    color: var(--hc-accent);
    font-weight: 600;
    margin-right: 2px;
}
.hc-composer__reply-snippet {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hc-composer__reply-clear {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--hc-muted);
    cursor: pointer;
}
.hc-composer__reply-clear:hover {
    color: var(--hc-text);
    background: rgba(255, 255, 255, 0.06);
}
.hc-composer__grow {
    flex: 1;
    min-width: 0;
    position: relative;
}
.hc-composer textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    max-height: none;
    resize: none;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid var(--hc-border);
    background: var(--hc-bg);
    color: var(--hc-text);
    padding: 10px 76px 22px 12px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    display: block;
}
.hc-composer__count {
    position: absolute;
    right: 10px;
    bottom: 8px;
    z-index: 2;
    font-size: 9px;
    line-height: 1.1;
    color: var(--hc-muted);
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
    opacity: 0.75;
    pointer-events: none;
    max-width: calc(100% - 20px);
    text-align: right;
    white-space: nowrap;
}
.hc-composer textarea:focus {
    outline: none;
    border-color: var(--hc-accent);
}
.hc-composer button[type="submit"] {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: var(--hc-accent);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.hc-modal-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.hc-modal {
    background: var(--hc-surface);
    border-radius: var(--hc-radius);
    border: 1px solid var(--hc-border);
    max-width: 360px;
    width: 100%;
    max-height: 90%;
    overflow-y: auto;
    padding: 16px;
}
.hc-modal h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--hc-text);
}
.hc-name-hint {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--hc-muted);
}
.hc-modal label {
    display: block;
    font-size: 12px;
    color: var(--hc-muted);
    margin-bottom: 4px;
}
.hc-modal input,
.hc-modal select,
.hc-modal textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--hc-border);
    background: var(--hc-bg);
    color: var(--hc-text);
    font-family: inherit;
}
.hc-modal__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.hc-modal__actions button {
    flex: 1;
    min-width: 100px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.hc-btn-primary {
    background: var(--hc-accent);
    color: #fff;
}
.hc-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--hc-text);
}

.hc-qr-host {
    min-height: 208px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hc-qr-wrap {
    text-align: center;
}
.hc-qr-wrap canvas {
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
    margin-top: 8px;
}

.hc-toast {
    position: absolute;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hc-surface2);
    color: var(--hc-text);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 3;
    border: 1px solid var(--hc-border);
    max-width: 90%;
    text-align: center;
}

/* Карточка каталога: кнопка чата */
.building-card-wrap {
    position: relative;
}
.building-card-wrap .building-card {
    width: 100%;
}
.building-card__chat-btn {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 48px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.building-card__chat-btn:hover {
    transform: scale(1.06);
    border-color: rgba(0, 172, 94, 0.45);
    background: var(--bg-card-hover);
}
.houses-grid--list .building-card-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}
.houses-grid--list .building-card__chat-btn {
    position: static;
    margin-right: 0;
}

/* Бан и призыв стать модератором */
.hc-ban-bar {
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--hc-danger);
    background: rgba(248, 113, 113, 0.12);
    border-bottom: 1px solid var(--hc-border);
}
.hc-ban-bar__inner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.hc-ban-bar__text {
    flex: 1;
    min-width: 0;
}
.hc-ban-bar__x {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin: -2px -4px 0 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--hc-danger);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    opacity: 0.85;
}
.hc-ban-bar__x:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
}
.hc-mod-callout {
    flex-shrink: 0;
    padding: 8px 10px;
    font-size: 12px;
    color: var(--hc-muted);
    background: var(--hc-accent-dim);
    border-bottom: 1px solid var(--hc-border);
}
.hc-mod-callout__wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.hc-mod-callout__inner {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.hc-mod-callout__x {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin: -2px -4px 0 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--hc-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}
.hc-mod-callout__x:hover {
    color: var(--hc-text);
    background: rgba(255, 255, 255, 0.06);
}
.hc-mod-callout .hc-btn-primary {
    padding: 6px 12px;
    font-size: 13px;
}

label.hc-guest-cb {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--hc-muted);
    cursor: pointer;
    margin-top: 8px;
}
label.hc-guest-cb input {
    margin-top: 3px;
    flex-shrink: 0;
}
.hc-msg__guest-badge {
    color: var(--hc-muted);
    font-weight: 500;
}

.hc-report-modal {
    max-width: 400px;
    text-align: left;
}
.hc-report-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
label.hc-report-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--hc-text);
    cursor: pointer;
    margin: 0;
}
label.hc-report-line input {
    margin-top: 3px;
    flex-shrink: 0;
}
/* Состав дома: зарегистрированные в чате */
.hc-roster {
    flex-shrink: 0;
    border-bottom: 1px solid var(--hc-border);
    background: rgba(26, 34, 44, 0.65);
}
.hc-roster__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 10px;
    border: none;
    background: transparent;
    color: var(--hc-muted);
    font-size: 11px;
    line-height: 1.3;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.hc-roster__toggle:hover {
    color: var(--hc-text);
    background: rgba(255, 255, 255, 0.03);
}
.hc-roster__summary strong {
    color: var(--hc-text);
    font-weight: 600;
}
.hc-roster__onl {
    color: var(--hc-accent);
}
.hc-roster__hint {
    font-weight: 400;
    opacity: 0.75;
    font-size: 10px;
}
.hc-roster__chev {
    flex-shrink: 0;
    font-size: 10px;
    opacity: 0.7;
}
.hc-roster__list {
    max-height: 120px;
    overflow-y: auto;
    padding: 0 8px 8px 10px;
    font-size: 11px;
}
.hc-roster__row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.hc-roster__row:first-child {
    border-top: none;
    padding-top: 2px;
}
.hc-roster__row--self .hc-roster__name {
    color: var(--hc-accent);
}
.hc-roster__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #475569;
}
.hc-roster__dot--on {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}
.hc-roster__name {
    flex: 1;
    min-width: 0;
    color: var(--hc-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hc-roster__apt {
    flex-shrink: 0;
    color: var(--hc-muted);
    font-size: 11px;
}

.hc-report-comment {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--hc-border);
    background: var(--hc-surface2);
    color: var(--hc-text);
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    min-height: 56px;
    margin-bottom: 8px;
}
