.grc-root {
position: fixed;
z-index: 999999;
bottom: calc(38px + env(safe-area-inset-bottom, 0px));
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
.grc-pos-br { right: 38px; }
.grc-pos-bl { left: 38px; }
.grc-launcher-wrap {
display: flex;
flex-direction: column;
align-items: center;
gap: 0;
}
@keyframes grc-float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-6px); }
}
.grc-launcher {
width: 64px;
height: 64px;
border-radius: 50%;
overflow: hidden;
border: 0;
background: var(--grc-primary, #1877F2);
color: #fff;
cursor: pointer;
box-shadow: 0 4px 14px rgba(0,0,0,.25), 0 0 0 3px rgba(255,255,255,.9);
display: grid;
place-items: center;
position: relative;
transition: box-shadow .15s ease, background .2s ease;
animation: grc-float 2.5s ease-in-out infinite;
}
.grc-launcher:hover {
background: #2563EB;
animation: none;
transform: scale(1.05) translateY(0);
box-shadow: 0 6px 20px rgba(0,0,0,.3), 0 0 0 3px rgba(255,255,255,1);
}
.grc-launcher-label {
display: block;
margin-top: 6px;
font-size: 12px;
font-weight: 600;
color: #0f1419;
background: rgba(255,255,255,.95);
border: 1px solid rgba(0,0,0,.08);
box-shadow: 0 6px 18px rgba(0,0,0,.14);
border-radius: 999px;
padding: 4px 10px;
white-space: nowrap;
pointer-events: none;
}
.grc-root.grc-open .grc-launcher-label {
opacity: 0.7;
}
.grc-launcher__icon {
display: grid;
place-items: center;
}
.grc-launcher__icon svg {
width: 28px;
height: 28px;
}
.grc-launcher__badge {
position: absolute;
top: 12px;
right: 12px;
width: 12px;
height: 12px;
border-radius: 999px;
background: #ff3b30;
box-shadow: 0 0 0 2px rgba(255,255,255,.9);
opacity: 0;
}
.grc-panel {
position: absolute;
bottom: 92px;
width: var(--grc-w, 360px);
height: var(--grc-h, 520px);
background: #fff;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0,0,0,.28);
overflow: hidden;
display: none;
}
.grc-pos-br .grc-panel { right: 0; }
.grc-pos-bl .grc-panel { left: 0; }
.grc-root.grc-open .grc-panel { display: flex; flex-direction: column; }
.grc-root.grc-open .grc-launcher { animation: none; transform: translateY(0); }
.grc-beta {
padding: 10px 12px;
font-size: 12px;
line-height: 1.35;
color: rgba(15, 20, 25, .9);
background: #fff7ed;
border-bottom: 1px solid rgba(0,0,0,.06);
}
.grc-header {
padding: 12px 12px;
background: var(--grc-primary, #1877F2);
color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
}
.grc-header__title {
font-weight: 700;
font-size: 14px;
letter-spacing: .2px;
}
.grc-close {
border: 0;
background: transparent;
color: rgba(255,255,255,.92);
font-size: 22px;
line-height: 1;
cursor: pointer;
padding: 0 6px;
}
.grc-log {
flex: 1;
padding: 12px;
overflow: auto;
background: #f5f6f7;
}
.grc-row {
display: flex;
margin: 8px 0;
}
.grc-row.is-user { justify-content: flex-end; }
.grc-row.is-bot { justify-content: flex-start; }
.grc-bubble {
max-width: 84%;
padding: 10px 12px;
border-radius: 18px;
font-size: 14px;
line-height: 1.55;
white-space: pre-wrap;
word-break: break-word;
}
.grc-row.is-bot .grc-bubble {
background: #fff;
color: #0f1419;
border: 1px solid rgba(0,0,0,.06);
border-bottom-left-radius: 6px;
}
.grc-row.is-user .grc-bubble {
background: var(--grc-primary, #1877F2);
color: #fff;
border-bottom-right-radius: 6px;
}
.grc-bubble-img {
max-width: 100%;
height: auto;
border-radius: 8px;
margin: 8px 0;
display: block;
vertical-align: middle;
}
.grc-compose {
display: flex;
gap: 8px;
padding: 10px;
border-top: 1px solid rgba(0,0,0,.06);
background: #fff;
}
.grc-input {
flex: 1;
border: 1px solid rgba(0,0,0,.14);
border-radius: 999px;
padding: 10px 12px;
outline: none;
font-size: 14px;
}
.grc-input:focus {
border-color: color-mix(in srgb, var(--grc-primary, #1877F2) 60%, #ffffff);
box-shadow: 0 0 0 3px rgba(24,119,242,.14);
}
.grc-send {
border: 0;
background: var(--grc-primary, #1877F2);
color: #fff;
border-radius: 999px;
padding: 10px 14px;
cursor: pointer;
font-weight: 600;
}
.grc-send:disabled,
.grc-input:disabled {
opacity: .6;
cursor: not-allowed;
} @media (max-width: 520px) {
.grc-root {
bottom: calc(58px + env(safe-area-inset-bottom, 0px));
}
.grc-root .grc-launcher {
width: 64px !important;
height: 64px !important;
min-width: 64px !important;
min-height: 64px !important;
max-width: 64px !important;
border-radius: 50% !important;
display: grid !important;
place-items: center !important;
padding: 0 !important;
}
.grc-root .grc-launcher__icon {
display: grid !important;
place-items: center !important;
}
.grc-root .grc-launcher__icon svg {
width: 28px !important;
height: 28px !important;
display: block !important;
}
}