.custom-chatgpt-wrapper {
    --custom-chatgpt-height: auto;
    width: 100%;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: #0f172a;
    overflow: hidden;
}

.custom-chatgpt-layout {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.custom-chatgpt-sidebar-toggle {
    display: none;
    border: none;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-chatgpt-sidebar-toggle:active {
    transform: scale(0.98);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.custom-chatgpt-sidebar-toggle:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.custom-chatgpt-sidebar-overlay {
    display: none;
}

.custom-chatgpt-sidebar-close {
    display: none;
    border: none;
    background: none;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.site-content-inner > .custom-chatgpt-layout,
.site-content-inner > .custom-chatgpt-wrapper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

@media (max-width: 1424px) {
    .site-content-inner > .custom-chatgpt-layout,
    .site-content-inner > .custom-chatgpt-wrapper {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .custom-chatgpt-layout {
        padding-right: 0;
        position: relative;
    }

    .custom-chatgpt-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 60;
    }

    .custom-chatgpt-sidebar-overlay {
       
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        transition: opacity 0.25s ease;
        pointer-events: none;
        z-index: 40;
    }

    .custom-chatgpt-layout.custom-chatgpt-sidebar-open .custom-chatgpt-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .custom-chatgpt-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(340px, 85vw);
        max-height: none;
        margin-top: 0;
        border-radius: 0;
        box-shadow: 0 24px 48px rgba(15, 23, 42, 0.35);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 50;
    }

    .custom-chatgpt-layout.custom-chatgpt-sidebar-open .custom-chatgpt-sidebar {
        transform: translateX(0);
    }

    .custom-chatgpt-sidebar-header {
        padding-top: 20px;
    }

    .custom-chatgpt-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: flex-start;
        padding: 6px 8px;
    }
}

@media (min-width: 1025px) {
    .custom-chatgpt-layout {
        padding-right: calc(320px + 32px);
    }

    .custom-chatgpt-sidebar {
        position: fixed;
        top: 24px;
        right: 24px;
        bottom: 24px;
        z-index: 20;
    }
}

.custom-chatgpt-app {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: var(--custom-chatgpt-height, 100vh);
  
    border-radius: 16px;
    overflow: hidden;
  
    min-height: 640px;
    max-height: var(--custom-chatgpt-height, 100vh);
}

.custom-chatgpt-sidebar {
    width: 290px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.custom-chatgpt-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
}

.custom-chatgpt-new-chat {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.custom-chatgpt-new-chat:hover {
    background: #1e293b;
}

.custom-chatgpt-credits {
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-chatgpt-chat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-chatgpt-chat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s ease;
}

.custom-chatgpt-chat-item.renaming {
    background: #e2e8f0;
}

.custom-chatgpt-chat-item.active {
    background: #e2e8f0;
}

.custom-chatgpt-chat-item:hover {
    background: #f1f5f9;
}

.custom-chatgpt-chat-title {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    flex: 1;
    margin-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-chatgpt-chat-actions {
    position: relative;
}

.custom-chatgpt-chat-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 16px;
}

.custom-chatgpt-chat-actions button:hover {
    color: #0f172a;
}

.custom-chatgpt-chat-actions .custom-chatgpt-chat-menu {
    position: absolute;
    top: 24px;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
    padding: 8px 0;
    min-width: 140px;
    z-index: 10;
}

.custom-chatgpt-chat-actions .custom-chatgpt-chat-menu button {
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    font-size: 13px;
}

.custom-chatgpt-rename-form {
    flex: 1;
}

.custom-chatgpt-rename-input {
    width: 100%;
    border: 1px solid #cbd5f5;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
}

.custom-chatgpt-rename-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.custom-chatgpt-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    order: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.custom-chatgpt-welcome-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    order: 2;
}

.custom-chatgpt-welcome {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: min(720px, 100%);
    margin: 0 auto;
    gap: 18px;
    color: #0f172a;
}

.custom-chatgpt-welcome-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.custom-chatgpt-welcome-name {
    font-size: 28px;
    font-weight: 700;
}

.custom-chatgpt-welcome-message {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
}

.custom-chatgpt-welcome-extra {
    display: none;
    width: min(720px, 100%);
    margin: 32px auto 0;
    order: 3;
}

.custom-chatgpt-welcome-extra > .all {
    width: 100%;
    margin-top:100px;
}

.custom-chatgpt-conversation {
    flex: 1;
    padding: 32px 48px 32px;
    overflow-y: auto;
   
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    align-items: flex-start;
}

.custom-chatgpt-conversation {
    order: 1;
}

.custom-chatgpt-app.is-welcome .custom-chatgpt-main {
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 48px 48px 64px;
    overflow-y: auto;
}

.custom-chatgpt-app.is-welcome .custom-chatgpt-welcome-stage {
    margin-top: 100px;
    margin-bottom: auto;
    align-items: center;
    gap: 32px;
    width: min(720px, 100%);
}

.custom-chatgpt-app.is-welcome .custom-chatgpt-welcome {
    display: flex;
}

.custom-chatgpt-app.is-welcome .custom-chatgpt-conversation {
    display: none;
}

.custom-chatgpt-app.is-welcome .custom-chatgpt-input-area {
      border-radius: 40px;
    background: transparent;
    padding: 0;
}

.custom-chatgpt-app.is-welcome .custom-chatgpt-composer {
    width: min(720px, 100%);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.custom-chatgpt-app.is-welcome .custom-chatgpt-welcome-extra {
    display: block;
}

.custom-chatgpt-message {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
   
    position: relative;
    max-width: min(640px, 100%);
    align-self: flex-start;
}

.custom-chatgpt-message-content {
    white-space: pre-wrap;
    line-height: 1.6;
}

.custom-chatgpt-message-content code {
    font-family: 'Fira Code', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.95em;
    color: #0f172a;
}

.custom-chatgpt-message-content pre {
    position: relative;
    margin: 16px 0 0;
    padding: 24px 22px 22px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #0f172a;
    overflow: auto;
    box-shadow: 0 18px 36px -18px rgba(15, 23, 42, 0.35);
}

.custom-chatgpt-message-content pre code {
    display: block;
    padding: 0;
    background: transparent;
    color: inherit;
    white-space: pre;
    font-family: 'Fira Code', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.65;
}

.custom-chatgpt-message-content pre code.hljs {
    background: transparent;
}

.custom-chatgpt-message-content .hljs {
    background: transparent;
    color: inherit;
    display: block;
}

.custom-chatgpt-code-block {
    padding-top: 52px;
}

.custom-chatgpt-code-block::before {
    content: attr(data-language);
    position: absolute;
    top: 16px;
    left: 22px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.custom-chatgpt-code-block[data-language='']::before,
.custom-chatgpt-code-block:not([data-language])::before {
    content: none;
}

.custom-chatgpt-message-content pre + pre {
    margin-top: 24px;
}

.custom-chatgpt-copy-code {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px -6px rgba(15, 23, 42, 0.45);
    opacity: 1;
    z-index: 1;
}

.custom-chatgpt-copy-code:hover,
.custom-chatgpt-copy-code:focus {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 16px -12px rgba(37, 99, 235, 0.8);
}

.custom-chatgpt-copy-code.is-copied {
    background: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
    box-shadow: 0 8px 16px -12px rgba(34, 197, 94, 0.7);
}

.custom-chatgpt-copy-code.is-failed {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 8px 16px -12px rgba(239, 68, 68, 0.7);
}

.custom-chatgpt-message-content .hljs-comment,
.custom-chatgpt-message-content .hljs-quote {
    color: #94a3b8;
}

.custom-chatgpt-message-content .hljs-keyword,
.custom-chatgpt-message-content .hljs-selector-tag,
.custom-chatgpt-message-content .hljs-subst {
    color: #2563eb;
}

.custom-chatgpt-message-content .hljs-literal,
.custom-chatgpt-message-content .hljs-number,
.custom-chatgpt-message-content .hljs-meta,
.custom-chatgpt-message-content .hljs-meta .hljs-string {
    color: #0ea5e9;
}

.custom-chatgpt-message-content .hljs-string,
.custom-chatgpt-message-content .hljs-symbol,
.custom-chatgpt-message-content .hljs-attribute,
.custom-chatgpt-message-content .hljs-template-variable,
.custom-chatgpt-message-content .hljs-bullet,
.custom-chatgpt-message-content .hljs-name,
.custom-chatgpt-message-content .hljs-type,
.custom-chatgpt-message-content .hljs-built_in,
.custom-chatgpt-message-content .hljs-title {
    color: #16a34a;
}

.custom-chatgpt-message-content .hljs-addition {
    color: #16a34a;
}

.custom-chatgpt-message-content .hljs-deletion {
    color: #dc2626;
}

.custom-chatgpt-message.user {
  
    background: #f1f1f1;
    align-self: flex-end;
}

.custom-chatgpt-message.assistant {
    background: #ffffff;
}

.custom-chatgpt-message.typing {
    background: transparent;
    box-shadow: none;
    padding: 8px 0;
}

.custom-chatgpt-message.typing .custom-chatgpt-message-content {
    background: #e2e8f0;
    border-radius: 999px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    line-height: 1;
}

.custom-chatgpt-message.typing .custom-chatgpt-message-content.is-typing {
    padding: 10px 16px;
}

.custom-chatgpt-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.custom-chatgpt-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    opacity: 0.5;
    animation: custom-chatgpt-typing 1.2s infinite ease-in-out;
}

.custom-chatgpt-typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.custom-chatgpt-typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes custom-chatgpt-typing {
    0%,
    80%,
    100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.custom-chatgpt-message.user.failed {
    border: 1px solid #fca5a5;
    background: #fee2e2;
    color: #7f1d1d;
}

.custom-chatgpt-message.user.failed .custom-chatgpt-message-content {
    color: inherit;
}

.custom-chatgpt-message.assistant.error {
    border: 1px solid #fca5a5;
    background: #fee2e2;
    color: #991b1b;
}

.custom-chatgpt-message.assistant.error .custom-chatgpt-message-content {
    color: inherit;
}

.custom-chatgpt-message.assistant.error .custom-chatgpt-copy {
    display: none;
}

.custom-chatgpt-message-attachments {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.custom-chatgpt-message.user .custom-chatgpt-message-attachments {
    justify-content: flex-end;
}

.custom-chatgpt-message-attachment {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 12px;
    color: #0f172a;
    text-decoration: none;
    transition: background 0.2s ease;
}

.custom-chatgpt-message-attachment:hover {
    background: #cbd5f5;
}

.custom-chatgpt-message .custom-chatgpt-copy {
    position: absolute;
    left: 16px;

    background: none;
    border: 1px solid #cbd5f5;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    color: #1e293b;
}

.custom-chatgpt-message .custom-chatgpt-copy:hover {
    background: #e2e8f0;
}


.custom-chatgpt-input-area {
    border: 2px solid #aaaaaa;
    padding: 24px 48px 32px;
    display: flex;
        border-radius: 30px;
    justify-content: center;
    background: #f8fafc;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .custom-chatgpt-app {
        min-height: auto;
        height: auto;
    }

    .custom-chatgpt-main {
        height: auto;
    }

    .custom-chatgpt-sidebar {
        max-height: 20%;
    }

}

.custom-chatgpt-app.is-welcome .custom-chatgpt-main {
    padding: 32px 24px 40px;
    gap: 0;
}

.custom-chatgpt-refill-notice {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    width: min(480px, calc(100% - 32px));
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid #fb923c;
    background: #fff7ed;
    color: #9a3412;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 10px 26px rgba(249, 115, 22, 0.15);
    z-index: 30;
}

.custom-chatgpt-refill-notice[hidden] {
    display: none !important;
}

.custom-chatgpt-refill-text {
    flex: 1;
}

.custom-chatgpt-refill-buy {
    background: #fb923c;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.custom-chatgpt-refill-buy:hover,
.custom-chatgpt-refill-buy:focus {
    background: #f97316;
    transform: translateY(-1px);
}

.custom-chatgpt-refill-buy:focus {
    outline: 2px solid rgba(249, 115, 22, 0.4);
    outline-offset: 2px;
}

.custom-chatgpt-app.is-welcome .custom-chatgpt-welcome,
.custom-chatgpt-app.is-welcome .custom-chatgpt-welcome-extra,
.custom-chatgpt-app.is-welcome .custom-chatgpt-welcome-stage {
    width: 100%;
}
}

.custom-chatgpt-composer {
    width: min(720px, 100%);
    background: #ffffff;
    border-radius: 28px;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 12px 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    cursor: text;
}

.custom-chatgpt-composer-body {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    cursor: text;
}

.custom-chatgpt-selected-files {
    grid-column: 1 / span 2;
    grid-row: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    width: 100%;
    cursor: text;
}

.custom-chatgpt-selected-files:empty {
    display: none;
}

.custom-chatgpt-input-area textarea {
    flex: 1;

    resize: none;
    outline: none;
    font-size: 16px;
    line-height: 1.6;
    background: transparent;
    color: #0f172a;
       padding: 11px 10px;
    max-height: 200px;
}

.custom-chatgpt-input-area textarea::placeholder {
    color: #4c4d4e;
}

.custom-chatgpt-file-trigger {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
       width: 40px;
    height: 40px;
    margin-top: 4px;
    margin-left: 15px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    grid-column: 1;
    grid-row: 2;
}

.custom-chatgpt-file-trigger:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.custom-chatgpt-file-trigger:active {
    transform: scale(0.95);
}

.custom-chatgpt-send {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 50%;
     width: 40px;
    height: 40px;
    margin-top: 8px;
    margin-right: 15px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    grid-column: 3;
    grid-row: 2;
}

.custom-chatgpt-send:disabled {
   
    cursor: not-allowed;
    transform: none;
}

.custom-chatgpt-send:not(:disabled):hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.custom-chatgpt-file-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border-radius: 18px;
    padding: 8px 16px 8px 14px;
    font-size: 13px;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.custom-chatgpt-file-chip.image {
    padding: 0;
    border: none;
    background: transparent;
    overflow: hidden;
}

.custom-chatgpt-file-thumb {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

.custom-chatgpt-file-name {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-chatgpt-file-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #0f172a;
}

.custom-chatgpt-file-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 18px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.custom-chatgpt-file-remove:hover {
    color: #0f172a;
    transform: scale(1.1);
}

.custom-chatgpt-file-chip.image .custom-chatgpt-file-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.custom-chatgpt-file-chip.document {
    padding-right: 38px;
}

.custom-chatgpt-file-chip.document .custom-chatgpt-file-remove {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.custom-chatgpt-loading {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}

@media (max-width: 720px) {
    .custom-chatgpt-conversation {
        padding: 32px 16px 140px;
    }

    .custom-chatgpt-input-area {
        padding: 16px;
    }

    .custom-chatgpt-refill-notice {
     width: calc(85% - 4px);
        bottom: 160px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 14px;
        margin-left: 25px;
        padding: 16px;
    }

    .custom-chatgpt-refill-text {
        font-size: 14px;
    }

    .custom-chatgpt-refill-buy {
        width: 100%;
        padding: 12px 22px;
    }

    .custom-chatgpt-composer {
        width: 100%;
        padding: 16px;
        gap: 12px;
    }

    .custom-chatgpt-file-trigger,
    .custom-chatgpt-send {
        width: 42px;
        height: 42px;
    }

    .custom-chatgpt-file-thumb {
        width: 56px;
        height: 56px;
    }
}

.custom-chatgpt-send {
    position: relative;
}

.custom-chatgpt-send-icon {
    transition: opacity 0.2s ease;
}

.custom-chatgpt-send-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.9);
    animation: custom-chatgpt-spin 0.8s linear infinite;
    display: none;
}

.custom-chatgpt-send.loading .custom-chatgpt-send-icon {
    opacity: 0;
}

.custom-chatgpt-send.loading .custom-chatgpt-send-spinner {
    display: inline-block;
}

.custom-chatgpt-send:disabled .custom-chatgpt-send-spinner {
    border-top-color: rgba(255, 255, 255, 0.6);
}

@keyframes custom-chatgpt-spin {
    to {
        transform: rotate(360deg);
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1100;
}

.modalreg {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    max-width: 440px;
    width: min(440px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.modalreg .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: transparent;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.modalreg .cap-yk {
    margin: 16px 0;
}

.modalreg .cap-yk-card {
    border-radius: 16px;
}

.modalreg .cap-yk-balance,
.modalreg .cap-yk-balance-guest {
    display: none !important;
}

@media (max-width: 960px) {
    .custom-chatgpt-app {
        min-height: auto;
    }

    .custom-chatgpt-sidebar {
        max-height: 50vh;
    }
}


