:root { color-scheme: light; font: 16px/1.6 system-ui, sans-serif; color: #203448; background: #f3f6fa; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(ellipse at 50% 0, #dff0ef 0, transparent 55%); min-height: 100vh; }
header { background: #11293c; color: white; border-bottom: 3px solid #37b49a; }
.header-inner { max-width: 1100px; margin: auto; min-height: 80px; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: baseline; gap: .4rem; font-weight: 850; font-size: 1.55rem; letter-spacing: -.06em; color: white; text-decoration: none; }
.brand span { font-size: .7rem; font-weight: 600; letter-spacing: .1em; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.badge { color: #bce7dd; font-size: .8rem; }
main { width: min(780px, 100% - 2rem); margin: clamp(2rem, 5vw, 4rem) auto 0; }
.intro { text-align: center; margin-bottom: 2rem; }
.eyebrow { color: #197562; font-size: .72rem; font-weight: 750; letter-spacing: .16em; }
.intro > p:last-child { color: #607386; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 1.5rem; }
h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
form, #answer, .knowledge-info { background: white; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid #dce5ec; border-radius: 18px; box-shadow: 0 8px 28px #19394f06; }
#login { max-width: 480px; margin: auto; }
label { display: block; font-weight: 600; margin-bottom: 1rem; }
input, textarea { display: block; width: 100%; padding: .65rem .75rem; border: 1px solid #94a9bd; border-radius: .4rem; font: inherit; color: inherit; margin-top: .35rem; }
textarea { resize: vertical; }
button { cursor: pointer; padding: .55rem 1rem; border: 1px solid #13624d; border-radius: .4rem; background: #13624d; color: white; font: inherit; }
button.secondary { color: white; background: transparent; border-color: #708b9e; }
button:hover { filter: brightness(.9); }
:focus-visible { outline: 3px solid #40b59b; outline-offset: 3px; }
button:disabled { opacity: .7; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
#answer { margin-top: 1rem; }
#knowledge { margin-top: 1rem; }
#reply { white-space: pre-wrap; overflow-wrap: anywhere; }
#status { color: #8c3030; }
.tabs { display: flex; gap: .4rem; background: #e2eaf0; padding: .4rem; border-radius: 14px; margin-bottom: 1.25rem; }
.tabs button { flex: 1; border: 0; background: transparent; color: #516779; font-weight: 650; padding: .8rem .5rem; border-radius: 10px; }
.tabs button[aria-selected="true"] { background: white; color: #126753; box-shadow: 0 2px 8px #20344812; }
#question > p, #knowledge-help, #knowledge-count, #sending { font-size: .82rem; color: #607386; }
.actions { align-items: center; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border-top: 1px solid #e2eaf0; margin-top: 1.5rem; padding-top: .5rem; }
.info-grid h3 { font-size: .95rem; margin-bottom: .4rem; }
.info-grid p { font-size: .88rem; color: #607386; margin-top: 0; }
#answer { border-left: 4px solid #269880; }
footer { text-align: center; padding: 1.5rem 0 2rem; font-size: .75rem; color: #6c7d8c; }
.conversation-shell { background: white; border: 1px solid #dce5ec; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 28px #19394f06; }
.conversation-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid #e2eaf0; }
.conversation-header h2 { font-size: 1rem; margin: 0; }
.conversation-header p { font-size: .8rem; color: #607386; margin: .2rem 0 0; }
#new-chat { background: #edf5f2; color: #14634f; border: 0; font-size: .8rem; }
#messages { height: clamp(240px, 42vh, 540px); overflow-y: auto; padding: 1.5rem; background: #fbfcfe; }
#chat-empty { color: #607386; max-width: 32rem; margin: 2rem auto; text-align: center; }
.message { max-width: 90%; margin-bottom: 1.1rem; padding: .85rem 1rem; border-radius: 14px; background: #edf2f6; overflow-wrap: anywhere; }
.message.user { margin-left: auto; background: #e0f2ec; }
.message strong { font-size: .75rem; color: #476254; }
.message p { white-space: pre-wrap; margin: .35rem 0 0; }
#question { border: 0; border-radius: 0; border-top: 1px solid #e2eaf0; box-shadow: none; padding: 1rem 1.5rem; }
#question textarea { min-height: 76px; max-height: 220px; }
#question label { margin-bottom: .5rem; }
#question > p { margin: .4rem 0 .7rem; }
.conversation-note { font-size: .75rem; color: #607386; text-align: center; }
@media (max-width: 480px) { .conversation-header, #messages, #question { padding: 1rem; } .message { max-width: 96%; } .conversation-header p { display: none; } }
/* HAL-Computers: original website accent #d63219, charcoal #323237. */
:root { color: #323237; background: #f7f7f7; }
body { background: radial-gradient(ellipse at 50% 0, #f8e9e4 0, transparent 55%); }
header { background: #323237; border-bottom-color: #d63219; }
.badge { color: #f5d5cd; }
.eyebrow { color: #b82b15; }
button { background: #d63219; border-color: #d63219; }
button.secondary { background: transparent; border-color: #aaa; }
.tabs { background: #e9e9eb; }
.tabs button[aria-selected="true"] { color: #b82b15; }
:focus-visible { outline-color: #d63219; }
#new-chat { background: #f8e9e4; color: #a52512; }
.message.user { background: #f8e9e4; }
.message strong { color: #5b4240; }
.message.assistant { background: #efeff1; }
#messages { background: #fcfcfc; }
#file-upload { margin-top: 1rem; }
#upload-help, #upload-status, #file-upload > p { font-size: .85rem; color: #58585f; }
input[type="file"] { padding: .7rem; }
input[type="file"]::file-selector-button { background: #323237; color: white; border: 0; padding: .6rem .8rem; margin-right: .75rem; border-radius: 6px; cursor: pointer; }
@media (max-width: 480px) { .header-inner { padding: 1rem; } .badge { display: none; } .brand { font-size: 1.3rem; } .actions button, #knowledge button { width: 100%; } .info-grid { grid-template-columns: 1fr; gap: 0; } .tabs button { font-size: .85rem; } }
