:root { font-family: Arial, Helvetica, sans-serif; color: #29292b; background: #fff; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; }
button, input { font: inherit; }
.site-shell, .login-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { height: 78px; display: flex; align-items: center; gap: 42px; padding: 0 4.8%; border-bottom: 2px solid #A50012; background: #fff; }
.brand { display: block; line-height: 0; }.brand img { display: block; width: 116px; height: auto; }
nav { flex: 1; } nav a { display: inline-block; padding: 10px 14px; color: #545967; font-size: 10px; font-weight: 700; text-decoration: none; }
nav a.active { background: #A50012; color: #fff; }
.logout button { border: 0; background: transparent; color: #555b68; font-size: 11px; cursor: pointer; }
.logout button:hover { color: #A50012; }
.chat-page { width: min(1180px, 91%); flex: 1; margin: 0 auto; padding: 52px 0 65px; }
.page-title { text-align: center; }.section-label { margin: 0; color: #A50012; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
h1 { margin: 8px 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.8px; }.page-title > p:last-child { margin: 0; color: #69707d; font-size: 14px; }
.chat-card { width: min(860px, 100%); margin: 36px auto 0; border: 1px solid #aab2bf; background: #fff; box-shadow: 0 12px 25px rgb(0 0 0 / 10%); }
.chat-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 23px; border-bottom: 1px solid #d8dce2; }.chat-card-header h2 { margin: 0; font-size: 17px; }.chat-card-header span { color: #6b7280; font-size: 11px; }
#messages { min-height: 265px; max-height: 52vh; overflow-y: auto; padding: 23px; background: #fafbfc; }
.message { width: fit-content; max-width: 86%; margin-bottom: 14px; padding: 12px 15px; border-radius: 2px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant { border-left: 3px solid #A50012; background: #edf0f4; }.user { margin-left: auto; background: #30333a; color: #fff; }
#status { min-height: 19px; margin: 0; padding: 7px 23px 0; color: #6b7280; font-size: 12px; }
#chat-form { padding: 13px 23px 23px; } label { display: block; margin-bottom: 7px; color: #4d535e; font-size: 12px; font-weight: 700; }.input-row { display: flex; gap: 10px; }
input { min-width: 0; flex: 1; border: 1px solid #c6ccd6; border-radius: 0; background: #eef4ff; padding: 11px 12px; font-size: 14px; } input:focus { outline: 2px solid #A50012; outline-offset: -1px; }
button { border: 0; border-radius: 0; background: #A50012; color: #fff; padding: 11px 22px; font-weight: 700; font-size: 13px; cursor: pointer; } button:hover { background: #A50012; } button:disabled { opacity: .55; cursor: wait; }
footer { margin-top: auto; padding: 16px 5%; background: #343434; color: #d5d5d5; text-align: center; font-size: 10px; } footer span { display: inline-block; margin: 0 10px; }
.login-shell { justify-content: center; background: linear-gradient(#fff 0 88%, #fafafa 88%); }.login-card { width: min(360px, calc(100% - 32px)); margin: auto; padding: 27px 26px 31px; border: 1px solid #9da7b5; box-shadow: 0 18px 28px rgb(0 0 0 / 16%); }
.login-brand { text-align: center; }.login-brand img { display: block; width: 164px; height: auto; margin: 0 auto; }.login-card h1 { margin: 26px 0 5px; font-size: 20px; text-align: center; }.login-intro { margin: 0 0 24px; color: #6b7280; font-size: 12px; text-align: center; }.login-card label { margin-top: 17px; }.login-card input { display: block; width: 100%; }.login-card button { width: 100%; margin-top: 22px; }.login-error { margin: 14px 0 0; padding: 10px; background: #fff0f1; color: #9b0020; font-size: 12px; }
@media (max-width: 650px) { .site-header { height: auto; flex-wrap: wrap; gap: 12px; padding: 16px; }.site-header nav { order: 3; flex-basis: 100%; }.chat-page { padding-top: 34px; }.chat-card-header { align-items: flex-start; }.input-row { flex-direction: column; }.input-row button { width: 100%; }.message { max-width: 95%; } }

/* Open conversation workspace, using the Albert Soler brand palette. */
.chat-screen { background: #fafafa; }
.chat-screen .site-shell { height: 100vh; height: 100dvh; min-height: 0; }
.chat-screen .site-header { flex-shrink: 0; height: 94px; padding: 0 36px; gap: 24px; border-bottom: 2px solid #A50012; }
.chat-screen .brand img { width: 142px; }
.header-description { border-left: 1px solid #e5e5e5; padding-left: 24px; color: #A50012; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.header-description span { display: block; margin-top: 7px; color: #727272; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.chat-screen .logout { margin-left: auto; }
.chat-screen .logout button { padding: 10px 15px; border: 1px solid #dedede; border-radius: 8px; background: #fff; }
.chat-screen .logout button:hover { border-color: #A50012; }
.language-picker, .login-language-picker { display: flex; align-items: center; gap: 7px; }
.language-picker label, .login-language-picker label { margin: 0; color: #666; font-size: 11px; font-weight: 400; }
.language-picker select, .login-language-picker select { border: 1px solid #dedede; border-radius: 8px; background: #fff; padding: 8px 28px 8px 10px; color: #404040; font-size: 12px; cursor: pointer; }
.language-picker select:focus-visible, .login-language-picker select:focus-visible { outline: 2px solid #A50012; outline-offset: 2px; }
.login-language-picker { justify-content: flex-end; margin-bottom: 10px; }
.chat-screen .chat-page { display: flex; flex-direction: column; width: 100%; min-height: 0; padding: 0; }
.conversation-area { flex: 1; min-height: 0; overflow-y: auto; padding: 24px; overscroll-behavior: contain; }
.welcome { width: min(860px, 100%); margin: clamp(16px, 7vh, 90px) auto 36px; text-align: center; }
.welcome[hidden] { display: none; }
.welcome-logo { display: block; width: 174px; height: auto; margin: 0 auto 34px; }
.welcome .section-label { font-size: 10px; letter-spacing: .18em; }
.welcome h1 { margin: 16px 0 13px; font-size: clamp(25px, 3vw, 36px); font-weight: 500; letter-spacing: -1px; line-height: 1.25; }
.welcome-description { margin: 0; color: #747474; font-size: 14px; line-height: 1.6; }
.suggestions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px auto 0; max-width: 780px; }
.suggestions button { position: relative; padding: 18px 32px 18px 18px; border: 1px solid #e3e3e3; border-radius: 12px; background: #fff; color: #454545; font-size: 12px; font-weight: 400; line-height: 1.5; text-align: left; transition: border-color .15s, box-shadow .15s; }
.suggestions button > span:first-child { display: block; margin-bottom: 6px; color: #A50012; font-size: 11px; font-weight: 700; }
.suggestions .suggestion-arrow { position: absolute; right: 14px; top: 17px; color: #999; font-size: 17px; }
.suggestions button:hover { border-color: #A50012; box-shadow: 0 4px 14px rgb(0 0 0 / 4%); }
.chat-screen #messages { width: min(860px, 100%); margin: 0 auto; padding: 8px 0; min-height: 0; max-height: none; overflow: visible; background: transparent; }
.chat-screen #messages:empty { padding: 0; }
.chat-screen .message { margin-bottom: 24px; padding: 16px 20px; border-radius: 14px; font-size: 15px; line-height: 1.75; }
.chat-screen .assistant { background: #fff; border: 1px solid #e6e6e6; border-left: 3px solid #A50012; }
.chat-screen .user { background: #303033; border-radius: 14px 14px 3px 14px; }
.markdown-paragraph { margin: 0 0 14px; }.markdown-paragraph:last-child { margin-bottom: 0; }
.markdown-list { margin: 0 0 14px; padding-left: 22px; }.markdown-list:last-child { margin-bottom: 0; }
.markdown-paragraph code, .markdown-table code { padding: 2px 5px; border-radius: 4px; background: #f1f2f4; color: #8f0018; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; }
.markdown-table-wrapper { width: 100%; margin: 14px 0; overflow-x: auto; border: 1px solid #e0e2e6; border-radius: 9px; outline: none; }.markdown-table-wrapper:focus-visible { box-shadow: 0 0 0 3px rgb(196 0 34 / 18%); }
.markdown-table { width: 100%; min-width: 520px; border-collapse: collapse; background: #fff; font-size: 13px; line-height: 1.45; text-align: left; }.markdown-table th { padding: 10px 13px; background: #c40022; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }.markdown-table td { padding: 9px 13px; border-top: 1px solid #e8e9eb; color: #30333a; vertical-align: top; }.markdown-table tbody tr:nth-child(even) { background: #fafafa; }.markdown-table tbody tr:hover { background: #fff3f5; }
.composer { flex-shrink: 0; width: min(920px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 6px; }
.chat-screen #status { min-height: 30px; padding: 5px 8px; }
.chat-screen #chat-form { padding: 0; }
.chat-screen .input-row { align-items: center; flex-direction: row; gap: 10px; padding: 9px 10px 9px 20px; border: 1px solid #dedede; border-radius: 18px; background: #fff; box-shadow: 0 4px 22px rgb(0 0 0 / 3%); }
.chat-screen .input-row:focus-within { border-color: #A50012; box-shadow: 0 0 0 3px rgb(196 0 34 / 7%); }
.chat-screen #question { width: 100%; padding: 12px 0; border: 0; outline: none; background: transparent; font-size: 15px; }
.chat-screen #question::placeholder { color: #8a8a8a; }
.chat-screen .input-row button { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border-radius: 11px; }
.composer-note { margin: 12px 0 8px; color: #808080; font-size: 11px; text-align: center; }
.chat-screen footer { flex-shrink: 0; margin: 0; padding: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.chat-screen button:focus-visible, .chat-screen a:focus-visible { outline: 2px solid #A50012; outline-offset: 4px; }
@media (max-width: 650px) {
  .chat-screen .site-header { height: 76px; flex-wrap: nowrap; gap: 12px; padding: 0 18px; }
  .chat-screen .brand img { width: 116px; }
  .header-description { display: none; }
  .language-picker label { display: none; }
  .language-picker select { padding: 7px 6px; }
  .conversation-area { padding: 20px 18px; }
  .welcome { margin-top: 24px; }
  .welcome-logo { width: 140px; margin-bottom: 24px; }
  .suggestions { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .suggestions button { padding: 12px 34px 12px 14px; }
  .suggestions button > span:first-child { margin-bottom: 2px; }
  .composer { width: calc(100% - 28px); }
  .chat-screen .message { max-width: 95%; padding: 12px 15px; }
}
@media (prefers-reduced-motion: reduce) { .suggestions button { transition: none; } }
