Add War Room voice meeting, fix chat overlay, and ship 5 cyan UI themes.
Voice Room lets humans talk with agents via Whisper/TTS; chat typing no longer blocked by a full-screen overlay, attachments/avatars are larger, and Settings exposes five vivid mid-dark cyan/blue themes for the whole cockpit.
This commit is contained in:
@@ -1,33 +1,38 @@
|
||||
/* Foodlinkk War Room */
|
||||
/* Foodlinkk War Room — compact, one viewport */
|
||||
.wr-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 220px 1fr;
|
||||
gap: 0.75rem;
|
||||
min-height: 62vh;
|
||||
grid-template-columns: 200px minmax(0, 1fr);
|
||||
gap: 0.6rem;
|
||||
height: calc(100vh - 150px);
|
||||
max-height: calc(100vh - 150px);
|
||||
}
|
||||
.wr-page-header { margin-bottom: 0.4rem; }
|
||||
.wr-page-header h1 { font-size: 1.2rem; margin: 0; }
|
||||
.wr-page-header .hm-sub { margin: 0.15rem 0 0; font-size: 0.85rem; }
|
||||
|
||||
.wr-roster {
|
||||
border-right: 1px solid rgba(255,255,255,0.08);
|
||||
padding-right: 0.5rem;
|
||||
max-height: 70vh;
|
||||
padding-right: 0.4rem;
|
||||
overflow: auto;
|
||||
min-height: 0;
|
||||
}
|
||||
.wr-roster h3 {
|
||||
font-size: 0.72rem;
|
||||
font-size: 0.7rem;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.7;
|
||||
margin: 0 0 0.4rem;
|
||||
margin: 0 0 0.35rem;
|
||||
}
|
||||
.wr-room-btn, .wr-agent-btn {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
gap: 0.45rem;
|
||||
text-align: left;
|
||||
background: transparent;
|
||||
border: 1px solid transparent;
|
||||
color: inherit;
|
||||
padding: 0.4rem 0.45rem;
|
||||
padding: 0.32rem 0.4rem;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -37,51 +42,55 @@
|
||||
border-color: rgba(255, 215, 0, 0.25);
|
||||
}
|
||||
.wr-agent-meta { display: flex; flex-direction: column; min-width: 0; }
|
||||
.wr-agent-meta strong { font-size: 0.85rem; }
|
||||
.wr-agent-meta small { opacity: 0.65; font-size: 0.7rem; }
|
||||
.wr-roster .agent-char-wrap { width: 34px; height: 34px; flex: 0 0 34px; }
|
||||
.wr-agent-meta strong { font-size: 0.8rem; }
|
||||
.wr-agent-meta small { opacity: 0.65; font-size: 0.68rem; }
|
||||
.wr-roster .agent-char-wrap { width: 40px; height: 40px; flex: 0 0 40px; }
|
||||
|
||||
.wr-main { display: flex; flex-direction: column; min-width: 0; min-height: 62vh; }
|
||||
.wr-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
}
|
||||
.wr-head {
|
||||
display: flex; justify-content: space-between; align-items: flex-start;
|
||||
gap: 0.75rem; margin-bottom: 0.5rem;
|
||||
gap: 0.5rem; margin-bottom: 0.35rem; flex: 0 0 auto;
|
||||
}
|
||||
.wr-head h2 { margin: 0; font-size: 1.05rem; letter-spacing: 0.04em; }
|
||||
.wr-head-actions { display: flex; gap: 0.35rem; }
|
||||
.wr-head h2 { margin: 0; font-size: 1rem; letter-spacing: 0.04em; }
|
||||
.wr-head-actions { display: flex; gap: 0.3rem; flex-wrap: wrap; }
|
||||
|
||||
.wr-log {
|
||||
flex: 1;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
background: rgba(0,0,0,0.22);
|
||||
border: 1px solid rgba(255,255,255,0.06);
|
||||
border-radius: 10px;
|
||||
padding: 0.75rem;
|
||||
contain: content;
|
||||
min-height: 320px;
|
||||
padding: 0.55rem 0.65rem;
|
||||
}
|
||||
.wr-empty { opacity: 0.6; margin: 0.5rem 0; font-size: 0.9rem; }
|
||||
.wr-empty { opacity: 0.6; margin: 0.35rem 0; font-size: 0.85rem; }
|
||||
|
||||
.wr-bubble {
|
||||
display: flex; gap: 0.55rem; margin-bottom: 0.7rem;
|
||||
contain: layout style;
|
||||
display: flex; gap: 0.45rem; margin-bottom: 0.45rem;
|
||||
}
|
||||
.wr-bubble.is-user { flex-direction: row-reverse; }
|
||||
.wr-bubble.is-system { opacity: 0.85; }
|
||||
.wr-avatar { width: 36px; height: 36px; flex: 0 0 36px; }
|
||||
.wr-avatar { width: 44px; height: 44px; flex: 0 0 44px; }
|
||||
.wr-avatar img, .wr-avatar .agent-char-wrap {
|
||||
width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
|
||||
width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
|
||||
}
|
||||
.wr-avatar .agent-char-wrap svg { display: block; width: 36px; height: 36px; }
|
||||
.wr-avatar .agent-char-wrap svg { display: block; width: 44px; height: 44px; }
|
||||
.wr-avatar-fallback {
|
||||
display: grid; place-items: center; width: 36px; height: 36px;
|
||||
border-radius: 50%; background: #1e3a5f; font-size: 0.7rem; font-weight: 700;
|
||||
display: grid; place-items: center; width: 44px; height: 44px;
|
||||
border-radius: 50%; background: #1e3a5f; font-size: 0.65rem; font-weight: 700;
|
||||
}
|
||||
.wr-bubble-body {
|
||||
max-width: min(720px, 82%);
|
||||
max-width: min(680px, 85%);
|
||||
background: rgba(255,255,255,0.05);
|
||||
border: 1px solid rgba(255,255,255,0.08);
|
||||
border-radius: 12px;
|
||||
padding: 0.45rem 0.65rem;
|
||||
border-radius: 10px;
|
||||
padding: 0.35rem 0.55rem;
|
||||
}
|
||||
.wr-bubble.is-user .wr-bubble-body {
|
||||
background: rgba(34, 197, 94, 0.12);
|
||||
@@ -91,85 +100,288 @@
|
||||
background: rgba(56, 189, 248, 0.08);
|
||||
border-color: rgba(56, 189, 248, 0.22);
|
||||
}
|
||||
.wr-bubble.is-typing .wr-bubble-body {
|
||||
border-style: dashed;
|
||||
opacity: 0.95;
|
||||
}
|
||||
.wr-bubble-meta {
|
||||
font-size: 0.7rem; opacity: 0.7; margin-bottom: 0.15rem;
|
||||
}
|
||||
.wr-bubble.is-typing .wr-bubble-body { border-style: dashed; }
|
||||
.wr-bubble-meta { font-size: 0.68rem; opacity: 0.7; margin-bottom: 0.1rem; }
|
||||
.wr-bubble-text {
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
font-size: 0.92rem;
|
||||
line-height: 1.35;
|
||||
font-size: 0.88rem;
|
||||
line-height: 1.3;
|
||||
}
|
||||
.wr-typing-cursor::after {
|
||||
content: '▍
|
||||
content: "▌";
|
||||
animation: wrBlink 1s steps(1) infinite;
|
||||
margin-left: 1px;
|
||||
}
|
||||
@keyframes wrBlink { 50% { opacity: 0; } }
|
||||
|
||||
.wr-attach-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
|
||||
.wr-attach-list { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.3rem; }
|
||||
.wr-attach-card {
|
||||
display: block; max-width: 220px; text-decoration: none; color: inherit;
|
||||
display: block; max-width: 300px; text-decoration: none; color: inherit;
|
||||
border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; overflow: hidden;
|
||||
background: rgba(0,0,0,0.2);
|
||||
}
|
||||
.wr-attach-card img { display: block; width: 100%; max-height: 140px; object-fit: cover; }
|
||||
.wr-attach-card img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
|
||||
.wr-attach-card span {
|
||||
display: block; padding: 0.3rem 0.45rem; font-size: 0.72rem; opacity: 0.85;
|
||||
display: block; padding: 0.25rem 0.4rem; font-size: 0.7rem; opacity: 0.85;
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.wr-composer {
|
||||
margin-top: 0.55rem;
|
||||
margin-top: 0.4rem;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: 0.45rem;
|
||||
gap: 0.35rem;
|
||||
align-items: end;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
.wr-composer-tools {
|
||||
grid-column: 1 / -1;
|
||||
display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
|
||||
display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center;
|
||||
}
|
||||
.wr-pending {
|
||||
display: flex; flex-wrap: wrap; gap: 0.35rem; grid-column: 1 / -1;
|
||||
display: flex; flex-wrap: wrap; gap: 0.3rem; grid-column: 1 / -1;
|
||||
}
|
||||
.wr-pending-chip {
|
||||
display: inline-flex; align-items: center; gap: 0.3rem;
|
||||
font-size: 0.72rem; padding: 0.2rem 0.45rem;
|
||||
display: inline-flex; align-items: center; gap: 0.25rem;
|
||||
font-size: 0.7rem; padding: 0.15rem 0.4rem;
|
||||
border-radius: 999px; background: rgba(255,255,255,0.08);
|
||||
}
|
||||
.wr-pending-chip button {
|
||||
border: 0; background: transparent; color: inherit; cursor: pointer; opacity: 0.7;
|
||||
}
|
||||
.wr-emoji-pop {
|
||||
display: flex; flex-wrap: wrap; gap: 0.2rem;
|
||||
max-width: 280px; padding: 0.35rem;
|
||||
display: flex; flex-wrap: wrap; gap: 0.15rem;
|
||||
max-width: 280px; padding: 0.3rem;
|
||||
background: #0f172a; border: 1px solid rgba(255,255,255,0.12);
|
||||
border-radius: 10px;
|
||||
}
|
||||
.wr-emoji-pop button {
|
||||
border: 0; background: transparent; cursor: pointer; font-size: 1.15rem; line-height: 1;
|
||||
padding: 0.15rem;
|
||||
border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; line-height: 1;
|
||||
padding: 0.12rem;
|
||||
}
|
||||
.wr-emoji-pop button:hover { transform: scale(1.15); }
|
||||
|
||||
.wr-page-header { margin-bottom: 0.75rem; }
|
||||
.wr-page-header h1 { font-size: 1.35rem; }
|
||||
/* Call overlay */
|
||||
.wr-call-overlay {
|
||||
position: fixed; inset: 0; z-index: 11000;
|
||||
background: rgba(3, 8, 18, 0.82);
|
||||
display: none; align-items: center; justify-content: center;
|
||||
padding: 1rem; pointer-events: none;
|
||||
}
|
||||
.wr-call-panel {
|
||||
width: min(1100px, 96vw);
|
||||
height: min(780px, 92vh);
|
||||
background: #0b1220;
|
||||
border: 1px solid rgba(255,255,255,0.12);
|
||||
border-radius: 14px;
|
||||
display: flex; flex-direction: column;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 20px 60px rgba(0,0,0,0.45);
|
||||
}
|
||||
.wr-call-head {
|
||||
display: flex; justify-content: space-between; align-items: center;
|
||||
gap: 0.75rem; padding: 0.65rem 0.85rem;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.08);
|
||||
}
|
||||
.wr-call-head h3 { margin: 0; font-size: 1rem; }
|
||||
.wr-call-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
|
||||
.wr-call-frame {
|
||||
flex: 1; border: 0; width: 100%; background: #000;
|
||||
}
|
||||
.wr-call-hint {
|
||||
margin: 0; padding: 0.45rem 0.85rem; font-size: 0.78rem; opacity: 0.75;
|
||||
border-top: 1px solid rgba(255,255,255,0.06);
|
||||
}
|
||||
|
||||
.wr-popup-body {
|
||||
margin: 0; min-height: 100vh;
|
||||
margin: 0; height: 100vh; overflow: hidden;
|
||||
background: #070b14; color: #e8eef8;
|
||||
}
|
||||
.wr-popup-shell { padding: 0.75rem; }
|
||||
.wr-popup-shell .wr-layout { min-height: calc(100vh - 1.5rem); }
|
||||
.wr-popup-shell .wr-main { min-height: calc(100vh - 1.5rem); }
|
||||
.wr-popup-shell .wr-log { min-height: 50vh; }
|
||||
.wr-popup-shell { padding: 0.55rem; height: 100vh; box-sizing: border-box; }
|
||||
.wr-popup-shell .wr-layout {
|
||||
height: calc(100vh - 1.1rem);
|
||||
max-height: calc(100vh - 1.1rem);
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.wr-layout { grid-template-columns: 1fr; }
|
||||
.wr-roster { max-height: 180px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
|
||||
.wr-layout {
|
||||
grid-template-columns: 1fr;
|
||||
height: auto;
|
||||
max-height: none;
|
||||
}
|
||||
.wr-roster { max-height: 140px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
|
||||
.wr-main { height: calc(100vh - 280px); }
|
||||
}
|
||||
|
||||
|
||||
.wr-composer-wrap { position: relative; grid-column: 1 / 2; }
|
||||
.wr-mention-pop {
|
||||
position: absolute;
|
||||
left: 0; right: 0; bottom: calc(100% + 4px);
|
||||
max-height: 220px; overflow: auto;
|
||||
background: #0f172a;
|
||||
border: 1px solid rgba(255,215,0,0.35);
|
||||
border-radius: 10px;
|
||||
z-index: 20;
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.4);
|
||||
}
|
||||
.wr-mention-item {
|
||||
width: 100%; display: flex; align-items: center; gap: 0.45rem;
|
||||
text-align: left; border: 0; background: transparent; color: inherit;
|
||||
padding: 0.4rem 0.55rem; cursor: pointer;
|
||||
}
|
||||
.wr-mention-item:hover, .wr-mention-item.active {
|
||||
background: rgba(255, 215, 0, 0.12);
|
||||
}
|
||||
.wr-mention-item strong { font-size: 0.85rem; }
|
||||
.wr-mention-item small { opacity: 0.65; margin-left: 0.25rem; }
|
||||
.wr-agent-btn .wr-dm-hint {
|
||||
margin-left: auto; font-size: 0.65rem; opacity: 0.45;
|
||||
}
|
||||
|
||||
.wr-bubble-meta { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
|
||||
.wr-msg-del {
|
||||
margin-left: auto;
|
||||
opacity: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
font-size: 0.75rem;
|
||||
padding: 0 0.2rem;
|
||||
line-height: 1;
|
||||
}
|
||||
.wr-bubble:hover .wr-msg-del { opacity: 0.55; }
|
||||
.wr-msg-del:hover { opacity: 1 !important; color: #e74c3c; }
|
||||
.wr-call-join {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.75rem;
|
||||
padding: 1.5rem;
|
||||
text-align: center;
|
||||
min-height: 280px;
|
||||
}
|
||||
.wr-call-title { margin: 0; font-size: 1.15rem; font-weight: 600; }
|
||||
.wr-call-join-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
|
||||
.wr-call-link {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: 0.75rem;
|
||||
opacity: 0.75;
|
||||
padding: 0.4rem 0.6rem;
|
||||
border-radius: 6px;
|
||||
background: rgba(255,255,255,0.06);
|
||||
}
|
||||
|
||||
/* Call overlay must escape wr-main overflow clipping */
|
||||
.wr-main { position: relative; }
|
||||
.wr-call-overlay {
|
||||
position: fixed !important;
|
||||
inset: 0 !important;
|
||||
z-index: 11000 !important;
|
||||
}
|
||||
|
||||
.btn.is-recording, button.is-recording {
|
||||
background: #c0392b !important;
|
||||
color: #fff !important;
|
||||
animation: wr-mic-pulse 1s ease-in-out infinite;
|
||||
}
|
||||
@keyframes wr-mic-pulse {
|
||||
0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.5); }
|
||||
50% { box-shadow: 0 0 0 8px rgba(192,57,43,0); }
|
||||
}
|
||||
|
||||
.wr-voice-overlay {
|
||||
position: fixed !important; inset: 0 !important; z-index: 11000 !important;
|
||||
background: rgba(3, 8, 18, 0.88);
|
||||
display: none; /* CRITICAL: never cover chat when closed */
|
||||
align-items: center; justify-content: center;
|
||||
padding: 1rem;
|
||||
pointer-events: none;
|
||||
}
|
||||
.wr-voice-overlay.is-open {
|
||||
display: flex !important;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.wr-voice-panel {
|
||||
width: min(920px, 96vw);
|
||||
max-height: 92vh;
|
||||
overflow: auto;
|
||||
background: #0b1220;
|
||||
border: 1px solid rgba(255,255,255,0.12);
|
||||
border-radius: 16px;
|
||||
padding: 1rem 1.1rem 1.15rem;
|
||||
box-shadow: 0 24px 70px rgba(0,0,0,0.5);
|
||||
color: #e8eef8;
|
||||
}
|
||||
.wr-voice-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; }
|
||||
.wr-voice-head h3 { margin: 0; font-size: 1.15rem; }
|
||||
.wr-voice-head-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
|
||||
.wr-voice-status {
|
||||
margin: 0.85rem 0 0.75rem;
|
||||
padding: 0.55rem 0.75rem;
|
||||
border-radius: 10px;
|
||||
background: rgba(255,255,255,0.05);
|
||||
font-size: 0.9rem;
|
||||
min-height: 1.4em;
|
||||
}
|
||||
.wr-voice-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.wr-voice-card {
|
||||
display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
|
||||
padding: 0.75rem 0.5rem;
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
background: rgba(255,255,255,0.03);
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: border-color .15s, box-shadow .15s, opacity .15s;
|
||||
}
|
||||
.wr-voice-card.is-human { cursor: default; border-color: rgba(56, 189, 248, 0.35); }
|
||||
.wr-voice-card.is-live {
|
||||
border-color: rgba(34, 197, 94, 0.7);
|
||||
box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
|
||||
}
|
||||
.wr-voice-card.is-off { opacity: 0.45; }
|
||||
.wr-voice-avatar {
|
||||
width: 52px; height: 52px; border-radius: 50%;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
overflow: hidden; background: #1e293b;
|
||||
}
|
||||
.wr-voice-avatar-human {
|
||||
font-weight: 700; font-size: 0.85rem; background: #0ea5e9; color: #041018;
|
||||
}
|
||||
.wr-voice-avatar .agent-char-wrap, .wr-voice-avatar.agent-char-wrap { width: 52px; height: 52px; }
|
||||
.wr-voice-card strong { font-size: 0.82rem; }
|
||||
.wr-voice-card small { font-size: 0.7rem; }
|
||||
.wr-voice-hint { font-size: 0.8rem; opacity: 0.8; margin: 0.75rem 0 0.25rem; }
|
||||
.wr-voice-ptt { display: flex; justify-content: center; margin: 1rem 0 0.5rem; }
|
||||
.wr-ptt-btn {
|
||||
min-width: min(320px, 90vw);
|
||||
min-height: 64px;
|
||||
border: 0; border-radius: 999px;
|
||||
font-size: 1.05rem; font-weight: 600;
|
||||
background: linear-gradient(135deg, #0ea5e9, #2563eb);
|
||||
color: #fff; cursor: pointer;
|
||||
box-shadow: 0 10px 30px rgba(14,165,233,0.35);
|
||||
}
|
||||
.wr-ptt-btn.is-recording {
|
||||
background: linear-gradient(135deg, #dc2626, #b91c1c);
|
||||
animation: wr-mic-pulse 1s ease-in-out infinite;
|
||||
}
|
||||
.wr-ptt-btn.is-busy { opacity: 0.7; cursor: wait; }
|
||||
.wr-voice-foot {
|
||||
display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
|
||||
flex-wrap: wrap; margin-top: 0.85rem; padding-top: 0.75rem;
|
||||
border-top: 1px solid rgba(255,255,255,0.08);
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user