@font-face {
    font-family: "Titillium Web";
    src: url("/static/fonts/titillium-web-v17-latin-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Titillium Web";
    src: url("/static/fonts/titillium-web-v17-latin-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --ngpt-ink: #ffffff;
    --ngpt-ink-soft: rgba(255, 255, 255, 0.82);
    --ngpt-muted: #b9b6d4;
    --ngpt-paper: #0e0c28;
    --ngpt-paper-raised: #1a183a;
    --ngpt-paper-deep: #252345;
    --ngpt-surface-deep: #140f2d;
    --ngpt-line: rgba(255, 255, 255, 0.08);
    --ngpt-line-strong: rgba(255, 255, 255, 0.16);
    --ngpt-lime: #7ee787;
    --ngpt-lime-soft: rgba(126, 231, 135, 0.12);
    --ngpt-lime-dark: #7ee787;
    --ngpt-violet: #bc8cff;
    --ngpt-danger: #ff7b86;
    --ngpt-focus: #7ee787;
    --ngpt-accent-contrast: #0e0c28;
    --ngpt-shadow: rgba(0, 0, 0, 0.28);
    --ngpt-shadow-strong: rgba(0, 0, 0, 0.5);
    --ngpt-backdrop: rgba(4, 3, 18, 0.68);
    --ngpt-page-background: #0e0c28;
    --ngpt-sidebar-width: 286px;
    --ngpt-ease: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: dark;
}

html[data-theme="light"] {
    --ngpt-ink: #182235;
    --ngpt-ink-soft: #46546c;
    --ngpt-muted: #69758d;
    --ngpt-paper: #eef3f9;
    --ngpt-paper-raised: #ffffff;
    --ngpt-paper-deep: #f5f7fb;
    --ngpt-surface-deep: #ebf0f7;
    --ngpt-line: rgba(103, 121, 153, 0.2);
    --ngpt-line-strong: rgba(103, 121, 153, 0.32);
    --ngpt-lime: #14704e;
    --ngpt-lime-soft: rgba(20, 112, 78, 0.12);
    --ngpt-lime-dark: #14704e;
    --ngpt-violet: #7258ef;
    --ngpt-danger: #dc2626;
    --ngpt-focus: #14704e;
    --ngpt-accent-contrast: #ffffff;
    --ngpt-shadow: rgba(15, 23, 42, 0.08);
    --ngpt-shadow-strong: rgba(15, 23, 42, 0.16);
    --ngpt-backdrop: rgba(15, 23, 42, 0.42);
    --ngpt-page-background: linear-gradient(180deg, #f6f8fc 0%, #eef3f9 100%);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    color: var(--ngpt-ink);
    background: var(--ngpt-page-background);
    font-family: "Titillium Web", "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid color-mix(in oklch, var(--ngpt-focus) 34%, transparent);
    outline-offset: 2px;
}

.ngpt-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ngpt-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ngpt-ink);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.ngpt-mark {
    display: inline-flex;
    width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--ngpt-accent-contrast);
    background: var(--ngpt-lime);
}

.ngpt-mark svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

/* Landing */

.ngpt-landing-body {
    overflow-x: hidden;
    background: var(--ngpt-page-background);
}

.ngpt-landing {
    min-height: 100vh;
}

.ngpt-landing-nav {
    display: flex;
    width: min(1440px, 100%);
    min-height: 78px;
    margin: 0 auto;
    padding: 18px clamp(22px, 4vw, 64px);
    align-items: center;
    justify-content: space-between;
}

.ngpt-landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ngpt-text-link {
    color: var(--ngpt-ink-soft);
    text-underline-offset: 4px;
    text-decoration-color: transparent;
    transition: color 180ms var(--ngpt-ease), text-decoration-color 180ms var(--ngpt-ease);
}

.ngpt-text-link:hover {
    color: var(--ngpt-ink);
    text-decoration-color: currentColor;
}

.ngpt-nav-cta {
    padding: 10px 17px;
    border: 1px solid var(--ngpt-lime);
    border-radius: 10px;
    color: var(--ngpt-accent-contrast);
    background: var(--ngpt-lime);
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms var(--ngpt-ease), background 180ms var(--ngpt-ease);
}

.ngpt-nav-cta:hover {
    background: var(--ngpt-lime-dark);
    transform: translateY(-1px);
}

.ngpt-hero {
    display: grid;
    width: min(1440px, 100%);
    min-height: calc(100vh - 78px);
    margin: 0 auto;
    padding: clamp(48px, 7vw, 100px) clamp(22px, 4vw, 64px) clamp(72px, 9vw, 132px);
    grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1.12fr);
    align-items: center;
    gap: clamp(52px, 7vw, 116px);
}

.ngpt-hero-copy {
    max-width: 650px;
}

.ngpt-eyebrow {
    margin: 0 0 21px;
    color: var(--ngpt-lime-dark);
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ngpt-hero h1 {
    margin: 0;
    font-size: clamp(4rem, 6.9vw, 7.5rem);
    font-weight: 700;
    letter-spacing: -0.066em;
    line-height: 0.84;
}

.ngpt-hero h1 span {
    color: var(--ngpt-lime-dark);
}

.ngpt-hero-lead {
    max-width: 58ch;
    margin: 34px 0 0;
    color: var(--ngpt-ink-soft);
    font-size: clamp(1.08rem, 1.35vw, 1.24rem);
    line-height: 1.62;
}

.ngpt-hero-actions {
    display: flex;
    margin-top: 34px;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ngpt-primary-cta {
    display: inline-flex;
    min-height: 54px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    border-radius: 12px;
    color: var(--ngpt-accent-contrast);
    background: var(--ngpt-lime);
    font-weight: 700;
    text-decoration: none;
    transition: transform 200ms var(--ngpt-ease), box-shadow 200ms var(--ngpt-ease);
}

.ngpt-primary-cta:hover {
    box-shadow: 0 12px 28px color-mix(in oklch, var(--ngpt-lime-dark) 18%, transparent);
    transform: translateY(-2px);
}

.ngpt-primary-cta svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ngpt-hero-note {
    color: var(--ngpt-muted);
    font-size: 0.95rem;
}

.ngpt-model-line {
    display: flex;
    margin-top: 32px;
    align-items: center;
    gap: 12px;
    color: var(--ngpt-muted);
    font-size: 0.86rem;
}

.ngpt-model-line i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ngpt-line-strong);
}

.ngpt-hero-visual {
    min-width: 0;
}

.ngpt-demo-window {
    display: grid;
    min-height: 570px;
    overflow: hidden;
    grid-template-columns: 150px minmax(0, 1fr);
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 22px;
    background: var(--ngpt-paper-raised);
    box-shadow: 0 28px 72px var(--ngpt-shadow-strong);
    transform: rotate(1.2deg);
}

.ngpt-demo-sidebar {
    padding: 20px 14px;
    border-right: 1px solid var(--ngpt-line);
    background: var(--ngpt-paper-deep);
}

.ngpt-demo-logo {
    display: block;
    width: 26px;
    height: 26px;
    margin-bottom: 27px;
    border-radius: 8px;
    background: var(--ngpt-lime);
}

.ngpt-demo-new {
    display: block;
    padding: 10px 11px;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 8px;
    color: var(--ngpt-ink);
    font-size: 0.75rem;
    font-weight: 700;
}

.ngpt-demo-history {
    display: grid;
    margin-top: 22px;
    gap: 4px;
}

.ngpt-demo-history span {
    display: block;
    overflow: hidden;
    padding: 9px 8px;
    border-radius: 7px;
    color: var(--ngpt-muted);
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ngpt-demo-history .is-active {
    color: var(--ngpt-ink);
    background: color-mix(in oklch, var(--ngpt-lime) 32%, var(--ngpt-paper-deep));
}

.ngpt-demo-chat {
    position: relative;
    padding: 64px clamp(26px, 4vw, 56px) 128px;
}

.ngpt-demo-question {
    width: 82%;
    margin-left: auto;
    padding: 13px 16px;
    border-radius: 16px 16px 4px 16px;
    background: var(--ngpt-paper-deep);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ngpt-demo-answer {
    display: grid;
    margin-top: 38px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 15px;
}

.ngpt-demo-answer-mark {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--ngpt-lime);
    color: var(--ngpt-accent-contrast);
    font-size: 0.78rem;
    font-weight: 700;
}

.ngpt-demo-answer strong {
    font-size: 0.91rem;
}

.ngpt-demo-answer p {
    margin: 11px 0 0;
    color: var(--ngpt-ink-soft);
    font-size: 0.8rem;
    line-height: 1.55;
}

.ngpt-demo-lines {
    display: grid;
    margin-top: 18px;
    gap: 9px;
}

.ngpt-demo-lines i {
    display: block;
    width: 100%;
    height: 7px;
    border-radius: 4px;
    background: var(--ngpt-paper-deep);
}

.ngpt-demo-lines i:nth-child(2) {
    width: 88%;
}

.ngpt-demo-lines i:nth-child(3) {
    width: 61%;
}

.ngpt-demo-composer {
    position: absolute;
    right: clamp(22px, 4vw, 50px);
    bottom: 32px;
    left: clamp(22px, 4vw, 50px);
    min-height: 88px;
    padding: 16px;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 17px;
    background: var(--ngpt-paper-raised);
    box-shadow: 0 10px 30px var(--ngpt-shadow);
}

.ngpt-demo-composer > span {
    color: var(--ngpt-muted);
    font-size: 0.75rem;
}

.ngpt-demo-composer > div {
    display: flex;
    margin-top: 18px;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.ngpt-demo-composer small {
    font-size: 0.65rem;
    font-weight: 700;
}

.ngpt-demo-composer b {
    display: flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--ngpt-accent-contrast);
    background: var(--ngpt-lime);
}

.ngpt-visual-caption {
    display: flex;
    margin: 19px 0 0;
    align-items: baseline;
    gap: 15px;
    color: var(--ngpt-muted);
    font-size: 0.88rem;
}

.ngpt-visual-caption span {
    color: var(--ngpt-lime-dark);
    font-weight: 700;
}

.ngpt-promise {
    display: grid;
    min-height: 420px;
    padding: clamp(70px, 10vw, 144px) clamp(22px, 7vw, 110px);
    grid-template-columns: 0.6fr 1.35fr 0.8fr;
    align-items: center;
    gap: clamp(30px, 6vw, 100px);
    color: var(--ngpt-ink);
    background: var(--ngpt-surface-deep);
}

.ngpt-promise > p:first-child {
    color: var(--ngpt-muted);
    font-size: 1.1rem;
}

.ngpt-promise-words {
    display: grid;
    font-size: clamp(3.6rem, 7vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.78;
}

.ngpt-promise-words span:nth-child(2) {
    color: var(--ngpt-lime);
}

.ngpt-promise-copy {
    max-width: 32ch;
    color: var(--ngpt-ink-soft);
    font-size: 1.05rem;
    line-height: 1.62;
}

.ngpt-capabilities {
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: clamp(84px, 10vw, 150px) clamp(22px, 5vw, 72px);
}

.ngpt-section-intro {
    display: grid;
    grid-template-columns: 0.55fr 1.45fr;
    gap: 40px;
}

.ngpt-section-intro h2,
.ngpt-model-choice h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.7rem, 5.3vw, 5.8rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.ngpt-capability-list {
    margin-top: clamp(60px, 8vw, 110px);
    border-top: 1px solid var(--ngpt-line-strong);
}

.ngpt-capability {
    display: grid;
    padding: 32px 0 38px;
    grid-template-columns: 0.35fr 0.7fr 1.15fr 1fr;
    align-items: start;
    gap: 28px;
    border-bottom: 1px solid var(--ngpt-line);
}

.ngpt-capability-number {
    color: var(--ngpt-lime-dark);
    font-weight: 700;
}

.ngpt-capability h3 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.1;
}

.ngpt-capability p {
    max-width: 49ch;
    margin: 0;
    color: var(--ngpt-ink-soft);
    line-height: 1.6;
}

.ngpt-capability-example {
    color: var(--ngpt-muted);
    font-size: 0.91rem;
    line-height: 1.5;
}

.ngpt-model-choice {
    display: grid;
    padding: clamp(80px, 10vw, 148px) clamp(22px, 8vw, 130px);
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
    align-items: center;
    gap: clamp(60px, 10vw, 160px);
    background: var(--ngpt-lime-soft);
}

.ngpt-model-choice-copy > p:last-child {
    max-width: 62ch;
    margin: 28px 0 0;
    color: var(--ngpt-ink-soft);
    font-size: 1.08rem;
    line-height: 1.65;
}

.ngpt-model-switch {
    display: grid;
    min-height: 420px;
    overflow: hidden;
    grid-template-columns: 178px minmax(0, 1fr);
    border: 1px solid color-mix(in oklch, var(--ngpt-lime-dark) 30%, var(--ngpt-line));
    border-radius: 18px;
    background: var(--ngpt-paper-raised);
    box-shadow: 0 22px 50px color-mix(in oklch, var(--ngpt-lime-dark) 12%, transparent);
}

.ngpt-model-switch-providers {
    padding: 15px 10px;
    border-right: 1px solid var(--ngpt-line);
    background: var(--ngpt-surface-deep);
}

.ngpt-model-switch-providers > span {
    display: block;
    margin: 0 8px 10px;
    color: var(--ngpt-muted);
    font-size: 0.67rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.ngpt-model-switch-providers > div {
    display: grid;
    min-height: 48px;
    padding: 7px 8px;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
}

.ngpt-model-switch-providers > div + div {
    margin-top: 3px;
}

.ngpt-model-switch-providers > div.is-selected {
    border-color: color-mix(in oklch, var(--ngpt-lime-dark) 24%, var(--ngpt-line));
    background: var(--ngpt-lime-soft);
}

.ngpt-model-switch-providers i {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 8px;
    color: var(--ngpt-muted);
    background: var(--ngpt-paper-raised);
    font-size: 0.59rem;
    font-style: normal;
    font-weight: 750;
}

.ngpt-model-switch-providers .is-selected i {
    color: var(--ngpt-lime-dark);
}

.ngpt-model-switch-providers strong {
    overflow: hidden;
    font-size: 0.73rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ngpt-model-switch-providers small {
    color: var(--ngpt-muted);
    font-size: 0.62rem;
}

.ngpt-model-switch-providers > b {
    display: block;
    margin: 16px 8px 0;
    color: var(--ngpt-muted);
    font-size: 0.66rem;
    font-weight: 600;
}

.ngpt-model-switch-models {
    min-width: 0;
}

.ngpt-model-switch-heading {
    display: flex;
    min-height: 58px;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ngpt-line);
}

.ngpt-model-switch-heading strong {
    font-size: 0.83rem;
}

.ngpt-model-switch-heading small {
    color: var(--ngpt-muted);
    font-size: 0.69rem;
}

.ngpt-model-switch-row {
    display: flex;
    min-height: 78px;
    padding: 12px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--ngpt-line);
}

.ngpt-model-switch-row:last-child {
    border-bottom: 0;
}

.ngpt-model-switch-row.is-selected {
    background: color-mix(in oklch, var(--ngpt-lime) 15%, var(--ngpt-paper-raised));
}

.ngpt-model-switch-row > span {
    display: grid;
    min-width: 0;
}

.ngpt-model-switch-row strong,
.ngpt-model-switch-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ngpt-model-switch-row strong {
    font-size: 0.78rem;
}

.ngpt-model-switch-row small {
    margin-top: 4px;
    color: var(--ngpt-muted);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 0.57rem;
}

.ngpt-model-switch-row > i {
    color: var(--ngpt-lime-dark);
    font-size: 0.86rem;
    font-style: normal;
    font-weight: 700;
}

.ngpt-final-cta {
    display: flex;
    min-height: min(760px, 90vh);
    padding: 80px 22px 36px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.ngpt-mark--large {
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

.ngpt-mark--large svg {
    width: 34px;
    height: 34px;
}

.ngpt-final-cta h2 {
    margin: 28px 0 36px;
    font-size: clamp(3.8rem, 8vw, 8rem);
    letter-spacing: -0.065em;
    line-height: 0.84;
}

.ngpt-primary-cta--dark {
    color: var(--ngpt-accent-contrast);
    background: var(--ngpt-lime);
}

.ngpt-final-home {
    margin-top: auto;
    color: var(--ngpt-muted);
    text-underline-offset: 4px;
}

/* Chat application */

.ngpt-chat-body {
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: var(--ngpt-paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.ngpt-app {
    display: grid;
    width: 100%;
    height: 100dvh;
    grid-template-columns: var(--ngpt-sidebar-width) minmax(0, 1fr);
}

.ngpt-sidebar {
    display: flex;
    min-height: 0;
    padding: 17px 13px 13px;
    flex-direction: column;
    border-right: 1px solid var(--ngpt-line);
    background: var(--ngpt-paper);
}

.ngpt-sidebar-top {
    display: flex;
    min-height: 43px;
    padding: 0 8px;
    align-items: center;
    justify-content: space-between;
}

.ngpt-wordmark--app {
    font-family: "Titillium Web", "Segoe UI", sans-serif;
    font-size: 1.06rem;
}

.ngpt-sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
}

.ngpt-sidebar-close svg,
.ngpt-mobile-bar svg,
.ngpt-history-search svg,
.ngpt-history-delete svg,
.ngpt-copy-message svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.ngpt-sidebar-close svg {
    width: 20px;
}

.ngpt-new-chat {
    display: flex;
    min-height: 44px;
    margin: 16px 3px 11px;
    padding: 0 12px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 11px;
    background: var(--ngpt-paper-raised);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 160ms var(--ngpt-ease), background 160ms var(--ngpt-ease);
}

.ngpt-new-chat:hover {
    border-color: color-mix(in oklch, var(--ngpt-lime-dark) 45%, var(--ngpt-line));
    background: var(--ngpt-lime-soft);
}

.ngpt-new-chat svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.ngpt-new-chat kbd {
    margin-left: auto;
    color: var(--ngpt-muted);
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 400;
}

.ngpt-history-search {
    display: flex;
    min-height: 40px;
    margin: 0 3px;
    padding: 0 11px;
    align-items: center;
    gap: 9px;
    border-radius: 10px;
    color: var(--ngpt-muted);
    background: var(--ngpt-paper-deep);
}

.ngpt-history-search:focus-within {
    box-shadow: 0 0 0 2px color-mix(in oklch, var(--ngpt-focus) 24%, transparent);
}

.ngpt-history-search svg {
    width: 17px;
    flex: 0 0 auto;
}

.ngpt-history-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.84rem;
}

.ngpt-history-search input::placeholder {
    color: var(--ngpt-muted);
}

.ngpt-history {
    min-height: 0;
    margin-top: 20px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ngpt-line-strong) transparent;
}

.ngpt-history-label {
    margin: 0;
    padding: 0 10px 8px;
    color: var(--ngpt-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ngpt-history-list {
    display: grid;
    gap: 3px;
}

.ngpt-history-item {
    position: relative;
    display: grid;
    min-height: 54px;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: center;
    border-radius: 10px;
    transition: background 150ms var(--ngpt-ease);
}

.ngpt-history-item:hover,
.ngpt-history-item.is-active {
    background: var(--ngpt-paper-deep);
}

.ngpt-history-item.is-active {
    box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--ngpt-lime-dark) 22%, transparent);
}

.ngpt-history-item a {
    display: grid;
    min-width: 0;
    padding: 8px 2px 8px 10px;
    text-decoration: none;
}

.ngpt-history-item a span {
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ngpt-history-item a small {
    margin-top: 3px;
    color: var(--ngpt-muted);
    font-size: 0.67rem;
}

.ngpt-history-delete {
    display: flex;
    width: 30px;
    height: 30px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    opacity: 0;
    color: var(--ngpt-muted);
    background: transparent;
    cursor: pointer;
    transition: opacity 140ms ease, color 140ms ease, background 140ms ease;
}

.ngpt-history-item:hover .ngpt-history-delete,
.ngpt-history-delete:focus-visible {
    opacity: 1;
}

.ngpt-history-delete:hover {
    color: var(--ngpt-danger);
    background: color-mix(in oklch, var(--ngpt-danger) 10%, transparent);
}

.ngpt-history-delete svg {
    width: 16px;
}

.ngpt-history-empty {
    padding: 18px 10px;
    color: var(--ngpt-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.ngpt-history-empty span {
    color: var(--ngpt-lime-dark);
    font-size: 1.25rem;
}

.ngpt-history-empty p {
    margin: 6px 0 0;
}

.ngpt-sidebar-account {
    display: grid;
    padding: 13px 8px 4px;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--ngpt-line);
}

.ngpt-account-avatar {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--ngpt-ink);
    background: var(--ngpt-lime);
    font-size: 0.78rem;
    font-weight: 700;
}

.ngpt-sidebar-account > div {
    display: grid;
    min-width: 0;
}

.ngpt-sidebar-account strong {
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ngpt-sidebar-account a {
    margin-top: 2px;
    color: var(--ngpt-muted);
    font-size: 0.69rem;
    text-decoration: none;
}

.ngpt-sidebar-account a:hover {
    color: var(--ngpt-lime-dark);
}

.ngpt-chat-main {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--ngpt-paper-raised);
}

.ngpt-mobile-bar {
    display: none;
}

.ngpt-conversation {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

.ngpt-message-stream {
    width: min(790px, calc(100% - 48px));
    margin: 0 auto;
    padding: 58px 0 190px;
}

.ngpt-app:not(.has-messages) .ngpt-message-stream {
    display: none;
}

.ngpt-message {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 16px;
}

.ngpt-message + .ngpt-message {
    margin-top: 42px;
}

.ngpt-message-identity {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--ngpt-accent-contrast);
    background: var(--ngpt-lime);
    font-size: 0.76rem;
    font-weight: 700;
}

.ngpt-message--assistant .ngpt-message-identity {
    background: transparent;
}

.ngpt-mark--message {
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

.ngpt-mark--message svg {
    width: 21px;
    height: 21px;
}

.ngpt-message-content {
    min-width: 0;
    padding-top: 4px;
}

.ngpt-message-name {
    display: block;
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 650;
}

.ngpt-message-text {
    color: var(--ngpt-ink);
    font-size: 0.98rem;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.ngpt-message--user .ngpt-message-text {
    display: inline-block;
    max-width: 68ch;
    padding: 12px 15px;
    border-radius: 15px;
    background: var(--ngpt-paper-deep);
    white-space: pre-wrap;
}

.ngpt-message-text p {
    margin: 0 0 1em;
}

.ngpt-message-text p:last-child {
    margin-bottom: 0;
}

.ngpt-message-text h2,
.ngpt-message-text h3,
.ngpt-message-text h4 {
    margin: 1.45em 0 0.55em;
    letter-spacing: -0.018em;
    line-height: 1.3;
}

.ngpt-message-text h2 {
    font-size: 1.25rem;
}

.ngpt-message-text h3 {
    font-size: 1.08rem;
}

.ngpt-message-text ul,
.ngpt-message-text ol {
    margin: 0.8em 0;
    padding-left: 1.4em;
}

.ngpt-message-text li + li {
    margin-top: 0.34em;
}

.ngpt-message-text code {
    padding: 0.13em 0.34em;
    border-radius: 5px;
    background: var(--ngpt-paper-deep);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.88em;
}

.ngpt-message-text pre {
    position: relative;
    margin: 1.1em 0;
    padding: 17px;
    overflow-x: auto;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 12px;
    color: var(--ngpt-ink);
    background: var(--ngpt-surface-deep);
    line-height: 1.58;
}

.ngpt-message-text pre code {
    padding: 0;
    color: inherit;
    background: transparent;
    font-size: 0.86rem;
}

.ngpt-message-text blockquote {
    margin: 1em 0;
    padding: 12px 16px;
    border: 1px solid var(--ngpt-line);
    border-radius: 10px;
    color: var(--ngpt-ink-soft);
    background: var(--ngpt-paper);
}

.ngpt-message-text a {
    color: var(--ngpt-lime-dark);
    text-underline-offset: 3px;
}

.ngpt-message-text--image {
    margin-bottom: 13px;
    color: var(--ngpt-muted);
    font-size: 0.82rem;
}

.ngpt-generated-image {
    width: min(680px, 100%);
    margin: 0;
}

.ngpt-generated-image-preview {
    display: block;
    overflow: hidden;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 16px;
    background: var(--ngpt-paper-deep);
    box-shadow: 0 14px 34px var(--ngpt-shadow);
}

.ngpt-generated-image-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(68vh, 760px);
    object-fit: contain;
}

.ngpt-generated-image figcaption {
    display: flex;
    margin-top: 10px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.ngpt-image-parameters {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.ngpt-image-parameters span {
    display: grid;
    color: var(--ngpt-ink-soft);
    font-size: 0.7rem;
    line-height: 1.25;
}

.ngpt-image-parameters small {
    color: var(--ngpt-muted);
    font-size: 0.58rem;
}

.ngpt-image-download {
    display: inline-flex;
    min-height: 34px;
    padding: 0 10px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 9px;
    color: var(--ngpt-ink-soft);
    background: var(--ngpt-paper-deep);
    font-size: 0.7rem;
    font-weight: 650;
    text-decoration: none;
}

.ngpt-image-download:hover {
    color: var(--ngpt-lime-dark);
    border-color: color-mix(in oklch, var(--ngpt-lime-dark) 42%, var(--ngpt-line));
}

.ngpt-image-download svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.ngpt-copy-message {
    display: inline-flex;
    min-height: 30px;
    margin: 0;
    padding: 0 8px;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 7px;
    color: var(--ngpt-muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.72rem;
}

.ngpt-copy-message:hover {
    color: var(--ngpt-ink);
    background: var(--ngpt-paper-deep);
}

.ngpt-copy-message svg {
    width: 15px;
}

.ngpt-message-actions {
    display: flex;
    margin-top: 13px;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}

.ngpt-regenerate-message {
    display: inline-flex;
    min-height: 30px;
    padding: 0 8px;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 7px;
    color: var(--ngpt-muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.72rem;
}

.ngpt-regenerate-message:hover {
    color: var(--ngpt-ink);
    background: var(--ngpt-paper-deep);
}

.ngpt-regenerate-message svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.ngpt-sources {
    width: min(660px, 100%);
    margin-top: 20px;
    border: 1px solid var(--ngpt-line);
    border-radius: 12px;
    background: var(--ngpt-paper);
    overflow: hidden;
}

.ngpt-sources-toggle {
    display: flex;
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    color: var(--ngpt-ink);
    background: transparent;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 680;
}

.ngpt-sources-toggle:hover {
    background: var(--ngpt-paper-deep);
}

.ngpt-sources-toggle small {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 7px;
    color: var(--ngpt-lime-dark);
    background: var(--ngpt-lime-soft);
    font-size: 0.65rem;
}

.ngpt-sources-list {
    margin: 0;
    padding: 0 8px 8px;
    list-style: none;
}

.ngpt-sources-list li + li {
    margin-top: 3px;
}

.ngpt-sources-list a {
    display: grid;
    min-height: 50px;
    padding: 8px 9px;
    align-content: center;
    gap: 3px;
    border-radius: 8px;
    color: var(--ngpt-ink);
    text-decoration: none;
}

.ngpt-sources-list a:hover {
    background: var(--ngpt-paper-deep);
}

.ngpt-sources-list strong {
    overflow: hidden;
    font-size: 0.76rem;
    font-weight: 640;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ngpt-sources-list span {
    overflow: hidden;
    color: var(--ngpt-muted);
    font-size: 0.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ngpt-message.is-streaming .ngpt-message-text::after {
    display: inline-block;
    width: 7px;
    height: 16px;
    margin-left: 3px;
    vertical-align: -2px;
    border-radius: 2px;
    background: var(--ngpt-lime-dark);
    content: "";
    animation: ngpt-caret 900ms steps(2, jump-none) infinite;
}

@keyframes ngpt-caret {
    50% {
        opacity: 0.2;
    }
}

.ngpt-empty-chat {
    width: min(760px, calc(100% - 44px));
    margin: clamp(76px, 14vh, 150px) auto 240px;
    text-align: center;
}

.ngpt-mark--empty {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 14px;
}

.ngpt-mark--empty svg {
    width: 30px;
    height: 30px;
}

.ngpt-empty-chat h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 650;
    letter-spacing: -0.052em;
}

.ngpt-empty-chat > p {
    margin: 13px auto 0;
    color: var(--ngpt-muted);
    font-size: 0.96rem;
    line-height: 1.55;
}

.ngpt-suggestions {
    display: grid;
    margin-top: 31px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.ngpt-suggestions button {
    min-height: 82px;
    padding: 13px 14px;
    border: 1px solid var(--ngpt-line);
    border-radius: 13px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: border-color 160ms var(--ngpt-ease), background 160ms var(--ngpt-ease), transform 160ms var(--ngpt-ease);
}

.ngpt-suggestions button:hover {
    border-color: color-mix(in oklch, var(--ngpt-lime-dark) 38%, var(--ngpt-line));
    background: var(--ngpt-lime-soft);
    transform: translateY(-1px);
}

.ngpt-suggestions span,
.ngpt-suggestions small {
    display: block;
}

.ngpt-suggestions span {
    font-size: 0.84rem;
    font-weight: 650;
}

.ngpt-suggestions small {
    margin-top: 6px;
    color: var(--ngpt-muted);
    font-size: 0.71rem;
    line-height: 1.35;
}

.ngpt-composer-zone {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px 24px 12px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--ngpt-paper-raised) 28%);
}

.ngpt-app:not(.has-messages) .ngpt-composer-zone {
    top: min(55%, 510px);
    bottom: auto;
    padding-top: 0;
    background: transparent;
    transform: translateY(-50%);
}

.ngpt-composer {
    width: min(760px, 100%);
    min-height: 112px;
    margin: 0 auto;
    padding: 14px 14px 11px 17px;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 18px;
    background: var(--ngpt-paper-raised);
    box-shadow: 0 10px 32px var(--ngpt-shadow);
    pointer-events: auto;
    transition: border-color 180ms var(--ngpt-ease), box-shadow 180ms var(--ngpt-ease);
}

.ngpt-mode-switch {
    display: inline-grid;
    margin: -4px 0 9px -3px;
    padding: 3px;
    grid-template-columns: repeat(2, auto);
    gap: 2px;
    border: 1px solid var(--ngpt-line);
    border-radius: 10px;
    background: var(--ngpt-paper-deep);
}

.ngpt-mode-switch button {
    display: inline-flex;
    min-height: 31px;
    padding: 0 9px;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 7px;
    color: var(--ngpt-muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.69rem;
    font-weight: 680;
}

.ngpt-mode-switch button:hover:not(:disabled) {
    color: var(--ngpt-ink);
}

.ngpt-mode-switch button.is-active {
    color: var(--ngpt-ink);
    background: var(--ngpt-paper-raised);
    box-shadow: 0 2px 8px var(--ngpt-shadow);
}

.ngpt-mode-switch button:disabled {
    cursor: default;
    opacity: 0.5;
}

.ngpt-mode-switch svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.ngpt-image-settings {
    margin: 10px -2px 2px;
    padding: 14px 2px 10px;
    border-top: 1px solid var(--ngpt-line);
}

.ngpt-image-settings-head {
    display: flex;
    min-width: 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.ngpt-image-model-field {
    display: grid;
    min-width: min(390px, 100%);
    gap: 6px;
}

.ngpt-image-model-field > span,
.ngpt-image-field > label {
    color: var(--ngpt-muted);
    font-size: 0.65rem;
    font-weight: 650;
}

.ngpt-image-model-field select,
.ngpt-image-field select,
.ngpt-image-field input[type="number"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 9px;
    outline: 0;
    background: var(--ngpt-paper-deep);
    font-size: 0.74rem;
}

.ngpt-image-model-field select:focus,
.ngpt-image-field select:focus,
.ngpt-image-field input[type="number"]:focus {
    border-color: var(--ngpt-lime-dark);
}

.ngpt-image-settings-head > a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 5px;
    color: var(--ngpt-muted);
    font-size: 0.66rem;
    text-underline-offset: 3px;
}

.ngpt-image-settings-head > a:hover {
    color: var(--ngpt-lime-dark);
}

.ngpt-image-settings-head > a svg {
    width: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.ngpt-image-model-copy {
    display: grid;
    margin-top: 11px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 5px 12px;
}

.ngpt-image-model-copy strong {
    font-size: 0.8rem;
}

.ngpt-image-model-copy p {
    margin: 0;
    color: var(--ngpt-muted);
    font-size: 0.69rem;
    line-height: 1.35;
}

#imageModelFacts {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: var(--ngpt-lime-dark);
    font-size: 0.62rem;
    font-weight: 650;
}

#imageModelFacts span::before {
    margin-right: 5px;
    content: "·";
}

.ngpt-image-fields {
    display: grid;
    margin-top: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ngpt-image-field {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 6px;
}

.ngpt-image-range {
    display: grid;
    min-height: 40px;
    padding: 0 8px;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 9px;
    background: var(--ngpt-paper-deep);
}

.ngpt-image-range input {
    width: 100%;
    accent-color: var(--ngpt-lime-dark);
}

.ngpt-image-range output {
    color: var(--ngpt-ink-soft);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 0.68rem;
    text-align: right;
}

.ngpt-image-checkbox {
    display: flex;
    min-height: 58px;
    padding: 9px 10px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 9px;
    background: var(--ngpt-paper-deep);
    cursor: pointer;
}

.ngpt-image-checkbox input {
    width: 17px;
    height: 17px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--ngpt-lime-dark);
}

.ngpt-image-checkbox > span {
    display: grid;
    min-width: 0;
}

.ngpt-image-checkbox strong {
    font-size: 0.7rem;
    font-weight: 650;
}

.ngpt-image-checkbox small {
    margin-top: 2px;
    color: var(--ngpt-muted);
    font-size: 0.59rem;
    line-height: 1.25;
}

.ngpt-app.is-image-mode .ngpt-message-stream {
    padding-bottom: 470px;
}

.ngpt-app.is-image-mode .ngpt-composer {
    max-height: min(74vh, 620px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.ngpt-composer:focus-within {
    border-color: color-mix(in oklch, var(--ngpt-lime-dark) 62%, var(--ngpt-line));
    box-shadow: 0 12px 38px var(--ngpt-shadow-strong);
}

.ngpt-composer textarea {
    display: block;
    width: 100%;
    max-height: 210px;
    min-height: 42px;
    padding: 5px 3px;
    resize: none;
    overflow-y: auto;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1rem;
    line-height: 1.5;
}

.ngpt-composer textarea::placeholder {
    color: var(--ngpt-muted);
}

.ngpt-composer-controls {
    display: flex;
    min-height: 35px;
    margin-top: 5px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.ngpt-composer-leading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.ngpt-web-search {
    display: inline-flex;
    min-height: 35px;
    padding: 0 9px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 10px;
    color: var(--ngpt-muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.69rem;
    font-weight: 650;
    transition: color 160ms var(--ngpt-ease), border-color 160ms var(--ngpt-ease), background 160ms var(--ngpt-ease), transform 160ms var(--ngpt-ease);
}

.ngpt-web-search:hover:not(:disabled) {
    color: var(--ngpt-ink);
    border-color: color-mix(in oklch, var(--ngpt-lime-dark) 34%, var(--ngpt-line-strong));
    background: var(--ngpt-paper-deep);
    transform: translateY(-1px);
}

.ngpt-web-search[aria-pressed="true"] {
    color: var(--ngpt-lime-dark);
    border-color: color-mix(in oklch, var(--ngpt-lime-dark) 48%, var(--ngpt-line));
    background: var(--ngpt-lime-soft);
}

.ngpt-web-search:disabled {
    cursor: default;
    opacity: 0.48;
}

.ngpt-web-search-globe {
    width: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.45;
}

.ngpt-web-search-check {
    width: 12px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    opacity: 0;
    transform: scale(0.65);
    transition: opacity 160ms var(--ngpt-ease), transform 160ms var(--ngpt-ease);
}

.ngpt-web-search[aria-pressed="true"] .ngpt-web-search-check {
    opacity: 1;
    transform: scale(1);
}

.ngpt-composer-hint {
    padding: 0 0 7px 2px;
    color: var(--ngpt-muted);
    font-size: 0.67rem;
}

.ngpt-composer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ngpt-model-picker {
    position: relative;
    display: flex;
    align-items: center;
}

.ngpt-model-trigger {
    display: grid;
    width: min(226px, 32vw);
    min-width: 170px;
    min-height: 40px;
    padding: 4px 8px 4px 5px;
    grid-template-columns: 29px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--ngpt-paper-deep);
    cursor: pointer;
    text-align: left;
    transition: border-color 160ms var(--ngpt-ease), background 160ms var(--ngpt-ease);
}

.ngpt-model-trigger:hover,
.ngpt-model-picker.is-open .ngpt-model-trigger {
    border-color: var(--ngpt-line-strong);
    background: color-mix(in oklch, var(--ngpt-paper-deep) 84%, var(--ngpt-lime));
}

.ngpt-model-trigger:disabled {
    cursor: default;
    opacity: 0.48;
}

.ngpt-model-trigger-mark {
    display: flex;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 8px;
    color: var(--ngpt-lime-dark);
    background: var(--ngpt-paper-raised);
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.ngpt-model-trigger-copy {
    display: grid;
    min-width: 0;
    line-height: 1.08;
}

.ngpt-model-trigger-copy small,
.ngpt-model-trigger-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ngpt-model-trigger-copy small {
    color: var(--ngpt-muted);
    font-size: 0.57rem;
    font-weight: 600;
}

.ngpt-model-trigger-copy strong {
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 680;
}

.ngpt-model-trigger-chevron {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform 180ms var(--ngpt-ease);
}

.ngpt-model-picker.is-open .ngpt-model-trigger-chevron {
    transform: rotate(180deg);
}

.ngpt-model-picker-panel {
    position: fixed;
    z-index: 60;
    width: min(610px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: hidden;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 17px;
    background: var(--ngpt-paper-raised);
    box-shadow: 0 24px 64px var(--ngpt-shadow-strong);
}

.ngpt-model-picker-header {
    display: flex;
    min-height: 66px;
    padding: 13px 14px 12px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--ngpt-line);
}

.ngpt-model-picker-header > div {
    display: grid;
}

.ngpt-model-picker-header strong {
    font-size: 0.92rem;
    font-weight: 700;
}

.ngpt-model-picker-header span {
    margin-top: 3px;
    color: var(--ngpt-muted);
    font-size: 0.68rem;
}

.ngpt-model-picker-close {
    display: flex;
    width: 34px;
    height: 34px;
    padding: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
}

.ngpt-model-picker-close:hover {
    background: var(--ngpt-paper-deep);
}

.ngpt-model-picker-close svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.ngpt-model-picker-body {
    display: grid;
    height: min(370px, calc(100vh - 92px));
    min-height: 290px;
    grid-template-columns: 184px minmax(0, 1fr);
}

.ngpt-provider-list {
    padding: 9px;
    overflow-y: auto;
    border-right: 1px solid var(--ngpt-line);
    background: var(--ngpt-surface-deep);
}

.ngpt-provider-option {
    display: grid;
    width: 100%;
    min-height: 43px;
    padding: 5px 8px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.ngpt-provider-option + .ngpt-provider-option {
    margin-top: 2px;
}

.ngpt-provider-option:hover {
    background: var(--ngpt-paper-deep);
}

.ngpt-provider-option.is-active {
    border-color: color-mix(in oklch, var(--ngpt-lime-dark) 25%, var(--ngpt-line));
    background: var(--ngpt-lime-soft);
}

.ngpt-provider-option > span {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 8px;
    color: var(--ngpt-muted);
    background: var(--ngpt-paper-raised);
    font-size: 0.59rem;
    font-weight: 750;
}

.ngpt-provider-option.is-active > span {
    color: var(--ngpt-lime-dark);
    border-color: color-mix(in oklch, var(--ngpt-lime-dark) 35%, var(--ngpt-line));
}

.ngpt-provider-option strong {
    overflow: hidden;
    font-size: 0.74rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ngpt-provider-option small {
    color: var(--ngpt-muted);
    font-size: 0.62rem;
}

.ngpt-model-options-pane {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
}

.ngpt-model-options-heading {
    display: flex;
    min-height: 49px;
    padding: 0 14px 0 16px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--ngpt-line);
}

.ngpt-model-options-heading span {
    font-size: 0.76rem;
    font-weight: 700;
}

.ngpt-model-options-heading small {
    color: var(--ngpt-muted);
    font-size: 0.65rem;
}

.ngpt-model-options {
    min-height: 0;
    padding: 8px;
    overflow-y: auto;
}

.ngpt-model-option {
    display: flex;
    width: 100%;
    min-height: 62px;
    padding: 9px 10px 9px 12px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.ngpt-model-option + .ngpt-model-option {
    margin-top: 3px;
}

.ngpt-model-option:hover {
    background: var(--ngpt-paper-deep);
}

.ngpt-model-option.is-selected {
    border-color: color-mix(in oklch, var(--ngpt-lime-dark) 30%, var(--ngpt-line));
    background: var(--ngpt-lime-soft);
}

.ngpt-model-option > span {
    display: grid;
    min-width: 0;
}

.ngpt-model-option strong,
.ngpt-model-option small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ngpt-model-option strong {
    font-size: 0.79rem;
    font-weight: 680;
}

.ngpt-model-option small {
    margin-top: 4px;
    color: var(--ngpt-muted);
    font-size: 0.64rem;
}

.ngpt-model-option > svg {
    width: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--ngpt-lime-dark);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    opacity: 0;
}

.ngpt-model-option.is-selected > svg {
    opacity: 1;
}

.ngpt-send-button {
    display: flex;
    width: 35px;
    height: 35px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: var(--ngpt-accent-contrast);
    background: var(--ngpt-lime);
    cursor: pointer;
    transition: transform 160ms var(--ngpt-ease), opacity 160ms ease, background 160ms ease;
}

.ngpt-send-button:hover:not(:disabled) {
    background: var(--ngpt-violet);
    transform: translateY(-1px);
}

.ngpt-send-button:disabled {
    opacity: 0.28;
    cursor: default;
}

.ngpt-send-button svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ngpt-send-button .ngpt-stop-icon {
    display: none;
}

.ngpt-send-button.is-stop {
    color: var(--ngpt-ink);
    background: var(--ngpt-paper-deep);
    box-shadow: inset 0 0 0 1px var(--ngpt-line-strong);
}

.ngpt-send-button.is-stop .ngpt-send-icon {
    display: none;
}

.ngpt-send-button.is-stop .ngpt-stop-icon {
    display: block;
    fill: currentColor;
    stroke: none;
}

.ngpt-send-button.is-stop:hover:not(:disabled) {
    color: var(--ngpt-danger);
    background: color-mix(in oklch, var(--ngpt-danger) 8%, var(--ngpt-paper-deep));
}

.ngpt-generation-status {
    display: flex;
    width: min(760px, 100%);
    min-height: 27px;
    margin: 7px auto 0;
    align-items: center;
    gap: 8px;
    color: var(--ngpt-muted);
    font-size: 0.71rem;
    pointer-events: none;
}

.ngpt-generation-status > span {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--ngpt-lime-dark);
    animation: ngpt-status-pulse 1.4s ease-in-out infinite;
}

.ngpt-generation-status[data-status="searching"] > span {
    background: var(--ngpt-violet);
}

@keyframes ngpt-status-pulse {
    50% {
        opacity: 0.35;
        transform: scale(0.75);
    }
}

.ngpt-composer-meta {
    width: min(760px, 100%);
    margin: 8px auto 0;
    display: flex;
    min-height: 30px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    pointer-events: auto;
}

.ngpt-chat-disclaimer {
    margin: 5px 0 0;
    color: var(--ngpt-muted);
    font-size: 0.66rem;
    line-height: 1.4;
}

.ngpt-quota {
    display: grid;
    min-height: 30px;
    padding: 5px 9px;
    flex: 0 0 auto;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 1px 6px;
    border: 1px solid color-mix(in oklch, var(--ngpt-lime-dark) 24%, var(--ngpt-line));
    border-radius: 9px;
    color: var(--ngpt-muted);
    background: var(--ngpt-lime-soft);
    font-size: 0.64rem;
    line-height: 1.2;
}

.ngpt-quota strong {
    color: var(--ngpt-lime-dark);
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
}

.ngpt-quota small {
    grid-column: 1 / -1;
    color: var(--ngpt-muted);
    font-size: 0.59rem;
}

.ngpt-quota.is-auth-required {
    border-color: var(--ngpt-line-strong);
    background: var(--ngpt-paper-deep);
}

.ngpt-quota.is-unavailable strong {
    color: var(--ngpt-muted);
}

.ngpt-chat-error {
    display: flex;
    width: min(760px, 100%);
    margin: 8px auto 0;
    padding: 9px 12px;
    border: 1px solid color-mix(in oklch, var(--ngpt-danger) 25%, var(--ngpt-line));
    border-radius: 9px;
    color: var(--ngpt-danger);
    background: color-mix(in oklch, var(--ngpt-danger) 7%, var(--ngpt-paper-raised));
    font-size: 0.78rem;
    pointer-events: auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ngpt-chat-error button {
    min-height: 32px;
    padding: 0 11px;
    flex: 0 0 auto;
    border: 1px solid color-mix(in oklch, var(--ngpt-danger) 24%, var(--ngpt-line));
    border-radius: 8px;
    color: var(--ngpt-ink);
    background: var(--ngpt-paper-raised);
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

.ngpt-chat-error button:hover {
    background: var(--ngpt-paper-deep);
}

.ngpt-sidebar-backdrop {
    display: none;
}

.ngpt-auth-dialog {
    width: min(520px, calc(100vw - 28px));
    max-height: calc(100dvh - 28px);
    margin: auto;
    padding: 35px 34px 29px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--ngpt-line-strong);
    border-radius: 22px;
    color: var(--ngpt-ink);
    background: var(--ngpt-paper-raised);
    box-shadow: 0 28px 80px var(--ngpt-shadow-strong);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    text-align: center;
}

.ngpt-auth-dialog[open] {
    animation: ngpt-auth-dialog-in 190ms var(--ngpt-ease);
}

.ngpt-auth-dialog::backdrop {
    background: color-mix(in oklch, var(--ngpt-backdrop) 90%, var(--ngpt-paper));
    animation: ngpt-auth-backdrop-in 170ms ease-out;
}

@keyframes ngpt-auth-dialog-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
}

@keyframes ngpt-auth-backdrop-in {
    from {
        opacity: 0;
    }
}

.ngpt-auth-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: var(--ngpt-muted);
    background: transparent;
    cursor: pointer;
}

.ngpt-auth-dialog-close:hover {
    color: var(--ngpt-ink);
    background: var(--ngpt-paper-deep);
}

.ngpt-auth-dialog-close svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.ngpt-auth-dialog-mark {
    width: 52px;
    height: 52px;
    margin: 0 auto 17px;
    border-radius: 15px;
}

.ngpt-auth-dialog-mark svg {
    width: 32px;
    height: 32px;
}

.ngpt-auth-dialog-kicker {
    margin: 0 0 9px;
    color: var(--ngpt-lime-dark);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ngpt-auth-dialog h2 {
    max-width: 19ch;
    margin: 0 auto;
    font-size: 1.72rem;
    font-weight: 720;
    letter-spacing: -0.038em;
    line-height: 1.14;
}

.ngpt-auth-dialog > p:not(.ngpt-auth-dialog-kicker) {
    max-width: 46ch;
    margin: 15px auto 0;
    color: var(--ngpt-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.ngpt-auth-dialog-benefits {
    display: flex;
    margin: 22px 0;
    padding: 14px 0;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    border-top: 1px solid var(--ngpt-line);
    border-bottom: 1px solid var(--ngpt-line);
    color: var(--ngpt-ink-soft);
    font-size: 0.72rem;
    font-weight: 600;
}

.ngpt-auth-dialog-benefits span {
    white-space: nowrap;
}

.ngpt-auth-dialog-benefits b {
    margin-right: 3px;
    color: var(--ngpt-lime-dark);
}

.ngpt-auth-dialog-primary,
.ngpt-auth-dialog-secondary {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.ngpt-auth-dialog-primary {
    gap: 10px;
    color: var(--ngpt-accent-contrast);
    background: var(--ngpt-lime);
    transition: background 160ms var(--ngpt-ease), transform 160ms var(--ngpt-ease);
}

.ngpt-auth-dialog-primary:hover {
    background: var(--ngpt-violet);
    transform: translateY(-1px);
}

.ngpt-auth-dialog-primary span {
    display: flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--ngpt-ink);
    background: var(--ngpt-paper);
    font-size: 0.78rem;
}

.ngpt-auth-dialog-secondary {
    min-height: 42px;
    margin-top: 7px;
    color: var(--ngpt-muted);
    font-size: 0.76rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}

.ngpt-auth-dialog-secondary:hover {
    color: var(--ngpt-ink);
    text-decoration-color: currentColor;
}

.ngpt-auth-dialog > small {
    display: block;
    margin-top: 11px;
    color: var(--ngpt-muted);
    font-size: 0.65rem;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .ngpt-hero {
        grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
        gap: 44px;
    }

    .ngpt-hero h1 {
        font-size: clamp(3.8rem, 6.7vw, 6rem);
    }

    .ngpt-demo-window {
        min-height: 510px;
    }

    .ngpt-promise {
        grid-template-columns: 0.45fr 1.25fr 0.8fr;
        gap: 45px;
    }
}

@media (max-width: 900px) {
    .ngpt-landing-nav {
        min-height: 68px;
    }

    .ngpt-hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .ngpt-hero-copy {
        max-width: 730px;
    }

    .ngpt-hero h1 {
        font-size: clamp(4.4rem, 13vw, 7rem);
    }

    .ngpt-hero-visual {
        width: min(680px, 100%);
        margin-left: auto;
    }

    .ngpt-promise {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ngpt-promise-words {
        font-size: clamp(4.3rem, 15vw, 7rem);
    }

    .ngpt-section-intro,
    .ngpt-model-choice {
        grid-template-columns: 1fr;
    }

    .ngpt-capability {
        grid-template-columns: 70px 0.75fr 1.25fr;
    }

    .ngpt-capability-example {
        grid-column: 2 / -1;
    }

    .ngpt-image-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ngpt-model-choice {
        gap: 50px;
    }

    .ngpt-app {
        grid-template-columns: 1fr;
    }

    .ngpt-sidebar {
        position: fixed;
        z-index: 20;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(320px, calc(100vw - 46px));
        transform: translateX(-102%);
        transition: transform 220ms var(--ngpt-ease);
    }

    .ngpt-app.sidebar-open .ngpt-sidebar {
        transform: translateX(0);
    }

    .ngpt-sidebar-close {
        display: flex;
    }

    .ngpt-sidebar-backdrop {
        position: fixed;
        z-index: 19;
        inset: 0;
        display: block;
        background: var(--ngpt-backdrop);
    }

    .ngpt-mobile-bar {
        position: absolute;
        z-index: 5;
        top: 0;
        right: 0;
        left: 0;
        display: grid;
        min-height: 54px;
        padding: 0 14px;
        grid-template-columns: 40px 1fr auto;
        align-items: center;
        border-bottom: 1px solid var(--ngpt-line);
        background: color-mix(in oklch, var(--ngpt-paper-raised) 94%, transparent);
    }

    .ngpt-mobile-bar button {
        display: flex;
        width: 36px;
        height: 36px;
        padding: 0;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 9px;
        background: transparent;
    }

    .ngpt-mobile-bar svg {
        width: 20px;
    }

    .ngpt-mobile-bar a {
        justify-self: center;
        font-family: "Titillium Web", "Segoe UI", sans-serif;
        font-weight: 700;
        text-decoration: none;
    }

    .ngpt-mobile-bar span {
        max-width: 120px;
        overflow: hidden;
        color: var(--ngpt-muted);
        font-size: 0.68rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ngpt-mobile-bar .ngpt-mobile-quota {
        display: flex;
        min-width: 50px;
        min-height: 30px;
        padding: 0 8px;
        align-items: center;
        justify-content: center;
        border: 1px solid color-mix(in oklch, var(--ngpt-lime-dark) 22%, var(--ngpt-line));
        border-radius: 9px;
        color: var(--ngpt-lime-dark);
        background: var(--ngpt-lime-soft);
        font-variant-numeric: tabular-nums;
    }

    .ngpt-message-stream {
        padding-top: 86px;
    }

    .ngpt-empty-chat {
        margin-top: 110px;
    }
}

@media (max-width: 640px) {
    .ngpt-landing-nav-actions .ngpt-text-link {
        display: none;
    }

    .ngpt-landing-nav {
        padding-right: 17px;
        padding-left: 17px;
    }

    .ngpt-nav-cta {
        padding: 9px 13px;
        font-size: 0.88rem;
    }

    .ngpt-hero {
        padding-right: 17px;
        padding-left: 17px;
    }

    .ngpt-hero h1 {
        font-size: clamp(3.65rem, 18vw, 5.6rem);
        line-height: 0.86;
    }

    .ngpt-hero-lead {
        margin-top: 27px;
    }

    .ngpt-hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .ngpt-demo-window {
        min-height: 450px;
        grid-template-columns: 86px minmax(0, 1fr);
        border-radius: 16px;
        transform: none;
    }

    .ngpt-demo-sidebar {
        padding: 13px 8px;
    }

    .ngpt-demo-new {
        padding: 8px 6px;
        font-size: 0.58rem;
    }

    .ngpt-demo-history span {
        padding-right: 4px;
        padding-left: 4px;
        font-size: 0.5rem;
    }

    .ngpt-demo-chat {
        padding: 39px 16px 118px;
    }

    .ngpt-demo-question {
        width: 92%;
        font-size: 0.69rem;
    }

    .ngpt-demo-answer {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 10px;
    }

    .ngpt-demo-answer-mark {
        width: 26px;
        height: 26px;
    }

    .ngpt-demo-answer strong {
        font-size: 0.72rem;
    }

    .ngpt-demo-answer p {
        font-size: 0.66rem;
    }

    .ngpt-demo-composer {
        right: 14px;
        bottom: 21px;
        left: 14px;
    }

    .ngpt-promise,
    .ngpt-capabilities,
    .ngpt-model-choice {
        padding-right: 20px;
        padding-left: 20px;
    }

    .ngpt-capability {
        grid-template-columns: 42px 1fr;
        gap: 16px;
    }

    .ngpt-capability p,
    .ngpt-capability-example {
        grid-column: 2;
    }

    .ngpt-model-switch {
        min-height: 500px;
        grid-template-columns: 1fr;
    }

    .ngpt-model-switch-providers {
        display: flex;
        padding: 9px;
        overflow: hidden;
        border-right: 0;
        border-bottom: 1px solid var(--ngpt-line);
    }

    .ngpt-model-switch-providers > span,
    .ngpt-model-switch-providers > b,
    .ngpt-model-switch-providers small {
        display: none;
    }

    .ngpt-model-switch-providers > div {
        min-width: max-content;
        flex: 0 0 auto;
        grid-template-columns: 30px auto;
    }

    .ngpt-model-switch-providers > div + div {
        margin-top: 0;
        margin-left: 3px;
    }

    .ngpt-model-switch-row {
        min-height: 75px;
        padding: 12px 15px;
    }

    .ngpt-final-cta {
        min-height: 720px;
    }

    .ngpt-final-cta h2 {
        font-size: clamp(3.6rem, 17vw, 5.3rem);
    }

    .ngpt-message-stream {
        width: calc(100% - 28px);
        padding-bottom: 176px;
    }

    .ngpt-message {
        grid-template-columns: 29px minmax(0, 1fr);
        gap: 11px;
    }

    .ngpt-message + .ngpt-message {
        margin-top: 32px;
    }

    .ngpt-message-identity,
    .ngpt-mark--message {
        width: 29px;
        height: 29px;
    }

    .ngpt-message-text {
        font-size: 0.94rem;
    }

    .ngpt-empty-chat {
        width: calc(100% - 32px);
        margin-top: 90px;
    }

    .ngpt-empty-chat h1 {
        font-size: 2.15rem;
    }

    .ngpt-suggestions {
        grid-template-columns: 1fr 1fr;
    }

    .ngpt-suggestions button:nth-child(3) {
        display: none;
    }

    .ngpt-composer-zone {
        padding: 22px 10px 8px;
    }

    .ngpt-app:not(.has-messages) .ngpt-composer-zone {
        top: min(59%, 510px);
        padding: 0 10px;
    }

    .ngpt-composer {
        min-height: 105px;
        border-radius: 16px;
    }

    .ngpt-app.is-image-mode:not(.has-messages) .ngpt-composer-zone {
        top: auto;
        bottom: 0;
        padding: 18px 10px 8px;
        background: var(--ngpt-paper-raised);
        transform: none;
    }

    .ngpt-app.is-image-mode .ngpt-composer {
        max-height: 72vh;
        padding: 12px;
    }

    .ngpt-mode-switch {
        margin-bottom: 7px;
    }

    .ngpt-image-settings {
        padding-top: 12px;
    }

    .ngpt-image-settings-head {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .ngpt-image-model-field {
        min-width: 0;
    }

    .ngpt-image-settings-head > a {
        align-self: flex-start;
    }

    .ngpt-image-model-copy {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .ngpt-image-fields {
        grid-template-columns: 1fr;
    }

    .ngpt-generated-image figcaption {
        align-items: stretch;
        flex-direction: column;
    }

    .ngpt-image-download {
        align-self: flex-start;
    }

    .ngpt-composer-hint {
        display: none;
    }

    .ngpt-composer-controls {
        justify-content: space-between;
        gap: 8px;
    }

    .ngpt-model-trigger {
        width: min(226px, calc(100vw - 218px));
        min-width: 0;
    }

    .ngpt-model-picker-panel {
        width: calc(100vw - 20px);
        border-radius: 15px;
    }

    .ngpt-model-picker-header {
        min-height: 61px;
        padding: 11px 11px 10px 14px;
    }

    .ngpt-model-picker-body {
        height: min(438px, calc(100vh - 83px));
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-rows: 116px minmax(0, 1fr);
    }

    .ngpt-provider-list {
        display: grid;
        padding: 8px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(2, 48px);
        gap: 3px;
        overflow: hidden;
        border-right: 0;
        border-bottom: 1px solid var(--ngpt-line);
    }

    .ngpt-provider-option {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 4px 3px;
        grid-template-columns: 1fr;
        grid-template-rows: 24px auto;
        justify-items: center;
        gap: 2px;
    }

    .ngpt-provider-option + .ngpt-provider-option {
        margin-top: 0;
        margin-left: 0;
    }

    .ngpt-provider-option > span {
        width: 24px;
        height: 24px;
        border-radius: 7px;
        font-size: 0.52rem;
    }

    .ngpt-provider-option strong {
        width: 100%;
        font-size: 0.59rem;
        text-align: center;
    }

    .ngpt-provider-option small {
        display: none;
    }

    .ngpt-model-options-heading {
        min-height: 43px;
    }

    .ngpt-model-option {
        min-height: 58px;
    }

    .ngpt-composer-meta {
        align-items: center;
    }

    .ngpt-chat-disclaimer {
        display: none;
    }

    .ngpt-quota {
        margin-left: auto;
    }

    .ngpt-auth-dialog {
        padding: 31px 20px 24px;
        border-radius: 18px;
    }

    .ngpt-auth-dialog h2 {
        font-size: 1.45rem;
    }

    .ngpt-auth-dialog-benefits {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        text-align: left;
    }

    .ngpt-auth-dialog-benefits span {
        white-space: normal;
    }
}

@media (max-width: 380px) {
    .ngpt-web-search {
        width: 40px;
        padding: 0;
    }

    .ngpt-web-search-label {
        display: none;
    }

    .ngpt-model-trigger {
        width: min(205px, calc(100vw - 145px));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
