Files
cc-web/public/style.css

12096 lines
324 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@import url('https://fonts.googleapis.com/css2?family=Chivo+Mono:wght@400;700;800&display=swap');
/* ============================================
CC-Web — 和風暖色調 (Japanese Warm Theme)
============================================ */
:root {
/* --- 配色 --- */
--bg-primary: #faf6f0; /* 象牙 ivory */
--bg-secondary: #f2ebe2; /* 亜麻 flax */
--bg-tertiary: #e9e0d4; /* 砂 sand */
--bg-bubble-user: #c0553a; /* 朱色 vermillion */
--bg-bubble-assistant: #fff9f2; /* 練色 warm white */
--text-primary: #2d1f14; /* 黒茶 dark brown */
--text-secondary: #6b5a4d; /* 栗色 chestnut */
--text-muted: #9a8b7d; /* 灰茶 gray-brown */
--border-color: #ddd0c0; /* 枯色 withered */
--accent: #c0553a; /* 朱色 vermillion */
--accent-hover: #a84530; /* 深朱 deep vermillion */
--accent-light: #f5ddd4; /* 薄朱 light vermillion */
--success: #5d8a54; /* 抹茶 matcha */
--plan-progress-complete: var(--success);
--plan-progress-remaining: var(--accent);
--danger: #c0553a;
--info: #5b7ea1; /* 縹色 blue-gray */
--note-accent: #5b7ea1;
--note-accent-hover: #486b8f;
--note-bg: rgba(91, 126, 161, 0.1);
--note-bg-strong: rgba(91, 126, 161, 0.16);
--note-border: rgba(91, 126, 161, 0.24);
--scrollbar-thumb: #c9baa9;
--scrollbar-track: transparent;
--sidebar-width: 280px;
--header-height: 52px;
--input-max-height: 200px;
--safe-bottom: env(safe-area-inset-bottom, 0px);
--font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Noto Sans CJK SC', Roboto, sans-serif;
--page-background: #faf6f0;
--login-background: linear-gradient(135deg, #faf6f0 0%, #f0e8dc 50%, #e8dccf 100%);
--surface-strong: #fff;
--shadow-strong: 0 8px 32px rgba(45, 31, 20, 0.08);
--theme-card-bg: rgba(255, 249, 242, 0.72);
--theme-card-border: rgba(221, 208, 192, 0.92);
--theme-card-hover-border: rgba(192, 85, 58, 0.32);
--theme-card-active-ring: rgba(192, 85, 58, 0.12);
--loading-overlay-layer-a: rgba(250, 246, 240, 0.76);
--loading-overlay-layer-b: rgba(233, 224, 212, 0.82);
--loading-overlay-scrim: rgba(45, 31, 20, 0.18);
--loading-card-bg: linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(249, 242, 233, 0.95));
--loading-card-border: rgba(192, 85, 58, 0.16);
--loading-card-shadow: 0 24px 60px rgba(45, 31, 20, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.75);
--loading-badge-bg: rgba(245, 221, 212, 0.92);
--loading-badge-text: var(--accent);
--loading-bar-bg: rgba(221, 208, 192, 0.85);
--loading-bar-fill: linear-gradient(90deg, #c0553a, #d98666, #c0553a);
}
html[data-theme='coolvibe'] {
--bg-primary: #eef7f9;
--bg-secondary: #f7fbfc;
--bg-tertiary: #dfeef2;
--bg-bubble-user: #0891b2;
--bg-bubble-assistant: #ffffff;
--text-primary: #0d1b1f;
--text-secondary: #46606a;
--text-muted: #6f8790;
--border-color: #cfe0e6;
--accent: #0891b2;
--accent-hover: #0b7289;
--accent-light: rgba(8, 145, 178, 0.12);
--success: #2e8a61;
--danger: #d65567;
--info: #1976a4;
--note-accent: #2e8a61;
--note-accent-hover: #226547;
--note-bg: rgba(46, 138, 97, 0.1);
--note-bg-strong: rgba(46, 138, 97, 0.16);
--note-border: rgba(46, 138, 97, 0.24);
--scrollbar-thumb: #a7c4ce;
--font-ui: 'Chivo Mono', ui-monospace, monospace;
--page-background:
radial-gradient(circle at top, rgba(8, 145, 178, 0.12), transparent 34%),
linear-gradient(180deg, #f6fbfc, #eef7f9 46%, #e8f3f6);
--login-background:
radial-gradient(circle at center, rgba(8, 145, 178, 0.1), transparent 40%),
linear-gradient(180deg, #fbfeff, #eef7f9);
--surface-strong: #ffffff;
--shadow-strong: 0 18px 40px rgba(9, 54, 69, 0.12);
--theme-card-bg: rgba(255, 255, 255, 0.88);
--theme-card-border: rgba(207, 224, 230, 0.96);
--theme-card-hover-border: rgba(8, 145, 178, 0.32);
--theme-card-active-ring: rgba(8, 145, 178, 0.14);
--loading-overlay-layer-a: rgba(241, 251, 253, 0.78);
--loading-overlay-layer-b: rgba(219, 239, 244, 0.84);
--loading-overlay-scrim: rgba(10, 52, 67, 0.16);
--loading-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 251, 0.96));
--loading-card-border: rgba(8, 145, 178, 0.18);
--loading-card-shadow: 0 24px 60px rgba(10, 52, 67, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.84);
--loading-badge-bg: rgba(8, 145, 178, 0.12);
--loading-badge-text: #0a6d83;
--loading-bar-bg: rgba(191, 220, 228, 0.92);
--loading-bar-fill: linear-gradient(90deg, #0891b2, #34c4de, #0891b2);
}
html[data-theme='coolvibe'] body {
letter-spacing: -0.01em;
}
html[data-theme='coolvibe'] .login-box,
html[data-theme='coolvibe'] .settings-panel,
html[data-theme='coolvibe'] .modal-panel,
html[data-theme='coolvibe'] .option-picker,
html[data-theme='coolvibe'] .chat-agent-menu {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 252, 0.96));
border-color: rgba(191, 220, 228, 0.96);
box-shadow:
0 18px 44px rgba(11, 73, 92, 0.12),
inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html[data-theme='coolvibe'] .sidebar {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 249, 251, 0.98));
border-right-color: rgba(191, 220, 228, 0.98);
box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.8);
}
html[data-theme='coolvibe'] .sidebar-header,
html[data-theme='coolvibe'] .sidebar-footer {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(244, 250, 252, 0.8));
border-color: rgba(191, 220, 228, 0.96);
}
html[data-theme='coolvibe'] .brand {
color: #5f7f87;
letter-spacing: 0.16em;
text-transform: uppercase;
}
html[data-theme='coolvibe'] .new-chat-btn,
html[data-theme='coolvibe'] .send-btn {
background:
linear-gradient(135deg, #0a8fb0, #11b8d7);
color: #f7feff;
border: 1px solid rgba(8, 145, 178, 0.1);
box-shadow:
0 10px 22px rgba(8, 145, 178, 0.22),
inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
html[data-theme='coolvibe'] .new-chat-btn:hover,
html[data-theme='coolvibe'] .send-btn:hover {
background:
linear-gradient(135deg, #0b7f9b, #0fa6c3);
}
html[data-theme='coolvibe'] .attach-btn,
html[data-theme='coolvibe'] .abort-btn,
html[data-theme='coolvibe'] .settings-btn,
html[data-theme='coolvibe'] .new-chat-arrow {
background: rgba(8, 145, 178, 0.08);
color: #0c6980;
border: 1px solid rgba(167, 205, 216, 0.84);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
html[data-theme='coolvibe'] .attach-btn:hover,
html[data-theme='coolvibe'] .abort-btn:hover,
html[data-theme='coolvibe'] .settings-btn:hover,
html[data-theme='coolvibe'] .new-chat-arrow:hover {
background: rgba(8, 145, 178, 0.16);
color: #0b5060;
}
html[data-theme='coolvibe'] .session-list-empty,
html[data-theme='coolvibe'] .attachment-tray-note {
background: rgba(249, 253, 254, 0.92);
border-color: rgba(191, 220, 228, 0.96);
}
html[data-theme='coolvibe'] .session-search-input {
background: rgba(249, 253, 254, 0.86);
border-color: rgba(191, 220, 228, 0.96);
}
html[data-theme='coolvibe'] .session-search::before {
color: #6d8d95;
}
html[data-theme='coolvibe'] .session-search-input:focus {
border-color: rgba(8, 145, 178, 0.36);
box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}
html[data-theme='coolvibe'] .session-search-clear:hover,
html[data-theme='coolvibe'] .session-search-clear:focus-visible {
background: rgba(8, 145, 178, 0.12);
color: #0a6d83;
}
html[data-theme='coolvibe'] .session-project-header {
background: linear-gradient(180deg, rgba(247, 251, 252, 0.94), rgba(239, 248, 250, 0.88));
border-color: rgba(156, 199, 211, 0.9);
color: #335e69;
}
html[data-theme='coolvibe'] .session-project-count {
background: rgba(8, 145, 178, 0.1);
color: #0a6d83;
}
html[data-theme='coolvibe'] .session-item {
border: 1px solid transparent;
border-radius: 14px;
}
html[data-theme='coolvibe'] .session-item:hover {
background: rgba(8, 145, 178, 0.08);
border-color: rgba(191, 220, 228, 0.82);
}
html[data-theme='coolvibe'] .session-item.active {
background:
linear-gradient(135deg, rgba(8, 145, 178, 0.12), rgba(8, 145, 178, 0.04));
border-color: rgba(8, 145, 178, 0.26);
box-shadow: inset 3px 0 0 #08b7d6;
}
html[data-theme='coolvibe'] .session-item.active .session-item-title {
color: #0a6d83;
}
html[data-theme='coolvibe'] .chat-main {
background:
radial-gradient(circle at top, rgba(8, 145, 178, 0.08), transparent 34%),
linear-gradient(180deg, rgba(251, 254, 255, 0.92), rgba(238, 247, 249, 0.96));
}
html[data-theme='coolvibe'] .chat-header {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 250, 252, 0.88));
border-bottom-color: rgba(191, 220, 228, 0.96);
box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.84);
}
html[data-theme='coolvibe'] .chat-title {
font-weight: 800;
letter-spacing: -0.02em;
}
html[data-theme='coolvibe'] .chat-title:hover {
background: rgba(8, 145, 178, 0.08);
}
html[data-theme='coolvibe'] .chat-agent-btn,
html[data-theme='coolvibe'] .mode-select {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(234, 247, 251, 0.92));
border-color: rgba(167, 205, 216, 0.92);
color: #0c6478;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}
html[data-theme='coolvibe'] .chat-agent-btn:hover,
html[data-theme='coolvibe'] .mode-select:hover {
background: rgba(228, 244, 248, 0.98);
}
html[data-theme='coolvibe'] .chat-runtime-state {
background: rgba(46, 138, 97, 0.12);
border-color: rgba(46, 138, 97, 0.22);
color: #226547;
}
html[data-theme='coolvibe'] .chat-cwd {
background: rgba(8, 145, 178, 0.08);
border: 1px solid rgba(167, 205, 216, 0.78);
color: #46606a;
}
html[data-theme='coolvibe'] .input-area {
background:
linear-gradient(180deg, rgba(251, 254, 255, 0.96), rgba(240, 248, 250, 0.96));
border-top-color: rgba(191, 220, 228, 0.96);
}
html[data-theme='coolvibe'] .input-wrapper {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 253, 0.96));
border-color: rgba(167, 205, 216, 0.96);
border-radius: 18px;
box-shadow:
0 10px 28px rgba(11, 73, 92, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
html[data-theme='coolvibe'] .input-wrapper:focus-within {
border-color: rgba(8, 145, 178, 0.56);
box-shadow:
0 14px 30px rgba(8, 145, 178, 0.12),
0 0 0 4px rgba(8, 145, 178, 0.08);
}
html[data-theme='coolvibe'] .msg.user .msg-bubble {
background:
linear-gradient(135deg, #0891b2, #11b8d7);
box-shadow: 0 12px 22px rgba(8, 145, 178, 0.16);
}
html[data-theme='coolvibe'] .msg.assistant .msg-bubble {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 253, 0.96));
border-color: rgba(191, 220, 228, 0.96);
box-shadow: 0 10px 24px rgba(11, 73, 92, 0.08);
}
html[data-theme='coolvibe'] .settings-actions .btn-save {
background:
linear-gradient(135deg, #0a8fb0, #11b8d7);
box-shadow: 0 10px 22px rgba(8, 145, 178, 0.18);
}
html[data-theme='coolvibe'] .settings-actions .btn-test {
background: rgba(8, 145, 178, 0.08);
border-color: rgba(167, 205, 216, 0.9);
color: #0c6478;
}
html[data-theme='coolvibe'] .theme-card:hover {
border-color: rgba(8, 145, 178, 0.32);
box-shadow: 0 10px 24px rgba(8, 145, 178, 0.1);
}
html[data-theme='coolvibe'] .theme-card.active {
box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.14);
}
html[data-theme='editorial'] .session-project-header {
background: linear-gradient(180deg, rgba(239, 232, 220, 0.94), rgba(246, 241, 232, 0.84));
border-color: rgba(139, 94, 60, 0.22);
color: #4f4035;
}
html[data-theme='editorial'] .session-project-count {
background: rgba(139, 94, 60, 0.1);
color: #71482d;
}
html[data-theme='editorial'] {
--bg-primary: #f6f1e8;
--bg-secondary: #efe8dc;
--bg-tertiary: #e2d8c7;
--bg-bubble-user: #2f4b45;
--bg-bubble-assistant: #fbf7f0;
--text-primary: #201b17;
--text-secondary: #5a5148;
--text-muted: #8a7d71;
--border-color: #d8ccba;
--accent: #8b5e3c;
--accent-hover: #71482d;
--accent-light: rgba(139, 94, 60, 0.14);
--success: #4d7b57;
--danger: #c05c42;
--info: #4f6f87;
--note-accent: #4f6f87;
--note-accent-hover: #3d596f;
--note-bg: rgba(79, 111, 135, 0.1);
--note-bg-strong: rgba(79, 111, 135, 0.16);
--note-border: rgba(79, 111, 135, 0.24);
--scrollbar-thumb: #bba995;
--font-ui: 'Avenir Next', 'Segoe UI', 'PingFang SC', sans-serif;
--page-background:
radial-gradient(circle at top left, rgba(139, 94, 60, 0.08), transparent 38%),
linear-gradient(180deg, #f8f3eb, #f2ebe0 48%, #f6f1e8);
--login-background:
linear-gradient(135deg, #f7f1e7 0%, #ede4d6 50%, #e6dbcb 100%);
--surface-strong: #fffdf8;
--shadow-strong: 0 14px 36px rgba(50, 32, 20, 0.1);
--theme-card-bg: rgba(255, 252, 246, 0.88);
--theme-card-border: rgba(216, 204, 186, 0.96);
--theme-card-hover-border: rgba(139, 94, 60, 0.32);
--theme-card-active-ring: rgba(139, 94, 60, 0.12);
--loading-overlay-layer-a: rgba(247, 241, 231, 0.8);
--loading-overlay-layer-b: rgba(230, 219, 203, 0.84);
--loading-overlay-scrim: rgba(46, 36, 27, 0.16);
--loading-card-bg: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(246, 238, 225, 0.96));
--loading-card-border: rgba(139, 94, 60, 0.16);
--loading-card-shadow: 0 24px 60px rgba(50, 32, 20, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
--loading-badge-bg: rgba(139, 94, 60, 0.12);
--loading-badge-text: #8b5e3c;
--loading-bar-bg: rgba(216, 204, 186, 0.92);
--loading-bar-fill: linear-gradient(90deg, #8b5e3c, #c59470, #8b5e3c);
}
html[data-theme='sage'] {
--bg-primary: #f5f8f2;
--bg-secondary: #edf3e8;
--bg-tertiary: #dce8d6;
--bg-bubble-user: #2f6f64;
--bg-bubble-assistant: #fbfdf8;
--text-primary: #18231f;
--text-secondary: #50635c;
--text-muted: #7d9088;
--border-color: #cad9ce;
--accent: #2f6f64;
--accent-hover: #24584f;
--accent-light: rgba(47, 111, 100, 0.13);
--success: #5c8a4e;
--danger: #b65b55;
--info: #557ba3;
--note-accent: #557ba3;
--note-accent-hover: #416380;
--note-bg: rgba(85, 123, 163, 0.1);
--note-bg-strong: rgba(85, 123, 163, 0.16);
--note-border: rgba(85, 123, 163, 0.24);
--scrollbar-thumb: #aec4b7;
--page-background:
radial-gradient(circle at top left, rgba(47, 111, 100, 0.1), transparent 38%),
linear-gradient(180deg, #f9fbf5, #eef5ea 48%, #f5f8f2);
--login-background:
linear-gradient(135deg, #f9fbf5 0%, #edf4e8 52%, #dfe9d9 100%);
--surface-strong: #fffefb;
--shadow-strong: 0 14px 36px rgba(32, 64, 54, 0.11);
--theme-card-bg: rgba(255, 254, 251, 0.86);
--theme-card-border: rgba(202, 217, 206, 0.96);
--theme-card-hover-border: rgba(47, 111, 100, 0.32);
--theme-card-active-ring: rgba(47, 111, 100, 0.13);
--loading-overlay-layer-a: rgba(245, 248, 242, 0.8);
--loading-overlay-layer-b: rgba(220, 232, 214, 0.84);
--loading-overlay-scrim: rgba(24, 35, 31, 0.16);
--loading-card-bg: linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(239, 246, 234, 0.96));
--loading-card-border: rgba(47, 111, 100, 0.17);
--loading-card-shadow: 0 24px 60px rgba(32, 64, 54, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
--loading-badge-bg: rgba(47, 111, 100, 0.12);
--loading-badge-text: #2f6f64;
--loading-bar-bg: rgba(202, 217, 206, 0.92);
--loading-bar-fill: linear-gradient(90deg, #2f6f64, #6aa889, #2f6f64);
}
html[data-theme='ink'] {
--bg-primary: #f6f7fb;
--bg-secondary: #eef1f7;
--bg-tertiary: #dde3ef;
--bg-bubble-user: #3f5fb5;
--bg-bubble-assistant: #ffffff;
--text-primary: #171923;
--text-secondary: #515b6d;
--text-muted: #7b8495;
--border-color: #d2d8e6;
--accent: #3f5fb5;
--accent-hover: #324d93;
--accent-light: rgba(63, 95, 181, 0.12);
--success: #3f8f73;
--danger: #c35062;
--info: #456aa6;
--note-accent: #3f8f73;
--note-accent-hover: #2f6e58;
--note-bg: rgba(63, 143, 115, 0.1);
--note-bg-strong: rgba(63, 143, 115, 0.16);
--note-border: rgba(63, 143, 115, 0.24);
--scrollbar-thumb: #b5bfd3;
--page-background:
radial-gradient(circle at top right, rgba(63, 95, 181, 0.1), transparent 36%),
linear-gradient(180deg, #fbfcff, #eef1f7 48%, #f6f7fb);
--login-background:
linear-gradient(135deg, #fbfcff 0%, #eef1f7 52%, #e3e8f3 100%);
--surface-strong: #ffffff;
--shadow-strong: 0 16px 38px rgba(31, 42, 72, 0.11);
--theme-card-bg: rgba(255, 255, 255, 0.88);
--theme-card-border: rgba(210, 216, 230, 0.96);
--theme-card-hover-border: rgba(63, 95, 181, 0.32);
--theme-card-active-ring: rgba(63, 95, 181, 0.13);
--loading-overlay-layer-a: rgba(246, 247, 251, 0.8);
--loading-overlay-layer-b: rgba(221, 227, 239, 0.84);
--loading-overlay-scrim: rgba(23, 25, 35, 0.16);
--loading-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 244, 250, 0.96));
--loading-card-border: rgba(63, 95, 181, 0.17);
--loading-card-shadow: 0 24px 60px rgba(31, 42, 72, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.84);
--loading-badge-bg: rgba(63, 95, 181, 0.12);
--loading-badge-text: #3f5fb5;
--loading-bar-bg: rgba(210, 216, 230, 0.92);
--loading-bar-fill: linear-gradient(90deg, #3f5fb5, #6e86d6, #3f5fb5);
}
html[data-theme='dawn'] {
--bg-primary: #fff7f2;
--bg-secondary: #f6ede7;
--bg-tertiary: #eadbd2;
--bg-bubble-user: #b5524d;
--bg-bubble-assistant: #fffaf6;
--text-primary: #2b2220;
--text-secondary: #665753;
--text-muted: #947f79;
--border-color: #decac0;
--accent: #b5524d;
--accent-hover: #94403d;
--accent-light: rgba(181, 82, 77, 0.13);
--success: #4f8a6b;
--danger: #ba4e58;
--info: #597da5;
--note-accent: #4f8a6b;
--note-accent-hover: #3c6b52;
--note-bg: rgba(79, 138, 107, 0.1);
--note-bg-strong: rgba(79, 138, 107, 0.16);
--note-border: rgba(79, 138, 107, 0.24);
--scrollbar-thumb: #cdb6ad;
--page-background:
radial-gradient(circle at top left, rgba(181, 82, 77, 0.08), transparent 36%),
linear-gradient(180deg, #fffaf6, #f7ede6 48%, #fff7f2);
--login-background:
linear-gradient(135deg, #fffaf6 0%, #f6ebe4 52%, #eadbd2 100%);
--surface-strong: #ffffff;
--shadow-strong: 0 14px 36px rgba(86, 47, 42, 0.11);
--theme-card-bg: rgba(255, 250, 246, 0.88);
--theme-card-border: rgba(222, 202, 192, 0.96);
--theme-card-hover-border: rgba(181, 82, 77, 0.32);
--theme-card-active-ring: rgba(181, 82, 77, 0.13);
--loading-overlay-layer-a: rgba(255, 247, 242, 0.8);
--loading-overlay-layer-b: rgba(234, 219, 210, 0.84);
--loading-overlay-scrim: rgba(43, 34, 32, 0.16);
--loading-card-bg: linear-gradient(180deg, rgba(255, 250, 246, 0.98), rgba(247, 237, 230, 0.96));
--loading-card-border: rgba(181, 82, 77, 0.17);
--loading-card-shadow: 0 24px 60px rgba(86, 47, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
--loading-badge-bg: rgba(181, 82, 77, 0.12);
--loading-badge-text: #b5524d;
--loading-bar-bg: rgba(222, 202, 192, 0.92);
--loading-bar-fill: linear-gradient(90deg, #b5524d, #de8f7a, #b5524d);
}
html[data-theme='carbon'] {
color-scheme: dark;
--bg-primary: #0f1314;
--bg-secondary: #151a1b;
--bg-tertiary: #202829;
--bg-bubble-user: #247b66;
--bg-bubble-assistant: #171d1e;
--text-primary: #edf5ef;
--text-secondary: #b7c7c0;
--text-muted: #82938b;
--border-color: #2b3836;
--accent: #67d8b2;
--accent-hover: #52c69f;
--accent-light: rgba(103, 216, 178, 0.16);
--success: #74c989;
--danger: #ff7b73;
--info: #9fb7ff;
--note-accent: #9fb7ff;
--note-accent-hover: #bdcbff;
--note-bg: rgba(159, 183, 255, 0.12);
--note-bg-strong: rgba(159, 183, 255, 0.18);
--note-border: rgba(159, 183, 255, 0.28);
--scrollbar-thumb: #41514f;
--page-background:
radial-gradient(circle at top left, rgba(103, 216, 178, 0.12), transparent 34%),
linear-gradient(180deg, #111819, #0f1314 50%, #0b0e0f);
--login-background:
radial-gradient(circle at top, rgba(103, 216, 178, 0.13), transparent 38%),
linear-gradient(135deg, #111819 0%, #0f1314 54%, #0a0c0d 100%);
--surface-strong: #171d1e;
--shadow-strong: 0 22px 54px rgba(0, 0, 0, 0.38);
--theme-card-bg: rgba(23, 29, 30, 0.9);
--theme-card-border: rgba(75, 96, 92, 0.74);
--theme-card-hover-border: rgba(103, 216, 178, 0.38);
--theme-card-active-ring: rgba(103, 216, 178, 0.18);
--loading-overlay-layer-a: rgba(15, 19, 20, 0.86);
--loading-overlay-layer-b: rgba(32, 40, 41, 0.82);
--loading-overlay-scrim: rgba(0, 0, 0, 0.34);
--loading-card-bg: linear-gradient(180deg, rgba(25, 32, 33, 0.98), rgba(17, 23, 24, 0.96));
--loading-card-border: rgba(103, 216, 178, 0.2);
--loading-card-shadow: 0 28px 70px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.05);
--loading-badge-bg: rgba(103, 216, 178, 0.14);
--loading-badge-text: #86e8c6;
--loading-bar-bg: rgba(65, 81, 79, 0.92);
--loading-bar-fill: linear-gradient(90deg, #67d8b2, #9fb7ff, #67d8b2);
--accent-ink: #071512;
--dark-panel-bg: rgba(23, 29, 30, 0.96);
--dark-panel-soft: rgba(28, 36, 37, 0.92);
--dark-shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.28);
}
html[data-theme='nocturne'] {
color-scheme: dark;
--bg-primary: #081417;
--bg-secondary: #0d1d22;
--bg-tertiary: #142b31;
--bg-bubble-user: #116f92;
--bg-bubble-assistant: #0f2025;
--text-primary: #edf8fa;
--text-secondary: #b1c8cf;
--text-muted: #76929b;
--border-color: #263c43;
--accent: #5ecdf5;
--accent-hover: #45b9e4;
--accent-light: rgba(94, 205, 245, 0.15);
--success: #67d9a4;
--danger: #fb7185;
--info: #8fb9ff;
--note-accent: #f0c36a;
--note-accent-hover: #ffd57d;
--note-bg: rgba(240, 195, 106, 0.12);
--note-bg-strong: rgba(240, 195, 106, 0.18);
--note-border: rgba(240, 195, 106, 0.28);
--scrollbar-thumb: #39525a;
--page-background:
radial-gradient(circle at top right, rgba(94, 205, 245, 0.12), transparent 34%),
linear-gradient(180deg, #0b1b20, #081417 52%, #050b0d);
--login-background:
radial-gradient(circle at center, rgba(94, 205, 245, 0.12), transparent 38%),
linear-gradient(135deg, #0b1b20 0%, #081417 55%, #050b0d 100%);
--surface-strong: #0f2025;
--shadow-strong: 0 22px 54px rgba(0, 0, 0, 0.4);
--theme-card-bg: rgba(15, 32, 37, 0.9);
--theme-card-border: rgba(55, 84, 93, 0.76);
--theme-card-hover-border: rgba(94, 205, 245, 0.38);
--theme-card-active-ring: rgba(94, 205, 245, 0.18);
--loading-overlay-layer-a: rgba(8, 20, 23, 0.86);
--loading-overlay-layer-b: rgba(20, 43, 49, 0.82);
--loading-overlay-scrim: rgba(0, 0, 0, 0.35);
--loading-card-bg: linear-gradient(180deg, rgba(16, 34, 39, 0.98), rgba(9, 22, 26, 0.96));
--loading-card-border: rgba(94, 205, 245, 0.2);
--loading-card-shadow: 0 28px 70px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.05);
--loading-badge-bg: rgba(94, 205, 245, 0.14);
--loading-badge-text: #7ddcff;
--loading-bar-bg: rgba(57, 82, 90, 0.92);
--loading-bar-fill: linear-gradient(90deg, #5ecdf5, #f0c36a, #5ecdf5);
--accent-ink: #041216;
--dark-panel-bg: rgba(15, 32, 37, 0.96);
--dark-panel-soft: rgba(19, 42, 48, 0.92);
--dark-shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.3);
}
html[data-theme='cinder'] {
color-scheme: dark;
--bg-primary: #151112;
--bg-secondary: #1f1719;
--bg-tertiary: #2a2022;
--bg-bubble-user: #9f4051;
--bg-bubble-assistant: #21191b;
--text-primary: #f6eeee;
--text-secondary: #cbb9bb;
--text-muted: #927e82;
--border-color: #3d2d31;
--accent: #e68193;
--accent-hover: #d36c7f;
--accent-light: rgba(230, 129, 147, 0.16);
--success: #67c587;
--danger: #ff7b86;
--info: #8eb4e8;
--note-accent: #67c587;
--note-accent-hover: #83d99d;
--note-bg: rgba(103, 197, 135, 0.12);
--note-bg-strong: rgba(103, 197, 135, 0.18);
--note-border: rgba(103, 197, 135, 0.28);
--scrollbar-thumb: #584148;
--page-background:
radial-gradient(circle at top left, rgba(230, 129, 147, 0.11), transparent 34%),
linear-gradient(180deg, #1c1517, #151112 52%, #0d0a0b);
--login-background:
radial-gradient(circle at top, rgba(230, 129, 147, 0.13), transparent 38%),
linear-gradient(135deg, #1c1517 0%, #151112 55%, #0d0a0b 100%);
--surface-strong: #21191b;
--shadow-strong: 0 22px 54px rgba(0, 0, 0, 0.4);
--theme-card-bg: rgba(33, 25, 27, 0.9);
--theme-card-border: rgba(83, 61, 67, 0.76);
--theme-card-hover-border: rgba(230, 129, 147, 0.38);
--theme-card-active-ring: rgba(230, 129, 147, 0.18);
--loading-overlay-layer-a: rgba(21, 17, 18, 0.86);
--loading-overlay-layer-b: rgba(42, 32, 34, 0.82);
--loading-overlay-scrim: rgba(0, 0, 0, 0.35);
--loading-card-bg: linear-gradient(180deg, rgba(35, 27, 29, 0.98), rgba(23, 18, 19, 0.96));
--loading-card-border: rgba(230, 129, 147, 0.2);
--loading-card-shadow: 0 28px 70px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.05);
--loading-badge-bg: rgba(230, 129, 147, 0.14);
--loading-badge-text: #f09aaa;
--loading-bar-bg: rgba(88, 65, 72, 0.92);
--loading-bar-fill: linear-gradient(90deg, #e68193, #67c587, #e68193);
--accent-ink: #1b0f12;
--dark-panel-bg: rgba(33, 25, 27, 0.96);
--dark-panel-soft: rgba(41, 31, 34, 0.92);
--dark-shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.3);
}
html[data-theme='gilded'] {
color-scheme: light;
--bg-primary: #fbf3e5;
--bg-secondary: #f3ead8;
--bg-tertiary: #eadcc6;
--bg-bubble-user: #7a3f20;
--bg-bubble-assistant: #fff7ea;
--text-primary: #201812;
--text-secondary: #4b392a;
--text-muted: #655446;
--border-color: rgba(120, 91, 57, 0.34);
--accent: #7a3f20;
--accent-hover: #5f3019;
--accent-light: #efdfbf;
--success: #526b34;
--danger: #9a2f22;
--info: #147276;
--note-accent: #7a3f20;
--note-accent-hover: #5f3019;
--note-bg: #f2dec3;
--note-bg-strong: #e6c897;
--note-border: rgba(138, 97, 37, 0.42);
--scrollbar-thumb: #9d8056;
--page-background:
linear-gradient(135deg, rgba(213, 175, 99, 0.16), transparent 30%),
linear-gradient(180deg, #fbf3e5 0%, #f3ead8 52%, #eadcc6 100%);
--login-background:
linear-gradient(135deg, rgba(213, 175, 99, 0.22), transparent 34%),
linear-gradient(180deg, #fbf3e5 0%, #efe4d2 100%);
--surface-strong: #fff7ea;
--shadow-strong: 0 22px 56px rgba(69, 48, 25, 0.16);
--theme-card-bg: #fff7ea;
--theme-card-border: rgba(120, 91, 57, 0.28);
--theme-card-hover-border: rgba(122, 63, 32, 0.46);
--theme-card-active-ring: rgba(213, 175, 99, 0.3);
--loading-overlay-layer-a: rgba(251, 243, 229, 0.92);
--loading-overlay-layer-b: rgba(234, 220, 198, 0.88);
--loading-overlay-scrim: rgba(69, 48, 25, 0.18);
--loading-card-bg: linear-gradient(180deg, rgba(255, 247, 234, 0.98), rgba(243, 234, 216, 0.96));
--loading-card-border: rgba(138, 97, 37, 0.3);
--loading-card-shadow: 0 28px 68px rgba(69, 48, 25, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.62);
--loading-badge-bg: rgba(122, 63, 32, 0.12);
--loading-badge-text: #7a3f20;
--loading-bar-bg: rgba(157, 128, 86, 0.24);
--loading-bar-fill: linear-gradient(90deg, #7a3f20, #d5af63, #147276);
--accent-ink: #fff7ea;
--dark-panel-bg: #fff7ea;
--dark-panel-soft: #f3ead8;
--dark-shadow-soft: 0 12px 28px rgba(69, 48, 25, 0.12);
--gilded-focus-ring: rgba(20, 114, 118, 0.24);
--gilded-copper-soft: #f2dec3;
--warframe-paper: #efe4d2;
--warframe-ivory: #fff7ea;
--warframe-field: #d8c4a0;
--warframe-charcoal: #201812;
--warframe-gold: #d5af63;
--warframe-gold-deep: #8a6125;
--warframe-copper: #7a3f20;
--warframe-ember: #a84f25;
--warframe-energy: #147276;
--warframe-energy-soft: rgba(20, 114, 118, 0.14);
--warframe-line: rgba(138, 97, 37, 0.34);
--warframe-line-strong: rgba(122, 63, 32, 0.52);
}
html[data-theme='wasteland'] {
color-scheme: dark;
--bg-primary: #090b0a;
--bg-secondary: #0f1110;
--bg-tertiary: #191915;
--bg-bubble-user: #251d16;
--bg-bubble-assistant: #101311;
--text-primary: #fff;
--text-secondary: #eadfc9;
--text-muted: #c9bda6;
--border-color: rgba(196, 154, 90, 0.28);
--accent: #c49a5a;
--accent-hover: #d5ad6d;
--accent-light: rgba(196, 154, 90, 0.14);
--success: #778449;
--danger: #b96849;
--info: #e2c58d;
--note-accent: #9b7044;
--note-accent-hover: #b38652;
--note-bg: rgba(155, 112, 68, 0.13);
--note-bg-strong: rgba(155, 112, 68, 0.2);
--note-border: rgba(196, 154, 90, 0.3);
--scrollbar-thumb: #6d5738;
--page-background: transparent;
--login-background:
linear-gradient(90deg, rgba(3, 5, 5, 0.96), rgba(3, 5, 5, 0.64)),
url('assets/themes/wasteland/background.webp') 62% 50% / cover no-repeat;
--surface-strong: rgba(14, 16, 14, 0.94);
--shadow-strong: 0 24px 62px rgba(0, 0, 0, 0.58);
--theme-card-bg: rgba(14, 16, 14, 0.92);
--theme-card-border: rgba(196, 154, 90, 0.28);
--theme-card-hover-border: rgba(213, 173, 109, 0.62);
--theme-card-active-ring: rgba(196, 154, 90, 0.2);
--loading-overlay-layer-a: rgba(5, 7, 7, 0.9);
--loading-overlay-layer-b: rgba(18, 17, 13, 0.88);
--loading-overlay-scrim: rgba(0, 0, 0, 0.48);
--loading-card-bg: linear-gradient(180deg, rgba(18, 20, 18, 0.98), rgba(8, 10, 9, 0.97));
--loading-card-border: rgba(196, 154, 90, 0.34);
--loading-card-shadow: 0 28px 70px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(239, 232, 216, 0.04);
--loading-badge-bg: rgba(196, 154, 90, 0.13);
--loading-badge-text: #d8b779;
--loading-bar-bg: rgba(70, 59, 41, 0.72);
--loading-bar-fill: linear-gradient(90deg, #6f783f, #c49a5a, #a65b3d);
--accent-ink: #090805;
--dark-panel-bg: rgba(12, 14, 13, 0.96);
--dark-panel-soft: rgba(20, 21, 18, 0.92);
--dark-shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.38);
--wasteland-iron: #080a09;
--wasteland-panel: rgba(12, 14, 13, 0.82);
--wasteland-panel-soft: rgba(16, 18, 16, 0.72);
--wasteland-panel-strong: rgba(8, 10, 9, 0.93);
--wasteland-gold: #c49a5a;
--wasteland-gold-bright: #dfbd82;
--wasteland-green: #6f783f;
--wasteland-ember: #a65b3d;
--wasteland-line: rgba(196, 154, 90, 0.28);
--wasteland-line-strong: rgba(213, 173, 109, 0.52);
--wasteland-cut: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .login-box,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-panel,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .modal-panel,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .option-picker,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .chat-agent-menu,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .new-chat-dropdown,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .cmd-menu {
background: var(--dark-panel-bg);
border-color: var(--border-color);
box-shadow: var(--shadow-strong);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .sidebar {
background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .chat-main {
background: var(--page-background);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .sidebar-header,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .sidebar-footer,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .chat-header,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .input-area {
background: rgba(0, 0, 0, 0.14);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .agent-switch,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .input-wrapper,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .attachment-chip,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .msg-attachment-card,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-nav-card,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-toggle-row,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .modal-select,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .modal-text-input,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-field input,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-select,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-item-edit-input {
background: var(--dark-panel-soft);
border-color: var(--border-color);
color: var(--text-primary);
box-shadow: var(--dark-shadow-soft);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .agent-switch-btn:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .chat-agent-btn:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .attach-btn:hover {
background: var(--accent-light);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .agent-switch-btn.active,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .login-logo,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .new-chat-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .send-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-actions .btn-save,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .fc-submit-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .modal-btn-primary {
color: var(--accent-ink);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .chat-agent-btn {
border-color: var(--border-color);
color: var(--text-primary);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .msg.assistant .msg-bubble,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call-content {
background: var(--bg-bubble-assistant);
border-color: var(--border-color);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .msg-attachment-thumb {
background: linear-gradient(180deg, var(--bg-tertiary), var(--bg-secondary));
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .attachment-tray-note,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call-content.reasoning,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call-content.collab-agent-content,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call-content.command,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call-content.file-change {
background: var(--dark-panel-soft);
color: var(--text-primary);
border-color: var(--border-color);
}
/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
height: 100%;
height: -webkit-fill-available;
}
body {
height: 100%;
height: 100dvh;
min-height: -webkit-fill-available;
font-family: var(--font-ui);
font-size: 15px;
line-height: 1.6;
color: var(--text-primary);
background: var(--page-background);
overflow: hidden;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
}
/* 全局隐藏原生滚动条,聊天区由 custom-scrollbar 接管 */
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }
/* === Login === */
.login-overlay {
position: fixed; inset: 0;
display: flex; align-items: center; justify-content: center;
background: var(--login-background);
z-index: 1000;
}
.login-box {
text-align: center;
padding: 48px 36px;
background: var(--surface-strong);
border: 1px solid var(--border-color);
border-radius: 20px;
width: 90%;
max-width: 360px;
box-shadow: var(--shadow-strong);
}
.login-logo {
width: 64px; height: 64px;
margin: 0 auto 16px;
border-radius: 16px;
display: block;
object-fit: contain;
filter: drop-shadow(0 10px 18px rgba(0, 20, 34, 0.24));
}
.login-box h2 {
font-size: 24px;
margin-bottom: 4px;
color: var(--text-primary);
font-weight: 700;
}
.login-box p {
color: var(--text-secondary);
margin-bottom: 28px;
font-size: 14px;
}
.login-box input {
width: 100%;
padding: 12px 16px;
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 10px;
color: var(--text-primary);
font-size: 15px;
outline: none;
margin-bottom: 12px;
transition: border-color 0.2s;
}
.login-box input:focus { border-color: var(--accent); }
.login-box button {
width: 100%;
padding: 12px;
background: var(--accent);
color: #fff;
border: none;
border-radius: 10px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
.login-box button:hover { background: var(--accent-hover); }
.remember-label {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: var(--text-secondary);
margin-bottom: 12px;
cursor: pointer;
user-select: none;
}
.remember-label input[type="checkbox"] {
width: 16px;
height: 16px;
accent-color: var(--accent);
cursor: pointer;
}
.login-error {
color: var(--danger);
margin-top: 12px;
font-size: 14px;
}
/* === App Layout === */
.app {
display: flex;
height: 100%;
height: 100dvh;
min-height: -webkit-fill-available;
width: 100%;
overflow: hidden;
}
body.session-loading-active {
cursor: progress;
}
.session-loading-overlay {
position: fixed;
inset: 0;
z-index: 900;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
background:
linear-gradient(135deg, var(--loading-overlay-layer-a), var(--loading-overlay-layer-b)),
var(--loading-overlay-scrim);
backdrop-filter: blur(10px);
}
.session-loading-card {
width: min(440px, 100%);
padding: 24px 24px 20px;
border: 1px solid var(--loading-card-border);
border-radius: 20px;
background: var(--loading-card-bg);
box-shadow: var(--loading-card-shadow);
}
.session-loading-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 74px;
margin-bottom: 12px;
padding: 5px 10px;
border-radius: 999px;
background: var(--loading-badge-bg);
color: var(--loading-badge-text);
font-size: 11px;
font-weight: 800;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.session-loading-title {
font-size: 24px;
font-weight: 800;
letter-spacing: 0.01em;
color: var(--text-primary);
}
.session-loading-label {
margin-top: 8px;
color: var(--text-secondary);
font-size: 14px;
line-height: 1.7;
}
.session-loading-bar {
margin-top: 18px;
height: 8px;
overflow: hidden;
border-radius: 999px;
background: var(--loading-bar-bg);
}
.session-loading-bar-fill {
display: block;
width: 44%;
height: 100%;
border-radius: inherit;
background: var(--loading-bar-fill);
animation: session-loading-pulse 1.2s ease-in-out infinite;
transform-origin: left center;
}
@keyframes session-loading-pulse {
0% {
transform: translateX(-55%) scaleX(0.82);
opacity: 0.72;
}
50% {
transform: translateX(120%) scaleX(1.08);
opacity: 1;
}
100% {
transform: translateX(250%) scaleX(0.88);
opacity: 0.72;
}
}
/* === Sidebar === */
.sidebar {
width: var(--sidebar-width);
min-width: var(--sidebar-width);
background: var(--bg-secondary);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
transition: transform 0.3s ease;
overflow: hidden;
}
.sidebar-header {
padding: 12px;
border-bottom: 1px solid var(--border-color);
flex-shrink: 0;
}
.agent-switch {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4px;
padding: 4px;
margin-bottom: 10px;
background: rgba(255, 249, 242, 0.85);
border: 1px solid var(--border-color);
border-radius: 12px;
}
.agent-switch-btn {
appearance: none;
border: none;
border-radius: 9px;
background: transparent;
color: var(--text-secondary);
font-size: 13px;
font-weight: 700;
padding: 8px 10px;
cursor: pointer;
transition: background 0.18s, color 0.18s, transform 0.18s;
}
.agent-switch-btn:hover {
background: rgba(233, 224, 212, 0.7);
color: var(--text-primary);
}
.agent-switch-btn.active {
background: var(--accent);
color: #fff;
box-shadow: 0 4px 14px rgba(192, 85, 58, 0.18);
}
.new-chat-btn {
width: 100%;
min-height: 48px;
padding: 10px;
background: var(--accent);
border: none;
border-radius: 10px;
color: #fff;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
display: inline-flex;
align-items: center;
justify-content: center;
}
.new-chat-btn:hover { background: var(--accent-hover); }
.session-search-row {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
margin-top: 10px;
}
.session-search-row .session-search {
flex: 1 1 auto;
min-width: 0;
margin-top: 0;
}
.session-search {
position: relative;
margin-top: 10px;
width: 100%;
}
.session-search::before {
content: '⌕';
position: absolute;
left: 10px;
top: 50%;
z-index: 1;
transform: translateY(-50%);
color: var(--text-muted);
font-size: 14px;
line-height: 1;
pointer-events: none;
}
.session-search-input {
-webkit-appearance: none;
appearance: none;
box-sizing: border-box;
width: 100%;
height: 34px;
padding: 0 34px 0 30px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: rgba(255, 249, 242, 0.74);
color: var(--text-primary);
font: inherit;
font-size: 13px;
outline: none;
transition: background 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.session-search-input::placeholder {
color: var(--text-muted);
}
.session-search-input::-webkit-search-decoration,
.session-search-input::-webkit-search-cancel-button,
.session-search-input::-webkit-search-results-button,
.session-search-input::-webkit-search-results-decoration {
-webkit-appearance: none;
appearance: none;
}
.session-search-input:focus {
background: var(--bg-primary);
border-color: rgba(192, 85, 58, 0.34);
box-shadow: 0 0 0 3px rgba(192, 85, 58, 0.1);
}
.session-search-clear {
position: absolute;
right: 6px;
top: 50%;
z-index: 2;
transform: translateY(-50%);
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
padding: 0;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--text-muted);
cursor: pointer;
font-size: 18px;
line-height: 1;
}
.session-search-clear:hover,
.session-search-clear:focus-visible {
background: var(--bg-tertiary);
color: var(--text-primary);
outline: none;
}
.advanced-search-open {
appearance: none;
width: 34px;
height: 34px;
flex: 0 0 34px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-bubble-assistant);
color: var(--text-secondary);
font: inherit;
font-size: 15px;
font-weight: 800;
line-height: 1;
cursor: pointer;
transition:
background 0.16s ease,
border-color 0.16s ease,
color 0.16s ease,
transform 0.16s ease,
box-shadow 0.16s ease;
}
.advanced-search-open:hover,
.advanced-search-open:focus-visible {
background: var(--accent-light);
border-color: rgba(192, 85, 58, 0.34);
color: var(--accent);
outline: none;
box-shadow: 0 0 0 3px rgba(192, 85, 58, 0.1);
}
.advanced-search-open:active {
transform: translateY(1px);
}
.session-list {
flex: 1;
overflow-y: auto;
padding: 8px;
-webkit-overflow-scrolling: touch;
}
.session-list-empty {
margin: 12px 6px;
padding: 16px 14px;
border: 1px dashed var(--border-color);
border-radius: 12px;
color: var(--text-secondary);
font-size: 13px;
line-height: 1.6;
background: rgba(255, 249, 242, 0.7);
}
.session-project-group {
margin: 0 0 12px;
}
.session-pinned-group {
padding-bottom: 8px;
border-bottom: 1px solid rgba(221, 208, 192, 0.72);
}
.session-project-header {
position: sticky;
top: 0;
z-index: 2;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin: 6px 3px 6px;
padding: 6px 8px;
border: 1px solid rgba(134, 106, 80, 0.22);
border-radius: 8px;
background: rgba(255, 249, 242, 0.88);
backdrop-filter: blur(8px);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 6px rgba(45, 31, 20, 0.04);
color: var(--text-secondary);
font-size: 12px;
font-weight: 800;
letter-spacing: 0;
text-transform: none;
}
.session-project-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
color: var(--text-primary);
}
.session-project-toggle {
min-width: 0;
flex: 1;
display: inline-flex;
align-items: center;
gap: 6px;
height: 26px;
padding: 0;
border: 0;
background: transparent;
color: inherit;
cursor: pointer;
font: inherit;
letter-spacing: inherit;
text-align: left;
text-transform: inherit;
}
.session-project-toggle:hover,
.session-project-toggle:focus-visible {
color: var(--accent);
outline: none;
}
.session-project-toggle:hover .session-project-name,
.session-project-toggle:focus-visible .session-project-name {
color: var(--accent);
}
.session-project-toggle:focus-visible .session-project-name {
text-decoration: underline;
text-underline-offset: 3px;
}
.session-project-chevron {
width: 12px;
flex-shrink: 0;
color: currentColor;
font-size: 11px;
line-height: 1;
text-align: center;
transform: translateY(-0.5px);
}
.session-project-header-actions {
display: inline-flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.session-project-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 22px;
height: 18px;
padding: 0 7px;
border: 1px solid rgba(134, 106, 80, 0.14);
border-radius: 999px;
background: rgba(45, 31, 20, 0.06);
color: var(--text-primary);
font-size: 10px;
letter-spacing: 0;
}
.session-project-create {
width: 22px;
height: 22px;
padding: 0;
border: 1px solid rgba(221, 208, 192, 0.95);
border-radius: 999px;
background: rgba(255, 249, 242, 0.96);
color: var(--text-secondary);
font-size: 14px;
font-weight: 700;
line-height: 1;
cursor: pointer;
transition: background 0.16s, color 0.16s, transform 0.16s, border-color 0.16s;
}
.session-project-create:hover {
background: var(--accent-light);
border-color: rgba(192, 85, 58, 0.24);
color: var(--accent);
transform: translateY(-1px);
}
.session-project-create:focus-visible {
outline: 2px solid rgba(192, 85, 58, 0.22);
outline-offset: 2px;
}
.session-pinned-header {
color: var(--accent);
}
.session-pinned-header .session-project-name {
color: var(--accent);
}
.session-project-sessions[hidden] {
display: none;
}
.session-project-group.collapsed {
margin-bottom: 8px;
}
.session-project-group.collapsed .session-project-header {
margin-bottom: 0;
}
.session-project-group.has-active-session.collapsed .session-project-header {
color: var(--accent);
}
.session-project-group.has-active-session.collapsed .session-project-name {
color: var(--accent);
}
.session-project-group.has-active-session.collapsed .session-project-count {
background: var(--accent-light);
color: var(--accent);
}
.session-project-group.has-unread-session.collapsed .session-project-count::after,
.session-project-group.has-running-session.collapsed .session-project-count::after {
content: '';
width: 6px;
height: 6px;
margin-left: 5px;
border-radius: 50%;
background: currentColor;
}
.session-project-group.has-running-session.collapsed .session-project-count::after {
animation: pulse 1.1s infinite;
}
.session-project-group.has-waiting-session:not(.has-running-session).collapsed .session-project-count::after {
content: '';
width: 6px;
height: 6px;
margin-left: 5px;
border-radius: 50%;
background: rgba(120, 126, 140, 0.72);
}
.session-project-group.has-waiting-session:not(.has-running-session).collapsed .session-project-count::after {
animation: none;
}
.session-item {
display: flex;
align-items: center;
padding: 10px 12px;
border-radius: 10px;
cursor: pointer;
margin-bottom: 2px;
transition: background 0.15s;
position: relative;
}
.session-item:hover { background: var(--bg-tertiary); }
.session-item.active { background: var(--accent-light); }
.session-item.pinned::before {
content: '';
position: absolute;
left: 4px;
top: 9px;
bottom: 9px;
width: 3px;
border-radius: 999px;
background: var(--accent);
}
.session-item.llm-created:not(.pinned)::before {
content: '';
position: absolute;
left: 4px;
top: 7px;
width: 9px;
height: 9px;
border-top: 2px solid var(--accent);
border-left: 2px solid var(--accent);
border-radius: 4px 0 0 0;
opacity: 0.88;
}
.session-item-main {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: 8px;
}
.session-item-title {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 14px;
color: var(--text-primary);
}
.session-item.active .session-item-title { color: var(--accent); font-weight: 500; }
.session-item-pin-badge {
flex-shrink: 0;
padding: 1px 5px;
border-radius: 999px;
background: rgba(192, 85, 58, 0.11);
color: var(--accent);
font-size: 10px;
font-weight: 800;
line-height: 1.4;
}
.session-item-status {
display: inline-flex;
align-items: center;
gap: 5px;
flex-shrink: 0;
padding: 2px 8px;
border-radius: 999px;
background: rgba(232, 190, 92, 0.16);
border: 1px solid rgba(212, 163, 58, 0.28);
color: #9a6f14;
font-size: 10px;
font-weight: 800;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.session-item-status::before {
content: '';
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
animation: pulse 1.1s infinite;
}
.session-item-status.waiting {
background: rgba(120, 126, 140, 0.12);
border-color: rgba(120, 126, 140, 0.22);
color: #667085;
}
.session-item-status.waiting::before {
animation: none;
}
.session-item-time {
font-size: 11px;
color: var(--text-muted);
margin-left: 8px;
flex-shrink: 0;
}
.session-item-actions {
display: none;
align-items: center;
gap: 2px;
margin-left: 4px;
position: relative;
flex-shrink: 0;
}
.session-item:hover .session-item-actions,
.session-item:focus-within .session-item-actions {
display: flex;
}
.session-item.menu-open .session-item-actions {
display: flex;
}
.session-item-btn {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
font-size: 13px;
border-radius: 4px;
line-height: 1;
}
.session-item-btn:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.session-item-btn.pin {
font-weight: 800;
}
.session-item-btn.more {
font-size: 16px;
letter-spacing: 0;
}
.session-item-btn.pin.active {
color: var(--accent);
background: rgba(192, 85, 58, 0.1);
}
.session-item-btn.pin:hover {
color: var(--accent);
background: rgba(192, 85, 58, 0.12);
}
.session-item-more {
position: relative;
display: inline-flex;
}
.session-item-menu {
position: absolute;
right: 0;
top: calc(100% + 4px);
z-index: 20;
display: none;
min-width: 104px;
padding: 5px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-secondary);
box-shadow: 0 10px 24px rgba(61, 42, 26, 0.14);
}
.session-item.menu-open .session-item-menu {
display: grid;
gap: 2px;
}
.session-item-menu-btn {
width: 100%;
padding: 7px 9px;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--text-secondary);
cursor: pointer;
font: inherit;
font-size: 12px;
line-height: 1.2;
text-align: left;
white-space: nowrap;
}
.session-item-menu-btn:hover,
.session-item-menu-btn:focus-visible {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.session-item-menu-btn.delete:hover,
.session-item-menu-btn.delete:focus-visible {
background: var(--accent-light);
color: var(--danger);
}
.session-list-load-more {
width: fit-content;
max-width: calc(100% - 18px);
margin: 2px 8px 6px;
padding: 3px 7px;
border: 1px solid rgba(134, 106, 80, 0.18);
border-radius: 6px;
background: transparent;
color: var(--text-secondary);
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: flex-start;
gap: 6px;
text-align: left;
transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.16s;
}
.session-list-load-more:hover {
background: rgba(255, 249, 242, 0.58);
border-color: rgba(192, 85, 58, 0.24);
color: var(--accent);
transform: translateY(-1px);
}
.session-list-load-more:focus-visible {
outline: 2px solid rgba(192, 85, 58, 0.22);
outline-offset: 2px;
}
.session-list-load-more-title {
min-width: 0;
font-size: 12px;
font-weight: 700;
}
.session-list-load-more-meta {
flex-shrink: 0;
color: var(--text-muted);
font-size: 10px;
}
/* Inline edit in sidebar */
.session-item-edit-input {
flex: 1;
padding: 2px 6px;
border: 1px solid var(--accent);
border-radius: 4px;
background: #fff;
color: var(--text-primary);
font-size: 14px;
outline: none;
min-width: 0;
}
.sidebar-footer {
padding: 12px;
border-top: 1px solid var(--border-color);
text-align: center;
flex-shrink: 0;
}
.brand { font-size: 12px; color: var(--text-muted); }
/* === Chat Main === */
.chat-main {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
position: relative;
background: var(--bg-primary);
}
.advanced-search-panel {
--advanced-search-bg: #242526;
--advanced-search-line: rgba(255, 255, 255, 0.11);
--advanced-search-line-strong: rgba(255, 255, 255, 0.17);
--advanced-search-text: #eef2f3;
--advanced-search-muted: #8d949b;
--advanced-search-title-color: #00a4df;
--advanced-search-hit-bg: #f2d36b;
--advanced-search-hit-text: #2b2308;
position: absolute;
inset: 0;
z-index: 240;
display: flex;
overflow: hidden;
color: var(--advanced-search-text);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.04)),
var(--advanced-search-bg);
box-shadow: inset 1px 0 rgba(255, 255, 255, 0.04);
isolation: isolate;
animation: advancedSearchPanelIn 160ms ease-out;
}
.advanced-search-panel[hidden] {
display: none !important;
}
.advanced-search-shell {
position: relative;
width: min(960px, calc(100% - clamp(36px, 10vw, 96px)));
height: 100%;
min-width: 0;
margin: 0 auto;
display: flex;
flex-direction: column;
}
.advanced-search-header {
min-height: 60px;
display: grid;
grid-template-columns: 34px minmax(0, 1fr) 34px;
align-items: center;
gap: 10px;
border-bottom: 1px solid var(--advanced-search-line);
}
.advanced-search-close,
.advanced-search-submit,
.advanced-search-clear,
.advanced-search-pill {
appearance: none;
font: inherit;
cursor: pointer;
}
.advanced-search-close,
.advanced-search-submit {
width: 34px;
height: 34px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
border: 1px solid transparent;
border-radius: 999px;
background: rgba(255, 255, 255, 0.05);
color: var(--advanced-search-text);
font-size: 20px;
line-height: 1;
transition:
background 0.16s ease,
border-color 0.16s ease,
color 0.16s ease,
transform 0.16s ease;
}
.advanced-search-submit {
font-size: 17px;
}
.advanced-search-close:hover,
.advanced-search-close:focus-visible,
.advanced-search-submit:hover,
.advanced-search-submit:focus-visible {
background: rgba(255, 255, 255, 0.1);
border-color: var(--advanced-search-line-strong);
color: #fff;
outline: none;
}
.advanced-search-close:active,
.advanced-search-submit:active {
transform: translateY(1px);
}
.advanced-search-field {
min-width: 0;
}
.advanced-search-title {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.advanced-search-input-wrap {
position: relative;
min-width: 0;
}
.advanced-search-input {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 40px;
padding: 0 32px 0 0;
border: 0;
border-radius: 0;
background: transparent;
color: var(--advanced-search-text);
font: inherit;
font-size: 16px;
font-weight: 650;
outline: none;
}
.advanced-search-input::placeholder {
color: var(--advanced-search-muted);
font-weight: 500;
}
.advanced-search-input::-webkit-search-decoration,
.advanced-search-input::-webkit-search-cancel-button,
.advanced-search-input::-webkit-search-results-button,
.advanced-search-input::-webkit-search-results-decoration {
-webkit-appearance: none;
appearance: none;
}
.advanced-search-input:focus {
color: #fff;
}
.advanced-search-clear {
position: absolute;
right: 0;
top: 50%;
width: 24px;
height: 24px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
border: 0;
border-radius: 999px;
background: transparent;
color: var(--advanced-search-muted);
font-size: 18px;
line-height: 1;
transform: translateY(-50%);
}
.advanced-search-clear[hidden],
.advanced-search-empty[hidden] {
display: none !important;
}
.advanced-search-clear:hover,
.advanced-search-clear:focus-visible {
background: rgba(255, 255, 255, 0.1);
color: var(--advanced-search-text);
outline: none;
}
.advanced-search-toolbar {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px 12px;
padding-top: 18px;
}
.advanced-search-toggle-group {
display: inline-flex;
align-items: center;
gap: 6px;
min-width: 0;
}
.advanced-search-pill {
min-height: 24px;
padding: 2px 10px;
border: 1px solid transparent;
border-radius: 999px;
background: rgba(255, 255, 255, 0.07);
color: var(--advanced-search-muted);
font-size: 12px;
font-weight: 800;
line-height: 1.2;
white-space: nowrap;
transition:
background 0.16s ease,
border-color 0.16s ease,
color 0.16s ease;
}
.advanced-search-pill[aria-pressed='true'] {
background: rgba(255, 255, 255, 0.14);
border-color: var(--advanced-search-line-strong);
color: var(--advanced-search-text);
}
.advanced-search-pill:hover,
.advanced-search-pill:focus-visible {
background: rgba(255, 255, 255, 0.16);
border-color: var(--advanced-search-line-strong);
color: #fff;
outline: none;
}
.advanced-search-status {
min-height: 18px;
margin-top: 10px;
color: var(--advanced-search-muted);
font-size: 13px;
font-weight: 650;
line-height: 1.35;
}
.advanced-search-status.is-loading,
.advanced-search-panel.is-loading #advanced-search-status {
display: inline-flex;
align-items: center;
gap: 8px;
}
.advanced-search-status.is-loading::before,
.advanced-search-panel.is-loading #advanced-search-status::before,
.advanced-search-submit.is-loading::after {
content: '';
width: 11px;
height: 11px;
border: 2px solid currentColor;
border-right-color: transparent;
border-radius: 50%;
animation: advancedSearchSpin 700ms linear infinite;
}
.advanced-search-submit.is-loading {
color: transparent;
position: relative;
}
.advanced-search-submit.is-loading::after {
position: absolute;
color: var(--advanced-search-text);
}
.advanced-search-status.is-error,
.advanced-search-empty.is-error,
.advanced-search-panel.is-error #advanced-search-status {
color: #ff9b8f;
}
.advanced-search-results {
flex: 1 1 auto;
min-height: 0;
margin-top: 8px;
padding: 0 0 36px;
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.advanced-search-results:empty {
flex: 0 0 auto;
}
.advanced-search-empty {
flex: 1 1 auto;
min-height: 160px;
display: flex;
align-items: center;
justify-content: center;
color: var(--advanced-search-muted);
font-size: 13px;
text-align: center;
}
.advanced-search-result {
display: block;
width: 100%;
padding: 20px 0;
border: 0;
background: transparent;
color: var(--advanced-search-text);
font: inherit;
text-align: left;
cursor: pointer;
overflow-wrap: anywhere;
}
.advanced-search-result + .advanced-search-result {
border-top: 1px solid var(--advanced-search-line);
}
.advanced-search-result.is-entering {
animation: advancedSearchResultIn 180ms ease-out both;
}
.advanced-search-result.is-targeted {
margin-inline: -12px;
padding-inline: 12px;
background: linear-gradient(90deg, rgba(0, 164, 223, 0.1), transparent 76%);
box-shadow: inset 2px 0 var(--advanced-search-title-color);
}
.advanced-search-result.is-loading {
color: var(--advanced-search-muted);
}
.advanced-search-result.is-error {
color: #ffb2a8;
}
.result-title {
display: block;
margin: 0;
color: var(--advanced-search-title-color);
font-size: 16px;
font-weight: 800;
line-height: 1.35;
}
.result-context {
display: block;
margin-top: 5px;
color: var(--advanced-search-muted);
font-size: 12px;
line-height: 1.4;
}
.result-snippet {
display: block;
margin-top: 14px;
color: color-mix(in srgb, var(--advanced-search-text) 86%, var(--advanced-search-muted));
font-size: 14px;
font-weight: 650;
line-height: 1.55;
}
.result-snippet p {
margin: 0 0 7px;
}
.result-snippet p:last-child {
margin-bottom: 0;
}
.advanced-search-hit,
.result-snippet mark,
.result-title mark,
.result-context mark {
padding: 0 2px;
border-radius: 2px;
background: var(--advanced-search-hit-bg);
color: var(--advanced-search-hit-text);
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
}
.result-footer {
display: flex;
align-items: flex-end;
gap: 12px;
margin-top: 16px;
color: var(--advanced-search-muted);
font-size: 12px;
line-height: 1.35;
}
.msg.advanced-search-message-target > .msg-bubble {
outline: 2px solid var(--accent);
outline-offset: 4px;
box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 14%, transparent);
}
.result-source {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.result-time {
margin-left: auto;
color: color-mix(in srgb, var(--advanced-search-muted) 76%, var(--advanced-search-text));
text-align: right;
white-space: nowrap;
}
@keyframes advancedSearchPanelIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes advancedSearchResultIn {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes advancedSearchSpin {
to {
transform: rotate(360deg);
}
}
:is(
html[data-theme='carbon'],
html[data-theme='nocturne'],
html[data-theme='cinder'],
html[data-theme='gilded'],
html[data-theme='wasteland']
) .advanced-search-open {
background: var(--dark-panel-soft);
border-color: var(--theme-card-border);
color: var(--text-secondary);
}
:is(
html[data-theme='carbon'],
html[data-theme='nocturne'],
html[data-theme='cinder'],
html[data-theme='gilded'],
html[data-theme='wasteland']
) .advanced-search-open:hover,
:is(
html[data-theme='carbon'],
html[data-theme='nocturne'],
html[data-theme='cinder'],
html[data-theme='gilded'],
html[data-theme='wasteland']
) .advanced-search-open:focus-visible {
background: var(--accent-light);
border-color: var(--theme-card-hover-border);
color: var(--accent);
box-shadow: 0 0 0 3px var(--theme-card-active-ring);
}
:is(
html[data-theme='carbon'],
html[data-theme='nocturne'],
html[data-theme='cinder'],
html[data-theme='gilded'],
html[data-theme='wasteland']
) .advanced-search-panel {
--advanced-search-bg: #202324;
--advanced-search-line: rgba(255, 255, 255, 0.12);
--advanced-search-line-strong: rgba(255, 255, 255, 0.2);
--advanced-search-muted: rgba(229, 236, 238, 0.56);
}
html[data-theme='gilded'] .advanced-search-panel {
--advanced-search-bg: #26221c;
--advanced-search-line: rgba(213, 175, 99, 0.2);
--advanced-search-line-strong: rgba(213, 175, 99, 0.34);
--advanced-search-text: #fff7e8;
--advanced-search-muted: rgba(255, 247, 232, 0.58);
--advanced-search-title-color: #22b8c4;
--advanced-search-hit-bg: #d5af63;
--advanced-search-hit-text: #21170b;
}
html[data-theme='wasteland'] .advanced-search-open {
border-color: var(--wasteland-line);
clip-path: var(--wasteland-cut);
}
html[data-theme='wasteland'] .advanced-search-panel {
--advanced-search-bg: #151715;
--advanced-search-line: var(--wasteland-line);
--advanced-search-line-strong: var(--wasteland-line-strong);
--advanced-search-text: #f0eadc;
--advanced-search-muted: rgba(240, 234, 220, 0.58);
--advanced-search-title-color: #14a7ce;
--advanced-search-hit-bg: var(--wasteland-gold-bright);
--advanced-search-hit-text: #171008;
}
@media screen and (max-width: 768px) {
.session-search-row {
gap: 6px;
}
.advanced-search-shell {
width: calc(100% - 28px);
}
.advanced-search-header {
min-height: 58px;
grid-template-columns: 32px minmax(0, 1fr) 32px;
gap: 8px;
}
.advanced-search-close,
.advanced-search-submit {
width: 32px;
height: 32px;
}
.advanced-search-input {
height: 38px;
font-size: 15px;
}
.advanced-search-toolbar {
gap: 7px 9px;
padding-top: 14px;
}
.advanced-search-toggle-group {
gap: 5px;
}
.advanced-search-pill {
min-height: 26px;
padding-inline: 9px;
font-size: 11px;
}
.advanced-search-status {
margin-top: 9px;
font-size: 12px;
}
.advanced-search-results {
padding-bottom: 24px;
}
.advanced-search-result {
padding: 18px 0;
}
.result-title {
font-size: 15px;
}
.result-snippet {
margin-top: 12px;
font-size: 13px;
}
.result-footer {
align-items: flex-start;
gap: 8px;
}
.result-source {
white-space: normal;
}
}
@media screen and (max-width: 480px) {
.advanced-search-shell {
width: calc(100% - 24px);
}
.advanced-search-toolbar {
align-items: flex-start;
flex-direction: column;
}
.advanced-search-toggle-group {
max-width: 100%;
overflow-x: auto;
scrollbar-width: none;
}
.advanced-search-toggle-group::-webkit-scrollbar {
display: none;
}
.result-footer {
flex-direction: column;
}
.result-time {
margin-left: 0;
text-align: left;
white-space: normal;
}
}
@media (prefers-reduced-motion: reduce) {
.advanced-search-open,
.advanced-search-close,
.advanced-search-submit,
.advanced-search-pill {
transition: none;
}
.advanced-search-panel,
.advanced-search-result.is-entering,
.advanced-search-status.is-loading::before,
.advanced-search-panel.is-loading #advanced-search-status::before,
.advanced-search-submit.is-loading::after {
animation: none;
}
}
.chat-header {
height: var(--header-height);
min-height: var(--header-height);
display: flex;
align-items: center;
padding: 0 16px;
border-bottom: 1px solid var(--border-color);
background: var(--bg-secondary);
gap: 8px;
flex-shrink: 0;
position: relative;
}
.chat-controls {
position: relative;
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
max-width: 800px;
margin: 0 auto 8px;
}
.menu-btn {
display: none;
background: none;
border: none;
color: var(--text-primary);
font-size: 20px;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
}
.menu-btn:hover { background: var(--bg-tertiary); }
.chat-title {
flex: 1;
min-width: 0;
font-weight: 600;
font-size: 15px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--text-primary);
cursor: pointer;
padding: 2px 4px;
border-radius: 4px;
transition: background 0.15s;
}
.chat-title:hover { background: var(--bg-tertiary); }
.chat-session-id-btn {
appearance: none;
max-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex-shrink: 0;
border: 1px solid rgba(91, 126, 161, 0.22);
border-radius: 999px;
background: rgba(91, 126, 161, 0.1);
color: var(--info);
padding: 3px 9px;
font-size: 11px;
font-weight: 800;
cursor: pointer;
}
.chat-session-id-btn:hover {
background: rgba(91, 126, 161, 0.16);
border-color: rgba(91, 126, 161, 0.34);
}
.chat-session-id-btn:disabled,
.chat-agent-btn:disabled,
.chat-cwd:disabled,
.mode-select:disabled,
.user-outline-btn:disabled,
.reload-mcp-btn:disabled {
opacity: 0.5;
cursor: default;
}
.chat-agent-picker {
position: relative;
display: none;
flex-shrink: 0;
}
.chat-agent-btn {
appearance: none;
font-size: 11px;
color: var(--text-primary);
background: var(--accent-light);
border: 1px solid rgba(192, 85, 58, 0.2);
padding: 2px 22px 2px 10px;
border-radius: 999px;
flex-shrink: 0;
font-weight: 700;
cursor: pointer;
position: relative;
}
.chat-agent-btn::after {
content: '▾';
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-48%);
font-size: 10px;
color: var(--text-secondary);
}
.chat-agent-btn:hover {
background: #f1dfd7;
}
.chat-agent-menu {
position: absolute;
top: calc(100% + 6px);
left: 0;
min-width: 148px;
padding: 8px;
border: 1px solid var(--border-color);
border-radius: 14px;
background: rgba(255, 252, 248, 0.98);
box-shadow: 0 18px 40px rgba(45, 31, 20, 0.14);
backdrop-filter: blur(14px);
z-index: 80;
}
.chat-agent-option {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 9px 11px;
border: none;
border-radius: 10px;
background: transparent;
color: var(--text-primary);
font-size: 13px;
font-weight: 700;
cursor: pointer;
}
.chat-agent-option:hover {
background: rgba(233, 224, 212, 0.65);
}
.chat-agent-option.active {
background: var(--accent-light);
color: var(--accent);
}
.chat-agent-option.active::after {
content: '当前';
font-size: 10px;
letter-spacing: 0.04em;
}
.chat-runtime-state {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 10px;
border-radius: 999px;
background: rgba(232, 190, 92, 0.16);
border: 1px solid rgba(212, 163, 58, 0.28);
color: #9a6f14;
font-size: 11px;
font-weight: 800;
letter-spacing: 0.04em;
flex-shrink: 0;
}
.chat-runtime-state::before {
content: '';
width: 7px;
height: 7px;
border-radius: 50%;
background: currentColor;
animation: pulse 1.1s infinite;
}
.chat-runtime-state.waiting {
background: rgba(120, 126, 140, 0.12);
border-color: rgba(120, 126, 140, 0.22);
color: #667085;
}
.chat-runtime-state.waiting::before {
animation: none;
}
.cost-display {
display: none !important;
}
.cost-display:empty { display: none; }
.user-outline-btn,
.reload-mcp-btn {
appearance: none;
border: 1px solid rgba(91, 126, 161, 0.22);
border-radius: 999px;
background: rgba(91, 126, 161, 0.08);
color: var(--info);
padding: 4px 10px;
font: inherit;
font-size: 11px;
font-weight: 800;
cursor: pointer;
flex-shrink: 0;
}
.user-outline-anchor {
position: relative;
display: inline-flex;
flex-shrink: 0;
}
.ccweb-prompt-outline-anchor {
position: relative;
display: inline-flex;
flex-shrink: 0;
}
.ccweb-prompt-outline-btn {
position: relative;
}
.ccweb-prompt-outline-btn[data-count]::after {
content: attr(data-count);
position: absolute;
top: -6px;
right: -7px;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: 999px;
background: var(--accent);
color: var(--accent-ink);
font-size: 10px;
font-weight: 900;
line-height: 16px;
text-align: center;
box-shadow: 0 0 0 2px var(--bg-primary);
}
.user-outline-btn:hover,
.reload-mcp-btn:hover:not(:disabled) {
background: rgba(91, 126, 161, 0.16);
border-color: rgba(91, 126, 161, 0.34);
}
.user-outline-panel {
position: absolute;
right: 0;
bottom: calc(100% + 8px);
width: min(360px, calc(100vw - 24px));
max-height: min(48vh, 360px);
padding: 8px;
border: 1px solid var(--border-color);
border-radius: 14px;
background: rgba(255, 252, 248, 0.98);
box-shadow: 0 12px 28px rgba(45, 31, 20, 0.08);
overflow-y: auto;
z-index: 70;
}
.user-outline-empty {
padding: 8px 10px;
color: var(--text-muted);
font-size: 12px;
}
.user-outline-item {
width: 100%;
display: grid;
grid-template-columns: 24px minmax(0, 1fr);
align-items: start;
gap: 8px;
padding: 8px 10px;
border: none;
border-radius: 10px;
background: transparent;
color: var(--text-primary);
text-align: left;
cursor: pointer;
}
.user-outline-item:hover {
background: var(--accent-light);
}
.user-outline-index {
color: var(--text-muted);
font-size: 11px;
font-weight: 800;
line-height: 1.6;
}
.user-outline-text {
min-width: 0;
font-size: 13px;
line-height: 1.45;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-outline-date {
display: flex;
align-items: center;
gap: 8px;
padding: 7px 4px 5px;
color: var(--text-muted);
font-size: 10px;
line-height: 1;
white-space: nowrap;
}
.user-outline-date::before,
.user-outline-date::after {
content: '';
flex: 1 1 auto;
height: 1px;
background: var(--border-color);
}
.user-outline-date span {
flex: 0 0 auto;
padding: 2px 7px;
border: 1px solid var(--border-color);
border-radius: 999px;
background: var(--bg-primary);
color: var(--text-muted);
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
font-variant-numeric: tabular-nums;
}
.user-outline-title-event {
display: grid;
grid-template-columns: 34px minmax(0, 1fr);
align-items: center;
gap: 8px;
margin: 3px 2px;
padding: 7px 8px;
border-left: 2px solid var(--accent);
border-radius: 8px;
background: var(--accent-light);
color: var(--text-secondary);
cursor: default;
}
.user-outline-title-label {
color: var(--accent);
font-size: 10px;
font-weight: 800;
letter-spacing: 0.08em;
}
.user-outline-title-text {
min-width: 0;
overflow: hidden;
color: var(--text-primary);
font-size: 12px;
font-weight: 650;
line-height: 1.4;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Mode selector */
.mode-select {
-webkit-appearance: none;
appearance: none;
background: var(--bg-tertiary);
color: var(--text-primary);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 4px 24px 4px 10px;
font-size: 12px;
font-weight: 600;
font-family: inherit;
cursor: pointer;
flex-shrink: 0;
outline: none;
transition: border-color 0.15s;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b5a4d'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 8px center;
}
.mode-select:focus { border-color: var(--accent); }
.mode-select option {
background: var(--bg-secondary);
color: var(--text-primary);
}
/* === Messages === */
.messages-wrap {
flex: 1;
position: relative;
overflow: hidden;
min-height: 0;
}
.messages {
height: 100%;
overflow-y: scroll;
overflow-x: hidden;
padding: 16px;
padding-right: 20px;
padding-bottom: 24px;
scroll-padding-bottom: 24px;
display: flex;
flex-direction: column;
gap: 12px;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
scrollbar-width: none;
}
.messages::-webkit-scrollbar { display: none; }
/* Custom scrollbar */
.custom-scrollbar {
position: absolute;
right: 2px;
top: 0;
bottom: 0;
width: 6px;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s;
}
.messages-wrap:hover .custom-scrollbar,
.custom-scrollbar.active {
opacity: 1;
}
/* 移动端触摸后 hover 会粘滞 — 完全禁用 hover 触发,只靠 .active拖动时显示 */
@media (pointer: coarse) {
.messages-wrap:hover .custom-scrollbar {
opacity: 0;
}
/* 移动端滚动时用独立的类显示滑块,不走 .active */
.custom-scrollbar.scrolling {
opacity: 1;
}
}
.custom-scrollbar-thumb {
position: absolute;
right: 0;
width: 6px;
min-height: 30px;
border-radius: 4px;
background: var(--scrollbar-thumb);
cursor: grab;
transition: width 0.15s, right 0.15s, background 0.15s;
pointer-events: all;
}
.custom-scrollbar-thumb:hover,
.custom-scrollbar-thumb.dragging {
width: 12px;
right: -3px;
background: #b0a090;
cursor: grab;
}
.custom-scrollbar-thumb.dragging { cursor: grabbing; }
/* 移动端触摸设备:加宽滑块与轨道,便于手指操作;默认隐藏,拖动时显示 */
@media (pointer: coarse) {
.custom-scrollbar {
width: 18px;
right: 0;
opacity: 0;
}
.custom-scrollbar.active {
opacity: 1;
}
.custom-scrollbar-thumb {
width: 8px;
right: 5px;
min-height: 40px;
border-radius: 4px;
}
.custom-scrollbar-thumb:hover,
.custom-scrollbar-thumb.dragging {
width: 14px;
right: 2px;
}
}
.welcome-msg {
text-align: center;
margin: auto;
padding: 40px 20px;
color: var(--text-secondary);
}
.welcome-copy {
max-width: 440px;
margin: 0 auto;
}
.welcome-kicker {
display: none;
}
.welcome-msg h3 {
font-size: 20px;
color: var(--text-primary);
margin-bottom: 8px;
font-weight: 600;
}
.welcome-msg p { font-size: 14px; }
.welcome-art,
.welcome-visual { display: none; }
/* Message Bubbles */
.msg {
display: flex;
gap: 10px;
max-width: 85%;
min-width: 0;
animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.assistant { align-self: flex-start; }
.msg-avatar {
width: 32px;
height: 32px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
font-weight: 700;
flex-shrink: 0;
}
.msg.user .msg-avatar { background: var(--bg-bubble-user); color: #fff; }
.msg.assistant .msg-avatar { background: var(--success); color: #fff; }
.msg-avatar svg { display: block; flex-shrink: 0; }
/* Claude avatar: transparent bg, fixed-color pixel crab */
.msg.assistant.agent-claude .msg-avatar {
background: transparent;
border: none;
}
/* Codex avatar: transparent bg to match the supplied asset */
.msg.assistant.agent-codex .msg-avatar {
background: transparent;
border: none;
}
.msg-bubble {
position: relative;
padding: 12px 16px;
border-radius: 16px;
line-height: 1.65;
word-break: break-word;
min-width: 0;
max-width: 100%;
}
.assistant-image {
margin: 8px 0 2px;
max-width: min(100%, 680px);
}
.assistant-image-button {
display: block;
width: 100%;
padding: 0;
overflow: hidden;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-secondary);
cursor: zoom-in;
}
.assistant-image-button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.assistant-image img {
display: block;
width: 100%;
max-height: 520px;
object-fit: contain;
}
.assistant-image figcaption {
margin-top: 6px;
color: var(--text-secondary);
font-size: 12px;
}
.tool-call.ccweb-display-image-tool {
margin: 8px 0 2px;
padding: 0;
overflow: visible;
border: 0;
background: transparent;
box-shadow: none;
}
.ccweb-display-image-content {
padding: 0;
background: transparent;
}
.ccweb-display-image-content .msg-attachments {
margin-top: 0;
}
.msg-attachments {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 220px));
gap: 10px;
margin-top: 10px;
}
.msg-attachment-card {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 8px;
width: 100%;
min-width: 0;
padding: 8px;
border: 1px solid rgba(221, 208, 192, 0.92);
border-radius: 14px;
background: rgba(255, 255, 255, 0.82);
color: var(--text-primary);
text-align: left;
cursor: pointer;
box-shadow: 0 8px 20px rgba(45, 31, 20, 0.05);
transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s, background 0.16s;
}
.msg-attachment-card:hover {
transform: translateY(-1px);
border-color: rgba(192, 85, 58, 0.22);
box-shadow: 0 12px 24px rgba(45, 31, 20, 0.08);
}
.msg-attachment-card:focus-visible {
outline: 2px solid rgba(192, 85, 58, 0.24);
outline-offset: 2px;
}
.msg-attachment-card:disabled {
cursor: default;
opacity: 0.88;
transform: none;
}
.msg-attachment-card.is-expired {
background: rgba(249, 242, 233, 0.9);
}
.msg-attachment-thumb {
position: relative;
display: block;
width: 100%;
min-height: 132px;
overflow: hidden;
border-radius: 11px;
background:
linear-gradient(180deg, rgba(245, 238, 229, 0.92), rgba(232, 222, 211, 0.9));
}
.msg-attachment-thumb-placeholder,
.attachment-preview-placeholder {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
color: var(--text-muted);
font-size: 12px;
font-weight: 700;
letter-spacing: 0.04em;
}
.msg-attachment-thumb-image {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity 0.18s ease;
}
.msg-attachment-card.is-loaded .msg-attachment-thumb-image {
opacity: 1;
}
.msg-attachment-meta {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.msg-attachment-name,
.msg-attachment-note {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.msg-attachment-name {
font-size: 12px;
font-weight: 700;
}
.msg-attachment-note {
color: var(--text-secondary);
font-size: 11px;
}
.msg.user .msg-attachment-card {
background: rgba(255, 255, 255, 0.14);
border-color: rgba(255, 255, 255, 0.2);
color: #fff;
box-shadow: none;
}
.msg.user .msg-attachment-card:hover {
border-color: rgba(255, 255, 255, 0.34);
}
.msg.user .msg-attachment-thumb {
background: rgba(255, 255, 255, 0.08);
}
.msg.user .msg-attachment-thumb-placeholder,
.msg.user .msg-attachment-note {
color: rgba(255, 255, 255, 0.78);
}
.msg.user .msg-attachment-name {
color: #fff;
}
.msg.user .msg-attachment-card.is-expired {
background: rgba(255, 255, 255, 0.1);
}
.msg-attachment-card.is-error .msg-attachment-thumb-placeholder {
color: var(--danger);
}
.msg.user .msg-bubble {
background: var(--bg-bubble-user);
color: #fff;
border-bottom-right-radius: 4px;
padding-right: 42px;
}
.msg.user.goal-message .msg-bubble {
display: flex;
flex-direction: column;
align-items: stretch;
}
.goal-message-label {
display: inline-flex;
align-items: center;
align-self: flex-start;
gap: 5px;
max-width: 100%;
margin: -2px 0 7px;
padding: 2px 7px;
border: 1px solid rgba(255, 255, 255, 0.24);
border-radius: 5px;
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.86);
font-size: 11px;
font-weight: 700;
line-height: 1.35;
letter-spacing: 0;
white-space: nowrap;
}
.goal-message-label::before {
width: 6px;
height: 6px;
flex: 0 0 6px;
border-radius: 50%;
background: currentColor;
content: '';
opacity: 0.82;
}
.msg-mentions {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.msg-mention-chip {
--mention-accent: rgba(255, 255, 255, 0.34);
display: flex;
flex-direction: column;
align-items: stretch;
gap: 5px;
max-width: 100%;
min-width: 0;
padding: 7px 9px 8px;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 12px;
background: rgba(255, 255, 255, 0.1);
color: inherit;
}
.msg-mention-chip.kind-skill {
width: min(290px, 100%);
}
.msg-mention-chip.kind-prompt,
.msg-mention-chip.kind-file {
background: rgba(255, 255, 255, 0.08);
}
.msg-mention-badge {
min-width: 0;
height: 18px;
width: auto;
flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
align-self: flex-start;
padding: 0 7px;
border-radius: 6px;
background: color-mix(in srgb, var(--mention-accent) 68%, rgba(255, 255, 255, 0.08));
color: #fff;
font-size: 9px;
font-weight: 800;
line-height: 1;
text-transform: uppercase;
letter-spacing: 0;
overflow: hidden;
}
.msg-mention-badge img {
display: block;
width: 18px;
height: 18px;
margin: 0 -7px;
object-fit: cover;
}
.msg-mention-body {
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.msg-mention-title {
font-size: 12px;
font-weight: 800;
line-height: 1.25;
overflow-wrap: anywhere;
}
.msg-mention-desc {
font-size: 11px;
line-height: 1.3;
color: rgba(255, 255, 255, 0.84);
overflow-wrap: anywhere;
}
.msg-mention-meta {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 2px;
}
.msg-mention-pill {
display: inline-flex;
align-items: center;
max-width: 100%;
padding: 2px 6px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.18);
background: rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.88);
font-size: 10px;
font-weight: 700;
line-height: 1.2;
overflow-wrap: anywhere;
}
.msg-mention-pill.state-configured {
border-color: rgba(255, 255, 255, 0.28);
background: rgba(93, 138, 84, 0.24);
}
.msg-mention-pill.state-declared {
background: rgba(255, 255, 255, 0.06);
}
.msg.user.codex-steer-message .msg-bubble {
padding-bottom: 10px;
}
.msg.user.codex-steer-pending .msg-avatar,
.msg.user.codex-steer-inserted .msg-avatar,
.msg.user.codex-steer-failed .msg-avatar {
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
color: var(--text-muted);
}
.msg.user.codex-steer-pending .msg-bubble {
background: var(--bg-tertiary);
border: 1px dashed var(--border-color);
color: var(--text-secondary);
}
.msg.user.codex-steer-inserted .msg-bubble {
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
color: var(--text-secondary);
opacity: 0.94;
}
.msg.user.codex-steer-failed .msg-bubble {
background: rgba(220, 53, 69, 0.1);
border: 1px solid rgba(220, 53, 69, 0.32);
color: var(--danger);
}
.codex-steer-status {
display: flex;
align-items: center;
gap: 6px;
margin-top: 6px;
font-size: 11px;
font-weight: 700;
line-height: 1.2;
opacity: 0.88;
}
.codex-steer-status::before {
content: '';
width: 6px;
height: 6px;
border-radius: 999px;
background: currentColor;
opacity: 0.72;
}
.codex-steer-status[data-status='pending'] {
color: var(--text-muted);
}
.codex-steer-status[data-status='inserted'] {
color: var(--success);
}
.codex-steer-status[data-status='failed'] {
color: var(--danger);
}
.codex-steer-actions {
display: inline-flex;
align-items: center;
gap: 6px;
margin-top: 8px;
}
.codex-steer-action {
min-height: 24px;
padding: 3px 9px;
border-radius: 6px;
border: 1px solid var(--border-color);
background: rgba(255, 255, 255, 0.08);
color: var(--text-secondary);
font-size: 12px;
font-weight: 700;
line-height: 1.2;
cursor: pointer;
}
.codex-steer-action:hover:not(:disabled),
.codex-steer-action:focus-visible:not(:disabled) {
border-color: var(--accent);
color: var(--text-primary);
}
.codex-steer-action:disabled {
cursor: not-allowed;
opacity: 0.58;
}
.codex-steer-retry {
border-color: rgba(var(--accent-rgb, 66, 153, 225), 0.42);
color: var(--accent);
}
.codex-steer-delete {
border-color: rgba(220, 53, 69, 0.32);
color: var(--danger);
}
.msg.user.codex-steer-pending .msg-copy-btn {
background: rgba(255, 255, 255, 0.08);
border-color: var(--border-color);
color: var(--text-muted);
}
.msg-copy-btn {
position: absolute;
top: 8px;
right: 8px;
width: 26px;
height: 26px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 8px;
background: rgba(255, 255, 255, 0.12);
color: rgba(255, 255, 255, 0.86);
cursor: pointer;
opacity: 0;
transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.msg.user:hover .msg-copy-btn,
.msg.user:focus-within .msg-copy-btn {
opacity: 1;
}
.msg-copy-btn:hover {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.28);
}
.msg.cross-conversation .msg-avatar {
background: var(--info);
color: #fff;
}
.msg.cross-conversation-reply .msg-avatar {
background: var(--success);
}
.msg.cross-conversation .msg-bubble {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.76), transparent),
rgba(91, 126, 161, 0.1);
border: 1px solid rgba(91, 126, 161, 0.24);
color: var(--text-primary);
box-shadow: 0 10px 22px rgba(45, 31, 20, 0.05);
}
.msg.cross-conversation-reply .msg-bubble {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.78), transparent),
rgba(93, 138, 84, 0.12);
border-color: rgba(93, 138, 84, 0.28);
}
.msg.cross-conversation-reply .cross-conversation-meta,
.msg.cross-conversation-reply .cross-conversation-id-btn,
.msg.cross-conversation-reply .cross-conversation-collapse-btn,
.msg.cross-conversation-reply .cross-conversation-time {
color: var(--success);
}
.msg.cross-conversation-reply .cross-conversation-id-btn,
.msg.cross-conversation-reply .cross-conversation-collapse-btn {
border-color: rgba(93, 138, 84, 0.28);
}
.msg.cross-conversation-reply .cross-conversation-id-btn:hover,
.msg.cross-conversation-reply .cross-conversation-collapse-btn:hover {
background: rgba(93, 138, 84, 0.14);
}
.cross-conversation-meta {
display: flex;
align-items: center;
gap: 8px;
row-gap: 6px;
flex-wrap: wrap;
margin-bottom: 7px;
color: var(--info);
font-size: 11px;
font-weight: 800;
}
.cross-conversation-label {
flex: 1 1 180px;
min-width: 0;
overflow-wrap: anywhere;
}
.cross-conversation-time {
flex-shrink: 0;
color: var(--text-muted);
font-size: 10px;
font-weight: 700;
white-space: nowrap;
}
.cross-conversation-id-btn,
.cross-conversation-collapse-btn {
appearance: none;
border: 1px solid rgba(91, 126, 161, 0.24);
border-radius: 999px;
background: rgba(255, 255, 255, 0.58);
color: var(--info);
padding: 2px 7px;
font: inherit;
font-size: 10px;
cursor: pointer;
}
.cross-conversation-collapse-btn {
min-width: 44px;
}
.cross-conversation-id-btn:hover,
.cross-conversation-collapse-btn:hover {
background: rgba(91, 126, 161, 0.14);
}
.cross-conversation-collapse-btn:focus-visible {
outline: 2px solid rgba(93, 138, 84, 0.28);
outline-offset: 2px;
}
.msg.cross-conversation-collapsed .cross-conversation-meta {
margin-bottom: 0;
}
.msg.cross-conversation-collapsed .msg-last-section-btn {
display: none;
}
.msg.assistant .msg-bubble {
background: var(--bg-bubble-assistant);
border: 1px solid var(--border-color);
border-bottom-left-radius: 4px;
color: var(--text-primary);
}
.msg-action-row {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 6px;
margin-top: 8px;
}
.msg-action-row:empty {
display: none;
}
.msg-last-section-btn,
.msg-branch-btn {
appearance: none;
width: 28px;
height: 28px;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-secondary);
color: var(--text-secondary);
cursor: pointer;
opacity: 0.72;
transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.msg-last-section-btn[hidden],
.msg-branch-btn[hidden] {
display: none;
}
.msg-last-section-btn svg,
.msg-branch-btn svg {
display: block;
flex-shrink: 0;
}
.msg-last-section-btn:hover,
.msg-branch-btn:hover {
opacity: 1;
background: var(--bg-tertiary);
border-color: var(--accent);
color: var(--accent);
transform: translateY(-1px);
}
.msg-last-section-btn:focus-visible,
.msg-branch-btn:focus-visible {
opacity: 1;
outline: 2px solid rgba(91, 126, 161, 0.28);
outline-offset: 2px;
}
.msg-last-section-focus {
animation: lastSectionFocus 1.1s ease;
}
@keyframes lastSectionFocus {
0% { background: rgba(91, 126, 161, 0.18); }
100% { background: transparent; }
}
.msg.assistant .msg-mention-chip {
border-color: rgba(48, 62, 82, 0.14);
background: rgba(91, 126, 161, 0.07);
color: var(--text-primary);
}
.msg.assistant .msg-mention-chip.kind-prompt,
.msg.assistant .msg-mention-chip.kind-file {
background: rgba(91, 126, 161, 0.05);
}
.msg.assistant .msg-mention-badge {
color: #fff;
}
.msg.assistant .msg-mention-desc {
color: var(--text-secondary);
}
.msg.assistant .msg-mention-pill {
border-color: rgba(48, 62, 82, 0.14);
background: rgba(91, 126, 161, 0.08);
color: var(--text-secondary);
}
.msg.assistant .msg-mention-pill.state-configured {
background: rgba(93, 138, 84, 0.14);
color: var(--success);
}
.note-meta {
margin-bottom: 6px;
color: var(--note-accent);
font-size: 11px;
font-weight: 800;
line-height: 1.2;
}
.note-text {
white-space: pre-wrap;
}
.note-actions {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 6px;
margin-top: 10px;
}
.note-action {
appearance: none;
min-height: 30px;
padding: 0 10px;
border: 1px solid var(--note-border);
border-radius: 8px;
background: rgba(255, 255, 255, 0.58);
color: var(--text-secondary);
cursor: pointer;
font: inherit;
font-size: 12px;
font-weight: 700;
line-height: 1;
transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.note-action:hover {
background: var(--note-bg-strong);
border-color: var(--note-accent);
color: var(--note-accent);
}
.note-action:disabled {
opacity: 0.42;
cursor: default;
pointer-events: none;
}
.note-action:active {
transform: scale(0.96);
}
.note-action.queue {
background: var(--note-bg-strong);
border-color: var(--note-border);
color: var(--note-accent);
}
.note-action.queue:hover {
background: var(--note-accent);
border-color: transparent;
color: #fff;
}
.note-action.send,
.note-action.save {
background: var(--note-accent);
border-color: transparent;
color: #fff;
}
.note-action.send:hover,
.note-action.save:hover {
background: var(--note-accent-hover);
color: #fff;
}
.note-action.delete:hover {
background: rgba(192, 85, 58, 0.1);
border-color: rgba(192, 85, 58, 0.24);
color: var(--danger);
}
.note-edit-input {
width: min(460px, 100%);
min-width: 260px;
max-width: 100%;
border: 1px solid var(--note-border);
border-radius: 10px;
outline: none;
background: rgba(255, 255, 255, 0.76);
color: var(--text-primary);
font: inherit;
line-height: 1.5;
padding: 9px 10px;
resize: none;
}
.note-edit-input:focus {
border-color: var(--note-accent);
box-shadow: 0 0 0 3px var(--note-bg);
}
/* System messages */
.msg.system {
align-self: center;
max-width: 90%;
}
.msg.system .msg-bubble {
background: var(--bg-tertiary);
border: 1px dashed var(--border-color);
border-radius: 10px;
color: var(--text-secondary);
font-size: 13px;
padding: 10px 16px;
position: relative;
text-align: center;
white-space: pre-line;
}
.msg.system.transient .msg-bubble {
border-style: solid;
box-shadow: 0 6px 18px rgba(27, 39, 51, 0.08);
}
.msg.system .msg-bubble[data-tone='danger'] {
border-color: rgba(220, 53, 69, 0.34);
color: var(--danger);
}
.msg.system .msg-bubble[data-tone='info'] {
border-color: rgba(58, 134, 255, 0.26);
color: var(--text-secondary);
}
.msg.system.is-dismissing {
opacity: 0;
transform: translateY(-4px);
transition: opacity 0.22s ease, transform 0.22s ease;
}
.msg.system .system-message-text {
display: block;
padding-right: 26px;
}
.msg.system .system-message-close {
align-items: center;
background: transparent;
border: 0;
border-radius: 6px;
color: var(--text-muted);
cursor: pointer;
display: inline-flex;
font: inherit;
font-size: 16px;
height: 24px;
justify-content: center;
line-height: 1;
padding: 0;
position: absolute;
right: 7px;
top: 7px;
width: 24px;
}
.msg.system .system-message-close:hover {
background: var(--bg-secondary);
color: var(--text-primary);
}
/* Markdown content */
.msg-bubble p { margin: 0 0 8px 0; }
.msg-bubble p:last-child { margin-bottom: 0; }
.msg-bubble hr {
border: 0;
border-top: 1px solid rgba(122, 104, 82, 0.22);
margin: 10px 0 11px;
}
.msg-bubble .agent-message-divider {
display: flex;
align-items: center;
gap: 10px;
margin: 10px 0 11px;
color: var(--text-muted);
font-size: 11px;
line-height: 1;
white-space: nowrap;
}
.msg-bubble .agent-message-divider::before,
.msg-bubble .agent-message-divider::after {
content: '';
flex: 1 1 auto;
height: 1px;
background: rgba(122, 104, 82, 0.22);
}
.msg-bubble .agent-message-divider span {
flex: 0 0 auto;
color: var(--text-muted);
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
font-size: 11px;
}
html[data-divider-time='hide'] .msg-bubble .agent-message-divider {
gap: 0;
}
html[data-divider-time='hide'] .msg-bubble .agent-message-divider span {
display: none;
}
.msg-bubble ul, .msg-bubble ol { margin: 4px 0 8px 20px; }
.msg-bubble li { margin-bottom: 2px; }
.msg-bubble h1, .msg-bubble h2, .msg-bubble h3, .msg-bubble h4 {
margin: 12px 0 6px 0;
}
.msg-bubble h1 { font-size: 1.3em; }
.msg-bubble h2 { font-size: 1.15em; }
.msg-bubble h3 { font-size: 1.05em; }
.msg-bubble a { color: var(--info); text-decoration: none; }
.msg-bubble a:hover { text-decoration: underline; }
.msg-bubble a.local-file-link {
display: inline-flex;
align-items: baseline;
max-width: 100%;
overflow-wrap: anywhere;
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
font-size: 0.95em;
color: var(--accent);
}
.msg-bubble a.local-file-link::before {
content: 'file';
margin-right: 4px;
padding: 0 4px;
border: 1px solid var(--border-color);
border-radius: 4px;
color: var(--text-muted);
font-family: inherit;
font-size: 0.76em;
line-height: 1.35;
text-decoration: none;
}
.msg-bubble blockquote {
border-left: 3px solid var(--border-color);
padding-left: 12px;
color: var(--text-secondary);
margin: 8px 0;
}
.msg-bubble table {
border-collapse: collapse;
margin: 8px 0;
font-size: 13px;
width: 100%;
overflow-x: auto;
display: block;
}
.msg-bubble th, .msg-bubble td {
border: 1px solid var(--border-color);
padding: 6px 10px;
text-align: left;
}
.msg-bubble th { background: var(--bg-secondary); }
/* Inline code */
.msg-bubble code:not(pre code) {
background: var(--bg-tertiary);
padding: 2px 6px;
border-radius: 4px;
font-size: 0.88em;
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
color: var(--accent);
}
.msg.user .msg-bubble code:not(pre code) {
background: rgba(255,255,255,0.2);
color: #fff;
}
/* Code blocks */
.code-block-wrapper {
position: relative;
margin: 8px 0;
border-radius: 10px;
overflow: hidden;
border: 1px solid var(--border-color);
max-width: 100%;
}
.code-block-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
padding: 6px 12px;
background: #2b2b2b;
font-size: 12px;
color: #999;
}
.code-block-header > span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.code-block-actions {
display: flex;
gap: 4px;
align-items: center;
flex: 0 0 auto;
}
.code-copy-btn, .code-preview-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 28px;
background: none;
border: none;
color: #999;
cursor: pointer;
font-size: 12px;
line-height: 1;
padding: 4px 10px;
border-radius: 4px;
touch-action: manipulation;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
.code-copy-btn:hover, .code-preview-btn:hover { color: #fff; background: #444; }
.code-copy-btn:focus-visible, .code-preview-btn:focus-visible {
outline: 2px solid rgba(255, 255, 255, 0.45);
outline-offset: 2px;
}
.code-copy-btn:disabled, .code-preview-btn:disabled {
cursor: default;
opacity: 0.72;
}
.code-preview-btn { border: 1px solid #555; }
.code-block-wrapper pre {
margin: 0;
padding: 12px;
overflow-x: auto;
overflow-y: hidden;
max-width: 100%;
-webkit-overflow-scrolling: touch;
}
.code-block-wrapper pre code {
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
font-size: 13px;
line-height: 1.5;
white-space: pre;
}
/* HTML/SVG preview pane */
.code-preview-pane {
display: none;
background: #fff;
border-top: 1px solid var(--border-color);
}
.code-preview-iframe {
width: 100%;
min-height: 120px;
max-height: 600px;
border: none;
display: block;
}
.code-block-wrapper.preview-mode .code-preview-pane { display: block; }
.code-block-wrapper.preview-mode pre { display: none; }
.mermaid-code-block .code-block-actions {
flex-wrap: wrap;
justify-content: flex-end;
}
.mermaid-code-block.mermaid-diagram-mode pre {
display: none;
}
.mermaid-code-block.mermaid-source-mode .mermaid-render-pane {
display: none;
}
.mermaid-render-pane {
position: relative;
min-height: 120px;
padding: 18px;
overflow: auto;
background: #fff;
border-top: 1px solid var(--border-color);
color: #1f2933;
-webkit-overflow-scrolling: touch;
}
.mermaid-render-pane[data-render-state='pending']::before {
content: '图形渲染中...';
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 18px;
color: #6b7280;
font-size: 13px;
}
.mermaid-render-pane[data-render-state='rendered']::before,
.mermaid-render-pane[data-render-state='error']::before {
content: none;
}
.mermaid-render-target {
min-width: min-content;
min-height: 80px;
display: flex;
align-items: center;
justify-content: center;
}
.mermaid-render-target svg {
max-width: 100%;
height: auto;
}
.mermaid-render-error {
padding: 12px;
border: 1px solid rgba(220, 53, 69, 0.28);
border-radius: 8px;
background: rgba(220, 53, 69, 0.08);
color: #b42318;
font-size: 13px;
line-height: 1.5;
white-space: pre-wrap;
}
@media (pointer: coarse) {
.code-block-header {
padding: 8px 10px;
}
.code-block-actions {
gap: 6px;
}
.code-copy-btn, .code-preview-btn {
min-width: 44px;
min-height: 36px;
padding: 0 12px;
}
}
/* Tool calls */
.msg-tools {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 4px 6px;
}
.tool-call {
margin: 8px 0;
border: 1px solid var(--border-color);
border-radius: 10px;
overflow: hidden;
width: 100%;
}
.tool-call.codex-command {
border-color: rgba(91, 126, 161, 0.24);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.tool-call.codex-reasoning {
border-color: rgba(192, 85, 58, 0.16);
}
.tool-call.codex-file-change {
border-color: rgba(93, 138, 84, 0.24);
}
.tool-call.ccweb-mcp-child-agent-tool-call {
border-color: transparent;
background: transparent;
}
.tool-call.ccweb-mcp-child-agent-tool-call.collab-agent-inline {
display: inline-flex;
width: auto;
max-width: 100%;
margin: 0;
overflow: visible;
border-radius: 0;
}
.tool-call summary {
padding: 8px 12px;
cursor: pointer;
font-size: 13px;
color: var(--text-secondary);
background: var(--bg-secondary);
display: flex;
align-items: center;
gap: 8px;
user-select: none;
list-style: none;
}
.tool-call-summary-main {
min-width: 0;
flex: 1;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
}
.tool-call-label {
display: block;
width: 100%;
font-weight: 700;
color: var(--text-primary);
line-height: 1.25;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.tool-call-label-text {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.tool-call.codex-todo-list .tool-call-label {
display: flex;
align-items: center;
gap: 7px;
}
.plan-progress {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
gap: 5px;
vertical-align: middle;
}
.plan-progress-dots {
display: inline-flex;
align-items: center;
gap: 3px;
}
.plan-progress-dot {
display: block;
width: 14px;
height: 14px;
margin-left: 8px;
border-radius: 50%;
}
.plan-progress-dot.is-complete {
background: var(--plan-progress-complete);
}
.plan-progress-dot.is-remaining {
background: var(--plan-progress-remaining);
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 28%, transparent);
transform-origin: center;
animation: plan-progress-breathe 1.8s ease-in-out infinite;
}
@keyframes plan-progress-breathe {
0%, 100% {
opacity: 0.68;
transform: scale(0.9);
}
50% {
opacity: 1;
transform: scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
.plan-progress-dot.is-remaining {
animation: none;
opacity: 1;
transform: none;
}
}
.plan-progress-count {
color: var(--text-muted);
font-size: 9px;
font-variant-numeric: tabular-nums;
line-height: 1;
}
@media (max-width: 560px) {
.tool-call.codex-todo-list .tool-call-label {
gap: 5px;
}
.plan-progress {
gap: 3px;
}
.plan-progress-dots {
gap: 2px;
}
.plan-progress-dot {
width: 5px;
height: 5px;
}
.plan-progress-count {
font-size: 8px;
}
}
.tool-call-subtitle {
display: block;
width: 100%;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--text-muted);
font-size: 12px;
}
.tool-call-state {
flex-shrink: 0;
padding: 2px 8px;
border-radius: 999px;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.03em;
background: rgba(233, 224, 212, 0.85);
color: var(--text-secondary);
}
.tool-call-state.running {
background: rgba(232, 190, 92, 0.16);
color: #9a6f14;
}
.tool-call-state.done {
background: rgba(93, 138, 84, 0.14);
color: var(--success);
}
.tool-call-state.error {
background: rgba(192, 85, 58, 0.14);
color: var(--danger);
}
.tool-call summary::-webkit-details-marker { display: none; }
.tool-call summary::before {
content: '▸';
font-size: 11px;
transition: transform 0.2s;
}
.tool-call[open] summary::before { transform: rotate(90deg); }
.tool-call summary:hover { background: var(--bg-tertiary); }
.tool-call-icon {
display: inline-block;
width: 8px; height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.tool-call-icon.done { background: var(--success); }
.tool-call-icon.running { background: #d4a33a; animation: pulse 1s infinite; }
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.3; }
}
.tool-call-content {
padding: 8px 12px;
font-size: 12px;
color: var(--text-secondary);
background: var(--bg-primary);
max-height: 250px;
overflow-y: auto;
white-space: pre-wrap;
word-break: break-all;
font-family: 'SF Mono', monospace;
}
.tool-call-content.reasoning {
font-family: inherit;
line-height: 1.7;
color: var(--text-primary);
background: linear-gradient(180deg, rgba(255, 249, 242, 0.92), rgba(245, 221, 212, 0.32));
}
.tool-call-content.todo-list-content {
font-family: inherit;
white-space: normal;
word-break: normal;
}
.tool-call-content.collab-agent-content {
font-family: inherit;
white-space: normal;
word-break: normal;
max-height: none;
overflow: visible;
padding: 0;
background: transparent;
color: var(--text-primary);
}
.tool-call-content.todo-list-content .todo-list-container {
margin: 0;
}
.tool-call-content.command,
.tool-call-content.file-change {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 246, 240, 0.92));
}
.tool-call-structured {
display: flex;
flex-direction: column;
gap: 10px;
}
.tool-call-section {
display: flex;
flex-direction: column;
gap: 6px;
}
.tool-call-section-label {
font-size: 10px;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-muted);
}
.tool-call-code {
margin: 0;
padding: 10px 12px;
border-radius: 10px;
background: rgba(45, 31, 20, 0.06);
color: var(--text-primary);
white-space: pre-wrap;
word-break: break-word;
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
font-size: 12px;
line-height: 1.6;
}
.tool-call-empty {
color: var(--text-muted);
font-style: italic;
}
/* Tool group (auto-fold) */
.tool-group {
margin: 8px 0;
border: 1px solid var(--border-color);
border-radius: 10px;
overflow: hidden;
width: 100%;
}
.tool-group-summary {
padding: 8px 12px;
cursor: pointer;
font-size: 12px;
color: var(--text-muted);
background: var(--bg-secondary);
list-style: none;
user-select: none;
}
.tool-group-summary::-webkit-details-marker { display: none; }
.tool-group-summary::before {
content: '▸ ';
font-size: 11px;
transition: transform 0.2s;
display: inline-block;
}
.tool-group[open] > .tool-group-summary::before { transform: rotate(90deg); }
.tool-group-summary:hover { background: var(--bg-tertiary); }
.tool-group-inner {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 4px 6px;
padding: 4px 8px;
background: var(--bg-primary);
}
.tool-group-inner .tool-call {
margin: 4px 0;
}
.tool-group-inner .tool-call.ccweb-mcp-child-agent-tool-call.collab-agent-inline {
margin: 0;
}
/* AskUserQuestion preview */
.ask-user-question {
padding: 10px 12px;
background: var(--bg-primary);
display: flex;
flex-direction: column;
gap: 10px;
}
.ask-question-card {
border: 1px solid var(--border-color);
border-radius: 10px;
background: #fff;
padding: 10px;
}
.ask-question-header {
font-size: 12px;
font-weight: 700;
color: var(--accent);
margin-bottom: 6px;
}
.ask-question-text {
font-size: 13px;
line-height: 1.5;
color: var(--text-primary);
margin-bottom: 8px;
}
/* 左右分栏布局 */
.ask-options-layout {
display: flex;
flex-direction: column;
gap: 6px;
}
.ask-options-layout.has-preview {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto auto;
gap: 8px;
align-items: start;
}
.ask-question-options {
display: flex;
flex-direction: column;
gap: 6px;
grid-row: 1;
grid-column: 1;
}
/* 右侧预览区 */
.ask-option-preview {
grid-row: 1;
grid-column: 2;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 10px 12px;
font-size: 12px;
line-height: 1.6;
color: var(--text-secondary);
min-height: 60px;
transition: background 0.15s;
white-space: pre-wrap;
word-break: break-word;
}
/* 确认按钮 — 仅移动端 */
.ask-confirm-btn {
display: none;
grid-row: 2;
grid-column: 1 / -1;
width: 100%;
padding: 9px 0;
border: 1.5px solid var(--accent);
border-radius: 8px;
background: transparent;
color: var(--accent);
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background 0.12s, color 0.12s;
}
.ask-confirm-btn:active {
background: var(--accent);
color: #fff;
}
@media (pointer: coarse) {
.ask-confirm-btn { display: block; }
}
.ask-option-item {
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 8px;
background: var(--bg-secondary);
width: 100%;
text-align: left;
cursor: pointer;
transition: background 0.12s, border-color 0.12s;
}
.ask-option-item:hover {
background: var(--accent-light);
border-color: var(--accent);
}
.ask-option-item.ask-option-selected {
background: var(--accent-light);
border-color: var(--accent);
}
.ask-option-label {
font-size: 12px;
font-weight: 600;
color: var(--text-primary);
}
.ask-option-desc {
font-size: 12px;
color: var(--text-secondary);
line-height: 1.45;
margin-top: 4px;
}
/* Typing indicator */
.typing-indicator {
display: inline-flex;
gap: 5px;
padding: 8px 4px;
}
.typing-indicator span {
width: 7px; height: 7px;
background: var(--accent);
border-radius: 50%;
opacity: 0.5;
animation: bounce 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
0%, 60%, 100% { transform: translateY(0); }
30% { transform: translateY(-7px); }
}
/* === Composer Modifier Menu === */
.cmd-menu {
position: absolute;
bottom: 80px;
left: 50%;
transform: translateX(-50%);
background: #fff;
border: 1px solid var(--border-color);
border-radius: 12px;
box-shadow: 0 4px 20px rgba(45, 31, 20, 0.12);
padding: 6px;
min-width: 240px;
max-width: 320px;
max-height: min(52vh, 360px);
overflow-y: auto;
overscroll-behavior: contain;
z-index: 50;
}
.cmd-menu::-webkit-scrollbar { width: 8px; }
.cmd-menu::-webkit-scrollbar-track { background: transparent; }
.cmd-menu::-webkit-scrollbar-thumb {
background: rgba(95, 74, 58, 0.22);
border-radius: 999px;
}
.cmd-menu::-webkit-scrollbar-thumb:hover {
background: rgba(95, 74, 58, 0.34);
}
.cmd-item {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 10px 14px;
border-radius: 8px;
cursor: pointer;
transition: background 0.12s;
min-width: 0;
}
.cmd-item:hover, .cmd-item.active { background: var(--accent-light); }
.cmd-item-kind {
flex: 0 0 auto;
min-width: 42px;
padding: 2px 6px;
border-radius: 6px;
background: rgba(192, 85, 58, 0.1);
color: var(--accent);
font-size: 10px;
font-weight: 800;
line-height: 1.4;
text-align: center;
text-transform: uppercase;
}
.cmd-item-main {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.cmd-item-cmd {
font-weight: 600;
font-size: 14px;
color: var(--accent);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cmd-item-desc {
font-size: 13px;
color: var(--text-secondary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* === Input Area === */
.input-area {
padding: 10px 16px;
padding-bottom: max(14px, var(--safe-bottom));
background: var(--bg-primary);
border-top: 1px solid var(--border-color);
flex-shrink: 0;
}
.attachment-tray {
display: flex;
flex-wrap: wrap;
gap: 8px;
max-width: 800px;
margin: 0 auto 10px;
}
.attachment-chip {
display: inline-flex;
align-items: center;
gap: 8px;
max-width: 100%;
padding: 7px 10px;
border: 1px solid rgba(91, 126, 161, 0.2);
border-radius: 12px;
background: rgba(255, 252, 248, 0.96);
color: var(--text-primary);
font-size: 12px;
line-height: 1.4;
}
.attachment-chip.uploading {
border-style: dashed;
border-color: rgba(91, 126, 161, 0.34);
background: rgba(246, 249, 252, 0.96);
}
.attachment-chip-meta {
display: flex;
flex-direction: column;
min-width: 0;
}
.attachment-chip-name {
font-weight: 700;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.attachment-chip-note {
color: var(--text-muted);
font-size: 11px;
white-space: nowrap;
}
.attachment-chip-remove {
appearance: none;
border: none;
background: transparent;
color: var(--text-muted);
cursor: pointer;
font-size: 13px;
line-height: 1;
padding: 2px;
border-radius: 6px;
}
.attachment-chip-remove:hover {
color: var(--danger);
background: rgba(192, 85, 58, 0.1);
}
.attachment-tray-note {
width: 100%;
padding: 8px 10px;
border-radius: 10px;
background: rgba(255, 246, 223, 0.95);
border: 1px solid rgba(232, 190, 92, 0.3);
color: #8b6420;
font-size: 12px;
line-height: 1.55;
}
.pending-notes-tray {
display: flex;
flex-direction: column;
gap: 8px;
width: 100%;
max-width: 800px;
max-height: min(32vh, 220px);
margin: 0 auto 10px;
padding: 2px 3px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--note-border) transparent;
}
.pending-notes-tray[hidden] {
display: none;
}
.pending-notes-tray::-webkit-scrollbar {
width: 6px;
}
.pending-notes-tray::-webkit-scrollbar-thumb {
background: var(--note-border);
border-radius: 999px;
}
.pending-ccweb-prompt {
display: grid;
grid-template-columns: 10px minmax(0, 1fr) auto auto;
align-items: center;
gap: 8px;
width: 100%;
min-height: 36px;
padding: 6px 8px;
border: none;
border-radius: 10px;
background: transparent;
animation: fadeIn 0.2s ease;
}
.pending-ccweb-prompt:hover {
background: var(--accent-light);
}
.pending-ccweb-prompt-badge {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 0 3px rgba(192, 85, 58, 0.12);
}
.pending-ccweb-prompt-title {
color: var(--text-primary);
font-size: 13px;
font-weight: 800;
line-height: 1.35;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.pending-ccweb-prompt-action {
min-height: 26px;
padding: 3px 9px;
border: 1px solid rgba(192, 85, 58, 0.24);
border-radius: 999px;
background: rgba(255, 249, 242, 0.9);
color: var(--accent);
font: inherit;
font-size: 12px;
font-weight: 900;
cursor: pointer;
transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.pending-ccweb-prompt-action:hover {
border-color: var(--accent);
background: var(--bg-primary);
transform: translateY(-1px);
}
.pending-ccweb-prompt-dismiss {
min-height: 26px;
padding: 3px 8px;
border: 0;
border-radius: 999px;
background: transparent;
color: var(--text-muted);
font: inherit;
font-size: 12px;
font-weight: 900;
cursor: pointer;
}
.pending-ccweb-prompt-dismiss:hover {
background: rgba(139, 100, 32, 0.1);
color: var(--text-primary);
}
.pending-ccweb-prompt-dismiss:disabled {
opacity: 0.55;
cursor: wait;
}
.pending-note {
display: grid;
grid-template-columns: 28px minmax(0, 1fr);
align-items: start;
gap: 8px;
animation: fadeIn 0.2s ease;
}
.pending-note .note-avatar {
width: 28px;
height: 28px;
border-radius: 9px;
display: flex;
align-items: center;
justify-content: center;
background: var(--note-accent);
color: #fff;
font-size: 12px;
font-weight: 800;
flex-shrink: 0;
}
.pending-note .note-bubble {
min-width: 0;
padding: 10px 12px;
border-radius: 12px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent),
var(--note-bg);
border: 1px solid var(--note-border);
color: var(--text-primary);
box-shadow: 0 8px 18px rgba(45, 31, 20, 0.05);
}
.queued-message .queue-avatar {
background: var(--accent);
}
.queued-message .queue-bubble {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent),
var(--accent-light);
border-color: rgba(192, 85, 58, 0.2);
}
.queued-message .queue-meta {
color: var(--accent);
}
.input-wrapper {
display: flex;
align-items: center;
gap: 8px;
background: #fff;
border: 1px solid var(--border-color);
border-radius: 14px;
padding: 8px 12px;
max-width: 800px;
margin: 0 auto;
width: 100%;
transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrapper.drag-active {
border-color: var(--info);
box-shadow: 0 0 0 3px rgba(91, 126, 161, 0.12);
}
.input-wrapper.note-mode-active {
border-color: var(--note-border);
box-shadow: 0 0 0 3px var(--note-bg);
}
.attach-btn {
appearance: none;
width: 40px;
height: 40px;
border: 1px solid transparent;
background: transparent;
color: var(--text-secondary);
cursor: pointer;
padding: 0;
border-radius: 12px;
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.attach-btn:hover {
color: var(--accent);
background: rgba(192, 85, 58, 0.08);
border-color: rgba(192, 85, 58, 0.12);
}
.note-mode-btn {
appearance: none;
width: 36px;
height: 36px;
border: 1px solid transparent;
border-radius: 10px;
background: var(--note-accent);
color: #fff;
cursor: pointer;
padding: 0;
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.note-mode-btn:hover {
background: var(--note-accent-hover);
color: #fff;
border-color: transparent;
}
.note-mode-btn:active {
transform: scale(0.92);
}
.note-mode-btn.active {
background: var(--note-accent-hover);
border-color: transparent;
color: #fff;
box-shadow: 0 8px 18px var(--note-bg-strong);
}
.note-mode-btn.active:hover {
background: var(--note-accent-hover);
color: #fff;
}
.queue-send-btn {
appearance: none;
width: 36px;
height: 36px;
border: 1px solid transparent;
border-radius: 10px;
background: var(--info);
color: #fff;
cursor: pointer;
padding: 0;
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.queue-send-btn:hover {
background: var(--accent);
color: #fff;
}
.queue-send-btn:active {
transform: scale(0.92);
}
.attach-btn:disabled,
.note-mode-btn:disabled,
.queue-send-btn:disabled {
opacity: 0.45;
cursor: default;
}
.input-wrapper:focus-within {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-light);
}
#msg-input {
flex: 1;
min-width: 0;
background: transparent;
border: none;
color: var(--text-primary);
font-size: 15px;
font-family: inherit;
line-height: 1.5;
resize: none;
outline: none;
max-height: var(--input-max-height);
min-height: 24px;
overflow-y: auto;
}
#msg-input::placeholder { color: var(--text-muted); }
.send-btn, .abort-btn {
width: 36px; height: 36px;
border: none;
border-radius: 10px;
cursor: pointer;
display: flex;
align-items: center; justify-content: center;
flex-shrink: 0;
transition: background 0.15s, transform 0.1s;
}
.send-btn:active, .abort-btn:active { transform: scale(0.92); }
.send-btn {
background: var(--accent);
color: #fff;
}
.send-btn:hover { background: var(--accent-hover); }
.send-btn.note-send {
background: var(--note-accent);
color: #fff;
}
.send-btn.note-send:hover {
background: var(--note-accent-hover);
}
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.abort-btn {
background: var(--danger);
color: #fff;
}
.abort-btn:hover { background: var(--accent-hover); }
/* === Option Picker === */
.option-picker {
position: absolute;
bottom: 80px;
left: 50%;
transform: translateX(-50%);
background: #fff;
border: 1px solid var(--border-color);
border-radius: 14px;
box-shadow: 0 8px 32px rgba(45, 31, 20, 0.15);
padding: 16px;
min-width: 280px;
max-width: 380px;
z-index: 50;
animation: fadeIn 0.2s ease;
}
.option-picker-title {
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 12px;
padding: 0 4px;
}
.option-picker-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 14px;
border-radius: 10px;
cursor: pointer;
transition: background 0.12s;
margin-bottom: 4px;
}
.option-picker-item:last-child { margin-bottom: 0; }
.option-picker-item:hover { background: var(--accent-light); }
.option-picker-item.active {
background: var(--accent-light);
outline: 1px solid var(--accent);
}
.option-picker-item-info { flex: 1; min-width: 0; }
.option-picker-item-label {
font-weight: 600;
font-size: 15px;
color: var(--text-primary);
}
.option-picker-item-desc {
font-size: 13px;
color: var(--text-secondary);
margin-top: 2px;
}
.option-picker-item-check {
color: var(--accent);
font-size: 16px;
font-weight: 700;
flex-shrink: 0;
}
/* === Mobile === */
@media (max-width: 768px) {
.sidebar {
position: fixed;
left: 0; top: 0; bottom: 0;
z-index: 100;
transform: translateX(-100%);
}
.sidebar.open { transform: translateX(0); }
.sidebar-overlay {
position: fixed; inset: 0;
background: rgba(45, 31, 20, 0.3);
z-index: 99;
}
.menu-btn { display: block; }
.msg { max-width: 95%; }
.input-area { padding: 8px 10px; padding-bottom: max(10px, var(--safe-bottom)); }
.messages {
padding: 12px 8px 24px;
scroll-padding-bottom: 24px;
gap: 10px;
}
.session-item-actions { display: flex; }
.cmd-menu { left: 10px; right: 10px; transform: none; min-width: auto; bottom: 72px; }
.option-picker { left: 10px; right: 10px; transform: none; min-width: auto; bottom: 72px; }
.chat-header {
padding: 0 10px;
gap: 5px;
}
.chat-title {
font-size: 13px;
}
.chat-controls {
gap: 6px;
margin-bottom: 6px;
}
.chat-session-id-btn {
max-width: 92px;
padding-left: 7px;
padding-right: 7px;
font-size: 10px;
}
.theme-grid {
grid-template-columns: 1fr;
}
.chat-agent-menu {
left: 0;
min-width: 138px;
}
.chat-runtime-state {
padding: 2px 8px;
font-size: 10px;
}
.chat-cwd {
max-width: 98px;
flex-shrink: 1;
}
.mode-select {
padding: 4px 20px 4px 8px;
font-size: 11px;
}
.user-outline-btn,
.ccweb-prompt-outline-btn,
.reload-mcp-btn {
padding: 4px 8px;
font-size: 10px;
}
.user-outline-text {
font-size: 12px;
}
.user-outline-panel {
left: 0;
right: auto;
width: min(320px, calc(100vw - 20px));
}
}
@media (max-width: 480px) {
.msg-avatar { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; }
.msg-bubble { padding: 10px 12px; font-size: 14px; border-radius: 14px; }
.msg.user .msg-bubble { border-bottom-right-radius: 4px; }
.msg.assistant .msg-bubble { border-bottom-left-radius: 4px; }
.code-block-wrapper pre code { font-size: 12px; }
.input-wrapper { padding: 6px 10px; border-radius: 12px; }
.attach-btn { width: 34px; height: 34px; border-radius: 10px; }
.note-mode-btn,
.queue-send-btn { width: 34px; height: 34px; border-radius: 10px; }
.send-btn, .abort-btn { width: 34px; height: 34px; }
.pending-notes-tray { max-height: 34vh; margin-bottom: 8px; }
.pending-note { grid-template-columns: 26px minmax(0, 1fr); gap: 7px; }
.pending-note .note-avatar { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.note-actions { gap: 5px; }
.note-action { min-height: 28px; padding: 0 8px; }
.note-edit-input { min-width: 0; }
.new-chat-btn,
.new-chat-arrow { min-height: 44px; }
.new-chat-arrow { width: 48px; }
.chat-cwd {
max-width: 76px;
padding-left: 6px;
padding-right: 6px;
}
.chat-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
}
.user-outline-anchor,
.ccweb-prompt-outline-anchor {
position: static;
}
.ccweb-prompt-outline-anchor {
width: auto;
max-width: 100%;
}
.user-outline-panel,
.ccweb-prompt-outline-panel {
left: 0;
right: 0;
width: auto;
bottom: calc(100% + 6px);
max-height: min(44vh, 300px);
}
.chat-cwd {
width: 100%;
max-width: none;
justify-content: center;
}
.mode-select,
.user-outline-btn,
.ccweb-prompt-outline-btn,
.reload-mcp-btn,
.chat-runtime-state {
max-width: none;
justify-content: center;
}
.chat-header {
gap: 4px;
}
.chat-title {
min-width: 0;
}
.chat-session-id-btn {
max-width: 72px;
padding-left: 6px;
padding-right: 6px;
}
.chat-agent-btn {
max-width: 96px;
padding-left: 8px;
padding-right: 20px;
}
.chat-agent-menu {
left: 0;
right: auto;
}
.msg-copy-btn {
opacity: 1;
width: 24px;
height: 24px;
}
}
/* === Utility === */
[hidden] { display: none !important; }
/* === Toast Notification === */
.toast-notification {
position: fixed;
top: 16px;
right: 16px;
background: var(--success);
color: #fff;
padding: 12px 20px;
border-radius: 10px;
font-size: 14px;
font-weight: 500;
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
z-index: 200;
opacity: 0;
transform: translateY(-10px);
transition: opacity 0.3s, transform 0.3s;
}
.toast-notification.show {
opacity: 1;
transform: translateY(0);
}
/* === Session Unread Dot === */
.session-unread-dot {
width: 8px;
height: 8px;
background: var(--accent);
border-radius: 50%;
flex-shrink: 0;
margin-left: 4px;
}
/* === Settings Button (sidebar) === */
.settings-btn {
background: none;
border: none;
font-size: 18px;
cursor: pointer;
color: var(--text-muted);
padding: 4px 8px;
border-radius: 6px;
transition: color 0.15s, background 0.15s;
vertical-align: middle;
margin-right: 8px;
}
.settings-btn:hover { color: var(--text-primary); background: var(--bg-tertiary); }
/* === Settings Overlay & Panel === */
.settings-overlay {
position: fixed; inset: 0;
display: flex; align-items: center; justify-content: center;
background: rgba(45, 31, 20, 0.4);
z-index: 1000;
animation: fadeIn 0.2s ease;
}
.settings-panel {
background: #fff;
border: 1px solid var(--border-color);
border-radius: 20px;
width: 90%;
max-width: 420px;
max-height: 85vh;
overflow-y: auto;
box-shadow: 0 8px 32px rgba(45, 31, 20, 0.12);
padding: 32px 28px;
animation: fadeIn 0.25s ease;
}
.settings-panel h3 {
font-size: 18px;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 8px;
}
.settings-panel h3 .settings-close {
margin-left: auto;
background: none;
border: none;
font-size: 20px;
cursor: pointer;
color: var(--text-muted);
padding: 2px 6px;
border-radius: 6px;
}
.settings-panel h3 .settings-close:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.settings-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 20px;
}
.settings-back {
appearance: none;
width: 34px;
height: 34px;
border: 1px solid var(--border-color);
border-radius: 10px;
background: var(--bg-primary);
color: var(--text-primary);
cursor: pointer;
font-size: 22px;
line-height: 1;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.settings-back:hover {
background: var(--bg-tertiary);
}
.settings-header h3 {
margin-bottom: 0;
flex: 1;
}
.settings-subpage-header {
align-items: flex-start;
}
.settings-subpage-copy {
flex: 1;
min-width: 0;
}
.settings-subpage-copy h3 {
margin-bottom: 0;
}
.settings-subpage-kicker {
display: inline-flex;
align-items: center;
min-height: 20px;
margin-bottom: 4px;
color: var(--text-muted);
font-size: 11px;
font-weight: 800;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.settings-header .settings-close {
margin-left: auto;
background: none;
border: none;
font-size: 20px;
cursor: pointer;
color: var(--text-muted);
padding: 2px 6px;
border-radius: 6px;
}
.settings-header .settings-close:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.settings-field {
margin-bottom: 16px;
}
.agent-context-card {
margin: -6px 0 18px;
padding: 14px 16px 15px;
border: 1px solid rgba(192, 85, 58, 0.14);
border-radius: 14px;
background:
radial-gradient(circle at top right, rgba(192, 85, 58, 0.12), transparent 45%),
linear-gradient(135deg, rgba(245, 221, 212, 0.65), rgba(255, 249, 242, 0.96));
}
.agent-context-kicker {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 6px;
}
.agent-context-title {
font-size: 15px;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 4px;
}
.agent-context-copy {
font-size: 13px;
color: var(--text-secondary);
line-height: 1.65;
}
.settings-field label {
display: block;
font-size: 13px;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 6px;
}
.settings-inline-note {
margin: -4px 0 16px;
padding: 10px 12px;
border-radius: 10px;
font-size: 12px;
line-height: 1.65;
color: var(--text-secondary);
background: rgba(255, 249, 242, 0.9);
border: 1px solid rgba(221, 208, 192, 0.9);
}
.settings-inline-note.warning {
color: #8b6420;
background: rgba(255, 246, 223, 0.95);
border-color: rgba(232, 190, 92, 0.3);
}
.settings-inline-note code {
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
font-size: 11px;
padding: 1px 5px;
border-radius: 6px;
background: rgba(45, 31, 20, 0.08);
color: var(--text-primary);
}
.settings-nav-card {
appearance: none;
width: 100%;
padding: 14px 16px;
border: 1px solid var(--border-color);
border-radius: 14px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 242, 0.92));
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
text-align: left;
cursor: pointer;
transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.settings-nav-card:hover {
transform: translateY(-1px);
border-color: rgba(192, 85, 58, 0.24);
box-shadow: 0 12px 24px rgba(45, 31, 20, 0.06);
}
.settings-nav-card-main {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.settings-nav-card-title {
font-size: 14px;
font-weight: 700;
color: var(--text-primary);
}
.settings-nav-card-meta {
font-size: 12px;
color: var(--text-secondary);
}
.settings-nav-card-arrow {
color: var(--text-muted);
font-size: 22px;
line-height: 1;
flex-shrink: 0;
}
.settings-toggle-row {
width: 100%;
margin-top: 10px;
padding: 14px 16px;
border: 1px solid var(--border-color);
border-radius: 14px;
background: var(--theme-card-bg);
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
cursor: pointer;
}
.settings-toggle-copy {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.settings-toggle-title {
font-size: 14px;
font-weight: 700;
color: var(--text-primary);
}
.settings-toggle-meta {
font-size: 12px;
color: var(--text-secondary);
}
.settings-switch {
position: relative;
flex: 0 0 auto;
width: 42px;
height: 24px;
}
.settings-switch input {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
}
.settings-switch-track {
position: absolute;
inset: 0;
border-radius: 999px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
transition: background 0.18s ease, border-color 0.18s ease;
}
.settings-switch-thumb {
position: absolute;
top: 3px;
left: 3px;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--surface-strong);
box-shadow: 0 2px 6px rgba(45, 31, 20, 0.18);
transition: transform 0.18s ease, background 0.18s ease;
}
.settings-switch input:checked + .settings-switch-track {
background: var(--accent);
border-color: var(--accent);
}
.settings-switch input:checked + .settings-switch-track .settings-switch-thumb {
transform: translateX(18px);
background: var(--accent-ink, #fff);
}
.settings-switch input:focus-visible + .settings-switch-track {
outline: 2px solid var(--accent-light);
outline-offset: 2px;
}
.settings-subpage-panel {
max-width: 460px;
}
.theme-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
margin-bottom: 18px;
}
.theme-card {
appearance: none;
border: 1px solid var(--theme-card-border);
border-radius: 16px;
background: var(--theme-card-bg);
padding: 12px;
text-align: left;
cursor: pointer;
transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.theme-card:hover {
transform: translateY(-2px);
border-color: var(--theme-card-hover-border);
}
.theme-card.active {
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--theme-card-active-ring);
}
.theme-card-preview {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px;
margin-bottom: 10px;
}
.theme-card-swatch {
height: 18px;
border-radius: 999px;
border: 1px solid rgba(0, 0, 0, 0.06);
}
.theme-card-title {
font-size: 13px;
font-weight: 800;
color: var(--text-primary);
margin-bottom: 2px;
}
.theme-card-desc {
font-size: 11px;
color: var(--text-secondary);
line-height: 1.45;
}
.settings-field input,
.settings-select {
width: 100%;
padding: 10px 14px;
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 10px;
color: var(--text-primary);
font-size: 14px;
font-family: inherit;
outline: none;
transition: border-color 0.2s;
}
.settings-field input:focus,
.settings-select:focus { border-color: var(--accent); }
.settings-field input:disabled,
.settings-select:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.settings-field-disabled {
opacity: 0.65;
}
.settings-retry-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 12px;
}
.settings-select {
-webkit-appearance: none;
appearance: none;
cursor: pointer;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b5a4d'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 12px center;
padding-right: 32px;
}
.settings-actions {
display: flex;
gap: 10px;
margin-top: 24px;
}
.settings-actions button {
flex: 1;
padding: 10px;
border: none;
border-radius: 10px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background 0.15s;
font-family: inherit;
}
.settings-actions .btn-test {
background: var(--bg-tertiary);
color: var(--text-primary);
border: 1px solid var(--border-color);
}
.settings-actions .btn-test:hover { background: var(--bg-secondary); }
.settings-actions .btn-save {
background: var(--accent);
color: #fff;
}
.settings-actions .btn-save:hover { background: var(--accent-hover); }
.settings-status {
margin-top: 12px;
font-size: 13px;
text-align: center;
min-height: 20px;
}
.settings-status.success { color: var(--success); }
.settings-status.error { color: var(--danger); }
@media (max-width: 768px) {
.settings-panel { padding: 24px 20px; border-radius: 16px; }
}
@media (max-width: 480px) {
.settings-panel { width: 95%; padding: 20px 16px; }
.settings-nav-card { padding: 13px 14px; }
.settings-back { width: 32px; height: 32px; }
.settings-retry-grid { grid-template-columns: 1fr; }
}
/* === Force Change Password Overlay === */
.force-change-overlay {
position: fixed; inset: 0;
display: flex; align-items: center; justify-content: center;
background: rgba(45, 31, 20, 0.6);
z-index: 2000;
animation: fadeIn 0.25s ease;
}
.force-change-panel {
text-align: center;
padding: 48px 36px;
background: #fff;
border: 1px solid var(--border-color);
border-radius: 20px;
width: 90%;
max-width: 400px;
box-shadow: 0 8px 32px rgba(45, 31, 20, 0.15);
animation: fadeIn 0.25s ease;
}
.force-change-panel .login-logo {
width: 56px; height: 56px;
margin: 0 auto 12px;
border-radius: 14px;
display: block;
object-fit: contain;
}
.force-change-panel h2 {
font-size: 22px;
margin-bottom: 4px;
color: var(--text-primary);
font-weight: 700;
}
.force-change-panel p {
color: var(--text-secondary);
margin-bottom: 24px;
font-size: 14px;
}
.force-change-form input {
width: 100%;
padding: 12px 16px;
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 10px;
color: var(--text-primary);
font-size: 15px;
outline: none;
margin-bottom: 10px;
transition: border-color 0.2s;
}
.force-change-form input:focus { border-color: var(--accent); }
.fc-submit-btn {
width: 100%;
padding: 12px;
background: var(--accent);
color: #fff;
border: none;
border-radius: 10px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s, opacity 0.2s;
margin-top: 6px;
}
.fc-submit-btn:hover:not(:disabled) { background: var(--accent-hover); }
.fc-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.fc-status {
margin-top: 10px;
font-size: 13px;
min-height: 18px;
color: var(--text-secondary);
}
.fc-status.error { color: var(--danger); }
.fc-status.success { color: var(--success); }
/* === Password Hint === */
.password-hint {
font-size: 12px;
color: var(--text-muted);
margin: -4px 0 10px 2px;
text-align: left;
}
.password-hint.error { color: var(--danger); }
.password-hint.success { color: var(--success); }
/* === Settings Divider === */
.settings-divider {
height: 1px;
background: var(--border-color);
margin: 24px 0;
}
/* === Settings Section Title === */
.settings-section-title {
font-size: 14px;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 14px;
}
/* === New Chat Split Button === */
.new-chat-split {
display: flex;
align-items: stretch;
gap: 6px;
}
.new-chat-split.single .new-chat-btn {
border-radius: 10px;
}
.new-chat-split.single .new-chat-arrow {
display: none;
}
.new-chat-split .new-chat-btn {
flex: 1;
min-height: 48px;
border-radius: 10px 0 0 10px;
}
.new-chat-arrow {
width: 52px;
min-height: 48px;
padding: 0;
background: var(--accent);
border: none;
border-radius: 0 10px 10px 0;
color: #fff;
font-size: 13px;
cursor: pointer;
transition: background 0.2s;
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
}
.new-chat-arrow:hover { background: var(--accent-hover); }
.new-chat-dropdown {
position: absolute;
top: 54px;
left: 12px;
right: 12px;
background: #fff;
border: 1px solid var(--border-color);
border-radius: 10px;
box-shadow: 0 4px 16px rgba(45,31,20,0.12);
z-index: 200;
overflow: hidden;
}
.new-chat-dropdown button {
display: block;
width: 100%;
padding: 12px 16px;
background: none;
border: none;
text-align: left;
font-size: 14px;
color: var(--text-primary);
cursor: pointer;
transition: background 0.12s;
}
.new-chat-dropdown button:hover { background: var(--accent-light); }
html[data-theme='coolvibe'] .settings-nav-card {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 250, 252, 0.94));
border-color: rgba(191, 220, 228, 0.96);
}
html[data-theme='coolvibe'] .settings-nav-card:hover {
border-color: rgba(8, 145, 178, 0.28);
box-shadow: 0 12px 24px rgba(8, 145, 178, 0.08);
}
html[data-theme='coolvibe'] .settings-back {
background: rgba(8, 145, 178, 0.08);
border-color: rgba(167, 205, 216, 0.84);
color: #0c6478;
}
html[data-theme='coolvibe'] .settings-back:hover {
background: rgba(8, 145, 178, 0.16);
}
.sidebar-header { position: relative; }
/* === Chat CWD label === */
.chat-cwd {
appearance: none;
border: none;
font-size: 11px;
color: var(--text-muted);
background: var(--bg-tertiary);
padding: 2px 8px;
border-radius: 6px;
flex-shrink: 0;
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: inherit;
line-height: 1.25;
text-align: left;
cursor: pointer;
transition: background 0.15s, color 0.15s;
}
.chat-cwd:hover { background: var(--accent-light); color: var(--accent); }
.chat-cwd:focus-visible {
outline: 2px solid rgba(192, 85, 58, 0.24);
outline-offset: 2px;
}
.chat-cwd:disabled { cursor: default; opacity: 0.7; }
/* === Modal Overlay === */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(45,31,20,0.35);
display: flex;
align-items: center;
justify-content: center;
z-index: 500;
padding: 16px;
}
.modal-panel {
background: #fff;
border: 1px solid var(--border-color);
border-radius: 16px;
width: 100%;
max-width: 420px;
box-shadow: 0 8px 32px rgba(45,31,20,0.15);
display: flex;
flex-direction: column;
max-height: 90vh;
}
.modal-panel-wide {
max-width: 600px;
}
.attachment-preview-panel {
width: min(92vw, 1040px);
max-width: min(92vw, 1040px);
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px 12px;
border-bottom: 1px solid var(--border-color);
flex-shrink: 0;
}
.modal-title {
font-weight: 700;
font-size: 16px;
color: var(--text-primary);
}
.modal-close-btn {
background: none;
border: none;
font-size: 16px;
color: var(--text-muted);
cursor: pointer;
padding: 4px 6px;
border-radius: 6px;
line-height: 1;
}
.modal-close-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.modal-body {
padding: 20px;
overflow-y: auto;
flex: 1;
}
.attachment-preview-body {
display: flex;
flex-direction: column;
gap: 14px;
padding: 18px 20px 20px;
}
.attachment-preview-stage {
position: relative;
min-height: 320px;
max-height: 72vh;
border-radius: 16px;
overflow: hidden;
background:
linear-gradient(180deg, rgba(245, 238, 229, 0.96), rgba(232, 222, 211, 0.92));
border: 1px solid rgba(221, 208, 192, 0.92);
}
.attachment-preview-stage.is-ready {
background: #111;
}
.attachment-preview-stage.is-error {
border-color: rgba(192, 85, 58, 0.24);
}
.attachment-preview-image {
display: block;
width: 100%;
height: 100%;
max-height: 72vh;
object-fit: contain;
background: #111;
}
.attachment-preview-meta {
display: flex;
flex-direction: column;
gap: 4px;
}
.attachment-preview-name {
color: var(--text-primary);
font-size: 15px;
font-weight: 700;
}
.attachment-preview-desc {
color: var(--text-secondary);
font-size: 12px;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
padding: 12px 20px 16px;
border-top: 1px solid var(--border-color);
flex-shrink: 0;
}
.modal-field-label {
display: block;
font-size: 13px;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 8px;
}
.modal-field-row {
display: flex;
gap: 8px;
}
.modal-select {
width: 100%;
padding: 10px 12px;
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 10px;
color: var(--text-primary);
font-size: 14px;
font-family: inherit;
outline: none;
transition: border-color 0.2s;
}
.modal-select:focus { border-color: var(--accent); }
.modal-stack {
display: flex;
flex-direction: column;
gap: 14px;
}
.modal-text-input {
flex: 1;
padding: 10px 12px;
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 10px;
color: var(--text-primary);
font-size: 14px;
font-family: inherit;
outline: none;
transition: border-color 0.2s;
}
.modal-text-input:focus { border-color: var(--accent); }
.modal-btn-primary {
padding: 9px 20px;
background: var(--accent);
color: #fff;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
.modal-btn-primary:hover { background: var(--accent-hover); }
.modal-btn-secondary {
padding: 9px 20px;
background: var(--bg-tertiary);
color: var(--text-primary);
border: 1px solid var(--border-color);
border-radius: 8px;
font-size: 14px;
cursor: pointer;
transition: background 0.2s;
}
.modal-btn-secondary:hover { background: var(--bg-secondary); }
.modal-btn-inline {
flex: 0 0 auto;
white-space: nowrap;
}
.modal-field-hint {
margin-top: 8px;
font-size: 12px;
color: var(--text-muted);
line-height: 1.5;
word-break: break-all;
}
.codex-user-input-panel {
max-width: 520px;
}
.codex-user-input-body {
display: flex;
flex-direction: column;
gap: 16px;
}
.codex-user-input-question {
display: flex;
flex-direction: column;
gap: 10px;
}
.codex-user-input-kicker {
font-size: 12px;
font-weight: 700;
color: var(--accent);
}
.codex-user-input-prompt {
color: var(--text-primary);
font-size: 15px;
line-height: 1.5;
}
.codex-user-input-options {
display: flex;
flex-direction: column;
gap: 8px;
}
.codex-user-input-option {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 10px 12px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-primary);
cursor: pointer;
}
.codex-user-input-option:hover {
border-color: rgba(192, 85, 58, 0.36);
}
.codex-user-input-option input[type='radio'] {
margin-top: 3px;
}
.codex-user-input-option-copy {
min-width: 0;
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
}
.codex-user-input-option-label {
color: var(--text-primary);
font-weight: 600;
font-size: 14px;
}
.codex-user-input-option-desc {
color: var(--text-muted);
font-size: 12px;
line-height: 1.4;
}
.codex-user-input-text {
width: 100%;
margin-top: 4px;
padding: 8px 10px;
background: #fff;
border: 1px solid var(--border-color);
border-radius: 8px;
color: var(--text-primary);
font: inherit;
outline: none;
}
.codex-user-input-text:focus {
border-color: var(--accent);
}
.ccweb-prompt-card {
width: min(100%, 720px);
margin-top: 14px;
padding: 0;
border: 1px solid rgba(192, 85, 58, 0.18);
border-left: 4px solid var(--accent);
border-radius: 8px;
background:
linear-gradient(180deg, rgba(255, 249, 242, 0.98), rgba(250, 246, 240, 0.94));
color: var(--text-primary);
box-shadow: 0 14px 34px rgba(45, 31, 20, 0.08);
overflow: hidden;
}
.ccweb-prompt-card.ccweb-prompt-focus {
animation: ccwebPromptFocus 1.4s ease;
}
@keyframes ccwebPromptFocus {
0% {
box-shadow: 0 0 0 0 rgba(192, 85, 58, 0.34), 0 14px 34px rgba(45, 31, 20, 0.08);
}
45% {
box-shadow: 0 0 0 5px rgba(192, 85, 58, 0.18), 0 18px 38px rgba(45, 31, 20, 0.12);
}
100% {
box-shadow: 0 0 0 0 rgba(192, 85, 58, 0), 0 14px 34px rgba(45, 31, 20, 0.08);
}
}
.ccweb-prompt-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
min-height: 46px;
padding: 9px 12px;
border-bottom: 1px solid rgba(221, 208, 192, 0.72);
}
.ccweb-prompt-title-wrap {
flex: 1 1 auto;
min-width: 0;
}
.ccweb-prompt-kicker {
color: var(--text-muted);
font-size: 11px;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.ccweb-prompt-title {
color: var(--text-primary);
font-size: 15px;
font-weight: 800;
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ccweb-prompt-header-actions {
display: inline-flex;
align-items: center;
gap: 7px;
flex: 0 0 auto;
}
.ccweb-prompt-status {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
padding: 0;
border: 1px solid rgba(192, 85, 58, 0.18);
border-radius: 999px;
background: rgba(245, 221, 212, 0.6);
color: var(--accent);
font-size: 10px;
font-weight: 800;
}
.ccweb-prompt-card[data-status='submitted'] .ccweb-prompt-status {
width: auto;
padding: 0 7px;
border-color: rgba(93, 138, 84, 0.28);
background: rgba(93, 138, 84, 0.12);
color: var(--success);
font-size: 11px;
}
.ccweb-prompt-desc {
margin: 0;
padding: 10px 12px 0;
color: var(--text-secondary);
font-size: 13px;
line-height: 1.55;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.ccweb-prompt-view-controls {
padding: 8px 12px 0;
}
.ccweb-prompt-view-switcher {
display: inline-flex;
width: max-content;
max-width: 100%;
padding: 1px;
border: 1px solid rgba(221, 208, 192, 0.94);
border-radius: 8px;
background: rgba(255, 255, 255, 0.48);
}
.ccweb-prompt-view-btn {
width: 26px;
height: 26px;
min-height: 26px;
padding: 0;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--text-muted);
font: inherit;
font-size: 14px;
font-weight: 900;
line-height: 1;
cursor: pointer;
}
.ccweb-prompt-view-btn.is-active {
background: var(--accent);
color: var(--accent-ink);
}
.ccweb-prompt-tabs {
display: none;
min-width: 0;
gap: 6px;
overflow-x: auto;
scrollbar-width: thin;
}
.ccweb-prompt-tab {
flex: 0 0 auto;
max-width: 168px;
min-height: 30px;
padding: 5px 10px;
border: 1px solid rgba(221, 208, 192, 0.94);
border-radius: 8px;
background: rgba(255, 249, 242, 0.72);
color: var(--text-secondary);
font: inherit;
font-size: 12px;
font-weight: 800;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ccweb-prompt-tab.is-active {
border-color: var(--accent);
background: rgba(245, 221, 212, 0.72);
color: var(--accent);
}
.ccweb-prompt-tab-nav {
display: none;
align-items: center;
justify-content: flex-start;
gap: 6px;
min-width: 0;
}
.ccweb-prompt-tab-nav-btn {
min-height: 30px;
padding: 5px 9px;
border: 1px solid rgba(221, 208, 192, 0.98);
border-radius: 8px;
background: rgba(255, 249, 242, 0.75);
color: var(--text-primary);
font: inherit;
font-size: 12px;
font-weight: 900;
cursor: pointer;
}
.ccweb-prompt-tab-nav-btn:disabled {
opacity: 0.45;
cursor: default;
}
.ccweb-prompt-tab-counter {
min-width: 64px;
color: var(--text-muted);
font-size: 12px;
font-weight: 800;
text-align: center;
}
.ccweb-prompt-card[data-view-mode='tabs'] .ccweb-prompt-tabs {
display: flex;
}
.ccweb-prompt-card[data-view-mode='cards'] .ccweb-prompt-view-controls {
display: none;
}
.ccweb-prompt-card[data-view-mode='tabs'] .ccweb-prompt-tab-nav {
display: flex;
}
.ccweb-prompt-card[data-view-mode='tabs'] .ccweb-prompt-question:not(.is-active) {
display: none;
}
.ccweb-prompt-questions {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 0;
padding: 10px 12px 4px;
}
.ccweb-prompt-question {
display: flex;
flex-direction: column;
gap: 10px;
padding: 13px 14px;
border: 1px solid rgba(221, 208, 192, 0.92);
border-radius: 8px;
background: rgba(255, 255, 255, 0.46);
}
.ccweb-prompt-question-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.ccweb-prompt-question-title {
color: var(--text-primary);
font-size: 14px;
font-weight: 800;
line-height: 1.35;
overflow-wrap: anywhere;
}
.ccweb-prompt-required {
flex: 0 0 auto;
padding: 2px 6px;
border-radius: 999px;
background: rgba(192, 85, 58, 0.1);
color: var(--danger);
font-size: 12px;
font-weight: 800;
}
.ccweb-prompt-question-body {
color: var(--text-secondary);
font-size: 13px;
line-height: 1.5;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.ccweb-prompt-options {
display: grid;
grid-template-columns: 1fr;
gap: 7px;
}
.ccweb-prompt-option {
position: relative;
display: grid;
grid-template-columns: auto 1fr auto;
column-gap: 9px;
row-gap: 4px;
min-width: 0;
align-items: start;
width: 100%;
padding: 9px 11px;
border: 1px solid rgba(221, 208, 192, 0.96);
border-radius: 8px;
background: rgba(255, 249, 242, 0.82);
color: var(--text-primary);
font: inherit;
font-size: 13px;
line-height: 1.35;
text-align: left;
cursor: pointer;
transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.ccweb-prompt-option::before {
content: '';
width: 15px;
height: 15px;
margin-top: 1px;
border: 1.5px solid var(--border-color);
border-radius: 4px;
background: rgba(255, 255, 255, 0.75);
box-sizing: border-box;
}
.ccweb-prompt-option:hover {
border-color: var(--accent);
background: rgba(255, 249, 242, 0.98);
box-shadow: 0 8px 18px rgba(45, 31, 20, 0.06);
transform: translateY(-1px);
}
.ccweb-prompt-option.is-selected {
border-color: var(--accent);
background: rgba(245, 221, 212, 0.72);
color: var(--text-primary);
box-shadow: inset 0 0 0 1px rgba(192, 85, 58, 0.16);
}
.ccweb-prompt-option.is-selected::before {
content: '✓';
display: grid;
place-items: center;
border-color: var(--accent);
background: var(--accent);
color: var(--accent-ink);
font-size: 10px;
font-weight: 900;
}
.ccweb-prompt-clear-choice {
grid-column: 1 / -1;
justify-self: start;
border: 1px solid rgba(221, 208, 192, 0.9);
border-radius: 7px;
background: rgba(255, 255, 255, 0.56);
color: var(--text-muted);
font: inherit;
font-size: 12px;
line-height: 1.25;
padding: 4px 8px;
cursor: pointer;
transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.ccweb-prompt-clear-choice:hover {
border-color: var(--accent);
background: rgba(255, 249, 242, 0.96);
color: var(--accent);
}
.ccweb-prompt-option-label {
min-width: 0;
overflow-wrap: anywhere;
font-weight: 800;
}
.ccweb-prompt-option-badge {
flex: 0 0 auto;
align-self: start;
padding: 2px 6px;
border-radius: 999px;
background: rgba(192, 85, 58, 0.12);
color: var(--accent);
font-size: 11px;
font-weight: 800;
}
.ccweb-prompt-option-desc {
grid-column: 2 / -1;
color: var(--text-muted);
font-size: 12px;
line-height: 1.45;
text-align: left;
}
.ccweb-prompt-answer {
width: 100%;
min-height: 84px;
resize: vertical;
padding: 10px 11px;
border: 1px solid rgba(221, 208, 192, 0.98);
border-radius: 8px;
background: rgba(255, 255, 255, 0.62);
color: var(--text-primary);
font: inherit;
font-size: 13px;
line-height: 1.5;
outline: none;
transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.ccweb-prompt-answer:focus {
border-color: var(--accent);
background: var(--bg-primary);
box-shadow: 0 0 0 3px rgba(192, 85, 58, 0.1);
}
.ccweb-prompt-selected-readonly,
.ccweb-prompt-answer-readonly {
padding: 10px 11px;
border: 1px solid rgba(221, 208, 192, 0.92);
border-radius: 8px;
background: rgba(255, 255, 255, 0.56);
color: var(--text-primary);
font-size: 13px;
line-height: 1.5;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.ccweb-prompt-selected-readonly {
color: var(--text-secondary);
}
.ccweb-prompt-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-top: 0;
padding: 9px 12px 11px;
border-top: 1px solid rgba(221, 208, 192, 0.72);
background: rgba(242, 235, 226, 0.38);
}
.ccweb-prompt-footer-actions {
display: inline-flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
margin-left: auto;
}
.ccweb-prompt-submit,
.ccweb-prompt-secondary {
min-height: 32px;
padding: 6px 12px;
border-radius: 8px;
font: inherit;
font-size: 13px;
font-weight: 800;
cursor: pointer;
transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.ccweb-prompt-submit {
border: 1px solid var(--accent);
background: var(--accent);
color: var(--accent-ink);
}
.ccweb-prompt-submit:hover:not(:disabled) {
background: var(--accent-hover);
border-color: var(--accent-hover);
box-shadow: 0 8px 18px rgba(192, 85, 58, 0.18);
transform: translateY(-1px);
}
.ccweb-prompt-submit:disabled {
opacity: 0.65;
cursor: wait;
}
.ccweb-prompt-secondary {
border: 1px solid rgba(221, 208, 192, 0.98);
background: rgba(255, 249, 242, 0.75);
color: var(--text-primary);
}
.ccweb-prompt-secondary:hover {
border-color: var(--accent);
background: var(--bg-primary);
}
.ccweb-prompt-error {
margin: 2px 18px 0;
color: var(--danger);
font-size: 13px;
font-weight: 800;
}
@media (max-width: 640px) {
.pending-ccweb-prompt {
grid-template-columns: 10px minmax(72px, 1fr) auto auto;
}
.pending-ccweb-prompt-title {
max-width: none;
}
.ccweb-prompt-card {
width: 100%;
}
.ccweb-prompt-header {
padding: 9px 10px;
}
.ccweb-prompt-header-actions {
gap: 5px;
}
.ccweb-prompt-desc {
padding: 9px 10px 0;
}
.ccweb-prompt-view-controls {
padding: 8px 10px 0;
}
.ccweb-prompt-view-switcher {
width: auto;
}
.ccweb-prompt-question-head {
align-items: flex-start;
}
.ccweb-prompt-tab-nav {
flex: 0 1 auto;
}
.ccweb-prompt-tab-nav-btn {
flex: 0 0 auto;
}
.ccweb-prompt-questions {
padding: 10px 10px 4px;
}
.ccweb-prompt-footer {
flex-wrap: wrap;
padding: 9px 10px 10px;
}
.ccweb-prompt-footer-actions {
flex: 1 1 auto;
margin-left: 0;
}
.ccweb-prompt-error {
margin-right: 10px;
margin-left: 10px;
}
.ccweb-prompt-submit,
.ccweb-prompt-secondary {
width: auto;
}
}
.codex-approval-panel {
max-width: 560px;
}
.codex-approval-body {
display: flex;
flex-direction: column;
gap: 12px;
}
.codex-approval-summary {
color: var(--text-primary);
font-size: 15px;
font-weight: 700;
line-height: 1.45;
word-break: break-word;
}
.codex-approval-reason {
color: var(--text-secondary);
font-size: 13px;
line-height: 1.5;
word-break: break-word;
}
.codex-approval-meta {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.codex-approval-meta span {
border: 1px solid var(--border-color);
border-radius: 999px;
background: var(--bg-primary);
color: var(--text-muted);
padding: 3px 8px;
font-size: 11px;
font-weight: 700;
}
.codex-approval-payload {
max-height: 260px;
overflow: auto;
margin: 0;
padding: 12px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-primary);
color: var(--text-primary);
font-size: 12px;
line-height: 1.5;
white-space: pre-wrap;
word-break: break-word;
}
.codex-approval-footer {
flex-wrap: wrap;
}
.codex-approval-deny-btn {
color: var(--danger);
}
.modal-quick-picks {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.modal-quick-pick {
max-width: 100%;
padding: 7px 10px;
border: 1px solid rgba(192, 85, 58, 0.14);
border-radius: 999px;
background: rgba(255, 252, 248, 0.96);
color: var(--text-secondary);
font-size: 12px;
line-height: 1.4;
font-family: inherit;
cursor: pointer;
transition: background 0.15s, color 0.15s, border-color 0.15s;
word-break: break-all;
}
.modal-quick-pick:hover {
background: var(--accent-light);
color: var(--accent);
border-color: rgba(192, 85, 58, 0.24);
}
.modal-loading, .modal-empty {
text-align: center;
color: var(--text-muted);
padding: 32px 0;
font-size: 14px;
}
/* === Import Session List === */
.import-filter-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin: 12px 0 14px;
padding: 10px 12px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-secondary);
cursor: pointer;
}
.import-filter-copy {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.import-filter-title {
font-size: 13px;
font-weight: 700;
color: var(--text-primary);
}
.import-filter-meta {
font-size: 12px;
color: var(--text-muted);
}
.import-group {
margin-bottom: 20px;
}
.import-group:last-child { margin-bottom: 0; }
.import-group-title {
font-size: 12px;
font-weight: 700;
color: var(--text-muted);
padding: 4px 0 8px;
border-bottom: 1px solid var(--border-color);
margin-bottom: 8px;
word-break: break-all;
}
.import-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 4px;
border-bottom: 1px solid var(--bg-tertiary);
}
.import-item:last-child { border-bottom: none; }
.import-item-info {
flex: 1;
min-width: 0;
}
.import-item-title {
font-size: 14px;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-bottom: 2px;
}
.import-item-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 6px;
}
.import-item-tag {
font-size: 10px;
font-weight: 700;
letter-spacing: 0.03em;
color: var(--accent);
background: rgba(245, 221, 212, 0.9);
border: 1px solid rgba(192, 85, 58, 0.14);
border-radius: 999px;
padding: 2px 7px;
}
.import-item-meta {
font-size: 12px;
color: var(--text-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.import-item-btn {
flex-shrink: 0;
padding: 6px 14px;
background: var(--accent);
color: #fff;
border: none;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
.collab-agent-stack {
display: inline-flex;
flex-direction: column;
gap: 4px;
min-width: 0;
}
.collab-agent-header {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 4px;
min-width: 0;
}
.collab-agent-title-wrap {
min-width: 0;
display: flex;
flex-direction: row;
align-items: baseline;
gap: 4px;
overflow: hidden;
}
.collab-agent-kicker {
flex-shrink: 0;
font-size: 11px;
font-weight: 800;
letter-spacing: 0.02em;
text-transform: uppercase;
color: var(--info);
}
.collab-agent-title {
min-width: 0;
max-width: 56px;
font-size: 12px;
font-weight: 700;
line-height: 1.2;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.collab-agent-meta {
flex-shrink: 0;
font-size: 12px;
color: var(--text-muted);
}
.collab-agent-actions {
display: inline-flex;
align-items: center;
gap: 4px;
flex-shrink: 0;
}
.collab-agent-overall-status,
.collab-agent-item-status {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 20px;
padding: 0 7px;
border-radius: 999px;
font-size: 12px;
font-weight: 800;
line-height: 1;
white-space: nowrap;
}
.collab-agent-overall-status.running,
.collab-agent-item-status.running {
background: rgba(232, 190, 92, 0.16);
color: #9a6f14;
}
.collab-agent-overall-status.done,
.collab-agent-item-status.done {
background: rgba(93, 138, 84, 0.14);
color: var(--success);
}
.collab-agent-overall-status.error,
.collab-agent-item-status.error {
background: rgba(192, 85, 58, 0.14);
color: var(--danger);
}
.collab-agent-overall-status.closed,
.collab-agent-item-status.closed {
background: rgba(122, 110, 100, 0.12);
color: var(--text-muted);
}
.collab-agent-overall-status.pending,
.collab-agent-item-status.pending {
background: rgba(91, 126, 161, 0.12);
color: var(--info);
}
.collab-agent-prompt {
padding: 10px 12px;
border: 1px solid rgba(91, 126, 161, 0.16);
border-radius: 10px;
background: rgba(255, 255, 255, 0.72);
color: var(--text-secondary);
font-size: 12px;
line-height: 1.6;
}
.collab-agent-list {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.collab-agent-item {
appearance: none;
max-width: 100%;
min-width: 0;
min-height: 40px;
flex: 1 1 220px;
display: inline-flex;
flex-direction: column;
align-items: stretch;
gap: 4px;
padding: 5px 10px;
border: 1px solid rgba(91, 126, 161, 0.16);
border-radius: 7px;
background: rgba(255, 255, 255, 0.58);
color: inherit;
font: inherit;
cursor: pointer;
text-align: left;
}
.collab-agent-item-row {
display: flex;
align-items: center;
min-width: 0;
gap: 4px;
}
.collab-agent-item-label {
flex: 1 1 auto;
min-width: 0;
max-width: 220px;
font-size: 13px;
font-weight: 700;
color: var(--text-primary);
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.collab-agent-item-role {
font-size: 11px;
color: var(--info);
font-weight: 700;
}
.collab-agent-item-detail {
font-size: 12px;
color: var(--text-secondary);
line-height: 1.55;
}
.collab-agent-item-description {
min-width: 0;
font-size: 12px;
line-height: 1.35;
color: var(--text-muted);
overflow: hidden;
overflow-wrap: anywhere;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.collab-agent-item-plan {
display: flex;
min-width: 0;
align-items: center;
color: var(--text-muted);
}
.collab-agent-item-plan .plan-progress {
min-width: 0;
}
.collab-agent-item-plan .plan-progress-dots {
gap: 4px;
}
.collab-agent-item-plan .plan-progress-dot {
flex: 0 0 8px;
width: 8px;
height: 8px;
margin-left: 0;
background-size: contain;
}
.collab-agent-item-plan .plan-progress-count {
font-size: 10px;
font-weight: 700;
}
.collab-agent-item-plan-current {
min-width: 0;
overflow: hidden;
color: var(--text-muted);
font-size: 11px;
line-height: 1.25;
text-overflow: ellipsis;
white-space: nowrap;
}
.collab-agent-item-footer {
font-size: 11px;
color: var(--text-muted);
line-height: 1.1;
display: none;
}
.collab-agent-item-footer:hover {
color: var(--info);
}
.collab-agent-close-btn {
appearance: none;
flex-shrink: 0;
border: 1px solid rgba(122, 110, 100, 0.18);
border-radius: 999px;
background: rgba(255, 255, 255, 0.86);
color: var(--text-secondary);
min-height: 22px;
padding: 0 8px;
font: inherit;
font-size: 12px;
font-weight: 800;
cursor: pointer;
}
.collab-agent-close-btn:hover {
color: var(--danger);
border-color: rgba(192, 85, 58, 0.22);
background: rgba(192, 85, 58, 0.08);
}
.collab-agent-close-btn:disabled {
cursor: default;
opacity: 0.6;
}
.collab-agent-threads {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.collab-agent-thread-chip {
appearance: none;
border: 1px solid rgba(91, 126, 161, 0.18);
border-radius: 999px;
background: rgba(255, 255, 255, 0.8);
color: var(--info);
padding: 4px 10px;
font: inherit;
font-size: 11px;
font-weight: 700;
cursor: pointer;
}
.collab-agent-thread-chip:hover {
background: rgba(91, 126, 161, 0.1);
}
/* Todo List */
.todo-list-container {
margin: 12px 0;
padding: 12px;
background: var(--bg-secondary);
border-radius: 8px;
border: 1px solid var(--bg-tertiary);
}
.todo-list {
list-style: none;
padding: 0;
margin: 0;
}
.todo-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 0;
border-bottom: 1px solid var(--bg-tertiary);
}
.todo-item:last-child {
border-bottom: none;
}
.todo-checkbox {
flex-shrink: 0;
width: 18px;
height: 18px;
cursor: pointer;
}
.todo-text {
flex: 1;
font-size: 14px;
color: var(--text-primary);
line-height: 1.5;
}
.todo-item.completed .todo-text {
text-decoration: line-through;
color: var(--text-muted);
opacity: 0.6;
}
@media (max-width: 640px) {
.collab-agent-header {
align-items: flex-start;
}
.collab-agent-list {
min-width: 0;
}
.collab-agent-title-wrap {
flex-wrap: wrap;
}
.collab-agent-actions {
margin-left: auto;
}
.collab-agent-item {
min-width: 0;
flex: 1 1 min(100%, 180px);
}
.collab-agent-item-label {
max-width: 96px;
}
}
.import-item-btn:hover { background: var(--accent-hover); }
/* === File Browser === */
.directory-picker-panel,
.file-browser-panel {
max-width: 980px;
height: min(82vh, 760px);
}
.file-browser-body {
padding: 16px 18px;
display: flex;
flex-direction: column;
gap: 12px;
min-height: 0;
}
.file-browser-toolbar {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.file-browser-toolbar-btn {
appearance: none;
border: 1px solid var(--border-color);
background: var(--bg-tertiary);
color: var(--text-primary);
border-radius: 10px;
padding: 8px 12px;
font-size: 13px;
font-weight: 600;
font-family: inherit;
cursor: pointer;
transition: background 0.15s, color 0.15s;
}
.file-browser-toolbar-btn:hover:not(:disabled) {
background: var(--accent-light);
color: var(--accent);
}
.file-browser-toolbar-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.file-browser-path {
min-width: 0;
flex: 1;
padding: 9px 12px;
border-radius: 10px;
background: var(--bg-tertiary);
color: var(--text-secondary);
font-size: 12px;
line-height: 1.45;
word-break: break-all;
}
.file-browser-status {
min-height: 18px;
font-size: 12px;
color: var(--text-muted);
}
.file-browser-status[data-state='error'] {
color: var(--danger);
}
.file-browser-layout {
flex: 1;
min-height: 0;
display: grid;
grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
gap: 12px;
}
.file-browser-pane {
min-height: 0;
display: flex;
flex-direction: column;
border: 1px solid var(--border-color);
border-radius: 14px;
overflow: hidden;
background: var(--bg-primary);
}
.file-browser-pane-title {
padding: 12px 14px;
border-bottom: 1px solid var(--border-color);
font-size: 13px;
font-weight: 700;
color: var(--text-primary);
}
.file-browser-list {
flex: 1;
min-height: 0;
overflow: auto;
padding: 8px;
display: flex;
flex-direction: column;
gap: 4px;
}
.file-browser-item {
appearance: none;
width: 100%;
border: none;
background: transparent;
border-radius: 12px;
display: flex;
align-items: flex-start;
gap: 10px;
padding: 10px 12px;
text-align: left;
cursor: pointer;
transition: background 0.15s;
}
.file-browser-item:hover {
background: var(--bg-tertiary);
}
.file-browser-item.active {
background: var(--accent-light);
}
.file-browser-item-icon {
min-width: 42px;
height: 24px;
border-radius: 999px;
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(192, 85, 58, 0.12);
border: 1px solid rgba(192, 85, 58, 0.16);
color: var(--accent);
font-size: 10px;
font-weight: 800;
letter-spacing: 0.04em;
}
.file-browser-item.directory .file-browser-item-icon {
background: rgba(93, 138, 84, 0.12);
border-color: rgba(93, 138, 84, 0.18);
color: #4e7f46;
}
.file-browser-item-copy {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.file-browser-item-name {
font-size: 14px;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-browser-item-meta {
font-size: 12px;
color: var(--text-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-browser-preview-pane {
min-height: 0;
display: flex;
flex-direction: column;
}
.file-browser-preview-header {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 12px 14px;
border-bottom: 1px solid var(--border-color);
}
.file-browser-preview-copy {
flex: 1;
min-width: 0;
}
.file-browser-preview-title {
font-size: 14px;
font-weight: 700;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-browser-preview-meta {
margin-top: 4px;
font-size: 12px;
color: var(--text-muted);
}
.file-browser-mobile-back {
display: none;
appearance: none;
border: 1px solid var(--border-color);
background: var(--bg-tertiary);
color: var(--text-primary);
border-radius: 10px;
padding: 7px 10px;
font-size: 12px;
font-weight: 600;
font-family: inherit;
cursor: pointer;
flex-shrink: 0;
}
.file-browser-preview-empty {
flex: 1;
min-height: 0;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 24px;
color: var(--text-muted);
font-size: 13px;
line-height: 1.6;
}
.file-browser-preview-content {
flex: 1;
min-height: 0;
margin: 0;
padding: 14px 16px;
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
font-size: 13px;
line-height: 1.65;
color: var(--text-primary);
background: var(--bg-primary);
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (max-width: 768px) {
.modal-field-row {
flex-wrap: wrap;
}
.modal-btn-inline {
width: 100%;
}
.file-browser-panel {
max-width: none;
width: 100%;
height: calc(100vh - 20px);
}
.directory-picker-panel {
max-width: none;
width: 100%;
height: calc(100vh - 20px);
}
.file-browser-body {
padding: 14px;
}
.file-browser-toolbar {
align-items: stretch;
}
.file-browser-path {
width: 100%;
order: 3;
}
.file-browser-layout {
display: block;
}
.file-browser-panel:not(.preview-active) .file-browser-preview-pane {
display: none;
}
.file-browser-panel.preview-active .file-browser-list-pane {
display: none;
}
.file-browser-mobile-back {
display: inline-flex;
align-items: center;
justify-content: center;
}
}
@media (max-width: 480px) {
.file-browser-preview-header {
flex-direction: column;
}
}
/* === Dark Theme Completion Layer === */
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) body {
background: var(--page-background);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .login-overlay {
background: var(--login-background);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-overlay,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .force-change-overlay,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .modal-overlay,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .sidebar-overlay {
background: rgba(0, 0, 0, 0.58);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .login-box,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .force-change-panel,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-panel,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .modal-panel,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .option-picker,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .chat-agent-menu,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .cmd-menu,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .new-chat-dropdown,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .user-outline-panel {
background: var(--dark-panel-bg);
border-color: var(--border-color);
box-shadow: var(--shadow-strong);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .sidebar {
background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .chat-main {
background: var(--page-background);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .sidebar-header,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .sidebar-footer,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .chat-header,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .input-area,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .modal-header,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .modal-footer {
background: rgba(0, 0, 0, 0.16);
border-color: var(--border-color);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .agent-switch,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-search-input,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-search-clear,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-list-empty,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-project-header,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-project-create,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-list-load-more,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .chat-agent-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .mode-select,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .chat-cwd,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .user-outline-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-outline-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .reload-mcp-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .user-outline-item,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .pending-ccweb-prompt,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-back,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-nav-card,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-toggle-row,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .theme-card,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-field input,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-select,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .force-change-form input,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .modal-select,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .modal-text-input,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .codex-user-input-text,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .input-wrapper,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .attachment-chip,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .attachment-chip.uploading,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .msg-attachment-card,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ask-question-card,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ask-option-preview,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ask-option-item,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .codex-user-input-option,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .modal-quick-pick,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .file-browser-toolbar-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .file-browser-mobile-back,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .file-browser-path,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .file-browser-pane,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .file-browser-preview-content,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .collab-agent-prompt,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .collab-agent-item,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .collab-agent-thread-chip,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .collab-agent-close-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .todo-list-container {
background: var(--dark-panel-soft);
border-color: var(--border-color);
color: var(--text-primary);
box-shadow: none;
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-select,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .mode-select {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23b7c7c0'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: 10px 6px;
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-select {
background-position: right 12px center;
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .mode-select {
background-position: right 8px center;
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-project-count,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-item-pin-badge,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .cmd-item-kind,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .import-item-tag,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .file-browser-item-icon {
background: var(--accent-light);
border-color: var(--theme-card-hover-border);
color: var(--accent);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-search::before {
color: var(--text-muted);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-search-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(94, 205, 245, 0.12);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .file-browser-item.directory .file-browser-item-icon {
background: var(--note-bg);
border-color: var(--note-border);
color: var(--note-accent);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-item:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-item-btn:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-search-clear:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-search-clear:focus-visible,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-project-toggle:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-project-toggle:focus-visible,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .chat-title:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .menu-btn:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-btn:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .modal-close-btn:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .option-picker-item:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .cmd-item:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .cmd-item.active,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .file-browser-item:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .user-outline-item:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .pending-ccweb-prompt:hover {
background: var(--accent-light);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-item.active,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .option-picker-item.active,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ask-option-item.ask-option-selected,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .file-browser-item.active {
background: var(--accent-light);
border-color: var(--accent);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .new-chat-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .new-chat-arrow,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .send-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-actions .btn-save,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .fc-submit-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .modal-btn-primary,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .import-item-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .agent-switch-btn.active {
color: var(--accent-ink);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .note-mode-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .queue-send-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .send-btn.note-send {
color: var(--bg-primary);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .msg.assistant .msg-bubble,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .msg.cross-conversation .msg-bubble,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .msg.cross-conversation-reply .msg-bubble {
background: var(--bg-bubble-assistant);
border-color: var(--border-color);
color: var(--text-primary);
box-shadow: var(--dark-shadow-soft);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .cross-conversation-id-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .cross-conversation-collapse-btn {
background: var(--dark-panel-soft);
border-color: var(--border-color);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .msg-attachment-card.is-expired,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .msg-attachment-thumb,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .attachment-preview-stage,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .code-preview-pane {
background: linear-gradient(180deg, var(--bg-tertiary), var(--bg-secondary));
border-color: var(--border-color);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .attachment-preview-stage.is-ready,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .attachment-preview-image {
background: #050708;
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .pending-note .note-bubble,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .attachment-tray-note,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-inline-note,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-inline-note.warning,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .agent-context-card {
background: var(--note-bg);
border-color: var(--note-border);
color: var(--text-secondary);
box-shadow: none;
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .queued-message .queue-bubble {
background: var(--accent-light);
border-color: var(--border-color);
color: var(--text-primary);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .settings-inline-note code,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call-code {
background: rgba(0, 0, 0, 0.22);
color: var(--text-primary);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-group {
background: var(--dark-panel-bg);
border-color: var(--border-color);
box-shadow: none;
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call.codex-command,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call.ccweb-mcp-child-agent-tool-call {
background: transparent;
border-color: transparent;
box-shadow: none;
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call summary,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-group-summary {
background: var(--dark-panel-soft);
color: var(--text-secondary);
border-color: var(--border-color);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call summary:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-group-summary:hover {
background: var(--accent-light);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call-content,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call-content.reasoning,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call-content.collab-agent-content,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call-content.command,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call-content.file-change,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-group-inner,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ask-user-question {
background: var(--bg-bubble-assistant);
color: var(--text-primary);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call-content.collab-agent-content {
background: transparent;
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .tool-call-state,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .session-item-status,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .collab-agent-overall-status,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .collab-agent-item-status {
background: rgba(255, 255, 255, 0.08);
border: 1px solid var(--border-color);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .theme-card-swatch {
border-color: rgba(255, 255, 255, 0.16);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-card {
background: linear-gradient(180deg, var(--dark-panel-bg), var(--bg-bubble-assistant));
border-color: var(--border-color);
border-left-color: var(--accent);
color: var(--text-primary);
box-shadow: var(--shadow-strong);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-card.ccweb-prompt-focus {
animation: ccwebPromptFocusDark 1.4s ease;
}
@keyframes ccwebPromptFocusDark {
0% {
box-shadow: 0 0 0 0 var(--accent-light), var(--shadow-strong);
}
45% {
box-shadow: 0 0 0 5px var(--accent-light), var(--shadow-strong);
}
100% {
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), var(--shadow-strong);
}
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-header,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-footer {
background: rgba(0, 0, 0, 0.12);
border-color: var(--border-color);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-status,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-required,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-option-badge {
background: var(--accent-light);
border-color: var(--theme-card-hover-border);
color: var(--accent);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-card[data-status='submitted'] .ccweb-prompt-status {
background: rgba(103, 201, 135, 0.14);
border-color: rgba(103, 201, 135, 0.32);
color: var(--success);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-view-switcher,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-tab,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-tab-nav-btn,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-question,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-option,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-answer,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-selected-readonly,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-answer-readonly,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-secondary,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .pending-ccweb-prompt-action {
background: var(--dark-panel-soft);
border-color: var(--border-color);
color: var(--text-primary);
box-shadow: none;
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-question {
background: rgba(255, 255, 255, 0.035);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-option::before {
background: rgba(0, 0, 0, 0.18);
border-color: var(--text-muted);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-clear-choice {
background: rgba(0, 0, 0, 0.16);
border-color: var(--theme-card-hover-border);
color: var(--text-muted);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-option:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-clear-choice:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-tab-nav-btn:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-secondary:hover,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .pending-ccweb-prompt-action:hover {
background: var(--accent-light);
border-color: var(--accent);
color: var(--text-primary);
box-shadow: none;
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-tab.is-active,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-option.is-selected {
background: var(--accent-light);
border-color: var(--accent);
color: var(--text-primary);
box-shadow: inset 0 0 0 1px var(--theme-card-hover-border);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-option.is-selected::before {
background: var(--accent);
border-color: var(--accent);
color: var(--accent-ink);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-answer {
background: rgba(0, 0, 0, 0.18);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-answer::placeholder {
color: var(--text-muted);
opacity: 0.86;
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-answer:focus {
background: var(--bg-bubble-assistant);
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-light);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-submit:hover:not(:disabled) {
box-shadow: 0 8px 18px var(--accent-light);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-submit:disabled,
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .ccweb-prompt-secondary:disabled {
opacity: 0.56;
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .pending-ccweb-prompt-badge {
box-shadow: 0 0 0 3px var(--accent-light);
}
:is(html[data-theme='carbon'], html[data-theme='nocturne'], html[data-theme='cinder'], html[data-theme='gilded'], html[data-theme='wasteland']) .pending-ccweb-prompt-dismiss:hover {
background: var(--accent-light);
}
/* === Warframe Orokin单图暖纸工作台主题 === */
html:not([data-theme='gilded']) .warframe-hero-art {
display: none !important;
}
html:not([data-theme='gilded']) .welcome-msg > .warframe-hero {
display: contents;
}
html[data-theme='gilded'] body {
background:
linear-gradient(115deg, rgba(213, 175, 99, 0.2) 0 1px, transparent 1px 86px),
linear-gradient(180deg, rgba(255, 247, 234, 0.96), rgba(239, 228, 210, 0.98)),
var(--page-background);
}
html[data-theme='gilded'] .chat-main {
background:
radial-gradient(ellipse 70% 42% at 36% 0%, rgba(213, 175, 99, 0.16), transparent 68%),
linear-gradient(135deg, rgba(168, 79, 37, 0.08), transparent 32%),
var(--page-background);
}
html[data-theme='gilded'] .messages {
color: var(--text-primary);
}
html[data-theme='gilded'] .messages:has(> .welcome-msg) {
justify-content: center;
padding: 18px clamp(16px, 2.2vw, 30px) 16px;
overflow-x: hidden;
gap: 0;
}
html[data-theme='gilded'] .welcome-msg {
width: min(100%, 1160px);
margin: 0 auto;
padding: 0;
display: flex;
flex-direction: column;
gap: 12px;
text-align: left;
color: var(--text-secondary);
}
html[data-theme='gilded'] .welcome-msg > .warframe-hero {
position: relative;
width: 100%;
min-height: 350px;
max-height: 520px;
aspect-ratio: 2.1 / 1;
overflow: hidden;
isolation: isolate;
border-top: 1px solid var(--warframe-line-strong);
border-bottom: 1px solid rgba(138, 97, 37, 0.28);
background:
linear-gradient(90deg, #e9dfce 0%, #efe4d2 38%, rgba(239, 228, 210, 0.82) 50%, rgba(239, 228, 210, 0.28) 64%, transparent 76%),
repeating-linear-gradient(105deg, rgba(122, 63, 32, 0.08) 0 1px, transparent 1px 18px),
linear-gradient(180deg, #f8eedc 0%, #dcc7a4 58%, #b97847 100%);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), inset 0 -1px 0 rgba(122, 63, 32, 0.18);
animation: warframeHeroReveal 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
html[data-theme='gilded'] .welcome-icon {
display: none;
}
html[data-theme='gilded'] .welcome-msg > .warframe-hero::before,
html[data-theme='gilded'] .welcome-msg > .warframe-hero::after {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
}
html[data-theme='gilded'] .welcome-msg > .warframe-hero::before {
z-index: 1;
background:
repeating-radial-gradient(circle at 24% 52%, rgba(138, 97, 37, 0.28) 0 1px, transparent 1px 22px),
radial-gradient(ellipse 36% 72% at 18% 50%, rgba(255, 247, 234, 0.72), transparent 68%),
conic-gradient(from 24deg at 31% 52%, transparent 0 18deg, rgba(122, 63, 32, 0.12) 18deg 19deg, transparent 19deg 84deg, rgba(213, 175, 99, 0.18) 84deg 86deg, transparent 86deg 360deg);
opacity: 0.72;
mix-blend-mode: multiply;
-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 54%, transparent 78%);
mask-image: linear-gradient(90deg, #000 0%, #000 54%, transparent 78%);
}
html[data-theme='gilded'] .welcome-msg > .warframe-hero::after {
z-index: 4;
background:
linear-gradient(90deg, rgba(251, 243, 229, 0.98) 0%, rgba(251, 243, 229, 0.9) 35%, rgba(251, 243, 229, 0.42) 50%, transparent 68%),
linear-gradient(0deg, rgba(64, 37, 20, 0.18), transparent 16%, transparent 78%, rgba(255, 247, 234, 0.34)),
radial-gradient(ellipse 42% 34% at 88% 80%, rgba(168, 79, 37, 0.32), transparent 72%);
}
html[data-theme='gilded'] .warframe-hero .welcome-copy {
position: absolute;
left: clamp(24px, 4vw, 56px);
top: 50%;
z-index: 8;
width: min(42%, 448px);
max-width: 448px;
margin: 0;
padding: 0;
color: var(--text-secondary);
transform: translateY(-50%);
animation: warframeCopyIn 480ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms both;
}
html[data-theme='gilded'] .welcome-kicker {
display: block;
margin: 0 0 10px;
color: var(--warframe-copper);
font-size: 12px;
font-weight: 900;
letter-spacing: 0;
}
html[data-theme='gilded'] .welcome-msg h3 {
margin: 0 0 10px;
color: var(--text-primary);
font-size: 38px;
font-weight: 820;
line-height: 1.08;
letter-spacing: 0;
}
html[data-theme='gilded'] .welcome-msg p {
max-width: 38ch;
color: var(--text-secondary);
font-size: 15px;
line-height: 1.62;
}
html[data-theme='gilded'] .warframe-hero-art {
position: absolute;
inset: 0;
z-index: 3;
pointer-events: none;
}
html[data-theme='gilded'] .warframe-hero-image {
position: absolute;
top: 0;
right: -7%;
width: 68%;
height: 100%;
object-fit: cover;
object-position: 52% 12%;
filter: brightness(1.06) contrast(1.03) saturate(0.9);
transform: translate3d(18px, 0, 0) scale(1.035);
transform-origin: 62% 44%;
animation: warframeHeroImageIn 680ms cubic-bezier(0.2, 0.7, 0.2, 1) 120ms both;
-webkit-user-drag: none;
user-select: none;
-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 9%, #000 29%, #000 90%, transparent 100%), linear-gradient(180deg, #000 0%, #000 91%, transparent 100%);
-webkit-mask-composite: source-in;
mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 9%, #000 29%, #000 90%, transparent 100%), linear-gradient(180deg, #000 0%, #000 91%, transparent 100%);
mask-composite: intersect;
}
html[data-theme='gilded'] .warframe-hero-orbit {
position: absolute;
right: 10%;
top: 7%;
z-index: 5;
width: 34%;
aspect-ratio: 1;
border: 1px solid rgba(213, 175, 99, 0.34);
border-radius: 50%;
opacity: 0.66;
}
html[data-theme='gilded'] .warframe-hero-orbit::before,
html[data-theme='gilded'] .warframe-hero-orbit::after {
content: '';
position: absolute;
inset: 13%;
border: 1px solid rgba(122, 63, 32, 0.18);
border-radius: inherit;
}
html[data-theme='gilded'] .warframe-hero-orbit::after {
inset: 34%;
border-color: rgba(20, 114, 118, 0.24);
box-shadow: 0 -42px 0 -40px var(--warframe-energy), 42px 0 0 -40px var(--warframe-energy);
}
html[data-theme='gilded'] .warframe-hero-emblem {
position: absolute;
left: 3.2%;
bottom: 8%;
z-index: 6;
width: 72px;
height: 72px;
opacity: 0.34;
}
html[data-theme='gilded'] .warframe-hero-emblem::before,
html[data-theme='gilded'] .warframe-hero-emblem::after {
content: '';
position: absolute;
inset: 9px 26px;
border-top: 2px solid var(--warframe-gold-deep);
border-bottom: 2px solid var(--warframe-gold-deep);
transform: skewX(-12deg);
}
html[data-theme='gilded'] .warframe-hero-emblem::after {
inset: 22px 12px;
border-color: rgba(122, 63, 32, 0.7);
transform: skewX(12deg) rotate(90deg);
}
html[data-theme='gilded'] .sidebar {
position: relative;
isolation: isolate;
background:
linear-gradient(180deg, rgba(255, 247, 234, 0.96), rgba(239, 228, 210, 0.98)),
var(--bg-secondary);
border-right-color: var(--warframe-line);
box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.46), 12px 0 32px rgba(69, 48, 25, 0.08);
}
html[data-theme='gilded'] .sidebar::before {
content: '';
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
background:
repeating-radial-gradient(circle at 12% 18%, rgba(138, 97, 37, 0.16) 0 1px, transparent 1px 24px),
linear-gradient(132deg, transparent 0 62%, rgba(168, 79, 37, 0.08) 62% 63%, transparent 63% 100%),
linear-gradient(48deg, transparent 0 72%, rgba(20, 114, 118, 0.06) 72% 73%, transparent 73% 100%);
opacity: 0.72;
}
html[data-theme='gilded'] .sidebar > * {
position: relative;
z-index: 1;
}
html[data-theme='gilded'] .sidebar-header,
html[data-theme='gilded'] .sidebar-footer,
html[data-theme='gilded'] .chat-header,
html[data-theme='gilded'] .input-area,
html[data-theme='gilded'] .modal-header,
html[data-theme='gilded'] .modal-footer {
background:
linear-gradient(90deg, rgba(213, 175, 99, 0.18), transparent 48%, rgba(20, 114, 118, 0.06)),
rgba(255, 247, 234, 0.94);
border-color: var(--warframe-line);
backdrop-filter: none;
}
html[data-theme='gilded'] .brand,
html[data-theme='gilded'] .chat-title,
html[data-theme='gilded'] .session-item-title,
html[data-theme='gilded'] .theme-card-title {
color: var(--text-primary);
letter-spacing: 0;
}
html[data-theme='gilded'] :is(
.login-box,
.force-change-panel,
.settings-panel,
.modal-panel,
.option-picker,
.chat-agent-menu,
.cmd-menu,
.new-chat-dropdown,
.user-outline-panel
) {
background: var(--warframe-ivory);
border-color: var(--warframe-line);
border-radius: 8px;
color: var(--text-primary);
box-shadow: var(--shadow-strong);
}
html[data-theme='gilded'] :is(
.agent-switch,
.session-search-input,
.session-search-clear,
.session-list-empty,
.session-project-header,
.session-project-create,
.session-list-load-more,
.chat-agent-btn,
.mode-select,
.chat-cwd,
.user-outline-btn,
.ccweb-prompt-outline-btn,
.reload-mcp-btn,
.user-outline-item,
.pending-ccweb-prompt,
.settings-back,
.settings-nav-card,
.settings-toggle-row,
.theme-card,
.settings-field input,
.settings-select,
.force-change-form input,
.modal-select,
.modal-text-input,
.codex-user-input-text,
.input-wrapper,
.attachment-chip,
.attachment-chip.uploading,
.msg-attachment-card,
.ask-question-card,
.ask-option-preview,
.ask-option-item,
.codex-user-input-option,
.modal-quick-pick,
.file-browser-toolbar-btn,
.file-browser-mobile-back,
.file-browser-path,
.file-browser-pane,
.file-browser-preview-content,
.collab-agent-prompt,
.collab-agent-item,
.collab-agent-thread-chip,
.collab-agent-close-btn,
.todo-list-container
) {
background: rgba(255, 247, 234, 0.92);
border-color: var(--warframe-line);
border-radius: 8px;
color: var(--text-primary);
box-shadow: none;
}
html[data-theme='gilded'] :is(.session-search-input, .input-wrapper, .codex-user-input-text) {
background:
linear-gradient(90deg, rgba(213, 175, 99, 0.16), transparent 40%, rgba(20, 114, 118, 0.05)),
var(--warframe-ivory);
border-color: rgba(138, 97, 37, 0.42);
color: var(--text-primary);
}
html[data-theme='gilded'] .input-area {
box-shadow: 0 -12px 28px rgba(69, 48, 25, 0.08);
}
html[data-theme='gilded'] .input-wrapper {
max-width: 860px;
min-height: 54px;
}
html[data-theme='gilded'] .session-search-input:focus,
html[data-theme='gilded'] .input-wrapper:focus-within,
html[data-theme='gilded'] :is(.settings-field input, .settings-select, .modal-text-input, .modal-select, .codex-user-input-text):focus-visible {
border-color: rgba(20, 114, 118, 0.62);
box-shadow: 0 0 0 3px rgba(20, 114, 118, 0.14);
outline: none;
}
html[data-theme='gilded'] .input-wrapper.drag-active {
border-color: var(--warframe-energy);
box-shadow: 0 0 0 3px rgba(20, 114, 118, 0.16), 0 12px 26px rgba(69, 48, 25, 0.1);
}
html[data-theme='gilded'] .session-project-header {
background:
linear-gradient(90deg, rgba(213, 175, 99, 0.22), transparent 56%),
rgba(255, 247, 234, 0.96);
color: var(--text-secondary);
}
html[data-theme='gilded'] .session-project-name,
html[data-theme='gilded'] .session-pinned-header .session-project-name {
color: var(--text-primary);
}
html[data-theme='gilded'] .session-item {
position: relative;
overflow: hidden;
border: 1px solid transparent;
border-radius: 8px;
transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
html[data-theme='gilded'] .session-item:hover,
html[data-theme='gilded'] .session-item-btn:hover,
html[data-theme='gilded'] .session-project-toggle:hover,
html[data-theme='gilded'] .session-project-toggle:focus-visible,
html[data-theme='gilded'] .chat-title:hover,
html[data-theme='gilded'] .menu-btn:hover,
html[data-theme='gilded'] .settings-btn:hover,
html[data-theme='gilded'] .modal-close-btn:hover,
html[data-theme='gilded'] .option-picker-item:hover,
html[data-theme='gilded'] .cmd-item:hover,
html[data-theme='gilded'] .cmd-item.active,
html[data-theme='gilded'] .file-browser-item:hover,
html[data-theme='gilded'] .user-outline-item:hover,
html[data-theme='gilded'] .pending-ccweb-prompt:hover {
background: rgba(239, 223, 191, 0.78);
border-color: rgba(138, 97, 37, 0.34);
color: var(--text-primary);
}
html[data-theme='gilded'] .session-item:hover {
transform: translateX(2px);
}
html[data-theme='gilded'] .session-item.active,
html[data-theme='gilded'] .option-picker-item.active,
html[data-theme='gilded'] .ask-option-item.ask-option-selected,
html[data-theme='gilded'] .file-browser-item.active {
background:
linear-gradient(90deg, rgba(20, 114, 118, 0.12), transparent 42%),
linear-gradient(180deg, #fff7ea, #efdfbf);
border-color: rgba(122, 63, 32, 0.48);
color: var(--text-primary);
box-shadow: inset 3px 0 0 var(--warframe-copper);
}
html[data-theme='gilded'] .session-item.active::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: -48%;
width: 42%;
background: linear-gradient(100deg, transparent, rgba(213, 175, 99, 0.42), transparent);
pointer-events: none;
animation: warframeButtonSweep 680ms ease-out both;
}
html[data-theme='gilded'] .session-item.active .session-item-title {
color: var(--text-primary);
font-weight: 720;
}
html[data-theme='gilded'] :is(
.new-chat-btn,
.new-chat-arrow,
.send-btn,
.settings-actions .btn-save,
.fc-submit-btn,
.modal-btn-primary,
.import-item-btn,
.ccweb-prompt-submit
) {
position: relative;
overflow: hidden;
background:
linear-gradient(90deg, rgba(213, 175, 99, 0.28), transparent 44%),
var(--warframe-copper);
border-color: rgba(122, 63, 32, 0.68);
border-radius: 8px;
color: var(--accent-ink);
box-shadow: 0 10px 22px rgba(122, 63, 32, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}
html[data-theme='gilded'] :is(
.new-chat-btn,
.new-chat-arrow,
.send-btn,
.settings-actions .btn-save,
.fc-submit-btn,
.modal-btn-primary,
.import-item-btn,
.ccweb-prompt-submit
)::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: -45%;
width: 42%;
background: linear-gradient(100deg, transparent, rgba(255, 247, 234, 0.44), transparent);
opacity: 0;
transform: skewX(-14deg);
pointer-events: none;
}
html[data-theme='gilded'] :is(
.new-chat-btn,
.new-chat-arrow,
.send-btn,
.settings-actions .btn-save,
.fc-submit-btn,
.modal-btn-primary,
.import-item-btn,
.ccweb-prompt-submit
):hover:not(:disabled) {
filter: brightness(1.05);
color: var(--accent-ink);
transform: translateY(-1px);
box-shadow: 0 12px 26px rgba(122, 63, 32, 0.22), 0 0 0 3px rgba(20, 114, 118, 0.11);
}
html[data-theme='gilded'] :is(
.new-chat-btn,
.new-chat-arrow,
.send-btn,
.settings-actions .btn-save,
.fc-submit-btn,
.modal-btn-primary,
.import-item-btn,
.ccweb-prompt-submit
):hover:not(:disabled)::after,
html[data-theme='gilded'] :is(
.new-chat-btn,
.new-chat-arrow,
.send-btn,
.settings-actions .btn-save,
.fc-submit-btn,
.modal-btn-primary,
.import-item-btn,
.ccweb-prompt-submit
):focus-visible::after {
animation: warframeButtonSweep 540ms ease-out both;
}
html[data-theme='gilded'] :is(
.attach-btn,
.settings-btn,
.menu-btn,
.chat-session-id-btn,
.chat-agent-btn,
.mode-select,
.user-outline-btn,
.ccweb-prompt-outline-btn,
.reload-mcp-btn,
.settings-actions .btn-test,
.modal-btn-secondary,
.note-mode-btn,
.queue-send-btn,
.send-btn.note-send
) {
background: rgba(255, 247, 234, 0.88);
border-color: rgba(138, 97, 37, 0.34);
border-radius: 8px;
color: var(--text-secondary);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}
html[data-theme='gilded'] :is(
.attach-btn,
.settings-btn,
.menu-btn,
.chat-session-id-btn,
.chat-agent-btn,
.mode-select,
.user-outline-btn,
.ccweb-prompt-outline-btn,
.reload-mcp-btn,
.settings-actions .btn-test,
.modal-btn-secondary,
.note-mode-btn,
.queue-send-btn,
.send-btn.note-send
):hover:not(:disabled) {
background: rgba(239, 223, 191, 0.9);
border-color: rgba(20, 114, 118, 0.42);
color: var(--text-primary);
transform: translateY(-1px);
}
html[data-theme='gilded'] :is(.settings-select, .mode-select) {
background-image: none;
}
html[data-theme='gilded'] .abort-btn {
background: #fff0e8;
border: 1px solid rgba(154, 47, 34, 0.42);
border-radius: 8px;
color: var(--danger);
}
html[data-theme='gilded'] .msg.user .msg-bubble {
background: var(--warframe-copper);
border-color: rgba(95, 48, 25, 0.54);
color: var(--accent-ink);
box-shadow: 0 8px 22px rgba(69, 48, 25, 0.14);
}
html[data-theme='gilded'] .msg.user .msg-bubble :is(p, li, span, strong, em) {
color: inherit;
}
html[data-theme='gilded'] .msg.assistant .msg-bubble,
html[data-theme='gilded'] .msg.cross-conversation .msg-bubble,
html[data-theme='gilded'] .msg.cross-conversation-reply .msg-bubble,
html[data-theme='gilded'] .tool-call-content,
html[data-theme='gilded'] .tool-call-content.reasoning,
html[data-theme='gilded'] .tool-call-content.command,
html[data-theme='gilded'] .tool-call-content.file-change,
html[data-theme='gilded'] .tool-group-inner,
html[data-theme='gilded'] .ask-user-question {
background: var(--warframe-ivory);
border-color: rgba(138, 97, 37, 0.3);
color: var(--text-primary);
box-shadow: 0 8px 20px rgba(69, 48, 25, 0.08);
}
html[data-theme='gilded'] .tool-call,
html[data-theme='gilded'] .tool-group {
background: #f7ecd9;
border-color: rgba(138, 97, 37, 0.3);
color: var(--text-primary);
box-shadow: none;
}
html[data-theme='gilded'] .tool-call summary,
html[data-theme='gilded'] .tool-group-summary {
background: #efdfbf;
border-color: rgba(138, 97, 37, 0.34);
color: var(--text-secondary);
}
html[data-theme='gilded'] .pending-note .note-bubble,
html[data-theme='gilded'] .attachment-tray-note,
html[data-theme='gilded'] .settings-inline-note,
html[data-theme='gilded'] .settings-inline-note.warning,
html[data-theme='gilded'] .agent-context-card {
background: var(--note-bg);
border-color: var(--note-border);
color: var(--text-secondary);
box-shadow: none;
}
html[data-theme='gilded'] .queued-message .queue-bubble {
background: var(--accent-light);
border-color: rgba(138, 97, 37, 0.34);
color: var(--text-primary);
}
html[data-theme='gilded'] .msg-attachment-card,
html[data-theme='gilded'] .msg.user .msg-attachment-card,
html[data-theme='gilded'] .attachment-preview-stage,
html[data-theme='gilded'] .code-preview-pane {
background: #f7ecd9;
border-color: rgba(138, 97, 37, 0.32);
color: var(--text-primary);
box-shadow: none;
}
html[data-theme='gilded'] .msg-attachment-thumb,
html[data-theme='gilded'] .attachment-preview-stage.is-ready,
html[data-theme='gilded'] .attachment-preview-image {
background: #e5d3b6;
}
html[data-theme='gilded'] .msg-bubble code:not(pre code) {
background: #efdfbf;
color: var(--warframe-copper);
}
html[data-theme='gilded'] .msg.user .msg-bubble code:not(pre code) {
background: rgba(255, 247, 234, 0.16);
color: var(--accent-ink);
}
html[data-theme='gilded'] :is(.settings-inline-note code, .tool-call-code) {
background: #eadcc6;
color: var(--text-primary);
}
html[data-theme='gilded'] #msg-input::placeholder,
html[data-theme='gilded'] :is(input, textarea)::placeholder {
color: var(--text-muted);
opacity: 1;
}
html[data-theme='gilded'] :is(button, input, textarea, select):disabled {
opacity: 0.68;
}
.theme-card[data-theme-value='gilded'] .theme-card-preview {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 5px;
padding: 6px;
border: 1px solid rgba(138, 97, 37, 0.28);
border-radius: 8px;
background:
repeating-radial-gradient(circle at 18% 50%, rgba(138, 97, 37, 0.18) 0 1px, transparent 1px 12px),
linear-gradient(90deg, #fbf3e5 0 42%, #efdfbf 42% 64%, #7a3f20 64% 82%, #147276 82% 100%);
}
.theme-card[data-theme-value='gilded'] .theme-card-swatch {
height: 18px;
border-radius: 6px;
border-color: rgba(32, 24, 18, 0.12);
opacity: 1;
}
.theme-card[data-theme-value='gilded'] .theme-card-swatch:nth-child(1) { background: #fbf3e5; }
.theme-card[data-theme-value='gilded'] .theme-card-swatch:nth-child(2) { background: #d5af63; }
.theme-card[data-theme-value='gilded'] .theme-card-swatch:nth-child(3) { background: #7a3f20; }
.theme-card[data-theme-value='gilded'] .theme-card-swatch:nth-child(4) { background: #147276; }
@keyframes warframeHeroReveal {
from { opacity: 0.86; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes warframeCopyIn {
from { opacity: 1; transform: translate(-10px, -50%); }
to { opacity: 1; transform: translate(0, -50%); }
}
@keyframes warframeHeroImageIn {
from { opacity: 0.72; transform: translate3d(32px, 8px, 0) scale(1.08); filter: brightness(1.1) contrast(0.96) saturate(0.82); }
to { opacity: 1; transform: translate3d(18px, 0, 0) scale(1.035); filter: brightness(1.06) contrast(1.03) saturate(0.9); }
}
@keyframes warframeButtonSweep {
0% { opacity: 0; transform: translateX(-62%) skewX(-14deg); }
22% { opacity: 1; }
100% { opacity: 0; transform: translateX(168%) skewX(-14deg); }
}
@media (max-width: 1120px) {
html[data-theme='gilded'] .messages:has(> .welcome-msg) {
padding: 14px 14px 16px;
}
html[data-theme='gilded'] .welcome-msg > .warframe-hero {
min-height: 330px;
}
html[data-theme='gilded'] .warframe-hero .welcome-copy {
left: 24px;
width: min(43%, 370px);
}
html[data-theme='gilded'] .welcome-msg h3 {
font-size: 32px;
}
html[data-theme='gilded'] .welcome-msg p {
font-size: 14px;
line-height: 1.55;
}
}
@media (max-width: 900px) {
html[data-theme='gilded'] .welcome-msg > .warframe-hero {
min-height: 310px;
}
html[data-theme='gilded'] .warframe-hero .welcome-copy {
width: min(46%, 340px);
}
html[data-theme='gilded'] .warframe-hero-image {
right: -13%;
width: 74%;
object-position: 50% 10%;
}
}
@media (max-width: 768px) {
html[data-theme='gilded'] .sidebar {
position: fixed;
}
html[data-theme='gilded'] .chat-header,
html[data-theme='gilded'] .input-area {
background: rgba(255, 247, 234, 0.97);
}
html[data-theme='gilded'] .messages:has(> .welcome-msg) {
justify-content: flex-start;
padding: 10px 10px 14px;
}
html[data-theme='gilded'] .welcome-msg {
gap: 10px;
}
html[data-theme='gilded'] .welcome-msg > .warframe-hero {
height: clamp(320px, 52svh, 430px);
min-height: 0;
aspect-ratio: auto;
}
html[data-theme='gilded'] .warframe-hero .welcome-copy {
left: 14px;
top: 18px;
width: 56%;
animation: none;
opacity: 1;
transform: none;
}
html[data-theme='gilded'] .welcome-kicker {
margin-bottom: 7px;
font-size: 11px;
}
html[data-theme='gilded'] .welcome-msg h3 {
margin-bottom: 7px;
font-size: 25px;
line-height: 1.1;
}
html[data-theme='gilded'] .welcome-msg p {
max-width: 28ch;
font-size: 13px;
line-height: 1.42;
}
html[data-theme='gilded'] .warframe-hero-image {
top: 0;
right: -30%;
width: 94%;
height: 100%;
object-position: 51% 12%;
-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 8%, #000 25%, #000 90%, transparent 100%), linear-gradient(180deg, #000 0%, #000 90%, transparent 100%);
mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 8%, #000 25%, #000 90%, transparent 100%), linear-gradient(180deg, #000 0%, #000 90%, transparent 100%);
}
html[data-theme='gilded'] .warframe-hero-orbit {
right: -2%;
top: 16%;
width: 56%;
}
html[data-theme='gilded'] .warframe-hero-emblem {
left: 12px;
bottom: 10px;
width: 54px;
height: 54px;
}
html[data-theme='gilded'] .input-wrapper {
min-height: 48px;
}
}
@media (max-width: 420px) {
html[data-theme='gilded'] .welcome-msg > .warframe-hero {
height: clamp(340px, 52svh, 430px);
}
html[data-theme='gilded'] .warframe-hero .welcome-copy {
width: 58%;
}
html[data-theme='gilded'] .welcome-msg h3 {
font-size: 23px;
}
html[data-theme='gilded'] .welcome-msg p {
font-size: 12px;
}
}
@media (prefers-reduced-motion: reduce) {
html[data-theme='gilded'] *,
html[data-theme='gilded'] *::before,
html[data-theme='gilded'] *::after {
animation: none !important;
transition: none !important;
scroll-behavior: auto !important;
}
html[data-theme='gilded'] .warframe-hero-image {
transform: translate3d(18px, 0, 0) scale(1.035);
}
}
.wasteland-welcome-art {
display: none;
}
/* === 暗金荒野:全画布骑士主视觉与黑铁工作台 === */
html[data-theme='wasteland'] body {
position: relative;
isolation: isolate;
background-color: var(--wasteland-iron);
background-image:
linear-gradient(90deg, rgba(3, 5, 5, 0.96) 0%, rgba(3, 5, 5, 0.9) 18%, rgba(3, 5, 5, 0.68) 45%, rgba(3, 5, 5, 0.26) 70%, rgba(3, 5, 5, 0.48) 100%),
linear-gradient(180deg, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.06) 30%, rgba(0, 0, 0, 0.16) 68%, rgba(0, 0, 0, 0.74) 100%),
radial-gradient(ellipse at 74% 34%, rgba(196, 154, 90, 0.12), transparent 38%),
url('assets/themes/wasteland/background.webp');
background-repeat: no-repeat;
background-position: center, center, center, center;
background-size: cover;
background-attachment: fixed;
}
html[data-theme='wasteland'] body::after {
content: '';
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
background:
radial-gradient(circle at 13% 78%, rgba(166, 91, 61, 0.48) 0 1px, transparent 2px),
radial-gradient(circle at 36% 18%, rgba(196, 154, 90, 0.34) 0 1px, transparent 2px),
radial-gradient(circle at 82% 68%, rgba(166, 91, 61, 0.38) 0 1px, transparent 2px),
radial-gradient(circle at 92% 22%, rgba(196, 154, 90, 0.26) 0 1px, transparent 2px);
opacity: 0.62;
animation: wastelandEmberDrift 8s ease-in-out infinite alternate;
}
html[data-theme='wasteland'] .app {
position: relative;
z-index: 1;
background: transparent;
animation: wastelandThemeReveal 380ms ease-out both;
}
html[data-theme='wasteland'] .chat-main,
html[data-theme='wasteland'] .messages-wrap,
html[data-theme='wasteland'] .messages {
background: transparent;
}
html[data-theme='wasteland'] .chat-main {
animation: wastelandWorkspaceReveal 420ms ease-out both;
}
html[data-theme='wasteland'] .sidebar {
background:
linear-gradient(180deg, rgba(196, 154, 90, 0.05), transparent 22%),
rgba(7, 9, 8, 0.92);
border-right: 1px solid var(--wasteland-line-strong);
box-shadow: 18px 0 48px rgba(0, 0, 0, 0.36), inset -1px 0 rgba(239, 232, 216, 0.025);
backdrop-filter: blur(11px) saturate(0.82);
animation: wastelandPanelReveal 320ms ease-out both;
}
html[data-theme='wasteland'] :is(
.sidebar-header,
.sidebar-footer,
.chat-header,
.input-area,
.modal-header,
.modal-footer
) {
background:
linear-gradient(90deg, rgba(196, 154, 90, 0.07), transparent 34%),
rgba(9, 11, 10, 0.78);
border-color: var(--wasteland-line);
backdrop-filter: blur(10px) saturate(0.82);
}
html[data-theme='wasteland'] .chat-header {
box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}
html[data-theme='wasteland'] .input-area {
box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.28);
}
html[data-theme='wasteland'] :is(.brand, .chat-title) {
color: var(--text-primary);
text-shadow: 0 0 18px rgba(196, 154, 90, 0.16);
}
html[data-theme='wasteland'] .messages {
padding-top: 22px;
padding-bottom: 34px;
}
html[data-theme='wasteland'] .msg {
max-width: min(78%, 1000px);
animation: wastelandMessageReveal 240ms ease-out both;
}
html[data-theme='wasteland'] .msg-bubble {
border: 1px solid var(--wasteland-line);
border-radius: 0;
clip-path: var(--wasteland-cut);
backdrop-filter: blur(9px) saturate(0.78);
}
html[data-theme='wasteland'] .msg.user .msg-bubble {
background:
linear-gradient(135deg, rgba(196, 154, 90, 0.08), transparent 42%),
rgba(31, 25, 19, 0.9);
border-color: rgba(196, 154, 90, 0.38);
color: var(--text-primary);
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
html[data-theme='wasteland'] :is(
.msg.assistant .msg-bubble,
.msg.cross-conversation .msg-bubble,
.msg.cross-conversation-reply .msg-bubble,
.msg.system .msg-bubble[data-tone='info']
) {
background:
linear-gradient(90deg, rgba(196, 154, 90, 0.055), transparent 34%),
rgba(12, 15, 13, 0.88);
border-color: rgba(196, 154, 90, 0.25);
color: var(--text-primary);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
html[data-theme='wasteland'] :is(
.msg-bubble h1,
.msg-bubble h2,
.msg-bubble h3,
.msg-bubble h4,
.tool-call-label,
.settings-section-title,
.settings-nav-card-title
) {
color: var(--text-primary);
}
html[data-theme='wasteland'] .msg-bubble a {
color: var(--info);
}
html[data-theme='wasteland'] :is(
.msg-bubble code:not(pre code),
.tool-call-code,
.settings-inline-note code
) {
color: #f6ead2;
}
html[data-theme='wasteland'] :is(.msg.user, .msg.assistant) .msg-avatar {
border: 1px solid rgba(196, 154, 90, 0.3);
background: rgba(9, 11, 10, 0.84);
box-shadow: 0 0 0 3px rgba(5, 7, 7, 0.34);
}
html[data-theme='wasteland'] :is(
.login-box,
.force-change-panel,
.settings-panel,
.modal-panel,
.option-picker,
.chat-agent-menu,
.cmd-menu,
.new-chat-dropdown,
.user-outline-panel
) {
background:
linear-gradient(135deg, rgba(196, 154, 90, 0.06), transparent 28%),
var(--wasteland-panel-strong);
border-color: var(--wasteland-line-strong);
border-radius: 0;
clip-path: var(--wasteland-cut);
box-shadow: var(--shadow-strong), inset 0 1px rgba(239, 232, 216, 0.035);
backdrop-filter: blur(16px) saturate(0.8);
}
html[data-theme='wasteland'] :is(
.agent-switch,
.session-search-input,
.session-search-clear,
.session-list-empty,
.session-project-header,
.session-project-create,
.session-list-load-more,
.chat-agent-btn,
.mode-select,
.chat-cwd,
.user-outline-btn,
.ccweb-prompt-outline-btn,
.reload-mcp-btn,
.settings-back,
.settings-nav-card,
.settings-toggle-row,
.theme-card,
.settings-field input,
.settings-select,
.force-change-form input,
.modal-select,
.modal-text-input,
.codex-user-input-text,
.attachment-chip,
.msg-attachment-card,
.ask-question-card,
.ask-option-preview,
.ask-option-item,
.codex-user-input-option,
.file-browser-toolbar-btn,
.file-browser-mobile-back,
.file-browser-path,
.file-browser-pane,
.collab-agent-prompt,
.collab-agent-item,
.collab-agent-thread-chip,
.collab-agent-close-btn,
.todo-list-container
) {
background: var(--wasteland-panel);
border-color: var(--wasteland-line);
color: var(--text-secondary);
box-shadow: inset 0 1px rgba(239, 232, 216, 0.025);
}
html[data-theme='wasteland'] .input-wrapper {
min-height: 54px;
background:
linear-gradient(90deg, rgba(196, 154, 90, 0.06), transparent 38%),
rgba(8, 10, 9, 0.91);
border-color: rgba(196, 154, 90, 0.42);
border-radius: 0;
clip-path: var(--wasteland-cut);
box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34), inset 0 1px rgba(239, 232, 216, 0.035);
backdrop-filter: blur(13px) saturate(0.8);
}
html[data-theme='wasteland'] .input-wrapper:focus-within,
html[data-theme='wasteland'] :is(.session-search-input, .settings-field input, .settings-select, .modal-text-input, .modal-select):focus-visible {
border-color: rgba(223, 189, 130, 0.68);
box-shadow: 0 0 0 3px rgba(196, 154, 90, 0.12), 0 18px 42px rgba(0, 0, 0, 0.38);
}
html[data-theme='wasteland'] .input-wrapper.drag-active {
border-color: var(--wasteland-green);
box-shadow: 0 0 0 3px rgba(111, 120, 63, 0.18), 0 18px 42px rgba(0, 0, 0, 0.38);
}
html[data-theme='wasteland'] .session-item {
position: relative;
overflow: hidden;
border: 1px solid transparent;
border-radius: 0;
clip-path: var(--wasteland-cut);
transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
html[data-theme='wasteland'] .session-item:hover {
background: linear-gradient(90deg, rgba(196, 154, 90, 0.11), rgba(17, 19, 16, 0.8) 70%);
border-color: rgba(196, 154, 90, 0.3);
transform: translateX(2px);
}
html[data-theme='wasteland'] .session-item.active {
background:
linear-gradient(90deg, rgba(196, 154, 90, 0.15), transparent 46%),
rgba(17, 19, 16, 0.9);
border-color: rgba(196, 154, 90, 0.48);
box-shadow: inset 3px 0 var(--wasteland-gold), 0 10px 24px rgba(0, 0, 0, 0.2);
}
html[data-theme='wasteland'] :is(.session-project-count, .session-item-pin-badge, .cmd-item-kind, .import-item-tag) {
background: rgba(111, 120, 63, 0.14);
border-color: rgba(111, 120, 63, 0.34);
color: #aeb877;
}
html[data-theme='wasteland'] .chat-runtime-state,
html[data-theme='wasteland'] :is(.tool-call-state.done, .collab-agent-overall-status.done, .collab-agent-item-status.done) {
background: rgba(111, 120, 63, 0.18);
border-color: rgba(111, 120, 63, 0.38);
color: #b6c080;
}
html[data-theme='wasteland'] :is(.tool-call, .ccweb-prompt-card) {
border-color: var(--wasteland-line);
border-left: 2px solid var(--wasteland-gold);
border-radius: 0;
background: rgba(9, 11, 10, 0.84);
clip-path: var(--wasteland-cut);
box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}
html[data-theme='wasteland'] .tool-call summary {
background:
linear-gradient(90deg, rgba(196, 154, 90, 0.08), transparent 42%),
rgba(14, 16, 14, 0.9);
color: var(--text-secondary);
}
html[data-theme='wasteland'] .tool-call summary:hover {
background:
linear-gradient(90deg, rgba(196, 154, 90, 0.13), transparent 54%),
rgba(18, 19, 16, 0.94);
}
html[data-theme='wasteland'] :is(
.tool-call-content,
.tool-call-content.reasoning,
.tool-call-content.command,
.tool-call-content.file-change,
.file-browser-preview-content
) {
background: rgba(8, 10, 9, 0.9);
border-color: var(--wasteland-line);
color: var(--text-primary);
}
html[data-theme='wasteland'] .tool-call-state.running,
html[data-theme='wasteland'] .tool-call-icon.running {
background: var(--wasteland-gold);
color: var(--accent-ink);
}
html[data-theme='wasteland'] :is(.abort-btn, .tool-call-state.error) {
border-color: rgba(166, 91, 61, 0.58);
background-color: rgba(62, 31, 24, 0.92);
color: #e5a28b;
}
html[data-theme='wasteland'] :is(
.new-chat-btn,
.new-chat-arrow,
.send-btn,
.settings-actions .btn-save,
.fc-submit-btn,
.modal-btn-primary,
.import-item-btn,
.ccweb-prompt-submit
) {
border: 1px solid rgba(196, 154, 90, 0.64);
border-radius: 0;
background:
linear-gradient(135deg, rgba(196, 154, 90, 0.11), transparent 48%),
rgba(12, 14, 12, 0.9);
color: var(--wasteland-gold-bright);
clip-path: var(--wasteland-cut);
box-shadow: inset 0 1px rgba(239, 232, 216, 0.04), 0 8px 22px rgba(0, 0, 0, 0.22);
transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
html[data-theme='wasteland'] :is(
.new-chat-btn,
.new-chat-arrow,
.send-btn,
.settings-actions .btn-save,
.fc-submit-btn,
.modal-btn-primary,
.import-item-btn,
.ccweb-prompt-submit
):hover:not(:disabled) {
background:
linear-gradient(135deg, rgba(196, 154, 90, 0.18), transparent 56%),
rgba(20, 20, 16, 0.96);
border-color: var(--wasteland-gold-bright);
color: #f0d7aa;
transform: translateY(-1px);
box-shadow: 0 0 0 3px rgba(196, 154, 90, 0.08), 0 12px 28px rgba(0, 0, 0, 0.28);
}
html[data-theme='wasteland'] :is(
.attach-btn,
.settings-btn,
.menu-btn,
.chat-session-id-btn,
.chat-agent-btn,
.mode-select,
.user-outline-btn,
.ccweb-prompt-outline-btn,
.reload-mcp-btn,
.settings-actions .btn-test,
.modal-btn-secondary,
.note-mode-btn,
.queue-send-btn,
.send-btn.note-send
) {
border-color: var(--wasteland-line);
background-color: rgba(12, 14, 12, 0.82);
color: var(--text-secondary);
}
html[data-theme='wasteland'] :is(
.attach-btn,
.settings-btn,
.menu-btn,
.chat-session-id-btn,
.chat-agent-btn,
.user-outline-btn,
.ccweb-prompt-outline-btn,
.reload-mcp-btn,
.settings-actions .btn-test,
.modal-btn-secondary,
.note-mode-btn,
.queue-send-btn,
.send-btn.note-send
):hover {
border-color: rgba(196, 154, 90, 0.5);
background-color: rgba(24, 23, 18, 0.94);
color: var(--text-primary);
transform: translateY(-1px);
}
html[data-theme='wasteland'] .new-chat-btn {
justify-content: flex-start;
gap: 10px;
padding-inline: 16px;
}
html[data-theme='wasteland'] .new-chat-btn .new-chat-glyph {
display: none;
}
html[data-theme='wasteland'] .new-chat-btn::before,
html[data-theme='wasteland'] .attach-btn::before,
html[data-theme='wasteland'] .send-btn::before,
html[data-theme='wasteland'] .abort-btn::before,
html[data-theme='wasteland'] .settings-btn::before {
content: '';
display: block;
flex: 0 0 auto;
width: 22px;
height: 22px;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
html[data-theme='wasteland'] .new-chat-btn::before {
width: 24px;
height: 24px;
background-image: url('assets/themes/wasteland/icons/new-chat.png');
}
html[data-theme='wasteland'] .session-search::before {
content: '';
left: 8px;
width: 20px;
height: 20px;
background: url('assets/themes/wasteland/icons/search.png') center / contain no-repeat;
}
html[data-theme='wasteland'] .session-search-input {
padding-left: 34px;
background: rgba(10, 12, 10, 0.84);
border-color: var(--wasteland-line);
border-radius: 0;
clip-path: var(--wasteland-cut);
}
html[data-theme='wasteland'] .attach-btn::before {
background-image: url('assets/themes/wasteland/icons/attachment.png');
}
html[data-theme='wasteland'] .send-btn::before {
background-image: url('assets/themes/wasteland/icons/send.png');
}
html[data-theme='wasteland'] .abort-btn::before {
background-image: url('assets/themes/wasteland/icons/stop.png');
}
html[data-theme='wasteland'] .settings-btn::before {
background-image: url('assets/themes/wasteland/icons/settings.png');
}
html[data-theme='wasteland'] :is(.attach-btn, .note-mode-btn, .queue-send-btn, .send-btn, .abort-btn) > svg {
display: none;
}
html[data-theme='wasteland'] .settings-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
padding: 5px;
font-size: 0;
}
html[data-theme='wasteland'] :is(.settings-select, .mode-select) {
background-image: url('assets/themes/wasteland/icons/dropdown.png');
background-repeat: no-repeat;
background-size: 14px 14px;
}
html[data-theme='wasteland'] .welcome-msg {
width: min(100%, 1040px);
margin: auto;
padding: clamp(22px, 4vw, 54px) clamp(16px, 4vw, 58px) clamp(42px, 7vw, 82px);
text-align: left;
}
html[data-theme='wasteland'] .welcome-msg > .warframe-hero {
position: relative;
isolation: isolate;
display: block;
width: min(660px, 68%);
margin: 0 auto;
aspect-ratio: 1095 / 875;
overflow: visible;
}
html[data-theme='wasteland'] .welcome-icon {
display: none;
}
html[data-theme='wasteland'] .wasteland-welcome-art {
position: absolute;
inset: 0;
z-index: 1;
display: block;
pointer-events: none;
}
html[data-theme='wasteland'] .wasteland-welcome-surface {
position: absolute;
z-index: 1;
top: 16.5%;
right: 2.2%;
bottom: 21.5%;
left: 6.5%;
background:
linear-gradient(90deg, rgba(4, 6, 6, 0.72), rgba(5, 7, 7, 0.42)),
url('assets/themes/wasteland/textures/welcome-card-surface.webp') center / cover no-repeat;
clip-path: polygon(2.5% 0, 97.5% 0, 100% 5%, 100% 95%, 97.5% 100%, 2.5% 100%, 0 95%, 0 5%);
box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}
html[data-theme='wasteland'] .wasteland-welcome-frame {
position: absolute;
inset: 0;
z-index: 3;
display: block;
width: 100%;
height: 100%;
object-fit: fill;
}
html[data-theme='wasteland'] .welcome-copy {
position: absolute;
z-index: 2;
top: 25%;
right: 8%;
bottom: 25%;
left: 16%;
display: flex;
flex-direction: column;
justify-content: center;
max-width: none;
margin: 0;
padding: clamp(12px, 2.2vw, 28px);
border: 0;
background: transparent;
color: var(--text-secondary);
clip-path: none;
box-shadow: none;
backdrop-filter: none;
}
html[data-theme='wasteland'] .welcome-msg h3 {
margin: 0 0 14px;
color: #fff;
font-family: 'Noto Serif SC', 'Songti SC', SimSun, serif;
font-size: clamp(29px, 3vw, 42px);
font-weight: 700;
line-height: 1.18;
letter-spacing: 0.035em;
text-shadow: 0 2px 18px rgba(0, 0, 0, 0.74);
}
html[data-theme='wasteland'] .welcome-msg p {
color: #cda76b;
font-family: 'Noto Serif SC', 'Songti SC', SimSun, serif;
font-size: clamp(15px, 1.65vw, 21px);
line-height: 1.55;
letter-spacing: 0.03em;
text-shadow: 0 1px 12px rgba(0, 0, 0, 0.82);
}
html[data-theme='wasteland'] .theme-card[data-theme-value='wasteland'],
.theme-card[data-theme-value='wasteland'] {
border-color: rgba(196, 154, 90, 0.36);
}
.theme-card[data-theme-value='wasteland'] .theme-card-preview {
background:
linear-gradient(90deg, rgba(3, 5, 5, 0.92), rgba(3, 5, 5, 0.48) 48%, rgba(196, 154, 90, 0.12)),
url('assets/themes/wasteland/background.webp') 67% 36% / cover no-repeat;
border: 1px solid rgba(196, 154, 90, 0.44);
}
.theme-card[data-theme-value='wasteland'] .theme-card-swatch {
opacity: 0.78;
}
html[data-theme='wasteland'] ::selection {
background: rgba(196, 154, 90, 0.34);
color: #fff7e8;
}
html[data-theme='wasteland'] * {
scrollbar-color: var(--scrollbar-thumb) transparent;
}
@keyframes wastelandThemeReveal {
from { opacity: 0.72; }
to { opacity: 1; }
}
@keyframes wastelandWorkspaceReveal {
from { opacity: 0.7; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes wastelandPanelReveal {
from { opacity: 0.72; }
to { opacity: 1; }
}
@keyframes wastelandMessageReveal {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes wastelandEmberDrift {
from { transform: translate3d(0, 4px, 0); opacity: 0.38; }
to { transform: translate3d(7px, -7px, 0); opacity: 0.68; }
}
@media (max-width: 720px) {
html[data-theme='wasteland'] body {
background-image:
linear-gradient(90deg, rgba(3, 5, 5, 0.94), rgba(3, 5, 5, 0.76)),
linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.72)),
url('assets/themes/wasteland/background.webp');
background-position: center, center, 70% 50%;
background-size: cover;
}
html[data-theme='wasteland'] .sidebar {
width: min(88vw, 320px);
min-width: min(88vw, 320px);
background: rgba(7, 9, 8, 0.97);
}
html[data-theme='wasteland'] .messages {
padding: 14px 12px 24px;
}
html[data-theme='wasteland'] .msg {
max-width: 94%;
}
html[data-theme='wasteland'] .session-item:hover {
transform: none;
}
html[data-theme='wasteland'] .welcome-msg {
padding: 14px 8px 46px;
}
html[data-theme='wasteland'] .welcome-msg > .warframe-hero {
width: min(100%, 620px);
}
}
@media (max-width: 560px) {
html[data-theme='wasteland'] .chat-header {
padding-inline: 10px;
}
html[data-theme='wasteland'] .input-area {
padding-inline: 8px;
}
html[data-theme='wasteland'] .input-wrapper {
min-width: 0;
min-height: 48px;
padding: 6px 8px;
gap: 5px;
}
html[data-theme='wasteland'] :is(.attach-btn, .send-btn, .abort-btn) {
width: 34px;
height: 34px;
}
html[data-theme='wasteland'] :is(.attach-btn, .send-btn, .abort-btn)::before {
width: 20px;
height: 20px;
}
html[data-theme='wasteland'] .msg {
max-width: 98%;
}
html[data-theme='wasteland'] .msg-bubble {
padding: 10px 12px;
}
html[data-theme='wasteland'] .welcome-copy {
top: 24%;
right: 7%;
bottom: 24%;
left: 14%;
padding: 8px;
}
html[data-theme='wasteland'] .welcome-msg h3 {
margin-bottom: 9px;
font-size: clamp(22px, 7.2vw, 30px);
}
html[data-theme='wasteland'] .welcome-msg p {
font-size: clamp(13px, 4.2vw, 16px);
}
}
@media (prefers-reduced-motion: reduce) {
html[data-theme='wasteland'] *,
html[data-theme='wasteland'] *::before,
html[data-theme='wasteland'] *::after {
animation: none !important;
transition: none !important;
scroll-behavior: auto !important;
}
}
/* === 暗金荒野高保真复刻:使用设计稿真实蚀刻框与分规格图标 === */
html[data-theme='wasteland'] {
--sidebar-width: 316px;
--header-height: 57px;
--wasteland-panel: rgba(7, 9, 9, 0.66);
--wasteland-panel-soft: rgba(7, 9, 9, 0.52);
--wasteland-panel-strong: rgba(6, 8, 8, 0.76);
--wasteland-gold: #b98b4b;
--wasteland-gold-bright: #dfb46c;
--wasteland-line: rgba(185, 139, 75, 0.3);
--wasteland-line-strong: rgba(223, 180, 108, 0.44);
}
html[data-theme='wasteland'] body {
background-color: #080a09;
background-image:
linear-gradient(90deg, rgba(3, 5, 5, 0.72) 0%, rgba(3, 5, 5, 0.58) 18%, rgba(3, 5, 5, 0.34) 43%, rgba(3, 5, 5, 0.08) 66%, rgba(3, 5, 5, 0.18) 100%),
linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.02) 32%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0.44) 100%),
url('assets/themes/wasteland/background.webp');
background-position: center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}
html[data-theme='wasteland'] body::after {
display: none;
}
html[data-theme='wasteland'] :is(.app, .chat-main, .sidebar, .msg) {
animation: none;
}
html[data-theme='wasteland'] .sidebar {
width: var(--sidebar-width);
min-width: var(--sidebar-width);
background:
linear-gradient(180deg, rgba(185, 139, 75, 0.035), transparent 24%),
rgba(5, 7, 7, 0.76);
border-right: 1px solid rgba(185, 139, 75, 0.32);
box-shadow: inset -1px 0 rgba(255, 230, 180, 0.08);
backdrop-filter: blur(4px) saturate(0.9);
}
html[data-theme='wasteland'] .sidebar-header {
padding: 9px 14px 14px;
background: rgba(6, 8, 8, 0.42);
border: 0;
box-shadow: none;
backdrop-filter: blur(3px) saturate(0.9);
}
html[data-theme='wasteland'] .new-chat-split {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr) 53px;
gap: 6px;
width: 100%;
height: 49px;
background: rgba(7, 9, 9, 0.56);
}
html[data-theme='wasteland'] .new-chat-split::after,
html[data-theme='wasteland'] .session-search::after,
html[data-theme='wasteland'] .session-project-header::after,
html[data-theme='wasteland'] .session-item.active::after,
html[data-theme='wasteland'] .tool-call::after {
content: '';
position: absolute;
z-index: 4;
pointer-events: none;
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
}
html[data-theme='wasteland'] .new-chat-split::after {
inset: 0;
background-image: url('assets/themes/wasteland/frames/new-chat.png');
}
html[data-theme='wasteland'] :is(.new-chat-btn, .new-chat-arrow) {
position: relative;
z-index: 1;
min-width: 0;
height: 49px;
min-height: 49px;
padding: 0 14px;
border: 0;
border-radius: 0;
clip-path: none;
background: transparent;
color: #f0d7aa;
box-shadow: none;
transform: none;
}
html[data-theme='wasteland'] .new-chat-btn {
justify-content: center;
gap: 8px;
font-size: 15px;
font-weight: 700;
}
html[data-theme='wasteland'] .new-chat-btn::before {
display: none;
}
html[data-theme='wasteland'] .new-chat-btn .new-chat-glyph {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
color: #dcb36f;
font-family: Arial, Helvetica, sans-serif;
font-size: 21px;
font-weight: 300;
line-height: 1;
}
html[data-theme='wasteland'] .new-chat-arrow {
font-size: 0;
line-height: 0;
background: transparent;
}
html[data-theme='wasteland'] .new-chat-arrow::before {
content: '';
display: block;
width: 0;
height: 0;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
border-top: 7px solid #dcb36f;
filter: drop-shadow(0 1px 0 rgba(58, 31, 14, 0.9));
transform: translateY(1px);
}
html[data-theme='wasteland'] :is(.new-chat-btn, .new-chat-arrow):hover:not(:disabled) {
border: 0;
background: rgba(185, 139, 75, 0.08);
color: #fff0c8;
box-shadow: none;
transform: none;
}
html[data-theme='wasteland'] .session-search {
position: relative;
height: 36px;
margin-top: 8px;
}
html[data-theme='wasteland'] .session-search-row {
align-items: center;
margin-top: 8px;
}
html[data-theme='wasteland'] .session-search-row .session-search {
margin-top: 0;
}
html[data-theme='wasteland'] .session-search-row .advanced-search-open {
width: 36px;
height: 36px;
flex-basis: 36px;
}
html[data-theme='wasteland'] .session-search::after {
inset: 0;
background-image: url('assets/themes/wasteland/frames/search.png');
}
html[data-theme='wasteland'] .session-search::before {
content: '';
position: absolute;
z-index: 3;
left: 13px;
top: 50%;
width: 20px;
height: 20px;
transform: translateY(-50%);
background: url('assets/themes/wasteland/icons/ui/search.png') center / 20px 20px no-repeat;
pointer-events: none;
}
html[data-theme='wasteland'] .session-search-input {
position: relative;
z-index: 1;
width: 100%;
height: 36px;
padding: 0 34px 0 42px;
border: 0;
border-radius: 0;
clip-path: none;
background: rgba(4, 6, 6, 0.38);
box-shadow: none;
color: #fff;
}
html[data-theme='wasteland'] .session-search-input:focus {
border: 0;
box-shadow: inset 0 0 0 1px rgba(223, 180, 108, 0.18);
outline: 0;
}
html[data-theme='wasteland'] .session-list {
padding: 0 14px 12px;
}
html[data-theme='wasteland'] .session-project-header {
position: relative;
min-height: 47px;
margin: 0;
padding: 0 14px;
border: 0;
border-radius: 0;
background: rgba(5, 7, 7, 0.54);
box-shadow: none;
}
html[data-theme='wasteland'] .session-project-header::after {
inset: 0;
background-image: url('assets/themes/wasteland/frames/project.png');
}
html[data-theme='wasteland'] .session-item {
min-height: 42px;
margin: 0;
border: 1px solid transparent;
border-radius: 0;
clip-path: none;
background: transparent;
box-shadow: none;
transform: none;
}
html[data-theme='wasteland'] .session-item::after {
display: none;
}
html[data-theme='wasteland'] .session-item:hover {
border-color: transparent;
background: rgba(185, 139, 75, 0.06);
box-shadow: none;
transform: none;
}
html[data-theme='wasteland'] .session-item.active {
position: relative;
min-height: 46px;
border: 0;
background:
linear-gradient(90deg, rgba(112, 70, 31, 0.42), rgba(17, 16, 12, 0.32) 72%),
rgba(8, 10, 9, 0.56);
box-shadow: none;
}
html[data-theme='wasteland'] .session-item.active::after {
display: block;
inset: 0;
width: auto;
height: auto;
opacity: 1;
background-image: url('assets/themes/wasteland/frames/active-session.png');
}
html[data-theme='wasteland'] .session-item-actions {
position: absolute;
z-index: 5;
top: 50%;
right: 9px;
margin: 0;
gap: 0;
transform: translateY(-50%);
}
html[data-theme='wasteland'] .session-item:hover .session-item-main,
html[data-theme='wasteland'] .session-item:focus-within .session-item-main,
html[data-theme='wasteland'] .session-item.menu-open .session-item-main {
padding-right: 50px;
}
html[data-theme='wasteland'] .session-item:hover .session-item-time,
html[data-theme='wasteland'] .session-item:focus-within .session-item-time,
html[data-theme='wasteland'] .session-item.menu-open .session-item-time {
visibility: hidden;
}
html[data-theme='wasteland'] .session-item-btn {
width: 22px;
height: 26px;
border: 0;
border-radius: 0;
background: transparent;
color: #c9a66b;
}
html[data-theme='wasteland'] .session-item-btn:hover,
html[data-theme='wasteland'] .session-item-btn:focus-visible {
background: rgba(185, 139, 75, 0.1);
color: #fff;
outline: 0;
}
html[data-theme='wasteland'] .session-item.menu-open {
z-index: 12;
overflow: visible;
}
html[data-theme='wasteland'] .session-item-menu {
z-index: 30;
right: -1px;
top: calc(100% + 6px);
border: 1px solid rgba(185, 139, 75, 0.45);
border-radius: 0;
background: rgba(7, 9, 8, 0.98);
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
html[data-theme='wasteland'] .sidebar-footer {
display: flex;
align-items: center;
justify-content: center;
min-height: 71px;
padding: 0 18px;
border: 0;
border-top: 1px solid rgba(185, 139, 75, 0.2);
background: rgba(5, 7, 7, 0.5);
box-shadow: none;
}
html[data-theme='wasteland'] .settings-btn {
width: 34px;
height: 34px;
padding: 0;
border: 0;
background: transparent;
box-shadow: none;
font-size: 0;
}
html[data-theme='wasteland'] .settings-btn::before {
width: 20px;
height: 20px;
background: url('assets/themes/wasteland/icons/ui/settings.png') center / 20px 20px no-repeat;
}
html[data-theme='wasteland'] .brand {
display: inline-flex;
align-items: center;
gap: 8px;
line-height: 1;
color: #cda76b;
}
html[data-theme='wasteland'] .brand::before {
display: none;
}
html[data-theme='wasteland'] .chat-header {
height: var(--header-height);
min-height: var(--header-height);
border: 0;
border-bottom: 1px solid rgba(185, 139, 75, 0.22);
background: rgba(6, 8, 8, 0.38);
box-shadow: none;
backdrop-filter: blur(3px) saturate(0.9);
}
html[data-theme='wasteland'] .messages {
padding-top: 29px;
padding-bottom: 20px;
}
html[data-theme='wasteland'] .msg {
max-width: min(74%, 997px);
}
html[data-theme='wasteland'] .msg.user {
max-width: min(42%, 480px);
}
html[data-theme='wasteland'] .msg-bubble {
border: 1px solid rgba(185, 139, 75, 0.16);
border-radius: 8px;
clip-path: none;
background: rgba(5, 7, 7, 0.1);
box-shadow: inset 0 1px rgba(255, 230, 180, 0.025);
-webkit-backdrop-filter: blur(14px) saturate(1.08);
backdrop-filter: blur(14px) saturate(1.08);
}
html[data-theme='wasteland'] .msg.user .msg-bubble {
background: rgba(5, 7, 7, 0.08);
border-color: rgba(196, 154, 90, 0.24);
box-shadow: inset 0 1px rgba(255, 230, 180, 0.03);
}
html[data-theme='wasteland'] .msg.user.goal-message .goal-message-label {
border-color: rgba(196, 154, 90, 0.42);
background: rgba(185, 139, 75, 0.14);
color: #e0bd7a;
}
html[data-theme='wasteland'] :is(.msg.assistant, .msg.cross-conversation, .msg.cross-conversation-reply, .msg.system) .msg-bubble {
background: rgba(5, 7, 7, 0.1);
border-color: rgba(185, 139, 75, 0.16);
box-shadow: inset 0 1px rgba(255, 230, 180, 0.025);
}
html[data-theme='wasteland'] :is(.msg.user, .msg.assistant) .msg-avatar {
width: 42px;
height: 42px;
border: 0;
background-color: rgba(5, 7, 7, 0.46);
background-repeat: no-repeat;
background-position: center;
box-shadow: none;
font-size: 0;
}
html[data-theme='wasteland'] .msg.assistant .msg-avatar {
background-image: url('assets/themes/wasteland/icons/ui/ai.png');
background-size: 36px 36px;
}
html[data-theme='wasteland'] .msg.user .msg-avatar {
background-image: url('assets/themes/wasteland/icons/ui/user.png');
background-size: 36px 36px;
}
html[data-theme='wasteland'] :is(.msg.user, .msg.assistant) .msg-avatar > :is(img, svg) {
display: none !important;
}
html[data-theme='wasteland'] :is(.tool-call, .tool-group) {
position: relative;
border: 0;
border-radius: 0;
clip-path: none;
background: rgba(5, 7, 7, 0.04) !important;
box-shadow: none;
-webkit-backdrop-filter: blur(10px) saturate(1.05);
backdrop-filter: blur(10px) saturate(1.05);
}
html[data-theme='wasteland'] .tool-call {
overflow: hidden;
}
html[data-theme='wasteland'] .tool-call::after {
inset: 0;
background-image: url('assets/themes/wasteland/frames/tool-call.png');
}
html[data-theme='wasteland'] .tool-call summary {
position: relative;
z-index: 1;
min-height: 60px;
padding-left: 54px;
border: 0;
}
html[data-theme='wasteland'] :is(.tool-call summary, .tool-group-summary) {
background: rgba(5, 7, 7, 0.02) !important;
}
html[data-theme='wasteland'] .tool-call summary::before {
content: '';
position: absolute;
left: 20px;
top: 50%;
width: 20px;
height: 18px;
transform: translateY(-50%);
background: url('assets/themes/wasteland/icons/ui/terminal.png') center / 20px 18px no-repeat;
}
html[data-theme='wasteland'] .plan-progress-dot {
flex: 0 0 20px;
width: 20px;
height: 20px;
margin-left: 6px;
border-radius: 0;
background-color: transparent;
background-position: center;
background-repeat: no-repeat;
background-size: 20px 20px;
box-shadow: none;
filter: drop-shadow(0 0 3px rgba(223, 180, 108, 0.28));
}
html[data-theme='wasteland'] .plan-progress-dot.is-complete {
background-image: url('assets/themes/wasteland/icons/plan-progress/complete.png');
}
html[data-theme='wasteland'] .plan-progress-dot.is-remaining {
background-image: url('assets/themes/wasteland/icons/plan-progress/remaining.png');
box-shadow: none;
}
html[data-theme='wasteland'] :is(
.tool-call-content,
.tool-call-content.reasoning,
.tool-call-content.command,
.tool-call-content.file-change,
.tool-call-content.collab-agent-content,
.tool-group-inner
) {
position: relative;
z-index: 1;
border: 0;
border-top: 1px solid rgba(185, 139, 75, 0.18);
background: rgba(5, 7, 7, 0.035) !important;
box-shadow: none;
}
html[data-theme='wasteland'] .tool-call.ccweb-mcp-child-agent-tool-call .collab-agent-header {
min-height: 24px;
padding: 4px 8px 0;
}
html[data-theme='wasteland'] .tool-call.ccweb-mcp-child-agent-tool-call .collab-agent-title-wrap {
align-items: center;
}
html[data-theme='wasteland'] .input-area {
min-height: 146px;
padding: 10px 16px 45px;
border: 0;
background: transparent !important;
box-shadow: none;
backdrop-filter: none;
overflow: visible;
}
html[data-theme='wasteland'] .input-wrapper:focus-within,
html[data-theme='wasteland'] .input-wrapper.drag-active,
html[data-theme='wasteland'] .input-wrapper.note-mode-active {
border-color: transparent !important;
border-style: solid !important;
border-width: 1px !important;
outline: 0 !important;
box-shadow: none !important;
}
html[data-theme='wasteland'] .chat-controls {
width: min(806px, calc(100% - 32px));
max-width: 806px;
margin: 0 auto 7px;
padding: 0 4px;
}
html[data-theme='wasteland'] .input-wrapper {
position: relative;
width: min(806px, calc(100% - 32px));
max-width: 806px;
min-width: 0;
min-height: 74px;
margin: 0 auto;
padding: 11px 12px;
gap: 7px;
border: 1px solid transparent;
border-image-source: url('assets/themes/wasteland/frames/composer.png');
border-image-slice: 10 10 43 10;
border-image-width: 10px 10px 43px 10px;
border-image-outset: 0 0 27px 0;
border-image-repeat: stretch;
border-radius: 0;
clip-path: none;
background:
linear-gradient(90deg, rgba(185, 139, 75, 0.025), transparent 42%, rgba(185, 139, 75, 0.035)),
rgba(5, 7, 7, 0.74);
box-shadow: none;
backdrop-filter: blur(4px) saturate(0.9);
overflow: visible;
}
html[data-theme='wasteland'] .input-wrapper::before {
display: none;
}
html[data-theme='wasteland'] .input-wrapper::after {
display: none;
}
html[data-theme='wasteland'] #msg-input {
position: relative;
z-index: 1;
min-height: 48px;
color: #fff;
}
html[data-theme='wasteland'] .attach-btn {
position: relative;
z-index: 2;
width: 36px;
height: 42px;
padding: 0;
border: 0;
background: transparent;
box-shadow: none;
}
html[data-theme='wasteland'] .attach-btn::before {
width: 26px;
height: 28px;
background: url('assets/themes/wasteland/icons/ui/attachment.png') center / 26px 28px no-repeat;
}
html[data-theme='wasteland'] :is(.note-mode-btn, .queue-send-btn)::before {
content: '';
display: block;
width: 30px;
height: 30px;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
html[data-theme='wasteland'] :is(.note-mode-btn, .queue-send-btn, .send-btn, .abort-btn)::before {
position: relative;
z-index: 2;
}
html[data-theme='wasteland'] .note-mode-btn::before {
width: 36px;
height: 36px;
background-image: url('assets/themes/wasteland/icons/ui/note.png');
}
html[data-theme='wasteland'] .queue-send-btn::before {
background-image: url('assets/themes/wasteland/icons/ui/queue.png');
}
html[data-theme='wasteland'] .attach-btn:hover {
border: 0;
background: transparent;
filter: brightness(1.2);
transform: none;
}
html[data-theme='wasteland'] :is(.send-btn, .abort-btn, .queue-send-btn, .note-mode-btn) {
position: relative;
z-index: 2;
width: 40px;
height: 40px;
min-width: 40px;
padding: 0;
border: 0 !important;
border-radius: 0;
clip-path: none;
background: transparent !important;
box-shadow: none !important;
}
html[data-theme='wasteland'] :is(.send-btn, .abort-btn, .queue-send-btn, .note-mode-btn)::after {
display: none;
}
html[data-theme='wasteland'] .send-btn::before {
width: 30px;
height: 30px;
background: url('assets/themes/wasteland/icons/ui/send.png') center / 30px 30px no-repeat;
}
html[data-theme='wasteland'] .abort-btn {
border: 0 !important;
background: transparent !important;
}
html[data-theme='wasteland'] .abort-btn::before {
width: 26px;
height: 26px;
background: url('assets/themes/wasteland/icons/ui/stop.png') center / 26px 26px no-repeat;
}
html[data-theme='wasteland'] :is(.send-btn, .abort-btn, .queue-send-btn, .note-mode-btn):hover:not(:disabled) {
border: 0 !important;
background: transparent !important;
box-shadow: none !important;
filter: brightness(1.2);
transform: none;
}
html[data-theme='wasteland'] :is(.send-btn, .abort-btn, .queue-send-btn, .note-mode-btn):focus-visible {
outline: 1px solid rgba(223, 180, 108, 0.5);
outline-offset: 2px;
}
html[data-theme='wasteland'] :is(.settings-select, .mode-select) {
appearance: none;
-webkit-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.75 11 1.25Z' fill='%23dfbd82' stroke='%238f592b' stroke-width='0.8'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: 12px 8px;
}
html[data-theme='wasteland'] .mode-select {
background-position: right 10px center;
}
@media (min-width: 721px) and (max-width: 1100px) {
html[data-theme='wasteland'] body {
background-position: center, center, 75% 50%;
}
}
@media (max-width: 720px) {
html[data-theme='wasteland'] {
--sidebar-width: min(88vw, 320px);
--header-height: 52px;
}
html[data-theme='wasteland'] body {
background-image:
linear-gradient(90deg, rgba(3, 5, 5, 0.82), rgba(3, 5, 5, 0.46)),
linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.48)),
url('assets/themes/wasteland/background.webp');
background-position: center, center, 75% 50%;
}
html[data-theme='wasteland'] .input-area {
min-height: 122px;
padding: 8px 8px 40px;
}
html[data-theme='wasteland'] :is(.chat-controls, .input-wrapper) {
width: 100%;
}
html[data-theme='wasteland'] .input-wrapper {
min-height: 64px;
}
}
@media (max-width: 560px) {
html[data-theme='wasteland'] .new-chat-btn {
font-size: 14px;
}
html[data-theme='wasteland'] .messages {
padding: 14px 10px 18px;
}
html[data-theme='wasteland'] :is(.msg, .msg.user) {
max-width: 98%;
}
html[data-theme='wasteland'] .input-wrapper {
min-height: 58px;
padding: 7px 8px;
}
html[data-theme='wasteland'] :is(.send-btn, .abort-btn, .queue-send-btn, .note-mode-btn) {
width: 36px;
height: 36px;
min-width: 36px;
}
html[data-theme='wasteland'] .send-btn::before {
width: 28px;
height: 28px;
background-size: 28px 28px;
}
html[data-theme='wasteland'] .abort-btn::before {
width: 24px;
height: 24px;
background-size: 24px 24px;
}
html[data-theme='wasteland'] .plan-progress-dot {
flex-basis: 16px;
width: 16px;
height: 16px;
margin-left: 3px;
background-size: 16px 16px;
}
}
/* 暗金荒野:暗场气泡用无黑底的亮度补偿磨砂,避免透明层视觉上仍像实心黑块。 */
html[data-theme='wasteland'] :is(
.msg.assistant,
.msg.cross-conversation,
.msg.cross-conversation-reply,
.msg.system
) .msg-bubble {
background: rgba(226, 214, 190, 0.022) !important;
border-color: rgba(185, 139, 75, 0.13) !important;
box-shadow: inset 0 1px rgba(255, 236, 199, 0.035) !important;
-webkit-backdrop-filter: blur(3px) saturate(1.16) brightness(1.28);
backdrop-filter: blur(3px) saturate(1.16) brightness(1.28);
}
/* === 桌面侧栏:固定收起与悬浮预览 === */
:root {
--sidebar-rail-width: 14px;
--sidebar-hover-shadow: 18px 0 40px rgba(45, 31, 20, 0.16);
}
:is(
html[data-theme='carbon'],
html[data-theme='nocturne'],
html[data-theme='cinder'],
html[data-theme='gilded'],
html[data-theme='wasteland']
) {
--sidebar-hover-shadow: 22px 0 52px rgba(0, 0, 0, 0.48);
}
html[data-theme='gilded'] {
--sidebar-hover-shadow: 20px 0 46px rgba(69, 48, 25, 0.22);
}
.menu-btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
@media (width > 768px) {
.menu-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
flex: 0 0 32px;
padding: 0;
}
.app.sidebar-collapsed .sidebar {
position: relative;
z-index: 90;
width: var(--sidebar-width);
min-width: var(--sidebar-width);
margin-right: calc(var(--sidebar-rail-width) - var(--sidebar-width));
transform: translateX(calc(var(--sidebar-rail-width) - var(--sidebar-width)));
box-shadow: none;
will-change: transform;
transition:
transform 180ms ease,
margin-right 180ms ease,
box-shadow 180ms ease;
}
/* 收起后控制条会贴近左侧轨道,定位浮层需朝聊天画布展开,避免越过应用边界被裁切。 */
.app.sidebar-collapsed .user-outline-panel {
left: 0;
right: auto;
z-index: 120;
}
.app.sidebar-collapsed .sidebar::after {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
z-index: 3;
width: var(--sidebar-rail-width);
pointer-events: none;
border-left: 1px solid var(--border-color);
background:
linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 12%, transparent)),
var(--bg-secondary);
box-shadow: inset -1px 0 var(--border-color);
opacity: 1;
transition: opacity 120ms ease;
}
html[data-theme='gilded'] .app.sidebar-collapsed .sidebar::after {
border-left-color: rgba(138, 97, 37, 0.34);
background:
linear-gradient(90deg, rgba(255, 247, 234, 0.42), rgba(168, 79, 37, 0.18)),
#efe4d2;
box-shadow: inset -1px 0 rgba(122, 63, 32, 0.42);
}
html[data-theme='wasteland'] .app.sidebar-collapsed .sidebar::after {
border-left-color: rgba(185, 139, 75, 0.38);
background:
linear-gradient(90deg, rgba(5, 7, 7, 0.82), rgba(196, 154, 90, 0.2)),
#080a09;
box-shadow: inset -1px 0 rgba(223, 180, 108, 0.32);
}
}
@media (width > 768px) and (hover: hover) and (pointer: fine) {
.app.sidebar-collapsed .sidebar:is(:hover, :focus-within) {
transform: translateX(0);
box-shadow: var(--sidebar-hover-shadow);
}
.app.sidebar-collapsed .sidebar:is(:hover, :focus-within)::after {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.app.sidebar-collapsed .sidebar,
.app.sidebar-collapsed .sidebar::after {
transition: none !important;
}
}
/* === 使用统计看板:独立工作区 === */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.sidebar-footer {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.sidebar-footer-actions {
display: inline-flex;
align-items: center;
gap: 5px;
flex: 0 0 auto;
}
.sidebar-footer-actions .settings-btn,
.usage-dashboard-open {
width: 32px;
height: 32px;
min-width: 32px;
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0;
padding: 0;
border: 1px solid transparent;
border-radius: 7px;
background: transparent;
color: var(--text-muted);
cursor: pointer;
line-height: 1;
transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.usage-dashboard-open:hover,
.usage-dashboard-open:focus-visible,
.sidebar-footer-actions .settings-btn:hover,
.sidebar-footer-actions .settings-btn:focus-visible {
color: var(--accent);
background: var(--accent-light);
border-color: color-mix(in srgb, var(--accent) 28%, transparent);
outline: none;
}
.usage-dashboard-open:focus-visible,
.sidebar-footer-actions .settings-btn:focus-visible {
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.usage-dashboard-open[aria-expanded='true'] {
color: var(--accent);
background: var(--accent-light);
border-color: color-mix(in srgb, var(--accent) 32%, transparent);
}
.usage-dashboard {
--usage-dashboard-bg: var(--bg-primary);
--usage-dashboard-surface: var(--surface-strong);
--usage-dashboard-surface-soft: var(--bg-secondary);
--usage-dashboard-surface-muted: var(--bg-tertiary);
--usage-dashboard-text: var(--text-primary);
--usage-dashboard-text-secondary: var(--text-secondary);
--usage-dashboard-text-muted: var(--text-muted);
--usage-dashboard-border: var(--border-color);
--usage-dashboard-accent: var(--accent);
--usage-dashboard-accent-soft: var(--accent-light);
--usage-dashboard-accent-ink: var(--usage-dashboard-surface);
--usage-dashboard-success: var(--success);
--usage-dashboard-danger: var(--danger);
--usage-dashboard-info: var(--info);
position: absolute;
inset: 0;
z-index: 242;
display: flex;
min-width: 0;
min-height: 0;
overflow: hidden;
background: var(--usage-dashboard-bg);
color: var(--usage-dashboard-text);
isolation: isolate;
animation: usageDashboardIn 170ms ease-out;
}
.usage-dashboard[hidden],
.usage-dashboard [hidden] {
display: none !important;
}
.usage-dashboard__shell {
width: 100%;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
}
.usage-dashboard__header {
min-height: var(--header-height);
display: grid;
grid-template-columns: 36px minmax(0, 1fr) auto;
align-items: center;
gap: 12px;
padding: 9px 22px;
border-bottom: 1px solid var(--usage-dashboard-border);
background: var(--usage-dashboard-surface);
flex: 0 0 auto;
}
.usage-dashboard__icon-button {
width: 36px;
height: 36px;
min-width: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
border: 1px solid var(--usage-dashboard-border);
border-radius: 7px;
background: var(--usage-dashboard-surface-soft);
color: var(--usage-dashboard-text-secondary);
cursor: pointer;
font: inherit;
font-size: 20px;
line-height: 1;
transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.usage-dashboard__icon-button:hover,
.usage-dashboard__icon-button:focus-visible {
color: var(--usage-dashboard-accent);
background: var(--usage-dashboard-accent-soft);
border-color: color-mix(in srgb, var(--usage-dashboard-accent) 36%, transparent);
outline: none;
}
.usage-dashboard__icon-button:focus-visible,
.usage-dashboard__period:focus-visible,
.usage-dashboard__apply:focus-visible,
.usage-dashboard__row-action:focus-visible,
.usage-dashboard__session-link:focus-visible,
.usage-dashboard__dates input:focus-visible {
outline: 2px solid var(--usage-dashboard-accent);
outline-offset: 2px;
}
.usage-dashboard__heading {
min-width: 0;
}
.usage-dashboard__heading h2,
.usage-dashboard__panel-heading h3 {
margin: 0;
color: var(--usage-dashboard-text);
letter-spacing: 0;
}
.usage-dashboard__heading h2 {
font-size: 18px;
line-height: 1.2;
}
.usage-dashboard__heading p,
.usage-dashboard__panel-heading p {
margin: 3px 0 0;
color: var(--usage-dashboard-text-muted);
font-size: 11px;
line-height: 1.4;
letter-spacing: 0;
}
.usage-dashboard__header-actions {
display: flex;
align-items: center;
gap: 10px;
}
.usage-dashboard__generated-at {
color: var(--usage-dashboard-text-muted);
font-size: 11px;
white-space: nowrap;
}
.usage-dashboard__toolbar {
min-height: 54px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
padding: 9px 22px;
border-bottom: 1px solid var(--usage-dashboard-border);
background: var(--usage-dashboard-surface-soft);
flex: 0 0 auto;
}
.usage-dashboard__periods {
display: inline-grid;
grid-template-columns: repeat(2, minmax(66px, 1fr));
padding: 3px;
border: 1px solid var(--usage-dashboard-border);
border-radius: 8px;
background: var(--usage-dashboard-surface);
}
.usage-dashboard__period,
.usage-dashboard__apply {
min-height: 30px;
padding: 0 12px;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--usage-dashboard-text-secondary);
cursor: pointer;
font: inherit;
font-size: 12px;
font-weight: 700;
letter-spacing: 0;
}
.usage-dashboard__period[aria-pressed='true'] {
background: var(--usage-dashboard-accent);
color: var(--usage-dashboard-accent-ink);
}
.usage-dashboard__dates {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
color: var(--usage-dashboard-text-muted);
font-size: 12px;
}
.usage-dashboard__dates label {
display: inline-flex;
align-items: center;
gap: 6px;
white-space: nowrap;
}
.usage-dashboard__dates input {
height: 32px;
box-sizing: border-box;
padding: 0 8px;
border: 1px solid var(--usage-dashboard-border);
border-radius: 6px;
background: var(--usage-dashboard-surface);
color: var(--usage-dashboard-text);
color-scheme: light;
font: inherit;
font-size: 12px;
}
.usage-dashboard__apply {
min-width: 54px;
border: 1px solid var(--usage-dashboard-border);
background: var(--usage-dashboard-surface);
}
.usage-dashboard__apply:hover {
color: var(--usage-dashboard-accent);
border-color: color-mix(in srgb, var(--usage-dashboard-accent) 38%, transparent);
}
.usage-dashboard__body {
min-width: 0;
min-height: 0;
overflow: auto;
padding: 18px 22px 32px;
overscroll-behavior: contain;
scrollbar-gutter: stable;
}
.usage-dashboard__error {
margin-bottom: 14px;
padding: 10px 12px;
border: 1px solid var(--usage-dashboard-border);
border-radius: 7px;
background: var(--usage-dashboard-surface);
color: var(--usage-dashboard-text-secondary);
font-size: 12px;
}
.usage-dashboard__error {
color: var(--usage-dashboard-danger);
border-color: color-mix(in srgb, var(--usage-dashboard-danger) 30%, transparent);
background: color-mix(in srgb, var(--usage-dashboard-danger) 7%, var(--usage-dashboard-surface));
}
.usage-dashboard__metric-grid {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 10px;
}
.usage-dashboard__metric {
min-width: 0;
min-height: 102px;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 14px;
border: 1px solid var(--usage-dashboard-border);
border-radius: 8px;
background: var(--usage-dashboard-surface);
}
.usage-dashboard__metric > span {
color: var(--usage-dashboard-text-secondary);
font-size: 12px;
font-weight: 700;
}
.usage-dashboard__metric strong {
min-width: 0;
overflow: hidden;
color: var(--usage-dashboard-text);
font-size: 28px;
line-height: 1;
font-variant-numeric: tabular-nums;
text-overflow: ellipsis;
white-space: nowrap;
letter-spacing: 0;
}
.usage-dashboard__metric small {
min-height: 15px;
overflow: hidden;
color: var(--usage-dashboard-text-muted);
font-size: 10px;
line-height: 1.5;
text-overflow: ellipsis;
white-space: nowrap;
}
.usage-dashboard__metric--danger strong,
.usage-dashboard__failure-text {
color: var(--usage-dashboard-danger);
}
.usage-dashboard__content-grid {
display: grid;
grid-template-columns: minmax(0, 2.4fr) minmax(250px, 1fr);
gap: 12px;
margin-top: 12px;
}
.usage-dashboard__content-grid--lower {
grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.7fr);
}
.usage-dashboard__panel {
min-width: 0;
margin-top: 12px;
padding: 15px;
border: 1px solid var(--usage-dashboard-border);
border-radius: 8px;
background: var(--usage-dashboard-surface);
}
.usage-dashboard__content-grid > .usage-dashboard__panel {
margin-top: 0;
}
.usage-dashboard__panel-heading {
min-width: 0;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
margin-bottom: 13px;
}
.usage-dashboard__panel-heading h3 {
font-size: 13px;
line-height: 1.3;
}
.usage-dashboard__chart-wrap {
width: 100%;
aspect-ratio: 720 / 280;
min-height: 220px;
}
.usage-dashboard__chart {
display: block;
width: 100%;
height: 100%;
overflow: visible;
}
.usage-dashboard__status-list {
display: grid;
gap: 18px;
}
.usage-dashboard__status > div {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 7px;
color: var(--usage-dashboard-text-secondary);
font-size: 11px;
}
.usage-dashboard__status strong {
color: var(--usage-dashboard-text);
font-size: 16px;
font-variant-numeric: tabular-nums;
}
.usage-dashboard__status-track {
display: block;
height: 6px;
overflow: hidden;
border-radius: 3px;
background: var(--usage-dashboard-surface-muted);
}
.usage-dashboard__status-track > span {
display: block;
height: 100%;
min-width: 2px;
border-radius: inherit;
background: var(--usage-dashboard-text-muted);
}
.usage-dashboard__status--success .usage-dashboard__status-track > span { background: var(--usage-dashboard-success); }
.usage-dashboard__status--failure .usage-dashboard__status-track > span { background: var(--usage-dashboard-danger); }
.usage-dashboard__status--other .usage-dashboard__status-track > span { background: var(--usage-dashboard-info); }
.usage-dashboard__table-wrap {
width: 100%;
max-width: 100%;
overflow-x: auto;
overscroll-behavior-inline: contain;
}
.usage-dashboard__table {
width: 100%;
min-width: 620px;
border-collapse: collapse;
table-layout: fixed;
color: var(--usage-dashboard-text-secondary);
font-size: 11px;
}
.usage-dashboard__table th,
.usage-dashboard__table td {
padding: 10px 9px;
border-bottom: 1px solid color-mix(in srgb, var(--usage-dashboard-border) 72%, transparent);
text-align: right;
vertical-align: middle;
font-variant-numeric: tabular-nums;
}
.usage-dashboard__table th {
color: var(--usage-dashboard-text-muted);
background: color-mix(in srgb, var(--usage-dashboard-surface-soft) 74%, transparent);
font-size: 10px;
font-weight: 700;
letter-spacing: 0;
}
.usage-dashboard__table th:first-child,
.usage-dashboard__table td:first-child {
width: 42%;
text-align: left;
}
.usage-dashboard__table th:last-child,
.usage-dashboard__table td:last-child {
width: 42px;
}
.usage-dashboard__table tbody tr:hover {
background: color-mix(in srgb, var(--usage-dashboard-accent-soft) 62%, transparent);
}
.usage-dashboard__table tbody tr:last-child td {
border-bottom: 0;
}
.usage-dashboard__tool-server {
display: block;
overflow: hidden;
margin-bottom: 2px;
color: var(--usage-dashboard-text-muted);
font-size: 9px;
text-overflow: ellipsis;
white-space: nowrap;
}
.usage-dashboard__table td strong,
.usage-dashboard__session-link {
display: block;
min-width: 0;
overflow: hidden;
color: var(--usage-dashboard-text);
font-size: 11px;
text-overflow: ellipsis;
white-space: nowrap;
}
.usage-dashboard__row-action {
width: 28px;
height: 28px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
border: 1px solid transparent;
border-radius: 6px;
background: transparent;
color: var(--usage-dashboard-text-muted);
cursor: pointer;
font: inherit;
font-size: 20px;
}
.usage-dashboard__row-action:hover {
color: var(--usage-dashboard-accent);
background: var(--usage-dashboard-accent-soft);
}
.usage-dashboard__badge {
display: inline-flex;
align-items: center;
min-height: 22px;
padding: 0 7px;
border-radius: 6px;
font-size: 10px;
font-weight: 700;
}
.usage-dashboard__badge--success {
color: var(--usage-dashboard-success);
background: color-mix(in srgb, var(--usage-dashboard-success) 11%, transparent);
}
.usage-dashboard__badge--failure {
color: var(--usage-dashboard-danger);
background: color-mix(in srgb, var(--usage-dashboard-danger) 11%, transparent);
}
.usage-dashboard__badge--other {
color: var(--usage-dashboard-info);
background: color-mix(in srgb, var(--usage-dashboard-info) 11%, transparent);
}
.usage-dashboard__rank-list {
list-style: none;
display: grid;
gap: 2px;
margin: 0;
padding: 0;
}
.usage-dashboard__rank-list li {
min-width: 0;
min-height: 40px;
display: grid;
grid-template-columns: 28px minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
padding: 5px 6px;
border-bottom: 1px solid color-mix(in srgb, var(--usage-dashboard-border) 65%, transparent);
}
.usage-dashboard__rank-list li:last-child { border-bottom: 0; }
.usage-dashboard__rank { color: var(--usage-dashboard-text-muted); font-size: 10px; }
.usage-dashboard__rank-list strong {
overflow: hidden;
color: var(--usage-dashboard-text);
font-size: 11px;
text-overflow: ellipsis;
white-space: nowrap;
}
.usage-dashboard__rank-list li > span:last-child { color: var(--usage-dashboard-text-secondary); font-size: 10px; }
.usage-dashboard__session-link {
width: 100%;
padding: 3px 0;
border: 0;
background: transparent;
cursor: pointer;
text-align: left;
}
.usage-dashboard__session-link:hover { color: var(--usage-dashboard-accent); }
.usage-dashboard__empty {
padding: 18px 8px;
color: var(--usage-dashboard-text-muted);
font-size: 11px;
text-align: center;
}
.usage-dashboard__detail {
scroll-margin-top: 12px;
border-color: color-mix(in srgb, var(--usage-dashboard-accent) 34%, var(--usage-dashboard-border));
}
@keyframes usageDashboardIn {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes usageDashboardSpin {
to { transform: rotate(360deg); }
}
@media (max-width: 1180px) {
.usage-dashboard__metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usage-dashboard__content-grid,
.usage-dashboard__content-grid--lower { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
.sidebar-footer-actions .settings-btn,
.usage-dashboard-open {
width: 44px;
height: 44px;
min-width: 44px;
}
.usage-dashboard__header {
grid-template-columns: 44px minmax(0, 1fr) 44px;
gap: 8px;
padding: 8px 12px;
}
.usage-dashboard__icon-button {
width: 44px;
height: 44px;
min-width: 44px;
}
.usage-dashboard__generated-at { display: none; }
.usage-dashboard__toolbar {
align-items: stretch;
flex-direction: column;
padding: 10px 12px;
}
.usage-dashboard__periods { width: 100%; }
.usage-dashboard__period,
.usage-dashboard__apply { min-height: 40px; }
.usage-dashboard__dates { justify-content: stretch; flex-wrap: wrap; }
.usage-dashboard__dates label { flex: 1 1 130px; }
.usage-dashboard__dates input { width: 100%; height: 40px; }
.usage-dashboard__apply { flex: 1 1 64px; }
.usage-dashboard__body { padding: 12px 12px calc(24px + var(--safe-bottom)); }
.usage-dashboard__metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.usage-dashboard__metric { min-height: 96px; padding: 12px; }
.usage-dashboard__metric strong { font-size: 24px; }
.usage-dashboard__panel { padding: 12px; }
.usage-dashboard__panel-heading { flex-direction: column; }
.usage-dashboard__chart-wrap { min-height: 190px; }
.usage-dashboard__row-action { width: 44px; height: 44px; }
}
@media (max-width: 420px) {
.usage-dashboard__heading h2 { font-size: 16px; }
.usage-dashboard__heading p {
max-width: 210px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.usage-dashboard__dates > span { display: none; }
.usage-dashboard__metric-grid { gap: 8px; }
.usage-dashboard__metric { min-height: 90px; padding: 10px; }
.usage-dashboard__metric > span { font-size: 11px; }
.usage-dashboard__metric strong { font-size: 22px; }
.usage-dashboard__metric small { font-size: 9px; }
}
/* 使用统计原型版式:信息架构固定,主题只覆盖语义变量。 */
.usage-dashboard {
--usage-dashboard-bg: color-mix(in srgb, var(--bg-primary) 94%, #eef3fa);
--usage-dashboard-surface: var(--surface-strong);
--usage-dashboard-surface-soft: color-mix(in srgb, var(--bg-secondary) 72%, var(--surface-strong));
--usage-dashboard-surface-muted: var(--bg-tertiary);
--usage-dashboard-panel-shadow: 0 1px 2px rgba(15, 23, 42, 0.045), 0 4px 14px rgba(15, 23, 42, 0.025);
--usage-dashboard-metric-sessions: #357df2;
--usage-dashboard-metric-messages: #2bb7a7;
--usage-dashboard-metric-mcp: #8c68e8;
--usage-dashboard-metric-failure: #ef6a54;
--usage-dashboard-metric-projects: #f0ad35;
}
.usage-dashboard__header {
min-height: 58px;
grid-template-columns: minmax(0, 1fr) auto;
gap: 18px;
padding: 11px 15px 5px;
border-bottom: 0;
background: var(--usage-dashboard-bg);
}
.usage-dashboard__heading h2 {
font-size: 22px;
font-weight: 760;
line-height: 1.15;
}
.usage-dashboard__heading p {
max-width: 760px;
margin-top: 4px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.usage-dashboard__header-actions {
gap: 8px;
}
.usage-dashboard__refresh {
min-width: 76px;
height: 34px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
padding: 0 13px;
border: 1px solid var(--usage-dashboard-border);
border-radius: 6px;
background: var(--usage-dashboard-surface);
color: var(--usage-dashboard-text-secondary);
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
cursor: pointer;
font: inherit;
font-size: 12px;
font-weight: 650;
letter-spacing: 0;
}
.usage-dashboard__refresh:is(:hover, :focus-visible) {
color: var(--usage-dashboard-accent);
border-color: color-mix(in srgb, var(--usage-dashboard-accent) 38%, var(--usage-dashboard-border));
outline: none;
}
.usage-dashboard__refresh:focus-visible,
.usage-dashboard__session-action:focus-visible,
.usage-dashboard__rate-action:focus-visible {
outline: 2px solid var(--usage-dashboard-accent);
outline-offset: 2px;
}
.usage-dashboard__refresh:disabled {
cursor: wait;
opacity: 0.68;
}
.usage-dashboard[data-state='loading'] .usage-dashboard__refresh svg {
animation: usageDashboardSpin 800ms linear infinite;
}
.usage-dashboard__back {
width: 34px;
height: 34px;
min-width: 34px;
background: var(--usage-dashboard-surface);
}
.usage-dashboard__toolbar {
min-height: 48px;
align-items: center;
justify-content: flex-start;
padding: 4px 15px 10px;
border-bottom: 0;
background: var(--usage-dashboard-bg);
}
.usage-dashboard__filters {
min-width: 0;
display: flex;
align-items: center;
gap: 14px;
}
.usage-dashboard__periods {
grid-template-columns: repeat(3, minmax(64px, 1fr));
padding: 0;
overflow: hidden;
border-radius: 6px;
background: var(--usage-dashboard-surface);
}
.usage-dashboard__period {
min-height: 32px;
border-radius: 0;
font-weight: 550;
}
.usage-dashboard__period + .usage-dashboard__period {
border-left: 1px solid var(--usage-dashboard-border);
}
.usage-dashboard__period[aria-pressed='true'] {
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--usage-dashboard-accent) 24%, transparent);
}
.usage-dashboard__dates {
min-height: 34px;
justify-content: flex-start;
gap: 0;
padding-left: 10px;
overflow: hidden;
border: 1px solid var(--usage-dashboard-border);
border-radius: 6px;
background: var(--usage-dashboard-surface);
}
.usage-dashboard__date-icon {
width: 20px;
display: inline-flex;
align-items: center;
justify-content: flex-start;
color: var(--usage-dashboard-text-muted);
}
.usage-dashboard__date-separator {
color: var(--usage-dashboard-text-muted);
font-size: 11px;
}
.usage-dashboard__dates label {
display: block;
}
.usage-dashboard__dates input {
width: 126px;
height: 32px;
padding: 0 8px;
border: 0;
border-radius: 0;
background: transparent;
font-size: 11px;
}
.usage-dashboard__dates input:focus-visible {
outline-offset: -2px;
}
.usage-dashboard__apply {
align-self: stretch;
min-width: 58px;
min-height: 32px;
border: 0;
border-left: 1px solid var(--usage-dashboard-border);
border-radius: 0;
background: var(--usage-dashboard-surface-soft);
}
.usage-dashboard__body {
padding: 8px 14px 30px;
}
.usage-dashboard__error {
margin-bottom: 10px;
}
.usage-dashboard__metric-grid {
gap: 12px;
}
.usage-dashboard__metric {
--usage-metric-color: var(--usage-dashboard-accent);
position: relative;
min-height: 110px;
display: grid;
grid-template-columns: 38px minmax(0, 1fr) 54px;
align-items: center;
gap: 7px;
padding: 11px;
overflow: hidden;
border-radius: 8px;
box-shadow: var(--usage-dashboard-panel-shadow);
}
.usage-dashboard__metric--sessions { --usage-metric-color: var(--usage-dashboard-metric-sessions); }
.usage-dashboard__metric--messages { --usage-metric-color: var(--usage-dashboard-metric-messages); }
.usage-dashboard__metric--mcp { --usage-metric-color: var(--usage-dashboard-metric-mcp); }
.usage-dashboard__metric--danger { --usage-metric-color: var(--usage-dashboard-metric-failure); }
.usage-dashboard__metric--projects { --usage-metric-color: var(--usage-dashboard-metric-projects); }
.usage-dashboard__metric > .usage-dashboard__metric-icon {
width: 38px;
height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: var(--usage-metric-color);
color: #fff;
box-shadow: 0 8px 18px color-mix(in srgb, var(--usage-metric-color) 22%, transparent);
}
.usage-dashboard__metric-icon svg {
width: 21px;
height: 21px;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
}
.usage-dashboard__metric-copy {
min-width: 0;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
}
.usage-dashboard__metric-label {
max-width: 100%;
overflow: hidden;
color: var(--usage-dashboard-text-secondary);
font-size: 9.5px;
font-weight: 650;
text-overflow: ellipsis;
white-space: nowrap;
}
.usage-dashboard__metric-info,
.usage-dashboard__title-info {
width: 12px;
height: 12px;
display: inline-flex;
align-items: center;
justify-content: center;
margin-left: 3px;
border: 1px solid currentColor;
border-radius: 50%;
color: var(--usage-dashboard-text-muted);
font-size: 7px;
font-style: normal;
font-weight: 700;
line-height: 1;
vertical-align: 1px;
}
.usage-dashboard__metric-copy strong {
max-width: 100%;
overflow: hidden;
color: var(--usage-dashboard-text);
font-size: 23px;
font-weight: 760;
line-height: 1;
text-overflow: ellipsis;
white-space: nowrap;
}
.usage-dashboard__metric-copy small {
max-width: 100%;
min-height: 14px;
overflow: hidden;
color: var(--usage-dashboard-text-muted);
font-size: 8px;
line-height: 1.45;
text-overflow: ellipsis;
white-space: nowrap;
}
.usage-dashboard__metric--danger .usage-dashboard__metric-copy strong {
color: var(--usage-dashboard-text);
}
.usage-dashboard__sparkline {
width: 100%;
height: 42px;
display: block;
overflow: visible;
color: var(--usage-metric-color);
}
.usage-dashboard__content-grid {
gap: 12px;
margin-top: 12px;
}
.usage-dashboard__content-grid--primary,
.usage-dashboard__content-grid--lower {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.usage-dashboard__panel {
margin-top: 12px;
padding: 13px 14px;
border-radius: 8px;
box-shadow: var(--usage-dashboard-panel-shadow);
}
.usage-dashboard__content-grid > .usage-dashboard__panel {
margin-top: 0;
}
.usage-dashboard__panel--trend,
.usage-dashboard__panel--mcp {
min-height: 306px;
}
.usage-dashboard__panel--status,
.usage-dashboard__panel--projects {
min-height: 218px;
}
.usage-dashboard__panel-heading {
align-items: center;
margin-bottom: 10px;
}
.usage-dashboard__panel-heading h3 {
font-size: 13px;
font-weight: 740;
}
.usage-dashboard__panel-heading p {
margin-top: 2px;
font-size: 9px;
}
.usage-dashboard__trend-tools {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
}
.usage-dashboard__grain {
min-width: 44px;
min-height: 26px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid color-mix(in srgb, var(--usage-dashboard-accent) 24%, var(--usage-dashboard-border));
border-radius: 5px;
background: var(--usage-dashboard-accent-soft);
color: var(--usage-dashboard-accent);
font-size: 10px;
font-weight: 700;
}
.usage-dashboard__chart-wrap {
min-height: 234px;
aspect-ratio: auto;
}
.usage-dashboard__chart {
height: 234px;
}
.usage-dashboard__status-list {
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
}
.usage-dashboard__status-card {
min-width: 0;
min-height: 154px;
padding: 10px;
border: 1px solid color-mix(in srgb, var(--usage-dashboard-border) 76%, transparent);
border-radius: 7px;
background: color-mix(in srgb, var(--usage-dashboard-surface) 92%, var(--usage-dashboard-surface-soft));
}
.usage-dashboard__status-card h4 {
margin: 0 0 10px;
color: var(--usage-dashboard-text-secondary);
font-size: 10px;
font-weight: 650;
letter-spacing: 0;
}
.usage-dashboard__status-content {
min-width: 0;
display: grid;
grid-template-columns: 78px minmax(0, 1fr);
align-items: center;
gap: 9px;
}
.usage-dashboard__donut-chart {
width: 78px;
height: 78px;
}
.usage-dashboard__status-legend {
min-width: 0;
display: grid;
gap: 7px;
}
.usage-dashboard__status-legend > div {
min-width: 0;
display: grid;
gap: 2px;
}
.usage-dashboard__status-legend span,
.usage-dashboard__status-legend strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.usage-dashboard__status-legend span {
position: relative;
padding-left: 9px;
color: var(--usage-dashboard-text-muted);
font-size: 8px;
}
.usage-dashboard__status-legend span::before {
content: '';
position: absolute;
left: 0;
top: 50%;
width: 5px;
height: 5px;
transform: translateY(-50%);
border-radius: 50%;
background: var(--usage-segment-color);
}
.usage-dashboard__status-legend strong {
color: var(--usage-dashboard-text-secondary);
font-size: 8px;
font-weight: 550;
font-variant-numeric: tabular-nums;
}
.usage-dashboard__table {
min-width: 640px;
font-size: 10px;
}
.usage-dashboard__table--mcp {
min-width: 520px;
}
.usage-dashboard__table th,
.usage-dashboard__table td {
padding: 8px 8px;
}
.usage-dashboard__table th {
height: 30px;
font-size: 9px;
}
.usage-dashboard__table--mcp th,
.usage-dashboard__table--mcp td {
padding-block: 5px;
}
.usage-dashboard__metric--projects .usage-dashboard__metric-label {
font-size: 9px;
}
.usage-dashboard__table--mcp th:first-child,
.usage-dashboard__table--mcp td:first-child {
width: 7%;
text-align: center;
}
.usage-dashboard__table--mcp th:nth-child(2),
.usage-dashboard__table--mcp td:nth-child(2) {
width: 35%;
text-align: left;
}
.usage-dashboard__table--mcp th:nth-child(3),
.usage-dashboard__table--mcp td:nth-child(3),
.usage-dashboard__table--mcp th:nth-child(4),
.usage-dashboard__table--mcp td:nth-child(4),
.usage-dashboard__table--mcp th:nth-child(5),
.usage-dashboard__table--mcp td:nth-child(5) {
width: 13%;
}
.usage-dashboard__table--mcp th:last-child,
.usage-dashboard__table--mcp td:last-child {
width: 19%;
}
.usage-dashboard__table-rank {
color: var(--usage-dashboard-text-muted);
}
.usage-dashboard__tool-name {
min-width: 0;
display: flex;
align-items: center;
overflow: hidden;
white-space: nowrap;
}
.usage-dashboard__tool-server,
.usage-dashboard__tool-name strong {
display: inline;
overflow: hidden;
margin: 0;
font-size: 10px;
text-overflow: ellipsis;
white-space: nowrap;
}
.usage-dashboard__tool-server {
flex: 0 1 auto;
color: var(--usage-dashboard-text-secondary);
}
.usage-dashboard__tool-separator {
flex: 0 0 auto;
color: var(--usage-dashboard-text-muted);
}
.usage-dashboard__tool-name strong {
flex: 1 1 auto;
color: var(--usage-dashboard-text);
}
.usage-dashboard__success-text {
color: var(--usage-dashboard-success);
}
.usage-dashboard__rate-action {
width: 100%;
min-height: 24px;
display: grid;
grid-template-columns: minmax(26px, 1fr) auto;
align-items: center;
gap: 7px;
padding: 0;
border: 0;
background: transparent;
color: var(--usage-dashboard-text-secondary);
cursor: pointer;
font: inherit;
}
.usage-dashboard__rate-action:hover {
color: var(--usage-dashboard-accent);
}
.usage-dashboard__rate-track {
height: 3px;
display: block;
overflow: hidden;
border-radius: 2px;
background: var(--usage-dashboard-surface-muted);
}
.usage-dashboard__rate-track > span {
display: block;
height: 100%;
border-radius: inherit;
background: var(--usage-dashboard-accent);
}
.usage-dashboard__rate-action strong {
font-size: 9px;
font-weight: 550;
font-variant-numeric: tabular-nums;
}
.usage-dashboard__rank-head,
.usage-dashboard__rank-list li {
grid-template-columns: 42px minmax(0, 1fr) 60px 70px 60px;
gap: 8px;
}
.usage-dashboard__rank-head {
min-height: 28px;
display: grid;
align-items: center;
padding: 0 8px;
background: color-mix(in srgb, var(--usage-dashboard-surface-soft) 74%, transparent);
color: var(--usage-dashboard-text-muted);
font-size: 9px;
}
.usage-dashboard__rank-head span:nth-child(n + 3) {
text-align: right;
}
.usage-dashboard__rank-list {
gap: 0;
}
.usage-dashboard__rank-list li {
min-height: 30px;
padding: 4px 8px;
}
.usage-dashboard__rank-list strong {
font-size: 10px;
}
.usage-dashboard__rank-count {
color: var(--usage-dashboard-text-secondary);
font-size: 9px;
text-align: right;
font-variant-numeric: tabular-nums;
}
.usage-dashboard__panel--sessions {
padding-bottom: 10px;
}
.usage-dashboard__table--sessions {
min-width: 820px;
}
.usage-dashboard__session-project {
max-width: 180px;
overflow: hidden;
color: var(--usage-dashboard-text-secondary);
text-overflow: ellipsis;
white-space: nowrap;
}
.usage-dashboard__table--sessions th:first-child,
.usage-dashboard__table--sessions td:first-child {
width: 34%;
}
.usage-dashboard__table--sessions th:nth-child(2),
.usage-dashboard__table--sessions td:nth-child(2),
.usage-dashboard__table--sessions th:nth-child(3),
.usage-dashboard__table--sessions td:nth-child(3),
.usage-dashboard__table--sessions th:nth-child(4),
.usage-dashboard__table--sessions td:nth-child(4) {
width: 12%;
}
.usage-dashboard__table--sessions th:nth-child(5),
.usage-dashboard__table--sessions td:nth-child(5) {
width: 20%;
}
.usage-dashboard__table--sessions th:last-child,
.usage-dashboard__table--sessions td:last-child {
width: 10%;
}
.usage-dashboard__session-action {
min-height: 28px;
padding: 0 7px;
border: 0;
border-radius: 5px;
background: transparent;
color: var(--usage-dashboard-accent);
cursor: pointer;
font: inherit;
font-size: 9px;
font-weight: 650;
}
.usage-dashboard__session-action:hover {
background: var(--usage-dashboard-accent-soft);
}
@media (max-width: 1180px) {
.usage-dashboard__metric-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.usage-dashboard__content-grid--primary,
.usage-dashboard__content-grid--lower {
grid-template-columns: minmax(0, 1fr);
}
.usage-dashboard__panel--trend,
.usage-dashboard__panel--mcp,
.usage-dashboard__panel--status,
.usage-dashboard__panel--projects {
min-height: 0;
}
}
@media (max-width: 768px) {
.usage-dashboard__header {
grid-template-columns: minmax(0, 1fr) auto;
padding: 8px 12px 4px;
}
.usage-dashboard__heading p {
max-width: 280px;
}
.usage-dashboard__refresh {
width: 44px;
min-width: 44px;
height: 44px;
padding: 0;
}
.usage-dashboard__refresh span {
display: none;
}
.usage-dashboard__back {
width: 44px;
height: 44px;
min-width: 44px;
}
.usage-dashboard__toolbar {
padding: 7px 12px 10px;
}
.usage-dashboard__filters {
width: 100%;
align-items: stretch;
flex-direction: column;
gap: 8px;
}
.usage-dashboard__dates {
width: 100%;
flex-wrap: nowrap;
}
.usage-dashboard__dates label {
flex: 1 1 0;
min-width: 0;
}
.usage-dashboard__dates input {
width: 100%;
height: 40px;
}
.usage-dashboard__apply {
min-height: 40px;
}
.usage-dashboard__metric {
min-height: 104px;
grid-template-columns: 42px minmax(0, 1fr) minmax(52px, 72px);
gap: 9px;
}
.usage-dashboard__metric-icon {
width: 42px;
height: 42px;
}
.usage-dashboard__panel-heading {
align-items: flex-start;
flex-direction: row;
}
.usage-dashboard__trend-tools {
align-items: flex-end;
flex-direction: column-reverse;
gap: 5px;
}
.usage-dashboard__status-list {
grid-template-columns: minmax(0, 1fr);
}
.usage-dashboard__status-card {
min-height: 0;
}
.usage-dashboard__status-content {
grid-template-columns: 88px minmax(0, 1fr);
}
.usage-dashboard__donut-chart {
width: 88px;
height: 88px;
}
}
@media (max-width: 560px) {
.usage-dashboard__heading p {
display: none;
}
.usage-dashboard__metric-grid {
grid-template-columns: minmax(0, 1fr);
}
.usage-dashboard__metric {
min-height: 92px;
grid-template-columns: 42px minmax(0, 1fr) 88px;
}
.usage-dashboard__rank-head,
.usage-dashboard__rank-list li {
grid-template-columns: 30px minmax(0, 1fr) 46px 46px 42px;
gap: 4px;
}
}
/* 使用统计产品化层:以连续指标带、分栏和抽屉建立阅读节奏。 */
.usage-dashboard {
--usage-dashboard-panel-shadow: none;
--usage-dashboard-divider: color-mix(in srgb, var(--usage-dashboard-border) 72%, transparent);
--usage-dashboard-metric-sessions: var(--usage-dashboard-accent);
--usage-dashboard-metric-messages: var(--usage-dashboard-accent);
--usage-dashboard-metric-mcp: color-mix(in srgb, var(--usage-dashboard-accent) 78%, var(--usage-dashboard-text));
--usage-dashboard-metric-projects: color-mix(in srgb, var(--usage-dashboard-accent) 56%, var(--usage-dashboard-text));
}
.usage-dashboard__header {
min-height: 62px;
padding: 14px 20px 5px;
}
.usage-dashboard__heading h2 {
font-size: 20px;
letter-spacing: -0.02em;
}
.usage-dashboard__heading p {
max-width: 820px;
color: var(--usage-dashboard-text-muted);
font-size: 10px;
}
.usage-dashboard__toolbar {
min-height: 47px;
padding: 5px 20px 13px;
border-bottom: 1px solid var(--usage-dashboard-divider);
background: transparent;
}
.usage-dashboard__filters { gap: 12px; }
.usage-dashboard__periods {
border-color: var(--usage-dashboard-divider);
background: var(--usage-dashboard-surface);
}
.usage-dashboard__period[aria-pressed='true'] {
background: var(--usage-dashboard-accent);
color: var(--usage-dashboard-accent-ink);
box-shadow: none;
}
.usage-dashboard__dates {
border-color: var(--usage-dashboard-divider);
background: var(--usage-dashboard-surface);
}
.usage-dashboard__body { padding: 16px 20px 34px; }
.usage-dashboard__metric-grid {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 0;
overflow: hidden;
border: 1px solid var(--usage-dashboard-divider);
border-radius: 12px;
background: var(--usage-dashboard-surface);
}
.usage-dashboard__metric {
min-height: 94px;
display: grid;
grid-template-columns: 34px minmax(0, 1fr) 50px;
gap: 10px;
padding: 13px 14px;
border: 0;
border-right: 1px solid var(--usage-dashboard-divider);
border-radius: 0;
background: transparent;
box-shadow: none;
}
.usage-dashboard__metric:last-child { border-right: 0; }
.usage-dashboard__metric > .usage-dashboard__metric-icon {
width: 32px;
height: 32px;
border: 1px solid color-mix(in srgb, var(--usage-dashboard-accent) 34%, var(--usage-dashboard-border));
border-radius: 9px 5px 9px 5px;
background: color-mix(in srgb, var(--usage-dashboard-accent) 9%, transparent);
color: var(--usage-dashboard-accent);
box-shadow: none;
}
.usage-dashboard__metric--danger > .usage-dashboard__metric-icon {
border-color: color-mix(in srgb, var(--usage-dashboard-danger) 38%, var(--usage-dashboard-border));
background: color-mix(in srgb, var(--usage-dashboard-danger) 9%, transparent);
color: var(--usage-dashboard-danger);
}
.usage-dashboard__metric-icon svg {
width: 19px;
height: 19px;
stroke-width: 1.65;
}
.usage-dashboard__metric-label {
color: var(--usage-dashboard-text-muted);
font-size: 10px;
font-weight: 650;
}
.usage-dashboard__metric-copy strong {
font-size: 24px;
font-weight: 760;
}
.usage-dashboard__metric-copy small { font-size: 8.5px; }
.usage-dashboard__sparkline {
height: 38px;
color: var(--usage-metric-color);
opacity: 0.72;
}
.usage-dashboard__content-grid {
gap: 0;
margin-top: 18px;
border-top: 1px solid var(--usage-dashboard-divider);
border-bottom: 1px solid var(--usage-dashboard-divider);
}
.usage-dashboard__content-grid > .usage-dashboard__panel {
padding: 17px 0 18px;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
}
.usage-dashboard__content-grid > .usage-dashboard__panel + .usage-dashboard__panel {
margin-left: 22px;
padding-left: 22px;
border-left: 1px solid var(--usage-dashboard-divider);
}
.usage-dashboard__panel-heading { margin-bottom: 12px; }
.usage-dashboard__panel-heading h3 {
font-size: 13px;
letter-spacing: -0.01em;
}
.usage-dashboard__panel-heading p {
max-width: 520px;
color: var(--usage-dashboard-text-muted);
font-size: 9px;
}
.usage-dashboard__grain {
min-width: 0;
min-height: 0;
padding: 0;
border: 0;
background: transparent;
color: var(--usage-dashboard-text-muted);
font-size: 9px;
font-weight: 600;
}
.usage-dashboard__chart-wrap,
.usage-dashboard__chart { height: 232px; }
.usage-dashboard__panel--trend,
.usage-dashboard__panel--mcp {
min-height: 0;
}
.usage-dashboard__status-list {
gap: 0;
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.usage-dashboard__status-card {
min-height: 148px;
padding: 9px 12px;
border: 0;
border-radius: 0;
background: transparent;
}
.usage-dashboard__status-card + .usage-dashboard__status-card {
border-left: 1px solid var(--usage-dashboard-divider);
}
.usage-dashboard__status-card h4 {
margin-bottom: 12px;
color: var(--usage-dashboard-text-muted);
font-size: 9px;
font-weight: 650;
}
.usage-dashboard__table {
min-width: 0;
font-size: 10px;
}
.usage-dashboard__table th,
.usage-dashboard__table td { padding-block: 8px; }
.usage-dashboard__table--mcp th,
.usage-dashboard__table--mcp td { padding-block: 5px; }
.usage-dashboard__table--mcp { min-width: 480px; }
.usage-dashboard__table--sessions { min-width: 820px; }
.usage-dashboard__table th { background: transparent; }
.usage-dashboard__table tbody tr:hover {
background: color-mix(in srgb, var(--usage-dashboard-accent-soft) 55%, transparent);
}
.usage-dashboard__list-more {
display: inline-flex;
align-items: center;
min-height: 24px;
margin: 4px 0 0 auto;
padding: 0 8px;
border: 0;
border-radius: 5px;
background: transparent;
color: var(--usage-dashboard-accent);
cursor: pointer;
font: inherit;
font-size: 10px;
font-weight: 650;
}
.usage-dashboard__list-more:hover,
.usage-dashboard__list-more:focus-visible {
background: var(--usage-dashboard-accent-soft);
outline: none;
}
.usage-dashboard__rank-head {
border-bottom: 1px solid var(--usage-dashboard-divider);
background: transparent;
}
.usage-dashboard__panel--sessions {
margin-top: 18px;
padding: 15px 0 6px;
border: 0;
border-top: 1px solid var(--usage-dashboard-divider);
border-radius: 0;
background: transparent;
box-shadow: none;
}
.usage-dashboard__detail-scrim {
position: absolute;
inset: 0;
z-index: 4;
display: block;
width: 100%;
height: 100%;
border: 0;
background: color-mix(in srgb, #0b1220 20%, transparent);
cursor: pointer;
backdrop-filter: blur(2px);
}
.usage-dashboard__detail {
position: absolute;
inset: 0 0 0 auto;
z-index: 5;
width: min(470px, calc(100% - 18px));
height: 100%;
box-sizing: border-box;
margin: 0;
overflow: auto;
padding: 20px 20px 28px;
border: 0;
border-left: 1px solid var(--usage-dashboard-divider);
border-radius: 0;
background: var(--usage-dashboard-surface);
box-shadow: -16px 0 34px color-mix(in srgb, #0b1220 16%, transparent);
animation: usageDashboardDetailIn 180ms ease-out;
}
.usage-dashboard__detail[data-motion='reduced'] { animation: none; }
.usage-dashboard__detail .usage-dashboard__panel-heading {
position: sticky;
top: -20px;
z-index: 1;
margin: -20px -20px 14px;
padding: 18px 20px 14px;
border-bottom: 1px solid var(--usage-dashboard-divider);
background: var(--usage-dashboard-surface);
}
.usage-dashboard[data-detail-open='true'] .usage-dashboard__detail-scrim { display: block; }
@keyframes usageDashboardDetailIn {
from { opacity: 0; transform: translateX(14px); }
to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 1180px) {
.usage-dashboard__metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usage-dashboard__content-grid > .usage-dashboard__panel + .usage-dashboard__panel {
margin-left: 0;
padding-left: 0;
border-top: 1px solid var(--usage-dashboard-divider);
border-left: 0;
}
}
@media (max-width: 768px) {
.usage-dashboard__header { padding: 10px 14px 4px; }
.usage-dashboard__toolbar { padding: 6px 14px 11px; }
.usage-dashboard__body { padding: 14px 14px calc(28px + var(--safe-bottom)); }
.usage-dashboard__metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.usage-dashboard__metric { min-height: 88px; grid-template-columns: 32px minmax(0, 1fr) 54px; padding: 12px; }
.usage-dashboard__metric > .usage-dashboard__metric-icon { width: 30px; height: 30px; }
.usage-dashboard__metric-copy strong { font-size: 22px; }
.usage-dashboard__table--mcp { min-width: 520px; }
.usage-dashboard__content-grid { margin-top: 14px; }
.usage-dashboard__content-grid > .usage-dashboard__panel { padding-block: 15px; }
.usage-dashboard__status-card { min-height: 0; padding-inline: 8px; }
.usage-dashboard__detail { width: min(470px, calc(100% - 8px)); padding-inline: 16px; }
.usage-dashboard__detail .usage-dashboard__panel-heading { margin-inline: -16px; padding-inline: 16px; }
}
@media (max-width: 560px) {
.usage-dashboard__metric-grid {
display: flex;
overflow-x: auto;
scroll-snap-type: x proximity;
scrollbar-width: none;
}
.usage-dashboard__metric-grid::-webkit-scrollbar { display: none; }
.usage-dashboard__metric {
flex: 0 0 218px;
min-height: 86px;
grid-template-columns: 32px minmax(0, 1fr) 54px;
scroll-snap-align: start;
}
.usage-dashboard__metric:last-child { border-right: 1px solid var(--usage-dashboard-divider); }
.usage-dashboard__metric-copy strong { font-size: 22px; }
.usage-dashboard__status-list { grid-template-columns: minmax(0, 1fr); }
.usage-dashboard__status-card + .usage-dashboard__status-card { border-top: 1px solid var(--usage-dashboard-divider); border-left: 0; }
.usage-dashboard__detail { width: calc(100% - 4px); }
}
/* 主题适配只覆盖语义变量和入口表面,保持看板结构与交互逻辑一致。 */
html[data-theme='coolvibe'] .usage-dashboard-open {
color: #0a6d83;
background: rgba(8, 145, 178, 0.08);
border-color: rgba(167, 205, 216, 0.84);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
html[data-theme='coolvibe'] .usage-dashboard {
--usage-dashboard-accent-ink: #0d1b1f;
}
html[data-theme='coolvibe'] .usage-dashboard-open:is(:hover, :focus-visible),
html[data-theme='coolvibe'] .usage-dashboard-open[aria-expanded='true'] {
color: #0b5060;
background: rgba(8, 145, 178, 0.16);
border-color: rgba(8, 145, 178, 0.3);
}
:where(
html[data-theme='carbon'],
html[data-theme='nocturne'],
html[data-theme='cinder']
) .usage-dashboard {
--usage-dashboard-bg: var(--bg-primary);
--usage-dashboard-surface: var(--dark-panel-bg);
--usage-dashboard-surface-soft: var(--dark-panel-soft);
--usage-dashboard-surface-muted: var(--bg-tertiary);
--usage-dashboard-border: color-mix(in srgb, var(--border-color) 88%, var(--text-muted));
}
:where(
html[data-theme='carbon'],
html[data-theme='nocturne'],
html[data-theme='cinder'],
html[data-theme='wasteland']
) .usage-dashboard__dates input {
color-scheme: dark;
}
:where(
html[data-theme='carbon'],
html[data-theme='nocturne'],
html[data-theme='cinder']
) .usage-dashboard-open {
color: var(--text-secondary);
background: color-mix(in srgb, var(--bg-tertiary) 58%, transparent);
border-color: color-mix(in srgb, var(--border-color) 82%, transparent);
}
:where(
html[data-theme='carbon'],
html[data-theme='nocturne'],
html[data-theme='cinder']
) .usage-dashboard-open:is(:hover, :focus-visible),
:where(
html[data-theme='carbon'],
html[data-theme='nocturne'],
html[data-theme='cinder']
) .usage-dashboard-open[aria-expanded='true'] {
color: var(--accent);
background: var(--accent-light);
border-color: color-mix(in srgb, var(--accent) 42%, transparent);
}
html[data-theme='gilded'] .usage-dashboard {
--usage-dashboard-bg: #f3ead8;
--usage-dashboard-surface: #fff7ea;
--usage-dashboard-surface-soft: #f7edda;
--usage-dashboard-surface-muted: #eadcc6;
--usage-dashboard-border: rgba(120, 91, 57, 0.34);
--usage-dashboard-accent-soft: #efdfbf;
}
html[data-theme='gilded'] .usage-dashboard-open {
color: #7a3f20;
background: rgba(255, 247, 234, 0.72);
border-color: rgba(120, 91, 57, 0.3);
}
html[data-theme='gilded'] .usage-dashboard-open:is(:hover, :focus-visible),
html[data-theme='gilded'] .usage-dashboard-open[aria-expanded='true'] {
color: #5f3019;
background: #efdfbf;
border-color: rgba(122, 63, 32, 0.46);
}
html[data-theme='wasteland'] .sidebar-footer {
gap: 14px;
padding-inline: 16px;
}
html[data-theme='wasteland'] .sidebar-footer-actions {
gap: 8px;
}
html[data-theme='wasteland'] .usage-dashboard-open {
width: 34px;
height: 34px;
min-width: 34px;
color: var(--wasteland-gold-bright);
background: rgba(185, 139, 75, 0.08);
border-color: var(--wasteland-line);
border-radius: 2px;
box-shadow: inset 0 1px rgba(255, 236, 199, 0.06);
}
html[data-theme='wasteland'] .usage-dashboard-open:is(:hover, :focus-visible),
html[data-theme='wasteland'] .usage-dashboard-open[aria-expanded='true'] {
color: #f2cf8d;
background: rgba(185, 139, 75, 0.18);
border-color: var(--wasteland-line-strong);
}
html[data-theme='wasteland'] .usage-dashboard {
--usage-dashboard-bg: #050707;
--usage-dashboard-surface: rgba(12, 14, 13, 0.97);
--usage-dashboard-surface-soft: rgba(18, 19, 17, 0.96);
--usage-dashboard-surface-muted: rgba(185, 139, 75, 0.12);
--usage-dashboard-text: #eee6d6;
--usage-dashboard-text-secondary: #c8bda8;
--usage-dashboard-text-muted: #968b78;
--usage-dashboard-border: rgba(185, 139, 75, 0.32);
--usage-dashboard-accent: var(--wasteland-gold-bright);
--usage-dashboard-accent-soft: rgba(185, 139, 75, 0.16);
--usage-dashboard-success: #8ab888;
--usage-dashboard-danger: #d87869;
--usage-dashboard-info: #7fa6b2;
}
html[data-theme='wasteland'] :is(
.usage-dashboard__icon-button,
.usage-dashboard__periods,
.usage-dashboard__period,
.usage-dashboard__apply,
.usage-dashboard__dates input,
.usage-dashboard__metric,
.usage-dashboard__panel,
.usage-dashboard__error,
.usage-dashboard__badge,
.usage-dashboard__row-action
) {
border-radius: 2px;
}
html[data-theme='wasteland'] .usage-dashboard__panel,
html[data-theme='wasteland'] .usage-dashboard__metric {
box-shadow: inset 0 1px rgba(255, 236, 199, 0.025);
}
@media (max-width: 768px) {
html[data-theme='wasteland'] .usage-dashboard-open {
width: 44px;
height: 44px;
min-width: 44px;
}
}
@media (prefers-reduced-motion: reduce) {
.usage-dashboard,
.usage-dashboard__refresh svg,
.usage-dashboard-open,
.usage-dashboard__icon-button,
.usage-dashboard__period,
.usage-dashboard__apply,
.usage-dashboard__row-action {
animation: none !important;
transition: none !important;
scroll-behavior: auto !important;
}
}