* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #111827;
color: #f3f4f6;
font-family: system-ui, -apple-system, sans-serif;
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
}
.truncate {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.shrink-0 {
flex-shrink: 0.0;
}
@keyframes pulse {
50.0% {
opacity: 0.5;
}
}
.pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.header-bar {
background-color: #1f2937;
border-bottom: 1px solid #374151;
padding: 12px 16px;
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0.0;
}
.header-title {
font-size: 18px;
font-weight: 600;
}
.agent-info {
font-size: 14px;
color: #9ca3af;
display: none;
}
.header-sep {
width: 1px;
height: 20px;
background-color: #4b5563;
flex-shrink: 0.0;
}
.header-cwd {
font-size: 14px;
font-weight: 600;
color: #d1d5db;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.agent-selector {
display: flex;
align-items: center;
gap: 8px;
}
.agent-icon-sm {
width: 20px;
height: 20px;
border-radius: 4px;
flex-shrink: 0.0;
background-color: #d1d5db;
padding: 2px;
object-fit: contain;
}
.agent-name-text {
font-size: 14px;
color: #d1d5db;
}
.agent-swap-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
background-color: #374151;
color: #d1d5db;
border: 1px solid #4b5563;
border-radius: 6px;
height: 28px;
cursor: pointer;
padding: 4px 8px;
font-size: 12px;
}
.agent-swap-btn:hover {
background-color: #4b5563;
color: #f3f4f6;
}
.agent-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 60;
}
.agent-modal-card {
background-color: #1f2937;
border-radius: 16px;
padding: 32px;
max-width: 640px;
width: 100%;
margin: 0 16px;
border: 1px solid #4b5563;
max-height: 80vh;
display: flex;
flex-direction: column;
}
.agent-modal-title {
font-size: 24px;
font-weight: 600;
margin-bottom: 20px;
color: #f3f4f6;
}
.agent-table {
display: flex;
flex-direction: column;
gap: 2px;
overflow-y: auto;
}
.agent-row {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
border-radius: 10px;
background-color: #111827;
border: 1px solid transparent;
cursor: pointer;
transition: border-color 0.15s ease, background-color 0.15s ease;
}
.agent-row:hover {
border: 1px solid #4b5563;
background-color: #1f2937;
}
.agent-row-icon {
width: 40px;
height: 40px;
border-radius: 8px;
flex-shrink: 0.0;
background-color: #d1d5db;
padding: 4px;
object-fit: contain;
}
.agent-row-info {
flex: 1 1 0;
min-width: 0;
}
.agent-row-name {
font-weight: 500;
color: #f3f4f6;
font-size: 15px;
}
.agent-row-desc {
color: #9ca3af;
font-size: 13px;
margin-top: 2px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.agent-loading {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 70;
color: #f3f4f6;
font-size: 18px;
}
#messages {
flex: 1 1 0;
overflow-y: auto;
padding: 16px;
display: flex;
flex-direction: column;
gap: 16px;
}
#messages::-webkit-scrollbar {
width: 6px;
}
#messages::-webkit-scrollbar-thumb {
background-color: #475569;
border-radius: 3px;
}
.msg-wrap-user {
display: flex;
justify-content: flex-end;
}
.msg-wrap-assistant {
display: flex;
justify-content: flex-start;
}
.msg-wrap-error {
display: flex;
justify-content: center;
}
.msg-user {
background-color: #2563eb;
color: white;
border-radius: 16px 16px 6px 16px;
padding: 8px 16px;
max-width: 80%;
white-space: pre-wrap;
}
.msg-assistant {
background-color: #374151;
color: #f3f4f6;
border-radius: 16px 16px 16px 6px;
padding: 8px 16px;
max-width: 80%;
white-space: pre-wrap;
}
.msg-error {
background-color: rgba(127, 29, 29, 0.5);
color: #fca5a5;
border-radius: 12px;
padding: 8px 16px;
max-width: 80%;
}
.msg-thought {
background-color: #1f2937;
color: #9ca3af;
font-style: italic;
border-radius: 12px;
padding: 8px 16px;
max-width: 80%;
font-size: 14px;
border: 1px solid #374151;
white-space: pre-wrap;
}
.message-content {
white-space: normal;
}
.message-content pre {
font-family: monospace;
background-color: #030712;
padding: 16px;
border-radius: 8px;
overflow-x: auto;
margin: 8px 0;
}
.message-content code {
font-family: monospace;
font-size: 14px;
background-color: #1e293b;
padding: 2px 6px;
border-radius: 4px;
}
.message-content pre code {
background-color: transparent;
padding: 0;
}
.message-content p {
margin: 4px 0;
}
.message-content h1 {
font-size: 24px;
font-weight: 700;
margin: 8px 0;
}
.message-content h2 {
font-size: 20px;
font-weight: 700;
margin: 8px 0;
}
.message-content h3 {
font-size: 18px;
font-weight: 600;
margin: 4px 0;
}
.message-content ul {
list-style: disc;
padding-left: 20px;
margin: 4px 0;
}
.message-content ol {
list-style: decimal;
padding-left: 20px;
margin: 4px 0;
}
.message-content li {
margin: 2px 0;
}
.message-content a {
color: #60a5fa;
text-decoration: underline;
}
.message-content blockquote {
border-left: 4px solid #4b5563;
padding-left: 16px;
font-style: italic;
color: #9ca3af;
margin: 8px 0;
}
.tool-block {
background-color: #1f2937;
border: 1px solid #374151;
border-radius: 12px;
font-size: 14px;
overflow: clip;
width: 80%;
}
.tool-header {
padding: 8px 12px;
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
user-select: none;
}
.tool-header:hover {
background-color: rgba(55, 65, 81, 0.5);
}
.tool-header-left {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.tool-summary {
color: #9ca3af;
flex-shrink: 0.0;
}
.tool-dot {
color: #4b5563;
}
.tool-active {
color: #d1d5db;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.tool-chevron {
color: #6b7280;
margin-left: 8px;
flex-shrink: 0.0;
display: inline-block;
transition: transform 0.15s ease;
}
details[open] > .tool-header .tool-chevron {
transform: rotate(90deg);
}
.tool-row {
border-top: 1px solid #374151;
}
.tool-row-header {
padding: 6px 12px;
display: flex;
align-items: center;
gap: 8px;
}
.tool-row-clickable {
cursor: pointer;
}
.tool-row-clickable:hover {
background-color: rgba(55, 65, 81, 0.3);
}
.tool-icon {
flex-shrink: 0.0;
}
.tool-icon-done {
color: #22c55e;
}
.tool-icon-fail {
color: #f87171;
}
.tool-icon-running {
color: #9ca3af;
}
.tool-title {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.tool-title-done {
color: #6b7280;
}
.tool-title-fail {
color: #f87171;
}
.tool-title-running {
color: #d1d5db;
}
.tool-location {
color: #6b7280;
font-size: 12px;
margin-left: auto;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 150px;
flex-shrink: 1.0;
}
.tool-result-chevron {
color: #6b7280;
margin-left: auto;
flex-shrink: 0.0;
display: inline-block;
transition: transform 0.15s ease;
}
details[open] > .tool-row-clickable .tool-result-chevron {
transform: rotate(90deg);
}
.tool-result {
background-color: #111827;
color: #9ca3af;
font-size: 12px;
font-family: monospace;
padding: 8px 12px;
margin: 0 8px 8px;
border-radius: 4px;
max-height: 160px;
overflow-y: auto;
white-space: pre-wrap;
}
.content-block {
background-color: #1f2937;
border: 1px solid #374151;
border-radius: 12px;
font-size: 14px;
overflow: clip;
width: 80%;
}
.content-header {
padding: 8px 12px;
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
user-select: none;
}
.content-header:hover {
background-color: rgba(55, 65, 81, 0.5);
}
.content-label {
color: #9ca3af;
}
.content-thought .content-label {
font-style: italic;
}
.content-meta {
color: #6b7280;
font-size: 12px;
margin-left: 8px;
}
.thought-elapsed {
color: #6b7280;
font-size: 12px;
margin-left: 8px;
font-style: normal;
}
details[open] > .content-header .tool-chevron {
transform: rotate(90deg);
}
.content-body {
padding: 8px 16px 16px;
}
.content-block .msg-assistant {
background-color: transparent;
border-radius: 0;
max-width: 100%;
}
.content-block .msg-thought {
background-color: transparent;
border: 0 none transparent;
border-radius: 0;
max-width: 100%;
font-size: inherit;
}
.diff-add {
color: #22c55e;
}
.diff-del {
color: #f87171;
}
.diff-hunk {
color: #60a5fa;
}
.perm-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 50;
}
.perm-card {
background-color: #1f2937;
border-radius: 12px;
padding: 24px;
max-width: 448px;
width: 100%;
margin: 0 16px;
border: 1px solid #4b5563;
}
.perm-heading {
font-size: 18px;
font-weight: 600;
margin-bottom: 8px;
}
.perm-desc {
color: #d1d5db;
margin-bottom: 16px;
word-break: break-all;
}
.perm-buttons {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.perm-btn-allow {
color: white;
padding: 8px 16px;
border-radius: 8px;
font-weight: 500;
border: 0 none transparent;
cursor: pointer;
font-size: 14px;
background-color: #16a34a;
}
.perm-btn-allow:hover {
background-color: #15803d;
}
.perm-btn-deny {
color: white;
padding: 8px 16px;
border-radius: 8px;
font-weight: 500;
border: 0 none transparent;
cursor: pointer;
font-size: 14px;
background-color: #dc2626;
}
.perm-btn-deny:hover {
background-color: #b91c1c;
}
.input-bar {
flex-shrink: 0.0;
border-top: 1px solid #374151;
background-color: #1f2937;
padding: 16px;
position: relative;
}
.input-form {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
}
.attach-btn {
flex-shrink: 0.0;
align-self: center;
background-color: #374151;
color: #d1d5db;
width: 40px;
height: 40px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
font-weight: bold;
border: 1px solid #4b5563;
cursor: pointer;
}
.attach-btn:hover {
background-color: #4b5563;
}
.voice-btn {
flex-shrink: 0.0;
align-self: center;
background-color: #374151;
color: #d1d5db;
width: 40px;
height: 40px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #4b5563;
cursor: pointer;
}
.voice-btn:hover {
background-color: #4b5563;
}
.voice-btn-active {
background-color: #dc2626;
color: white;
border: 1px solid #dc2626;
animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.voice-btn-active:hover {
background-color: #b91c1c;
}
.prompt-input {
flex: 1 1 0;
min-width: 0;
background-color: #374151;
color: #f3f4f6;
border: 1px solid #4b5563;
border-radius: 12px;
padding: 12px 16px;
resize: none;
font-size: 16px;
line-height: 1.625;
font-family: inherit;
}
.prompt-input:focus {
outline: none;
box-shadow: 0 0 0 2px #3b82f6;
}
.prompt-input::placeholder {
color: #9ca3af;
}
.btn-group {
flex-shrink: 0.0;
align-self: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.send-btn {
color: white;
padding: 12px 24px;
border-radius: 12px;
font-weight: 500;
border: 0 none transparent;
cursor: pointer;
font-size: 14px;
background-color: #2563eb;
}
.send-btn:hover {
background-color: #1d4ed8;
}
.send-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.send-btn-cancel {
color: white;
padding: 12px 24px;
border-radius: 12px;
font-weight: 500;
border: 0 none transparent;
cursor: pointer;
font-size: 14px;
background-color: #dc2626;
}
.send-btn-cancel:hover {
background-color: #b91c1c;
}
.diagnose-btn {
color: white;
padding: 12px 16px;
border-radius: 12px;
font-weight: 500;
border: 0 none transparent;
cursor: pointer;
font-size: 14px;
background-color: #ca8a04;
}
.diagnose-btn:hover {
background-color: #a16207;
}
.reload-btn {
color: white;
padding: 8px 12px;
border-radius: 12px;
font-weight: 500;
border: 0 none transparent;
cursor: pointer;
font-size: 14px;
background-color: #4b5563;
}
.reload-btn:hover {
background-color: #6b7280;
}
.screenshot-label {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: #9ca3af;
cursor: pointer;
user-select: none;
}
.screenshot-check {
accent-color: #3b82f6;
}
.file-preview {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 8px;
}
.file-chip {
display: flex;
align-items: center;
gap: 6px;
background-color: #374151;
color: #d1d5db;
font-size: 14px;
padding: 4px 12px;
border-radius: 8px;
border: 1px solid #4b5563;
}
.file-remove {
color: #9ca3af;
font-weight: bold;
margin-left: 4px;
cursor: pointer;
background-color: transparent;
border: 0 none transparent;
font-size: 14px;
}
.file-remove:hover {
color: white;
}
.status-wrap {
display: flex;
justify-content: flex-start;
}
.status-text {
color: #9ca3af;
font-size: 14px;
padding: 4px 0;
}
.scroll-btn {
position: absolute;
top: -48px;
left: 50%;
transform: translateX(-50%);
background-color: #374151;
color: #d1d5db;
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #4b5563;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
z-index: 10;
cursor: pointer;
}
.scroll-btn:hover {
background-color: #4b5563;
}
.collapsed {
max-height: 80px;
overflow: hidden;
cursor: pointer;
-webkit-mask-image: linear-gradient(to bottom, transparent, black 30px);
mask-image: linear-gradient(to bottom, transparent, black 30px);
}
.autocomplete {
position: absolute;
bottom: 100%;
left: 0;
right: 0;
background-color: #1f2937;
border-top: 1px solid #374151;
display: flex;
flex-wrap: wrap;
gap: 6px;
padding: 8px;
z-index: 20;
}
.autocomplete-item {
padding: 6px 12px;
border-radius: 8px;
cursor: pointer;
background-color: #374151;
border: 1px solid #4b5563;
}
.autocomplete-item:hover {
background-color: #4b5563;
}
.autocomplete-active {
background-color: #4b5563;
border: 1px solid #3b82f6;
}
.autocomplete-name {
color: #f3f4f6;
font-weight: 500;
font-size: 13px;
}
.autocomplete-desc {
display: none;
}
.hidden {
display: none;
}
