#casaland-gpt {
    --cg-navy: #142e46;
    --cg-gold: #e6c889;
    position: fixed;
    z-index: 99990;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    display: grid;
    justify-items: end;
    gap: 10px;
    font: 15px/1.45 system-ui, sans-serif;
    color: var(--cg-navy);
}
#casaland-gpt *, #casaland-gpt *::before, #casaland-gpt *::after {
    box-sizing: border-box;
}
#casaland-gpt button {
    cursor: pointer;
    font: inherit;
}
#casaland-gpt button:focus-visible, #casaland-gpt a:focus-visible, #casaland-gpt input:focus-visible {
    outline: 2px solid #3877b1;
    outline-offset: 2px;
}
#casaland-gpt .cg-launch, #casaland-gpt .cg-form button {
    padding: 11px 16px;
    border: 1px solid var(--cg-gold);
    border-radius: 24px;
    background: var(--cg-navy);
    color: #fff;
    font-weight: 650;
}
#casaland-gpt .cg-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    max-width: calc(100vw - max(16px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-right)));
    padding: 8px 15px;
    line-height: 1.25;
}
#casaland-gpt .cg-launch-icon {
    position: relative;
    flex: 0 0 27px;
    height: 26px;
    color: var(--cg-gold);
}
#casaland-gpt .cg-launch-icon::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 6px;
    width: 21px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 6px 6px 6px 1px;
    transform: skewY(-7deg);
}
#casaland-gpt .cg-launch-icon::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: currentColor;
    clip-path: polygon(50% 0, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0 50%, 35% 35%);
}
#casaland-gpt .cg-panel {
    display: flex;
    flex-direction: column;
    width: min(390px, calc(100vw - 32px));
    max-height: min(600px, calc(100dvh - 90px));
    border: 1px solid #d6dce4;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 35px #142e4636;
}
#casaland-gpt .cg-panel[hidden] {
    display: none;
}
#casaland-gpt .cg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: var(--cg-navy);
    color: var(--cg-gold);
}
#casaland-gpt .cg-close {
    min-width: 38px;
    min-height: 38px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
}
#casaland-gpt .cg-log {
    min-height: 0;
    height: 290px;
    overflow: auto;
    padding: 14px;
}
#casaland-gpt .cg-bubble {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #edf2f7;
    color: var(--cg-navy);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
#casaland-gpt .cg-user {
    margin-left: auto;
    background: var(--cg-navy);
    color: #fff;
}
#casaland-gpt .cg-error {
    background: #f9e9e9;
    color: #793030;
}
#casaland-gpt .cg-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 4px;
    border-top: 1px solid #d6dce4;
}
#casaland-gpt .cg-form input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #8c99a5;
    border-radius: 8px;
    background: #fff;
    color: var(--cg-navy);
    font: inherit;
    font-size: 16px;
}
#casaland-gpt .cg-form button:disabled {
    opacity: .55;
    cursor: wait;
}
#casaland-gpt .cg-note {
    margin: 0;
    padding: 4px 12px 10px;
    font-size: 12px;
}
#casaland-gpt a {
    color: #164e7c;
    text-decoration: underline;
}
