/* ── Variables ──────────────────────────────────────── */
:root {
  --navy:       #0f172a;
  --navy-light: #1e293b;
  --navy-mid:   #334155;
  --amber:      #f59e0b;
  --amber-dark: #d97706;
  --blue:       #3b82f6;
  --green:      #22c55e;
  --red:        #ef4444;
  --yellow:     #eab308;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;
  --gray-800:   #1e293b;
  --text:       #0f172a;
  --text-muted: #64748b;
  --sidebar-w:  240px;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; background: var(--gray-100); color: var(--text); display: flex; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ── Sidebar ────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--navy-mid);
}
.brand-icon { display: none; }
.brand-name { font-size: 18px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: .5px; }
.brand-sub  { font-size: 9.5px; color: var(--gray-400); margin-top: 3px; letter-spacing: .2px; }

.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  padding: 10px 16px 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: #94a3b8;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
  font-size: 13.5px;
}
.nav-item:hover { background: var(--navy-light); color: #fff; }
.nav-item.active { background: var(--amber); color: var(--navy); font-weight: 600; }
.nav-icon { width: 18px; text-align: center; font-size: 14px; }
.nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--navy-mid);
}
.sidebar-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-400); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-400); }
.status-dot.ok  { background: var(--green); }
.status-dot.err { background: var(--red); }

/* ── Main Layout ────────────────────────────────────── */
.main-layout {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.content { overflow-x: hidden; }
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.page-title { font-size: 18px; font-weight: 600; color: var(--navy); }
.content { padding: 24px; flex: 1; }

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  padding: 20px;
  margin-bottom: 20px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 600; color: var(--navy); }

/* ── KPI Cards ──────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.kpi-value { font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1; }
.kpi-sub   { font-size: 12px; color: var(--text-muted); }
.kpi-accent-amber { border-top: 3px solid var(--amber); }
.kpi-accent-blue  { border-top: 3px solid var(--blue); }
.kpi-accent-green { border-top: 3px solid var(--green); }
.kpi-accent-red   { border-top: 3px solid var(--red); }

/* ── Buttons ────────────────────────────────────────── */
.btn { padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 500; transition: opacity 0.15s, background 0.15s; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-secondary { background: var(--gray-200); color: var(--gray-800); }
.btn-success { background: var(--green); color: #fff; }
.btn-danger  { background: var(--red); color: #fff; }
.btn-blue    { background: var(--blue); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 6px 8px; }

/* ── Tables ─────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; }
.data-table th {
  background: var(--gray-100);
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--gray-200);
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--text);
  font-size: 13px;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }
.td-actions { display: flex; gap: 6px; }

/* ── Badges / Status ────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-gray   { background: var(--gray-200); color: var(--gray-600); }
.badge-amber  { background: #fef3c7; color: #b45309; }
.badge-navy   { background: var(--navy); color: #fff; }

/* ── Forms ──────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--gray-600); }
.form-control {
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s;
  width: 100%;
}
.form-control:focus { outline: none; border-color: var(--amber); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }

/* ── Modal ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-lg { max-width: 820px; }
.modal-xl { max-width: 1140px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-200);
}
.modal-title { font-size: 16px; font-weight: 600; color: var(--navy); }
.modal-close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--text-muted); transition: background 0.15s; }
.modal-close:hover { background: var(--gray-100); }
.modal-body  { padding: 22px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 10px; }

/* ── Toast ──────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  min-width: 240px;
  max-width: 360px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.2s ease;
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error   { border-left: 4px solid var(--red); }
.toast.info    { border-left: 4px solid var(--blue); }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Workflow Timeline ──────────────────────────────── */
.workflow-timeline { padding: 8px 0; }

.wf-compact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wf-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  background: #0099b6;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.wf-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.wf-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 8px;
  flex-shrink: 0;
}
.wf-dot.done    { background: #dcfce7; color: #15803d; border: 1.5px solid #86efac; font-size: 9px; font-weight: 700; }
.wf-dot.current { background: #0099b6; border: 2px solid #007a92; }
.wf-dot.pending { background: var(--gray-100); border: 1.5px solid var(--gray-300); }
.wf-counter {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Detail Sections ────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.detail-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 20px; }
.detail-item label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); display: block; }
.detail-item span  { font-size: 13px; color: var(--text); }

/* ── Search bar ─────────────────────────────────────── */
.search-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.search-input { flex: 1; min-width: 200px; padding: 8px 12px; border: 1px solid var(--gray-200); border-radius: 6px; font-size: 13px; }
.search-input:focus { outline: none; border-color: var(--amber); }

/* ── Loading ────────────────────────────────────────── */
.loading-spinner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px; color: var(--text-muted); gap: 12px; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--gray-200); border-top-color: var(--amber); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 48px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 40px; margin-bottom: 10px; }

/* ── Alert boxes ────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.alert-success { background: #dcfce7; color: #15803d; border-left: 4px solid var(--green); }
.alert-error   { background: #fee2e2; color: #b91c1c; border-left: 4px solid var(--red); }
.alert-info    { background: #dbeafe; color: #1d4ed8; border-left: 4px solid var(--blue); }
.alert-warning { background: #fef9c3; color: #a16207; border-left: 4px solid var(--yellow); }

/* ── Validation result (API 598) ────────────────────── */
.validation-box { border-radius: 8px; padding: 16px; margin-top: 16px; }
.validation-box.pass { background: #dcfce7; border: 1px solid #86efac; }
.validation-box.fail { background: #fee2e2; border: 1px solid #fca5a5; }
.validation-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.validation-row { display: flex; justify-content: space-between; font-size: 12px; padding: 3px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.validation-obs { margin-top: 10px; font-size: 12px; line-height: 1.5; }

/* ── Tab navigation ─────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 8px 18px; font-size: 13px; font-weight: 500; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.tab.active { color: var(--amber-dark); border-bottom-color: var(--amber); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Misc ───────────────────────────────────────────── */
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-200); }
.text-muted { color: var(--text-muted); }
.text-sm    { font-size: 12px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.d-flex { display: flex; }
.gap-2  { gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
hr.divider { border: none; border-top: 1px solid var(--gray-200); margin: 16px 0; }
.chart-container { position: relative; height: 220px; }

/* ── Login Overlay ──────────────────────────────────── */
.login-overlay {
  position: fixed; inset: 0;
  display: flex; align-items: stretch;
  z-index: 9999;
}

/* Panel izquierdo — Nodexia brand */
.login-panel-brand {
  flex: 1;
  background: #0d1a3a;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 60px 48px;
  position: relative; overflow: hidden;
}
/* X decorativa de fondo */
.login-panel-brand::before {
  content: '';
  position: absolute; right: -8%; top: -5%; bottom: -5%;
  width: 75%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 600'%3E%3Cdefs%3E%3ClinearGradient id='xg' x1='0' y1='0' x2='500' y2='600' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0%25' stop-color='%230099b6' stop-opacity='0.18'/%3E%3Cstop offset='100%25' stop-color='%2300b1b7' stop-opacity='0.06'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M70 50L250 300L70 550H160L250 395L340 550H430L250 300L430 50H340L250 205L160 50H70Z' fill='url(%23xg)'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}
/* Línea teal izquierda */
.login-panel-brand::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0099b6, #00b1b7);
}
.login-brand-content { position: relative; z-index: 1; text-align: center; max-width: 320px; }
.login-ndx-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 32px;
}
.login-ndx-wordmark { text-align: left; }
.login-ndx-wordmark .ndx-name {
  font-size: 30px; font-weight: 900; color: #fff;
  letter-spacing: -0.03em; line-height: 1;
}
.login-ndx-wordmark .ndx-name .nx { color: #00b1b7; }
.login-ndx-wordmark .ndx-sub {
  font-size: 10px; color: #64748b; letter-spacing: 0.12em;
  text-transform: uppercase; margin-top: 3px;
}
.login-product-name {
  font-size: 15px; font-weight: 700; color: #94a3b8;
  margin-bottom: 8px;
}
.login-product-desc {
  font-size: 13px; color: #475569; line-height: 1.7;
  margin-bottom: 36px;
}
.login-normas {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.login-norma-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 4px 12px;
  font-size: 10.5px; color: #64748b; font-weight: 600; letter-spacing: 0.05em;
}
.login-brand-footer {
  position: absolute; bottom: 24px; left: 0; right: 0;
  text-align: center; font-size: 11px; color: #334155;
  letter-spacing: 0.05em;
}

/* Panel derecho — formulario */
.login-panel-form {
  width: 420px; flex-shrink: 0;
  background: #fff;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
}
.login-form-header { margin-bottom: 32px; }
.login-form-header .login-greeting {
  font-size: 11px; font-weight: 700; color: #0099b6;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px;
}
.login-title {
  font-size: 26px; font-weight: 800; color: #0d1a3a;
  letter-spacing: -0.5px; margin-bottom: 6px;
}
.login-subtitle { font-size: 13px; color: #64748b; }
.login-error { color: var(--red); font-size: 12.5px; min-height: 18px; margin: 6px 0; }
.login-form-footer {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}
.login-form-footer p { font-size: 11px; color: #94a3b8; }
.login-form-footer .ndx-credit {
  font-size: 11px; color: #94a3b8; margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.login-form-footer .ndx-credit strong { color: #0099b6; }
.btn-block { width: 100%; margin-top: 4px; padding: 12px; font-size: 15px; font-weight: 700; }

/* Responsive — pantallas pequeñas: oculta el panel brand */
@media (max-width: 700px) {
  .login-panel-brand { display: none; }
  .login-panel-form  { width: 100%; padding: 40px 28px; }
}

/* Mantener compatibilidad con .login-card por si acaso */
.login-card { display: contents; }

/* ── Topbar user info ───────────────────────────────── */
.topbar-user { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.user-name { font-weight: 600; font-size: 13px; color: var(--navy); }
.user-role { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-role-administrador { background: #fef3c7; color: #92400e; }
.badge-role-supervisor    { background: #dbeafe; color: #1e40af; }
.badge-role-inspector     { background: #dcfce7; color: #166534; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-outline { border: 1px solid var(--gray-200); background: #fff; color: var(--text-muted); border-radius: 6px; }
.btn-outline:hover { background: var(--gray-100); }

/* ── IA Chat Widget ─────────────────────────────────── */
#ia-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0099b6, #00b1b7);
  color: #fff;
  font-size: 22px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,153,182,0.45);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ia-chat-btn:hover  { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,153,182,0.55); }
#ia-chat-btn.active { background: linear-gradient(135deg, #0d1a3a, #0a2a4a); }

#ia-chat-panel {
  position: fixed;
  bottom: 86px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  z-index: 999;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
  overflow: hidden;
}
#ia-chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

#ia-chat-header {
  background: linear-gradient(135deg, #0d1a3a, #0a3a4a);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

#ia-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
}

.ia-msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.ia-msg-bot  { background: #fff; border: 1px solid #e2e8f0; align-self: flex-start; border-bottom-left-radius: 3px; }
.ia-msg-user { background: #1a3a5c; color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }

.ia-typing { display: inline-flex; gap: 4px; align-items: center; }
.ia-typing span {
  width: 7px; height: 7px;
  background: #94a3b8;
  border-radius: 50%;
  animation: ia-bounce 1.2s infinite ease-in-out;
}
.ia-typing span:nth-child(2) { animation-delay: 0.2s; }
.ia-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ia-bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40%           { transform: scale(1);   opacity: 1;   }
}

#ia-chat-input-area {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}
#ia-chat-input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  resize: none;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
#ia-chat-input:focus { border-color: #2e6da4; }
#ia-chat-send {
  background: #1a3a5c;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 36px;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.15s;
}
#ia-chat-send:hover    { background: #2e6da4; }
#ia-chat-send:disabled { background: #94a3b8; cursor: not-allowed; }
