/* Fanxing AI main creation workspace — reference-aligned structure */

/* Top actions: primary new-chat action, quiet history action, utility menu. */
body.chat-shell .top-left-console {
    top: 16px;
    right: 72px;
    left: auto;
    padding: 0;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.chat-shell .top-left-console:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

body.chat-shell .console-btn {
    width: auto;
    min-width: 92px;
    height: 36px;
    padding: 0 13px;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 9px;
    color: rgba(238, 236, 249, 0.72);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    overflow: visible;
    background: rgba(23, 24, 32, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 8px 22px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.chat-shell .console-btn svg {
    flex: 0 0 auto;
}

body.chat-shell .console-btn-primary {
    color: #fbfaff;
    border-color: rgba(169, 155, 255, 0.42);
    background: linear-gradient(135deg, #8171ff 0%, #6556db 62%, #466bbf 130%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 22px rgba(83, 65, 205, 0.27);
}

body.chat-shell #consoleNewChatBtn:hover {
    color: #ffffff;
    border-color: rgba(188, 178, 255, 0.58);
    background: linear-gradient(135deg, #9284ff 0%, #7464e9 62%, #5078c9 130%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.23), 0 10px 26px rgba(89, 69, 218, 0.34);
    transform: translateY(-1px);
}

body.chat-shell #consoleNewChatBtn:hover svg {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    transform: none;
}

body.chat-shell #consoleHistoryBtn:hover {
    color: #f7f5ff;
    border-color: rgba(139, 125, 235, 0.24);
    background: rgba(31, 31, 43, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

body.chat-shell #consoleHistoryBtn:hover svg {
    filter: none;
    transform: none;
}

body.chat-shell .top-action-wrapper {
    top: 16px;
    right: 20px;
}

body.chat-shell .top-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

/* Keep real conversation content clear of the floating action row. */
body.chat-shell .messages-container:not(:has(.model-info-screen)) {
    padding-top: 72px;
}

/* Empty model workspace: top-anchored like a professional generation canvas. */
body.chat-shell .model-info-screen {
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 24px 32px;
}

body.chat-shell .model-info-content {
    width: 100%;
    max-width: 700px;
    position: relative;
    text-align: center;
}

body.chat-shell .model-info-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -43px;
    left: 50%;
    width: 230px;
    height: 165px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(119, 102, 255, 0.17) 0%, rgba(80, 131, 222, 0.075) 42%, transparent 72%);
    filter: blur(13px);
    transform: translateX(-50%);
    pointer-events: none;
}

body.chat-shell .model-info-icon {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 8px 25px rgba(137, 121, 255, 0.16));
}

body.chat-shell .model-info-icon.is-openai-white {
    filter: brightness(0) invert(1) drop-shadow(0 8px 25px rgba(137, 121, 255, 0.17));
}

body.chat-shell .model-info-name {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.035em;
    background: linear-gradient(105deg, #ffffff 14%, #c8c1ff 55%, #78cfff 104%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 28px rgba(117, 101, 235, 0.12);
}

body.chat-shell .model-info-desc {
    width: min(100%, 640px);
    margin: 0 auto;
    color: rgba(201, 199, 218, 0.66);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

body.chat-shell .model-info-caps {
    display: none;
}

body.chat-shell.theme-light .console-btn-secondary {
    color: rgba(42, 38, 65, 0.66);
    border-color: rgba(50, 44, 86, 0.1);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 22px rgba(46, 36, 93, 0.06);
}

body.chat-shell.theme-light .console-btn-primary {
    color: #ffffff !important;
}

body.chat-shell.theme-light #consoleHistoryBtn:hover {
    color: #43388a;
    border-color: rgba(100, 84, 211, 0.2);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(63, 49, 128, 0.1);
}

body.chat-shell.theme-light .model-info-content::before {
    background: radial-gradient(circle, rgba(108, 91, 225, 0.1) 0%, rgba(87, 153, 220, 0.04) 44%, transparent 72%);
}

body.chat-shell.theme-light .model-info-icon {
    filter: drop-shadow(0 9px 24px rgba(51, 43, 94, 0.11));
}

body.chat-shell.theme-light .model-info-icon.is-openai-white {
    filter: none;
}

body.chat-shell.theme-light .model-info-name {
    color: #211e35 !important;
    background: linear-gradient(105deg, #201d32 12%, #55469f 58%, #3479a5 110%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

body.chat-shell.theme-light .model-info-desc {
    color: rgba(44, 40, 67, 0.58) !important;
}

@media (max-width: 720px) {
    body.chat-shell .top-left-console {
        top: 12px;
        right: auto;
        left: 58px;
        gap: 6px;
    }

    body.chat-shell .console-btn {
        width: 36px;
        min-width: 36px;
        padding: 0;
    }

    body.chat-shell .console-btn span {
        display: none;
    }

    body.chat-shell .top-action-wrapper {
        top: 12px;
        right: 12px;
    }

    body.chat-shell .model-info-screen {
        padding: 34px 10px 28px;
    }

    body.chat-shell .messages-container:not(:has(.model-info-screen)) {
        padding-top: 64px;
    }

    body.chat-shell .model-info-icon {
        width: 78px;
        height: 78px;
        margin-bottom: 16px;
    }

    body.chat-shell .model-info-name {
        font-size: 26px;
    }

    body.chat-shell .model-info-desc {
        font-size: 13px;
        line-height: 1.6;
    }
}
