/* GENERATED by scripts/build-ui.py. Edit ui/ sources, not this file. */

/* Source: ui/compat/styles.css */
:root {
  --bg: #eaeaea;
  --surface: #ffffff;
  --surface-2: #f5f2fb;
  --text: #12081e;
  --muted: #675a78;
  --line: #d8cce8;
  --primary: #8b3dff;
  --primary-strong: #411b78;
  --accent: #8b3dff;
  --cyan: #0891b2;
  --orange: #f97316;
  --lime: #65a30d;
  --warning: #b7791f;
  --success: #139266;
  --info: #4f46e5;
  --dark: #000000;
  --brand-deep: #411b78;
  --brand-light: #8b3dff;
  --shadow: 0 20px 46px rgba(65, 27, 120, 0.14);
  --shadow-soft: 0 10px 26px rgba(65, 27, 120, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(139,61,255,.10), transparent 28%),
    radial-gradient(circle at 16% 6%, rgba(65,27,120,.07), transparent 28%),
    linear-gradient(180deg, #fbfbfd, var(--bg));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.hidden { display: none !important; }
.app { min-height: 100vh; }
.panel,
.metric,
.toolbar,
.section-block,
.user-create-card,
.company-card,
.traffic-card,
.person-item,
.goal-item,
.daily-item,
.agenda-item,
.task-card,
.modal {
  border-color: rgba(174,145,225,.24);
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,255,255,.72));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.panel:hover,
.metric:hover,
.company-card:hover,
.traffic-card:hover,
.person-item:hover,
.goal-item:hover,
.daily-item:hover,
.task-card:hover,
.agenda-item:hover {
  border-color: rgba(139,61,255,.55);
  box-shadow: 0 18px 46px rgba(139,61,255,.16), var(--shadow-soft);
  transform: translateY(-1px);
}
.panel,
.metric,
.toolbar,
.section-block,
.user-create-card,
.company-card,
.traffic-card,
.person-item,
.goal-item,
.daily-item,
.agenda-item,
.task-card {
  backdrop-filter: blur(14px);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 78% 46%, rgba(139,61,255,.56), transparent 0 18%, transparent 34%),
    radial-gradient(circle at 20% 15%, rgba(139,61,255,.3), transparent 0 22%, transparent 45%),
    linear-gradient(135deg, #000 0%, #180729 38%, #411b78 72%, #8b3dff 120%);
  color: #fff;
}
.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
}
.login-orbit {
  position: absolute;
  width: 560px;
  height: 560px;
  right: 8vw;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(139,61,255,.24), 0 0 90px rgba(139,61,255,.18);
  animation: orbitPulse 5s ease-in-out infinite;
}
.login-brand, .brand { display: flex; align-items: center; gap: 12px; }
.login-brand { position: fixed; z-index: 2; top: 24px; left: 24px; }
.login-brand strong, .brand strong, .login-brand small, .brand small { display: block; }
.login-brand small, .brand small { color: #cfc5dc; font-size: 12px; }
.brand-logo { width: 150px; height: auto; display: block; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(139,61,255,.28)); }
.login-stage {
  position: absolute;
  right: max(34px, 7vw);
  bottom: -18px;
  width: min(38vw, 520px);
  pointer-events: none;
  filter: drop-shadow(0 30px 70px rgba(0,0,0,.44));
  animation: mascotFloat 4.8s ease-in-out infinite;
}
.login-stage img { width: 100%; height: auto; display: block; }
.login-card {
  position: relative;
  z-index: 2;
  width: min(456px, 100%);
  display: grid;
  gap: 16px;
  padding: 30px;
  margin-right: min(32vw, 430px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  box-shadow: 0 30px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.22);
  backdrop-filter: blur(22px);
}
.login-card h1 { margin: 0; font-size: 42px; line-height: .98; letter-spacing: 0; }
.login-copy { margin: -4px 0 4px; color: #ded6eb; line-height: 1.45; }
.login-insight {
  display: grid;
  gap: 10px;
  padding: 15px;
  margin: -2px 0 2px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 16px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}
.login-insight div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.login-insight span {
  min-width: 68px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(0,0,0,.16);
  color: #d8c8f7;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: capitalize;
  text-align: center;
}
.login-insight strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}
.login-insight p {
  margin: 0;
  color: #efe8ff;
  font-size: 14px;
  line-height: 1.4;
}
.login-card label { color: #e9e0f7; }
.login-card input {
  min-height: 50px;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.9);
}
.password-control { position: relative; display: block; }
.password-control input { padding-right: 52px; }
.password-control button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-deep);
}
.password-control button.active { background: rgba(139,61,255,.12); color: var(--brand-light); }
.password-control svg { width: 20px; height: 20px; fill: currentColor; }

.global-search {
  width: min(320px, 28vw);
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
}
.global-search input {
  min-height: 42px;
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
}
.global-results {
  position: fixed;
  top: 78px;
  right: 190px;
  z-index: 30;
  width: min(460px, calc(100vw - 28px));
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(139,61,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 24px 70px rgba(65,27,120,.2);
  backdrop-filter: blur(18px);
}
.global-results button {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  color: var(--text);
  text-align: left;
}
.global-results button:hover { border-color: rgba(139,61,255,.5); transform: translateY(-1px); }
.global-results span { color: var(--primary); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.global-results small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 256px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(139,61,255,.24), transparent 34%),
    linear-gradient(90deg, rgba(139,61,255,.12) 0 1px, transparent 1px),
    linear-gradient(180deg, #000 0%, #12071f 44%, #1c0b32 100%);
  background-size: auto, 42px 42px, auto;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.08);
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 18px 10px 18px auto;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(139,61,255,.55), rgba(8,145,178,.5), transparent);
}
.sidebar-circuit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .72;
  background:
    radial-gradient(circle at 20px 120px, rgba(139,61,255,.72) 0 2px, transparent 3px),
    radial-gradient(circle at 232px 210px, rgba(8,145,178,.62) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 0 24px, rgba(255,255,255,.07) 24px 25px, transparent 25px),
    linear-gradient(180deg, transparent 0 142px, rgba(139,61,255,.16) 142px 143px, transparent 143px);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 86%, transparent);
}
.sidebar > *:not(.sidebar-circuit) {
  position: relative;
  z-index: 1;
}
.brand-mark {
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: #fff;
  padding: 5px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.menu-label {
  display: block;
  margin: 0 10px 4px;
  color: #9185aa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-list {
  position: relative;
  display: grid;
  gap: 5px;
}
.nav-list::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 38px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(139,61,255,.34), rgba(255,255,255,.04));
}
.nav-list a {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #d9d1e9;
  font-size: 14px;
  font-weight: 750;
  isolation: isolate;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.nav-list a::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px -14px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}
.nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.07);
  color: #cbbdf1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.nav-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  display: block;
}
.nav-list a.active {
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,239,255,.9));
  color: #201532;
  border-color: rgba(255,255,255,.82);
  box-shadow: 0 14px 34px rgba(0,0,0,.18), 0 0 0 1px rgba(139,61,255,.12);
}
.nav-list a.active::before {
  background: linear-gradient(180deg, var(--brand-light), #0891b2);
  box-shadow: 0 0 18px rgba(139,61,255,.55);
}
.nav-list a.active .nav-icon {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-deep));
  color: #fff;
}
.nav-list a:hover:not(.active) {
  transform: translateX(2px);
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.nav-badge {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  border-radius: 999px;
  background: var(--brand-light);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.profile-box {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
}
.profile-button {
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #e8ddff;
  font-size: 12px;
  font-weight: 900;
}
.profile-button:hover { background: rgba(255,255,255,.14); color: #fff; }

.app-main { margin-left: 256px; padding: 24px clamp(20px, 3vw, 44px) 44px; }
.app-view.view-hidden { display: none !important; }
.topbar, .section-heading, .modal-header, .modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar { min-height: 86px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(31,21,48,.08); }
.topbar h1 { max-width: 760px; margin: 4px 0 0; font-size: clamp(26px, 2.7vw, 40px); line-height: 1.08; letter-spacing: 0; }
.eyebrow { margin: 0; color: var(--primary); font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.primary-button, .secondary-button, .ghost-button, .icon-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.primary-button, .secondary-button, .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}
.primary-button { background: linear-gradient(135deg, var(--brand-light), var(--brand-deep)); border-color: transparent; color: #fff; box-shadow: 0 12px 26px rgba(139,61,255,.26); }
.primary-button:hover { background: var(--primary-strong); transform: translateY(-1px); }
.secondary-button:hover, .ghost-button:hover, .icon-button:hover { border-color: var(--primary); }
.ghost-button { background: rgba(255,255,255,.08); color: #fff; }
.icon-button { width: 40px; display: grid; place-items: center; padding: 0; font-size: 18px; }

.live-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 12px;
  background: #e8ddff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.live-pill[data-mode="online"] { background: rgba(139,61,255,.1); color: var(--brand-deep); border-color: rgba(139,61,255,.18); }
.live-pill[data-mode="offline"] { background: #ffe4ef; color: var(--accent); }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric, .panel, .toolbar {
  background: rgba(255,255,255,.84);
  border: 1px solid #e4ddf1;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.metric { min-height: 132px; display: grid; align-content: space-between; padding: 18px; position: relative; overflow: hidden; }
.metric::after { content: ""; position: absolute; inset: auto 14px 12px auto; width: 42px; height: 42px; border-radius: 8px; background: rgba(109,40,217,.1); }
.metric:nth-child(2)::after { background: rgba(8,145,178,.13); }
.metric:nth-child(3)::after { background: rgba(236,72,153,.13); }
.metric:nth-child(4)::after { background: rgba(19,146,102,.13); }
.metric span, .metric small, label, .card-meta, .person-role, th { color: var(--muted); }
.metric strong { display: block; margin: 8px 0; font-size: 40px; line-height: 1; }
.metric small { font-size: 13px; }

.command-center, .ops-dashboard, .section-block, .split-grid, .admin-panel { scroll-margin-top: 22px; }
.command-center { margin-bottom: 22px; }
.section-heading { margin: 28px 0 14px; }
.section-heading.compact { margin: 0 0 18px; }
.section-heading h2, .modal h2 { margin: 4px 0 0; font-size: 24px; line-height: 1.15; }

.ops-dashboard { margin: 26px 0 30px; }
.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 20%, rgba(139,61,255,.7), transparent 25%),
    linear-gradient(135deg, #000 0%, #411b78 62%, #8b3dff 125%);
  color: #fff;
  box-shadow: var(--shadow);
}
.ops-hero h2 { max-width: 780px; margin: 6px 0 8px; font-size: clamp(28px, 3vw, 44px); line-height: 1.02; letter-spacing: 0; }
.ops-hero p { max-width: 720px; margin: 0; color: #efe7ff; }
.ops-hero .eyebrow { color: #f8d7ff; }
.ops-score {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 160px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
}
.ops-score span, .ops-score small { color: #eee4ff; font-weight: 800; }
.ops-score strong { font-size: 48px; line-height: 1; }
.ops-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.ops-metrics article {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.ops-metrics article:nth-child(1) { border-top: 4px solid var(--primary); }
.ops-metrics article:nth-child(2) { border-top: 4px solid var(--cyan); }
.ops-metrics article:nth-child(3) { border-top: 4px solid var(--orange); }
.ops-metrics article:nth-child(4) { border-top: 4px solid var(--accent); }
.ops-metrics span, .ops-metrics small { color: var(--muted); font-size: 13px; font-weight: 800; }
.ops-metrics strong { font-size: 34px; line-height: 1; }
.ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ops-list, .company-grid { display: grid; gap: 10px; }
.ops-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(216,204,232,.85);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.66)),
    radial-gradient(circle at top right, rgba(139,61,255,.12), transparent 40%);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.ops-item:hover { transform: translateY(-1px); border-color: rgba(139,61,255,.45); box-shadow: 0 14px 32px rgba(65,27,120,.12); }
.ops-item strong, .ops-item small { display: block; }
.ops-item small, .ops-item em { color: var(--muted); font-size: 12px; font-style: normal; }
.ops-item .company-logo { width: 42px; height: 42px; }
.ops-stack { display: grid; justify-items: end; gap: 3px; }
.ops-service-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ops-service-tags em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1e8ff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}
.ops-client { grid-template-columns: auto minmax(150px, 1fr) minmax(180px, auto) auto; }
.ops-contact {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.ops-contact.muted { background: #f0edf5; color: var(--muted); }

.toolbar { display: grid; grid-template-columns: minmax(280px, 1fr) 170px 210px 190px; gap: 12px; align-items: end; padding: 14px; margin-bottom: 18px; box-shadow: var(--shadow-soft); }
.search-field { position: relative; }
.search-field span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input { padding-left: 38px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 900; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfbff;
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(109,40,217,.12); }

.daily-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.daily-columns h3 { margin: 0 0 10px; font-size: 15px; }
.daily-list, .people-list, .goals-list, .traffic-grid, .company-grid, .agenda-list { display: grid; gap: 10px; }
.daily-item, .person-item, .goal-item, .traffic-card, .agenda-item {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfbff;
  color: var(--text);
  text-align: left;
}
.daily-item:hover, .traffic-card:hover { border-color: var(--primary); }
.daily-item strong, .daily-item small { display: block; }
.daily-item small { color: var(--muted); font-size: 12px; }
.event-item {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  color: var(--text);
}
.event-item + .event-item { border-top: 1px solid #efe8f8; }
.event-item strong, .event-item small { display: block; }
.event-item strong { font-size: 13px; line-height: 1.25; }
.event-item small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.event-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px #efe5ff;
}
.agenda-workspace { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.agenda-form { display: grid; gap: 14px; }
.agenda-demand-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(216,204,232,.82);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139,61,255,.08), rgba(255,255,255,.78));
}
.agenda-link-field {
  padding: 12px;
  border: 1px solid rgba(216,204,232,.82);
  border-radius: 8px;
  background: #fbf8ff;
}
.check-row { min-height: 46px; display: flex; align-items: center; gap: 10px; }
.check-row input { width: 18px; height: 18px; min-height: 0; }
.calendar-shell { display: grid; gap: 12px; }
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(216,204,232,.8);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f7f1ff);
}
.calendar-head strong { text-transform: capitalize; font-size: 18px; }
.calendar-head span { color: var(--muted); font-size: 13px; font-weight: 900; }
.calendar-weekdays,
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar-weekdays span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}
.calendar-day {
  min-height: 92px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(216,204,232,.76);
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  color: var(--text);
  text-align: left;
}
.calendar-day span { font-weight: 900; }
.calendar-day strong {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1e8ff;
  color: var(--primary);
  font-size: 11px;
}
.calendar-day small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.calendar-day small i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.72);
}
.calendar-day.muted { opacity: .42; }
.calendar-day.today { border-color: rgba(139,61,255,.5); }
.calendar-day.selected { background: #1b0d2e; color: #fff; box-shadow: 0 12px 28px rgba(65,27,120,.22); }
.calendar-day.selected small { color: #d8cef0; }
.calendar-day-panel {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.calendar-day-panel h3 { margin: 2px 0 0; }
.agenda-item {
  --person-color: var(--primary);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-left: 4px solid var(--person-color);
  background: #fff;
}
.agenda-item.done { opacity: .72; background: #f2fff8; }
.agenda-item.priority-Alta { box-shadow: inset 0 0 0 1px rgba(236,72,153,.22); }
.agenda-item.priority-Media { box-shadow: inset 0 0 0 1px rgba(245,158,11,.2); }
.agenda-item.priority-Baixa { box-shadow: inset 0 0 0 1px rgba(16,185,129,.18); }
.agenda-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.agenda-main strong, .agenda-main small { display: block; }
.agenda-main small { color: var(--muted); font-size: 12px; }
.agenda-main small b {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--person-color) 14%, #fff);
  color: var(--person-color);
  font-size: 11px;
}
.agenda-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(260px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.column { min-height: 560px; border: 1px solid #e5deef; border-radius: 8px; background: rgba(255,255,255,.58); padding: 12px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.column:nth-child(1), .column:nth-child(2), .column:nth-child(3), .column:nth-child(4) { background: rgba(255,255,255,.62); }
.column::before { content: ""; display: block; height: 3px; border-radius: 999px; margin: -1px 0 12px; background: #a78bfa; }
.column:nth-child(2)::before { background: #f59e0b; }
.column:nth-child(3)::before { background: #06b6d4; }
.column:nth-child(4)::before { background: #10b981; }
.column.drop-hover { transform: translateY(-2px); border-color: rgba(108,43,217,.38); background: #fff; box-shadow: 0 16px 36px rgba(108,43,217,.13); }
.drop-zone { min-height: 475px; }
.column-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 0 2px; }
.column-header h3 { margin: 0; font-size: 15px; }
.column-header small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 700; }
.count-pill, .priority, .status-badge, .area-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}
.count-pill { background: #fff; color: var(--muted); }
.task-card { display: grid; gap: 12px; padding: 14px; margin-bottom: 10px; border: 1px solid #e7dfef; border-left: 3px solid var(--primary); border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-soft); animation: cardIn .24s ease both; transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease, border-color .16s ease; }
.task-card[draggable="true"] { cursor: grab; }
.task-card[draggable="true"]:active { cursor: grabbing; }
.task-card.dragging { opacity: .55; transform: rotate(1deg) scale(.98); box-shadow: 0 18px 38px rgba(70,31,128,.18); }
.task-card:hover { transform: translateY(-1px); border-color: #cdbdf2; box-shadow: 0 14px 30px rgba(39,22,73,.12); }
.column.dense-column .drop-zone,
.column.micro-column .drop-zone {
  min-height: 360px;
}
.task-card.compact-card {
  gap: 8px;
  padding: 11px;
  margin-bottom: 8px;
}
.task-card.compact-card .card-title {
  gap: 2px;
}
.task-card.compact-card .card-title strong {
  font-size: 14px;
}
.task-card.compact-card .card-title span {
  font-size: 12px;
}
.task-card.compact-card .card-info {
  gap: 5px;
  font-size: 11px;
}
.task-card.compact-card .avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
}
.task-card.compact-card .count-pill,
.task-card.compact-card .priority,
.task-card.compact-card .status-badge,
.task-card.compact-card .area-badge {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}
.task-card.compact-card .card-meta {
  gap: 5px;
  font-size: 11px;
}
.task-card.compact-card .card-actions {
  grid-template-columns: repeat(5, 32px);
  gap: 6px;
}
.task-card.compact-card .card-actions button {
  min-height: 31px;
  border-radius: 7px;
}
.task-card.compact-card .card-actions .icon-action {
  width: 32px;
}
.task-card.micro-card {
  gap: 7px;
  padding: 10px;
  margin-bottom: 7px;
}
.task-card.micro-card .task-brief-dot,
.task-card.micro-card .compact-meta {
  display: none;
}
.task-card.micro-card .card-topline {
  justify-content: flex-start;
}
.task-card.micro-card .area-badge {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-card.micro-card .card-info {
  grid-template-columns: 1fr;
}
.task-card.micro-card .owner-name {
  gap: 6px;
  font-size: 12px;
}
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-title { display: grid; gap: 3px; }
.card-title strong { color: var(--text); font-size: 15px; line-height: 1.2; }
.card-title span { color: #3c3150; font-size: 14px; line-height: 1.25; }
.card-info { display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.owner-line, .goal-row, .person-row, .campaign-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.owner-name, .person-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, var(--person-color, var(--primary)), color-mix(in srgb, var(--person-color, var(--primary)) 68%, #000)); color: #fff; font-size: 12px; font-weight: 900; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.has-photo { background: #fff; box-shadow: 0 0 0 2px rgba(109,40,217,.14); }
.avatar-line, .table-person { display: inline-flex; align-items: center; gap: 8px; }
.card-actions { display: grid; grid-template-columns: repeat(5, 36px); gap: 8px; align-items: center; }
.card-actions .wide { grid-column: auto; }
.card-actions button, .campaign-actions button { min-height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #faf7ff; color: var(--text); font-size: 12px; font-weight: 850; }
.card-actions .icon-action {
  position: relative;
  width: 36px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}
.card-actions .icon-action svg {
  width: 16px;
  height: 16px;
}
.action-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
}
.card-actions .quiet-action { color: #6e627f; background: #fff; }
.card-actions .primary-action { color: var(--primary); background: #f6f0ff; }
.card-actions .approve-action { color: #fff; background: #139266; border-color: #139266; }
.card-actions .danger-action { color: #b4233a; background: #fff5f7; border-color: #ffd6df; }
.card-actions button:disabled { opacity: .38; cursor: not-allowed; }
.card-actions button:hover, .campaign-actions button:hover { border-color: var(--primary); }
.task-approval-button {
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(109,40,217,.24);
  border-radius: 8px;
  background: linear-gradient(135deg, #8b3dff, #5f20bd);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(109,40,217,.18);
}
.task-approval-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(109,40,217,.24);
}
.task-waiting-badge {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid #eadcfb;
  border-radius: 8px;
  background: #f8f3ff;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}
.archive-column {
  background: rgba(248,247,251,.72);
}
.archive-column .task-card {
  box-shadow: none;
}
.archive-more {
  width: 100%;
  min-height: 40px;
  border: 1px dashed rgba(109,40,217,.3);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.archive-more:hover {
  border-style: solid;
  background: #f7f1ff;
}
.comment-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1e8ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.monthly-report { margin-top: 18px; }
.priority.Alta { background: #ffe4ef; color: #be185d; }
.priority.Media { background: #fff1cf; color: #875a0c; }
.priority.Baixa { background: #dff6ec; color: #176947; }
.status-badge { background: #e9e4ff; color: var(--info); }
.status-badge.delivered { background: #ddf7eb; color: var(--success); }
.area-badge { background: #f2e8ff; color: var(--primary); }
.due-risk { color: var(--accent); font-weight: 900; }

.traffic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.traffic-card strong, .traffic-card small { display: block; }
.traffic-card small { color: var(--muted); }
.traffic-card[data-status="Ativa"] { border-color: rgba(19,146,102,.45); }
.traffic-card[data-status="Aguardando saldo"] { border-color: rgba(236,72,153,.45); }

.advisory-board { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.advisory-spotlight {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(145deg, #33165f, #7c3aed 62%, #0891b2);
  color: #fff;
  box-shadow: var(--shadow);
}
.advisory-spotlight span, .advisory-spotlight small { color: #eee4ff; font-weight: 800; }
.advisory-spotlight strong { font-size: 56px; line-height: 1; }
.advisory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.advisory-column {
  min-height: 220px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 13px;
  border: 1px solid #e4ddf1;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.advisory-column:nth-child(2n) { background: #f0fdff; }
.advisory-column:nth-child(3n) { background: #fff7ed; }
.advisory-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 900; }
.advisory-head strong { color: var(--primary); }
.advisory-items { display: grid; gap: 8px; }
.advisory-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #eadff8;
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  color: var(--text);
  text-align: left;
}
.advisory-item strong, .advisory-item small { display: block; }
.advisory-item small { color: var(--muted); font-size: 12px; }

.company-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.company-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.company-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.company-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.company-head strong, .company-head small { display: block; }
.company-head strong { font-size: 18px; }
.company-head small, .company-contact span, .company-card p { color: var(--muted); font-size: 13px; }
.company-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #eadff8;
  border-radius: 8px;
  background: #f7f2ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.company-logo img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f2e8ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.company-contact { display: grid; gap: 7px; }
.company-contact a { color: var(--primary); font-weight: 900; }
.company-card p { margin: 0; }

.split-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 18px; margin-top: 26px; }
.panel { padding: 18px; }
.workload { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.workload span { display: grid; gap: 2px; padding: 8px; border-radius: 8px; background: #f1ecff; color: var(--muted); font-size: 12px; }
.workload strong { color: var(--text); font-size: 16px; }
.progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: #e8ddff; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-light), var(--brand-deep)); }

.admin-panel { margin-top: 18px; }
.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(139,61,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}
.admin-hero h2 { margin: 4px 0 6px; font-size: clamp(26px, 3vw, 38px); }
.admin-hero p { max-width: 660px; margin: 0; color: var(--muted); font-weight: 700; }
.admin-actions { display: flex; gap: 10px; align-items: center; }
.admin-status-grid { margin-top: 14px; }
.admin-access-templates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.access-template-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(139,61,255,.16);
  border-radius: 8px;
  background: #fff;
}
.access-template-card span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f0e8ff;
  color: var(--brand-deep);
  font-weight: 900;
  font-size: 12px;
}
.access-template-card strong { font-size: 17px; }
.access-template-card small { color: var(--muted); line-height: 1.4; font-weight: 700; }
.access-template-card.danger span { background: #fff1f1; color: #b42318; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 390px); gap: 18px; align-items: start; margin-top: 18px; }
.user-create-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e4ddf1;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.admin-form-head h3,
.user-create-card h3 { margin: 4px 0 0; font-size: 22px; }
.user-create-card .primary-button { width: 100%; }
.admin-form-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(139,61,255,.14);
  border-radius: 8px;
  background: rgba(248,244,255,.62);
}
.admin-form-section > strong { font-size: 13px; text-transform: uppercase; color: var(--muted); }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr 74px; gap: 10px; align-items: end; }
.users-list-panel { min-width: 0; }
.admin-table-wrap table { min-width: 860px; }
.admin-person { gap: 10px; }
.admin-person span { display: grid; gap: 2px; }
.admin-person small,
.temporary-password { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef7ff;
  color: #075985;
  font-size: 12px;
  font-weight: 900;
}
.role-admin { background: #fff1f1; color: #b42318; }
.role-manager { background: #f1ecff; color: #5b21b6; }
.table-action[disabled],
.secondary-button[disabled] {
  cursor: not-allowed;
  opacity: .48;
}
.permission-master-warning {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #ffd2d2;
  border-radius: 8px;
  background: #fff7f7;
  color: #7f1d1d;
}
.permission-master-warning strong {
  color: #b42318;
  font-size: 13px;
}
.permission-master-warning span {
  color: #7f1d1d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.role-commercial { background: #e8fff5; color: #047857; }
.permission-tags { display: flex; flex-wrap: wrap; gap: 6px; max-width: 320px; }
.permission-tags em {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f5f2fb;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}
.permission-tags.muted em { opacity: .72; }
.inline-form { display: grid; grid-template-columns: 1fr 1fr 160px 170px 150px auto; gap: 10px; align-items: end; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }

@media (max-width: 760px) {
  .admin-hero { align-items: flex-start; flex-direction: column; }
  .admin-actions,
  .admin-actions .secondary-button { width: 100%; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .access-template-card { min-height: auto; }
}

.chat-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin-top: 18px;
}
.chat-panel, .chat-side {
  border: 1px solid rgba(216,204,232,.8);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.66)),
    radial-gradient(circle at top right, rgba(139,61,255,.14), transparent 38%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.chat-panel {
  min-height: calc(100vh - 210px);
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  gap: 14px;
  padding: 18px;
}
.chat-messages {
  min-height: 360px;
  max-height: calc(100vh - 360px);
  display: grid;
  align-content: end;
  gap: 12px;
  overflow: auto;
  padding: 16px;
  border: 1px solid #eadff8;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(65,27,120,.06), rgba(139,61,255,.04)),
    #fbf9ff;
}
.chat-message {
  max-width: min(720px, 86%);
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.chat-message.mine {
  justify-self: end;
  flex-direction: row-reverse;
}
.chat-message > div {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #e5d8f7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
.chat-message.mine > div {
  border-color: rgba(139,61,255,.38);
  background: linear-gradient(135deg, var(--brand-light), var(--brand-deep));
  color: #fff;
}
.chat-message span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.chat-message strong { font-size: 13px; }
.chat-message small { color: var(--muted); font-size: 11px; font-weight: 800; }
.chat-message.mine small { color: rgba(255,255,255,.72); }
.chat-message p { margin: 0; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px auto;
  gap: 10px;
  align-items: end;
}
.chat-form textarea {
  min-height: 54px;
  max-height: 150px;
  resize: vertical;
}
.chat-side {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 18px;
}
.chat-side h3 { margin: -6px 0 4px; font-size: 20px; }
.chat-side > div { display: grid; gap: 10px; }
.chat-person {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid #eadff8;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: var(--text);
  text-align: left;
}
.chat-person strong, .chat-person small { display: block; }
.chat-person small { color: var(--muted); font-size: 12px; }

.chat-dock {
  position: fixed;
  inset: auto 18px 18px auto;
  z-index: 19;
  pointer-events: none;
}

.spotify-dock {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 18;
  pointer-events: none;
}
.spotify-toggle {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,.34), transparent 34%),
    linear-gradient(135deg, #1db954, #0b6f34);
  color: #fff;
  box-shadow: 0 18px 44px rgba(16,185,129,.25), 0 10px 28px rgba(0,0,0,.12);
  font-weight: 950;
  pointer-events: auto;
}
.spotify-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.spotify-mini-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(29,185,84,.28);
  border-radius: 8px;
  background: linear-gradient(145deg, #eafff1, #fff);
  color: #108a43;
  box-shadow: 0 10px 26px rgba(16,185,129,.13);
}
.spotify-mini-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.spotify-mini-button:hover {
  transform: translateY(-1px);
  border-color: rgba(29,185,84,.5);
  box-shadow: 0 16px 34px rgba(16,185,129,.18);
}
.spotify-panel {
  width: min(390px, calc(100vw - 28px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(139,61,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 20px 54px rgba(18,8,30,.18);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}
.spotify-real {
  background:
    radial-gradient(circle at 100% 0%, rgba(29,185,84,.18), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.68));
}
.spotify-dock.minimized .spotify-panel { display: none; }
.spotify-dock:not(.minimized) .spotify-toggle { display: none; }
.spotify-head,
.spotify-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.spotify-head strong { display: block; }
.spotify-form input { min-height: 42px; }
.spotify-form button { min-height: 42px; padding: 0 12px; }
.spotify-account {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(29,185,84,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.68);
}
.spotify-account strong,
.spotify-account small { display: block; }
.spotify-account small,
.spotify-player-state,
.spotify-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}
.spotify-logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #1db954;
  color: #fff;
}
.spotify-logo-mark svg { width: 25px; height: 25px; fill: currentColor; }
.spotify-logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spotify-player-state {
  padding: 10px;
  border: 1px dashed rgba(29,185,84,.28);
  border-radius: 8px;
  background: rgba(234,255,241,.5);
}
.spotify-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.spotify-playlists {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}
.spotify-playlists button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(216,204,232,.74);
  border-radius: 8px;
  background: rgba(255,255,255,.74);
  color: var(--text);
  text-align: left;
}
.spotify-playlists button > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #1db954;
  color: #fff;
}
.spotify-playlists img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spotify-playlists svg { width: 22px; height: 22px; fill: currentColor; }
.spotify-playlists strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spotify-playlists small { color: var(--muted); font-size: 11px; font-weight: 850; }
.spotify-panel iframe {
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 8px;
  background: #111;
}
.chat-fab {
  display: none;
  position: absolute;
  right: 18px;
  bottom: 18px;
  pointer-events: auto;
  min-width: 138px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08)),
    linear-gradient(135deg, var(--brand-light), var(--brand-deep));
  color: #fff;
  box-shadow: 0 18px 42px rgba(65,27,120,.32), inset 0 1px 0 rgba(255,255,255,.28);
  backdrop-filter: blur(16px);
  font-weight: 900;
  isolation: isolate;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.chat-fab:active,
.chat-dock.fab-dragging .chat-fab { cursor: grabbing; }
.chat-dock.fab-dragging .chat-fab {
  transform: scale(.98);
  box-shadow: 0 28px 64px rgba(65,27,120,.42), inset 0 1px 0 rgba(255,255,255,.32);
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 24px 54px rgba(65,27,120,.38), inset 0 1px 0 rgba(255,255,255,.32); }
.chat-dock.fab-dragging .chat-fab:hover { transform: scale(.98); }
.chat-fab::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(139,61,255,.42), transparent 58%);
  filter: blur(10px);
  opacity: .72;
  animation: chatGlow 3.8s cubic-bezier(.45,0,.2,1) infinite;
}
.chat-fab::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 7px;
  width: 42px;
  height: 10px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(0,0,0,.18);
  filter: blur(8px);
  animation: mascotShadow 4.6s cubic-bezier(.45,0,.2,1) infinite;
}
.chat-fab-mascot {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: end center;
  flex: 0 0 auto;
  overflow: visible;
  margin: -16px 0 -4px -6px;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.26)) drop-shadow(0 0 10px rgba(139,61,255,.28));
  transform-origin: 50% 82%;
  animation: mascotChatFloat 4.6s cubic-bezier(.45,0,.2,1) infinite;
  will-change: transform, filter;
}
.chat-fab-mascot img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  animation: mascotLightSweep 5.2s ease-in-out infinite;
}
.chat-fab-label { padding-right: 6px; font-size: 13px; letter-spacing: 0; }
.chat-fab strong {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-deep);
  font-size: 12px;
}
.chat-dock.minimized .chat-fab { display: inline-flex; position: static; }
.chat-dock.minimized .chat-window { display: none; }
.chat-window {
  position: relative;
  width: min(460px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 36px));
  min-width: 360px;
  min-height: 430px;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  resize: none;
  pointer-events: auto;
  border: 1px solid rgba(139,61,255,.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.42)),
    radial-gradient(circle at top left, rgba(139,61,255,.16), transparent 46%);
  box-shadow: 0 18px 54px rgba(18,8,30,.18);
  backdrop-filter: blur(18px) saturate(1.08);
}
.chat-resize-handle {
  position: static;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139,61,255,.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(65,27,120,.55) 47% 53%, transparent 54%),
    linear-gradient(135deg, transparent 0 61%, rgba(139,61,255,.48) 62% 68%, transparent 69%),
    rgba(255,255,255,.68);
  box-shadow: 0 8px 20px rgba(65,27,120,.14);
  cursor: nesw-resize;
  touch-action: none;
}
.chat-resize-handle:hover,
.chat-window.resizing .chat-resize-handle {
  border-color: rgba(139,61,255,.58);
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(65,27,120,.82) 47% 53%, transparent 54%),
    linear-gradient(135deg, transparent 0 61%, rgba(139,61,255,.82) 62% 68%, transparent 69%),
    rgba(255,255,255,.92);
  transform: scale(1.04);
}
.chat-window.resizing {
  user-select: none;
  box-shadow: 0 24px 66px rgba(139,61,255,.24);
}
.chat-window.dragging {
  user-select: none;
  box-shadow: 0 24px 66px rgba(65,27,120,.24);
}
.chat-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.32);
  background:
    linear-gradient(135deg, rgba(65,27,120,.82), rgba(139,61,255,.58)),
    rgba(255,255,255,.18);
  color: #fff;
  cursor: move;
}
.chat-window-tools { display: flex; align-items: center; gap: 8px; }
.chat-window-tools button { cursor: pointer; }
.chat-window-tools .chat-resize-handle { cursor: nesw-resize; }
.chat-window-head .eyebrow { color: #d8c9ff; }
.chat-window-head strong { display: block; font-size: 17px; line-height: 1.1; }
.chat-window-head > div { min-width: 0; flex: 1; }
.chat-window-head > div strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-head-mascot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.chat-head-mascot img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transform: translateY(5px);
}
.chat-window-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
}
.chat-threads {
  display: grid;
  align-content: start;
  gap: 3px;
  overflow: auto;
  padding: 8px;
  border-right: 1px solid rgba(216,204,232,.54);
  border-bottom: 0;
  background: rgba(255,255,255,.28);
}
.chat-thread {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.chat-thread:first-child {
  position: sticky;
  top: 0;
  z-index: 1;
  border-color: rgba(139,61,255,.26);
  background: rgba(255,255,255,.58);
  box-shadow: 0 8px 18px rgba(65,27,120,.06);
}
.chat-thread.active {
  border-color: rgba(139,61,255,.38);
  background: rgba(139,61,255,.12);
}
.chat-thread strong, .chat-thread small { display: block; }
.chat-thread strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.chat-thread small { color: var(--muted); font-size: 11px; }
.chat-thread .avatar { width: 28px; height: 28px; font-size: 11px; }
.thread-unread {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
  font-size: 10px !important;
  font-style: normal;
  font-weight: 900;
}
.chat-room {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px;
}
.chat-messages.compact {
  min-height: 0;
  max-height: none;
  padding: 8px;
  border-color: rgba(216,204,232,.46);
  background:
    linear-gradient(rgba(255,255,255,.30), rgba(255,255,255,.30)),
    radial-gradient(circle at top right, rgba(139,61,255,.12), transparent 46%);
}
.chat-window .chat-message { max-width: 96%; gap: 7px; }
.chat-window .chat-message .avatar { width: 26px; height: 26px; font-size: 10px; }
.chat-window .chat-message span { gap: 10px; }
.chat-window .chat-message strong { font-size: 12px; }
.chat-window .chat-message small { font-size: 10px; white-space: nowrap; }
.chat-window .chat-message p { font-size: 13px; line-height: 1.35; font-weight: 650; }
.chat-window .chat-message > div {
  max-width: min(270px, 100%);
  padding: 9px 11px;
  border-color: rgba(216,204,232,.48);
  background: rgba(255,255,255,.68);
  box-shadow: 0 8px 20px rgba(65,27,120,.06);
}
.chat-window .chat-message.mine > div {
  border-color: rgba(139,61,255,.3);
  background: linear-gradient(135deg, rgba(139,61,255,.9), rgba(65,27,120,.88));
}
.chat-window .chat-form {
  grid-template-columns: minmax(0, 1fr) 48px 70px;
  gap: 7px;
}
.chat-window .chat-form textarea {
  min-height: 42px;
  max-height: 88px;
  resize: none;
  font-size: 14px;
}
.chat-window .chat-form button {
  min-height: 42px;
  padding: 0 10px;
}
.chat-record-button {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139,61,255,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.chat-record-button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.chat-record-button.recording {
  border-color: rgba(180,35,58,.35);
  background: #fff1f3;
  color: #b4233a;
  box-shadow: 0 0 0 4px rgba(180,35,58,.08);
}
.chat-link {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.chat-audio {
  width: min(260px, 100%);
  margin-top: 8px;
  display: block;
}
.agenda-detail-modal { width: min(560px, 100%); }
.agenda-detail-body { display: grid; gap: 10px; }
.detail-row,
.detail-notes {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfbff;
}
.detail-row {
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
}
.detail-row span,
.detail-notes span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.detail-row strong,
.detail-notes p {
  margin: 0;
}
.detail-row button { justify-self: start; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(22,11,45,.55); }
.modal { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; display: grid; gap: 16px; padding: 20px; border-radius: 8px; background: #fff; box-shadow: 0 28px 80px rgba(22,11,45,.22); }
.activity-modal { width: min(760px, 100%); }
.profile-modal { width: min(560px, 100%); }
.profile-editor, .company-logo-editor { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.profile-preview {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}
.profile-preview img { width: 100%; height: 100%; object-fit: cover; }
.company-logo-preview {
  width: 140px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #eadff8;
  border-radius: 8px;
  background: #f7f2ff;
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
}
.company-logo-preview img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.form-hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.activity-summary, .comment-item { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fcfbff; }
.activity-summary strong, .activity-summary span, .activity-summary p, .comment-item strong, .comment-item small, .comment-item p { margin: 0; }
.activity-summary span, .comment-item small { color: var(--muted); font-size: 13px; }
.task-process-map {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(216,204,232,.82);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139,61,255,.12), transparent 28%),
    rgba(255,255,255,.76);
}
.process-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.process-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #e5d8f4;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.process-step em {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1e8ff;
  color: var(--primary);
  font-style: normal;
}
.process-step.done {
  border-color: rgba(19,146,102,.28);
  background: #f1fff8;
  color: #176947;
}
.process-step.current {
  border-color: rgba(139,61,255,.42);
  background: linear-gradient(145deg, #fff, #f5edff);
  color: var(--text);
  box-shadow: 0 12px 24px rgba(65,27,120,.08);
}
.process-signals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.process-signals span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid #eadff8;
  border-radius: 8px;
  background: rgba(255,255,255,.74);
}
.process-signals strong { font-size: 13px; color: var(--text); }
.process-signals small,
.task-process-map p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}
.task-process-map p { margin: 0; line-height: 1.35; }
.comment-list { max-height: 260px; display: grid; gap: 10px; overflow: auto; }
.review-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(19,146,102,.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19,146,102,.08), rgba(139,61,255,.06)),
    #ffffff;
  box-shadow: var(--shadow-soft);
}
.review-actions strong,
.review-actions p { margin: 0; }
.checklist-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(139,61,255,.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(250,247,255,.88)),
    radial-gradient(circle at top right, rgba(139,61,255,.12), transparent 42%);
}
.checklist-head,
.checklist-item,
.checklist-add {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checklist-head { justify-content: space-between; }
.checklist-head strong,
.checklist-head span { display: block; }
.checklist-head span,
.checklist-head small { color: var(--muted); font-size: 12px; font-weight: 800; }
.checklist-items {
  display: grid;
  gap: 8px;
}
.checklist-item {
  justify-content: space-between;
  padding: 8px;
  border: 1px solid #eadff8;
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.checklist-item:hover {
  transform: translateY(-1px);
  border-color: rgba(139,61,255,.34);
  background: #fff;
}
.checklist-item > button:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.checklist-item > button:first-child:disabled { cursor: default; }
.checklist-item > button:first-child span {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139,61,255,.34);
  border-radius: 999px;
  color: #fff;
  background: #fff;
  font-weight: 900;
}
.checklist-item.done > button:first-child span {
  border-color: var(--brand-light);
  background: linear-gradient(135deg, var(--brand-light), var(--brand-deep));
}
.checklist-item.done strong {
  color: var(--muted);
  text-decoration: line-through;
}
.checklist-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.checklist-add input {
  min-height: 42px;
}
.empty-state.compact {
  min-height: auto;
  padding: 14px;
  font-size: 13px;
}
.approval-attachment {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e6daf9;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139,61,255,.08), rgba(255,255,255,.78));
}
.approval-attachment strong { color: var(--text); }
.file-drop {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(139,61,255,.55);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
}
.file-drop input { display: none; }
.attachment-preview,
.comment-attachment {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #eadff8;
  border-radius: 8px;
  background: #fff;
}
.attachment-preview img,
.attachment-preview video,
.comment-attachment img,
.comment-attachment video {
  width: 92px;
  height: 66px;
  object-fit: cover;
  overflow: hidden;
  border-radius: 8px;
  background: #f0e7ff;
}
.attachment-preview span,
.comment-attachment span { min-width: 0; color: var(--text); font-weight: 900; }
.comment-attachment { grid-template-columns: 92px minmax(0, 1fr); color: inherit; text-decoration: none; }
.comment-attachment:hover { border-color: rgba(139,61,255,.5); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 30; min-width: 240px; max-width: min(360px, calc(100vw - 40px)); transform: translateY(18px); opacity: 0; pointer-events: none; padding: 14px 16px; border-radius: 8px; background: var(--dark); color: #fff; box-shadow: var(--shadow); transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.alert-stack {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 31;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 36px));
  pointer-events: none;
}
.work-alert {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.58);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
    radial-gradient(circle at top right, rgba(139,61,255,.18), transparent 42%);
  box-shadow: 0 18px 42px rgba(18,8,30,.2);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  animation: cardIn .2s ease both;
}
.work-alert.approval { border-left-color: #139266; }
.work-alert.danger { border-left-color: #ec4899; }
.work-alert strong, .work-alert p { margin: 0; }
.work-alert p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.work-alert-actions { display: flex; justify-content: flex-end; gap: 8px; }
.work-alert-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}
.work-alert-actions button:first-child {
  border-color: transparent;
  background: var(--dark);
  color: #fff;
}
.empty { padding: 16px; border: 1px dashed var(--line); border-radius: 8px; background: #fff; color: var(--muted); text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.task-card,
.company-card,
.traffic-card,
.daily-item,
.agenda-item,
.person-item,
.goal-item { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.card-title span,
.daily-item small,
.agenda-main small,
.company-head small,
.company-contact span,
.form-hint,
.comment-item small,
.activity-summary span { color: var(--muted); }

/* Product UX polish pass */
body {
  background:
    linear-gradient(90deg, rgba(139,61,255,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(65,27,120,.035) 1px, transparent 1px),
    radial-gradient(circle at 92% 4%, rgba(139,61,255,.13), transparent 28%),
    radial-gradient(circle at 18% 8%, rgba(8,145,178,.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7f5fb 42%, #ece8f3 100%);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(139,61,255,.22);
  outline-offset: 2px;
}

.sidebar {
  width: 268px;
  padding: 18px 12px;
  gap: 18px;
  background:
    radial-gradient(circle at 74% 8%, rgba(139,61,255,.30), transparent 30%),
    linear-gradient(180deg, #09030f 0%, #150724 48%, #0b0612 100%);
  box-shadow: 12px 0 44px rgba(18,8,30,.16);
}

.app-main {
  margin-left: 268px;
  max-width: 1780px;
}

.brand {
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}

.brand-mark {
  width: 56px;
  height: 42px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 28px rgba(139,61,255,.22);
}

.brand strong { letter-spacing: 0; }
.brand small { color: #bcaedf; }

.nav-list {
  gap: 6px;
}

.nav-list a {
  min-height: 46px;
  padding: 0 10px;
  border-radius: 8px;
  color: #d8cdea;
  transition: background .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;
}

.nav-list a:hover:not(.active) {
  transform: translateX(2px);
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.075);
}

.nav-list a.active {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,255,255,.88));
  color: #170d25;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.nav-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: rgba(255,255,255,.075);
}

.nav-list a.active .nav-icon {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-deep));
  box-shadow: 0 8px 18px rgba(139,61,255,.28);
}

.profile-box {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

/* Sidebar final premium pass */
.sidebar {
  width: 270px;
  padding: 18px 14px;
  gap: 18px;
  background:
    radial-gradient(circle at 86% 7%, rgba(139,61,255,.22), transparent 28%),
    radial-gradient(circle at 0% 84%, rgba(8,145,178,.12), transparent 24%),
    linear-gradient(180deg, #0a0610 0%, #14091f 45%, #09050e 100%);
  border-right: 1px solid rgba(255,255,255,.10);
  box-shadow: 16px 0 48px rgba(18,8,30,.18);
}

.sidebar::before {
  inset: 0 0 auto;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,61,255,.7), transparent);
}

.sidebar-circuit {
  opacity: .32;
  background:
    linear-gradient(90deg, transparent 0 34px, rgba(255,255,255,.045) 34px 35px, transparent 35px),
    linear-gradient(180deg, transparent 0 78px, rgba(139,61,255,.08) 78px 79px, transparent 79px),
    radial-gradient(circle at 230px 88px, rgba(139,61,255,.54) 0 2px, transparent 3px);
  background-size: 70px 70px, 70px 70px, auto;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}

.app-main {
  margin-left: 270px;
}

.brand {
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 34px rgba(0,0,0,.16);
}

.brand-mark {
  width: 62px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.86);
  background: rgba(255,255,255,.97);
  box-shadow: 0 12px 28px rgba(139,61,255,.18);
}

.brand strong {
  color: #fff;
  font-size: 15px;
}

.brand small {
  margin-top: 2px;
  color: #bfb3d6;
  font-size: 11px;
}

.menu-label {
  margin: 2px 10px 8px;
  color: #8f82a7;
  letter-spacing: .11em;
}

.nav-list {
  gap: 7px;
}

.nav-list::before {
  display: none;
}

.nav-list a {
  min-height: 46px;
  padding: 0 10px;
  border-radius: 8px;
  border-color: rgba(255,255,255,.045);
  background: rgba(255,255,255,.025);
  color: #d7cde8;
  font-size: 13px;
  font-weight: 820;
}

.nav-list a::before {
  inset: 10px auto 10px 0;
  width: 3px;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.07);
  color: #cdbfff;
}

.nav-list a:hover:not(.active) {
  transform: translateX(3px);
  border-color: rgba(139,61,255,.22);
  background: rgba(255,255,255,.075);
}

.nav-list a.active {
  border-color: rgba(255,255,255,.76);
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(241,234,255,.92));
  color: #140b21;
  box-shadow: 0 16px 34px rgba(0,0,0,.20), 0 0 0 1px rgba(139,61,255,.10);
}

.nav-list a.active::before {
  background: linear-gradient(180deg, var(--brand-light), #06b6d4);
  box-shadow: 0 0 18px rgba(139,61,255,.52);
}

.nav-list a.active .nav-icon {
  background: linear-gradient(135deg, #8b3dff, #411b78);
  color: #fff;
  box-shadow: 0 10px 22px rgba(139,61,255,.28);
}

.profile-box {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.13);
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 82px;
  margin: -24px calc(clamp(20px, 3vw, 44px) * -1) 18px;
  padding: 18px clamp(20px, 3vw, 44px) 14px;
  border-bottom: 1px solid rgba(216,204,232,.72);
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.68));
  backdrop-filter: blur(18px) saturate(1.08);
}

.topbar h1 {
  font-size: clamp(27px, 2.45vw, 38px);
  color: #160b24;
}

.eyebrow {
  color: var(--brand-light);
  letter-spacing: .055em;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.quiet-action,
.primary-action,
.danger-action,
.approve-action,
.campaign-actions button,
.work-alert-actions button {
  border-radius: 8px;
}

.primary-button {
  background: linear-gradient(135deg, #8b3dff 0%, #6c2bd9 48%, #411b78 100%);
  box-shadow: 0 12px 28px rgba(139,61,255,.25);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.quiet-action:hover,
.primary-action:hover {
  transform: translateY(-1px);
}

.secondary-button,
.icon-button,
.quiet-action,
.campaign-actions button,
.work-alert-actions button {
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

input, select, textarea {
  border-color: rgba(216,204,232,.9);
  background: rgba(255,255,255,.82);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:hover, select:hover, textarea:hover {
  background: #fff;
  border-color: rgba(139,61,255,.34);
}

.panel,
.metric,
.toolbar,
.section-block,
.user-create-card,
.company-card,
.traffic-card,
.person-item,
.goal-item,
.daily-item,
.agenda-item,
.task-card,
.modal,
.ops-metrics article,
.advisory-column,
.chat-panel,
.chat-side {
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.66));
  box-shadow: 0 12px 34px rgba(65,27,120,.08);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.panel:hover,
.metric:hover,
.company-card:hover,
.traffic-card:hover,
.person-item:hover,
.goal-item:hover,
.daily-item:hover,
.task-card:hover,
.agenda-item:hover,
.ops-item:hover,
.advisory-column:hover {
  border-color: rgba(139,61,255,.38);
  box-shadow: 0 18px 46px rgba(65,27,120,.12);
}

.metrics-grid {
  gap: 16px;
}

.metric {
  min-height: 126px;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-light), rgba(8,145,178,.9));
}

.metric span {
  font-weight: 800;
}

.metric strong,
.ops-metrics strong,
.ops-score strong {
  letter-spacing: 0;
}

.command-center .panel {
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
    radial-gradient(circle at 98% 0%, rgba(139,61,255,.12), transparent 30%);
}

.ops-hero {
  border: 1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(circle at 92% 12%, rgba(139,61,255,.72), transparent 24%),
    radial-gradient(circle at 10% 100%, rgba(8,145,178,.24), transparent 34%),
    linear-gradient(135deg, #07030c 0%, #25103f 45%, #411b78 84%, #8b3dff 130%);
  box-shadow: 0 22px 58px rgba(65,27,120,.22);
}

.ops-score {
  background:
    linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  backdrop-filter: blur(18px);
}

.ops-metrics article {
  box-shadow: 0 12px 32px rgba(65,27,120,.08);
}

.ops-item {
  border-color: rgba(216,204,232,.72);
  background: rgba(255,255,255,.76);
}

.toolbar {
  position: sticky;
  top: 96px;
  z-index: 7;
  background: rgba(255,255,255,.78);
}

.kanban {
  gap: 16px;
}

.column {
  border-color: rgba(216,204,232,.72);
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.46));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 12px 30px rgba(65,27,120,.06);
}

.column-header h3 {
  font-size: 16px;
}

.task-card {
  background: rgba(255,255,255,.92);
}

.task-card[data-can-work="false"] {
  opacity: .78;
}

.card-actions button {
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.calendar-head,
.calendar-day,
.agenda-link-field,
.agenda-demand-fields {
  background: rgba(255,255,255,.78);
}

.calendar-day {
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.calendar-day:hover {
  transform: translateY(-1px);
  border-color: rgba(139,61,255,.34);
  box-shadow: 0 10px 24px rgba(65,27,120,.08);
}

.calendar-day.selected {
  background: linear-gradient(135deg, #25103f, #411b78);
}

.company-card {
  position: relative;
  overflow: hidden;
}

.company-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(139,61,255,.75), rgba(8,145,178,.65));
  opacity: .72;
}

.company-logo {
  background: #fff;
  box-shadow: 0 8px 22px rgba(65,27,120,.08);
}

.service-tags span,
.ops-service-tags em,
.area-badge,
.status-badge,
.priority,
.count-pill {
  border-radius: 999px;
}

.advisory-spotlight {
  background:
    radial-gradient(circle at 90% 18%, rgba(255,255,255,.22), transparent 24%),
    linear-gradient(145deg, #180a28, #411b78 56%, #0891b2 130%);
}

.chat-window {
  border-color: rgba(139,61,255,.24);
  background:
    linear-gradient(145deg, rgba(255,255,255,.76), rgba(255,255,255,.48)),
    radial-gradient(circle at top left, rgba(139,61,255,.16), transparent 46%);
}

.chat-window-head {
  background:
    linear-gradient(135deg, rgba(65,27,120,.88), rgba(139,61,255,.62)),
    rgba(255,255,255,.18);
}

.chat-messages.compact,
.chat-messages {
  scrollbar-width: thin;
  scrollbar-color: rgba(139,61,255,.34) transparent;
}

.chat-messages.compact::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.nav-list::-webkit-scrollbar,
.kanban::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.chat-messages.compact::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.nav-list::-webkit-scrollbar-thumb,
.kanban::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139,61,255,.32);
}

.modal-backdrop {
  background:
    radial-gradient(circle at 50% 24%, rgba(139,61,255,.20), transparent 32%),
    rgba(18,8,30,.54);
  backdrop-filter: blur(10px);
}

.modal {
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,255,255,.84));
}

.toast,
.work-alert {
  border-radius: 8px;
}

.executive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.executive-card {
  position: relative;
  min-height: 112px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.62));
  box-shadow: 0 12px 30px rgba(65,27,120,.08);
}

.executive-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(139,61,255,.12);
}

.executive-card.danger::after { background: rgba(236,72,153,.13); }
.executive-card.good::after { background: rgba(19,146,102,.13); }
.executive-card.review::after { background: rgba(245,158,11,.16); }
.executive-card.team::after { background: rgba(8,145,178,.13); }
.executive-card span,
.executive-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.executive-card strong {
  font-size: 34px;
  line-height: 1;
}

.pilot-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(220px, .85fr);
  gap: 14px;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 14%, rgba(139,61,255,.26), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(247,242,255,.7));
  box-shadow: 0 18px 52px rgba(65,27,120,.12);
  backdrop-filter: blur(18px);
}

.pilot-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139,61,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,61,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 84%);
}

.pilot-hero,
.pilot-action,
.pilot-flow,
.pilot-focus {
  position: relative;
  z-index: 1;
}

.pilot-hero {
  min-height: 138px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(216,204,232,.78);
  border-radius: 8px;
  background: rgba(255,255,255,.62);
}

.pilot-orbit {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--brand-light) 0 12%, transparent 13%),
    conic-gradient(from 180deg, rgba(139,61,255,.08), rgba(8,145,178,.82), rgba(139,61,255,.88), rgba(139,61,255,.08));
  box-shadow: inset 0 0 0 12px rgba(255,255,255,.72), 0 18px 34px rgba(139,61,255,.22);
  animation: pilotPulse 3.6s ease-in-out infinite;
}

.pilot-hero h3,
.pilot-hero p,
.pilot-next strong,
.pilot-next small {
  margin: 0;
}

.pilot-hero h3 {
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 1.08;
}

.pilot-hero p {
  color: #4d405f;
  font-weight: 760;
  line-height: 1.35;
}

.pilot-next {
  width: 100%;
  min-height: 138px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(216,204,232,.8);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(23,8,43,.95), rgba(65,27,120,.88));
  color: #fff;
  text-align: left;
  box-shadow: 0 18px 42px rgba(65,27,120,.18);
}

.pilot-next span,
.pilot-next small {
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 850;
}

.pilot-next strong {
  font-size: 24px;
  line-height: 1.08;
}

.pilot-next.danger { background: linear-gradient(145deg, #3b1027, #9d174d); }
.pilot-next.review { background: linear-gradient(145deg, #2d1b06, #92400e); }
.pilot-next.today { background: linear-gradient(145deg, #160b2d, #6d28d9); }
.pilot-next.agenda { background: linear-gradient(145deg, #180a2a, #411b78 62%, #8b3dff); }
.pilot-next.good,
.pilot-next.clear { background: linear-gradient(145deg, rgba(18,8,30,.98), rgba(65,27,120,.92) 58%, rgba(139,61,255,.9)); }

.pilot-flow {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.pilot-step {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(216,204,232,.8);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: #20142f;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pilot-step em {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f0e7ff;
  color: var(--primary);
  font-style: normal;
  font-size: 11px;
}

.pilot-focus {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.pilot-focus-head {
  display: none;
}

.pilot-focus-item {
  min-height: 78px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 12px;
  border: 1px solid rgba(216,204,232,.8);
  border-radius: 8px;
  background: rgba(255,255,255,.74);
  color: var(--text);
  text-align: left;
}

.pilot-focus-item > span {
  grid-row: 1 / span 2;
  width: 7px;
  min-height: 100%;
  border-radius: 99px;
  background: var(--primary);
}

.pilot-focus-item strong,
.pilot-focus-item small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pilot-focus-item strong {
  white-space: nowrap;
  font-size: 13px;
}

.pilot-focus-item small {
  display: -webkit-box;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pilot-focus-item:hover,
.pilot-next:hover {
  transform: translateY(-1px);
  border-color: rgba(139,61,255,.48);
}

.pilot-focus-item.danger > span { background: #ec4899; }
.pilot-focus-item.review > span { background: #f59e0b; }
.pilot-focus-item.today > span { background: var(--primary); }
.pilot-focus-item.agenda > span { background: #0891b2; }
.pilot-empty {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed rgba(139,61,255,.32);
  border-radius: 8px;
  background: rgba(255,255,255,.66);
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}

.notification-center {
  margin-top: 18px;
  padding-top: 4px;
}

.notification-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.notification-item {
  min-height: 78px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-content: center;
  gap: 4px 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.notification-item > span {
  grid-row: 1 / span 2;
  width: 8px;
  height: 100%;
  min-height: 34px;
  border-radius: 999px;
  background: var(--primary);
}
.notification-item.danger > span { background: #ec4899; }
.notification-item.review > span { background: #f59e0b; }
.notification-item.agenda > span { background: #0891b2; }
.notification-item strong,
.notification-item small {
  display: block;
  min-width: 0;
}
.notification-item small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.client-detail-modal {
  width: min(920px, 100%);
}

.client-detail-body {
  display: grid;
  gap: 14px;
}

.client-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.68)),
    radial-gradient(circle at top right, rgba(139,61,255,.14), transparent 42%);
}
.client-hero .company-logo {
  width: 62px;
  height: 62px;
}
.client-hero strong,
.client-hero small {
  display: block;
}
.client-hero strong {
  font-size: 22px;
}
.client-hero small {
  color: var(--muted);
  margin-top: 3px;
}
.client-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.client-kpis,
.report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.report-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.report-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.report-controls select {
  min-height: 40px;
  width: auto;
  min-width: 150px;
}
.client-kpis article,
.report-summary article {
  min-height: 88px;
  display: grid;
  align-content: space-between;
  padding: 13px;
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
}
.client-kpis span,
.report-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.client-kpis strong,
.report-summary strong {
  font-size: 24px;
}

.client-services,
.client-timeline {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 8px;
  background: rgba(255,255,255,.64);
}

.report-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.report-breakdown > div {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}
.report-breakdown span {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.report-breakdown span strong {
  margin-left: auto;
  color: var(--text);
}
.report-breakdown .company-logo,
.report-breakdown .avatar {
  width: 28px;
  height: 28px;
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.finance-summary article,
.finance-card {
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
}
.finance-summary article {
  min-height: 110px;
  display: grid;
  align-content: space-between;
  padding: 15px;
}
.finance-summary span,
.finance-summary small,
.finance-card small { color: var(--muted); font-size: 12px; font-weight: 850; }
.finance-summary strong { font-size: 28px; }
.finance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.finance-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
}
.finance-card.highlight {
  grid-template-columns: 1fr;
  background: linear-gradient(145deg, rgba(139,61,255,.12), rgba(255,255,255,.8));
}
.finance-card > span { font-weight: 950; color: var(--primary-strong); }
.finance-card.Pausado { border-color: rgba(245,158,11,.35); }
.finance-card.Cancelado { opacity: .72; }


.compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.compact-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(139,61,255,.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}
.chat-reply-preview {
  display: block;
  padding: 7px 9px;
  border-left: 3px solid rgba(139,61,255,.42);
  border-radius: 6px;
  background: rgba(139,61,255,.08);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.chat-message-actions {
  display: flex;
  gap: 8px;
  opacity: .72;
}
.chat-message-actions button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.chat-message-actions button:hover { text-decoration: underline; }
.chat-message.deleted p { color: var(--muted); font-style: italic; }

@media print {
  .sidebar,
  .topbar,
  .chat-dock,
  .toolbar,
  .metrics-grid,
  .command-center,
  .section-block,
  .agenda-workspace,
  .split-grid,
  .chat-workspace,
  .modal-backdrop,
  .toast,
  .alert-stack { display: none !important; }
  .app,
  .app-main,
  .ops-dashboard,
  .monthly-report { display: block !important; background: #fff !important; color: #111 !important; }
  .monthly-report { box-shadow: none !important; border: 0 !important; }
  .report-controls { display: none !important; }
}

@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .app-main { padding: 16px 12px 86px; }
  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 24;
    width: 100%;
    height: 72px;
    display: block;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid rgba(255,255,255,.12);
    border-right: 0;
  }
  .sidebar .brand,
  .sidebar .profile-box,
  .sidebar .menu-label { display: none; }
  .nav-list {
    display: flex;
    gap: 8px;
    min-width: max-content;
  }
  .nav-list a {
    min-width: 72px;
    min-height: 54px;
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 7px 8px;
    font-size: 11px;
    text-align: center;
  }
  .nav-icon { width: 22px; height: 22px; }
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .topbar h1 { font-size: 28px; }
  .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
  }
  .global-search {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  .global-results {
    top: 134px;
    right: 12px;
    left: 12px;
    width: auto;
  }
  .finance-summary,
  .finance-grid { grid-template-columns: 1fr; }
  .spotify-dock { right: 10px; bottom: 86px; }
  .spotify-panel { width: calc(100vw - 20px); }
}

@media (max-width: 1040px) {
  .pilot-panel,
  .pilot-focus {
    grid-template-columns: 1fr;
  }
  .pilot-flow {
    grid-column: auto;
  }
  .process-rail,
  .process-signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes pilotPulse {
  0%, 100% { transform: rotate(0deg) scale(1); filter: saturate(1); }
  45% { transform: rotate(7deg) scale(1.04); filter: saturate(1.16); }
  70% { transform: rotate(-3deg) scale(1.01); filter: saturate(1.04); }
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes mascotChatFloat {
  0%, 100% { transform: translate3d(0,0,0) rotate(-1.2deg) scale(1); filter: drop-shadow(0 10px 16px rgba(0,0,0,.26)) drop-shadow(0 0 8px rgba(139,61,255,.22)); }
  18% { transform: translate3d(1px,-4px,0) rotate(.8deg) scale(1.015); }
  42% { transform: translate3d(0,-8px,0) rotate(1.6deg) scale(1.025); filter: drop-shadow(0 15px 20px rgba(0,0,0,.22)) drop-shadow(0 0 16px rgba(139,61,255,.34)); }
  68% { transform: translate3d(-1px,-5px,0) rotate(-.4deg) scale(1.012); }
  84% { transform: translate3d(0,-2px,0) rotate(-1.5deg) scale(1.004); }
}

@keyframes chatGlow {
  0%, 100% { opacity: .46; transform: scale(.94); }
  35% { opacity: .78; transform: scale(1.04); }
  62% { opacity: .64; transform: scale(.99); }
}

@keyframes mascotShadow {
  0%, 100% { opacity: .22; transform: translateX(0) scaleX(.92); }
  42% { opacity: .12; transform: translateX(2px) scaleX(.72); }
  68% { opacity: .16; transform: translateX(-1px) scaleX(.82); }
}

@keyframes mascotLightSweep {
  0%, 100% { filter: saturate(1) brightness(1); }
  38% { filter: saturate(1.08) brightness(1.06); }
  58% { filter: saturate(1.02) brightness(1.02); }
}

@keyframes orbitPulse {
  0%, 100% { opacity: .62; transform: translateY(-50%) scale(1); }
  50% { opacity: .9; transform: translateY(-50%) scale(1.03); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* EVOADS future-premium visual system */
:root {
  --bg: #f3f1f7;
  --surface: #ffffff;
  --surface-2: #f8f5ff;
  --text: #130a20;
  --muted: #6a6077;
  --line: #ded4ed;
  --primary: #8b3dff;
  --primary-strong: #411b78;
  --brand-deep: #411b78;
  --brand-light: #8b3dff;
  --cyan: #05a7c8;
  --success: #15976b;
  --shadow: 0 22px 70px rgba(39, 18, 73, .12);
  --shadow-soft: 0 12px 34px rgba(39, 18, 73, .075);
}

body {
  background:
    linear-gradient(90deg, rgba(65,27,120,.030) 1px, transparent 1px),
    linear-gradient(180deg, rgba(65,27,120,.030) 1px, transparent 1px),
    radial-gradient(circle at 88% 7%, rgba(139,61,255,.16), transparent 28%),
    radial-gradient(circle at 18% 18%, rgba(5,167,200,.09), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8f6fc 44%, #efebf6 100%);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
}

.app-main {
  max-width: none;
}

.topbar {
  min-height: 78px;
  margin: -4px 0 20px;
  padding: 10px 0 18px;
  border-bottom: 1px solid rgba(65,27,120,.09);
}

.topbar h1 {
  max-width: 920px;
  font-size: clamp(28px, 2.35vw, 44px);
  font-weight: 930;
  letter-spacing: 0;
  color: #160b25;
}

.eyebrow {
  color: #7c2fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .075em;
}

.sidebar {
  width: 276px;
  padding: 18px 14px;
  background:
    radial-gradient(circle at 76% 8%, rgba(139,61,255,.20), transparent 26%),
    linear-gradient(180deg, #0c0612 0%, #13081d 52%, #07040b 100%);
  border-right: 1px solid rgba(255,255,255,.12);
  box-shadow: 18px 0 52px rgba(21, 9, 35, .20);
}

.sidebar-circuit {
  opacity: .18;
  background:
    linear-gradient(120deg, transparent 0 36%, rgba(139,61,255,.26) 36.2%, transparent 36.7%),
    radial-gradient(circle at 220px 92px, rgba(139,61,255,.62) 0 2px, transparent 3px);
}

.app-main {
  margin-left: 276px;
}

.brand {
  min-height: 68px;
  border-color: rgba(255,255,255,.14);
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 46px rgba(0,0,0,.18);
}

.brand-mark {
  width: 64px;
  height: 46px;
  border-radius: 8px;
  background: rgba(255,255,255,.98);
}

.nav-list {
  gap: 8px;
}

.nav-list a {
  min-height: 48px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.028);
  color: #ddd3ef;
  font-size: 13px;
  font-weight: 850;
}

.nav-list a.active {
  border-color: rgba(255,255,255,.86);
  background:
    linear-gradient(135deg, #ffffff, #efe7ff);
  color: #130a20;
  box-shadow: 0 18px 38px rgba(0,0,0,.22), 0 0 0 1px rgba(139,61,255,.14);
}

.nav-list a.active::before {
  inset: 9px auto 9px 0;
  background: linear-gradient(180deg, #8b3dff, #05a7c8);
}

.nav-icon {
  width: 33px;
  height: 33px;
  background: rgba(255,255,255,.08);
}

.profile-box {
  background: linear-gradient(145deg, rgba(255,255,255,.115), rgba(255,255,255,.04));
}

.panel,
.metric,
.toolbar,
.section-block,
.user-create-card,
.company-card,
.traffic-card,
.person-item,
.goal-item,
.daily-item,
.agenda-item,
.task-card,
.modal,
.executive-card,
.pilot-panel,
.notification-item,
.ops-item,
.finance-card,
.calendar-shell,
.calendar-day-panel {
  border: 1px solid rgba(196,176,224,.56);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,255,255,.76));
  box-shadow: 0 16px 48px rgba(39,18,73,.085);
  backdrop-filter: blur(18px);
}

.panel,
.section-block,
.user-create-card {
  padding: 20px;
}

.panel:hover,
.metric:hover,
.company-card:hover,
.traffic-card:hover,
.person-item:hover,
.goal-item:hover,
.daily-item:hover,
.task-card:hover,
.agenda-item:hover,
.ops-item:hover,
.finance-card:hover {
  border-color: rgba(139,61,255,.38);
  box-shadow: 0 22px 62px rgba(39,18,73,.13);
  transform: translateY(-2px);
}

.metric {
  min-height: 132px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(246,241,255,.86));
}

.metric::before {
  height: 2px;
  background: linear-gradient(90deg, #8b3dff, #05a7c8, transparent);
}

.metric strong,
.executive-card strong,
.ops-metrics strong {
  color: #12081e;
  font-weight: 950;
}

.toolbar {
  padding: 12px;
  border-color: rgba(196,176,224,.62);
}

.search-field,
.global-search,
input,
select,
textarea {
  border-radius: 8px;
  border-color: rgba(196,176,224,.74);
  background: rgba(255,255,255,.9);
}

.primary-button {
  background:
    linear-gradient(135deg, #8b3dff 0%, #5b21b6 62%, #411b78 100%);
  box-shadow: 0 16px 34px rgba(139,61,255,.28);
}

.secondary-button,
.ghost-button,
.icon-button {
  background: rgba(255,255,255,.82);
  border-color: rgba(196,176,224,.74);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(39,18,73,.14);
}

.pilot-panel {
  background:
    radial-gradient(circle at 92% 10%, rgba(139,61,255,.18), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(247,242,255,.72));
}

.pilot-hero,
.pilot-focus-item,
.pilot-step {
  background: rgba(255,255,255,.72);
}

.kanban {
  gap: 14px;
}

.column {
  border: 1px solid rgba(196,176,224,.64);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.74), rgba(246,242,252,.68));
  box-shadow: 0 18px 46px rgba(39,18,73,.07);
}

.column-header {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(196,176,224,.45);
}

.task-card {
  border-left-width: 4px;
  background: rgba(255,255,255,.95);
}

.card-actions button,
.campaign-actions button {
  background: #fff;
}

.company-card,
.person-item,
.goal-item,
.traffic-card,
.finance-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(250,247,255,.82));
}

.chat-window,
.spotify-panel {
  border-radius: 8px;
  border-color: rgba(196,176,224,.64);
  box-shadow: 0 28px 90px rgba(39,18,73,.18);
}

.menu-label:not(:first-child) {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.075);
}

.company-grid {
  align-items: stretch;
  grid-auto-rows: minmax(260px, auto);
}

.company-card {
  min-height: 260px;
  max-height: 340px;
  align-content: start;
  overflow: hidden;
}

.company-head {
  min-height: 54px;
}

.company-title {
  min-width: 0;
}

.company-title > span:last-child {
  min-width: 0;
}

.company-title strong,
.company-title small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.company-actions button {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(196,176,224,.64);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.compact-services {
  min-height: 74px;
  max-height: 82px;
  align-content: start;
  overflow: hidden;
}

.compact-services span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-services .service-more {
  background: #12081e;
  color: #fff;
}

.company-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.company-summary > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(196,176,224,.5);
  border-radius: 8px;
  background: rgba(248,245,255,.72);
}

.company-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.company-summary strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-state {
  color: var(--success) !important;
}

.company-links {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.company-links a,
.company-links span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0 10px;
  border: 1px solid rgba(196,176,224,.58);
  border-radius: 8px;
  background: #fff;
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 900;
}

.company-links span {
  color: var(--muted);
  background: rgba(248,245,255,.64);
}

.spotify-mini-button {
  width: auto;
  min-width: 92px;
  padding: 0 12px;
  gap: 7px;
  border-color: rgba(22,120,58,.2);
  background: #ffffff;
  color: #168542;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
}

.spotify-mini-button span {
  display: inline;
}

.spotify-dock.minimized .spotify-toggle {
  display: none;
}

.spotify-dock {
  bottom: 22px;
}

.onboarding-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.onboarding-status article {
  min-height: 98px;
  display: grid;
  align-content: space-between;
  padding: 14px;
  border: 1px solid rgba(245,158,11,.28);
  border-radius: 8px;
  background: rgba(255,251,235,.78);
}

.onboarding-status article.ready {
  border-color: rgba(21,151,107,.25);
  background: rgba(236,253,245,.8);
}

.onboarding-status span,
.onboarding-status small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.onboarding-status strong { font-size: 26px; }

.table-action {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .metrics-grid, .kanban, .traffic-grid, .company-grid, .ops-metrics, .advisory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .executive-grid, .notification-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-access-templates { grid-template-columns: 1fr; }
  .daily-columns, .split-grid, .ops-grid, .ops-hero, .advisory-board, .admin-grid, .chat-workspace, .agenda-workspace { grid-template-columns: 1fr; }
  .inline-form, .toolbar { grid-template-columns: 1fr; }
  .ops-client { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ops-client .ops-service-tags { grid-column: 2 / -1; justify-content: flex-start; }
  .topbar {
    min-height: auto;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }
  .topbar h1 { font-size: 24px; }
  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 7px;
  }
  .global-search {
    width: 150px;
    min-width: 140px;
  }
  .live-pill { display: none; }
  .spotify-mini-button {
    min-width: 42px;
    width: 42px;
    padding: 0;
  }
  .spotify-mini-button span { display: none; }
}

@media (max-width: 820px) {
  body { padding-bottom: 82px; }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 24;
    width: 100%;
    height: 76px;
    display: block;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.12);
    background: rgba(12,6,18,.96);
    backdrop-filter: blur(20px);
  }
  .sidebar-circuit,
  .sidebar .brand,
  .sidebar .profile-box,
  .sidebar .menu-label { display: none; }
  .nav-list {
    display: flex;
    gap: 7px;
    min-width: max-content;
    padding: 0;
    overflow: visible;
  }
  .nav-list a {
    min-width: 72px;
    min-height: 58px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 6px 9px;
    font-size: 10px;
    text-align: center;
  }
  .nav-list a::before { display: none; }
  .nav-icon { width: 27px; height: 27px; }
  .app-main {
    margin-left: 0;
    padding: 12px 10px 96px;
  }
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 12px;
    padding: 4px 0 12px;
  }
  .topbar h1 { font-size: 26px; }
  .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(4, 42px);
    gap: 7px;
  }
  .global-search {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  .live-pill { display: none; }
  .spotify-mini-button { min-width: 42px; width: 42px; padding: 0; }
  .spotify-mini-button span { display: none; }
  .metrics-grid,
  .executive-grid,
  .notification-list,
  .company-grid,
  .traffic-grid,
  .finance-grid,
  .finance-summary,
  .onboarding-status { grid-template-columns: 1fr; }
  .company-card {
    min-height: 0;
    max-height: none;
  }
  .company-summary { grid-template-columns: 1fr 1fr; }
  .kanban {
    grid-template-columns: repeat(4, minmax(280px, 86vw));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .column { scroll-snap-align: start; }
  .chat-window {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    min-width: 0;
    min-height: 0;
  }
  .spotify-dock {
    right: 8px;
    bottom: 84px;
  }
  .spotify-panel {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 110px);
    overflow: auto;
  }
  .modal {
    width: 100%;
    max-height: calc(100dvh - 16px);
  }
}

/* Tela principal e loguinhos com atmosfera de galaxia. */
.metrics-grid[data-view="dashboard"],
.command-center[data-view="dashboard"] {
  position: relative;
}

.metrics-grid[data-view="dashboard"]::before,
.command-center[data-view="dashboard"]::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  pointer-events: none;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 15%, rgba(139,61,255,.14), transparent 24%),
    radial-gradient(circle at 84% 8%, rgba(6,182,212,.12), transparent 26%),
    radial-gradient(circle at 72% 86%, rgba(217,70,239,.1), transparent 26%);
  filter: blur(1px);
}

.command-center[data-view="dashboard"] > .panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(250,246,255,.62)),
    radial-gradient(circle at 100% 0, rgba(139,61,255,.14), transparent 30%),
    radial-gradient(circle at 0 100%, rgba(6,182,212,.10), transparent 28%);
  box-shadow: 0 24px 70px rgba(65,27,120,.15), inset 0 1px 0 rgba(255,255,255,.84);
}

.command-center[data-view="dashboard"] > .panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 42px, rgba(139,61,255,.055) 42px 43px, transparent 43px),
    linear-gradient(180deg, transparent 0 42px, rgba(6,182,212,.045) 42px 43px, transparent 43px);
  background-size: 86px 86px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 82%);
}

.dashboard-intel {
  gap: 14px;
}

.intel-card,
.executive-card,
.pilot-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139,61,255,.18) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(249,245,255,.7)),
    radial-gradient(circle at 100% 0, rgba(139,61,255,.10), transparent 34%) !important;
  box-shadow: 0 16px 44px rgba(65,27,120,.1), inset 0 1px 0 rgba(255,255,255,.78);
}

.intel-card::before,
.executive-card::before,
.pilot-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-light), var(--cyan), var(--accent));
  opacity: .86;
}

.intel-card.primary {
  background:
    linear-gradient(145deg, rgba(24,10,42,.96), rgba(65,27,120,.88)),
    radial-gradient(circle at 100% 0, rgba(6,182,212,.24), transparent 36%) !important;
  color: #fff;
}

.intel-card.primary span,
.intel-card.primary small,
.intel-card.primary p {
  color: rgba(255,255,255,.78) !important;
}

.intel-list button {
  border-radius: 14px;
  border-color: rgba(139,61,255,.16);
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(246,241,255,.68)),
    radial-gradient(circle at 100% 0, rgba(6,182,212,.08), transparent 36%);
}

.intel-card.primary .intel-list button {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.pilot-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 12% 50%, rgba(139,61,255,.18), transparent 22%),
    radial-gradient(circle at 100% 0, rgba(6,182,212,.14), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.84), rgba(249,245,255,.66)) !important;
}

.pilot-hero::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -58px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(139,61,255,.16);
  border-radius: 50%;
  background: conic-gradient(from 180deg, transparent, rgba(139,61,255,.18), rgba(6,182,212,.16), transparent 70%);
}

.pilot-step {
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(246,241,255,.7)),
    radial-gradient(circle at 0 50%, rgba(139,61,255,.12), transparent 34%);
}

.avatar,
.company-logo,
.company-logo-preview,
.profile-preview,
.spotify-logo-mark {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.7);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.85), transparent 0 20%, transparent 35%),
    radial-gradient(circle at 72% 70%, rgba(6,182,212,.75), transparent 0 18%, transparent 34%),
    linear-gradient(135deg, var(--person-color, #8b3dff), #411b78 58%, #06b6d4 120%) !important;
  box-shadow:
    0 0 0 2px rgba(139,61,255,.12),
    0 0 22px rgba(139,61,255,.18),
    inset 0 1px 0 rgba(255,255,255,.4);
}

.avatar::before,
.company-logo::before,
.company-logo-preview::before,
.profile-preview::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 120deg, rgba(139,61,255,.0), rgba(139,61,255,.65), rgba(6,182,212,.58), rgba(217,70,239,.52), rgba(139,61,255,.0));
  opacity: .54;
  filter: blur(.2px);
}

.avatar.has-photo {
  padding: 2px;
  background:
    conic-gradient(from 120deg, #8b3dff, #06b6d4, #d946ef, #411b78, #8b3dff) !important;
}

.avatar.has-photo img,
.company-logo img,
.company-logo-preview img,
.profile-preview img {
  border-radius: inherit;
  background: #fff;
}

/* CRM commercial workspace cleanup */
.app-view.view-hidden {
  display: none !important;
}

body.commercial-mode .app-main {
  gap: 10px;
}

body.commercial-mode .topbar {
  min-height: 64px !important;
  margin-bottom: 12px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
}

body.commercial-mode .topbar h1 {
  font-size: clamp(24px, 2vw, 32px) !important;
  line-height: 1.05 !important;
}

body.commercial-mode .topbar .eyebrow {
  margin-bottom: 2px;
}

body.commercial-mode .crm-workspace {
  gap: 12px;
}

body.commercial-mode .crm-hero {
  display: none;
}

body.commercial-mode .crm-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.commercial-mode .crm-metrics article {
  min-height: 78px;
  padding: 12px 14px;
  border-top-width: 3px;
}

body.commercial-mode .crm-metrics strong {
  font-size: 28px;
}

body.commercial-mode .crm-grid {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 12px;
}

body.commercial-mode .crm-connect-panel,
body.commercial-mode .crm-inbox-panel,
body.commercial-mode .crm-thread-panel,
body.commercial-mode .crm-pipeline-panel {
  padding: 14px;
}

body.commercial-mode .crm-qr-area {
  grid-template-columns: 88px minmax(0, 1fr);
  padding: 10px;
}

body.commercial-mode .crm-qr-code {
  width: 88px;
}

body.commercial-mode .crm-seller-list .crm-seller-card:not(:first-child) {
  display: none;
}

body.commercial-mode .crm-thread-messages {
  min-height: 280px;
}

body.commercial-mode .crm-pipeline-panel {
  display: none;
}

@media (max-width: 1180px) {
  body.commercial-mode .crm-grid,
  body.commercial-mode .crm-metrics {
    grid-template-columns: 1fr;
  }
}

.crm-workspace {
  display: grid;
  gap: 16px;
}

.crm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.96), rgba(65,27,120,.92) 58%, rgba(8,145,178,.82)),
    radial-gradient(circle at 92% 12%, rgba(255,255,255,.22), transparent 28%);
  color: #fff;
  box-shadow: var(--shadow);
}

.crm-hero h2 {
  max-width: 820px;
  margin: 6px 0 8px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.03;
  letter-spacing: 0;
}

.crm-hero p {
  max-width: 720px;
  margin: 0;
  color: #ece4ff;
}

.crm-hero .eyebrow { color: #d8f6ff; }

.crm-hero-score {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.crm-hero-score span,
.crm-hero-score small {
  color: #efeaff;
  font-weight: 850;
}

.crm-hero-score strong {
  font-size: 50px;
  line-height: 1;
}

.crm-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.crm-metrics article {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.crm-metrics article:nth-child(2) { border-top-color: var(--cyan); }
.crm-metrics article:nth-child(3) { border-top-color: var(--orange); }
.crm-metrics article:nth-child(4) { border-top-color: var(--success); }
.crm-metrics span,
.crm-metrics small { color: var(--muted); font-size: 13px; font-weight: 850; }
.crm-metrics strong { font-size: 34px; line-height: 1; }

.crm-grid {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  grid-template-areas:
    "connect thread"
    "inbox thread";
  gap: 16px;
  align-items: start;
}

.crm-connect-panel { grid-area: connect; }
.crm-inbox-panel { grid-area: inbox; }
.crm-thread-panel { grid-area: thread; }

.crm-connect-panel,
.crm-inbox-panel,
.crm-thread-panel,
.crm-pipeline-panel {
  padding: 18px;
}

.crm-status-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef9fb;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.crm-status-pill.strong {
  background: #f1e8ff;
  color: var(--primary);
}

.crm-qr-area {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(139,61,255,.16);
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #f8f4ff);
}

.crm-qr-area strong,
.crm-qr-area p { display: block; margin: 0 0 8px; }
.crm-qr-area p { color: var(--muted); font-size: 13px; line-height: 1.45; }

.crm-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.crm-template-manager {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(216,204,232,.86);
}

.crm-template-form {
  display: grid;
  gap: 8px;
}

.crm-template-form textarea {
  min-height: 86px;
  resize: vertical;
}

.crm-template-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 340px;
  overflow: auto;
}

.crm-template-list article {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(216,204,232,.86);
  border-radius: 8px;
  background: #fff;
}

.crm-template-list article span,
.crm-template-list article small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.crm-template-list article p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.crm-qr-code {
  position: relative;
  display: grid;
  place-items: center;
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  box-shadow: none;
  overflow: hidden;
}

@media (max-width: 760px) {
  .crm-qr-area {
    grid-template-columns: 1fr;
  }

  .crm-qr-code {
    width: min(260px, 100%);
  }
}

.crm-qr-code img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.crm-qr-code.has-real-qr {
  border-style: solid;
  border-color: #e5e7eb;
  background: #fff;
  box-shadow: 0 14px 34px rgba(65,27,120,.12);
}

.crm-qr-placeholder {
  display: grid;
  place-items: center;
  gap: 6px;
  color: #64748b;
  text-align: center;
}

.crm-qr-placeholder strong {
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: #334155;
  font-size: 16px;
}

.crm-qr-placeholder small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.crm-qr-code strong {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-deep);
  font-size: 18px;
  font-weight: 950;
}

.crm-qr-code.connected {
  background:
    radial-gradient(circle at 50% 50%, rgba(19,146,102,.16), transparent 55%),
    linear-gradient(135deg, #dcfce7, #fff);
}

.crm-qr-code i,
.crm-qr-code span {
  display: none;
  position: absolute;
  width: 32px;
  height: 32px;
  border: 7px solid #111;
  background: #fff;
}

.crm-qr-code i:nth-child(1) { left: 12px; top: 12px; }
.crm-qr-code i:nth-child(2) { right: 12px; top: 12px; }
.crm-qr-code i:nth-child(3) { left: 12px; bottom: 12px; }
.crm-qr-code span { right: 20px; bottom: 24px; width: 22px; height: 22px; border-width: 6px; }

.crm-seller-list,
.crm-inbox,
.crm-thread,
.crm-pipeline-column div {
  display: grid;
  gap: 10px;
}

.crm-seller-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(216,204,232,.86);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
}

.crm-seller-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--person-color), #111827);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.crm-seller-card strong,
.crm-seller-card small { display: block; }
.crm-seller-card small { color: var(--muted); font-size: 12px; }
.crm-seller-card em {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1edf7;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.crm-seller-card em.online { background: #dcfce7; color: #166534; }

.crm-followup-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(245,158,11,.32);
  border-radius: 8px;
  background: #fff8eb;
}

.crm-followup-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.crm-followup-card header span {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 12px;
  font-weight: 950;
}

.crm-followup-card button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(245,158,11,.24);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.crm-followup-card span,
.crm-followup-card small,
.crm-followup-card p { margin: 0; display: block; }
.crm-followup-card span { font-weight: 950; }
.crm-followup-card small,
.crm-followup-card p { color: var(--muted); font-size: 12px; }

.crm-inbox-item,
.crm-pipeline-column button {
  width: 100%;
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(216,204,232,.86);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.crm-inbox-item.active,
.crm-inbox-item:hover,
.crm-pipeline-column button:hover {
  border-color: rgba(139,61,255,.56);
  box-shadow: 0 14px 34px rgba(65,27,120,.12);
  transform: translateY(-1px);
}

.crm-inbox-item span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.crm-inbox-item strong,
.crm-inbox-item small,
.crm-inbox-item em { display: block; }
.crm-inbox-item p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.35; }
.crm-inbox-item small { color: var(--muted); font-size: 12px; }
.crm-inbox-item em { color: var(--primary); font-size: 11px; font-style: normal; font-weight: 950; text-transform: uppercase; }

.crm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crm-tags b {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef9fb;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-client-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #111827, #411b78);
  color: #fff;
}
.crm-client-card small { display: block; margin-top: 4px; color: #d8c8f7; }
.crm-client-card span { font-weight: 950; color: #d8f6ff; }

.crm-lead-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(216,204,232,.86);
  border-radius: 8px;
  background: #fff;
}

.crm-lead-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-lead-form label.wide {
  grid-column: span 2;
}

.crm-lead-form input,
.crm-lead-form select,
.crm-note-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.crm-lead-form button {
  align-self: end;
}

.crm-thread-messages {
  display: grid;
  gap: 9px;
  min-height: 220px;
  align-content: end;
  padding: 14px;
  border: 1px solid rgba(216,204,232,.86);
  border-radius: 8px;
  background: #f9f7fd;
}

.crm-thread-messages p {
  width: fit-content;
  max-width: 82%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: var(--shadow-soft);
}

.crm-thread-messages p small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.crm-thread-messages p > span {
  display: block;
}

.crm-thread-messages p b {
  display: block;
  margin-top: 6px;
  color: inherit;
  font-size: 11px;
  font-weight: 900;
}

.crm-audio-message {
  display: block;
  width: min(320px, 62vw);
  height: 38px;
  margin-top: 6px;
}

.crm-media-message,
.crm-file-message {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: inherit;
  text-decoration: none;
}

.crm-media-message img,
.crm-video-message {
  display: block;
  width: min(300px, 62vw);
  max-height: 280px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(216,204,232,.8);
}

.crm-video-message {
  margin-top: 8px;
}

.crm-file-message {
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(139,61,255,.08);
  font-weight: 900;
}

.crm-thread-messages p.seller {
  justify-self: end;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-deep));
  color: #fff;
}

.crm-thread-messages p.seller small {
  color: rgba(255,255,255,.72);
}

.crm-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.crm-reply-form textarea {
  width: 100%;
  min-height: 48px;
  max-height: 132px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.35;
  outline: 0;
}

.crm-reply-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,61,255,.12);
}

.crm-attach-button {
  width: 48px;
  height: 48px;
}

.crm-attach-button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.crm-attachment-preview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(139,61,255,.22);
  border-radius: 8px;
  background: #f8f4ff;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.crm-attachment-preview button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
}

.crm-quick-replies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 7px;
}

.crm-quick-replies button {
  min-height: 46px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #343b47;
  text-align: left;
}

.crm-quick-replies button:hover {
  border-color: #4778ff;
  background: #f3f7ff;
}

.crm-quick-replies button span {
  display: block;
  font-size: 12px;
  font-weight: 950;
}

.crm-quick-replies button small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.crm-note-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.crm-timeline {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(216,204,232,.86);
  border-radius: 8px;
  background: #fff;
}

.crm-timeline > strong {
  color: var(--text);
}

.crm-timeline article {
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-top: 1px solid #f1edf7;
}

.crm-timeline article span {
  font-weight: 950;
}

.crm-timeline article small,
.crm-timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.crm-timeline article p {
  color: var(--text);
  line-height: 1.4;
}

.crm-next-action {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(8,145,178,.22);
  border-radius: 8px;
  background: #eef9fb;
}
.crm-next-action span { color: var(--cyan); font-size: 11px; font-weight: 950; text-transform: uppercase; }
.crm-next-action small { color: var(--muted); }

.crm-action-row {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.crm-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.crm-pipeline-column {
  min-width: 180px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(216,204,232,.86);
  border-radius: 8px;
  background: #fbf9ff;
}

.crm-pipeline-column header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.crm-pipeline-column header span {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8ddff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
}

.crm-pipeline-column p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .crm-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "connect"
      "inbox"
      "thread";
  }
  .crm-pipeline { grid-template-columns: repeat(5, 220px); }
  .crm-lead-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .crm-hero,
  .crm-metrics,
  .crm-qr-area {
    grid-template-columns: 1fr;
  }

  .crm-hero-score { min-height: 120px; }
  .crm-reply-form,
  .crm-note-form,
  .crm-action-row,
  .crm-lead-form { grid-template-columns: 1fr; }
  .crm-lead-form label.wide { grid-column: auto; }
}

/* EVOADS 360 premium pass: produto mais limpo, futurista e vendavel. */
:root {
  --evo-ink: #13091f;
  --evo-muted: #6d617b;
  --evo-line: rgba(139,61,255,.16);
  --evo-glass: rgba(255,255,255,.78);
  --evo-cyan: #06b6d4;
  --evo-pink: #d946ef;
}

body {
  background:
    radial-gradient(circle at 82% 6%, rgba(139,61,255,.12), transparent 28%),
    radial-gradient(circle at 12% 22%, rgba(6,182,212,.08), transparent 26%),
    linear-gradient(180deg, #fbfaff 0%, #f5f0ff 100%) !important;
  color: var(--evo-ink);
}

body.commercial-mode .global-search,
body.commercial-mode [data-open-task],
body.commercial-mode #tvModeBtn {
  display: none !important;
}

body.commercial-mode .menu-label {
  display: none;
}

.app-main {
  gap: 14px;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(19,9,31,.98), rgba(31,13,55,.96)),
    radial-gradient(circle at 20% 0, rgba(139,61,255,.32), transparent 28%) !important;
}

.nav-list a {
  min-height: 42px;
  border: 1px solid transparent;
  font-size: 13px;
  letter-spacing: 0;
}

.nav-list a:hover,
.nav-list a.active {
  border-color: rgba(255,255,255,.13);
  background: linear-gradient(135deg, rgba(139,61,255,.22), rgba(255,255,255,.08)) !important;
}

.topbar {
  min-height: 86px;
  border: 1px solid var(--evo-line) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.64)),
    radial-gradient(circle at 100% 0, rgba(139,61,255,.12), transparent 26%) !important;
  backdrop-filter: blur(22px);
}

.topbar h1 {
  font-size: clamp(28px, 3vw, 46px) !important;
  line-height: .96;
  letter-spacing: 0;
}

.topbar-actions {
  gap: 9px;
}

.global-search {
  min-width: min(340px, 28vw);
  border-radius: 16px !important;
  background: rgba(255,255,255,.72) !important;
}

.spotify-mini-button {
  border-color: rgba(139,61,255,.18) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(247,240,255,.74)) !important;
  color: #411b78 !important;
}

.metrics-grid[data-view="dashboard"] {
  gap: 12px !important;
}

.metrics-grid[data-view="dashboard"] .metric {
  min-height: 112px !important;
  padding: 16px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.64)),
    radial-gradient(circle at 90% 72%, rgba(139,61,255,.13), transparent 30%) !important;
}

.metrics-grid[data-view="dashboard"] .metric strong {
  margin: 6px 0 3px !important;
  font-size: clamp(32px, 3vw, 48px) !important;
}

.metrics-grid[data-view="dashboard"] .metric small {
  display: block;
  color: var(--evo-muted) !important;
  font-size: 12px !important;
}

.command-center[data-view="dashboard"] > .panel {
  padding: 20px !important;
}

.dashboard-focus-strip {
  display: grid !important;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(120px, .55fr));
  gap: 10px;
  margin: 10px 0 12px;
}

.dashboard-focus-strip article {
  min-height: 92px;
  border-radius: 20px !important;
  border: 1px solid rgba(139,61,255,.16) !important;
  background: rgba(255,255,255,.72) !important;
  box-shadow: 0 14px 36px rgba(65,27,120,.08) !important;
}

.focus-card strong {
  font-size: clamp(20px, 2vw, 30px);
}

.executive-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin: 0 0 12px;
}

.executive-card {
  min-height: 92px !important;
  padding: 13px !important;
}

.executive-card strong {
  font-size: 32px !important;
}

.dashboard-intel {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.intel-card {
  min-height: 148px !important;
  padding: 13px !important;
}

.intel-card strong {
  font-size: 30px !important;
}

.pilot-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 12px;
  padding: 14px;
}

.pilot-hero,
.pilot-action {
  min-height: 124px !important;
}

.pilot-focus {
  grid-column: 1 / -1;
}

.daily-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.daily-columns h3 {
  font-size: 14px !important;
}

.toolbar,
.section-block,
.panel,
.modal {
  border-radius: 22px !important;
  border-color: rgba(139,61,255,.16) !important;
  background: rgba(255,255,255,.76) !important;
  backdrop-filter: blur(18px);
}

.kanban,
.kanban-board {
  gap: 12px !important;
}

.column {
  min-width: 292px;
  border-radius: 22px !important;
  background: rgba(255,255,255,.54) !important;
}

.column-header {
  padding: 14px 14px 10px !important;
}

.column-header h3 {
  font-size: 17px !important;
}

.drop-zone {
  padding: 0 10px 12px !important;
}

.task-card {
  min-height: 0 !important;
  padding: 10px !important;
  border-radius: 18px !important;
  gap: 7px !important;
}

.task-client-line {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.task-client-line .company-logo {
  width: 26px;
  height: 26px;
  font-size: 9px;
}

.task-card .card-title strong {
  font-size: 14px !important;
}

.task-card .card-title span {
  font-size: 13px !important;
  line-height: 1.25;
  -webkit-line-clamp: 1 !important;
}

.task-card .card-info,
.task-card .card-meta {
  gap: 6px !important;
  font-size: 11px !important;
}

.task-card .card-actions {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(34px, 1fr));
  gap: 6px !important;
}

.task-card .card-actions button {
  min-height: 34px !important;
  border-radius: 12px !important;
}

.task-hover-preview {
  left: 44px !important;
  right: auto !important;
  top: 32px !important;
  width: min(300px, 80vw);
  max-height: 260px;
}

.task-card:hover .task-hover-preview,
.task-card:focus-within .task-hover-preview {
  opacity: 0 !important;
}

.task-card:has(.task-brief-dot:hover) .task-hover-preview,
.task-card:has(.task-brief-dot:focus-visible) .task-hover-preview {
  opacity: 1 !important;
  pointer-events: none !important;
}

.task-modal {
  width: min(1040px, calc(100vw - 28px)) !important;
  padding: 22px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(247,242,255,.78)),
    radial-gradient(circle at 100% 0, rgba(139,61,255,.14), transparent 30%) !important;
}

.task-wizard-progress {
  max-width: 360px;
  margin: 2px 0 8px;
}

.task-wizard-step {
  padding: 14px;
  border: 1px solid rgba(139,61,255,.14);
  border-radius: 20px;
  background: rgba(255,255,255,.56);
}

.task-presets {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.task-presets button {
  min-height: 86px !important;
  border-radius: 18px !important;
  padding: 12px !important;
}

.task-presets button span {
  border-radius: 14px !important;
}

.task-preset-guide {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(65,27,120,.06);
  color: #5d516d;
  font-size: 13px;
  font-weight: 760;
}

.agenda-workspace {
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr) !important;
}

.agenda-form {
  gap: 10px !important;
}

.calendar-shell {
  gap: 12px !important;
}

.calendar-head {
  border-radius: 18px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(65,27,120,.95), rgba(139,61,255,.88));
  color: #fff;
}

.calendar-head span {
  color: rgba(255,255,255,.72) !important;
}

.calendar-day {
  min-height: 86px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.68) !important;
}

.calendar-day.selected {
  border-color: rgba(139,61,255,.62) !important;
  box-shadow: 0 12px 28px rgba(139,61,255,.14);
}

.agenda-item {
  border-radius: 16px !important;
  background: rgba(255,255,255,.72) !important;
}

.report-summary article,
.report-breakdown > div,
.ops-item {
  border-radius: 18px !important;
  background: rgba(255,255,255,.72) !important;
}

.permission-picker,
.permission-grid {
  border-radius: 18px !important;
  background: rgba(248,244,255,.64) !important;
}

.permission-grid label,
.permission-picker label {
  min-height: 42px;
  border-radius: 14px !important;
}

@media (max-width: 1180px) {
  .dashboard-focus-strip,
  .executive-grid,
  .dashboard-intel,
  .daily-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .pilot-panel,
  .agenda-workspace {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .app-main {
    padding: 12px 10px 92px !important;
  }
  .topbar {
    min-height: 0 !important;
    padding: 14px !important;
  }
  .topbar h1 {
    font-size: 26px !important;
  }
  .topbar-actions {
    grid-template-columns: 1fr 42px 42px !important;
  }
  .topbar-actions .primary-button,
  .live-pill,
  .spotify-mini-button {
    display: none !important;
  }
  .metrics-grid[data-view="dashboard"],
  .dashboard-focus-strip,
  .executive-grid,
  .dashboard-intel,
  .daily-columns {
    grid-template-columns: 1fr !important;
  }
  .metrics-grid[data-view="dashboard"] {
    display: grid !important;
  }
  .metrics-grid[data-view="dashboard"] .metric {
    min-height: 92px !important;
  }
  .command-center[data-view="dashboard"] > .panel {
    padding: 14px !important;
  }
  .pilot-panel {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .kanban,
  .kanban-board {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(280px, 86vw)) !important;
    overflow-x: auto !important;
    scroll-snap-type: x proximity;
  }
  .column {
    scroll-snap-align: start;
  }
  .toolbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .toolbar .search-field {
    grid-column: 1 / -1;
  }
  .task-presets {
    grid-template-columns: 1fr !important;
  }
  .task-modal {
    width: 100% !important;
    max-height: calc(100vh - 20px) !important;
    border-radius: 24px 24px 0 0 !important;
  }
  .calendar-grid {
    gap: 6px !important;
  }
  .calendar-day {
    min-height: 68px !important;
    padding: 8px !important;
  }
  .calendar-day small {
    display: none !important;
  }
  .chat-dock:not(.minimized) {
    inset: 8px !important;
  }
.chat-window {
    width: calc(100vw - 16px) !important;
    height: calc(100vh - 16px) !important;
  }
}

/* Ajuste fino premium: menos repetição, cores mais elegantes e agenda respirando. */
.command-center[data-view="dashboard"] .section-heading.compact {
  margin-bottom: 6px !important;
}

.executive-grid {
  display: none !important;
}

.dashboard-focus-strip {
  grid-template-columns: minmax(320px, 1.4fr) repeat(3, minmax(150px, .55fr)) !important;
  margin-bottom: 12px !important;
}

.dashboard-intel {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin-top: 8px !important;
}

.pilot-panel {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr) !important;
  margin-top: 12px !important;
}

.pilot-flow {
  display: none !important;
}

.pilot-focus {
  grid-column: auto !important;
  align-content: start;
}

.pilot-focus-item:nth-of-type(n+5) {
  display: none !important;
}

.notification-center {
  display: none !important;
}

.task-card.priority-Alta,
.task-card.priority-Media,
.task-card.priority-Baixa {
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.72)) !important;
  border-top-color: rgba(139,61,255,.12) !important;
  border-right-color: rgba(139,61,255,.12) !important;
  border-bottom-color: rgba(139,61,255,.12) !important;
  border-left-width: 5px !important;
  box-shadow: 0 10px 28px rgba(65,27,120,.08) !important;
}

.task-card.priority-Alta {
  border-left-color: #e11d48 !important;
}

.task-card.priority-Media {
  border-left-color: #f59e0b !important;
}

.task-card.priority-Baixa {
  border-left-color: #16a34a !important;
}

.task-card.priority-Alta:hover,
.task-card.priority-Media:hover,
.task-card.priority-Baixa:hover {
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(249,245,255,.82)) !important;
  box-shadow: 0 16px 36px rgba(65,27,120,.13) !important;
}

.task-card.priority-Alta::before,
.task-card.priority-Media::before,
.task-card.priority-Baixa::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: .46;
}

.task-card.priority-Alta::before {
  background: linear-gradient(90deg, rgba(225,29,72,.12), transparent 42%);
}

.task-card.priority-Media::before {
  background: linear-gradient(90deg, rgba(245,158,11,.13), transparent 42%);
}

.task-card.priority-Baixa::before {
  background: linear-gradient(90deg, rgba(22,163,74,.12), transparent 42%);
}

.task-card.approved-card,
.archive-column .task-card.approved-card {
  background:
    linear-gradient(145deg, rgba(240,253,244,.96), rgba(255,255,255,.78)) !important;
  border-left-width: 5px !important;
  border-left-color: #10874e !important;
}

.priority.Alta,
.priority.Media,
.priority.Baixa,
.task-card.priority-Alta .priority,
.task-card.priority-Media .priority,
.task-card.priority-Baixa .priority {
  border: 1px solid rgba(255,255,255,.8) !important;
}

.calendar-day {
  min-height: 76px !important;
  align-content: start;
  gap: 8px !important;
}

.calendar-day strong {
  min-height: 20px;
}

.calendar-day small.agenda-day-dots {
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-height: 14px;
  line-height: 1;
}

.calendar-day small.agenda-day-dots i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin: 0 !important;
  border-radius: 999px;
}

.calendar-day small.agenda-day-dots em {
  color: #6d617b;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .dashboard-focus-strip,
  .dashboard-intel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .pilot-panel {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .dashboard-focus-strip,
  .dashboard-intel {
    grid-template-columns: 1fr !important;
  }

  .calendar-day {
    min-height: 58px !important;
  }
}

/* Ajuste final absoluto: leve, funcional e sem linhas pesadas. */
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(139,61,255,.12), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 30%, rgba(139,61,255,.5) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 72%, rgba(6,182,212,.4) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 82%, rgba(217,70,239,.34) 0 1px, transparent 2px),
    linear-gradient(180deg, #fbfbff 0%, #f6f3fb 48%, #efedf7 100%) !important;
}

body::before,
.sidebar::before,
.sidebar::after,
.sidebar-circuit,
.nav-list::before,
.command-center[data-view="dashboard"] > .panel::before {
  opacity: 0 !important;
  display: none !important;
}

.login-screen {
  background:
    radial-gradient(circle at 20% 18%, rgba(139,61,255,.36), transparent 24%),
    radial-gradient(circle at 75% 35%, rgba(6,182,212,.24), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(255,255,255,.82) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 70%, rgba(217,70,239,.42) 0 1px, transparent 2px),
    linear-gradient(135deg, #050109 0%, #160626 42%, #411b78 78%, #8b3dff 125%) !important;
}

.login-screen::before {
  display: block !important;
  opacity: .52 !important;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.46) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(6,182,212,.32) 0 1px, transparent 1.8px) !important;
  background-size: 74px 74px, 128px 128px !important;
}

.login-card {
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06)),
    radial-gradient(circle at 100% 0, rgba(6,182,212,.14), transparent 34%) !important;
  box-shadow: 0 28px 82px rgba(0,0,0,.34), 0 0 44px rgba(139,61,255,.16), inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.sidebar {
  width: 236px !important;
  gap: 14px !important;
  padding: 16px 12px !important;
  overflow: visible !important;
}

.brand { min-height: 46px; }
.brand-mark { width: 40px !important; height: 38px !important; }
.nav-list { gap: 4px !important; min-height: 0; overflow: visible; }
.nav-list a { min-height: 38px !important; padding: 0 8px !important; border-radius: 12px !important; font-size: 13px !important; }
.nav-icon { width: 26px !important; height: 26px !important; }
.menu-label { margin: 5px 8px 2px !important; font-size: 9px !important; letter-spacing: .06em !important; }
.profile-box { margin-top: auto !important; padding: 10px !important; gap: 8px !important; border-radius: 16px !important; }
.profile-button, .profile-box .ghost-button { min-height: 34px !important; }

.app-main {
  margin-left: 236px !important;
  padding-top: 16px !important;
}

.topbar {
  min-height: 68px !important;
  margin-bottom: 14px !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
}

.topbar h1 { font-size: clamp(25px, 2.3vw, 36px) !important; }
.metrics-grid[data-view="dashboard"] { gap: 12px !important; margin-bottom: 14px !important; }
.metrics-grid[data-view="dashboard"] .metric, .metric { min-height: 104px !important; padding: 14px !important; border-radius: 16px !important; box-shadow: 0 10px 26px rgba(65,27,120,.075) !important; }
.metrics-grid[data-view="dashboard"] .metric strong, .metric strong { margin: 7px 0 4px !important; font-size: clamp(30px, 2.5vw, 44px) !important; }
.command-center[data-view="dashboard"] > .panel, .section-block, .panel, .toolbar { border-radius: 18px !important; box-shadow: 0 14px 38px rgba(65,27,120,.08) !important; }
.command-center .section-heading.compact { padding-bottom: 6px !important; margin-bottom: 10px !important; }
.executive-card, .intel-card, .pilot-panel { border-radius: 16px !important; box-shadow: 0 10px 28px rgba(65,27,120,.075) !important; }
.intel-card::before, .executive-card::before, .pilot-panel::before, .metric::before { height: 2px !important; opacity: .52 !important; }

.kanban, .kanban-board { gap: 12px !important; }
.column { min-height: 500px !important; padding: 10px !important; border-radius: 16px !important; box-shadow: 0 10px 30px rgba(65,27,120,.07) !important; }
.column::before { height: 2px !important; margin-bottom: 10px !important; opacity: .42 !important; box-shadow: none !important; }
.task-card { gap: 8px !important; padding: 11px !important; margin-bottom: 8px !important; border-radius: 14px !important; box-shadow: 0 8px 20px rgba(65,27,120,.07) !important; }
.task-card:hover { transform: translateY(-1px) !important; box-shadow: 0 12px 28px rgba(65,27,120,.11) !important; }
.task-hover-preview { top: calc(100% + 8px) !important; left: 8px !important; right: 8px !important; z-index: 70 !important; padding: 12px !important; border-radius: 14px !important; pointer-events: none !important; box-shadow: 0 16px 38px rgba(65,27,120,.18) !important; }
.task-card:hover .task-hover-preview, .task-card:focus-within .task-hover-preview, .task-card:has(.task-brief-dot:hover) .task-hover-preview, .task-card:has(.task-brief-dot:focus-visible) .task-hover-preview { display: grid !important; opacity: 1 !important; transform: translateY(0) scale(1) !important; }
.task-card:hover .task-hover-preview p, .task-card:focus-within .task-hover-preview p { max-height: 120px; }
.task-brief-dot { width: 8px !important; height: 8px !important; box-shadow: 0 0 0 5px rgba(139,61,255,.09), 0 0 16px rgba(6,182,212,.22) !important; }

@media (max-width: 820px) {
  .app-main { margin-left: 0 !important; }
  .sidebar { width: auto !important; overflow: hidden !important; }
  .task-card:hover .task-hover-preview,
  .task-card:focus-within .task-hover-preview,
  .task-card:has(.task-brief-dot:hover) .task-hover-preview,
  .task-card:has(.task-brief-dot:focus-visible) .task-hover-preview {
    display: none !important;
  }
}

/* Ajuste fino: universo leve, menu funcional e Kanban sem peso. */
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(139,61,255,.12), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 30%, rgba(139,61,255,.5) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 72%, rgba(6,182,212,.4) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 82%, rgba(217,70,239,.34) 0 1px, transparent 2px),
    linear-gradient(180deg, #fbfbff 0%, #f6f3fb 48%, #efedf7 100%) !important;
}

body::before {
  background-image:
    radial-gradient(circle, rgba(65,27,120,.22) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(6,182,212,.18) 0 1px, transparent 1.8px) !important;
  background-size: 96px 96px, 142px 142px !important;
  background-position: 8px 14px, 48px 62px !important;
  opacity: .48;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.68), rgba(0,0,0,.22) 72%, rgba(0,0,0,.08));
}

.login-screen {
  background:
    radial-gradient(circle at 20% 18%, rgba(139,61,255,.36), transparent 24%),
    radial-gradient(circle at 75% 35%, rgba(6,182,212,.24), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(255,255,255,.82) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 70%, rgba(217,70,239,.42) 0 1px, transparent 2px),
    linear-gradient(135deg, #050109 0%, #160626 42%, #411b78 78%, #8b3dff 125%) !important;
}

.login-screen::before {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.46) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(6,182,212,.32) 0 1px, transparent 1.8px) !important;
  background-size: 74px 74px, 128px 128px !important;
  opacity: .58;
}

.login-card {
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06)),
    radial-gradient(circle at 100% 0, rgba(6,182,212,.14), transparent 34%) !important;
  box-shadow: 0 28px 82px rgba(0,0,0,.34), 0 0 44px rgba(139,61,255,.16), inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.sidebar {
  width: 236px !important;
  gap: 14px !important;
  padding: 16px 12px !important;
  overflow: visible !important;
}

.sidebar::before,
.sidebar::after,
.sidebar-circuit,
.nav-list::before,
.command-center[data-view="dashboard"] > .panel::before {
  opacity: 0 !important;
  display: none !important;
}

.brand {
  min-height: 46px;
}

.brand-mark {
  width: 40px !important;
  height: 38px !important;
}

.nav-list {
  gap: 4px !important;
  min-height: 0;
  overflow: visible;
}

.nav-list a {
  min-height: 38px !important;
  padding: 0 8px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
}

.nav-icon {
  width: 26px !important;
  height: 26px !important;
}

.menu-label {
  margin: 5px 8px 2px !important;
  font-size: 9px !important;
  letter-spacing: .06em !important;
}

.profile-box {
  margin-top: auto !important;
  padding: 10px !important;
  gap: 8px !important;
  border-radius: 16px !important;
}

.profile-button,
.profile-box .ghost-button {
  min-height: 34px !important;
}

.app-main {
  margin-left: 236px !important;
  padding-top: 16px !important;
}

.topbar {
  min-height: 68px !important;
  margin-bottom: 14px !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
}

.topbar h1 {
  font-size: clamp(25px, 2.3vw, 36px) !important;
}

.metrics-grid[data-view="dashboard"] {
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.metrics-grid[data-view="dashboard"] .metric,
.metric {
  min-height: 104px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 26px rgba(65,27,120,.075) !important;
}

.metrics-grid[data-view="dashboard"] .metric strong,
.metric strong {
  margin: 7px 0 4px !important;
  font-size: clamp(30px, 2.5vw, 44px) !important;
}

.command-center[data-view="dashboard"] > .panel,
.section-block,
.panel,
.toolbar {
  border-radius: 18px !important;
  box-shadow: 0 14px 38px rgba(65,27,120,.08) !important;
}

.command-center .section-heading.compact {
  padding-bottom: 6px !important;
  margin-bottom: 10px !important;
}

.executive-card,
.intel-card,
.pilot-panel {
  border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(65,27,120,.075) !important;
}

.intel-card::before,
.executive-card::before,
.pilot-panel::before,
.metric::before {
  height: 2px !important;
  opacity: .52 !important;
}

.kanban,
.kanban-board {
  gap: 12px !important;
}

.column {
  min-height: 500px !important;
  padding: 10px !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(65,27,120,.07) !important;
}

.column::before {
  height: 2px !important;
  margin-bottom: 10px !important;
  opacity: .48;
  box-shadow: none !important;
}

.task-card {
  gap: 8px !important;
  padding: 11px !important;
  margin-bottom: 8px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 20px rgba(65,27,120,.07) !important;
}

.task-card:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 28px rgba(65,27,120,.11) !important;
}

.task-hover-preview {
  top: calc(100% + 8px) !important;
  left: 8px !important;
  right: 8px !important;
  z-index: 70 !important;
  padding: 12px !important;
  border-radius: 14px !important;
  pointer-events: none !important;
  box-shadow: 0 16px 38px rgba(65,27,120,.18) !important;
}

.task-card:hover .task-hover-preview,
.task-card:focus-within .task-hover-preview,
.task-card:has(.task-brief-dot:hover) .task-hover-preview,
.task-card:has(.task-brief-dot:focus-visible) .task-hover-preview {
  display: grid !important;
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.task-card:hover .task-hover-preview p,
.task-card:focus-within .task-hover-preview p {
  max-height: 120px;
}

.task-brief-dot {
  width: 8px !important;
  height: 8px !important;
  box-shadow: 0 0 0 5px rgba(139,61,255,.09), 0 0 16px rgba(6,182,212,.22) !important;
}

@media (max-width: 820px) {
  .app-main {
    margin-left: 0 !important;
  }

  .sidebar {
    width: auto !important;
    overflow: hidden !important;
  }

  .task-card:hover .task-hover-preview,
  .task-card:focus-within .task-hover-preview,
  .task-card:has(.task-brief-dot:hover) .task-hover-preview,
  .task-card:has(.task-brief-dot:focus-visible) .task-hover-preview {
    display: none !important;
  }
}

.company-logo {
  color: #fff;
  font-weight: 950;
}

.profile-box {
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035)),
    radial-gradient(circle at 100% 0, rgba(139,61,255,.16), transparent 38%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

@media (max-width: 820px) {
  .command-center[data-view="dashboard"] > .panel {
    border-radius: 20px;
  }

  .dashboard-intel {
    gap: 10px;
  }

  .intel-card,
  .executive-card,
  .pilot-panel {
    border-radius: 18px !important;
  }
}

/* EVOADS futurist premium layer: neon sutil, vidro e leitura limpa. */
:root {
  --bg: #f1eff8;
  --surface: rgba(255,255,255,.88);
  --surface-2: rgba(248,245,255,.86);
  --line: rgba(139,61,255,.18);
  --primary: #8b3dff;
  --primary-strong: #411b78;
  --accent: #d946ef;
  --cyan: #06b6d4;
  --success: #0d9488;
  --shadow: 0 24px 70px rgba(65,27,120,.16);
  --shadow-soft: 0 12px 34px rgba(65,27,120,.09);
  --neon-purple: 0 0 0 1px rgba(139,61,255,.16), 0 18px 48px rgba(139,61,255,.14);
  --neon-cyan: 0 0 0 1px rgba(6,182,212,.18), 0 18px 48px rgba(6,182,212,.13);
}

body {
  background:
    radial-gradient(circle at 78% -8%, rgba(139,61,255,.18), transparent 32%),
    radial-gradient(circle at 6% 18%, rgba(6,182,212,.12), transparent 28%),
    radial-gradient(circle at 94% 72%, rgba(217,70,239,.10), transparent 26%),
    linear-gradient(180deg, #fbfbff 0%, #f4f1fb 46%, #eeecf7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(65,27,120,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65,27,120,.045) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 49%, rgba(139,61,255,.045) 50%, transparent 51%);
  background-size: 58px 58px, 58px 58px, 180px 180px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.42) 72%, rgba(0,0,0,.2));
}

.app-main {
  position: relative;
}

.app-main::before {
  content: "";
  position: fixed;
  top: 22px;
  right: 26px;
  width: min(42vw, 620px);
  height: min(42vw, 620px);
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(139,61,255,.08);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.34) 0 14%, transparent 15%),
    conic-gradient(from 120deg, transparent, rgba(139,61,255,.12), rgba(6,182,212,.12), transparent 64%);
  filter: blur(.1px);
  opacity: .72;
}

.topbar {
  min-height: 82px;
  padding: 14px 18px;
  border: 1px solid rgba(139,61,255,.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(250,246,255,.72)),
    radial-gradient(circle at 96% 0, rgba(6,182,212,.16), transparent 30%);
  box-shadow: var(--neon-purple);
  backdrop-filter: blur(22px);
}

.topbar h1 {
  color: #13091f;
  font-weight: 950;
}

.eyebrow {
  color: var(--brand-light);
}

.global-search,
.toolbar,
.metric,
.panel,
.section-block,
.column,
.modal-card,
.user-create-card,
.company-card,
.traffic-card,
.person-item,
.agenda-item,
.daily-item,
.goal-item {
  border-color: rgba(139,61,255,.18) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(252,249,255,.72)),
    radial-gradient(circle at 100% 0, rgba(139,61,255,.06), transparent 28%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.section-block,
.panel,
.toolbar {
  border-radius: 18px;
}

.metric {
  border-radius: 18px;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-light), var(--cyan), var(--accent));
  opacity: .9;
}

.metric::after {
  border-radius: 14px;
  background:
    radial-gradient(circle at 36% 35%, rgba(255,255,255,.78), transparent 0 28%, transparent 42%),
    linear-gradient(135deg, rgba(139,61,255,.18), rgba(6,182,212,.14));
  box-shadow: 0 0 30px rgba(139,61,255,.18);
}

.metric strong,
.ops-metrics strong {
  color: #10071c;
}

.primary-button,
.task-approval-button,
.task-finalize-button {
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(135deg, #8b3dff 0%, #5b21b6 58%, #06b6d4 135%) !important;
  box-shadow: 0 16px 34px rgba(139,61,255,.24), 0 0 24px rgba(6,182,212,.12);
}

.primary-button:hover,
.task-approval-button:hover,
.task-finalize-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(139,61,255,.28), 0 0 34px rgba(6,182,212,.18);
}

.secondary-button,
.ghost-button,
.icon-button,
.quiet-action,
.primary-action,
.danger-action {
  border-radius: 12px;
}

.secondary-button,
.icon-button,
.quiet-action {
  background: rgba(255,255,255,.72);
  border-color: rgba(139,61,255,.2);
}

.secondary-button:hover,
.icon-button:hover,
.quiet-action:hover {
  border-color: rgba(6,182,212,.44);
  box-shadow: 0 12px 28px rgba(6,182,212,.12);
}

.sidebar {
  background:
    radial-gradient(circle at 86% 8%, rgba(139,61,255,.34), transparent 30%),
    radial-gradient(circle at 0 92%, rgba(6,182,212,.16), transparent 24%),
    linear-gradient(180deg, #050109 0%, #10051e 46%, #1a0832 100%);
  border-right-color: rgba(139,61,255,.24);
  box-shadow: 16px 0 60px rgba(65,27,120,.18);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 14px 8px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 20px;
  background:
    linear-gradient(90deg, transparent 0 38px, rgba(139,61,255,.12) 38px 39px, transparent 39px),
    linear-gradient(180deg, transparent 0 86px, rgba(6,182,212,.1) 86px 87px, transparent 87px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.brand-mark {
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 26px rgba(139,61,255,.22);
}

.nav-list a {
  border-radius: 14px;
}

.nav-icon {
  border-radius: 12px;
  background: rgba(255,255,255,.075);
}

.nav-list a.active {
  color: #12081e;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,239,255,.86)),
    radial-gradient(circle at 100% 0, rgba(6,182,212,.2), transparent 42%);
  box-shadow: 0 18px 38px rgba(0,0,0,.18), 0 0 24px rgba(139,61,255,.16);
}

.nav-list a.active .nav-icon {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-deep) 62%, var(--cyan) 140%);
  box-shadow: 0 0 20px rgba(139,61,255,.28);
}

.ops-hero {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 18%, rgba(6,182,212,.24), transparent 30%),
    radial-gradient(circle at 16% 0, rgba(217,70,239,.18), transparent 26%),
    linear-gradient(135deg, #08020f 0%, #28104a 52%, #5b21b6 100%);
  box-shadow: 0 26px 70px rgba(65,27,120,.22);
}

.pilot-next,
.pilot-next.good,
.pilot-next.clear {
  border: 1px solid rgba(255,255,255,.18) !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(6,182,212,.22), transparent 34%),
    linear-gradient(135deg, #160a29 0%, #411b78 58%, #8b3dff 130%) !important;
  box-shadow: 0 20px 54px rgba(65,27,120,.22), inset 0 1px 0 rgba(255,255,255,.14);
}

.pilot-next.review {
  background: linear-gradient(135deg, #2d1605, #9a5a00 72%, #d946ef 130%) !important;
}

.pilot-next.danger {
  background: linear-gradient(135deg, #3a0716, #be123c 68%, #8b3dff 130%) !important;
}

.pilot-next.today,
.pilot-next.agenda {
  background: linear-gradient(135deg, #10051e, #5b21b6 64%, #06b6d4 135%) !important;
}

.kanban,
.kanban-board {
  gap: 16px;
}

.column {
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.74), rgba(248,244,255,.58)),
    radial-gradient(circle at 100% 0, rgba(139,61,255,.08), transparent 28%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), var(--shadow-soft);
}

.column::before {
  height: 4px;
  margin: -1px 0 14px;
  background: linear-gradient(90deg, var(--brand-light), var(--cyan));
  box-shadow: 0 0 18px rgba(139,61,255,.24);
}

.column:nth-child(2)::before {
  background: linear-gradient(90deg, #f59e0b, #d946ef);
}

.column:nth-child(3)::before {
  background: linear-gradient(90deg, #06b6d4, #8b3dff);
}

.column:nth-child(4)::before {
  background: linear-gradient(90deg, #0d9488, #06b6d4);
}

.task-card {
  border-radius: 18px;
  border-color: rgba(139,61,255,.18);
  box-shadow: 0 10px 28px rgba(65,27,120,.09);
}

.task-card:hover {
  border-color: rgba(6,182,212,.38);
  box-shadow: 0 18px 44px rgba(65,27,120,.14), 0 0 24px rgba(6,182,212,.08);
}

.task-brief-dot {
  background: linear-gradient(135deg, #8b3dff, #06b6d4);
  box-shadow: 0 0 0 6px rgba(139,61,255,.11), 0 0 22px rgba(6,182,212,.28);
}

.task-hover-preview {
  border-radius: 16px;
  border-color: rgba(6,182,212,.24);
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(246,241,255,.86)),
    radial-gradient(circle at 100% 0, rgba(6,182,212,.14), transparent 34%);
  box-shadow: 0 24px 64px rgba(65,27,120,.2), 0 0 34px rgba(6,182,212,.1);
}

.count-pill,
.priority,
.status-badge,
.area-badge,
.approved-badge {
  border-radius: 999px;
}

.task-card.priority-Alta {
  background:
    linear-gradient(145deg, rgba(255,234,239,.96), rgba(255,255,255,.72)),
    radial-gradient(circle at 100% 0, rgba(225,29,72,.16), transparent 34%) !important;
}

.task-card.priority-Media {
  background:
    linear-gradient(145deg, rgba(255,241,214,.96), rgba(255,255,255,.72)),
    radial-gradient(circle at 100% 0, rgba(245,158,11,.18), transparent 34%) !important;
}

.task-card.priority-Baixa {
  background:
    linear-gradient(145deg, rgba(224,250,241,.96), rgba(255,255,255,.72)),
    radial-gradient(circle at 100% 0, rgba(6,182,212,.14), transparent 34%) !important;
}

.task-card.approved-card,
.archive-column .task-card.approved-card {
  background:
    linear-gradient(145deg, rgba(217,252,245,.96), rgba(255,255,255,.72)),
    radial-gradient(circle at 100% 0, rgba(13,148,136,.16), transparent 34%) !important;
  border-color: rgba(13,148,136,.36);
  border-left-color: #0d9488;
}

.approved-badge,
.status-badge.delivered {
  background: linear-gradient(135deg, #0d9488, #06b6d4) !important;
  color: #fff !important;
}

.spotify-mini-button {
  border-color: rgba(30,215,96,.28) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(239,255,247,.76)),
    radial-gradient(circle at 18% 50%, rgba(30,215,96,.26), transparent 28%) !important;
  color: #0d5f32 !important;
  box-shadow: 0 14px 34px rgba(30,215,96,.12), var(--shadow-soft);
}

.spotify-mini-button:hover {
  box-shadow: 0 16px 40px rgba(30,215,96,.18), 0 0 26px rgba(30,215,96,.12);
}

.chat-toggle,
.chat-window {
  box-shadow: 0 20px 58px rgba(65,27,120,.22), 0 0 34px rgba(139,61,255,.14);
}

input,
select,
textarea {
  border-color: rgba(139,61,255,.22);
  background: rgba(255,255,255,.82);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(6,182,212,.56);
  box-shadow: 0 0 0 4px rgba(6,182,212,.12), 0 0 22px rgba(139,61,255,.08);
}

@media (max-width: 820px) {
  body::before {
    background-size: 44px 44px, 44px 44px, 140px 140px;
  }

  .topbar {
    border-radius: 20px;
  }

  .sidebar {
    background: rgba(255,255,255,.86);
  }

  .nav-list a.active {
    box-shadow: 0 10px 24px rgba(139,61,255,.16);
  }

  .app-main::before {
    width: 300px;
    height: 300px;
    opacity: .42;
  }
}
@media (max-width: 820px) {
  body { background: linear-gradient(180deg, #fbfbfd, #eee9f6); }
  .login-card { margin-right: 0; }
  .login-stage, .login-orbit { display: none; }
  .brand-logo { width: 132px; }
  .login-card h1 { font-size: 34px; }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 12;
    width: auto;
    min-height: 0;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(216,204,232,.75);
    box-shadow: 0 12px 32px rgba(18,8,30,.14);
  }
  .brand { min-height: 46px; }
  .brand-mark { width: 82px; }
  .brand span:not(.brand-mark) { display: none; }
  .nav-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0 2px;
    scrollbar-width: none;
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-list .menu-label { display: none; }
  .nav-list a {
    min-width: max-content;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 13px;
  }
  .nav-icon { width: 28px; height: 28px; }
  .profile-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px;
  }
  .profile-button,
  .ghost-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }
  .app-main { margin-left: 0; padding: 16px 10px 92px; max-width: none; }
  .topbar {
    position: static;
    margin: 0 0 14px;
    padding: 0 0 14px;
    background: transparent;
    backdrop-filter: none;
  }
  .topbar h1 { font-size: 30px; line-height: 1.05; }
  .topbar, .section-heading { align-items: flex-start; flex-direction: column; }
  .topbar-actions { width: 100%; flex-wrap: wrap; }
  .metrics-grid, .kanban, .traffic-grid, .company-grid, .ops-metrics, .form-grid, .advisory-grid, .profile-editor, .company-logo-editor { grid-template-columns: 1fr; }
  .executive-grid, .notification-list, .client-kpis, .report-summary, .report-breakdown, .client-hero { grid-template-columns: 1fr; }
  .client-actions, .company-actions { justify-content: flex-start; }
  .metrics-grid { gap: 10px; }
  .metric { min-height: auto; padding: 14px; }
  .kanban {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 86vw);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .column { scroll-snap-align: start; }
  .toolbar { position: static; background: rgba(255,255,255,.82); }
  .daily-columns { grid-template-columns: 1fr; }
  .chat-form { grid-template-columns: minmax(0, 1fr) 56px 74px; gap: 7px; }
  .chat-form textarea { min-height: 48px; }
  .chat-message { max-width: 100%; }
  .chat-dock { right: 10px; bottom: 10px; }
  .chat-fab { min-width: 142px; }
  .chat-window {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    min-width: 0;
    min-height: 0;
    resize: none;
    border-radius: 8px;
  }
  .chat-dock {
    left: auto !important;
    top: auto !important;
    right: 10px !important;
    bottom: 10px !important;
  }
  .chat-resize-handle { display: none; }
  .chat-window-body { grid-template-columns: 1fr; }
  .chat-threads {
    display: flex;
    max-height: none;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .chat-thread {
    min-width: 150px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }
  .chat-room { min-height: 0; }
  .chat-messages.compact { min-height: 260px; }
  .calendar-grid, .calendar-weekdays { gap: 5px; }
  .calendar-day { min-height: 70px; padding: 7px; }
  .calendar-day small { display: none; }
  .calendar-day-panel { padding: 12px; }
  .agenda-item { grid-template-columns: 1fr; }
  .agenda-actions { justify-content: flex-start; }
  .ops-item, .ops-client { grid-template-columns: auto minmax(0, 1fr); }
  .ops-stack, .ops-contact { justify-self: start; }
  .ops-service-tags { grid-column: 1 / -1; justify-content: flex-start; }
  .column { min-height: 0; }
  .modal-backdrop { padding: 10px; align-items: end; }
  .modal {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 8px 8px 0 0;
  }
  .detail-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .login-screen { padding: 14px; place-items: end center; }
  .login-brand { top: 14px; left: 14px; }
  .login-card { padding: 22px; }
  .login-card h1 { font-size: 31px; }
  .owner-name { min-width: 0; }
  .owner-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions .primary-button { width: 100%; }
  .nav-list a { padding: 9px 10px; }
  .nav-list a .nav-icon + * { display: none; }
  .daily-item,
  .task-card,
  .company-card,
  .traffic-card,
  .panel,
  .section-block { padding: 14px; }
  .card-actions { grid-template-columns: repeat(5, 34px); }
  .card-actions .wide { grid-column: auto; }
  .chat-window-head { padding: 10px; }
  .chat-window .chat-form,
  .chat-form { grid-template-columns: minmax(0, 1fr) 54px 68px; }
  .chat-window .chat-form button,
  .chat-form button,
  .chat-record-button { min-height: 44px; padding: 0 8px; }
  .chat-record-button { font-size: 11px; }
  .calendar-day { min-height: 48px; }
  .calendar-day strong { font-size: 11px; }
  .calendar-weekdays span { font-size: 10px; }
}

/* Canonical mobile layout: keep future responsive changes below this marker. */
@media (max-width: 820px) {
  body { padding-bottom: 82px; }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: 76px;
    display: block;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(12,6,18,.96);
  }
  .sidebar-circuit,
  .sidebar .brand,
  .sidebar .profile-box,
  .sidebar .menu-label { display: none; }
  .nav-list {
    display: flex;
    gap: 7px;
    min-width: max-content;
    padding: 0;
    overflow: visible;
  }
  .nav-list a {
    min-width: 72px;
    min-height: 58px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 10px;
  }
  .nav-list a::before { display: none; }
  .nav-list a .nav-icon + * { display: initial; }
  .app-main { margin-left: 0; padding: 12px 10px 96px; }
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 12px;
    padding: 4px 0 12px;
  }
  .topbar h1 { font-size: 26px; }
  .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(4, 42px);
    width: 100%;
    gap: 7px;
  }
  .global-search { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .live-pill { display: none; }
  .spotify-mini-button { min-width: 42px; width: 42px; padding: 0; }
  .spotify-mini-button span { display: none; }
  .company-card { min-height: 0; max-height: none; }
  .kanban { grid-template-columns: repeat(4, minmax(280px, 86vw)); }
  .chat-window { width: calc(100vw - 16px); height: calc(100dvh - 16px); min-width: 0; min-height: 0; }
  .spotify-dock { right: 8px; bottom: 84px; }
  .spotify-panel { width: calc(100vw - 16px); max-height: calc(100dvh - 110px); overflow: auto; }
}

/* EVOADS visual polish: canonical brand layer. */
.topbar {
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(248,244,255,.72)),
    radial-gradient(circle at 88% 12%, rgba(139,61,255,.14), transparent 36%);
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 10px;
  box-shadow: 0 20px 48px rgba(65,27,120,.08);
  backdrop-filter: blur(18px);
}

.live-pill,
.live-pill[data-mode="online"] {
  background: rgba(139,61,255,.09);
  color: var(--brand-deep);
  border: 1px solid rgba(139,61,255,.16);
}

.live-pill::before {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-deep));
  box-shadow: 0 0 0 4px rgba(139,61,255,.12);
}

.spotify-mini-button {
  min-width: 54px;
  width: auto;
  height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(65,27,120,.18);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(245,239,255,.78));
  color: var(--brand-deep);
  box-shadow: 0 12px 28px rgba(65,27,120,.08);
}

.spotify-mini-button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.spotify-mini-button span {
  color: var(--text);
  font-size: 11px;
  font-weight: 950;
}

.spotify-mini-button:hover {
  border-color: rgba(139,61,255,.38);
  background: linear-gradient(145deg, #fff, rgba(238,226,255,.86));
  box-shadow: 0 16px 36px rgba(65,27,120,.14);
}

.spotify-toggle {
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,.28), transparent 34%),
    linear-gradient(135deg, var(--brand-light), var(--brand-deep));
  box-shadow: 0 18px 44px rgba(65,27,120,.24), 0 10px 28px rgba(0,0,0,.12);
}

.pilot-next,
.pilot-next.good,
.pilot-next.clear {
  border: 1px solid rgba(255,255,255,.34);
  background:
    radial-gradient(circle at 12% 12%, rgba(255,255,255,.24), transparent 30%),
    linear-gradient(135deg, #12081e 0%, #411b78 58%, #8b3dff 128%);
  box-shadow: 0 24px 52px rgba(65,27,120,.22);
}

.pilot-next.agenda {
  background:
    radial-gradient(circle at 14% 16%, rgba(255,255,255,.2), transparent 28%),
    linear-gradient(135deg, #170825, #411b78 66%, #8b3dff 126%);
}

.pilot-next span {
  color: rgba(255,255,255,.72);
  letter-spacing: .01em;
}

.pilot-next small {
  color: rgba(255,255,255,.82);
  max-width: 62ch;
}

.pilot-step {
  background: rgba(255,255,255,.72);
  border-color: rgba(216,204,232,.84);
  box-shadow: 0 10px 24px rgba(65,27,120,.06);
}

.pilot-step em {
  background: linear-gradient(135deg, rgba(139,61,255,.16), rgba(65,27,120,.12));
  color: var(--brand-light);
}

.metric:nth-child(4)::after,
.metric[data-tone="success"]::after {
  background: rgba(139,61,255,.12);
}

.priority.Baixa,
.status-badge.delivered {
  background: rgba(139,61,255,.1);
  color: var(--brand-deep);
}

.agenda-item.priority-Baixa {
  box-shadow: inset 0 0 0 1px rgba(139,61,255,.18);
}

.column:nth-child(4)::before,
.work-alert.approval {
  border-left-color: var(--brand-light);
}

.column:nth-child(4)::before,
.spotify-logo-mark,
.spotify-playlists button > span {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-deep));
}

.card-actions .approve-action,
.approve-action {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-deep));
  border-color: transparent;
}

.text-success,
[class*="success"] {
  color: var(--brand-deep) !important;
}

@media (max-width: 820px) {
  .topbar {
    border-radius: 8px;
    padding: 12px;
  }
  .spotify-mini-button {
    min-width: 42px;
    width: 42px;
    padding: 0;
  }
  .spotify-mini-button span { display: none; }
}

/* Dashboard inicial premium: tela principal e fullscreen operacional. */
body:not(.dashboard-fullscreen) .metrics-grid[data-view="dashboard"] {
  margin-bottom: 18px;
}

.metrics-grid[data-view="dashboard"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics-grid[data-view="dashboard"] .metric {
  min-height: 144px;
  padding: 18px 20px;
  border: 1px solid rgba(65,27,120,.14);
  background:
    radial-gradient(circle at 92% 78%, rgba(139,61,255,.14), transparent 0 18%, transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(247,243,255,.74));
  box-shadow: 0 18px 48px rgba(65,27,120,.08);
}

.metrics-grid[data-view="dashboard"] .metric::before {
  height: 2px;
  background: linear-gradient(90deg, #8b3dff, #411b78 64%, rgba(5,167,200,.75));
}

.metrics-grid[data-view="dashboard"] .metric::after {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(139,61,255,.18), rgba(65,27,120,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.metrics-grid[data-view="dashboard"] .metric span {
  color: #5d516d;
  font-size: 14px;
  font-weight: 880;
}

.metrics-grid[data-view="dashboard"] .metric strong {
  margin: 12px 0 8px;
  font-size: clamp(34px, 3vw, 54px);
  letter-spacing: 0;
}

.metrics-grid[data-view="dashboard"] .metric small {
  color: #71657f;
  font-size: 13px;
  font-weight: 780;
}

.command-center[data-view="dashboard"] > .panel {
  padding: 22px;
  border-color: rgba(65,27,120,.16);
  background:
    linear-gradient(145deg, rgba(255,255,255,.93), rgba(255,255,255,.73)),
    radial-gradient(circle at 92% 4%, rgba(139,61,255,.14), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(5,167,200,.08), transparent 30%);
  box-shadow: 0 26px 70px rgba(65,27,120,.11);
}

.command-center .section-heading.compact {
  gap: 16px;
  padding-bottom: 10px;
}

.command-center .section-heading h2 {
  font-size: clamp(24px, 2.2vw, 36px);
}

.executive-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.executive-card {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(65,27,120,.12);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(248,244,255,.68));
  box-shadow: 0 14px 34px rgba(65,27,120,.07);
}

.executive-card::after {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139,61,255,.16), rgba(65,27,120,.08));
}

.executive-card span {
  color: #5d516d;
  font-size: 12px;
  font-weight: 900;
}

.executive-card strong {
  font-size: 40px;
}

.dashboard-intel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}

.intel-card {
  min-height: 176px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(65,27,120,.13);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(248,244,255,.68));
  box-shadow: 0 14px 36px rgba(65,27,120,.075);
}

.intel-card.primary {
  background:
    radial-gradient(circle at 88% 12%, rgba(139,61,255,.16), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(244,238,255,.78));
}

.intel-card > div:first-child {
  display: grid;
  gap: 3px;
}

.intel-card span {
  color: #5d516d;
  font-size: 12px;
  font-weight: 900;
}

.intel-card strong {
  color: #130a20;
  font-size: 34px;
  line-height: .95;
}

.intel-card small {
  color: #746882;
  font-size: 11px;
  font-weight: 760;
}

.intel-list {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
}

.intel-list button {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(216,204,232,.66);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  color: var(--text);
  text-align: left;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.intel-list button:hover {
  transform: translateY(-1px);
  border-color: rgba(139,61,255,.36);
  box-shadow: 0 10px 24px rgba(65,27,120,.09);
}

.intel-list button > span {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: #20112f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intel-list p {
  margin: 0;
  padding: 12px;
  border: 1px dashed rgba(216,204,232,.9);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-align: center;
}

.confirm-modal {
  width: min(460px, 100%);
}

.confirm-body {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(216,204,232,.78);
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 8%, rgba(236,72,153,.12), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(250,246,255,.72));
}

.confirm-body strong {
  color: #180a28;
  font-size: 17px;
}

.confirm-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 760;
}

.pilot-panel {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(65,27,120,.14);
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(248,244,255,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.pilot-hero {
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.68));
}

.pilot-next,
.pilot-next.good,
.pilot-next.clear {
  min-height: 150px;
  border-radius: 12px;
}

.daily-columns {
  margin-top: 20px;
  gap: 14px;
}

.daily-columns h3 {
  color: #160b25;
  font-size: 16px;
}

.event-item,
.daily-item,
.agenda-item {
  border-radius: 10px;
}

.dashboard-fullscreen {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(139,61,255,.18), transparent 30%),
    linear-gradient(90deg, rgba(65,27,120,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(65,27,120,.035) 1px, transparent 1px),
    #f8f6fc;
  background-size: auto, 72px 72px, 72px 72px, auto;
}

.dashboard-fullscreen .app {
  width: 100vw;
  min-height: 100vh;
}

.dashboard-fullscreen .sidebar,
.dashboard-fullscreen .chat-dock,
.dashboard-fullscreen .spotify-dock,
.dashboard-fullscreen .global-search,
.dashboard-fullscreen .spotify-mini-button,
.dashboard-fullscreen [data-open-task] {
  display: none !important;
}

.dashboard-fullscreen .app-main {
  width: 100vw;
  height: 100vh;
  margin-left: 0;
  padding: 24px 28px;
  overflow: hidden;
}

.dashboard-fullscreen .topbar {
  position: static;
  min-height: 0;
  margin: 0 0 18px;
  padding: 0 0 14px;
  display: flex;
  align-items: end;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-fullscreen .topbar h1 {
  font-size: clamp(40px, 4vw, 74px);
  line-height: .95;
}

.dashboard-fullscreen .topbar-actions {
  margin-left: auto;
}

.dashboard-fullscreen .live-pill {
  display: inline-flex;
  min-height: 42px;
  padding: 0 16px;
}

.dashboard-fullscreen .metrics-grid[data-view="dashboard"] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-fullscreen .metrics-grid[data-view="dashboard"] .metric {
  min-height: 128px;
}

.dashboard-fullscreen .command-center[data-view="dashboard"] {
  display: block !important;
}

.dashboard-fullscreen .command-center[data-view="dashboard"] > .panel {
  height: calc(100vh - 240px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.dashboard-fullscreen .executive-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-fullscreen .dashboard-intel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
}

.dashboard-fullscreen .intel-card {
  min-height: 142px;
}

.dashboard-fullscreen .pilot-panel {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 14px;
  align-items: stretch;
}

.dashboard-fullscreen .pilot-flow,
.dashboard-fullscreen .pilot-focus {
  grid-column: 1 / -1;
}

.dashboard-fullscreen .daily-columns {
  min-height: 0;
  overflow: hidden;
}

.dashboard-fullscreen .daily-list {
  max-height: 150px;
  overflow: hidden;
}

.dashboard-fullscreen .notification-center {
  display: none;
}

.dashboard-fullscreen .app-view:not([data-view="dashboard"]) {
  display: none !important;
}

@media (max-width: 1100px) {
  .metrics-grid[data-view="dashboard"],
  .executive-grid,
  .dashboard-intel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-fullscreen .pilot-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .metrics-grid[data-view="dashboard"],
  .executive-grid,
  .dashboard-intel,
  .dashboard-fullscreen .metrics-grid[data-view="dashboard"],
  .dashboard-fullscreen .executive-grid,
  .dashboard-fullscreen .dashboard-intel {
    grid-template-columns: 1fr;
  }
  .command-center[data-view="dashboard"] > .panel {
    padding: 14px;
  }
  .dashboard-fullscreen .app-main {
    overflow: auto;
    padding: 12px;
  }
  .dashboard-fullscreen .command-center[data-view="dashboard"] > .panel {
    height: auto;
  }
}

/* Demandas de agencia: criacao guiada e briefing no hover. */
.task-modal {
  width: min(980px, 100%);
}

.task-preset-shell {
  display: grid;
  gap: 12px;
  margin: 2px 0 18px;
  padding: 14px;
  border: 1px solid rgba(216,204,232,.78);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.86), rgba(248,244,255,.62));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.task-preset-shell > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.task-preset-shell > div:first-child strong {
  color: #20112f;
  font-size: 14px;
}

.task-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.task-presets button {
  min-height: 68px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.64));
  color: var(--text);
  text-align: left;
  box-shadow: 0 8px 20px rgba(65,27,120,.055);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.task-presets button span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139,61,255,.16), rgba(65,27,120,.08));
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 950;
  grid-row: span 2;
}

.task-presets button strong {
  min-width: 0;
  color: #160b25;
  font-size: 12px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-presets button small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 780;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-presets button:hover,
.task-presets button.active {
  transform: translateY(-1px);
  border-color: rgba(139,61,255,.48);
  background:
    radial-gradient(circle at 88% 8%, rgba(139,61,255,.16), transparent 32%),
    linear-gradient(145deg, #fff, rgba(245,239,255,.86));
  box-shadow: 0 14px 34px rgba(65,27,120,.11);
}

.task-presets button.active {
  box-shadow: inset 0 0 0 1px rgba(139,61,255,.28), 0 14px 34px rgba(65,27,120,.11);
}

.task-card {
  position: relative;
  cursor: pointer;
}

.task-brief-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-deep));
  box-shadow: 0 0 0 6px rgba(139,61,255,.1), 0 0 18px rgba(139,61,255,.36);
  cursor: help;
  appearance: none;
}

.task-hover-preview {
  position: absolute;
  z-index: 30;
  left: 16px;
  right: 16px;
  top: 54px;
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(139,61,255,.26);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(247,243,255,.9));
  color: var(--text);
  box-shadow: 0 22px 58px rgba(65,27,120,.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
  transition: opacity .16s ease, transform .16s ease;
  backdrop-filter: blur(18px);
}

.task-card:has(.task-brief-dot:hover) .task-hover-preview,
.task-card:has(.task-brief-dot:focus-visible) .task-hover-preview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.task-hover-preview span {
  color: var(--brand-light);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.task-hover-preview strong {
  font-size: 14px;
}

.task-hover-preview p {
  max-height: 145px;
  margin: 0;
  overflow: hidden;
  color: #4d405e;
  font-size: 12px;
  line-height: 1.42;
  font-weight: 720;
}

.task-hover-preview small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .task-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .task-presets {
    grid-template-columns: 1fr;
  }
  .task-hover-preview {
    position: static;
    display: none;
    margin-top: 2px;
    opacity: 1;
    transform: none;
  }
  .task-card:has(.task-brief-dot:hover) .task-hover-preview,
  .task-card:has(.task-brief-dot:focus-visible) .task-hover-preview {
    display: grid;
  }
}

/* Cores operacionais por prioridade. */
.priority.Alta {
  background: #ffe2e8 !important;
  color: #b4233a !important;
}

.priority.Media {
  background: #fff0d6 !important;
  color: #9a5a00 !important;
}

.priority.Baixa {
  background: #def8e8 !important;
  color: #126b3a !important;
}

.task-card.priority-Alta {
  border-color: rgba(225,29,72,.34);
  border-left-color: #e11d48;
  background: #ffdce3 !important;
}

.task-card.priority-Media {
  border-color: rgba(245,158,11,.38);
  border-left-color: #f59e0b;
  background: #ffe4ae !important;
}

.task-card.priority-Baixa {
  border-color: rgba(22,163,74,.3);
  border-left-color: #16a34a;
  background: #d3f1df !important;
}

.task-card.priority-Alta:hover {
  border-color: rgba(225,29,72,.34);
  box-shadow: 0 16px 34px rgba(225,29,72,.12);
}

.task-card.priority-Media:hover {
  border-color: rgba(245,158,11,.38);
  box-shadow: 0 16px 34px rgba(245,158,11,.13);
}

.task-card.priority-Baixa:hover {
  border-color: rgba(22,163,74,.34);
  box-shadow: 0 16px 34px rgba(22,163,74,.12);
}

.task-card.priority-Alta .card-actions button,
.task-card.priority-Media .card-actions button,
.task-card.priority-Baixa .card-actions button {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(8px);
}

.task-card.approved-card,
.archive-column .task-card.approved-card {
  border-color: rgba(9,111,61,.48);
  border-left-color: #10874e;
  background: #bfe8ce !important;
  box-shadow: 0 10px 24px rgba(16,135,78,.1);
}

.task-card.priority-Alta .area-badge,
.task-card.priority-Media .area-badge,
.task-card.priority-Baixa .area-badge,
.task-card.priority-Alta .priority,
.task-card.priority-Media .priority,
.task-card.priority-Baixa .priority {
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.68) !important;
  backdrop-filter: blur(8px);
}

.task-finalize-button {
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #0c7040;
  border-radius: 8px;
  background: #0c7040;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 9px 20px rgba(12,112,64,.18);
}

.task-finalize-button:hover {
  transform: translateY(-1px);
  background: #085b34;
  box-shadow: 0 13px 25px rgba(12,112,64,.24);
}

.approved-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #10874e;
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.task-card.approved-card .card-title strong,
.task-card.approved-card .card-title span,
.task-card.approved-card .card-info {
  color: #164c32;
}

.task-card.approved-card:hover {
  border-color: rgba(16,135,78,.52);
  box-shadow: 0 16px 34px rgba(16,135,78,.16);
}

/* Polimento final: menos ruido visual e acoes sempre livres. */
.task-card:hover .task-hover-preview,
.task-card:focus-within .task-hover-preview {
  pointer-events: none;
}

.task-card:not(:has(.task-brief-dot:hover)):not(:has(.task-brief-dot:focus-visible)) .task-hover-preview {
  opacity: 0;
  transform: translateY(8px) scale(.98);
}

.task-card:has(.task-brief-dot:hover) .task-hover-preview,
.task-card:has(.task-brief-dot:focus-visible) .task-hover-preview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.task-card {
  gap: 9px;
}

.task-card .card-title strong,
.task-card .card-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-card .card-title span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.task-card .card-info,
.task-card .card-meta {
  font-size: 12px;
}

.column-header small,
.task-hover-preview small,
.pilot-flow,
.ops-hero p {
  display: none !important;
}

.metric small {
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(20px, 2vw, 28px);
}

.monthly-report .report-controls {
  gap: 10px;
}

.monthly-report .report-list {
  display: grid;
  gap: 10px;
}

@media (max-width: 820px) {
  body {
    overflow-x: hidden;
  }

  .app {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: auto 10px 10px;
    z-index: 80;
    width: auto;
    height: 64px;
    min-height: 0;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(139,61,255,.2);
    background: rgba(255,255,255,.84);
    box-shadow: 0 18px 45px rgba(65,27,120,.16);
    backdrop-filter: blur(22px);
  }

  .sidebar .brand,
  .sidebar .menu-label,
  .sidebar .profile-box {
    display: none !important;
  }

  .nav-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(58px, 1fr);
    gap: 6px;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-list a {
    min-height: 48px;
    padding: 8px 9px;
    justify-content: center;
    gap: 4px;
    border-radius: 14px;
    font-size: 0;
  }

  .nav-list a .nav-icon {
    width: 28px;
    height: 28px;
    margin: 0;
  }

  .nav-badge {
    position: absolute;
    top: 4px;
    right: 5px;
    font-size: 10px;
  }

  .app-main {
    padding: 14px 12px 92px;
  }

  .topbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 44px 44px;
    gap: 8px;
    width: 100%;
  }

  .status-pill,
  #spotifyConnectBtn {
    display: none !important;
  }

  .global-search {
    width: 100%;
  }

  .hero,
  .ops-hero {
    padding: 18px 0 10px;
  }

  .hero h1,
  .ops-hero h1 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: .98;
  }

  .metric-grid,
  .dashboard-grid,
  .ops-grid,
  .report-controls,
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .kanban-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 86vw);
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
  }

  .column {
    scroll-snap-align: start;
  }

  .task-card {
    padding: 12px;
    border-radius: 14px;
  }

  .task-card .card-actions {
    grid-template-columns: repeat(5, minmax(36px, 1fr));
  }

  .task-hover-preview,
  .task-card:hover .task-hover-preview,
  .task-card:focus-within .task-hover-preview,
  .task-card:has(.task-brief-dot:hover) .task-hover-preview,
  .task-card:has(.task-brief-dot:focus-visible) .task-hover-preview {
    display: none !important;
  }

  .modal-card {
    width: min(100%, 94vw);
    max-height: 92vh;
    padding: 18px;
    border-radius: 20px;
  }
}

/* Override final do cockpit EVOADS: garante que a tela principal fique premium. */
.command-center[data-view="dashboard"] > .panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px !important;
  border-color: rgba(139,61,255,.2) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(250,246,255,.62)),
    radial-gradient(circle at 100% 0, rgba(139,61,255,.16), transparent 30%),
    radial-gradient(circle at 0 100%, rgba(6,182,212,.12), transparent 30%) !important;
  box-shadow: 0 26px 74px rgba(65,27,120,.15), inset 0 1px 0 rgba(255,255,255,.84) !important;
}

.command-center[data-view="dashboard"] > .panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 42px, rgba(139,61,255,.055) 42px 43px, transparent 43px),
    linear-gradient(180deg, transparent 0 42px, rgba(6,182,212,.045) 42px 43px, transparent 43px);
  background-size: 86px 86px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.68), transparent 82%);
}

.intel-card,
.executive-card,
.pilot-panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px !important;
  border-color: rgba(139,61,255,.18) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(249,245,255,.7)),
    radial-gradient(circle at 100% 0, rgba(139,61,255,.10), transparent 34%) !important;
  box-shadow: 0 16px 44px rgba(65,27,120,.1), inset 0 1px 0 rgba(255,255,255,.78) !important;
}

.intel-card::before,
.executive-card::before,
.pilot-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-light), var(--cyan), var(--accent));
  opacity: .86;
}

.intel-card.primary {
  background:
    linear-gradient(145deg, rgba(24,10,42,.96), rgba(65,27,120,.88)),
    radial-gradient(circle at 100% 0, rgba(6,182,212,.24), transparent 36%) !important;
  color: #fff;
}

.intel-card.primary span,
.intel-card.primary small,
.intel-card.primary p {
  color: rgba(255,255,255,.78) !important;
}

.pilot-hero {
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 12% 50%, rgba(139,61,255,.18), transparent 22%),
    radial-gradient(circle at 100% 0, rgba(6,182,212,.14), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.84), rgba(249,245,255,.66)) !important;
}

.avatar,
.company-logo,
.company-logo-preview,
.profile-preview {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.72) !important;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.85), transparent 0 20%, transparent 35%),
    radial-gradient(circle at 72% 70%, rgba(6,182,212,.75), transparent 0 18%, transparent 34%),
    linear-gradient(135deg, var(--person-color, #8b3dff), #411b78 58%, #06b6d4 120%) !important;
  box-shadow:
    0 0 0 2px rgba(139,61,255,.12),
    0 0 22px rgba(139,61,255,.18),
    inset 0 1px 0 rgba(255,255,255,.4) !important;
}

.avatar::before,
.company-logo::before,
.company-logo-preview::before,
.profile-preview::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 120deg, rgba(139,61,255,0), rgba(139,61,255,.65), rgba(6,182,212,.58), rgba(217,70,239,.52), rgba(139,61,255,0));
  opacity: .54;
}

.avatar.has-photo {
  padding: 2px;
  background: conic-gradient(from 120deg, #8b3dff, #06b6d4, #d946ef, #411b78, #8b3dff) !important;
}

.avatar.has-photo img,
.company-logo img,
.company-logo-preview img,
.profile-preview img {
  border-radius: inherit;
  background: #fff;
}
/* Sidebar collapse and CRM access polish */
.sidebar-toggle {
  position: absolute;
  top: 16px;
  right: -15px;
  z-index: 5;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #f4edff);
  color: var(--primary);
  box-shadow: 0 14px 34px rgba(22,8,38,.24);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.sidebar-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(22,8,38,.3);
}

.sidebar-toggle svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  transition: transform .18s ease;
}

body.sidebar-collapsed .sidebar {
  width: 78px !important;
  padding: 18px 10px !important;
  align-items: center;
  gap: 16px;
}

body.sidebar-collapsed .app-main {
  margin-left: 78px !important;
}

body.sidebar-collapsed .sidebar-toggle {
  right: -16px;
}

body.sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

body.sidebar-collapsed .brand {
  width: 46px;
  min-height: 46px;
  justify-content: center;
  padding: 0 !important;
}

body.sidebar-collapsed .brand > span:not(.brand-mark),
body.sidebar-collapsed .profile-box,
body.sidebar-collapsed .menu-label {
  display: none !important;
}

body.sidebar-collapsed .nav-list {
  width: 100%;
  align-content: start;
  justify-items: center;
  gap: 8px !important;
  overflow: visible !important;
}

body.sidebar-collapsed .nav-list::before,
body.sidebar-collapsed .nav-list a::before {
  display: none !important;
}

body.sidebar-collapsed .nav-list a {
  width: 48px !important;
  min-width: 48px;
  min-height: 46px !important;
  justify-content: center;
  gap: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  border-radius: 14px !important;
}

body.sidebar-collapsed .nav-icon {
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
}

body.sidebar-collapsed .nav-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
}

body.crm-agent-mode .crm-grid {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  grid-template-areas: "inbox thread";
}

body.crm-agent-mode.commercial-mode .crm-grid {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

body.crm-agent-mode .crm-connect-panel {
  display: none !important;
}

@media (max-width: 1180px) {
  body.crm-agent-mode .crm-grid,
  body.crm-agent-mode.commercial-mode .crm-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "inbox"
      "thread";
  }
}

@media (max-width: 760px) {
  .sidebar-toggle {
    display: none;
  }

  body.sidebar-collapsed .sidebar {
    width: auto !important;
  }

  body.sidebar-collapsed .app-main {
    margin-left: 0 !important;
  }

  body.sidebar-collapsed .nav-list a {
    width: auto !important;
    min-width: 0;
    font-size: 12px !important;
  }
}

/* CRM professional flow redesign */
.crm-flow-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.crm-flow-strip span {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8f6fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.crm-flow-strip strong {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 11px;
}

.crm-inbox {
  max-height: calc(100vh - 315px);
  overflow: auto;
  padding-right: 2px;
}

.crm-inbox-item {
  position: relative;
  border-left: 4px solid transparent !important;
  box-shadow: none !important;
}

.crm-inbox-item.active {
  border-left-color: var(--primary) !important;
  background: #faf7ff !important;
}

.crm-inbox-item em {
  width: fit-content;
  min-height: 24px;
  display: inline-flex !important;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1e8ff;
}

.crm-thread {
  display: block;
}

.crm-attendance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 14px;
  align-items: start;
}

.crm-conversation-area,
.crm-lead-sidebar {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.crm-conversation-area {
  min-height: 580px;
}

.crm-client-card {
  border-radius: 8px !important;
  background: linear-gradient(135deg, #111827, #31204e) !important;
}

.crm-thread-messages {
  min-height: 430px !important;
  max-height: calc(100vh - 410px);
  overflow: auto;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(248,246,251,.92)),
    #f9f7fd !important;
}

.crm-composer {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(216,204,232,.86);
  border-radius: 8px;
  background: #fff;
}

.crm-lead-sidebar {
  position: sticky;
  top: 16px;
}

.crm-lead-sidebar .crm-next-action {
  margin-top: 0;
}

.crm-lead-form {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.crm-lead-form label.wide {
  grid-column: auto !important;
}

.crm-lead-form input,
.crm-lead-form select {
  min-height: 36px !important;
}

.crm-note-form {
  grid-template-columns: 1fr !important;
}

.crm-note-form button {
  width: 100%;
}

.crm-timeline {
  max-height: 240px;
  overflow: auto;
}

.crm-next-action:empty {
  display: none !important;
}

body.commercial-mode .crm-flow-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.commercial-mode .crm-thread-messages {
  min-height: 380px !important;
}

@media (max-width: 1320px) {
  .crm-attendance-layout {
    grid-template-columns: 1fr;
  }

  .crm-lead-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-lead-sidebar .crm-next-action,
  .crm-lead-sidebar .crm-note-form,
  .crm-lead-sidebar .crm-timeline {
    align-self: start;
  }
}

@media (max-width: 1180px) {
  .crm-flow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .crm-flow-strip,
  body.commercial-mode .crm-flow-strip {
    grid-template-columns: 1fr;
  }

  .crm-lead-sidebar {
    grid-template-columns: 1fr;
  }

  .crm-thread-messages {
    min-height: 320px !important;
    max-height: none;
  }
}

/* Kommo-like CRM pipeline */
body.commercial-mode .crm-pipeline-panel {
  display: block !important;
}

.crm-pipeline-panel {
  padding: 12px !important;
  overflow: hidden;
}

.crm-pipeline-panel .section-heading {
  margin-bottom: 10px;
}

.crm-pipeline {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 260px);
  grid-template-columns: none !important;
  gap: 8px !important;
  min-height: 360px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}

.crm-pipeline-column {
  min-width: 0 !important;
  min-height: 340px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(216,204,232,.72) !important;
  border-radius: 8px !important;
  background: #f7f5fa !important;
  scroll-snap-align: start;
}

.crm-pipeline-column header {
  min-height: 58px;
  display: grid !important;
  gap: 3px;
  align-content: center;
  padding: 10px 12px;
  border-top: 4px solid var(--primary);
  background: #fff;
}

.crm-pipeline-column:nth-child(2) header { border-top-color: var(--cyan); }
.crm-pipeline-column:nth-child(3) header { border-top-color: var(--orange); }
.crm-pipeline-column:nth-child(4) header { border-top-color: #4f46e5; }
.crm-pipeline-column:nth-child(5) header { border-top-color: #f59e0b; }
.crm-pipeline-column:nth-child(6) header { border-top-color: #0891b2; }
.crm-pipeline-column:nth-child(7) header { border-top-color: var(--success); }
.crm-pipeline-column:nth-child(8) header { border-top-color: #ef4444; }

.crm-pipeline-column header strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-pipeline-column header span {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  display: block !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.crm-pipeline-column > div {
  min-height: 260px;
  align-content: start;
  padding: 8px;
  overflow-y: auto;
}

.crm-pipeline-column button {
  position: relative;
  min-height: 92px;
  border-color: rgba(216,204,232,.9) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(65,27,120,.08);
  cursor: grab;
}

.crm-pipeline-column button:active {
  cursor: grabbing;
}

.crm-pipeline-column button.dragging {
  opacity: .55;
}

.crm-pipeline-column.drag-over {
  border-color: rgba(139,61,255,.72) !important;
  background: #efe8ff !important;
}

.crm-pipeline-column button strong,
.crm-pipeline-column button small,
.crm-pipeline-column button em {
  display: block;
}

.crm-pipeline-column button strong {
  font-size: 13px;
  line-height: 1.25;
}

.crm-pipeline-column button small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.crm-pipeline-column button em {
  width: fit-content;
  margin-top: 2px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1e8ff;
  color: var(--primary);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-pipeline-column p {
  margin: 0;
  padding: 12px;
  border: 1px dashed rgba(139,61,255,.24);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

body.commercial-mode .crm-grid {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) !important;
}

@media (max-width: 1180px) {
  body.commercial-mode .crm-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Seller CRM: remove non-operational clutter */
body.crm-agent-mode .crm-metrics,
body.crm-agent-mode .crm-flow-strip,
body.crm-agent-mode .crm-pipeline-actions,
body.crm-agent-mode .crm-inbox-panel,
body.crm-agent-mode .crm-connect-panel {
  display: none !important;
}

body.crm-agent-mode .crm-workspace {
  gap: 10px !important;
}

body.crm-agent-mode .crm-pipeline-panel {
  padding: 10px !important;
}

body.crm-agent-mode .crm-pipeline-panel .section-heading {
  min-height: 42px;
  margin-bottom: 8px;
}

body.crm-agent-mode .crm-pipeline-panel .section-heading h2 {
  font-size: 18px;
}

body.crm-agent-mode .crm-pipeline {
  min-height: 405px;
  grid-auto-columns: minmax(220px, 250px);
}

body.crm-agent-mode .crm-pipeline-column {
  min-height: 385px;
}

body.crm-agent-mode .crm-pipeline-column > div {
  min-height: 305px;
}

body.crm-agent-mode .crm-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-areas: "thread" !important;
  gap: 10px !important;
}

body.crm-agent-mode .crm-thread-panel {
  grid-area: thread;
  padding: 12px !important;
}

body.crm-agent-mode .crm-attendance-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

body.crm-agent-mode .crm-conversation-area {
  min-height: 0;
}

body.crm-agent-mode .crm-thread-messages {
  min-height: 340px !important;
  max-height: 430px;
}

body.crm-agent-mode .crm-lead-sidebar {
  top: 10px;
}

body.crm-agent-mode .crm-timeline {
  display: none;
}

body.crm-agent-mode .crm-note-form {
  display: none;
}

body.crm-agent-mode .crm-lead-form {
  padding: 10px !important;
}

@media (max-width: 1180px) {
  body.crm-agent-mode .crm-attendance-layout {
    grid-template-columns: 1fr;
  }
}

/* Kommo-style compact sidebar */
body.sidebar-collapsed .sidebar {
  width: 68px !important;
  padding: 12px 8px !important;
  gap: 12px !important;
  border-right: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, #0c0713 0%, #12091f 52%, #09060f 100%) !important;
  box-shadow: 10px 0 34px rgba(15,8,30,.18) !important;
}

body.sidebar-collapsed .app-main {
  margin-left: 68px !important;
}

body.sidebar-collapsed .sidebar::before,
body.sidebar-collapsed .sidebar::after,
body.sidebar-collapsed .sidebar-circuit,
body.sidebar-collapsed .nav-list::before {
  display: none !important;
}

body.sidebar-collapsed .sidebar-toggle {
  top: 18px;
  right: -13px;
  width: 26px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 10px 24px rgba(18,8,30,.22);
}

body.sidebar-collapsed .sidebar-toggle svg {
  width: 14px;
  height: 14px;
}

body.sidebar-collapsed .brand {
  width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
}

body.sidebar-collapsed .brand-mark {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  padding: 5px !important;
  background: #fff !important;
}

body.sidebar-collapsed .nav-list {
  width: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 7px !important;
  padding: 4px 0;
}

body.sidebar-collapsed .nav-list a {
  position: relative;
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: rgba(235,229,246,.72) !important;
  font-size: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.sidebar-collapsed .nav-list a:hover {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}

body.sidebar-collapsed .nav-list a.active {
  background: #fff !important;
  color: var(--brand-deep) !important;
  box-shadow: 0 12px 24px rgba(0,0,0,.22) !important;
}

body.sidebar-collapsed .nav-list a.active::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 13px;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: var(--brand-light);
}

body.sidebar-collapsed .nav-icon {
  width: 28px !important;
  height: 28px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: currentColor !important;
  box-shadow: none !important;
}

body.sidebar-collapsed .nav-icon svg {
  width: 19px;
  height: 19px;
}

body.sidebar-collapsed .nav-list a[aria-label]::before {
  content: attr(aria-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 40;
  max-width: 210px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #13091f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity .16s ease, transform .16s ease;
}

body.sidebar-collapsed .nav-list a[aria-label]:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

body.sidebar-collapsed .profile-box {
  display: grid !important;
  width: 48px;
  margin-top: auto;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.sidebar-collapsed .profile-box .owner-name {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

body.sidebar-collapsed .profile-box .owner-name span:not(.avatar),
body.sidebar-collapsed .profile-button,
body.sidebar-collapsed .ghost-button {
  display: none !important;
}

body.sidebar-collapsed .profile-box .avatar {
  margin: 0 !important;
}

body.sidebar-collapsed .sidebar:hover {
  width: 248px !important;
  align-items: stretch;
  padding: 14px 12px !important;
  box-shadow: 18px 0 56px rgba(15,8,30,.28) !important;
}

body.sidebar-collapsed .sidebar:hover .brand {
  width: auto !important;
  height: 52px !important;
  display: flex !important;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px !important;
}

body.sidebar-collapsed .sidebar:hover .brand > span:not(.brand-mark),
body.sidebar-collapsed .sidebar:hover .menu-label {
  display: block !important;
}

body.sidebar-collapsed .sidebar:hover .nav-list {
  align-items: stretch;
}

body.sidebar-collapsed .sidebar:hover .nav-list a {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  display: flex !important;
  justify-content: flex-start;
  gap: 10px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
}

body.sidebar-collapsed .sidebar:hover .nav-list a[aria-label]::before {
  display: none !important;
}

body.sidebar-collapsed .sidebar:hover .nav-icon {
  width: 28px !important;
  height: 28px !important;
}

body.sidebar-collapsed .sidebar:hover .profile-box {
  width: 100%;
  display: grid !important;
  gap: 8px;
  padding: 8px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.06) !important;
}

body.sidebar-collapsed .sidebar:hover .profile-box .owner-name {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  background: transparent;
}

body.sidebar-collapsed .sidebar:hover .profile-box .owner-name span:not(.avatar),
body.sidebar-collapsed .sidebar:hover .profile-button,
body.sidebar-collapsed .sidebar:hover .ghost-button {
  display: inline-flex !important;
}

/* CRM seller pass: clearer Kommo-like working surface */
body.crm-agent-mode .topbar {
  min-height: 52px !important;
  margin-bottom: 8px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
}

body.crm-agent-mode .topbar h1 {
  font-size: 22px !important;
}

body.crm-agent-mode .topbar .eyebrow {
  display: none;
}

body.crm-agent-mode .crm-pipeline {
  min-height: 460px;
  grid-auto-columns: minmax(236px, 270px);
}

body.crm-agent-mode .crm-pipeline-column {
  min-height: 438px;
}

body.crm-agent-mode .crm-pipeline-column > div {
  min-height: 354px;
}

body.crm-agent-mode .crm-thread-panel .section-heading {
  min-height: 38px;
}

body.crm-agent-mode .crm-thread-panel .section-heading h2 {
  font-size: 18px;
}

@media (max-width: 760px) {
  body.sidebar-collapsed .sidebar {
    width: auto !important;
  }

  body.sidebar-collapsed .app-main {
    margin-left: 0 !important;
  }
}

/* Kommo-like lead drawer and pipeline filters */
.crm-pipeline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.crm-workspace .primary-button,
.crm-workspace .secondary-button,
.crm-workspace .icon-button {
  min-height: 34px;
  border-radius: 7px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
}

.crm-workspace .primary-button {
  background: #137f6a;
  border-color: #137f6a;
  color: #fff;
}

.crm-workspace .primary-button:hover {
  background: #0f6b59;
}

.crm-workspace .secondary-button {
  background: #fff;
  border-color: rgba(216,204,232,.9);
  color: #33243f;
}

.crm-pipeline-actions .secondary-button,
.crm-pipeline-actions .primary-button {
  padding: 0 12px;
}

.crm-pipeline-actions select {
  min-height: 36px;
  max-width: 190px;
  border: 1px solid rgba(216,204,232,.9);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.crm-thread-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crm-thread-head-actions .icon-button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

.crm-thread-panel {
  transition: transform .22s ease, opacity .18s ease;
}

body.crm-agent-mode .crm-thread-panel,
body.crm-manager-mode .crm-thread-panel {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  width: min(920px, calc(100vw - 96px));
  max-width: 920px;
  overflow: auto;
  border: 1px solid rgba(216,204,232,.95) !important;
  background: #fff !important;
  box-shadow: -28px 0 80px rgba(18,8,30,.2) !important;
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
}

body.crm-detail-open .crm-thread-panel {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

body.crm-detail-open::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(18,8,30,.22);
  pointer-events: none;
}

body.crm-detail-open .crm-thread-panel {
  z-index: 81;
}

body.crm-agent-mode .crm-grid,
body.crm-manager-mode .crm-grid {
  display: block !important;
}

body.crm-agent-mode .crm-thread-panel .section-heading,
body.crm-manager-mode .crm-thread-panel .section-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -12px -12px 12px;
  padding: 12px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216,204,232,.72);
}

body.crm-agent-mode .crm-attendance-layout,
body.crm-manager-mode .crm-attendance-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 340px);
  height: calc(100vh - 116px);
  min-height: 0;
  overflow: hidden;
}

body.crm-agent-mode .crm-conversation-area,
body.crm-manager-mode .crm-conversation-area {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0 !important;
  min-height: 0;
  overflow: hidden;
}

body.crm-agent-mode .crm-thread-messages,
body.crm-manager-mode .crm-thread-messages {
  height: 100%;
  max-height: calc(100vh - 330px) !important;
  min-height: 260px !important;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.crm-agent-mode .crm-composer,
body.crm-manager-mode .crm-composer {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #fff;
  border-top: 1px solid rgba(216,204,232,.72);
}

body.crm-agent-mode .crm-thread-messages p,
body.crm-manager-mode .crm-thread-messages p {
  max-width: min(680px, 86%);
  max-height: 300px;
  overflow: auto;
  word-break: break-word;
  white-space: pre-wrap;
}

body.crm-agent-mode .crm-thread-messages p.seller,
body.crm-manager-mode .crm-thread-messages p.seller {
  margin-left: auto;
}

body.crm-agent-mode .crm-thread-messages p > span,
body.crm-manager-mode .crm-thread-messages p > span {
  display: block;
  max-height: 210px;
  overflow: auto;
}

.crm-lead-sidebar.compact {
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.crm-side-card,
.crm-side-section {
  border: 1px solid rgba(216,204,232,.78);
  border-radius: 8px;
  background: #fff;
}

.crm-side-card {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.crm-side-card > span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef9fb;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-side-card strong {
  font-size: 15px;
}

.crm-side-card small {
  color: var(--muted);
  line-height: 1.35;
}

.crm-quick-name-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding-top: 2px;
}

.crm-quick-name-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-quick-name-form input {
  min-height: 36px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.crm-quick-name-form .secondary-button {
  min-height: 36px;
  white-space: nowrap;
}

.crm-flow-checklist {
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.crm-checklist-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crm-checklist-pills em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #f0d2d2;
  border-radius: 999px;
  background: #fff7f7;
  color: #b42318;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-checklist-pills em.ready {
  border-color: #cdeee1;
  background: #ecfdf5;
  color: #16845f;
}

.crm-side-section {
  overflow: hidden;
}

.crm-side-section summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.crm-side-section summary::-webkit-details-marker {
  display: none;
}

.crm-side-section summary::after {
  content: "+";
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f5f0fb;
  color: var(--purple);
  font-weight: 950;
}

.crm-side-section[open] summary::after {
  content: "-";
}

.crm-side-section summary span {
  font-size: 13px;
  font-weight: 950;
}

.crm-side-section summary small {
  max-width: 150px;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-activity-form {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(216,204,232,.86);
  border-radius: 8px;
  background: #fff;
}

.crm-activity-form strong {
  font-size: 13px;
}

.crm-activity-form input,
.crm-activity-form select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}

.crm-activity-form.compact {
  padding: 10px;
}

.crm-compact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.crm-lead-form.compact {
  padding: 0 10px 10px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.crm-note-form.compact {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px;
  padding: 0 10px 10px;
}

.crm-timeline.compact {
  max-height: 260px;
  padding: 0 10px 10px;
  border: 0;
  overflow: auto;
}

.crm-timeline.compact > strong {
  display: none;
}

.crm-timeline.compact article {
  padding: 8px 0;
  border-bottom: 1px solid rgba(216,204,232,.55);
}

body.crm-agent-mode .crm-note-form.compact {
  display: grid !important;
}

.crm-pipeline-column button span {
  width: fit-content;
  display: block;
  margin-top: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef9fb;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.crm-pipeline-column button {
  max-height: 178px;
  overflow: hidden;
}

.crm-pipeline-column button .crm-card-footer em {
  margin-top: 0;
}

.crm-pipeline-column button .crm-card-footer b {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3742b0;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-pipeline-column button .crm-card-footer b.hot { background: #fff1f2; color: #be123c; }
.crm-pipeline-column button .crm-card-footer b.warm { background: #fff7ed; color: #c2410c; }
.crm-pipeline-column button .crm-card-footer b.cold { background: #f1f5f9; color: #475569; }
.crm-pipeline-column button .crm-card-footer b.ok { background: #ecfdf5; color: #047857; }

.crm-pipeline-column button strong,
.crm-pipeline-column button small,
.crm-pipeline-column button em {
  min-width: 0;
}

.crm-pipeline-column button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-pipeline-column button small {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
}

.crm-pipeline-column button small:last-child {
  -webkit-line-clamp: 1;
}

.crm-pipeline-column button.overdue {
  border-color: rgba(239,68,68,.45) !important;
  box-shadow: 0 10px 22px rgba(239,68,68,.12);
}

.crm-pipeline-column button.overdue::after {
  content: "Atrasado";
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-insights {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.crm-insights article {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 8px;
  background: #fff;
}

.crm-insights span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-insights strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.crm-lead-create-modal {
  width: min(760px, calc(100vw - 24px));
}

/* CRM professional service desk polish */
.crm-inbox-item.has-unread {
  border-left-color: #22c55e !important;
  background: linear-gradient(180deg, #ffffff, #f6fff9) !important;
}

.crm-inbox-item.is-overdue {
  border-left-color: #ef4444 !important;
}

.crm-inbox-top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-inbox-top small {
  flex: 0 0 auto;
  font-weight: 950;
}

.crm-inbox-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.crm-inbox-pills b {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3742b0;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-inbox-pills b.hot {
  background: #fff1f2;
  color: #be123c;
}

.crm-inbox-pills b.warm {
  background: #fff7ed;
  color: #c2410c;
}

.crm-inbox-pills b.cold {
  background: #f1f5f9;
  color: #475569;
}

.crm-inbox-pills b.ok {
  background: #ecfdf5;
  color: #047857;
}

.crm-client-card {
  align-items: center;
}

.crm-client-card .crm-client-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}

.crm-client-main {
  min-width: 0;
  flex: 1;
}

.crm-client-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-client-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.crm-client-meta em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #f8fafc;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-client-meta em.hot { background: rgba(254,226,226,.2); color: #fecaca; }
.crm-client-meta em.warm { background: rgba(255,237,213,.2); color: #fed7aa; }
.crm-client-meta em.cold { background: rgba(226,232,240,.2); color: #e2e8f0; }
.crm-client-meta em.ok { background: rgba(220,252,231,.18); color: #bbf7d0; }

.crm-client-card .crm-client-stage {
  max-width: 150px;
  color: #d8f6ff;
  font-weight: 950;
  text-align: right;
}

.crm-composer-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.crm-composer-head strong {
  font-size: 13px;
}

.crm-composer-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.crm-quick-replies {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.crm-quick-replies button {
  min-height: 64px;
  gap: 3px;
}

.crm-quick-replies button em {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef9fb;
  color: var(--cyan);
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.crm-lead-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.crm-lead-snapshot article {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(216,204,232,.68);
  border-radius: 8px;
  background: #fafafa;
}

.crm-lead-snapshot b,
.crm-lead-snapshot small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-lead-snapshot b {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}

.crm-lead-snapshot small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.crm-next-best-action {
  border-color: rgba(8,145,178,.28);
  background: linear-gradient(180deg, #f0fdff, #fff);
}

.crm-next-best-action > span {
  background: #dff7fb;
  color: #087f9c;
}

.crm-next-best-action .secondary-button {
  min-height: 36px;
}

.crm-thread-messages p {
  border: 1px solid rgba(226,232,240,.75);
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
}

.crm-thread-messages p.client {
  border-top-left-radius: 3px;
}

.crm-thread-messages p.seller {
  border-top-right-radius: 3px;
}

.crm-thread-messages p.has-attachment {
  max-width: min(520px, 88%);
}

/* Compact chat bubbles */
.chat-message {
  max-width: min(560px, 74%);
}

.chat-message > div {
  width: fit-content;
  max-width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
}

.chat-message p {
  max-width: min(460px, 68vw);
  font-size: 13px;
  line-height: 1.36;
}

.chat-window .chat-message {
  max-width: 88%;
}

.chat-window .chat-message > div {
  max-width: min(250px, 100%);
  padding: 8px 10px;
}

.crm-thread-messages p,
body.crm-agent-mode .crm-thread-messages p,
body.crm-manager-mode .crm-thread-messages p {
  width: fit-content;
  max-width: min(500px, 72%);
  max-height: 240px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.34;
  overflow: auto;
  overflow-wrap: anywhere;
  word-break: normal;
}

.crm-thread-messages p > span,
body.crm-agent-mode .crm-thread-messages p > span,
body.crm-manager-mode .crm-thread-messages p > span {
  max-height: 170px;
  overflow: auto;
}

.crm-thread-messages p small {
  margin-top: 5px;
}

.crm-thread-messages p.has-attachment {
  max-width: min(430px, 78%);
}

.crm-audio-message {
  width: min(260px, 58vw);
}

.crm-media-message img,
.crm-video-message {
  width: min(240px, 58vw);
  max-height: 220px;
}

@media (max-width: 760px) {
  .chat-message {
    max-width: 92%;
  }

  .chat-message p {
    max-width: 74vw;
  }

  .crm-thread-messages p,
  body.crm-agent-mode .crm-thread-messages p,
  body.crm-manager-mode .crm-thread-messages p {
    max-width: 86%;
  }

  .crm-thread-messages p.has-attachment {
    max-width: 90%;
  }
}

@media (max-width: 980px) {
  body.crm-agent-mode .crm-thread-panel,
  body.crm-manager-mode .crm-thread-panel {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
  }

  body.crm-agent-mode .crm-attendance-layout,
  body.crm-manager-mode .crm-attendance-layout {
    grid-template-columns: 1fr;
  }

  .crm-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Global Kommo-style navigation rail */
:root {
  --nav-rail-width: 108px;
  --nav-expanded-width: 248px;
}

.sidebar {
  width: var(--nav-expanded-width) !important;
  padding: 18px 14px !important;
  gap: 18px !important;
  overflow: visible !important;
  background: #fff !important;
  color: #343b47 !important;
  border-right: 1px solid #e5e7eb !important;
  box-shadow: none !important;
}

.sidebar::before,
.sidebar::after,
.sidebar-circuit,
.nav-list::before {
  display: none !important;
}

.app-main {
  margin-left: var(--nav-expanded-width) !important;
}

.brand {
  width: 100% !important;
  min-height: 72px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #333b47 !important;
  box-shadow: none !important;
}

.brand-mark {
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  padding: 6px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.brand-mark img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.brand strong,
.brand small {
  color: #343b47 !important;
}

.menu-label {
  display: block !important;
  margin: 14px 10px 6px !important;
  color: #9aa1ad !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
}

.nav-list {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  overflow: visible !important;
}

.nav-list a {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #343b47 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.nav-list a:hover {
  background: #f3f6fb !important;
  color: #2f63ff !important;
  transform: none !important;
}

.nav-list a.active {
  background: #eaf2ff !important;
  color: #4778ff !important;
  box-shadow: none !important;
}

.nav-list a.active::after {
  display: none !important;
}

.nav-icon {
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 32px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: currentColor !important;
  box-shadow: none !important;
}

.nav-icon svg {
  width: 23px !important;
  height: 23px !important;
  fill: currentColor !important;
}

.profile-box {
  width: 100% !important;
  margin-top: auto !important;
  padding: 10px !important;
  gap: 8px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #343b47 !important;
  box-shadow: none !important;
}

.profile-box .owner-name {
  color: #343b47 !important;
}

.profile-button,
.profile-box .ghost-button {
  min-height: 34px !important;
  border-color: #e5e7eb !important;
  background: #fff !important;
  color: #343b47 !important;
}

.profile-box .ghost-button {
  background: #f3f6fb !important;
}

.sidebar-toggle {
  top: 18px !important;
  right: -14px !important;
  width: 28px !important;
  height: 44px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #4778ff !important;
  box-shadow: 0 8px 24px rgba(31,41,55,.14) !important;
}

body.sidebar-collapsed .sidebar,
body.sidebar-collapsed .sidebar:hover {
  width: var(--nav-rail-width) !important;
  padding: 20px 12px !important;
  align-items: center !important;
  gap: 18px !important;
  background: #fff !important;
  color: #343b47 !important;
  box-shadow: none !important;
}

body.sidebar-collapsed .app-main {
  margin-left: var(--nav-rail-width) !important;
}

body.sidebar-collapsed .brand,
body.sidebar-collapsed .sidebar:hover .brand {
  width: 100% !important;
  height: 76px !important;
  min-height: 76px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  background: transparent !important;
}

body.sidebar-collapsed .brand > span:not(.brand-mark),
body.sidebar-collapsed .sidebar:hover .brand > span:not(.brand-mark),
body.sidebar-collapsed .menu-label,
body.sidebar-collapsed .sidebar:hover .menu-label {
  display: none !important;
}

body.sidebar-collapsed .brand-mark,
body.sidebar-collapsed .sidebar:hover .brand-mark {
  width: 56px !important;
  height: 56px !important;
  padding: 7px !important;
  border-radius: 12px !important;
  background: #fff !important;
}

body.sidebar-collapsed .nav-list,
body.sidebar-collapsed .sidebar:hover .nav-list {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}

body.sidebar-collapsed .nav-list a,
body.sidebar-collapsed .sidebar:hover .nav-list a {
  position: relative !important;
  width: 64px !important;
  min-width: 64px !important;
  height: 64px !important;
  min-height: 64px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #343b47 !important;
  font-size: 0 !important;
}

body.sidebar-collapsed .nav-list a:hover,
body.sidebar-collapsed .sidebar:hover .nav-list a:hover {
  background: #f3f6fb !important;
  color: #4778ff !important;
}

body.sidebar-collapsed .nav-list a.active,
body.sidebar-collapsed .sidebar:hover .nav-list a.active {
  background: #eaf2ff !important;
  color: #4778ff !important;
}

body.sidebar-collapsed .nav-icon,
body.sidebar-collapsed .sidebar:hover .nav-icon {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
}

body.sidebar-collapsed .nav-icon svg,
body.sidebar-collapsed .sidebar:hover .nav-icon svg {
  width: 27px !important;
  height: 27px !important;
}

body.sidebar-collapsed .nav-list a[aria-label]::before {
  content: attr(aria-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 120;
  display: block !important;
  padding: 8px 10px;
  border-radius: 8px;
  background: #2f3540;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity .16s ease, transform .16s ease;
}

body.sidebar-collapsed .nav-list a[aria-label]:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

body.sidebar-collapsed .profile-box,
body.sidebar-collapsed .sidebar:hover .profile-box {
  width: 100% !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.sidebar-collapsed .profile-box .owner-name,
body.sidebar-collapsed .sidebar:hover .profile-box .owner-name {
  width: 58px !important;
  height: 58px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
}

body.sidebar-collapsed .profile-box .owner-name span:not(.avatar),
body.sidebar-collapsed .profile-button,
body.sidebar-collapsed .ghost-button,
body.sidebar-collapsed .sidebar:hover .profile-box .owner-name span:not(.avatar),
body.sidebar-collapsed .sidebar:hover .profile-button,
body.sidebar-collapsed .sidebar:hover .ghost-button {
  display: none !important;
}

body.sidebar-collapsed .profile-box .avatar,
body.sidebar-collapsed .sidebar:hover .profile-box .avatar {
  width: 54px !important;
  height: 54px !important;
  margin: 0 !important;
  font-size: 18px !important;
}

@media (max-width: 760px) {
  .sidebar,
  body.sidebar-collapsed .sidebar {
    width: auto !important;
  }

  .app-main,
  body.sidebar-collapsed .app-main {
    margin-left: 0 !important;
  }
}

/* CRM top area cleanup */
body[data-active-view="crm"] .toolbar[data-view="kanban"] {
  display: none !important;
}

body[data-active-view="crm"] .topbar {
  min-height: 64px !important;
  margin-bottom: 12px !important;
  padding: 10px 14px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body[data-active-view="crm"] .topbar h1 {
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
}

body[data-active-view="crm"] .topbar .eyebrow {
  display: none !important;
}

body[data-active-view="crm"] .topbar-actions {
  gap: 8px !important;
}

body[data-active-view="crm"] .topbar-actions [data-open-task],
body[data-active-view="crm"] #tvModeBtn {
  display: none !important;
}

body[data-active-view="crm"] .global-search {
  width: min(420px, 36vw) !important;
  min-width: 280px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body[data-active-view="crm"] .global-search input {
  min-height: 38px !important;
}

body[data-active-view="crm"] .live-pill {
  min-height: 36px !important;
  border-radius: 8px !important;
  background: #f0fdf4 !important;
  color: #137f6a !important;
}

body[data-active-view="crm"] #refreshBtn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
}

body[data-active-view="crm"] .crm-hero {
  display: none !important;
}

body[data-active-view="crm"] .crm-workspace {
  gap: 12px !important;
}

body[data-active-view="crm"] .crm-pipeline-panel {
  border-radius: 12px !important;
  box-shadow: none !important;
}

/* CRM chat readability reset - WhatsApp-like */
.crm-thread-messages,
body.crm-agent-mode .crm-thread-messages,
body.crm-manager-mode .crm-thread-messages {
  gap: 7px !important;
  align-content: start !important;
  padding: 16px 18px !important;
  background: #f4f6f8 !important;
  border-color: #e2e8f0 !important;
}

.crm-thread-messages p,
body.crm-agent-mode .crm-thread-messages p,
body.crm-manager-mode .crm-thread-messages p {
  width: fit-content !important;
  max-width: min(420px, 68%) !important;
  max-height: none !important;
  padding: 7px 10px 6px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  box-shadow: 0 3px 10px rgba(15,23,42,.05) !important;
  font-size: 13px !important;
  line-height: 1.32 !important;
  overflow: visible !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  white-space: pre-wrap !important;
}

.crm-thread-messages p.client {
  justify-self: start !important;
  border-top-left-radius: 4px !important;
}

.crm-thread-messages p.seller,
body.crm-agent-mode .crm-thread-messages p.seller,
body.crm-manager-mode .crm-thread-messages p.seller {
  justify-self: end !important;
  margin-left: 0 !important;
  border-color: #b7e4ce !important;
  border-top-right-radius: 4px !important;
  background: #dcfce7 !important;
  color: #123524 !important;
}

.crm-thread-messages p > span,
body.crm-agent-mode .crm-thread-messages p > span,
body.crm-manager-mode .crm-thread-messages p > span {
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
}

.crm-thread-messages p small {
  margin-top: 4px !important;
  color: #64748b !important;
  font-size: 9.5px !important;
  font-weight: 750 !important;
}

.crm-thread-messages p.seller small {
  color: #49705a !important;
}

.crm-thread-messages p.has-attachment {
  max-width: min(360px, 72%) !important;
}

.crm-audio-message {
  width: min(230px, 52vw) !important;
  height: 32px !important;
}

.crm-media-message img,
.crm-video-message {
  width: min(220px, 52vw) !important;
  max-height: 190px !important;
}

.crm-composer {
  border-color: #e2e8f0 !important;
  box-shadow: 0 -6px 18px rgba(15,23,42,.04) !important;
}

.crm-reply-form textarea {
  min-height: 42px !important;
  max-height: 108px !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
}

@media (max-width: 760px) {
  .crm-thread-messages p,
  body.crm-agent-mode .crm-thread-messages p,
  body.crm-manager-mode .crm-thread-messages p {
    max-width: 88% !important;
  }
}



/* CRM chat: natural bubbles and stable reading */
.crm-thread-messages,
body.crm-agent-mode .crm-thread-messages,
body.crm-manager-mode .crm-thread-messages {
  scroll-behavior: auto !important;
  align-content: start !important;
  gap: 7px !important;
  padding: 16px 18px !important;
  background: #f4f6f8 !important;
}

.crm-thread-messages p,
body.crm-agent-mode .crm-thread-messages p,
body.crm-manager-mode .crm-thread-messages p {
  max-width: min(390px, 66%) !important;
  padding: 7px 10px !important;
  border-radius: 14px !important;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  color: #1f2937 !important;
  box-shadow: 0 2px 8px rgba(15,23,42,.05) !important;
  line-height: 1.32 !important;
  overflow: visible !important;
  white-space: pre-wrap !important;
  overflow-wrap: break-word !important;
}

.crm-thread-messages p.client {
  justify-self: start !important;
  border-top-left-radius: 5px !important;
}

.crm-thread-messages p.seller,
body.crm-agent-mode .crm-thread-messages p.seller,
body.crm-manager-mode .crm-thread-messages p.seller {
  justify-self: end !important;
  margin-left: 0 !important;
  background: #dcfce7 !important;
  border-color: #b7e4ce !important;
  color: #123524 !important;
  border-top-right-radius: 5px !important;
}

.crm-thread-messages p > span,
body.crm-agent-mode .crm-thread-messages p > span,
body.crm-manager-mode .crm-thread-messages p > span {
  max-height: none !important;
  overflow: visible !important;
}

.crm-thread-messages p small {
  margin-top: 4px !important;
  font-size: 9.5px !important;
  color: #64748b !important;
}

.crm-thread-messages p.seller small {
  color: #49705a !important;
}

.crm-audio-message {
  width: min(230px, 52vw) !important;
  height: 32px !important;
}

.crm-media-message img,
.crm-video-message {
  width: min(220px, 52vw) !important;
  max-height: 190px !important;
}

@media (max-width: 760px) {
  .crm-thread-messages p,
  body.crm-agent-mode .crm-thread-messages p,
  body.crm-manager-mode .crm-thread-messages p {
    max-width: 88% !important;
  }
}


/* CRM new message indicator */
.crm-message-wrap {
  position: relative;
  min-height: 0;
}

.crm-new-message-jump {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 5;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(22,163,74,.24);
  cursor: pointer;
}

.crm-new-message-jump.hidden {
  display: none !important;
}

.crm-inbox-item.has-unread::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 12px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.14);
}

.crm-inbox-item.has-unread strong {
  padding-right: 18px;
}


/* CRM unread response counter */
.crm-unread-counter {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  color: #14532d;
  text-align: left;
  box-shadow: 0 10px 24px rgba(22,163,74,.12);
  cursor: pointer;
}

.crm-unread-counter span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.crm-unread-counter strong,
.crm-unread-counter small {
  display: block;
}

.crm-unread-counter strong {
  font-size: 14px;
  font-weight: 950;
}

.crm-unread-counter small {
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}

.crm-unread-counter:hover {
  border-color: #22c55e;
  transform: translateY(-1px);
}

.crm-inbox-item.has-unread {
  border-left-color: #22c55e !important;
}

.crm-inbox-item.has-unread::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 12px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.14);
}


/* CRM unread response counter */
.crm-unread-counter {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  color: #14532d;
  text-align: left;
  box-shadow: 0 10px 24px rgba(22,163,74,.12);
  cursor: pointer;
}

.crm-unread-counter span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.crm-unread-counter strong,
.crm-unread-counter small {
  display: block;
}

.crm-unread-counter strong {
  font-size: 14px;
  font-weight: 950;
}

.crm-unread-counter small {
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}

.crm-inbox-item.has-unread {
  border-left-color: #22c55e !important;
}

.crm-inbox-item.has-unread::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 12px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.14);
}


/* CRM unread badges like WhatsApp */
.crm-card-unread {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 0 0 4px rgba(34,197,94,.14);
}

.crm-pipeline-column button:has(.crm-card-unread) {
  border-color: rgba(34,197,94,.55) !important;
  background: linear-gradient(180deg, #ffffff, #f0fdf4) !important;
}

.crm-unread-counter {
  position: sticky;
  top: 8px;
  z-index: 20;
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  color: #14532d;
  text-align: left;
  box-shadow: 0 10px 24px rgba(22,163,74,.12);
  cursor: pointer;
}

.crm-unread-counter span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.crm-unread-counter strong,
.crm-unread-counter small {
  display: block;
}

.crm-unread-counter strong {
  font-size: 14px;
  font-weight: 950;
}

.crm-unread-counter small {
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}

.crm-unread-counter.hidden {
  display: none !important;
}


/* Source: ui/compat/product-polish.css */
/* EVOADS product polish: design-system layer loaded last. */
:root {
  --evo-bg: #f7f5fb;
  --evo-ink: #12081e;
  --evo-muted: #6d607d;
  --evo-line: rgba(65, 27, 120, .13);
  --evo-soft-line: rgba(139, 61, 255, .14);
  --evo-card: rgba(255, 255, 255, .86);
  --evo-card-solid: #ffffff;
  --evo-purple: #8b3dff;
  --evo-deep: #411b78;
  --evo-cyan: #06b6d4;
  --evo-pink: #d946ef;
  --evo-danger: #e11d48;
  --evo-warn: #f59e0b;
  --evo-ok: #0d9488;
  --evo-radius: 14px;
  --evo-radius-lg: 20px;
  --evo-shadow: 0 16px 42px rgba(65, 27, 120, .10);
  --evo-shadow-soft: 0 8px 22px rgba(65, 27, 120, .07);
}

html {
  color-scheme: light;
}

body {
  background:
    radial-gradient(circle at 14% 12%, rgba(139, 61, 255, .10), transparent 26%),
    radial-gradient(circle at 82% 8%, rgba(6, 182, 212, .08), transparent 24%),
    linear-gradient(180deg, #fcfbff 0%, var(--evo-bg) 46%, #eeebf7 100%) !important;
  color: var(--evo-ink);
}

body::before {
  display: block !important;
  opacity: .24 !important;
  background-image:
    radial-gradient(circle, rgba(65, 27, 120, .22) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(6, 182, 212, .18) 0 1px, transparent 1.7px) !important;
  background-size: 118px 118px, 170px 170px !important;
  background-position: 18px 28px, 70px 92px !important;
  mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.45) 72%, transparent);
}

.login-screen {
  background:
    radial-gradient(circle at 20% 18%, rgba(139,61,255,.36), transparent 24%),
    radial-gradient(circle at 75% 35%, rgba(6,182,212,.24), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(255,255,255,.82) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 70%, rgba(217,70,239,.42) 0 1px, transparent 2px),
    linear-gradient(135deg, #050109 0%, #160626 42%, #411b78 78%, #8b3dff 125%) !important;
}

.login-screen::before {
  display: block !important;
  opacity: .52 !important;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.46) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(6,182,212,.32) 0 1px, transparent 1.8px) !important;
  background-size: 74px 74px, 128px 128px !important;
}

.login-card {
  border-radius: 24px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06)),
    radial-gradient(circle at 100% 0, rgba(6,182,212,.14), transparent 34%) !important;
  box-shadow: 0 28px 82px rgba(0,0,0,.34), 0 0 44px rgba(139,61,255,.16), inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.app-main {
  max-width: 1800px;
}

.topbar,
.panel,
.section-block,
.toolbar,
.metric,
.column,
.modal,
.user-create-card,
.company-card,
.traffic-card,
.agenda-item,
.daily-item,
.person-item,
.goal-item,
.intel-card,
.executive-card,
.pilot-panel {
  border: 1px solid var(--evo-line) !important;
  border-radius: var(--evo-radius-lg) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(250,247,255,.74)),
    radial-gradient(circle at 100% 0, rgba(139,61,255,.055), transparent 32%) !important;
  box-shadow: var(--evo-shadow-soft) !important;
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  min-height: 72px !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
}

.topbar h1 {
  max-width: 720px;
  color: var(--evo-ink);
  font-size: clamp(25px, 2.2vw, 38px) !important;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--evo-purple) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .055em !important;
}

.primary-button,
.task-approval-button,
.task-finalize-button {
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--evo-purple), var(--evo-deep) 68%, var(--evo-cyan) 140%) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(139,61,255,.22) !important;
}

.secondary-button,
.ghost-button,
.icon-button,
.quiet-action,
.primary-action,
.danger-action,
.table-action {
  border-radius: 12px !important;
  border-color: var(--evo-soft-line) !important;
  background: rgba(255,255,255,.72) !important;
  color: var(--evo-ink) !important;
  box-shadow: none !important;
}

.primary-button:hover,
.secondary-button:hover,
.icon-button:hover,
.quiet-action:hover,
.primary-action:hover,
.table-action:hover {
  transform: translateY(-1px);
  border-color: rgba(139,61,255,.34) !important;
  box-shadow: 0 10px 24px rgba(65,27,120,.10) !important;
}

input,
select,
textarea {
  min-height: 42px;
  border-color: rgba(65,27,120,.16) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.78) !important;
  color: var(--evo-ink) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(139,61,255,.48) !important;
  box-shadow: 0 0 0 4px rgba(139,61,255,.11) !important;
}

.sidebar {
  width: 228px !important;
  padding: 14px 10px !important;
  background:
    radial-gradient(circle at 88% 8%, rgba(139,61,255,.20), transparent 30%),
    linear-gradient(180deg, #06020b, #130722 54%, #1b0b32) !important;
  box-shadow: 12px 0 46px rgba(65,27,120,.16);
}

.sidebar::before,
.sidebar::after,
.sidebar-circuit,
.nav-list::before,
.command-center[data-view="dashboard"] > .panel::before {
  display: none !important;
  opacity: 0 !important;
}

.app-main {
  margin-left: 228px !important;
}

.brand {
  padding: 2px 6px;
}

.brand-mark,
.nav-icon,
.avatar,
.company-logo {
  border-radius: 12px !important;
}

.nav-list {
  gap: 3px !important;
}

.nav-list a {
  min-height: 37px !important;
  padding: 0 8px !important;
  border-radius: 12px !important;
  color: rgba(255,255,255,.80) !important;
  font-size: 13px !important;
}

.nav-list a.active {
  background: rgba(255,255,255,.94) !important;
  color: var(--evo-ink) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.18) !important;
}

.nav-list a:hover:not(.active) {
  background: rgba(255,255,255,.08) !important;
}

.profile-box {
  border-radius: 16px !important;
  background: rgba(255,255,255,.07) !important;
}

.metrics-grid[data-view="dashboard"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px !important;
}

.metric {
  min-height: 102px !important;
  padding: 14px !important;
}

.metric span,
.metric small,
.executive-card span,
.executive-card small,
.intel-card span,
.intel-card small {
  color: var(--evo-muted) !important;
}

.metric strong {
  margin: 8px 0 4px !important;
  color: var(--evo-ink);
  font-size: clamp(30px, 2.6vw, 46px) !important;
}

.metric::before,
.executive-card::before,
.intel-card::before,
.pilot-panel::before {
  height: 2px !important;
  background: linear-gradient(90deg, var(--evo-purple), var(--evo-cyan), var(--evo-pink)) !important;
  opacity: .56 !important;
}

.command-center[data-view="dashboard"] > .panel {
  padding: 18px !important;
}

.dashboard-focus-strip {
  grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(120px, .6fr)) !important;
}

.dashboard-focus-strip article {
  min-height: 76px !important;
  border-radius: 16px !important;
}

.dashboard-focus-strip .focus-card {
  background:
    radial-gradient(circle at 96% 12%, rgba(6,182,212,.20), transparent 34%),
    linear-gradient(135deg, #160824, var(--evo-deep) 68%, var(--evo-purple)) !important;
}

.executive-grid,
.dashboard-intel {
  gap: 10px !important;
}

.executive-card {
  min-height: 102px !important;
  padding: 14px !important;
}

.executive-card strong {
  font-size: 34px !important;
}

.dashboard-intel {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.intel-card {
  min-height: 146px !important;
  padding: 14px !important;
}

.intel-list {
  gap: 6px !important;
}

.intel-list button {
  min-height: 38px !important;
  border-radius: 12px !important;
}

.pilot-panel {
  margin-top: 12px !important;
}

.pilot-hero {
  min-height: 96px;
  border-radius: 16px !important;
}

.pilot-flow {
  display: none !important;
}

.daily-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.daily-columns h3 {
  margin: 0 0 8px !important;
  font-size: 14px !important;
}

.daily-list {
  max-height: 230px !important;
}

.kanban,
.kanban-board {
  gap: 12px !important;
}

.column {
  min-height: 520px !important;
  padding: 10px !important;
}

.column-header {
  margin-bottom: 10px !important;
}

.column-header h3 {
  font-size: 15px !important;
}

.task-card {
  gap: 8px !important;
  padding: 11px !important;
  border-radius: 14px !important;
  box-shadow: 0 7px 18px rgba(65,27,120,.07) !important;
}

.task-card:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 26px rgba(65,27,120,.10) !important;
}

.task-card .card-title strong {
  font-size: 14px !important;
}

.task-card .card-title span,
.task-card .card-info,
.task-card .card-meta {
  font-size: 12px !important;
}

.task-hover-preview {
  top: calc(100% + 8px) !important;
  left: 8px !important;
  right: 8px !important;
  max-height: 190px;
  overflow: auto;
  pointer-events: none !important;
}

.task-card:not(:has(.task-brief-dot:hover)):not(:has(.task-brief-dot:focus-visible)) .task-hover-preview {
  display: none !important;
}

.task-card:has(.task-brief-dot:hover) .task-hover-preview,
.task-card:has(.task-brief-dot:focus-visible) .task-hover-preview {
  display: grid !important;
  opacity: 1 !important;
}

.task-wizard {
  width: min(920px, 96vw) !important;
  padding: 18px !important;
  border-radius: 18px !important;
  gap: 14px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,245,255,.92)) !important;
}

.task-wizard-progress {
  display: grid;
  grid-template-columns: 24px 1fr 24px 1fr 24px;
  align-items: center;
  gap: 8px;
  max-width: 250px;
}

.task-wizard-progress span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eee9f6;
  color: #756984;
  font-size: 12px;
  font-weight: 900;
}

.task-wizard-progress span.active {
  background: linear-gradient(135deg, var(--evo-purple), #5b21b6);
  color: #fff;
  box-shadow: 0 8px 20px rgba(139,61,255,.24);
}

.task-wizard-progress span.done {
  background: #e7dcfb;
  color: #5b21b6;
}

.task-wizard-progress i {
  height: 2px;
  background: linear-gradient(90deg, rgba(139,61,255,.3), rgba(6,182,212,.24));
}

.task-wizard-step {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.task-wizard-step > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.task-wizard-step > div:first-child strong {
  color: var(--evo-muted);
  font-size: 13px;
}

.task-wizard .task-presets {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.task-presets button {
  min-height: 76px !important;
  display: grid !important;
  grid-template-columns: 34px 1fr;
  grid-template-areas: "icon title" "icon meta";
  align-items: center;
  gap: 2px 10px !important;
  padding: 12px !important;
  border: 1px solid rgba(139,61,255,.16) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 8px 22px rgba(65,27,120,.05) !important;
  text-align: left !important;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.task-presets button:hover {
  transform: translateY(-1px);
  border-color: rgba(139,61,255,.38) !important;
  box-shadow: 0 12px 28px rgba(65,27,120,.09) !important;
}

.task-presets button.active {
  border-color: rgba(139,61,255,.72) !important;
  background: linear-gradient(135deg, rgba(139,61,255,.13), rgba(255,255,255,.94)) !important;
  box-shadow: inset 3px 0 0 #8b3dff, 0 14px 30px rgba(139,61,255,.12) !important;
}

.task-presets button span {
  grid-area: icon;
  width: 34px !important;
  height: 34px !important;
  display: grid;
  place-items: center;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(139,61,255,.13), rgba(65,183,255,.09)) !important;
  color: #6d28d9 !important;
  font-size: 11px !important;
  font-weight: 950 !important;
}

.task-presets button strong {
  grid-area: title;
  color: #140921 !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
}

.task-presets button small {
  grid-area: meta;
  max-width: 100%;
  overflow: hidden;
  color: #766985 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-preset-guide {
  min-height: 40px;
  display: flex;
  align-items: center;
  margin-top: 10px !important;
  padding: 10px 12px !important;
  border: 1px dashed rgba(139,61,255,.18) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.58) !important;
  color: #6d627a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.task-wizard-actions {
  position: sticky;
  bottom: -20px;
  z-index: 4;
  margin: 0 -20px -20px;
  padding: 14px 20px;
  border-top: 1px solid var(--evo-line);
  background: rgba(248,247,252,.94);
  backdrop-filter: blur(18px);
}

.collaborator-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(139, 61, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
}

.collaborator-field > div:first-child,
.collaboration-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.collaborator-field span,
.collaboration-head strong {
  color: #140921;
  font-weight: 950;
}

.collaborator-field small,
.collaboration-head span,
.collaboration-current small {
  color: #6d627a;
  font-weight: 800;
}

.collaborator-picker,
.collaboration-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collaborator-option,
.collaboration-option,
.collaboration-current span,
.task-collab-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(139, 61, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #21162f;
  font-size: 12px;
  font-weight: 900;
}

.collaborator-option,
.collaboration-option {
  padding: 5px 10px 5px 6px;
  cursor: pointer;
}

.collaborator-option input,
.collaboration-option input {
  accent-color: #8b3dff;
}

.collaborator-option:has(input:checked),
.collaboration-option:has(input:checked) {
  border-color: rgba(139, 61, 255, .5);
  background: linear-gradient(135deg, rgba(139, 61, 255, .14), rgba(65, 183, 255, .1));
  box-shadow: 0 10px 24px rgba(139, 61, 255, .1);
}

.collaboration-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(139, 61, 255, .16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .84), rgba(247, 242, 255, .7));
}

.collaboration-current {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collaboration-current span {
  padding: 5px 10px 5px 5px;
}

.task-collab-line {
  justify-content: space-between;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .48);
}

.task-collab-line span {
  display: inline-flex;
  align-items: center;
}

.task-collab-line .avatar,
.collaboration-current .avatar,
.collaborator-option .avatar,
.collaboration-option .avatar {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.task-collab-line span .avatar + .avatar {
  margin-left: -7px;
}

.task-collab-line b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: -7px;
  border-radius: 50%;
  background: #140921;
  color: #fff;
  font-size: 10px;
}

.agenda-participants {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(139,61,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}

.agenda-participants > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.agenda-participants span {
  color: #140921;
  font-weight: 950;
}

.agenda-participants small {
  color: #756984;
  font-weight: 800;
}

.agenda-participant-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agenda-participant-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 9px 4px 5px;
  border: 1px solid rgba(139,61,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #21162f;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.agenda-participant-option input {
  accent-color: #8b3dff;
}

.agenda-participant-option:has(input:checked) {
  border-color: rgba(139,61,255,.5);
  background: linear-gradient(135deg, rgba(139,61,255,.14), rgba(65,183,255,.1));
}

.agenda-participant-option .avatar,
.agenda-participant-line .avatar,
.agenda-detail-people .avatar {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.agenda-item.meeting-item {
  border-color: rgba(139,61,255,.28) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(246,240,255,.86)) !important;
  box-shadow: inset 3px 0 0 #8b3dff, 0 10px 24px rgba(65,27,120,.08) !important;
}

.agenda-item.request-item {
  border-color: rgba(65,183,255,.28) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(243,247,255,.9)) !important;
  box-shadow: inset 4px 0 0 #41b7ff, 0 10px 24px rgba(30,64,175,.08) !important;
}

.agenda-item.request-approved {
  border-color: rgba(34,197,94,.22) !important;
  box-shadow: inset 4px 0 0 #22c55e, 0 10px 24px rgba(20,83,45,.07) !important;
}

.agenda-item.request-rejected {
  opacity: .72;
  border-color: rgba(148,126,169,.22) !important;
  box-shadow: inset 4px 0 0 #947ea9, 0 10px 24px rgba(65,27,120,.04) !important;
}

.request-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(139,61,255,.14);
}

.request-actions .primary-button,
.request-actions .secondary-button {
  width: auto;
  min-height: 42px;
  padding: 0 18px;
}

/* Criacao de demanda enxuta */
.task-modal.task-wizard {
  width: min(860px, calc(100vw - 28px)) !important;
  max-height: min(88vh, 860px) !important;
  overflow: auto !important;
  padding: 26px !important;
  border-radius: 22px !important;
}

.task-modal .modal-header {
  margin-bottom: 16px !important;
}

.task-modal .modal-header h2 {
  font-size: clamp(28px, 3vw, 42px) !important;
  letter-spacing: 0 !important;
}

.task-wizard-progress-clean {
  width: min(320px, 100%) !important;
  margin: 0 0 18px !important;
}

.task-clean-step,
.task-briefing-step {
  gap: 16px !important;
}

.task-step-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px;
}

.task-step-title strong {
  color: #160b25;
  font-size: 17px;
  font-weight: 900;
}

.task-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.task-create-grid .span-2 {
  grid-column: 1 / -1;
}

.task-create-grid label,
.task-briefing-step label {
  margin: 0 !important;
  color: #5b506d !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.task-create-grid input,
.task-create-grid select,
.task-briefing-step textarea {
  min-height: 48px !important;
  border-radius: 14px !important;
  border-color: rgba(216,204,232,.86) !important;
  background: rgba(255,255,255,.86) !important;
  color: #150a24 !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}

.task-briefing-step textarea {
  min-height: 156px !important;
  resize: vertical;
}

.task-advanced {
  margin-top: 6px;
  padding: 14px;
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 16px;
  background: rgba(255,255,255,.58);
}

.task-advanced summary {
  cursor: pointer;
  color: #411b78;
  font-size: 13px;
  font-weight: 900;
}

.task-advanced .task-create-grid {
  margin-top: 14px;
}

.collaborator-field.compact {
  min-height: 48px;
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.72) !important;
}

.task-wizard-actions {
  position: sticky;
  bottom: -26px;
  margin: 18px -26px -26px !important;
  padding: 14px 26px !important;
  border-top: 1px solid rgba(216,204,232,.72);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
}

.task-wizard-actions .primary-button,
.task-wizard-actions .secondary-button {
  min-height: 46px !important;
  border-radius: 14px !important;
}

@media (max-width: 720px) {
  .task-modal.task-wizard {
    width: 100vw !important;
    max-height: 100dvh !important;
    min-height: 100dvh !important;
    border-radius: 0 !important;
    padding: 18px !important;
  }

  .task-create-grid {
    grid-template-columns: 1fr;
  }

  .task-create-grid .span-2 {
    grid-column: auto;
  }

  .task-wizard-actions {
    bottom: -18px;
    margin: 16px -18px -18px !important;
    padding: 12px 18px !important;
  }
}

/* Rodada premium clean: menos ruido, mais produto. */
:root {
  --clean-border: rgba(216, 204, 232, .62);
  --clean-shadow: 0 14px 40px rgba(31, 21, 48, .075);
}

body {
  color: #160b25;
}

.topbar {
  min-height: 68px !important;
  margin-bottom: 14px !important;
  padding: 10px 0 14px !important;
  border-bottom: 1px solid rgba(216,204,232,.52) !important;
}

.topbar h1 {
  max-width: 620px !important;
  font-size: clamp(24px, 2.2vw, 34px) !important;
  line-height: 1.04 !important;
}

.topbar-actions {
  gap: 8px !important;
}

.global-search {
  min-width: min(330px, 30vw) !important;
  min-height: 44px !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.live-pill,
.spotify-mini-button,
.icon-button {
  min-height: 42px !important;
  border-radius: 14px !important;
}

.spotify-mini-button span {
  display: none;
}

.metrics-grid[data-view="dashboard"] {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.metric {
  min-height: 96px !important;
  padding: 16px !important;
  border-color: var(--clean-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--clean-shadow) !important;
}

.metric span {
  font-size: 12px !important;
}

.metric strong {
  font-size: 36px !important;
  line-height: .94 !important;
}

.metric small {
  font-size: 11px !important;
}

.command-center[data-view="dashboard"] > .panel {
  padding: 18px !important;
  border-radius: 22px !important;
  border-color: var(--clean-border) !important;
  box-shadow: var(--clean-shadow) !important;
}

.dashboard-focus-strip {
  display: grid !important;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(110px, .45fr)) !important;
  gap: 10px !important;
  margin: 10px 0 14px !important;
}

.focus-card,
.focus-mini {
  min-height: 88px !important;
  padding: 16px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(216,204,232,.66) !important;
  box-shadow: none !important;
}

.focus-card {
  background: linear-gradient(135deg, #1a0b2b, #5b22d6 62%, #8b3dff) !important;
}

.focus-card strong {
  font-size: 24px !important;
}

.focus-card small,
.focus-mini small {
  display: none !important;
}

.focus-mini {
  background: rgba(255,255,255,.82) !important;
}

.focus-mini strong {
  font-size: 34px !important;
}

.executive-grid,
.dashboard-intel,
.pilot-panel:empty,
.notification-center:empty {
  display: none !important;
}

.daily-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 8px !important;
}

.daily-columns > div {
  min-width: 0;
}

.daily-columns h3 {
  margin: 0 0 8px !important;
  color: #2a1a3b !important;
  font-size: 14px !important;
}

.daily-list {
  display: grid !important;
  gap: 8px !important;
}

.daily-item,
.event-item,
.notification-item,
.agenda-item {
  min-height: 58px !important;
  padding: 11px 12px !important;
  border-radius: 16px !important;
  border-color: rgba(216,204,232,.62) !important;
  box-shadow: none !important;
}

.daily-item span,
.daily-item small,
.event-item small,
.notification-item small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-center {
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(216,204,232,.48);
}

.notification-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.toolbar[data-view="kanban"] {
  display: grid !important;
  grid-template-columns: minmax(240px, 1fr) 150px repeat(3, minmax(124px, 160px)) auto !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  padding: 12px !important;
  border-radius: 18px !important;
  box-shadow: var(--clean-shadow) !important;
}

.kanban-date-actions {
  display: inline-flex;
  align-items: end;
  gap: 6px;
}

.kanban-date-actions button {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(216,204,232,.78);
  border-radius: 13px;
  background: rgba(255,255,255,.78);
  color: #411b78;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.kanban-date-actions button.active,
.kanban-date-actions button:hover {
  border-color: rgba(139,61,255,.42);
  background: rgba(139,61,255,.1);
}

.section-heading h2 {
  font-size: clamp(20px, 1.8vw, 28px) !important;
}

.kanban {
  gap: 12px !important;
}

.column {
  min-height: 520px !important;
  padding: 10px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.72) !important;
  border-color: rgba(216,204,232,.62) !important;
  box-shadow: none !important;
}

.column::before {
  height: 2px !important;
  margin-bottom: 10px !important;
  opacity: .72;
}

.column-header {
  margin-bottom: 10px !important;
}

.column-header h3 {
  font-size: 15px !important;
}

.column-header small {
  font-size: 11px !important;
  font-weight: 650 !important;
}

.task-card {
  padding: 12px !important;
  border-radius: 18px !important;
  gap: 9px !important;
  box-shadow: 0 8px 22px rgba(31,21,48,.055) !important;
}

.task-card.compact-card,
.task-card.micro-card {
  padding: 10px !important;
}

.task-card .card-topline {
  gap: 6px !important;
}

.task-card .priority,
.task-card .area-badge,
.task-card .approved-badge {
  min-height: 22px !important;
  padding: 0 8px !important;
  font-size: 10px !important;
}

.task-client-line strong {
  font-size: 13px !important;
}

.card-title > span {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px !important;
  line-height: 1.18 !important;
}

.card-info {
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  font-size: 11px !important;
}

.compact-meta {
  display: none !important;
}

.task-collab-line {
  padding-top: 0 !important;
  border-top: 0 !important;
}

.production-flow {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(216,204,232,.56);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(248,244,255,.76), rgba(255,255,255,.82));
}

.production-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.production-flow-head span {
  color: #6c5d7d;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.production-flow-head strong {
  color: #411b78;
  font-size: 11px;
  font-weight: 950;
  text-align: right;
}

.production-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.production-steps button {
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 1px solid rgba(216,204,232,.8);
  border-radius: 999px;
  background: #fff;
  color: #6c5d7d;
  cursor: pointer;
}

.production-steps button span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 11px;
  font-weight: 900;
}

.production-steps button.done {
  border-color: rgba(139,61,255,.4);
  background: rgba(139,61,255,.12);
  color: #411b78;
}

.production-steps button.current {
  border-color: transparent;
  background: linear-gradient(135deg, #8b3dff, #411b78);
  color: #fff;
  box-shadow: 0 8px 18px rgba(139,61,255,.2);
}

.process-production {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.process-production button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(216,204,232,.78);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  color: #5b506d;
  font-size: 12px;
  font-weight: 850;
}

.process-production button.current {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(139,61,255,.14), rgba(65,183,255,.12));
  color: #411b78;
  box-shadow: inset 0 0 0 1px rgba(139,61,255,.22);
}

.time-clock-page {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 16px;
}

.time-clock-panel,
.time-report-panel,
.time-admin-panel {
  border-radius: 22px !important;
  border-color: var(--clean-border) !important;
  box-shadow: var(--clean-shadow) !important;
}

.time-admin-panel {
  grid-column: 1 / -1;
}

.time-admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.time-admin-form label {
  display: grid;
  gap: 7px;
  color: #6b5e7c;
  font-size: 12px;
  font-weight: 850;
}

.time-admin-form .wide {
  grid-column: span 2;
}

.time-admin-form textarea {
  min-height: 48px;
  resize: vertical;
}

.time-admin-form button {
  min-height: 48px;
}

.time-punch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.time-punch-grid article {
  min-height: 84px;
  padding: 14px;
  border: 1px solid rgba(216,204,232,.68);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
}

.time-punch-grid article.done {
  background: linear-gradient(135deg, rgba(139,61,255,.12), rgba(65,183,255,.1));
  border-color: rgba(139,61,255,.28);
}

.time-punch-grid article.late {
  border-color: rgba(239,68,68,.32);
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,235,235,.76));
}

.time-punch-grid article.early {
  border-color: rgba(245,158,11,.32);
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,247,224,.76));
}

.time-punch-grid article.total {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #1a0b2b, #5b22d6 62%, #8b3dff);
  color: #fff;
}

.time-punch-grid span {
  display: block;
  color: inherit;
  opacity: .72;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.time-punch-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
}

.time-punch-grid small {
  display: block;
  margin-top: 7px;
  color: #6c5d7d;
  font-size: 11px;
  font-weight: 800;
}

.time-clock-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.time-clock-actions button {
  min-height: 48px !important;
  border-radius: 14px !important;
}

.time-clock-actions button:disabled,
.mandatory-time-modal button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.time-clock-panel textarea {
  min-height: 92px;
  border-radius: 16px;
}

.time-report-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.time-report-controls input,
.time-report-controls select {
  min-height: 40px;
  border: 1px solid rgba(216,204,232,.82);
  border-radius: 12px;
  padding: 0 10px;
  background: rgba(255,255,255,.86);
  color: #160b25;
  font-weight: 800;
}

.time-report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.time-report-summary article {
  padding: 14px;
  border: 1px solid rgba(216,204,232,.64);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}

.time-report-summary span {
  color: #6c5d7d;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.time-report-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.time-report-table {
  max-height: 520px;
  overflow: auto;
}

.time-report-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.time-report-table th {
  color: #6c5d7d;
  font-size: 11px;
  text-transform: uppercase;
  text-align: left;
}

.time-report-table td {
  padding: 12px;
  background: rgba(255,255,255,.78);
  border-top: 1px solid rgba(216,204,232,.58);
  border-bottom: 1px solid rgba(216,204,232,.58);
  font-weight: 760;
}

.time-report-table td small {
  display: block;
  margin-top: 4px;
  color: #6c5d7d;
  font-size: 10px;
  font-weight: 800;
}

.time-report-table td:first-child {
  border-left: 1px solid rgba(216,204,232,.58);
  border-radius: 14px 0 0 14px;
}

.time-report-table td:last-child {
  border-right: 1px solid rgba(216,204,232,.58);
  border-radius: 0 14px 14px 0;
}

.mandatory-time-modal {
  z-index: 2000;
  backdrop-filter: blur(18px);
}

.time-required-card {
  width: min(520px, calc(100vw - 28px)) !important;
  border-radius: 26px !important;
  text-align: left;
}

.time-required-card p {
  margin: -4px 0 16px;
  color: #6c5d7d;
  font-weight: 700;
}

.time-modal-note {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #6c5d7d;
  font-size: 12px;
  font-weight: 850;
}

.time-modal-note textarea {
  min-height: 76px;
  border-radius: 16px;
  resize: vertical;
}

.time-required-card .modal-time-actions {
  margin-top: 16px;
}

@media (max-width: 920px) {
  .time-clock-page {
    grid-template-columns: 1fr;
  }

  .time-report-controls {
    justify-content: stretch;
  }

  .time-report-controls > * {
    flex: 1 1 140px;
  }

  .time-admin-form {
    grid-template-columns: 1fr;
  }

  .time-admin-form .wide {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .time-punch-grid,
  .time-clock-actions,
  .time-report-summary {
    grid-template-columns: 1fr;
  }
}

.card-actions {
  grid-template-columns: repeat(5, 34px) !important;
  gap: 6px !important;
}

.card-actions button {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 12px !important;
}

.task-hover-preview {
  display: none !important;
  pointer-events: none !important;
}

.task-card:has(.task-brief-dot:hover) .task-hover-preview,
.task-card:has(.task-brief-dot:focus-visible) .task-hover-preview {
  display: block !important;
  max-width: min(320px, 78vw);
  pointer-events: none !important;
}

.agenda-workspace[data-view="agenda"] {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) !important;
  gap: 14px !important;
}

.agenda-form-panel,
.agenda-list-panel {
  border-radius: 22px !important;
  border-color: var(--clean-border) !important;
  box-shadow: var(--clean-shadow) !important;
}

.agenda-form {
  gap: 10px !important;
}

.agenda-form label {
  font-size: 12px !important;
}

.calendar-shell {
  gap: 10px !important;
}

.calendar-day {
  min-height: 78px !important;
  border-radius: 14px !important;
}

.calendar-day-panel {
  max-height: 360px;
  overflow: auto;
}

.sidebar {
  box-shadow: 18px 0 44px rgba(31,21,48,.08) !important;
}

.nav-list a {
  min-height: 40px !important;
  font-size: 13px !important;
}

.menu-label {
  margin-top: 8px !important;
  font-size: 10px !important;
}

@media (max-width: 1180px) {
  .metrics-grid[data-view="dashboard"],
  .dashboard-focus-strip,
  .daily-columns,
  .notification-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .agenda-workspace[data-view="agenda"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .app-main {
    padding: 84px 12px 96px !important;
  }

  .topbar {
    gap: 10px !important;
  }

  .topbar h1 {
    font-size: 25px !important;
  }

  .topbar-actions {
    display: grid !important;
    grid-template-columns: 1fr repeat(3, 42px) !important;
    width: 100% !important;
  }

  .global-search {
    min-width: 0 !important;
    grid-column: 1 / -1;
  }

  .live-pill,
  .spotify-mini-button {
    display: none !important;
  }

  .topbar-actions [data-open-task] {
    grid-column: 1 / -1;
    width: 100%;
  }

  .metrics-grid[data-view="dashboard"],
  .dashboard-focus-strip,
  .daily-columns,
  .notification-list {
    grid-template-columns: 1fr !important;
  }

  .metric {
    min-height: 82px !important;
  }

  .focus-card,
  .focus-mini {
    min-height: 76px !important;
  }

  .toolbar[data-view="kanban"] {
    grid-template-columns: 1fr !important;
  }

  .kanban-date-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .kanban {
    grid-template-columns: repeat(4, minmax(280px, 86vw)) !important;
  }

  .task-card {
    min-height: auto !important;
  }

  .calendar-grid {
    gap: 6px !important;
  }

  .calendar-day {
    min-height: 62px !important;
    padding: 8px !important;
  }

  .calendar-day strong,
  .calendar-day small {
    display: none !important;
  }

  .agenda-item {
    grid-template-columns: 1fr !important;
  }

  .agenda-actions {
    justify-content: flex-start !important;
  }
}

.agenda-item.priority-Alta {
  border-color: rgba(239,68,68,.24) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,235,235,.86)) !important;
  box-shadow: inset 4px 0 0 #ef4444, 0 10px 24px rgba(127,29,29,.08) !important;
}

.agenda-item.priority-Media {
  border-color: rgba(245,158,11,.26) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,247,224,.86)) !important;
  box-shadow: inset 4px 0 0 #f59e0b, 0 10px 24px rgba(146,64,14,.07) !important;
}

.agenda-item.priority-Baixa {
  border-color: rgba(34,197,94,.22) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(235,255,243,.86)) !important;
  box-shadow: inset 4px 0 0 #22c55e, 0 10px 24px rgba(20,83,45,.07) !important;
}

.calendar-day small i.agenda-dot-Alta {
  background: #ef4444 !important;
}

.calendar-day small i.agenda-dot-Media {
  background: #f59e0b !important;
}

.calendar-day small i.agenda-dot-Baixa {
  background: #22c55e !important;
}

.agenda-type-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b3dff, #411b78);
  color: #fff;
  font-style: normal;
  font-weight: 950;
}

.agenda-participant-line {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
}

.agenda-participant-line .avatar + .avatar {
  margin-left: -7px;
}

.agenda-participant-line i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: -7px;
  border-radius: 50%;
  background: #140921;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.agenda-detail-people {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

.agenda-detail-people span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 5px;
  border: 1px solid rgba(139,61,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  font-weight: 900;
}

.permission-picker,
.permission-grid {
  border-radius: 16px !important;
  background: rgba(255,255,255,.72) !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--evo-soft-line);
}

.permission-picker legend {
  padding: 0 6px;
  color: var(--evo-muted);
  font-size: 12px;
  font-weight: 900;
}

.permission-picker label,
.permission-grid label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f8f5fd;
  color: #332642;
  font-size: 12px;
}

.permission-picker input,
.permission-grid input {
  width: 17px;
  min-height: 17px;
}

.permission-modal {
  width: min(620px, 94vw) !important;
}

.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

table {
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
}

td,
th {
  border: 0 !important;
}

tbody tr {
  background: rgba(255,255,255,.78);
  box-shadow: 0 6px 16px rgba(65,27,120,.05);
}

tbody td:first-child {
  border-radius: 12px 0 0 12px;
}

tbody td:last-child {
  border-radius: 0 12px 12px 0;
}

.chat-window {
  border: 1px solid rgba(139,61,255,.20) !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.80) !important;
  backdrop-filter: blur(22px);
}

.chat-window header {
  border-radius: 20px 20px 0 0 !important;
}

.spotify-mini-button {
  min-width: 44px !important;
  border-color: rgba(30,215,96,.24) !important;
}

.login-card {
  border-radius: 24px !important;
}

.login-insight {
  border-radius: 16px !important;
}

@media (max-width: 1180px) {
  .metrics-grid[data-view="dashboard"],
  .dashboard-intel,
  .daily-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .dashboard-focus-strip {
    grid-template-columns: 1fr 1fr !important;
  }

  .task-wizard .task-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .app-main {
    margin-left: 0 !important;
    padding: 12px 10px 92px !important;
  }

  .topbar {
    position: static;
  }

  .metrics-grid[data-view="dashboard"],
  .dashboard-focus-strip,
  .dashboard-intel,
  .daily-columns,
  .executive-grid {
    grid-template-columns: 1fr !important;
  }

  .task-wizard .task-presets,
  .permission-picker,
  .permission-grid {
    grid-template-columns: 1fr !important;
  }

  .modal {
    width: min(96vw, 720px) !important;
    max-height: 94vh !important;
  }
}

/* Dashboard executivo v2: menos bloco, mais leitura visual. */
body.motion-ready::before {
  display: none !important;
}

.dashboard-focus-strip {
  display: grid !important;
  grid-template-columns: minmax(320px, 1.2fr) minmax(300px, 1fr) repeat(3, minmax(130px, .42fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
  margin: 18px 0 !important;
}

.ops-command-card,
.ops-chart-card,
.ops-mini-card {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 20px;
  border: 1px solid rgba(216,204,232,.68);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(248,250,255,.82)),
    radial-gradient(circle at 100% 0, rgba(65,183,255,.12), transparent 36%);
  box-shadow: 0 18px 48px rgba(65,27,120,.08);
}

.ops-command-card {
  display: grid;
  grid-template-columns: 1fr 136px;
  gap: 18px;
  align-items: center;
}

.ops-command-card::before,
.ops-chart-card::before,
.ops-mini-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #41b7ff, #8b3dff, #1a0b2b);
  opacity: .65;
}

.ops-command-card span,
.ops-chart-card > span,
.ops-mini-card span {
  display: block;
  color: #7a6b8e;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ops-command-card strong {
  display: block;
  margin: 10px 0 8px;
  color: #160b25;
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: .98;
  font-weight: 780;
}

.ops-command-card small,
.ops-mini-card small {
  color: #6c5d7d;
  font-weight: 720;
}

.radial-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
}

.radial-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.radial-chart circle {
  fill: none;
  stroke: rgba(216,204,232,.75);
  stroke-width: 4;
}

.radial-chart .progress {
  stroke: url("#noop");
  stroke: #41b7ff;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(65,183,255,.34));
  transition: stroke-dasharray .6s ease;
}

.radial-chart b {
  color: #160b25;
  font-size: 28px;
  line-height: 1;
}

.radial-chart small {
  margin-top: 36px;
  color: #7a6b8e;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.kanban-bars {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.kanban-bars div {
  display: grid;
  grid-template-columns: 88px 34px 1fr;
  gap: 10px;
  align-items: center;
}

.kanban-bars small {
  color: #6c5d7d;
  font-size: 11px;
  font-weight: 850;
}

.kanban-bars strong {
  color: #160b25;
  font-size: 18px;
}

.kanban-bars i {
  position: relative;
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(216,204,232,.5);
}

.kanban-bars i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  border-radius: inherit;
  background: linear-gradient(90deg, #41b7ff, #8b3dff);
  animation: barGrow .65s ease both;
}

.ops-mini-card {
  display: grid;
  align-content: center;
  min-height: 154px;
}

.ops-mini-card strong {
  margin: 10px 0 4px;
  color: #160b25;
  font-size: 42px;
  line-height: 1;
  font-weight: 760;
}

.executive-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.executive-card {
  min-height: 102px !important;
  border-radius: 20px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(248,250,255,.78)),
    radial-gradient(circle at 90% 18%, rgba(65,183,255,.1), transparent 32%) !important;
}

.daily-columns {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.daily-columns > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(216,204,232,.58);
  border-radius: 20px;
  background: rgba(255,255,255,.62);
}

.daily-columns h3 {
  margin: 0 0 10px !important;
  color: #271a3a;
  font-size: 15px !important;
  font-weight: 780 !important;
}

.daily-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.daily-card,
.daily-item,
.agenda-item {
  min-height: auto !important;
  padding: 12px !important;
  border-radius: 16px !important;
}

.daily-card strong,
.daily-item strong,
.agenda-item strong {
  font-size: 14px !important;
  line-height: 1.15 !important;
}

.daily-card small,
.daily-item small,
.agenda-item small {
  font-size: 11px !important;
  line-height: 1.25 !important;
}

.agenda-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.agenda-actions .quiet-action {
  min-height: 30px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
}

.pilot-panel {
  display: none !important;
}

@keyframes barGrow {
  from { width: 0; }
}

@media (max-width: 1280px) {
  .dashboard-focus-strip {
    grid-template-columns: 1fr 1fr !important;
  }

  .ops-mini-card {
    min-height: 112px;
  }
}

@media (max-width: 900px) {
  .dashboard-focus-strip,
  .executive-grid,
  .daily-columns {
    grid-template-columns: 1fr !important;
  }

  .ops-command-card {
    grid-template-columns: 1fr;
  }
}

/* Ajuste fino definitivo: dashboard enxuto, Kanban suave e agenda compacta. */
.executive-grid,
.notification-center,
.pilot-flow {
  display: none !important;
}

.pilot-panel {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr) !important;
}

.pilot-focus {
  grid-column: auto !important;
}

.task-card.task-priority-Alta,
.task-card.task-priority-Media,
.task-card.task-priority-Baixa {
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,255,255,.78)) !important;
  border-top-color: rgba(139,61,255,.12) !important;
  border-right-color: rgba(139,61,255,.12) !important;
  border-bottom-color: rgba(139,61,255,.12) !important;
  border-left-width: 5px !important;
  box-shadow: 0 10px 28px rgba(65,27,120,.08) !important;
}

.task-card.task-priority-Alta {
  border-left-color: #e11d48 !important;
}

.task-card.task-priority-Media {
  border-left-color: #f59e0b !important;
}

.task-card.task-priority-Baixa {
  border-left-color: #16a34a !important;
}

.task-card.task-priority-Alta::before,
.task-card.task-priority-Media::before,
.task-card.task-priority-Baixa::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: .5;
}

.task-card.task-priority-Alta::before {
  background: linear-gradient(90deg, rgba(225,29,72,.12), transparent 44%);
}

.task-card.task-priority-Media::before {
  background: linear-gradient(90deg, rgba(245,158,11,.13), transparent 44%);
}

.task-card.task-priority-Baixa::before {
  background: linear-gradient(90deg, rgba(22,163,74,.12), transparent 44%);
}

.task-card.task-priority-Alta:hover,
.task-card.task-priority-Media:hover,
.task-card.task-priority-Baixa:hover {
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(249,245,255,.84)) !important;
  box-shadow: 0 16px 36px rgba(65,27,120,.13) !important;
}

.task-card.approved-card,
.archive-column .task-card.approved-card {
  background:
    linear-gradient(145deg, rgba(240,253,244,.96), rgba(255,255,255,.8)) !important;
  border-left-width: 5px !important;
  border-left-color: #10874e !important;
}

.calendar-day small.agenda-day-dots {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  align-items: center !important;
  line-height: 1 !important;
}

.calendar-day small.agenda-day-dots i {
  width: 7px !important;
  height: 7px !important;
  flex: 0 0 7px !important;
  margin: 0 !important;
  border-radius: 999px !important;
}

.calendar-day small.agenda-day-dots em {
  color: #6d617b !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

@media (max-width: 1180px) {
  .pilot-panel {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile product experience: app-like, lighter, and touch-first. */
@media (max-width: 820px) {
  body {
    background:
      radial-gradient(circle at 10% -10%, rgba(139,61,255,.16), transparent 34%),
      linear-gradient(180deg, #fbfaff 0%, #f3f0fa 100%) !important;
  }

  .app-main {
    padding: 12px 12px calc(92px + env(safe-area-inset-bottom)) !important;
  }

  .sidebar {
    position: fixed !important;
    inset: auto 10px calc(10px + env(safe-area-inset-bottom)) 10px !important;
    z-index: 45 !important;
    width: auto !important;
    height: 70px !important;
    min-height: 0 !important;
    display: block !important;
    padding: 8px !important;
    border: 1px solid rgba(139,61,255,.16) !important;
    border-radius: 22px !important;
    background: rgba(21, 11, 36, .88) !important;
    box-shadow: 0 18px 50px rgba(32, 15, 54, .24) !important;
    backdrop-filter: blur(22px);
    overflow: hidden !important;
  }

  .sidebar::before,
  .sidebar::after,
  .sidebar-circuit,
  .sidebar .brand,
  .sidebar .menu-label,
  .sidebar .profile-box {
    display: none !important;
  }

  .nav-list {
    height: 100%;
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(68px, 1fr);
    align-items: center;
    gap: 6px !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-list a {
    min-width: 68px;
    height: 52px;
    display: grid !important;
    place-items: center;
    gap: 2px !important;
    padding: 6px 8px !important;
    border-radius: 16px !important;
    color: rgba(255,255,255,.72) !important;
    font-size: 10px !important;
    line-height: 1 !important;
    text-align: center;
    white-space: nowrap;
  }

  .nav-list a.active {
    background: linear-gradient(135deg, #8b3dff, #411b78) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(139,61,255,.32) !important;
  }

  .nav-icon {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
  }

  .topbar {
    position: sticky !important;
    top: 0;
    z-index: 25;
    min-height: 0 !important;
    margin: -12px -12px 12px !important;
    padding: 12px 12px 10px !important;
    border: 0 !important;
    background: rgba(251,250,255,.9) !important;
    backdrop-filter: blur(18px);
  }

  .topbar > div:first-child {
    width: 100%;
  }

  .topbar h1 {
    max-width: 100% !important;
    font-size: 22px !important;
    line-height: 1.08 !important;
  }

  .topbar .eyebrow {
    font-size: 10px !important;
  }

  .topbar-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr auto auto auto !important;
    gap: 8px !important;
  }

  .topbar-actions .search-box {
    min-width: 0 !important;
  }

  .topbar-actions .primary-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
  }

  .live-pill {
    min-height: 38px;
    justify-content: center;
  }

  .metrics-grid[data-view="dashboard"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .metric {
    min-height: 96px !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .metric span,
  .metric small {
    font-size: 11px !important;
  }

  .metric strong {
    font-size: 30px !important;
    line-height: 1 !important;
  }

  .dashboard-focus-strip,
  .dashboard-intel,
  .daily-columns,
  .agenda-workspace,
  .admin-grid,
  .form-grid,
  .company-grid,
  .advisory-grid,
  .traffic-grid,
  .finance-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .panel,
  .metric,
  .company-card,
  .daily-card,
  .executive-card {
    border-radius: 18px !important;
  }

  .section-heading,
  .calendar-head {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .section-heading .date-control,
  .section-heading select,
  .section-heading input {
    width: 100%;
  }

  .kanban-board {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(280px, 86vw) !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    margin-inline: -12px;
    padding: 0 12px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .kanban-board::-webkit-scrollbar {
    display: none;
  }

  .column {
    min-height: 62vh !important;
    scroll-snap-align: start;
  }

  .task-card {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .task-card .card-title strong {
    font-size: 15px !important;
  }

  .task-card .card-title span,
  .task-card .card-info,
  .task-card .card-meta {
    font-size: 12px !important;
  }

  .card-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .card-actions button {
    min-height: 40px !important;
  }

  .calendar-grid,
  .calendar-weekdays {
    gap: 5px !important;
  }

  .calendar-day {
    min-height: 54px !important;
    padding: 6px !important;
    border-radius: 13px !important;
  }

  .calendar-day small {
    display: none !important;
  }

  .calendar-day-panel {
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .agenda-item {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .agenda-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .modal-backdrop {
    align-items: end !important;
    padding: 0 !important;
  }

  .modal {
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 92vh !important;
    margin: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    padding: 16px !important;
  }

  .task-wizard {
    width: 100vw !important;
  }

  .task-wizard-progress {
    max-width: 220px !important;
  }

  .task-wizard .task-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .task-presets button {
    min-height: 72px !important;
    padding: 10px !important;
  }

  label,
  .agenda-form label {
    font-size: 12px !important;
  }

  input,
  select,
  textarea {
    min-height: 44px !important;
    font-size: 16px !important;
  }

  .chat-dock {
    right: 10px !important;
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  }

  .chat-dock:not(.minimized) {
    inset: auto 8px calc(84px + env(safe-area-inset-bottom)) 8px !important;
    width: auto !important;
    height: min(70vh, 620px) !important;
  }

  .chat-window {
    width: 100% !important;
    height: 100% !important;
    border-radius: 22px !important;
  }

  .chat-window-body {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }

  .chat-form {
    grid-template-columns: 1fr 42px 72px !important;
  }

  .chat-fab {
    min-width: 0 !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
  }

  .chat-fab-mascot {
    width: 36px !important;
    height: 36px !important;
  }
}

@media (max-width: 480px) {
  .metrics-grid[data-view="dashboard"] {
    grid-template-columns: 1fr 1fr !important;
  }

  .topbar-actions {
    grid-template-columns: 1fr 44px 44px !important;
  }

  .live-pill {
    display: none !important;
  }

  .task-wizard .task-presets {
    grid-template-columns: 1fr !important;
  }

  .chat-window-body {
    grid-template-columns: 82px minmax(0, 1fr) !important;
  }

  .chat-threads strong,
  .chat-threads small {
    display: none !important;
  }
}

/* Clean UX pass: calmer typography, lighter desktop, dedicated mobile screens. */
:root {
  --evo-shadow: 0 12px 30px rgba(65, 27, 120, .075);
  --evo-shadow-soft: 0 6px 18px rgba(65, 27, 120, .055);
}

body {
  font-weight: 500 !important;
}

.topbar h1,
.section-heading h2,
.modal h2,
.card-title strong,
.company-head strong,
.agenda-main strong,
.daily-item strong,
.event-item strong,
.person-top strong,
.chat-message strong {
  font-weight: 760 !important;
}

.eyebrow,
.menu-label,
.metric span,
.metric small,
.card-meta,
.area-badge,
.status-badge,
.priority,
.count-pill,
label,
th,
.form-hint,
.calendar-weekdays span,
.agenda-main small b {
  font-weight: 680 !important;
  letter-spacing: 0 !important;
}

.topbar,
.panel,
.section-block,
.toolbar,
.metric,
.column,
.modal,
.user-create-card,
.company-card,
.traffic-card,
.agenda-item,
.daily-item,
.person-item,
.goal-item,
.intel-card,
.executive-card,
.pilot-panel {
  background: rgba(255,255,255,.86) !important;
  box-shadow: 0 8px 24px rgba(65,27,120,.055) !important;
}

.topbar {
  border-radius: 18px !important;
}

.topbar h1 {
  font-size: clamp(24px, 2vw, 34px) !important;
}

.metrics-grid[data-view="dashboard"] .metric strong,
.metric strong {
  font-weight: 720 !important;
}

.metric::before,
.metric::after,
.intel-card::before,
.executive-card::before,
.pilot-panel::before {
  opacity: .34 !important;
}

.task-card {
  box-shadow: 0 6px 18px rgba(65,27,120,.055) !important;
}

.task-card:hover,
.company-card:hover,
.agenda-item:hover,
.metric:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 28px rgba(65,27,120,.075) !important;
}

.primary-button,
.secondary-button,
.quiet-action,
.danger-action,
.icon-button,
.ghost-button {
  font-weight: 700 !important;
}

.nav-list a {
  font-weight: 650 !important;
}

.nav-list a.active {
  font-weight: 720 !important;
}

@media (min-width: 821px) {
  .app-main {
    padding-top: 20px !important;
  }

  .metrics-grid[data-view="dashboard"] {
    gap: 12px !important;
  }

  .command-center[data-view="dashboard"] > .panel,
  .section-block,
  .panel {
    padding: 18px !important;
  }

  .column {
    padding: 14px !important;
  }

  .task-card {
    gap: 9px !important;
  }

  .company-card,
  .agenda-item {
    padding: 14px !important;
  }
}

@media (max-width: 820px) {
  body {
    background: linear-gradient(180deg, #fdfcff 0%, #f5f2fb 100%) !important;
  }

  body::before {
    opacity: .12 !important;
  }

  .app-main {
    padding-inline: 10px !important;
  }

  .topbar {
    margin: -12px -10px 10px !important;
    padding: 10px !important;
    border-radius: 0 0 18px 18px !important;
  }

  .topbar h1 {
    font-size: 20px !important;
  }

  .topbar-actions {
    grid-template-columns: 1fr 42px 42px !important;
  }

  .topbar-actions .search-box {
    grid-column: 1 / -1;
    order: 2;
  }

  .topbar-actions .primary-button {
    order: 3;
  }

  .metrics-grid[data-view="dashboard"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .metric {
    min-height: 86px !important;
    padding: 11px !important;
  }

  .metric strong {
    font-size: 26px !important;
  }

  .metric::after {
    width: 28px !important;
    height: 28px !important;
    border-radius: 10px !important;
    opacity: .52 !important;
  }

  body[data-active-view="dashboard"] .dashboard-intel,
  body[data-active-view="dashboard"] .daily-columns,
  body[data-active-view="dashboard"] .notification-center {
    gap: 10px !important;
  }

  body[data-active-view="dashboard"] .dashboard-focus-strip article,
  body[data-active-view="dashboard"] .intel-card,
  body[data-active-view="dashboard"] .daily-card {
    padding: 12px !important;
  }

  body[data-active-view="dashboard"] .pilot-flow,
  body[data-active-view="dashboard"] .pilot-focus {
    display: none !important;
  }

  body[data-active-view="kanban"] .topbar .eyebrow::after {
    content: " · deslize para ver as etapas";
    color: var(--evo-muted);
  }

  body[data-active-view="kanban"] .kanban-board {
    grid-auto-columns: minmax(286px, 88vw) !important;
    padding-bottom: 18px !important;
  }

  body[data-active-view="kanban"] .column {
    min-height: calc(100dvh - 230px) !important;
    padding: 12px !important;
  }

  body[data-active-view="kanban"] .column-header h3 {
    font-size: 16px !important;
  }

  body[data-active-view="kanban"] .column-header small {
    display: none !important;
  }

  body[data-active-view="kanban"] .task-hover-preview {
    display: none !important;
  }

  body[data-active-view="agenda"] .agenda-form-panel {
    order: 2;
  }

  body[data-active-view="agenda"] .agenda-list-panel {
    order: 1;
  }

  body[data-active-view="agenda"] .agenda-workspace {
    display: flex !important;
    flex-direction: column;
  }

  body[data-active-view="agenda"] .agenda-form-panel .section-heading h2 {
    font-size: 18px !important;
  }

  body[data-active-view="agenda"] .calendar-shell {
    gap: 10px !important;
  }

  body[data-active-view="agenda"] .agenda-form {
    gap: 10px !important;
  }

  body[data-active-view="agenda"] textarea {
    min-height: 86px !important;
  }

  body[data-active-view="clientes"] .company-summary,
  body[data-active-view="financeiro"] .company-summary {
    grid-template-columns: 1fr !important;
  }

  .company-card {
    padding: 12px !important;
  }

  .company-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-actions .icon-action {
    width: 100% !important;
  }

  .modal-header h2 {
    font-size: 20px !important;
  }

  .modal-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
  }

  .modal-actions .primary-button {
    grid-column: 1 / -1;
  }

  .task-wizard-actions .primary-button {
    grid-column: 1 / -1;
  }

  body:has(.chat-dock:not(.minimized)) .sidebar {
    opacity: .18;
    pointer-events: none;
  }

  .chat-window-head strong {
    font-size: 15px !important;
  }

  .chat-message {
    padding: 9px !important;
  }

  .chat-message strong,
  .chat-message p,
  .chat-message a {
    font-size: 13px !important;
    line-height: 1.32 !important;
  }
}

@media (max-width: 480px) {
  .topbar-actions {
    grid-template-columns: 1fr 40px 40px !important;
  }

  .metrics-grid[data-view="dashboard"] {
    gap: 8px !important;
  }

  .metric {
    min-height: 78px !important;
  }

  .metric span,
  .metric small {
    font-size: 10px !important;
  }

  .metric strong {
    font-size: 24px !important;
  }

  .task-card .card-meta,
  .task-collab-line,
  .compact-meta {
    display: none !important;
  }

  .card-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .chat-form {
    grid-template-columns: 1fr 40px 58px !important;
  }
}

/* Dashboard repair: prevent inline text collapse and restore readable cards. */
.dashboard-focus-strip {
  display: grid !important;
  align-items: stretch !important;
  gap: 12px !important;
  margin: 14px 0 16px !important;
}

.dashboard-focus-strip article {
  position: relative;
  display: grid !important;
  align-content: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  min-height: 92px !important;
  padding: 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(139,61,255,.13) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.9) !important;
  box-shadow: 0 8px 22px rgba(65,27,120,.055) !important;
}

.dashboard-focus-strip article span,
.dashboard-focus-strip article strong,
.dashboard-focus-strip article small {
  display: block !important;
  min-width: 0 !important;
  line-height: 1.12 !important;
}

.dashboard-focus-strip article span {
  color: var(--evo-purple) !important;
  font-size: 11px !important;
  font-weight: 720 !important;
}

.dashboard-focus-strip article strong {
  color: var(--evo-ink) !important;
  font-size: 30px !important;
  font-weight: 720 !important;
  letter-spacing: 0 !important;
}

.dashboard-focus-strip article small {
  color: var(--evo-muted) !important;
  font-size: 13px !important;
  font-weight: 560 !important;
  line-height: 1.35 !important;
}

.dashboard-focus-strip .focus-card {
  align-content: end !important;
  min-height: 118px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 92% 18%, rgba(255,255,255,.20), transparent 28%),
    linear-gradient(135deg, #160824 0%, #411b78 62%, #8b3dff 100%) !important;
}

.dashboard-focus-strip .focus-card span,
.dashboard-focus-strip .focus-card strong,
.dashboard-focus-strip .focus-card small {
  color: #fff !important;
}

.dashboard-focus-strip .focus-card span {
  opacity: .74;
}

.dashboard-focus-strip .focus-card strong {
  max-width: 620px;
  font-size: clamp(24px, 2.1vw, 34px) !important;
}

.dashboard-focus-strip .focus-card small {
  max-width: 680px;
  opacity: .82;
}

.dashboard-focus-strip .focus-mini::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(139,61,255,.08);
}

.executive-grid {
  display: grid !important;
  gap: 12px !important;
}

.executive-card {
  display: grid !important;
  align-content: center !important;
  gap: 5px !important;
}

.executive-card span,
.executive-card strong,
.executive-card small {
  display: block !important;
}

.executive-card strong {
  font-size: 30px !important;
  font-weight: 720 !important;
}

@media (max-width: 820px) {
  .dashboard-focus-strip {
    grid-template-columns: 1fr !important;
  }

  .dashboard-focus-strip .focus-card {
    min-height: 116px !important;
  }

  .dashboard-focus-strip .focus-mini {
    min-height: 78px !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
  }

  .dashboard-focus-strip .focus-mini span,
  .dashboard-focus-strip .focus-mini small {
    grid-column: 1;
  }

  .dashboard-focus-strip .focus-mini strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 30px !important;
  }

  .dashboard-focus-strip .focus-mini::after {
    display: none !important;
  }
}

/* Premium motion layer: tecnologia limpa, com movimento leve e sem poluir a operação. */
body.motion-ready::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(420px circle at var(--cursor-x, 72%) var(--cursor-y, 22%), rgba(139,61,255,.13), transparent 58%),
    linear-gradient(120deg, rgba(65,183,255,.055), transparent 36%, rgba(139,61,255,.07));
  transition: background .24s ease;
}

.motion-ready .panel,
.motion-ready .metric,
.motion-ready .task-card,
.motion-ready .agenda-item,
.motion-ready .company-card,
.motion-ready .time-person-card,
.motion-ready .time-punch-grid article {
  opacity: 0;
  transform: translateY(10px) scale(.992);
}

.motion-ready .motion-visible {
  opacity: 1 !important;
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(0) scale(1) !important;
  transition:
    opacity .42s ease var(--motion-delay, 0ms),
    transform .42s cubic-bezier(.2,.8,.2,1) var(--motion-delay, 0ms),
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.motion-ready .panel::after,
.motion-ready .metric::after,
.motion-ready .task-card::after,
.motion-ready .agenda-item::after,
.motion-ready .company-card::after,
.motion-ready .time-person-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(280px circle at var(--surface-x, 50%) var(--surface-y, 50%), rgba(139,61,255,.16), transparent 46%);
  transition: opacity .18s ease;
}

.motion-ready .panel:hover::after,
.motion-ready .metric:hover::after,
.motion-ready .task-card:hover::after,
.motion-ready .agenda-item:hover::after,
.motion-ready .company-card:hover::after,
.motion-ready .time-person-card:hover::after {
  opacity: 1;
}

.topbar,
.sidebar,
.panel,
.metric,
.modal,
.toolbar,
.task-card,
.agenda-item,
.company-card {
  backdrop-filter: blur(18px) saturate(1.1) !important;
}

.topbar {
  border: 1px solid rgba(216,204,232,.52) !important;
  border-radius: 24px !important;
  padding: 18px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(248,244,255,.72)),
    radial-gradient(circle at 12% 0, rgba(139,61,255,.12), transparent 34%) !important;
  box-shadow: 0 18px 48px rgba(65,27,120,.08) !important;
}

.topbar h1 {
  font-weight: 760 !important;
  letter-spacing: 0 !important;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(22,11,45,.98), rgba(33,12,62,.96)),
    radial-gradient(circle at 18% 12%, rgba(139,61,255,.32), transparent 28%) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.08), 18px 0 60px rgba(22,11,45,.12) !important;
}

.nav-list a {
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease !important;
}

.nav-list a:hover {
  transform: translateX(4px);
  background: rgba(255,255,255,.12) !important;
  box-shadow: inset 2px 0 0 rgba(139,61,255,.82);
}

.nav-list a.active {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,240,255,.92)) !important;
  box-shadow: 0 14px 30px rgba(139,61,255,.18) !important;
}

.panel,
.metric,
.toolbar,
.task-card,
.agenda-item,
.company-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216,204,232,.62) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.86), rgba(250,248,255,.74)),
    radial-gradient(circle at 0 0, rgba(139,61,255,.055), transparent 32%) !important;
  box-shadow: 0 18px 44px rgba(65,27,120,.075) !important;
}

.panel:hover,
.metric:hover,
.task-card:hover,
.agenda-item:hover,
.company-card:hover {
  border-color: rgba(139,61,255,.34) !important;
  box-shadow: 0 22px 54px rgba(65,27,120,.12) !important;
}

.metric {
  min-height: 96px !important;
}

.metric strong {
  font-weight: 760 !important;
}

.time-clock-page {
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr) !important;
  align-items: start;
}

.time-clock-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 10px;
}

.time-clock-timeline article {
  position: relative;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(216,204,232,.7);
  border-radius: 16px;
  background: rgba(255,255,255,.7);
  overflow: hidden;
}

.time-clock-timeline article::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8cce8;
}

.time-clock-timeline article.done::before { background: #8b3dff; box-shadow: 0 0 0 5px rgba(139,61,255,.12); }
.time-clock-timeline article.next::before { background: #41b7ff; box-shadow: 0 0 0 5px rgba(65,183,255,.16); animation: evoPulse 1.4s ease infinite; }

.time-clock-timeline span,
.time-clock-timeline small {
  display: block;
  margin-left: 16px;
  color: #6c5d7d;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.time-clock-timeline strong {
  display: block;
  margin: 18px 0 4px 16px;
  color: #160b25;
  font-size: 18px;
  line-height: 1;
}

.time-report-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.time-team-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.time-person-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  border: 1px solid rgba(216,204,232,.72);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  color: #160b25;
  text-align: left;
  cursor: pointer;
}

.time-person-card span,
.time-person-card small {
  display: block;
}

.time-person-card small {
  color: #6c5d7d;
  font-weight: 750;
}

.time-person-card i {
  font-style: normal;
  font-weight: 900;
  color: #411b78;
}

.time-person-card.active { border-color: rgba(65,183,255,.36); }
.time-person-card.lunch { border-color: rgba(245,158,11,.36); }
.time-person-card.warning,
.time-person-card.danger { border-color: rgba(239,68,68,.32); }
.time-person-card.done { border-color: rgba(139,61,255,.3); opacity: .82; }

.time-admin-panel {
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(246,240,255,.78)),
    radial-gradient(circle at 100% 0, rgba(65,183,255,.12), transparent 34%) !important;
}

.time-admin-form input,
.time-admin-form select,
.time-admin-form textarea,
.time-report-controls input,
.time-report-controls select {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.time-admin-form input:focus,
.time-admin-form select:focus,
.time-admin-form textarea:focus,
.time-report-controls input:focus,
.time-report-controls select:focus {
  border-color: rgba(139,61,255,.62) !important;
  box-shadow: 0 0 0 4px rgba(139,61,255,.11) !important;
  transform: translateY(-1px);
}

.time-required-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(246,240,255,.82)),
    radial-gradient(circle at 100% 0, rgba(139,61,255,.18), transparent 42%) !important;
}

.time-required-card::before {
  content: "";
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b3dff, #41b7ff, #411b78);
}

@keyframes evoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: .72; }
}

@media (max-width: 1080px) {
  .time-report-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .time-clock-page,
  .time-clock-timeline,
  .time-report-summary {
    grid-template-columns: 1fr !important;
  }

  .topbar {
    border-radius: 18px !important;
  }
}

/* Override final da tela inicial: dashboard limpo, sem rastro roxo no mouse. */
body.motion-ready::before,
body.motion-ready::after {
  display: none !important;
  background: none !important;
}

body[data-active-view="dashboard"] .command-center[data-view="dashboard"] > .panel {
  padding: 22px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(248,250,255,.84)),
    radial-gradient(circle at 90% 0, rgba(65,183,255,.10), transparent 34%) !important;
  border-color: rgba(216,204,232,.56) !important;
}

body[data-active-view="dashboard"] .dashboard-focus-strip {
  display: grid !important;
  grid-template-columns: minmax(320px, 1.15fr) minmax(300px, 1fr) repeat(3, minmax(126px, .38fr)) !important;
  gap: 14px !important;
  margin: 18px 0 !important;
}

body[data-active-view="dashboard"] .ops-command-card,
body[data-active-view="dashboard"] .ops-chart-card,
body[data-active-view="dashboard"] .ops-mini-card {
  min-height: 150px !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(247,250,255,.84)) !important;
  box-shadow: 0 18px 44px rgba(65,27,120,.07) !important;
}

body[data-active-view="dashboard"] .ops-command-card strong {
  color: #13091f !important;
}

body[data-active-view="dashboard"] .daily-columns {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body[data-active-view="dashboard"] .daily-list {
  max-height: 240px !important;
  overflow: auto !important;
}

body[data-active-view="dashboard"] .agenda-item,
body[data-active-view="dashboard"] .daily-item,
body[data-active-view="dashboard"] .daily-card {
  transform: none !important;
  min-height: auto !important;
  padding: 12px !important;
}

body[data-active-view="dashboard"] .agenda-item strong,
body[data-active-view="dashboard"] .daily-item strong,
body[data-active-view="dashboard"] .daily-card strong {
  font-size: 14px !important;
  line-height: 1.16 !important;
}

@media (max-width: 1280px) {
  body[data-active-view="dashboard"] .dashboard-focus-strip {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 900px) {
  body[data-active-view="dashboard"] .dashboard-focus-strip,
  body[data-active-view="dashboard"] .daily-columns {
    grid-template-columns: 1fr !important;
  }
}

/* Dashboard estático e alinhado: sem efeito de mouse, sem cards mexendo. */
body[data-active-view="dashboard"],
body[data-active-view="dashboard"] .app-main {
  background:
    linear-gradient(180deg, #fbfbff 0%, #f7f8fc 100%) !important;
}

body[data-active-view="dashboard"] .panel,
body[data-active-view="dashboard"] .metric,
body[data-active-view="dashboard"] .daily-item,
body[data-active-view="dashboard"] .agenda-item,
body[data-active-view="dashboard"] .ops-command-card,
body[data-active-view="dashboard"] .ops-chart-card,
body[data-active-view="dashboard"] .ops-mini-card,
body[data-active-view="dashboard"] .executive-card {
  transform: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}

body[data-active-view="dashboard"] .panel::after,
body[data-active-view="dashboard"] .metric::after,
body[data-active-view="dashboard"] .daily-item::after,
body[data-active-view="dashboard"] .agenda-item::after,
body[data-active-view="dashboard"] .ops-command-card::after,
body[data-active-view="dashboard"] .ops-chart-card::after,
body[data-active-view="dashboard"] .ops-mini-card::after,
body[data-active-view="dashboard"] .executive-card::after {
  display: none !important;
}

body[data-active-view="dashboard"] .dashboard-focus-strip {
  align-items: stretch !important;
}

body[data-active-view="dashboard"] .ops-command-card,
body[data-active-view="dashboard"] .ops-chart-card {
  display: grid !important;
  height: 168px !important;
}

body[data-active-view="dashboard"] .ops-mini-card {
  height: 168px !important;
}

body[data-active-view="dashboard"] .executive-card {
  height: 104px !important;
}

body[data-active-view="dashboard"] .daily-columns > div {
  height: 360px !important;
  overflow: hidden !important;
}

body[data-active-view="dashboard"] .daily-list {
  max-height: 300px !important;
}

body[data-active-view="dashboard"] .agenda-compact {
  display: grid !important;
  grid-template-columns: 42px 1fr !important;
  gap: 10px !important;
  align-items: center !important;
  border-left-width: 1px !important;
}

body[data-active-view="dashboard"] .agenda-compact .agenda-main {
  min-width: 0 !important;
  display: contents !important;
}

body[data-active-view="dashboard"] .agenda-compact .agenda-main > span,
body[data-active-view="dashboard"] .daily-item {
  min-width: 0 !important;
}

body[data-active-view="dashboard"] .agenda-compact strong,
body[data-active-view="dashboard"] .daily-item strong {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-active-view="dashboard"] .agenda-compact small,
body[data-active-view="dashboard"] .daily-item span,
body[data-active-view="dashboard"] .daily-item small {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-active-view="dashboard"] .radial-chart {
  justify-self: end !important;
}

/* Correção Kanban: filtros não podem flutuar por cima do título. */
body[data-active-view="kanban"] .toolbar[data-view="kanban"],
.toolbar[data-view="kanban"] {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  margin: 0 0 22px !important;
  transform: none !important;
}

body[data-active-view="kanban"] .section-block[data-view="kanban"] {
  position: relative !important;
  z-index: 0 !important;
  margin-top: 0 !important;
  padding-top: 4px !important;
}

body[data-active-view="kanban"] .section-block[data-view="kanban"] .section-heading {
  position: relative !important;
  z-index: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  padding-top: 0 !important;
}

body[data-active-view="kanban"] .section-block[data-view="kanban"] .section-heading h2 {
  line-height: 1.1 !important;
}

/* Ponto obrigatório: antes da entrada, o funcionário não vê a operação. */
body.time-entry-locked {
  overflow: hidden !important;
}

body.time-entry-locked .app,
body.time-entry-locked .chat-dock,
body.time-entry-locked .spotify-dock,
body.time-entry-locked .global-results,
body.time-entry-locked .alert-stack {
  filter: blur(10px) !important;
  opacity: .08 !important;
  pointer-events: none !important;
  user-select: none !important;
}

.task-assignment-alert {
  position: relative !important;
  grid-template-columns: 18px minmax(0, 1fr) 30px !important;
  align-items: flex-start !important;
  gap: 12px !important;
  border-left-color: #8b3dff !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(246,242,255,.9)),
    radial-gradient(circle at 92% 12%, rgba(65,183,255,.16), transparent 34%) !important;
  box-shadow: 0 26px 70px rgba(65,27,120,.2) !important;
}

.task-assignment-alert .alert-dot {
  grid-column: 1 !important;
  width: 12px !important;
  height: 12px !important;
  margin-top: 5px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #41b7ff, #8b3dff) !important;
  box-shadow: 0 0 0 6px rgba(139,61,255,.12), 0 0 22px rgba(65,183,255,.55) !important;
}

.task-assignment-alert > div {
  grid-column: 2 !important;
  min-width: 0 !important;
}

.task-assignment-alert .alert-close {
  grid-column: 3 !important;
  width: 30px !important;
  height: 30px !important;
  border: 1px solid rgba(139,61,255,.18) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.76) !important;
  color: #1b102d !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.task-assignment-alert small {
  display: block !important;
  margin-top: 6px !important;
  color: #665a77 !important;
  font-weight: 800 !important;
}

.task-assignment-alert .quiet-action {
  width: auto !important;
  min-height: 34px !important;
  margin-top: 12px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #8b3dff, #411b78) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 28px rgba(65,27,120,.2) !important;
  cursor: pointer !important;
}

.mandatory-time-modal:not(.hidden) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 5000 !important;
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
  background:
    radial-gradient(circle at 20% 15%, rgba(65,183,255,.16), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(139,61,255,.12), transparent 28%),
    linear-gradient(135deg, #fbfbff 0%, #f5f6fb 100%) !important;
  backdrop-filter: none !important;
}

body.time-step-locked .mandatory-time-modal:not(.hidden) {
  background: rgba(251,251,255,.86) !important;
  backdrop-filter: blur(16px) !important;
}

body.time-entry-locked .time-required-card {
  width: min(620px, calc(100vw - 32px)) !important;
  padding: 28px !important;
  border: 1px solid rgba(216,204,232,.72) !important;
  border-radius: 30px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(247,250,255,.9)),
    radial-gradient(circle at 100% 0, rgba(65,183,255,.14), transparent 42%) !important;
  box-shadow: 0 30px 90px rgba(65,27,120,.16) !important;
}

body.time-entry-locked .time-required-card .modal-header h2 {
  max-width: 460px;
  font-size: clamp(30px, 4vw, 48px) !important;
  line-height: 1 !important;
}

body.time-entry-locked .time-required-card p {
  max-width: 520px;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

body.time-entry-locked .modal-time-actions {
  grid-template-columns: 1fr !important;
}

body.time-entry-locked .modal-time-actions button:not([data-time-action="clock_in"]) {
  display: none !important;
}

body.time-entry-locked .modal-time-actions button[data-time-action="clock_in"] {
  min-height: 58px !important;
  font-size: 16px !important;
}

/* Dashboard gráfico v3: pizza, prioridades e KPIs sem números cortados. */
body[data-active-view="dashboard"] .dashboard-focus-strip {
  display: grid !important;
  grid-template-columns: minmax(320px, 1.2fr) minmax(340px, 1fr) minmax(260px, .82fr) repeat(3, minmax(130px, .38fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

body[data-active-view="dashboard"] .ops-command-card,
body[data-active-view="dashboard"] .ops-pie-card,
body[data-active-view="dashboard"] .ops-priority-card,
body[data-active-view="dashboard"] .ops-mini-card {
  position: relative !important;
  height: 180px !important;
  min-height: 180px !important;
  padding: 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(216,204,232,.62) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(246,249,255,.88)),
    radial-gradient(circle at 100% 0, rgba(65,183,255,.10), transparent 38%) !important;
  box-shadow: 0 18px 44px rgba(65,27,120,.075) !important;
}

body[data-active-view="dashboard"] .ops-command-card {
  display: grid !important;
  grid-template-columns: 1fr 112px !important;
  align-items: center !important;
  gap: 16px !important;
}

body[data-active-view="dashboard"] .ops-command-card strong {
  display: block !important;
  max-width: 100% !important;
  margin: 8px 0 8px !important;
  font-size: clamp(26px, 2vw, 36px) !important;
  line-height: 1.02 !important;
  white-space: normal !important;
}

body[data-active-view="dashboard"] .ops-command-card small {
  display: block !important;
  max-width: 420px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.health-score {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(65,183,255,.16), rgba(139,61,255,.12));
  box-shadow: inset 0 0 0 1px rgba(139,61,255,.12);
}

.health-score b {
  color: #12091f;
  font-size: 34px;
  line-height: 1;
}

.health-score small {
  max-width: 78px !important;
  color: #6c5d7d;
  font-size: 10px !important;
  text-align: center;
  text-transform: uppercase;
}

body[data-active-view="dashboard"] .ops-pie-card {
  display: grid !important;
  grid-template-columns: 86px 1fr !important;
  gap: 14px !important;
  align-items: center !important;
}

body[data-active-view="dashboard"] .ops-pie-card > div:first-child strong {
  display: block;
  margin: 6px 0 2px;
  color: #13091f;
  font-size: 34px;
  line-height: 1;
}

.dashboard-pie-wrap {
  display: grid;
  grid-template-columns: 104px minmax(112px, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dashboard-pie {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: conic-gradient(var(--pie));
  box-shadow: inset 0 0 0 18px rgba(255,255,255,.88), 0 14px 28px rgba(65,27,120,.10);
}

.dashboard-pie b {
  color: #13091f;
  font-size: 24px;
  line-height: 1;
}

.dashboard-pie small {
  max-width: 58px;
  color: #6c5d7d;
  font-size: 8px;
  line-height: 1.08;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.pie-legend {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.pie-legend span {
  display: grid;
  grid-template-columns: 10px minmax(60px, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
  color: #6c5d7d;
  font-size: 11px;
  font-weight: 800;
}

.pie-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.pie-legend strong {
  color: #13091f;
  font-size: 13px;
  line-height: 1;
}

.pie-legend em {
  min-width: 0;
  overflow: hidden;
  color: #6c5d7d;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-view="dashboard"] .ops-priority-card {
  display: grid !important;
  gap: 11px !important;
}

body[data-active-view="dashboard"] .ops-priority-card > span,
body[data-active-view="dashboard"] .ops-pie-card span,
body[data-active-view="dashboard"] .ops-command-card span,
body[data-active-view="dashboard"] .ops-mini-card span {
  color: #8b3dff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

body[data-active-view="dashboard"] .ops-priority-card div {
  display: grid;
  grid-template-columns: 48px 28px 1fr;
  gap: 8px;
  align-items: center;
}

body[data-active-view="dashboard"] .ops-priority-card small {
  color: #6c5d7d;
  font-size: 11px;
  font-weight: 850;
}

body[data-active-view="dashboard"] .ops-priority-card strong {
  color: #13091f;
  font-size: 18px;
  line-height: 1;
}

body[data-active-view="dashboard"] .ops-priority-card i {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(216,204,232,.52);
}

body[data-active-view="dashboard"] .ops-priority-card i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4d8d, #8b3dff);
}

body[data-active-view="dashboard"] .ops-mini-card {
  display: grid !important;
  align-content: center !important;
}

body[data-active-view="dashboard"] .ops-mini-card strong {
  display: block !important;
  margin: 8px 0 5px !important;
  color: #13091f !important;
  font-size: clamp(34px, 3vw, 48px) !important;
  line-height: .9 !important;
  overflow: visible !important;
}

body[data-active-view="dashboard"] .ops-mini-card small {
  color: #6c5d7d !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

body[data-active-view="dashboard"] .ops-mini-card.today { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(235,249,255,.92)) !important; }
body[data-active-view="dashboard"] .ops-mini-card.review { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,241,248,.9)) !important; }
body[data-active-view="dashboard"] .ops-mini-card.agenda { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,239,255,.9)) !important; }

body[data-active-view="dashboard"] .executive-grid {
  margin-top: 0 !important;
}

@media (max-width: 1500px) {
  body[data-active-view="dashboard"] .dashboard-focus-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  body[data-active-view="dashboard"] .dashboard-focus-strip,
  body[data-active-view="dashboard"] .ops-command-card,
  body[data-active-view="dashboard"] .ops-pie-card {
    grid-template-columns: 1fr !important;
  }

  body[data-active-view="dashboard"] .ops-command-card,
  body[data-active-view="dashboard"] .ops-pie-card,
  body[data-active-view="dashboard"] .ops-priority-card,
  body[data-active-view="dashboard"] .ops-mini-card {
    height: auto !important;
    min-height: 150px !important;
  }
}

body[data-active-view="admin"] .admin-hero,
body[data-active-view="admin"] .access-template-card,
body[data-active-view="admin"] .user-create-card,
body[data-active-view="admin"] .users-list-panel,
body[data-active-view="admin"] .admin-form-section {
  border-radius: 8px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 8px 24px rgba(65,27,120,.055) !important;
}

body[data-active-view="admin"] .admin-hero {
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,244,255,.82)),
    radial-gradient(circle at 100% 0, rgba(6,182,212,.08), transparent 32%) !important;
}

body[data-active-view="admin"] .admin-status-grid article,
body[data-active-view="admin"] .permission-picker {
  border-radius: 8px !important;
}

body[data-active-view="admin"] .user-create-card {
  position: sticky;
  top: 18px;
}

body[data-active-view="admin"] .admin-table-wrap th {
  color: #6c5d7d !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
}

body[data-active-view="admin"] .admin-table-wrap td {
  vertical-align: middle !important;
}

@media (max-width: 1180px) {
  body[data-active-view="admin"] .user-create-card {
    position: static;
  }
}


/* Source: ui/compat/kommo-theme.css */
:root {
  --bg: #e9eef5;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #363b44;
  --muted: #7b8491;
  --line: #cdd8e6;
  --primary: #4f7df3;
  --primary-strong: #2f66df;
  --accent: #fff36d;
  --cyan: #1fbfd0;
  --orange: #ffb74a;
  --lime: #8fd14f;
  --warning: #d99525;
  --success: #21a67a;
  --info: #4f7df3;
  --brand-deep: #2f66df;
  --brand-light: #4f7df3;
  --shadow: 0 12px 30px rgba(39, 49, 67, .08);
  --shadow-soft: 0 6px 18px rgba(39, 49, 67, .06);
}

html,
body,
button,
input,
select,
textarea {
  font-family: "PT Sans", Arial, sans-serif !important;
}

body {
  background: #e9eef5 !important;
  color: #363b44 !important;
}

.app-main {
  background: #e9eef5 !important;
}

.sidebar {
  background: #f7f9fc !important;
  color: #363b44 !important;
  border-right: 1px solid #cdd8e6 !important;
  box-shadow: 10px 0 28px rgba(39,49,67,.055) !important;
}

.sidebar::before,
.sidebar-circuit,
.login-orbit,
.login-screen::before {
  display: none !important;
}

.brand {
  min-height: 74px !important;
  border-bottom: 1px solid #cdd8e6 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%) !important;
  box-shadow: none !important;
}

.brand-mark {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid #e1e6ec !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.brand strong,
.brand small,
.menu-label {
  color: #7b8491 !important;
}

.nav-list {
  gap: 4px !important;
  padding: 12px !important;
}

.nav-list a {
  min-height: 42px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #4b5563 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.nav-list a:hover {
  background: #e9eff8 !important;
  color: #363b44 !important;
}

.nav-list a.active {
  border-color: #d7e4ff !important;
  background: #eaf1ff !important;
  color: #356fe8 !important;
  box-shadow: none !important;
}

.nav-list a.active::before {
  display: none !important;
}

.nav-icon,
body.sidebar-collapsed .nav-icon,
body.sidebar-collapsed .sidebar:hover .nav-icon {
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: currentColor !important;
  box-shadow: none !important;
}

.nav-icon svg,
.sidebar-toggle svg,
.icon-button svg,
.chat-record-button svg,
.crm-attach-button svg {
  width: 21px !important;
  height: 21px !important;
}

.nav-icon svg *,
.sidebar-toggle svg *,
.crm-attach-button svg * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.sidebar-toggle {
  border-color: #e1e6ec !important;
  background: #fff !important;
  color: #4f7df3 !important;
  box-shadow: 0 8px 20px rgba(39,49,67,.08) !important;
}

.profile-box {
  border-color: #cdd8e6 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #363b44 !important;
  box-shadow: 0 10px 26px rgba(39,49,67,.07) !important;
}

.topbar,
.panel,
.metric,
.toolbar,
.section-block,
.column,
.modal,
.user-create-card,
.company-card,
.traffic-card,
.person-item,
.goal-item,
.daily-item,
.agenda-item,
.task-card,
.chat-panel,
.chat-side,
.crm-shell,
.crm-lead-detail,
.crm-connect-panel,
.admin-hero,
.access-template-card,
.users-list-panel,
.admin-form-section {
  border: 1px solid #e1e6ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(39,49,67,.075) !important;
  backdrop-filter: none !important;
}

.panel:hover,
.metric:hover,
.company-card:hover,
.traffic-card:hover,
.person-item:hover,
.goal-item:hover,
.daily-item:hover,
.task-card:hover,
.agenda-item:hover {
  border-color: #cbd7ea !important;
  box-shadow: 0 8px 22px rgba(39,49,67,.07) !important;
  transform: none !important;
}

.topbar {
  min-height: 74px !important;
  color: #363b44 !important;
}

.topbar h1,
h1,
h2,
h3,
strong {
  color: #363b44;
}

.eyebrow,
.global-results span,
.crm-inbox-item em,
.area-badge,
.company-contact a,
.advisory-head strong {
  color: #4f7df3 !important;
}

.metric span,
.metric small,
label,
.card-meta,
.person-role,
th,
.form-hint,
small {
  color: #7b8491;
}

.primary-button {
  border-color: #4f7df3 !important;
  background: #4f7df3 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.primary-button:hover {
  background: #2f66df !important;
  transform: none !important;
}

.secondary-button,
.ghost-button,
.icon-button,
.table-action,
.quiet-action,
.card-actions button,
.campaign-actions button {
  border-color: #d8dee8 !important;
  background: #fff !important;
  color: #363b44 !important;
  box-shadow: none !important;
}

.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.table-action:hover,
.quiet-action:hover {
  border-color: #a9bfef !important;
  background: #f3f6fb !important;
  color: #2f66df !important;
}

input,
select,
textarea {
  border-color: #d8dee8 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #363b44 !important;
  box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #4f7df3 !important;
  box-shadow: 0 0 0 3px rgba(79,125,243,.16) !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #4f7df3;
}

.global-search,
.search-field,
.crm-filter-bar,
.crm-topbar,
.crm-thread-head {
  border-color: #e1e6ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.column {
  background: #f7f8fa !important;
}

.column::before,
.crm-pipeline-column::before {
  background: #fff36d !important;
}

.column-header,
.crm-column-head {
  border-bottom-color: #e1e6ec !important;
}

.task-card,
.crm-card,
.crm-inbox-item,
.crm-followup-card,
.crm-seller-card {
  border-color: #dfe5ee !important;
  border-left-color: #fff36d !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(39,49,67,.05) !important;
}

.task-card:hover,
.crm-card:hover,
.crm-inbox-item:hover {
  border-color: #cbd7ea !important;
  border-left-color: #4f7df3 !important;
}

.count-pill,
.live-pill,
.role-badge,
.permission-tags em,
.ops-service-tags em,
.area-badge {
  border: 1px solid #dbe5f6 !important;
  border-radius: 999px !important;
  background: #eef4ff !important;
  color: #356fe8 !important;
}

.live-pill[data-mode="online"] {
  background: #eaf8f2 !important;
  color: #16845f !important;
  border-color: #cdeee1 !important;
}

.avatar,
.owner-name .avatar {
  background: #4f7df3 !important;
  color: #fff !important;
  box-shadow: none !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

th {
  background: #f7f8fa !important;
  color: #7b8491 !important;
  font-size: 12px !important;
}

td {
  background: #fff !important;
  border-bottom-color: #edf0f4 !important;
}

.login-screen {
  background: #f5f5f5 !important;
  color: #363b44 !important;
}

.login-brand {
  color: #363b44 !important;
}

.login-brand small {
  color: #7b8491 !important;
}

.login-card {
  border: 1px solid #e1e6ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #363b44 !important;
  box-shadow: 0 18px 46px rgba(39,49,67,.08) !important;
}

.login-card h1 {
  color: #363b44 !important;
}

.login-insight {
  border-color: #e1e6ec !important;
  border-radius: 8px !important;
  background: #f7f8fa !important;
}

.login-stage {
  opacity: .92 !important;
  filter: drop-shadow(0 24px 40px rgba(39,49,67,.12)) !important;
}

.crm-stage-line,
.progress-fill,
.pilot-focus-item.today > span {
  background: #4f7df3 !important;
}

.danger-action,
.role-admin {
  color: #d84b4b !important;
}

body.sidebar-collapsed .brand {
  justify-content: center !important;
}

/* Kommo-like white dashboard: readable, structured, and not washed out. */
body {
  background: #e4ebf3 !important;
}

.app-main {
  background:
    radial-gradient(circle at 18% 0, rgba(79,125,243,.08), transparent 0 240px, transparent 420px),
    linear-gradient(180deg, #f4f8fc 0, #e4ebf3 260px, #e4ebf3 100%) !important;
}

.login-screen {
  background:
    radial-gradient(circle at 78% 52%, rgba(45, 179, 200, .18), transparent 0 20%, transparent 42%),
    linear-gradient(135deg, #f8fbfd 0%, #edf4f9 55%, #e5eef5 100%) !important;
}

.login-card {
  border-color: #cfd8e3 !important;
  box-shadow: 0 26px 70px rgba(39,49,67,.14) !important;
}

.login-insight {
  background: #eef4ff !important;
  color: #363b44 !important;
}

.login-insight span,
.login-insight strong,
.login-insight p,
.login-card label {
  color: #363b44 !important;
  opacity: 1 !important;
}

.login-card input {
  background: #f8fbff !important;
  color: #1f2937 !important;
}

.brand-logo {
  filter: drop-shadow(0 12px 26px rgba(47,102,223,.15)) !important;
}

.topbar,
.panel,
.metric,
.toolbar,
.section-block,
.column,
.modal,
.user-create-card,
.company-card,
.traffic-card,
.person-item,
.goal-item,
.daily-item,
.agenda-item,
.task-card,
.chat-panel,
.chat-side,
.crm-shell,
.crm-lead-detail,
.crm-connect-panel,
.admin-hero,
.access-template-card,
.users-list-panel,
.admin-form-section {
  border-color: #c8d4e4 !important;
  box-shadow: 0 12px 30px rgba(39,49,67,.095) !important;
}

.topbar {
  background: rgba(255,255,255,.94) !important;
  border-color: #c8d4e4 !important;
  box-shadow: 0 12px 30px rgba(39,49,67,.09) !important;
}

.kommo-admin-dashboard {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.kommo-dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(79,125,243,.16), transparent 0 32%, transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(231,239,248,.96));
  box-shadow: 0 16px 36px rgba(39,49,67,.11);
}

.kommo-dashboard-title h2 {
  margin: 4px 0 0;
  color: #263241;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.kommo-dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.kommo-dashboard-filters button,
.channel-card button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d8e0ea;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-weight: 700;
}

.kommo-dashboard-filters button.active,
.kommo-dashboard-filters button:hover,
.channel-card button:hover {
  border-color: #b8c9ef;
  background: #eaf1ff;
  color: #2f66df;
}

.kommo-channel-strip {
  display: grid;
  grid-template-columns: minmax(280px, 560px);
  gap: 12px;
}

.channel-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(39,49,67,.085);
}

.channel-card > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
}

.channel-card.official {
  min-height: 104px;
  padding: 18px;
  border-color: rgba(37, 211, 102, .34);
  background:
    radial-gradient(circle at 0 0, rgba(37, 211, 102, .14), transparent 0 32%, transparent 58%),
    linear-gradient(135deg, #ffffff 0%, #f1fff6 100%);
}

.channel-card.official .channel-logo {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: #25d366;
  box-shadow: 0 14px 28px rgba(18, 140, 126, .22);
}

.channel-logo svg {
  width: 31px !important;
  height: 31px !important;
}

.channel-logo svg path:first-child {
  fill: #25d366 !important;
  stroke: #fff !important;
  stroke-width: 1.5 !important;
}

.channel-logo svg path:last-child {
  fill: #fff !important;
  stroke: none !important;
}

.channel-card strong,
.channel-card small {
  display: block;
}

.channel-card strong {
  color: #263241;
  font-size: 15px;
}

.channel-card small {
  color: #667085;
  font-size: 12px;
  line-height: 1.25;
}

.channel-card.official button {
  border-color: rgba(37, 211, 102, .4);
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 211, 102, .22);
}

.channel-card.official button:hover {
  border-color: #128c7e;
  background: #128c7e;
  color: #fff;
}

.channel-card.whatsapp > span { background: #25d366; }
.channel-card.instagram > span { background: linear-gradient(135deg, #ff4d8d, #8b5cf6); }
.channel-card.facebook > span { background: #2f66df; }
.channel-card.tiktok > span { background: #111827; }

.kommo-dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(160px, 1fr));
  grid-auto-rows: minmax(142px, auto);
  gap: 12px;
}

.kommo-stat-card {
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-height: 142px;
  padding: 16px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 10px 24px rgba(39,49,67,.085);
}

.kommo-stat-card.large {
  grid-row: span 2;
  min-height: 296px;
}

.kommo-stat-card.wide {
  grid-column: span 2;
}

.kommo-stat-card.sources {
  grid-column: span 2;
}

.kommo-stat-card > span {
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.kommo-stat-card > strong {
  color: #4f7df3;
  font-size: clamp(42px, 4vw, 64px);
  line-height: .9;
}

.kommo-stat-card > small {
  color: #667085;
  font-size: 13px;
}

#adminDashSources {
  display: grid;
  gap: 8px;
}

#adminDashSources p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f6;
  color: #4b5563;
  font-weight: 700;
}

#adminDashSources strong {
  color: #4f7df3;
}

.metrics-grid[data-view="dashboard"] {
  margin-top: 2px !important;
}

.metrics-grid[data-view="dashboard"] .metric {
  min-height: 118px !important;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%) !important;
}

.metrics-grid[data-view="dashboard"] .metric strong {
  color: #263241 !important;
}

.metrics-grid[data-view="dashboard"] .metric span,
.metrics-grid[data-view="dashboard"] .metric small {
  color: #667085 !important;
}

.dashboard-focus-strip article,
.executive-card,
.intel-card,
.pilot-panel,
.daily-columns > div,
.notification-center {
  border-color: #d8e0ea !important;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%) !important;
  color: #263241 !important;
  box-shadow: 0 10px 24px rgba(39,49,67,.085) !important;
}

.dashboard-focus-strip article strong,
.executive-card strong,
.intel-card strong,
.pilot-panel strong,
.daily-columns h3 {
  color: #263241 !important;
}

.dashboard-focus-strip article span,
.dashboard-focus-strip article small,
.executive-card span,
.executive-card small,
.intel-card span,
.intel-card small,
.pilot-panel small,
.daily-columns small {
  color: #667085 !important;
}

@media (max-width: 1320px) {
  .kommo-channel-strip,
  .kommo-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kommo-stat-card.large,
  .kommo-stat-card.wide,
  .kommo-stat-card.sources {
    grid-column: auto;
    grid-row: auto;
    min-height: 142px;
  }
}

@media (max-width: 760px) {
  .kommo-dashboard-head,
  .channel-card,
  .kommo-channel-strip,
  .kommo-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .kommo-dashboard-filters {
    justify-content: flex-start;
  }
}

/* Keep only the opening/login screen with the original EVOADS energy. */
.login-screen {
  background:
    radial-gradient(circle at 78% 46%, rgba(139,61,255,.56), transparent 0 18%, transparent 34%),
    radial-gradient(circle at 20% 15%, rgba(139,61,255,.3), transparent 0 22%, transparent 45%),
    linear-gradient(135deg, #000 0%, #180729 38%, #411b78 72%, #8b3dff 120%) !important;
  color: #fff !important;
}

.login-screen::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) !important;
  background-size: 54px 54px !important;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%) !important;
}

.login-orbit {
  display: block !important;
  position: absolute !important;
  width: 560px !important;
  height: 560px !important;
  right: 8vw !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 50% !important;
  box-shadow: inset 0 0 80px rgba(139,61,255,.24), 0 0 90px rgba(139,61,255,.18) !important;
  animation: orbitPulse 5s ease-in-out infinite !important;
}

.login-brand {
  color: #fff !important;
}

.login-brand small {
  color: #cfc5dc !important;
}

.login-card {
  border-color: rgba(255,255,255,.22) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06)) !important;
  color: #fff !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.22) !important;
  backdrop-filter: blur(22px) !important;
}

.login-card h1,
.login-card label,
.login-insight span,
.login-insight strong,
.login-insight p {
  color: #fff !important;
}

.login-insight {
  border-color: rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
}

.login-card input {
  border-color: rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
}

.login-card input::placeholder {
  color: rgba(255,255,255,.62) !important;
}

.login-stage {
  opacity: 1 !important;
  filter: drop-shadow(0 30px 70px rgba(0,0,0,.44)) !important;
  animation: mascotFloat 4.8s ease-in-out infinite !important;
}


/* Source: ui/compat/nexus.css */
/* Nexus by EVOADS — workspace identity */
:root{--bg:#f5f6fa;--surface:#fff;--surface-2:#f7f8fc;--text:#242334;--muted:#737184;--line:#e7e6ef;--primary:#6c46e8;--primary-strong:#5732ca;--brand-deep:#5732ca;--brand-light:#8f72ed;--accent:#c4f275;--shadow:0 8px 32px #27213b08;--shadow-soft:0 3px 14px #27213b05}
html,body,button,input,select,textarea{font-family:'Manrope',system-ui,sans-serif!important}
body,.app-main{background:#f5f6fa!important;color:#242334!important}
body{font-size:16px;line-height:1.6}
h1,h2,h3,h4{letter-spacing:-.035em!important;color:#242334!important}
h1{font-weight:800!important}button,a,input,select,textarea{touch-action:manipulation}button{font-weight:700!important}
:focus-visible{outline:3px solid #9d86f2!important;outline-offset:3px}
.sidebar{background:#fff!important;border-right:1px solid #e7e6ef!important;box-shadow:none!important}
.brand{background:transparent!important;border-bottom:1px solid #eeeaf5!important;padding:20px 16px!important;gap:12px!important}
.brand-mark{background:transparent!important;border:0!important;border-radius:14px!important;box-shadow:none!important;flex-shrink:0}
.brand-mark img{width:42px!important;height:42px!important;object-fit:contain!important}
.brand strong{color:#242334!important;letter-spacing:.13em!important;font-size:20px!important}
.brand small{color:#858095!important;font-size:12px!important}
.menu-label{color:#9a96a9!important;font-size:11px!important;font-weight:700!important;letter-spacing:.1em!important;padding-top:14px!important}
.nav-list{padding:10px 12px!important;gap:5px!important}
.nav-list a{font-size:14px!important;font-weight:600!important;color:#706b80!important;border:0!important;border-radius:12px!important;min-height:46px!important;padding:12px!important}
.nav-list a:hover{background:#f7f5fc!important;color:#5732ca!important}
.nav-list a.active{background:#eee9fc!important;color:#6941d9!important;box-shadow:none!important}
.nav-icon{background:transparent!important;color:inherit!important;border:0!important}.nav-icon svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7}
.nav-badge{background:#6c46e8!important;color:white!important;border-radius:7px!important;font-size:11px!important}
.profile-box{background:#faf9fc!important;border:1px solid #eeeaf5!important;border-radius:16px!important;margin:12px!important;padding:12px!important}
.topbar{background:transparent!important;border:0!important;box-shadow:none!important;padding:12px 0 26px!important;gap:18px!important}
.topbar h1{font-size:clamp(24px,2.4vw,34px)!important;line-height:1.25!important}
.eyebrow{font-size:11px!important;font-weight:800!important;letter-spacing:.12em!important;color:#8a809d!important}
.app-main{padding:28px 34px!important}
.global-search{background:white!important;border:1px solid #e7e6ef!important;border-radius:12px!important;box-shadow:none!important}
.global-search input{background:transparent!important;font-size:13px!important}
.live-pill{border:1px solid #d6eade!important;background:#f1faf5!important;color:#3d8562!important;border-radius:8px!important;font-size:11px!important}
.primary-button{background:#6c46e8!important;color:white!important;border:1px solid #6c46e8!important;border-radius:10px!important;box-shadow:none!important;padding:11px 17px!important;font-size:13px!important}
.primary-button:hover{background:#5732ca!important;transform:translateY(-1px)}
.secondary-button,.ghost-button,.quiet-action{border-radius:10px!important;box-shadow:none!important}
button:disabled{opacity:.55;cursor:wait}
input,select,textarea{border:1px solid #e4e1ed!important;border-radius:10px!important;background:#fff!important;color:#302b40!important;padding:11px 12px!important;font-size:14px!important}
input[type=checkbox],input[type=radio]{padding:0!important;accent-color:#6c46e8}
input:focus,textarea:focus,select:focus{border-color:#9172ed!important;box-shadow:0 0 0 3px #6c46e811!important}
.metrics-grid article,.metric-card,.section-block,.command-center,.ops-dashboard,.kanban-column,.time-clock-page,.agenda-workspace,.split-grid>article,.daily-panel{background:white!important;border:1px solid #e7e6ef!important;border-radius:17px!important;box-shadow:0 4px 20px #33265504!important}
.metric-card strong,.metrics-grid strong{color:#302741!important;letter-spacing:-.04em!important}
.task-card,.company-card,.person-card{border:1px solid #ece9f1!important;border-radius:13px!important;box-shadow:0 3px 12px #32244105!important}
.task-card:hover,.company-card:hover{box-shadow:0 8px 22px #3224410d!important}
.login-screen{background:#f7f8fb!important;min-height:100vh!important;display:grid!important;grid-template-columns:1fr 1fr!important;align-items:center!important;padding:92px 7vw 50px!important;gap:7vw!important}
.login-screen.hidden{display:none!important}
.login-brand{position:absolute!important;left:7vw!important;top:30px!important;display:flex!important;gap:12px!important;align-items:center!important}
.login-brand .brand-logo{width:46px!important;height:46px!important;filter:none!important;object-fit:contain!important}
.login-brand strong{color:#262039!important;font-size:20px!important;letter-spacing:.15em!important}.login-brand small{color:#8a8197!important;letter-spacing:.08em}
.login-stage{position:relative!important;inset:auto!important;display:flex!important;min-height:560px!important;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:48px!important;border-radius:32px!important;background:#211837!important;overflow:hidden;opacity:1!important;transform:none!important;pointer-events:none}
.login-stage p{position:relative;color:#fff!important;font-size:clamp(30px,3.8vw,54px)!important;line-height:1.13;letter-spacing:-.055em;margin:0 0 28px;z-index:1}.login-stage strong{color:#c4f275}.login-stage>span{font-size:11px;letter-spacing:.2em;color:#aaa0c3;z-index:1}
.nexus-orb{position:absolute;top:55px;left:12%;width:300px;height:300px;border:44px solid #9971ff;border-radius:36%;transform:rotate(-25deg);box-shadow:inset 18px 8px 34px #10072166,18px 18px 80px #9b6aff55;background:linear-gradient(130deg,#6c46e8,#322347);opacity:.95}
.nexus-orb:after{content:'';position:absolute;right:-72px;bottom:-58px;width:100px;height:100px;background:#c4f275;border-radius:28px;transform:rotate(32deg);box-shadow:10px 15px 40px #110a2266}
.login-card{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:420px!important;margin:auto!important;background:transparent!important;border:0!important;padding:20px 0!important;box-shadow:none!important;backdrop-filter:none!important}
.login-card h1{font-size:clamp(30px,3vw,42px)!important;line-height:1.2!important;margin:16px 0!important;color:#282036!important}
.login-description{color:#80778d;line-height:1.75;font-size:14px;margin-bottom:28px}
.login-card label{font-size:13px!important;font-weight:700!important;color:#4c415e!important;margin-bottom:18px!important;display:grid;gap:8px}
.login-card input{background:white!important;min-height:48px!important}
.login-card .primary-button{width:100%;min-height:48px;margin-top:8px}
.login-insight{display:none!important}
.purchase-workspace{max-width:1500px;margin:0 auto}.purchase-intro{display:flex;justify-content:space-between;align-items:center;border:1px solid #e7e1f7;background:linear-gradient(110deg,#eee9fc,#f8f7fe);padding:27px 30px;border-radius:20px;margin-bottom:24px}
.purchase-intro h2{font-size:24px;margin:6px 0 8px}.purchase-intro p{margin:0;color:#81758d;font-size:14px}.purchase-intro-icon{display:grid;place-items:center;background:#6c46e8;color:white;font-size:34px;width:66px;height:66px;border-radius:20px;flex-shrink:0;margin-left:20px}
.purchase-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:24px;align-items:start}
.purchase-form,.purchase-list-panel{background:#fff;border:1px solid #e7e6ef;border-radius:20px;padding:26px;min-width:0}
.purchase-form h3,.purchase-list-head h3{font-size:19px;margin:0 0 5px}.purchase-form>p,.purchase-list-head p{font-size:13px;color:#81758d;margin:0 0 22px}.purchase-form label,.purchase-action-form label{display:grid;gap:8px;font-size:14px;font-weight:700;color:#534a63;margin:17px 0}.purchase-form label span{font-size:12px;font-weight:400;color:#8b8298}.purchase-form input,.purchase-form textarea{width:100%;min-width:0;box-sizing:border-box}.purchase-form-row{display:grid;grid-template-columns:1fr 1.5fr;gap:12px}.purchase-form .primary-button{width:100%;display:flex;justify-content:space-between;margin-top:18px}.purchase-feedback{color:#6344a9!important;margin:8px 0!important;font-size:14px!important}
.purchase-list-head{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:12px}.purchase-filter{font-size:11px;color:#81758d;display:grid;gap:5px}.purchase-filter select{font-size:12px!important}.purchase-card{border:1px solid #ece9f1;border-radius:14px;padding:20px;margin-bottom:16px}.purchase-card-top{display:flex;justify-content:space-between;gap:8px}.purchase-id{font-size:10px;letter-spacing:.08em;color:#a39aaa}.purchase-status{border-radius:6px;padding:3px 8px;font-size:11px;font-weight:800;background:#f1eef7;color:#756780}.purchase-status[data-status=pending]{background:#fff5df;color:#93641a}.purchase-status[data-status=approved]{background:#ede7ff;color:#6c46ba}.purchase-status[data-status=purchased]{background:#e7f2ff;color:#3b6caa}.purchase-status[data-status=delivered]{background:#e4f5eb;color:#317453}.purchase-status[data-status=rejected]{background:#fcebec;color:#a74d5a}.purchase-card h4{font-size:17px;margin:12px 0 4px}.purchase-meta{font-size:11px;color:#908698}.purchase-reason{font-size:14px;color:#665b74;white-space:pre-wrap;overflow-wrap:anywhere}.purchase-links{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;color:#82748f}.purchase-links a{color:#6c46e8;font-weight:700}.purchase-note{padding:12px;background:#f7f5fb;border-radius:10px;font-size:12px;margin-top:15px}.purchase-note p{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}.purchase-history{font-size:12px;color:#8a7c96;margin-top:16px}.purchase-history summary{cursor:pointer}.purchase-history p{padding:10px;border-left:2px solid #e8defa;white-space:pre-wrap;overflow-wrap:anywhere}.purchase-action-form{margin-top:16px;border-top:1px solid #eeeaf5;padding-top:4px}.purchase-actions{display:flex;gap:10px;flex-wrap:wrap}.purchase-action-feedback{font-size:12px;color:#ab4254}.purchase-empty{text-align:center;padding:65px 20px;color:#96899e}.purchase-empty>span{font-size:30px;background:#f1ecfc;color:#7956c9;border-radius:18px;padding:10px 20px;display:inline-block}.purchase-empty h4{font-size:17px;margin:20px 0 8px}.purchase-empty p{font-size:13px;max-width:310px;margin:auto}
@media(max-width:1100px){.app-main{padding:22px!important}.purchase-layout{grid-template-columns:1fr}.purchase-form{max-width:none}.login-screen{padding:95px 5vw 35px!important;gap:5vw!important}.login-stage{min-height:520px!important;padding:30px!important}.nexus-orb{width:210px;height:210px;border-width:32px}.topbar{flex-wrap:wrap}}
@media(max-width:700px){.login-screen{display:flex!important;padding:100px 24px 30px!important}.login-screen.hidden{display:none!important}.login-stage{display:none!important}.login-brand{left:24px!important}.login-card{max-width:440px!important}.app-main{padding:16px!important}.purchase-intro{padding:22px}.purchase-intro h2{font-size:21px}.purchase-intro-icon{display:none}.purchase-form,.purchase-list-panel{padding:18px}.purchase-list-head{flex-wrap:wrap}.topbar-actions{flex-wrap:wrap!important}.global-search{max-width:100%!important}.purchase-layout{gap:16px}.purchase-card{padding:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* EVOADS brand system — aligned to the approved black, white and violet identity */
:root{--primary:#8b3dff;--primary-strong:#6f28e8;--brand-deep:#4f169f;--brand-light:#9d51ff;--accent:#8b3dff;--ink:#090909;--ink-soft:#141414}
.sidebar{background:linear-gradient(180deg,#090909 0%,#111 62%,#090909 100%)!important;border-right-color:#242424!important;color:#fff!important}
.sidebar-circuit{opacity:.32!important;background:radial-gradient(circle at 30px 120px,#8b3dff 0 2px,transparent 3px),linear-gradient(90deg,transparent 0 32px,#ffffff0a 32px 33px,transparent 33px)!important}
.brand{border-bottom-color:#ffffff14!important;min-height:72px!important}
.brand-mark{width:48px!important;height:44px!important;padding:4px!important;border-radius:0!important;background:transparent!important}
.brand-mark img{width:100%!important;height:100%!important}
.brand strong{color:#fff!important;font-size:19px!important;letter-spacing:.18em!important;font-weight:700!important}
.sidebar-lockup{display:grid;gap:1px}.sidebar-lockup small{color:#9d51ff!important;font-size:9px!important;letter-spacing:.11em!important}.sidebar-lockup small b{color:#fff;font-style:normal}.sidebar-lockup small i{color:#aaa;font-style:normal}
.menu-label{color:#747474!important}.nav-list a{color:#bcbcbc!important}.nav-list a:hover{background:#ffffff0d!important;color:#fff!important}.nav-list a.active{background:#fff!important;color:#111!important;box-shadow:0 8px 24px #0004!important}.nav-list a.active .nav-icon{color:#8b3dff!important}.nav-icon{color:#8d8d8d!important}.nav-badge{background:#8b3dff!important}.profile-box{background:#171717!important;border-color:#292929!important}.profile-box,.profile-box button{color:#e8e8e8!important}.profile-button,.profile-box .ghost-button{background:#202020!important;border-color:#303030!important}
.sidebar-toggle{background:#8b3dff!important;border-color:#8b3dff!important;color:#fff!important}
.eyebrow{color:#7d31e8!important}.primary-button{background:#8b3dff!important;border-color:#8b3dff!important}.primary-button:hover{background:#6f28e8!important}.purchase-intro{border-color:#ded0f5!important;background:linear-gradient(115deg,#f2ecff,#fff)!important}.purchase-intro-icon{background:#0c0c0c!important;color:#9d51ff!important}.purchase-links a{color:#7130d5!important}

/* Branded access experience */
.login-screen{grid-template-columns:minmax(0,1.12fr) minmax(390px,.88fr)!important;background:#090909!important;padding:94px 5vw 48px!important;gap:clamp(36px,6vw,100px)!important}
.login-brand{left:5vw!important;top:28px!important;gap:14px!important}.login-brand .brand-logo{width:54px!important;height:46px!important}.evoads-lockup{display:grid;line-height:1}.evoads-lockup strong{color:#fff!important;font-size:25px!important;font-weight:600!important;letter-spacing:.22em!important}.evoads-lockup strong span{font-weight:400!important}.evoads-lockup small{margin-top:7px;color:#9d51ff!important;font-size:8px!important;font-weight:700!important;letter-spacing:.25em!important}
.login-stage{min-height:580px!important;padding:clamp(32px,4vw,58px)!important;border:1px solid #242424!important;border-radius:28px!important;background:radial-gradient(circle at 72% 22%,#8b3dff24,transparent 30%),linear-gradient(145deg,#151515,#090909 70%)!important;box-shadow:0 30px 90px #0008!important}
.login-stage:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#ffffff07 1px,transparent 1px),linear-gradient(#ffffff07 1px,transparent 1px);background-size:54px 54px;mask-image:linear-gradient(to bottom,#000,transparent 72%)}
.stage-kicker{position:absolute;top:42px;left:48px;color:#9d51ff;font-size:11px;font-weight:800;letter-spacing:.2em;z-index:2}
.login-stage p{font-size:clamp(34px,4vw,62px)!important;font-weight:600!important;letter-spacing:-.055em!important;text-transform:uppercase!important}.login-stage strong{color:#9d51ff!important}.login-stage>span{color:#888!important}.nexus-orb{top:70px!important;left:auto!important;right:10%!important;width:270px!important;height:220px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:rotate(-8deg)!important;opacity:.85!important}
.nexus-orb:before,.nexus-orb:after{content:''!important;position:absolute!important;left:0!important;width:100%!important;height:44px!important;border-radius:0!important;transform:skewX(-32deg)!important;box-shadow:none!important}.nexus-orb:before{top:34px!important;background:#fff!important;box-shadow:0 76px 0 #8b3dff,0 152px 0 #6f28e8!important}.nexus-orb:after{display:none!important}
.login-card{max-width:450px!important;padding:42px!important;border:1px solid #e9e9e9!important;border-radius:28px!important;background:#fff!important;box-shadow:0 30px 90px #0007!important}.login-card h1{color:#111!important;font-size:clamp(32px,3vw,46px)!important}.login-description{color:#777!important}.login-card label{color:#333!important}.login-card input,.login-card .password-control input{border-color:#dedede!important;background:#fafafa!important;color:#171717!important;-webkit-text-fill-color:#171717!important;caret-color:#8b3dff!important}.login-card input::placeholder{color:#929292!important;-webkit-text-fill-color:#929292!important}.login-card input:focus{border-color:#8b3dff!important;box-shadow:0 0 0 4px #8b3dff14!important}.login-card .password-control button{color:#6f28e8!important}

/* Mobile-first operating experience */
@media(max-width:760px){
  html{scroll-padding-bottom:104px}body{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important;background:#f5f6fa!important}
  .login-screen{min-height:100svh!important;display:flex!important;align-items:flex-end!important;padding:104px 18px max(20px,env(safe-area-inset-bottom))!important;background:radial-gradient(circle at 70% 4%,#8b3dff33,transparent 28%),#090909!important}
  .login-screen.hidden{display:none!important}.login-brand{left:22px!important;top:26px!important}.login-brand .brand-logo{width:46px!important;height:40px!important}.evoads-lockup strong{font-size:21px!important}.evoads-lockup small{font-size:7px!important}.login-card{max-width:none!important;margin:0!important;padding:30px 22px!important;border-radius:24px!important}.login-card h1{font-size:34px!important}.login-description{margin-bottom:22px!important}.login-card label{margin-bottom:14px!important}.login-card input,.login-card .primary-button{min-height:52px!important;font-size:16px!important}
  .sidebar,body.sidebar-collapsed .sidebar{inset:auto 0 0!important;width:100%!important;height:calc(78px + env(safe-area-inset-bottom))!important;padding:7px 8px env(safe-area-inset-bottom)!important;background:#090909!important;border-top:1px solid #242424!important;border-right:0!important;box-shadow:0 -12px 36px #1113!important;overflow-x:auto!important;scrollbar-width:none!important}.sidebar::-webkit-scrollbar{display:none}.sidebar-circuit,.sidebar-toggle{display:none!important}
  .nav-list{display:flex!important;gap:4px!important;padding:0!important;min-width:max-content!important}.nav-list a,body.sidebar-collapsed .nav-list a{width:70px!important;min-width:70px!important;min-height:62px!important;padding:7px 5px!important;display:grid!important;place-items:center!important;align-content:center!important;gap:4px!important;border-radius:12px!important;font-size:10px!important;line-height:1.1!important;scroll-snap-align:center!important}.nav-list a.active{background:#8b3dff!important;color:#fff!important}.nav-list a.active .nav-icon{color:#fff!important}.nav-icon{width:24px!important;height:24px!important}.nav-icon svg{width:21px!important;height:21px!important}.nav-badge{position:absolute!important;top:4px!important;right:6px!important}
  .app-main,body.sidebar-collapsed .app-main{margin-left:0!important;padding:18px 14px calc(96px + env(safe-area-inset-bottom))!important;overflow-x:hidden!important}.topbar{gap:14px!important;padding:4px 0 18px!important}.topbar h1{font-size:clamp(25px,8vw,32px)!important}.topbar-actions{display:grid!important;grid-template-columns:1fr auto auto!important;gap:8px!important}.global-search{grid-column:1/-1!important;min-width:0!important;max-width:none!important}.global-search input{min-height:46px!important;font-size:16px!important}.topbar-actions .primary-button{grid-column:1/-1!important;min-height:48px!important}.icon-button{min-width:44px!important;min-height:44px!important}.live-pill{min-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}
  .metrics-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}.metrics-grid article,.metric-card{min-width:0!important;padding:16px!important;border-radius:14px!important}.metrics-grid strong{font-size:28px!important}
  .section-heading{align-items:flex-start!important;flex-direction:column!important}.section-heading>*{max-width:100%!important}.toolbar{overflow-x:auto!important;scrollbar-width:none!important}.toolbar>*{flex:0 0 auto}.table-wrap{margin-inline:-14px!important;padding-inline:14px!important;overscroll-behavior-inline:contain!important}
  .purchase-intro{padding:20px!important;border-radius:18px!important}.purchase-layout{grid-template-columns:1fr!important;gap:14px!important}.purchase-form,.purchase-list-panel{padding:18px!important;border-radius:18px!important}.purchase-form-row{grid-template-columns:1fr!important}.purchase-form input,.purchase-form textarea,.purchase-filter select{font-size:16px!important;min-height:48px!important}.purchase-form .primary-button{min-height:50px!important}.purchase-card{padding:16px!important}.purchase-card-top,.purchase-actions{align-items:stretch!important}.purchase-actions>*{flex:1 1 130px!important;min-height:44px!important}.purchase-list-head{align-items:stretch!important}.purchase-filter{width:100%!important}
  .modal-backdrop{padding:10px!important;align-items:end!important}.modal-card{max-height:92svh!important;width:100%!important;border-radius:22px 22px 12px 12px!important;overflow:auto!important}.form-grid,.inline-form,.split-grid,.agenda-workspace,.chat-workspace{grid-template-columns:1fr!important}.toast{right:12px!important;bottom:calc(92px + env(safe-area-inset-bottom))!important;left:12px!important;min-width:0!important;max-width:none!important}
}

/* Dashboard home — one visual system, clear hierarchy and predictable scanning */
.dashboard-home{max-width:1180px;margin:0 auto;display:grid;gap:18px}
.dashboard-summary-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:4px 2px 8px}
.dashboard-summary-head h2{margin:4px 0 5px;color:#17151c!important;font-size:clamp(28px,3vw,40px)!important;line-height:1.08;letter-spacing:-.045em!important}
.dashboard-summary-head>div>p:last-child{margin:0;color:#7d7985;font-size:14px}
.dashboard-summary-head .date-control{min-width:148px;color:#777381!important;font-size:11px!important}
.dashboard-summary-head .date-control input{min-height:42px!important;background:#fff!important}
.dashboard-chart-grid{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(360px,.78fr);gap:14px}
.dashboard-chart-card{min-width:0;padding:20px 22px;border:1px solid #e8e7ec;border-radius:20px;background:#fff;box-shadow:0 8px 30px #15121c08}
.dashboard-chart-card>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.dashboard-chart-card h3{margin:3px 0 0;color:#24212a!important;font-size:18px!important}.dashboard-chart-card .quiet-action{min-height:34px;padding:0 11px;border:1px solid #e8e4ed;border-radius:9px;background:#faf9fc;color:#6f28e8;font-size:11px;font-weight:700}
.workflow-chart-body{display:grid;grid-template-columns:178px minmax(0,1fr);align-items:center;gap:28px;min-height:184px}.workflow-donut{width:166px;height:166px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--workflow-donut));position:relative}.workflow-donut:after{content:'';position:absolute;width:108px;height:108px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px #f2f0f4}.workflow-donut>span{position:relative;z-index:1;display:grid;justify-items:center;gap:3px}.workflow-donut strong{color:#1e1b22;font-size:32px;line-height:1;letter-spacing:-.06em}.workflow-donut small{color:#8e8993;font-size:10px}
.workflow-legend{display:grid;gap:8px}.workflow-legend>div{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:34px;padding:0 10px;border-radius:9px;background:#faf9fc}.workflow-legend i{width:8px;height:8px;border-radius:3px;background:var(--legend-color)}.workflow-legend span{color:#6f6b75;font-size:11px}.workflow-legend strong{color:#26222b;font-size:13px}
.weekly-chart-card{display:grid;grid-template-rows:auto minmax(150px,1fr) auto}.weekly-bars{height:172px;display:grid;grid-template-columns:repeat(7,minmax(26px,1fr));align-items:end;gap:8px;padding:8px 2px 0;border-bottom:1px solid #ebe9ef;background:repeating-linear-gradient(to top,transparent 0 43px,#f3f1f5 43px 44px)}.weekly-bar{height:100%;display:grid;grid-template-rows:18px minmax(0,1fr) 24px;align-items:end;justify-items:center;gap:4px}.weekly-bar>span{color:#8b8791;font-size:9px}.weekly-bar>i{width:min(24px,68%);height:var(--bar-height);min-height:5px;border-radius:6px 6px 2px 2px;background:#d8d4de;transition:height .25s ease}.weekly-bar.current>i{background:linear-gradient(180deg,#9d51ff,#6f28e8)}.weekly-bar>small{color:#8c8792;font-size:9px;text-transform:capitalize}.weekly-bar.current>small{color:#6f28e8;font-weight:800}
.dashboard-mini-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:15px}.dashboard-mini-kpis>div{min-width:0;padding:9px 10px;border-radius:10px;background:#faf9fc}.dashboard-mini-kpis span{display:block;color:#8b8791;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-mini-kpis strong{display:block;margin-top:3px;color:#252129;font-size:18px;line-height:1}.dashboard-mini-kpis small{display:none}
.dashboard-stat-row{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:12px}
.dashboard-stat{position:relative;min-height:126px;display:grid;align-content:space-between;padding:20px 22px;overflow:hidden;border:1px solid #e8e7ec;border-radius:18px;background:#fff;box-shadow:0 8px 30px #15121c08}
.dashboard-stat span{color:#777381;font-size:12px;font-weight:700}
.dashboard-stat strong{color:#17151c;font-size:42px;line-height:1;font-weight:700;letter-spacing:-.06em}
.dashboard-stat small{color:#99959f;font-size:11px}
.dashboard-stat.primary{border-color:#181819;background:#0d0d0e}.dashboard-stat.primary span,.dashboard-stat.primary small{color:#aaa6ae}.dashboard-stat.primary strong{color:#fff}.dashboard-stat.primary:after{content:'';position:absolute;right:-25px;bottom:-44px;width:120px;height:120px;border:22px solid #8b3dff;border-radius:36px;transform:rotate(32deg);opacity:.78}
.dashboard-stat.attention strong{color:#6f28e8}
.dashboard-priority{display:grid;grid-template-columns:minmax(190px,.55fr) minmax(0,1.45fr);align-items:stretch;gap:18px;padding:20px;border:1px solid #ded7e9;border-radius:20px;background:linear-gradient(135deg,#f5f0ff,#fff 62%);box-shadow:none}
.dashboard-priority-copy{display:flex;flex-direction:column;justify-content:center;padding:4px 6px}.dashboard-priority-copy h3{margin:5px 0 8px;color:#201b27!important;font-size:22px!important}.dashboard-priority-copy>p:last-child{margin:0;color:#79717f;font-size:12px;line-height:1.5}
.dashboard-priority .pilot-action{display:grid;min-width:0}.dashboard-priority .pilot-next{width:100%;min-height:118px;display:grid;align-content:center;justify-items:start;gap:5px;padding:19px 22px;border:0;border-radius:15px;background:#fff!important;color:#17151c!important;text-align:left;box-shadow:0 8px 26px #3824540a}.dashboard-priority .pilot-next:hover{transform:translateY(-1px)}.dashboard-priority .pilot-next span{color:#8b3dff!important;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.dashboard-priority .pilot-next strong{color:#17151c!important;font-size:20px!important}.dashboard-priority .pilot-next small{color:#76717c!important;font-size:12px!important;line-height:1.45}
.dashboard-list-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.dashboard-list-card{min-width:0;padding:20px;border:1px solid #e8e7ec;border-radius:20px;background:#fff;box-shadow:0 8px 30px #15121c08}
.dashboard-list-card>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;padding-bottom:13px;border-bottom:1px solid #efedf2}.dashboard-list-card h3{margin:3px 0 0;color:#24212a!important;font-size:18px!important}.dashboard-list-card .quiet-action{min-height:36px;padding:0 11px;border:1px solid #e8e4ed;border-radius:9px;background:#faf9fc;color:#6f28e8;font-size:11px;font-weight:700}
.dashboard-list-card .daily-list{gap:8px!important}.dashboard-list-card .daily-item,.dashboard-list-card .agenda-item,.dashboard-list-card .empty-state{min-height:58px!important;padding:12px 14px!important;border:1px solid #ecebf0!important;border-radius:12px!important;background:#fafafd!important;box-shadow:none!important}.dashboard-list-card .daily-item:hover,.dashboard-list-card .agenda-item:hover{border-color:#cdb9ee!important;background:#f8f4ff!important;transform:none!important}.dashboard-list-card .daily-item strong,.dashboard-list-card .agenda-item strong{color:#2d2932!important;font-size:13px!important}.dashboard-list-card .daily-item span,.dashboard-list-card .daily-item small,.dashboard-list-card .agenda-item small{color:#8b8791!important;font-size:10px!important}
.dashboard-data-sink{display:none!important}
body[data-active-view="dashboard"] .topbar{min-height:68px!important;margin-bottom:18px!important;padding-bottom:13px!important;border-bottom:1px solid #e9e8ed!important}
body[data-active-view="dashboard"] .topbar h1{font-size:26px!important;letter-spacing:-.035em!important}
body[data-active-view="dashboard"] .topbar .eyebrow{font-size:10px!important}
body[data-active-view="dashboard"] .global-search{max-width:300px!important}
body[data-active-view="dashboard"] #liveStatus,body[data-active-view="dashboard"] #tvModeBtn{display:none!important}
body[data-active-view="dashboard"] .topbar{display:none!important}
@media(max-width:980px){.dashboard-chart-grid{grid-template-columns:1fr}.weekly-chart-card{min-height:300px}.dashboard-stat-row{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-priority{grid-template-columns:1fr}.dashboard-priority-copy{padding:0}.dashboard-priority-copy>p:last-child{display:none}.dashboard-list-grid{grid-template-columns:1fr}}
@media(max-width:760px){
  .dashboard-home{gap:14px}.dashboard-summary-head{align-items:stretch;flex-direction:column;gap:13px;padding-top:0}.dashboard-summary-head h2{font-size:30px!important}.dashboard-summary-head>div>p:last-child{font-size:12px}.dashboard-summary-head .date-control{width:100%}
  .dashboard-chart-grid{gap:12px}.dashboard-chart-card{padding:16px;border-radius:18px}.dashboard-chart-card>header{align-items:flex-start;margin-bottom:14px}.workflow-chart-body{grid-template-columns:122px minmax(0,1fr);gap:14px;min-height:142px}.workflow-donut{width:120px;height:120px}.workflow-donut:after{width:76px;height:76px}.workflow-donut strong{font-size:25px}.workflow-legend{gap:5px}.workflow-legend>div{min-height:28px;padding:0 8px;gap:7px}.weekly-chart-card{min-height:284px}.weekly-bars{height:150px;gap:5px}.dashboard-mini-kpis{margin-top:12px}
  .dashboard-stat-row{display:flex;gap:9px;overflow-x:auto;padding-bottom:3px;scroll-snap-type:x mandatory;scrollbar-width:none}.dashboard-stat-row::-webkit-scrollbar{display:none}.dashboard-stat{min-width:136px;min-height:105px;padding:16px;scroll-snap-align:start}.dashboard-stat strong{font-size:34px}.dashboard-stat.primary{min-width:150px}
  .dashboard-priority{gap:12px;padding:16px;border-radius:18px}.dashboard-priority-copy h3{font-size:19px!important}.dashboard-priority .pilot-next{min-height:96px;padding:16px 17px}.dashboard-priority .pilot-next strong{font-size:18px!important}
  .dashboard-list-grid{gap:14px}.dashboard-list-card{padding:16px;border-radius:18px}.dashboard-list-card>header{align-items:flex-start}.dashboard-list-card h3{font-size:16px!important}.dashboard-list-card .quiet-action{white-space:nowrap}
  body[data-active-view="dashboard"] .topbar{margin-bottom:14px!important}.topbar-actions #refreshBtn{display:none!important}
}
@media(max-width:390px){.metrics-grid{grid-template-columns:1fr!important}.login-card{padding:26px 18px!important}.login-card h1{font-size:30px!important}.nav-list a,body.sidebar-collapsed .nav-list a{width:66px!important;min-width:66px!important}}

/* Dark analytics canvas — visually distinct from operational lists */
.dashboard-chart-grid{position:relative;padding:14px;border:1px solid #252529;border-radius:26px;background:radial-gradient(circle at 8% 0,#8b3dff2b,transparent 30%),linear-gradient(145deg,#121214,#09090a);box-shadow:0 22px 60px #16121d1a;overflow:hidden}
.dashboard-chart-grid:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#ffffff05 1px,transparent 1px),linear-gradient(#ffffff05 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(to bottom,#000,transparent 84%)}
.dashboard-chart-card{position:relative;z-index:1;border-color:#2b2b30;background:#171719;box-shadow:none}
.dashboard-chart-card>header{border-bottom:1px solid #2a292e;padding-bottom:13px}.dashboard-chart-card h3{color:#fff!important}.dashboard-chart-card .eyebrow{color:#a65dff!important}.dashboard-chart-card .quiet-action{border-color:#3a3442;background:#221d28;color:#bd88ff}
.workflow-donut{background:conic-gradient(var(--workflow-donut));box-shadow:0 0 40px #8b3dff1f}.workflow-donut:after{background:#171719;box-shadow:0 0 0 1px #2c2930}.workflow-donut strong{color:#fff}.workflow-donut small{color:#8f8b94}
.workflow-legend>div{background:#1f1f22}.workflow-legend span{color:#aaa6af}.workflow-legend strong{color:#fff}
.weekly-bars{border-bottom-color:#343139;background:repeating-linear-gradient(to top,transparent 0 43px,#29282d 43px 44px)}.weekly-bar>span,.weekly-bar>small{color:#8e8a94}.weekly-bar>i{background:#3e3b43}.weekly-bar.current>i{background:linear-gradient(180deg,#b978ff,#7a2ee8);box-shadow:0 0 20px #8b3dff55}.weekly-bar.current>small{color:#bd88ff}
.dashboard-mini-kpis>div{background:#202023}.dashboard-mini-kpis span{color:#95919b}.dashboard-mini-kpis strong{color:#fff}.dashboard-mini-kpis>div:last-child strong{color:#bd88ff}
@media(max-width:760px){.dashboard-chart-grid{display:flex;gap:9px;padding:9px;border-radius:21px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.dashboard-chart-grid::-webkit-scrollbar{display:none}.dashboard-chart-card{flex:0 0 calc(100vw - 48px);border-radius:15px;scroll-snap-align:start}.workflow-chart-body{gap:12px}.workflow-legend>div{background:#202023}}

@media(max-width:760px){.dashboard-home{gap:10px}.dashboard-summary-head{display:grid;grid-template-columns:minmax(0,1fr) 148px;align-items:end;gap:12px;padding:0 2px 2px}.dashboard-summary-head h2{margin:2px 0 0!important;font-size:25px!important}.dashboard-summary-head>div>p:last-child{display:none}.dashboard-summary-head .date-control{width:148px}.dashboard-summary-head .date-control input{min-height:40px!important;padding:8px!important;font-size:12px!important}}
@media(max-width:430px){.dashboard-summary-head{grid-template-columns:1fr 128px}.dashboard-summary-head .date-control{width:128px}.dashboard-chart-card{flex-basis:calc(100vw - 40px)}.workflow-chart-body{grid-template-columns:108px minmax(0,1fr)}.workflow-donut{width:106px;height:106px}.workflow-donut:after{width:68px;height:68px}}

/* Versioned release notification */
.update-banner{position:fixed;right:22px;bottom:22px;z-index:120;width:min(520px,calc(100vw - 44px));display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;padding:15px;border:1px solid #31293b;border-radius:18px;background:linear-gradient(145deg,#171719,#0d0d0e);color:#fff;box-shadow:0 24px 70px #09070d66;animation:updateBannerIn .28s ease both}
.update-banner.hidden{display:none!important}.update-banner-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#8b3dff;color:#fff;font-size:22px;font-weight:700;box-shadow:0 8px 24px #8b3dff4d}.update-banner strong{display:block;color:#fff;font-size:14px}.update-banner p{margin:3px 0 0;color:#aaa6af;font-size:11px;line-height:1.4}.update-banner-actions{display:flex;align-items:center;gap:7px}.update-banner-actions button{min-height:38px;padding:0 12px;border-radius:10px;font-size:11px;font-weight:800;cursor:pointer}.update-later{border:1px solid #39363e;background:#232326;color:#c1bdc5}.update-now{border:1px solid #8b3dff;background:#8b3dff;color:#fff}.update-now:hover{background:#7430de}.update-later:hover{background:#2d2c30}@keyframes updateBannerIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:760px){.update-banner{right:10px;bottom:calc(90px + env(safe-area-inset-bottom));width:calc(100vw - 20px);grid-template-columns:38px minmax(0,1fr);gap:11px;padding:13px;border-radius:16px}.update-banner-mark{width:38px;height:38px;border-radius:11px}.update-banner-actions{grid-column:1/-1}.update-banner-actions button{flex:1;min-height:42px}}


/* Source: ui/compat/evoads-system-theme.css */
/* EVOADS Nexus — unified system theme. Loaded last across every module. */
:root{--evo-ink:#0d0d0e;--evo-ink-soft:#171719;--evo-purple:#8b3dff;--evo-purple-strong:#6f28e8;--evo-purple-soft:#f4edff;--evo-paper:#fff;--evo-canvas:#f6f5f8;--evo-text:#211e25;--evo-muted:#7c7782;--evo-line:#e8e6ec;--evo-radius:20px;--evo-shadow:0 10px 34px rgba(22,18,29,.055)}
html,body{background:var(--evo-canvas)!important;color:var(--evo-text)!important}body,.app,input,select,textarea,button{font-family:"Manrope",system-ui,sans-serif!important}.app-main{background:var(--evo-canvas)!important}.app-view{animation:evoViewIn .22s ease both}@keyframes evoViewIn{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}
.eyebrow{color:var(--evo-purple-strong)!important;font-size:10px!important;font-weight:800!important;letter-spacing:.12em!important;text-transform:uppercase!important}.topbar{border-bottom:1px solid var(--evo-line)!important}.topbar h1,.section-heading h2,.panel h2,.calendar-day-panel h3{color:var(--evo-text)!important;letter-spacing:-.035em!important}.section-heading{gap:18px!important;margin-bottom:18px!important}.section-heading h2{font-size:clamp(22px,2.4vw,30px)!important}.section-heading p:not(.eyebrow),.panel p,.form-hint{color:var(--evo-muted)!important}
.section-block,.panel,.toolbar,.agenda-form-panel,.agenda-list,.chat-panel,.chat-side,.time-clock-panel,.time-report-panel,.time-admin-panel,.purchase-form,.purchase-list-panel,.users-list-panel,.user-create-card,.admin-form-section,.permission-picker{border:1px solid var(--evo-line)!important;border-radius:var(--evo-radius)!important;background:var(--evo-paper)!important;box-shadow:var(--evo-shadow)!important}.section-block,.panel{padding:22px!important}.toolbar{padding:13px!important;box-shadow:none!important}.split-grid,.agenda-workspace,.purchase-layout,.chat-workspace{gap:16px!important}
input,select,textarea,.search-field,.global-search{border-color:#dedbe3!important;background:#faf9fb!important;color:var(--evo-text)!important;-webkit-text-fill-color:var(--evo-text)!important;caret-color:var(--evo-purple)!important;border-radius:11px!important}input::placeholder,textarea::placeholder{color:#aaa5af!important;-webkit-text-fill-color:#aaa5af!important}input:focus,select:focus,textarea:focus,.search-field:focus-within,.global-search:focus-within{border-color:var(--evo-purple)!important;box-shadow:0 0 0 4px rgba(139,61,255,.11)!important;outline:0!important}label{color:#4e4954!important;font-weight:700!important}
.primary-button,.primary-action,.task-approval-button,.task-finalize-button,.campaign-actions button:first-child{border-color:var(--evo-purple)!important;background:var(--evo-purple)!important;color:#fff!important;box-shadow:0 8px 22px rgba(139,61,255,.18)!important}.primary-button:hover,.primary-action:hover,.task-approval-button:hover,.task-finalize-button:hover{background:var(--evo-purple-strong)!important;transform:translateY(-1px)}.secondary-button,.quiet-action,.profile-button,.table-action,.campaign-actions button{border:1px solid var(--evo-line)!important;background:#fff!important;color:#4c4653!important;box-shadow:none!important}.secondary-button:hover,.quiet-action:hover,.profile-button:hover,.table-action:hover{border-color:#cdb9ee!important;background:var(--evo-purple-soft)!important;color:var(--evo-purple-strong)!important}.danger-action{color:#c04455!important}.icon-button{border-color:var(--evo-line)!important;background:#fff!important;color:#5b5660!important}.live-pill{border-color:#ddd3eb!important;background:var(--evo-purple-soft)!important;color:var(--evo-purple-strong)!important}
.ops-hero,.admin-hero,.purchase-intro,.advisory-spotlight{position:relative!important;overflow:hidden!important;border:1px solid #29282d!important;border-radius:24px!important;background:radial-gradient(circle at 92% 5%,rgba(139,61,255,.32),transparent 34%),linear-gradient(145deg,#171719,#09090a)!important;color:#fff!important;box-shadow:0 20px 54px rgba(18,13,24,.14)!important}.ops-hero:after,.admin-hero:after,.purchase-intro:after,.advisory-spotlight:after{content:"";position:absolute;right:-42px;bottom:-78px;width:180px;height:180px;border:30px solid rgba(139,61,255,.34);border-radius:52px;transform:rotate(28deg);pointer-events:none}.ops-hero h2,.ops-hero strong,.admin-hero h2,.admin-hero h3,.purchase-intro h2,.purchase-intro h3,.advisory-spotlight h2,.advisory-spotlight h3{color:#fff!important}.ops-hero p:not(.eyebrow),.admin-hero p:not(.eyebrow),.purchase-intro p:not(.eyebrow),.advisory-spotlight p:not(.eyebrow),.ops-score span,.ops-score small{color:#aaa6af!important}.ops-hero .eyebrow,.admin-hero .eyebrow,.purchase-intro .eyebrow,.advisory-spotlight .eyebrow{color:#bd88ff!important}
.ops-metrics article,.finance-summary article,.report-summary article,.time-report-summary article,.company-card,.finance-card,.person-item,.goal-item,.traffic-card,.ops-item,.agenda-item,.access-template-card,.purchase-card,.time-person-card,.advisory-item,.executive-card,.intel-card,.daily-item,.event-item,.notification-item,.empty-state{border:1px solid var(--evo-line)!important;border-radius:15px!important;background:#fff!important;color:var(--evo-text)!important;box-shadow:none!important}.ops-metrics article,.finance-summary article,.report-summary article,.time-report-summary article{padding:18px!important}.ops-metrics strong,.finance-summary strong,.report-summary strong,.time-report-summary strong{color:var(--evo-text)!important;letter-spacing:-.04em!important}.ops-metrics article:first-child,.finance-summary article:first-child{border-color:#242329!important;background:var(--evo-ink-soft)!important}.ops-metrics article:first-child span,.ops-metrics article:first-child small,.finance-summary article:first-child span,.finance-summary article:first-child small{color:#aaa6af!important}.ops-metrics article:first-child strong,.finance-summary article:first-child strong{color:#fff!important}.company-card:hover,.finance-card:hover,.person-item:hover,.traffic-card:hover,.ops-item:hover,.agenda-item:hover,.purchase-card:hover{border-color:#cdb9ee!important;box-shadow:0 10px 28px rgba(51,35,72,.07)!important;transform:translateY(-1px)}.company-card strong,.finance-card strong,.person-item strong,.goal-item strong,.traffic-card strong,.ops-item strong,.agenda-item strong,.purchase-card strong{color:var(--evo-text)!important}.company-card small,.finance-card small,.person-role,.goal-item small,.traffic-card small,.ops-item small,.agenda-item small,.purchase-card small{color:var(--evo-muted)!important}.company-logo,.avatar{background:linear-gradient(145deg,#171719,#09090a)!important;color:#fff!important;box-shadow:inset 0 0 0 1px #29282d!important}.progress-track{background:#eeeaf2!important}.progress-fill{background:linear-gradient(90deg,var(--evo-purple-strong),#a85dff)!important}
.kanban{gap:12px!important}.column{border:1px solid var(--evo-line)!important;border-radius:18px!important;background:#eeecf1!important;box-shadow:none!important}.column-header{margin:-1px -1px 10px!important;padding:15px 16px!important;border:1px solid #29282d!important;border-radius:18px 18px 13px 13px!important;background:#171719!important;color:#fff!important}.column-header h3{color:#fff!important}.column-header small{color:#aaa6af!important}.count-pill{background:var(--evo-purple)!important;color:#fff!important}.drop-zone{padding:0 10px 10px!important}.task-card{border:1px solid #e4e1e8!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}.task-card:hover{border-color:#bea1e9!important;box-shadow:0 10px 24px rgba(40,28,55,.08)!important;transform:translateY(-1px)!important}.task-card:before{background:var(--evo-purple)!important}.task-card h4,.card-title,.task-client-line strong{color:var(--evo-text)!important}.task-card p,.task-card small,.card-info{color:var(--evo-muted)!important}.area-badge,.status-badge,.contract-state,.role-badge,.approved-badge,.task-waiting-badge,.purchase-status{border:1px solid #ddd0ee!important;background:var(--evo-purple-soft)!important;color:var(--evo-purple-strong)!important}.production-steps button{border-color:#d9d4df!important;background:#fff!important;color:#85808a!important}.production-steps button.done,.production-steps button.current{border-color:var(--evo-purple)!important;background:var(--evo-purple)!important;color:#fff!important}
.calendar-shell{border:1px solid var(--evo-line)!important;border-radius:18px!important;background:#fff!important;overflow:hidden!important}.calendar-head{border-bottom:1px solid var(--evo-line)!important;background:#171719!important;color:#fff!important}.calendar-head strong{color:#fff!important}.calendar-head span{color:#aaa6af!important}.calendar-weekdays{color:#8d8792!important;background:#faf9fb!important}.calendar-day{border-color:#eeecf1!important;background:#fff!important;color:#504b55!important}.calendar-day:hover{background:var(--evo-purple-soft)!important}.calendar-day.selected{border-color:var(--evo-purple)!important;background:var(--evo-purple)!important;color:#fff!important}.calendar-day.today:not(.selected){box-shadow:inset 0 0 0 2px #c9a8f7!important;color:var(--evo-purple-strong)!important}.calendar-day-panel{border-top:1px solid var(--evo-line)!important;background:#faf9fb!important}
.time-clock-status,.time-clock-timeline,.time-clock-actions,.time-team-board,.table-wrap{border-color:var(--evo-line)!important;background:#faf9fb!important}table{color:var(--evo-text)!important}thead th{background:#171719!important;color:#fff!important;border-color:#2b2a2f!important}tbody td{border-color:#ece9ef!important}tbody tr:hover{background:var(--evo-purple-soft)!important}.time-punch-grid button{border-color:#ddd7e4!important;background:#fff!important;color:var(--evo-text)!important}.time-punch-grid button:not(:disabled):hover{border-color:var(--evo-purple)!important;background:var(--evo-purple)!important;color:#fff!important}
.admin-access-templates,.admin-grid,.purchase-layout{gap:14px!important}.access-template-card.active,.access-template-card:hover{border-color:var(--evo-purple)!important;background:var(--evo-purple-soft)!important}.permission-tags span,.purchase-meta span,.service-tags span,.ops-service-tags span{border-color:#ddd0ee!important;background:var(--evo-purple-soft)!important;color:var(--evo-purple-strong)!important}.purchase-history,.purchase-reason,.purchase-note{border-color:var(--evo-line)!important;background:#faf9fb!important;color:var(--evo-muted)!important}
.chat-thread,.chat-person{border-color:var(--evo-line)!important;background:#fff!important}.chat-thread.active,.chat-thread:hover,.chat-person:hover{border-color:#cdb9ee!important;background:var(--evo-purple-soft)!important}.chat-message.mine{background:var(--evo-purple)!important;color:#fff!important}.chat-message:not(.mine){background:#f0edf3!important;color:var(--evo-text)!important}.modal-backdrop{background:rgba(6,5,8,.68)!important;backdrop-filter:blur(7px)!important}.modal-card,.modal{border:1px solid #e5e2e9!important;border-radius:22px!important;background:#fff!important;color:var(--evo-text)!important;box-shadow:0 28px 90px rgba(0,0,0,.27)!important}.modal-card h2,.modal-card h3,.modal h2,.modal h3{color:var(--evo-text)!important}
.sidebar{background:linear-gradient(180deg,#111113,#080809)!important;border-color:#27262a!important}.nav-list a{color:#aaa6af!important}.nav-list a:hover{background:#1d1c20!important;color:#fff!important}.nav-list a.active{background:var(--evo-purple)!important;color:#fff!important;box-shadow:0 8px 22px rgba(139,61,255,.22)!important}.menu-label{color:#6e6a73!important}.profile-box{border-color:#2a292d!important;background:#141416!important}.profile-box,.profile-box span{color:#fff!important}
@media(max-width:760px){body{background:var(--evo-canvas)!important}.app-main{padding-inline:12px!important}.section-block,.panel,.purchase-form,.purchase-list-panel,.time-clock-panel,.time-report-panel,.time-admin-panel{padding:16px!important;border-radius:17px!important}.toolbar{padding:10px!important;border-radius:15px!important}.ops-hero,.admin-hero,.purchase-intro,.advisory-spotlight{padding:19px!important;border-radius:19px!important}.ops-metrics,.finance-summary,.report-summary,.time-report-summary{display:flex!important;overflow-x:auto!important;gap:9px!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important}.ops-metrics article,.finance-summary article,.report-summary article,.time-report-summary article{min-width:150px!important;scroll-snap-align:start!important}.kanban{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important}.column{flex:0 0 min(86vw,330px)!important;scroll-snap-align:start!important}.company-grid,.finance-grid,.traffic-grid,.advisory-grid{grid-template-columns:1fr!important}.calendar-shell{border-radius:15px!important}.calendar-day{min-height:51px!important;padding:6px 3px!important}.calendar-weekdays{font-size:9px!important}.modal-card,.modal{border-radius:22px 22px 10px 10px!important}}

/* Demand board — focused, quiet and easy to scan */
body[data-active-view="kanban"] .app-main{max-width:none!important}
body[data-active-view="kanban"] .topbar{padding-bottom:14px!important;margin-bottom:14px!important}
body[data-active-view="kanban"] .toolbar{display:grid!important;grid-template-columns:minmax(250px,2fr) repeat(4,minmax(125px,1fr)) auto!important;align-items:end!important;gap:10px!important;margin-bottom:16px!important;padding:12px 14px!important}
body[data-active-view="kanban"] .toolbar label{display:grid!important;gap:5px!important;font-size:9px!important;letter-spacing:.06em!important;text-transform:uppercase!important}
body[data-active-view="kanban"] .toolbar input,body[data-active-view="kanban"] .toolbar select{min-height:42px!important}
body[data-active-view="kanban"] .search-field{min-height:42px!important}
body[data-active-view="kanban"] .kanban-date-actions{min-height:42px!important;padding:3px!important;border:1px solid var(--evo-line)!important;border-radius:11px!important;background:#f7f5f8!important}
body[data-active-view="kanban"] .kanban-date-actions button{min-height:34px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#716b77!important;font-size:10px!important}
body[data-active-view="kanban"] .kanban-date-actions button.active{background:#171719!important;color:#fff!important;box-shadow:0 4px 12px rgba(0,0,0,.12)!important}
body[data-active-view="kanban"] .section-block[data-view="kanban"]{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body[data-active-view="kanban"] .section-block[data-view="kanban"]>.section-heading{align-items:flex-end!important;margin:0 2px 14px!important}
body[data-active-view="kanban"] .section-description{margin:5px 0 0!important;color:var(--evo-muted)!important;font-size:12px!important}
body[data-active-view="kanban"] .kanban{display:grid!important;grid-template-columns:repeat(4,minmax(275px,1fr))!important;gap:12px!important;align-items:start!important;padding:0 0 8px!important;overflow-x:auto!important;scrollbar-width:thin!important;scrollbar-color:#cfc9d5 transparent!important}
body[data-active-view="kanban"] .column{--column-accent:#aaa5af;min-height:510px!important;height:calc(100vh - 278px)!important;max-height:760px!important;padding:0!important;border:1px solid #e4e1e8!important;border-radius:16px!important;background:#f1f0f3!important;overflow:hidden!important;box-shadow:none!important}
body[data-active-view="kanban"] .column:nth-child(2){--column-accent:#8b3dff}body[data-active-view="kanban"] .column:nth-child(3){--column-accent:#a66a27}body[data-active-view="kanban"] .column:nth-child(4){--column-accent:#43876d}
body[data-active-view="kanban"] .column:before{display:none!important}
body[data-active-view="kanban"] .column-header{position:relative!important;align-items:center!important;margin:0!important;padding:15px 14px!important;border:0!important;border-bottom:1px solid #e3e0e6!important;border-radius:0!important;background:#f8f7f9!important;color:var(--evo-text)!important}
body[data-active-view="kanban"] .column-header:before{content:"";width:7px;height:7px;flex:0 0 7px;margin-right:1px;border-radius:50%;background:var(--column-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--column-accent) 12%,transparent)}
body[data-active-view="kanban"] .column-header>div{flex:1!important}body[data-active-view="kanban"] .column-header h3{color:#29252e!important;font-size:13px!important;letter-spacing:-.01em!important}body[data-active-view="kanban"] .column-header small{margin-top:2px!important;color:#97919c!important;font-size:9px!important}
body[data-active-view="kanban"] .count-pill{min-width:27px!important;height:27px!important;display:grid!important;place-items:center!important;padding:0 7px!important;border:1px solid #e3dfea!important;border-radius:9px!important;background:#fff!important;color:#5d5763!important;font-size:10px!important;box-shadow:none!important}
body[data-active-view="kanban"] .drop-zone{height:calc(100% - 67px)!important;min-height:0!important;padding:10px!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-width:thin!important;scrollbar-color:#d4cfd8 transparent!important}
body[data-active-view="kanban"] .task-card{position:relative!important;gap:10px!important;margin:0 0 9px!important;padding:14px!important;border:1px solid #e3e0e6!important;border-radius:13px!important;background:#fff!important;box-shadow:0 2px 8px rgba(27,22,33,.025)!important}
body[data-active-view="kanban"] .task-card:before{display:none!important}
body[data-active-view="kanban"] .task-card:hover{border-color:#c9b6e7!important;box-shadow:0 10px 26px rgba(37,26,50,.075)!important;transform:translateY(-1px)!important}
body[data-active-view="kanban"] .card-topline{display:flex!important;align-items:center!important;gap:7px!important;min-height:24px!important}
body[data-active-view="kanban"] .area-badge{max-width:145px!important;padding:4px 7px!important;border:0!important;border-radius:7px!important;background:#f2eff5!important;color:#67616d!important;font-size:8px!important;letter-spacing:.045em!important;text-transform:uppercase!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body[data-active-view="kanban"] .priority{display:inline-flex!important;align-items:center!important;gap:5px!important;margin-left:auto!important;padding:0!important;border:0!important;background:transparent!important;color:#8b8590!important;font-size:8px!important;text-transform:uppercase!important}
body[data-active-view="kanban"] .priority i{width:6px;height:6px;border-radius:50%;background:#aaa5af}body[data-active-view="kanban"] .priority.Alta i{background:#cc4b60}body[data-active-view="kanban"] .priority.Media i{background:#a66a27}body[data-active-view="kanban"] .priority.Baixa i{background:#43876d}
body[data-active-view="kanban"] .task-brief-dot{width:25px!important;height:22px!important;display:grid!important;place-items:center!important;padding:0!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#aaa5af!important;font-size:10px!important;letter-spacing:1px!important;box-shadow:none!important}
body[data-active-view="kanban"] .task-brief-dot:hover{background:#f0ebf7!important;color:var(--evo-purple-strong)!important}
body[data-active-view="kanban"] .card-title{display:grid!important;gap:8px!important}body[data-active-view="kanban"] .card-title>strong{color:#242027!important;font-size:14px!important;line-height:1.35!important;letter-spacing:-.018em!important}
body[data-active-view="kanban"] .task-client-line{display:flex!important;align-items:center!important;gap:7px!important;color:#77717c!important;font-size:10px!important}body[data-active-view="kanban"] .task-client-line .company-logo{width:22px!important;height:22px!important;min-width:22px!important;border-radius:7px!important;font-size:7px!important}body[data-active-view="kanban"] .task-client-line span{color:#77717c!important;font-size:10px!important;font-weight:650!important}
body[data-active-view="kanban"] .card-info{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding-top:9px!important;border-top:1px solid #f0edf2!important;color:#77717c!important;font-size:9px!important}
body[data-active-view="kanban"] .owner-name{min-width:0!important;gap:6px!important;color:#625c68!important;font-size:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}body[data-active-view="kanban"] .owner-name .avatar{width:22px!important;height:22px!important;min-width:22px!important;font-size:7px!important}
body[data-active-view="kanban"] .task-due{display:grid!important;justify-items:end!important;gap:1px!important;color:#625c68!important;font-weight:750!important;white-space:nowrap!important}body[data-active-view="kanban"] .task-due small{color:#aaa5af!important;font-size:7px!important;font-weight:700!important;text-transform:uppercase!important}body[data-active-view="kanban"] .task-due.due-risk{color:#bd354b!important}
body[data-active-view="kanban"] .compact-meta{display:none!important}
body[data-active-view="kanban"] .task-collab-line{padding-top:0!important;border:0!important}
body[data-active-view="kanban"] .production-flow{padding:9px!important;border:1px solid #ece7f1!important;border-radius:10px!important;background:#faf8fc!important}
body[data-active-view="kanban"] .card-actions{display:flex!important;justify-content:flex-end!important;gap:5px!important;padding-top:9px!important;border-top:1px solid #f0edf2!important}
body[data-active-view="kanban"] .card-actions button{width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important}
body[data-active-view="kanban"] .card-actions .primary-action{border-color:#dfd2f0!important;background:#f4edff!important;color:var(--evo-purple-strong)!important}body[data-active-view="kanban"] .card-actions .danger-action{opacity:.52!important}body[data-active-view="kanban"] .task-card:hover .card-actions .danger-action{opacity:1!important}
body[data-active-view="kanban"] .empty-state{padding:22px 14px!important;border-style:dashed!important;background:rgba(255,255,255,.55)!important;color:#9a949f!important;text-align:center!important}
@media(max-width:1180px){body[data-active-view="kanban"] .toolbar{grid-template-columns:minmax(240px,2fr) repeat(2,minmax(130px,1fr))!important}body[data-active-view="kanban"] .kanban-date-actions{grid-column:auto!important}}
@media(max-width:760px){body[data-active-view="kanban"] .topbar{display:flex!important}body[data-active-view="kanban"] .toolbar{display:flex!important;align-items:end!important;gap:8px!important;padding:9px!important;overflow-x:auto!important}body[data-active-view="kanban"] .toolbar .search-field{min-width:245px!important}body[data-active-view="kanban"] .toolbar label{min-width:130px!important}body[data-active-view="kanban"] .kanban-date-actions{min-width:max-content!important}body[data-active-view="kanban"] .section-block[data-view="kanban"]>.section-heading{align-items:flex-start!important}body[data-active-view="kanban"] .section-description{font-size:11px!important}body[data-active-view="kanban"] .kanban{display:flex!important;gap:9px!important;padding-bottom:6px!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important}body[data-active-view="kanban"] .column{flex:0 0 min(87vw,336px)!important;height:auto!important;min-height:470px!important;max-height:none!important;scroll-snap-align:center!important}body[data-active-view="kanban"] .drop-zone{height:auto!important;min-height:410px!important;overflow:visible!important}body[data-active-view="kanban"] .task-card{padding:13px!important}body[data-active-view="kanban"] .card-actions button{width:34px!important;height:34px!important}}

/* Demand header — one search, one action area, no duplicated title */
body[data-active-view="kanban"] .topbar{min-height:72px!important;display:flex!important;align-items:center!important;gap:20px!important;margin:0 0 12px!important;padding:12px 14px 12px 18px!important;border:1px solid #29282d!important;border-radius:18px!important;background:radial-gradient(circle at 82% -30%,rgba(139,61,255,.34),transparent 31%),linear-gradient(145deg,#171719,#0b0b0c)!important;box-shadow:0 14px 38px rgba(20,14,27,.12)!important}
body[data-active-view="kanban"] .topbar>div:first-child{min-width:170px!important}
body[data-active-view="kanban"] .topbar .eyebrow{margin:0 0 2px!important;color:#bd88ff!important;font-size:8px!important}
body[data-active-view="kanban"] .topbar h1{margin:0!important;color:#fff!important;font-size:22px!important;line-height:1.05!important;letter-spacing:-.045em!important}
body[data-active-view="kanban"] .topbar-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;margin-left:auto!important}
body[data-active-view="kanban"] .topbar .global-search,body[data-active-view="kanban"] #liveStatus,body[data-active-view="kanban"] #tvModeBtn{display:none!important}
body[data-active-view="kanban"] #refreshBtn{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-color:#3a373e!important;background:#222225!important;color:#d6d1da!important}
body[data-active-view="kanban"] .topbar .primary-button{min-height:40px!important;padding:0 16px!important;border-radius:11px!important;font-size:11px!important;box-shadow:0 8px 24px rgba(139,61,255,.25)!important}
body[data-active-view="kanban"] .toolbar{grid-template-columns:minmax(260px,2fr) 118px repeat(3,minmax(118px,1fr)) auto 68px!important;margin-bottom:12px!important;padding:9px 10px!important;border-radius:15px!important}
body[data-active-view="kanban"] .toolbar label{gap:3px!important}
body[data-active-view="kanban"] .toolbar input,body[data-active-view="kanban"] .toolbar select,body[data-active-view="kanban"] .search-field{min-height:38px!important;height:38px!important;border-radius:9px!important;font-size:11px!important}
body[data-active-view="kanban"] .search-field input{height:36px!important;min-height:36px!important;padding-block:0!important}
body[data-active-view="kanban"] .kanban-date-actions{min-height:38px!important;height:38px!important;border-radius:9px!important}
body[data-active-view="kanban"] .kanban-date-actions button{min-height:30px!important;padding:0 10px!important}
body[data-active-view="kanban"] .kanban-export{min-width:68px!important;min-height:38px!important;height:38px!important;padding:0 10px!important;border-radius:9px!important;font-size:10px!important}
body[data-active-view="kanban"] .column{height:calc(100vh - 188px)!important;min-height:540px!important}
@media(max-width:1180px){body[data-active-view="kanban"] .toolbar{grid-template-columns:minmax(230px,2fr) repeat(3,minmax(112px,1fr)) auto 68px!important}body[data-active-view="kanban"] .toolbar label:first-of-type{display:none!important}}
@media(max-width:760px){body[data-active-view="kanban"] .topbar{min-height:62px!important;margin-bottom:9px!important;padding:10px 11px 10px 14px!important;border-radius:15px!important}body[data-active-view="kanban"] .topbar>div:first-child{min-width:0!important}body[data-active-view="kanban"] .topbar h1{font-size:19px!important}body[data-active-view="kanban"] .topbar .eyebrow{font-size:7px!important}body[data-active-view="kanban"] #refreshBtn{display:none!important}body[data-active-view="kanban"] .topbar-actions{display:flex!important;grid-template-columns:none!important;width:auto!important}body[data-active-view="kanban"] .topbar .primary-button{grid-column:auto!important;min-height:38px!important;padding:0 12px!important;font-size:10px!important;white-space:nowrap!important}body[data-active-view="kanban"] .toolbar{margin-bottom:10px!important;padding:7px!important;border-radius:13px!important}body[data-active-view="kanban"] .toolbar label:first-of-type{display:grid!important}body[data-active-view="kanban"] .toolbar input,body[data-active-view="kanban"] .toolbar select,body[data-active-view="kanban"] .search-field{height:40px!important;min-height:40px!important}body[data-active-view="kanban"] .kanban-export{min-width:62px!important;height:40px!important;min-height:40px!important}body[data-active-view="kanban"] .column{height:auto!important;min-height:470px!important}}

/* View isolation: inactive modules must never leak into another tab. */
.app-view.view-hidden,body[data-active-view]:not([data-active-view="kanban"]) .toolbar[data-view="kanban"]{display:none!important;visibility:hidden!important;animation:none!important}

/* Compact global workspace header */
body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .topbar{min-height:72px!important;display:flex!important;align-items:center!important;gap:20px!important;margin:0 0 16px!important;padding:12px 14px 12px 18px!important;border:1px solid #29282d!important;border-radius:18px!important;background:radial-gradient(circle at 82% -30%,rgba(139,61,255,.3),transparent 31%),linear-gradient(145deg,#171719,#0b0b0c)!important;box-shadow:0 14px 38px rgba(20,14,27,.11)!important}
body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .topbar>div:first-child{min-width:190px!important}
body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .topbar .eyebrow{margin:0 0 2px!important;color:#bd88ff!important;font-size:8px!important}
body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .topbar h1{margin:0!important;color:#fff!important;font-size:21px!important;line-height:1.08!important;letter-spacing:-.04em!important}
body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .topbar-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;margin-left:auto!important}
body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .global-search{width:min(310px,26vw)!important;min-width:210px!important;height:40px!important;border:1px solid #3a373e!important;border-radius:11px!important;background:#222225!important;color:#aaa6af!important;box-shadow:none!important}
body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .global-search input{height:38px!important;min-height:38px!important;padding-block:0!important;background:transparent!important;color:#f2eff4!important;-webkit-text-fill-color:#f2eff4!important;font-size:11px!important}
body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .global-search input::placeholder{color:#88838d!important;-webkit-text-fill-color:#88838d!important}
body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .live-pill{height:40px!important;min-height:40px!important;padding:0 11px!important;border-color:#39343f!important;background:#211d26!important;color:#bd88ff!important}
body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) #refreshBtn{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-color:#3a373e!important;background:#222225!important;color:#d6d1da!important}
body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) #tvModeBtn,body:not([data-active-view="kanban"]) .topbar-actions>.primary-button{display:none!important}
@media(max-width:900px){body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .global-search{width:min(260px,34vw)!important;min-width:180px!important}}
@media(max-width:760px){body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .topbar{min-height:62px!important;margin-bottom:12px!important;padding:10px 11px 10px 14px!important;border-radius:15px!important}body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .topbar>div:first-child{min-width:0!important}body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .topbar h1{font-size:18px!important}body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .topbar .eyebrow{font-size:7px!important}body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .global-search,body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) #refreshBtn{display:none!important}body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .topbar-actions{display:flex!important;grid-template-columns:none!important;width:auto!important}body:not([data-active-view="dashboard"]):not([data-active-view="kanban"]) .live-pill{height:34px!important;min-height:34px!important;padding:0 9px!important;font-size:9px!important}}


/* Source: ui/compat/planning.css */
.planning-panel{margin-top:28px;padding-top:24px;border-top:1px solid #e8e6ec}.planning-panel>header,.planning-items article{display:flex;justify-content:space-between;align-items:center;gap:16px}.planning-panel h2{margin:4px 0}.planning-panel p,.planning-panel small{color:#756d7f;font-size:13px;line-height:1.6}.planning-notice{padding:14px 16px;background:#f4edff;border:1px solid #e1d4f3;border-radius:12px}.planning-editor{margin:20px 0;border:1px solid #ded9e5;border-radius:14px;padding:18px}.planning-editor summary{cursor:pointer;font-weight:750;color:#6f28e8}.planning-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.planning-panel label{display:grid;gap:6px;font-size:12px}.planning-panel input,.planning-panel select,.planning-panel textarea{width:100%;min-width:0;box-sizing:border-box}.planning-fields textarea{min-height:90px}.planning-items article{padding:14px;border-bottom:1px solid #eee9f2}.planning-items small{display:block}.planning-controls{display:flex;gap:14px;align-items:end;margin:22px 0}.planning-suggestion{border:1px solid #e4deeb;border-radius:16px;padding:20px;margin:12px 0;background:white}.planning-suggestion h3{margin:5px 0}.planning-review{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding-top:12px;border-top:1px solid #eee9f2}.planning-review label{max-width:350px}.planning-review input{min-height:44px}.planning-review select{max-width:350px}#planFeedback{position:sticky;bottom:10px;background:#171719;color:white;border-radius:12px;padding:12px}#planFeedback:empty{display:none}@media(max-width:760px){.planning-fields{grid-template-columns:1fr}.planning-controls{flex-wrap:wrap}.planning-review{align-items:stretch;flex-direction:column}.planning-review label,.planning-review select{max-width:100%}.planning-panel>header{align-items:flex-start}.planning-suggestion{padding:14px}}
.knowledge-panel{margin-top:36px;padding-top:24px;border-top:1px solid #e8e6ec}.knowledge-panel>header,.knowledge-toolbar,.knowledge-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.knowledge-panel h2{margin:5px 0}.knowledge-panel p,.knowledge-panel small{font-size:13px;color:#766e80;line-height:1.6}.knowledge-panel label{display:grid;gap:7px;font-size:12px;margin:12px 0}.knowledge-panel input,.knowledge-panel textarea,.knowledge-panel select{width:100%;min-width:0;box-sizing:border-box}.knowledge-toolbar{margin:18px 0}.knowledge-state{padding:9px 14px;border-radius:12px;background:#171719;color:#cba6ff;font-size:12px}.knowledge-documents article,.knowledge-job{padding:17px;margin:10px 0;border:1px solid #e7e0ed;border-radius:14px;background:white}.knowledge-documents article{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.knowledge-documents small{display:block}.knowledge-actions{justify-content:flex-start}.knowledge-panel blockquote{border-left:3px solid #8b3dff;margin:14px 0;padding:12px;background:#f6f0ff;white-space:pre-wrap;font-size:13px;overflow-wrap:anywhere}.knowledge-job>span{display:block;color:#7842ba;font-size:12px;margin-top:5px}.knowledge-panel li{font-size:13px;color:#735739}.knowledge-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:400px;overflow:auto;font-family:inherit;font-size:13px}#knowledgeFeedback:not(:empty){padding:14px;background:#171719;color:#fff;border-radius:12px;position:sticky;bottom:12px}.knowledge-panel details[hidden]{display:none!important}@media(max-width:760px){.knowledge-actions button{min-height:44px}.knowledge-panel>header{align-items:flex-start}.knowledge-panel .planning-editor{padding:14px}.knowledge-toolbar>label{width:100%}}


/* Source: ui/compat/intelligence.css */
/* Nexus intelligence: clear context, assisted analysis and human review. */
body[data-active-view] .app-main{background:radial-gradient(ellipse at 90% 0,rgba(145,87,238,.045),transparent 45%),#f7f7fa!important}
body[data-active-view] .sidebar{background:#121216!important;border-right:1px solid #29252f!important}
body[data-active-view] .nav-list a{border-radius:10px!important}
body[data-active-view] .nav-list a.active{background:linear-gradient(110deg,#7534ce,#9157ee)!important;box-shadow:none!important}
body[data-active-view] .nav-list .menu-label{letter-spacing:.14em!important;font-size:9px!important}
body[data-active-view] .dashboard-chart-card,body[data-active-view] .panel{border-radius:16px!important;box-shadow:0 3px 14px #21152b04!important}
body[data-active-view] .primary-button{box-shadow:none!important;background:#803bea!important}
body[data-active-view] :is(button,a,summary):focus-visible{outline:3px solid #b99ce7!important;outline-offset:3px}
.ai-launchpad{display:flex;align-items:center;gap:18px;margin:4px 0 22px;padding:24px 28px;border:1px solid #34303e;border-radius:18px;background:radial-gradient(ellipse at 85% 0,#4b2769 0,transparent 60%),#15141b;color:#fff}
.ai-launchpad.hidden{display:none!important}.ai-launch-icon{display:grid;place-items:center;width:50px;height:50px;flex-shrink:0;border:1px solid #ffffff25;border-radius:15px;color:#c59aff;background:#ffffff08;font-size:30px}
.ai-kicker{color:#cba7fb;font-size:9px;letter-spacing:.16em;font-weight:800}.ai-launchpad h3{font-size:22px;letter-spacing:-.04em;color:#fff!important;margin:6px 0}.ai-launchpad p{font-size:12px;line-height:1.6;color:#bbb3c7;margin:0;max-width:560px}
.ai-open{margin-left:auto;flex-shrink:0;display:flex;align-items:center;gap:18px;min-height:44px;background:#fff;color:#2c173f;border:0;border-radius:10px;padding:10px 17px;font-size:12px;font-weight:800;cursor:pointer}.ai-open:hover{background:#eee3ff}
#inteligencia{min-width:0}.knowledge-panel{margin:0;padding:0;border:0}.knowledge-hero{padding:30px;border-radius:18px;background:radial-gradient(ellipse at 95% 0,#432159,transparent 60%),#16131c;color:white;border:1px solid #35303e}.knowledge-hero h2{color:#fff!important;font-size:30px;line-height:1.2;letter-spacing:-.045em;margin:10px 0}.knowledge-hero .eyebrow{color:#c49bfc!important}.knowledge-hero p{color:#b9b1c4}.knowledge-hero button{background:#ffffff0d!important;border-color:#ffffff30!important;color:#ece6f7!important;min-height:44px}
.ai-workflow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;gap:12px;padding:0;margin:20px 0}.ai-workflow li{display:flex;gap:12px;align-items:center;padding:18px;border:1px solid #e7e4ed;border-radius:14px;background:#fff}.ai-workflow li>span{font-size:11px;color:#7d49b7;border-radius:10px;background:#f2ebfc;width:34px;height:34px;display:grid;place-items:center;flex-shrink:0}.ai-workflow strong{font-size:12px;color:#302a38}.ai-workflow small{display:block;font-size:11px;margin-top:4px}
.knowledge-toolbar{padding:0 3px}.knowledge-toolbar>label{min-width:260px}.knowledge-state{border:1px solid #ddd0ed;background:#f0e9f8;color:#633d8c;border-radius:30px;font-size:11px}.knowledge-panel .planning-editor{padding:19px 22px;background:#fff;border-color:#e7e4ed}.knowledge-panel .planning-editor summary{color:#312638;font-size:13px}.knowledge-panel .planning-editor[open] summary{padding-bottom:16px;border-bottom:1px solid #eeebf1}.knowledge-panel .planning-editor p{max-width:900px;font-size:12px}.knowledge-panel input,.knowledge-panel select,.knowledge-panel textarea{font-size:13px!important;border-radius:10px!important;background:#faf9fc!important;min-height:44px}.knowledge-panel label{font-weight:600;color:#514958}.knowledge-actions button{min-height:40px;font-size:12px}
.knowledge-review-heading{display:flex;align-items:center;gap:12px;margin-top:32px}.knowledge-review-heading h3{font-size:18px;letter-spacing:-.03em;margin:0}.ai-spark{color:#8b45e7;font-size:23px}.review-count{font-size:10px;background:#ede7f5;border-radius:20px;padding:5px 10px;color:#684790}.ai-empty{display:grid;justify-items:center;text-align:center;padding:35px 20px;border:1px dashed #d8cde4;border-radius:16px;background:#fcfaff}.ai-empty>span{font-size:32px;color:#9565cb}.ai-empty h3{margin:10px 0 0;font-size:16px}.ai-empty p{max-width:400px}.knowledge-panel .planning-suggestion{box-shadow:none}.knowledge-panel blockquote{border-radius:0 10px 10px 0}
@media(max-width:1000px){.ai-launchpad{flex-wrap:wrap}.ai-open{margin-left:68px}.ai-workflow li{padding:14px;gap:9px}.knowledge-hero h2{font-size:26px}}
@media(max-width:760px){.ai-launchpad{padding:20px;gap:13px}.ai-launch-icon{width:38px;height:38px;font-size:24px}.ai-launchpad>div:nth-child(2){flex:1;min-width:160px}.ai-launchpad h3{font-size:20px}.ai-open{margin:4px 0 0;width:100%;justify-content:space-between}.knowledge-hero{padding:22px}.knowledge-hero h2{font-size:25px}.ai-workflow{grid-template-columns:1fr;gap:8px}.ai-workflow li{padding:12px 16px}.ai-workflow small{margin-top:2px}.knowledge-toolbar>label{min-width:0}.knowledge-state{max-width:100%;overflow-wrap:anywhere}.knowledge-review-heading{flex-wrap:wrap;gap:8px}.knowledge-panel .planning-editor{padding:16px}.knowledge-actions{width:100%}.knowledge-actions button{min-height:44px;flex:1}.knowledge-panel .planning-fields{grid-template-columns:1fr}.knowledge-documents article>div{min-width:0;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.app-view{animation:none!important}*{scroll-behavior:auto!important}}
body[data-active-view] .global-search input{border:0!important;box-shadow:none!important;outline-offset:-3px;border-radius:0!important}
@media(max-width:760px){body[data-active-view] .sidebar{display:block!important}body[data-active-view] .sidebar .nav-list{width:max-content!important;max-width:none!important;justify-content:flex-start!important;align-items:center!important;margin:0!important}body[data-active-view] .sidebar .nav-list .hidden{display:none!important}.knowledge-panel input,.knowledge-panel select,.knowledge-panel textarea{font-size:16px!important}}

.knowledge-free-mode{display:flex;align-items:center;gap:24px;justify-content:space-between;padding:22px;margin:20px 0;border:1px solid #dfd2ee;border-radius:16px;background:#faf6ff}.knowledge-free-mode h3{margin:7px 0;font-size:18px;letter-spacing:-.025em}.knowledge-free-mode p{max-width:680px;margin:0}.knowledge-free-mode button{flex-shrink:0;min-height:44px}@media(max-width:760px){.knowledge-free-mode{flex-direction:column;align-items:stretch;padding:18px;gap:16px}.knowledge-free-mode button{white-space:normal}}

.knowledge-review-heading[hidden],.planning-items article[hidden]{display:none!important}#planejamento .planning-panel{margin-top:0;padding-top:0;border:0}.knowledge-panel .knowledge-hero{padding:20px 24px}.knowledge-panel .knowledge-hero h2{font-size:24px;margin:6px 0 0}.planning-controls{flex-wrap:wrap}.planning-controls label{min-width:155px}@media(max-width:760px){.planning-controls>*{width:100%}.planning-controls select,.planning-controls input{font-size:16px!important}.planning-items article{align-items:flex-start;flex-wrap:wrap}}


/* Source: ui/compat/workspace-design.css */
/* EVOADS workspace design, September 2026. Scoped to the authenticated app. */
#nexusApp{--ws-bg:#f6f7f9;--ws-line:#e5e7eb;--ws-ink:#20222b;--ws-muted:#69717e;--ws-purple:#793ee5}
#nexusApp .app-main{background:var(--ws-bg)!important;padding:24px 30px 40px!important;min-width:0}
#nexusApp .sidebar{background:#15151b!important;border-right:1px solid #27272e!important;box-shadow:none!important}
#nexusApp .sidebar-circuit{display:none!important}
#nexusApp .sidebar .brand{padding:21px 18px!important;border-color:#2a2932!important}
#nexusApp .sidebar .brand strong{font-size:19px!important;color:#fafafa!important}
#nexusApp .sidebar .brand small{color:#a5a1b0!important}
#nexusApp .sidebar .nav-list{gap:3px!important;padding:8px 12px!important}
#nexusApp .sidebar .menu-label{color:#9792a2!important;font-size:9px!important;padding:14px 12px 5px!important;letter-spacing:.13em!important}
#nexusApp .sidebar .nav-list a{color:#c2bfcb!important;min-height:38px!important;padding:9px 12px!important;font-size:12px!important;border-radius:8px!important;font-weight:600!important}
#nexusApp .sidebar .nav-list a:hover{background:#23222c!important;color:#fff!important}
#nexusApp .sidebar .nav-list a.active{background:#302442!important;color:#e0c9ff!important;box-shadow:inset 3px 0 #a470ff!important}
#nexusApp .sidebar .nav-icon{color:inherit!important}
#nexusApp .sidebar .profile-box{background:#1d1c24!important;border:1px solid #33303d!important;box-shadow:none!important}
#nexusApp .sidebar .owner-name,#nexusApp .sidebar .profile-button,#nexusApp .sidebar #logoutBtn{color:#e2dfea!important}
#nexusApp .sidebar .profile-button,#nexusApp .sidebar #logoutBtn{background:transparent!important;border:1px solid #393443!important;border-radius:8px!important;min-height:34px!important}
#nexusApp .topbar{display:flex!important;align-items:center!important;gap:16px!important;background:transparent!important;color:var(--ws-ink)!important;border:0!important;border-bottom:1px solid var(--ws-line)!important;border-radius:0!important;box-shadow:none!important;margin:0 0 24px!important;padding:0 0 20px!important;min-height:66px!important}
#nexusApp .topbar>div:first-child{min-width:0!important}
#nexusApp .topbar h1{font-size:25px!important;line-height:1.25!important;letter-spacing:-.045em!important;color:var(--ws-ink)!important;margin:3px 0 0!important}
#nexusApp .topbar .eyebrow{color:var(--ws-muted)!important;font-size:9px!important;letter-spacing:.1em!important;margin:0!important}
#nexusApp .topbar-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin-left:auto!important}
#nexusApp .topbar .global-search{background:#fff!important;border:1px solid var(--ws-line)!important;border-radius:9px!important;width:240px!important;min-width:0!important;height:40px!important}
#nexusApp .global-search input{color:var(--ws-ink)!important;-webkit-text-fill-color:var(--ws-ink)!important;border:0!important;background:transparent!important;height:38px!important;font-size:12px!important}
#nexusApp .global-search input::placeholder{color:#78808b!important;-webkit-text-fill-color:#78808b!important}
#nexusApp .topbar .live-pill{background:#f0f7f3!important;border:1px solid #dcebe2!important;color:#367653!important;height:30px!important;min-height:30px!important;padding:0 10px!important;font-size:10px!important}
#nexusApp .topbar #refreshBtn,#nexusApp .topbar #tvModeBtn{color:#69717e!important;background:#fff!important;border:1px solid var(--ws-line)!important;box-shadow:none!important;width:40px!important;height:40px!important;min-height:40px!important;border-radius:9px!important}
#nexusApp .app .primary-button{background:var(--ws-purple)!important;border:1px solid var(--ws-purple)!important;border-radius:8px!important;box-shadow:none!important;color:white!important;font-size:12px!important;min-height:40px!important;padding:10px 15px!important;transform:none!important}
#nexusApp .app .primary-button:hover{background:#6630cb!important}
#nexusApp .app :is(.secondary-button,.quiet-action,.ghost-button){border-radius:8px!important;box-shadow:none!important;font-size:12px!important;transform:none!important}
#nexusApp .app button:disabled{cursor:not-allowed!important;opacity:.5}
#nexusApp .app :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=color]){border:1px solid #dde1e7!important;border-radius:8px!important;background:#fff!important;color:#252934!important;box-shadow:none!important;font-size:13px!important;min-height:40px;padding:10px 12px!important}
#nexusApp .app :is(input,select,textarea):focus{border-color:#9069d4!important;outline:2px solid #eee5ff!important;outline-offset:1px}
#nexusApp .app label{color:#57606e!important;font-size:11px!important}
#nexusApp .app :is(.section-block,.panel,.dashboard-chart-card,.dashboard-list-card,.purchase-form,.purchase-list-panel,.time-clock-panel,.time-report-panel){border-radius:13px!important;border-color:var(--ws-line)!important;box-shadow:none!important;background:#fff!important}
#nexusApp .app :is(.section-heading h2,.panel h2){font-size:19px!important;line-height:1.3!important;color:var(--ws-ink)!important}
#nexusApp .app :is(.company-card,.finance-card,.task-card,.planning-suggestion,.purchase-card,.agenda-item){border-radius:10px!important;border-color:var(--ws-line)!important;box-shadow:none!important;transform:none!important}
#nexusApp .app :is(.company-card,.finance-card,.task-card):hover{border-color:#c5bbd9!important;box-shadow:0 3px 10px #28154206!important;transform:none!important}
#nexusApp .app :is(.ops-hero,.admin-hero,.purchase-intro,.advisory-spotlight,.knowledge-hero){padding:20px 24px!important;background:#f5f2fa!important;border:1px solid #e5ddee!important;border-radius:12px!important;box-shadow:none!important;color:var(--ws-ink)!important;min-height:0!important}
#nexusApp .app :is(.ops-hero,.admin-hero,.purchase-intro,.advisory-spotlight,.knowledge-hero):before,#nexusApp .app :is(.ops-hero,.admin-hero,.purchase-intro,.advisory-spotlight,.knowledge-hero):after{display:none!important}
#nexusApp .app :is(.ops-hero,.admin-hero,.purchase-intro,.knowledge-hero) :is(h1,h2,h3,strong){color:var(--ws-ink)!important;font-size:21px!important}
#nexusApp .app :is(.ops-hero,.admin-hero,.purchase-intro,.knowledge-hero) p{color:#696271!important;font-size:12px!important}
#nexusApp .app .knowledge-hero button{color:#654286!important;background:white!important;border-color:#ddd4e7!important}
#nexusApp .dashboard-summary-head h2{font-size:22px!important}
#nexusApp .dashboard-summary-head>div>p:last-child{font-size:12px!important}
#nexusApp .dashboard-chart-grid{gap:16px!important}
#nexusApp .dashboard-chart-card,#nexusApp .dashboard-list-card{padding:20px!important}
#nexusApp .dashboard-chart-card h3,#nexusApp .dashboard-list-card h3{font-size:16px!important}
#nexusApp .dashboard-mini-kpis strong{font-size:26px!important;font-variant-numeric:tabular-nums}
#nexusApp .dashboard-priority{border-radius:12px!important;box-shadow:none!important}
#nexusApp .planning-editor{border-radius:10px!important;border-color:var(--ws-line)!important;background:#fff!important}
#nexusApp .planning-notice{background:#f7f5fb!important;border-color:#e8e1f0!important;font-size:12px!important}
#nexusApp[data-active-view=kanban] .toolbar{background:#fff!important;border:1px solid var(--ws-line)!important;border-radius:11px!important;padding:12px!important;margin-bottom:20px!important;gap:10px!important}
#nexusApp[data-active-view=kanban] .search-field{background:#fff!important;border:1px solid #dde1e7!important;border-radius:8px!important;box-shadow:none!important;min-width:0!important}
#nexusApp[data-active-view=kanban] .search-field input{border:0!important;min-width:0!important;width:100%!important}
#nexusApp[data-active-view=kanban] .kanban{gap:14px!important}
#nexusApp[data-active-view=kanban] .column{background:#eef0f4!important;border:1px solid #e5e7ed!important;border-radius:12px!important;padding:10px!important;min-height:420px!important;height:calc(100vh - 220px)!important}
#nexusApp[data-active-view=kanban] .column h3{font-size:12px!important;color:#525a68!important;font-weight:750!important}
#nexusApp[data-active-view=kanban] .task-card{padding:15px!important;gap:12px!important;background:#fff!important;border-left-width:1px!important}
#nexusApp[data-active-view=kanban] .card-title>strong{font-size:14px!important;line-height:1.45!important;letter-spacing:-.015em!important;color:#242831!important}
#nexusApp[data-active-view=kanban] .task-client-line span{font-size:11px!important;color:#66707d!important}
#nexusApp[data-active-view=kanban] .card-info,#nexusApp[data-active-view=kanban] .owner-name{font-size:10px!important}
#nexusApp[data-active-view=kanban] .card-actions button{width:34px!important;height:34px!important;min-height:34px!important;border-radius:7px!important}
#nexusApp[data-active-view=kanban] .area-badge{font-size:9px!important;background:#f2edf9!important;color:#735990!important}
#nexusApp .workspace-menu-button,#nexusApp .workspace-filter-toggle{display:none!important}
#nexusApp .workspace-menu{width:min(92vw,480px);max-height:85svh;border:1px solid #dedbe7;border-radius:18px;padding:20px;box-shadow:0 24px 70px #15101b40;background:white;color:#25232b}
#nexusApp .workspace-menu::backdrop{background:#14101980;backdrop-filter:blur(4px)}
#nexusApp .workspace-menu header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
#nexusApp .workspace-menu header button{background:#f5f3f8;border:1px solid #ddd8e6;border-radius:8px;min-height:44px;padding:8px 12px}
#nexusApp .workspace-menu nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#nexusApp .workspace-menu nav button{display:flex;align-items:center;gap:9px;text-align:left;border:1px solid #e6e2ed;border-radius:9px;padding:12px;min-height:48px;background:white;color:#534962;font-size:12px}
#nexusApp .workspace-menu nav button[aria-current=page]{background:#f0e7fc;border-color:#ceb9ec;color:#6837a3}
@media(max-width:1150px){#nexusApp .topbar .global-search{width:190px!important}#nexusApp[data-active-view=kanban] .toolbar{display:flex!important;flex-wrap:wrap!important}#nexusApp[data-active-view=kanban] .toolbar>.search-field{flex:1 1 260px}#nexusApp[data-active-view=kanban] .toolbar>label{flex:1 1 120px;display:grid!important}}
@media(max-width:760px){
#nexusApp .app-main{padding:18px 14px 96px!important}
#nexusApp .topbar{display:flex!important;flex-wrap:nowrap!important;padding:0 0 15px!important;margin-bottom:18px!important;gap:10px!important;min-height:58px!important}
#nexusApp .topbar h1{font-size:20px!important}#nexusApp .topbar-actions{width:auto!important;gap:7px!important}
#nexusApp .topbar :is(.global-search,.live-pill,#refreshBtn,#tvModeBtn){display:none!important}
#nexusApp .topbar .primary-button{font-size:11px!important;padding:8px 10px!important;min-height:44px!important;white-space:nowrap}
#nexusApp .workspace-menu-button{display:grid!important;place-items:center;flex-shrink:0;width:44px;height:44px;background:#fff;border:1px solid #e0dce8;border-radius:9px;color:#665774;padding:10px}
#nexusApp .workspace-menu-button svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none}
#nexusApp .sidebar{height:calc(68px + env(safe-area-inset-bottom))!important;padding:4px 8px env(safe-area-inset-bottom)!important;background:#17151d!important;border-radius:0!important;box-shadow:none!important;overflow-x:auto!important}
#nexusApp .sidebar .nav-list{display:flex!important;width:max-content!important;min-width:100%!important;gap:4px!important;padding:0!important;justify-content:flex-start!important}
#nexusApp .sidebar .nav-list a{min-width:70px!important;width:70px!important;min-height:58px!important;padding:7px 4px!important;font-size:10px!important;gap:5px!important}
#nexusApp .sidebar .nav-list a.active{box-shadow:none!important;background:#332443!important}
#nexusApp .app :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=color]){font-size:16px!important;min-height:44px!important}
#nexusApp .app :is(.section-block,.panel,.dashboard-chart-card,.dashboard-list-card,.purchase-form,.purchase-list-panel){padding:16px!important}
#nexusApp .app :is(.ops-hero,.admin-hero,.purchase-intro,.knowledge-hero){padding:17px!important}
#nexusApp[data-active-view=kanban] .toolbar{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:8px!important;padding:10px!important}
#nexusApp[data-active-view=kanban] .toolbar>.search-field{flex:1 1 190px!important;width:auto!important;min-width:0!important;max-width:100%}
#nexusApp .workspace-filter-toggle{display:block!important;min-height:44px;padding:9px 12px;border:1px solid #ded7e9;border-radius:8px;background:#f7f3fc;color:#6437a2;font-size:12px}
#nexusApp[data-active-view=kanban] .toolbar:not(.filters-expanded)>:is(label,.kanban-date-actions,.kanban-export){display:none!important}
#nexusApp[data-active-view=kanban] .toolbar.filters-expanded>label{flex:1 1 42%!important;min-width:0!important;display:grid!important}
#nexusApp[data-active-view=kanban] .toolbar.filters-expanded .kanban-date-actions{flex:1;min-width:180px!important}
#nexusApp[data-active-view=kanban] .column{height:auto!important;min-height:400px!important;flex:0 0 min(85vw,340px)!important}
#nexusApp[data-active-view=kanban] .card-actions button{width:44px!important;height:44px!important;min-height:44px!important}
#nexusApp .planning-controls{gap:12px!important}#nexusApp .planning-fields{gap:12px!important}
#nexusApp .modal-card{padding:20px!important;border-radius:16px 16px 0 0!important}
}
@media(prefers-reduced-motion:reduce){#nexusApp .app *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:761px){
#nexusApp .sidebar{display:flex!important;flex-direction:column!important;height:100svh!important;overflow:hidden!important}
#nexusApp .sidebar .brand{flex-shrink:0!important}
#nexusApp .sidebar .nav-list{flex:1!important;min-height:0!important;overflow-y:auto!important;scrollbar-width:thin;display:flex!important;flex-direction:column!important}
#nexusApp .sidebar .profile-box{position:static!important;flex-shrink:0!important;margin:8px 12px!important;width:auto!important}
#nexusApp[data-active-view=kanban] .toolbar{display:flex!important;flex-wrap:wrap!important;overflow:visible!important}
#nexusApp[data-active-view=kanban] .toolbar>.search-field{flex:1 1 240px!important;max-width:100%;height:40px!important}
#nexusApp[data-active-view=kanban] .toolbar>label{display:grid!important;flex:1 1 115px!important;min-width:0!important}
#nexusApp[data-active-view=kanban] .toolbar :is(input,select){width:100%!important;min-width:0!important}
#nexusApp[data-active-view=kanban] .kanban{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;overflow:visible!important}
#nexusApp[data-active-view=kanban] .column{width:auto!important;min-width:0!important}
#nexusApp[data-active-view=kanban] .drop-zone{min-width:0!important;padding:6px 0!important}
}
#nexusApp[data-active-view=kanban] .search-field input{box-shadow:none!important;outline:none!important;border:0!important}
#nexusApp .topbar{flex-direction:row!important}
#nexusApp[data-active-view=kanban] .topbar [data-open-task]:not(.hidden){display:inline-flex!important}
#nexusApp[data-active-view=kanban] .section-block[data-view=kanban]{padding:0!important;background:transparent!important;border:0!important}
@media(max-width:760px){#nexusApp .sidebar .nav-list{flex-direction:row!important}#nexusApp .topbar .eyebrow:after{display:none!important}#nexusApp .topbar>div:not(.topbar-actions){flex:1;min-width:0!important}#nexusApp .topbar h1{font-size:18px!important}#nexusApp .topbar .eyebrow{font-size:8px!important}#nexusApp .topbar-actions{flex-shrink:0}#nexusApp .topbar .primary-button{max-width:130px}}
#nexusApp .app .global-search input{border:0!important;background:transparent!important;box-shadow:none!important}
#nexusApp .app :is(input,select):not([type=checkbox]):not([type=radio]):not([type=color]){height:44px!important;min-height:44px!important}
#nexusApp .app .global-search input{height:38px!important;min-height:38px!important}
#nexusApp .app .purchase-intro .purchase-intro-icon{display:none!important}
@media(min-width:761px){#nexusApp .sidebar-toggle{position:absolute!important;top:24px!important;right:10px!important;left:auto!important;width:26px!important;min-width:26px!important;height:26px!important;min-height:26px!important;padding:5px!important;z-index:2}#nexusApp .sidebar .brand{margin-top:0!important;min-height:90px!important}}
/* Compact navigation rail, independent of expanded-menu styles. */
@media(min-width:761px){
#nexusApp.sidebar-collapsed .sidebar,#nexusApp.sidebar-collapsed .sidebar:hover{width:76px!important;min-width:76px!important}
#nexusApp.sidebar-collapsed .app-main{margin-left:76px!important}
#nexusApp.sidebar-collapsed .sidebar .brand{width:76px!important;height:90px!important;min-height:90px!important;padding:38px 18px 12px!important;margin:0!important;justify-content:center!important}
#nexusApp.sidebar-collapsed .sidebar .brand-mark{width:34px!important;height:34px!important;padding:0!important;background:transparent!important}
#nexusApp.sidebar-collapsed .sidebar .brand-mark img{width:32px!important;height:32px!important}
#nexusApp.sidebar-collapsed .sidebar .sidebar-lockup,#nexusApp.sidebar-collapsed .sidebar .menu-label{display:none!important}
#nexusApp.sidebar-collapsed .sidebar-toggle{top:8px!important;left:24px!important;right:auto!important}
#nexusApp.sidebar-collapsed .sidebar .nav-list{width:76px!important;padding:10px 8px!important;gap:5px!important;align-items:center!important}
#nexusApp.sidebar-collapsed .sidebar .nav-list a{display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:10px!important;margin:0!important;font-size:0!important;line-height:0!important;border-radius:10px!important;flex-shrink:0!important}
#nexusApp.sidebar-collapsed .sidebar .nav-list a .nav-icon{width:22px!important;height:22px!important;flex:0 0 22px!important;margin:0!important;opacity:1!important;visibility:visible!important}
#nexusApp.sidebar-collapsed .sidebar .nav-list a:before{display:none!important}
#nexusApp.sidebar-collapsed .sidebar .nav-badge{position:absolute!important;right:1px!important;top:1px!important;font-size:9px!important;line-height:14px!important;padding:0 3px!important}
#nexusApp.sidebar-collapsed .sidebar .profile-box{display:flex!important;align-items:center!important;justify-content:center!important;padding:10px 0!important;margin:4px 10px 10px!important;min-height:52px!important}
#nexusApp.sidebar-collapsed .sidebar .profile-box .owner-name{font-size:0!important;gap:0!important}
#nexusApp.sidebar-collapsed .sidebar .profile-box :is(#sessionName,.profile-button,#logoutBtn){display:none!important}
#nexusApp.sidebar-collapsed .sidebar .profile-box .avatar{width:30px!important;height:30px!important;font-size:10px!important}
}
/* Time clock: a clear daily sequence and readable reports. */
#nexusApp #ponto{display:grid;gap:20px;background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}
#nexusApp #ponto.view-hidden{display:none!important}
#nexusApp #ponto .panel{padding:24px!important;min-width:0!important}
#nexusApp #ponto .section-heading{gap:14px!important;flex-wrap:wrap!important}
#nexusApp #timeClockTodayLabel{font-size:12px;color:#69717e;font-weight:600}
#nexusApp .time-day-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;background:#f6f2fc;border:1px solid #e7ddf3;border-radius:10px;margin:18px 0}
#nexusApp .time-day-summary strong{display:block;font-size:17px;color:#49365f}
#nexusApp .time-day-summary p{font-size:12px;color:#71647f;margin:4px 0 0}
#nexusApp #ponto .time-punch-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}
#nexusApp #ponto .time-punch-grid article{padding:15px!important;background:#fafbfc!important;border:1px solid #e7e9ed!important;border-radius:10px!important;box-shadow:none!important;min-width:0!important}
#nexusApp #ponto .time-punch-grid article.done{background:#f4f9f6!important;border-color:#dcebe1!important}
#nexusApp #ponto .time-punch-grid span{display:block;color:#69717e!important;font-size:11px!important}
#nexusApp #ponto .time-punch-grid strong{display:block;margin:8px 0;font-size:25px!important;letter-spacing:-.025em;font-variant-numeric:tabular-nums;color:#303746!important}
#nexusApp #ponto .time-punch-grid small{font-size:10px!important}
#nexusApp #ponto .time-punch-grid article.total{background:#f2ecfb!important;border-color:#e3d8f1!important}
#nexusApp #ponto .time-clock-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin:20px 0!important}
#nexusApp #ponto .time-clock-actions button{min-height:44px!important;flex:1 1 140px!important;border:1px solid #ded8e6!important;background:white!important;color:#5c5268!important}
#nexusApp #ponto .time-clock-actions button.time-next-action{background:#793ee5!important;border-color:#793ee5!important;color:white!important}
#nexusApp #ponto .time-clock-actions button:disabled{background:#f7f8fa!important;color:#9398a3!important;opacity:.65!important}
#nexusApp #ponto #timeClockNotes{min-height:72px!important;height:72px!important;resize:vertical}
#nexusApp #ponto .time-report-controls{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}
#nexusApp #ponto .time-report-controls input{width:150px!important;min-width:0!important}
#nexusApp #ponto .time-report-controls select{width:170px!important}
#nexusApp #ponto .time-report-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:16px 0!important}
#nexusApp #ponto .time-report-summary article{padding:14px!important;min-width:0!important;background:#fafbfc!important;border:1px solid #e7e9ed!important;border-radius:9px!important}
#nexusApp #ponto .time-report-summary strong{font-size:23px!important;color:#303746!important}
#nexusApp #ponto .time-team-board{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:10px!important}
#nexusApp #ponto .time-team-board.hidden{display:none!important}
#nexusApp #ponto .time-person-card{border:1px solid #e7e9ed!important;background:white!important;border-radius:10px!important;box-shadow:none!important;padding:14px!important}
#nexusApp #ponto .time-report-table{overflow-x:auto!important;border:1px solid #e7e9ed;border-radius:10px;margin-top:16px}
#nexusApp #ponto .time-report-table table{width:100%;min-width:640px;border-collapse:collapse}
#nexusApp #ponto .time-report-table :is(th,td){padding:12px!important;font-size:12px!important;border-bottom:1px solid #edf0f3!important;text-align:left}
#nexusApp #ponto .time-report-table th{background:#f7f8fa!important;color:#69717e!important}
@media(max-width:760px){#nexusApp #ponto .panel{padding:16px!important}#nexusApp #ponto .time-punch-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#nexusApp #ponto .time-punch-grid article.total{grid-column:1/-1}#nexusApp #ponto .time-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important}#nexusApp #ponto .time-report-controls>*{flex:1 1 42%!important;max-width:100%!important}#nexusApp #ponto .time-admin-form{grid-template-columns:1fr!important}#nexusApp .time-day-summary{padding:14px}}
#nexusApp #ponto{grid-template-columns:minmax(0,1fr)!important;align-items:start!important}
#nexusApp #ponto .panel{width:100%!important;grid-column:1/-1!important}
#nexusApp #ponto .time-punch-grid strong{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
#nexusApp #ponto .time-report-controls{width:100%;justify-content:flex-start!important}
#nexusApp #ponto .time-clock-timeline{margin-top:16px!important}
@media(max-width:760px){#nexusApp.sidebar-collapsed .sidebar :is(.brand,.profile-box,.sidebar-toggle,.menu-label){display:none!important}#nexusApp.sidebar-collapsed .sidebar .nav-list{flex-direction:row!important;align-items:center!important;width:max-content!important;gap:4px!important}#nexusApp.sidebar-collapsed .sidebar .nav-list a{display:grid!important;font-size:10px!important;width:70px!important;min-width:70px!important;height:58px!important;min-height:58px!important;padding:7px 4px!important;color:#c2bfcb!important;line-height:1.1!important}#nexusApp.sidebar-collapsed .sidebar .nav-list a.active{background:#332443!important;color:#e0c9ff!important}#nexusApp.sidebar-collapsed .sidebar .nav-list a:before{display:none!important}}
/* Seven workflow refinements. */
#nexusApp .dashboard-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#nexusApp .dashboard-action-card{background:#fff;border:1px solid #e4e7ec;border-radius:12px;padding:18px;min-width:0}
#nexusApp .dashboard-action-card>span{font-size:12px;color:#647080}
#nexusApp .dashboard-action-card>strong{display:block;font-size:30px;line-height:1.4;color:#2e3440;font-variant-numeric:tabular-nums}
#nexusApp .dashboard-action-card.late>strong{color:#af4858}#nexusApp .dashboard-action-card.review>strong{color:#7745b5}
#nexusApp .dashboard-action-card button{display:block;text-align:left;width:100%;border:0;border-top:1px solid #eff0f3;background:transparent;padding:10px 0;color:#3b4453;cursor:pointer}
#nexusApp .dashboard-action-card b{display:block;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#nexusApp .dashboard-action-card small,#nexusApp .dashboard-action-card p{font-size:11px;color:#77808d;margin:4px 0}
#nexusApp[data-active-view=kanban] .card-actions{justify-content:space-between!important;align-items:center!important;overflow:visible!important}
#nexusApp[data-active-view=kanban] .card-actions>button{width:auto!important;min-width:90px!important;padding:8px 12px!important;font-size:11px!important}
#nexusApp .task-action-menu{position:relative;flex-shrink:0}
#nexusApp .task-action-menu summary{list-style:none;cursor:pointer;border:1px solid #e2dce9;border-radius:8px;display:grid;place-items:center;width:38px;height:36px;font-size:22px;color:#6f607e}
#nexusApp .task-action-menu summary::-webkit-details-marker{display:none}
#nexusApp .task-action-menu>div{position:absolute;right:0;bottom:calc(100% + 7px);z-index:20;width:180px;padding:6px;background:#fff;border:1px solid #ded9e7;border-radius:10px;box-shadow:0 8px 24px #24193020}
#nexusApp[data-active-view=kanban] .task-action-menu>div button{display:block;width:100%!important;height:auto!important;min-height:40px!important;text-align:left;padding:9px!important;border:0!important;background:white!important;font-size:12px!important;color:#554763!important}
#nexusApp[data-active-view=kanban] .task-action-menu>div button:hover{background:#f5f0fa!important}
#nexusApp[data-active-view=kanban] .task-action-menu>div .danger-action{color:#b24052!important;opacity:1!important}
#nexusApp .task-card:has(.task-action-menu[open]){z-index:30!important;overflow:visible!important}
#nexusApp #activityModal:not(.hidden){display:flex!important;justify-content:flex-end!important;align-items:stretch!important;padding:0!important;background:#15101d55!important}
#nexusApp #activityModal .activity-modal{margin:0!important;width:min(680px,94vw)!important;max-width:680px!important;height:100dvh!important;max-height:100dvh!important;border-radius:16px 0 0 16px!important;padding:24px!important;overflow-y:auto!important;box-shadow:-12px 0 44px #21142b20!important;background:#fff!important}
#nexusApp #activityModal .modal-header{position:sticky;top:-24px;z-index:3;background:white;padding:16px 0;border-bottom:1px solid #e8e4ed}
#nexusApp #activityModal .modal-header h2{font-size:21px!important}
#nexusApp #activityModal .modal-header button{min-width:44px;min-height:44px}
#nexusApp #activityModal :is(.activity-summary,.collaboration-panel,.checklist-panel,.approval-attachment){border-radius:10px!important;box-shadow:none!important;border-color:#e7e3ec!important}
#nexusApp .client-tabs{display:flex;gap:6px;overflow-x:auto;margin:0 0 18px;border-bottom:1px solid #e6e2ed;padding-bottom:10px}
#nexusApp .client-tabs button{border:0;border-radius:8px;background:#f5f3f8;color:#71667d;padding:10px 16px;font-size:12px;min-height:44px;white-space:nowrap;cursor:pointer}
#nexusApp .client-tabs button[aria-selected=true]{background:#eee4fc;color:#6838a4}
#nexusApp #clientDetailBody [data-client-panel][hidden]{display:none!important}
#nexusApp #clientDetailBody [data-client-panel]{min-width:0}
#nexusApp .client-documents{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:12px 0}
#nexusApp .client-documents h3{font-size:18px;margin:0}
#nexusApp .client-documents p{color:#77808d;font-size:13px}
#nexusApp .time-filter-details{width:100%;border:1px solid #e5e1eb;border-radius:10px;padding:12px 14px}
#nexusApp .time-filter-details summary{font-size:12px;color:#675277;cursor:pointer;min-height:24px}
#nexusApp .time-filter-details[open] .time-report-controls{margin-top:12px}
#nexusApp .mobile-more{display:none!important}
#nexusApp .app :is(.primary-button,.secondary-button,.quiet-action){min-height:40px}
#nexusApp .app :is(.purchase-status,.contract-state,.area-badge){border-radius:6px!important;font-weight:650!important}
#nexusApp .app :is(.section-heading,.modal-header){margin-bottom:18px}
@media(max-width:760px){
#nexusApp .dashboard-actions{grid-template-columns:1fr;gap:10px}
#nexusApp .dashboard-action-card{padding:14px;display:grid;grid-template-columns:1fr auto;align-items:center}
#nexusApp .dashboard-action-card>strong{font-size:25px}#nexusApp .dashboard-action-card>div{grid-column:1/-1}
#nexusApp .sidebar .nav-list,#nexusApp.sidebar-collapsed .sidebar .nav-list{width:100%!important;min-width:0!important;justify-content:space-around!important}
#nexusApp .sidebar .nav-list>a:not([data-section-link=dashboard]):not([data-section-link=kanban]):not([data-section-link=agenda]){display:none!important}
#nexusApp .sidebar .nav-list .mobile-more{display:grid!important;place-items:center;align-content:center;gap:4px;width:70px;min-height:58px;padding:6px;background:transparent;border:0;border-radius:8px;color:#c2bfcb;font-size:10px}
#nexusApp .mobile-more span{font-size:24px;line-height:24px}
#nexusApp #activityModal .activity-modal{width:100vw!important;max-width:none!important;border-radius:0!important;padding:18px!important}
#nexusApp #activityModal .modal-header{top:-18px}
#nexusApp .task-action-menu summary{width:44px;height:44px}
#nexusApp .app :is(.primary-button,.secondary-button,.quiet-action){min-height:44px}
#nexusApp .client-tabs button{padding:10px 12px}
}
/* Operational workspace with restrained density. */
#nexusApp .agency-panel{margin:22px 0;padding:22px;border:1px solid #e3e6ec;border-radius:13px;background:#fff;min-width:0}
#nexusApp .agency-panel>header{display:flex;align-items:center;justify-content:space-between;gap:15px}
#nexusApp .agency-panel h2{font-size:20px;margin:4px 0}
#nexusApp .agency-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0}
#nexusApp .agency-tabs button{border:1px solid #e4dfea;border-radius:8px;background:#fff;color:#71657e;min-height:42px;padding:10px 14px;font-size:12px}
#nexusApp .agency-tabs button[aria-pressed=true]{background:#eee5fc;color:#693ea2;border-color:#d9c6f2}
#nexusApp .agency-controls{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px}
#nexusApp .agency-controls label{display:grid;gap:6px;min-width:180px}
#nexusApp .agency-note{font-size:12px;color:#747181;line-height:1.6;padding:12px;background:#f8f7fb;border-radius:8px}
#nexusApp .agency-row{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #eeeaf3;padding:16px 0}
#nexusApp .agency-row>div{min-width:0;flex:1}
#nexusApp .agency-row strong{font-size:13px}
#nexusApp .agency-row p{font-size:12px;color:#656777;line-height:1.6;margin:6px 0}
#nexusApp .agency-row small{font-size:11px;color:#7b7c88}
#nexusApp .agency-row form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
#nexusApp .agency-row label{display:grid;gap:6px;width:155px}
#nexusApp .agency-task{display:block;width:100%;text-align:left;padding:14px;border:1px solid #e9e5ee;border-radius:9px;background:white;margin:8px 0;color:#403748}
#nexusApp .agency-task strong{font-size:13px;display:block}
#nexusApp .agency-task span{font-size:11px;color:#797280;display:block;margin-top:6px}
#nexusApp .agency-calendar-day h3{font-size:13px;margin-top:20px;color:#735392}
#nexusApp #agencyFeedback:not(:empty){padding:12px;background:#f2ecfc;color:#653d95;border-radius:8px}
@media(max-width:760px){#nexusApp .agency-panel{padding:16px}#nexusApp .agency-row{align-items:stretch;flex-direction:column}#nexusApp .agency-controls>label{width:100%}#nexusApp .agency-row form{display:grid;grid-template-columns:1fr 1fr;width:100%}#nexusApp .agency-row label{width:auto;min-width:0}#nexusApp .agency-row form button{grid-column:1/-1}#nexusApp .agency-tabs{flex-wrap:nowrap;overflow-x:auto}#nexusApp .agency-tabs button{white-space:nowrap;min-height:44px;flex-shrink:0}}

/* Living workspace: consistent composition, real people and real activity. */
#nexusApp.living-workspace .app-main{background:#f7f7fa!important}
#nexusApp.living-workspace .topbar{border:0!important;margin-bottom:18px!important;padding-bottom:10px!important}
#nexusApp.living-workspace .topbar h1{font-size:27px!important;font-weight:750!important}
#nexusApp.living-workspace .sidebar .nav-list a.active{background:#36264b!important;color:#eadbff!important;box-shadow:inset 3px 0 #af80ff!important}
#nexusApp.living-workspace .dashboard-summary-head{padding:22px 24px!important;background:linear-gradient(115deg,#21162f,#38214d)!important;border-radius:17px;color:#fff;margin-bottom:0}
#nexusApp.living-workspace .dashboard-summary-head h2{color:#fff!important;font-size:27px!important}
#nexusApp.living-workspace .dashboard-summary-head .eyebrow{color:#cda8ff!important}
#nexusApp.living-workspace .dashboard-summary-head p,#nexusApp.living-workspace .dashboard-summary-head label{color:#d1c4dc!important}
#nexusApp.living-workspace .dashboard-summary-head input{background:#ffffff!important;color:#34233f!important}
#nexusApp .workspace-pulse{display:flex;justify-content:space-between;gap:24px;padding:12px 0 18px;border-bottom:1px solid #e5e1ea}
#nexusApp .workspace-client-strip{min-width:0;flex:1}
#nexusApp .workspace-client-strip>span,#nexusApp .workspace-team-strip>span{font-size:10px;color:#83798b;display:block;margin-bottom:10px}
#nexusApp .workspace-client-strip>div{display:flex;gap:8px;overflow-x:auto;padding-bottom:3px}
#nexusApp .workspace-client-strip button,#nexusApp .workspace-client-chip{display:flex;align-items:center;gap:7px;border:1px solid #e6e1ed;background:white;border-radius:24px;padding:5px 11px 5px 5px;white-space:nowrap;max-width:195px;flex-shrink:0;color:#64556d;font-size:11px}
#nexusApp .workspace-client-strip button>span,#nexusApp .workspace-client-chip>span{overflow:hidden;text-overflow:ellipsis}
#nexusApp .workspace-client-strip .company-logo{width:27px!important;height:27px!important;min-width:27px!important;font-size:9px!important;border-radius:50%!important}
#nexusApp .workspace-team-strip{flex-shrink:0}#nexusApp .workspace-team-strip>div{display:flex;padding-left:7px}
#nexusApp .workspace-team-strip .avatar{margin-left:-7px;width:32px!important;height:32px!important;border:2px solid #f7f7fa;box-shadow:none!important}
#nexusApp.living-workspace .dashboard-action-card{border:0;border-top:3px solid #d8c7ec;padding:16px 18px;box-shadow:0 3px 14px #24142d04}
#nexusApp.living-workspace .dashboard-action-card.late{border-top-color:#d88997}#nexusApp.living-workspace .dashboard-action-card.today{border-top-color:#83b5a5}
#nexusApp.living-workspace :is(.section-block,.ops-dashboard,.time-clock-page){background:transparent!important;border:0!important;box-shadow:none!important}
#nexusApp.living-workspace .section-block{padding:0!important}
#nexusApp.living-workspace :is(.company-card,.finance-card){padding:20px!important;border:1px solid #ebe6f0!important;box-shadow:0 3px 14px #24142d04!important}
#nexusApp.living-workspace .company-title .company-logo{width:44px!important;height:44px!important;border-radius:12px!important}
#nexusApp.living-workspace .company-summary{padding:14px 0!important;border-block:1px solid #f0ebf4!important;background:transparent!important}
#nexusApp.living-workspace .service-tags span{background:#f4eff9!important;color:#826697!important;border:0!important;font-size:10px!important}
#nexusApp.living-workspace .finance-grid{gap:12px!important}
#nexusApp.living-workspace .knowledge-free-mode{background:transparent!important;border:0!important;border-bottom:1px solid #e8e1ee!important;border-radius:0!important;padding:18px 0!important}
#nexusApp.living-workspace #ponto .time-day-summary{background:#f1e9fc;border-color:#e2d3f3}
#nexusApp.living-workspace[data-active-view=kanban] .column{background:#f0eef5!important;border:0!important;border-top:3px solid #b8a8ca!important;border-radius:10px!important}
#nexusApp.living-workspace[data-active-view=kanban] .column:nth-child(2){border-top-color:#b79bd9!important}#nexusApp.living-workspace[data-active-view=kanban] .column:nth-child(3){border-top-color:#d7b679!important}#nexusApp.living-workspace[data-active-view=kanban] .column:nth-child(4){border-top-color:#90b8a7!important}
#nexusApp.living-workspace[data-active-view=kanban] .task-card{border:1px solid #e9e4ee!important;box-shadow:0 2px 5px #26163105!important}
#nexusApp.living-workspace .task-creative-preview{display:block;width:100%;height:124px;object-fit:contain;background:#f4f2f7;border-radius:8px;margin-bottom:8px}
#nexusApp .workspace-activity{padding:20px 0;margin-top:4px;border-top:1px solid #e4dfea}
#nexusApp .workspace-activity h3{font-size:18px;margin:4px 0 18px}
#nexusApp .workspace-activity .event-item{padding:12px 0!important;border:0!important;border-bottom:1px solid #ede8f2!important;background:transparent!important;box-shadow:none!important}
#nexusApp .workspace-activity .event-item strong{font-size:12px!important}#nexusApp .workspace-activity .event-item small{font-size:11px!important;color:#8b8096!important}
#nexusApp .workspace-empty{padding:16px 0;font-size:12px;color:#8b8096}
#nexusApp.living-workspace .app :is(button,a,input,select,textarea){transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease!important}
#nexusApp.living-workspace .app button:active:not(:disabled){filter:brightness(.95)}
#nexusApp.living-workspace .app-view:not(.view-hidden){animation:workspace-enter .18s ease-out}
@keyframes workspace-enter{from{opacity:.65;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:760px){#nexusApp.living-workspace .topbar h1{font-size:20px!important}#nexusApp.living-workspace .dashboard-summary-head{padding:18px!important;align-items:flex-start;flex-wrap:wrap}#nexusApp.living-workspace .dashboard-summary-head h2{font-size:24px!important}#nexusApp .workspace-pulse{flex-direction:column;gap:14px}#nexusApp .workspace-team-strip{display:flex;align-items:center;justify-content:space-between}#nexusApp .workspace-team-strip>span{margin:0}#nexusApp .workspace-client-strip button{min-height:44px}#nexusApp.living-workspace .section-block{padding:0!important}#nexusApp.living-workspace .task-creative-preview{height:140px}}
@media(prefers-reduced-motion:reduce){#nexusApp.living-workspace .app *{animation:none!important;transition:none!important}}

/* Focused demand cards and mobile stages. */
#nexusApp .board-stage-picker{display:none}
#nexusApp #kanbanBoard .column-header{padding:14px 12px!important;align-items:center}
#nexusApp #kanbanBoard .column-header small{display:none!important}
#nexusApp #kanbanBoard .task-card{padding:14px!important;gap:10px!important;border-radius:12px!important}
#nexusApp #kanbanBoard .task-card.is-overdue{border-left:3px solid #c57483!important}
#nexusApp #kanbanBoard .card-title strong{font-size:14px!important;line-height:1.45!important;-webkit-line-clamp:3!important}
#nexusApp #kanbanBoard .card-topline{gap:6px!important}
#nexusApp #kanbanBoard .priority:not(.Alta):not(.Urgente){display:none!important}
#nexusApp #kanbanBoard .task-brief-dot,#nexusApp #kanbanBoard .task-hover-preview{display:none!important}
#nexusApp #kanbanBoard .card-info{display:flex!important;justify-content:space-between;gap:10px!important;align-items:center!important}
#nexusApp #kanbanBoard .owner-name{min-width:0;font-size:11px!important;overflow:hidden;text-overflow:ellipsis}
#nexusApp #kanbanBoard .task-due{flex-shrink:0;font-size:11px!important}
#nexusApp #kanbanBoard .due-today{color:#896324!important;background:#faf4e7!important;border-radius:6px;padding:4px 6px}
#nexusApp #kanbanBoard .task-extra{border-top:1px solid #eeeaf2;padding-top:8px}
#nexusApp #kanbanBoard .task-extra>summary{cursor:pointer;font-size:11px;color:#82748d;min-height:30px;align-content:center}
#nexusApp #kanbanBoard .task-extra[open] .card-meta{display:flex!important}
#nexusApp #kanbanBoard .card-actions{border-top:0!important;margin-top:0!important;padding-top:0!important}
#nexusApp #kanbanBoard .card-actions .primary-action{background:transparent!important;color:#785793!important;box-shadow:none!important;border:0!important}
@media(max-width:760px){
 #nexusApp .board-stage-picker{display:flex;gap:6px;overflow-x:auto;padding:4px 0 12px}
 #nexusApp .board-stage-picker button{flex-shrink:0;min-height:44px;border:1px solid #e6dfec;border-radius:9px;background:#fff;color:#72617e;padding:10px 12px;font-size:12px}
 #nexusApp .board-stage-picker button[aria-pressed=true]{background:#39224e;color:#fff;border-color:#39224e}
 #nexusApp #kanbanBoard{display:block!important;min-width:0!important;width:100%!important;overflow:visible!important}
 #nexusApp #kanbanBoard .column{display:none!important;min-width:0!important;width:100%!important}
 #nexusApp #kanbanBoard .column.mobile-stage-selected{display:block!important}
 #nexusApp #kanbanBoard .drop-zone{min-height:160px!important}
 #nexusApp #kanbanBoard .task-extra>summary{min-height:44px}
}

/* Header controls stay in normal flow, separate from the daily summary. */
#nexusApp .app-main{display:block!important}
#nexusApp .app-main>.topbar{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;box-sizing:border-box!important;flex-wrap:wrap!important;float:none!important}
#nexusApp .topbar-actions{position:static!important;inset:auto!important;transform:none!important;flex-wrap:wrap!important;max-width:100%!important}
#nexusApp .topbar .global-search{position:relative!important;display:flex!important;align-items:center!important;padding:0 10px!important;box-sizing:border-box!important;gap:8px!important}
#nexusApp .topbar .global-search input{width:100%!important;min-width:0!important;padding:0!important;border-radius:0!important;outline-offset:3px}
#nexusApp[data-active-view=dashboard] .topbar .global-search{display:none!important}
#nexusApp #dashboard{position:relative!important;inset:auto!important;transform:none!important;clear:both!important;width:100%!important;box-sizing:border-box!important}
#nexusApp .dashboard-summary-head{position:relative!important;inset:auto!important;display:flex!important;flex-wrap:wrap!important;box-sizing:border-box!important;width:100%!important}
@media(max-width:760px){#nexusApp .topbar .global-search{display:none!important}#nexusApp .dashboard-summary-head .date-control{flex:0 0 148px!important}}

/* Chat as a focused team workspace. */
#nexusApp .chat-conversations{width:210px;min-width:0;background:#f7f5fa;border-right:1px solid #e9e3ef;overflow:auto}
#nexusApp .chat-search-label{display:grid;gap:9px;padding:16px 12px;font-size:12px;font-weight:700;color:#665472}
#nexusApp #chatThreadSearch{width:100%;min-width:0;box-sizing:border-box;min-height:40px;border:1px solid #e2dbe9;border-radius:8px;background:white;font-size:12px;padding:8px}
#nexusApp #chatThreads{width:100%!important;border:0!important;background:transparent!important}
#nexusApp .chat-thread{border-radius:9px!important;min-height:64px!important}
#nexusApp .chat-thread[hidden]{display:none!important}
#nexusApp .chat-thread>span:not(.avatar){min-width:0;flex:1}
#nexusApp .chat-thread small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:135px;font-size:11px!important}
#nexusApp .chat-thread.active{background:#ece3f6!important;color:#583776!important}
#nexusApp .chat-room{min-width:0!important}
#nexusApp .chat-room-context{font-size:11px;color:#86768e;padding:12px 16px;margin:0;border-bottom:1px solid #eee8f4;background:#fff}
#nexusApp .chat-messages{background:#faf9fc!important}
#nexusApp .chat-message.mine>div{background:#eee5f8!important;color:#392748!important}
#nexusApp .chat-message-actions{opacity:.65}
#nexusApp .chat-message:hover .chat-message-actions,#nexusApp .chat-message:focus-within .chat-message-actions{opacity:1}
#nexusApp .chat-form{background:#fff!important;border-top:1px solid #e8e2ee!important;padding:12px!important}
#nexusApp .chat-form textarea{background:#f8f6fb!important;border:1px solid #e5deed!important;border-radius:10px!important;color:#34293c!important}
@media(max-width:760px){#nexusApp .chat-window-body{display:flex!important;flex-direction:column!important}#nexusApp .chat-conversations{width:100%;flex-shrink:0;max-height:150px;border-right:0;border-bottom:1px solid #e9e3ef}#nexusApp .chat-search-label{padding:8px 12px;display:flex;align-items:center}#nexusApp #chatThreadSearch{min-height:36px}#nexusApp #chatThreads{display:flex!important;overflow-x:auto!important;gap:6px!important;padding:6px!important}#nexusApp .chat-thread{flex:0 0 170px;min-height:54px!important}#nexusApp .chat-room{flex:1;min-height:0}}

#nexusApp .chat-work-tools{display:flex;flex-wrap:wrap;gap:5px;padding:8px;background:#fff}#nexusApp .chat-work-tools button,#nexusApp .chat-work-tools label{font-size:11px;border:1px solid #e4dbea;padding:7px;border-radius:7px;background:#f7f3fb;color:#644879;cursor:pointer}#nexusApp .chat-work-tools [aria-pressed=true]{background:#442b59;color:white}#nexusApp .chat-history-search{display:flex;gap:5px;padding:6px}#nexusApp .chat-history-search input{min-width:0;flex:1;font-size:12px}#nexusApp #chatSearchResults{max-height:180px;overflow:auto}#nexusApp #chatSearchResults button{display:block;text-align:left;width:100%;padding:10px;border:0;border-bottom:1px solid #eee;background:white}#nexusApp .chat-image-preview{max-width:100%;max-height:180px;border-radius:8px}#nexusApp .chat-task-card{display:grid;text-align:left;padding:12px;gap:5px;border:1px solid #d9c7e8;background:#fff;border-radius:9px;color:#603c7a}#nexusApp .chat-choice{width:min(440px,90vw);max-height:80vh;border:1px solid #e0d7e8;border-radius:16px;padding:20px}#nexusApp .chat-choice::backdrop{background:#20102e66}#nexusApp .chat-choice input{width:100%;box-sizing:border-box;padding:10px}#nexusApp .chat-choice button{display:block;padding:10px;margin:5px 0;border:1px solid #e5dcec;border-radius:7px;background:#faf7fd;color:#593573}#nexusApp .chat-choice>div{max-height:45vh;overflow:auto}#nexusApp #chatAttachmentStatus{font-size:12px;padding:0 8px}


/* Source: ui/components/shell.css */
/* Nexus Studio. Shared foundations; component behavior stays in workspace-design.css. */
#nexusApp.studio-workspace{--ws-purple:#7944df;--studio-nav:224px;background:var(--ws-bg)}
#nexusApp.studio-workspace .app .app-main{margin-left:var(--studio-nav)!important;padding:24px 32px 72px!important;background:var(--ws-bg)!important;display:block!important}
#nexusApp.studio-workspace .app .sidebar{width:var(--studio-nav)!important;background:#211e29!important;border-right:0!important;padding:0!important}
#nexusApp.studio-workspace .app .sidebar .brand{padding:26px 20px!important;min-height:104px!important;gap:10px!important;border:0!important}
#nexusApp.studio-workspace .app .sidebar .brand-mark{width:32px!important;height:36px!important}
#nexusApp.studio-workspace .app .sidebar .brand strong{font-size:20px!important;letter-spacing:-.03em!important}
#nexusApp.studio-workspace .app .sidebar .brand small{font-size:8px!important;letter-spacing:.16em!important;color:#aaa2bb!important}
#nexusApp.studio-workspace .app .sidebar .nav-list{padding:0 12px!important;gap:4px!important}
#nexusApp.studio-workspace .app .sidebar .nav-list a{border:0!important;border-radius:8px!important;min-height:40px!important;font-size:12px!important;font-weight:500!important;gap:12px!important;color:#bdb7cb!important;padding:10px 12px!important}
#nexusApp.studio-workspace .app .sidebar .nav-list a.active{background:#3a304f!important;color:#e9dcff!important;box-shadow:none!important}
#nexusApp.studio-workspace .app .sidebar .nav-list a:hover{background:#302a3e!important}
#nexusApp.studio-workspace .app .sidebar .nav-icon{width:18px!important;height:18px!important;min-width:18px!important}
#nexusApp.studio-workspace .app .sidebar .menu-label{padding:22px 12px 6px!important;font-size:9px!important;letter-spacing:.14em!important;color:#877f98!important}
#nexusApp.studio-workspace .app .sidebar .profile-box{margin:16px 12px!important;padding:12px!important;border:1px solid #393242!important;border-radius:10px!important;background:transparent!important}
#nexusApp.studio-workspace .app .topbar{min-height:52px!important;margin:0 0 30px!important;padding:0 0 16px!important;border-bottom:1px solid var(--ws-line)!important;gap:12px!important;position:relative!important;z-index:2}
#nexusApp.studio-workspace .app .topbar h1{font-size:20px!important;font-weight:700!important;letter-spacing:-.035em!important;line-height:1.3!important}
#nexusApp.studio-workspace .app .topbar .eyebrow{font-size:9px!important;font-weight:600!important;letter-spacing:.09em!important}
#nexusApp.studio-workspace .app .topbar-actions{gap:8px!important}
#nexusApp.studio-workspace .app .topbar .global-search{width:220px!important;border-radius:8px!important;background:#eeedf1!important;border:0!important}
#nexusApp.studio-workspace .app .topbar .primary-button{min-height:38px!important;font-size:12px!important}
#nexusApp.studio-workspace .app .primary-button{background:var(--ws-purple)!important;border-radius:8px!important;box-shadow:none!important;font-weight:650!important}
#nexusApp.studio-workspace .app :is(.section-heading,.panel-header){gap:12px!important;margin-bottom:18px!important}
#nexusApp.studio-workspace .app :is(.section-heading h2,.panel h2){font-size:18px!important;letter-spacing:-.025em!important}
#nexusApp.studio-workspace .app :is(.panel,.purchase-form,.purchase-list-panel,.planning-editor,.agency-panel,.knowledge-panel,.time-clock-panel,.time-report-panel){background:#fff!important;border:1px solid var(--ws-line)!important;border-radius:12px!important;box-shadow:0 2px 5px #1d142003!important;padding:24px!important}
#nexusApp.studio-workspace .app :is(.ops-hero,.admin-hero,.purchase-intro,.knowledge-hero,.advisory-spotlight){background:transparent!important;border:0!important;border-bottom:1px solid var(--ws-line)!important;border-radius:0!important;padding:0 0 22px!important;margin-bottom:22px!important;box-shadow:none!important}
#nexusApp.studio-workspace .app :is(.ops-hero,.admin-hero,.purchase-intro,.knowledge-hero) h2{font-size:25px!important;letter-spacing:-.04em!important}
#nexusApp.studio-workspace .app :is(.company-card,.finance-card,.purchase-card,.agenda-item){border:1px solid var(--ws-line)!important;border-radius:12px!important;background:#fff!important;padding:20px!important;box-shadow:none!important}
#nexusApp.studio-workspace .app :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=color]){border-color:#e2dfe7!important;background:#fff!important;border-radius:8px!important;font-size:13px!important;color:#302b39!important;-webkit-text-fill-color:#302b39!important}
#nexusApp.studio-workspace .app label{font-size:12px!important;color:#716979!important}
#nexusApp.studio-workspace .app :is(button,a,input,textarea,select,summary):focus-visible{outline:2px solid #a27ae9!important;outline-offset:3px!important}


/* Source: ui/components/home.css */
/* Home: work first, secondary metrics on demand. */
#nexusApp.studio-workspace .app #dashboard{max-width:1440px!important;margin:0 auto!important;display:flex!important;flex-direction:column!important;gap:22px!important}
#nexusApp.studio-workspace .app #dashboard.view-hidden{display:none!important}
#nexusApp.studio-workspace .app .dashboard-summary-head{order:0;background:transparent!important;padding:0!important;border-radius:0!important;align-items:center!important;color:var(--ws-ink)!important;gap:20px!important}
#nexusApp.studio-workspace .app .dashboard-summary-head h2{font-size:clamp(25px,2.6vw,36px)!important;letter-spacing:-.05em!important;line-height:1.18!important;color:var(--ws-ink)!important;margin:5px 0 8px!important}
#nexusApp.studio-workspace .app .dashboard-summary-head .eyebrow{color:#8b62be!important;font-size:10px!important;letter-spacing:.12em!important}
#nexusApp.studio-workspace .app .dashboard-summary-head p{color:#81778b!important;font-size:13px!important}
#nexusApp.studio-workspace .app .dashboard-summary-head label{color:#81778b!important;font-size:10px!important}
#nexusApp.studio-workspace .app .workspace-pulse{order:1;padding:0 0 16px!important;border-color:var(--ws-line)!important}
#nexusApp.studio-workspace .app .dashboard-actions{order:2;gap:0!important;border:1px solid var(--ws-line);border-radius:12px;background:#fff;overflow:hidden}
#nexusApp.studio-workspace .app .dashboard-action-card{border:0!important;border-right:1px solid var(--ws-line)!important;border-radius:0!important;box-shadow:none!important;padding:20px 24px!important;background:transparent!important}
#nexusApp.studio-workspace .app .dashboard-action-card:last-child{border-right:0!important}
#nexusApp.studio-workspace .app .dashboard-action-card>strong{font-size:34px!important;font-weight:600!important;letter-spacing:-.04em!important}
#nexusApp.studio-workspace .app .dashboard-action-card>span{font-size:12px!important}
#nexusApp.studio-workspace .app .dashboard-priority{background:#ede7f5!important;border:1px solid #e1d6ec!important;box-shadow:none!important;border-radius:12px!important;padding:22px!important;min-height:0!important}
#nexusApp.studio-workspace .app .dashboard-priority h3{color:#4d365f!important;font-size:18px!important}
#nexusApp.studio-workspace .app .dashboard-priority p{color:#796685!important}
#nexusApp.studio-workspace .app .dashboard-list-grid{gap:20px!important}
#nexusApp.studio-workspace .app .dashboard-list-card{border:1px solid var(--ws-line)!important;border-radius:12px!important;padding:24px!important}
#nexusApp.studio-workspace .app .workspace-activity{order:5;border-color:var(--ws-line)!important;padding:18px 0!important}
#nexusApp.studio-workspace .app .workspace-activity h3{font-size:17px!important}
#nexusApp.studio-workspace .app .dashboard-insights{border-top:1px solid var(--ws-line);padding-top:16px}
#nexusApp.studio-workspace .app .dashboard-insights>summary{cursor:pointer;font-weight:650;font-size:13px;min-height:44px;align-content:center;color:#655b70}
#nexusApp.studio-workspace .app .dashboard-insights>summary span{font-weight:400;font-size:11px;color:#8f8599;margin-left:12px}
#nexusApp.studio-workspace .app .dashboard-chart-grid{margin-top:16px!important}


/* Source: ui/components/board.css */
/* Delivery board: quiet columns, readable cards, one search. */
#nexusApp.studio-workspace[data-active-view=kanban] .app .topbar .global-search{display:none!important}
#nexusApp.studio-workspace .app #kanban{background:transparent!important;border:0!important;border-radius:0!important;padding:0 0 18px!important;box-shadow:none!important;border-bottom:1px solid var(--ws-line)!important;margin-bottom:22px!important}
#nexusApp.studio-workspace .app #kanbanBoard{gap:18px!important}
#nexusApp.studio-workspace .app #kanbanBoard .column{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;min-height:320px!important;height:calc(100dvh - 230px)!important}
#nexusApp.studio-workspace .app #kanbanBoard .column-header{padding:0 4px 16px!important;margin-bottom:0!important;border:0!important}
#nexusApp.studio-workspace .app #kanbanBoard .column-header h3{display:flex;align-items:center;gap:8px;font-size:12px!important;font-weight:700!important;color:#686171!important}
#nexusApp.studio-workspace .app #kanbanBoard .column-header h3:before{content:'';width:7px;height:7px;border-radius:50%;background:#b6aaca}
#nexusApp.studio-workspace .app #kanbanBoard .column:nth-child(2) h3:before{background:#9270d3}
#nexusApp.studio-workspace .app #kanbanBoard .column:nth-child(3) h3:before{background:#d4ac6d}
#nexusApp.studio-workspace .app #kanbanBoard .column:nth-child(4) h3:before{background:#78aa99}
#nexusApp.studio-workspace .app #kanbanBoard .count-pill{border:0!important;background:#eae7ef!important;color:#8a7b98!important;min-width:22px!important;height:22px!important;font-size:10px!important}
#nexusApp.studio-workspace .app #kanbanBoard .drop-zone{padding:2px 2px 20px!important;gap:12px!important}
#nexusApp.studio-workspace .app #kanbanBoard .task-card{background:#fff!important;border:1px solid #e3dfe9!important;border-radius:12px!important;box-shadow:0 2px 4px #20142e04!important;padding:16px!important;gap:12px!important}
#nexusApp.studio-workspace .app #kanbanBoard .task-card:hover{border-color:#c5b2df!important;box-shadow:0 5px 14px #26173108!important}
#nexusApp.studio-workspace .app #kanbanBoard .task-card.is-overdue{border-left:3px solid #c88b92!important}
#nexusApp.studio-workspace .app #kanbanBoard .card-title>strong{font-size:14px!important;line-height:1.55!important;font-weight:650!important}
#nexusApp.studio-workspace .app #kanbanBoard .area-badge{background:transparent!important;color:#9787a6!important;padding:0!important;font-size:9px!important;letter-spacing:.06em!important}
#nexusApp.studio-workspace .app #kanbanBoard .task-client-line{margin-top:8px!important}
#nexusApp.studio-workspace .app #kanbanBoard .card-actions .primary-action{min-width:0!important;padding:0!important;font-size:11px!important;color:#9175af!important}
#nexusApp.studio-workspace .app #kanbanBoard .task-action-menu summary{border:0!important;background:#f6f4f9!important;border-radius:7px!important}
#nexusApp.studio-workspace .app .empty{background:transparent!important;border:1px dashed #ded7e6!important;border-radius:10px!important;padding:24px 18px!important;color:#a095ac!important;font-size:12px!important}


/* Source: ui/components/chat-responsive.css */
/* Communications is a full workspace with a persistent conversation list. */
#nexusApp.studio-workspace #chatDock:not(.minimized){position:fixed!important;left:calc(var(--studio-nav) + 20px)!important;right:20px!important;top:20px!important;bottom:20px!important;width:auto!important;height:auto!important;z-index:120!important;transform:none!important}
#nexusApp.studio-workspace #chatDock:not(.minimized) .chat-window{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;border:1px solid #dfd8e7!important;border-radius:16px!important;box-shadow:0 18px 80px #20142c35!important;display:flex!important;flex-direction:column!important;background:#fff!important}
#nexusApp.studio-workspace .chat-window-head{background:#fff!important;color:#35273f!important;border-bottom:1px solid #e8e2ee!important;padding:20px 24px!important;cursor:default!important;flex-shrink:0}
#nexusApp.studio-workspace .chat-window-head .eyebrow{color:#9b84b2!important;font-size:9px!important;letter-spacing:.13em!important}
#nexusApp.studio-workspace .chat-window-head strong{font-size:19px!important;color:#35273f!important}
#nexusApp.studio-workspace .chat-head-mascot{width:36px!important;height:36px!important;background:#f0e9f8!important;color:#8055ae!important;border-radius:9px!important;display:grid!important;place-items:center;font-size:24px}
#nexusApp.studio-workspace #chatResizeHandle{display:none!important}
#nexusApp.studio-workspace .chat-window-body{display:grid!important;grid-template-columns:240px minmax(0,1fr)!important;flex:1!important;min-height:0!important;overflow:hidden!important}
#nexusApp.studio-workspace .chat-conversations{width:auto!important;height:100%!important;background:#faf9fc!important;border-right:1px solid #eae5ef!important}
#nexusApp.studio-workspace .chat-room{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important;background:white}
#nexusApp.studio-workspace .chat-work-tools{padding:12px 18px!important;gap:7px!important;border-bottom:1px solid #f0ebf4}
#nexusApp.studio-workspace .chat-work-tools :is(button,label){background:#fff!important;border:1px solid #e5dfea!important;color:#826992!important;min-height:34px!important;align-content:center}
#nexusApp.studio-workspace .chat-history-search{padding:10px 18px!important}
#nexusApp.studio-workspace .chat-history-search input{border:1px solid #e7e1ec!important;border-radius:8px!important;background:#faf8fc!important;min-height:36px;padding:8px 12px}
#nexusApp.studio-workspace .chat-history-search button{border:0;border-radius:6px;background:#f5f0fa;color:#84659c;padding:8px;font-size:11px}
#nexusApp.studio-workspace .chat-room-context{padding:12px 18px!important}
#nexusApp.studio-workspace #chatDockMessages{overflow-y:auto!important;padding:24px!important;background:white!important}
#nexusApp.studio-workspace .chat-message>div{border:0!important;background:#f6f4f8!important;border-radius:12px!important;box-shadow:none!important;padding:12px 16px!important}
#nexusApp.studio-workspace .chat-message.mine>div{background:#f0e9fa!important}
#nexusApp.studio-workspace .chat-message p{font-size:13px!important;line-height:1.65!important}
#nexusApp.studio-workspace .chat-message small{font-size:10px!important}
#nexusApp.studio-workspace #chatDockForm{padding:16px 20px!important;flex-shrink:0}
#nexusApp.studio-workspace #chatDockInput{min-height:54px!important;height:54px!important;font-size:13px!important}
#nexusApp.studio-workspace #chatDock.minimized .chat-fab{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;border-radius:15px!important;background:#2b2237!important;box-shadow:0 5px 20px #28173522!important}
#nexusApp.studio-workspace .chat-fab-mascot{font-size:24px!important;color:#dcc6ff!important;display:grid!important;place-items:center}
#nexusApp.studio-workspace .chat-fab-label{display:none!important}
@media(min-width:761px){#nexusApp.studio-workspace.sidebar-collapsed{--studio-nav:76px}#nexusApp.studio-workspace.sidebar-collapsed .app .sidebar .brand{padding:20px 12px!important}#nexusApp.studio-workspace.sidebar-collapsed .app .sidebar .nav-list a{padding:10px!important;justify-content:center!important}#nexusApp.studio-workspace.sidebar-collapsed .app .sidebar .profile-box{margin:12px 6px!important;padding:8px!important}}
@media(max-width:1100px) and (min-width:761px){#nexusApp.studio-workspace .app .app-main{padding:20px!important}#nexusApp.studio-workspace .app #kanbanBoard{display:grid!important;grid-template-columns:repeat(4,260px)!important;overflow-x:auto!important;padding-bottom:16px!important}#nexusApp.studio-workspace .app #kanbanBoard .column{height:auto!important}#nexusApp.studio-workspace .chat-window-body{grid-template-columns:190px minmax(0,1fr)!important}}
@media(max-width:760px){
 #nexusApp.studio-workspace{--studio-nav:0px}
 #nexusApp.studio-workspace .app .app-main{margin-left:0!important;padding:18px 16px 100px!important}
 #nexusApp.studio-workspace .app .sidebar{width:100%!important;background:#211e29!important;padding-bottom:env(safe-area-inset-bottom)!important}
 #nexusApp.studio-workspace .app .sidebar .nav-list{padding:4px 8px!important;gap:4px!important}
 #nexusApp.studio-workspace .app .sidebar .nav-list a{min-height:54px!important;padding:7px!important;font-size:10px!important}
 #nexusApp.studio-workspace .app .topbar{margin-bottom:22px!important;padding-bottom:14px!important;flex-wrap:nowrap!important}
 #nexusApp.studio-workspace .app .topbar h1{font-size:18px!important}
 #nexusApp.studio-workspace .app .topbar .global-search{display:none!important}
 #nexusApp.studio-workspace .app .topbar-actions{flex-shrink:0!important}
 #nexusApp.studio-workspace .app .topbar .primary-button{max-width:124px!important;min-height:44px!important;padding:10px!important}
 #nexusApp.studio-workspace .app .dashboard-summary-head{gap:16px!important;align-items:start!important}
 #nexusApp.studio-workspace .app .dashboard-summary-head h2{font-size:29px!important;max-width:260px}
 #nexusApp.studio-workspace .app .dashboard-summary-head .date-control{display:flex!important;gap:12px;align-items:center;width:auto!important;flex:1 0 100%!important}
 #nexusApp.studio-workspace .app .dashboard-summary-head input{width:155px!important}
 #nexusApp.studio-workspace .app .dashboard-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 #nexusApp.studio-workspace .app .dashboard-action-card{padding:14px 10px!important}
 #nexusApp.studio-workspace .app .dashboard-action-card>strong{font-size:28px!important}
 #nexusApp.studio-workspace .app .dashboard-action-card>span{font-size:10px!important}
 #nexusApp.studio-workspace .app .dashboard-action-card>div{display:none!important}
 #nexusApp.studio-workspace .app :is(.panel,.purchase-form,.purchase-list-panel,.planning-editor,.agency-panel,.knowledge-panel,.time-clock-panel,.time-report-panel,.dashboard-list-card){padding:18px!important}
 #nexusApp.studio-workspace .app #kanbanBoard .column{height:auto!important;min-height:250px!important}
 #nexusApp.studio-workspace #chatDock:not(.minimized){left:0!important;right:0!important;top:0!important;bottom:0!important}
 #nexusApp.studio-workspace #chatDock:not(.minimized) .chat-window{border-radius:0!important}
 #nexusApp.studio-workspace .chat-window-body{display:flex!important;flex-direction:column!important}
 #nexusApp.studio-workspace .chat-conversations{height:auto!important;max-height:140px!important;flex-shrink:0}
 #nexusApp.studio-workspace .chat-window-head{padding:14px 16px!important}
 #nexusApp.studio-workspace .chat-work-tools{padding:8px!important;flex-wrap:nowrap!important;overflow-x:auto;flex-shrink:0}
 #nexusApp.studio-workspace .chat-work-tools :is(button,label){white-space:nowrap;flex-shrink:0;min-height:40px!important}
 #nexusApp.studio-workspace #chatDockMessages{padding:14px!important}
 #nexusApp.studio-workspace #chatDockForm{padding:10px 10px calc(10px + env(safe-area-inset-bottom))!important}
 #nexusApp.studio-workspace #chatDockInput{font-size:16px!important}
}
@media(prefers-reduced-motion:reduce){#nexusApp.studio-workspace *{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
#nexusApp.studio-workspace .app #kanban:not(.view-hidden){display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important}
#nexusApp.studio-workspace .app #kanban>.search-field{flex:1 1 260px!important;max-width:460px!important;min-width:0!important;height:42px!important;padding:0 10px!important;display:flex!important;align-items:center!important;gap:8px!important;border:1px solid #e2dfe7!important;background:#fff!important}
#nexusApp.studio-workspace .app #kanban>.search-field input{width:100%!important;min-width:0!important;border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
#nexusApp.studio-workspace .app #workspaceFilterToggle{display:inline-flex!important;align-items:center;min-height:42px!important;padding:10px 15px!important;border:1px solid #e0dae8!important;border-radius:8px;background:white;color:#796785;font-size:12px}
#nexusApp.studio-workspace .app #kanban:not(.filters-expanded)>label{display:none!important}
#nexusApp.studio-workspace .app #kanban.filters-expanded>label{display:grid!important;flex:1 1 150px!important;min-width:0!important}
#nexusApp.studio-workspace .app #kanban .kanban-export{flex:0 0 auto!important;width:auto!important;min-height:42px!important;box-shadow:none!important;font-size:11px!important}
#nexusApp.studio-workspace .app #kanbanBoard .column-header:before{display:none!important}
#nexusApp.studio-workspace .app #kanbanBoard .task-approval-button{background:#f0e8f9!important;color:#755091!important;border:1px solid #e0d0ef!important;box-shadow:none!important;font-size:12px!important;min-height:38px!important;border-radius:8px!important}
#nexusApp.studio-workspace .app .sidebar-toggle{background:#37303f!important;color:#c7b6db!important;box-shadow:none!important;border:0!important;border-radius:7px!important}
#nexusApp.studio-workspace .app .company-logo{background:#ede7f5!important;color:#8b70a7!important;box-shadow:none!important}
@media(max-width:760px){#nexusApp.studio-workspace .app #kanban>.search-field{flex:1 1 220px!important}#nexusApp.studio-workspace .app #kanban .kanban-date-actions{flex:1 1 auto!important}}
#nexusApp.studio-workspace .app #kanbanBoard .task-card{height:auto!important;min-height:0!important;justify-content:flex-start!important}
#nexusApp.studio-workspace .app #kanban>.search-field>span{position:static!important;transform:none!important;width:14px!important;flex:0 0 14px!important;color:#9b8fa8!important}
#nexusApp.studio-workspace .chat-thread>span:not(.avatar),#nexusApp.studio-workspace .chat-thread strong,#nexusApp.studio-workspace .chat-thread small{display:block!important}
#nexusApp.studio-workspace .chat-thread{display:flex!important;text-align:left!important;align-items:center!important;gap:10px!important}
#nexusApp.studio-workspace .chat-thread>span:not(.avatar){min-width:0!important;overflow:hidden!important}
#nexusApp.studio-workspace .chat-thread strong{font-size:12px!important;color:#5b466d!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#nexusApp.studio-workspace .chat-thread small{font-size:10px!important;color:#9787a3!important}
#nexusApp.studio-workspace .chat-window-head>.chat-window-tools{flex:0 0 auto!important}
#nexusApp.studio-workspace #chatDockMessages{border:0!important;border-radius:0!important;box-shadow:none!important}
@media(min-width:761px){#nexusApp.studio-workspace.sidebar-collapsed .app .sidebar .nav-list a{font-size:0!important}#nexusApp.studio-workspace.sidebar-collapsed .app .sidebar .nav-list .nav-icon{font-size:18px!important}}
#nexusApp.studio-workspace.studio-chat-open{overflow:hidden!important}
#nexusApp.studio-workspace .chat-room-context,#nexusApp.studio-workspace .chat-history-search,#nexusApp.studio-workspace .chat-work-tools,#nexusApp.studio-workspace #chatAttachmentStatus{flex-shrink:0!important}
#nexusApp.studio-workspace #chatDockMessages{height:0!important;min-height:0!important;flex:1 1 0!important}
#nexusApp.studio-workspace #chatDock:not(.minimized) .chat-window{box-sizing:border-box!important;overflow:hidden!important}
#nexusApp .creative-review{margin:18px 0;padding:18px;background:#f7f5fa;border:1px solid #e5deed;border-radius:12px}
#nexusApp .creative-review h3{font-size:18px;margin:0 0 14px;color:#483456}
#nexusApp .creative-review label{display:grid;gap:7px;font-size:12px;color:#81738a}
#nexusApp .creative-review select{max-width:100%;min-height:42px;background:#fff;border:1px solid #e2d9e9;border-radius:8px;padding:8px}
#nexusApp .creative-stage{display:grid;justify-items:center;gap:12px;padding:16px 0}
#nexusApp .creative-stage :is(img,video){width:100%;max-height:420px;object-fit:contain;background:#eeebf2;border-radius:8px}
#nexusApp .creative-stage a{color:#8054a2;font-size:12px}
#nexusApp .creative-caption,#nexusApp .creative-review p{font-size:12px;color:#807288;line-height:1.6;overflow-wrap:anywhere}
#nexusApp .review-team>summary{font-size:12px;color:#81738a;cursor:pointer;padding:12px 0}
#nexusApp.studio-workspace .app .workflow-inbox{order:5;border-top:1px solid #e4dfea;padding:20px 0}
#nexusApp .workflow-inbox h3{font-size:18px;margin:4px 0 14px}
#nexusApp .inbox-tabs{display:flex;gap:8px;margin-bottom:14px;overflow-x:auto}
#nexusApp .inbox-tabs button{border:1px solid #e4dcea;border-radius:8px;padding:10px;background:#fff;color:#80708b;font-size:12px;white-space:nowrap}
#nexusApp .inbox-tabs button[aria-pressed=true]{background:#ece2f7;color:#6a4290;border-color:#d7c5e8}
#nexusApp .inbox-tabs+div>button{display:block;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid #e7e1ed;padding:14px 0}
#nexusApp .inbox-tabs+div strong{display:block;font-size:13px;color:#53435f}
#nexusApp .inbox-tabs+div span{display:block;font-size:12px;color:#918498;margin-top:4px;overflow-wrap:anywhere}
#nexusApp .inbox-empty{font-size:12px;color:#95889d;padding:14px 0}
#nexusApp .inbox-clock{background:#fff;color:#785092;border:1px solid #dfd0e9;border-radius:8px;padding:12px;margin-top:12px}
#nexusApp .comment-attachment video{width:100%;max-height:340px}


/* Source: ui/components/shared-controls.css */
/* Shared component contract across modules and dialogs. */
#nexusApp.studio-workspace{--ws-line:#e3e5ea;--ws-muted:#707581;--ws-ink:#282c35;--ws-bg:#f6f7f9;--ui-radius:10px;--ui-space:20px}
#nexusApp.studio-workspace :is(.app-view,.modal,.chat-window){font-family:Manrope,system-ui,sans-serif;color:var(--ws-ink);font-size:13px;line-height:1.55}
#nexusApp.studio-workspace .app .app-view :is(.panel,.planning-editor,.agency-panel,.knowledge-panel,.purchase-form,.purchase-list-panel,.time-clock-panel,.time-report-panel,.company-card,.finance-card,.traffic-card,.person-card,.goal-card,.admin-card){border:1px solid var(--ws-line)!important;border-radius:var(--ui-radius)!important;background:#fff!important;box-shadow:none!important;padding:var(--ui-space)!important}
#nexusApp.studio-workspace :is(.app-view,.modal) :is(h2,h3){letter-spacing:-.025em;line-height:1.3}
#nexusApp.studio-workspace .app .app-view :is(.section-heading,.panel-header,.planning-head,.knowledge-head,.purchase-list-head){margin-bottom:18px!important;gap:12px!important;align-items:center}
#nexusApp.studio-workspace .app .app-view :is(.section-heading,.panel-header,.planning-head,.knowledge-head,.purchase-list-head) :is(h2,h3){font-size:18px!important;color:var(--ws-ink)!important}
#nexusApp.studio-workspace .app .app-view :is(.ops-hero,.admin-hero,.purchase-intro,.knowledge-hero,.advisory-spotlight) :is(h2,h3){font-size:22px!important;color:var(--ws-ink)!important}
#nexusApp.studio-workspace :is(.app-view,.modal) :is(.form-hint,.section-description,.agency-note,.knowledge-note){color:var(--ws-muted)!important;font-size:12px!important;line-height:1.6!important}
#nexusApp.studio-workspace :is(.app-view,.modal) label{font-size:12px!important;font-weight:600;color:#626976!important}
#nexusApp.studio-workspace :is(.app-view,.modal,.chat-window) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]):not([type=file]){box-sizing:border-box;border:1px solid #dce0e7!important;border-radius:8px!important;background:#fff!important;color:#303642!important;-webkit-text-fill-color:#303642!important;font-family:inherit;font-size:13px!important;min-height:42px;padding:10px 12px!important;box-shadow:none!important;max-width:100%}
#nexusApp.studio-workspace :is(.app-view,.modal,.chat-window) :is(input,textarea)::placeholder{color:#8a919c!important;-webkit-text-fill-color:#8a919c!important;font-weight:400}
#nexusApp.studio-workspace :is(.app-view,.modal,.chat-window) :is(button,input,select,textarea,summary,a):focus-visible{outline:2px solid #a381dc!important;outline-offset:3px!important}
#nexusApp.studio-workspace :is(.app-view,.modal,.chat-window) :is(.primary-button,.approve-action){background:#7944df!important;color:#fff!important;border:1px solid #7944df!important;border-radius:8px!important;min-height:42px!important;padding:10px 15px!important;font-size:12px!important;font-weight:650!important;box-shadow:none!important;transform:none!important}
#nexusApp.studio-workspace :is(.app-view,.modal,.chat-window) :is(.secondary-button,.quiet-action,.ghost-button){background:#fff!important;color:#626b79!important;border:1px solid #dfe3e9!important;border-radius:8px!important;min-height:36px;padding:8px 12px!important;font-size:12px!important;box-shadow:none!important;transform:none!important}
#nexusApp.studio-workspace :is(.app-view,.modal,.chat-window) .danger-action{color:#aa4d58!important;background:#fff7f7!important;border:1px solid #eedcde!important;border-radius:8px!important;box-shadow:none!important}
#nexusApp.studio-workspace :is(.app-view,.modal,.chat-window) button:disabled{opacity:.5!important;cursor:not-allowed!important;box-shadow:none!important}
#nexusApp.studio-workspace .app .app-view :is(.service-tags span,.status-badge,.area-badge){box-shadow:none!important;border-radius:6px!important;font-weight:600!important}
#nexusApp.studio-workspace .app .app-view :is(.finance-grid,.company-grid,.people-grid,.planning-grid,.purchase-layout,.ops-grid){gap:20px!important}
#nexusApp.studio-workspace .app .app-view table{border-collapse:collapse;width:100%;font-size:12px;color:#535d6c}
#nexusApp.studio-workspace .app .app-view th{background:#f7f8fa!important;color:#737b88!important;font-size:11px!important;font-weight:650!important;text-align:left}
#nexusApp.studio-workspace .app .app-view :is(th,td){padding:12px 14px!important;border-bottom:1px solid #e9ecf1!important}
#nexusApp.studio-workspace .modal{background:#fff!important;color:var(--ws-ink)!important;border:1px solid var(--ws-line)!important;box-shadow:0 16px 60px #15203018!important}
#nexusApp.studio-workspace .modal-header{border-bottom:1px solid var(--ws-line)!important;padding-bottom:18px!important;margin-bottom:20px!important}
#nexusApp.studio-workspace .modal-header h2{font-size:20px!important;color:var(--ws-ink)!important}
#nexusApp.studio-workspace .modal-actions{border-top:1px solid var(--ws-line)!important;padding-top:16px!important;gap:10px!important}
#nexusApp.studio-workspace .app .app-view.view-hidden,#nexusApp.studio-workspace .hidden{display:none!important}
@media(max-width:760px){#nexusApp.studio-workspace{--ui-space:16px}#nexusApp.studio-workspace :is(.app-view,.modal,.chat-window) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]):not([type=file]){font-size:16px!important;min-height:44px}#nexusApp.studio-workspace .app .app-view :is(.finance-grid,.company-grid,.people-grid,.planning-grid,.purchase-layout,.ops-grid){gap:14px!important}#nexusApp.studio-workspace .modal-actions{flex-wrap:wrap!important}}


/* Source: ui/components/agenda.css */
/* Agenda: calendar and daily commitments first; creation on demand. */
#nexusApp.studio-workspace .app #agenda:not(.view-hidden){display:flex!important;flex-direction:column!important;gap:18px!important}
#nexusApp.studio-workspace .app #agenda .agenda-form-panel{order:0;width:100%!important;box-sizing:border-box;padding:14px 18px!important}
#nexusApp.studio-workspace .agenda-create-toggle{cursor:pointer;color:#79519f;font-size:13px;font-weight:650;min-height:32px;align-content:center;list-style:none}
#nexusApp.studio-workspace .agenda-create-toggle::-webkit-details-marker{display:none}
#nexusApp.studio-workspace #agenda .agenda-form-panel[open]>.section-heading{display:none!important}
#nexusApp.studio-workspace #agenda .agenda-form{margin-top:18px;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
#nexusApp.studio-workspace #agenda .agenda-form>.agenda-participants,#nexusApp.studio-workspace #agenda .agenda-form>.agenda-demand-fields{grid-column:1/-1}
#nexusApp.studio-workspace .app #agenda .agenda-list-panel{order:1;width:100%!important;min-width:0!important;box-sizing:border-box}
#nexusApp.studio-workspace #agenda .agenda-list-panel>.section-heading{display:flex!important;flex-wrap:wrap!important;align-items:end!important;gap:14px!important}
#nexusApp.studio-workspace #agenda .agenda-list-panel>.section-heading>div{flex:1;min-width:150px}
#nexusApp.studio-workspace #agenda .calendar-shell{display:grid!important;grid-template-columns:minmax(260px,360px) minmax(0,1fr)!important;gap:0 28px!important;background:transparent!important;border:0!important;padding:0!important}
#nexusApp.studio-workspace #agenda .calendar-head{grid-column:1;display:grid!important;gap:6px!important;padding:14px 0!important;background:transparent!important;border:0!important}
#nexusApp.studio-workspace #agenda .calendar-head strong{font-size:15px!important;text-transform:capitalize;color:#55505e!important}
#nexusApp.studio-workspace #agenda .calendar-head span{font-size:11px!important;color:#8c8495!important}
#nexusApp.studio-workspace #agenda .calendar-weekdays,#nexusApp.studio-workspace #agenda .calendar-grid{grid-column:1;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important}
#nexusApp.studio-workspace #agenda .calendar-weekdays{font-size:10px!important;color:#9a91a2!important;text-align:center;padding:10px 0!important}
#nexusApp.studio-workspace #agenda .calendar-day{min-height:46px!important;height:46px!important;padding:5px!important;border:1px solid transparent!important;border-radius:8px!important;background:#f8f8fa!important;box-shadow:none!important;position:relative}
#nexusApp.studio-workspace #agenda .calendar-day>span{font-size:12px!important;color:#68616f!important}
#nexusApp.studio-workspace #agenda .calendar-day>strong{display:none!important}
#nexusApp.studio-workspace #agenda .calendar-day.selected{background:#ece2fa!important;border-color:#d3b9ef!important}
#nexusApp.studio-workspace #agenda .calendar-day.today{border-color:#ac8ad0!important}
#nexusApp.studio-workspace #agenda .calendar-day.muted{opacity:.4}
#nexusApp.studio-workspace #agenda .calendar-day-panel{grid-column:2;grid-row:1/4;border:0!important;border-left:1px solid #e8e3ed!important;background:transparent!important;padding:14px 0 0 28px!important;margin:0!important}
#nexusApp.studio-workspace #agenda .calendar-day-panel h3{font-size:21px!important;margin:4px 0 18px!important}
#nexusApp.studio-workspace #agenda .agenda-item{margin-bottom:10px!important;border-radius:9px!important;box-shadow:none!important;padding:16px!important}
@media(max-width:760px){#nexusApp.studio-workspace #agenda .calendar-shell{display:flex!important;flex-direction:column!important;gap:0!important}#nexusApp.studio-workspace #agenda .calendar-day-panel{border-left:0!important;border-top:1px solid #e8e3ed!important;padding:20px 0 0!important;margin-top:20px!important}#nexusApp.studio-workspace #agenda .agenda-form{grid-template-columns:1fr!important}#nexusApp.studio-workspace #agenda .agenda-list-panel>.section-heading>label{flex:1 1 130px;min-width:0}#nexusApp.studio-workspace #agenda .agenda-list-panel>.section-heading>div{flex-basis:100%}}
/* Keep daily appointments independent from calendar row sizing. */
#nexusApp.studio-workspace #agenda .calendar-shell{overflow:visible!important;box-shadow:none!important;border-radius:0!important;align-items:start!important;grid-template-rows:auto auto minmax(0,1fr)!important}
#nexusApp.studio-workspace #agenda .calendar-day-panel{max-height:none!important;height:auto!important;overflow:visible!important;display:flex!important;flex-direction:column!important;align-self:start!important;gap:12px!important;min-width:0!important;width:100%!important;box-sizing:border-box!important}
#nexusApp.studio-workspace #agenda .calendar-day-panel>.agenda-item{flex:0 0 auto!important;overflow:visible!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:14px!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:0!important;box-sizing:border-box!important;margin:0!important}
#nexusApp.studio-workspace #agenda .agenda-main{display:flex!important;align-items:flex-start!important;min-width:0!important;width:100%!important;gap:10px!important}
#nexusApp.studio-workspace #agenda .agenda-main>.avatar,#nexusApp.studio-workspace #agenda .agenda-type-icon{flex:0 0 30px!important;width:30px!important;height:30px!important}
#nexusApp.studio-workspace #agenda .agenda-main>span:not(.avatar){flex:1!important;min-width:0!important;max-width:100%!important}
#nexusApp.studio-workspace #agenda .agenda-main strong{font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
#nexusApp.studio-workspace #agenda .agenda-main small{font-size:12px!important;line-height:1.65!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;margin-top:5px!important}
#nexusApp.studio-workspace #agenda .agenda-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:8px!important;width:100%!important;min-width:0!important;border-top:1px solid #eeeaf2;padding-top:10px!important}
#nexusApp.studio-workspace #agenda .agenda-actions button{width:auto!important;max-width:100%!important;min-width:0!important;white-space:normal!important;flex:0 1 auto!important}
@media(max-width:1050px){#nexusApp.studio-workspace #agenda .calendar-shell{display:flex!important;flex-direction:column!important;gap:0!important}#nexusApp.studio-workspace #agenda .calendar-grid,#nexusApp.studio-workspace #agenda .calendar-weekdays{width:100%!important}#nexusApp.studio-workspace #agenda .calendar-day-panel{border-left:0!important;border-top:1px solid #e8e3ed!important;padding:20px 0 0!important;margin-top:20px!important}}

#nexusApp.studio-workspace .app .dashboard-insights{order:3!important}
#nexusApp.studio-workspace .app .dashboard-priority{order:4!important}
#nexusApp.studio-workspace .app .dashboard-list-grid{order:5!important}


/* Source: ui/tokens.css */
/* Shared identity. Component rules consume these values. */
#nexusApp[data-design=unified]{--ui-canvas:#f5f6f8;--ui-surface:#fff;--ui-ink:#232936;--ui-muted:#687386;--ui-line:#e2e6ed;--ui-accent:#7949d8;--ui-tint:#f1ecfa;--ui-radius:12px;--ui-padding:24px;--ui-gap:20px;--ws-bg:var(--ui-canvas);--ws-line:var(--ui-line);--ws-ink:var(--ui-ink);--ws-purple:var(--ui-accent);--ws-muted:var(--ui-muted)}
@media(max-width:760px){#nexusApp[data-design=unified]{--ui-padding:16px;--ui-gap:14px}}


/* Source: ui/components/system.css */
/* Shared components, scoped to authenticated screens and their dialogs. */
#nexusApp[data-design=unified].studio-workspace .app .app-main{background:var(--ui-canvas)!important;padding:24px 32px 72px!important}
#nexusApp[data-design=unified].studio-workspace .app .topbar{min-height:64px!important;margin-bottom:28px!important;border-bottom:1px solid var(--ui-line)!important;padding-bottom:18px!important}
#nexusApp[data-design=unified].studio-workspace .app .topbar h1{font-size:24px!important;font-weight:750!important;letter-spacing:-.045em!important;color:var(--ui-ink)!important}
#nexusApp[data-design=unified].studio-workspace .app .topbar .eyebrow{color:var(--ui-muted)!important;font-size:10px!important;font-weight:600!important;letter-spacing:.1em!important}
#nexusApp[data-design=unified].studio-workspace .app :is(.section-block,.planning-panel,.knowledge-panel,.ops-dashboard,.time-clock-page){min-width:0!important}
#nexusApp[data-design=unified].studio-workspace .app :is(.ops-hero,.admin-hero,.purchase-intro,.knowledge-hero,.advisory-spotlight,.planning-panel>header){display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--ui-line)!important;border-radius:0!important;padding:0 0 22px!important;margin:0 0 24px!important;box-shadow:none!important}
#nexusApp[data-design=unified].studio-workspace .app :is(.ops-hero,.admin-hero,.purchase-intro,.knowledge-hero,.advisory-spotlight,.planning-panel>header) :is(h2,h3){font-size:21px!important;font-weight:700!important;letter-spacing:-.035em!important;color:var(--ui-ink)!important;margin:4px 0 8px!important}
#nexusApp[data-design=unified].studio-workspace .app :is(.ops-hero,.admin-hero,.purchase-intro,.knowledge-hero,.advisory-spotlight,.planning-panel>header) p{color:var(--ui-muted)!important;font-size:13px!important;line-height:1.65!important;max-width:680px!important;margin:4px 0!important}
#nexusApp[data-design=unified].studio-workspace .app :is(.ops-hero,.admin-hero,.purchase-intro,.knowledge-hero,.advisory-spotlight) .eyebrow{color:#9176b4!important;font-size:10px!important}
#nexusApp[data-design=unified].studio-workspace .app :is(.panel,.dashboard-chart-card,.dashboard-list-card,.purchase-form,.purchase-list-panel,.agency-panel,.planning-editor,.company-card,.finance-card,.person-card,.traffic-card,.goal-card,.admin-card,.time-clock-panel,.time-report-panel){padding:var(--ui-padding)!important;border:1px solid var(--ui-line)!important;border-radius:var(--ui-radius)!important;background:var(--ui-surface)!important;box-shadow:0 2px 5px #19243603!important;min-width:0!important;box-sizing:border-box!important}
#nexusApp[data-design=unified].studio-workspace .app :is(.panel,.purchase-form,.purchase-list-panel,.agency-panel,.planning-editor,.dashboard-chart-card,.dashboard-list-card) h3{font-size:17px!important;line-height:1.4!important;color:var(--ui-ink)!important;letter-spacing:-.025em!important}
#nexusApp[data-design=unified].studio-workspace :is(.app-view,.modal) :is(.form-hint,.agency-note,.planning-notice,.knowledge-free-mode p){color:var(--ui-muted)!important;font-size:12px!important;line-height:1.7!important}
#nexusApp[data-design=unified].studio-workspace :is(.app-view,.modal,.chat-window) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=hidden]):not([type=file]){font-family:inherit!important;font-size:14px!important;color:var(--ui-ink)!important;-webkit-text-fill-color:var(--ui-ink)!important;background:#fff!important;border:1px solid #dce2eb!important;border-radius:8px!important;min-height:44px!important;box-sizing:border-box!important;max-width:100%!important;box-shadow:none!important;padding:10px 12px!important}
#nexusApp[data-design=unified].studio-workspace :is(.app-view,.modal) label{color:#626e80!important;font-size:12px!important;font-weight:600!important;line-height:1.6!important}
#nexusApp[data-design=unified].studio-workspace :is(.app-view,.modal,.chat-window) :is(.primary-button,.approve-action){background:var(--ui-accent)!important;color:#fff!important;border:1px solid var(--ui-accent)!important;border-radius:8px!important;font-size:13px!important;font-weight:650!important;box-shadow:none!important;min-height:42px!important;padding:10px 16px!important;transform:none!important}
#nexusApp[data-design=unified].studio-workspace :is(.app-view,.modal,.chat-window) :is(.secondary-button,.quiet-action,.ghost-button){color:#657187!important;background:#fff!important;border:1px solid var(--ui-line)!important;border-radius:8px!important;font-size:12px!important;box-shadow:none!important;padding:9px 12px!important;transform:none!important}
#nexusApp[data-design=unified].studio-workspace :is(.app-view,.modal) .danger-action{background:#fff6f6!important;color:#a95765!important;border-color:#eedbdf!important}
#nexusApp[data-design=unified].studio-workspace :is(button,input,select,textarea,a,summary):focus-visible{outline:2px solid #aa8add!important;outline-offset:3px!important}
#nexusApp[data-design=unified].studio-workspace :is(.app-view,.modal) button:disabled{opacity:.5!important;cursor:not-allowed!important}
#nexusApp[data-design=unified].studio-workspace .app :is(.ops-grid,.company-grid,.finance-grid,.people-grid,.purchase-layout,.dashboard-list-grid,.dashboard-chart-grid,.agency-controls){gap:var(--ui-gap)!important}
#nexusApp[data-design=unified].studio-workspace .app :is(.planning-notice,.agency-note,.knowledge-free-mode,.ai-workflow li){background:#f8f9fb!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;color:var(--ui-muted)!important;box-shadow:none!important}
#nexusApp[data-design=unified].studio-workspace .app .ai-launchpad{background:var(--ui-tint)!important;border:1px solid #e3d9f0!important;border-radius:12px!important;box-shadow:none!important;padding:20px!important;color:var(--ui-ink)!important}
#nexusApp[data-design=unified].studio-workspace .app .ai-launchpad h3{color:#634c80!important;font-size:19px!important}
#nexusApp[data-design=unified].studio-workspace .app .ai-launchpad p{color:var(--ui-muted)!important;font-size:12px!important}
#nexusApp[data-design=unified].studio-workspace .app .ai-kicker{color:#8e72ad!important}
#nexusApp[data-design=unified].studio-workspace .app .company-head{align-items:flex-start!important;gap:12px!important;flex-wrap:wrap!important}
#nexusApp[data-design=unified].studio-workspace .app .company-title{min-width:0!important;flex:1!important}
#nexusApp[data-design=unified].studio-workspace .app .company-title strong{font-size:16px!important;color:var(--ui-ink)!important;overflow-wrap:anywhere}
#nexusApp[data-design=unified].studio-workspace .app .company-actions{flex-wrap:wrap!important;gap:6px!important}
#nexusApp[data-design=unified].studio-workspace .app .service-tags span{color:#81718e!important;background:#f5f2f9!important;border:0!important;box-shadow:none!important}
#nexusApp[data-design=unified].studio-workspace .app :is(.agency-tabs,.client-detail-tabs){gap:6px!important;padding-bottom:8px!important;overflow-x:auto!important}
#nexusApp[data-design=unified].studio-workspace .app .agency-tabs button{background:transparent!important;color:#7c8493!important;border:1px solid transparent!important;border-radius:8px!important;min-height:42px!important;padding:10px 14px!important}
#nexusApp[data-design=unified].studio-workspace .app .agency-tabs button[aria-pressed=true]{background:var(--ui-tint)!important;color:#79549d!important;border-color:#e3d8ef!important}
#nexusApp[data-design=unified].studio-workspace .app .empty{font-size:13px!important;line-height:1.7!important;color:#8c96a4!important;background:#fafbfc!important;border:1px dashed #dfe5ed!important;border-radius:10px!important;padding:24px!important;box-shadow:none!important}
#nexusApp[data-design=unified].studio-workspace .modal{border-radius:14px!important;border:1px solid var(--ui-line)!important;background:white!important;color:var(--ui-ink)!important}
#nexusApp[data-design=unified].studio-workspace .modal-header{border-color:var(--ui-line)!important;margin-bottom:20px!important;padding-bottom:16px!important}
#nexusApp[data-design=unified].studio-workspace .modal-header h2{font-size:21px!important;color:var(--ui-ink)!important;letter-spacing:-.035em!important}
#nexusApp[data-design=unified].studio-workspace .app #kanban>.search-field{background:#fff!important;border:1px solid var(--ui-line)!important}
#nexusApp[data-design=unified].studio-workspace .app #kanban>.search-field input{border:0!important;background:transparent!important;padding:0!important}
#nexusApp[data-design=unified].studio-workspace .app #kanbanBoard .task-card{border:1px solid var(--ui-line)!important;background:white!important;border-radius:12px!important;box-shadow:0 2px 4px #19243604!important}
#nexusApp[data-design=unified].studio-workspace .app #kanbanBoard .task-card.is-overdue{border-left:3px solid #c78b96!important}
#nexusApp[data-design=unified].studio-workspace .app #kanbanBoard .card-actions .primary-action{background:transparent!important;color:#9377af!important;border:0!important}
#nexusApp[data-design=unified].studio-workspace .app #agenda .agenda-form-panel{padding:14px 18px!important}
#nexusApp[data-design=unified].studio-workspace .app #agenda .agenda-item{box-shadow:none!important;background:white!important;border:1px solid var(--ui-line)!important;border-left:3px solid #c7b5df!important}
#nexusApp[data-design=unified].studio-workspace .app #ponto .time-day-summary{background:var(--ui-tint)!important;border-color:#e3d8ef!important}
#nexusApp[data-design=unified].studio-workspace .app #ponto .time-punch-grid article{background:#fafbfc!important;border-color:var(--ui-line)!important}
#nexusApp[data-design=unified].studio-workspace .app #ponto .time-punch-grid article.done{background:#f1f8f5!important;border-color:#dcece4!important}
#nexusApp[data-design=unified].studio-workspace .app .app-view.view-hidden,#nexusApp[data-design=unified].studio-workspace .hidden{display:none!important}
@media(max-width:1100px){#nexusApp[data-design=unified].studio-workspace .app .app-main{padding:20px!important}}
@media(max-width:760px){#nexusApp[data-design=unified].studio-workspace .app .app-main{padding:18px 16px 100px!important}#nexusApp[data-design=unified].studio-workspace .app .topbar h1{font-size:20px!important}#nexusApp[data-design=unified].studio-workspace :is(.app-view,.modal,.chat-window) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=color]){font-size:16px!important}#nexusApp[data-design=unified].studio-workspace .app .company-actions{width:100%!important}#nexusApp[data-design=unified].studio-workspace .app :is(.planning-panel>header,.knowledge-hero,.ops-hero,.purchase-intro){align-items:flex-start!important}#nexusApp[data-design=unified].studio-workspace .modal{border-radius:14px 14px 0 0!important}}


/* Source: ui/components/assistant.css */
/* Assistant identity: restrained violet, shared typography, responsive drawer. */
#nexusApp .nexus-assistant-trigger{display:inline-flex;align-items:center;gap:8px;border:1px solid #ded4f0;background:#f5f0ff;color:#68429d;padding:10px 14px;border-radius:10px;min-height:42px;font:600 13px inherit;cursor:pointer}
#nexusApp #nexusInsights{order:2;min-width:0;margin:0 0 20px}
#nexusApp .nexus-command{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px;border:1px solid #e1d9ee;border-radius:16px;background:linear-gradient(115deg,#fff 25%,#f1eafa);box-shadow:0 5px 24px #54348606}
#nexusApp .assistant-kicker{font-size:10px;letter-spacing:.12em;font-weight:700;color:#825ba9}
#nexusApp .nexus-command h2{font-size:24px;letter-spacing:-.04em;margin:8px 0;color:#292337}
#nexusApp .nexus-command p{font-size:13px;color:#737081;margin:0;line-height:1.6}
#nexusApp .nexus-command button{background:#fff;border:1px solid #d5c4e9;border-radius:12px;min-width:260px;padding:16px 20px;text-align:left;color:#64408c;font-size:15px;font-weight:600;cursor:pointer;box-shadow:0 3px 12px #64378909}
#nexusApp .nexus-command button span{display:block;font-size:11px;color:#84768f;font-weight:400;margin-top:7px}
#nexusApp .nexus-insights-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
#nexusApp .nexus-insights-grid:empty{display:none}
#nexusApp .nexus-insights-grid article{background:white;border:1px solid var(--ui-line);border-radius:12px;padding:18px}
#nexusApp .nexus-insights-grid small{font-size:9px;letter-spacing:.07em;color:#83748d}
#nexusApp .nexus-insights-grid h3{font-size:16px;margin:9px 0;color:var(--ui-ink)}
#nexusApp .nexus-insights-grid p{font-size:12px;color:var(--ui-muted);line-height:1.7}
#nexusApp .nexus-insights-grid article>div{display:flex;gap:16px;flex-wrap:wrap}
#nexusApp .nexus-insights-grid button{border:0;background:none;color:#785393;font-size:12px;padding:8px 0;min-height:40px;cursor:pointer}
#nexusApp .nexus-insights-grid button:last-child{color:#7b808d}
#nexusAssistant{position:fixed;inset:0 0 0 auto;margin:0;width:460px;max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;border:0;border-left:1px solid #e4ddec;border-radius:0;padding:28px;background:#faf9fc;color:#292337;overflow:auto;box-shadow:-12px 0 60px #28163818;font-family:Manrope,sans-serif}
#nexusAssistant::backdrop{background:#201b3038;backdrop-filter:blur(2px)}
#nexusAssistant header{display:flex;justify-content:space-between;gap:16px;align-items:start}
#nexusAssistant h2{font-size:23px;letter-spacing:-.04em;margin:10px 0}
#nexusAssistant h3{font-size:15px;margin:8px 0;overflow-wrap:anywhere}
#nexusAssistant p,#nexusAssistant footer{font-size:12px;color:#746c80;line-height:1.7}
#nexusAssistant .assistant-mode{background:#efeaf5;border:1px solid #e2d8ed;border-radius:8px;padding:10px;font-size:11px;color:#795a91;margin:20px 0}
#nexusAssistant label{display:block;font-size:12px;font-weight:600;margin:0 0 8px}
#nexusAssistant form>div{display:flex;gap:8px}
#nexusAssistant input{min-width:0;flex:1;background:white;border:1px solid #d9cde5;border-radius:8px;padding:12px;font-size:16px;color:#292337}
#nexusAssistant button{border:1px solid #e1d9eb;background:white;border-radius:8px;padding:10px 12px;min-height:42px;color:#6e498c;font:inherit;font-size:12px;cursor:pointer}
#nexusAssistant form button{background:#7949d8;color:white;border-color:#7949d8}
#nexusAssistant .assistant-shortcuts{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 22px}
#nexusAssistant article{background:white;border:1px solid #e5dfea;border-radius:12px;padding:16px;margin:10px 0}
#nexusAssistant article small{font-size:10px;color:#81718f}
#nexusAssistant footer{border-top:1px solid #e5dfea;padding-top:16px;margin-top:24px}
#nexusAssistant .assistant-empty{padding:16px;background:#f2eef7;border-radius:10px}
@media(max-width:760px){#nexusApp .nexus-command{padding:20px;align-items:stretch;flex-direction:column;gap:16px}#nexusApp .nexus-command h2{font-size:21px}#nexusApp .nexus-command button{min-width:0;width:100%}#nexusApp .nexus-insights-grid{grid-template-columns:1fr}#nexusAssistant{width:100%;padding:24px 18px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}#nexusApp .nexus-assistant-trigger span{display:none}}
@media(prefers-reduced-motion:reduce){#nexusAssistant::backdrop{backdrop-filter:none}}
#nexusApp[data-design=unified].studio-workspace .app .topbar .global-search{display:none!important}
#nexusApp[data-design=unified].studio-workspace .app .topbar-actions{flex-wrap:wrap!important}

