:root {
  color-scheme: light;
  font-family: "Manrope", "Avenir Next", "Helvetica Neue", sans-serif;
  --canvas: #fcfcfb;
  --ink: #242424;
  --muted: #6d6d68;
  --line: #e7e7e3;
  --soft: #f2f2ef;
  --brand: #c92b32;
  --brand-hover: #b22027;
  --sidebar: #171717;
  --sidebar-muted: #a5a5a0;
  --reading-width: 760px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
button, a { transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: transparent; color: inherit; }
.icon-button:hover { background: var(--soft); }
.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; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.wordmark { font-size: 39px; font-weight: 800; font-style: italic; letter-spacing: -.065em; line-height: 1; color: #fafafa; }
.wordmark img { display: block; width: 114px; height: auto; }
.brand-period { color: #f04c52; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.workspace { height: 100vh; height: 100dvh; display: grid; grid-template-columns: 264px minmax(0, 1fr); overflow: hidden; }
.sidebar { min-height: 0; display: flex; flex-direction: column; padding: 30px 16px 12px; color: #eeeeeb; background: var(--sidebar); }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.sidebar-product { display: block; color: var(--sidebar-muted); font-size: 10px; font-weight: 600; letter-spacing: .14em; margin: 15px 10px 30px; }
.new-conversation { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border: 1px solid #40403d; border-radius: 8px; background: #242424; color: #f6f6f4; text-align: left; font-size: 12px; font-weight: 600; }
.new-conversation:hover { background: #30302e; border-color: #656560; }
.new-conversation .icon { width: 18px; }
.new-shortcut { margin-left: auto; color: #ababaa; font-size: 16px; }
.history-search { display: flex; align-items: center; gap: 9px; padding: 0 10px; min-height: 44px; margin: 14px 0 23px; color: #969693; }
.history-search .icon { width: 16px; }
.history-search input { min-width: 0; width: 100%; height: 36px; background: transparent; border: 0; color: #f5f5f3; font-size: 12px; }
.history-search input::placeholder { color: #a5a5a0; opacity: 1; }
.history-heading { padding: 0 10px 12px; color: #9d9d97; font-size: 11px; font-weight: 600; }
.conversation-list { min-height: 0; flex: 1; overflow: auto; scrollbar-width: thin; scrollbar-color: #42423f transparent; }
.conversation-group { padding: 18px 10px 6px; color: #999993; font-size: 10px; font-weight: 600; }
.conversation-item { display: block; width: 100%; min-height: 44px; padding: 11px 12px; margin: 2px 0; border-radius: 7px; background: transparent; color: #c5c5c0; text-align: left; }
.conversation-item strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 500; }
.conversation-item:hover { background: #252525; color: white; }
.conversation-item[aria-current="true"] { background: #30302e; color: #fafaf8; }
.sidebar-empty { color: var(--sidebar-muted); padding: 12px 10px; font-size: 12px; line-height: 1.7; }
.sidebar-footer { flex-shrink: 0; margin-top: 16px; border-top: 1px solid #33332f; padding-top: 8px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; font-size: 12px; color: #bbbcb7; border-radius: 7px; }
.sidebar-link .icon:last-child { margin-left: auto; width: 13px; }
.sidebar-link:hover { color: white; background: #282827; }
.admin-entry { margin-bottom: 12px; background: #252524; }
.unavailable, button:disabled.unavailable { background: #eeeee9 !important; color: #82827b !important; border-color: #e1e1db !important; cursor: not-allowed !important; opacity: 1; box-shadow: none !important; }
.download-unavailable { display: block; color: #74746c; font-size: 11px; margin-top: 5px; }
.presentation-status { position: relative; margin: 0 32px; flex-shrink: 0; color: #73736b; font-size: 11px; border-bottom: 1px solid var(--line); }
.presentation-status summary { cursor: pointer; width: fit-content; min-height: 36px; padding: 10px 0; }
.presentation-status summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.presentation-status summary span { color: #73736b; }
.presentation-details { position: absolute; z-index: 20; top: 100%; left: 0; width: min(560px,100%); max-height: 50vh; overflow-y: auto; padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px #0001; font-size: 12px; line-height: 1.7; }
.unavailable-note { color: #73736b; }
.available-note { color: #32613e; }
@media (max-width: 760px) { .presentation-status { margin: 0 18px; font-size: 10px; } }
.account { display: flex; align-items: center; gap: 10px; padding: 10px 0 2px 8px; }
.user-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e6ddd0; color: #4d463e; font-size: 12px; font-weight: 700; }
.account-detail { min-width: 0; flex: 1; }
.account-detail strong, .account-detail small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-detail strong { font-size: 12px; font-weight: 600; }
.account-detail small { font-size: 10px; color: #a6a69f; margin-top: 4px; }
.sidebar .icon-button { color: #b3b3ac; }
.sidebar .icon-button:hover { background: #30302e; color: #fff; }
.chat-workspace { display: flex; min-width: 0; min-height: 0; flex-direction: column; }
.workspace-header { flex-shrink: 0; height: 78px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.workspace-title { display: flex; align-items: center; gap: 6px; font-size: 16px; white-space: nowrap; }
.workspace-title strong { font-weight: 700; }
.header-divider { width: 1px; height: 18px; margin: 0 12px; background: var(--line); }
.workspace-domain { color: var(--muted); font-size: 12px; }
.workflows-button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: #565650; background: transparent; font-size: 12px; }
.workflows-button:hover { background: var(--soft); }
.workflows-button .icon { width: 17px; height: 17px; }
.count { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 4px; display: grid; place-items: center; background: #eaeae5; color: #62625b; font-size: 10px; font-variant-numeric: tabular-nums; }
.chat-stage { min-height: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; }
.welcome { padding: 16px 24px 32px; text-align: center; }
.welcome-mark { display: inline-block; font-weight: 800; font-style: italic; font-size: 46px; letter-spacing: -.09em; line-height: 1; margin-bottom: 28px; color: #202020; }
.welcome-mark span { color: var(--brand); }
.greeting { font-size: 16px; margin: 0 0 10px; color: var(--muted); }
.welcome h1 { font-size: clamp(25px, 2.6vw, 36px); font-weight: 600; line-height: 1.3; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.welcome-description { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.composer-area { width: min(var(--reading-width), calc(100% - 64px)); margin: 0 auto; padding-bottom: 24px; flex-shrink: 0; }
.composer { padding: 18px 16px 12px 20px; background: #fff; border: 1px solid #dcdcd7; border-radius: 18px; box-shadow: 0 3px 12px #22222205; transition: border-color 160ms ease, box-shadow 160ms ease; }
.composer:focus-within { border-color: #999991; box-shadow: 0 3px 16px #22222208; }
.composer textarea { display: block; width: 100%; min-height: 30px; max-height: 180px; resize: none; border: 0; background: transparent; color: var(--ink); font-size: 15px; line-height: 1.7; padding: 0 4px 0 0; }
.composer textarea:focus { outline: none; }
.composer textarea::placeholder { color: #7c7c75; opacity: 1; }
.composer textarea:disabled { opacity: .65; }
.composer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.composer-context { display: flex; align-items: center; gap: 7px; color: #77776e; font-size: 11px; }
.composer-context .icon { width: 14px; height: 14px; }
.send-button { display: grid; place-items: center; width: 44px; height: 44px; background: var(--brand); color: white; border-radius: 50%; flex-shrink: 0; }
.send-button:hover { background: var(--brand-hover); }
.send-button:disabled { background: #ecece7; color: #97978c; }
.suggestions { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.suggestion { display: flex; align-items: center; gap: 9px; padding: 11px 13px; min-height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 8px; color: #5d5d55; font-size: 12px; }
.suggestion:hover { background: var(--soft); border-color: #b9b9b0; }
.suggestion .icon { width: 16px; height: 16px; }
.suggestion .icon:last-child { width: 12px; margin-left: 5px; color: #85857d; }
.composer-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 16px; min-height: 32px; padding-top: 12px; color: #74746c; font-size: 10px; text-align: center; line-height: 1.6; }
#composer-hint { display: none; }
.composer:focus-within ~ .composer-footer #composer-hint { display: inline; }
.has-messages .chat-stage { justify-content: start; }
.messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 32px max(32px, calc((100% - var(--reading-width)) / 2)) 20px; scrollbar-width: thin; scrollbar-color: #d7d7d0 transparent; }
.message { max-width: 100%; min-width: 0; margin: 0 0 32px; animation: appear 160ms ease-out; }
.message.user { margin-left: auto; padding: 12px 18px; width: fit-content; max-width: 82%; border-radius: 20px 20px 5px 20px; background: #eeeee9; font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-label { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.assistant-monogram { font-style: italic; font-size: 20px; font-weight: 800; color: var(--brand); }
.message-content { color: #30302b; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.message-content p { margin: 0 0 14px; white-space: pre-wrap; }
.message-content p:last-child { margin-bottom: 0; }
.message-content strong { font-weight: 750; }
.message-content h2, .message-content h3, .message-content h4 { margin: 22px 0 10px; line-height: 1.5; font-size: 17px; font-weight: 700; }
.message-content ul, .message-content ol { padding-left: 23px; margin: 12px 0 20px; }
.message-content li { padding-left: 5px; margin: 5px 0; }
.message-content code { font-family: "SFMono-Regular", Consolas, monospace; background: #eeeee9; border-radius: 4px; padding: 2px 5px; font-size: .87em; }
.message-content pre { overflow-x: auto; padding: 16px; border-radius: 8px; background: #f0f0eb; line-height: 1.6; }
.message-content pre code { padding: 0; background: none; }
.message-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #a0a099; }
.message-actions { margin: 8px 0 0 -10px; display: flex; align-items: center; }
.copy-button { width: auto; min-width: 44px; padding: 0 10px; gap: 6px; grid-auto-flow: column; color: #7d7d74; font-size: 11px; }
.copy-button .icon { width: 16px; height: 16px; }
.message.error .message-content { color: #a82a31; }
.retry-button { color: #a82a31; background: #fcecee; min-height: 44px; border-radius: 6px; padding: 8px 12px; margin-top: 8px; font-size: 12px; }
.thinking { display: flex; align-items: center; gap: 5px; color: #727269; font-size: 13px; }
.thinking-dots { display: inline-flex; gap: 4px; margin-right: 6px; }
.thinking-dots span { width: 5px; height: 5px; background: #88887c; border-radius: 50%; animation: breathe 1.2s ease-in-out infinite; }
.thinking-dots span:nth-child(2) { animation-delay: 160ms; }
.thinking-dots span:nth-child(3) { animation-delay: 320ms; }
.document-link { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px; margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: white; }
.document-link:hover { background: var(--soft); }
.workflows-dialog { position: fixed; margin: 0 0 0 auto; inset: 0; width: 420px; max-width: 100%; height: 100%; max-height: 100%; padding: 32px 24px; border: 0; border-left: 1px solid var(--line); background: var(--canvas); color: var(--ink); overflow-y: auto; }
.workflows-dialog::backdrop { background: #14141455; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-header .eyebrow { color: var(--muted); }
.drawer-header h2 { font-size: 25px; letter-spacing: -.04em; font-weight: 650; margin: 10px 0 0; }
.drawer-description { font-size: 13px; color: var(--muted); margin: 18px 0 26px; line-height: 1.7; }
.workflow-item { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.workflow-item strong { font-size: 14px; }
.workflow-item small { color: var(--muted); font-size: 11px; }
.workflow-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #786128; }
.workflow-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.workflow-status[data-status="DELIVERED"] { color: #37734c; }
.workflow-status[data-status="FAILED"], .workflow-status[data-status="REJECTED"], .workflow-status[data-status="FAILED_TO_START"] { color: #ae3036; }
.workflow-link { width: fit-content; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.empty-state { font-size: 14px; color: var(--muted); line-height: 1.8; padding: 24px 0; }
.mobile-only { display: none; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100dvh; }
.login-brand { padding: 48px 64px; background: var(--sidebar); color: white; display: flex; flex-direction: column; justify-content: space-between; }
.login-intro { padding: 80px 0; }
.login-intro .eyebrow { color: #aaa9a3; }
.login-intro h1 { font-size: clamp(34px, 4vw, 60px); line-height: 1.2; letter-spacing: -.06em; font-weight: 600; }
.login-intro p { max-width: 360px; color: #b7b6af; font-size: 15px; line-height: 1.9; }
.login-footnote { color: #a5a59d; font-size: 11px; }
.login-content { display: grid; place-items: center; padding: 48px; }
.login-form { width: min(100%, 360px); }
.login-form > .eyebrow { color: var(--muted); }
.login-form h2 { font-size: 36px; font-weight: 650; letter-spacing: -.05em; margin: 15px 0; }
.login-form p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.demo-label { display: block; color: #717169; font-size: 11px; margin: 24px 0 10px; }
.login-persona { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.login-persona:hover { color: var(--brand); }
.persona-initial { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #efefe9; font-size: 13px; }
.login-persona strong { display: block; font-size: 13px; font-weight: 650; }
.login-persona small { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.login-persona > .icon { width: 16px; margin-left: auto; color: #8a8a82; }
.microsoft-login { margin-top: 30px; padding: 16px; background: #202020; color: #fff; border-radius: 8px; font-size: 13px; }
.microsoft-login:hover { background: #363636; color: #fff; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes breathe { 0%, 80%, 100% { opacity: .35; } 40% { opacity: 1; } }
@media (min-height: 800px) { .welcome { padding-bottom: 38px; } .workspace:not(.has-messages) .chat-stage { padding-bottom: 8vh; } }
@media (max-width: 1100px) { .workspace { grid-template-columns: 240px minmax(0, 1fr); } .workspace-header { padding: 0 24px; } .header-divider, .workspace-domain { display: none; } .composer-area { width: calc(100% - 48px); } .messages { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 760px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 85vw); z-index: 30; transform: translateX(-100%); visibility: hidden; transition: transform 180ms ease, visibility 180ms; }
  .sidebar-open .sidebar { transform: none; visibility: visible; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 25; background: #0005; width: 100%; }
  .mobile-only { display: inline-grid; }
  .workspace-header { height: 64px; padding: 0 12px; gap: 4px; }
  .workspace-title { gap: 5px; font-size: 14px; }
  .workspace-title .icon-button { margin-right: 3px; }
  .workflows-button { border-color: transparent; padding: 8px; gap: 6px; }
  .workflows-button > span:not(.count) { display: none; }
  .workflows-button::after { content: "Solicitudes"; font-size: 11px; }
  .count { order: 1; }
  .welcome { padding: 16px 18px 26px; }
  .welcome-mark { margin-bottom: 20px; font-size: 40px; }
  .welcome h1 { font-size: 27px; }
  .welcome-description { font-size: 13px; }
  .composer-area { width: calc(100% - 28px); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .composer { border-radius: 16px; padding: 15px 12px 10px 16px; }
  .composer textarea { font-size: 16px; max-height: 140px; }
  .composer-context { font-size: 10px; }
  .suggestions { gap: 8px; flex-wrap: wrap; margin-top: 16px; }
  .suggestion { font-size: 11px; padding: 10px; gap: 7px; }
  .suggestion .icon:last-child { display: none; }
  .messages { padding: 20px 20px 12px; }
  .message.user { max-width: 90%; font-size: 15px; }
  .message-content { font-size: 16px; line-height: 1.8; }
  .message { margin-bottom: 26px; }
  #composer-hint { display: none !important; }
  .login-layout { grid-template-columns: 1fr; }
  .login-brand { padding: 28px; min-height: 190px; }
  .login-intro { padding: 28px 0 0; }
  .login-intro h1 { font-size: 30px; margin: 12px 0; }
  .login-intro p, .login-footnote, .login-intro .eyebrow { display: none; }
  .login-content { padding: 36px 28px; }
}
@media (max-height: 650px) { .welcome-mark { display: none; } .welcome { padding: 12px 16px 20px; } .welcome-description { display: none; } .composer-area { padding-bottom: 10px; } .sidebar { padding-top: 20px; } .sidebar-product { margin-bottom: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
