/* Gemma V1 — featured commercial and writing task */

.gemma-mark {
    width: 92px;
    height: 92px;
    color: #8ebfff;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 18px rgba(90, 150, 255, 0.35));
}

.gemma-mark--sm {
    width: 54px;
    height: 54px;
}

.gemma-word {
    font-family: Outfit, Inter, sans-serif;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.9;
    background: linear-gradient(100deg, #b9dcff 0%, #6aa2ff 42%, #3d6dff 78%, #9ec4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gemma-ver {
    display: inline-flex;
    align-items: center;
    margin-left: 0.55rem;
    padding: 0.2rem 0.55rem 0.15rem;
    border: 1px solid rgba(158, 196, 255, 0.45);
    border-radius: 999px;
    color: #d7e7ff;
    font-family: Outfit, Inter, sans-serif;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    vertical-align: 0.55em;
}

.gemma-lockup {
    margin: 0;
    font-size: clamp(3.4rem, 8vw, 6.4rem);
}

/* —— Homepage film —— */
.gemma-film {
    position: relative;
    z-index: 3;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 6% 2.2rem;
    color: #eef4ff;
    background:
        radial-gradient(ellipse 50% 40% at 50% 42%, rgba(61, 109, 255, 0.22), transparent 62%),
        radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(180deg, #07111f 0%, #0b1730 55%, #08101c 100%);
    background-size: auto, 22px 22px, auto;
    overflow: hidden;
}

.gemma-film-bars {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.gemma-film-bars span {
    display: block;
    height: 22px;
    background: #05080f;
}

.gemma-reel {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(880px, 100%);
    margin: 0 auto;
}

.gemma-beat {
    grid-area: 1 / 1;
    width: 100%;
    text-align: center;
    opacity: 0;
    animation: gemma-beat 20s infinite;
}

.gemma-beat:nth-child(1) {
    opacity: 1;
    animation-name: gemma-beat-first;
    animation-delay: 0s;
}
.gemma-beat:nth-child(2) { animation-delay: 5s; }
.gemma-beat:nth-child(3) { animation-delay: 10s; }
.gemma-beat:nth-child(4) { animation-delay: 15s; }

.gemma-film:hover .gemma-beat,
.gemma-film:focus-within .gemma-beat {
    animation-play-state: paused;
}

@keyframes gemma-beat-first {
    0%, 20% { opacity: 1; transform: none; }
    25%, 93% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: none; }
}

@keyframes gemma-beat {
    0% { opacity: 0; transform: translateY(10px); }
    6% { opacity: 1; transform: none; }
    20% { opacity: 1; transform: none; }
    25% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 0; }
}

.gemma-kicker {
    margin: 0 0 0.85rem;
    color: #9eb6d8;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.gemma-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.gemma-line {
    max-width: 38rem;
    margin: 1.1rem auto 0;
    color: #d5e2f5;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.45;
}

.gemma-line strong {
    color: #fff;
    font-weight: 650;
}

.gemma-chips,
.gemma-fake-rates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
}

.gemma-chips li,
.gemma-fake-rates li {
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(158, 196, 255, 0.28);
    border-radius: 999px;
    background: rgba(8, 16, 36, 0.55);
    color: #d7e6ff;
    font-size: 0.92rem;
}

.gemma-facts {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.4rem 0 0;
}

.gemma-facts div {
    min-width: 9.5rem;
    padding: 0.85rem 1.1rem 0.75rem;
    border: 1px solid rgba(158, 196, 255, 0.28);
    border-radius: 16px;
    background: rgba(6, 12, 28, 0.55);
}

.gemma-facts dt {
    color: #fff;
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.gemma-facts dd {
    margin: 0.15rem 0 0;
    color: #9eb6d8;
    font-size: 0.82rem;
}

.gemma-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.35rem;
}

.gemma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.7rem 1.15rem;
    border: 0;
    border-radius: 999px;
    font-family: Outfit, Inter, sans-serif;
    font-size: 0.98rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
}

.gemma-btn-primary {
    color: #07111f;
    background: linear-gradient(100deg, #d7e9ff, #7eb0ff 45%, #4d7dff);
    border: 0;
}

.gemma-btn-primary:hover {
    filter: brightness(1.06);
}

.gemma-btn-ghost {
    color: #e8f1ff;
    background: transparent;
    border: 1px solid rgba(210, 226, 255, 0.4);
}

.gemma-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

.gemma-skip {
    position: relative;
    z-index: 1;
    align-self: center;
    margin-top: 1.6rem;
    color: #9eb6d8;
    font-size: 0.88rem;
    text-decoration: none;
}

.gemma-skip:hover {
    color: #fff;
}

/* —— Opportunities bar —— */
.gemma-bar {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto 1rem;
    padding: 0;
    display: grid;
    grid-template-columns: 22rem minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    color: #0f172a;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.gemma-bar-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.8rem 1.2rem 1.7rem 1.25rem;
    background: #fff;
    color: #0f172a;
}

.gemma-bar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none;
    min-width: 0;
    align-self: stretch;
    margin: 0;
    padding: 1.15rem 0.85rem;
    overflow: hidden;
    background-color: #0c1218;
    background-image: radial-gradient(ellipse 120% 220% at 50% -30%, #223246 0%, #1a2a3c 28%, #141e2c 55%, #0c1218 100%);
}

.gemma-bar-anim {
    position: relative;
    width: min(100%, 19rem);
    max-width: none;
    height: auto;
    aspect-ratio: 436 / 332;
    background: transparent;
}

.gemma-bar-anim .scene {
    display: block;
    width: 100%;
    height: 100%;
}

.gemma-bar-anim iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
}

.gemma-bar-anim .mark {
    transform-box: view-box;
    transform-origin: 50% 33%;
}

.gemma-bar-anim.is-on .mark {
    animation: gemma-assemble 3.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.gemma-bar-anim .draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.gemma-bar-anim.is-on .draw {
    animation: gemma-draw var(--dur, 0.8s) cubic-bezier(0.45, 0, 0.15, 1) var(--delay, 0s) forwards;
}

.gemma-bar-anim .word {
    opacity: 0;
}

.gemma-bar-anim.is-on .word {
    animation: gemma-buildup 1.05s cubic-bezier(0.16, 1, 0.3, 1) 3.55s forwards;
}

@keyframes gemma-draw { to { stroke-dashoffset: 0; } }

@keyframes gemma-assemble {
    0% { transform: scale(0.42); }
    62%, 100% { transform: scale(1); }
}

@keyframes gemma-buildup {
    0% { opacity: 0; clip-path: inset(100% 0 0 0); }
    20% { opacity: 1; }
    100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

.gemma-bar-anim .gemma-ver {
    display: none;
}

.gemma-bar-copy {
    min-width: 0;
}

.gemma-bar-title {
    margin: 0.08rem 0 0.25rem;
    color: #0f172a !important;
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.gemma-bar-title .gemma-ver {
    vertical-align: 0.35em;
    color: #1e3a5f;
    border-color: rgba(30, 58, 95, 0.35);
}

.gemma-bar-copy p {
    margin: 0.15rem 0 0;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.4;
}

.gemma-bar-kicker {
    margin: 0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gemma-bar-kicker .gemma-ver {
    margin-left: 0.45rem;
    vertical-align: 0.05em;
    text-transform: none;
    letter-spacing: 0.08em;
}

.gemma-bar-actions {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
}

.gemma-bar .gemma-btn-ghost {
    color: #0f172a;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.28);
}

.gemma-bar .gemma-btn-ghost:hover {
    background: #f1f5f9;
}

.gemma-bar .gemma-btn-launch {
    color: #fff;
    background: #0f172a;
    border: 1px solid #0f172a;
}

.gemma-bar .gemma-btn-launch:hover {
    background: #1e293b;
}

.gemma-bar .gemma-btn {
    white-space: nowrap;
    min-height: 42px;
    padding: 0.55rem 1.1rem;
}

.gemma-bar-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16.5rem;
    gap: 0.7rem;
    align-items: stretch;
}

.gemma-bar-pay {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.gemma-pay-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    background: #f4f7fb;
}

.gemma-bar-rate {
    margin: 0;
    color: #0f172a;
    font-family: Outfit, Inter, sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.gemma-bar-rate span {
    font-size: 1.45rem;
}

.gemma-bar-rate small {
    margin-left: 0.06rem;
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 750;
}

.gemma-bar-rate-label {
    margin: 0.28rem 0 0;
    color: #1e40af;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gemma-bar-deposit {
    margin: 0;
    padding: 0;
    border: 0;
    color: #0f172a;
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.gemma-bar-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gemma-bar-steps li {
    margin: 0;
    padding: 1.15rem 0.75rem 1.2rem;
    background: #f4f7fb;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.42;
}

.gemma-bar-steps em {
    display: block;
    margin-bottom: 0.2rem;
    color: #2563eb;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.gemma-bar-steps strong {
    display: block;
    margin-bottom: 0.18rem;
    color: #0f172a;
    font-size: 0.92rem;
}

.gemma-bar-steps span {
    display: block;
}

.gemma-bar-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
    margin: 0;
    padding: 0.7rem 0.65rem 0.7rem 0.85rem;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    background: #f8fafc;
}

.gemma-bar-foot p {
    margin: 0;
    margin-right: auto;
    flex: 1 1 16rem;
    max-width: none;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.35;
}

.gemma-payline {
    margin: 0.35rem 0 0;
    color: #fff;
    font-weight: 650;
}

/* —— Project page —— */
html:has(body.gemma-page) {
    height: 100%;
    overflow: hidden;
}

body.gemma-page {
    height: 100%;
    overflow: hidden;
    margin: 0;
    font-family: Outfit, Inter, sans-serif;
    color: #eef4ff;
    background: #07111f;
}

body.gemma-page > .site-scroll {
    position: fixed !important;
    top: var(--site-header-min-height, 76px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    overflow: auto;
    background:
        radial-gradient(ellipse 46% 30% at 50% 0%, rgba(61, 109, 255, 0.2), transparent 60%),
        #07111f;
}

.gemma-hero {
    position: relative;
    padding: 3.2rem 6% 2.4rem;
    text-align: center;
    background:
        radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
        linear-gradient(180deg, #07111f 0%, #0c1830 100%);
    background-size: 22px 22px, auto;
}

.gemma-hero .gemma-brand {
    margin-bottom: 0.2rem;
}

.gemma-hero-lead {
    max-width: 40rem;
    margin: 1rem auto 0;
    color: #d5e2f5;
    font-size: 1.2rem;
    line-height: 1.5;
}

.gemma-steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    width: min(980px, calc(100% - 8%));
    margin: -0.2rem auto 0;
    padding: 0 0 2rem;
}

.gemma-step-card {
    padding: 1rem 1rem 0.95rem;
    border: 1px solid rgba(158, 196, 255, 0.22);
    border-radius: 16px;
    background: rgba(8, 16, 34, 0.72);
}

.gemma-step-card span {
    display: block;
    margin-bottom: 0.35rem;
    color: #8eb6ff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gemma-step-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.gemma-step-card p {
    margin: 0;
    color: #c5d6ee;
    font-size: 0.92rem;
    line-height: 1.45;
}

.gemma-work {
    width: min(980px, calc(100% - 8%));
    margin: 0 auto 3rem;
}

.gemma-work-head {
    margin: 0 0 0.8rem;
}

.gemma-work-head h2 {
    margin: 0;
    font-size: 1.45rem;
}

.gemma-work-head p {
    margin: 0.35rem 0 0;
    color: #c5d6ee;
}

/* —— Task —— */
.gemma-task {
    padding: 1.15rem;
    border: 1px solid rgba(158, 196, 255, 0.24);
    border-radius: 20px;
    background:
        radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        #0c1730;
    background-size: 18px 18px, auto;
    color: #eef4ff;
}

.gemma-task-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 0.9rem;
}

.gemma-task-top h3 {
    margin: 0;
    font-size: 1.2rem;
}

.gemma-task-top p {
    margin: 0.25rem 0 0;
    color: #b7c9e4;
    font-size: 0.92rem;
}

.gemma-progress {
    display: flex;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gemma-progress li {
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #9eb6d8;
    font-size: 0.75rem;
    font-weight: 650;
}

.gemma-progress li.is-now {
    color: #07111f;
    background: #9ec4ff;
}

.gemma-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.gemma-search,
.gemma-prompt,
.gemma-rewrite {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(158, 196, 255, 0.28);
    border-radius: 12px;
    background: rgba(5, 10, 22, 0.72);
    color: #f4f7ff;
    font: inherit;
}

.gemma-search {
    flex: 1 1 220px;
    min-height: 42px;
    padding: 0.55rem 0.75rem;
}

.gemma-lanes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.gemma-lane,
.gemma-topic {
    border: 1px solid rgba(158, 196, 255, 0.24);
    background: rgba(8, 16, 36, 0.55);
    color: #d7e6ff;
    font: inherit;
    cursor: pointer;
}

.gemma-lane {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
}

.gemma-lane.is-on,
.gemma-topic.is-on {
    color: #07111f;
    background: #b9d4ff;
    border-color: #b9d4ff;
}

.gemma-topics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.55rem;
}

.gemma-topic {
    padding: 0.75rem 0.8rem;
    border-radius: 14px;
    text-align: left;
}

.gemma-topic small {
    display: block;
    margin-top: 0.2rem;
    color: #9eb6d8;
    font-size: 0.75rem;
}

.gemma-topic.is-on small {
    color: #1e3a5f;
}

.gemma-chosen {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.7rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    background: rgba(158, 196, 255, 0.12);
}

.gemma-chosen strong {
    display: block;
}

.gemma-chosen span {
    color: #b7c9e4;
    font-size: 0.85rem;
}

.gemma-linkish {
    border: 0;
    background: none;
    color: #b9d4ff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    text-decoration: underline;
}

.gemma-field-label {
    display: block;
    margin: 0.2rem 0 0.4rem;
    font-weight: 650;
}

.gemma-hint {
    margin: 0.35rem 0 0.7rem;
    color: #9eb6d8;
    font-size: 0.88rem;
}

.gemma-prompt,
.gemma-rewrite {
    padding: 0.75rem 0.8rem;
    resize: vertical;
    line-height: 1.45;
}

.gemma-responses {
    display: grid;
    gap: 0.8rem;
}

.gemma-response {
    padding: 0.9rem;
    border: 1px solid rgba(158, 196, 255, 0.2);
    border-radius: 16px;
    background: rgba(5, 10, 22, 0.45);
}

.gemma-response h4 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
}

.gemma-output {
    min-height: 4.5rem;
    margin: 0 0 0.8rem;
    white-space: pre-wrap;
    color: #e7eefb;
    line-height: 1.5;
}

.gemma-output.is-typing::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 1em;
    margin-left: 2px;
    background: #8ebfff;
    vertical-align: text-bottom;
    animation: gemma-caret 0.8s steps(1) infinite;
}

@keyframes gemma-caret {
    50% { opacity: 0; }
}

.gemma-scale {
    display: grid;
    grid-template-columns: minmax(9rem, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.4rem;
}

.gemma-scale span {
    color: #d5e2f5;
    font-size: 0.88rem;
}

.gemma-stars {
    display: flex;
    gap: 0.25rem;
}

.gemma-stars button {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(158, 196, 255, 0.3);
    border-radius: 8px;
    background: transparent;
    color: #d7e6ff;
    font: inherit;
    cursor: pointer;
}

.gemma-stars button.is-on {
    color: #07111f;
    background: #9ec4ff;
    border-color: #9ec4ff;
}

.gemma-task-error {
    margin: 0.75rem 0 0;
    color: #ffb4b4;
    font-size: 0.9rem;
}

.gemma-task-done {
    margin-top: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(158, 220, 180, 0.12);
    color: #d9ffe8;
}

.gemma-task-done h3 {
    margin: 0 0 0.3rem;
}

.gemma-task-done p {
    margin: 0;
}

.gemma-task .gemma-actions {
    justify-content: flex-start;
}

@media (max-width: 860px) {
    .gemma-bar {
        grid-template-columns: 16rem minmax(0, 1fr);
    }

    .gemma-bar-anim {
        width: min(100%, 14rem);
    }

    .gemma-bar-steps {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .gemma-bar-foot {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .gemma-bar-actions,
    .gemma-actions {
        justify-content: flex-start;
        margin-left: 0;
    }

    .gemma-steps-row {
        grid-template-columns: 1fr;
    }

    .gemma-task-top,
    .gemma-scale,
    .gemma-chosen {
        display: block;
    }

    .gemma-progress {
        margin-top: 0.6rem;
        flex-wrap: wrap;
    }

    .gemma-stars {
        margin-top: 0.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gemma-beat {
        animation: none;
        opacity: 0;
        position: absolute;
        grid-area: auto;
    }

    .gemma-beat:first-child,
    .gemma-beat:last-child {
        opacity: 1;
        position: relative;
    }

    .gemma-reel {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
    }

    .gemma-output.is-typing::after {
        animation: none;
    }
}

.gemma-launch-overlay {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(4, 6, 16, 0.78);
}

.gemma-launch-overlay.active {
    display: flex;
}

.gemma-launch-panel {
    position: relative;
    width: min(440px, 100%);
    padding: 28px 28px 24px;
    border-radius: 18px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    color-scheme: light;
}

.gemma-launch-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
}

.gemma-launch-close:hover {
    background: #e2e8f0;
}

.gemma-launch-kicker {
    margin: 0 48px 8px 0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gemma-launch-panel h2 {
    margin: 0 48px 8px 0;
    color: #0f172a !important;
    font-family: Outfit, Inter, sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.gemma-launch-lead {
    margin: 0 0 22px;
    color: #334155;
    font-size: 15px;
    line-height: 1.45;
}

.gemma-launch-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gemma-launch-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gemma-launch-field label {
    color: #1e293b;
    font-size: 13px;
    font-weight: 650;
}

body.opp-orbit .gemma-launch-field input,
.gemma-launch-field input {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px;
    background: #fff !important;
    color: #0f172a !important;
    font: 500 15px/1 Inter, sans-serif;
    box-shadow: none !important;
    color-scheme: light;
}

.gemma-launch-key input {
    padding-right: 48px;
}

body.opp-orbit .gemma-launch-field input::placeholder,
.gemma-launch-field input::placeholder {
    color: #64748b !important;
}

body.opp-orbit .gemma-launch-field input:focus,
.gemma-launch-field input:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
    border-color: #2563eb !important;
    box-shadow: none !important;
}

.gemma-launch-key {
    position: relative;
}

.gemma-launch-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: #334155;
    cursor: pointer;
}

.gemma-launch-error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff1f2;
    color: #9f1239;
    font-size: 14px;
    line-height: 1.4;
}

.gemma-launch-submit {
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin-top: 2px;
    border-radius: 12px;
}

.gemma-launch-submit:disabled {
    cursor: wait;
    filter: none;
    opacity: 0.72;
}

.gemma-apply-overlay {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(4, 6, 16, 0.78);
    backdrop-filter: blur(16px);
}

.gemma-apply-overlay.active {
    display: flex;
}

.gemma-apply-panel {
    display: flex;
    flex-direction: column;
    width: min(960px, 100%);
    height: min(860px, calc(100vh - 2.5rem));
    overflow: hidden;
    border: 1px solid rgba(158, 196, 255, 0.28);
    border-radius: 18px;
    background: #07111f;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.gemma-apply-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: #eef4ff;
}

.gemma-apply-head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.gemma-apply-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.gemma-apply-panel iframe {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
}

.gemma-info-overlay {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(4, 6, 16, 0.72);
}

.gemma-info-overlay.active {
    display: flex;
}

.gemma-info-panel {
    display: flex;
    flex-direction: column;
    width: min(820px, 100%);
    max-height: min(860px, calc(100vh - 2.5rem));
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.gemma-info-head,
.gemma-info-foot {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #fff;
}

.gemma-info-head {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.gemma-info-foot {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    justify-content: flex-end;
    gap: 0.55rem;
}

.gemma-info-foot .gemma-btn-ghost {
    color: #0f172a;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.28);
}

.gemma-info-foot .gemma-btn-ghost:hover {
    background: #f1f5f9;
}

.gemma-info-kicker {
    margin: 0 0 0.2rem;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gemma-info-head h2,
.gemma-info-body h3 {
    margin: 0;
    color: #0f172a !important;
}

.gemma-info-head h2 {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.gemma-info-close {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
}

.gemma-info-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 1.1rem 1.25rem 1.3rem;
    background: #fff;
}

.gemma-info-body section {
    padding: 0;
    width: auto;
}

.gemma-info-body section + section {
    margin-top: 1.15rem;
}

.gemma-info-body h3 {
    margin-bottom: 0.45rem;
    font-size: 1.02rem;
}

.gemma-info-body p,
.gemma-info-body li {
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.55;
}

.gemma-info-body p {
    margin: 0.45rem 0 0;
}

.gemma-info-body ul,
.gemma-info-body ol {
    margin: 0.45rem 0 0;
    padding-left: 1.15rem;
}

.gemma-info-body li + li {
    margin-top: 0.35rem;
}

.gemma-info-body strong {
    color: #0f172a;
}

.gemma-info-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0 0 1.15rem;
}

.gemma-info-facts div {
    padding: 0.7rem 0.75rem 0.6rem;
    border-radius: 12px;
    background: #f8fafc;
}

.gemma-info-facts dt {
    color: #0f172a;
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.gemma-info-facts dd {
    margin: 0.15rem 0 0;
    color: #475569;
    font-size: 0.78rem;
}

.gemma-info-topics {
    columns: 2;
    column-gap: 1.5rem;
}

@media (max-width: 720px) {
    .gemma-info-facts,
    .gemma-info-topics {
        grid-template-columns: 1fr 1fr;
        columns: 1;
    }
}
