/* LTL Financial Group · CRM — estilos con colores de marca */
:root {
  --navy: #212b55;
  --navy-deep: #182043;
  --navy-soft: #2d3868;
  --gold: #f7b036;
  --gold-dark: #c27a14;
  --gold-grad: linear-gradient(135deg, #f7b036 0%, #c27a14 100%);
  --ink: #1b2140;
  --muted: #5c6486;
  --line: #e1e4ee;
  --bg: #f4f5fa;
  --card: #ffffff;
  --ok: #17694a; --ok-bg: #dff3ea;
  --warn: #7a4e00; --warn-bg: #fff0d1;
  --bad: #9b1c2e; --bad-bg: #fde4e7;
  --off: #4a5170; --off-bg: #e8eaf2;
  --radius: 10px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14px/1.55 var(--font); color: var(--ink); background: var(--bg); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid transparent; background: none; padding: 9px 16px; border-radius: 8px; font-weight: 500; cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap; }
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 600; }
.btn-primary:hover { background: #ffbe4f; }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-danger { border-color: #e9b4bb; background: #fff; color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy); font-weight: 600; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.link-btn:hover { text-decoration-color: var(--gold-dark); }

/* ---------- Acceso (login) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 5fr) 6fr; }
.auth-brand { background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; position: relative; color: #fff; text-align: center; }
.auth-brand::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 5px; background: var(--gold-grad); }
.auth-brand img { width: min(340px, 70%); height: auto; display: block; }
.auth-brand p { margin: 8px 0 0; color: #c9cee6; max-width: 30ch; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 24px; }
.seg { display: flex; background: #e7e9f2; border-radius: 9px; padding: 3px; margin-bottom: 22px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 7px; cursor: pointer; font-weight: 500; color: var(--muted); }
.seg button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(33,43,85,.15); }
.msg { padding: 10px 12px; border-radius: 8px; margin: 0 0 16px; font-size: 13.5px; }
.msg-err { background: var(--bad-bg); color: var(--bad); }
.msg-ok { background: var(--ok-bg); color: var(--ok); }
.msg-info { background: var(--warn-bg); color: var(--warn); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label, .field .lbl { font-weight: 500; font-size: 13px; color: var(--navy); }
.field .req { color: var(--gold-dark); }
.field input, .field select, .field textarea { border: 1.5px solid var(--line); background: #fff; padding: 9px 11px; border-radius: 8px; width: 100%; min-height: 40px; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(247,176,54,.45); }
.field .hint { font-size: 12px; color: var(--muted); }
.field-check { flex-direction: row; align-items: center; gap: 10px; }
.field-check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--navy); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid2 .full { grid-column: 1 / -1; }

/* ---------- Estructura principal ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; border-right: 4px solid transparent; border-image: var(--gold-grad) 1; border-image-slice: 1; }
.side .logo { padding: 18px 20px 8px; }
.side .logo img { width: 100%; max-width: 150px; display: block; margin: 0 auto; height: auto; }
.nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav button { display: flex; align-items: center; gap: 11px; background: none; border: 0; color: #d3d8ee; padding: 10px 12px; border-radius: 8px; cursor: pointer; text-align: left; font-weight: 500; position: relative; }
.nav button:hover { background: var(--navy-soft); color: #fff; }
.nav button[aria-current="page"] { background: var(--navy-soft); color: #fff; }
.nav button[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); }
.nav svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side .who { padding: 14px 18px 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #b9c0e0; }
.side .who strong { display: block; color: #fff; font-size: 13.5px; word-break: break-word; }
.role-tag { display: inline-block; margin: 4px 0 10px; padding: 1px 9px; border-radius: 99px; background: var(--gold); color: var(--navy); font-weight: 600; font-size: 11.5px; }
.side .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); width: 100%; justify-content: center; }
.side .btn-ghost:hover { border-color: var(--gold); }
.main { padding: 28px 34px 60px; min-width: 0; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Tarjetas y tablas ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); gap: 10px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 14px 18px; border-left: 4px solid var(--gold); background: #fff; border-radius: var(--radius); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat b { display: block; font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.15; }
.stat span { color: var(--muted); font-size: 13px; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap; }
td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: #fbf6ea; }
td .sub { display: block; color: var(--muted); font-size: 12.5px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar input, .toolbar select { border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 11px; background: #fff; min-height: 38px; }
.toolbar input[type="search"] { flex: 1; min-width: 200px; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(247,176,54,.45); }

.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-off { background: var(--off-bg); color: var(--off); }
.pill-navy { background: #e4e7f6; color: var(--navy); }

/* ---------- Detalle de agente ---------- */
.crumb { margin-bottom: 14px; }
.profile { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 600; font-size: 20px; flex: none; border: 3px solid var(--gold); }
.profile .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.profile .grow { flex: 1; min-width: 220px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 16px; cursor: pointer; font-weight: 500; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }
.tabs .count { margin-left: 6px; background: var(--off-bg); border-radius: 99px; padding: 0 8px; font-size: 12px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; }
.info-grid h3 { margin-bottom: 10px; }
dl { margin: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Jerarquía (el elemento memorable) ---------- */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 15px; padding-left: 22px; border-left: 2px solid var(--gold); }
.tree li { position: relative; margin: 0; }
.tree ul > li::before { content: ""; position: absolute; left: -22px; top: 22px; width: 16px; border-top: 2px solid var(--gold); }
.tree details > summary { list-style: none; cursor: pointer; }
.tree details > summary::-webkit-details-marker { display: none; }
.node { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin: 5px 0; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.node .chev { width: 16px; height: 16px; flex: none; stroke: var(--gold-dark); fill: none; stroke-width: 2.4; transition: transform .15s; }
details[open] > summary .chev { transform: rotate(90deg); }
.node .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-Activo { background: #22a06b; } .dot-Pendiente { background: var(--gold); } .dot-Inactivo { background: #9aa0b8; }
.node .count { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.node.root { background: var(--navy); border-color: var(--navy); color: #fff; }
.node.root .link-btn { color: #fff; text-decoration-color: var(--gold); }
.node.root .count { color: #c9cee6; }
.node .chev-gap { width: 16px; flex: none; }
.tree-wrap { padding: 18px 20px 14px; overflow-x: auto; }

/* ---------- Modal y avisos ---------- */
.overlay { position: fixed; inset: 0; background: rgba(24,32,67,.55); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto; z-index: 50; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 720px; box-shadow: 0 24px 60px rgba(24,32,67,.35); border-top: 5px solid var(--gold); }
.modal.sm { max-width: 460px; }
.modal-head { padding: 18px 24px 4px; }
.modal-body { padding: 14px 24px 6px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 20px; }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast { background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 9px; border-left: 4px solid var(--gold); max-width: 360px; box-shadow: 0 8px 24px rgba(24,32,67,.3); }
.toast.err { border-left-color: #ff6b7d; }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-card { max-width: 520px; margin: 12vh auto; padding: 32px; text-align: center; }
.center-card img { width: 120px; margin-bottom: 14px; border-radius: 10px; }
.code { background: #f0f2f9; padding: 2px 6px; border-radius: 5px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; background: #fafbfd; }

@media (max-width: 860px) {
  .info-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 20px; }
  .auth-brand img { width: 150px; }
  .auth-brand::after { top: auto; left: 0; height: 5px; width: auto; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .panels { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; }
  .side { position: static; height: auto; flex-direction: column; border-right: 0; border-bottom: 4px solid var(--gold); }
  .side .logo { display: none; }
  .nav { flex-direction: row; overflow-x: auto; padding: 8px; }
  .nav button[aria-current="page"]::before { display: none; }
  .nav button { white-space: nowrap; }
  .side .who { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 14px; flex-wrap: wrap; }
  .side .who .btn { width: auto; }
  .main { padding: 20px 14px 50px; }
  .grid2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .side, .actions, .toolbar, .toasts { display: none !important; } .shell { display: block; } }

/* ---------- Extras de formularios ---------- */
.sec-title { grid-column: 1 / -1; margin: 10px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); color: var(--navy); }
.sec-title:first-child { margin-top: 0; }
.msgbox:empty { display: none; }

/* ===== Bilingüe, portal, contratación, biblioteca, ayuda ===== */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: #fff; }
.lang button { border: 0; background: transparent; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.auth-top { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.center-lang { display: flex; justify-content: center; margin-bottom: 14px; }
.pre { white-space: pre-line; }
.toolbar-plain { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }
.callout { background: var(--warn-bg); color: var(--warn); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 18px; }

.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.hub-card { display: flex; gap: 14px; align-items: flex-start; text-align: left; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 18px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.hub-card:hover { box-shadow: 0 8px 22px rgba(24,32,67,.12); transform: translateY(-2px); }
.hub-card svg { flex: none; width: 28px; height: 28px; color: var(--navy); }
.hub-card strong { display: block; color: var(--navy); font-size: 15px; }
.hub-card .muted { display: block; font-size: 13px; margin-top: 2px; }

.res-section { margin: 0 0 30px; }
.res-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.res-head p { margin: 2px 0 0; }
.res { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 10px; }
.res-num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.res-body { flex: 1; min-width: 0; }
.res-body h3 { color: var(--navy); margin-bottom: 4px; }
.res-p { margin: 6px 0 0; overflow-wrap: anywhere; }
.res-imp { margin: 8px 0 0; padding: 8px 12px; background: var(--warn-bg); color: var(--warn); border-radius: 8px; font-size: 13px; }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.res-admin { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.reminders { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px 22px; }
.reminders h2 { color: var(--gold); margin-bottom: 8px; }
.reminders ul { margin: 0; padding-left: 20px; }
.reminders li { margin: 6px 0; }

.vid-group { margin: 0 0 26px; }
.vid-group > h2 { margin-bottom: 12px; color: var(--navy); }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.vid { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.vid-play { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; display: block; width: 100%; }
.vid-thumb { position: relative; display: block; aspect-ratio: 16/9; background: var(--navy); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-icon { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.vid-icon svg { width: 24px; height: 24px; }
.vid-play strong { display: block; padding: 10px 14px 0; color: var(--navy); }
.vid-desc { padding: 4px 14px 12px; font-size: 13px; color: var(--muted); }
.vid-admin { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 14px; border-top: 1px dashed var(--line); margin-top: auto; }
.modal.wide { max-width: 900px; }
.player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.help-who { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.help-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@media (max-width: 640px) { .res { padding: 14px; gap: 10px; } .res-head { flex-direction: column; } }
.res-actions .btn { white-space: normal; text-align: center; max-width: 100%; }
.res { min-width: 0; }
.hub-card svg, .vid-icon svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hub-card svg { color: var(--gold-dark); }
.vid-icon svg { fill: currentColor; stroke: none; }
.side .lang, .sidebar .lang { background: transparent; border-color: rgba(255,255,255,.3); }
.side .lang button, .sidebar .lang button { color: #c9cee6; }
.side .lang button[aria-pressed="true"], .sidebar .lang button[aria-pressed="true"] { background: var(--gold); color: var(--navy); }
.topbar { display: flex; justify-content: flex-end; margin: -6px 0 10px; }
.topbar .lang { box-shadow: 0 2px 8px rgba(24,32,67,.12); }
.topbar .lang button { padding: 7px 16px; font-size: 13px; }
@media (max-width: 860px) {
  .shell { position: relative; }
  .topbar { position: absolute; top: 10px; right: 12px; z-index: 40; margin: 0; }
  .topbar .lang { border-color: var(--gold); }
  .side { padding-top: 52px; }
}
/* Deja espacio para que la etiqueta "Powered by Netlify" no tape los botones */
.modal-foot { padding-bottom: 20px; }
.overlay { padding-bottom: 90px; }
@media (min-width: 861px) { .modal-foot { margin-right: 0; } }

/* ===== v2: carriers, mensajes, menú ===== */
.side { overflow-y: auto; }
.side .who { margin-top: auto; }
.nav .badge { margin-left: auto; background: var(--gold); color: var(--navy); border-radius: 99px; font-size: 11px; font-weight: 700; padding: 1px 8px; }
.car-section { margin: 0 0 34px; }
.car-grid { display: grid; gap: 16px; }
.car-grid-core { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.car-grid-other { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.carrier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; min-width: 0; }
.carrier-logo img { display: block; max-width: 100%; object-fit: contain; }
.carrier-noimg { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.carrier h3 { color: var(--navy); }
.carrier-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.carrier-core { flex-direction: column; align-items: center; text-align: center; padding: 26px 20px; border-top: 4px solid var(--gold); gap: 14px; }
.carrier-core .carrier-logo { height: 110px; width: 100%; display: flex; align-items: center; justify-content: center; }
.carrier-core .carrier-logo img { max-height: 110px; }
.carrier-core .carrier-noimg { font-size: 20px; }
.carrier-core .carrier-actions, .carrier-core .res-admin { justify-content: center; }
.carrier-small { flex-direction: row; align-items: center; text-align: left; padding: 12px 14px; gap: 14px; }
.carrier-small .carrier-logo { flex: none; width: 84px; height: 48px; display: flex; align-items: center; justify-content: flex-start; }
.carrier-small .carrier-logo img { max-height: 48px; max-width: 84px; }
.carrier-small .carrier-noimg { font-size: 13px; }
.carrier-small .carrier-body { min-width: 0; flex: 1; }
.carrier-small h3 { font-size: 14px; margin-bottom: 6px; }
.carrier-small .res-admin { margin-top: 8px; padding-top: 8px; }
.logo-prev { display: block; max-height: 64px; max-width: 200px; margin: 4px 0 8px; object-fit: contain; background: #f4f5fa; padding: 6px; border-radius: 8px; }
.msg { margin-bottom: 12px; }
.msg-new { border-left: 4px solid var(--gold); }
.msg-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.msg-body { margin: 10px 0; overflow-wrap: anywhere; }
.field textarea[rows] { min-height: 110px; }
