/* ============================================================
   RESPONSIVE
   (split from style.css, lines 2690-2780)
   ============================================================ */

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }
    .sidebar { transform: translateX(-240px); width: 240px; }
    .sidebar.open { transform: translateX(0); width: 240px; }
    .main-content { margin-left: 0; }
    .drawer-info-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .topbar { padding: 0 16px; }
    .page-content { padding: 16px; }
    .task-table th:nth-child(n+4),
    .task-table td:nth-child(n+4) { display: none; }
}

/* ── Survey cards ───────────────────────────────────────────── */
.chat-survey {
    user-select: none;
}
.survey-option {
    transition: border-color 0.15s, background 0.15s;
}
.survey-option.clickable:hover {
    border-color: var(--accent) !important;
    background: var(--accent-dim);
}
.survey-option.voted {
    border-color: var(--accent) !important;
}
.survey-save-btn:disabled,
.survey-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── System messages (join / leave / kick / transfer) ───────── */
.chat-system-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    margin: 4px 0;
    pointer-events: none;
}
.chat-system-msg span {
    font-size: 0.75rem;
    color: var(--text-3, #6b6f7a);
    background: var(--bg-2, #232428);
    border: 1px solid var(--border, #2e3035);
    border-radius: 20px;
    padding: 3px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

/* ── Survey standalone message layout ───────────────────────── */
.chat-survey-msg {
    display: flex;
    justify-content: center;
    padding: 6px 16px;
    margin: 4px 0;
}
.chat-survey-wrapper {
    width: 100%;
    max-width: 420px;
}
.chat-survey-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 0 2px;
}
.chat-survey-author {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-2, #b5bac1);
}
.chat-survey-time {
    font-size: 0.72rem;
    color: var(--text-3, #6b6f7a);
}
/* Survey card itself fills the wrapper */
.chat-survey-msg .chat-survey {
    max-width: 100%;
    width: 100%;
}

