/* Connect moderation for the founder (connect-mod.js, founder 2026-10-10). Rounded corners need !important (square.css). */
.cnm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 13px; color: #e3e8f4; font: 600 0.84rem/1 Inter, system-ui, sans-serif; text-decoration: none; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px !important; cursor: pointer; transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.cnm-btn svg { width: 16px; height: 16px; flex: none; }
.cnm-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(56, 182, 255, 0.6); }
.cnm-btn:disabled { opacity: 0.5; cursor: default; }
.cnm-btn.is-danger { color: #fecaca; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.5); }
.cnm-btn.is-danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.22); border-color: rgba(239, 68, 68, 0.8); }
.cnm-btn.is-main { color: #fff; background: linear-gradient(135deg, #38b6ff, #1f7bff); border: 0; }
.cnm-open { display: flex; align-items: center; gap: 8px; }
.cnm-open svg { width: 16px; height: 16px; }
.cnm-dlg p, .cnm-note { margin: 0 0 14px; color: #c3cad8; font-size: 0.9rem; line-height: 1.55; }
.cnm-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; color: #d6dceb; font-size: 0.84rem; font-weight: 600; }
.cnm-field select, .cnm-field input { height: 40px; padding: 0 12px; color: #fff; font: 400 0.92rem/1 Inter, system-ui, sans-serif; background: rgba(4, 9, 22, 0.6) !important; border: 1px solid rgba(255, 255, 255, 0.16) !important; border-radius: 10px !important; outline: none; }
.cnm-field select:focus, .cnm-field input:focus { border-color: #38b6ff !important; box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.2); }
.cnm-check { display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 14px; color: #c3cad8; font-size: 0.86rem; line-height: 1.45; cursor: pointer; }
.cnm-check input { width: 17px; height: 17px; margin-top: 1px; accent-color: #ef4444; }
.cnm-row { display: flex; flex-wrap: wrap; gap: 8px; }
/* Panel */
.cnm-panel { min-width: 0; }
/* the Moderation panel needs more room than the 460px Connect dialog */
.cn-dlg:has(.cnm-panel) { width: min(720px, 100%); }
.cnm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cnm-tab { height: 34px; padding: 0 13px; color: #c7d0e0; font: 600 0.84rem/1 Inter, system-ui, sans-serif; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px !important; cursor: pointer; }
.cnm-tab[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, rgba(56, 182, 255, 0.35), rgba(31, 123, 255, 0.25)); border-color: rgba(56, 182, 255, 0.75); }
.cnm-view { max-height: min(60vh, 520px); overflow-y: auto; padding-right: 4px; }
.cnm-view h3 { margin: 6px 0 8px; color: #fff; font-size: 0.95rem; }
.cnm-empty { margin: 4px 0 14px; color: #9aa6bd; font-size: 0.88rem; }
.cnm-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 12px !important; }
.cnm-item-tx { flex: 1; min-width: 0; }
.cnm-item-tx strong { display: block; color: #fff; font-size: 0.9rem; }
.cnm-item-tx span { display: block; color: #9aa6bd; font-size: 0.8rem; }
.cnm-report { padding: 12px; margin-bottom: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(239, 68, 68, 0.25); border-radius: 12px !important; }
.cnm-report-h strong { display: block; color: #fff; }
.cnm-report-h span { color: #9aa6bd; font-size: 0.8rem; }
.cnm-report-q { margin: 8px 0; padding: 8px 10px; color: #e6ebf5; font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; background: rgba(4, 9, 22, 0.5); border-radius: 8px !important; }
.cnm-report-why { margin: 0 0 10px; color: #fca5a5; font-size: 0.82rem; }
.cnm-log { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: baseline; padding: 8px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.86rem; }
.cnm-log time { color: #9aa6bd; font-size: 0.78rem; white-space: nowrap; }
.cnm-log strong { color: #fff; white-space: nowrap; }
.cnm-log span { color: #c3cad8; }
/* Select messages */
.cnm-picking .cn-msg[data-id] { cursor: pointer; border-radius: 12px !important; transition: background 0.15s, box-shadow 0.15s; }
.cnm-picking .cn-msg[data-id]:hover { background: rgba(56, 182, 255, 0.06); }
.cnm-picking .cn-msg.cnm-sel { background: rgba(239, 68, 68, 0.12); box-shadow: inset 3px 0 0 #ef4444; }
.cnm-pickbar { position: absolute; left: 50%; bottom: 96px; z-index: 30; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px); padding: 10px 12px 10px 16px; color: #fff; background: #111c3d; border: 1px solid rgba(239, 68, 68, 0.5); border-radius: 16px !important; box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.9); transform: translateX(-50%); animation: cnm-up 0.25s ease-out; }
.cnm-pickbar strong { font-size: 0.9rem; }
.cnm-pick-hint { color: #9aa6bd; font-size: 0.8rem; }
@keyframes cnm-up { from { opacity: 0; transform: translate(-50%, 12px); } }
/* A suspended student */
.cnm-paused { position: fixed; inset: 0; z-index: 2147482000; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 18, 0.88); backdrop-filter: blur(8px); }
.cnm-paused-card { max-width: 440px; padding: 30px 26px; text-align: center; color: #c3cad8; background: linear-gradient(165deg, #111c3d, #0a1226); border: 1px solid rgba(120, 170, 255, 0.24); border-radius: 22px !important; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95); }
.cnm-paused-card h2 { margin: 14px 0 8px; color: #fff; font: 700 1.3rem/1.3 "Space Grotesk", Inter, sans-serif; }
.cnm-paused-card p { margin: 0 0 18px; line-height: 1.6; }
.cnm-paused-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; color: #fbbf24; background: rgba(251, 191, 36, 0.12); border-radius: 50% !important; }
.cnm-paused-ic svg { width: 28px; height: 28px; }
@media (max-width: 640px) { .cnm-pickbar { bottom: 120px; } .cnm-log { grid-template-columns: 1fr; gap: 2px; } }
/* Auto-answer tab (founder 2026-10-11, connectbot.js): two switches with their wait, and the answers it sent */
.cnm-sw { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; padding: 12px 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.cnm-sw-tx { flex: 1; min-width: 0; }
.cnm-sw-tx strong { display: block; color: #fff; font-size: .95rem; }
.cnm-sw-tx span { color: #9aa6bd; font-size: .8rem; line-height: 1.45; }
.cnm-sw-wait { display: inline-flex; align-items: center; gap: 6px; color: #9aa6bd; font-size: .8rem; }
.cnm-sw-wait input { width: 58px; height: 34px; padding: 0 8px; color: #fff; font: inherit; background: rgba(4,9,22,.6); border: 1px solid rgba(255,255,255,.16); }
.cnm-toggle { position: relative; flex: none; width: 46px; height: 26px; padding: 0; background: rgba(255,255,255,.14); border: 0; border-radius: 999px !important; cursor: pointer; transition: background .2s; }
.cnm-toggle i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50% !important; transition: transform .2s; }
.cnm-toggle[aria-checked="true"] { background: #22c55e; }
.cnm-toggle[aria-checked="true"] i { transform: translateX(20px); }
.cnm-toggle:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }
.cnm-bot-a { margin: 6px 0 10px; padding: 10px 12px; color: #d6dceb; font-size: .86rem; line-height: 1.5; white-space: pre-wrap; background: rgba(56,182,255,.08); border-left: 3px solid #38b6ff; }
@media (max-width: 560px) { .cnm-sw { flex-wrap: wrap; } .cnm-sw-tx { flex-basis: 100%; } }
