This commit is contained in:
2026-10-21 12:11:21 -04:00
parent ec36013313
commit b340ec3814
6 changed files with 275 additions and 0 deletions
+64
View File
@@ -220,6 +220,67 @@ button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visibl
.error { color: var(--red); }
#chat-section {
padding: 0;
text-align: left;
background: var(--mantle);
border: 1px solid var(--surface);
border-radius: 18px;
box-shadow: 0 12px 32px #11111b40;
overflow: hidden;
}
.chat-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
padding: 1.75rem;
background: linear-gradient(120deg, #cba6f710, transparent 75%);
border-bottom: 1px solid var(--surface);
}
.chat-eyebrow { margin: 0 0 0.65rem; font-size: 0.65rem; letter-spacing: 0.18em; color: var(--mauve); font-weight: 700; }
#chat-heading { margin: 0; font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.2; letter-spacing: -0.03em; }
.chat-description { margin: 0.7rem 0 0; font-size: 0.85rem; color: var(--subtext); line-height: 1.6; }
.chat-badge { flex-shrink: 0; padding: 0.35rem 0.6rem; border: 1px solid #a6e3a130; border-radius: 20px; color: var(--green); background: #a6e3a109; font-size: 0.65rem; }
.chat-feed { padding: 1rem 1.25rem; min-height: 280px; }
.chat-feed-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; color: var(--subtext); font-size: 0.65rem; padding: 0.25rem 0.25rem 0.9rem; }
.chat-feed-label span:first-child { text-transform: uppercase; letter-spacing: 0.12em; }
#chat-messages {
list-style: none;
margin: 0;
padding: 0 0.25rem;
max-height: 360px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--surface) transparent;
}
#chat-messages:empty { display: none; }
#chat-messages li { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.7rem 0; }
.chat-avatar { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 11px; background: #cba6f71a; color: var(--mauve); font-weight: 700; font-size: 0.8rem; }
#chat-messages li:nth-child(3n + 2) .chat-avatar { background: #94e2d51a; color: var(--teal); }
#chat-messages li:nth-child(3n) .chat-avatar { background: #fab3871a; color: var(--peach); }
.chat-message-content { min-width: 0; flex: 1; }
.chat-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; padding: 0.1rem 0 0.35rem; }
.chat-heading strong { color: var(--text); font-size: 0.8rem; overflow-wrap: anywhere; }
.chat-heading time { color: var(--subtext); font-size: 0.65rem; }
#chat-messages p { margin: 0; padding: 0.7rem 0.85rem; border: 1px solid #45475a60; border-radius: 0 12px 12px 12px; background: var(--base); font-size: 0.9rem; line-height: 1.55; overflow-wrap: anywhere; }
.chat-composer { border-top: 1px solid var(--surface); padding: 1.25rem 1.5rem; background: #11111b35; }
#chat-form { display: block; }
#chat-form label { display: block; margin-bottom: 0.6rem; font-size: 0.75rem; font-weight: 600; color: var(--subtext); }
.chat-input-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem; background: var(--base); border: 1px solid var(--surface); border-radius: 12px; }
.chat-input-row:focus-within { border-color: var(--mauve); }
#chat-input { flex: 1; min-width: 0; width: 100%; border: none; background: transparent; padding: 0.5rem; font-size: 0.85rem; }
#chat-input:focus-visible { outline-offset: -2px; border-radius: 6px; }
#chat-input::placeholder { color: var(--subtext); }
#chat-form #chat-send { display: flex; align-items: center; gap: 0.65rem; min-height: 40px; border: none; border-radius: 8px; background: var(--mauve); color: var(--crust); font-weight: 700; font-size: 0.8rem; }
#chat-send span { font-size: 1.2rem; }
#chat-form #chat-send:hover { background: var(--lavender); }
#chat-send:disabled { opacity: 0.5; cursor: wait; }
#chat-help { margin: 0.7rem 0 0; color: var(--subtext); font-size: 0.65rem; line-height: 1.6; }
#chat-status { margin: 0; padding: 4rem 1rem; text-align: center; color: var(--subtext); font-size: 0.85rem; line-height: 1.6; }
#chat-login { margin: 0; color: var(--lavender); font-size: 0.85rem; line-height: 1.6; }
#chat-status:empty, #chat-error:empty { display: none; }
#rules { text-align: left; font-size: 0.9rem; color: var(--subtext); }
@media (max-width: 760px) {
@@ -244,4 +305,7 @@ button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visibl
#press-result { max-width: 110px; margin: 0.4rem 0 0; font-size: 0.7rem; }
#press-result:empty { display: none; }
.section-browser { margin-top: 1rem; }
.chat-header { padding: 1.25rem; flex-wrap: wrap; }
.chat-feed { padding: 0.9rem; min-height: 230px; }
.chat-composer { padding: 1rem; }
}