/* BridgeContext: Switchboard UI Styles v1.3.0 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
#cr-switchboard-container {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 999999;
font-family: 'Inter', sans-serif;
}
#cr-switchboard-trigger {
width: 56px;
height: 56px;
border-radius: 28px;
background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
border: 2px solid rgba(255, 255, 255, 0.2);
}
#cr-switchboard-trigger:hover {
transform: scale(1.08);
box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}
#cr-switchboard-trigger svg {
color: white;
width: 24px;
height: 24px;
}
#cr-switchboard-menu {
position: absolute;
bottom: 72px;
right: 0;
width: 280px;
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.4);
border-radius: 20px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05);
overflow: hidden;
display: none;
flex-direction: column;
transform-origin: bottom right;
animation: cr-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#cr-switchboard-menu.open {
display: flex;
}
.cr-menu-header {
padding: 18px;
border-bottom: 1px solid rgba(0, 0, 0, 0.03);
font-weight: 700;
font-size: 15px;
letter-spacing: -0.01em;
color: #111827;
display: flex;
justify-content: space-between;
align-items: center;
}
.cr-menu-list {
max-height: 320px;
overflow-y: auto;
padding: 10px;
}
.cr-context-item {
padding: 14px;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
margin-bottom: 6px;
border: 1px solid transparent;
opacity: 0;
transform: translateY(10px);
animation: cr-item-in 0.4s forwards;
}
@keyframes cr-item-in {
to {
opacity: 1;
transform: translateY(0);
}
}
.cr-context-item:nth-child(1) {
animation-delay: 0.05s;
}
.cr-context-item:nth-child(2) {
animation-delay: 0.1s;
}
.cr-context-item:nth-child(3) {
animation-delay: 0.15s;
}
.cr-context-item:nth-child(4) {
animation-delay: 0.2s;
}
.cr-context-item:nth-child(5) {
animation-delay: 0.25s;
}
.cr-context-item:hover {
background: rgba(255, 255, 255, 0.6);
border-color: rgba(99, 102, 241, 0.15);
transform: translateY(-2px) scale(1.02);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.cr-item-name {
font-weight: 600;
font-size: 13px;
color: #1f2937;
margin-bottom: 2px;
}
.cr-item-desc {
font-size: 11px;
color: #6b7280;
line-height: 1.4;
}
/* --- Premium Toasts --- */
#cr-toast-container {
position: fixed;
bottom: 24px;
left: 24px;
z-index: 9999999;
display: flex;
flex-direction: column;
gap: 12px;
pointer-events: none;
}
.cr-toast {
min-width: 280px;
max-width: 380px;
background: rgba(17, 24, 39, 0.9);
backdrop-filter: blur(8px);
color: white;
padding: 14px 18px;
border-radius: 14px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
display: flex;
align-items: center;
gap: 14px;
animation: toast-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
pointer-events: auto;
}
.cr-toast-icon {
width: 32px;
height: 32px;
background: linear-gradient(135deg, #6366f1, #a855f7);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
flex-shrink: 0;
}
.cr-toast-body {
flex: 1;
}
.cr-toast-title {
font-weight: 600;
font-size: 13px;
margin-bottom: 2px;
}
.cr-toast-desc {
font-size: 11px;
opacity: 0.7;
}
@keyframes toast-in {
from {
transform: translateX(-40px) opacity(0);
opacity: 0;
}
to {
transform: translateX(0) opacity(1);
opacity: 1;
}
}
.cr-toast.fade-out {
animation: toast-out 0.4s ease forwards;
}
@keyframes toast-out {
to {
opacity: 0;
transform: translateY(20px);
}
}
@keyframes cr-pulse-detected {
0% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
}
70% {
transform: scale(1.02);
box-shadow: 0 0 0 15px rgba(6, 182, 212, 0);
}
100% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
}
}
@keyframes cr-pulse-urgent {
0% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6), 0 0 20px rgba(99, 102, 241, 0.2);
}
50% {
transform: scale(1.1);
box-shadow: 0 0 0 20px rgba(99, 102, 241, 0), 0 0 40px rgba(99, 102, 241, 0.4);
}
100% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(99, 102, 241, 0), 0 0 20px rgba(99, 102, 241, 0.2);
}
}
.cr-pulse-detected {
animation: cr-pulse-detected 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
border-color: #06b6d4 !important;
}
.cr-pulse-urgent {
animation: cr-pulse-urgent 1.2s infinite ease-in-out;
border-color: #6366f1 !important;
}
/* --- Bridge Prompt Toast --- */
.bridge-prompt-toast {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border: 1px solid rgba(99, 102, 241, 0.2);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
border-radius: 16px;
padding: 12px 20px;
display: flex;
align-items: center;
gap: 16px;
z-index: 9999999;
animation: slideUpFade 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
min-width: 320px;
}
@keyframes slideUpFade {
from {
transform: translateX(-50%) translateY(40px);
opacity: 0;
}
to {
transform: translateX(-50%) translateY(0);
opacity: 1;
}
}
.bridge-prompt-icon {
font-size: 24px;
background: linear-gradient(135deg, #6366f1, #a855f7);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.bridge-prompt-content {
flex: 1;
}
.bridge-prompt-title {
font-weight: 700;
font-size: 14px;
color: #111827;
}
.bridge-prompt-desc {
font-size: 12px;
color: #6b7280;
}
.bridge-prompt-actions {
display: flex;
gap: 8px;
align-items: center;
}
.bridge-confirm-btn {
background: #6366f1;
color: white;
border: none;
padding: 6px 14px;
border-radius: 8px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.bridge-confirm-btn:hover {
background: #4f46e5;
transform: translateY(-1px);
}
.bridge-dismiss-btn {
background: transparent;
border: none;
color: #9ca3af;
font-size: 16px;
cursor: pointer;
padding: 4px;
transition: color 0.2s;
}
.bridge-dismiss-btn:hover {
color: #4b5563;
}
.cr-pulse-active {
animation: cr-pulse-detected 2s infinite ease-in-out;
border-color: rgba(255, 255, 255, 0.8) !important;
}
@keyframes cr-slide-up {
from {
opacity: 0;
transform: scale(0.95) translateY(10px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
/* Scrollbar styling */
.cr-menu-list::-webkit-scrollbar {
width: 6px;
}
.cr-menu-list::-webkit-scrollbar-track {
background: transparent;
}
.cr-menu-list::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.1);
border-radius: 3px;
}
/* --- Shuttle Tray --- */
.cr-shuttle-tray {
padding: 12px 18px;
background: rgba(0, 0, 0, 0.03);
border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.cr-tray-label {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #6b7280;
margin-bottom: 8px;
}
.cr-tray-actions {
display: flex;
gap: 8px;
}
.cr-shuttle-btn {
flex: 1;
background: white;
border: 1px solid rgba(0, 0, 0, 0.08);
border-radius: 8px;
padding: 6px 0;
font-size: 10px;
font-weight: 600;
color: #374151;
cursor: pointer;
transition: all 0.2s;
}
.cr-shuttle-btn:hover {
background: #f9fafb;
border-color: #6366f1;
color: #6366f1;
transform: translateY(-1px);
}