:root {
    --bg: #f5f1e8;
    --panel: #fffdf8;
    --ink: #1f2937;
    --muted: #6b7280;
    --brand: #1e3a8a;
    --brand-soft: #dbeafe;
    --accent: #b98b2f;
    --danger: #b91c1c;
    --border: #e5dcc8;
    --shadow: 0 10px 30px rgba(20, 20, 40, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, #fefaf0, var(--bg) 42%);
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.topbar {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 253, 248, 0.9);
    backdrop-filter: blur(6px);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    gap: 14px;
}

.brand {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero {
    padding: 92px 0 74px;
    text-align: center;
}

.hero-large {
    padding-top: 84px;
    padding-bottom: 40px;
}

.eyebrow {
    display: inline-block;
    background: #e0e7ff;
    color: #312e81;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 0 0 16px;
    line-height: 1.15;
}

.hero p {
    margin: 0 auto 28px;
    max-width: 780px;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 10px;
}

.hero-mini-stats {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    text-align: left;
    padding: 16px;
}

.stat-card strong {
    display: block;
    margin-bottom: 5px;
}

.button {
    border: 1px solid transparent;
    background: var(--brand);
    color: #fff;
    padding: 11px 18px;
    border-radius: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.button-secondary {
    background: #fff;
    color: var(--brand);
    border-color: #cbd5e1;
}

.button-ghost {
    background: transparent;
    color: var(--ink);
    border-color: #d1d5db;
}

.button-danger {
    background: var(--danger);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.card h3,
.card h2 {
    margin-top: 0;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: min(500px, 100%);
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 9px;
    border: 1px solid #dadce0;
    background: #fff;
    color: #3c4043;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.auth-google-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.auth-google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    white-space: nowrap;
}

.label {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 0.95rem;
    background: #fff;
}

.input:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.14);
}

.row {
    display: flex;
    gap: 10px;
}

.error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    border-radius: 9px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.success-note {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    border-radius: 9px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.info-note {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 9px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.muted {
    color: var(--muted);
}

.code {
    background: #111827;
    color: #f3f4f6;
    border-radius: 10px;
    padding: 15px;
    font-family: Consolas, "Courier New", monospace;
    overflow-x: auto;
    font-size: 0.88rem;
}

.section-title {
    font-size: clamp(1.35rem, 2vw, 2rem);
    margin: 0 0 18px;
}

.section-block {
    padding-bottom: 40px;
}

.cta-card {
    text-align: center;
}

.model-badges {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.model-badge {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.footer {
    border-top: 1px solid var(--border);
    margin-top: 48px;
    padding: 24px 0;
    text-align: center;
    color: var(--muted);
}

.chat-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
}

.chat-toolbar-group {
    flex: 1;
}

.chat-box {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fffcf4;
    min-height: 280px;
    max-height: 420px;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 90%;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 10px 12px;
    box-shadow: 0 2px 10px rgba(20, 20, 40, 0.06);
}

.chat-message.user {
    align-self: flex-end;
    background: #eff6ff;
}

.chat-message.assistant {
    align-self: flex-start;
    background: #fff;
}

.chat-role {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 4px;
}

.chat-text {
    white-space: pre-wrap;
    line-height: 1.45;
}

.chat-text .chat-message-body {
    white-space: pre-wrap;
}

.chat-preview-img {
    display: block;
    max-width: 100%;
    max-height: 360px;
    width: auto;
    height: auto;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    object-fit: contain;
    background: #f8f8f8;
}

.chat-form {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.chat-input {
    min-height: 74px;
    resize: vertical;
}

.api-generator .row {
    align-items: center;
}

.api-generator--model {
    margin-top: 4px;
}

.api-model-select-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}

.api-model-select-hint {
    font-size: 0.8rem;
    margin: 8px 0 0;
    line-height: 1.4;
    max-width: 36rem;
}

.api-model-select-wrap {
    position: relative;
    max-width: 28rem;
}

.api-model-select-wrap--modal {
    max-width: none;
}

.api-model-select-wrap .api-model-select {
    width: 100%;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 14px 48px 14px 16px;
    min-height: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    background-color: #fff;
    background-image: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 2px 8px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.api-model-select-wrap .api-model-select:hover {
    border-color: #c7d2fe;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.06),
        0 4px 14px rgba(99, 102, 241, 0.1);
}

.api-model-select-wrap .api-model-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.25),
        0 4px 14px rgba(99, 102, 241, 0.12);
    background: #fff;
}

.api-model-select-wrap::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #64748b;
    pointer-events: none;
    transition: border-top-color 0.15s ease;
}

.api-model-select-wrap:focus-within::after {
    border-top-color: #4f46e5;
}

.modal-card .api-model-select-wrap {
    margin-bottom: 4px;
}

.code-input {
    min-height: 138px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.86rem;
    line-height: 1.35;
    background: #fff;
}

.model-key-form {
    margin: 12px 0 14px;
}

.table-wrap {
    overflow-x: auto;
}

.keys-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.keys-table th,
.keys-table td {
    border-bottom: 1px solid var(--border);
    padding: 10px 8px;
    text-align: left;
    font-size: 0.9rem;
}

.keys-table th {
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.key-inline {
    font-family: Consolas, "Courier New", monospace;
    min-width: 280px;
    padding: 8px 10px;
}

.button-sm {
    padding: 8px 11px;
    font-size: 0.82rem;
}

.menu-chip {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--brand);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.84rem;
    font-weight: 600;
}

.menu-chip:hover {
    text-decoration: none;
    background: #eff6ff;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-card {
    width: min(520px, 100%);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.modal-card h3 {
    margin: 0 0 8px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.modal-overlay.is-open {
    display: flex;
}

.gpt-memory-textarea {
    width: 100%;
    min-height: 140px;
    margin-top: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    resize: vertical;
    box-sizing: border-box;
}

.gpt-memory-hint {
    font-size: 0.8rem;
    margin: 8px 0 0;
    color: #6b7280;
    line-height: 1.4;
}

/* —— ChatGPT-like dashboard (light theme) —— */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.dashboard-gpt {
    margin: 0;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: #fff;
    color: #0d0d0d;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.gpt-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 80;
}

.gpt-backdrop.is-visible {
    display: block;
}

.gpt-app {
    display: flex;
    min-height: 100vh;
    max-height: 100vh;
}

/* Sidebar */
.gpt-sidebar {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #f4f4f6;
    border-right: 1px solid #e3e3e8;
    transition: width 0.2s ease, min-width 0.2s ease, border-color 0.2s ease;
}

.gpt-app--collapsed .gpt-sidebar {
    width: 0;
    min-width: 0;
    border-right-color: transparent;
    overflow: hidden;
}

.gpt-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px 12px 16px;
    gap: 8px;
}

.gpt-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.05rem;
    color: #111;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.gpt-brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    background: #0d1a1f;
    padding: 3px;
    box-sizing: border-box;
}

.gpt-sidebar-brand:hover {
    color: var(--brand);
}
.gpt-nav-gemini-on { color: #1a73e8; }
.gpt-nav-gemini-on .gpt-nav-label { font-weight: 600; }
.gpt-gemini-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #34a853;
    flex-shrink: 0;
    margin-left: auto;
}

.gpt-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.gpt-icon-btn:hover {
    background: #e8e8ed;
    color: #111;
}

.gpt-sidebar-nav {
    padding: 4px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gpt-nav-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #111;
    font-size: 0.94rem;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.12s ease;
}

.gpt-nav-row:hover {
    background: #ebebef;
}

.gpt-nav-row--muted {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.gpt-nav-row--active {
    background: #e8eeff !important;
    color: #1e3a8a;
}

.gpt-search-panel {
    padding: 6px 10px 12px 14px;
    border-bottom: 1px solid #e8e8ed;
}

.gpt-search-input {
    font-size: 0.86rem !important;
    padding: 8px 10px !important;
}

.gpt-search-results {
    margin-top: 8px;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gpt-search-hit {
    width: 100%;
    text-align: left;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.78rem;
    line-height: 1.35;
    cursor: pointer;
    color: #374151;
    font-family: inherit;
    transition: background 0.12s ease;
}

.gpt-search-hit:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.gpt-search-hint,
.gpt-search-empty {
    font-size: 0.78rem;
    margin: 0;
    padding: 4px 2px;
}

.gpt-nav-soon {
    pointer-events: none;
    cursor: default;
    color: #6b7280;
}

.gpt-nav-soon:hover {
    background: transparent;
}

.gpt-soon-badge {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4b5563;
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
    border: 1px solid #e5e7eb;
    padding: 4px 9px;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.gpt-msg--flash .gpt-bubble {
    animation: gpt-msg-flash 1.25s ease;
}

@keyframes gpt-msg-flash {
    0%,
    100% {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }
    40% {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
    }
}

.gpt-nav-row--link {
    cursor: pointer;
    color: inherit;
}

.gpt-nav-icon {
    display: flex;
    color: #4b5563;
    flex-shrink: 0;
}

.gpt-chat-history-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 8px 10px 4px;
    border-top: 1px solid #e8e8ed;
}

.gpt-chat-history-head {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
    padding: 4px 8px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gpt-delete-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #ef4444;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.7;
}

.gpt-delete-all-btn:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.gpt-delete-all-btn:active {
    transform: scale(0.95);
}

.gpt-chat-history {
    flex: 1;
    min-height: 80px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 2px;
}

.gpt-chat-history-empty {
    font-size: 0.78rem;
    margin: 0;
    padding: 8px 8px 12px;
}

.gpt-chat-history-row {
    display: flex;
    align-items: stretch;
    gap: 2px;
    border-radius: 10px;
    min-width: 0;
}

.gpt-chat-history-row:hover {
    background: #ebebef;
}

.gpt-chat-history-row--active {
    background: #e8eeff;
}

.gpt-chat-history-row--active:hover {
    background: #dfe8ff;
}

.gpt-chat-history-item {
    flex: 1;
    min-width: 0;
    text-align: left;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #111;
    font-family: inherit;
    font-size: 0.86rem;
    padding: 9px 6px 9px 10px;
    cursor: pointer;
    transition: background 0.12s ease;
    line-height: 1.35;
}

.gpt-chat-history-row--active .gpt-chat-history-item {
    color: #1e3a8a;
}

.gpt-chat-history-delete {
    flex-shrink: 0;
    width: 34px;
    min-width: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.12s ease, background 0.12s ease;
    align-self: center;
}

.gpt-chat-history-delete:hover {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.08);
}

.gpt-chat-history-delete:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}

.gpt-chat-history-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.gpt-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 18px;
    border-top: 1px solid #e3e3e8;
    margin-top: auto;
}

.gpt-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand);
}

.gpt-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #111;
}

.gpt-user-logout {
    font-size: 0.8rem;
    color: #6b7280;
}

.gpt-user-logout:hover {
    color: var(--brand);
}

/* Main column */
.gpt-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.gpt-main-topbar {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    border-bottom: 1px solid #ececf1;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.gpt-topbar-left {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-self: start;
}

.gpt-topbar-brand {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.gpt-topbar-brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.02em;
}
.gpt-llm-version {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #fafbfc 0%, #f3f4f6 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.gpt-llm-version-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.gpt-llm-version-name {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--brand, #2563eb);
    font-variant-numeric: tabular-nums;
}

.gpt-topbar-trailer {
    justify-self: end;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.gpt-topbar-trailer:empty {
    display: none;
}

.gpt-reply-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 4px 4px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fafbfc;
}

.gpt-reply-lang-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    white-space: nowrap;
}

.gpt-reply-lang-select {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: #111;
    padding: 6px 28px 6px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
        no-repeat right 8px center;
    appearance: none;
    cursor: pointer;
    max-width: 140px;
}

.gpt-reply-lang-select:hover {
    border-color: #9ca3af;
}

@media (max-width: 520px) {
    .gpt-reply-lang-label {
        display: none;
    }

    .gpt-reply-lang {
        padding-left: 6px;
    }
}

/* ── Language Buttons ── */
.lang-btns {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lang-btn {
    padding: 5px 11px;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #6b7280;
    font-size: 0.73rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    user-select: none;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
}

.lang-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #1f2937;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.9);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-color: #1a1a2e;
    color: #fff;
    box-shadow: 0 3px 10px rgba(15,52,96,0.35), 0 1px 3px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.lang-btn.active:hover {
    box-shadow: 0 4px 14px rgba(15,52,96,0.45), 0 1px 3px rgba(0,0,0,0.2);
}

.agentb-llm-version-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e8e8ef;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.agentb-llm-version-banner__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
}

.agentb-llm-version-banner__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand, #2563eb);
    letter-spacing: 0.03em;
}

.gpt-expand-sidebar {
    display: none;
}

.gpt-app--collapsed .gpt-expand-sidebar {
    display: inline-flex;
}

.gpt-menu-mobile {
    display: none;
}

/* Thread */
.gpt-thread {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 20px 12px;
    scroll-behavior: smooth;
}

.gpt-thread-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gpt-empty {
    text-align: center;
    padding: min(10vh, 72px) 16px 32px;
}

.gpt-empty-title {
    font-size: clamp(1.65rem, 4.5vw, 2.15rem);
    font-weight: 600;
    margin: 0 0 12px;
    color: #111;
    letter-spacing: -0.03em;
}

.gpt-empty-sub {
    margin: 0;
    font-size: 1rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.gpt-msg {
    display: flex;
    width: 100%;
}

.gpt-msg--user {
    justify-content: flex-end;
}

.gpt-msg--assistant {
    justify-content: flex-start;
}

.gpt-bubble {
    max-width: min(100%, 88%);
    border-radius: 20px;
    padding: 12px 16px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.gpt-msg--user .gpt-bubble {
    background: #f4f4f6;
    border: 1px solid #e8e8ed;
}

.gpt-msg--assistant .gpt-bubble {
    background: #fff;
    border: 1px solid #ececf1;
}

.gpt-msg-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 6px;
}

.gpt-msg-text {
    white-space: pre-wrap;
    line-height: 1.55;
    font-size: 0.96rem;
    color: #1f2937;
}

.gpt-msg-text .chat-message-body {
    white-space: pre-wrap;
}

.gpt-streaming-body {
    min-height: 1.45em;
}

.gpt-stream-caret {
    display: inline-block;
    width: 8px;
    height: 1.15em;
    margin-left: 2px;
    vertical-align: text-bottom;
    background: var(--brand, #2563eb);
    border-radius: 2px;
    animation: gpt-stream-caret-blink 1s step-end infinite;
}

@keyframes gpt-stream-caret-blink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

.gpt-tts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: var(--brand);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.gpt-tts-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.gpt-tts-btn:active {
    transform: scale(0.96);
}

.gpt-tts-btn:disabled {
    cursor: wait;
}

.gpt-tts-btn.is-loading {
    opacity: 0.55;
}

.gpt-tts-btn.is-playing {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.gpt-tts-icon {
    display: block;
    flex-shrink: 0;
}

/* Composer (wide pill) */
.gpt-composer-wrap {
    flex-shrink: 0;
    padding: 12px 20px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 35%);
}

.gpt-composer-wide {
    max-width: 720px;
    margin: 0 auto;
}

.gpt-composer-form {
    margin: 0;
}

.gpt-composer-pill {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px 10px 14px;
    border-radius: 26px;
    border: 1px solid #d9d9e0;
    background: #fff;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.07);
}

.gpt-composer-pill:focus-within {
    border-color: #b4b4c0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
}

.gpt-composer-plus {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #9ca3af;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gpt-composer-web-search {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gpt-composer-web-search:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.gpt-composer-web-search.is-active {
    background: var(--brand-soft);
    color: var(--brand);
}

.gpt-composer-web-search.is-active:hover {
    background: rgba(30, 58, 138, 0.15);
}

/* Web Search mode button */
.gpt-model-btn--search {
    background: #f3f4f6;
    color: #6b7280;
}

.gpt-model-btn--search.gpt-model-btn--active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.gpt-composer-input {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-size: 1rem;
    line-height: 1.45;
    font-family: inherit;
    padding: 10px 4px;
    min-height: 28px;
    max-height: 200px;
    background: transparent;
    color: #111;
}

.gpt-composer-input::placeholder {
    color: #9ca3af;
}

.gpt-composer-send {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.gpt-composer-send:hover {
    opacity: 0.93;
    transform: scale(1.03);
}

.gpt-composer-stop {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 999px;
    border: 2px solid #111827;
    background: #fff;
    color: #111827;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.12s ease;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    padding: 0 6px;
    box-sizing: border-box;
}

.gpt-composer-stop:hover {
    background: #f3f4f6;
}

.gpt-composer-stop:active {
    transform: scale(0.97);
}

.gpt-composer-stop.is-visible {
    display: flex;
}

.gpt-composer-send.is-hidden {
    display: none !important;
}

.gpt-composer-foot {
    font-size: 0.72rem;
    margin: 10px 0 0;
    text-align: center;
}

/* Model selector */
.gpt-model-btns {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 8px 0 2px;
}
.gpt-model-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 14px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.gpt-model-btn:hover {
    border-color: var(--accent);
    color: var(--fg);
}
.gpt-model-btn--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Mobile sidebar overlay */
@media (max-width: 768px) {
    .gpt-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 90;
        min-width: 260px;
        width: min(280px, 88vw);
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        box-shadow: none;
    }

    .gpt-app--sidebar-open .gpt-sidebar {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
    }

    .gpt-app--collapsed .gpt-sidebar {
        transform: translateX(-100%);
        width: min(280px, 88vw);
        min-width: 260px;
    }

    .gpt-menu-mobile {
        display: inline-flex;
    }

    .gpt-expand-sidebar {
        display: none !important;
    }

    .gpt-app--collapsed .gpt-expand-sidebar {
        display: none !important;
    }

    .gpt-msg--user .gpt-bubble,
    .gpt-msg--assistant .gpt-bubble {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .topbar-inner {
        flex-wrap: wrap;
    }
    .hero {
        padding-top: 66px;
    }
    .hero-mini-stats {
        grid-template-columns: 1fr;
    }
    .chat-toolbar,
    .chat-form,
    .row {
        flex-direction: column;
        align-items: stretch;
    }
    .modal-actions {
        flex-direction: column;
    }
    .chat-message {
        max-width: 100%;
    }
}

/* ========== Mobile, touch & safe areas (site-wide) ========== */
html {
    -webkit-text-size-adjust: 100%;
}

/* iOS: avoid zoom on focus; comfortable tap targets */
@media (max-width: 768px) {
    .input,
    textarea.input,
    select.input,
    .gpt-composer-input {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    .topbar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding-top: max(14px, env(safe-area-inset-top, 0px));
        padding-bottom: 14px;
        padding-left: max(0px, env(safe-area-inset-left, 0px));
        padding-right: max(0px, env(safe-area-inset-right, 0px));
    }

    .brand {
        font-size: 1.2rem;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

    .nav-links span {
        text-align: center;
        font-size: 0.9rem;
    }

    .nav-links .menu-chip,
    .nav-links .button {
        justify-content: center;
        min-height: 44px;
        width: 100%;
    }

    .card {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .key-inline {
        min-width: 0 !important;
        width: 100%;
        max-width: 100%;
    }

    .row .button {
        width: 100%;
        min-height: 44px;
    }

    .table-wrap {
        margin-left: -4px;
        margin-right: -4px;
        padding: 0 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .keys-table {
        font-size: 0.82rem;
    }

    .keys-table th,
    .keys-table td {
        padding: 10px 6px;
        vertical-align: top;
    }

    .modal-overlay {
        padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
            max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
        align-items: flex-end;
    }

    .modal-card {
        width: 100%;
        max-height: min(90dvh, calc(100vh - 24px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px 16px 0 0;
    }

    .modal-actions {
        gap: 10px;
    }

    .modal-actions .button,
    .modal-actions .button-ghost {
        width: 100%;
        min-height: 44px;
    }

    .button,
    .button-secondary,
    .button-ghost,
    .button-danger,
    .menu-chip {
        min-height: 44px;
        touch-action: manipulation;
    }

    .auth-wrap {
        padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
            max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
        align-items: flex-start;
        padding-top: max(24px, env(safe-area-inset-top, 0px));
    }

    .auth-card {
        width: 100%;
    }

    .auth-google-btn {
        min-height: 48px;
    }
}

/* GPT layout: top bar stacks cleanly; composer clears home indicator */
@media (max-width: 640px) {
    .gpt-main-topbar {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 10px;
        padding: 10px 12px;
        padding-top: max(10px, env(safe-area-inset-top, 0px));
        padding-left: max(10px, env(safe-area-inset-left, 0px));
        padding-right: max(10px, env(safe-area-inset-right, 0px));
    }

    .gpt-topbar-left {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        flex-wrap: wrap;
        gap: 6px;
    }

    .gpt-topbar-auth {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        flex-shrink: 0;
    }

    .gpt-topbar-trailer {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }

    .gpt-llm-version {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .gpt-llm-version-name {
        font-size: 0.78rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .lang-btns {
        flex-wrap: wrap;
        row-gap: 6px;
        max-width: 100%;
    }

    .lang-btn {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 0.72rem;
    }

    .gpt-icon-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .gpt-thread {
        padding: 12px 12px 8px;
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }

    .gpt-composer-wrap {
        padding: 10px 12px;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }

    .gpt-composer-pill {
        padding: 8px 10px 8px 12px;
        border-radius: 22px;
    }

    .gpt-composer-send {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }

    .gpt-composer-stop {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 0.68rem;
    }

    .gpt-composer-plus {
        width: 44px;
        height: 44px;
    }

    .gpt-bubble {
        max-width: 100%;
        padding: 11px 14px 12px;
    }

    .gpt-empty {
        padding: min(8vh, 48px) 12px 24px;
    }

    .gpt-sidebar {
        width: min(300px, calc(100vw - max(24px, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px))));
        max-width: 92vw;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .gpt-nav-row {
        min-height: 44px;
        padding: 12px 12px;
    }

    .gpt-sidebar-user {
        padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
    }
}

/* Phones: stack top bar so LLM badge + auth never overlap (was tight at 400–640px) */
@media (max-width: 520px) {
    .gpt-main-topbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    /* DOM is left → llm → auth; put LLM badge last */
    .gpt-topbar-left {
        order: 1;
        width: 100%;
        justify-content: space-between;
    }

    .gpt-topbar-auth {
        order: 2;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        justify-content: center;
    }

    .gpt-topbar-trailer:not(:empty) {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .gpt-llm-version {
        order: 10;
        align-self: center;
        width: fit-content;
        max-width: 100%;
    }

    .gpt-auth-login,
    .gpt-auth-signup {
        text-align: center;
        min-height: 44px;
        line-height: 1.2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* Auth modal (index.php) — scrollable on short phones */
@media (max-width: 768px) {
    .auth-modal-overlay {
        padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
            max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
        align-items: flex-end;
    }

    .auth-modal-card {
        max-height: min(88dvh, calc(100vh - 20px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 18px 18px 0 0;
        width: 100%;
        padding: 28px 20px 24px;
    }

    .auth-modal-btn {
        min-height: 48px;
    }

    .agentb-llm-version-banner {
        padding: 10px 12px;
    }
}

/* —— About Us (about.php) —— */
body.about-body {
    background: radial-gradient(circle at top, #fefaf0, var(--bg) 42%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.about-article {
    flex: 1;
    padding: 28px 0 48px;
    max-width: 760px;
}

.about-eyebrow {
    display: inline-block;
    background: #e0e7ff;
    color: #312e81;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.about-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    color: var(--ink);
    line-height: 1.15;
}

.about-hero {
    text-align: center;
    margin-bottom: 22px;
    padding: 36px 28px 32px;
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.4;
}

.about-lead--accent {
    font-size: 1.45rem;
    color: var(--brand);
    margin-bottom: 14px;
}

.about-sublead {
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.55;
}

.about-section {
    margin-bottom: 18px;
    padding: 26px 28px;
}

.about-section h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: var(--brand);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-soft);
}

.about-section--highlight {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border-color: #bfdbfe;
}

.about-section p {
    margin: 0 0 12px;
    line-height: 1.65;
    color: var(--ink);
}

.about-emphasis {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 14px 0 !important;
}

.about-emphasis--large {
    font-size: 1.35rem;
    color: var(--brand);
    margin: 18px 0 !important;
}

.about-question {
    font-weight: 600;
    color: var(--muted);
    margin-top: 18px !important;
}

.about-pullquote {
    font-size: 1.08rem;
    font-weight: 700;
    font-style: italic;
    color: var(--brand);
    margin: 20px 0 !important;
    padding: 14px 18px;
    border-left: 4px solid var(--accent);
    background: rgba(185, 139, 47, 0.08);
    border-radius: 0 10px 10px 0;
}

.about-list {
    margin: 12px 0 16px;
    padding-left: 1.35rem;
    line-height: 1.7;
}

.about-list li {
    margin-bottom: 8px;
}

.about-list--inline-pill {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.about-list--inline-pill li {
    margin: 0;
    padding: 8px 16px;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
}

.about-list--links a {
    font-weight: 700;
}

.about-list--plain {
    list-style: disc;
}

.about-final {
    background: linear-gradient(180deg, #fffdf8 0%, #f0f9ff 100%);
    border: 1px solid #bae6fd;
}

.about-closing {
    font-size: 1.1rem;
    margin: 16px 0 !important;
}

.about-signature {
    text-align: center;
    padding: 28px 24px;
    margin-bottom: 24px;
}

.about-signature-name {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--ink);
}

.about-signature-role {
    margin: 0;
    font-size: 0.95rem;
}

.about-back {
    text-align: center;
    margin: 0 0 8px;
}

.gpt-site-links {
    text-align: center;
    font-size: 0.72rem;
    margin: 6px 0 0;
    padding: 0 12px 8px;
}

.gpt-site-links a {
    color: var(--muted);
    font-weight: 600;
}

.gpt-site-links a:hover {
    color: var(--brand);
}

@media (max-width: 768px) {
    .about-hero {
        padding: 28px 18px 24px;
    }

    .about-section {
        padding: 20px 18px;
    }

    .about-article {
        padding-top: 18px;
        padding-bottom: 36px;
    }
}
