/* ═══════════════════════════════════════════════════════════
   TAREFAS SETELIMA — Design System
   Tema: Refinado / Corporate-Artisan
   Fontes: Fraunces (títulos) + DM Sans (corpo) + DM Mono (código)
═══════════════════════════════════════════════════════════ */

:root {
  --bg:          #f5f4f0;
  --bg-card:     #ffffff;
  --bg-sidebar:  #1a1a2e;
  --bg-hover:    #f0efe9;
  --border:      #e2e0d8;
  --border-soft: #ede9e0;

  --text-primary:   #1a1a2e;
  --text-secondary: #6b6860;
  --text-muted:     #9b9790;
  --text-sidebar:   #c8c4b8;
  --text-sidebar-active: #ffffff;

  --accent:       #e8c547;
  --accent-dark:  #c9a82e;
  --accent-soft:  #fdf6d8;

  --green:    #2d9e6b;
  --green-bg: #edf7f2;
  --red:      #d9534f;
  --red-bg:   #fdf0f0;
  --orange:   #e07b39;
  --orange-bg:#fdf3ec;
  --blue:     #3b7dd8;
  --blue-bg:  #eef4fd;
  --purple:   #7c5cbf;
  --purple-bg:#f2eefb;

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(26,26,46,.06);
  --shadow:     0 2px 12px rgba(26,26,46,.08);
  --shadow-lg:  0 8px 32px rgba(26,26,46,.12);

  --sidebar-w: 240px;
  --topbar-h:  60px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text-primary); line-height: 1.6; }
a { cursor: pointer; text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ─── SCREENS ────────────────────────────────────────────── */
.screen { min-height: 100vh; }
.screen.hidden { display: none !important; }
.screen.active { display: flex; }

/* ─── LOADING ────────────────────────────────────────────── */
.loading-state { display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   LOGIN
═══════════════════════════════════════════════════════════ */
#screen-login {
  align-items: center; justify-content: center;
  min-height: 100vh;
  background: var(--bg-sidebar);
  position: relative; overflow: hidden;
}
.login-bg { position: absolute; inset: 0; pointer-events: none; }
.login-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .15;
}
.login-orb-1 { width: 400px; height: 400px; background: var(--accent); top: -100px; right: -100px; }
.login-orb-2 { width: 300px; height: 300px; background: #5b4fcf; bottom: -80px; left: -80px; }
.login-orb-3 { width: 200px; height: 200px; background: var(--accent); bottom: 20%; right: 20%; }

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
  animation: slideUp .4s ease;
}
@keyframes slideUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.login-logo { flex-shrink: 0; }
.login-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--text-primary); line-height: 1; }
.login-subtitle { font-size: .8rem; color: var(--text-muted); letter-spacing: .05em; text-transform: uppercase; }
.login-form { display: flex; flex-direction: column; gap: 20px; }
.login-footer { margin-top: 32px; text-align: center; font-size: .8rem; color: var(--text-muted); }

.input-wrap { position: relative; }
.input-wrap .field-input { padding-right: 44px; }
.input-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); display: flex; align-items: center;
  transition: color .2s;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.input-toggle:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════
   APP SHELL
═══════════════════════════════════════════════════════════ */
#screen-app { display: flex; flex-direction: row; align-items: stretch; height: 100vh; }

/* ─── SIDEBAR ────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  display: flex; flex-direction: column;
  height: 100vh; position: sticky; top: 0;
  flex-shrink: 0; z-index: 100;
  transition: transform .3s ease;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 12px;
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; }
.sidebar-brand { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: #fff; }
.sidebar-close { display: none; color: var(--text-sidebar); font-size: 1.4rem; line-height: 1; padding: 4px; }

.sidebar-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 8px;
}
.avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--bg-sidebar);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .9rem; flex-shrink: 0;
}
.sidebar-user-info { display: flex; flex-direction: column; overflow: hidden; }
.sidebar-user-name { font-size: .85rem; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: .72rem; color: var(--text-sidebar); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-nav { flex: 1; padding: 4px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-sidebar); font-size: .875rem;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: var(--accent); color: var(--bg-sidebar) !important; font-weight: 600; }
.nav-item.active svg { stroke: var(--bg-sidebar); }
.nav-item svg { flex-shrink: 0; }
.nav-danger { color: #e07b7b !important; }
.nav-danger:hover { background: rgba(224,123,123,.15) !important; }
.nav-badge {
  margin-left: auto; background: var(--red); color: #fff;
  font-size: .7rem; font-weight: 600; padding: 1px 6px;
  border-radius: 99px; line-height: 1.4;
}

.sidebar-bottom {
  padding: 8px 12px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; gap: 2px;
}

/* ─── MAIN WRAP ──────────────────────────────────────────── */
.main-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

/* ─── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar-menu { display: none; color: var(--text-secondary); padding: 4px; }
.topbar-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); position: relative;
  transition: background .15s, color .15s;
}
.topbar-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--bg-card);
}
.topbar-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--bg-sidebar);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .8rem; cursor: pointer;
}

/* ─── MAIN CONTENT ───────────────────────────────────────── */
.main-content { flex: 1; padding: 28px 28px; overflow-y: auto; }

/* ─── PAGES ──────────────────────────────────────────────── */
.page { animation: fadeIn .2s ease; }
.page.hidden { display: none; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 16px;
}
.page-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.page-subtitle { font-size: .875rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   COMPONENTES — FORMS
═══════════════════════════════════════════════════════════ */
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: .8rem; font-weight: 500; color: var(--text-secondary); letter-spacing: .02em; text-transform: uppercase; }
.field-input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field-input:focus { outline: none; border-color: var(--accent-dark); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-input:disabled { background: var(--bg); color: var(--text-muted); cursor: not-allowed; }
.field-input-sm { max-width: 180px; }
.field-textarea { resize: vertical; min-height: 100px; }
select.field-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6860' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { font-size: .82rem; color: var(--red); padding: 10px 14px; background: var(--red-bg); border-radius: var(--radius-sm); }
.req { color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   COMPONENTES — BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: var(--text-primary); color: #fff;
  font-size: .875rem; font-weight: 500;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: #2d2d4a; }
.btn-primary:active { transform: scale(.98); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: .875rem; font-weight: 500; color: var(--text-secondary);
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--text-primary); color: var(--text-primary); }
.btn-danger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: var(--red); color: #fff;
  font-size: .875rem; font-weight: 500;
  transition: background .15s;
}
.btn-danger:hover { background: #c0392b; }
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-full { width: 100%; }
.btn-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: background .15s, color .15s;
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }

/* ═══════════════════════════════════════════════════════════
   COMPONENTES — CARDS
═══════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 20px; }

/* ─── STAT CARDS ─────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-label { font-size: .75rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1; }
.stat-change { font-size: .78rem; color: var(--text-muted); }
.stat-card.accent { background: var(--text-primary); border-color: transparent; }
.stat-card.accent .stat-label { color: rgba(255,255,255,.5); }
.stat-card.accent .stat-value { color: var(--accent); }
.stat-card.accent .stat-change { color: rgba(255,255,255,.4); }
.stat-card.warn .stat-value { color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   TAGS / BADGES
═══════════════════════════════════════════════════════════ */
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 99px;
  font-size: .72rem; font-weight: 600;
  font-family: var(--font-mono); letter-spacing: .03em;
  text-transform: uppercase; white-space: nowrap;
}
.tag-pendente   { background: var(--bg-hover); color: var(--text-secondary); }
.tag-progresso  { background: var(--blue-bg); color: var(--blue); }
.tag-revisao    { background: var(--orange-bg); color: var(--orange); }
.tag-concluida  { background: var(--green-bg); color: var(--green); }
.tag-cancelada  { background: var(--red-bg); color: var(--red); }
.tag-baixa   { background: var(--bg-hover); color: var(--text-muted); }
.tag-media   { background: var(--blue-bg); color: var(--blue); }
.tag-alta    { background: var(--orange-bg); color: var(--orange); }
.tag-urgente { background: var(--red-bg); color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   FILTROS
═══════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 20px;
}
.filter-input { flex: 1; min-width: 200px; max-width: 340px; }
.filter-select { min-width: 160px; max-width: 220px; }

/* ═══════════════════════════════════════════════════════════
   TAREFAS GRID
═══════════════════════════════════════════════════════════ */
.tarefas-grid { display: flex; flex-direction: column; gap: 8px; }
.tarefa-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  align-items: center; gap: 16px;
  transition: box-shadow .15s, border-color .15s;
  cursor: pointer;
}
.tarefa-row:hover { box-shadow: var(--shadow); border-color: var(--border-soft); }
.tarefa-row.atrasada { border-left: 3px solid var(--red); }
.tarefa-titulo { font-weight: 500; font-size: .9rem; }
.tarefa-meta { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.tarefa-prazo { font-size: .78rem; font-family: var(--font-mono); color: var(--text-muted); white-space: nowrap; }
.tarefa-prazo.vence-hoje { color: var(--orange); font-weight: 600; }
.tarefa-prazo.atrasado { color: var(--red); font-weight: 600; }
.tarefa-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.tarefa-row:hover .tarefa-actions { opacity: 1; }

.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 16px; opacity: .3; }
.empty-state p { font-size: .9rem; }

/* ═══════════════════════════════════════════════════════════
   KANBAN
═══════════════════════════════════════════════════════════ */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: calc(100vh - 180px);
}
.kanban-col {
  background: var(--bg-hover);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 200px;
}
.kanban-col-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.kanban-col-title { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); }
.kanban-count {
  font-size: .72rem; font-family: var(--font-mono);
  background: var(--border); color: var(--text-muted);
  padding: 1px 7px; border-radius: 99px;
}
.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.kanban-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.kanban-card.atrasado { border-left: 3px solid var(--red); }
.kanban-card-title { font-size: .86rem; font-weight: 500; margin-bottom: 10px; line-height: 1.4; }
.kanban-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kanban-prazo { font-size: .72rem; font-family: var(--font-mono); color: var(--text-muted); }
.kanban-prazo.atrasado { color: var(--red); }
.kanban-assignee { font-size: .72rem; color: var(--text-muted); font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   DEPARTAMENTOS
═══════════════════════════════════════════════════════════ */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.dept-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow .2s;
}
.dept-card:hover { box-shadow: var(--shadow); }
.dept-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.dept-desc { font-size: .82rem; color: var(--text-muted); margin-bottom: 16px; min-height: 36px; }
.dept-stats { display: flex; gap: 20px; margin-bottom: 16px; }
.dept-stat { text-align: center; }
.dept-stat-val { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 600; }
.dept-stat-lbl { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; }
.dept-chefe { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.dept-chefe strong { color: var(--text-primary); }
.dept-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════
   TABELA UTILIZADORES
═══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  text-align: left; padding: 10px 16px;
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: var(--bg-card);
}
tbody tr { border-bottom: 1px solid var(--border-soft); transition: background .1s; }
tbody tr:hover { background: var(--bg-hover); }
tbody td { padding: 12px 16px; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar-sm {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--bg-sidebar);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 600; flex-shrink: 0;
}
.user-name { font-weight: 500; }
.user-email { font-size: .78rem; color: var(--text-muted); }
.status-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 6px;
}
.status-dot.active { background: var(--green); }
.status-dot.inactive { background: var(--text-muted); }
.table-actions { display: flex; gap: 4px; }

/* ═══════════════════════════════════════════════════════════
   DETALHE TAREFA
═══════════════════════════════════════════════════════════ */
.tarefa-detalhe-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.tarefa-detalhe-title {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 600;
  line-height: 1.3; margin-bottom: 12px;
}
.tarefa-detalhe-desc {
  font-size: .9rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 24px;
  white-space: pre-wrap;
}
.tarefa-detalhe-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.comentarios-section h4 { font-size: .9rem; font-weight: 600; margin-bottom: 16px; }
.comentarios-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.comentario {
  display: flex; gap: 12px;
  padding: 14px;
  background: var(--bg-hover);
  border-radius: var(--radius);
}
.comentario-content { flex: 1; }
.comentario-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comentario-author { font-size: .82rem; font-weight: 600; }
.comentario-date { font-size: .75rem; color: var(--text-muted); font-family: var(--font-mono); }
.comentario-text { font-size: .875rem; line-height: 1.6; white-space: pre-wrap; }
.comentario-form { display: flex; gap: 12px; align-items: flex-start; }
.comentario-form textarea { flex: 1; min-height: 80px; }
.meta-card { display: flex; flex-direction: column; gap: 0; }
.meta-item {
  display: flex; align-items: flex-start; gap: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  flex-direction: column; gap: 3px;
}
.meta-item:last-child { border-bottom: none; }
.meta-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.meta-value { font-size: .875rem; font-weight: 500; }
.meta-select { width: 100%; }
.anexos-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.anexo-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  font-size: .82rem;
}
.anexo-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anexo-size { color: var(--text-muted); font-family: var(--font-mono); font-size: .72rem; }
.upload-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border);
  font-size: .82rem; color: var(--text-muted);
  transition: border-color .15s, color .15s; cursor: pointer;
  width: 100%; justify-content: center; margin-top: 8px;
}
.upload-btn:hover { border-color: var(--accent-dark); color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════
   RELATÓRIOS
═══════════════════════════════════════════════════════════ */
.relatorio-filters { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.relatorio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 24px; }
.progress-bar-wrap { margin-top: 8px; }
.progress-bar-track { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent-dark); border-radius: 3px; transition: width .6s ease; }
.colabs-table { margin-top: 24px; }

/* ═══════════════════════════════════════════════════════════
   CHAT
═══════════════════════════════════════════════════════════ */
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - var(--topbar-h) - 56px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chat-sidebar { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.chat-sidebar-header {
  padding: 16px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: .95rem;
}
.chat-conversas { flex: 1; overflow-y: auto; }
.chat-conv-item {
  padding: 14px 16px; cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
  transition: background .1s;
}
.chat-conv-item:hover { background: var(--bg-hover); }
.chat-conv-item.active { background: var(--accent-soft); }
.chat-conv-name { font-weight: 500; font-size: .875rem; }
.chat-conv-preview { font-size: .78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-conv-time { font-size: .7rem; color: var(--text-muted); font-family: var(--font-mono); float: right; }
.chat-main { display: flex; flex-direction: column; }
.chat-header { padding: 16px; border-bottom: 1px solid var(--border); font-weight: 600; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 70%; }
.chat-msg.mine { align-self: flex-end; }
.chat-msg.mine .chat-bubble { background: var(--text-primary); color: #fff; }
.chat-bubble { padding: 10px 14px; border-radius: var(--radius); font-size: .875rem; line-height: 1.5; background: var(--bg-hover); }
.chat-msg-meta { font-size: .7rem; color: var(--text-muted); margin-top: 4px; font-family: var(--font-mono); }
.chat-msg.mine .chat-msg-meta { text-align: right; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); gap: 12px; }
.chat-input-bar {
  padding: 16px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: flex-end;
}
.chat-input-bar textarea {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .875rem; resize: none;
  max-height: 120px; min-height: 42px;
  transition: border-color .15s;
}
.chat-input-bar textarea:focus { outline: none; border-color: var(--accent-dark); }

/* ═══════════════════════════════════════════════════════════
   NOTIFICAÇÕES
═══════════════════════════════════════════════════════════ */
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background .15s;
  cursor: pointer;
}
.notif-item.unread { border-left: 3px solid var(--accent-dark); background: var(--accent-soft); }
.notif-item:hover { background: var(--bg-hover); }
.notif-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.notif-icon.task { background: var(--blue-bg); }
.notif-icon.deadline { background: var(--orange-bg); }
.notif-icon.done { background: var(--green-bg); }
.notif-icon.comment { background: var(--purple-bg); }
.notif-body { flex: 1; }
.notif-title { font-size: .875rem; font-weight: 500; }
.notif-msg { font-size: .8rem; color: var(--text-secondary); margin-top: 2px; }
.notif-time { font-size: .72rem; color: var(--text-muted); font-family: var(--font-mono); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════
   PERFIL
═══════════════════════════════════════════════════════════ */
.perfil-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ═══════════════════════════════════════════════════════════
   PAGINAÇÃO
═══════════════════════════════════════════════════════════ */
.pagination { display: flex; align-items: center; gap: 4px; margin-top: 20px; justify-content: center; }
.page-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-family: var(--font-mono);
  border: 1.5px solid var(--border); color: var(--text-secondary);
  transition: all .15s;
}
.page-btn:hover { border-color: var(--text-primary); color: var(--text-primary); }
.page-btn.active { background: var(--text-primary); border-color: var(--text-primary); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════
   MODAIS
═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,26,46,.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .15s ease;
}
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 560px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh; display: flex; flex-direction: column;
  animation: slideUp .2s ease;
}
.modal-sm { max-width: 380px; }
.modal-lg { max-width: 720px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.modal-close { font-size: 1.4rem; color: var(--text-muted); line-height: 1; padding: 4px 8px; border-radius: var(--radius-sm); transition: color .15s, background .15s; }
.modal-close:hover { color: var(--text-primary); background: var(--bg-hover); }
.modal-body { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--text-primary); color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: .875rem; min-width: 280px; max-width: 380px;
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.warn { background: var(--orange); }
.toast-close { margin-left: auto; opacity: .7; font-size: 1rem; cursor: pointer; }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD CHARTS (bar visual)
═══════════════════════════════════════════════════════════ */
.charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-item { display: flex; align-items: center; gap: 12px; font-size: .82rem; }
.bar-label { width: 90px; color: var(--text-secondary); flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--accent-dark); transition: width .6s ease; }
.bar-val { width: 36px; text-align: right; font-family: var(--font-mono); color: var(--text-muted); font-size: .75rem; }

/* ─── HIDDEN UTIL ────────────────────────────────────────── */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%); z-index: 200;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 190; }
  .topbar-menu { display: flex; }
  .tarefa-detalhe-layout { grid-template-columns: 1fr; }
  .charts-row { grid-template-columns: 1fr; }
  .perfil-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .kanban-board { grid-template-columns: repeat(5, 230px); }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .chat-sidebar.show { display: flex; }
}
@media (max-width: 600px) {
  .main-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
  .tarefa-row { grid-template-columns: 1fr; }
  .tarefa-row > *:not(:first-child) { display: none; }
  .tarefa-row .tarefa-tags, .tarefa-row .tarefa-actions { display: flex; }
}

/* ═══════════════════════════════════════════════════════════
   ADIÇÕES v1.1 — Pedidos, Configurações, Tipos, Tabs
═══════════════════════════════════════════════════════════ */

/* ─── TABS ───────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.tab {
  padding: 10px 20px; font-size: .875rem; font-weight: 500;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--text-primary); border-bottom-color: var(--accent-dark); }
.tab-content.hidden { display: none; }

/* ─── PEDIDOS ────────────────────────────────────────────── */
.pedido-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  margin-bottom: 10px;
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start;
}
.pedido-card.pendente { border-left: 3px solid var(--orange); }
.pedido-card.aprovado { border-left: 3px solid var(--green); }
.pedido-card.rejeitado { border-left: 3px solid var(--red); }
.pedido-titulo { font-weight: 500; font-size: .9rem; margin-bottom: 4px; }
.pedido-meta { font-size: .78rem; color: var(--text-muted); }
.pedido-justificacao {
  margin-top: 8px; font-size: .82rem; color: var(--text-secondary);
  background: var(--bg-hover); padding: 8px 12px; border-radius: var(--radius-sm);
  font-style: italic;
}
.pedido-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ─── CONFIGURAÇÕES ──────────────────────────────────────── */
.config-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.config-field { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-soft); gap: 20px; }
.config-field:last-child { border-bottom: none; }
.config-label { font-size: .875rem; font-weight: 500; }
.config-desc { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.config-control { flex-shrink: 0; }
.toggle-switch { position: relative; width: 42px; height: 24px; cursor: pointer; }
.toggle-switch input { display: none; }
.toggle-track {
  position: absolute; inset: 0; background: var(--border);
  border-radius: 12px; transition: background .2s;
}
.toggle-switch input:checked + .toggle-track { background: var(--green); }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch input:checked ~ .toggle-thumb { transform: translateX(18px); }

/* ─── TIPOS DE TAREFA ────────────────────────────────────── */
.tipo-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border-soft);
}
.tipo-item:last-child { border-bottom: none; }
.tipo-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.tipo-nome { font-size: .875rem; font-weight: 500; flex: 1; }
.tipo-desc { font-size: .75rem; color: var(--text-muted); }
.tipo-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.tipo-item:hover .tipo-actions { opacity: 1; }

@media (max-width: 900px) {
  .config-layout { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ADIÇÕES v1.2 — Subtarefas, Progresso, Empresa
═══════════════════════════════════════════════════════════ */
.progresso-wrap { display:flex; align-items:center; gap:10px; }
.progresso-bar  { flex:1; height:8px; background:var(--border); border-radius:99px; overflow:hidden; }
.progresso-fill { height:100%; background:var(--green); border-radius:99px; transition:width .4s ease; }
.progresso-fill.warn   { background:var(--orange); }
.progresso-fill.danger { background:var(--red); }
.progresso-label { font-family:var(--font-mono); font-size:.75rem; color:var(--text-muted); min-width:34px; text-align:right; }

.subtarefas-section { margin-top:24px; }
.subtarefas-header  { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.subtarefas-header h4 { font-size:.875rem; font-weight:600; }
.subtarefa-row { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius-sm); margin-bottom:6px; cursor:pointer; transition:background .15s; }
.subtarefa-row:hover { background:var(--bg-hover); }
.subtarefa-check { width:18px; height:18px; border-radius:50%; border:2px solid var(--border); flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.subtarefa-check.done { background:var(--green); border-color:var(--green); color:#fff; font-size:.7rem; }
.subtarefa-titulo { flex:1; font-size:.875rem; }
.subtarefa-titulo.done { text-decoration:line-through; color:var(--text-muted); }
.subtarefa-meta { font-size:.75rem; color:var(--text-muted); }

.badge-recorrente { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; background:var(--blue-bg); color:var(--blue); border-radius:99px; font-size:.7rem; font-weight:600; }

/* ═══════════════════════════════════════════════════════════
   ADIÇÕES v1.3 — Tipos, Dependências, Prioridade Crítica
═══════════════════════════════════════════════════════════ */

/* ─── TIPOS DE TAREFA — página full ──────────────────────── */
.tipos-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; }
.tipo-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius); padding:16px 18px;
  border-left:4px solid #6b7280; position:relative;
}
.tipo-card.inactivo { opacity:.55; }
.tipo-card-header { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.tipo-card-icone  { font-size:1.2rem; width:28px; text-align:center; }
.tipo-card-nome   { font-weight:600; font-size:.9rem; flex:1; }
.tipo-card-badge  { font-size:.68rem; padding:2px 7px; border-radius:99px; font-weight:600;
  background:var(--bg-hover); color:var(--text-muted); }
.tipo-card-desc   { font-size:.78rem; color:var(--text-muted); margin-bottom:10px; line-height:1.5; }
.tipo-card-stats  { display:flex; gap:16px; font-size:.75rem; color:var(--text-muted); margin-bottom:12px; }
.tipo-card-actions{ display:flex; gap:6px; }

/* ─── DEPENDÊNCIAS ───────────────────────────────────────── */
.dep-grafo { display:flex; flex-direction:column; gap:8px; padding:12px; background:var(--bg-hover); border-radius:var(--radius); }
.dep-chain { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.dep-node {
  padding:6px 12px; border-radius:var(--radius-sm); font-size:.8rem; font-weight:500;
  border:2px solid var(--border); background:var(--bg-card); cursor:pointer;
  transition:border-color .15s;
}
.dep-node.concluida { background:#f0fdf4; border-color:#86efac; color:#166534; }
.dep-node.bloqueada { background:#fef2f2; border-color:#fca5a5; color:#991b1b; }
.dep-node.em-progresso { background:#eff6ff; border-color:#93c5fd; color:#1e40af; }
.dep-arrow { color:var(--text-muted); font-size:1.1rem; }
.dep-add-row { display:flex; gap:12px; align-items:flex-end; }

.dep-item {
  display:flex; align-items:center; gap:10px; padding:10px 12px;
  border:1px solid var(--border); border-radius:var(--radius-sm); margin-bottom:6px;
}
.dep-item-status { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.dep-item-titulo { flex:1; font-size:.85rem; }
.dep-item-estado { font-size:.72rem; }

/* ─── ESTADOS ────────────────────────────────────────────── */
.tag-bloqueada  { background:#fef2f2; color:#991b1b; }
.tag-em-atraso  { background:#fff7ed; color:#9a3412; }
.tag-critica    { background:#4c1d95; color:#fff; }

/* ─── PRIORIDADE CRÍTICA ─────────────────────────────────── */
.tag-critica { background:linear-gradient(135deg,#7c3aed,#db2777); color:#fff; font-weight:700; }
.tarefa-row.critica { border-left:3px solid #7c3aed; }

/* ─── MODAL LG ───────────────────────────────────────────── */
.modal-lg { max-width:680px; }

/* ─── SEQUÊNCIA VISUAL ───────────────────────────────────── */
.sequencia-lista { display:flex; flex-direction:column; gap:0; }
.sequencia-item  { display:flex; align-items:center; gap:0; }
.seq-node {
  padding:8px 14px; min-width:160px; border-radius:var(--radius-sm);
  background:var(--bg-card); border:2px solid var(--border);
  font-size:.82rem; text-align:center;
}
.seq-node.concluida   { border-color:#86efac; background:#f0fdf4; }
.seq-node.bloqueada   { border-color:#fca5a5; background:#fef2f2; }
.seq-node.em-progresso{ border-color:#93c5fd; background:#eff6ff; }
.seq-connector {
  display:flex; flex-direction:column; align-items:center;
  padding:2px 0; color:var(--text-muted); font-size:1rem;
}

/* ── Dropdown de acções por tarefa ──────────────────────────────── */
.tarefa-dropdown-wrap {
  position: relative;
  display: inline-flex;
}
.tarefa-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  min-width: 180px;
  z-index: 100;
  padding: 4px 0;
  animation: ddFadeIn .1s ease;
}
@keyframes ddFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: .82rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background .12s;
  white-space: nowrap;
}
.dd-item:hover { background: var(--bg); }
.dd-item.dd-danger { color: var(--red, #dc2626); }
.dd-item.dd-danger:hover { background: #fef2f2; }

/* ── Recorrência — botões de dias da semana ─────────────────────── */
.rec-dia-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  user-select: none;
}
.rec-dia-btn:hover { background: var(--bg); }
.rec-dia-btn input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent-dark);
}
.rec-dia-btn:has(input:checked) {
  background: var(--accent-soft, #e8f4fd);
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  font-weight: 500;
}

/* ── Chat melhorado ─────────────────────────────────────────────── */
.chat-conv-avatar-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .9rem; flex-shrink: 0;
}
.chat-conv-body { flex: 1; min-width: 0; }
.chat-conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.chat-conv-time { font-size: .68rem; color: var(--text-muted); font-family: var(--font-mono); }
.chat-unread-badge {
  background: var(--accent-dark); color: #fff;
  border-radius: 99px; padding: 1px 7px;
  font-size: .68rem; font-weight: 700; min-width: 18px; text-align: center;
}
.chat-conv-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
  transition: background .12s;
}
.chat-conv-item:hover { background: var(--bg-hover); }
.chat-conv-item.active { background: var(--accent-soft, #eef4ff); }
.chat-conv-item.unread .chat-conv-name { font-weight: 700; }
.chat-msg { display: flex; flex-direction: column; max-width: 70%; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-msg:not(.mine) { align-self: flex-start; align-items: flex-start; }
.chat-msg-author { font-size: .7rem; color: var(--text-muted); margin-bottom: 2px; font-weight: 500; }
.chat-bubble {
  padding: 9px 13px;
  border-radius: 12px 12px 12px 2px;
  background: var(--bg-hover);
  color: var(--text-primary);
  font-size: .875rem; line-height: 1.5;
  border: 1px solid var(--border-soft);
  white-space: pre-wrap; word-break: break-word;
}
.chat-msg.mine .chat-bubble {
  background: var(--accent-dark); color: #fff;
  border-radius: 12px 12px 2px 12px;
  border-color: transparent;
}
.chat-msg-meta { font-size: .68rem; color: var(--text-muted); margin-top: 3px; font-family: var(--font-mono); }
