:root { color-scheme: light; --ink: #17211b; --muted: #607066; --paper: #f4f3ec; --surface: #fffef9; --line: #d9ddd6; --green: #176b4d; --green-dark: #0f4e38; --green-soft: #e4f2ea; --amber: #9a5a08; --amber-soft: #fff4d9; --red: #9b2c2c; --red-soft: #fdeaea; --shadow: 0 20px 60px rgba(34, 51, 40, 0.09); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } * { box-sizing: border-box; } body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 15% -10%, rgba(63, 137, 103, 0.16), transparent 34rem), linear-gradient(180deg, #fbfaf5 0%, var(--paper) 100%); } button, input, select, textarea { font: inherit; } button { color: inherit; } .shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; } .topbar { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(23, 33, 27, 0.1); } .brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; } .brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: white; background: var(--green-dark); font-family: Georgia, serif; font-weight: 700; letter-spacing: -0.04em; } .brand strong, .brand small { display: block; } .brand strong { font-size: 1rem; letter-spacing: 0.01em; } .brand small { margin-top: 2px; color: var(--muted); font-size: 0.76rem; } .health { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.82rem; } .health-dot { width: 9px; height: 9px; border-radius: 50%; background: #a0aaa3; box-shadow: 0 0 0 4px rgba(160, 170, 163, 0.14); } .health-ok .health-dot { background: #239666; box-shadow: 0 0 0 4px rgba(35, 150, 102, 0.14); } .health-error .health-dot { background: #c4553e; box-shadow: 0 0 0 4px rgba(196, 85, 62, 0.14); } .hero { max-width: 780px; padding: 64px 0 38px; } .eyebrow { margin: 0 0 12px; color: var(--green); font-size: 0.77rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; } h1 { max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; } .hero > p:last-child { max-width: 660px; margin: 22px 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.65; } .workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; padding-bottom: 64px; } .settings, .chat { border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 254, 249, 0.94); box-shadow: var(--shadow); } .settings { padding: 18px; position: sticky; top: 18px; } .settings-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } .settings h2 { margin: 0; font-size: 0.94rem; } .settings label:not(.check-row) { display: block; margin: 15px 0 6px; color: var(--muted); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; } .settings input[type="password"], .settings input[type="text"], .settings select { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; } .key-row { display: flex; gap: 6px; } .key-row input { flex: 1; } .check-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 0.78rem; cursor: pointer; } .check-row input { accent-color: var(--green); } .icon-button { display: none; border: 0; background: transparent; cursor: pointer; } .privacy-note { display: grid; gap: 5px; margin-top: 20px; padding: 12px; border-radius: 10px; color: #6f541b; background: var(--amber-soft); font-size: 0.76rem; line-height: 1.45; } .chat { min-height: 580px; overflow: hidden; } .empty-state { display: grid; justify-items: center; padding: 58px 32px 42px; text-align: center; } .empty-icon { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 18px; border: 1px solid #bed3c6; border-radius: 16px; color: var(--green-dark); background: var(--green-soft); font-family: Georgia, serif; font-size: 1.6rem; } .empty-state h2 { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; } .empty-state p { max-width: 540px; margin: 10px 0 22px; color: var(--muted); line-height: 1.55; } .suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; } .suggestions button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; transition: border-color 0.15s, transform 0.15s; } .suggestions button:hover { border-color: var(--green); transform: translateY(-1px); } .messages { display: flex; flex-direction: column; gap: 20px; padding: 30px 28px 8px; } .message { display: grid; gap: 8px; } .message-label { color: var(--muted); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; } .message-user { align-self: end; width: min(82%, 680px); } .message-user .message-body { padding: 13px 16px; border-radius: 16px 16px 4px 16px; color: white; background: var(--green-dark); white-space: pre-wrap; line-height: 1.55; } .message-agent .message-body { padding: 18px; border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; background: white; } .message-agent.is-refused .message-body { border-color: #e2c377; background: #fffbef; } .message-agent.is-uncertain .message-body, .message-error .message-body { border-color: #e4aaaa; background: var(--red-soft); } .answer-text { white-space: pre-wrap; line-height: 1.68; overflow-wrap: anywhere; } .status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 14px; } .badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-size: 0.72rem; font-weight: 750; } .badge-warning { color: #7b4c0b; background: var(--amber-soft); } .badge-error { color: var(--red); background: var(--red-soft); } .answer-meta { margin-top: 14px; color: var(--muted); font-size: 0.72rem; } .source-panel, .technical-panel { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 13px; } details summary { color: var(--green-dark); font-size: 0.83rem; font-weight: 700; cursor: pointer; } .source-list { display: grid; gap: 8px; margin-top: 10px; } .source-card { padding: 10px 11px; border-radius: 9px; background: #f5f7f3; } .source-id { color: var(--green-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.75rem; font-weight: 800; } .source-title { margin-top: 3px; font-size: 0.83rem; font-weight: 650; } .source-meta { margin-top: 3px; color: var(--muted); font-size: 0.72rem; } .conflict-box { margin-top: 14px; padding: 12px; border-left: 3px solid #d58a18; border-radius: 7px; background: var(--amber-soft); } .conflict-box strong { display: block; margin-bottom: 5px; color: #744606; font-size: 0.78rem; } .conflict-box p { margin: 0; color: #664d23; font-size: 0.82rem; line-height: 1.5; } .follow-up { margin-top: 14px; padding: 12px; border-radius: 9px; background: var(--green-soft); } .follow-up p { margin: 0 0 8px; font-size: 0.84rem; } .query-list { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.76rem; line-height: 1.5; } .rating-panel { display: grid; gap: 9px; margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf8; } .rating-panel > strong { font-size: 0.8rem; } .rating-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .rating-choice.is-selected { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); } .rating-status, .comment-status { color: var(--muted); font-size: 0.72rem; } .comment-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; padding-top: 10px; border-top: 1px solid var(--line); } .comment-input { width: 100%; min-height: 72px; resize: vertical; padding: 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; } .comment-status { grid-column: 1 / -1; } .loading-row { display: flex; align-items: center; gap: 10px; color: var(--muted); } .loader { width: 18px; height: 18px; border: 2px solid #cbd3cd; border-top-color: var(--green); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .composer { margin: 22px 20px 0; padding: 12px; border: 1px solid #cbd2cc; border-radius: 14px; background: white; box-shadow: 0 8px 30px rgba(38, 52, 43, 0.07); } .composer:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 107, 77, 0.1); } .composer textarea { width: 100%; resize: vertical; border: 0; outline: 0; color: var(--ink); background: transparent; line-height: 1.5; } .composer textarea::placeholder { color: #909a93; } .composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; } .character-count { color: var(--muted); font-size: 0.69rem; } .composer-actions { display: flex; gap: 8px; } .primary, .secondary { min-height: 38px; padding: 8px 13px; border-radius: 9px; font-weight: 700; cursor: pointer; } .primary { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--green-dark); color: white; background: var(--green-dark); } .primary:hover { background: var(--green); } .primary:disabled { cursor: not-allowed; opacity: 0.55; } .secondary { border: 1px solid var(--line); background: white; } .secondary:hover { border-color: #9bac9f; } .compact { min-height: auto; padding: 7px 9px; font-size: 0.72rem; } .send-icon { font-size: 1.15rem; } .footnote { margin: 12px 22px 20px; color: var(--muted); font-size: 0.7rem; text-align: center; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } [hidden] { display: none !important; } @media (max-width: 800px) { .shell { width: min(100% - 20px, 720px); } .topbar { min-height: 68px; } .brand small { display: none; } .health span:last-child { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hero { padding: 42px 4px 26px; } .workspace { grid-template-columns: 1fr; } .settings { position: static; padding: 13px 16px; } .settings-heading { margin: 0; } .icon-button { display: block; } #settings-body { margin-top: 14px; } .chat { min-height: 520px; } .empty-state { padding: 42px 18px 30px; } .messages { padding: 22px 14px 6px; } .message-user { width: 92%; } .composer { margin: 18px 10px 0; } .comment-form { grid-template-columns: 1fr; } .footnote { margin-inline: 14px; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; } }