: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-grid { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.user-create-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e4ddf1;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.user-create-card h3 { margin: 4px 0 0; font-size: 22px; }
.user-create-card .primary-button { width: 100%; }
.users-list-panel { min-width: 0; }
.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; }

.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)); }
  .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;
}

/* 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);
}

.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;
}
