/* Estilo mínimo sin compilación (no hay npm en este proyecto). Colores de la marca Wyno. */
:root { --primary: #003BE1; --accent: #4DE6EB; --ink: #02062B; --muted: #6B7280; --line: #E5E7EB; --bg: #F7F8FB; --danger: #B91C1C; --ok: #047857; --warn: #B45309; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Ubuntu, "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
header.top { background: var(--ink); color: #fff; padding: 0 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 54px; }
header.top a { color: #fff; }
header.top .brand { font-weight: bold; font-size: 18px; margin-right: 8px; }
header.top nav { display: flex; gap: 14px; flex-wrap: wrap; }
header.top nav a.active { border-bottom: 2px solid var(--accent); }
header.top .spacer { flex: 1; }
header.top select, header.top button { font-size: 13px; }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 24px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 24px 0 10px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
table.list { width: 100%; border-collapse: collapse; background: #fff; }
table.list th, table.list td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.right { text-align: right !important; }
.muted { color: var(--muted); font-size: 13px; }
.btn { display: inline-block; background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.btn:hover { text-decoration: none; opacity: .92; }
.btn.secondary { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 4px 10px; font-size: 13px; }
form.inline { display: inline; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid #CBD2E0; border-radius: 7px; width: 100%; background: #fff; }
input[type=checkbox] { width: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 120px; }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.alert.ok { background: #ECFDF5; color: var(--ok); border: 1px solid #A7F3D0; }
.alert.error { background: #FEF2F2; color: var(--danger); border: 1px solid #FECACA; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #EEF2FF; color: var(--primary); }
.badge.ok { background: #ECFDF5; color: var(--ok); }
.badge.warn { background: #FFFBEB; color: var(--warn); }
.badge.muted { background: #F3F4F6; color: var(--muted); }
.table-wrap { overflow-x: auto; }
@media (max-width: 640px) { main { padding: 14px 16px 40px; } h1 { font-size: 20px; } }
/* Asistente: lista de conversaciones a la izquierda, conversación a la derecha. El texto del modelo es texto plano con saltos. */
.assistant { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.assistant-list ul { list-style: none; padding: 0; margin: 12px 0 0; }
.assistant-list li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.assistant-list li.active a { font-weight: bold; }
.assistant-main { min-width: 0; }
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.msg { padding: 10px 14px; border-radius: 12px; max-width: 85%; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; }
.msg.assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.chat .tool { font-size: 12px; }
.chat .preview { border-color: var(--accent); border-width: 2px; margin: 0; }
.chat .preview p { white-space: pre-wrap; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 6px 0; }
dl.kv dt { color: var(--muted); font-size: 13px; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
table.list.compact th, table.list.compact td { padding: 4px 6px; font-size: 13px; }
.assistant-form textarea { resize: vertical; }
@media (max-width: 760px) { .assistant { grid-template-columns: 1fr; } .msg { max-width: 100%; } }
