.composer-loading-controls { display: none; }

:is(#workspace, #reviewComposerPortal) #chatComposer.composer-reference-pending {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: min(100%, 760px);
    height: 104px;
    min-height: 104px;
    padding: 0;
    overflow: visible;
    border: 1px solid #e1e4e9;
    border-radius: 26px;
    background: #f3f4f6;
    box-shadow: none;
}
:is(#workspace, #reviewComposerPortal) #chatComposer.composer-reference-pending > .composer-input-wrap {
    display: block;
    position: absolute;
    left: 13px;
    right: 13px;
    top: 19px;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
}
:is(#workspace, #reviewComposerPortal) #chatComposer.composer-reference-pending .math-editor {
    box-sizing: border-box;
    width: 100%;
    min-height: 23px;
    max-height: 40px;
    padding: 0 10px;
    overflow-y: auto;
    border: 0;
    background: transparent;
    outline: 0;
    font: 500 15px/1.5 'Plus Jakarta Sans', system-ui, sans-serif;
}
:is(#workspace, #reviewComposerPortal) #chatComposer.composer-reference-pending > :is(.composer-tool-button, .send-button) { visibility: hidden; }
:is(#workspace, #reviewComposerPortal) #chatComposer.composer-reference-pending .composer-expand-button { display: none; }
:is(#workspace, #reviewComposerPortal) #chatComposer.composer-reference-pending > .composer-loading-controls {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    color: #5b6371;
    pointer-events: none;
}
.composer-loading-controls span { display: inline-flex; align-items: center; justify-content: center; height: 40px; }
.composer-loading-math, .composer-loading-voice { width: 40px; }
.composer-loading-mode { gap: 6px; padding: 0 12px; font: 500 15px 'Plus Jakarta Sans', system-ui, sans-serif; color: #4b5362; }
.composer-loading-spacer { flex: 1; }
.composer-loading-controls svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.composer-loading-mode svg { width: 16px; height: 16px; }
.composer-loading-send { width: 56px; border-radius: 999px; background: #1cb0f6; color: #fff; opacity: .48; }
.composer-loading-send svg { width: 20px; height: 20px; }

#chatComposer.composer-reference-host,
#workspace #chatComposer.composer-reference-host,
.syllabus-page .composer.syllabus-reference-host {
    display: block !important;
    position: relative;
    width: min(100%, 760px) !important;
    min-width: 0;
    height: var(--composer-box-height, 104px) !important;
    min-height: var(--composer-box-height, 104px) !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 0 !important;
}

#chatComposer.composer-reference-host:focus-within,
#workspace #chatComposer.composer-reference-host:focus-within,
.syllabus-page .composer.syllabus-reference-host:focus-within {
    border: 0 !important;
    box-shadow: none !important;
}

#chatComposer.composer-reference-host > :not(.composer-reference-frame):not(.composer-input-wrap):not(.math-palette),
#workspace #chatComposer.composer-reference-host > :not(.composer-reference-frame):not(.composer-input-wrap):not(.math-palette),
.syllabus-page .composer.syllabus-reference-host > :not(.composer-reference-frame):not(.composer-input-wrap):not(.math-palette),
.syllabus-topic-chat .notebook-input-row.composer-reference-host > :not(.composer-reference-frame):not(.composer-input-wrap):not(.math-palette) {
    display: none !important;
}

#chatComposer.composer-reference-host > .composer-input-wrap,
#workspace #chatComposer.composer-reference-host > .composer-input-wrap,
.syllabus-page .composer-reference-host > .composer-input-wrap,
.syllabus-topic-chat .notebook-input-row.composer-reference-host > .composer-input-wrap {
    display: block !important;
    position: absolute !important;
    z-index: 25;
    left: 13px !important;
    right: 13px !important;
    top: 20px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: auto;
}

#chatComposer.composer-reference-host .math-editor,
.composer.syllabus-reference-host .math-editor,
.notebook-input-row.composer-reference-host .math-editor {
    display: block !important;
    width: 100% !important;
    min-height: 23px !important;
    max-height: 120px !important;
    padding: 0 10px !important;
    overflow-y: auto;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #1d2129 !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    outline: 0 !important;
    box-shadow: none !important;
    white-space: pre-wrap;
}

#chatComposer.composer-reference-host .composer-expand-button,
.composer.syllabus-reference-host .composer-expand-button,
.notebook-input-row.composer-reference-host .composer-expand-button {
    display: none !important;
}

#chatComposer.composer-reference-host > .math-palette,
.syllabus-page .composer-reference-host > .math-palette,
.syllabus-topic-chat .notebook-input-row.composer-reference-host > .math-palette {
    z-index: 40 !important;
}

.syllabus-topic-chat .notebook-input-row.composer-reference-host {
    display: block !important;
    position: relative;
    width: 100%;
    min-width: 0;
    height: var(--composer-box-height, 104px) !important;
    min-height: var(--composer-box-height, 104px) !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#chatComposer.composer-reference-host > .composer-reference-frame,
#workspace #chatComposer.composer-reference-host > .composer-reference-frame,
.syllabus-page .composer-reference-host > .composer-reference-frame,
.syllabus-topic-chat .notebook-input-row.composer-reference-host > .composer-reference-frame {
    display: block !important;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    width: 100%;
    height: 104px;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    vertical-align: top;
    color-scheme: light;
}

@media (max-width: 520px) {
    #chatComposer.composer-reference-host > .composer-reference-frame,
    #workspace #chatComposer.composer-reference-host > .composer-reference-frame,
    .syllabus-page .composer-reference-host > .composer-reference-frame,
    .syllabus-topic-chat .notebook-input-row.composer-reference-host > .composer-reference-frame {
        border-radius: 0;
    }
}
