*{margin:0;padding:0;box-sizing:border-box}body{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color:#213547;background-color:#fff;min-height:100vh}#root{width:100%;min-height:100vh}h1,h2,h3{margin-bottom:1rem}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;color:#fff;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}input{border:1px solid #ccc;border-radius:4px;padding:8px;font-size:14px}input:focus{outline:none;border-color:#646cff}.communication-page{padding:24px;background:linear-gradient(180deg,#f4f7fb,#eef3f8);min-height:100%}.communication-shell{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:24px;overflow:hidden;box-shadow:0 24px 60px #0f172a14;display:flex;flex-direction:column;height:calc(100vh - 128px)}.communication-shell.mobile{height:calc(100vh - 112px)}.communication-hero{padding:26px 30px;background:linear-gradient(135deg,#1f2937,#2563eb 55%,#0f766e);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;color:#fff}.communication-eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#ffffffb8;margin-bottom:10px}.communication-eyebrow.modal{color:#0f766e;margin-bottom:8px}.communication-hero h2,.communication-modal-header h3{margin:0;font-size:28px;font-weight:700}.communication-hero p,.communication-modal-header p{margin:8px 0 0;color:#ffffffd1;line-height:1.6;max-width:720px}.communication-modal-header p{color:#475569}.communication-hero-actions{display:flex;gap:12px;align-items:stretch;flex-wrap:wrap}.communication-hero-button,.communication-compose button,.communication-modal-actions button{border:none;border-radius:16px;padding:14px 18px;font-size:14px;font-weight:700;cursor:pointer}.communication-hero-button{border:1px solid rgba(255,255,255,.22);background:#ffffff24;color:#fff}.communication-live-pill{display:flex;align-items:center;gap:12px;padding:12px 18px;border-radius:16px;background:#ffffff1f;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:14px;font-weight:600}.communication-live-dot{width:8px;height:8px;border-radius:999px;background:#10b981;box-shadow:0 0 12px #10b98180}.communication-live-dot.alert{background:#f97316;box-shadow:0 0 12px #f973168c}.communication-body{display:grid;grid-template-columns:340px minmax(0,1fr);flex:1;min-height:0}.communication-sidebar{background:#f8fafc;border-right:1px solid rgba(226,232,240,.9);display:flex;flex-direction:column;min-height:0}.communication-stats{padding:20px 22px;border-bottom:1px solid rgba(226,232,240,.9);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.communication-stat-card{padding:14px;border-radius:16px;background:#fff;border:1px solid rgba(226,232,240,.8)}.communication-stat-card span,.communication-thread-meta,.communication-subtle,.communication-preview,.communication-timestamp,.communication-empty-list,.communication-empty-thread{color:#64748b}.communication-stat-card span{display:block;font-size:12px;margin-bottom:6px}.communication-stat-card strong{font-size:22px;color:#0f172a}.communication-list-scroll,.communication-message-scroll,.communication-modal-body{overflow-y:auto;overscroll-behavior:contain}.communication-list-scroll{padding:12px;flex:1;min-height:0}.communication-section-title{padding:6px 10px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#64748b}.communication-section-title.direct{padding-top:16px}.communication-list-card{width:100%;text-align:left;border:1px solid transparent;background:transparent;padding:14px 16px;border-radius:16px;cursor:pointer;margin-bottom:8px}.communication-list-card.selected{border-color:#93c5fd;background:#eff6ff}.communication-list-card.selected.group{border-color:#99f6e4;background:#ecfeff}.communication-list-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.communication-list-identity,.communication-thread-identity{display:flex;align-items:center;gap:12px;min-width:0}.communication-list-copy,.communication-thread-copy,.communication-member-copy{min-width:0}.communication-avatar{width:44px;height:44px;border-radius:999px;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:#e2e8f0;border:1px solid rgba(148,163,184,.24);color:#1d4ed8;font-size:14px;font-weight:700}.communication-avatar img{width:100%;height:100%;object-fit:cover;display:block}.communication-avatar-sm{width:40px;height:40px;font-size:13px}.communication-avatar-md{width:48px;height:48px;font-size:15px}.communication-avatar-group{background:linear-gradient(135deg,#dbeafe,#ccfbf1);color:#0f766e}.communication-list-name,.communication-thread-title,.communication-message-text{color:#0f172a}.communication-list-name,.communication-thread-title{font-weight:700}.communication-list-name{margin-bottom:4px}.communication-role-badge,.communication-group-badge{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700}.communication-role-badge{color:#2563eb;background:#dbeafe}.communication-group-badge{color:#0f766e;background:#ccfbf1}.communication-badge{min-width:24px;height:24px;padding:0 6px;border-radius:999px;display:flex;align-items:center;justify-content:center;color:#fff;background:#2563eb;font-size:11px;font-weight:700}.communication-badge.group{background:#0f766e}.communication-preview{margin-top:12px;font-size:12px;line-height:1.5}.communication-timestamp{margin-top:8px;font-size:11px}.communication-thread{display:flex;flex-direction:column;min-width:0;min-height:0}.communication-thread-header{padding:20px 24px;border-bottom:1px solid rgba(226,232,240,.9);background:#fcfdff;display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}.communication-thread-title{font-size:22px}.communication-thread-meta,.communication-thread-status{font-size:13px;line-height:1.6}.communication-message-scroll{flex:1;min-height:0;padding:24px;background:linear-gradient(180deg,#fff,#f8fafc)}.communication-message-row{display:flex;justify-content:flex-start;align-items:flex-end;gap:10px;margin-bottom:14px}.communication-message-row.own{justify-content:flex-end}.communication-message-bubble{max-width:74%;padding:14px 16px;border-radius:18px 18px 18px 6px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 12px 28px #0f172a14}.communication-message-avatar{margin-bottom:4px}.communication-message-bubble.own{border-radius:18px 18px 6px;background:linear-gradient(135deg,#2563eb,#1d4ed8);border:none}.communication-message-author{font-size:11px;font-weight:700;color:#0f766e;margin-bottom:6px}.communication-message-text{font-size:13px;line-height:1.6;white-space:pre-wrap}.communication-message-text a{color:#2563eb;text-decoration:underline;text-decoration-color:#2563eb66;text-underline-offset:2px;transition:all .2s ease}.communication-message-text a:hover{color:#1d4ed8;text-decoration-color:#1d4ed8cc}.communication-message-bubble.own .communication-message-text a{color:#93c5fd;text-decoration-color:#93c5fd66}.communication-message-bubble.own .communication-message-text a:hover{color:#bfdbfe;text-decoration-color:#bfdbfecc}.communication-message-bubble.own .communication-message-text{color:#fff}.communication-message-meta{margin-top:8px;display:flex;align-items:center;gap:6px;font-size:11px;color:#94a3b8}.communication-message-meta.own{justify-content:flex-end;color:#fffc}.communication-message-actions{display:flex;gap:6px;margin-left:8px}.communication-action-button{background:none;border:none;cursor:pointer;padding:4px;border-radius:4px;font-size:12px;opacity:.6;transition:all .2s ease}.communication-action-button:hover{opacity:1;background:#0000001a}.communication-message-bubble.own .communication-action-button:hover{background:#fff3}.communication-message-edit{width:100%}.communication-edit-input{width:100%;min-height:60px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:8px;font-family:inherit;font-size:13px;line-height:1.6;resize:vertical;margin-bottom:8px}.communication-edit-actions{display:flex;gap:8px;justify-content:flex-end}.communication-edit-save,.communication-edit-cancel{padding:6px 12px;border:none;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;transition:all .2s ease}.communication-edit-save{background:#2563eb;color:#fff}.communication-edit-save:hover:not(:disabled){background:#1d4ed8}.communication-edit-save:disabled{background:#cbd5e1;cursor:not-allowed}.communication-edit-cancel{background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0}.communication-edit-cancel:hover{background:#e2e8f0}.communication-tick{font-size:12px;letter-spacing:-1px}.communication-tick.read{color:#93c5fd}.communication-compose{padding:20px 24px;border-top:1px solid rgba(226,232,240,.9);background:#fff;display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.communication-compose textarea,.communication-field input{width:100%;padding:14px 16px;border-radius:16px;border:1px solid #cbd5e1;font:inherit;line-height:1.6;resize:vertical}.communication-compose textarea{flex:1;min-width:280px;min-height:90px}.communication-compose button,.communication-modal-actions button:last-child{background:linear-gradient(135deg,#2563eb,#0f766e);color:#fff}.communication-compose button:disabled,.communication-modal-actions button:disabled{background:#cbd5e1;cursor:not-allowed}.communication-empty-list,.communication-empty-thread{padding:28px;text-align:center;line-height:1.7}.communication-empty-list.modal{border-radius:16px;background:#f8fafc}.communication-empty-thread.centered{display:flex;align-items:center;justify-content:center;flex:1}.communication-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a85;display:flex;align-items:center;justify-content:center;padding:24px;z-index:1500}.communication-modal{width:min(640px,100%);max-height:calc(100vh - 48px);display:flex;flex-direction:column;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 28px 80px #0f172a47}.communication-modal-header,.communication-modal-body,.communication-modal-actions{padding:24px 26px}.communication-modal-header{border-bottom:1px solid rgba(226,232,240,.9);background:linear-gradient(135deg,#ecfeff,#eff6ff);display:flex;justify-content:space-between;gap:12px}.communication-modal-close{width:40px;height:40px;border:none;border-radius:12px;background:#94a3b824;cursor:pointer;font-size:18px;font-weight:700;color:#0f172a}.communication-field{display:block;margin-bottom:18px}.communication-field span,.communication-members-header span{display:block;margin-bottom:8px;font-size:13px;font-weight:700;color:#0f172a}.communication-members-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.communication-members-header strong{font-size:12px;color:#0f766e;background:#ccfbf1;padding:6px 10px;border-radius:999px}.communication-members-list{display:grid;gap:10px}.communication-member-card{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:16px;border:1px solid #e2e8f0;cursor:pointer}.communication-member-card.selected{border-color:#99f6e4;background:#ecfeff}.communication-member-copy{min-width:0}.communication-error{margin-top:16px;padding:12px 14px;border-radius:14px;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;font-size:13px}.communication-modal-actions{border-top:1px solid rgba(226,232,240,.9);display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}.communication-modal-actions .secondary{background:#fff;border:1px solid #cbd5e1;color:#0f172a}@media (max-width: 991px){.communication-page{padding:16px}.communication-hero,.communication-thread-header,.communication-message-scroll,.communication-compose{padding-left:18px;padding-right:18px}.communication-body{grid-template-columns:1fr;grid-template-rows:320px minmax(0,1fr)}.communication-sidebar{border-right:none;border-bottom:1px solid rgba(226,232,240,.9)}.communication-message-bubble{max-width:90%}.communication-compose textarea{min-width:100%}.communication-compose button{width:100%}}
