.gsre-root {
    --gsre-bg: #0b0d10;
    --gsre-bg-elevated: rgba(10, 14, 20, 0.96);
    --gsre-border: rgba(255, 255, 255, 0.12);
    --gsre-border-strong: rgba(255, 255, 255, 0.2);
    --gsre-accent: #ffbf3d;
    --gsre-accent-alt: #c09b2f;
    --gsre-text: #e8eaee;
    --gsre-muted: rgba(232, 234, 238, 0.78);

    position: fixed;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    z-index: 2147483000;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--gsre-text);
}

.gsre-launch {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 104px !important;
    height: 104px !important;
    min-width: 104px;
    min-height: 104px;
    max-width: none !important;
    max-height: none !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 1px solid var(--gsre-border);
    border-top: 3px solid var(--gsre-accent-alt);
    border-radius: 14px 0 0 0;
    background: linear-gradient(145deg, rgba(12, 17, 24, 0.98) 0%, rgba(7, 10, 15, 0.98) 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.gsre-launch:hover {
    transform: translateY(-2px);
    border-color: var(--gsre-border-strong);
}

.gsre-launch-image,
.gsre-avatar {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.gsre-launch-image {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-image:
        linear-gradient(155deg, rgba(255, 191, 61, 0.14) 0%, rgba(255, 191, 61, 0) 55%),
        radial-gradient(circle at 30% 24%, rgba(192, 155, 47, 0.22), rgba(12, 17, 24, 0.95) 65%);
}

.gsre-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: calc(100vw - 8px);
    max-height: min(70vh, 460px);
    margin-bottom: 0;
    border: 1px solid var(--gsre-border);
    border-radius: 14px 0 0 0;
    background: linear-gradient(160deg, rgba(11, 15, 21, 0.98), rgba(8, 12, 18, 0.98));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.48);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}

.gsre-root.is-expanded .gsre-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.gsre-root.is-expanded .gsre-launch {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.gsre-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, rgba(255, 191, 61, 0.14) 0%, rgba(255, 191, 61, 0.04) 42%, rgba(255, 191, 61, 0) 100%);
}

.gsre-panel-identity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gsre-avatar {
    width: 76px;
    height: 76px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-image: radial-gradient(circle at 35% 30%, rgba(192, 155, 47, 0.38), rgba(12, 17, 24, 0.96) 68%);
}

.gsre-title {
    display: block;
    margin: 0;
    font-family: "Teko", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 0.95;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

.gsre-subtitle {
    display: block;
    margin-top: 1px;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gsre-muted);
}

.gsre-icon-btn {
    border: 1px solid var(--gsre-border-strong);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #f7fbff;
    width: 22px;
    height: 22px;
    cursor: pointer;
    line-height: 1;
}

.gsre-content {
    padding: 10px 12px 10px;
}

.gsre-quote {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--gsre-text);
}

.gsre-meta-row {
    margin-top: 10px;
}

.gsre-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    line-height: 1;
    color: #ffffff;
}

.gsre-actions {
    display: flex;
    gap: 8px;
    padding: 0 12px 10px;
    flex-wrap: wrap;
}

.gsre-action {
    appearance: none;
    border: 1px solid var(--gsre-accent);
    border-radius: 8px;
    min-height: 34px;
    padding: 0 10px;
    font-family: "Teko", "Segoe UI", sans-serif;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    color: #111318;
    background: linear-gradient(135deg, #ffd977 0%, #ffbf3d 100%);
    transition: transform 120ms ease, filter 120ms ease, box-shadow 160ms ease;
    box-shadow: 0 8px 16px rgba(255, 191, 61, 0.22);
}

.gsre-action:hover,
.gsre-action:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 10px 20px rgba(255, 191, 61, 0.28);
}

.gsre-action-ghost {
    border-color: var(--gsre-border-strong);
    background: rgba(18, 25, 35, 0.95);
    color: #eef4fa;
    box-shadow: none;
}

.gsre-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.gsre-root.is-disabled .gsre-panel {
    border-color: rgba(255, 255, 255, 0.14);
}

.gsre-momentum-actions {
    display: none;
    gap: 6px;
    padding: 10px 12px 12px;
}

.gsre-momentum-tip-wrap {
    position: relative;
    margin: 6px 0 2px;
    padding-top: 12px;
}

.gsre-momentum-tip-tag {
    position: absolute;
    top: -4px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(16, 24, 34, 0.94);
    color: #ffe7a2;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gsre-momentum-action {
    width: 100%;
    min-height: 40px;
    justify-content: center;
}

.gsre-momentum-tip {
    position: relative;
    margin: 0;
    padding: 12px 12px 11px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(165deg, rgba(18, 27, 39, 0.98), rgba(11, 18, 28, 0.98));
    color: #f2f5fa;
    font-size: 13px;
    line-height: 1.45;
}

.gsre-momentum-tip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 12px;
    width: 14px;
    height: 14px;
    transform: rotate(45deg);
    border-left: 1px solid rgba(255, 255, 255, 0.24);
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(18, 27, 39, 0.98);
}
.gsre-root.is-momentum-mode .gsre-panel,
.gsre-root.is-pitzero-mode .gsre-panel {
    width: 320px;
    max-height: min(60vh, 360px);
    grid-template-rows: auto 1fr;
}

.gsre-root.is-momentum-mode .gsre-panel-header,
.gsre-root.is-pitzero-mode .gsre-panel-header {
    justify-content: space-between;
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, rgba(255, 191, 61, 0.14) 0%, rgba(255, 191, 61, 0.04) 42%, rgba(255, 191, 61, 0) 100%);
}

.gsre-root.is-momentum-mode .gsre-content,
.gsre-root.is-pitzero-mode .gsre-content,
.gsre-root.is-momentum-mode .gsre-actions,
.gsre-root.is-pitzero-mode .gsre-actions {
    display: none;
}

.gsre-root.is-momentum-mode .gsre-momentum-actions,
.gsre-root.is-pitzero-mode .gsre-momentum-actions {
    display: grid;
    align-content: start;
}

.gsre-mode-modal-content[hidden] {
    display: none !important;
}

.gsre-modal[hidden] {
    display: none !important;
}

.gsre-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483605;
    background: rgba(4, 8, 13, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.gsre-modal-dialog {
    width: min(560px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: linear-gradient(170deg, rgba(10, 14, 20, 0.99), rgba(7, 10, 16, 0.99));
    color: #f2f5f9;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
    padding: 18px 16px;
}

.gsre-modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.gsre-modal-title {
    margin: 0 34px 10px 0;
    font-family: "Teko", "Segoe UI", sans-serif;
    font-size: 28px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gsre-modal-strong {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #ffd977;
}

.gsre-modal-dialog h3 {
    margin: 13px 0 6px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffdf8b;
}

.gsre-modal-dialog p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.45;
}

.gsre-modal-dialog ul {
    margin: 0 0 8px 16px;
}

.gsre-modal-dialog li {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4;
}

body.gsre-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .gsre-avatar {
        width: 76px;
        height: 76px;
    }

    .gsre-title {
        font-size: 16px;
    }

    .gsre-root {
        right: 0;
        bottom: 0;
    }

    .gsre-panel {
        width: min(360px, calc(100vw - 8px));
        margin-bottom: 0;
    }

    .gsre-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .gsre-action:first-child {
        grid-column: 1 / -1;
    }

    .gsre-root.is-momentum-mode .gsre-panel,
.gsre-root.is-pitzero-mode .gsre-panel {
        width: min(340px, calc(100vw - 8px));
    }

    .gsre-modal {
        padding: 10px;
    }

    .gsre-modal-dialog {
        width: min(560px, calc(100vw - 20px));
        max-height: calc(100vh - 20px);
        padding: 16px 14px;
    }
}
.gsre-modal-dialog::-webkit-scrollbar {
    width: 0;
    height: 0;
}
