/* =========================================================
   css/documents.css — Premium Documents UI v2
   Consistent spacing, branded icons, multi-file support
   ========================================================= */

/* === CSS Variables === */
:root {
    --docs-pad-x: 16px;
    --docs-item-gap: 14px;
    --docs-radius: 14px;
    --docs-radius-sm: 10px;
    --docs-stroke: rgba(15, 23, 42, 0.08);
    --docs-stroke-hover: rgba(15, 23, 42, 0.14);
    --docs-bg: #f9fafb;
    --docs-card-bg: rgba(255, 255, 255, 0.92);
    --docs-blue: #2563eb;
    --docs-blue-light: rgba(59, 130, 246, 0.06);
    --docs-blue-border: rgba(59, 130, 246, 0.2);
    --docs-green: #059669;
    --docs-red: #dc2626;
    --docs-red-light: rgba(220, 38, 38, 0.08);
    --docs-transition: 0.18s ease;
    --docs-top-offset: 0px;
    --docs-tg-overlay-offset: 0px;
    --docs-toolbar-border: rgba(148, 163, 184, 0.28);
    --docs-toolbar-bg: rgba(255, 255, 255, 0.92);
}

/* === Layout === */
#documents-container {
    background: linear-gradient(180deg, #fbfdff 0%, #f4f7fc 42%, #f9fafb 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: var(--docs-tg-overlay-offset);
}

/* === Toolbar === */
.docs-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(8px + var(--docs-top-offset)) 10px 8px;
    margin: 8px var(--docs-pad-x) 10px;
    background: linear-gradient(140deg, var(--docs-toolbar-bg), rgba(248, 250, 252, 0.92));
    backdrop-filter: blur(20px) saturate(1.08);
    -webkit-backdrop-filter: blur(20px) saturate(1.08);
    border: 1px solid var(--docs-toolbar-border);
    border-radius: 16px;
    position: sticky;
    top: 0;
    z-index: 12;
    min-height: calc(50px + var(--docs-top-offset));
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 10px 24px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.docs-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(148, 163, 184, 0.26);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: all var(--docs-transition);
    flex-shrink: 0;
}

.docs-back-btn:hover {
    background: #ffffff;
    border-color: rgba(59, 130, 246, 0.28);
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.14);
}

.docs-back-btn:active {
    transform: scale(0.96);
}

/* Toolbar actions */
.docs-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.docs-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all var(--docs-transition);
    padding: 0;
}

.docs-action-btn:hover {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(59, 130, 246, 0.24);
    color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
}

.docs-action-btn:active {
    transform: scale(0.96);
}

.docs-action-btn--primary {
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.95), rgba(219, 234, 254, 0.86));
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.32);
}

.docs-action-btn--primary:hover {
    background: linear-gradient(145deg, rgba(219, 234, 254, 0.95), rgba(191, 219, 254, 0.9));
}

.docs-action-btn--active {
    background: var(--docs-blue-light);
    color: var(--docs-blue);
    border-color: var(--docs-blue-border);
}

.docs-action-btn--danger {
    color: #b91c1c;
    background: linear-gradient(145deg, rgba(254, 242, 242, 0.95), rgba(254, 226, 226, 0.9));
    border-color: rgba(220, 38, 38, 0.28);
}

.docs-action-btn--danger:hover {
    color: #991b1b;
    background: linear-gradient(145deg, rgba(254, 226, 226, 0.96), rgba(254, 202, 202, 0.92));
    border-color: rgba(220, 38, 38, 0.36);
}

/* === Provider Tabs === */
.docs-provider-tabs {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: -2px var(--docs-pad-x) 10px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.docs-provider-tab {
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--docs-transition);
}

.docs-provider-tab:hover {
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.58);
}

.docs-provider-tab.is-active {
    color: #0f172a;
    background: #ffffff;
    border-color: rgba(59, 130, 246, 0.22);
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

.docs-provider-mcp .docs-breadcrumbs,
.docs-provider-mcp .docs-toolbar-actions {
    display: none;
}

.docs-provider-mcp .docs-toolbar {
    display: none;
}

.docs-provider-mcp .docs-back-btn {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    color: #cccccc;
    background: #252526;
    border-color: #3c3c3c;
    box-shadow: none;
}

.docs-provider-mcp .docs-back-btn:hover {
    color: #ffffff;
    background: #2a2d2e;
    border-color: #4b5563;
    transform: none;
    box-shadow: none;
}

#documents-container.docs-provider-mcp {
    --docs-mcp-bg: #171a1f;
    --docs-mcp-surface: #1b2027;
    --docs-mcp-surface-soft: #202631;
    --docs-mcp-surface-raised: #242b36;
    --docs-mcp-line: rgba(226, 232, 240, 0.10);
    --docs-mcp-line-strong: rgba(148, 163, 184, 0.18);
    --docs-mcp-text: #d7dde6;
    --docs-mcp-muted: #8b95a4;
    --docs-mcp-accent: #7dd3fc;
    --docs-mcp-accent-soft: rgba(125, 211, 252, 0.10);
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    min-height: 0;
    background: linear-gradient(180deg, #181c22 0%, var(--docs-mcp-bg) 100%);
    overflow: hidden;
}

#documents-container.docs-provider-mcp .docs-file-list {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: var(--docs-mcp-bg);
}

#documents-container.docs-provider-mcp .docs-file-list > .docs-loading {
    min-height: 100%;
    height: 100%;
    display: grid !important;
    place-items: center;
    align-content: center;
    justify-content: center;
    gap: 12px;
    padding: 0 !important;
    text-align: center;
}

body.docs-mode-active #chat-modes-bar,
body.docs-mode-active #chat-modes-bar .modes-container {
    display: none !important;
}

body.docs-mode-active #documents-container {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding-top: 0 !important;
}

body.docs-mode-active #documents-container .docs-file-list {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.docs-mode-active #documents-container .docs-toolbar,
body.docs-mode-active #documents-container .docs-provider-tabs,
body.docs-mode-active #documents-container .docs-breadcrumbs,
body.docs-mode-active #documents-container .docs-toolbar-actions {
    display: none !important;
}

body.docs-mode-active #chat-area {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #171a1f !important;
}

body.docs-mode-active #chat-area > :not(#app-bar) {
    display: none !important;
}

#documents-container.docs-provider-mcp .docs-mcp-shell--ide {
    height: 100%;
    min-height: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-shell--ide,
#documents-container.docs-provider-mcp .docs-mcp-explorer,
#documents-container.docs-provider-mcp .docs-mcp-explorer__head,
#documents-container.docs-provider-mcp .docs-mcp-explorer__path,
#documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex,
#documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex .docs-mcp-messages,
#documents-container.docs-provider-mcp .docs-mcp-chat-toolbar,
#documents-container.docs-provider-mcp .docs-mcp-editor,
#documents-container.docs-provider-mcp .docs-mcp-editor__tabbar {
    background: var(--docs-mcp-surface);
    border-color: var(--docs-mcp-line);
    box-shadow: none;
}

#documents-container.docs-provider-mcp .docs-mcp-chat-panel,
#documents-container.docs-provider-mcp .docs-mcp-file,
#documents-container.docs-provider-mcp .docs-mcp-message {
    border-color: transparent;
}

#app-bar #menu-btn.docs-appbar-back {
    background: transparent;
    border-color: transparent;
}

@media (min-width: 769px) {
    body.docs-mode-active #app-bar {
        width: calc(100% - 24px) !important;
        max-width: 1500px !important;
    }

    body.docs-mode-active #app-bar #menu-btn.docs-appbar-back {
        margin-left: 0 !important;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    body.docs-mode-active #app-bar {
        width: calc(100% - 16px) !important;
        max-width: none !important;
    }
}

@media (max-width: 768px) {
    body.docs-mode-active #app-bar #menu-btn.docs-appbar-back {
        margin-left: -2px !important;
    }
}

/* Projects app bar: compact controls replace the in-chat toolbar. */
body.docs-mode-active #app-bar.docs-mcp-appbar-active {
    position: relative;
    z-index: 180;
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 8px 12px !important;
    overflow: visible;
}

body.docs-mode-active #app-bar.docs-mcp-appbar-active #menu-btn.docs-appbar-back {
    width: 32px !important;
    min-width: 32px;
    height: 32px !important;
    margin: 0 !important;
    justify-self: start;
}

body.docs-mode-active #app-bar.docs-mcp-appbar-active #title-dialog {
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    overflow: hidden;
    font-size: 15px;
    font-weight: 680;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.docs-mode-active #app-bar.docs-mcp-appbar-active #exit-btn {
    display: none !important;
}

.docs-mcp-appbar-actions {
    position: relative;
    width: 32px;
    height: 32px;
    justify-self: end;
    color: #d7dde6;
}

.docs-mcp-appbar-menu__trigger {
    width: 32px;
    min-width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    color: inherit;
    cursor: pointer;
    transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.docs-mcp-appbar-menu__trigger .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

.docs-mcp-appbar-menu__trigger:hover,
.docs-mcp-appbar-menu__trigger:focus-visible,
.docs-mcp-appbar-actions.is-open .docs-mcp-appbar-menu__trigger {
    border-color: rgba(125, 211, 252, 0.34);
    background: rgba(125, 211, 252, 0.11);
    color: #f3f4f6;
    outline: none;
}

.docs-mcp-appbar-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 190;
    width: min(238px, calc(100vw - 24px));
    display: none;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 8px;
    background: #20242a;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.docs-mcp-appbar-actions.is-open .docs-mcp-appbar-menu {
    display: grid;
    gap: 2px;
}

.docs-mcp-appbar-menu__item {
    position: relative;
    width: 100%;
    min-height: 38px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #d7dde6;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-align: left;
    cursor: pointer;
}

.docs-mcp-appbar-menu__item:hover,
.docs-mcp-appbar-menu__item:focus-visible {
    background: rgba(148, 163, 184, 0.11);
    color: #ffffff;
    outline: none;
}

.docs-mcp-appbar-menu__item.is-active {
    background: rgba(125, 211, 252, 0.10);
    color: #c9f1ff;
}

.docs-mcp-appbar-menu__item:disabled {
    cursor: wait;
    opacity: 0.48;
}

.docs-mcp-appbar-menu__icon {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.09);
    color: #aeb7c2;
}

.docs-mcp-appbar-menu__icon .docs-mcp-icon-svg {
    width: 14px;
    height: 14px;
}

.docs-mcp-appbar-menu__item.is-active .docs-mcp-appbar-menu__icon {
    background: rgba(125, 211, 252, 0.12);
    color: #7dd3fc;
}

.docs-mcp-appbar-menu__item > i {
    color: #7dd3fc;
    font-size: 12px;
    font-style: normal;
    text-align: center;
}

.docs-mcp-appbar-menu__separator {
    height: 1px;
    margin: 5px 6px;
    background: rgba(148, 163, 184, 0.16);
}

.docs-mcp-appbar-menu__status {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1px 2px 5px;
    padding: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    color: #aeb7c2;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.35;
}

.docs-mcp-appbar-menu__status > i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.10);
    animation: docs-mcp-live-dot 1.5s ease-in-out infinite;
}

html:not(.app-theme-dark):not(.dark) .docs-mcp-appbar-actions {
    color: #334155;
}

html:not(.app-theme-dark):not(.dark) .docs-mcp-appbar-menu__trigger {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.78);
}

html:not(.app-theme-dark):not(.dark) .docs-mcp-appbar-menu__trigger:hover,
html:not(.app-theme-dark):not(.dark) .docs-mcp-appbar-menu__trigger:focus-visible,
html:not(.app-theme-dark):not(.dark) .docs-mcp-appbar-actions.is-open .docs-mcp-appbar-menu__trigger {
    border-color: rgba(37, 99, 235, 0.28);
    background: #ffffff;
    color: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) .docs-mcp-appbar-menu {
    border-color: rgba(148, 163, 184, 0.30);
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

html:not(.app-theme-dark):not(.dark) .docs-mcp-appbar-menu__item {
    color: #334155;
}

html:not(.app-theme-dark):not(.dark) .docs-mcp-appbar-menu__item:hover,
html:not(.app-theme-dark):not(.dark) .docs-mcp-appbar-menu__item:focus-visible {
    background: rgba(15, 23, 42, 0.055);
    color: #0f172a;
}

html:not(.app-theme-dark):not(.dark) .docs-mcp-appbar-menu__item.is-active {
    background: #eaf1ff;
    color: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) .docs-mcp-appbar-menu__icon {
    background: #f1f5f9;
    color: #64748b;
}

html:not(.app-theme-dark):not(.dark) .docs-mcp-appbar-menu__status {
    border-bottom-color: rgba(148, 163, 184, 0.22);
    color: #64748b;
}

@media (max-width: 768px) {
    body.docs-mode-active #app-bar.docs-mcp-appbar-active {
        min-height: 48px;
        padding: 6px 10px !important;
    }

    .docs-mcp-appbar-menu {
        top: calc(100% + 6px);
        right: -2px;
    }
}

/* Per-file upload progress. */
#documents-container .docs-upload-flow__item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    grid-template-rows: auto 3px auto;
    align-items: center;
    column-gap: 9px;
    row-gap: 7px;
}

#documents-container .docs-upload-flow__dot {
    grid-column: 1;
    grid-row: 1;
}

#documents-container .docs-upload-flow__item-main {
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

#documents-container .docs-upload-flow__name {
    min-width: 0;
}

#documents-container .docs-upload-flow__state {
    flex: 0 0 auto;
    color: currentColor;
    letter-spacing: 0;
    text-transform: none;
}

#documents-container .docs-upload-flow__bytes {
    grid-column: 3;
    grid-row: 1;
    color: #64748b;
    font-size: 10px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#documents-container .docs-upload-flow__item-bar {
    min-width: 0;
    height: 3px;
    grid-column: 2 / 4;
    grid-row: 2;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(148, 163, 184, 0.20);
}

#documents-container .docs-upload-flow__item-bar > span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: #2563eb;
    transition: width 120ms linear;
}

#documents-container .docs-upload-flow__error {
    min-width: 0;
    grid-column: 2 / 4;
    grid-row: 3;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

#documents-container .docs-upload-flow__error[hidden] {
    display: none;
}

#documents-container .docs-upload-flow__item.is-success .docs-upload-flow__item-bar > span {
    background: #059669;
}

#documents-container .docs-upload-flow__item.is-error .docs-upload-flow__item-bar > span {
    background: #dc2626;
}

#documents-container .docs-upload-flow__item.is-canceled {
    background: rgba(100, 116, 139, 0.08);
    color: #64748b;
}

#documents-container .docs-upload-flow__item.is-canceled .docs-upload-flow__dot,
#documents-container .docs-upload-flow__item.is-canceled .docs-upload-flow__item-bar > span {
    background: #64748b;
}

html:is(html.app-theme-dark, html.dark) #documents-container .docs-upload-flow__card {
    border-color: rgba(255, 255, 255, 0.14);
    background: #202124;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

html:is(html.app-theme-dark, html.dark) #documents-container .docs-upload-flow__head {
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

html:is(html.app-theme-dark, html.dark) #documents-container .docs-upload-flow__error {
    color: #fca5a5;
}

html:is(html.app-theme-dark, html.dark) #documents-container .docs-upload-flow__title,
html:is(html.app-theme-dark, html.dark) #documents-container .docs-upload-flow__meter-label {
    color: #f5f5f5;
}

html:is(html.app-theme-dark, html.dark) #documents-container .docs-upload-flow__subtitle,
html:is(html.app-theme-dark, html.dark) #documents-container .docs-upload-flow__meter-value,
html:is(html.app-theme-dark, html.dark) #documents-container .docs-upload-flow__meta,
html:is(html.app-theme-dark, html.dark) #documents-container .docs-upload-flow__bytes {
    color: #a3a3a3;
}

html:is(html.app-theme-dark, html.dark) #documents-container .docs-upload-flow__close,
html:is(html.app-theme-dark, html.dark) #documents-container .docs-upload-flow__cancel {
    border-color: rgba(255, 255, 255, 0.14);
    background: #292a2d;
    color: #d4d4d4;
}

html:is(html.app-theme-dark, html.dark) #documents-container .docs-upload-flow__bar,
html:is(html.app-theme-dark, html.dark) #documents-container .docs-upload-flow__item-bar {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 520px) {
    #documents-container .docs-upload-flow__item {
        grid-template-columns: 8px minmax(0, 1fr);
    }

    #documents-container .docs-upload-flow__bytes {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    #documents-container .docs-upload-flow__item-bar {
        grid-column: 2;
        grid-row: 3;
    }
}

/* === Breadcrumbs === */
.docs-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    min-width: 0;
    flex: 1;
    scrollbar-width: none;
    padding: 2px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(248, 250, 252, 0.92);
    min-height: 38px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.docs-breadcrumbs::-webkit-scrollbar {
    display: none;
}

.breadcrumb-item {
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 9px;
    font-size: 12px;
    white-space: nowrap;
    transition: all var(--docs-transition);
    color: #1e40af;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.01em;
}

.breadcrumb-item:not(:disabled):hover {
    background: rgba(219, 234, 254, 0.75);
    border-color: rgba(59, 130, 246, 0.28);
}

.breadcrumb-item--active,
.breadcrumb-item:disabled {
    cursor: default;
    color: #0f172a;
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.breadcrumb-sep {
    flex-shrink: 0;
    opacity: 0.5;
}

/* === File List === */
.docs-file-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px var(--docs-pad-x) 24px;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

.docs-file-list--loading {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    padding: 0;
}

#documents-container .docs-file-list--loading .docs-loading-state {
    height: 100%;
    min-height: 100%;
    margin: 0;
    border-radius: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.docs-file-list--mcp-refresh {
    background: #f5f7fb;
}

.docs-file-list--mcp-refresh.docs-file-list--loading {
    display: grid;
    place-items: center;
    align-content: center;
    justify-content: center;
    padding: 18px;
}

#documents-container .docs-file-list--mcp-refresh.docs-file-list--loading .docs-loading-state {
    width: min(276px, calc(100% - 4px));
    max-width: 276px;
    height: auto;
    min-height: 116px;
    flex: 0 0 auto;
    margin: auto;
    padding: 22px 18px 20px;
    border-radius: 18px;
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.docs-file-list--mcp-refresh .docs-loading-text {
    color: #475569;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-file-list--mcp-refresh {
    background: var(--docs-mcp-bg, #f5f7fb);
}

html:is(html.app-theme-dark, html.dark) #documents-container.docs-provider-mcp .docs-file-list--mcp-refresh {
    background: var(--app-bg, #212121) !important;
}

html:is(html.app-theme-dark, html.dark) #documents-container.docs-provider-mcp .docs-file-list--mcp-refresh.docs-file-list--loading .docs-loading-state {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(27, 32, 39, 0.92) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html:is(html.app-theme-dark, html.dark) #documents-container.docs-provider-mcp .docs-file-list--mcp-refresh .docs-loading-text {
    color: #cbd5e1 !important;
}

.docs-file-list::-webkit-scrollbar {
    width: 5px;
}

.docs-file-list::-webkit-scrollbar-track {
    background: transparent;
}

.docs-file-list::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}

/* === File Items === */
.docs-item {
    display: flex;
    align-items: center;
    gap: var(--docs-item-gap);
    padding: 10px 12px;
    padding-left: var(--docs-pad-x);
    border-radius: var(--docs-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--docs-transition);
    position: relative;
    margin-bottom: 2px;
}

.docs-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--docs-stroke);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.docs-item:active {
    transform: scale(0.998);
}

/* Selected state (checkbox) */
.docs-item.docs-selected {
    background: var(--docs-blue-light);
    border-color: var(--docs-blue-border);
}

/* Active file (for AI panel) */
.docs-item.docs-active-file {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
}

/* Selection column — consistent left alignment */
.docs-item-select {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.docs-item-select-spacer {
    width: 20px;
}

/* Item icon container */
.docs-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.docs-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--docs-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.02);
    transition: transform var(--docs-transition);
}

.docs-item:hover .docs-icon-wrap {
    transform: scale(1.04);
}

/* Item info */
.docs-item-info {
    flex: 1;
    min-width: 0;
}

.docs-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.docs-item-meta {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    font-weight: 400;
}

/* Context action buttons */
.docs-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

.docs-item:hover .docs-item-actions,
.docs-item.docs-active-file .docs-item-actions {
    opacity: 1;
}

.docs-ctx-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.2);
    cursor: pointer;
    transition: all 0.12s;
    padding: 0;
    color: #6b7280;
}

.docs-ctx-btn:hover {
    background: rgba(255, 255, 255, 0.98);
    color: #1e3a8a;
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow: 0 8px 14px rgba(37, 99, 235, 0.12);
}

.docs-ctx-btn--more {
    color: #334155;
}

.docs-ctx-btn--more:hover {
    color: #1d4ed8;
}

/* Checkbox */
.docs-select-checkbox {
    accent-color: #3b82f6;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    transition: opacity 0.15s;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0;
}

.docs-item:hover .docs-select-checkbox,
.docs-select-checkbox.checked-visible,
.docs-select-checkbox:checked {
    opacity: 1;
}

/* Processing shimmer */
.docs-item.docs-processing {
    opacity: 0.6;
    pointer-events: none;
}

.docs-item.docs-processing::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--docs-radius);
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.06), transparent);
    animation: docs-shimmer 1.5s infinite;
}

@keyframes docs-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* === Loading === */
.docs-loading-state {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: clamp(180px, 34vh, 300px);
    padding: 26px 18px 24px;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.docs-loading-state::before {
    display: none;
    content: none;
}

.docs-loading-state::after {
    display: none;
    content: none;
}

.docs-loading-state > .docs-loading-spinner {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(148, 163, 184, 0.24);
    border-top-color: #2563eb;
    border-right-color: rgba(56, 189, 248, 0.52);
    box-shadow: none;
    animation-duration: 0.82s;
}

.docs-loading-state > .docs-loading-text {
    margin-top: 0;
    max-width: 280px;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.01em;
    line-height: 1.35;
    color: #334155;
}

html:is(html.app-theme-dark, html.dark) #documents-container .docs-loading-state {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: linear-gradient(180deg, rgba(39, 39, 42, 0.94), rgba(24, 24, 27, 0.96)) !important;
    box-shadow: none !important;
}

html:is(html.app-theme-dark, html.dark) #documents-container .docs-loading-state::before {
    display: none !important;
    content: none !important;
}

html:is(html.app-theme-dark, html.dark) #documents-container .docs-loading-state::after {
    display: none !important;
    content: none !important;
}

html:is(html.app-theme-dark, html.dark) #documents-container .docs-loading-state > .docs-loading-spinner {
    border-color: rgba(255, 255, 255, 0.14) !important;
    border-top-color: #38bdf8 !important;
    border-right-color: rgba(147, 197, 253, 0.6) !important;
}

html:is(html.app-theme-dark, html.dark) #documents-container .docs-loading-state > .docs-loading-text {
    color: #dbeafe !important;
}

.docs-loading-spinner {
    width: 32px;
    height: 32px;
    border: 2.5px solid #e5e7eb;
    border-top-color: var(--docs-blue);
    border-radius: 50%;
    animation: docs-spin 0.7s linear infinite;
}

.docs-loading-spinner--sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
    flex-shrink: 0;
}

.docs-loading-spinner--lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

@keyframes docs-spin {
    to { transform: rotate(360deg); }
}

.docs-loading-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 12px;
}

/* === Preview Overlay === */
.docs-preview-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding-top: var(--docs-tg-overlay-offset);
    animation: docs-preview-in 0.25s ease;
}

.docs-preview-overlay.hidden {
    display: none !important;
}

@keyframes docs-preview-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Preview header */
.docs-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(10px + var(--docs-top-offset)) var(--docs-pad-x) 10px;
    border-bottom: 1px solid var(--docs-stroke);
    background: var(--docs-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
    min-height: calc(52px + var(--docs-top-offset));
}

.docs-preview-close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--docs-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--docs-stroke);
    cursor: pointer;
    transition: all var(--docs-transition);
    flex-shrink: 0;
}

.docs-preview-close-btn:hover {
    background: #f3f4f6;
    border-color: var(--docs-stroke-hover);
}

.docs-preview-close-btn:active {
    transform: scale(0.95);
}

.docs-preview-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docs-preview-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Preview body */
.docs-preview-body {
    flex: 1;
    overflow: auto;
    position: relative;
    background: #fafbfc;
}

.docs-preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    height: 100%;
}

.docs-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #e5e7eb;
}

.docs-preview-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 16px;
    box-sizing: border-box;
    overflow: auto;
    background: #f8f9fa;
}

.docs-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.docs-preview-media-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 32px 20px;
    gap: 16px;
}

.docs-preview-video {
    max-width: 100%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.docs-preview-audio-icon {
    margin-bottom: 8px;
}

.docs-preview-audio {
    width: 100%;
    max-width: 400px;
}

.docs-preview-text {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'SF Mono', 'Fira Code', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #1f2937;
    padding: 24px var(--docs-pad-x);
    margin: 0;
    background: white;
    min-height: 100%;
    tab-size: 4;
}

/* Unsupported preview */
.docs-preview-unsupported {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    gap: 12px;
    height: 100%;
}

.docs-preview-unsupported-icon {
    font-size: 48px;
    opacity: 0.6;
}

.docs-preview-unsupported-text {
    font-size: 14px;
    color: #6b7280;
    max-width: 300px;
    line-height: 1.5;
}

.docs-preview-download-btn {
    margin-top: 8px;
    padding: 10px 24px;
    border-radius: var(--docs-radius-sm);
    background: var(--docs-blue);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--docs-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.docs-preview-download-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

html:is(.app-theme-dark, .dark) .docs-preview-overlay {
    background: #111317;
}

html:is(.app-theme-dark, .dark) .docs-preview-header {
    border-bottom-color: #30343b;
    background: #191c21;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html:is(.app-theme-dark, .dark) .docs-preview-title {
    color: #f3f4f6;
}

html:is(.app-theme-dark, .dark) .docs-preview-close-btn,
html:is(.app-theme-dark, .dark) .docs-preview-actions .docs-action-btn:not(.docs-action-btn--primary) {
    border-color: #343940;
    background: #23272d;
    color: #d8dde5;
}

html:is(.app-theme-dark, .dark) .docs-preview-close-btn:hover,
html:is(.app-theme-dark, .dark) .docs-preview-actions .docs-action-btn:not(.docs-action-btn--primary):hover {
    border-color: #4b515b;
    background: #2c3138;
}

html:is(.app-theme-dark, .dark) .docs-preview-body,
html:is(.app-theme-dark, .dark) .docs-preview-image-wrap {
    background: #0e1013;
}

html:is(.app-theme-dark, .dark) .docs-preview-iframe {
    background: #2b2d31;
}

html:is(.app-theme-dark, .dark) .docs-preview-loading .docs-loading-text,
html:is(.app-theme-dark, .dark) .docs-preview-unsupported-text {
    color: #aeb5bf;
}

/* === AI Panel === */
.docs-ai-panel {
    border-top: 1px solid var(--docs-stroke);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px var(--docs-pad-x) calc(12px + env(safe-area-inset-bottom, 0px));
    animation: docs-slide-up 0.2s ease;
    box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.06);
}

.docs-ai-panel.hidden {
    display: none !important;
}

@keyframes docs-slide-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.docs-selected-file {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.docs-selected-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs-selected-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docs-selected-meta {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docs-deselect-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.12s;
    flex-shrink: 0;
}

.docs-deselect-btn:hover {
    color: var(--docs-red);
    background: rgba(239, 68, 68, 0.06);
}

/* AI Input */
.docs-ai-input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.docs-ai-textarea {
    flex: 1;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.5;
    resize: none;
    background: white;
    color: #1f2937;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.docs-ai-textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.docs-ai-textarea::placeholder {
    color: #9ca3af;
}

.docs-ai-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--docs-transition);
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.24);
}

.docs-ai-send-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    transform: scale(1.04);
}

.docs-ai-send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.docs-ai-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.docs-ai-library-btn {
    border: 1px solid rgba(59, 130, 246, 0.22);
    background: linear-gradient(130deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.96));
    color: #1d4ed8;
    border-radius: 12px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
    flex-shrink: 0;
}

.docs-ai-library-btn:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.docs-ai-library-btn__icon {
    font-size: 14px;
    line-height: 1;
}

.docs-ai-actions-hint {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.35;
}

.docs-media-transcribe-row {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.docs-media-transcribe-btn {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 12px;
    background: linear-gradient(140deg, #0f172a, #1e293b);
    color: #ffffff;
    height: 42px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}

.docs-media-transcribe-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.22);
}

.docs-media-transcribe-btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.docs-media-transcribe-hint {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #64748b;
}

/* Actions modal */
.docs-actions-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        calc(var(--docs-tg-overlay-offset) + env(safe-area-inset-top, 0px) + 10px)
        10px
        calc(env(safe-area-inset-bottom, 0px) + 10px);
}

.docs-actions-modal.hidden {
    display: none !important;
}

.docs-actions-modal__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.44), rgba(15, 23, 42, 0.34));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.docs-actions-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.97));
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.docs-actions-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    background:
        radial-gradient(90% 120% at 10% -50%, rgba(37, 99, 235, 0.14), transparent 60%),
        radial-gradient(80% 110% at 100% -40%, rgba(14, 165, 233, 0.1), transparent 62%),
        rgba(255, 255, 255, 0.88);
}

.docs-actions-modal__head-main {
    flex: 1;
    min-width: 0;
}

.docs-actions-modal__title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0;
}

.docs-actions-modal__subtitle {
    margin: 4px 0 0;
    font-size: 11px;
    line-height: 1.35;
    color: #64748b;
}

.docs-actions-modal__close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.docs-actions-modal__body {
    min-height: 0;
    overflow-y: auto;
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.docs-actions-tools {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    padding: 11px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(14, 165, 233, 0.08), transparent 60%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-output-settings {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
}

.docs-output-settings label {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
}

.docs-output-settings select {
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: #fff;
    padding: 0 10px;
    font-size: 12px;
    color: #0f172a;
}

.docs-output-settings select:focus {
    outline: none;
    border-color: rgba(14, 116, 144, 0.45);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
}

.docs-output-settings select option:disabled {
    color: #94a3b8;
}

.docs-output-settings__hint {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 10px;
    line-height: 1.35;
    color: #475569;
}

.docs-business-presets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-business-presets__title {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
}

.docs-business-presets__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.docs-business-preset {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.92));
    padding: 8px 9px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.docs-business-preset:hover {
    border-color: rgba(14, 116, 144, 0.36);
    box-shadow: 0 10px 22px rgba(14, 116, 144, 0.12);
    transform: translateY(-1px);
}

.docs-business-preset__name {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
}

.docs-business-preset__desc {
    font-size: 10px;
    line-height: 1.3;
    color: #64748b;
}

.docs-actions-legacy {
    display: none !important;
}

.docs-workflow-builder {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-workflow-panel {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    padding: 11px;
    background:
        radial-gradient(110% 120% at 100% -30%, rgba(14, 165, 233, 0.13), transparent 60%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.93));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.docs-workflow-panel__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 9px;
}

.docs-workflow-panel__title {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.docs-beta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.32);
    background: rgba(239, 246, 255, 0.9);
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    vertical-align: middle;
}

.docs-workflow-panel__hint {
    margin: 0;
    font-size: 10px;
    line-height: 1.4;
    color: #64748b;
}

.docs-workflow-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.docs-workflow-action-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 13px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    min-height: 56px;
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    cursor: pointer;
    color: #0f172a;
    transition: all 0.16s ease;
}

.docs-workflow-action-card:hover {
    border-color: rgba(14, 116, 144, 0.4);
    box-shadow: 0 10px 20px rgba(14, 116, 144, 0.12);
    transform: translateY(-1px);
}

.docs-workflow-action-card.is-selected {
    border-color: rgba(59, 130, 246, 0.48);
    background:
        radial-gradient(80% 140% at 90% -20%, rgba(56, 189, 248, 0.18), transparent 62%),
        linear-gradient(160deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.97));
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.12),
        0 10px 20px rgba(59, 130, 246, 0.12);
}

.docs-workflow-action-card__title {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.docs-workflow-action-card__desc {
    font-size: 10px;
    line-height: 1.32;
    color: #64748b;
}

.docs-workflow-checkbox {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #334155;
}

.docs-workflow-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #0f766e;
}

.docs-workflow-select {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.docs-workflow-select.hidden {
    display: none !important;
}

.docs-workflow-select label {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
}

.docs-workflow-select select {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    padding: 9px 11px;
    font-size: 12px;
    color: #0f172a;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.docs-workflow-select select:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.docs-workflow-select select:disabled {
    color: #94a3b8;
    background: rgba(248, 250, 252, 0.9);
}

.docs-workflow-note {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.35;
    color: #64748b;
}

.docs-template-slider {
    margin-top: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.docs-template-slider.hidden {
    display: none !important;
}

.docs-template-slider__head {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.docs-template-slider__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.docs-template-slider__title {
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
}

.docs-template-slider__subtitle {
    font-size: 10px;
    line-height: 1.35;
    color: #64748b;
}

#docs-workflow-builder .docs-template-slider[data-docs-template-disabled="1"] {
    display: none !important;
    pointer-events: none;
}

.docs-template-slider__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.docs-template-slider__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.docs-template-manage-btn {
    border: 1px solid rgba(14, 116, 144, 0.24);
    background: rgba(240, 249, 255, 0.9);
    color: #0f4c5c;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.16s ease;
}

.docs-template-manage-btn:hover {
    border-color: rgba(14, 116, 144, 0.45);
    transform: translateY(-1px);
}

.docs-template-manage-btn--ghost {
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.28);
}

.docs-template-tab {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    height: 28px;
    padding: 0 10px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}

.docs-template-tab:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

.docs-template-tab.is-active {
    color: #0c4a6e;
    border-color: rgba(14, 116, 144, 0.42);
    background: rgba(224, 242, 254, 0.8);
}

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

.docs-template-slider__track--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-template-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 11px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    padding: 8px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.docs-template-card--compact {
    min-height: 78px;
    justify-content: center;
    gap: 4px;
    padding: 10px;
}

.docs-template-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
}

.docs-template-card.is-selected {
    border-color: rgba(14, 116, 144, 0.42);
    background: linear-gradient(170deg, rgba(240, 249, 255, 0.95), rgba(255, 255, 255, 0.96));
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
}

.docs-template-card__title {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    text-align: left;
}

.docs-template-card__meta {
    font-size: 10px;
    line-height: 1.3;
    color: #64748b;
    text-align: left;
}

.docs-template-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    object-fit: cover;
    display: block;
    background: #e2e8f0;
}

.docs-template-card__caption {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    text-align: center;
}

.docs-workflow-mode-block.hidden {
    display: none !important;
}

.docs-template-status {
    margin-top: 4px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(248, 250, 252, 0.92);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-template-status.hidden {
    display: none !important;
}

.docs-template-status.is-success {
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(236, 253, 245, 0.92);
}

.docs-template-status.is-error {
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(254, 242, 242, 0.94);
}

.docs-template-status__head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #0f172a;
}

.docs-template-status__list {
    display: grid;
    gap: 6px;
}

.docs-template-status__item {
    display: grid;
    gap: 2px;
    border-radius: 10px;
    padding: 7px 8px;
    background: rgba(255, 255, 255, 0.75);
}

.docs-template-status__item.passed {
    border-left: 3px solid rgba(5, 150, 105, 0.75);
}

.docs-template-status__item.failed {
    border-left: 3px solid rgba(220, 38, 38, 0.72);
}

.docs-template-status__item.warning {
    border-left: 3px solid rgba(217, 119, 6, 0.72);
}

.docs-template-status__label {
    font-size: 10px;
    font-weight: 800;
    color: #0f172a;
}

.docs-template-status__detail {
    font-size: 10px;
    line-height: 1.35;
    color: #475569;
}

.docs-workflow-prompt {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.docs-workflow-prompt label {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.docs-workflow-prompt textarea {
    width: 100%;
    min-height: 72px;
    max-height: 180px;
    resize: vertical;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: #fff;
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #0f172a;
    font-family: inherit;
}

.docs-workflow-prompt textarea:focus {
    outline: none;
    border-color: rgba(14, 116, 144, 0.45);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
}

.docs-workflow-prompt textarea::placeholder {
    color: #94a3b8;
}

.docs-actions-group {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.92));
    padding: 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.docs-actions-group--presentation {
    border-color: rgba(59, 130, 246, 0.32);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(59, 130, 246, 0.14), transparent 58%),
        linear-gradient(145deg, rgba(239, 246, 255, 0.86), rgba(248, 250, 252, 0.9));
}

.docs-actions-group__title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.01em;
}

.docs-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.docs-action-docx-block {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-action-docx-block .docs-action-card {
    width: 100%;
}

.docs-action-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    min-height: 58px;
    padding: 10px 11px;
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    color: #1f2937;
    text-align: left;
    cursor: pointer;
    transition: all 0.16s ease;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.04);
}

.docs-action-card:hover {
    border-color: rgba(59, 130, 246, 0.38);
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.14);
    transform: translateY(-1px) scale(1.002);
}

.docs-action-card.is-selected {
    border-color: rgba(59, 130, 246, 0.46);
    background: linear-gradient(160deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.95));
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.13),
        0 10px 20px rgba(59, 130, 246, 0.12);
}

.docs-action-card__icon {
    font-size: 17px;
    line-height: 1;
    width: 22px;
    text-align: center;
    margin-top: 1px;
}

.docs-action-card__title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.docs-action-card__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.docs-action-card__desc {
    font-size: 10px;
    line-height: 1.35;
    color: #64748b;
    display: block;
}

.docs-action-card--featured {
    background:
        radial-gradient(90% 140% at 120% -20%, rgba(56, 189, 248, 0.18), transparent 58%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(239, 246, 255, 0.95));
    border-color: rgba(59, 130, 246, 0.32);
}

.docs-presentation-settings {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.24);
    background: rgba(255, 255, 255, 0.88);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-presentation-settings__title {
    font-size: 12px;
    font-weight: 700;
    color: #1e3a8a;
}

.docs-presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.docs-presentation-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.docs-presentation-field--wide {
    grid-column: 1 / -1;
}

.docs-presentation-field label {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.docs-presentation-field select {
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #fff;
    padding: 0 10px;
    font-size: 12px;
    color: #0f172a;
}

.docs-presentation-field textarea {
    width: 100%;
    min-height: 76px;
    max-height: 180px;
    resize: vertical;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #fff;
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #0f172a;
    font-family: inherit;
}

.docs-presentation-field textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.docs-presentation-field textarea::placeholder {
    color: #94a3b8;
}

.docs-presentation-field select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.docs-presentation-hint {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.3;
    color: #64748b;
}

.docs-presentation-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #334155;
}

.docs-docx-edit-settings {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(29, 78, 216, 0.2);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.7), rgba(255, 255, 255, 0.95));
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-docx-edit-settings label {
    font-size: 11px;
    font-weight: 700;
    color: #1d4ed8;
}

.docs-docx-edit-settings textarea {
    width: 100%;
    min-height: 74px;
    max-height: 140px;
    resize: vertical;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    padding: 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.95);
    font-family: inherit;
}

.docs-docx-edit-settings textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.docs-docx-edit-settings textarea::placeholder {
    color: #94a3b8;
}

.docs-docx-edit-hint {
    margin: 0;
    font-size: 10px;
    line-height: 1.35;
    color: #475569;
}

.docs-actions-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(248, 250, 252, 0.92);
}

.docs-action-footer-btn {
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
}

.docs-action-footer-btn--ghost {
    background: #fff;
    border-color: rgba(148, 163, 184, 0.24);
    color: #475569;
}

.docs-action-footer-btn--primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.docs-action-footer-btn--primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.docs-quick-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--docs-stroke);
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--docs-transition);
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.docs-quick-btn:hover {
    background: var(--docs-blue-light);
    border-color: var(--docs-blue-border);
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.docs-quick-btn:active {
    transform: scale(0.97);
}

.docs-quick-btn--danger:hover {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--docs-red);
}

#docs-multi-panel {
    display: none !important;
}

/* === AI status === */
.docs-ai-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: var(--docs-radius-sm);
    font-size: 13px;
    font-weight: 600;
    animation: docs-slide-up 0.2s ease;
}

.docs-ai-status--processing {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.12);
    color: #1e40af;
}

.docs-ai-status--done {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.12);
    color: #065f46;
}

.docs-ai-status--error {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.12);
    color: #991b1b;
}

/* === Result bubble === */
.docs-result-bubble {
    margin: 8px 0;
    padding: 16px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.12);
    animation: docs-slide-up 0.2s ease;
}

.docs-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.docs-result-label {
    font-weight: 700;
    color: #065f46;
    font-size: 14px;
}

.docs-result-copy {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.12s;
}

.docs-result-copy:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #374151;
}

.docs-result-body {
    font-size: 13px;
    color: #1f2937;
    line-height: 1.7;
    white-space: pre-wrap;
    max-height: 384px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.docs-result-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    padding-top: 10px;
}

.docs-result-file-link {
    font-size: 13px;
    color: var(--docs-blue);
    font-weight: 600;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.12s;
}

.docs-result-file-link:hover {
    background: var(--docs-blue-light);
}

.docs-result-meta {
    font-size: 11px;
    color: #9ca3af;
    margin-left: auto;
}

/* === More menu (context) === */
.docs-more-menu {
    position: fixed;
    z-index: 100;
    background: white;
    border: 1px solid var(--docs-stroke);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    padding: 6px;
    min-width: 140px;
    animation: docs-menu-in 0.15s ease;
}

@keyframes docs-menu-in {
    from { opacity: 0; transform: translateY(-4px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.docs-more-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.12s;
    text-align: left;
}

.docs-more-menu-item:hover {
    background: rgba(15, 23, 42, 0.04);
}

.docs-more-menu-item--danger {
    color: var(--docs-red);
}

.docs-more-menu-item--danger:hover {
    background: rgba(239, 68, 68, 0.06);
}

/* === Empty / Connect states === */
.docs-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.docs-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.docs-empty-icon--google {
    background: rgba(66, 133, 244, 0.06);
    border: 1px solid rgba(66, 133, 244, 0.12);
}

.docs-empty-icon--folder {
    background: rgba(156, 163, 175, 0.06);
    border: 1px solid rgba(156, 163, 175, 0.12);
}

.docs-empty-icon--error {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.docs-empty-title {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    letter-spacing: 0;
}

.docs-empty-desc {
    font-size: 13px;
    color: #6b7280;
    max-width: 300px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.docs-connect-btn {
    padding: 12px 28px;
    border-radius: 12px;
    background: var(--docs-blue);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all var(--docs-transition);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.docs-connect-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.28);
}

.docs-connect-btn:active {
    transform: scale(0.98);
}

.docs-connect-btn--secondary {
    background: #374151;
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.15);
}

.docs-connect-btn--secondary:hover {
    background: #1f2937;
    box-shadow: 0 8px 20px rgba(55, 65, 81, 0.2);
}

.docs-connect-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 16px;
    max-width: 260px;
    line-height: 1.5;
}

/* === MCP Access Panel === */
.docs-mcp-panel {
    max-width: 720px;
    margin: 8px auto 24px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 14px 36px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.docs-mcp-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.docs-mcp-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    border: 1px solid rgba(59, 130, 246, 0.22);
    flex-shrink: 0;
}

.docs-mcp-title {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
}

.docs-mcp-subtitle {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.docs-mcp-field {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.docs-mcp-field span {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.docs-mcp-field small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.docs-mcp-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.docs-mcp-copy-row input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 10px;
    padding: 10px 11px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.docs-mcp-field--secret .docs-mcp-copy-row input {
    color: #991b1b;
    background: #fff7ed;
    border-color: rgba(249, 115, 22, 0.26);
}

.docs-mcp-copy-btn {
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--docs-transition);
}

.docs-mcp-copy-btn:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.docs-mcp-status {
    display: grid;
    gap: 6px;
    margin: 14px 0;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
}

.docs-mcp-status strong {
    color: #0f172a;
    font-size: 13px;
}

.docs-mcp-status.is-active {
    border-color: rgba(16, 185, 129, 0.26);
    background: rgba(236, 253, 245, 0.82);
}

.docs-mcp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.docs-mcp-danger {
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.24);
}

.docs-mcp-shell {
    display: grid;
    gap: 10px;
    padding: 8px var(--docs-pad-x) 20px;
    min-height: 100%;
}

.docs-mcp-shell--chat-only {
    display: flex;
    padding: 8px var(--docs-pad-x) 16px;
}

.docs-mcp-shell--ide {
    --docs-mcp-vscode-border: var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
    --docs-mcp-vscode-border-strong: var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    --docs-mcp-vscode-surface: var(--docs-mcp-surface, #1b2027);
    --docs-mcp-vscode-surface-raised: var(--docs-mcp-surface-raised, #242b36);
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    height: calc(100vh - 112px);
    min-height: 560px;
    border-top: 1px solid var(--docs-mcp-vscode-border);
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(125, 211, 252, 0.035), transparent 26%),
        var(--docs-mcp-vscode-surface);
    overflow: hidden;
    position: relative;
}

.docs-mcp-explorer {
    min-width: 0;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--docs-mcp-vscode-border-strong);
    background:
        linear-gradient(180deg, rgba(125, 211, 252, 0.035), transparent 190px),
        var(--docs-mcp-vscode-surface);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.docs-mcp-explorer__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 42px;
    padding: 0 10px;
    border-bottom: 1px solid var(--docs-mcp-vscode-border);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.018);
    overflow: hidden;
}

.docs-mcp-explorer__head strong {
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-mcp-explorer__head button,
.docs-mcp-explorer__path button,
.docs-mcp-explorer__selection button {
    border: 1px solid transparent;
    background: transparent;
    color: #cccccc;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.docs-mcp-explorer__head-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.docs-mcp-explorer__head-actions button {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 16px;
    line-height: 1;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.docs-mcp-explorer-toggle,
.docs-mcp-explorer-backdrop {
    display: none;
}

.docs-mcp-explorer__head button:hover,
.docs-mcp-explorer__path button:hover,
.docs-mcp-explorer__selection button:hover {
    background: #2a2d2e;
    color: #ffffff;
}

.docs-mcp-explorer__head-actions button:hover {
    border-color: rgba(125, 211, 252, 0.34);
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.1));
    color: #eff6ff;
}

.docs-mcp-explorer__path {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 0 8px;
    border-bottom: 1px solid var(--docs-mcp-vscode-border);
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 12px;
}

.docs-mcp-explorer__path span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-mcp-explorer__path button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.docs-mcp-upload-drop {
    display: grid;
    gap: 3px;
    margin: 6px 2px 2px;
    padding: 8px;
    border: 1px dashed var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.014);
    color: var(--docs-mcp-muted, #8b95a4);
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.docs-mcp-upload-drop__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.docs-mcp-upload-drop button {
    justify-self: start;
    min-height: 26px;
    padding: 0 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.docs-mcp-upload-drop span {
    font-size: 11px;
    font-weight: 700;
}

.docs-mcp-upload-drop small {
    color: #747d89;
    font-size: 9px;
}

.docs-mcp-upload-drop.is-dragging {
    border-color: rgba(56, 189, 248, 0.62);
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
}

.docs-mcp-file-list--explorer {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    gap: 0;
    padding: 4px 6px 8px;
    align-content: start;
    grid-auto-rows: max-content;
}

.docs-mcp-file-list--explorer.is-refreshing .docs-mcp-file {
    opacity: 0.46;
    filter: blur(0.35px) saturate(0.82);
    animation: docs-mcp-file-refresh-pulse 1.25s ease-in-out infinite;
    pointer-events: none;
}

.docs-mcp-file-list--explorer.is-refreshing .docs-mcp-upload-drop {
    opacity: 0.5;
}

.docs-mcp-file-list--explorer.is-refreshing-empty .docs-loading-state--explorer {
    opacity: 0.72;
    animation: docs-mcp-file-refresh-pulse 1.25s ease-in-out infinite;
}

.docs-mcp-file-list--explorer.is-refreshing-empty .docs-mcp-file-list__soft-empty {
    animation: docs-mcp-file-refresh-pulse 1.25s ease-in-out infinite;
}

.docs-mcp-file-list__soft-empty {
    min-height: 120px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 20px 12px;
    color: var(--docs-mcp-muted, #8b95a4);
    background: var(--docs-mcp-surface, #1b2027);
}

.docs-mcp-file-list__soft-empty p {
    margin: 0;
    color: #aeb7c2;
    font-size: 12px;
    font-weight: 700;
}

.docs-mcp-file-list__soft-loader {
    width: 44px;
    height: 6px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.58), transparent),
        rgba(148, 163, 184, 0.18);
    background-size: 160% 100%, 100% 100%;
    animation: docs-mcp-soft-loader 1.1s ease-in-out infinite;
}

@keyframes docs-mcp-file-refresh-pulse {
    0%, 100% {
        opacity: 0.42;
    }
    50% {
        opacity: 0.68;
    }
}

@keyframes docs-mcp-soft-loader {
    from {
        background-position: 140% 0, 0 0;
    }
    to {
        background-position: -40% 0, 0 0;
    }
}

.docs-mcp-file-list--explorer .docs-loading-state {
    min-height: 100%;
    height: 100%;
    margin: 0;
    padding: 20px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-loading-state,
#documents-container.docs-provider-mcp .docs-loading-state--explorer,
html:is(html.app-theme-dark, html.dark) #documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-loading-state,
html:is(html.app-theme-dark, html.dark) #documents-container.docs-provider-mcp .docs-loading-state--explorer {
    border-color: transparent !important;
    background: var(--docs-mcp-surface, #1b2027) !important;
    box-shadow: none !important;
}

.docs-mcp-file-list--explorer .docs-loading-state::before {
    display: none;
    content: none;
}

.docs-mcp-file-list--explorer .docs-loading-state::after {
    display: none;
    content: none;
}

.docs-mcp-file-list--explorer .docs-loading-spinner {
    width: 26px;
    height: 26px;
    border-width: 2px;
}

.docs-mcp-file-list--explorer .docs-loading-text {
    color: #aeb7c2;
    font-size: 12px;
    font-weight: 700;
}

.docs-mcp-explorer__selection {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px;
    gap: 6px;
    align-items: center;
    min-height: 38px;
    padding: 6px 8px;
    border-top: 1px solid var(--docs-mcp-vscode-border);
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 11px;
}

.docs-mcp-explorer__selection span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-mcp-chat-panel--solo {
    width: min(920px, 100%);
    min-height: min(76vh, 780px);
    margin: 0 auto;
}

.docs-mcp-chat-panel--solo .docs-mcp-messages {
    min-height: min(62vh, 640px);
    max-height: none;
}

.docs-mcp-chat-panel--codex {
    --docs-mcp-codex-content-width: min(calc(100% - 32px), 1040px);
    --docs-mcp-codex-content-pad: 12px;
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background:
        linear-gradient(180deg, rgba(236, 253, 245, 0.018), transparent 42%),
        var(--docs-mcp-bg, #171a1f);
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.docs-mcp-chat-panel--codex > .docs-mcp-chat-toolbar,
.docs-mcp-chat-panel--codex > .docs-mcp-messages,
.docs-mcp-chat-panel--codex > .docs-mcp-composer,
.docs-mcp-chat-panel--codex > .docs-mcp-settings-view,
.docs-mcp-chat-panel--codex > .docs-mcp-editor {
    box-sizing: border-box;
    width: var(--docs-mcp-codex-content-width);
    max-width: var(--docs-mcp-codex-content-width);
    margin-left: auto;
    margin-right: auto;
}

.docs-mcp-chat-panel--codex .docs-mcp-messages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding: 16px var(--docs-mcp-codex-content-pad);
    border-bottom: 1px solid var(--docs-mcp-vscode-border);
    background: transparent;
    scroll-behavior: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    overflow-anchor: none;
}

.docs-mcp-chat-panel--codex .docs-mcp-composer {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 12px var(--docs-mcp-codex-content-pad);
    background: var(--docs-mcp-surface-soft, #202631);
    border: 1px solid var(--docs-mcp-vscode-border-strong);
    border-radius: 12px;
    box-shadow: none;
}

#documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex .docs-mcp-composer {
    --docs-mcp-composer-control: clamp(34px, 7.5vw, 40px);
    --docs-mcp-composer-button: clamp(32px, 6.5vw, 36px);
    --docs-mcp-composer-font: clamp(12px, 3.35vw, 14px);
    --docs-mcp-composer-gap: clamp(5px, 1.5vw, 8px);
    --docs-mcp-composer-pad-x: clamp(8px, 2.5vw, 12px);
}

.docs-mcp-chat-panel--codex > .docs-mcp-settings-view {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    padding: 14px var(--docs-mcp-codex-content-pad) 24px;
}

.docs-mcp-editor {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--docs-mcp-bg, #171a1f);
}

.docs-mcp-editor__tabbar {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--docs-mcp-vscode-border);
    background: var(--docs-mcp-bg, #171a1f);
}

.docs-mcp-editor__tab {
    min-width: 0;
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-right: 1px solid var(--docs-mcp-vscode-border);
    background: var(--docs-mcp-surface, #1b2027);
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 12px;
    font-weight: 650;
}

.docs-mcp-editor__tab span {
    min-width: 0;
    max-width: min(420px, 58vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-mcp-editor__tab small {
    color: #858585;
    font-size: 11px;
    font-weight: 500;
}

.docs-mcp-editor__tabbar button {
    width: 32px;
    height: 32px;
    margin-right: 4px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #cccccc;
    font-size: 18px;
    cursor: pointer;
}

.docs-mcp-editor__tabbar button:hover {
    background: #37373d;
    color: #ffffff;
}

.docs-mcp-editor__notice {
    padding: 8px 12px;
    border-bottom: 1px solid #2b2b2b;
    background: #2b2615;
    color: #dcdcaa;
    font-size: 12px;
}

.docs-mcp-code {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 16px 18px;
    overflow: auto;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.55;
    tab-size: 4;
    white-space: pre;
}

.docs-mcp-code .tok-comment {
    color: #6a9955;
}

.docs-mcp-code .tok-string {
    color: #ce9178;
}

.docs-mcp-code .tok-number {
    color: #b5cea8;
}

.docs-mcp-code .tok-keyword {
    color: #569cd6;
    font-weight: 650;
}

.docs-mcp-code .tok-builtin {
    color: #4ec9b0;
}

.docs-mcp-code .tok-punct {
    color: #d4d4d4;
}

.docs-mcp-chat-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 52px;
    padding: 8px var(--docs-mcp-codex-content-pad);
    border-bottom: 1px solid var(--docs-mcp-vscode-border);
    background: rgba(255, 255, 255, 0.014);
    overflow: hidden;
}

#documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-chat-toolbar {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.docs-mcp-dialog-select,
.docs-mcp-select {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--docs-mcp-vscode-border-strong);
    border-radius: 4px;
    background: var(--docs-mcp-surface-soft, #202631);
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 13px;
    line-height: 1.3;
    padding: 8px 10px;
}

.docs-mcp-chat-toolbar .docs-mcp-dialog-select,
.docs-mcp-chat-toolbar .docs-mcp-dialog-picker {
    flex: 1 1 0;
    max-width: 100%;
}

.docs-mcp-dialog-picker {
    position: relative;
    min-width: 0;
}

.docs-mcp-dialog-picker.is-open {
    z-index: 140;
}

.docs-mcp-chat-toolbar .docs-mcp-dialog-current {
    display: grid;
    gap: 2px;
    width: 100%;
    min-height: 40px;
    padding: 6px 34px 6px 10px;
    text-align: left;
    position: relative;
}

.docs-mcp-dialog-current::after {
    content: "⌄";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-52%);
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 15px;
}

.docs-mcp-dialog-current span,
.docs-mcp-dialog-item__main span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-mcp-dialog-current small,
.docs-mcp-dialog-item__main small {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 11px;
    font-weight: 600;
}

.docs-mcp-dialog-menu {
    display: none;
    position: absolute;
    z-index: 140;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: min(360px, 58vh);
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--docs-mcp-vscode-border-strong);
    border-radius: 6px;
    background: var(--docs-mcp-surface, #1b2027);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.docs-mcp-chat-toolbar:has(.docs-mcp-dialog-picker.is-open) {
    z-index: 140;
    overflow: visible;
}

.docs-mcp-dialog-picker.is-open .docs-mcp-dialog-menu {
    display: grid;
    gap: 4px;
}

.docs-mcp-dialog-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px 34px;
    gap: 4px;
    align-items: stretch;
    border-radius: 5px;
}

.docs-mcp-chat-toolbar .docs-mcp-dialog-item__main {
    display: grid;
    gap: 2px;
    min-width: 0;
    width: 100%;
    padding: 7px 9px;
    border-color: transparent;
    background: transparent;
    text-align: left;
}

.docs-mcp-chat-toolbar .docs-mcp-dialog-item__rename,
.docs-mcp-chat-toolbar .docs-mcp-dialog-item__delete {
    width: 32px;
    height: 32px;
    align-self: center;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
}

.docs-mcp-chat-toolbar .docs-mcp-dialog-item__delete {
    background: rgba(248, 113, 113, 0.06);
}

.docs-mcp-chat-toolbar .docs-mcp-dialog-item__rename svg,
.docs-mcp-chat-toolbar .docs-mcp-dialog-item__delete svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.docs-mcp-dialog-item.is-active,
.docs-mcp-dialog-item:hover {
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.1));
}

.docs-mcp-dialog-item.is-active .docs-mcp-dialog-item__main span {
    color: #ffffff;
}

.docs-mcp-chat-toolbar .docs-mcp-dialog-item__rename:hover {
    border-color: rgba(125, 211, 252, 0.30);
    background: rgba(125, 211, 252, 0.10);
    color: var(--docs-mcp-accent, #7dd3fc);
}

.docs-mcp-chat-toolbar .docs-mcp-dialog-item__delete:hover {
    border-color: rgba(248, 113, 113, 0.42);
    background: rgba(127, 29, 29, 0.34);
    color: #fca5a5;
}

.docs-mcp-chat-toolbar .docs-mcp-dialog-item__rename:disabled,
.docs-mcp-chat-toolbar .docs-mcp-dialog-item__delete:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.docs-mcp-dialog-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 4px 8px;
    border-bottom: 1px solid var(--docs-mcp-vscode-border);
    margin-bottom: 4px;
}

.docs-mcp-dialog-menu__head > span {
    min-width: 0;
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 12px;
    font-weight: 800;
}

.docs-mcp-dialog-menu__head > div {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.docs-mcp-chat-toolbar .docs-mcp-dialog-menu__icon {
    width: 28px;
    min-height: 28px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    font-size: 16px;
    line-height: 1;
}

.docs-mcp-dialog-empty {
    padding: 10px;
    color: #8b949e;
    font-size: 12px;
}

.docs-mcp-chat-loading {
    align-self: center;
    margin: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--docs-mcp-vscode-border-strong);
    border-radius: 6px;
    background: var(--docs-mcp-surface-soft, #202631);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.docs-mcp-chat-loading span {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--docs-mcp-accent, #7dd3fc);
    animation: docs-mcp-chat-loading-dot 0.9s ease-in-out infinite;
}

.docs-mcp-chat-loading span:nth-child(2) {
    animation-delay: 0.12s;
}

.docs-mcp-chat-loading span:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes docs-mcp-chat-loading-dot {
    0%, 100% {
        opacity: 0.35;
        transform: translateY(1px);
    }
    50% {
        opacity: 1;
        transform: translateY(-1px);
    }
}

.docs-mcp-chat-toolbar button {
    border: 1px solid var(--docs-mcp-vscode-border-strong);
    border-radius: 4px;
    background: var(--docs-mcp-surface-soft, #202631);
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.docs-mcp-chat-toolbar button:hover {
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.1));
    border-color: rgba(125, 211, 252, 0.28);
    color: #ffffff;
}

.docs-mcp-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

.docs-mcp-toggle input {
    width: 16px;
    height: 16px;
}

.docs-mcp-view-tabs {
    justify-self: end;
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.92);
}

.docs-mcp-view-tabs button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    transition: all var(--docs-transition);
}

.docs-mcp-view-tabs button:hover {
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.58);
}

.docs-mcp-view-tabs button.is-active {
    color: #0f172a;
    background: #ffffff;
    border-color: rgba(59, 130, 246, 0.22);
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

.docs-mcp-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 14px;
    min-height: 100%;
}

@media (min-width: 1024px) {
    .docs-mcp-shell--ide {
        grid-template-columns: clamp(240px, 18vw, 300px) minmax(0, 1fr);
    }

    .docs-mcp-chat-panel--codex {
        --docs-mcp-codex-content-width: min(calc(100% - 28px), 1240px);
        --docs-mcp-codex-content-pad: 14px;
    }

    .docs-mcp-chat-panel--codex > .docs-mcp-chat-toolbar,
    .docs-mcp-chat-panel--codex > .docs-mcp-messages,
    .docs-mcp-chat-panel--codex > .docs-mcp-composer,
    .docs-mcp-chat-panel--codex > .docs-mcp-settings-view,
    .docs-mcp-chat-panel--codex > .docs-mcp-editor {
        margin-left: 14px;
        margin-right: auto;
    }

    .docs-mcp-chat-panel--codex > .docs-mcp-settings-view {
        width: min(calc(100% - 28px), 920px);
        max-width: min(calc(100% - 28px), 920px);
    }
}

@media (min-width: 1440px) {
    .docs-mcp-chat-panel--codex {
        --docs-mcp-codex-content-width: min(calc(100% - 36px), 1560px);
    }

    .docs-mcp-chat-panel--codex > .docs-mcp-chat-toolbar,
    .docs-mcp-chat-panel--codex > .docs-mcp-messages,
    .docs-mcp-chat-panel--codex > .docs-mcp-composer,
    .docs-mcp-chat-panel--codex > .docs-mcp-settings-view,
    .docs-mcp-chat-panel--codex > .docs-mcp-editor {
        margin-left: 18px;
    }
}

.docs-mcp-settings-view {
    width: min(700px, 100%);
    margin: 0 auto;
    padding: 12px;
}

.docs-mcp-settings-card {
    padding: 12px;
}

.docs-cloud-card {
    display: grid;
    gap: 9px;
}

.docs-cloud-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.docs-cloud-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 2px;
    border: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.018);
}

.docs-cloud-subtabs button {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 7px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.docs-cloud-subtabs button:hover {
    color: var(--docs-mcp-text, #d7dde6);
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.1));
}

.docs-cloud-subtabs button.is-active {
    color: #ffffff;
    border-color: rgba(125, 211, 252, 0.30);
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.16), rgba(134, 239, 172, 0.08));
}

.docs-cloud-subtabs em {
    min-width: 18px;
    height: 18px;
    display: inline-grid !important;
    place-items: center;
    padding: 0 4px;
    border-radius: 999px;
    background: #111827;
    color: #89d185;
    font-size: 10px;
    font-style: normal;
}

.docs-cloud-custom-form {
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
}

.docs-cloud-custom-form summary {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    color: var(--docs-mcp-text, #d7dde6);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    list-style: none;
}

.docs-cloud-custom-form summary::-webkit-details-marker {
    display: none;
}

.docs-cloud-custom-summary__icon {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(52, 211, 153, 0.24);
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.08);
    color: #6ee7b7;
}

.docs-cloud-custom-summary__icon .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

.docs-cloud-custom-summary__copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.docs-cloud-custom-summary__copy strong {
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 12px;
    font-weight: 780;
}

.docs-cloud-custom-summary__copy small {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10px;
    font-weight: 650;
}

.docs-cloud-custom-summary__indicator {
    position: relative;
    width: 18px;
    height: 18px;
}

.docs-cloud-custom-summary__indicator::before,
.docs-cloud-custom-summary__indicator::after {
    position: absolute;
    top: 8px;
    left: 4px;
    width: 10px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    content: '';
    transition: transform 160ms ease;
}

.docs-cloud-custom-summary__indicator::after {
    transform: rotate(90deg);
}

.docs-cloud-custom-form[open] .docs-cloud-custom-summary__indicator::after {
    transform: rotate(0deg);
}

.docs-cloud-custom-form__body {
    min-width: 0;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.docs-cloud-custom-form--project {
    border-color: rgba(52, 211, 153, 0.20);
    background: rgba(16, 185, 129, 0.035);
}

.docs-cloud-custom-form.is-connecting summary {
    cursor: wait;
}

.docs-cloud-custom-form .docs-cloud-actions button.is-loading {
    gap: 6px;
}

.docs-cloud-custom-form .docs-cloud-actions button.is-loading .docs-loading-spinner {
    border-color: rgba(255, 255, 255, 0.28);
    border-top-color: currentColor;
}

.docs-cloud-custom-form:not([open]) {
    padding: 7px 8px;
}

.docs-cloud-custom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.docs-cloud-custom-grid label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.docs-cloud-custom-grid span,
.docs-cloud-custom-check span {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 11px;
    font-weight: 700;
}

.docs-cloud-custom-grid input,
.docs-cloud-custom-grid select {
    min-width: 0;
    min-height: 30px;
    padding: 6px 8px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 5px;
    background: var(--docs-mcp-surface-soft, #202631);
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 12px;
}

.docs-cloud-custom-grid select {
    appearance: auto;
}

.docs-cloud-custom-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.docs-cloud-custom-check input {
    width: 16px;
    height: 16px;
    accent-color: #22c55e;
}

@media (max-width: 640px) {
    .docs-cloud-custom-grid {
        grid-template-columns: 1fr;
    }
}

.docs-cloud-service {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 6px;
    color: #d4d4d4;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.docs-cloud-service input {
    width: 16px;
    height: 16px;
    accent-color: #22c55e;
}

.docs-cloud-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.docs-cloud-actions button,
.docs-cloud-server-row button,
.docs-cloud-server-row a {
    min-height: 28px;
    padding: 0 8px;
    border-radius: 5px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #f5f5f5;
    background: var(--docs-mcp-surface-soft, #202631);
    font-size: 11px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.docs-cloud-actions button:hover,
.docs-cloud-server-row button:hover,
.docs-cloud-server-row a:hover {
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.1));
}

.docs-cloud-server-row button.is-danger {
    border-color: rgba(248, 113, 113, 0.45);
    color: #fca5a5;
    background: rgba(127, 29, 29, 0.22);
}

.docs-cloud-server-row button.is-danger:hover {
    background: rgba(153, 27, 27, 0.34);
}

.docs-cloud-server-list {
    display: grid;
    gap: 6px;
}

.docs-cloud-server-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
    padding: 7px 8px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.018);
}

.docs-cloud-server-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
}

.docs-cloud-row-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.docs-cloud-row-title,
.docs-cloud-section-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.docs-cloud-section-head {
    padding: 2px 1px 0;
}

.docs-cloud-section-head strong {
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 12px;
}

.docs-cloud-section-head span {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 11px;
}

.docs-cloud-badge {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    color: var(--docs-mcp-text, #d7dde6);
    background: rgba(148, 163, 184, 0.14);
    font-size: 10px !important;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap !important;
}

.docs-cloud-badge.is-good {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
}

.docs-cloud-badge.is-warn {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
}

.docs-cloud-badge.is-danger {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.12);
}

.docs-cloud-muted-action {
    display: inline-flex !important;
    align-items: center;
    min-height: 24px;
    color: var(--docs-mcp-muted, #8b95a4) !important;
    font-size: 11px !important;
    white-space: nowrap;
}

.docs-cloud-server-row div {
    min-width: 0;
}

.docs-cloud-server-row strong,
.docs-cloud-server-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-cloud-server-row strong {
    font-size: 12px;
}

.docs-cloud-server-row span,
.docs-cloud-server-row small,
.docs-cloud-empty {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 11px;
}

.docs-cloud-service-row strong {
    color: #86efac;
}

.docs-cloud-payment-row strong {
    color: var(--docs-mcp-text, #d7dde6);
}

.docs-codex-subscription {
    display: grid;
    gap: 8px;
}

.docs-codex-subscription-row {
    align-items: start;
}

.docs-codex-limit-list {
    display: grid;
    gap: 9px;
}

.docs-codex-limit {
    display: grid;
    gap: 7px;
    padding: 9px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.018);
}

.docs-codex-limit__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.docs-codex-limit__head span,
.docs-codex-limit small {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 11px;
}

.docs-codex-limit__head strong {
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 11px;
    white-space: nowrap;
}

.docs-codex-limit__bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
}

.docs-codex-limit__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #22c55e);
}

.docs-mcp-settings-card--subscription {
    display: grid;
    gap: 10px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 4px;
    background: var(--docs-mcp-surface, #1b2027);
    box-shadow: none;
}

.docs-mcp-settings-card--codex {
    display: grid;
    gap: 16px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 4px;
    background: var(--docs-mcp-surface, #1b2027);
    box-shadow: none;
}

.docs-mcp-settings-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
}

.docs-mcp-settings-hero div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.docs-mcp-settings-hero span,
.docs-mcp-settings-grid span,
.docs-mcp-settings-note {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 12px;
}

.docs-mcp-settings-hero strong {
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 24px;
    line-height: 1.1;
}

.docs-mcp-settings-hero--compact {
    padding-top: 8px;
    padding-bottom: 8px;
}

.docs-mcp-settings-hero--compact strong {
    font-size: 14px;
}

.docs-mcp-settings-hero em {
    flex: 0 0 auto;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.docs-mcp-settings-hero em.is-online {
    border-color: #2f6f44;
    color: #89d185;
}

.docs-mcp-settings-hero em.is-offline {
    border-color: #7a3b3b;
    color: #f48771;
}

.docs-mcp-field--dark {
    display: grid;
    gap: 7px;
}

.docs-mcp-field--dark > span {
    color: #cccccc;
    font-size: 12px;
    font-weight: 700;
}

.docs-mcp-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.docs-mcp-settings-grid div {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid #333333;
    border-radius: 4px;
    background: #252526;
}

.docs-mcp-settings-grid strong {
    color: #d4d4d4;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-mcp-settings-note {
    margin: 0;
    line-height: 1.5;
}

.docs-mcp-chat-panel,
.docs-mcp-side-card {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.docs-mcp-chat-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.docs-mcp-chat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.docs-mcp-kicker {
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-mcp-chat-head h3 {
    margin: 2px 0 4px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 850;
}

.docs-mcp-chat-head p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    max-width: 620px;
}

.docs-mcp-mini-btn,
.docs-mcp-side-actions button,
.docs-mcp-quick-actions button,
.docs-mcp-copy-config {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--docs-transition);
}

.docs-mcp-mini-btn {
    min-height: 34px;
    padding: 0 12px;
    white-space: nowrap;
}

.docs-mcp-mini-btn:hover,
.docs-mcp-side-actions button:hover,
.docs-mcp-quick-actions button:hover,
.docs-mcp-copy-config:hover {
    background: #eff6ff;
    border-color: rgba(59, 130, 246, 0.24);
    color: #1d4ed8;
}

.docs-mcp-context {
    margin: 12px 16px 0;
    padding: 10px 12px;
    border: 1px solid rgba(59, 130, 246, 0.16);
    border-radius: 12px;
    background: rgba(239, 246, 255, 0.72);
    display: grid;
    gap: 3px;
}

.docs-mcp-context span {
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.docs-mcp-context strong {
    min-width: 0;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-mcp-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 0;
}

.docs-mcp-quick-actions button {
    min-height: 32px;
    padding: 0 10px;
}

.docs-mcp-messages {
    flex: 1;
    min-height: 320px;
    max-height: min(54vh, 620px);
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.docs-mcp-message {
    position: relative;
    max-width: min(720px, 92%);
    padding: 11px 12px;
    border-radius: 4px;
    border: 1px solid #333333;
    background: #252526;
}

.docs-mcp-message--user {
    align-self: flex-end;
    background: #0e3a5d;
    border-color: #1f6feb;
}

.docs-mcp-message--assistant {
    align-self: flex-start;
}

.docs-mcp-message--system {
    align-self: flex-start;
    max-width: min(620px, 88%);
    padding: 8px 10px;
    background: #1f2933;
    border-style: dashed;
}

.docs-mcp-message--system .docs-mcp-message__role {
    color: #64748b;
}

.docs-mcp-message.is-pending {
    opacity: 0.78;
}

.docs-mcp-message__role {
    margin-bottom: 5px;
    color: #4fc1ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.docs-mcp-message__copy {
    position: absolute;
    right: 5px;
    bottom: 5px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    color: currentColor;
    font: inherit;
    letter-spacing: 0;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.docs-mcp-message__copy:hover {
    background-color: rgba(0, 0, 0, 0.15);
}

.docs-mcp-message:hover .docs-mcp-message__copy,
.docs-mcp-message__copy:focus-visible {
    opacity: 1;
}

.docs-mcp-message__text {
    color: #d4d4d4;
    font-size: 13px;
    line-height: 1.55;
    word-break: break-word;
}

#documents-container.docs-provider-mcp .docs-mcp-messages,
#documents-container.docs-provider-mcp .docs-mcp-message,
#documents-container.docs-provider-mcp .docs-mcp-message__text,
#documents-container.docs-provider-mcp .docs-mcp-markdown,
#documents-container.docs-provider-mcp .docs-codex-progress,
#documents-container.docs-provider-mcp .docs-codex-answer,
#documents-container.docs-provider-mcp .docs-codex-result,
#documents-container.docs-provider-mcp .docs-codex-error,
#documents-container.docs-provider-mcp .docs-codex-event-line,
#documents-container.docs-provider-mcp .docs-codex-command__full,
#documents-container.docs-provider-mcp .docs-codex-command__output {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

#documents-container.docs-provider-mcp .docs-mcp-message__text *,
#documents-container.docs-provider-mcp .docs-mcp-markdown *,
#documents-container.docs-provider-mcp .docs-codex-progress *,
#documents-container.docs-provider-mcp .docs-codex-answer *,
#documents-container.docs-provider-mcp .docs-codex-result *,
#documents-container.docs-provider-mcp .docs-codex-error *,
#documents-container.docs-provider-mcp .docs-codex-event-line *,
#documents-container.docs-provider-mcp .docs-codex-command__full *,
#documents-container.docs-provider-mcp .docs-codex-command__output * {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

#documents-container.docs-provider-mcp .docs-mcp-message__copy,
#documents-container.docs-provider-mcp .docs-mcp-message__copy *,
#documents-container.docs-provider-mcp .docs-mcp-message button,
#documents-container.docs-provider-mcp .docs-mcp-message [role="button"] {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.docs-mcp-markdown {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.docs-mcp-markdown p,
.docs-mcp-markdown ul,
.docs-mcp-markdown ol,
.docs-mcp-markdown h3,
.docs-mcp-markdown h4,
.docs-mcp-markdown h5 {
    margin: 0;
}

.docs-mcp-markdown ul,
.docs-mcp-markdown ol {
    padding-left: 18px;
}

.docs-mcp-markdown li + li {
    margin-top: 3px;
}

.docs-mcp-markdown h3,
.docs-mcp-markdown h4,
.docs-mcp-markdown h5 {
    color: #f3f4f6;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 850;
}

.docs-mcp-markdown strong {
    color: #f8fafc;
    font-weight: 850;
}

.docs-mcp-markdown a {
    color: #7dd3fc;
    text-decoration: none;
}

.docs-mcp-markdown a:hover {
    text-decoration: underline;
}

.docs-mcp-markdown code {
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.14);
    color: #dbeafe;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92em;
}

.docs-mcp-markdown-code {
    max-width: 100%;
    margin: 0;
    padding: 8px 10px;
    overflow: auto;
    border: 1px solid #30363d;
    border-radius: 5px;
    background: #0d1117;
    color: #d6deeb;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    line-height: 1.45;
    white-space: pre;
}

.docs-mcp-markdown-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #30363d;
    border-radius: 6px;
    background: #0d1117;
}

.docs-mcp-markdown table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.4;
}

.docs-mcp-markdown th,
.docs-mcp-markdown td {
    padding: 7px 9px;
    border-bottom: 1px solid #30363d;
    border-right: 1px solid #30363d;
    color: #d6deeb;
    text-align: left;
    vertical-align: top;
    word-break: normal;
}

.docs-mcp-markdown th:last-child,
.docs-mcp-markdown td:last-child {
    border-right: 0;
}

.docs-mcp-markdown tr:last-child td {
    border-bottom: 0;
}

.docs-mcp-markdown th {
    background: #161b22;
    color: #f3f4f6;
    font-weight: 850;
}

.docs-mcp-message.is-streaming-text .docs-mcp-message__text::after {
    content: "";
    display: inline-block;
    width: 0.46em;
    height: 1.05em;
    margin-left: 2px;
    vertical-align: -0.15em;
    border-radius: 999px;
    background: #7dd3fc;
    animation: docs-mcp-typing-caret 0.7s infinite;
}

.docs-mcp-message.is-soft-updating .docs-mcp-message__text {
    animation: docs-mcp-soft-update 180ms ease-out;
}

.docs-mcp-welcome {
    width: min(820px, 100%);
    margin: auto;
    padding: 26px 0 30px;
    color: var(--docs-mcp-text, #d7dde6);
}

.docs-mcp-welcome__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--docs-mcp-accent, #7dd3fc);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.docs-mcp-welcome__eyebrow .docs-mcp-icon-svg {
    width: 18px;
    height: 18px;
}

.docs-mcp-welcome h2 {
    margin: 0;
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 28px;
    line-height: 1.15;
    font-weight: 820;
}

.docs-mcp-welcome > p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 14px;
    line-height: 1.6;
}

.docs-mcp-welcome__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.docs-mcp-welcome__feature {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.docs-mcp-welcome__feature-icon {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 8px;
    color: var(--docs-mcp-accent, #7dd3fc);
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.10));
}

.docs-mcp-welcome__feature-icon .docs-mcp-icon-svg {
    width: 18px;
    height: 18px;
}

.docs-mcp-welcome__feature strong {
    min-width: 0;
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 13px;
    line-height: 1.25;
}

.docs-mcp-welcome__feature span {
    min-width: 0;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 12px;
    line-height: 1.45;
}

.docs-mcp-welcome__examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.docs-mcp-welcome__examples > span {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 12px;
    font-weight: 750;
}

.docs-mcp-welcome__examples code {
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 8px;
    background: var(--docs-mcp-surface-soft, #202631);
    color: var(--docs-mcp-text, #d7dde6);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
}

@media (max-width: 640px) {
    .docs-mcp-welcome {
        padding: 18px 0 22px;
    }

    .docs-mcp-welcome h2 {
        font-size: 22px;
    }

    .docs-mcp-welcome > p {
        font-size: 13px;
    }

    .docs-mcp-welcome__grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 16px;
    }

    .docs-mcp-welcome__feature {
        grid-template-columns: 30px minmax(0, 1fr);
        padding: 10px;
    }

    .docs-mcp-welcome__feature-icon {
        width: 30px;
        height: 30px;
    }
}

@keyframes docs-mcp-typing-caret {
    0%, 45% {
        opacity: 1;
    }
    46%, 100% {
        opacity: 0.18;
    }
}

@keyframes docs-mcp-soft-update {
    from {
        opacity: 0.78;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.docs-codex-progress {
    display: grid;
    gap: 8px;
    min-width: min(560px, 100%);
}

.docs-codex-progress__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #f3f4f6;
    font-size: 13px;
    font-weight: 750;
}

.docs-codex-progress__header span {
    min-width: 0;
}

.docs-codex-progress__title {
    color: #8b949e;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.docs-codex-progress__events {
    display: grid;
    gap: 5px;
}

.docs-codex-progress__thinking {
    position: sticky;
    bottom: 0;
    padding-top: 4px;
    background: linear-gradient(180deg, rgba(37, 37, 38, 0), #252526 42%);
}

.docs-codex-event-line {
    color: #c9d1d9;
    font-size: 12px;
    line-height: 1.42;
}

.docs-codex-event-line span {
    color: #7dd3fc;
    font-weight: 750;
}

.docs-codex-answer {
    color: #d4d4d4;
    font-size: 13px;
    line-height: 1.55;
}

.docs-codex-thinking {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 7px 9px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 12px;
    background: rgba(14, 116, 144, 0.16);
    color: #d7f3ff;
}

.docs-codex-thinking span {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #7dd3fc;
    animation: docs-codex-thinking-dot 1.1s infinite ease-in-out;
}

.docs-codex-thinking span:nth-child(2) {
    animation-delay: 0.14s;
}

.docs-codex-thinking span:nth-child(3) {
    animation-delay: 0.28s;
}

.docs-codex-thinking strong {
    font-size: 12px;
    font-weight: 800;
}

.docs-codex-thinking em {
    min-width: 0;
    color: #9ccfe3;
    font-size: 11px;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes docs-codex-thinking-dot {
    0%, 80%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.docs-codex-command {
    border: 1px solid #30363d;
    border-radius: 5px;
    background: #161b22;
    color: #c9d1d9;
    overflow: hidden;
}

.docs-codex-command summary {
    min-height: 30px;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    cursor: pointer;
    list-style: none;
}

.docs-codex-command summary::-webkit-details-marker {
    display: none;
}

.docs-codex-command summary::before {
    content: "›";
    color: #8b949e;
    font-size: 14px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 0.15s ease;
}

.docs-codex-command[open] summary::before {
    transform: rotate(90deg);
}

.docs-codex-command__badge {
    min-width: 0;
    max-width: 128px;
    padding: 2px 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(125, 211, 252, 0.12);
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-codex-command summary code {
    min-width: 0;
    overflow: hidden;
    color: #d6deeb;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-codex-command__status {
    color: #8b949e;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    white-space: nowrap;
}

.docs-codex-action.is-running .docs-codex-command__status {
    color: #7dd3fc;
}

.docs-codex-action.is-running .docs-codex-command__status::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 999px;
    background: currentColor;
    vertical-align: 1px;
    animation: docs-codex-thinking-dot 1.1s infinite ease-in-out;
}

.docs-codex-action.is-done .docs-codex-command__status {
    color: #86efac;
}

.docs-codex-action.is-failed .docs-codex-command__status {
    color: #fecdd3;
}

.docs-codex-approval {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(251, 191, 36, 0.34);
    border-radius: 6px;
    background: rgba(120, 53, 15, 0.22);
    color: #fde68a;
}

.docs-codex-approval__head {
    display: grid;
    gap: 2px;
}

.docs-codex-approval__head span {
    color: #fbbf24;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.docs-codex-approval__head strong {
    min-width: 0;
    color: #fffbeb;
    font-size: 13px;
    line-height: 1.25;
}

.docs-codex-approval p {
    margin: 0;
    color: #fde68a;
    font-size: 12px;
    line-height: 1.4;
}

.docs-codex-approval details {
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 5px;
    background: rgba(17, 24, 39, 0.28);
    overflow: hidden;
}

.docs-codex-approval summary {
    padding: 6px 8px;
    cursor: pointer;
    color: #fef3c7;
    font-size: 11px;
    font-weight: 800;
}

.docs-codex-approval pre {
    max-height: 220px;
    margin: 0;
    padding: 8px;
    overflow: auto;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    color: #fef3c7;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.docs-codex-approval__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.docs-codex-approval__actions button {
    min-height: 30px;
    border: 1px solid rgba(251, 191, 36, 0.34);
    border-radius: 5px;
    background: #f59e0b;
    color: #111827;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.docs-codex-approval__actions button[data-decision="rejected"] {
    background: transparent;
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.38);
}

.docs-codex-approval__actions button:disabled {
    opacity: 0.55;
    cursor: default;
}

.docs-codex-approval.is-approved {
    border-color: rgba(134, 239, 172, 0.36);
    background: rgba(22, 101, 52, 0.2);
}

.docs-codex-approval.is-rejected {
    border-color: rgba(248, 113, 113, 0.36);
    background: rgba(127, 29, 29, 0.2);
}

.docs-codex-command__full,
.docs-codex-command__output {
    margin: 0;
    padding: 8px 10px;
    border-top: 1px solid #30363d;
    overflow: auto;
    color: #d6deeb;
    background: #0d1117;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.docs-codex-command__output {
    max-height: 220px;
    color: #a5d6ff;
}

.docs-codex-result,
.docs-codex-error {
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 5px;
    background: #102a43;
    color: #dbeafe;
    font-size: 12px;
    line-height: 1.45;
}

.docs-codex-error {
    background: #3b1018;
    color: #fecdd3;
}

.docs-mcp-composer {
    display: block;
    padding: 12px;
    border: 1px solid rgba(203, 213, 225, 0.74);
    border-radius: 20px;
    background: #f9fafb;
}

.docs-mcp-composer-footer {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: var(--docs-mcp-composer-gap, 8px);
    min-width: 0;
}

.docs-codex-input-modes {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    margin: 0 0 8px;
    padding: 2px;
    border: 1px solid var(--docs-mcp-vscode-border-strong, rgba(148, 163, 184, 0.22));
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.22);
}

.docs-mcp-composer .docs-codex-input-modes > button {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    background: transparent;
    color: var(--docs-mcp-muted, #9aa7b7);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.docs-mcp-composer .docs-codex-input-modes > button:hover:not(:disabled) {
    background: rgba(148, 163, 184, 0.12);
    color: var(--docs-mcp-text, #d7dde6);
}

.docs-mcp-composer .docs-codex-input-modes > button.is-active {
    background: var(--docs-mcp-accent-soft, rgba(56, 189, 248, 0.16));
    color: var(--docs-mcp-accent, #7dd3fc);
}

.docs-mcp-composer-settings {
    display: contents;
}

.docs-mcp-composer-settings label,
.docs-mcp-setting-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex: 0 1 auto;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
}

.docs-mcp-setting-chip__icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    color: #64748b;
}

.docs-mcp-setting-chip__icon .docs-mcp-icon-svg {
    width: 13px;
    height: 13px;
}

.docs-mcp-composer-settings select {
    height: 26px;
    max-width: 124px;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    padding: 0 6px;
    font-size: 11px;
}

.docs-mcp-composer-settings .docs-mcp-access-setting {
    max-width: none;
}

.docs-mcp-composer textarea {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    resize: none;
    min-height: var(--docs-mcp-composer-control, 40px);
    max-height: calc((1.45em * 10) + 22px);
    overflow-y: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    padding: 9px var(--docs-mcp-composer-pad-x, 11px);
    font-size: var(--docs-mcp-composer-font, 13px);
    line-height: 1.45;
}

.docs-mcp-composer textarea::placeholder {
    color: #94a3b8;
    font-size: var(--docs-mcp-composer-font, 13px);
    font-weight: 500;
    opacity: 1;
}

.docs-mcp-composer button {
    align-self: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 14px;
    background: #0e639c;
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    transition: all var(--docs-transition);
}

.docs-mcp-composer button:hover {
    background: #1177bb;
    transform: none;
}

.docs-mcp-composer .docs-mcp-settings-btn,
.docs-mcp-composer .docs-mcp-send-btn,
.docs-mcp-composer .docs-mcp-stop-btn {
    width: var(--docs-mcp-composer-button, 34px);
    height: var(--docs-mcp-composer-button, 34px);
    min-width: var(--docs-mcp-composer-button, 34px);
    min-height: var(--docs-mcp-composer-button, 34px);
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    box-shadow: none !important;
}

.docs-mcp-composer .docs-mcp-settings-btn {
    background: rgba(148, 163, 184, 0.16);
    color: var(--docs-mcp-text, #d7dde6);
    border: 1px solid var(--docs-mcp-vscode-border-strong, rgba(148, 163, 184, 0.18));
}

.docs-mcp-composer .docs-mcp-settings-btn:hover:not(:disabled) {
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.1));
    border-color: rgba(125, 211, 252, 0.34);
}

.docs-mcp-composer .docs-mcp-settings-btn .docs-mcp-icon-svg,
.docs-mcp-composer .docs-mcp-send-btn svg,
.docs-mcp-composer .docs-mcp-stop-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.docs-mcp-composer .docs-mcp-stop-btn {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.28);
}

.docs-mcp-composer .docs-mcp-stop-btn svg {
    fill: currentColor;
    stroke: currentColor;
}

.docs-mcp-composer .docs-mcp-stop-btn:hover:not(:disabled) {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.44);
}

.docs-mcp-composer .docs-mcp-send-btn.is-stop svg {
    fill: currentColor;
    stroke: currentColor;
}

.docs-mcp-composer .docs-mcp-send-btn:hover:not(:disabled) {
    background: #1f2937;
}

.docs-mcp-composer .docs-mcp-send-btn:disabled {
    background: #9ca3af;
    color: #ffffff;
    opacity: 0.55;
}

.docs-mcp-composer-settings-modal__card {
    width: min(560px, calc(100vw - 28px));
}

.docs-mcp-composer-settings-modal__grid {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.docs-mcp-composer-settings-modal__grid > label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.docs-mcp-composer-settings-modal__grid select {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
}

/* GPT-5.6 model profile and reasoning controls. */
.docs-codex-control-group {
    min-width: 0;
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    border: 0;
}

.docs-codex-control-group legend {
    padding: 0;
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 13px;
    font-weight: 800;
}

.docs-codex-control-group > p {
    margin: -4px 0 1px;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 11px;
    line-height: 1.4;
}

.docs-codex-speed-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.docs-codex-speed-choice,
.docs-codex-reasoning-choice {
    min-width: 0;
    position: relative;
    display: block;
    cursor: pointer;
}

.docs-codex-speed-choice input,
.docs-codex-reasoning-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.docs-codex-speed-choice__body {
    min-height: 94px;
    display: grid;
    align-content: start;
    gap: 5px;
    padding: 11px;
    border: 1px solid var(--docs-mcp-line-strong, #3a414c);
    border-radius: 7px;
    background: var(--docs-mcp-surface-soft, #252526);
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.docs-codex-speed-choice__head {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.docs-codex-speed-choice__head strong {
    min-width: 0;
    overflow: hidden;
    color: var(--docs-mcp-text, #e5e7eb);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-codex-speed-choice__head i {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 1px solid var(--docs-mcp-muted, #8b95a4);
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px var(--docs-mcp-surface-soft, #252526);
}

.docs-codex-speed-choice__body b {
    color: var(--docs-mcp-accent, #7dd3fc);
    font-size: 11px;
    font-weight: 800;
}

.docs-codex-speed-choice__body small {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10px;
    line-height: 1.35;
}

.docs-codex-speed-choice:hover .docs-codex-speed-choice__body {
    border-color: rgba(125, 211, 252, 0.42);
}

.docs-codex-speed-choice input:focus-visible + .docs-codex-speed-choice__body,
.docs-codex-reasoning-choice input:focus-visible + span {
    outline: 2px solid var(--docs-mcp-accent, #7dd3fc);
    outline-offset: 2px;
}

.docs-codex-speed-choice input:checked + .docs-codex-speed-choice__body {
    border-color: var(--docs-mcp-accent, #7dd3fc);
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.10));
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.12);
}

.docs-codex-speed-choice input:checked + .docs-codex-speed-choice__body .docs-codex-speed-choice__head i {
    border-color: var(--docs-mcp-accent, #7dd3fc);
    background: var(--docs-mcp-accent, #7dd3fc);
}

.docs-codex-reasoning-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    padding: 3px;
    border: 1px solid var(--docs-mcp-line-strong, #3a414c);
    border-radius: 8px;
    background: var(--docs-mcp-surface-soft, #252526);
}

.docs-codex-reasoning-choice > span {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 7px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--docs-mcp-muted, #aeb7c2);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.docs-codex-reasoning-choice:hover > span {
    color: var(--docs-mcp-text, #e5e7eb);
    background: rgba(148, 163, 184, 0.10);
}

.docs-codex-reasoning-choice input:checked + span {
    border-color: rgba(125, 211, 252, 0.28);
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.12));
    color: var(--docs-mcp-accent, #7dd3fc);
}

.docs-mcp-composer-settings-modal .docs-codex-control-group legend {
    color: #334155;
    font-size: 12px;
}

.docs-codex-control-group--modal .docs-codex-reasoning-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-mcp-composer-settings-modal .docs-codex-speed-choice__body,
.docs-mcp-composer-settings-modal .docs-codex-reasoning-grid {
    --docs-mcp-text: #0f172a;
    --docs-mcp-muted: #64748b;
    --docs-mcp-accent: #2563eb;
    --docs-mcp-accent-soft: rgba(37, 99, 235, 0.08);
    --docs-mcp-surface-soft: #f8fafc;
    --docs-mcp-line-strong: #cbd5e1;
}

html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-modal .docs-codex-control-group legend {
    color: #d7dde6;
}

html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-modal .docs-codex-speed-choice__body,
html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-modal .docs-codex-reasoning-grid {
    --docs-mcp-text: #e5e7eb;
    --docs-mcp-muted: #9ca3af;
    --docs-mcp-accent: #7dd3fc;
    --docs-mcp-accent-soft: rgba(125, 211, 252, 0.10);
    --docs-mcp-surface-soft: #202631;
    --docs-mcp-line-strong: #3a414c;
}

@media (max-width: 620px) {
    .docs-codex-speed-grid {
        grid-template-columns: 1fr;
    }

    .docs-codex-speed-choice__body {
        min-height: 0;
        grid-template-columns: minmax(84px, 0.72fr) minmax(96px, 0.88fr) minmax(0, 1.4fr);
        align-items: center;
        gap: 8px;
        padding: 9px 10px;
    }

    .docs-codex-speed-choice__body small {
        min-width: 0;
    }

    .docs-codex-reasoning-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-modal .docs-folder-modal__backdrop {
    background: rgba(2, 6, 23, 0.68);
}

html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-modal__card {
    border-color: rgba(148, 163, 184, 0.22);
    background:
        radial-gradient(120% 130% at 100% 0%, rgba(125, 211, 252, 0.12), transparent 58%),
        linear-gradient(160deg, rgba(27, 32, 39, 0.98), rgba(15, 23, 42, 0.97));
    color: #d7dde6;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-modal__card .docs-folder-modal__title {
    color: #f8fafc;
}

html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-modal__card .docs-folder-modal__hint,
html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-modal__grid label {
    color: #aeb7c2;
}

html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-modal__grid select {
    border-color: rgba(148, 163, 184, 0.22);
    background: #202631;
    color: #f8fafc;
}

html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-modal__card .docs-folder-modal__btn--ghost {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(148, 163, 184, 0.10);
    color: #d7dde6;
}

.docs-mcp-composer button:disabled,
.docs-mcp-side-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.docs-mcp-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.docs-mcp-side-card {
    padding: 14px;
}

.docs-mcp-side-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.docs-mcp-side-head strong {
    color: #0f172a;
    font-size: 13px;
}

.docs-mcp-side-head span {
    color: #64748b;
    font-size: 11px;
    text-align: right;
}

.docs-mcp-file-list {
    display: grid;
    gap: 7px;
    max-height: 320px;
    overflow-y: auto;
}

.docs-mcp-file-list.docs-mcp-file-list--explorer {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

.docs-mcp-file {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 9px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    background: #f8fafc;
    text-align: left;
    cursor: pointer;
    transition: all var(--docs-transition);
}

.docs-mcp-file-list--explorer .docs-mcp-file {
    border: 0;
    border-radius: 8px;
    background: transparent;
    min-height: 28px;
    padding: 0 6px 0 10px;
    gap: 2px;
    align-self: start;
}

.docs-mcp-file-list--explorer .docs-mcp-file:hover,
.docs-mcp-file-list--explorer .docs-mcp-file.is-selected {
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.1));
    box-shadow: inset 2px 0 0 rgba(125, 211, 252, 0.48);
}

.docs-mcp-file__main {
    min-width: 0;
    min-height: 28px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.docs-mcp-file__actions {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.docs-mcp-file__menu-btn {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #c8c8c8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
}

.docs-mcp-file:hover .docs-mcp-file__menu-btn,
.docs-mcp-file:focus-within .docs-mcp-file__menu-btn,
.docs-mcp-file.is-selected .docs-mcp-file__menu-btn {
    opacity: 1;
}

.docs-mcp-file__menu-btn:hover {
    background: #4b4b52;
    color: #ffffff;
}

.docs-mcp-file__menu {
    position: absolute;
    top: 24px;
    right: 0;
    z-index: 20;
    min-width: 132px;
    display: none;
    padding: 4px;
    border: 1px solid var(--docs-mcp-vscode-border-strong);
    border-radius: 4px;
    background: var(--docs-mcp-surface-soft, #202631);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.docs-mcp-file__actions:focus-within .docs-mcp-file__menu,
.docs-mcp-file__actions:hover .docs-mcp-file__menu {
    display: grid;
}

.docs-mcp-file__menu button {
    width: 100%;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #d4d4d4;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.docs-mcp-file__menu button:hover {
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.1));
}

.docs-mcp-file__menu button.is-danger {
    color: #f48771;
}

.docs-mcp-file-list--explorer .docs-mcp-file__icon {
    min-width: 22px;
    height: 20px;
    border-radius: 5px;
    font-size: 8px;
    background: rgba(125, 211, 252, 0.13);
    color: #bae6fd;
}

.docs-mcp-file-list--explorer .docs-mcp-file__name {
    font-weight: 650;
}

.docs-mcp-file-list--explorer .docs-mcp-file__meta {
    display: none;
}

.docs-mcp-file:hover,
.docs-mcp-file.is-selected {
    background: #eff6ff;
    border-color: rgba(59, 130, 246, 0.28);
}

.docs-mcp-file__icon {
    flex: 0 0 auto;
    min-width: 34px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 9px;
    font-weight: 900;
}

.docs-mcp-file.is-folder .docs-mcp-file__icon {
    background: rgba(245, 158, 11, 0.14);
    color: #fde68a;
}

#documents-container.docs-provider-mcp .docs-mcp-shell--ide {
    background:
        linear-gradient(90deg, rgba(125, 211, 252, 0.035), transparent 26%),
        var(--docs-mcp-surface);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer {
    border-right-color: var(--docs-mcp-line-strong);
    background:
        linear-gradient(180deg, rgba(125, 211, 252, 0.035), transparent 190px),
        var(--docs-mcp-surface);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__head,
#documents-container.docs-provider-mcp .docs-mcp-explorer__path,
#documents-container.docs-provider-mcp .docs-mcp-chat-toolbar,
#documents-container.docs-provider-mcp .docs-mcp-editor__tabbar {
    border-color: var(--docs-mcp-line);
    background: rgba(255, 255, 255, 0.014);
}

#documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex {
    background:
        linear-gradient(180deg, rgba(236, 253, 245, 0.018), transparent 42%),
        var(--docs-mcp-bg);
}

#documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex .docs-mcp-messages,
#documents-container.docs-provider-mcp .docs-mcp-editor {
    background: transparent;
}

.docs-mcp-file__body {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.docs-mcp-file__name {
    min-width: 0;
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-mcp-file__meta {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-mcp-side-empty {
    padding: 14px;
    border-radius: 4px;
    background: #252526;
    color: #858585;
    font-size: 12px;
    text-align: center;
}

.docs-mcp-side-empty.is-error {
    color: #fca5a5;
    background: #3b1f1f;
}

.docs-mcp-side-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.docs-mcp-side-actions button {
    min-height: 32px;
}

.docs-mcp-config {
    max-height: 150px;
    overflow: auto;
    margin: 10px 0 8px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #0f172a;
    color: #e2e8f0;
    font-size: 11px;
    line-height: 1.45;
}

.docs-mcp-copy-config {
    width: 100%;
    min-height: 34px;
}

.docs-mcp-tools {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.docs-mcp-tools-card .docs-mcp-tools {
    margin-top: 0;
}

.docs-mcp-tools > span {
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.docs-mcp-tools > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.docs-mcp-tools code {
    padding: 4px 6px;
    border-radius: 7px;
    background: #f1f5f9;
    color: #334155;
    font-size: 10px;
    font-weight: 800;
}

/* === Upload flow (minimal overlay) === */
.docs-upload-flow {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 14px;
    pointer-events: auto;
}

.docs-upload-flow__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.28));
}

.docs-upload-flow__card {
    position: relative;
    width: min(560px, 100%);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background:
        radial-gradient(110% 120% at 100% 0%, rgba(59, 130, 246, 0.14), transparent 58%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    animation: docs-upload-rise 0.24s ease;
}

@keyframes docs-upload-rise {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.docs-upload-flow__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.docs-upload-flow__title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.docs-upload-flow__subtitle {
    margin: 2px 0 0;
    font-size: 11px;
    color: #64748b;
}

.docs-upload-flow__close {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.docs-upload-flow__close:hover {
    color: #0f172a;
    border-color: rgba(59, 130, 246, 0.28);
}

.docs-upload-flow__meter {
    padding: 12px 16px 6px;
}

.docs-upload-flow__meter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.docs-upload-flow__meter-label {
    font-size: 12px;
    color: #334155;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-upload-flow__meter-value {
    font-size: 11px;
    color: #475569;
    font-weight: 700;
}

.docs-upload-flow__bar {
    margin-top: 8px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
}

.docs-upload-flow__bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    transition: width 0.24s ease;
}

.docs-upload-flow__meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: #64748b;
}

.docs-upload-flow__list {
    list-style: none;
    margin: 0;
    padding: 6px 10px 0;
    max-height: 180px;
    overflow-y: auto;
}

.docs-upload-flow__item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 8px 10px;
    color: #475569;
}

.docs-upload-flow__item.is-uploading {
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
}

.docs-upload-flow__item.is-success {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
}

.docs-upload-flow__item.is-error {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

.docs-upload-flow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.55);
    flex-shrink: 0;
}

.docs-upload-flow__item.is-uploading .docs-upload-flow__dot {
    background: #2563eb;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.16);
}

.docs-upload-flow__item.is-success .docs-upload-flow__dot {
    background: #059669;
}

.docs-upload-flow__item.is-error .docs-upload-flow__dot {
    background: #dc2626;
}

.docs-upload-flow__name {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-upload-flow__state {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.docs-upload-flow__foot {
    padding: 12px 16px 14px;
    display: flex;
    justify-content: flex-end;
}

.docs-upload-flow__cancel {
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* === Folder name modal === */
.docs-folder-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.docs-folder-modal__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(15, 23, 42, 0.28);
}

.docs-folder-modal__card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background:
        radial-gradient(120% 130% at 100% 0%, rgba(14, 165, 233, 0.12), transparent 60%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    padding: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    animation: docs-folder-pop 0.2s ease;
}

.docs-folder-modal__card--confirm {
    width: min(380px, 100%);
}

@keyframes docs-folder-pop {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.docs-folder-modal__title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.docs-folder-modal__hint {
    margin: 6px 0 12px;
    font-size: 12px;
    color: #64748b;
}

.docs-folder-modal__message {
    white-space: normal;
    overflow-wrap: anywhere;
}

.docs-confirm-modal__details {
    margin: 12px 0 0;
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.18);
}

.docs-confirm-modal__details > div {
    min-width: 0;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.96);
}

.docs-confirm-modal__details dt,
.docs-confirm-modal__details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.docs-confirm-modal__details dt {
    color: #64748b;
    font-size: 11px;
}

.docs-confirm-modal__details dd {
    color: #0f172a;
    font-size: 12px;
    font-weight: 750;
    text-align: right;
}

.docs-confirm-modal__details > div.is-emphasis {
    background: #ecfdf5;
}

.docs-confirm-modal__details > div.is-emphasis dt,
.docs-confirm-modal__details > div.is-emphasis dd {
    color: #047857;
    font-weight: 800;
}

.docs-confirm-modal__note {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.45;
}

html:is(.app-theme-dark, .dark) .docs-confirm-modal .docs-folder-modal__card {
    border-color: rgba(148, 163, 184, 0.22);
    background: #171a20;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

html:is(.app-theme-dark, .dark) .docs-confirm-modal .docs-folder-modal__title {
    color: #f3f4f6;
}

html:is(.app-theme-dark, .dark) .docs-confirm-modal .docs-folder-modal__hint,
html:is(.app-theme-dark, .dark) .docs-confirm-modal__note {
    color: #9ca3af;
}

html:is(.app-theme-dark, .dark) .docs-confirm-modal__details {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(148, 163, 184, 0.12);
}

html:is(.app-theme-dark, .dark) .docs-confirm-modal__details > div {
    background: #1f232b;
}

html:is(.app-theme-dark, .dark) .docs-confirm-modal__details dt {
    color: #9ca3af;
}

html:is(.app-theme-dark, .dark) .docs-confirm-modal__details dd {
    color: #f3f4f6;
}

html:is(.app-theme-dark, .dark) .docs-confirm-modal__details > div.is-emphasis {
    background: rgba(6, 78, 59, 0.42);
}

html:is(.app-theme-dark, .dark) .docs-confirm-modal__details > div.is-emphasis dt,
html:is(.app-theme-dark, .dark) .docs-confirm-modal__details > div.is-emphasis dd {
    color: #6ee7b7;
}

.docs-folder-modal__input {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.95);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    transition: all 0.16s ease;
}

.docs-folder-modal__input:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.docs-folder-modal__input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.docs-folder-modal__actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.docs-folder-modal__btn {
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.docs-folder-modal__btn--ghost {
    background: #fff;
    border-color: rgba(148, 163, 184, 0.28);
    color: #475569;
}

.docs-folder-modal__btn--primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.docs-folder-modal__btn--danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

/* === Mobile: always show actions/checkboxes === */
@media (hover: none) {
    .docs-item-actions {
        opacity: 1 !important;
    }

    .docs-select-checkbox {
        opacity: 1 !important;
    }

    .docs-mcp-file__menu-btn {
        opacity: 1;
    }

    .docs-ctx-btn {
        width: 36px;
        height: 36px;
    }
}

/* === Responsive tweaks === */
@media (max-width: 480px) {
    :root {
        --docs-pad-x: 8px;
        --docs-item-gap: 10px;
        --docs-top-offset: 0px;
    }

    .docs-confirm-modal__details > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .docs-confirm-modal__details dd {
        text-align: left;
    }

    .docs-toolbar {
        padding: 5px 6px;
        margin: 4px var(--docs-pad-x) 6px;
        gap: 6px;
        min-height: 42px;
    }

    .docs-back-btn,
    .docs-action-btn {
        width: 34px;
        height: 34px;
    }

    .docs-breadcrumbs {
        min-height: 34px;
    }

    .breadcrumb-item {
        padding: 5px 8px;
        font-size: 11px;
    }

    .docs-provider-tabs {
        margin-bottom: 8px;
    }

    .docs-mcp-panel {
        padding: 6px;
    }

    .docs-mcp-workspace {
        grid-template-columns: minmax(0, 1fr);
        padding: 0;
    }

    .docs-mcp-shell {
        padding: 0;
    }

    .docs-mcp-shell--ide {
        grid-template-columns: minmax(0, 1fr);
        padding: 0;
    }

    .docs-mcp-explorer {
        min-height: 220px;
        max-height: 34vh;
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    }

    .docs-mcp-chat-panel--codex {
        --docs-mcp-codex-content-width: calc(100% - 16px);
        --docs-mcp-codex-content-pad: 8px;
        min-height: 0;
    }

    .docs-mcp-view-tabs {
        justify-self: stretch;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .docs-mcp-chat-head,
    .docs-mcp-composer {
        grid-template-columns: minmax(0, 1fr);
    }

    .docs-mcp-chat-head {
        display: grid;
        padding: 14px;
    }

    .docs-mcp-messages {
        min-height: 260px;
        max-height: none;
        padding: 10px;
    }

    .docs-mcp-message {
        max-width: 100%;
    }

    .docs-mcp-composer {
        display: block;
        padding: 8px;
    }

    .docs-mcp-chat-panel--codex .docs-mcp-composer {
        --docs-mcp-composer-control: clamp(34px, 9vw, 38px);
        --docs-mcp-composer-button: clamp(31px, 8vw, 34px);
        --docs-mcp-composer-font: 12px;
        --docs-mcp-composer-gap: 6px;
        --docs-mcp-composer-pad-x: 9px;
        width: var(--docs-mcp-codex-content-width);
        margin: 8px auto;
        padding: 8px var(--docs-mcp-codex-content-pad);
        border-radius: 12px;
    }

    .docs-mcp-composer-settings {
        display: contents;
    }

    .docs-mcp-composer-footer {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .docs-mcp-composer-settings label {
        display: inline-flex;
        gap: 5px;
        font-size: 10px;
    }

    .docs-mcp-composer-settings .docs-mcp-access-setting {
        grid-column: auto;
    }

    .docs-mcp-composer-settings label span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .docs-mcp-composer-settings select {
        width: auto;
        max-width: 112px;
        height: 26px;
        font-size: 11px;
        padding: 0 6px;
    }

    .docs-mcp-composer textarea {
        min-height: var(--docs-mcp-composer-control, 40px);
        max-height: calc((1.45em * 10) + 22px);
        resize: none;
        font-size: var(--docs-mcp-composer-font, 12px);
    }

    .docs-mcp-composer .docs-mcp-settings-btn,
    .docs-mcp-composer .docs-mcp-send-btn,
    .docs-mcp-composer .docs-mcp-stop-btn {
        width: var(--docs-mcp-composer-button, 32px);
        min-width: var(--docs-mcp-composer-button, 32px);
        min-height: var(--docs-mcp-composer-button, 32px);
        padding: 0;
        overflow: hidden;
        font-size: 0;
    }

    .docs-mcp-composer .docs-mcp-settings-btn::before,
    .docs-mcp-composer .docs-mcp-send-btn::before,
    .docs-mcp-composer .docs-mcp-stop-btn::before {
        content: '↑';
        font-size: 19px;
        line-height: 1;
    }

    .docs-mcp-composer .docs-mcp-settings-btn::before,
    .docs-mcp-composer .docs-mcp-send-btn::before,
    .docs-mcp-composer .docs-mcp-stop-btn::before {
        content: none !important;
    }

    .docs-mcp-copy-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .docs-mcp-copy-btn {
        min-height: 38px;
    }

    .docs-item {
        padding: 8px 10px;
        padding-left: var(--docs-pad-x);
        gap: var(--docs-item-gap);
    }

    .docs-item-icon,
    .docs-icon-wrap {
        width: 36px;
        height: 36px;
    }

    .docs-icon-wrap svg {
        width: 20px;
        height: 20px;
    }

    .docs-item-name {
        font-size: 13px;
    }

    .docs-item-meta {
        font-size: 11px;
    }

    .docs-ai-panel {
        padding: 10px var(--docs-pad-x);
    }

    .docs-ai-actions-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .docs-ai-library-btn {
        width: 100%;
        justify-content: center;
    }

    .docs-actions-modal {
        padding:
            calc(var(--docs-tg-overlay-offset) + env(safe-area-inset-top, 0px) + 8px)
            8px
            calc(env(safe-area-inset-bottom, 0px) + 8px);
    }

    .docs-actions-modal__dialog {
        width: 100%;
        border-radius: 14px;
    }

    .docs-actions-modal__body {
        padding: 10px 12px 12px;
    }

    .docs-actions-grid,
    .docs-workflow-actions,
    .docs-presentation-grid,
    .docs-business-presets__grid {
        grid-template-columns: 1fr;
    }

    .docs-output-settings {
        grid-template-columns: 1fr;
    }

    .docs-template-slider__tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .docs-template-tab {
        flex: 0 0 auto;
    }

    .docs-preview-header {
        padding: calc(8px + var(--docs-top-offset)) var(--docs-pad-x) 8px;
        min-height: calc(48px + var(--docs-top-offset));
    }

    .docs-preview-text {
        padding: 16px var(--docs-pad-x);
        font-size: 12px;
    }

    .docs-result-bubble {
        padding: 12px;
    }

    .docs-empty-state {
        padding: 40px 16px;
    }

    .docs-empty-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .docs-empty-title {
        font-size: 15px;
    }

    .docs-upload-flow {
        padding: 10px;
        align-items: flex-end;
    }

    .docs-upload-flow__card {
        border-radius: 16px;
    }

    .docs-upload-flow__list {
        max-height: 150px;
    }

    .docs-folder-modal {
        padding: 10px;
    }

    .docs-folder-modal__card {
        border-radius: 16px;
        padding: 14px;
    }
}

/* Codex conversation: readable message rhythm and live progress. */
#documents-container.docs-provider-mcp .docs-mcp-messages {
    gap: 16px;
    padding: 18px clamp(12px, 2vw, 22px) 24px;
    scroll-padding-bottom: 24px;
}

#documents-container.docs-provider-mcp .docs-mcp-message {
    border-radius: 8px;
}

#documents-container.docs-provider-mcp .docs-mcp-message--assistant {
    width: min(100%, 880px);
    max-width: 100%;
    padding: 14px 16px 16px;
    border: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
    background: rgba(255, 255, 255, 0.025);
}

#documents-container.docs-provider-mcp .docs-mcp-message--assistant.is-pending {
    border-color: rgba(125, 211, 252, 0.22);
    background: rgba(125, 211, 252, 0.035);
    opacity: 1;
}

#documents-container.docs-provider-mcp .docs-mcp-message--user {
    padding: 12px 14px;
}

#documents-container.docs-provider-mcp .docs-mcp-message__role {
    min-height: 20px;
    margin-bottom: 10px;
    padding-right: 72px;
    justify-content: flex-start;
}

#documents-container.docs-provider-mcp .docs-mcp-message__time {
    margin-left: auto;
}

#documents-container.docs-provider-mcp .docs-mcp-message__copy {
    top: 7px;
    right: 8px;
    bottom: auto;
    width: 28px;
    height: 28px;
    color: var(--docs-mcp-muted, #8b95a4);
    background: transparent;
    opacity: 0.58;
}

#documents-container.docs-provider-mcp .docs-mcp-message__copy:hover,
#documents-container.docs-provider-mcp .docs-mcp-message__copy:focus-visible {
    color: var(--docs-mcp-text, #f3f4f6);
    background: rgba(148, 163, 184, 0.12);
    opacity: 1;
}

#documents-container.docs-provider-mcp .docs-mcp-message__text {
    color: var(--docs-mcp-text, #d7dde6);
    line-height: 1.66;
}

#documents-container.docs-provider-mcp .docs-codex-progress {
    gap: 12px;
}

#documents-container.docs-provider-mcp .docs-codex-progress__header {
    min-height: 0;
    padding: 0 0 9px;
    color: var(--docs-mcp-text, #f3f4f6);
    font-size: 12px;
    font-weight: 650;
}

#documents-container.docs-provider-mcp .docs-codex-progress__events {
    gap: 8px;
    padding-left: 15px;
}

#documents-container.docs-provider-mcp .docs-codex-progress__events::before {
    left: 4px;
}

#documents-container.docs-provider-mcp .docs-codex-event-line {
    padding: 6px 9px;
    line-height: 1.5;
}

#documents-container.docs-provider-mcp .docs-codex-event-line::before {
    left: -14px;
}

#documents-container.docs-provider-mcp .docs-codex-progress__thinking {
    padding-top: 0;
}

#documents-container.docs-provider-mcp .docs-codex-thinking {
    display: grid;
    grid-template-columns: repeat(3, 5px) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 6px;
    row-gap: 3px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 7px;
}

#documents-container.docs-provider-mcp .docs-codex-thinking strong {
    margin-left: 2px;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-codex-thinking em {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.4;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message--assistant {
    border-color: rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.045);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message--assistant.is-pending {
    border-color: rgba(37, 99, 235, 0.20);
    background: rgba(239, 246, 255, 0.76);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message__copy:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message__copy:focus-visible {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.07);
}

@media (max-width: 768px) {
    #documents-container.docs-provider-mcp .docs-mcp-messages {
        gap: 13px;
        padding: 12px 9px 18px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-message--assistant {
        padding: 12px 12px 14px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-message--user {
        max-width: 94%;
        padding: 10px 12px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-message__role {
        margin-bottom: 8px;
    }

    #documents-container.docs-provider-mcp .docs-codex-thinking {
        grid-template-columns: repeat(3, 5px) auto;
    }

    #documents-container.docs-provider-mcp .docs-codex-thinking em {
        grid-column: 1 / -1;
        padding-top: 2px;
    }
}

/* Projects use their own workspace chrome instead of the global app bar. */
#app-bar.docs-projects-appbar-hidden {
    display: none !important;
}

#documents-container.docs-provider-mcp .docs-mcp-workspace-close,
#documents-container.docs-provider-mcp .docs-mcp-workspace-control {
    position: absolute;
    top: 9px;
    z-index: 42;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.10);
    color: var(--docs-mcp-text, #d7dde6);
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-mobile-close {
    display: none;
}

#documents-container.docs-provider-mcp .docs-mcp-workspace-close {
    right: 24px;
}

#documents-container.docs-provider-mcp .docs-mcp-workspace-control {
    right: 64px;
}

#documents-container.docs-provider-mcp .docs-mcp-workspace-close:hover,
#documents-container.docs-provider-mcp .docs-mcp-workspace-close:focus-visible,
#documents-container.docs-provider-mcp .docs-mcp-workspace-control:hover,
#documents-container.docs-provider-mcp .docs-mcp-workspace-control:focus-visible {
    border-color: var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.20));
    background: rgba(148, 163, 184, 0.18);
    color: var(--docs-mcp-text-strong, #f8fafc);
    outline: none;
}

#documents-container.docs-provider-mcp .docs-mcp-workspace-close .docs-mcp-icon-svg,
#documents-container.docs-provider-mcp .docs-mcp-workspace-control .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

#documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-messages {
    padding-top: 52px;
}

#documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-settings-view {
    padding-top: 54px;
}

#documents-container.docs-provider-mcp .docs-mcp-editor__tabbar > button:last-child {
    margin-right: 42px;
}

.docs-mcp-composer-settings-modal__card {
    width: min(500px, calc(100vw - 28px));
    max-height: min(720px, calc(100dvh - 28px));
    overflow: hidden;
}

.docs-mcp-composer-settings-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.docs-mcp-composer-settings-modal__head .docs-folder-modal__title {
    min-width: 0;
    margin: 0;
    font-size: 16px;
}

.docs-mcp-composer-settings-modal__close {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.docs-mcp-composer-settings-modal__close:hover,
.docs-mcp-composer-settings-modal__close:focus-visible {
    background: rgba(148, 163, 184, 0.14);
    color: #0f172a;
    outline: none;
}

.docs-mcp-composer-settings-modal__close .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

.docs-mcp-composer-settings-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    margin-top: 14px;
    padding: 3px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 9px;
    background: rgba(148, 163, 184, 0.10);
}

.docs-mcp-composer-settings-tabs > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.docs-mcp-composer-settings-tabs > button.is-active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.10);
}

.docs-mcp-composer-settings-tabs .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

.docs-mcp-composer-settings-panel {
    min-height: 0;
    max-height: calc(100dvh - 230px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.docs-mcp-composer-settings-panel[hidden] {
    display: none !important;
}

.docs-mcp-project-control-context {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 2px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.docs-mcp-project-control-context > span {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
}

.docs-mcp-project-control-context .docs-mcp-icon-svg {
    width: 16px;
    height: 16px;
}

.docs-mcp-project-control-context > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.docs-mcp-project-control-context strong,
.docs-mcp-project-control-context small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-mcp-project-control-context strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.docs-mcp-project-control-context small {
    color: #64748b;
    font-size: 11px;
}

.docs-mcp-project-control-context > i {
    color: #0284c7;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.docs-mcp-project-control-context > i::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 999px;
    background: currentColor;
    animation: docs-mcp-pulse 1.3s ease-in-out infinite;
}

.docs-mcp-project-view-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 12px 0;
}

.docs-mcp-project-view {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 62px;
    padding: 9px 6px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.docs-mcp-project-view:hover,
.docs-mcp-project-view:focus-visible,
.docs-mcp-project-view.is-active {
    border-color: rgba(37, 99, 235, 0.34);
    background: rgba(219, 234, 254, 0.56);
    color: #1d4ed8;
    outline: none;
}

.docs-mcp-project-view .docs-mcp-icon-svg {
    width: 17px;
    height: 17px;
}

.docs-mcp-project-actions {
    display: grid;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.docs-mcp-project-actions > button {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 3px;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: transparent;
    color: #334155;
    text-align: left;
    cursor: pointer;
}

.docs-mcp-project-actions > button:hover,
.docs-mcp-project-actions > button:focus-visible {
    background: rgba(148, 163, 184, 0.08);
    outline: none;
}

.docs-mcp-project-actions > button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.docs-mcp-project-actions > button > span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(148, 163, 184, 0.12);
}

.docs-mcp-project-actions .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

.docs-mcp-project-actions strong {
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
}

.docs-mcp-project-actions i {
    color: #94a3b8;
    font-size: 18px;
    font-style: normal;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-workspace-close,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-workspace-control {
    background: rgba(255, 255, 255, 0.86);
    color: #475569;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-tabs {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.055);
}

html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-tabs > button,
html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-modal__close {
    color: #9ca3af;
}

html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-tabs > button.is-active {
    background: #303030;
    color: #f3f4f6;
    box-shadow: none;
}

html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-modal__close:hover,
html:is(.app-theme-dark, .dark) .docs-mcp-composer-settings-modal__close:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
}

html:is(.app-theme-dark, .dark) .docs-mcp-project-control-context,
html:is(.app-theme-dark, .dark) .docs-mcp-project-actions {
    border-color: rgba(255, 255, 255, 0.10);
}

html:is(.app-theme-dark, .dark) .docs-mcp-project-control-context > span,
html:is(.app-theme-dark, .dark) .docs-mcp-project-actions > button > span {
    background: rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
}

html:is(.app-theme-dark, .dark) .docs-mcp-project-control-context strong,
html:is(.app-theme-dark, .dark) .docs-mcp-project-actions > button {
    color: #e5e7eb;
}

html:is(.app-theme-dark, .dark) .docs-mcp-project-control-context small {
    color: #9ca3af;
}

html:is(.app-theme-dark, .dark) .docs-mcp-project-view {
    border-color: rgba(255, 255, 255, 0.10);
    color: #9ca3af;
}

html:is(.app-theme-dark, .dark) .docs-mcp-project-view:hover,
html:is(.app-theme-dark, .dark) .docs-mcp-project-view:focus-visible,
html:is(.app-theme-dark, .dark) .docs-mcp-project-view.is-active {
    border-color: rgba(125, 211, 252, 0.28);
    background: rgba(125, 211, 252, 0.09);
    color: #bae6fd;
}

html:is(.app-theme-dark, .dark) .docs-mcp-project-actions > button {
    border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    #documents-container.docs-provider-mcp .docs-mcp-explorer-toggle {
        position: absolute;
        top: max(8px, env(safe-area-inset-top, 0px));
        right: auto;
        bottom: auto;
        left: 9px;
        z-index: 42;
        grid-area: auto;
        display: inline-grid;
        place-items: center;
        width: 32px;
        height: 32px;
        min-width: 32px;
        padding: 0;
        border: 1px solid transparent;
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.10);
        color: var(--docs-mcp-text, #d7dde6);
    }

    #documents-container.docs-provider-mcp .docs-mcp-shell--ide.is-explorer-open .docs-mcp-explorer-toggle {
        display: none;
    }

    #documents-container.docs-provider-mcp .docs-mcp-explorer-mobile-close {
        display: inline-flex;
    }

    #documents-container.docs-provider-mcp .docs-mcp-workspace-close,
    #documents-container.docs-provider-mcp .docs-mcp-workspace-control {
        top: max(8px, env(safe-area-inset-top, 0px));
    }

    #documents-container.docs-provider-mcp .docs-mcp-workspace-close {
        right: 9px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-workspace-control {
        right: 49px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-messages {
        padding-top: max(48px, calc(env(safe-area-inset-top, 0px) + 42px));
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-settings-view {
        padding-top: max(50px, calc(env(safe-area-inset-top, 0px) + 44px));
    }

    .docs-mcp-composer-settings-modal__card {
        width: min(440px, calc(100vw - 18px));
        max-height: calc(100dvh - 18px);
        padding: 15px;
    }

    .docs-mcp-composer-settings-panel {
        max-height: calc(100dvh - 210px);
    }

    .docs-mcp-project-view-grid {
        gap: 4px;
    }

    .docs-mcp-project-view {
        min-height: 58px;
        padding-inline: 4px;
    }
}

/* === Tablet === */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --docs-pad-x: 10px;
        --docs-top-offset: 0px;
    }
}

@media (max-width: 768px) {
    #documents-container {
        padding-top: 0;
    }

    #documents-container.docs-provider-mcp {
        flex: 1 1 auto;
        height: auto;
        max-height: none;
        padding-top: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    #documents-container.docs-provider-mcp .docs-file-list {
        padding: 0;
        overflow: hidden;
    }

    .docs-toolbar {
        padding-top: 6px;
        padding-bottom: 6px;
        margin-top: 4px;
        margin-bottom: 6px;
        min-height: 42px;
    }

    .docs-mcp-shell--ide {
        grid-template-columns: minmax(0, 1fr);
        height: 100%;
        min-height: 0;
    }

    .docs-mcp-explorer {
        position: absolute;
        inset: 0 auto 0 0;
        z-index: 25;
        width: 70vw;
        min-width: 240px;
        max-width: 360px;
        height: 100%;
        min-height: 0;
        max-height: none;
        border-right: 0;
        border-bottom: 0;
        border-radius: 0 16px 16px 0;
        box-shadow: 18px 0 40px rgba(0, 0, 0, 0.24);
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }

    .docs-mcp-shell--ide.is-explorer-open .docs-mcp-explorer {
        transform: translateX(0);
    }

    .docs-mcp-explorer__head {
        border-radius: 16px 16px 0 0;
    }

    .docs-mcp-explorer-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .docs-mcp-explorer-toggle {
        width: 36px;
        min-width: 36px;
        padding: 0;
        font-size: 16px;
    }

    .docs-mcp-explorer-backdrop {
        position: absolute;
        inset: 0;
        z-index: 20;
        border: 0;
        background: rgba(0, 0, 0, 0.34);
        cursor: pointer;
    }

    .docs-mcp-shell--ide.is-explorer-open .docs-mcp-explorer-backdrop {
        display: block;
    }

    .docs-mcp-chat-panel--codex {
        --docs-mcp-codex-content-width: calc(100% - 16px);
        --docs-mcp-codex-content-pad: 8px;
        border-radius: 0;
    }

    .docs-mcp-chat-toolbar {
        gap: 6px;
        padding: 7px var(--docs-mcp-codex-content-pad);
    }

    .docs-mcp-chat-toolbar button {
        min-width: 0;
        max-width: 96px;
        padding: 7px 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 11px;
    }

    .docs-mcp-chat-toolbar .docs-mcp-dialog-select {
        min-width: 0;
        font-size: 11px;
        padding: 7px 8px;
    }

    .docs-mcp-explorer-toggle {
        max-width: 36px !important;
    }
}



.platform-android {
    --docs-top-offset: 0px;
}

.platform-ios {
    --docs-top-offset: 0px;
}

@media (max-width: 768px) {
    .platform-ios #documents-container.docs-provider-mcp {
        padding-top: 0;
    }

    .platform-ios .docs-toolbar {
        margin-top: 0;
    }

    .platform-ios .docs-mcp-shell--ide {
        height: 100%;
    }

    .platform-ios .docs-mcp-chat-panel--codex .docs-mcp-composer {
        margin-bottom: max(4px, calc(env(safe-area-inset-bottom, 0px) - 8px));
    }
}

/* === Desktop enhancements === */
@media (min-width: 769px) {
    .docs-item:hover {
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    }

    .docs-file-list {
        padding: 12px var(--docs-pad-x) 28px;
    }
}

/* === Dark mode support (if app uses it) === */
@media (prefers-color-scheme: dark) {
    .docs-more-menu {
        background: #1f2937;
        border-color: rgba(255, 255, 255, 0.08);
    }

    .docs-more-menu-item {
        color: #e5e7eb;
    }

    .docs-more-menu-item:hover {
        background: rgba(255, 255, 255, 0.06);
    }
}

/* === Animation utility === */
@keyframes docs-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Smooth selection transitions */
.docs-item,
.docs-select-checkbox,
.docs-icon-wrap {
    will-change: transform;
}

@media (max-width: 640px) {
    .docs-template-slider__track--compact {
        grid-template-columns: minmax(0, 1fr);
    }

    .docs-template-slider__toolbar,
    .docs-template-slider__actions {
        align-items: stretch;
    }

    .docs-template-manage-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Scrollbar for result body */
.docs-result-body::-webkit-scrollbar {
    width: 4px;
}

.docs-result-body::-webkit-scrollbar-track {
    background: transparent;
}

.docs-result-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

/* === Documents mobile polish === */
@media (max-width: 768px) {
    #documents-container button,
    #documents-container [role="button"],
    #documents-container input,
    #documents-container select,
    #documents-container textarea {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    #documents-container {
        min-height: 0;
    }

    .docs-file-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
    }

    .docs-toolbar {
        width: calc(100% - (var(--docs-pad-x) * 2));
        max-width: none;
        overflow: hidden;
    }

    .docs-breadcrumbs {
        min-width: 0;
    }

    .docs-item {
        min-height: 54px;
        border-radius: 12px;
    }

    .docs-item-actions {
        opacity: 1;
    }

    .docs-item-name,
    .docs-item-meta {
        max-width: 100%;
    }

    #documents-container.docs-provider-mcp,
    #documents-container.docs-provider-mcp .docs-file-list,
    #documents-container.docs-provider-mcp .docs-mcp-shell--ide,
    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex {
        min-height: 0;
        max-height: 100%;
    }

    .docs-mcp-chat-panel--codex {
        min-width: 0;
    }

    .docs-mcp-chat-panel--codex > .docs-mcp-chat-toolbar,
    .docs-mcp-chat-panel--codex > .docs-mcp-messages,
    .docs-mcp-chat-panel--codex > .docs-mcp-composer,
    .docs-mcp-chat-panel--codex > .docs-mcp-settings-view,
    .docs-mcp-chat-panel--codex > .docs-mcp-editor {
        width: 100%;
        max-width: 100%;
    }

    .docs-mcp-chat-toolbar {
        position: sticky;
        top: 0;
        z-index: 10;
        min-height: 48px;
        gap: 4px;
        overflow-x: hidden;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .docs-mcp-chat-toolbar::-webkit-scrollbar,
    .docs-mcp-view-tabs::-webkit-scrollbar,
    .docs-cloud-subtabs::-webkit-scrollbar {
        display: none;
    }

    .docs-mcp-chat-toolbar > button,
    .docs-mcp-view-tabs button,
    .docs-cloud-subtabs button {
        flex: 0 0 auto;
        max-width: none;
        min-height: 38px;
        white-space: nowrap;
    }

    .docs-cloud-subtabs button {
        min-height: 30px;
    }

    .docs-mcp-chat-toolbar .docs-mcp-dialog-picker {
        flex: 1 1 0;
        min-width: 0;
    }

    .docs-mcp-chat-toolbar .docs-mcp-dialog-current {
        width: 100%;
        max-width: none;
        min-height: 38px;
    }

    .docs-mcp-chat-toolbar .docs-mcp-dialog-item__main {
        width: 100%;
        max-width: none;
    }

    .docs-mcp-view-tabs,
    .docs-cloud-subtabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .docs-cloud-subtabs {
        overflow-x: auto;
    }

    .docs-mcp-view-tabs {
        flex: 0 0 max-content;
        max-width: max-content;
        overflow-x: visible;
    }

    .docs-mcp-explorer {
        width: min(88vw, 380px);
        min-width: min(88vw, 280px);
        border-radius: 0 12px 12px 0;
    }

    .docs-mcp-explorer__head {
        border-radius: 0 12px 0 0;
    }

    .docs-mcp-file-list--explorer {
        padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    }

    .docs-mcp-file,
    .docs-mcp-file__main {
        min-height: 38px;
    }

    .docs-mcp-file__menu-btn {
        opacity: 1;
    }

    .docs-mcp-chat-panel--codex .docs-mcp-messages {
        min-height: 0;
        padding: 10px 8px;
    }

    .docs-mcp-message {
        max-width: 100%;
    }

    .docs-mcp-message__text,
    .docs-codex-command__full,
    .docs-codex-command__output,
    .docs-codex-approval,
    .docs-codex-approval pre,
    .docs-codex-result,
    .docs-codex-error {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .docs-codex-command__full,
    .docs-codex-command__output {
        overflow-x: auto;
    }

    .docs-mcp-chat-panel--codex .docs-mcp-composer {
        width: calc(100% - 16px);
        margin: 8px auto max(8px, env(safe-area-inset-bottom, 0px));
        border-radius: 12px;
    }

    .docs-mcp-composer textarea {
        font-size: var(--docs-mcp-composer-font, 12px);
    }

    .docs-mcp-composer .docs-mcp-send-btn::before {
        content: none !important;
    }

    .docs-mcp-settings-view {
        width: 100%;
        padding: 10px 8px 18px;
    }

    .docs-mcp-settings-card,
    .docs-cloud-card {
        border-radius: 8px;
        padding: 12px;
    }

    .docs-mcp-settings-hero {
        align-items: flex-start;
        gap: 8px;
    }

    .docs-mcp-settings-hero strong {
        font-size: 18px;
    }

    .docs-cloud-server-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 7px;
        padding: 8px;
    }

    .docs-cloud-server-row strong,
    .docs-cloud-server-row span:not(.docs-cloud-badge) {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .docs-cloud-server-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 6px;
    }

    .docs-cloud-server-actions > *,
    .docs-cloud-actions button,
    .docs-cloud-server-row button,
    .docs-cloud-server-row a {
        width: 100%;
        min-height: 32px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .docs-cloud-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .docs-mcp-chat-panel--codex {
        --docs-mcp-codex-content-width: 100%;
        --docs-mcp-codex-content-pad: 8px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex .docs-mcp-composer {
        --docs-mcp-composer-control: 34px;
        --docs-mcp-composer-button: 32px;
        --docs-mcp-composer-font: 12px;
        --docs-mcp-composer-gap: 5px;
        --docs-mcp-composer-pad-x: 8px;
    }

    .docs-mcp-chat-toolbar .docs-mcp-dialog-picker {
        flex-basis: 164px;
    }

    .docs-mcp-view-tabs {
        display: flex;
        justify-self: auto;
    }

    .docs-mcp-composer-settings {
        display: contents;
    }

    .docs-cloud-subtabs {
        margin-right: -2px;
        margin-left: -2px;
    }

    .docs-cloud-server-actions,
    .docs-cloud-services {
        grid-template-columns: minmax(0, 1fr);
    }

    .docs-cloud-custom-form {
        padding: 9px;
    }

    .docs-item {
        min-height: 52px;
    }

    .docs-ctx-btn {
        width: 36px;
        height: 36px;
    }
}

/* Compact OpenAI-like MCP toolbar */
.docs-mcp-chat-toolbar .docs-mcp-dialog-current {
    display: flex !important;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding-top: 0;
    padding-bottom: 0;
}

.docs-mcp-dialog-current span {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-mcp-dialog-current small {
    display: none !important;
}

.docs-mcp-icon-svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.docs-mcp-toolbar-icon-btn,
.docs-mcp-view-tabs button {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center;
    border-radius: 8px !important;
    font-size: 0 !important;
}

.docs-mcp-toolbar-icon-btn .docs-mcp-icon-svg,
.docs-mcp-view-tabs button .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

.docs-mcp-view-tabs {
    flex: 0 0 max-content !important;
    display: inline-flex !important;
    grid-template-columns: none !important;
    gap: 3px;
    padding: 3px;
    border-radius: 10px;
    margin-left: auto;
    max-width: max-content;
    overflow: visible;
}

.docs-mcp-view-tabs button.is-active .docs-mcp-icon-svg {
    stroke-width: 2.1;
}

@media (max-width: 640px) {
    .docs-mcp-chat-toolbar .docs-mcp-dialog-picker {
        flex: 1 1 0;
        min-width: 0;
    }

    .docs-mcp-chat-toolbar .docs-mcp-dialog-current {
        min-height: 34px;
        padding-right: 28px;
    }
}

/* === Light theme for Documents MCP/Codex workspace === */
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp {
    --docs-mcp-bg: #f5f7fb;
    --docs-mcp-surface: #ffffff;
    --docs-mcp-surface-soft: #f8fafc;
    --docs-mcp-surface-raised: #ffffff;
    --docs-mcp-line: rgba(15, 23, 42, 0.08);
    --docs-mcp-line-strong: rgba(148, 163, 184, 0.28);
    --docs-mcp-text: #0f172a;
    --docs-mcp-muted: #64748b;
    --docs-mcp-accent: #2563eb;
    --docs-mcp-accent-soft: rgba(37, 99, 235, 0.08);
    color: var(--docs-mcp-text);
    color-scheme: light;
    background: linear-gradient(180deg, #fbfdff 0%, var(--docs-mcp-bg) 100%);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-file-list {
    background: var(--docs-mcp-bg);
}

html:not(.app-theme-dark):not(.dark) body.docs-mode-active #chat-area {
    background: #f5f7fb !important;
    color: #0f172a !important;
}

html:not(.app-theme-dark):not(.dark) body.docs-mode-active #app-bar {
    background: #f5f7fb !important;
    border-bottom: 0 !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

html:not(.app-theme-dark):not(.dark) #app-bar #menu-btn.docs-appbar-back,
html:not(.app-theme-dark):not(.dark) .docs-provider-mcp .docs-back-btn {
    color: #334155;
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(148, 163, 184, 0.24);
}

html:not(.app-theme-dark):not(.dark) #app-bar #menu-btn.docs-appbar-back:hover,
html:not(.app-theme-dark):not(.dark) .docs-provider-mcp .docs-back-btn:hover {
    color: #1d4ed8;
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.28);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-shell--ide {
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.035), transparent 30%),
        var(--docs-mcp-surface);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer {
    border-right-color: var(--docs-mcp-line-strong);
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent 190px),
        var(--docs-mcp-surface);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex {
    background:
        linear-gradient(180deg, rgba(219, 234, 254, 0.36), transparent 42%),
        var(--docs-mcp-bg);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer__head,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer__path,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-chat-toolbar,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-editor__tabbar {
    background: rgba(255, 255, 255, 0.84);
    border-color: var(--docs-mcp-line);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-chat-toolbar {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer__head strong,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer__path,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-dialog-menu__head > span,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-hero strong,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-section-head strong,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-limit__head strong,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-payment-row strong {
    color: var(--docs-mcp-text);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer__head button,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer__path button,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer__selection button,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-editor__tabbar button {
    color: #475569;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer__head button:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer__path button:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer__selection button:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-editor__tabbar button:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer__head-actions button:hover {
    background: var(--docs-mcp-accent-soft);
    color: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-upload-drop,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-custom-form,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-server-row,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-limit,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-grid div,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-file-list__soft-empty {
    background: var(--docs-mcp-surface-soft);
    border-color: var(--docs-mcp-line-strong);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-upload-drop,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-upload-drop small,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-file-list__soft-empty,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-file-list__soft-empty p,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-loading-text,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-hero span,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-grid span,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-note,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-section-head span,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-limit__head span,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-limit small,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-server-row span,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-server-row small,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-empty,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-muted-action,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-dialog-current small,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-dialog-item__main small,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-dialog-empty,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-editor__tab small,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-file__meta {
    color: var(--docs-mcp-muted) !important;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-upload-drop button,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-actions button,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-server-row button,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-server-row a,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-chat-toolbar button,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-dialog-select,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-select,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-custom-grid input,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-custom-grid select {
    background: #ffffff;
    border-color: var(--docs-mcp-line-strong);
    color: #334155;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-chat-toolbar button:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-actions button:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-server-row button:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-server-row a:hover {
    background: var(--docs-mcp-accent-soft);
    border-color: rgba(37, 99, 235, 0.28);
    color: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-dialog-menu,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-file__menu {
    background: #ffffff;
    border-color: var(--docs-mcp-line-strong);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-dialog-item.is-active,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-dialog-item:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file.is-selected,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-file__menu button:hover {
    background: var(--docs-mcp-accent-soft);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-dialog-item.is-active .docs-mcp-dialog-item__main span {
    color: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-file__menu button,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-file__name,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-grid strong {
    color: var(--docs-mcp-text);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-file__menu-btn {
    color: #64748b;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-file__menu-btn:hover {
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-chat-loading {
    background: #ffffff;
    border-color: var(--docs-mcp-line-strong);
    color: #334155;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-view-tabs,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-subtabs {
    background: rgba(248, 250, 252, 0.92);
    border-color: var(--docs-mcp-line-strong);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-subtabs button {
    color: var(--docs-mcp-muted);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-subtabs button:hover {
    background: var(--docs-mcp-accent-soft);
    color: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-subtabs button.is-active {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.24);
    color: #1d4ed8;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-subtabs em {
    background: #dcfce7;
    color: #166534;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-service {
    background: #ffffff;
    border-color: var(--docs-mcp-line-strong);
    color: #334155;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-badge {
    background: #f1f5f9;
    color: #334155;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-badge.is-good,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-service-row strong,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-hero em.is-online {
    color: #15803d;
    background: rgba(34, 197, 94, 0.10);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-badge.is-warn {
    color: #92400e;
    background: rgba(245, 158, 11, 0.12);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-badge.is-danger,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-hero em.is-offline {
    color: #b91c1c;
    background: rgba(248, 113, 113, 0.12);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-card--codex,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-card {
    background: #ffffff;
    border-color: var(--docs-mcp-line-strong);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-hero em {
    background: #f8fafc;
    color: var(--docs-mcp-text);
    border-color: var(--docs-mcp-line-strong);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-field--dark > span,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-custom-form summary,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-server-row strong {
    color: var(--docs-mcp-text);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-composer,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex .docs-mcp-composer {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(203, 213, 225, 0.84);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-composer-settings label {
    color: var(--docs-mcp-muted);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-composer textarea,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-composer-settings select {
    background: #ffffff;
    border-color: rgba(203, 213, 225, 0.9);
    color: #0f172a;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-composer .docs-mcp-send-btn {
    background: #111827;
    color: #ffffff;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-composer .docs-mcp-send-btn:hover:not(:disabled) {
    background: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-input-modes {
    background: #f1f5f9;
    border-color: rgba(203, 213, 225, 0.9);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-input-modes > button {
    color: #64748b;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-input-modes > button.is-active {
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message {
    border-color: rgba(203, 213, 225, 0.78);
    background: #ffffff;
    color: var(--docs-mcp-text);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message--user {
    background: #e8f0ff;
    border-color: rgba(37, 99, 235, 0.24);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message--assistant {
    background: #ffffff;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message--system {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.36);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message__role {
    color: #2563eb;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message--system .docs-mcp-message__role,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-progress__title,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-command__status {
    color: var(--docs-mcp-muted);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message__text,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-progress__header,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-event-line,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-answer {
    color: var(--docs-mcp-text);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-markdown h3,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-markdown h4,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-markdown h5,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-markdown strong {
    color: #0f172a;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-markdown a {
    color: #2563eb;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-markdown code {
    background: #eef2ff;
    color: #1e3a8a;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-markdown-code,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-markdown-table-wrap {
    background: #ffffff;
    border-color: rgba(203, 213, 225, 0.86);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-markdown th,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-markdown td {
    border-color: rgba(203, 213, 225, 0.86);
    color: #334155;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-markdown th {
    background: #f8fafc;
    color: #0f172a;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-progress__thinking {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 42%);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-event-line span {
    color: #2563eb;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-thinking {
    border-color: rgba(37, 99, 235, 0.24);
    background: rgba(239, 246, 255, 0.88);
    color: #1e3a8a;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-thinking em {
    color: #3b82f6;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-command {
    background: #f8fafc;
    border-color: rgba(203, 213, 225, 0.86);
    color: #334155;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-command summary::before {
    color: #64748b;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-command__badge {
    background: #eff6ff;
    color: #2563eb;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-command summary code {
    color: #1e293b;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-action.is-running .docs-codex-command__status {
    color: #2563eb;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-action.is-done .docs-codex-command__status {
    color: #15803d;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-action.is-failed .docs-codex-command__status {
    color: #be123c;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-approval {
    background: #fffbeb;
    border-color: rgba(217, 119, 6, 0.32);
    color: #92400e;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-approval__head span {
    color: #b45309;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-approval__head strong {
    color: #78350f;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-approval p {
    color: #92400e;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-approval details {
    background: #ffffff;
    border-color: rgba(217, 119, 6, 0.22);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-approval summary,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-approval pre {
    color: #78350f;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-approval pre {
    border-top-color: rgba(217, 119, 6, 0.2);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-approval.is-approved {
    background: #ecfdf5;
    border-color: rgba(22, 163, 74, 0.28);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-approval.is-rejected {
    background: #fff1f2;
    border-color: rgba(225, 29, 72, 0.28);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-command__full,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-command__output {
    background: #ffffff;
    border-top-color: rgba(203, 213, 225, 0.86);
    color: #334155;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-command__output {
    color: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-result {
    background: #eff6ff;
    color: #1e3a8a;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-error,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-side-empty.is-error {
    background: #fff1f2;
    color: #be123c;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-editor,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-editor__tab,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-editor__tabbar {
    background: #ffffff;
    color: var(--docs-mcp-text);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-editor__notice {
    background: #fffbeb;
    border-bottom-color: rgba(245, 158, 11, 0.22);
    color: #92400e;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-code {
    background: #ffffff;
    color: #0f172a;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-code .tok-comment {
    color: #15803d;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-code .tok-string {
    color: #b45309;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-code .tok-number {
    color: #0369a1;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-code .tok-keyword,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-code .tok-builtin {
    color: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-code .tok-punct {
    color: #475569;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-side-empty {
    background: #f8fafc;
    color: var(--docs-mcp-muted);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-config {
    background: #f8fafc;
    border-color: rgba(203, 213, 225, 0.86);
    color: #334155;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-tools > span,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-tools code {
    color: #334155;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-tools code {
    background: #eef2ff;
}

@media (max-width: 768px) {
    html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer {
        box-shadow: 18px 0 40px rgba(15, 23, 42, 0.18);
    }

    html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer-backdrop {
        background: rgba(15, 23, 42, 0.22);
    }
}

/* === Explicit loading states for chat and environment switching === */
.docs-mcp-dialog-picker.is-loading .docs-mcp-dialog-current,
.docs-mcp-dialog-current.is-loading {
    cursor: progress;
}

.docs-mcp-inline-spinner {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    display: inline-block;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.28);
    border-top-color: var(--docs-mcp-accent, #7dd3fc);
    animation: docs-spin 0.72s linear infinite;
}

.docs-mcp-dialog-current .docs-mcp-inline-spinner,
.docs-mcp-dialog-item__main .docs-mcp-inline-spinner {
    margin-right: 2px;
}

.docs-mcp-dialog-item.is-loading .docs-mcp-dialog-item__main {
    color: var(--docs-mcp-text, #d7dde6);
}

.docs-mcp-dialog-current:disabled,
.docs-mcp-dialog-item__main:disabled,
.docs-mcp-dialog-item__rename:disabled,
.docs-mcp-dialog-item__delete:disabled,
.docs-mcp-dialog-menu__icon:disabled,
.docs-cloud-actions button:disabled,
.docs-cloud-server-row button:disabled,
.docs-mcp-select:disabled {
    opacity: 0.62;
    cursor: wait;
}

.docs-mcp-chat-loading--messages {
    margin: auto;
}

.docs-cloud-card {
    position: relative;
}

.docs-cloud-card.is-switching {
    overflow: hidden;
}

.docs-cloud-card.is-switching a[aria-disabled="true"] {
    opacity: 0.62;
    pointer-events: none;
}

.docs-cloud-server-row.is-switching {
    border-color: rgba(125, 211, 252, 0.36);
    background: rgba(125, 211, 252, 0.08);
}

.docs-cloud-switch-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: max-content;
    min-width: min(220px, calc(100% - 20px));
    max-width: calc(100% - 20px);
    min-height: 58px;
    transform: translate(-50%, -50%);
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    text-align: left;
    color: var(--docs-mcp-text, #d7dde6);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(23, 26, 31, 0.94);
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px) saturate(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(1.05);
}

.docs-cloud-switch-loader > div:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.docs-cloud-switch-loader strong,
.docs-cloud-switch-loader span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-cloud-switch-loader strong {
    font-size: 12px;
    font-weight: 850;
}

.docs-cloud-switch-loader span {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 11px;
    font-weight: 700;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-inline-spinner {
    border-color: rgba(148, 163, 184, 0.32);
    border-top-color: #2563eb;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-switch-loader {
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 16px 44px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-switch-loader span {
    color: #64748b;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-server-row.is-switching {
    border-color: rgba(37, 99, 235, 0.30);
    background: rgba(219, 234, 254, 0.62);
}

/* === Projects workspace refinement === */
#documents-container.docs-provider-mcp .docs-mcp-shell--ide {
    grid-template-columns: 264px minmax(0, 1fr);
    background: var(--docs-mcp-surface, #1b2027);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer {
    background: var(--docs-mcp-surface, #1b2027);
}

#documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex {
    background: var(--docs-mcp-bg, #171a1f);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__head {
    min-height: 48px;
    padding: 0 12px;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__head strong {
    font-size: 13px;
    font-weight: 760;
    letter-spacing: 0;
    text-transform: none;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__path {
    min-height: 40px;
    padding: 4px 10px;
}

#documents-container.docs-provider-mcp .docs-mcp-chat-toolbar {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(240px, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 7px 10px;
    background: var(--docs-mcp-surface, #1b2027);
    border-bottom: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.docs-mcp-workspace-context {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-mcp-workspace-context__project {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.docs-mcp-workspace-context__project small {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.docs-mcp-workspace-context__project strong {
    min-width: 0;
    overflow: hidden;
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-mcp-environment-chip {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 112px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    color: var(--docs-mcp-muted, #8b95a4);
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 999px;
    background: var(--docs-mcp-surface-soft, #202631);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.docs-mcp-environment-chip i,
.docs-mcp-running-status i {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
}

.docs-mcp-environment-chip.is-ready i {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.10);
}

.docs-mcp-environment-chip > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-mcp-toolbar-chat,
.docs-mcp-toolbar-navigation {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.docs-mcp-toolbar-chat .docs-mcp-dialog-picker {
    flex: 1 1 auto;
    min-width: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-chat-toolbar .docs-mcp-dialog-current {
    min-height: 42px;
    padding: 5px 30px 5px 10px;
    border-color: transparent;
    background: var(--docs-mcp-surface-soft, #202631);
}

.docs-mcp-dialog-current__copy {
    min-width: 0;
    display: grid;
    gap: 1px;
    text-align: left;
}

.docs-mcp-dialog-current__copy small {
    display: block !important;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
}

.docs-mcp-dialog-current__copy strong {
    min-width: 0;
    overflow: hidden;
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 12px;
    font-weight: 740;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-mcp-running-status {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.docs-mcp-running-status i {
    background: var(--docs-mcp-accent, #7dd3fc);
    animation: docs-mcp-work-pulse 1.4s ease-in-out infinite;
}

@keyframes docs-mcp-work-pulse {
    0%, 100% { opacity: 0.42; transform: scale(0.86); }
    50% { opacity: 1; transform: scale(1); }
}

#documents-container.docs-provider-mcp .docs-mcp-view-tabs {
    gap: 2px;
    padding: 2px;
    border-radius: 7px;
}

#documents-container.docs-provider-mcp .docs-mcp-view-tabs button {
    width: auto !important;
    min-width: 34px !important;
    max-width: none !important;
    min-height: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 9px !important;
    border-radius: 5px !important;
}

.docs-mcp-view-tab__label {
    font-size: 11px;
    font-weight: 720;
    line-height: 1;
}

#documents-container.docs-provider-mcp .docs-mcp-view-tabs button.is-active {
    background: var(--docs-mcp-surface-raised, #242b36);
    box-shadow: none;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome {
    max-width: 920px;
    padding-top: clamp(34px, 7vh, 68px);
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__grid {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 8px;
    background: transparent;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__feature {
    min-height: 96px;
    padding: 14px;
    border: 0;
    border-right: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
    border-bottom: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__feature:nth-child(2n) {
    border-right: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__feature:nth-last-child(-n + 2) {
    border-bottom: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-message--assistant {
    padding: 10px 2px 18px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#documents-container.docs-provider-mcp .docs-mcp-message--user {
    width: fit-content;
    max-width: min(82%, 760px);
    margin-left: auto;
    padding: 10px 12px;
    border-color: rgba(125, 211, 252, 0.18);
    border-radius: 8px;
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.10));
    box-shadow: none;
}

#documents-container.docs-provider-mcp .docs-mcp-message--system {
    padding: 8px 10px;
    border-width: 0 0 0 2px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex .docs-mcp-composer {
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

#documents-container.docs-provider-mcp .docs-mcp-composer textarea {
    border-radius: 6px;
}

@media (max-width: 1180px) {
    .docs-mcp-view-tab__label,
    .docs-mcp-running-status span {
        display: none;
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-toolbar {
        grid-template-columns: minmax(140px, 190px) minmax(220px, 1fr) auto;
    }

    #documents-container.docs-provider-mcp .docs-mcp-view-tabs button {
        width: 34px !important;
        max-width: 34px !important;
        padding: 0 !important;
    }
}

@media (max-width: 768px) {
    #documents-container.docs-provider-mcp .docs-mcp-shell--ide {
        grid-template-columns: minmax(0, 1fr);
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-toolbar {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        grid-template-areas:
            "explorer context navigation"
            "chat chat chat";
        gap: 6px;
        min-height: 94px;
        padding: 6px 8px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-explorer-toggle {
        grid-area: explorer;
    }

    .docs-mcp-workspace-context {
        grid-area: context;
    }

    .docs-mcp-toolbar-chat {
        grid-area: chat;
    }

    .docs-mcp-toolbar-navigation {
        grid-area: navigation;
    }

    .docs-mcp-environment-chip {
        max-width: 104px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome {
        padding: 26px 8px 104px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome h2 {
        font-size: 24px;
        line-height: 1.15;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome__feature {
        min-height: 0;
        padding: 11px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-message--user {
        max-width: 92%;
    }
}

@media (max-width: 480px) {
    .docs-mcp-workspace-context__project small {
        display: none;
    }

    .docs-mcp-workspace-context__project strong {
        font-size: 12px;
    }

    .docs-mcp-environment-chip {
        max-width: 88px;
        padding-inline: 6px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome__grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome__feature,
    #documents-container.docs-provider-mcp .docs-mcp-welcome__feature:nth-child(2n),
    #documents-container.docs-provider-mcp .docs-mcp-welcome__feature:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome__feature:last-child {
        border-bottom: 0;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome__examples {
        gap: 6px;
    }
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-shell--ide,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex {
    background: var(--docs-mcp-bg, #f5f7fb);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer {
    background: var(--docs-mcp-surface, #ffffff);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-chat-toolbar {
    background: rgba(255, 255, 255, 0.92);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-dialog-current,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-view-tabs {
    background: #f1f5f9;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-environment-chip {
    color: #475569;
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.28);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message--assistant {
    background: transparent;
    border: 0;
    box-shadow: none;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message--user {
    background: #eaf1ff;
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: none;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message--system {
    background: transparent;
    border-color: rgba(100, 116, 139, 0.55);
    box-shadow: none;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-welcome__grid {
    background: rgba(255, 255, 255, 0.54);
    border-color: rgba(148, 163, 184, 0.24);
}

/* Projects activity, files and settings refinement. */
#documents-container.docs-provider-mcp .docs-mcp-settings-view {
    display: grid;
    align-content: start;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
}

#documents-container.docs-provider-mcp .docs-mcp-messages,
#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-view::-webkit-scrollbar,
#documents-container.docs-provider-mcp .docs-mcp-messages::-webkit-scrollbar,
#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer::-webkit-scrollbar {
    width: 7px;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-view::-webkit-scrollbar-track,
#documents-container.docs-provider-mcp .docs-mcp-messages::-webkit-scrollbar-track,
#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer::-webkit-scrollbar-track {
    background: transparent;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-view::-webkit-scrollbar-thumb,
#documents-container.docs-provider-mcp .docs-mcp-messages::-webkit-scrollbar-thumb,
#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.42);
    background-clip: padding-box;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-card--subscription .docs-codex-subscription-row {
    padding: 10px 0;
    border-width: 1px 0;
    border-radius: 0;
    background: transparent;
}

#documents-container.docs-provider-mcp .docs-mcp-message__role {
    gap: 7px;
}

#documents-container.docs-provider-mcp .docs-mcp-message__time {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10px;
    font-weight: 560;
    line-height: 1.2;
}

#documents-container.docs-provider-mcp .docs-codex-progress {
    min-width: 0;
    gap: 10px;
}

#documents-container.docs-provider-mcp .docs-codex-progress__header {
    min-height: 28px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
}

#documents-container.docs-provider-mcp .docs-codex-progress__events {
    position: relative;
    gap: 6px;
    padding-left: 12px;
}

#documents-container.docs-provider-mcp .docs-codex-progress__events::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 3px;
    width: 1px;
    background: var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
}

#documents-container.docs-provider-mcp .docs-codex-event-line {
    position: relative;
    min-width: 0;
    padding: 5px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.022);
    overflow-wrap: anywhere;
}

#documents-container.docs-provider-mcp .docs-codex-event-line::before {
    content: "";
    position: absolute;
    top: 10px;
    left: -12px;
    width: 7px;
    height: 7px;
    border: 2px solid var(--docs-mcp-bg, #171a1f);
    border-radius: 50%;
    background: var(--docs-mcp-muted, #8b95a4);
}

#documents-container.docs-provider-mcp .docs-codex-progress__thinking {
    position: static;
    padding-top: 2px;
    background: transparent;
}

#documents-container.docs-provider-mcp .docs-codex-thinking {
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(14, 116, 144, 0.11);
}

#documents-container.docs-provider-mcp .docs-codex-command {
    min-width: 0;
    border-color: var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.022);
}

#documents-container.docs-provider-mcp .docs-codex-command summary {
    min-width: 0;
    min-height: 34px;
    padding: 6px 8px;
}

#documents-container.docs-provider-mcp .docs-codex-command summary::before {
    content: "\203A";
}

#documents-container.docs-provider-mcp .docs-codex-command[open] summary {
    background: rgba(125, 211, 252, 0.045);
}

#documents-container.docs-provider-mcp .docs-codex-command__full,
#documents-container.docs-provider-mcp .docs-codex-command__output {
    border-top-color: var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    background: rgba(9, 12, 17, 0.62);
}

#documents-container.docs-provider-mcp .docs-codex-approval {
    border-radius: 6px;
    box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.58);
}

#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file {
    min-height: 32px;
    padding-left: 8px;
}

#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file.is-selected {
    color: var(--docs-mcp-text, #d7dde6);
    box-shadow: inset 2px 0 0 var(--docs-mcp-accent, #7dd3fc);
}

#documents-container.docs-provider-mcp .docs-mcp-composer:focus-within {
    border-color: rgba(125, 211, 252, 0.34);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
    #documents-container.docs-provider-mcp .docs-mcp-settings-view {
        scrollbar-gutter: auto;
    }

    #documents-container.docs-provider-mcp .docs-codex-progress__events {
        padding-left: 10px;
    }

    #documents-container.docs-provider-mcp .docs-codex-event-line::before {
        left: -10px;
    }

    #documents-container.docs-provider-mcp .docs-codex-command summary {
        grid-template-columns: auto auto minmax(0, 1fr);
        row-gap: 3px;
    }

    #documents-container.docs-provider-mcp .docs-codex-command summary::before {
        grid-column: 1;
        grid-row: 1;
    }

    #documents-container.docs-provider-mcp .docs-codex-command__badge {
        grid-column: 2;
        grid-row: 1;
    }

    #documents-container.docs-provider-mcp .docs-codex-command summary code {
        grid-column: 3;
        grid-row: 1;
    }

    #documents-container.docs-provider-mcp .docs-codex-command__status {
        grid-column: 2 / 4;
        grid-row: 2;
    }

    #documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file {
        min-height: 40px;
    }
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-event-line,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-command {
    background: rgba(255, 255, 255, 0.72);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-event-line::before {
    border-color: var(--docs-mcp-bg, #f5f7fb);
    background: #64748b;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-command[open] summary {
    background: rgba(37, 99, 235, 0.05);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-command__full,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-command__output {
    background: #f8fafc;
}

/* Unified Projects layout: one rhythm for toolbar, content and composer. */
@media (min-width: 769px) {
    #documents-container.docs-provider-mcp .docs-mcp-shell--ide {
        width: calc(100% - 24px);
        max-width: 1500px;
        margin-right: auto;
        margin-left: auto;
        grid-template-columns: clamp(248px, 16vw, 280px) minmax(0, 1fr);
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex {
        --docs-mcp-codex-content-width: min(calc(100% - 40px), 1180px);
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-chat-toolbar,
    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-messages,
    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-composer,
    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-settings-view,
    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-editor {
        width: var(--docs-mcp-codex-content-width) !important;
        max-width: var(--docs-mcp-codex-content-width) !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-toolbar {
        grid-template-columns: minmax(176px, 218px) minmax(320px, 1fr) auto;
    }

    #documents-container.docs-provider-mcp .docs-mcp-settings-view {
        padding-right: 0;
        padding-left: 0;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome {
        width: 100%;
        max-width: none;
        padding-right: 0;
        padding-left: 0;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome > p {
        max-width: 760px;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    #documents-container.docs-provider-mcp .docs-mcp-shell--ide {
        width: calc(100% - 16px);
        max-width: none;
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex {
        --docs-mcp-codex-content-width: calc(100% - 24px);
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-chat-toolbar,
    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-messages,
    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-composer,
        #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-settings-view,
    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-editor {
        margin-left: auto !important;
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-toolbar {
        grid-template-columns: minmax(150px, 190px) minmax(240px, 1fr) auto;
    }
}

/* Compact Projects file explorer. */
#documents-container.docs-provider-mcp .docs-mcp-explorer {
    background: var(--docs-mcp-surface, #1b2027);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__head {
    min-height: 50px;
    padding: 0 11px 0 13px;
    background: transparent;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__head strong {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 13px;
    font-weight: 740;
    letter-spacing: 0;
    text-transform: none;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__head strong .docs-mcp-icon-svg {
    width: 16px;
    height: 16px;
    color: var(--docs-mcp-muted, #8b95a4);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__head-actions {
    gap: 3px;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__head-actions button {
    width: 30px;
    height: 30px;
    border-color: transparent;
    border-radius: 5px;
    background: transparent;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__head-actions .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__path {
    min-height: 50px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.012);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__path button {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 5px;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__path button:disabled {
    visibility: hidden;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__path.is-root {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 13px;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__path.is-root button {
    display: none;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__path button .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__path-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__path-copy small {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.15;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__path-copy strong {
    min-width: 0;
    overflow: hidden;
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer {
    padding: 7px 8px 10px;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--project {
    display: grid;
    justify-items: stretch;
    gap: 7px;
    margin: 0;
    padding: 20px 8px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--project .docs-mcp-upload-drop__icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 7px;
    background: var(--docs-mcp-surface-soft, #202631);
    color: var(--docs-mcp-muted, #8b95a4);
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--project .docs-mcp-upload-drop__icon .docs-mcp-icon-svg {
    width: 19px;
    height: 19px;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--project > strong {
    margin-top: 2px;
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 13px;
    font-weight: 740;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--project > span:not(.docs-mcp-upload-drop__icon) {
    max-width: 218px;
    justify-self: center;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--project .docs-mcp-upload-drop__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 5px;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--project button,
#documents-container.docs-provider-mcp .docs-mcp-upload-drop--folder button {
    width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 11px;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop button .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--project button.is-primary {
    border-color: rgba(125, 211, 252, 0.30);
    background: rgba(125, 211, 252, 0.12);
    color: #d9f4ff;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--folder {
    gap: 6px;
    margin: 0 0 7px;
    padding: 7px 0 9px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--folder .docs-mcp-upload-drop__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--folder small {
    text-align: center;
}

#documents-container.docs-provider-mcp .docs-mcp-side-empty {
    margin: 0;
    padding: 18px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file {
    min-height: 36px;
    padding: 2px 3px 2px 7px;
    border-radius: 5px;
}

#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file__main {
    gap: 7px;
}

#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file__icon {
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-radius: 4px;
    background: transparent;
    color: #7dd3fc;
}

#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file.is-folder .docs-mcp-file__icon {
    background: transparent;
    color: #fbbf24;
}

#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file__icon .docs-mcp-icon-svg {
    width: 16px;
    height: 16px;
}

#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file__name {
    font-size: 12px;
    font-weight: 620;
}

#documents-container.docs-provider-mcp .docs-mcp-file__menu-btn {
    width: 28px;
    height: 28px;
}

#documents-container.docs-provider-mcp .docs-mcp-file__menu-btn .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer__path {
    background: rgba(15, 23, 42, 0.018);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-upload-drop--project {
    background: transparent;
    border: 0;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-upload-drop--project .docs-mcp-upload-drop__icon {
    background: #f8fafc;
    color: #64748b;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-upload-drop--project button.is-primary {
    border-color: rgba(37, 99, 235, 0.28);
    background: #eaf1ff;
    color: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-side-empty {
    background: transparent;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--root-actions {
    margin: 0 0 7px;
    padding: 0 0 9px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--root-actions .docs-mcp-upload-drop__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--root-actions button {
    width: 100%;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 7px;
    border-radius: 5px;
    font-size: 10px;
}

#documents-container.docs-provider-mcp .docs-mcp-upload-drop--root-actions button.is-primary {
    border-color: rgba(125, 211, 252, 0.30);
    background: rgba(125, 211, 252, 0.12);
    color: #d9f4ff;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-upload-drop--root-actions button.is-primary {
    border-color: rgba(37, 99, 235, 0.28);
    background: #eaf1ff;
    color: #1d4ed8;
}
/* Project chats live in the explorer, matching the Codex task list pattern. */
#documents-container.docs-provider-mcp .docs-mcp-explorer__content {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.38) transparent;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__content::-webkit-scrollbar {
    width: 6px;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__content::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.38);
    background-clip: padding-box;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__content > .docs-mcp-file-list--explorer {
    height: auto;
    min-height: 0;
    overflow: visible;
    flex: none;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chats {
    display: grid;
    gap: 3px;
    padding: 8px 8px 12px;
    border-top: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chats__head {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 3px 0 7px;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chats__head strong {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0;
    text-transform: uppercase;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chats__head button {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--docs-mcp-muted, #8b95a4);
    cursor: pointer;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chats__head button:hover {
    background: rgba(148, 163, 184, 0.10);
    color: var(--docs-mcp-text, #d7dde6);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chats__head .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chats__list {
    display: grid;
    gap: 2px;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 27px 27px;
    align-items: center;
    border-radius: 6px;
    background: transparent;
    transition: background 140ms ease;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat:hover {
    background: rgba(148, 163, 184, 0.08);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat.is-active {
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.10));
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat__main {
    min-width: 0;
    min-height: 34px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 5px 6px 5px 8px;
    border: 0;
    background: transparent;
    color: var(--docs-mcp-text, #d7dde6);
    text-align: left;
    cursor: pointer;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat__main > span {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--docs-mcp-muted, #8b95a4);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat__main .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat__main strong {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 11px;
    font-weight: 590;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat.is-active .docs-mcp-explorer-chat__main strong {
    font-weight: 710;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat.is-active .docs-mcp-explorer-chat__main > span {
    color: var(--docs-mcp-accent, #7dd3fc);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat__rename,
#documents-container.docs-provider-mcp .docs-mcp-explorer-chat__delete {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--docs-mcp-muted, #8b95a4);
    opacity: 0;
    cursor: pointer;
    transition: opacity 120ms ease, color 120ms ease, background 120ms ease;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat:hover .docs-mcp-explorer-chat__rename,
#documents-container.docs-provider-mcp .docs-mcp-explorer-chat__rename:focus-visible,
#documents-container.docs-provider-mcp .docs-mcp-explorer-chat:hover .docs-mcp-explorer-chat__delete,
#documents-container.docs-provider-mcp .docs-mcp-explorer-chat__delete:focus-visible {
    opacity: 1;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat__rename:hover {
    background: rgba(125, 211, 252, 0.10);
    color: var(--docs-mcp-accent, #7dd3fc);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat__delete:hover {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat__rename svg,
#documents-container.docs-provider-mcp .docs-mcp-explorer-chat__delete svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chat button:disabled {
    cursor: wait;
    opacity: 0.58;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chats__empty {
    padding: 8px;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10px;
    line-height: 1.35;
}

#documents-container.docs-provider-mcp .docs-mcp-chat-toolbar {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 6px 10px;
}

#documents-container.docs-provider-mcp .docs-mcp-toolbar-navigation {
    margin-left: auto;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer-chat:hover {
    background: rgba(15, 23, 42, 0.045);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer-chat.is-active {
    background: #eaf1ff;
}

@media (hover: none) {
    #documents-container.docs-provider-mcp .docs-mcp-explorer-chat__rename,
    #documents-container.docs-provider-mcp .docs-mcp-explorer-chat__delete {
        opacity: 0.72;
    }
}

@media (max-width: 768px) {
    #documents-container.docs-provider-mcp .docs-mcp-chat-toolbar {
        min-height: 48px;
        display: flex;
        padding: 6px 8px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-explorer-toggle {
        flex: 0 0 34px;
    }
}

/* Projects typography and conversion-focused welcome. */
body.docs-mode-active #app-bar,
#documents-container.docs-provider-mcp {
    --docs-mcp-font-text: "Segoe UI Variable Text", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --docs-mcp-font-display: "Segoe UI Variable Display", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-family: var(--docs-mcp-font-text);
    font-kerning: normal;
    font-variant-ligatures: common-ligatures contextual;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#documents-container.docs-provider-mcp button,
#documents-container.docs-provider-mcp input,
#documents-container.docs-provider-mcp textarea,
#documents-container.docs-provider-mcp select {
    font: inherit;
    letter-spacing: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome h2,
#documents-container.docs-provider-mcp .docs-mcp-settings-hero strong,
#documents-container.docs-provider-mcp .docs-mcp-message__text h1,
#documents-container.docs-provider-mcp .docs-mcp-message__text h2,
#documents-container.docs-provider-mcp .docs-mcp-message__text h3 {
    font-family: var(--docs-mcp-font-display);
    letter-spacing: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer__head strong,
#documents-container.docs-provider-mcp .docs-mcp-file__name,
#documents-container.docs-provider-mcp .docs-mcp-explorer-chat__title {
    font-weight: 600;
    letter-spacing: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-message__text {
    font-size: 14px;
    line-height: 1.65;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome {
    color: var(--docs-mcp-text, #d7dde6);
    padding-top: 24px;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome h2 {
    max-width: 780px;
    font-size: 30px;
    line-height: 1.18;
    font-weight: 700;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome > p {
    max-width: 780px;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.58;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__feature strong {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
    letter-spacing: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__feature span {
    font-size: 12px;
    line-height: 1.5;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__examples > span {
    font-weight: 600;
    letter-spacing: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__subscription {
    width: 100%;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    padding: 8px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.055);
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__subscription.is-active {
    border-color: rgba(52, 211, 153, 0.22);
    background: rgba(16, 185, 129, 0.055);
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__subscription-icon {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.10);
    color: #93c5fd !important;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__subscription.is-active .docs-mcp-welcome__subscription-icon {
    border-color: rgba(52, 211, 153, 0.26);
    background: rgba(16, 185, 129, 0.10);
    color: #6ee7b7 !important;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__subscription-icon .docs-mcp-icon-svg {
    width: 14px;
    height: 14px;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__subscription > div {
    min-width: 0;
    display: grid;
    gap: 1px;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__subscription strong {
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 720;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__subscription span {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10.5px;
    line-height: 1.35;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__subscription button {
    min-height: 30px;
    flex: 0 0 auto;
    padding: 0 10px;
    border: 1px solid rgba(125, 211, 252, 0.34);
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__subscription button:hover {
    border-color: rgba(125, 211, 252, 0.54);
    background: #1d4ed8;
    transform: translateY(-1px);
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__subscription button:disabled {
    cursor: wait;
    opacity: 0.62;
    transform: none;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__subscription-status {
    flex: 0 0 auto;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.10);
    color: #86efac !important;
    font-size: 10.5px !important;
    font-weight: 700;
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__subscription-limit {
    grid-column: 1 / -1;
    width: 100%;
    height: 5px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

#documents-container.docs-provider-mcp .docs-mcp-welcome__subscription-limit > i {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: #34d399;
    transition: width 180ms ease;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-welcome__subscription {
    border-color: rgba(37, 99, 235, 0.18);
    background: rgba(37, 99, 235, 0.045);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-welcome__subscription.is-active {
    border-color: rgba(5, 150, 105, 0.20);
    background: rgba(5, 150, 105, 0.045);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-welcome__subscription-icon {
    color: #2563eb !important;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-welcome__subscription.is-active .docs-mcp-welcome__subscription-icon {
    color: #047857 !important;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-welcome__subscription button {
    border-color: #2563eb;
    background: #2563eb;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-welcome__subscription-status {
    color: #15803d !important;
}

@media (min-width: 1181px) {
    #documents-container.docs-provider-mcp .docs-mcp-welcome__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome__feature,
    #documents-container.docs-provider-mcp .docs-mcp-welcome__feature:nth-child(2n),
    #documents-container.docs-provider-mcp .docs-mcp-welcome__feature:nth-last-child(-n + 2) {
        min-height: 84px;
        padding: 12px;
        border-right: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
        border-bottom: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome__feature:nth-child(3n) {
        border-right: 0;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome__feature:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome__examples {
        margin-top: 12px;
    }
}

@media (max-width: 768px) {
    #documents-container.docs-provider-mcp .docs-mcp-message__text {
        font-size: 13.5px;
        line-height: 1.6;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome h2 {
        font-size: 24px;
        line-height: 1.2;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome > p {
        font-size: 13px;
        line-height: 1.55;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome__subscription {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        gap: 8px;
        margin-bottom: 15px;
        padding: 7px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome__subscription button,
    #documents-container.docs-provider-mcp .docs-mcp-welcome__subscription-status {
        width: auto;
        min-height: 29px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome__subscription-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 560px) {
    #documents-container.docs-provider-mcp .docs-mcp-welcome__subscription {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    #documents-container.docs-provider-mcp .docs-mcp-welcome__subscription button,
    #documents-container.docs-provider-mcp .docs-mcp-welcome__subscription-status {
        grid-column: 2;
        justify-self: start;
        max-width: 100%;
    }
}

/* Project tree: projects own their recent dialogs; opened projects show files only. */
#documents-container.docs-provider-mcp .docs-mcp-project-group {
    display: grid;
    gap: 1px;
    margin: 0 0 7px;
}

#documents-container.docs-provider-mcp .docs-mcp-project-group > .docs-mcp-file {
    margin: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file__icon {
    width: 20px;
    min-width: 20px;
    height: 20px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: var(--docs-mcp-muted, #8b95a4);
}

#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file.is-folder .docs-mcp-file__icon {
    background: transparent !important;
    color: var(--docs-mcp-text, #e5e7eb);
}

#documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file__icon .docs-mcp-icon-svg {
    width: 17px;
    height: 17px;
}

#documents-container.docs-provider-mcp .docs-mcp-project-dialogs {
    display: grid;
    gap: 1px;
    min-width: 0;
    padding: 1px 5px 2px 30px;
}

#documents-container.docs-provider-mcp .docs-mcp-project-dialog {
    width: 100%;
    min-width: 0;
    min-height: 31px;
    display: grid;
    grid-template-columns: 15px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--docs-mcp-muted, #a3abb8);
    cursor: pointer;
    text-align: left;
    font-size: 11.5px;
    line-height: 1.35;
}

#documents-container.docs-provider-mcp .docs-mcp-project-dialog__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-mcp-project-dialog__loader {
    width: 10px;
    height: 10px;
    justify-self: end;
    border-radius: 50%;
    border: 1.5px solid rgba(148, 163, 184, 0.30);
    border-top-color: var(--docs-mcp-accent, #7dd3fc);
    animation: docs-spin 0.72s linear infinite;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-project-dialog__loader {
    border-color: rgba(100, 116, 139, 0.28);
    border-top-color: #2563eb;
}

#documents-container.docs-provider-mcp .docs-mcp-project-dialog__icon {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

#documents-container.docs-provider-mcp .docs-mcp-project-dialog__icon .docs-mcp-icon-svg {
    width: 14px;
    height: 14px;
}

#documents-container.docs-provider-mcp .docs-mcp-project-dialog:hover,
#documents-container.docs-provider-mcp .docs-mcp-project-dialog:focus-visible {
    background: rgba(148, 163, 184, 0.10);
    color: var(--docs-mcp-text, #f3f4f6);
    outline: none;
}

#documents-container.docs-provider-mcp .docs-mcp-chat-toolbar {
    justify-content: space-between;
}

#documents-container.docs-provider-mcp .docs-mcp-toolbar-primary {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

#documents-container.docs-provider-mcp .docs-mcp-new-dialog-btn {
    width: auto;
    max-width: min(210px, 35vw);
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.12));
    border-radius: 6px;
    background: transparent;
    color: var(--docs-mcp-text, #f3f4f6);
    font-size: 11.5px;
    font-weight: 620;
}

#documents-container.docs-provider-mcp .docs-mcp-new-dialog-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-mcp-new-dialog-btn .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

#documents-container.docs-provider-mcp .docs-mcp-new-dialog-btn:hover {
    border-color: rgba(125, 211, 252, 0.32);
    background: rgba(125, 211, 252, 0.09);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-file-list--explorer .docs-mcp-file.is-folder .docs-mcp-file__icon,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-project-dialog:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-project-dialog:focus-visible,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-new-dialog-btn {
    color: #263244;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-project-dialog:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-project-dialog:focus-visible {
    background: rgba(15, 23, 42, 0.055);
}

@media (max-width: 480px) {
    #documents-container.docs-provider-mcp .docs-mcp-project-dialogs {
        padding-left: 27px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-new-dialog-btn {
        max-width: 138px;
        padding: 0 8px;
    }
}

/* Final Projects app bar geometry follows every legacy toolbar override. */
body.docs-mode-active #app-bar.docs-mcp-appbar-active {
    position: relative;
    z-index: 180;
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 8px 12px !important;
    overflow: visible;
}

body.docs-mode-active #app-bar.docs-mcp-appbar-active #menu-btn.docs-appbar-back {
    width: 32px !important;
    min-width: 32px;
    height: 32px !important;
    margin: 0 !important;
    justify-self: start;
}

body.docs-mode-active #app-bar.docs-mcp-appbar-active #title-dialog {
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    overflow: hidden;
    font-size: 15px;
    font-weight: 680;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.docs-mode-active #app-bar.docs-mcp-appbar-active #exit-btn {
    display: none !important;
}

@media (max-width: 768px) {
    body.docs-mode-active #app-bar.docs-mcp-appbar-active {
        min-height: 48px;
        padding: 6px 10px !important;
    }
}

/* Final Codex chat overrides follow the Projects layout refinements above. */
#documents-container.docs-provider-mcp .docs-mcp-messages {
    gap: 16px;
    padding: 18px clamp(12px, 2vw, 22px) 24px;
    scroll-padding-bottom: 24px;
}

#documents-container.docs-provider-mcp .docs-mcp-message--assistant {
    width: min(100%, 880px);
    max-width: 100%;
    padding: 14px 16px 16px;
    border: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: none;
}

#documents-container.docs-provider-mcp .docs-mcp-message--assistant.is-pending {
    border-color: rgba(125, 211, 252, 0.22);
    background: rgba(125, 211, 252, 0.035);
    opacity: 1;
}

#documents-container.docs-provider-mcp .docs-mcp-message--user {
    padding: 12px 14px;
}

#documents-container.docs-provider-mcp .docs-mcp-message__role {
    min-height: 20px;
    margin-bottom: 10px;
    padding-right: 72px;
    justify-content: flex-start;
}

#documents-container.docs-provider-mcp .docs-mcp-message__time {
    margin-left: auto;
}

#documents-container.docs-provider-mcp .docs-mcp-message__copy {
    top: 7px;
    right: 8px;
    bottom: auto;
    width: 28px;
    height: 28px;
    color: var(--docs-mcp-muted, #8b95a4);
    background: transparent;
    opacity: 0.58;
}

#documents-container.docs-provider-mcp .docs-mcp-message__copy:hover,
#documents-container.docs-provider-mcp .docs-mcp-message__copy:focus-visible {
    color: var(--docs-mcp-text, #f3f4f6);
    background: rgba(148, 163, 184, 0.12);
    opacity: 1;
}

#documents-container.docs-provider-mcp .docs-mcp-message__text {
    color: var(--docs-mcp-text, #d7dde6);
    line-height: 1.66;
}

#documents-container.docs-provider-mcp .docs-codex-progress {
    gap: 12px;
}

#documents-container.docs-provider-mcp .docs-codex-progress__header {
    min-height: 0;
    padding: 0 0 9px;
    font-size: 12px;
    font-weight: 650;
}

#documents-container.docs-provider-mcp .docs-codex-progress__events {
    gap: 8px;
    padding-left: 15px;
}

#documents-container.docs-provider-mcp .docs-codex-progress__events::before {
    left: 4px;
}

#documents-container.docs-provider-mcp .docs-codex-event-line {
    padding: 6px 9px;
    line-height: 1.5;
}

#documents-container.docs-provider-mcp .docs-codex-event-line::before {
    left: -14px;
}

#documents-container.docs-provider-mcp .docs-codex-progress__thinking {
    padding-top: 0;
}

#documents-container.docs-provider-mcp .docs-codex-thinking {
    display: grid;
    grid-template-columns: repeat(3, 5px) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 6px;
    row-gap: 3px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 7px;
}

#documents-container.docs-provider-mcp .docs-codex-thinking strong {
    margin-left: 2px;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-codex-thinking em {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.4;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message--assistant {
    border-color: rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.045);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message--assistant.is-pending {
    border-color: rgba(37, 99, 235, 0.20);
    background: rgba(239, 246, 255, 0.76);
}

@media (max-width: 768px) {
    #documents-container.docs-provider-mcp .docs-mcp-messages {
        gap: 13px;
        padding: 12px 9px 18px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-message--assistant {
        padding: 12px 12px 14px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-message--user {
        max-width: 94%;
        padding: 10px 12px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-message__role {
        margin-bottom: 8px;
    }

    #documents-container.docs-provider-mcp .docs-codex-thinking {
        grid-template-columns: repeat(3, 5px) auto;
    }

    #documents-container.docs-provider-mcp .docs-codex-thinking em {
        grid-column: 1 / -1;
        padding-top: 2px;
    }
}

/* Projects explorer: desktop resizing and independent mobile access. */
.docs-mcp-explorer-resizer {
    display: none;
}

@media (min-width: 769px) {
    #documents-container.docs-provider-mcp .docs-mcp-shell--ide {
        grid-template-columns: var(--docs-mcp-explorer-width, 264px) 6px minmax(0, 1fr);
    }

    #documents-container.docs-provider-mcp .docs-mcp-explorer {
        grid-column: 1;
    }

    #documents-container.docs-provider-mcp .docs-mcp-explorer-resizer {
        position: relative;
        z-index: 18;
        grid-column: 2;
        display: block;
        width: 6px;
        height: 100%;
        cursor: col-resize;
        touch-action: none;
        outline: none;
    }

    #documents-container.docs-provider-mcp .docs-mcp-explorer-resizer::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 50%;
        width: 1px;
        background: var(--docs-mcp-line, rgba(148, 163, 184, 0.14));
        transform: translateX(-50%);
        transition: width 120ms ease, background 120ms ease;
    }

    #documents-container.docs-provider-mcp .docs-mcp-explorer-resizer:hover::before,
    #documents-container.docs-provider-mcp .docs-mcp-explorer-resizer:focus-visible::before,
    #documents-container.docs-provider-mcp .docs-mcp-shell--ide.is-resizing-explorer .docs-mcp-explorer-resizer::before {
        width: 2px;
        background: var(--docs-mcp-accent, #7dd3fc);
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex {
        grid-column: 3;
    }
}

body.docs-mcp-resizing,
body.docs-mcp-resizing * {
    cursor: col-resize !important;
    user-select: none !important;
}

@media (max-width: 768px) {
    #documents-container.docs-provider-mcp .docs-mcp-shell--ide {
        grid-template-columns: minmax(0, 1fr);
    }

    #documents-container.docs-provider-mcp .docs-mcp-explorer-resizer {
        display: none !important;
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex {
        grid-column: 1;
    }

    #documents-container.docs-provider-mcp .docs-mcp-explorer-toggle {
        position: absolute;
        top: max(8px, env(safe-area-inset-top, 0px));
        right: auto;
        bottom: auto;
        left: 9px;
        z-index: 42;
        grid-area: auto;
        display: inline-grid;
        place-items: center;
        width: 32px;
        height: 32px;
        min-width: 32px;
        max-width: 32px !important;
        padding: 0;
        border: 1px solid transparent;
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.10);
        color: var(--docs-mcp-text, #d7dde6);
    }

    #documents-container.docs-provider-mcp .docs-mcp-shell--ide.is-explorer-open .docs-mcp-explorer-toggle {
        display: none;
    }

    #documents-container.docs-provider-mcp .docs-mcp-explorer-mobile-close {
        display: inline-flex;
    }
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer-toggle {
    background: rgba(255, 255, 255, 0.88);
    color: #475569;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Unified Projects settings live in the message workspace, not in a modal. */
#documents-container.docs-provider-mcp .docs-mcp-unified-settings {
    width: min(100%, 980px) !important;
    max-width: min(100%, 980px) !important;
    gap: 0;
    padding-top: 0;
    padding-bottom: 40px;
}

#documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-unified-settings,
#documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-services-settings {
    padding-top: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-unified-settings__header {
    position: sticky;
    top: 0;
    z-index: 12;
    min-height: 64px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 54px 10px 0;
    border-bottom: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
    background: rgba(23, 26, 31, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

#documents-container.docs-provider-mcp .docs-mcp-unified-settings__header--services {
    margin-top: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-subscription {
    margin-top: 10px;
    padding: 8px 10px;
    border-color: var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 2px 0 0 rgba(52, 211, 153, 0.62);
}

#documents-container.docs-provider-mcp .docs-codex-subscription--compact {
    gap: 7px;
}

#documents-container.docs-provider-mcp .docs-codex-subscription__summary {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

#documents-container.docs-provider-mcp .docs-codex-subscription__icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 7px;
    background: rgba(125, 211, 252, 0.08);
    color: #7dd3fc;
}

#documents-container.docs-provider-mcp .docs-codex-subscription__icon .docs-mcp-icon-svg {
    width: 16px;
    height: 16px;
}

#documents-container.docs-provider-mcp .docs-codex-subscription__identity {
    min-width: 0;
    display: grid;
    gap: 3px;
}

#documents-container.docs-provider-mcp .docs-codex-subscription__identity > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

#documents-container.docs-provider-mcp .docs-codex-subscription__identity strong {
    overflow: hidden;
    color: var(--docs-mcp-text, #e5e7eb);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-codex-subscription__identity small {
    overflow: hidden;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-codex-subscription__badge {
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.11);
    color: #6ee7b7;
    font-size: 9px;
    font-weight: 760;
    line-height: 1;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-codex-subscription__actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

#documents-container.docs-provider-mcp .docs-codex-subscription__actions button {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(125, 211, 252, 0.26);
    border-radius: 7px;
    background: rgba(125, 211, 252, 0.09);
    color: #bae6fd;
    font-size: 10px;
    font-weight: 720;
    cursor: pointer;
}

#documents-container.docs-provider-mcp .docs-codex-subscription__actions button:hover,
#documents-container.docs-provider-mcp .docs-codex-subscription__actions button:focus-visible {
    border-color: rgba(125, 211, 252, 0.46);
    background: rgba(125, 211, 252, 0.14);
    outline: none;
}

#documents-container.docs-provider-mcp .docs-codex-subscription__actions button.is-danger {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.18);
    color: #fca5a5;
}

#documents-container.docs-provider-mcp .docs-codex-reset-gift {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 22px auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 7px;
    background: rgba(245, 158, 11, 0.055);
}

#documents-container.docs-provider-mcp .docs-codex-reset-gift.is-welcome {
    width: 100%;
    margin: -8px 0 12px;
}

#documents-container.docs-provider-mcp .docs-codex-reset-gift__icon {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 5px;
    background: rgba(245, 158, 11, 0.11);
    color: #fcd34d;
}

#documents-container.docs-provider-mcp .docs-codex-reset-gift__icon .docs-mcp-icon-svg {
    width: 12px;
    height: 12px;
}

#documents-container.docs-provider-mcp .docs-codex-reset-gift__copy {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-codex-reset-gift__copy strong {
    color: var(--docs-mcp-text, #e5e7eb);
    font-size: 10px;
    font-weight: 760;
    line-height: 1.2;
}

#documents-container.docs-provider-mcp .docs-codex-reset-gift__copy small {
    color: var(--docs-mcp-muted, #a8b0bd);
    font-size: 9px;
    line-height: 1.2;
}

#documents-container.docs-provider-mcp .docs-codex-reset-gift__actions {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

#documents-container.docs-provider-mcp .docs-codex-reset-gift__actions button {
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid rgba(251, 191, 36, 0.38);
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.10);
    color: #fde68a;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

#documents-container.docs-provider-mcp .docs-codex-reset-gift__actions button:hover,
#documents-container.docs-provider-mcp .docs-codex-reset-gift__actions button:focus-visible {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #1c1917;
    outline: none;
    transform: translateY(-1px);
}

#documents-container.docs-provider-mcp .docs-codex-reset-gift__actions button:disabled {
    cursor: wait;
    opacity: 0.58;
    transform: none;
}

#documents-container.docs-provider-mcp button.docs-codex-upgrade-btn {
    --docs-codex-upgrade-fg: #f5f5f5;
    min-height: 34px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #4a4a4a;
    border-radius: 7px;
    background: #262626;
    color: var(--docs-codex-upgrade-fg) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 11px;
    font-weight: 760;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

#documents-container.docs-provider-mcp button.docs-codex-upgrade-btn:hover {
    border-color: #626262;
    background: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

#documents-container.docs-provider-mcp button.docs-codex-upgrade-btn:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

#documents-container.docs-provider-mcp button.docs-codex-upgrade-btn:disabled {
    opacity: 0.58;
    cursor: wait;
    transform: none;
}

#documents-container.docs-provider-mcp button.docs-codex-upgrade-btn .docs-codex-upgrade-btn__icon,
#documents-container.docs-provider-mcp button.docs-codex-upgrade-btn .docs-codex-upgrade-btn__label {
    color: var(--docs-codex-upgrade-fg) !important;
    font-size: inherit !important;
    line-height: 1;
}

#documents-container.docs-provider-mcp button.docs-codex-upgrade-btn .docs-codex-upgrade-btn__label {
    display: inline-block !important;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap !important;
}

#documents-container.docs-provider-mcp button.docs-codex-upgrade-btn .docs-codex-upgrade-btn__icon {
    width: 15px;
    height: 15px;
    display: inline-grid;
    flex: 0 0 15px;
    place-items: center;
}

#documents-container.docs-provider-mcp button.docs-codex-upgrade-btn .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

#documents-container.docs-provider-mcp .docs-codex-subscription__summary--plans {
    grid-template-columns: 28px minmax(0, 1fr);
}

#documents-container.docs-provider-mcp .docs-codex-plan-picker {
    display: grid;
    gap: 7px;
    padding-top: 8px;
    border-top: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
}

#documents-container.docs-provider-mcp .docs-codex-plan-picker__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

#documents-container.docs-provider-mcp .docs-codex-plan-picker__head strong {
    color: var(--docs-mcp-text, #e5e7eb);
    font-size: 11px;
}

#documents-container.docs-provider-mcp .docs-codex-plan-picker__head small {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 9px;
}

#documents-container.docs-provider-mcp .docs-codex-plan-list {
    display: grid;
    gap: 6px;
}

#documents-container.docs-provider-mcp .docs-codex-plan-empty {
    padding: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.24);
    border-radius: 7px;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10px;
    text-align: center;
}

#documents-container.docs-provider-mcp .docs-codex-plan-option {
    width: 100%;
    min-height: 68px;
    padding: 9px 11px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--docs-mcp-text, #e5e7eb);
    text-align: left;
    cursor: pointer;
}

#documents-container.docs-provider-mcp .docs-codex-plan-option.is-current,
#documents-container.docs-provider-mcp .docs-codex-plan-option.is-current:hover {
    border-color: rgba(96, 165, 250, 0.34);
    background: rgba(59, 130, 246, 0.07);
    cursor: default;
}

#documents-container.docs-provider-mcp .docs-codex-plan-option:hover,
#documents-container.docs-provider-mcp .docs-codex-plan-option:focus-visible {
    border-color: rgba(52, 211, 153, 0.42);
    background: rgba(16, 185, 129, 0.08);
    outline: none;
}

#documents-container.docs-provider-mcp .docs-codex-plan-option:disabled {
    opacity: 0.52;
    cursor: wait;
}

#documents-container.docs-provider-mcp .docs-codex-plan-option__identity,
#documents-container.docs-provider-mcp .docs-codex-plan-option__price {
    min-width: 0;
    display: grid;
    gap: 3px;
}

#documents-container.docs-provider-mcp .docs-codex-plan-option__identity strong,
#documents-container.docs-provider-mcp .docs-codex-plan-option__price strong {
    color: var(--docs-mcp-text, #e5e7eb);
    font-size: 12px;
    line-height: 1.25;
}

#documents-container.docs-provider-mcp .docs-codex-plan-option__title {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

#documents-container.docs-provider-mcp .docs-codex-plan-option__current {
    padding: 2px 5px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.10);
    color: #93c5fd;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

#documents-container.docs-provider-mcp .docs-codex-plan-option__ratio {
    min-width: 0;
    height: auto;
    padding: 0 0 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid rgba(148, 163, 184, 0.40);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--docs-mcp-text, #e5e7eb);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-codex-plan-option__ratio span {
    font-size: 15px;
    font-weight: 800;
}

#documents-container.docs-provider-mcp .docs-codex-plan-option__limits {
    min-width: 0;
    display: block;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10px;
    line-height: 1.35;
}

#documents-container.docs-provider-mcp .docs-codex-plan-option__identity small,
#documents-container.docs-provider-mcp .docs-codex-plan-option__price small {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10px;
    line-height: 1.3;
}

#documents-container.docs-provider-mcp .docs-codex-plan-option__identity small {
    overflow-wrap: anywhere;
}

#documents-container.docs-provider-mcp .docs-codex-plan-option__price {
    justify-items: end;
    text-align: right;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-codex-subscription--compact .docs-codex-limit-list {
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

#documents-container.docs-provider-mcp .docs-codex-subscription--compact .docs-codex-limit {
    width: 100%;
    box-sizing: border-box;
    gap: 4px;
    padding: 6px 7px;
    border-radius: 7px;
    background: rgba(148, 163, 184, 0.045);
}

#documents-container.docs-provider-mcp .docs-codex-subscription--compact .docs-codex-limit__bar {
    height: 4px;
}

#documents-container.docs-provider-mcp .docs-codex-subscription--compact .docs-codex-limit__head em {
    overflow: hidden;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10px;
    font-style: normal;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 12px;
    padding: 4px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.055);
}

#documents-container.docs-provider-mcp .docs-mcp-settings-tabs button {
    min-width: 0;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 11px;
    font-weight: 720;
    cursor: pointer;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-tabs button:hover,
#documents-container.docs-provider-mcp .docs-mcp-settings-tabs button:focus-visible {
    color: var(--docs-mcp-text, #e5e7eb);
    outline: none;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-tabs button.is-active {
    border-color: var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    background: var(--docs-mcp-surface-soft, #202631);
    color: var(--docs-mcp-text-strong, #f8fafc);
    box-shadow: 0 1px 2px rgba(2, 6, 23, 0.16);
}

#documents-container.docs-provider-mcp .docs-mcp-settings-tabs .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-panel[hidden] {
    display: none !important;
}

#documents-container.docs-provider-mcp .docs-mcp-unified-settings__header > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

#documents-container.docs-provider-mcp .docs-mcp-unified-settings__header > div > span {
    color: var(--docs-mcp-text, #e5e7eb);
    font-size: 14px;
    font-weight: 760;
    line-height: 1.25;
}

#documents-container.docs-provider-mcp .docs-mcp-unified-settings__header > div > strong {
    overflow: hidden;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 11px;
    font-weight: 560;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-back {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 7px;
    background: rgba(148, 163, 184, 0.08);
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-back:hover,
#documents-container.docs-provider-mcp .docs-mcp-settings-back:focus-visible {
    border-color: rgba(125, 211, 252, 0.34);
    background: rgba(125, 211, 252, 0.10);
    color: var(--docs-mcp-text-strong, #f8fafc);
    outline: none;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-back .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section {
    display: grid;
    gap: 14px;
    padding: 24px 0;
    border-bottom: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section:last-child {
    border-bottom: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section__head {
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section__icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 8px;
    background: rgba(125, 211, 252, 0.08);
    color: #7dd3fc;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section--project .docs-mcp-settings-section__icon {
    border-color: rgba(74, 222, 128, 0.22);
    background: rgba(74, 222, 128, 0.08);
    color: #86efac;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section__icon .docs-mcp-icon-svg {
    width: 17px;
    height: 17px;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section__head > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section__head > div > strong {
    color: var(--docs-mcp-text, #e5e7eb);
    font-size: 14px;
    font-weight: 760;
    line-height: 1.25;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section__head > div > small {
    overflow: hidden;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section__head > em {
    max-width: 190px;
    overflow: hidden;
    padding: 5px 8px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.07);
    color: var(--docs-mcp-muted, #aeb7c2);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section__head > em.is-working {
    border-color: rgba(125, 211, 252, 0.22);
    background: rgba(125, 211, 252, 0.08);
    color: #bae6fd;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section .docs-mcp-settings-card {
    border-radius: 8px;
    box-shadow: none;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section--model .docs-mcp-settings-card--codex {
    padding: 16px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    background: rgba(255, 255, 255, 0.025);
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section--model .docs-mcp-settings-hero strong {
    font-size: 17px;
    line-height: 1.25;
}

#documents-container.docs-provider-mcp .docs-mcp-model-controls {
    display: grid;
    gap: 20px;
    margin-top: 18px;
}

#documents-container.docs-provider-mcp .docs-mcp-access-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#documents-container.docs-provider-mcp .docs-mcp-access-options label {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

#documents-container.docs-provider-mcp .docs-mcp-access-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#documents-container.docs-provider-mcp .docs-mcp-access-options label > span {
    min-height: 66px;
    position: relative;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 11px 34px 11px 11px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 7px;
    background: var(--docs-mcp-surface-soft, #202631);
    transition: border-color 140ms ease, background 140ms ease;
}

#documents-container.docs-provider-mcp .docs-mcp-access-options strong {
    color: var(--docs-mcp-text, #e5e7eb);
    font-size: 12px;
    font-weight: 720;
}

#documents-container.docs-provider-mcp .docs-mcp-access-options small {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10px;
    line-height: 1.35;
}

#documents-container.docs-provider-mcp .docs-mcp-access-options i {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 14px;
    height: 14px;
    border: 1px solid var(--docs-mcp-muted, #8b95a4);
    border-radius: 50%;
    transform: translateY(-50%);
}

#documents-container.docs-provider-mcp .docs-mcp-access-options input:checked + span {
    border-color: rgba(125, 211, 252, 0.58);
    background: rgba(125, 211, 252, 0.09);
}

#documents-container.docs-provider-mcp .docs-mcp-access-options input:checked + span i {
    border-color: #7dd3fc;
    background: #7dd3fc;
    box-shadow: inset 0 0 0 3px #202631;
}

#documents-container.docs-provider-mcp .docs-mcp-access-options input:focus-visible + span {
    outline: 2px solid #7dd3fc;
    outline-offset: 2px;
}

#documents-container.docs-provider-mcp .docs-mcp-access-options input:disabled + span {
    cursor: not-allowed;
    opacity: 0.46;
}

#documents-container.docs-provider-mcp .docs-mcp-settings-section--project > .docs-cloud-card,
#documents-container.docs-provider-mcp .docs-mcp-settings-section--project > .docs-mcp-settings-card--subscription {
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    background: rgba(255, 255, 255, 0.025);
}

#documents-container.docs-provider-mcp .docs-project-settings-card {
    gap: 0;
    padding: 0 14px;
    overflow: hidden;
}

#documents-container.docs-provider-mcp .docs-project-runtime {
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
}

#documents-container.docs-provider-mcp .docs-project-runtime__icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(52, 211, 153, 0.24);
    border-radius: 8px;
    background: rgba(52, 211, 153, 0.08);
    color: #6ee7b7;
}

#documents-container.docs-provider-mcp .docs-project-runtime__icon .docs-mcp-icon-svg {
    width: 17px;
    height: 17px;
}

#documents-container.docs-provider-mcp .docs-project-runtime > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

#documents-container.docs-provider-mcp .docs-project-runtime > div > small,
#documents-container.docs-provider-mcp .docs-project-runtime > div > span,
#documents-container.docs-provider-mcp .docs-project-settings-group__head small {
    overflow: hidden;
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-project-runtime strong {
    overflow: hidden;
    color: var(--docs-mcp-text-strong, #f8fafc);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-project-runtime > em {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 999px;
    color: var(--docs-mcp-muted, #aeb7c2);
    font-size: 9px;
    font-style: normal;
    font-weight: 760;
}

#documents-container.docs-provider-mcp .docs-project-runtime > em i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
}

#documents-container.docs-provider-mcp .docs-project-runtime > em.is-server {
    border-color: rgba(52, 211, 153, 0.24);
    color: #6ee7b7;
}

#documents-container.docs-provider-mcp .docs-project-runtime > em.is-server i {
    background: #34d399;
}

#documents-container.docs-provider-mcp .docs-project-settings-group {
    display: grid;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--docs-mcp-line, rgba(226, 232, 240, 0.10));
}

#documents-container.docs-provider-mcp .docs-project-settings-group:last-child {
    border-bottom: 0;
}

#documents-container.docs-provider-mcp .docs-project-settings-group__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

#documents-container.docs-provider-mcp .docs-project-settings-group__head > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

#documents-container.docs-provider-mcp .docs-project-settings-group__head strong {
    color: var(--docs-mcp-text, #e5e7eb);
    font-size: 12px;
    font-weight: 740;
}

#documents-container.docs-provider-mcp .docs-project-environment-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: end;
    gap: 8px;
}

#documents-container.docs-provider-mcp .docs-project-settings-refresh {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.22));
    border-radius: 7px;
    background: var(--docs-mcp-surface-soft, #202631);
    color: var(--docs-mcp-muted, #aeb7c2);
    cursor: pointer;
}

#documents-container.docs-provider-mcp .docs-project-settings-refresh:hover,
#documents-container.docs-provider-mcp .docs-project-settings-refresh:focus-visible {
    border-color: rgba(52, 211, 153, 0.34);
    color: #6ee7b7;
    outline: none;
}

#documents-container.docs-provider-mcp .docs-project-settings-refresh:disabled {
    cursor: wait;
    opacity: 0.52;
}

#documents-container.docs-provider-mcp .docs-project-settings-refresh .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

#documents-container.docs-provider-mcp .docs-project-settings-card .docs-cloud-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-unified-settings__header {
    background: rgba(245, 247, 251, 0.94);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-subscription,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-tabs {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(226, 232, 240, 0.46);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-subscription__icon {
    border-color: rgba(37, 99, 235, 0.20);
    background: rgba(37, 99, 235, 0.07);
    color: #2563eb;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-subscription__badge {
    background: rgba(5, 150, 105, 0.10);
    color: #047857;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-project-runtime__icon {
    border-color: rgba(5, 150, 105, 0.22);
    background: rgba(5, 150, 105, 0.07);
    color: #047857;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-project-settings-refresh {
    border-color: rgba(148, 163, 184, 0.30);
    background: #ffffff;
    color: #475569;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-custom-summary__icon {
    border-color: rgba(5, 150, 105, 0.22);
    background: rgba(5, 150, 105, 0.07);
    color: #047857;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-cloud-custom-summary__copy strong {
    color: #0f172a;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-subscription--compact .docs-codex-limit,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-tabs button.is-active {
    border-color: rgba(148, 163, 184, 0.28);
    background: #ffffff;
    color: #0f172a;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-subscription__actions button {
    border-color: rgba(37, 99, 235, 0.24);
    background: rgba(37, 99, 235, 0.07);
    color: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-reset-gift {
    border-color: rgba(217, 119, 6, 0.26);
    background: rgba(245, 158, 11, 0.08);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-reset-gift__icon {
    border-color: rgba(217, 119, 6, 0.26);
    background: rgba(245, 158, 11, 0.11);
    color: #b45309;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-reset-gift__copy strong {
    color: #1f2937;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-reset-gift__copy small {
    color: #6b7280;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-reset-gift__actions button {
    border-color: rgba(217, 119, 6, 0.32);
    background: rgba(245, 158, 11, 0.09);
    color: #92400e;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-reset-gift__actions button:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-reset-gift__actions button:focus-visible {
    border-color: #d97706;
    background: #d97706;
    color: #ffffff;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp button.docs-codex-upgrade-btn {
    --docs-codex-upgrade-fg: #ffffff;
    border-color: #171717;
    background: #171717;
    color: var(--docs-codex-upgrade-fg) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18), 0 5px 14px rgba(15, 23, 42, 0.12);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp button.docs-codex-upgrade-btn:hover {
    border-color: #2f2f2f;
    background: #2f2f2f;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.20), 0 7px 18px rgba(15, 23, 42, 0.14);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-plan-option {
    border-color: rgba(148, 163, 184, 0.30);
    background: #ffffff;
    color: #0f172a;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-plan-option:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-plan-option:focus-visible {
    border-color: rgba(5, 150, 105, 0.38);
    background: rgba(16, 185, 129, 0.06);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-plan-option.is-current,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-plan-option.is-current:hover {
    border-color: rgba(37, 99, 235, 0.26);
    background: rgba(37, 99, 235, 0.05);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-plan-option__current {
    border-color: rgba(37, 99, 235, 0.20);
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-plan-option__ratio {
    border-left-color: rgba(100, 116, 139, 0.42);
    color: #0f172a;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-plan-option__identity strong,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-plan-option__price strong {
    color: #0f172a;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-back {
    border-color: rgba(148, 163, 184, 0.30);
    background: #ffffff;
    color: #334155;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-section__icon {
    border-color: rgba(37, 99, 235, 0.20);
    background: rgba(37, 99, 235, 0.07);
    color: #2563eb;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-section--project .docs-mcp-settings-section__icon {
    border-color: rgba(22, 163, 74, 0.20);
    background: rgba(22, 163, 74, 0.07);
    color: #15803d;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-section--model .docs-mcp-settings-card--codex,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-section--project > .docs-cloud-card,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-settings-section--project > .docs-mcp-settings-card--subscription {
    border-color: rgba(148, 163, 184, 0.28);
    background: #ffffff;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-access-options label > span {
    border-color: rgba(148, 163, 184, 0.30);
    background: #f8fafc;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-access-options input:checked + span {
    border-color: rgba(37, 99, 235, 0.48);
    background: rgba(37, 99, 235, 0.06);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-access-options input:checked + span i {
    border-color: #2563eb;
    background: #2563eb;
    box-shadow: inset 0 0 0 3px #ffffff;
}

@media (max-width: 720px) {
    #documents-container.docs-provider-mcp .docs-mcp-unified-settings {
        padding-right: 9px;
        padding-left: 9px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-unified-settings__header {
        min-height: 58px;
        gap: 8px;
        padding-right: 42px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-settings-subscription {
        margin-top: 8px;
        padding: 8px;
    }

    #documents-container.docs-provider-mcp .docs-codex-subscription__summary {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 8px;
    }

    #documents-container.docs-provider-mcp .docs-codex-subscription__icon {
        width: 28px;
        height: 28px;
    }

    #documents-container.docs-provider-mcp .docs-codex-subscription__actions {
        grid-column: 1 / -1;
    }

    #documents-container.docs-provider-mcp .docs-codex-subscription__actions button {
        width: 100%;
    }

    #documents-container.docs-provider-mcp .docs-codex-reset-gift,
    #documents-container.docs-provider-mcp .docs-codex-reset-gift.is-welcome {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    #documents-container.docs-provider-mcp .docs-codex-reset-gift__copy {
        justify-self: start;
    }

    #documents-container.docs-provider-mcp .docs-codex-reset-gift__actions {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: flex-start;
    }

    #documents-container.docs-provider-mcp .docs-codex-subscription--compact .docs-codex-limit-list {
        grid-template-columns: 1fr;
    }

    #documents-container.docs-provider-mcp .docs-codex-plan-option {
        min-height: 62px;
        padding: 9px;
        gap: 8px;
    }

    #documents-container.docs-provider-mcp .docs-project-settings-card {
        padding: 0 10px;
    }

    #documents-container.docs-provider-mcp .docs-project-runtime {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    #documents-container.docs-provider-mcp .docs-project-runtime > em {
        grid-column: 2;
        justify-self: start;
    }

    #documents-container.docs-provider-mcp .docs-project-settings-card .docs-cloud-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #documents-container.docs-provider-mcp .docs-mcp-settings-tabs {
        margin-top: 9px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-settings-tabs button {
        min-height: 36px;
        padding: 0 6px;
        font-size: 10px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-settings-back {
        width: 34px;
        min-width: 34px;
        padding: 0;
        justify-content: center;
    }

    #documents-container.docs-provider-mcp .docs-mcp-settings-back > span {
        display: none;
    }

    #documents-container.docs-provider-mcp .docs-mcp-settings-section {
        padding: 18px 0;
    }

    #documents-container.docs-provider-mcp .docs-mcp-settings-section__head {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    #documents-container.docs-provider-mcp .docs-mcp-settings-section__head > em {
        grid-column: 1 / -1;
        max-width: 100%;
        justify-self: start;
    }

    #documents-container.docs-provider-mcp .docs-mcp-settings-section__icon {
        width: 34px;
        height: 34px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-settings-section--model .docs-mcp-settings-card--codex {
        padding: 12px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-access-options {
        grid-template-columns: 1fr;
    }
}

/* Project chat media attachments */
#documents-container.docs-provider-mcp .docs-mcp-composer {
    position: relative;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

#documents-container.docs-provider-mcp .docs-mcp-composer.is-media-dragging {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#documents-container.docs-provider-mcp .docs-mcp-composer.is-media-dragging::after {
    content: attr(data-media-drop-label);
    position: absolute;
    inset: 5px;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(37, 99, 235, 0.55);
    border-radius: 14px;
    background: rgba(239, 246, 255, 0.94);
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 750;
    pointer-events: none;
}

#documents-container.docs-provider-mcp .docs-mcp-composer-attachments {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 7px;
    margin: 0 0 8px;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 26px;
    align-items: center;
    min-width: 0;
    min-height: 52px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.74);
    color: #0f172a;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment--message {
    grid-template-columns: 54px minmax(0, 1fr);
    width: min(320px, 100%);
    padding: 5px;
    background: rgba(255, 255, 255, 0.54);
}

#documents-container.docs-provider-mcp .docs-mcp-attachment.is-failed {
    border-color: rgba(220, 38, 38, 0.35);
}

#documents-container.docs-provider-mcp .docs-mcp-attachment__preview {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    border-radius: 5px;
    background: #e2e8f0;
    color: #475569;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment--message .docs-mcp-attachment__preview {
    width: 50px;
    height: 50px;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment__preview > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment__preview > i {
    position: absolute;
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.76);
    color: #ffffff;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment__preview > i .docs-mcp-icon-svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    stroke: currentColor;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment__fallback .docs-mcp-icon-svg {
    width: 20px;
    height: 20px;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment__copy {
    display: grid;
    min-width: 0;
    gap: 2px;
    padding: 0 7px;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment__copy strong,
#documents-container.docs-provider-mcp .docs-mcp-attachment__copy small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment__copy strong {
    font-size: 12px;
    font-weight: 700;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment__copy small {
    color: #64748b;
    font-size: 10px;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment__progress {
    display: block;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: #e2e8f0;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment__progress > i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
    transition: width 120ms linear;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment__spinner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: docs-spin 0.75s linear infinite;
}

#documents-container.docs-provider-mcp .docs-mcp-composer .docs-mcp-attachment__remove {
    display: grid;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
}

#documents-container.docs-provider-mcp .docs-mcp-composer .docs-mcp-attachment__remove:hover:not(:disabled) {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

#documents-container.docs-provider-mcp .docs-mcp-attachment__remove .docs-mcp-icon-svg {
    width: 14px;
    height: 14px;
}

#documents-container.docs-provider-mcp .docs-mcp-message__attachments {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

#documents-container.docs-provider-mcp .docs-mcp-composer .docs-mcp-attach-btn {
    display: inline-grid;
    width: var(--docs-mcp-composer-button, 34px);
    height: var(--docs-mcp-composer-button, 34px);
    min-width: var(--docs-mcp-composer-button, 34px);
    min-height: var(--docs-mcp-composer-button, 34px);
    padding: 0;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
    box-shadow: none;
}

#documents-container.docs-provider-mcp .docs-mcp-composer .docs-mcp-attach-btn:hover:not(:disabled) {
    border-color: rgba(37, 99, 235, 0.36);
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

#documents-container.docs-provider-mcp .docs-mcp-composer .docs-mcp-attach-btn .docs-mcp-icon-svg {
    width: 17px;
    height: 17px;
}

@media (max-width: 520px) {
    #documents-container.docs-provider-mcp .docs-mcp-composer-attachments {
        grid-template-columns: 1fr;
        max-height: 126px;
        overflow-y: auto;
    }

    #documents-container.docs-provider-mcp .docs-mcp-attachment {
        grid-template-columns: 42px minmax(0, 1fr) 24px;
        min-height: 48px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-attachment__preview {
        width: 38px;
        height: 38px;
    }
}

/* Codex live activity: keep long-running turns visibly active. */
#documents-container.docs-provider-mcp .docs-codex-progress__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

#documents-container.docs-provider-mcp .docs-codex-reasoning__head > i {
    display: block;
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #34d399;
}

#documents-container.docs-provider-mcp .docs-codex-reasoning {
    padding: 8px 10px;
    border-left: 2px solid rgba(148, 163, 184, 0.44);
    border-radius: 0 6px 6px 0;
    background: rgba(148, 163, 184, 0.06);
}

#documents-container.docs-provider-mcp .docs-codex-reasoning__head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--docs-mcp-muted, #9ca3af);
    font-size: 10px;
    line-height: 1.3;
}

#documents-container.docs-provider-mcp .docs-codex-reasoning__head > i {
    background: #94a3b8;
}

#documents-container.docs-provider-mcp .docs-codex-reasoning.is-running .docs-codex-reasoning__head > i {
    background: #34d399;
}

#documents-container.docs-provider-mcp .docs-codex-reasoning__head > strong {
    color: var(--docs-mcp-text, #d7dde6);
    font-weight: 650;
}

#documents-container.docs-provider-mcp .docs-codex-reasoning__head > span {
    margin-left: auto;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-codex-reasoning > p {
    margin: 5px 0 0;
    color: var(--docs-mcp-text, #d7dde6);
    font-size: 12px;
    line-height: 1.5;
}

#documents-container.docs-provider-mcp .docs-codex-progress__thinking .docs-codex-thinking {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(148, 163, 184, 0.07);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-reasoning {
    border-left-color: rgba(100, 116, 139, 0.46);
    background: rgba(100, 116, 139, 0.055);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-reasoning__head {
    color: #64748b;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-reasoning__head > strong,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-reasoning > p {
    color: #334155;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-progress__thinking .docs-codex-thinking {
    border-color: rgba(100, 116, 139, 0.24);
    background: rgba(100, 116, 139, 0.07);
    color: #334155;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-codex-progress__thinking .docs-codex-thinking em {
    color: #64748b;
}

@media (max-width: 720px) {
    #documents-container.docs-provider-mcp .docs-codex-progress__header {
        align-items: flex-start;
    }

    #documents-container.docs-provider-mcp .docs-codex-reasoning > p {
        font-size: 11px;
    }
}

/* Branch a Projects conversation without reusing the original Codex session. */
#documents-container.docs-provider-mcp .docs-mcp-message__branch {
    position: absolute;
    top: 7px;
    right: 40px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--docs-mcp-muted, #9ca3af);
    cursor: pointer;
    opacity: 0.58;
    overflow: visible;
    touch-action: manipulation;
    user-select: none;
    -webkit-touch-callout: none;
    transition: color 140ms ease, background-color 140ms ease, opacity 140ms ease;
}

#documents-container.docs-provider-mcp .docs-mcp-message__branch:hover,
#documents-container.docs-provider-mcp .docs-mcp-message__branch:focus-visible {
    background: rgba(148, 163, 184, 0.12);
    color: var(--docs-mcp-text, #f3f4f6);
    opacity: 1;
}

#documents-container.docs-provider-mcp .docs-mcp-message__branch:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.72);
    outline-offset: 1px;
}

#documents-container.docs-provider-mcp .docs-mcp-message__branch:disabled {
    cursor: wait;
    opacity: 0.48;
}

#documents-container.docs-provider-mcp .docs-mcp-message__branch .docs-mcp-icon-svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

#documents-container.docs-provider-mcp .docs-mcp-message__branch-label {
    position: absolute;
    bottom: calc(100% + 7px);
    left: 0;
    z-index: 12;
    width: max-content;
    max-width: min(230px, calc(100vw - 32px));
    padding: 6px 8px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 6px;
    background: #111827;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(3px);
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

#documents-container.docs-provider-mcp .docs-mcp-message--user .docs-mcp-message__branch-label {
    right: 0;
    left: auto;
}

@media (hover: hover) and (pointer: fine) {
    #documents-container.docs-provider-mcp .docs-mcp-message__branch:hover .docs-mcp-message__branch-label {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

#documents-container.docs-provider-mcp .docs-mcp-message__branch:focus-visible .docs-mcp-message__branch-label,
#documents-container.docs-provider-mcp .docs-mcp-message__branch.is-tooltip-visible .docs-mcp-message__branch-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#documents-container.docs-provider-mcp .docs-mcp-message__branch.is-loading .docs-mcp-icon-svg {
    animation: docs-spin 0.8s linear infinite;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message__branch {
    color: #64748b;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message__branch:hover,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message__branch:focus-visible {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-message__branch-label {
    border-color: rgba(15, 23, 42, 0.14);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
    color: #0f172a;
}

@media (max-width: 520px) {
    #documents-container.docs-provider-mcp .docs-mcp-message__role {
        padding-right: 76px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-message__branch {
        top: 5px;
        min-height: 32px;
        width: 32px;
        height: 32px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-message__branch-label {
        font-size: 11px;
    }
}

/* Project workspace navigation and project-local explorer tabs. */
#documents-container .docs-preview-overlay {
    z-index: 80;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-tabs {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--docs-mcp-vscode-border);
    background: rgba(255, 255, 255, 0.012);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-tabs > button {
    min-width: 0;
    min-height: 34px;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--docs-mcp-muted, #8b95a4);
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-tabs > button:hover {
    background: rgba(148, 163, 184, 0.08);
    color: var(--docs-mcp-text, #d7dde6);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-tabs > button.is-active {
    border-color: var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.10));
    color: var(--docs-mcp-text-strong, #f8fafc);
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-tabs .docs-mcp-icon-svg {
    width: 15px;
    height: 15px;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-tabs > button > span {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    font-weight: 680;
    letter-spacing: 0;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-tabs > button > small {
    min-width: 16px;
    color: inherit;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    opacity: 0.72;
}

#documents-container.docs-provider-mcp .docs-mcp-explorer-chats {
    border-top: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-workspace-topbar {
    flex: 0 0 auto;
    box-sizing: border-box;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--docs-mcp-vscode-border);
    background: var(--docs-mcp-surface, #1b2027);
}

#documents-container.docs-provider-mcp .docs-mcp-workspace-context {
    min-width: 0;
    display: grid;
    gap: 1px;
    margin-right: auto;
}

#documents-container.docs-provider-mcp .docs-mcp-workspace-context small {
    color: var(--docs-mcp-muted, #8b95a4);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-workspace-context strong {
    overflow: hidden;
    color: var(--docs-mcp-text-strong, #f8fafc);
    font-size: 12px;
    font-weight: 720;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#documents-container.docs-provider-mcp .docs-mcp-workspace-explorer,
#documents-container.docs-provider-mcp .docs-mcp-workspace-topbar .docs-mcp-workspace-close {
    position: static;
    inset: auto;
    z-index: auto;
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--docs-mcp-line-strong, rgba(148, 163, 184, 0.18));
    border-radius: 7px;
    background: rgba(148, 163, 184, 0.08);
    color: var(--docs-mcp-text, #d7dde6);
    cursor: pointer;
}

#documents-container.docs-provider-mcp .docs-mcp-workspace-explorer {
    display: none;
}

#documents-container.docs-provider-mcp .docs-mcp-workspace-explorer:hover,
#documents-container.docs-provider-mcp .docs-mcp-workspace-explorer:focus-visible,
#documents-container.docs-provider-mcp .docs-mcp-workspace-topbar .docs-mcp-workspace-close:hover,
#documents-container.docs-provider-mcp .docs-mcp-workspace-topbar .docs-mcp-workspace-close:focus-visible {
    border-color: rgba(125, 211, 252, 0.34);
    background: var(--docs-mcp-accent-soft, rgba(125, 211, 252, 0.10));
    color: var(--docs-mcp-text-strong, #f8fafc);
    outline: none;
}

#documents-container.docs-provider-mcp .docs-mcp-workspace-explorer .docs-mcp-icon-svg,
#documents-container.docs-provider-mcp .docs-mcp-workspace-topbar .docs-mcp-workspace-close .docs-mcp-icon-svg {
    width: 16px;
    height: 16px;
}

#documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-messages {
    padding-top: 16px;
}

#documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-settings-view {
    padding-top: 14px;
}

#documents-container.docs-provider-mcp .docs-mcp-editor__tabbar > button:last-child {
    margin-right: 0;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer-tabs {
    background: rgba(248, 250, 252, 0.76);
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-explorer-tabs > button.is-active {
    border-color: rgba(37, 99, 235, 0.18);
    background: #eaf1ff;
    color: #1d4ed8;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-workspace-topbar {
    background: #ffffff;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-workspace-context strong {
    color: #0f172a;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-workspace-explorer,
html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-workspace-topbar .docs-mcp-workspace-close {
    background: #ffffff;
    color: #475569;
    box-shadow: none;
}

@media (max-width: 768px) {
    #documents-container.docs-provider-mcp .docs-mcp-workspace-topbar {
        min-height: calc(48px + env(safe-area-inset-top, 0px));
        padding-top: calc(6px + env(safe-area-inset-top, 0px));
        padding-inline: 9px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-workspace-explorer {
        display: inline-grid;
    }

    #documents-container.docs-provider-mcp .docs-mcp-workspace-topbar .docs-mcp-workspace-close {
        position: static;
        inset: auto;
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-messages {
        padding-top: 12px;
    }

    #documents-container.docs-provider-mcp .docs-mcp-chat-panel--codex > .docs-mcp-settings-view {
        padding-top: 12px;
    }
}

#documents-container.docs-provider-mcp .docs-mcp-project-operation {
    position: absolute;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: rgba(15, 18, 23, 0.82);
    color: #f8fafc;
    cursor: progress;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: docs-mcp-project-operation-in 140ms ease-out;
}

#documents-container.docs-provider-mcp .docs-mcp-project-operation__spinner {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    box-sizing: border-box;
    border: 3px solid rgba(226, 232, 240, 0.28);
    border-top-color: #7dd3fc;
    border-radius: 50%;
    animation: docs-spin 0.72s linear infinite;
}

#documents-container.docs-provider-mcp .docs-mcp-project-operation__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

#documents-container.docs-provider-mcp .docs-mcp-project-operation__copy strong {
    font-size: 13px;
    font-weight: 730;
    letter-spacing: 0;
}

#documents-container.docs-provider-mcp .docs-mcp-project-operation__copy small {
    max-width: min(360px, calc(100vw - 110px));
    overflow: hidden;
    color: #b8c2d0;
    font-size: 11px;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-project-operation {
    background: rgba(248, 250, 252, 0.86);
    color: #0f172a;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-project-operation__spinner {
    border-color: rgba(71, 85, 105, 0.22);
    border-top-color: #2563eb;
}

html:not(.app-theme-dark):not(.dark) #documents-container.docs-provider-mcp .docs-mcp-project-operation__copy small {
    color: #64748b;
}

@keyframes docs-mcp-project-operation-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
