mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 13:03:46 +00:00
1157 lines
26 KiB
HTML
1157 lines
26 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Sandbox Agent</title>
|
|
<style>
|
|
:root {
|
|
color-scheme: dark;
|
|
--bg: #0a0a0a;
|
|
--surface: #1c1c1e;
|
|
--surface-2: #0f0f0f;
|
|
--border: #1c1c1e;
|
|
--border-2: #2c2c2e;
|
|
--input-bg: #1c1c1e;
|
|
--input-border: #2c2c2e;
|
|
--text: #f5f5f7;
|
|
--text-secondary: #e5e5e7;
|
|
--muted: #6e6e73;
|
|
--muted-2: #4a4a4c;
|
|
--accent: #ff4f00;
|
|
--accent-hover: #ff6a00;
|
|
--success: #30d158;
|
|
--warning: #ff9f0a;
|
|
--danger: #ff3b30;
|
|
--purple: #bf5af2;
|
|
--cyan: #64d2ff;
|
|
--radius: 8px;
|
|
--radius-sm: 6px;
|
|
--radius-lg: 12px;
|
|
--transition: 150ms ease;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html, body, #root {
|
|
height: 100%;
|
|
background: var(--bg);
|
|
}
|
|
|
|
body {
|
|
color: var(--text);
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* App Layout */
|
|
.app {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.logo {
|
|
width: 28px;
|
|
height: 28px;
|
|
background: var(--accent);
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 700;
|
|
font-size: 11px;
|
|
color: #fff;
|
|
}
|
|
|
|
.header-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.header-endpoint {
|
|
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.status-indicator.disconnected {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 12px;
|
|
border-radius: 999px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-2);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.status-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
}
|
|
|
|
/* Landing Page */
|
|
.landing {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.landing-container {
|
|
width: 100%;
|
|
max-width: 420px;
|
|
}
|
|
|
|
.landing-hero {
|
|
text-align: center;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.landing-logo {
|
|
width: 56px;
|
|
height: 56px;
|
|
background: var(--accent);
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 700;
|
|
font-size: 20px;
|
|
color: #fff;
|
|
margin: 0 auto 20px;
|
|
}
|
|
|
|
.landing-title {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.landing-subtitle {
|
|
font-size: 14px;
|
|
color: var(--muted);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.connect-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-2);
|
|
border-radius: var(--radius-lg);
|
|
padding: 24px;
|
|
}
|
|
|
|
.connect-card-title {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--muted);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.field:last-of-type {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.label {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.input {
|
|
width: 100%;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 10px 12px;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
outline: none;
|
|
transition: border-color var(--transition);
|
|
}
|
|
|
|
.input:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.input::placeholder {
|
|
color: var(--muted-2);
|
|
}
|
|
|
|
.textarea {
|
|
width: 100%;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 10px 12px;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
outline: none;
|
|
transition: border-color var(--transition);
|
|
resize: vertical;
|
|
min-height: 100px;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.textarea:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.select {
|
|
width: 100%;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 10px 12px;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
outline: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 10px 16px;
|
|
border-radius: var(--radius-sm);
|
|
border: none;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background var(--transition), opacity var(--transition);
|
|
}
|
|
|
|
.button.primary {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
width: 100%;
|
|
}
|
|
|
|
.button.primary:hover:not(:disabled) {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.button.secondary {
|
|
background: var(--border-2);
|
|
color: var(--text);
|
|
}
|
|
|
|
.button.ghost {
|
|
background: transparent;
|
|
color: var(--accent);
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.button.danger {
|
|
background: var(--danger);
|
|
color: #fff;
|
|
}
|
|
|
|
.button.success {
|
|
background: var(--success);
|
|
color: #fff;
|
|
}
|
|
|
|
.button.small {
|
|
padding: 6px 10px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.button-icon {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.banner {
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.banner.error {
|
|
background: rgba(255, 59, 48, 0.1);
|
|
border-left: 3px solid var(--danger);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.banner.success {
|
|
background: rgba(48, 209, 88, 0.1);
|
|
border-left: 3px solid var(--success);
|
|
color: var(--success);
|
|
}
|
|
|
|
.spinner {
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
border: 2px solid rgba(255, 255, 255, 0.2);
|
|
border-top-color: #fff;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.hint {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
margin-top: 16px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.hint code {
|
|
background: var(--surface-2);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
|
|
font-size: 10px;
|
|
}
|
|
|
|
/* Main Layout (Connected) */
|
|
.main-layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Chat Panel */
|
|
.chat-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-right: 1px solid var(--border);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.panel-header {
|
|
height: 41px;
|
|
padding: 0 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--surface-2);
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.panel-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.panel-title {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.session-input {
|
|
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
|
|
font-size: 12px;
|
|
color: var(--text);
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-2);
|
|
padding: 4px 10px;
|
|
border-radius: 4px;
|
|
outline: none;
|
|
width: 140px;
|
|
transition: border-color var(--transition);
|
|
}
|
|
|
|
.session-input:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.session-input::placeholder {
|
|
color: var(--muted-2);
|
|
}
|
|
|
|
.session-new-btn {
|
|
background: var(--accent);
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 4px 10px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.session-new-btn:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.messages-container {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
}
|
|
|
|
.messages {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
color: var(--muted);
|
|
text-align: center;
|
|
padding: 32px;
|
|
}
|
|
|
|
.empty-state-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
color: var(--muted-2);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.empty-state-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.empty-state-text {
|
|
font-size: 13px;
|
|
max-width: 280px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.message {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.message.user {
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.avatar {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.message.user .avatar {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.message.assistant .avatar {
|
|
background: var(--border-2);
|
|
color: var(--text);
|
|
}
|
|
|
|
.message-content {
|
|
padding: 10px 14px;
|
|
border-radius: var(--radius-lg);
|
|
max-width: 80%;
|
|
line-height: 1.5;
|
|
font-size: 13px;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.message.user .message-content {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border-bottom-right-radius: 4px;
|
|
}
|
|
|
|
.message.assistant .message-content {
|
|
background: var(--surface);
|
|
color: var(--text-secondary);
|
|
border-bottom-left-radius: 4px;
|
|
}
|
|
|
|
.message-error {
|
|
background: rgba(255, 59, 48, 0.1);
|
|
border: 1px solid rgba(255, 59, 48, 0.3);
|
|
border-radius: var(--radius-sm);
|
|
padding: 10px 14px;
|
|
color: var(--danger);
|
|
font-size: 12px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.cursor {
|
|
display: inline-block;
|
|
width: 2px;
|
|
height: 14px;
|
|
background: var(--accent);
|
|
margin-left: 2px;
|
|
vertical-align: text-bottom;
|
|
animation: blink 0.8s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes blink {
|
|
0%, 50% { opacity: 1; }
|
|
51%, 100% { opacity: 0; }
|
|
}
|
|
|
|
/* Input Area */
|
|
.input-container {
|
|
padding: 12px 16px;
|
|
background: var(--bg);
|
|
border-top: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.input-wrapper {
|
|
display: flex;
|
|
gap: 10px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-2);
|
|
border-radius: var(--radius-lg);
|
|
padding: 10px 12px;
|
|
transition: border-color var(--transition);
|
|
}
|
|
|
|
.input-wrapper:focus-within {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.input-wrapper textarea {
|
|
flex: 1;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
resize: none;
|
|
outline: none;
|
|
line-height: 1.4;
|
|
max-height: 100px;
|
|
}
|
|
|
|
.input-wrapper textarea::placeholder {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.send-button {
|
|
align-self: flex-end;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: var(--accent);
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
color: #fff;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background var(--transition);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.send-button:hover:not(:disabled) {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.send-button:disabled {
|
|
background: var(--border-2);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.send-button svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/* Setup Row */
|
|
.setup-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
background: var(--surface-2);
|
|
border-top: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.setup-select {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-2);
|
|
border-radius: 4px;
|
|
padding: 4px 8px;
|
|
font-size: 11px;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
outline: none;
|
|
min-width: 70px;
|
|
}
|
|
|
|
.setup-select:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.setup-input {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-2);
|
|
border-radius: 4px;
|
|
padding: 4px 8px;
|
|
font-size: 11px;
|
|
color: var(--text);
|
|
outline: none;
|
|
width: 70px;
|
|
}
|
|
|
|
.setup-input-wide {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-2);
|
|
border-radius: 4px;
|
|
padding: 4px 8px;
|
|
font-size: 11px;
|
|
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
|
|
color: var(--text);
|
|
outline: none;
|
|
width: 120px;
|
|
}
|
|
|
|
.setup-input::placeholder,
|
|
.setup-input-wide::placeholder {
|
|
color: var(--muted-2);
|
|
}
|
|
|
|
.setup-input:focus,
|
|
.setup-input-wide:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.setup-new-btn {
|
|
background: var(--accent);
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 4px 10px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.setup-new-btn:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.setup-divider {
|
|
width: 1px;
|
|
height: 16px;
|
|
background: var(--border-2);
|
|
margin: 0 4px;
|
|
}
|
|
|
|
.setup-stream {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.setup-select-small {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-2);
|
|
border-radius: 4px;
|
|
padding: 4px 6px;
|
|
font-size: 10px;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
outline: none;
|
|
width: 50px;
|
|
}
|
|
|
|
.setup-stream-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-2);
|
|
border-radius: 4px;
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.setup-stream-btn:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.setup-stream-btn.active {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.setup-version {
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
|
|
background: var(--surface);
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* Debug Panel */
|
|
.debug-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.debug-tabs {
|
|
display: flex;
|
|
height: 41px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--surface-2);
|
|
flex-shrink: 0;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.debug-tab {
|
|
height: 100%;
|
|
padding: 0 16px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--muted);
|
|
background: transparent;
|
|
border: none;
|
|
border-bottom: 2px solid transparent;
|
|
cursor: pointer;
|
|
transition: color var(--transition), border-color var(--transition);
|
|
white-space: nowrap;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.debug-tab:hover {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.debug-tab.active {
|
|
color: var(--text);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
.debug-tab-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 16px;
|
|
height: 16px;
|
|
padding: 0 5px;
|
|
margin-left: 6px;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.debug-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
}
|
|
|
|
/* Session Setup */
|
|
.setup-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
.setup-grid .field.full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.setup-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
/* Cards */
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-2);
|
|
border-radius: var(--radius-sm);
|
|
padding: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.card:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.card-meta {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.card-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.pill.success {
|
|
background: rgba(48, 209, 88, 0.15);
|
|
color: var(--success);
|
|
}
|
|
|
|
.pill.danger {
|
|
background: rgba(255, 59, 48, 0.15);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.pill.neutral {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.pill.accent {
|
|
background: rgba(255, 79, 0, 0.15);
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* Events */
|
|
.event-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.event-item {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-2);
|
|
border-radius: var(--radius-sm);
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.event-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.event-type {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.event-type.message { color: var(--accent); }
|
|
.event-type.started { color: var(--success); }
|
|
.event-type.error { color: var(--danger); }
|
|
.event-type.question { color: var(--warning); }
|
|
.event-type.permission { color: var(--purple); }
|
|
|
|
.event-time {
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.event-id {
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
|
|
}
|
|
|
|
.code-block {
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
padding: 8px 10px;
|
|
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
|
|
font-size: 10px;
|
|
line-height: 1.5;
|
|
overflow-x: auto;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
color: var(--text-secondary);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.code-block .key { color: var(--warning); }
|
|
.code-block .string { color: var(--success); }
|
|
.code-block .number { color: var(--cyan); }
|
|
.code-block .boolean { color: var(--purple); }
|
|
|
|
/* Log */
|
|
.log-item {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
gap: 8px;
|
|
align-items: center;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-2);
|
|
border-radius: var(--radius-sm);
|
|
padding: 10px 12px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.log-item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.log-method {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.log-url {
|
|
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
word-break: break-all;
|
|
}
|
|
|
|
.log-status {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.log-status.ok { color: var(--success); }
|
|
.log-status.error { color: var(--danger); }
|
|
|
|
.log-meta {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.copy-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
background: transparent;
|
|
border: 1px solid var(--border-2);
|
|
color: var(--text-secondary);
|
|
border-radius: 4px;
|
|
padding: 4px 8px;
|
|
font-size: 10px;
|
|
cursor: pointer;
|
|
transition: border-color var(--transition);
|
|
}
|
|
|
|
.copy-button:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.copy-button svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
/* Question/Permission Forms */
|
|
.option-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.option-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.option-item input {
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.mono {
|
|
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.inline-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.text-truncate {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Scrollbar */
|
|
.messages-container::-webkit-scrollbar,
|
|
.debug-content::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.messages-container::-webkit-scrollbar-track,
|
|
.debug-content::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.messages-container::-webkit-scrollbar-thumb,
|
|
.debug-content::-webkit-scrollbar-thumb {
|
|
background: #3a3a3c;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.messages-container::-webkit-scrollbar-thumb:hover,
|
|
.debug-content::-webkit-scrollbar-thumb:hover {
|
|
background: #48484a;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 1024px) {
|
|
.main-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.chat-panel {
|
|
border-right: none;
|
|
border-bottom: 1px solid var(--border);
|
|
max-height: 50vh;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.landing {
|
|
padding: 20px;
|
|
}
|
|
|
|
.header {
|
|
padding: 10px 16px;
|
|
}
|
|
|
|
.header-title {
|
|
display: none;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|