/* Broker ONE — Styles */


@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Paleta principal ── */
  --coral:       #E05A3A;
  --coral-dark:  #C44A2A;
  --coral-light: rgba(224,90,58,.15);
  --coral-mid:   rgba(224,90,58,.25);
  --ink:         #0B0F14;
  --ink-2:       #111519;
  --ink-3:       #181D23;
  --ink-4:       #1E242B;
  --ink-5:       #252C35;
  --ash:         #6B7685;
  --ash-light:   #8E99A6;
  --text:        #E8EBF0;
  --text-2:      #B0B8C4;
  --text-3:      #6B7685;
  --border:      #252C35;
  --border-2:    #2E3640;
  --bg:          #0D1117;
  --bg-card:     #111519;
  --bg-card-2:   #161B22;
  --bg-hover:    #1A2030;
  --green:       #22C55E;
  --green-bg:    rgba(34,197,94,.15);
  --red:         #EF4444;
  --red-bg:      rgba(239,68,68,.15);
  --yellow:      #F59E0B;
  --yellow-bg:   rgba(245,158,11,.15);
  --purple:      #A78BFA;
  --purple-bg:   rgba(167,139,250,.15);
  --blue:        #60A5FA;
  --blue-bg:     rgba(96,165,250,.15);
  --slate:       #94A3B8;
  --slate-bg:    rgba(148,163,184,.1);
  --amber:       #F59E0B;
  --amber-bg:    rgba(245,158,11,.15);

  /* ── Aliases JS ── */
  --teal:            var(--coral);
  --teal-dark:       var(--coral-dark);
  --teal-light:      var(--coral-light);
  --teal-mid:        var(--coral-mid);
  --grafite:         var(--ink);
  --grafite-2:       var(--ink-2);
  --grafite-3:       var(--ink-3);
  --cinza:           var(--ash);
  --cinza-light:     var(--ash-light);
  --text-primary:    var(--text);
  --text-secondary:  var(--text-2);
  --text-muted:      var(--text-3);

  /* ── Flow status ── */
  --status-push-bg:    var(--purple-bg);
  --status-push-text:  var(--purple);
  --status-push-dot:   var(--purple);
  --status-wait-bg:    var(--yellow-bg);
  --status-wait-text:  var(--yellow);
  --status-wait-dot:   var(--yellow);
  --status-moc-bg:     var(--coral-light);
  --status-moc-text:   var(--coral);
  --status-moc-dot:    var(--coral);
  --status-ok-bg:      var(--green-bg);
  --status-ok-text:    var(--green);
  --status-cancel-bg:  var(--red-bg);
  --status-cancel-text:var(--red);
  --status-na-bg:      rgba(255,255,255,.06);
  --status-na-text:    var(--text-3);

  /* ── Tokens ── */
  --font:        'Manrope', system-ui, sans-serif;
  --font-mono:   'IBM Plex Mono', ui-monospace, monospace;
  --radius-sm:   5px;
  --radius:      8px;
  --radius-lg:   12px;
  --radius-pill: 100px;
  --shadow:      0 1px 3px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.5);
  --sidebar-w:   216px;
  --topbar-h:    56px;
}

/* ══ BASE ══ */
html, body { height: 100%; overflow: hidden; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#app-shell {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ══ SIDEBAR ══ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--ink-2);
  border-right: 1px solid var(--border);
  height: 100vh;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 10;
}

.brand {
  height: var(--topbar-h);
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img {
  width: 32px; height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
}
.brand-text {
  font-size: 13px; font-weight: 800;
  color: var(--text); letter-spacing: -.01em; line-height: 1.1;
}
.brand-text span { color: var(--coral); }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px; color: var(--ash);
  letter-spacing: .08em; text-transform: uppercase; margin-top: 1px;
}

.nav-section-label {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3);
  padding: 14px 16px 5px;
  flex-shrink: 0;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 12px; font-weight: 600;
  color: var(--text-2);
  transition: all .1s;
  position: relative; user-select: none;
  flex-shrink: 0;
}
.nav-item:hover { background: var(--ink-4); color: var(--text); }
.nav-item.active { background: var(--coral-light); color: var(--coral); }
.nav-item.active::before {
  content: ''; position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px; background: var(--coral);
  border-radius: 0 3px 3px 0;
}
.nav-item svg {
  width: 15px; height: 15px;
  flex-shrink: 0; opacity: .5;
}
.nav-item.active svg, .nav-item:hover svg { opacity: 1; }
.nav-badge {
  margin-left: auto;
  background: var(--coral); color: #fff;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  padding: 1px 6px; border-radius: var(--radius-pill);
  min-width: 18px; text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.sidebar-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--coral);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 12px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role {
  font-family: var(--font-mono);
  font-size: 9px; color: var(--text-3); letter-spacing: .06em;
}
.sidebar-icon-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); padding: 5px; border-radius: var(--radius-sm);
  display: flex; align-items: center; transition: all .1s;
  flex-shrink: 0;
}
.sidebar-icon-btn:hover { color: var(--text); background: var(--ink-4); }
.sidebar-icon-btn svg { width: 14px; height: 14px; }
#sidebar-admin-btn {
  display: none;
  align-items: center; gap: 8px;
  margin: 0 8px 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--coral-light);
  border: 1px solid rgba(224,90,58,.25);
  font-size: 12px; font-weight: 600; color: var(--coral);
  transition: all .1s;
}
#sidebar-admin-btn:hover { background: var(--coral-mid); }
#sidebar-admin-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
#sidebar-admin-btn.visible { display: flex; }

/* ══ MAIN ══ */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; height: 100%; min-height: 0; }

/* ══ TOPBAR ══ */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 22px; flex-shrink: 0;
}
.topbar > div:first-child { display: flex; flex-direction: column; justify-content: center; }
.page-title { font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.page-title span { font-weight: 500; color: var(--text-3); font-size: 13px; }
.page-date {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--text-3); letter-spacing: .04em; margin-top: 1px;
}
.topbar-right { display: flex; align-items: center; gap: 8px; }

/* ══ PAGE ══ */
.page { display: none; flex: 1; flex-direction: column; overflow: hidden; min-height: 0; }
.page.active { display: flex; }

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font); font-size: 12px; font-weight: 700;
  cursor: pointer; border: none;
  transition: all .1s; white-space: nowrap; letter-spacing: -.01em;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-primary  { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-secondary { background: var(--ink-4); color: var(--text-2); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--ink-5); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--ink-4); color: var(--text); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid rgba(239,68,68,.3); }
.btn-danger:hover { background: var(--red-bg); }
.btn-icon {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); padding: 5px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; transition: all .1s;
}
.btn-icon:hover { background: var(--ink-4); color: var(--text); }
.btn-icon svg { width: 14px; height: 14px; }
.btn-danger-ghost { background: transparent; color: var(--red); border: 1px solid rgba(239,68,68,.3); border-radius: var(--radius-pill); padding: 7px 16px; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-danger-ghost:hover { background: var(--red-bg); }
.danger { color: var(--red); }

/* ══ INPUTS ══ */
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  color: var(--text-3); text-transform: uppercase; letter-spacing: .1em;
}
input[type=text], input[type=number], input[type=email],
input[type=password], input[type=date], textarea, select {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  font-family: var(--font); font-size: 13px; font-weight: 500;
  color: var(--text); background: var(--ink-4);
  transition: border-color .1s, box-shadow .1s;
  outline: none; -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(224,90,58,.15);
}
input[readonly] { background: var(--ink-3); color: var(--text-3); cursor: default; }
textarea { resize: vertical; min-height: 72px; }
select option { background: var(--ink-3); color: var(--text); }

/* ══ TABLE ══ */
.table-container, .flow-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table, .flow-table { width: 100%; border-collapse: collapse; }
.data-table th, .flow-table th {
  background: var(--ink-3); padding: 9px 14px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  color: var(--text-3); text-transform: uppercase; letter-spacing: .1em;
  border-bottom: 1px solid var(--border); text-align: left;
  position: sticky; top: 0; z-index: 1;
}
.data-table th.r, .flow-table th.r,
.data-table td.r, .flow-table td.r { text-align: right; }
.data-table td, .flow-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  color: var(--text-2); font-size: 12px;
}
.data-table tr:last-child td, .flow-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td, .flow-table tr:hover td { background: var(--ink-3); }
.flow-table .group-header td {
  background: var(--ink-3); font-weight: 700;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-3); padding: 5px 14px;
  letter-spacing: .08em; text-transform: uppercase;
}
.na-cell  { color: var(--text-3); }
.mono-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.teal     { color: var(--coral); }
.client-code { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

/* ══ MODAL / OVERLAY ══ */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 100; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.overlay.open { display: flex; }
.modal {
  background: var(--bg-card-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 92%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  animation: modalIn .15s ease-out;
}
@keyframes modalIn {
  from { transform: translateY(12px) scale(.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 14px; font-weight: 800; color: var(--text); }
.modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--text-3); line-height: 1; padding: 2px 6px;
  border-radius: var(--radius-sm);
}
.modal-close:hover { background: var(--ink-4); color: var(--text); }
.modal-body { padding: 18px 20px; }
.modal-footer {
  padding: 12px 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ══ TOAST ══ */
.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: var(--ink-4); color: var(--text);
  border: 1px solid var(--border-2);
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 9999; white-space: nowrap;
  border-left: 3px solid var(--coral);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-left-color: var(--red); }
.toast.success { border-left-color: var(--green); }

/* ══ KPI CARDS ══ */
.kpi-card {
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px;
}
.kpi-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px;
}
.kpi-value { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.kpi-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* ══ CHIPS / BADGES ══ */
.chip, .status-badge, .nivel-badge, .status-chip, .adm-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 9px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .04em;
}
.chip-coral  { background: var(--coral-light); color: var(--coral); }
.chip-green, .status-ok   { background: var(--green-bg); color: var(--green); }
.chip-red, .status-cancel { background: var(--red-bg); color: var(--red); }
.chip-yellow, .status-pending { background: var(--yellow-bg); color: var(--yellow); }
.chip-gray   { background: rgba(255,255,255,.06); color: var(--text-3); }
.n5 { background: var(--coral-light); color: var(--coral); }
.n4 { background: rgba(167,139,250,.15); color: var(--purple); }
.n3 { background: rgba(96,165,250,.15); color: var(--blue); }
.n2 { background: rgba(255,255,255,.06); color: var(--text-2); }
.n1 { background: rgba(255,255,255,.04); color: var(--text-3); }
.off { background: var(--red-bg); color: var(--red); }

/* ══ FLOW ══ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px; padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.stat-box {
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 12px 14px;
}
.stat-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px;
}
.stat-val { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.stat-val.teal { color: var(--coral); }
.stat-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.flow-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; flex-shrink: 0;
}
.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink-4); border: 1px solid var(--border-2);
  border-radius: var(--radius-pill); padding: 6px 14px;
  transition: border-color .1s;
  min-width: 180px; max-width: 280px;
}
.search-wrap:focus-within { border-color: var(--coral); }
.search-wrap svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--text-3); }
.search-wrap input {
  border: none; background: transparent; padding: 0;
  font-size: 12px; color: var(--text); width: 100%;
  box-shadow: none; border-radius: 0;
}
.search-wrap input:focus { box-shadow: none; }
.search-wrap input::placeholder { color: var(--text-3); }

.filter-pill {
  padding: 5px 12px; border: 1px solid var(--border-2);
  border-radius: var(--radius-pill); background: var(--ink-4);
  font-size: 11px; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: all .1s; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 5px; user-select: none;
}
.filter-pill:hover { border-color: var(--coral); color: var(--coral); }
.filter-pill.active { background: var(--coral); border-color: var(--coral); color: #fff; }
.filter-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.flow-table-wrap {
  flex: 1; overflow-y: auto;
  margin: 14px 22px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.roa-info { font-family: var(--font-mono); font-size: 11px; color: var(--coral); background: var(--coral-light); padding: 6px 10px; border-radius: var(--radius); }

/* Form grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full, .full { grid-column: 1 / -1; }
.form-section-label {
  grid-column: 1 / -1;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  color: var(--text-3); text-transform: uppercase; letter-spacing: .1em;
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px;
}
.form-divider { border: none; border-top: 1px solid var(--border); grid-column: 1/-1; }

/* ══════════════════════════════════════════════════════════════
   PILOTT — Kanban (substitua todo o bloco antigo do Pilott)
══════════════════════════════════════════════════════════════ */

/* ── Broker bar (admin) ── */
.pilott-broker-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: #131820;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: var(--text-muted);
}
.pilott-broker-bar select {
  background: #1c2330;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
.pilott-broker-bar select:focus {
  border-color: var(--coral);
}

/* ── Urgências ── */
.pilott-urgency {
  margin: 16px 20px 0;
  background: rgba(224,90,58,0.06);
  border: 1px solid rgba(224,90,58,0.22);
  border-radius: 12px;
  overflow: hidden;
}
.urgency-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(224,90,58,0.10);
  border-bottom: 1px solid rgba(224,90,58,0.15);
}
.urgency-fire  { font-size: 18px; line-height: 1; }
.urgency-title { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #E05A3A; flex: 1; }
.urgency-count {
  background: #E05A3A;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.urgency-add-btn {
  background: none;
  border: 1px solid rgba(224,90,58,0.4);
  color: #E05A3A;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.urgency-add-btn:hover { background: rgba(224,90,58,0.15); }
.urgency-add-btn svg   { width: 14px; height: 14px; }
.urgency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  min-height: 60px;
}
.urgency-empty {
  color: var(--text-muted);
  font-size: 13px;
  width: 100%;
  text-align: center;
  padding: 8px 0;
}
.pilott-urgency.drag-over { outline: 2px dashed #E05A3A; }

/* ── Board wrap ── */
.board-wrap {
  flex: 1;
  overflow-x: auto;
  padding: 16px 20px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 14px;
  min-width: 900px;
  align-items: start;
}

/* ── Column ── */
.k-col {
  background: #131820;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  max-height: calc(100vh - 230px);
  border: 1px solid rgba(255,255,255,0.06);
  transition: outline .15s;
}
.k-col.drag-over {
  outline: 2px dashed var(--coral);
  outline-offset: -2px;
}

/* ── Column header ── */
.k-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.k-col-header-left  { display: flex; align-items: center; gap: 8px; }
.k-col-header-right { display: flex; align-items: center; gap: 6px; }

.k-col-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.k-col-icon svg { width: 14px; height: 14px; }

.k-col-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .2px;
}

.k-col-count {
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.k-col-add {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.k-col-add:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.k-col-add svg   { width: 14px; height: 14px; }

/* ── Column body ── */
.k-col-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.k-col-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  border: 1.5px dashed rgba(255,255,255,0.08);
  border-radius: 8px;
  margin: 4px 0;
}
.k-col-empty small { font-size: 11px; opacity: .6; }

/* ── Card ── */
.k-card {
  background: #1a2130;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 12px 10px;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, border-color .12s;
  position: relative;
  user-select: none;
}
.k-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.14);
}
.k-card.dragging {
  opacity: .45;
  transform: rotate(1.5deg) scale(.97);
}
.k-card.k-card-high {
  border-left: 3px solid #ef4444;
}

/* Card topo */
.k-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}
.k-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}
.k-card-code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--coral);
  background: rgba(224,90,58,0.12);
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 4px;
  vertical-align: middle;
}
.k-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.k-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Menu botão (3 pontos) */
.k-card-menu-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  border-radius: 5px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s, color .12s;
  margin-top: -2px;
}
.k-card-menu-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.k-card-menu-btn svg   { width: 16px; height: 16px; }

/* Dropdown menu */
.k-card-menu {
  position: absolute;
  top: 36px;
  right: 8px;
  background: #1e2a3a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 200;
  overflow: hidden;
  min-width: 130px;
}
.k-card-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background .12s;
}
.k-card-menu button:hover  { background: rgba(255,255,255,0.07); }
.k-card-menu button.danger { color: #ef4444; }
.k-card-menu button.danger:hover { background: rgba(239,68,68,0.1); }
.k-card-menu button svg    { width: 14px; height: 14px; }

/* ── Chips ── */
.k-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.k-chip svg { width: 11px; height: 11px; flex-shrink: 0; }

.k-chip-alta   { background: rgba(239,68,68,.15);  color: #ef4444; }
.k-chip-media  { background: rgba(234,179,8,.15);  color: #eab308; }
.k-chip-baixa  { background: rgba(34,197,94,.15);  color: #22c55e; }

.k-chip-due         { background: rgba(99,102,241,.15); color: #818cf8; }
.k-chip-due.today   { background: rgba(249,115,22,.18); color: #fb923c; }
.k-chip-due.overdue { background: rgba(239,68,68,.18);  color: #f87171; }

.k-chip-aai    { background: rgba(56,189,248,.12); color: #38bdf8; }
.k-chip-broker { background: rgba(167,139,250,.12); color: #a78bfa; }

/* ── Modais Pilott ── */
.pilott-modal {
  width: 540px;
  max-width: 95vw;
}

/* View modal */
.view-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.view-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.view-field-value {
  font-size: 13px;
  color: var(--text);
}
.view-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.view-status-badge svg { width: 13px; height: 13px; }
.view-timestamps {
  font-size: 11px;
  color: var(--text-muted);
  opacity: .6;
  margin: 0;
}

/* Broker checkboxes */
.broker-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  min-height: 44px;
}
.broker-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: background .12s, border-color .12s;
}
.broker-checkbox-label:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }
.broker-checkbox-label input[type=checkbox] {
  accent-color: var(--coral);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Form rows */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.required { color: var(--coral); }
.muted    { color: var(--text-muted); font-size: 12px; }

/* Status msg */
.status-msg {
  display: none;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  color: #22c55e;
  font-size: 13px;
  padding: 8px 20px;
  margin: 8px 20px 0;
  border-radius: 8px;
}

/* ── CSS vars adicionais (se não existirem no styles.css) ── */
:root {
  --slate:    #94a3b8;
  --slate-bg: rgba(148,163,184,.12);
  --blue:     #60a5fa;
  --blue-bg:  rgba(96,165,250,.12);
  --amber:    #fbbf24;
  --amber-bg: rgba(251,191,36,.12);
  --green:    #4ade80;
  --green-bg: rgba(74,222,128,.12);
  --red:      #f87171;
  --red-bg:   rgba(248,113,113,.12);
}

/* ══ PIPE ══ */
.pipe-content { flex: 1; overflow-y: auto; padding: 14px 22px; display: flex; flex-direction: column; gap: 12px; }
.pipe-sessao-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.pipe-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }

/* ══ METAS ══ */
.metas-content { flex: 1; overflow-y: auto; padding: 14px 22px; display: flex; flex-direction: column; gap: 12px; }
.meta-card { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.meta-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.meta-assessor { font-size: 13px; font-weight: 700; color: var(--text); }
.meta-progress { height: 5px; background: var(--ink-5); border-radius: 3px; overflow: hidden; margin: 6px 0; }
.meta-progress-bar { height: 100%; background: var(--coral); border-radius: 3px; transition: width .3s; }
.meta-progress-bar.ok { background: var(--green); }
.meta-progress-bar.warn { background: var(--yellow); }
.edit-meta-btn { background: none; border: none; cursor: pointer; color: var(--text-3); padding: 3px 5px; border-radius: var(--radius-sm); display: flex; align-items: center; }
.edit-meta-btn:hover { background: var(--ink-4); color: var(--text); }
.edit-meta-btn svg { width: 14px; height: 14px; }

/* ══ PARAMETRIZAÇÃO ══ */
.param-content { flex: 1; overflow-y: auto; padding: 10px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.param-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Override inline styles dos selects de param */
#pf-praca, #pf-lider, #pf-assessor, #pf-advisor, #pf-broker {
  width: auto !important; min-width: 120px !important; max-width: 180px;
  font-size: 11px !important; padding: 5px 10px !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font) !important;
  background: var(--ink-4) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-2) !important;
}
#param-search { width: auto !important; font-size: 12px !important; }
/* Override do wrapper inline da param */
[style*="border-bottom:1px solid var(--border)"][style*="display:flex"][style*="flex-wrap:wrap"] {
  background: var(--bg-card) !important;
  border-bottom: 1px solid var(--border) !important;
}

/* ══ ADMIN ══ */
.adm-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 150; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.adm-overlay.open { display: flex; }
.adm-panel {
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 96%; max-width: 680px; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.adm-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.adm-body { padding: 16px 20px; }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.adm-field label { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
.adm-user-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.adm-user-row:last-child { border-bottom: none; }
.adm-btn-sm { padding: 4px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; font-family: var(--font); cursor: pointer; border: none; transition: all .1s; }
.adm-btn-edit { background: var(--ink-4); color: var(--text-2); border: 1px solid var(--border); }
.adm-btn-edit:hover { border-color: var(--coral); color: var(--coral); }
.adm-btn-del { background: var(--red-bg); color: var(--red); }
.adm-btn-create { background: var(--coral); color: #fff; }
.adm-btn-create:hover { background: var(--coral-dark); }
.adm-tbl { width: 100%; border-collapse: collapse; }
.adm-tbl th { padding: 8px 12px; text-align: left; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--border); background: var(--ink-3); }
.adm-tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.adm-tbl tr:last-child td { border-bottom: none; }
.adm-tbl tr:hover td { background: var(--ink-3); }

/* ══ LOGIN ══ */
.lx-shell {
  background: var(--ink-2); border: 1px solid var(--ink-3);
  border-radius: 16px; padding: 36px 40px;
  width: 100%; max-width: 380px;
  box-shadow: var(--shadow-lg);
}
#login-overlay {
  position: fixed; inset: 0;
  background: #0B0F14;
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.lx-brand { margin-bottom: 28px; }
.lx-brand-inner { display: flex; align-items: center; gap: 12px; }
.lx-brand-text { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.02em; line-height: 1.1; }
.lx-brand-text span { color: var(--coral); }
.lx-brand-sub { font-family: var(--font-mono); font-size: 9px; color: var(--ash); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.lx-title { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.02em; margin-bottom: 4px; }
.lx-sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; }
.lx-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.lx-field label { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; }
.lx-field input {
  background: var(--ink-4); border: 1px solid var(--border-2); color: var(--text);
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; font-family: var(--font);
  outline: none; transition: border-color .1s; width: 100%;
}
.lx-field input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(224,90,58,.15); }
.lx-field input::placeholder { color: var(--text-3); }
.lx-error { color: #FCA5A5; font-family: var(--font-mono); font-size: 11px; margin-top: 6px; display: none; }
#lx-btn {
  width: 100%; background: none; border: none; cursor: pointer;
  margin-top: 14px; display: flex; align-items: center; justify-content: center;
  padding: 4px; transition: opacity .15s;
}
#lx-btn img { height: 52px; border-radius: 50%; transition: transform .15s; }
#lx-btn img:hover { transform: scale(1.06); }
#lx-btn:disabled { opacity: .5; }
#lx-spinner { display: none; color: var(--text-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }

/* ══ COMING SOON / EMPTY ══ */
.coming-soon {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 60px 20px; color: var(--text-3);
}
.coming-soon svg { width: 44px; height: 44px; opacity: .15; }
.coming-soon h3 { font-size: 15px; font-weight: 800; color: var(--text-2); }
.coming-soon p  { font-size: 13px; max-width: 280px; text-align: center; line-height: 1.6; }

/* ══ UTILITIES ══ */
.font-mono  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.fw-700     { font-weight: 700; }
.fw-800     { font-weight: 800; }
.text-coral { color: var(--coral); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-muted { color: var(--text-3); }

/* ══ SCROLLBAR ══ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--ash); }

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .adm-grid { grid-template-columns: 1fr; }
}

.lx-inp {
  background: #1E242B;
  border: 1.5px solid #252C35;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: #E8EBF0;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lx-inp:focus {
  border-color: #E05A3A;
  box-shadow: 0 0 0 3px rgba(224,90,58,.15);
}
.lx-inp::placeholder { color: #6B7685; }

.lx-inp {
  background: #1E242B; border: 1.5px solid #252C35;
  border-radius: 8px; padding: 10px 14px;
  font-family: 'Manrope', sans-serif; font-size: 13px; color: #E8EBF0;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.lx-inp:focus { border-color: #E05A3A; box-shadow: 0 0 0 3px rgba(224,90,58,.15); }
.lx-inp::placeholder { color: #6B7685; }

/* ══ PILOTT TRELLO STYLE ══════════════════════════════════════════════════ */

/* Board: colunas proporcionais, mesma largura */
.board-wrap {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 14px 22px 22px;
}
.board-wrap::-webkit-scrollbar { height: 5px; }
.board-wrap::-webkit-scrollbar-track { background: transparent; }
.board-wrap::-webkit-scrollbar-thumb { background: #252C35; border-radius: 5px; }

#board {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px;
  align-items: start;
  min-width: 800px;
}

/* Coluna */
.kanban-col {
  background: #161B22;
  border: 1px solid #252C35;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 210px);
  min-width: 0;
}

.k-col-header {
  padding: 12px 14px 10px;
  background: transparent;
  border-bottom: 1px solid #252C35;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.k-col-body, .k-col-empty-wrap {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  flex: 1;
  min-height: 60px;
}

/* Card — tamanho fixo, conteúdo truncado */
.k-card {
  background: #1E242B;
  border: 1px solid #252C35;
  border-radius: 9px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all .12s;
  position: relative;
  height: 110px;
  min-height: 110px;
  max-height: 110px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.k-card:hover {
  background: #232B34;
  border-color: #E05A3A;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.k-card.dragging { opacity: .35; }

.k-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}
.k-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #E8EBF0;
  line-height: 1.4;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.k-card-menu-btn {
  background: none; border: none; cursor: pointer;
  color: #6B7685; padding: 2px 4px;
  border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center;
  opacity: 0; transition: opacity .1s;
}
.k-card:hover .k-card-menu-btn { opacity: 1; }
.k-card-menu-btn:hover { background: #252C35; color: #E8EBF0; }
.k-card-menu-btn svg { width: 14px; height: 14px; }

.k-card-desc {
  font-size: 11px;
  color: #6B7685;
  line-height: 1.4;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  margin: 4px 0;
}

.k-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  margin-top: auto;
  overflow: hidden;
}

.k-card-assignee {
  font-size: 10px;
  color: #6B7685;
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chips menores */
.k-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 100px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
}
.k-chip svg { width: 10px; height: 10px; }
.k-chip-alta  { background: rgba(239,68,68,.18);  color: #EF4444; }
.k-chip-media { background: rgba(245,158,11,.18); color: #F59E0B; }
.k-chip-baixa { background: rgba(34,197,94,.18);  color: #22C55E; }
.k-chip-due   { background: rgba(255,255,255,.07); color: #8A9BB0; }
.k-chip-due.overdue { background: rgba(239,68,68,.18); color: #EF4444; }

/* Coluna vazia */
.k-col-empty {
  font-size: 11px;
  color: #6B7685;
  text-align: center;
  padding: 20px 10px;
  font-family: 'IBM Plex Mono', monospace;
}

/* Drag-over */
.kanban-col.drag-over {
  border-color: #E05A3A;
  background: rgba(224,90,58,.04);
}

/* Col add button */
.k-col-add {
  background: none; border: none; cursor: pointer;
  color: #6B7685; padding: 3px 5px;
  border-radius: 5px; display: flex; align-items: center;
}
.k-col-add:hover { background: #252C35; color: #E8EBF0; }
.k-col-add svg { width: 15px; height: 15px; }

/* ══ URGÊNCIAS — coral/laranja da marca ══ */
.pilott-urgency {
  margin: 10px 22px 0;
  background: #161B22;
  border: 1px solid rgba(224,90,58,.35);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.urgency-header {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(224,90,58,.09);
  border-bottom: 1px solid rgba(224,90,58,.2);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: #E05A3A;
}
.urgency-title { color: #E05A3A; }
.urgency-count {
  background: #E05A3A; color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 100px;
}
.urgency-fire {
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(224,90,58,.8));
}
.urgency-add-btn {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: #E05A3A; padding: 2px 6px; border-radius: 5px;
  display: flex; align-items: center; font-size: 18px; line-height: 1;
}
.urgency-add-btn:hover { background: rgba(224,90,58,.15); }
.urgency-list {
  padding: 8px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  min-height: 40px;
}
/* Cards no urgency ficam menores e horizontais */
.urgency-list .k-card {
  height: 90px;
  min-height: 90px;
  max-height: 90px;
  min-width: 220px;
  max-width: 260px;
  flex-shrink: 0;
  border-color: rgba(224,90,58,.25);
}
.urgency-list .k-card:hover { border-color: #E05A3A; }

/* Modal do Pilott — dark */
#taskOverlay .modal, #viewOverlay .modal {
  background: #161B22;
  border: 1px solid #252C35;
}
#taskOverlay .modal-header, #viewOverlay .modal-header {
  border-bottom: 1px solid #252C35;
}
#taskOverlay .field label, #viewOverlay .field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500;
  color: #6B7685; text-transform: uppercase; letter-spacing: .1em;
  display: block; margin-bottom: 5px;
}
#taskOverlay .field, #viewOverlay .field {
  display: flex; flex-direction: column; margin-bottom: 12px;
}
#taskOverlay .field-row, #viewOverlay .field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

/* ══ USER PANEL FOOTER ══════════════════════════════════════════ */
#user-avatar-btn:hover .sidebar-avatar {
  border-color: var(--coral);
}
#user-avatar-btn:hover .sidebar-user-name {
  color: var(--coral);
}

/* ══ USER PANEL MODAL ═══════════════════════════════════════════ */
#user-panel-overlay .modal {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
}
#user-panel-overlay .modal-header {
  border-bottom: 1px solid var(--border);
}
