126 lines
5.1 KiB
CSS
126 lines
5.1 KiB
CSS
* { box-sizing: border-box; }
|
|
body {
|
|
font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
margin: 0;
|
|
color: #1c1c1c;
|
|
background: #fafafa;
|
|
display: flex;
|
|
min-height: 100vh;
|
|
}
|
|
.rail {
|
|
width: 200px;
|
|
background: #1c1c1c;
|
|
color: #fff;
|
|
padding: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
.rail a { color: #fff; text-decoration: none; }
|
|
.rail-brand {
|
|
font-weight: 600;
|
|
display: block;
|
|
padding-bottom: 16px;
|
|
border-bottom: 1px solid #333;
|
|
margin-bottom: 16px;
|
|
}
|
|
.rail ul { list-style: none; padding: 0; margin: 0; }
|
|
.rail li { margin: 4px 0; }
|
|
.rail li a { display: block; padding: 6px 8px; border-radius: 3px; }
|
|
.rail li a.active { background: #333; }
|
|
.content {
|
|
flex: 1;
|
|
padding: 24px;
|
|
background: #fafafa;
|
|
overflow: auto;
|
|
}
|
|
.brand { font-weight: 600; text-decoration: none; color: inherit; }
|
|
.container { max-width: 720px; margin: 24px auto; padding: 0 16px; }
|
|
h1 { margin-top: 0; }
|
|
.page-header { display: flex; align-items: center; justify-content: space-between; }
|
|
.btn, button {
|
|
display: inline-block; padding: 8px 14px;
|
|
border: 1px solid #444; background: #1c1c1c; color: #fff;
|
|
border-radius: 4px; text-decoration: none; cursor: pointer;
|
|
font: inherit;
|
|
}
|
|
.bot-form label { display: block; margin-bottom: 14px; }
|
|
.bot-form label span { display: block; font-weight: 600; margin-bottom: 4px; }
|
|
.bot-form input[type=text], .bot-form textarea {
|
|
width: 100%; padding: 6px 8px; font: inherit;
|
|
border: 1px solid #ccc; border-radius: 3px; background: #fff;
|
|
}
|
|
.bot-form small { display: block; color: #666; margin-top: 2px; }
|
|
.bot-list { list-style: none; padding: 0; }
|
|
.bot-list li { padding: 8px 0; border-bottom: 1px solid #eee; }
|
|
.chat-list { list-style: none; padding: 0; margin: 0; }
|
|
.chat-row { border-bottom: 1px solid #eee; }
|
|
.chat-row a { display: block; padding: 12px 0; text-decoration: none; color: inherit; }
|
|
.chat-row a:hover { background: #f0f0f0; }
|
|
.chat-row-name { font-weight: 600; }
|
|
.chat-row-snippet { font-size: 14px; }
|
|
.chat-row-meta { font-size: 12px; }
|
|
.muted { color: #666; }
|
|
.error {
|
|
padding: 8px 12px; border: 1px solid #c33; background: #fdecea;
|
|
color: #a00; border-radius: 3px;
|
|
}
|
|
.success {
|
|
padding: 8px 12px; border: 1px solid #2d7a3a; background: #eafaf0;
|
|
color: #1f5c2a; border-radius: 3px;
|
|
}
|
|
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
|
|
.chat-shell { display: flex; flex-direction: column; height: 100%; max-width: 760px; margin: 0 auto; }
|
|
.chat-header { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid #e5e5e5; padding-bottom: 8px; margin-bottom: 16px; }
|
|
.chat-header h1 { margin: 0; flex: 1; }
|
|
.chat-meta { font-size: 13px; }
|
|
.drawer-toggle { padding: 4px 10px; border: 1px solid #ccc; background: #fff; color: #1c1c1c; border-radius: 3px; cursor: pointer; }
|
|
.timeline { flex: 1; overflow-y: auto; min-height: 200px; padding: 8px 0; }
|
|
.turn { margin: 12px 0; }
|
|
.turn strong { display: block; margin-bottom: 4px; }
|
|
.turn p { margin: 0 0 8px; }
|
|
.turn p:last-child { margin-bottom: 0; }
|
|
.turn-you strong { color: #1a73e8; }
|
|
.turn-bot strong { color: #1c1c1c; }
|
|
/* ``*action*`` — italic narration. */
|
|
.action { font-style: italic; color: #555; }
|
|
/* ``((ooc))`` — author-to-system aside. Dim, italic, smaller, set off
|
|
from surrounding prose so it doesn't read as in-fiction speech. */
|
|
.ooc {
|
|
font-style: italic;
|
|
font-size: 12px;
|
|
color: #999;
|
|
display: inline-block;
|
|
background: rgba(0, 0, 0, 0.04);
|
|
padding: 1px 4px;
|
|
border-radius: 3px;
|
|
}
|
|
.turn blockquote {
|
|
border-left: 3px solid #ccc;
|
|
padding-left: 12px;
|
|
margin: 8px 0;
|
|
color: #555;
|
|
}
|
|
.turn-input { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid #e5e5e5; }
|
|
.turn-input textarea { padding: 8px; font: inherit; border: 1px solid #ccc; border-radius: 3px; resize: vertical; }
|
|
.drawer { position: fixed; top: 0; right: 0; width: 360px; height: 100vh; background: #fff; border-left: 1px solid #e5e5e5; padding: 16px; overflow-y: auto; z-index: 10; }
|
|
.drawer[hidden] { display: none; }
|
|
.drawer-content { display: flex; flex-direction: column; gap: 16px; }
|
|
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid #e5e5e5; }
|
|
.drawer-close { border: none; background: transparent; color: #1c1c1c; font-size: 24px; padding: 0 4px; cursor: pointer; }
|
|
.drawer-section h3 { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: #666; }
|
|
.activity-row, .edge-row { margin-bottom: 12px; }
|
|
.activity-row strong, .edge-row strong { display: block; }
|
|
.memory-list { list-style: none; padding: 0; margin: 0; }
|
|
.memory-list li { padding: 4px 0; font-size: 13px; }
|
|
.sig { display: inline-block; min-width: 16px; }
|
|
.sig-3 { color: #d4af37; }
|
|
/* Streaming UX (T34): typing indicator, Stop button, disconnect banner. */
|
|
.streaming { opacity: 0.85; }
|
|
.streaming-text:after {
|
|
content: "\025AE";
|
|
margin-left: 2px;
|
|
animation: blink 1s steps(2, start) infinite;
|
|
}
|
|
@keyframes blink { to { visibility: hidden; } }
|
|
.stop-streaming { background: #c33; border-color: #a00; margin-bottom: 8px; align-self: flex-start; }
|
|
.connection-lost { margin-bottom: 8px; }
|