:root{
  --bg:#f6f8fb;
  --bg-soft:#eef5ff;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --card:#ffffff;
  --line:#e5eaf1;
  --line-strong:#d9e2ee;
  --text:#0f172a;
  --muted:#64748b;
  --muted-2:#94a3b8;
  --primary:#2563eb;
  --primary-2:#0ea5e9;
  --primary-soft:#eaf2ff;
  --success:#16a34a;
  --success-soft:#e9f9ef;
  --danger:#e11d48;
  --danger-soft:#fff1f2;
  --warning:#f59e0b;
  --radius:22px;
  --radius-sm:16px;
  --shadow:0 18px 45px rgba(15,23,42,.08);
  --shadow-soft:0 8px 22px rgba(15,23,42,.06);
  --gap:14px;
  --topbar-h:96px;
  --toast-top:calc(env(safe-area-inset-top) + var(--topbar-h) + 10px);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;background:radial-gradient(circle at top right,rgba(37,99,235,.10),transparent 34%),linear-gradient(180deg,#fbfdff 0%,var(--bg) 38%,#f8fafc 100%);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100svh}
.app-topbar{position:fixed;top:0;z-index:30;display:flex;align-items:center;gap:12px;padding:calc(env(safe-area-inset-top) + 10px) 16px 10px;background:rgba(255,255,255,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(226,232,240,.82);box-shadow:0 10px 30px rgba(15,23,42,.04)}
.app-topbar strong{display:block;font-size:16px;letter-spacing:-.02em}.app-topbar small{display:block;color:var(--muted);font-size:12px;margin-top:1px}.icon-btn{width:42px;height:42px;border:1px solid var(--line);border-radius:15px;background:#fff;display:grid;place-content:center;gap:4px;box-shadow:var(--shadow-soft)}.icon-btn span{display:block;width:17px;height:2px;background:var(--text);border-radius:999px}.version-pill{margin-left:auto;font-size:11px;font-weight:800;padding:7px 9px;border-radius:999px;background:var(--primary-soft);color:var(--primary);border:1px solid rgba(37,99,235,.12)}
.content{padding:16px;max-width:860px;margin:0 auto 40px}.hero-card{position:relative;overflow:hidden;display:flex;justify-content:space-between;gap:18px;padding:20px;background:linear-gradient(135deg,#fff 0%,#f8fbff 60%,#eef6ff 100%);border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow)}.hero-card:after{content:"";position:absolute;right:-50px;top:-55px;width:150px;height:150px;border-radius:999px;background:rgba(37,99,235,.10)}.hero-card h1{position:relative;margin:0 0 8px;font-size:25px;line-height:1.04;letter-spacing:-.055em}.hero-card p{position:relative;margin:0;color:var(--muted);line-height:1.45;font-size:14px}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:900;color:var(--primary)!important;margin-bottom:8px!important}.pulse-dot{position:relative;z-index:1;flex:0 0 auto;width:14px;height:14px;border-radius:50%;background:var(--success);box-shadow:0 0 0 9px rgba(22,163,74,.12);margin-top:8px}
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.kpi-grid article{padding:13px 12px;border-radius:20px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-soft)}.kpi-grid strong{display:block;font-size:24px;line-height:1;letter-spacing:-.04em}.kpi-grid span{display:block;margin-top:5px;font-size:11px;color:var(--muted);font-weight:700}.section-nav{position:sticky;top:64px;z-index:22;display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:14px 0;padding:8px;background:rgba(255,255,255,.78);border:1px solid var(--line);border-radius:22px;backdrop-filter:blur(16px);box-shadow:var(--shadow-soft)}.section-nav a{display:flex;align-items:center;justify-content:center;min-height:38px;border-radius:15px;text-decoration:none;color:var(--muted);font-size:12px;font-weight:900}.section-nav a:hover,.section-nav a:focus{background:var(--primary-soft);color:var(--primary)}
.app-menu{position:fixed;inset:0;z-index:60;background:rgba(15,23,42,.34);opacity:0;pointer-events:none;transition:.2s;backdrop-filter:blur(2px)}.app-menu.is-open{opacity:1;pointer-events:auto}.menu-panel{width:min(340px,88vw);height:100%;padding:18px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border-right:1px solid var(--line);box-shadow:0 24px 70px rgba(15,23,42,.18);transform:translateX(-100%);transition:.24s ease;overflow:auto}.app-menu.is-open .menu-panel{transform:translateX(0)}.menu-head{display:flex;gap:12px;align-items:center;margin-bottom:18px;padding:8px 6px}.brand-mark{width:46px;height:46px;border-radius:18px;background:linear-gradient(135deg,var(--primary),var(--primary-2));display:grid;place-items:center;color:#fff;font-weight:1000;box-shadow:0 14px 28px rgba(37,99,235,.18)}.menu-head b{display:block;letter-spacing:-.03em}.menu-head small{display:block;color:var(--muted);font-size:12px;margin-top:2px}.menu-panel a{display:flex;align-items:center;gap:12px;min-height:54px;padding:0 14px;margin-bottom:8px;border-radius:18px;color:var(--text);text-decoration:none;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-soft);font-weight:900}.menu-panel a img{width:30px;height:30px;flex:0 0 30px;display:block;border-radius:10px}.menu-panel a:after{content:"›";margin-left:auto;color:var(--muted);font-size:20px;line-height:1}.menu-panel a:hover{border-color:rgba(37,99,235,.22);background:#f8fbff}.install-screen{display:grid;place-items:center;min-height:100svh;padding:20px}.install-card{width:min(420px,100%);padding:24px;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow)}
.toast{position:fixed;top:var(--toast-top);left:14px;right:14px;z-index:1200;display:grid;gap:2px;padding:13px 14px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:var(--shadow);backdrop-filter:blur(18px);animation:toastIn .22s ease-out}.toast b{font-size:13px}.toast span{font-size:12px;color:var(--muted);line-height:1.35}.toast-success{border-color:rgba(22,163,74,.22);background:rgba(250,255,252,.96)}.toast-error{border-color:rgba(225,29,72,.24);background:rgba(255,248,249,.96)}@keyframes toastIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:720px){.content{padding:24px}.screen-section{padding:18px}.cards-list,.template-list{grid-template-columns:repeat(2,1fr)}.form-grid-2{grid-template-columns:1fr 1fr}.toast{left:50%;right:auto;width:min(520px,calc(100% - 28px));transform:translateX(-50%)}@keyframes toastIn{from{opacity:0;transform:translate(-50%,-10px)}to{opacity:1;transform:translate(-50%,0)}}}
@media(max-width:390px){.content{padding:12px}.section-nav{gap:6px;grid-template-columns:repeat(3,1fr)}.section-nav a{font-size:11px}.kpi-grid article{padding:11px 9px}.hero-card h1{font-size:23px}.screen-section{padding:12px}.btn{width:100%}.card-actions .btn,.card-actions form,.card-actions form button{width:100%}}

.followup-card{position:relative;overflow:hidden;background:linear-gradient(135deg,#ffffff,#f8fbff)}.followup-card:before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:4px;border-radius:0 999px 999px 0;background:linear-gradient(180deg,#16a34a,#86efac)}.followup-card .action-panel{margin-top:12px}
@media(max-width:520px){.kpi-grid{grid-template-columns:repeat(2,1fr)}}

/* v1.0.8b — Premium Shell Layout */
.menu-brand-card{
  display:flex;align-items:center;gap:12px;margin:0 0 22px;padding:12px;
  border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,.82);
  box-shadow:0 16px 36px rgba(15,23,42,.07);
}
.menu-brand-card b{display:block;font-size:18px;letter-spacing:-.04em;line-height:1.05}
.menu-brand-card small{display:block;margin-top:4px;color:var(--muted);font-size:12px;font-weight:700}
.menu-group-label{
  margin:18px 8px 9px;color:var(--muted);font-size:11px;font-weight:1000;
  letter-spacing:.22em;text-transform:uppercase;
}
.menu-panel .menu-link{
  position:relative;min-height:62px;padding:9px 12px;margin-bottom:9px;border-radius:22px;
  align-items:center;gap:12px;background:rgba(255,255,255,.84);
}
.menu-panel .menu-link span:not(.menu-icon){display:block;min-width:0}
.menu-panel .menu-link b{display:block;font-size:15px;line-height:1.06;letter-spacing:-.025em;color:var(--text)}
.menu-panel .menu-link small{display:block;margin-top:4px;color:var(--muted);font-size:11px;font-weight:700;line-height:1.15}
.menu-icon{
  width:38px;height:38px;border-radius:15px;display:grid;place-items:center;flex:0 0 38px;
  background:linear-gradient(135deg,#eef6ff,#ffffff);border:1px solid rgba(37,99,235,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.menu-icon img{width:24px!important;height:24px!important;border-radius:8px!important;object-fit:contain}
.menu-spacer{height:14px}
.menu-exit{margin-top:18px!important;border-color:rgba(37,99,235,.10)!important;background:#fff!important}
body.menu-open{overflow:hidden}

@media(min-width:980px){
  :root{--sidebar-w:292px}
  body{background:linear-gradient(90deg,#f7faf7 0%,#f8fafc 32%,#ffffff 100%)}
  .app-shell{min-height:100svh}
  .app-menu{inset:0 auto 0 0;width:var(--sidebar-w);opacity:1;pointer-events:auto;background:transparent;backdrop-filter:none;z-index:45}
  .menu-panel{
    width:var(--sidebar-w);max-width:var(--sidebar-w);height:100svh;transform:none!important;overflow-y:auto;
    padding:22px 18px 18px;background:linear-gradient(180deg,#ffffff 0%,#f7fbf8 100%);
    box-shadow:12px 0 38px rgba(15,23,42,.05);border-right:1px solid rgba(203,213,225,.72);
  }
  .app-topbar{
    margin-left:var(--sidebar-w);padding:22px 32px 18px;background:rgba(255,255,255,.86);
    border-bottom:1px solid rgba(226,232,240,.82);box-shadow:none;
  }
  .app-topbar .icon-btn{display:none}
  .app-topbar strong{font-size:22px;letter-spacing:-.055em}.app-topbar small{font-size:13px}
  .content{max-width:1180px;margin:0 auto 60px;padding:26px 34px 46px;margin-left:calc(var(--sidebar-w) + max(24px, calc((100vw - var(--sidebar-w) - 1180px)/2)))}
  .hero-card{padding:28px 30px;border-radius:32px}.hero-card h1{font-size:36px}.hero-card p{max-width:670px;font-size:15px}
  .kpi-grid{gap:14px;margin:18px 0}.kpi-grid article{padding:17px 18px;border-radius:22px}.kpi-grid strong{font-size:30px}
  .section-nav{display:none}
  .section{scroll-margin-top:96px}.screen-section{padding:22px;border-radius:30px;margin-top:22px}
  .section-title h2{font-size:24px}.section-title{margin-bottom:16px}
  .form-panel{border-radius:24px}.form-panel summary{padding:17px 18px}.stack-form{padding:0 18px 18px}
  .toast{left:calc(var(--sidebar-w) + 50%);max-width:520px}
}

@media(max-width:979px){
  .menu-brand-card{margin-bottom:16px}.menu-panel{padding-top:calc(env(safe-area-inset-top) + 18px)}
}


/* v1.0.8b screen separation superseded by v1.4.6f. */
/* v1.0.8c — Home Executive Dashboard */
.dashboard-hero{align-items:center}.hero-actions{position:relative;z-index:2;display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.hero-status-orb{position:relative;z-index:2;width:104px;height:104px;flex:0 0 104px;border-radius:34px;background:linear-gradient(135deg,#eff6ff,#fff);border:1px solid rgba(37,99,235,.12);box-shadow:var(--shadow-soft);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.hero-status-orb span{position:absolute;right:16px;top:16px;width:10px;height:10px;border-radius:999px;background:var(--success);box-shadow:0 0 0 7px rgba(22,163,74,.10)}.hero-status-orb b{font-size:32px;line-height:1;letter-spacing:-.06em}.hero-status-orb small{margin-top:5px;color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.executive-kpis article{position:relative;overflow:hidden}.executive-kpis article:after{content:"";position:absolute;right:-18px;top:-22px;width:76px;height:76px;border-radius:999px;background:rgba(37,99,235,.05)}.executive-kpis .kpi-action{border-color:rgba(37,99,235,.22);background:linear-gradient(135deg,#fff,#f4f8ff)}.executive-dashboard{display:none}.dashboard-main-grid{display:grid;gap:16px}.priority-panel{background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(248,251,255,.86))}.priority-list{display:grid;gap:12px}.priority-card{padding:15px;border-radius:23px;background:#fff;border:1px solid var(--line);box-shadow:0 8px 22px rgba(15,23,42,.045)}.priority-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.priority-topline b{display:block;font-size:16px;letter-spacing:-.035em}.priority-topline span{display:block;margin-top:3px;color:var(--muted);font-size:12px;font-weight:750}.priority-card p{margin:0 0 12px;color:#334155;font-size:13px;line-height:1.42;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.status-chip{font-style:normal;white-space:nowrap;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:1000;letter-spacing:.05em;text-transform:uppercase}.chip-action{background:#e9f9ef;color:#15803d;border:1px solid rgba(22,163,74,.14)}.chip-waiting{background:#fff7ed;color:#c2410c;border:1px solid rgba(249,115,22,.16)}.compact-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.compact-actions .btn{min-height:38px}.executive-side{display:grid;gap:16px;align-content:start}.insight-panel{margin-top:0!important}.insight-list{display:grid;gap:10px}.insight-list div{padding:13px;border-radius:18px;background:#fff;border:1px solid var(--line)}.insight-list b{display:block;font-size:22px;letter-spacing:-.05em}.insight-list span{display:block;margin-top:2px;color:var(--muted);font-size:12px;font-weight:800}.shortcut-stack{display:grid;gap:9px}.shortcut-link{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 13px;border-radius:16px;background:#fff;border:1px solid var(--line);text-decoration:none;color:var(--text);font-size:13px;font-weight:900;box-shadow:0 6px 16px rgba(15,23,42,.035)}.shortcut-link span{color:var(--primary);font-size:18px}.executive-preview .preview-row span{max-width:620px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-dashboard.executive-dashboard{margin-top:18px}body[data-screen="home"] .home-dashboard.executive-dashboard{display:block}
@media(min-width:980px){.dashboard-main-grid{grid-template-columns:minmax(0,1.7fr) 360px;align-items:start}.dashboard-hero h1{font-size:42px}.hero-status-orb{width:124px;height:124px;flex-basis:124px;border-radius:38px}.hero-status-orb b{font-size:40px}.priority-card{padding:17px;border-radius:24px}.priority-topline b{font-size:17px}}
@media(max-width:640px){.dashboard-hero{display:block}.hero-status-orb{display:none}.hero-actions .btn{width:auto;flex:1}.compact-actions{grid-template-columns:1fr}.executive-kpis{grid-template-columns:repeat(2,1fr)}}


/* v1.0.8c1 — Mobile Overflow & Button Containment Hotfix */
html,body{max-width:100%;overflow-x:hidden}
.app-shell,.content,.app-main,.app-content,.screen-section,.screen-section-lite,.home-dashboard,.dashboard-main-grid,.executive-side,.priority-card,.preview-list,.preview-row{max-width:100%;min-width:0}
.section-nav,.hero-card,.kpi-grid,.screen-section-lite,.priority-panel,.insight-panel{overflow:hidden}
.btn,.shortcut-link,.preview-row a,.priority-card a{max-width:100%;white-space:normal;text-align:center;overflow:hidden;text-overflow:ellipsis}
.preview-row>div,.priority-topline>div{min-width:0;max-width:100%;overflow:hidden}
.preview-row b,.preview-row span,.priority-topline b,.priority-topline span{overflow-wrap:anywhere;word-break:break-word}
.priority-card,.preview-row{overflow:hidden}
body[data-screen="home"] .content{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
@media(max-width:640px){
  .content{padding-left:12px;padding-right:12px;margin-bottom:0}
  .hero-card{padding:18px;border-radius:26px}
  .hero-card p{font-size:13px}
  .kpi-grid{gap:8px}
  .section-nav{position:relative;top:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;margin:12px 0;border-radius:24px}
  .section-nav a{min-width:0;min-height:44px}
  .screen-section-lite{padding:14px;border-radius:26px}
  .dashboard-main-grid{gap:14px}
  .executive-side{gap:14px}
  .insight-list{gap:9px}
  .insight-list div{padding:12px 13px}
  .shortcut-stack{gap:8px}
  .shortcut-link{min-height:42px;padding:0 12px}
  .preview-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:12px;border-radius:18px}
  .preview-row .btn{width:100%;min-height:40px;display:flex;flex:0 1 auto}
  .executive-preview .preview-row span{max-width:100%;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .priority-topline{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
  .compact-actions{grid-template-columns:1fr;gap:8px}
  .compact-actions .btn{width:100%}
  .section-title h2{font-size:22px}
  .section-title span{font-size:12px}
}
@media(max-width:380px){
  .section-nav{grid-template-columns:1fr}
  .kpi-grid.executive-kpis{grid-template-columns:1fr 1fr}
  .hero-actions{display:grid;grid-template-columns:1fr}
  .hero-actions .btn{width:100%}
}

/* v1.3.0b — Prospect IA Branding Integration */
.topbar-logo-mark{
  width:42px;height:42px;object-fit:contain;flex:0 0 42px;
  filter:drop-shadow(0 10px 18px rgba(37,99,235,.16));
}
.brand-logo-full{
  width:100%;max-width:250px;height:auto;display:block;
}
.brand-copy-hidden{display:none}
.menu-brand-card.premium-brand-card{
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 56%,#eff6ff 100%);
}
.brand-mark.brand-mark-premium{
  background:transparent;box-shadow:none;color:transparent;
}
.app-topbar{
  width:100%;
}
@media(max-width:520px){
  .app-topbar strong{font-size:18px}
  .app-topbar small{font-size:12px;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}


/* v1.3.0b — Exact Approved Logo Integration */
.topbar-logo-mark{
  width:52px!important;
  height:52px!important;
  object-fit:contain!important;
  flex:0 0 52px!important;
  filter:none!important;
}
.brand-logo-full{display:none!important}
.brand-logo-inline{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  min-width:0;
}
.brand-logo-symbol{
  width:74px;
  height:74px;
  object-fit:contain;
  flex:0 0 74px;
  filter:none;
}
.brand-logo-text{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.brand-logo-text b{
  font-size:25px;
  line-height:1;
  letter-spacing:-.055em;
  color:#0f172a;
}
.brand-logo-text b span{
  color:#2563eb;
}
.brand-logo-text small{
  margin-top:6px;
  color:#64748b;
  font-size:12px;
  line-height:1.25;
  font-weight:600;
}
.menu-brand-card.premium-brand-card{
  min-height:104px!important;
  padding:16px!important;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 58%,#eef7ff 100%)!important;
  border-color:#e5eaf1!important;
}
.app-topbar{
  min-height:calc(env(safe-area-inset-top) + 84px);
}
.app-topbar strong{
  letter-spacing:-.045em;
}
@media(max-width:520px){
  .topbar-logo-mark{
    width:54px!important;
    height:54px!important;
    flex-basis:54px!important;
  }
  .brand-logo-symbol{
    width:68px;
    height:68px;
    flex-basis:68px;
  }
  .brand-logo-text b{font-size:23px}
}



/* Prospect IA v1.3.0b — Intelligent Operational Queue */
.queue-priority,
.pi-priority,
.operational-priority {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  font-size:.74rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#1D4ED8;
  background:linear-gradient(135deg,rgba(37,99,235,.10),rgba(6,182,212,.12));
  border:1px solid rgba(37,99,235,.16);
}
.queue-score,
.pi-score,
.operational-score {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:30px;
  padding:0 9px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#2563EB,#06B6D4);
  font-size:.78rem;
  font-weight:950;
  box-shadow:0 10px 22px rgba(37,99,235,.18);
}
.queue-reason,
.pi-reason,
.operational-reason {
  color:#64748B;
  font-size:.86rem;
  line-height:1.35;
  margin-top:6px;
}
.queue-card-high,
.pi-card-high {
  border-left:6px solid #2563EB !important;
}
.queue-card-hot,
.pi-card-hot {
  border-left:6px solid #06B6D4 !important;
}
.queue-card-waiting,
.pi-card-waiting {
  border-left:6px solid rgba(100,116,139,.45) !important;
}



/* Prospect IA v1.3.0b — Menu hierarchy note
   Follow-ups será absorvido pela Inbox na v1.3.1 para evitar competição operacional. */



/* Prospect IA v1.4.1a — Score Operacional Visível */
.pi-score-block {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37,99,235,.07), rgba(6,182,212,.08));
  border: 1px solid rgba(37,99,235,.14);
}
.pi-score-line {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.pi-score-line strong {
  color: #0F172A;
  font-size: .92rem;
  letter-spacing: -.01em;
}
.pi-score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  font-size: .75rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(37,99,235,.18);
}
.pi-score-block p {
  margin: 7px 0 0;
  color: #64748B;
  font-size: .85rem;
  line-height: 1.35;
}
.pi-score-alta {
  border-color: rgba(37,99,235,.24);
  box-shadow: 0 12px 28px rgba(37,99,235,.08);
}
.pi-score-media {
  background: linear-gradient(135deg, rgba(6,182,212,.07), rgba(37,99,235,.05));
}
.pi-score-baixa {
  background: rgba(248,250,252,.92);
  border-color: rgba(100,116,139,.16);
}



/* Prospect IA v1.4.1a — Home Cockpit Cleanup */
.cockpit-home .hero-card,
.cockpit-home .home-hero,
.cockpit-home .dashboard-hero {
  margin-bottom: 12px;
}
.home-empty-onboarding {
  margin: 14px 0;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(37,99,235,.07), rgba(6,182,212,.07));
  border: 1px dashed rgba(37,99,235,.22);
}
.home-empty-onboarding b {
  display: block;
  color: #0F172A;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.home-empty-onboarding span {
  display: block;
  margin-top: 6px;
  color: #64748B;
  line-height: 1.38;
}
.home-empty-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.cockpit-home .metric-card,
.cockpit-home .stat-card {
  min-height: auto;
  padding: 14px 16px;
}
.cockpit-home .quick-links,
.cockpit-home .shortcut-grid,
.cockpit-home .home-shortcuts {
  margin-top: 14px;
}
.cockpit-home #followups,
.cockpit-home .followups-home-block,
.cockpit-home .home-followups,
.cockpit-home .section-followups {
  display: none !important;
}
.cockpit-home .section-title h2 {
  letter-spacing: -.045em;
}
@media(max-width:760px) {
  .home-empty-actions {
    grid-template-columns: 1fr;
  }
  .cockpit-home .home-metrics,
  .cockpit-home .metrics-grid,
  .cockpit-home .stats-grid {
    gap: 10px;
  }
}



/* Prospect IA v1.4.1aa — Remove Home Shortcut Noise */
.cockpit-home .quick-links,
.cockpit-home .shortcut-grid,
.cockpit-home .home-shortcuts,
.cockpit-home .home-nav-card,
.cockpit-home .dashboard-shortcuts,
.cockpit-home .daily-shortcuts {
  display: none !important;
}



/* Prospect IA v1.4.1a — Home Minimalista Final */
.cockpit-home .quick-links,
.cockpit-home .shortcut-grid,
.cockpit-home .home-shortcuts,
.cockpit-home .home-nav-card,
.cockpit-home .dashboard-shortcuts,
.cockpit-home .daily-shortcuts,
.cockpit-home .summary-card,
.cockpit-home .home-summary,
.cockpit-home .section-summary {
  display: none !important;
}
.cockpit-home .home-empty-onboarding {
  display: none !important;
}
.cockpit-home .empty-inline {
  padding: 18px 18px !important;
}
.cockpit-home .empty-inline b {
  font-size: 1rem !important;
}
.cockpit-home .empty-inline span {
  font-size: .94rem !important;
  line-height: 1.35 !important;
}
.home-next-action-cta {
  margin-top: 12px;
}
.home-next-action-cta .btn {
  width: 100%;
}
.cockpit-home .section-title {
  margin-bottom: 12px;
}
.cockpit-home .section {
  margin-bottom: 14px;
}



/* Prospect IA v1.4.1aa — Ghost Container Cleanup */
.cockpit-home .home-shortcuts:empty,
.cockpit-home .quick-links:empty,
.cockpit-home .shortcut-grid:empty,
.cockpit-home .home-nav-card:empty,
.cockpit-home .dashboard-shortcuts:empty,
.cockpit-home .daily-shortcuts:empty,
.cockpit-home .glass-card:empty,
.cockpit-home .card:empty,
.cockpit-home .panel:empty {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.cockpit-home .home-metrics + .home-shortcuts,
.cockpit-home .home-metrics + .quick-links,
.cockpit-home .home-metrics + .shortcut-grid,
.cockpit-home .home-metrics + .home-nav-card,
.cockpit-home .home-metrics-final + .home-shortcuts,
.cockpit-home .home-metrics-final + .quick-links,
.cockpit-home .home-metrics-final + .shortcut-grid,
.cockpit-home .home-metrics-final + .home-nav-card {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.cockpit-home .home-metrics,
.cockpit-home .home-metrics-final {
  margin-bottom: 14px !important;
}



/* Prospect IA v1.4.1a — Exact Atalhos Block Removal */
.cockpit-home .executive-side:empty {
  display:none!important;
  margin:0!important;
  padding:0!important;
  height:0!important;
  min-height:0!important;
}



/* Prospect IA v1.4.1a — Atalhos module hard removed */
.executive-side,
.shortcut-stack,
.shortcut-link,
.home-shortcuts,
.quick-links,
.shortcut-grid {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}



/* Prospect IA v1.4.1a — Remove empty section-nav ghost card */
.section-nav:empty,
.cockpit-home .section-nav:empty,
nav.section-nav:empty {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}



/* Legacy duplicated topbar/menu spacing patches removed in v1.4.8o. */

/* Prospect IA v1.4.1a — Home Empty State Final */
.dashboard-hero.hero-card,
.hero-card.dashboard-hero {
  padding: 16px 18px !important;
  border-radius: 24px !important;
}
.dashboard-hero h1,
.hero-card.dashboard-hero h1 {
  font-size: 24px !important;
  margin-bottom: 6px !important;
}
.dashboard-hero p,
.hero-card.dashboard-hero p {
  font-size: 13.5px !important;
  line-height: 1.34 !important;
}
.hero-actions {
  gap: 10px !important;
  margin-top: 14px !important;
}
.hero-actions .btn {
  min-height: 44px !important;
  border-radius: 17px !important;
}
.hero-actions .btn-secondary {
  background: rgba(255,255,255,.82) !important;
  color: #0F172A !important;
  box-shadow: 0 10px 24px rgba(15,23,42,.05) !important;
}
.kpi-grid.executive-kpis,
.executive-kpis {
  gap: 10px !important;
  margin-top: 14px !important;
  margin-bottom: 12px !important;
}
.kpi-grid.executive-kpis article,
.executive-kpis article {
  min-height: 76px !important;
  padding: 12px 14px !important;
  border-radius: 20px !important;
}
.kpi-grid.executive-kpis strong,
.executive-kpis strong {
  font-size: 28px !important;
  line-height: 1 !important;
}
.kpi-grid.executive-kpis span,
.executive-kpis span {
  font-size: 12.5px !important;
}
.home-dashboard,
.executive-dashboard {
  margin-top: 12px !important;
}
.priority-panel {
  margin-top: 0 !important;
}
.priority-panel .empty-inline {
  padding: 16px !important;
}
.priority-panel .empty-inline b {
  font-size: 1rem !important;
}
.priority-panel .empty-inline span {
  font-size: .92rem !important;
  line-height: 1.32 !important;
}
.priority-panel .home-next-action-cta {
  margin-top: 12px !important;
}
.priority-panel .home-next-action-cta .btn {
  min-height: 44px !important;
  border-radius: 17px !important;
}
@media(max-width:520px){
  .dashboard-hero.hero-card,
  .hero-card.dashboard-hero {
    padding: 16px !important;
  }
  .hero-actions {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* Prospect IA v1.4.1a — Motor Autodidata Assistido */
.menu-link-learning .menu-icon{display:grid;place-items:center;color:#2563EB;font-weight:1000}
.learning-brief{padding:14px 16px;border-radius:20px;background:linear-gradient(135deg,rgba(37,99,235,.07),rgba(6,182,212,.07));border:1px solid rgba(37,99,235,.14);margin-bottom:14px}
.learning-brief b{display:block;color:#0F172A;font-weight:900}.learning-brief span{display:block;color:#64748B;margin-top:4px;line-height:1.35}
.learning-list{display:grid;gap:14px}.learning-card{border:1px solid rgba(226,232,240,.96);background:#fff;border-radius:24px;padding:16px;box-shadow:0 14px 34px rgba(15,23,42,.06)}
.learning-card.compact{padding:13px 14px}.learning-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.learning-head b{display:block;color:#0F172A;font-weight:950;letter-spacing:-.025em}.learning-head span{display:block;color:#64748B;font-size:.84rem;margin-top:3px;line-height:1.3}
.learning-head em{flex:0 0 auto;min-height:30px;display:inline-flex;align-items:center;padding:0 10px;border-radius:999px;background:linear-gradient(135deg,#2563EB,#06B6D4);color:#fff;font-style:normal;font-weight:950;font-size:.78rem}
.learning-box{border:1px dashed rgba(148,163,184,.45);border-radius:18px;padding:12px;margin-top:10px;background:#F8FAFC}.learning-box small{display:block;text-transform:uppercase;letter-spacing:.12em;color:#2563EB;font-size:.68rem;font-weight:950;margin-bottom:6px}.learning-box p{margin:0;color:#0F172A;line-height:1.38;font-weight:700}
.learning-answer{background:linear-gradient(135deg,rgba(37,99,235,.05),rgba(6,182,212,.06))}.learning-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.learning-actions form{margin:0}.learning-actions .btn{width:100%}.learning-approved-title{margin-top:22px}.learning-home-card{margin-top:20px}@media(max-width:520px){.learning-actions{grid-template-columns:1fr}}



  .timeline-suggested-reply{
    margin-top:10px!important;
  }
}

/* v1.4.3 — auditoria simples da biblioteca de templates */
.template-audit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 14px}.template-audit-card{padding:14px;border-radius:20px;background:rgba(15,23,42,.05);border:1px solid rgba(15,23,42,.09)}.template-audit-card small{display:block;color:var(--muted);font-weight:800;text-transform:uppercase;font-size:11px;letter-spacing:.08em}.template-audit-card strong{display:block;font-size:28px;letter-spacing:-.05em;margin-top:4px}.template-audit-card span{display:block;color:var(--muted);font-size:13px}.template-audit-card.has-warning{background:rgba(251,191,36,.12);border-color:rgba(251,191,36,.32)}.template-warning-box{display:grid;gap:7px;margin:0 0 14px;padding:14px;border-radius:20px;border:1px solid rgba(251,191,36,.34);background:rgba(251,191,36,.1)}.template-warning-box b{font-size:14px}.template-warning-box span,.template-warning-box em{font-size:12px;color:var(--muted);font-style:normal;line-height:1.45}.template-warning-box em{padding:7px 9px;border-radius:12px;background:rgba(255,255,255,.38)}
@media (max-width:640px){.template-audit-grid{grid-template-columns:1fr}}

/* v1.4.5 — origem discreta da sugestão, sem poluir a Inbox */
.suggestion-topline small{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.suggestion-origin{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:3px 7px;border-radius:999px;border:1px solid rgba(15,23,42,.1);background:rgba(15,23,42,.04);color:rgba(15,23,42,.68);font-size:9px;font-weight:950;line-height:1;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;vertical-align:middle}
.suggestion-origin-learning{background:rgba(124,58,237,.08);border-color:rgba(124,58,237,.16);color:#6d28d9}
.suggestion-origin-template{background:rgba(37,99,235,.08);border-color:rgba(37,99,235,.14);color:#2563eb}
.suggestion-origin-matrix{background:rgba(5,150,105,.08);border-color:rgba(5,150,105,.14);color:#047857}
.suggestion-origin-base{background:rgba(100,116,139,.08);border-color:rgba(100,116,139,.14);color:#475569}
.suggestion-trace{margin-top:8px;border-top:1px dashed rgba(15,23,42,.1);padding-top:7px;color:rgba(15,23,42,.64)}
.suggestion-trace summary{cursor:pointer;width:max-content;font-size:10px;font-weight:950;letter-spacing:.04em;text-transform:uppercase;color:inherit;list-style:none}
.suggestion-trace summary::-webkit-details-marker{display:none}
.suggestion-trace summary::after{content:'+';margin-left:5px;font-weight:950}
.suggestion-trace[open] summary::after{content:'−'}
.suggestion-trace p{margin:6px 0 0!important;font-size:11px;line-height:1.45;color:rgba(15,23,42,.62)}
.inbox-suggested .suggestion-trace{display:none}
@media(max-width:420px){.suggestion-origin{font-size:8.5px;padding:3px 6px}.suggestion-trace p{font-size:10.5px}}


/* v1.4.6 — Inbox uso real: próximo card claro sem poluição */
.inbox-card.is-next:not(.is-done){border-color:rgba(37,99,235,.24);box-shadow:0 14px 30px rgba(37,99,235,.09)}
.inbox-card.is-next:not(.is-done)::after{content:"Próximo";position:absolute;right:12px;top:12px;padding:5px 8px;border-radius:999px;background:#eff6ff;color:#1d4ed8;border:1px solid rgba(37,99,235,.16);font-size:10px;font-weight:1000;text-transform:uppercase;letter-spacing:.06em;box-shadow:0 8px 16px rgba(37,99,235,.06)}
.inbox-card.is-next:not(.is-done) .inbox-card-head{padding-right:86px}
.inbox-position{display:block;margin-top:5px;color:#94a3b8;font-size:10.5px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.inbox-card.is-copied-pending .speed-primary{box-shadow:0 10px 20px rgba(37,99,235,.16);transform:translateY(-1px)}
.inbox-card.is-copied-pending .inbox-suggested{border-color:rgba(37,99,235,.22)}
@media(max-width:640px){.inbox-card.is-next:not(.is-done)::after{position:static;display:inline-flex;margin:10px 0 0 4px}.inbox-card.is-next:not(.is-done) .inbox-card-head{padding-right:0}.inbox-position{font-size:10px}}


/* Prospect IA v1.4.6h — Server-rendered Screen Isolation: apenas a tela atual existe no HTML. */
:root{
  --pi-topbar-h: 86px;
  --pi-content-gap: 10px;
  --pi-page-x: 12px;
}
html{
  margin:0 !important;
  padding:0 !important;
  overflow-x:hidden !important;
  scroll-behavior:auto !important;
  scroll-padding-top:calc(var(--pi-topbar-h) + env(safe-area-inset-top) + var(--pi-content-gap)) !important;
  background:var(--bg) !important;
}
body{
  margin:0 !important;
  padding:0 !important;
  min-height:100svh !important;
  overflow-x:hidden !important;
}
.app-shell{
  min-height:100svh !important;
  margin:0 !important;
  padding:0 !important;
}
.app-topbar{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  z-index:1000 !important;
  min-height:calc(var(--pi-topbar-h) + env(safe-area-inset-top)) !important;
  margin:0 !important;
  padding:calc(env(safe-area-inset-top) + 10px) 14px 10px !important;
  transform:none !important;
}
main.content,
.content{
  display:block !important;
  width:100% !important;
  max-width:860px !important;
  margin:0 auto !important;
  padding-top:calc(var(--pi-topbar-h) + env(safe-area-inset-top) + var(--pi-content-gap)) !important;
  padding-left:var(--pi-page-x) !important;
  padding-right:var(--pi-page-x) !important;
  padding-bottom:calc(28px + env(safe-area-inset-bottom)) !important;
  transform:none !important;
}

/* Hard isolation: nada antes da tela ativa pode empurrar Leads/Inbox. */
main.content > *{
  display:none !important;
}
main.content > .app-screen{
  display:none !important;
  position:relative !important;
  width:100% !important;
  height:0 !important;
  min-height:0 !important;
  max-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  visibility:hidden !important;
  transform:none !important;
}
body[data-screen="home"] main.content > [data-screen-section="home"],
body[data-screen="inbox"] main.content > [data-screen-section="inbox"],
body[data-screen="followups"] main.content > [data-screen-section="followups"],
body[data-screen="leads"] main.content > [data-screen-section="leads"],
body[data-screen="projects"] main.content > [data-screen-section="projects"],
body[data-screen="templates"] main.content > [data-screen-section="templates"],
body[data-screen="reports"] main.content > [data-screen-section="reports"],
body[data-screen="learning"] main.content > [data-screen-section="learning"],
body[data-screen="system"] main.content > [data-screen-section="system"]{
  display:block !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 !important;
  padding:14px !important;
  overflow:visible !important;
  visibility:visible !important;
  opacity:1 !important;
  transform:none !important;
}

/* Home tem layout próprio, sem card externo duplicado. */
body[data-screen="home"] main.content > [data-screen-section="home"]{
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body[data-screen="home"] [data-screen-section="home"] .hero-card,
body[data-screen="home"] [data-screen-section="home"] .home-dashboard{
  display:flex;
}
body[data-screen="home"] [data-screen-section="home"] .home-dashboard{
  display:block;
}

/* Leads page CSS removed intentionally in v1.4.6g. */
.section,
.screen-section,
.app-screen{
  scroll-margin-top:calc(var(--pi-topbar-h) + env(safe-area-inset-top) + 12px) !important;
}

@media(max-width:520px){
  :root{
    --pi-topbar-h:86px;
    --pi-content-gap:8px;
    --pi-page-x:12px;
  }
  main.content,.content{
    max-width:100% !important;
  }
  body[data-screen="leads"] main.content > [data-screen-section="leads"],
  body[data-screen="inbox"] main.content > [data-screen-section="inbox"],
  body[data-screen="followups"] main.content > [data-screen-section="followups"],
  body[data-screen="projects"] main.content > [data-screen-section="projects"],
  body[data-screen="templates"] main.content > [data-screen-section="templates"],
  body[data-screen="reports"] main.content > [data-screen-section="reports"],
  body[data-screen="learning"] main.content > [data-screen-section="learning"],
  body[data-screen="system"] main.content > [data-screen-section="system"]{
    border-radius:26px !important;
  }
}
@media(min-width:980px){
  :root{
    --pi-topbar-h:78px;
    --pi-content-gap:18px;
    --pi-page-x:34px;
  }
  .app-topbar{
    left:var(--sidebar-w,292px) !important;
    width:calc(100% - var(--sidebar-w,292px)) !important;
    padding:14px 32px 12px !important;
    min-height:var(--pi-topbar-h) !important;
  }
  main.content,.content{
    max-width:1180px !important;
    margin-left:calc(var(--sidebar-w,292px) + max(24px, calc((100vw - var(--sidebar-w,292px) - 1180px)/2))) !important;
    margin-right:auto !important;
    padding-top:calc(var(--pi-topbar-h) + var(--pi-content-gap)) !important;
  }
}



/* Prospect IA v1.4.6h — limpeza final de fluxo: não existe SPA escondida empurrando conteúdo. */
body[data-screen] main.content > .empty-state{display:block!important}
body[data-screen] main.content > .app-screen{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;visibility:visible!important;overflow:visible!important;margin:0!important}
body[data-screen="leads"] main.content > [data-screen-section="leads"]{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
body[data-screen="leads"] main.content{padding-top:calc(var(--pi-topbar-h) + env(safe-area-inset-top) + 8px)!important}

/* Prospect IA v1.4.8g — Shell/Home/Menu cleanup
   Corrige index.php sem CSS de botão, menu sob safe-area e logotipo aprovado. */
:root{
  --pi-topbar-h:86px;
  --pi-shell-x:14px;
  --pi-blue:#2563eb;
  --pi-cyan:#06b6d4;
}
.app-topbar{
  position:fixed!important;
  top:0!important;left:0!important;right:0!important;
  min-height:calc(var(--pi-topbar-h) + env(safe-area-inset-top))!important;
  padding:calc(env(safe-area-inset-top) + 10px) 16px 10px!important;
  padding-bottom:10px!important;
  gap:12px!important;
  background:rgba(255,255,255,.93)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  border-bottom:1px solid rgba(226,232,240,.84)!important;
  box-shadow:0 10px 28px rgba(15,23,42,.035)!important;
}
.app-topbar .topbar-logo-mark{
  width:50px!important;height:50px!important;flex:0 0 50px!important;
  object-fit:contain!important;display:block!important;visibility:visible!important;opacity:1!important;
  filter:none!important;
}
.app-topbar strong{font-size:18px!important;line-height:1.05!important;letter-spacing:-.045em!important}
.app-topbar small{font-size:12.5px!important;line-height:1.15!important;color:var(--muted)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100vw - 158px)!important}
main.content,.content{
  padding-top:calc(var(--pi-topbar-h) + env(safe-area-inset-top) + 14px)!important;
  padding-left:var(--pi-shell-x)!important;padding-right:var(--pi-shell-x)!important;
}
.btn,
a.btn,
button.btn{
  appearance:none;-webkit-appearance:none;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;padding:0 16px;border-radius:18px;border:1px solid transparent;
  text-decoration:none!important;font-weight:900;line-height:1.05;letter-spacing:-.02em;
  box-shadow:0 12px 24px rgba(37,99,235,.10);
}
.btn-primary{background:linear-gradient(135deg,#1293f3,#2563eb)!important;color:#fff!important;border-color:rgba(37,99,235,.16)!important}
.btn-secondary{background:#fff!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:0 8px 18px rgba(15,23,42,.045)!important}
.btn:hover,.btn:focus{filter:brightness(.99);transform:translateY(-1px)}

/* Menu safe-area hardening */
.app-menu{padding:0!important;top:0!important;bottom:0!important;left:0!important;right:0!important;z-index:120!important}
.app-menu .menu-panel,.menu-panel{
  height:100dvh!important;max-height:100dvh!important;overflow-y:auto!important;
  padding:calc(env(safe-area-inset-top) + 18px) 18px calc(24px + env(safe-area-inset-bottom))!important;
  transform:translateX(-100%);scroll-padding-top:calc(env(safe-area-inset-top) + 18px)!important;
}
.app-menu.is-open .menu-panel{transform:translateX(0)!important}
.menu-brand-card.premium-brand-card{margin-top:0!important;min-height:auto!important;padding:12px!important;border-radius:24px!important}
.brand-logo-symbol{width:58px!important;height:58px!important;flex-basis:58px!important;object-fit:contain!important}
.brand-logo-text b{font-size:22px!important}.brand-logo-text small{font-size:11.5px!important}

/* Home / index.php: remove aparência de link cru e recompõe layout premium. */
body[data-screen="home"] main.content > [data-screen-section="home"]{
  max-width:760px!important;margin:0 auto!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
body[data-screen="home"] .dashboard-hero{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;
  gap:14px!important;margin:0 0 14px!important;padding:20px!important;border-radius:30px!important;
  background:linear-gradient(135deg,#fff 0%,#f8fbff 62%,#eef6ff 100%)!important;
  border:1px solid var(--line)!important;box-shadow:0 18px 45px rgba(15,23,42,.07)!important;
}
body[data-screen="home"] .dashboard-hero h1{font-size:30px!important;line-height:.98!important;margin:0 0 8px!important;letter-spacing:-.065em!important}
body[data-screen="home"] .dashboard-hero p{font-size:15px!important;line-height:1.34!important;color:var(--muted)!important;max-width:34ch!important}
body[data-screen="home"] .hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin-top:16px!important}
body[data-screen="home"] .hero-actions .btn{width:100%!important;min-height:44px!important;border-radius:18px!important;font-size:14px!important}
body[data-screen="home"] .hero-status-orb{display:flex!important}
body[data-screen="home"] .executive-kpis{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0 0 14px!important}
body[data-screen="home"] .executive-kpis article{min-height:74px!important;padding:13px 14px!important;border-radius:22px!important;background:#fff!important;border:1px solid var(--line)!important;box-shadow:0 8px 20px rgba(15,23,42,.045)!important}
body[data-screen="home"] .executive-kpis strong{font-size:30px!important;line-height:.95!important;display:block!important}
body[data-screen="home"] .executive-kpis span{font-size:12px!important;font-weight:900!important;color:var(--muted)!important}
body[data-screen="home"] .home-dashboard.executive-dashboard{display:block!important;margin:0!important}
body[data-screen="home"] .dashboard-main-grid{display:block!important}
body[data-screen="home"] .screen-section-lite,
body[data-screen="home"] .section.screen-section-lite{
  display:block!important;margin:14px 0 0!important;padding:18px!important;border-radius:28px!important;
  background:rgba(255,255,255,.94)!important;border:1px solid var(--line)!important;box-shadow:0 14px 34px rgba(15,23,42,.055)!important;
}
body[data-screen="home"] .section-title{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:12px!important;margin:0 0 14px!important}
body[data-screen="home"] .section-title h2{margin:0!important;font-size:26px!important;letter-spacing:-.065em!important;line-height:1!important}
body[data-screen="home"] .section-title span{font-size:12px!important;color:var(--muted)!important;font-weight:900!important;text-transform:none!important;letter-spacing:0!important}
body[data-screen="home"] .priority-card,
body[data-screen="home"] .preview-row,
body[data-screen="home"] .empty-inline{
  background:#fff!important;border:1px solid var(--line)!important;border-radius:22px!important;padding:14px!important;box-shadow:0 8px 20px rgba(15,23,42,.035)!important;
}
body[data-screen="home"] .priority-card p{font-size:14px!important;line-height:1.4!important;margin:10px 0 12px!important;color:#334155!important}
body[data-screen="home"] .card-actions.compact-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}
body[data-screen="home"] .preview-list{display:grid!important;gap:10px!important}
body[data-screen="home"] .preview-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}
body[data-screen="home"] .preview-row a{min-width:92px!important}
body[data-screen="home"] a:not(.btn):not(.menu-link){text-decoration:none;color:inherit}
body[data-screen="home"] a.btn{text-decoration:none!important}

@media(max-width:520px){
  :root{--pi-topbar-h:86px;--pi-shell-x:12px}
  .app-topbar .topbar-logo-mark{width:48px!important;height:48px!important;flex-basis:48px!important}
  body[data-screen="home"] .dashboard-hero{grid-template-columns:1fr!important;padding:18px!important;border-radius:28px!important}
  body[data-screen="home"] .hero-status-orb{display:none!important}
  body[data-screen="home"] .hero-actions{grid-template-columns:1fr 1fr!important}
  body[data-screen="home"] .hero-actions .btn{font-size:13.5px!important;padding:0 10px!important}
  body[data-screen="home"] .section-title h2{font-size:24px!important}
  body[data-screen="home"] .card-actions.compact-actions{grid-template-columns:1fr!important}
  body[data-screen="home"] .preview-row{grid-template-columns:1fr!important}
  body[data-screen="home"] .preview-row a{width:100%!important}
}
@media(min-width:980px){
  .app-topbar{left:var(--sidebar-w,292px)!important;width:calc(100% - var(--sidebar-w,292px))!important;padding:14px 32px 12px!important;min-height:78px!important}
  .app-menu .menu-panel,.menu-panel{transform:none!important;padding-top:22px!important}
  main.content,.content{padding-top:98px!important}
}

/* Prospect IA v1.4.8h — Inbox Visual Recovery
   Reaplica o design system premium na Inbox Hoje sem alterar regras de negócio. */
body[data-screen="inbox"] main.content > [data-screen-section="inbox"]{
  max-width:760px!important;
  margin:0 auto!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body[data-screen="inbox"] .section-title{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:10px!important;
  margin:0 0 12px!important;
}
body[data-screen="inbox"] .section-title h2{
  margin:0!important;
  font-size:32px!important;
  line-height:1!important;
  letter-spacing:-.07em!important;
  color:var(--text)!important;
}
body[data-screen="inbox"] .section-title span{
  color:var(--muted)!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.01em!important;
  text-transform:none!important;
}
body[data-screen="inbox"] .inbox-brief{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:0 0 8px!important;
  padding:12px 14px!important;
  border:1px solid var(--line)!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,#fff,#f6faff)!important;
  box-shadow:0 10px 24px rgba(15,23,42,.045)!important;
}
body[data-screen="inbox"] .inbox-brief b{
  display:block!important;
  color:var(--text)!important;
  font-size:15px!important;
  font-weight:1000!important;
  letter-spacing:-.035em!important;
}
body[data-screen="inbox"] .inbox-brief span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:30px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  background:#eef6ff!important;
  border:1px solid rgba(37,99,235,.14)!important;
  color:var(--primary)!important;
  font-size:11px!important;
  font-weight:1000!important;
  white-space:nowrap!important;
}
body[data-screen="inbox"] .inbox-batch-strip{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  margin:0 0 10px!important;
  color:var(--muted)!important;
  font-size:12.5px!important;
  line-height:1.25!important;
}
body[data-screen="inbox"] .inbox-batch-strip b{
  color:var(--text)!important;
  font-weight:1000!important;
}
body[data-screen="inbox"] .inbox-filter-bar{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin:0 0 12px!important;
  padding:8px!important;
  border:1px solid var(--line)!important;
  border-radius:22px!important;
  background:rgba(255,255,255,.82)!important;
  box-shadow:0 8px 18px rgba(15,23,42,.035)!important;
}
body[data-screen="inbox"] .inbox-filter{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  min-height:34px!important;
  padding:0 12px!important;
  border:1px solid rgba(226,232,240,.98)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--muted)!important;
  font-size:12px!important;
  font-weight:950!important;
  line-height:1!important;
  box-shadow:none!important;
}
body[data-screen="inbox"] .inbox-filter span{
  color:inherit!important;
  font-weight:1000!important;
}
body[data-screen="inbox"] .inbox-filter.is-active{
  background:linear-gradient(135deg,#2563eb,#0ea5e9)!important;
  border-color:rgba(37,99,235,.12)!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(37,99,235,.16)!important;
}
body[data-screen="inbox"] .inbox-list{
  display:grid!important;
  gap:12px!important;
}
body[data-screen="inbox"] .inbox-card{
  position:relative!important;
  overflow:hidden!important;
  padding:16px!important;
  border:1px solid var(--line)!important;
  border-radius:28px!important;
  background:linear-gradient(180deg,#fff,rgba(248,251,255,.92))!important;
  box-shadow:0 14px 34px rgba(15,23,42,.055)!important;
}
body[data-screen="inbox"] .inbox-card-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 12px!important;
}
body[data-screen="inbox"] .inbox-card-head em{
  display:inline-flex!important;
  align-items:center!important;
  min-height:30px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  background:#fff7ed!important;
  border:1px solid rgba(249,115,22,.18)!important;
  color:#c2410c!important;
  font-style:normal!important;
  font-size:10.5px!important;
  font-weight:1000!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
body[data-screen="inbox"] .inbox-needs_reply .inbox-card-head em{background:#eef6ff!important;border-color:rgba(37,99,235,.16)!important;color:var(--primary)!important}
body[data-screen="inbox"] .inbox-hot_watch .inbox-card-head em{background:#fff1f2!important;border-color:rgba(225,29,72,.16)!important;color:#be123c!important}
body[data-screen="inbox"] .inbox-card h3{
  margin:10px 0 2px!important;
  color:var(--text)!important;
  font-size:22px!important;
  line-height:1!important;
  letter-spacing:-.055em!important;
}
body[data-screen="inbox"] .inbox-card-head span{
  display:block!important;
  color:var(--muted)!important;
  font-size:13px!important;
  font-weight:850!important;
  line-height:1.25!important;
}
body[data-screen="inbox"] .inbox-position{
  display:inline-flex!important;
  align-items:center!important;
  margin-top:8px!important;
  padding:5px 8px!important;
  border-radius:999px!important;
  background:#f8fafc!important;
  border:1px solid var(--line)!important;
  color:#94a3b8!important;
  font-size:9.5px!important;
  font-weight:1000!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
body[data-screen="inbox"] .inbox-message{
  margin:0 0 10px!important;
  padding:12px!important;
  border:1px solid var(--line)!important;
  border-radius:20px!important;
  background:#fff!important;
}
body[data-screen="inbox"] .inbox-message small{
  display:block!important;
  margin:0 0 6px!important;
  color:var(--primary)!important;
  font-size:10px!important;
  font-weight:1000!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
body[data-screen="inbox"] .inbox-message p{
  margin:0!important;
  color:#1f2937!important;
  font-size:15px!important;
  line-height:1.38!important;
  font-weight:700!important;
}
body[data-screen="inbox"] .inbox-hint{
  margin:0 0 10px!important;
  padding:10px 12px!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#fff,#f5f9ff)!important;
  border:1px solid rgba(37,99,235,.12)!important;
  color:#334155!important;
  font-size:13.5px!important;
  line-height:1.32!important;
  font-weight:850!important;
}
body[data-screen="inbox"] .inbox-suggested{
  margin:0 0 10px!important;
  padding:12px!important;
  border:1px solid rgba(37,99,235,.16)!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,#f8fbff,#fff)!important;
}
body[data-screen="inbox"] .suggestion-topline{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin-bottom:8px!important;
}
body[data-screen="inbox"] .suggestion-topline small{
  color:var(--primary)!important;
  font-size:10px!important;
  font-weight:1000!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
body[data-screen="inbox"] .inbox-suggested p{
  margin:8px 0 0!important;
  color:#1f2937!important;
  font-size:15px!important;
  line-height:1.38!important;
  font-weight:750!important;
}
body[data-screen="inbox"] .copy-btn{
  appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  border:1px solid rgba(37,99,235,.18)!important;
  background:#fff!important;
  color:var(--primary)!important;
  font-size:12.5px!important;
  font-weight:1000!important;
}
body[data-screen="inbox"] .speed-actions.inbox-speed-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  margin:10px 0 0!important;
}
body[data-screen="inbox"] .speed-actions form{margin:0!important;min-width:0!important}
body[data-screen="inbox"] .speed-btn,
body[data-screen="inbox"] a.speed-btn{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:40px!important;
  padding:0 12px!important;
  border:1px solid rgba(37,99,235,.16)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--primary)!important;
  text-decoration:none!important;
  font-size:13px!important;
  font-weight:950!important;
  line-height:1.05!important;
  box-shadow:0 8px 16px rgba(15,23,42,.035)!important;
}
body[data-screen="inbox"] .speed-primary,
body[data-screen="inbox"] .speed-btn.speed-primary{
  background:linear-gradient(135deg,#1293f3,#2563eb)!important;
  color:#fff!important;
  border-color:rgba(37,99,235,.12)!important;
  box-shadow:0 12px 22px rgba(37,99,235,.16)!important;
}
body[data-screen="inbox"] .schedule-mini{
  display:grid!important;
  gap:5px!important;
  margin:0 0 8px!important;
  color:var(--muted)!important;
  font-size:10px!important;
  font-weight:1000!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
body[data-screen="inbox"] .schedule-mini select{
  min-height:38px!important;
  padding:0 10px!important;
  border-radius:14px!important;
  border:1px solid var(--line)!important;
  background:#fff!important;
  color:var(--text)!important;
  font-size:13px!important;
  font-weight:900!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
body[data-screen="inbox"] .inbox-open-link{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  margin-top:10px!important;
  border:1px solid var(--line)!important;
  border-radius:18px!important;
  background:#fff!important;
  color:var(--text)!important;
  text-decoration:none!important;
  font-size:13px!important;
  font-weight:950!important;
}
body[data-screen="inbox"] .inbox-done-note{
  margin:0 0 10px!important;
  padding:10px 12px!important;
  border-radius:18px!important;
  background:var(--success-soft)!important;
  color:#15803d!important;
  border:1px solid rgba(22,163,74,.14)!important;
  font-size:13px!important;
  font-weight:900!important;
}
body[data-screen="inbox"] .empty-inline{
  padding:16px!important;
  border:1px dashed rgba(148,163,184,.34)!important;
  border-radius:22px!important;
  background:rgba(255,255,255,.68)!important;
}
@media(max-width:520px){
  body[data-screen="inbox"] .section-title h2{font-size:30px!important}
  body[data-screen="inbox"] .inbox-brief{padding:11px 12px!important;border-radius:20px!important}
  body[data-screen="inbox"] .inbox-filter-bar{gap:6px!important;padding:7px!important}
  body[data-screen="inbox"] .inbox-filter{min-height:32px!important;padding:0 10px!important;font-size:11.5px!important}
  body[data-screen="inbox"] .inbox-card{padding:14px!important;border-radius:25px!important}
  body[data-screen="inbox"] .inbox-card h3{font-size:21px!important}
  body[data-screen="inbox"] .speed-actions.inbox-speed-actions{grid-template-columns:1fr 1fr!important}
}

/* Prospect IA v1.4.8m — Quick Reply Suggested Answer UX */
body[data-screen="inbox"] .inbox-suggested-answer{
  padding:10px 11px!important;
}
body[data-screen="inbox"] .inbox-ready-message{
  display:block!important;
  padding:11px 12px!important;
  border-radius:18px!important;
  background:linear-gradient(135deg, rgba(14,165,233,.10), rgba(37,99,235,.06))!important;
  border:1px solid rgba(37,99,235,.16)!important;
}
body[data-screen="inbox"] .inbox-ready-message span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:24px!important;
  padding:0 9px!important;
  margin:0 0 7px!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#2563eb,#06b6d4)!important;
  color:#fff!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.01em!important;
}
body[data-screen="inbox"] .inbox-ready-message p{
  margin:0!important;
  color:#0f172a!important;
  font-size:16px!important;
  line-height:1.32!important;
  font-weight:850!important;
  letter-spacing:-.015em!important;
}
body[data-screen="inbox"] .inbox-suggested-answer .copy-confirm{
  display:block!important;
  min-height:16px!important;
  margin-top:5px!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:850!important;
}

/* Prospect IA v1.4.8n — Inbox Copilot First UX */
body[data-screen="inbox"] .inbox-hint{display:none!important}
body[data-screen="inbox"] .inbox-suggested-answer{
  margin-top:10px!important;
  padding:10px!important;
  border-radius:22px!important;
  border-color:rgba(37,99,235,.13)!important;
  background:linear-gradient(180deg,#fff,rgba(239,246,255,.56))!important;
}
body[data-screen="inbox"] .suggestion-topline{
  margin-bottom:8px!important;
}
body[data-screen="inbox"] .suggestion-topline small{
  font-size:10.5px!important;
  letter-spacing:.18em!important;
}
body[data-screen="inbox"] .inbox-ready-message{
  padding:12px!important;
  border-radius:18px!important;
  background:rgba(239,246,255,.82)!important;
  border:1px solid rgba(37,99,235,.14)!important;
}
body[data-screen="inbox"] .inbox-ready-message span{
  margin-bottom:7px!important;
  font-size:10.5px!important;
  background:#2563eb!important;
}
body[data-screen="inbox"] .inbox-ready-message p{
  font-size:15.5px!important;
  line-height:1.36!important;
  font-weight:820!important;
}
body[data-screen="inbox"] .copy-btn{
  min-height:34px!important;
  padding:0 13px!important;
  font-size:13px!important;
}
body[data-screen="inbox"] .speed-actions.inbox-speed-actions{
  margin-top:10px!important;
  align-items:stretch!important;
}
body[data-screen="inbox"] .speed-actions.inbox-speed-actions form{
  gap:8px!important;
}
body[data-screen="inbox"] .speed-actions.inbox-speed-actions > a.speed-btn{
  min-height:42px!important;
  padding:0 12px!important;
  border-radius:16px!important;
  background:transparent!important;
  color:#2563eb!important;
  border:1px solid rgba(37,99,235,.15)!important;
  box-shadow:none!important;
  font-size:14px!important;
  font-weight:900!important;
}
body[data-screen="inbox"] .speed-primary,
body[data-screen="inbox"] .speed-btn.speed-primary{
  min-height:44px!important;
  border-radius:16px!important;
  font-size:14.5px!important;
}
body[data-screen="inbox"] .schedule-mini{
  min-height:42px!important;
  padding:7px 10px!important;
  border-radius:16px!important;
}
body[data-screen="inbox"] .inbox-open-link{
  min-height:38px!important;
  margin-top:9px!important;
  border-radius:16px!important;
  font-size:14px!important;
  font-weight:900!important;
}
@media(max-width:640px){
  body[data-screen="inbox"] .inbox-ready-message p{font-size:15px!important}
  body[data-screen="inbox"] .speed-actions.inbox-speed-actions{grid-template-columns:1fr!important}
  body[data-screen="inbox"] .speed-actions.inbox-speed-actions > a.speed-btn{min-height:38px!important}
}


/* Prospect IA v1.4.8o — Canonical Shell + Drawer Safe Area
   Causa corrigida: .app-topbar estava com z-index 1000 enquanto .app-menu usava z-index menor
   e começava em top:0; por isso o header cobria o topo do drawer. Este bloco substitui
   os remendos antigos de menu/topbar com uma regra única e explícita. */
:root{
  --pi-topbar-base-h:86px;
  --pi-topbar-offset:calc(var(--pi-topbar-base-h) + env(safe-area-inset-top));
}
.app-topbar{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  z-index:1000!important;
  min-height:var(--pi-topbar-offset)!important;
  padding:calc(env(safe-area-inset-top) + 10px) 16px 10px!important;
  background:rgba(255,255,255,.94)!important;
  border-bottom:1px solid rgba(226,232,240,.84)!important;
  box-shadow:0 10px 28px rgba(15,23,42,.035)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}
main.content,.content{
  padding-top:calc(var(--pi-topbar-offset) + 12px)!important;
}
.app-menu{
  position:fixed!important;
  top:var(--pi-topbar-offset)!important;
  left:0!important;
  right:0!important;
  bottom:auto!important;
  height:calc(100dvh - var(--pi-topbar-offset))!important;
  z-index:900!important;
  padding:0!important;
  background:rgba(15,23,42,.34)!important;
  backdrop-filter:blur(2px)!important;
  -webkit-backdrop-filter:blur(2px)!important;
}
.app-menu .menu-panel,.menu-panel{
  height:100%!important;
  max-height:100%!important;
  padding:18px 18px calc(24px + env(safe-area-inset-bottom))!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  scroll-padding-top:18px!important;
}
.menu-brand-card.premium-brand-card{
  margin-top:0!important;
}
@media(max-width:520px){
  :root{--pi-topbar-base-h:86px;}
  .app-topbar{padding-left:14px!important;padding-right:14px!important;}
  .app-topbar .topbar-logo-mark{width:48px!important;height:48px!important;flex-basis:48px!important;}
}
@media(min-width:980px){
  :root{--pi-topbar-base-h:78px;}
  .app-topbar{
    left:var(--sidebar-w,292px)!important;
    width:calc(100% - var(--sidebar-w,292px))!important;
    min-height:var(--pi-topbar-base-h)!important;
    padding:14px 32px 12px!important;
  }
  main.content,.content{
    padding-top:calc(var(--pi-topbar-base-h) + 18px)!important;
  }
  .app-menu{
    top:0!important;
    height:100dvh!important;
    width:var(--sidebar-w,292px)!important;
    right:auto!important;
    z-index:45!important;
    opacity:1!important;
    pointer-events:auto!important;
    background:transparent!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .app-menu .menu-panel,.menu-panel{
    transform:none!important;
    height:100dvh!important;
    max-height:100dvh!important;
    padding:22px 18px 18px!important;
  }
}


/* v1.4.8u — Create Lead Error Visibility */
.form-feedback{margin:0 0 12px;padding:12px 13px;border-radius:16px;font-size:13px;font-weight:850;line-height:1.35}
.form-feedback-error{color:#be123c;background:rgba(255,241,242,.96);border:1px solid rgba(225,29,72,.22)}
.lead-create-card[open] .form-feedback{animation:toastIn .2s ease-out}

/* v1.4.8y — Leads Canonical Cleanup
   Única fonte de layout para tela Leads.
   Regras oficiais:
   - Mobile: lista vertical, um card aberto por vez.
   - Desktop fechado: grid de cards, sem painel vazio.
   - Desktop aberto: master-detail real sem grid-row span / placeholder invisível.
   - Nada aqui usa min-height artificial para reservar espaço. */
body[data-screen="leads"] main.content{
  padding-top:calc(var(--pi-topbar-h,86px) + env(safe-area-inset-top) + 12px)!important;
  padding-left:14px!important;
  padding-right:14px!important;
  padding-bottom:calc(96px + env(safe-area-inset-bottom))!important;
}
body[data-screen="leads"] main.content > [data-screen-section="leads"].leads-clean-screen{
  display:block!important;
  width:100%!important;
  max-width:760px!important;
  margin:0 auto!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
}
.leads-clean-screen *{box-sizing:border-box}
body[data-screen="leads"] .leads-clean-hero{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 12px!important;
  padding:18px 4px 4px!important;
}
body[data-screen="leads"] .leads-clean-hero .eyebrow,
body[data-screen="leads"] .lead-search-label span,
body[data-screen="leads"] .lead-filter-row label span,
body[data-screen="leads"] .lead-clean-form label,
body[data-screen="leads"] .lead-box-title span{
  color:#64748b;
  font-size:9px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.13em;
  text-transform:uppercase;
}
body[data-screen="leads"] .leads-clean-hero .eyebrow{margin:0 0 5px;color:var(--primary)}
body[data-screen="leads"] .leads-clean-hero h1{
  margin:0;
  color:var(--text);
  font-size:38px;
  line-height:.96;
  letter-spacing:-.075em;
}
body[data-screen="leads"] .leads-clean-hero p:not(.eyebrow){
  margin:8px 0 0;
  max-width:430px;
  color:var(--muted);
  font-size:14px;
  line-height:1.35;
  font-weight:700;
}
body[data-screen="leads"] .lead-create-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--primary),#1d4ed8);
  color:#fff;
  text-decoration:none!important;
  font-weight:1000;
  font-size:13px;
  box-shadow:0 14px 26px rgba(37,99,235,.20);
  white-space:nowrap;
}
body[data-screen="leads"] .lead-create-card:not([open]){display:none!important}
body[data-screen="leads"] .lead-create-card,
body[data-screen="leads"] .lead-filter-card,
body[data-screen="leads"] .lead-card-clean,
body[data-screen="leads"] .lead-empty-card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(203,213,225,.78);
  box-shadow:0 12px 30px rgba(15,23,42,.048);
  border-radius:22px;
}
body[data-screen="leads"] .lead-create-card[open]{
  position:fixed!important;
  inset:0!important;
  z-index:950!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:calc(env(safe-area-inset-top) + 12px) 12px calc(env(safe-area-inset-bottom) + 12px)!important;
  background:rgba(15,23,42,.34)!important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
}
body[data-screen="leads"] .lead-create-card>summary{list-style:none;cursor:pointer}
body[data-screen="leads"] .lead-create-card>summary::-webkit-details-marker{display:none}
body[data-screen="leads"] .lead-create-card[open]>summary{display:none!important}
body[data-screen="leads"] .lead-create-card[open] .lead-clean-form{
  width:min(420px,100%);
  max-height:86dvh;
  overflow:auto;
  display:grid;
  gap:10px;
  padding:18px;
  border-radius:26px;
  background:#fff;
  border:1px solid rgba(226,232,240,.9);
  box-shadow:0 28px 70px rgba(15,23,42,.22);
}
body[data-screen="leads"] .lead-create-card[open] .lead-clean-form:before{
  content:'Novo lead';
  color:var(--text);
  font-size:26px;
  line-height:1;
  letter-spacing:-.07em;
  font-weight:1000;
  margin-bottom:2px;
}
body[data-screen="leads"] .lead-filter-card{
  display:grid;
  gap:8px;
  padding:10px;
  margin:0 0 10px;
}
body[data-screen="leads"] .lead-search-label,
body[data-screen="leads"] .lead-filter-row label,
body[data-screen="leads"] .lead-clean-form label{
  display:grid;
  gap:6px;
}
body[data-screen="leads"] .lead-filter-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body[data-screen="leads"] .lead-filter-card input[type="search"],
body[data-screen="leads"] .lead-filter-card select,
body[data-screen="leads"] .lead-clean-form input,
body[data-screen="leads"] .lead-clean-form select,
body[data-screen="leads"] .lead-clean-form textarea{
  width:100%;
  min-height:38px;
  padding:0 12px;
  border-radius:15px;
  border:1px solid rgba(203,213,225,.9);
  background:#fff;
  color:var(--text);
  font-weight:850;
  outline:none;
}
body[data-screen="leads"] .lead-clean-form textarea{min-height:64px;padding:12px;resize:vertical}
body[data-screen="leads"] .lead-filter-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:0;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
body[data-screen="leads"] .lead-filter-meta span{display:none}
body[data-screen="leads"] #leadClearFilters{
  display:none;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(203,213,225,.82);
  background:#fff;
  color:var(--muted);
  font-weight:900;
}
body[data-screen="leads"] #leadClearFilters.is-visible{display:inline-flex}
body[data-screen="leads"] .lead-list-clean{
  display:grid;
  gap:10px;
  align-items:start;
  min-height:0!important;
}
body[data-screen="leads"] .lead-card-clean{
  overflow:hidden;
  min-height:0!important;
}
body[data-screen="leads"] .lead-card-clean>summary{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  min-height:72px;
  padding:11px 12px;
  list-style:none;
  cursor:pointer;
}
body[data-screen="leads"] .lead-card-clean>summary::-webkit-details-marker{display:none}
body[data-screen="leads"] .lead-card-clean[open]>summary{border-bottom:0}
body[data-screen="leads"] .lead-avatar-clean{
  width:44px;
  height:44px;
  border-radius:15px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:1000;
  font-size:18px;
  background:linear-gradient(135deg,#2563eb,#06b6d4);
  box-shadow:0 12px 22px rgba(37,99,235,.18);
}
body[data-screen="leads"] .lead-summary-main{
  min-width:0;
  display:grid;
  gap:2px;
}
body[data-screen="leads"] .lead-summary-main b{
  color:var(--text);
  font-size:17px;
  line-height:1.02;
  letter-spacing:-.045em;
}
body[data-screen="leads"] .lead-summary-main small,
body[data-screen="leads"] .lead-summary-main em{
  color:var(--muted);
  font-size:11.5px;
  line-height:1.15;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body[data-screen="leads"] .lead-summary-main .lead-summary-last{display:none!important}
body[data-screen="leads"] .lead-next-clean{
  width:max-content;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-top:2px;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(37,99,235,.08);
  color:var(--primary);
  font-size:10px;
  line-height:1;
  font-style:normal;
  font-weight:1000;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body[data-screen="leads"] .lead-next-clean:before{content:'🎯';font-size:10px}
body[data-screen="leads"] .lead-status-clean{
  justify-self:end;
  min-height:24px;
  max-width:104px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border-radius:999px;
  font-size:9px;
  line-height:1;
  letter-spacing:.11em;
  text-transform:uppercase;
  font-weight:1000;
  white-space:nowrap;
}
body[data-screen="leads"] .lead-status-clean.is-action{color:#15803d;background:#ecfdf3;border:1px solid rgba(22,163,74,.18)}
body[data-screen="leads"] .lead-status-clean.is-waiting{color:#2563eb;background:#eff6ff;border:1px solid rgba(37,99,235,.16)}
body[data-screen="leads"] .lead-open-body{
  display:grid;
  gap:7px;
  padding:0 10px 10px;
  min-height:0!important;
}
body[data-screen="leads"] .lead-info-box,
body[data-screen="leads"] .lead-nested-panel,
body[data-screen="leads"] .lead-history-panel{
  border:1px solid rgba(226,232,240,.86);
  border-radius:17px;
  background:rgba(255,255,255,.92);
  box-shadow:none;
  overflow:hidden;
}
body[data-screen="leads"] .lead-recommendation-strip{
  display:grid;
  gap:6px;
  padding:9px 11px;
  border-color:rgba(37,99,235,.18);
  background:linear-gradient(135deg,rgba(239,246,255,.86),rgba(255,255,255,.98));
}
body[data-screen="leads"] .lead-box-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
body[data-screen="leads"] .lead-box-title span{color:#2563eb}
body[data-screen="leads"] .lead-box-title button{
  min-height:26px;
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(37,99,235,.18);
  background:#fff;
  color:#2563eb;
  font-size:10px;
  font-weight:1000;
}
body[data-screen="leads"] .lead-info-box p{
  margin:0;
  color:var(--text);
  font-size:12.5px;
  line-height:1.28;
  font-weight:850;
}
body[data-screen="leads"] .lead-action-form .btn,
body[data-screen="leads"] .lead-clean-form .btn{
  width:100%;
  min-height:42px;
  border-radius:16px;
  font-size:13px;
}
body[data-screen="leads"] .lead-nested-panel>summary,
body[data-screen="leads"] .lead-history-panel>summary{
  min-height:38px;
  padding:0 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  list-style:none;
  cursor:pointer;
  color:var(--text);
  font-size:13px;
  font-weight:1000;
}
body[data-screen="leads"] .lead-nested-panel>summary::-webkit-details-marker,
body[data-screen="leads"] .lead-history-panel>summary::-webkit-details-marker{display:none}
body[data-screen="leads"] .lead-nested-panel>summary:after,
body[data-screen="leads"] .lead-history-panel>summary:after{content:'+';color:var(--primary);font-size:18px;font-weight:1000}
body[data-screen="leads"] .lead-nested-panel[open]>summary:after,
body[data-screen="leads"] .lead-history-panel[open]>summary:after{content:'−'}
body[data-screen="leads"] .lead-clean-form{display:grid;gap:8px;padding:0 10px 10px}
body[data-screen="leads"] .lead-chat-thread{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:8px 10px 10px;
  border-top:1px solid rgba(226,232,240,.72);
  background:linear-gradient(180deg,rgba(248,250,252,.32),rgba(255,255,255,.98));
}
body[data-screen="leads"] .lead-chat-row{display:flex;width:100%;align-items:flex-end}
body[data-screen="leads"] .lead-chat-row--user{justify-content:flex-end}
body[data-screen="leads"] .lead-chat-row--lead{justify-content:flex-start}
body[data-screen="leads"] .lead-chat-row--system{justify-content:center}
body[data-screen="leads"] .lead-chat-bubble{
  max-width:80%;
  padding:6px 8px;
  border-radius:16px;
  border:1px solid rgba(226,232,240,.86);
  background:#fff;
  color:#334155;
  font-size:11px;
  line-height:1.25;
  font-weight:700;
  box-shadow:none;
}
body[data-screen="leads"] .lead-chat-row--user .lead-chat-bubble{background:#eaf3ff;border-color:rgba(37,99,235,.20);border-bottom-right-radius:5px}
body[data-screen="leads"] .lead-chat-row--lead .lead-chat-bubble{background:#fff;border-bottom-left-radius:5px}
body[data-screen="leads"] .lead-chat-row--system .lead-chat-bubble{max-width:86%;padding:5px 9px;border-style:dashed;border-radius:999px;background:rgba(248,250,252,.82);text-align:center;font-size:10px;color:#475569}
body[data-screen="leads"] .lead-chat-actor{display:none!important}
body[data-screen="leads"] .lead-chat-message{display:block;word-break:break-word}
body[data-screen="leads"] .lead-empty-card{padding:16px;color:var(--muted);font-weight:850}
body[data-screen="leads"] #leadsFilterEmpty[hidden]{display:none!important}

@media(max-width:520px){
  body[data-screen="leads"] main.content{padding-left:12px!important;padding-right:12px!important}
  body[data-screen="leads"] .leads-clean-hero h1{font-size:36px}
  body[data-screen="leads"] .leads-clean-hero p:not(.eyebrow){max-width:245px}
  body[data-screen="leads"] .lead-card-clean>summary{grid-template-columns:42px minmax(0,1fr) auto;min-height:70px;padding:10px}
  body[data-screen="leads"] .lead-status-clean{font-size:8.5px;max-width:96px;padding:0 9px}
  body[data-screen="leads"] .lead-open-body{padding:0 8px 8px;gap:6px}
}

@media(min-width:1180px){
  body[data-screen="leads"] main.content,
  body[data-screen="leads"] .content{
    max-width:none!important;
    padding-left:44px!important;
    padding-right:44px!important;
    padding-bottom:48px!important;
  }
  body[data-screen="leads"] main.content > [data-screen-section="leads"].leads-clean-screen{
    max-width:1220px!important;
    width:100%!important;
    margin:0 auto!important;
  }
  body[data-screen="leads"] .leads-clean-hero{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:end!important;
    max-width:1220px!important;
    padding:18px 2px 8px!important;
    margin-bottom:12px!important;
  }
  body[data-screen="leads"] .leads-clean-hero h1{font-size:42px!important}
  body[data-screen="leads"] .leads-clean-hero p:not(.eyebrow){max-width:560px!important;font-size:14px!important}
  body[data-screen="leads"] .lead-create-pill{min-height:48px!important;padding:0 20px!important;border-radius:22px!important;font-size:14px!important}
  body[data-screen="leads"] .lead-filter-card{max-width:1220px!important;padding:16px!important;margin-bottom:16px!important;border-radius:26px!important}
  body[data-screen="leads"] .lead-filter-card input[type="search"]{min-height:48px!important;font-size:14px!important;border-radius:18px!important}
  body[data-screen="leads"] .lead-filter-row{grid-template-columns:1fr 1fr!important;gap:12px!important}
  body[data-screen="leads"] .lead-filter-card select{min-height:42px!important;font-size:13px!important;border-radius:16px!important}
  body[data-screen="leads"] .lead-list-clean{
    display:grid!important;
    align-items:start!important;
    gap:14px 18px!important;
    max-width:1220px!important;
    min-height:0!important;
  }
  body[data-screen="leads"] .lead-list-clean:not(.has-open){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-screen="leads"] .lead-list-clean:not(.has-open) .lead-card-clean{grid-column:auto!important;grid-row:auto!important;width:100%!important;border-radius:24px!important}
  body[data-screen="leads"] .lead-list-clean:not(.has-open) .lead-card-clean>summary{grid-template-columns:52px minmax(0,1fr) auto!important;min-height:86px!important;padding:16px!important}
  body[data-screen="leads"] .lead-list-clean:not(.has-open) .lead-status-clean{grid-column:3!important;justify-self:end!important;align-self:center!important}

  body[data-screen="leads"] .lead-list-clean.has-open{grid-template-columns:320px minmax(0,1fr)!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-card-clean{grid-column:1!important;grid-row:auto!important;width:100%!important;border-radius:22px!important;align-self:start!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-card-clean:not([open])>summary{grid-template-columns:46px minmax(0,1fr)!important;min-height:72px!important;padding:12px!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-card-clean:not([open]) .lead-status-clean{grid-column:2!important;justify-self:start!important;margin-top:4px!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-card-clean.is-active-lead:not([open]){border-color:rgba(37,99,235,.28)!important;background:#f8fbff!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-card-clean[open]{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    max-width:none!important;
    border-radius:28px!important;
    box-shadow:0 22px 55px rgba(37,99,235,.10)!important;
    z-index:1!important;
    align-self:start!important;
  }
  body[data-screen="leads"] .lead-list-clean.has-open .lead-card-clean[open]~.lead-card-clean{grid-column:1!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-card-clean[open]>summary{grid-template-columns:56px minmax(0,1fr) auto!important;min-height:96px!important;padding:20px 22px 14px!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-card-clean[open] .lead-avatar-clean{width:56px!important;height:56px!important;border-radius:18px!important;font-size:22px!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-card-clean[open] .lead-summary-main b{font-size:22px!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-card-clean[open] .lead-summary-main small{font-size:14px!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-card-clean[open] .lead-next-clean{font-size:12px!important;padding:5px 10px!important;margin-top:6px!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-card-clean[open] .lead-status-clean{grid-column:3!important;justify-self:end!important;align-self:center!important;min-height:34px!important;max-width:128px!important;padding:0 16px!important;font-size:10px!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-open-body{padding:0 22px 22px!important;gap:10px!important;min-height:0!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-recommendation-strip{padding:16px 18px!important;border-radius:22px!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-recommendation-strip .lead-box-title span{font-size:10px!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-recommendation-strip p{font-size:17px!important;line-height:1.34!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-action-form .btn,
  body[data-screen="leads"] .lead-list-clean.has-open .lead-clean-form .btn{min-height:48px!important;border-radius:20px!important;font-size:15px!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-nested-panel,
  body[data-screen="leads"] .lead-list-clean.has-open .lead-history-panel{border-radius:20px!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-nested-panel>summary,
  body[data-screen="leads"] .lead-list-clean.has-open .lead-history-panel>summary{min-height:48px!important;padding:0 16px!important;font-size:14px!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-chat-thread{padding:14px 16px 16px!important;gap:7px!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-chat-bubble{max-width:72%!important;padding:9px 12px!important;font-size:13px!important;line-height:1.32!important}
  body[data-screen="leads"] .lead-list-clean.has-open .lead-chat-row--system .lead-chat-bubble{max-width:78%!important;font-size:12px!important}
  body[data-screen="leads"] .lead-empty-card,
  body[data-screen="leads"] #leadsFilterEmpty{grid-column:1 / -1!important}
}



/* v1.4.8z — Desktop Width Containment Fix
   Correção canônica de largura para Leads desktop.
   Causa real no v1.4.8y: main.content mantinha max-width/margin herdados e a tela Leads
   adicionava max-width de 1220px + padding lateral, ultrapassando a área útil após a sidebar.
   Regra: nenhum wrapper de Leads pode usar 100vw ou largura fixa sem descontar sidebar/paddings. */
@media(min-width:1180px){
  body[data-screen="leads"]{
    overflow-x:hidden!important;
  }
  body[data-screen="leads"] main.content,
  body[data-screen="leads"] .content{
    --leads-desktop-gutter: clamp(24px, 3vw, 44px);
    width:calc(100vw - var(--sidebar-w,292px))!important;
    max-width:calc(100vw - var(--sidebar-w,292px))!important;
    min-width:0!important;
    margin-left:var(--sidebar-w,292px)!important;
    margin-right:0!important;
    padding-left:var(--leads-desktop-gutter)!important;
    padding-right:var(--leads-desktop-gutter)!important;
    overflow-x:hidden!important;
  }
  body[data-screen="leads"] main.content > [data-screen-section="leads"].leads-clean-screen{
    width:100%!important;
    max-width:min(1220px, 100%)!important;
    min-width:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
    overflow-x:hidden!important;
  }
  body[data-screen="leads"] .leads-clean-hero,
  body[data-screen="leads"] .lead-filter-card,
  body[data-screen="leads"] .lead-list-clean{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  body[data-screen="leads"] .lead-list-clean:not(.has-open){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body[data-screen="leads"] .lead-list-clean.has-open{
    grid-template-columns:minmax(280px,320px) minmax(0,1fr)!important;
  }
  body[data-screen="leads"] .lead-card-clean,
  body[data-screen="leads"] .lead-card-clean>summary,
  body[data-screen="leads"] .lead-open-body,
  body[data-screen="leads"] .lead-recommendation-strip,
  body[data-screen="leads"] .lead-filter-card input,
  body[data-screen="leads"] .lead-filter-card select{
    min-width:0!important;
    max-width:100%!important;
  }
}
@media(min-width:1180px) and (max-width:1380px){
  body[data-screen="leads"] .lead-list-clean.has-open{
    grid-template-columns:minmax(250px,300px) minmax(0,1fr)!important;
  }
}

/* v1.5.0d — Sales Engine v2 canonical human-in-the-loop panel */
.lead-ai-panel {
  border-color: rgba(37, 99, 235, .18);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248, 251, 255, .96));
  box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
}
.lead-ai-panel .lead-box-title small {
  color: #53637a;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.lead-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.lead-ai-grid span {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 16px;
  background: rgba(248, 250, 252, .92);
  color: #111827;
  font-size: 13px;
  line-height: 1.3;
}
.lead-ai-grid b {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.lead-ai-objective {
  margin: 8px 0 12px;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
.lead-ai-intent-form {
  display: grid;
  gap: 10px;
}
.lead-ai-intent-form label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
}
.lead-ai-intent-form select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, .18);
  background: #f8fafc;
  color: #0f172a;
  padding: 0 12px;
  font-weight: 800;
}
.lead-ai-intent-form .btn-secondary {
  background: #ffffff;
  border-color: rgba(37, 99, 235, .18);
  color: #1d4ed8;
}
@media (max-width: 520px) {
  .lead-ai-grid { grid-template-columns: 1fr; }
}

/* v1.5.0f — Copiloto Comercial UX Premium */
.lead-ai-panel {
  padding: 14px 14px 16px;
  border-color: rgba(37, 99, 235, .14);
  background: linear-gradient(145deg, rgba(255,255,255,.99), rgba(248,251,255,.98));
}
.lead-ai-panel .lead-ai-title span {
  color: #0f172a;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lead-ai-panel .lead-ai-title small {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .10);
  color: #047857;
  font-size: 9px;
  letter-spacing: .08em;
}
.lead-ai-grid {
  gap: 9px;
  margin: 11px 0 10px;
}
.lead-ai-grid span {
  padding: 11px 12px;
  border-color: rgba(148, 163, 184, .24);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
}
.lead-ai-objective {
  display: grid;
  gap: 3px;
  margin: 10px 0 12px;
  padding: 12px 13px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 16px;
  background: rgba(239, 246, 255, .62);
  color: #334155;
}
.lead-ai-objective b {
  color: #2563eb;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lead-ai-objective span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.lead-ai-intent-form {
  padding-top: 2px;
}
.lead-ai-intent-form label {
  color: #334155;
}
.lead-ai-intent-form .btn-primary {
  min-height: 46px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 1000;
}
.lead-action-form .lead-send-secondary {
  background: #ffffff!important;
  color: #1d4ed8!important;
  border-color: rgba(37, 99, 235, .18)!important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .06)!important;
}
.lead-ai-reprocess-form.is-quiet-fallback {
  margin: 8px 0 10px;
}
.lead-ai-reprocess-form.is-quiet-fallback .btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
}
@media (min-width: 980px) {
  body[data-screen="leads"] .lead-list-clean.has-open .lead-ai-panel {
    padding: 16px 18px 18px!important;
    border-radius: 22px!important;
  }
  body[data-screen="leads"] .lead-list-clean.has-open .lead-ai-intent-form .btn-primary {
    min-height: 48px!important;
    border-radius: 18px!important;
    font-size: 15px!important;
  }
}

/* v1.5.0f4 — Templates por projeto e etapa */
body[data-screen="templates"] .screen-section{max-width:980px;margin:0 auto}
body[data-screen="templates"] .template-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:12px}
body[data-screen="templates"] .template-conflict-details{margin:0 0 14px;border:1px solid rgba(245,158,11,.30);background:rgba(255,251,235,.86);border-radius:20px;overflow:hidden}
body[data-screen="templates"] .template-conflict-details>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none;padding:13px 15px;font-weight:950;color:#7c2d12}
body[data-screen="templates"] .template-conflict-details>summary::-webkit-details-marker{display:none}
body[data-screen="templates"] .template-conflict-details>summary span{font-size:12px;color:#b45309;font-weight:950}
body[data-screen="templates"] .template-conflict-list{display:grid;gap:8px;padding:0 14px 14px}
body[data-screen="templates"] .template-conflict-list div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.62);border:1px solid rgba(245,158,11,.14)}
body[data-screen="templates"] .template-conflict-list b{font-size:13px;color:#111827}.template-conflict-list span{font-size:12px;color:#64748b}.template-conflict-list em{grid-row:1/3;grid-column:2;font-style:normal;font-size:11px;font-weight:1000;color:#b45309;align-self:center;white-space:nowrap}
body[data-screen="templates"] .template-filter-bar{margin:12px 0 14px}
body[data-screen="templates"] .template-library-shell{margin-top:18px;display:grid;gap:12px}
body[data-screen="templates"] .template-library-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border:1px solid var(--line);background:linear-gradient(180deg,#fff,rgba(248,250,252,.84));border-radius:22px;box-shadow:0 10px 26px rgba(15,23,42,.035)}
body[data-screen="templates"] .template-library-head b{display:block;font-size:16px;letter-spacing:-.035em}.template-library-head span{display:block;margin-top:3px;color:#64748b;font-size:12px;font-weight:800}.template-library-head em{font-style:normal;border-radius:999px;background:#eff6ff;color:#1d4ed8;border:1px solid rgba(37,99,235,.14);padding:7px 10px;font-size:11px;font-weight:1000;white-space:nowrap}
body[data-screen="templates"] .template-project-list{display:grid;gap:12px}
body[data-screen="templates"] .template-project-group{border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.045);overflow:hidden}
body[data-screen="templates"] .template-project-group>summary{cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;list-style:none;padding:16px 18px;background:linear-gradient(135deg,#ffffff,#f8fbff)}
body[data-screen="templates"] .template-project-group>summary::-webkit-details-marker{display:none}
body[data-screen="templates"] .template-project-group>summary b{font-size:18px;letter-spacing:-.045em}.template-project-group>summary small{display:block;margin-top:3px;color:#64748b;font-size:12px;font-weight:850}.template-project-group>summary em{font-style:normal;border-radius:999px;padding:8px 10px;background:#ecfdf5;color:#15803d;border:1px solid rgba(22,163,74,.16);font-size:11px;font-weight:1000;white-space:nowrap}
body[data-screen="templates"] .template-stage-list{display:grid;gap:10px;padding:0 14px 14px}
body[data-screen="templates"] .template-stage-group{border:1px solid rgba(148,163,184,.22);border-radius:19px;background:#fbfdff;overflow:hidden}
body[data-screen="templates"] .template-stage-group>summary{cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;list-style:none;padding:13px 14px}
body[data-screen="templates"] .template-stage-group>summary::-webkit-details-marker{display:none}
body[data-screen="templates"] .template-stage-group>summary b{font-size:14px}.template-stage-group>summary small{display:block;margin-top:2px;color:#64748b;font-size:11px;font-weight:850}.template-stage-group>summary em{font-style:normal;color:#2563eb;font-size:11px;font-weight:1000;white-space:nowrap}
body[data-screen="templates"] .template-compact-list{display:grid;gap:8px;padding:0 10px 10px}
body[data-screen="templates"] .template-compact-card{border:1px solid rgba(148,163,184,.22);border-radius:16px;background:#fff;overflow:hidden}
body[data-screen="templates"] .template-compact-card>summary{cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;list-style:none;padding:12px 13px}
body[data-screen="templates"] .template-compact-card>summary::-webkit-details-marker{display:none}
body[data-screen="templates"] .template-compact-card>summary b{display:block;font-size:13px;letter-spacing:-.02em}.template-compact-card>summary small{display:block;margin-top:4px;color:#475569;font-size:12px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.template-compact-card>summary em{font-style:normal;border-radius:999px;padding:6px 9px;background:#dcfce7;color:#15803d;border:1px solid rgba(22,163,74,.14);font-size:10px;font-weight:1000;text-transform:uppercase}.template-compact-card.is-muted>summary em{background:#f1f5f9;color:#64748b;border-color:#e2e8f0}
body[data-screen="templates"] .template-compact-body{border-top:1px solid rgba(148,163,184,.18);padding:12px 13px 13px;background:#fff}.template-compact-body p{margin:0 0 11px;color:#334155;font-size:13px;line-height:1.52}.template-compact-body .card-actions{margin-top:12px}
body[data-screen="templates"] .empty-state{padding:18px;border-radius:22px;background:#fff;border:1px solid var(--line)}
@media(max-width:720px){body[data-screen="templates"] .template-kpi-grid{grid-template-columns:1fr}body[data-screen="templates"] .template-library-head{align-items:flex-start;flex-direction:column}body[data-screen="templates"] .template-conflict-list div{grid-template-columns:1fr}.template-conflict-list em{grid-row:auto;grid-column:auto}body[data-screen="templates"] .template-project-group>summary,body[data-screen="templates"] .template-stage-group>summary,body[data-screen="templates"] .template-compact-card>summary{grid-template-columns:1fr}.template-compact-card>summary small{white-space:normal}}

/* v1.5.0f5 — Templates Library Polish */
body[data-screen="templates"] .template-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:10px 0 12px}
body[data-screen="templates"] .template-audit-card{min-height:104px;padding:16px;border-radius:22px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 12px 30px rgba(15,23,42,.045)}
body[data-screen="templates"] .template-audit-card.has-warning{background:linear-gradient(180deg,#fff7ed,#fffbeb);border-color:rgba(245,158,11,.32)}
body[data-screen="templates"] .template-conflict-details{margin:8px 0 12px;border-radius:18px;background:#fff7ed;border-color:rgba(245,158,11,.28)}
body[data-screen="templates"] .template-conflict-details>summary{min-height:48px;padding:12px 15px}
body[data-screen="templates"] .template-filter-premium{display:grid;grid-template-columns:minmax(260px,1fr) minmax(190px,260px) auto auto;align-items:end;gap:12px;padding:14px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.82);box-shadow:0 12px 28px rgba(15,23,42,.035)}
body[data-screen="templates"] .template-filter-premium label{display:grid;gap:6px;margin:0;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
body[data-screen="templates"] .template-filter-premium input,
body[data-screen="templates"] .template-filter-premium select{width:100%;height:44px;border-radius:14px;border:1px solid rgba(148,163,184,.34);background:#fff;padding:0 13px;color:#0f172a;font-weight:850;outline:none}
body[data-screen="templates"] .template-filter-premium input:focus,
body[data-screen="templates"] .template-filter-premium select:focus{border-color:rgba(37,99,235,.42);box-shadow:0 0 0 4px rgba(37,99,235,.08)}
body[data-screen="templates"] .template-search-count{height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#eff6ff;color:#1d4ed8;border:1px solid rgba(37,99,235,.13);padding:0 14px;font-size:12px;font-weight:1000;white-space:nowrap}
body[data-screen="templates"] .template-library-head{margin-top:6px}
body[data-screen="templates"] .template-project-group>summary{grid-template-columns:44px minmax(0,1fr) auto;padding:16px;transition:background .18s ease, transform .18s ease}
body[data-screen="templates"] .template-project-group>summary:hover{background:linear-gradient(135deg,#f8fbff,#eef6ff)}
body[data-screen="templates"] .template-project-avatar{width:44px;height:44px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#1d9bf0,#2557e8);color:#fff;font-size:17px;font-weight:1000;box-shadow:0 12px 22px rgba(37,99,235,.18)}
body[data-screen="templates"] .template-project-copy b{font-size:17px;letter-spacing:-.04em}.template-project-copy small{display:block;margin-top:4px;color:#64748b;font-weight:850}
body[data-screen="templates"] .template-project-meta{display:inline-flex;align-items:center;gap:10px}.template-project-meta i{font-style:normal;width:28px;height:28px;border-radius:999px;display:grid;place-items:center;border:1px solid rgba(148,163,184,.22);color:#64748b;font-size:20px;line-height:1;transition:transform .18s ease}.template-project-group[open] .template-project-meta i{transform:rotate(90deg)}
body[data-screen="templates"] .template-stage-list{padding:0 16px 16px}.template-stage-group{box-shadow:0 8px 18px rgba(15,23,42,.025)}
body[data-screen="templates"] .template-compact-card[hidden],body[data-screen="templates"] .template-stage-group[hidden],body[data-screen="templates"] .template-project-group[hidden]{display:none!important}
body[data-screen="templates"] #templateSearchEmpty{margin:0}
@media(max-width:900px){body[data-screen="templates"] .template-kpi-grid{grid-template-columns:1fr}body[data-screen="templates"] .template-filter-premium{grid-template-columns:1fr}.template-search-count{justify-content:flex-start}}

/* v1.5.0f6 — Template Conflict Resolver */
.template-conflict-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  margin:10px 0 12px;
  border:1px solid rgba(180,83,9,.18);
  border-radius:16px;
  background:rgba(255,251,235,.76);
}
.template-conflict-actions form{margin:0;}
.template-conflict-actions small{color:#92400e;font-weight:700;line-height:1.35;}
@media (max-width: 760px){
  .template-conflict-actions{align-items:stretch;flex-direction:column;}
  .template-conflict-actions .btn{width:100%;}
}

/* v1.5.0f7 — Templates Delete + Bulk Actions */
body[data-screen="templates"] .template-bulk-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,240px) auto;align-items:center;gap:12px;padding:13px 14px;border:1px solid rgba(37,99,235,.14);border-radius:20px;background:linear-gradient(135deg,#f8fbff,#ffffff);box-shadow:0 10px 24px rgba(15,23,42,.035)}
body[data-screen="templates"] .template-bulk-bar b{display:block;font-size:13px;letter-spacing:-.02em}body[data-screen="templates"] .template-bulk-bar span{display:block;margin-top:2px;color:#64748b;font-size:11px;font-weight:850}body[data-screen="templates"] .template-bulk-bar select{height:42px;border-radius:14px;border:1px solid rgba(148,163,184,.32);background:#fff;padding:0 12px;font-weight:850;color:#0f172a}
body[data-screen="templates"] .template-select-check{width:32px;height:32px;border-radius:12px;display:grid;place-items:center;background:#f8fafc;border:1px solid rgba(148,163,184,.24);cursor:pointer}body[data-screen="templates"] .template-select-check input{width:16px;height:16px;accent-color:#2563eb;cursor:pointer}
body[data-screen="templates"] .template-compact-card>summary{grid-template-columns:32px minmax(0,1fr) auto}body[data-screen="templates"] .template-card-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}body[data-screen="templates"] .template-card-actions form{margin:0}.btn.btn-danger{background:#fff1f2;color:#be123c;border:1px solid rgba(225,29,72,.18);box-shadow:none}.btn.btn-danger:hover{background:#ffe4e6;color:#9f1239}
body[data-screen="templates"] .form-panel{border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 14px 32px rgba(15,23,42,.04);padding:0;margin:14px 0 18px;overflow:hidden}body[data-screen="templates"] .form-panel>summary{padding:16px 18px;cursor:pointer;font-weight:1000;letter-spacing:-.02em;background:linear-gradient(135deg,#fff,#f8fbff)}body[data-screen="templates"] .form-panel .stack-form{display:grid;gap:14px;padding:18px;border-top:1px solid rgba(148,163,184,.18)}body[data-screen="templates"] .form-panel label{display:grid;gap:6px;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.07em;color:#64748b}body[data-screen="templates"] .form-panel input,body[data-screen="templates"] .form-panel select,body[data-screen="templates"] .form-panel textarea{width:100%;border-radius:15px;border:1px solid rgba(148,163,184,.34);background:#fff;padding:12px 13px;color:#0f172a;font-size:14px;font-weight:800;text-transform:none;letter-spacing:0;outline:none}body[data-screen="templates"] .form-panel textarea{min-height:140px;line-height:1.5;resize:vertical}body[data-screen="templates"] .form-panel input:focus,body[data-screen="templates"] .form-panel select:focus,body[data-screen="templates"] .form-panel textarea:focus{border-color:rgba(37,99,235,.42);box-shadow:0 0 0 4px rgba(37,99,235,.08)}body[data-screen="templates"] .check-row{display:flex!important;align-items:center;gap:9px;text-transform:none!important;letter-spacing:0!important;color:#0f172a!important;font-size:13px!important}body[data-screen="templates"] .check-row input{width:18px!important;height:18px!important;padding:0!important;accent-color:#2563eb}body[data-screen="templates"] .form-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:760px){body[data-screen="templates"] .template-bulk-bar{grid-template-columns:1fr}body[data-screen="templates"] .template-card-actions{display:grid;grid-template-columns:1fr}body[data-screen="templates"] .template-card-actions .btn,body[data-screen="templates"] .template-card-actions form,body[data-screen="templates"] .template-card-actions button{width:100%}body[data-screen="templates"] .template-compact-card>summary{grid-template-columns:28px minmax(0,1fr);align-items:start}body[data-screen="templates"] .template-compact-card>summary em{grid-column:2}}

/* v1.5.0f8 — Canonical template source indicator */
.lead-template-source{display:inline-flex;align-items:center;gap:.35rem;margin:.35rem 0 .15rem;padding:.28rem .55rem;border-radius:999px;font-size:.72rem;font-weight:800;letter-spacing:.01em;border:1px solid rgba(37,99,235,.16);background:#eff6ff;color:#1d4ed8}
.lead-template-source.is-missing{border-color:rgba(245,158,11,.25);background:#fffbeb;color:#92400e}

/* v1.5.0f10 — Lead Recommendation UX Refinement */
body[data-screen="leads"] .lead-last-sent-card{
  display:grid;
  gap:7px;
  padding:10px 12px;
  border-color:rgba(37,99,235,.14);
  background:linear-gradient(135deg,rgba(248,250,252,.96),rgba(255,255,255,.98));
}
body[data-screen="leads"] .lead-last-sent-card .lead-box-title span{
  color:#0f172a;
}
body[data-screen="leads"] .lead-last-sent-card .lead-box-title small{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(37,99,235,.14);
  background:#eff6ff;
  color:#1d4ed8;
  font-size:10px;
  font-weight:900;
  letter-spacing:.01em;
}
body[data-screen="leads"] .lead-last-sent-card p{
  color:#334155;
  font-weight:750;
}
body[data-screen="leads"] .lead-recommendation-strip.is-next-recommendation .lead-box-title span::before{
  content:'⏳ ';
}
body[data-screen="leads"] .lead-recommendation-strip.is-next-message .lead-box-title span::before{
  content:'✉️ ';
}
body[data-screen="leads"] .lead-recommendation-strip.is-next-recommendation p{
  color:#0f172a;
}

/* v1.5.0f11 — Contextual Intent Confirmation */
body[data-screen="leads"] .lead-ai-state-box{
  margin-top:12px;
  padding:14px 16px;
  border:1px solid rgba(37,99,235,.16);
  border-radius:18px;
  background:linear-gradient(180deg,#f8fbff 0%,#f3f7ff 100%);
  color:#0f172a;
  display:flex;
  flex-direction:column;
  gap:5px;
}
body[data-screen="leads"] .lead-ai-state-box b{
  font-size:13px;
  letter-spacing:.01em;
}
body[data-screen="leads"] .lead-ai-state-box span,
body[data-screen="leads"] .lead-ai-state-box small{
  color:#52627a;
  font-size:12px;
  line-height:1.45;
}
body[data-screen="leads"] .lead-ai-state-box.is-waiting-lead{
  border-color:rgba(14,165,233,.2);
  background:linear-gradient(180deg,#f7fbff 0%,#eef7ff 100%);
}

/* v1.5.0f12 — Canonical Pending Queue */
.pending-reason{margin:10px 0 0;color:#6b7280;font-size:.88rem;line-height:1.35}
.pending-resolve-form{margin-left:auto;display:flex;align-items:flex-start}.btn-mini{padding:7px 10px;font-size:.78rem;border-radius:999px}.inbox-waiting_lead{border-color:rgba(30,64,175,.12)}.inbox-card.inbox-waiting_lead .inbox-card-head em{background:rgba(30,64,175,.08);color:#1e40af}.inbox-card.inbox-followup_due .pending-reason{color:#92400e}.inbox-card.inbox-needs_reply .pending-reason{color:#065f46}

/* Prospect IA v1.5.0f13 — Inbox Queue UX Premium
   Polish visual/operacional da Inbox sem alterar a fila canônica. */
body[data-screen="inbox"] main.content > [data-screen-section="inbox"]{
  max-width:min(1080px, calc(100vw - var(--sidebar-w,292px) - 72px))!important;
}
body[data-screen="inbox"] .section-title{margin-bottom:16px!important}
body[data-screen="inbox"] .inbox-brief{
  min-height:58px!important;
  padding:14px 18px!important;
  border-radius:24px!important;
}
body[data-screen="inbox"] .inbox-batch-strip{
  padding:0 2px!important;
  margin:4px 0 12px!important;
}
body[data-screen="inbox"] .inbox-filter-bar{
  margin-bottom:16px!important;
  padding:10px!important;
  border-radius:24px!important;
}
body[data-screen="inbox"] .inbox-list{gap:16px!important}
body[data-screen="inbox"] .inbox-card{
  padding:18px!important;
  border-radius:30px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;
  box-shadow:0 18px 44px rgba(15,23,42,.065)!important;
}
body[data-screen="inbox"] .inbox-card-head-premium{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding-bottom:14px!important;
  margin-bottom:12px!important;
  border-bottom:1px solid rgba(226,232,240,.76)!important;
}
body[data-screen="inbox"] .inbox-lead-identity{
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr)!important;
  align-items:center!important;
  gap:14px!important;
  min-width:0!important;
}
body[data-screen="inbox"] .inbox-avatar{
  width:56px!important;
  height:56px!important;
  border-radius:18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#fff!important;
  font-size:24px!important;
  font-weight:1000!important;
  background:linear-gradient(135deg,#0ea5e9,#2563eb)!important;
  box-shadow:0 14px 26px rgba(37,99,235,.18)!important;
}
body[data-screen="inbox"] .inbox-top-row{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:0 0 6px!important;
}
body[data-screen="inbox"] .inbox-card h3{
  margin:0 0 2px!important;
  font-size:24px!important;
  letter-spacing:-.06em!important;
}
body[data-screen="inbox"] .inbox-position{
  margin:0!important;
  background:#fef2f2!important;
  border-color:rgba(220,38,38,.11)!important;
  color:#b91c1c!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
  font-size:11px!important;
}
body[data-screen="inbox"] .inbox-followup_due .inbox-position,
body[data-screen="inbox"] .inbox-waiting_lead .inbox-position{
  background:#fff7ed!important;
  border-color:rgba(249,115,22,.15)!important;
  color:#c2410c!important;
}
body[data-screen="inbox"] .inbox-resolve-btn{
  min-height:34px!important;
  padding:0 14px!important;
  border-radius:999px!important;
  background:#f8fafc!important;
  border:1px solid rgba(226,232,240,.95)!important;
  color:#475569!important;
  font-weight:950!important;
}
body[data-screen="inbox"] .pending-reason{
  margin:0 0 12px!important;
  padding:11px 13px!important;
  border-radius:18px!important;
  background:#f8fafc!important;
  color:#334155!important;
  border:1px solid rgba(226,232,240,.8)!important;
  font-size:14px!important;
  line-height:1.35!important;
  font-weight:850!important;
}
body[data-screen="inbox"] .inbox-message,
body[data-screen="inbox"] .inbox-suggested{
  margin-bottom:12px!important;
  padding:14px!important;
  border-radius:22px!important;
}
body[data-screen="inbox"] .inbox-message small,
body[data-screen="inbox"] .suggestion-topline small{
  letter-spacing:.11em!important;
}
body[data-screen="inbox"] .origin-pill{
  display:inline-flex!important;
  margin-left:6px!important;
  padding:3px 7px!important;
  border-radius:999px!important;
  background:#eef6ff!important;
  border:1px solid rgba(37,99,235,.14)!important;
  color:#2563eb!important;
  font-size:10px!important;
  letter-spacing:0!important;
  text-transform:none!important;
  vertical-align:middle!important;
}
body[data-screen="inbox"] .inbox-ready-message{
  padding:14px!important;
  border-radius:20px!important;
}
body[data-screen="inbox"] .inbox-ready-message p{
  font-size:17px!important;
  line-height:1.36!important;
  letter-spacing:-.025em!important;
}
body[data-screen="inbox"] .speed-actions.inbox-speed-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1.35fr) minmax(180px,.65fr)!important;
  gap:10px!important;
  align-items:stretch!important;
  margin-top:12px!important;
}
body[data-screen="inbox"] .inbox-send-form{
  display:grid!important;
  grid-template-columns:minmax(170px,.8fr) minmax(180px,.7fr)!important;
  gap:10px!important;
  align-items:stretch!important;
}
body[data-screen="inbox"] .speed-primary,
body[data-screen="inbox"] .speed-btn.speed-primary{
  min-height:48px!important;
  font-size:15px!important;
  border-radius:18px!important;
  order:0!important;
}
body[data-screen="inbox"] .schedule-mini{
  min-height:48px!important;
  margin:0!important;
  padding:8px 11px!important;
  border:1px solid rgba(226,232,240,.96)!important;
  background:#fff!important;
  box-shadow:0 8px 16px rgba(15,23,42,.035)!important;
}
body[data-screen="inbox"] .schedule-mini select{
  min-height:26px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
body[data-screen="inbox"] .inbox-secondary-action,
body[data-screen="inbox"] .speed-actions.inbox-speed-actions > a.speed-btn.inbox-secondary-action{
  min-height:48px!important;
  border-radius:18px!important;
  background:#fff!important;
  border:1px solid rgba(37,99,235,.16)!important;
  color:#2563eb!important;
}
body[data-screen="inbox"] .quick-reply-group{
  grid-column:1 / -1!important;
  padding:12px!important;
  border:1px solid rgba(226,232,240,.9)!important;
  border-radius:20px!important;
  background:#fff!important;
}
body[data-screen="inbox"] .quick-reply-group small{
  display:block!important;
  margin:0 0 9px!important;
  color:#64748b!important;
  font-size:11px!important;
  font-weight:1000!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
body[data-screen="inbox"] .quick-reply-chips{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}
body[data-screen="inbox"] .quick-reply-chips form{margin:0!important}
body[data-screen="inbox"] .quick-reply-chips .speed-btn{
  min-height:38px!important;
  border-radius:999px!important;
  box-shadow:none!important;
}
body[data-screen="inbox"] .inbox-open-link{
  margin-top:12px!important;
  min-height:44px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.92)!important;
}
@media(min-width:1280px){
  body[data-screen="inbox"] main.content > [data-screen-section="inbox"]{
    max-width:1120px!important;
  }
}
@media(max-width:760px){
  body[data-screen="inbox"] main.content > [data-screen-section="inbox"]{max-width:none!important}
  body[data-screen="inbox"] .inbox-lead-identity{grid-template-columns:48px minmax(0,1fr)!important;gap:11px!important}
  body[data-screen="inbox"] .inbox-avatar{width:48px!important;height:48px!important;border-radius:16px!important;font-size:21px!important}
  body[data-screen="inbox"] .speed-actions.inbox-speed-actions,
  body[data-screen="inbox"] .inbox-send-form{grid-template-columns:1fr!important}
  body[data-screen="inbox"] .quick-reply-chips{grid-template-columns:1fr 1fr!important}
}

/* Prospect IA v1.5.0f14 — Inbox Density + Priority Intelligence */
body[data-screen="inbox"] main.content > [data-screen-section="inbox"]{
  max-width:980px!important;
}
body[data-screen="inbox"] .inbox-card{
  padding:16px 18px!important;
}
body[data-screen="inbox"] .inbox-card-head-premium{
  align-items:center!important;
  margin-bottom:12px!important;
  padding-bottom:10px!important;
  border-bottom:1px solid rgba(226,232,240,.86)!important;
}
body[data-screen="inbox"] .inbox-lead-identity{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
}
body[data-screen="inbox"] .inbox-avatar{
  width:52px!important;
  height:52px!important;
  flex:0 0 52px!important;
  border-radius:16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#fff!important;
  font-weight:1000!important;
  font-size:22px!important;
  background:linear-gradient(135deg,#0ea5e9,#2563eb)!important;
  box-shadow:0 14px 24px rgba(37,99,235,.18)!important;
}
body[data-screen="inbox"] .inbox-top-row{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:7px!important;
}
body[data-screen="inbox"] .inbox-card h3{
  margin:7px 0 2px!important;
  font-size:21px!important;
}
body[data-screen="inbox"] .inbox-sla{
  display:inline-flex!important;
  align-items:center!important;
  min-height:25px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  background:#f1f5f9!important;
  border:1px solid #e2e8f0!important;
  color:#475569!important;
  font-size:10px!important;
  font-weight:1000!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
body[data-screen="inbox"] .inbox-card-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.55fr) minmax(245px,.75fr)!important;
  gap:12px!important;
  align-items:start!important;
}
body[data-screen="inbox"] .inbox-card-main,
body[data-screen="inbox"] .inbox-card-side{
  min-width:0!important;
}
body[data-screen="inbox"] .pending-reason{
  margin:0 0 9px!important;
  padding:10px 12px!important;
  border-radius:18px!important;
  background:#f8fafc!important;
  border:1px solid var(--line)!important;
  color:#334155!important;
  font-size:13px!important;
  font-weight:900!important;
}
body[data-screen="inbox"] .inbox-message,
body[data-screen="inbox"] .inbox-suggested{
  margin-bottom:9px!important;
}
body[data-screen="inbox"] .inbox-sla-card{
  display:grid!important;
  gap:5px!important;
  margin:0 0 9px!important;
  padding:12px!important;
  border-radius:20px!important;
  border:1px solid rgba(37,99,235,.14)!important;
  background:linear-gradient(135deg,#eff6ff,#fff)!important;
}
body[data-screen="inbox"] .inbox-sla-card small{
  color:var(--primary)!important;
  font-size:10px!important;
  font-weight:1000!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
}
body[data-screen="inbox"] .inbox-sla-card strong{
  color:#0f172a!important;
  font-size:15px!important;
  line-height:1.15!important;
  font-weight:1000!important;
  letter-spacing:-.025em!important;
}
body[data-screen="inbox"] .inbox-sla-card span{
  color:#64748b!important;
  font-size:12px!important;
  font-weight:850!important;
}
body[data-screen="inbox"] .speed-actions.inbox-speed-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  margin:0!important;
}
body[data-screen="inbox"] .inbox-send-form{
  display:grid!important;
  gap:8px!important;
}
body[data-screen="inbox"] .inbox-secondary-action{
  min-height:38px!important;
  background:#fff!important;
  box-shadow:none!important;
}
body[data-screen="inbox"] .inbox-open-link{
  margin-top:0!important;
  min-height:38px!important;
  border-radius:999px!important;
  color:#334155!important;
}
body[data-screen="inbox"] .inbox-resolve-btn{
  min-height:38px!important;
  padding:0 14px!important;
  border-radius:999px!important;
  background:#fff!important;
  border:1px solid var(--line)!important;
  color:#334155!important;
  box-shadow:0 10px 20px rgba(15,23,42,.05)!important;
}
body[data-screen="inbox"] .quick-reply-intel{
  margin-top:9px!important;
  padding:11px!important;
  border-radius:20px!important;
  border:1px solid rgba(226,232,240,.95)!important;
  background:#fff!important;
}
body[data-screen="inbox"] .quick-reply-intel > small{
  display:block!important;
  margin-bottom:8px!important;
  color:#64748b!important;
  font-size:10px!important;
  font-weight:1000!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
}
body[data-screen="inbox"] .quick-reply-chips{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
}
body[data-screen="inbox"] .response-prob{
  justify-content:space-between!important;
  padding:0 11px!important;
  min-height:38px!important;
}
body[data-screen="inbox"] .response-prob span{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body[data-screen="inbox"] .response-prob b{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:34px!important;
  min-height:22px!important;
  border-radius:999px!important;
  background:#f8fafc!important;
  color:#475569!important;
  font-size:11px!important;
  font-weight:1000!important;
}
body[data-screen="inbox"] .response-success{border-color:rgba(22,163,74,.2)!important;color:#15803d!important;background:#f0fdf4!important}
body[data-screen="inbox"] .response-warn{border-color:rgba(245,158,11,.24)!important;color:#b45309!important;background:#fffbeb!important}
body[data-screen="inbox"] .response-danger{border-color:rgba(225,29,72,.20)!important;color:#be123c!important;background:#fff1f2!important}
body[data-screen="inbox"] .response-neutral{border-color:rgba(148,163,184,.28)!important;color:#475569!important;background:#f8fafc!important}
@media(max-width:960px){
  body[data-screen="inbox"] main.content > [data-screen-section="inbox"]{max-width:760px!important}
  body[data-screen="inbox"] .inbox-card-grid{grid-template-columns:1fr!important}
  body[data-screen="inbox"] .inbox-card-head-premium{align-items:flex-start!important}
}
@media(max-width:520px){
  body[data-screen="inbox"] .inbox-card-head-premium{display:grid!important;grid-template-columns:1fr!important}
  body[data-screen="inbox"] .pending-resolve-form{justify-self:start!important}
  body[data-screen="inbox"] .quick-reply-chips{grid-template-columns:1fr!important}
  body[data-screen="inbox"] .inbox-sla{width:max-content!important}
}

/* v1.5.0f15 — Retomar Flow Intelligence */
body[data-screen="inbox"] .inbox-retake-suggestion{
  margin-top:10px!important;
  border-color:rgba(37,99,235,.18)!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;
}
body[data-screen="inbox"] .inbox-retake-suggestion .inbox-ready-message{
  background:#eef6ff!important;
  border-color:rgba(37,99,235,.16)!important;
}
body[data-screen="inbox"] .inbox-retake-suggestion.is-missing-template .inbox-ready-message{
  background:#fff7ed!important;
  border-color:rgba(245,158,11,.25)!important;
  color:#9a3412!important;
}
body[data-screen="inbox"] .response-prob{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  gap:8px!important;
}
body[data-screen="inbox"] .response-prob em{
  font-style:normal!important;
  font-size:10px!important;
  font-weight:1000!important;
  letter-spacing:.02em!important;
  opacity:.86!important;
  white-space:nowrap!important;
}
body[data-screen="inbox"] .response-prob b{
  font-size:10px!important;
  min-width:30px!important;
}
body[data-screen="inbox"] .inbox-card-head-premium .inbox-top-row .inbox-sla{
  display:none!important;
}

/* v1.5.0f16 — Follow-up Context Segmentation */
body[data-screen="inbox"] .suggestion-topline small em{
  display:inline-flex!important;
  align-items:center!important;
  padding:3px 7px!important;
  border-radius:999px!important;
  background:#f8fafc!important;
  border:1px solid rgba(148,163,184,.22)!important;
  color:#475569!important;
  font-style:normal!important;
  font-size:10px!important;
  letter-spacing:0!important;
  text-transform:none!important;
}

/* v1.5.0f17 — Follow-up Template UX */
.template-quick-create-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  margin:16px 0;
  border:1px solid rgba(37,99,235,.16);
  border-radius:20px;
  background:linear-gradient(135deg, rgba(239,246,255,.95), rgba(255,255,255,.98));
  box-shadow:0 18px 40px rgba(15,23,42,.05);
}
.template-quick-create-panel b{display:block;font-size:15px;color:#0f172a;margin-bottom:4px}
.template-quick-create-panel span{display:block;font-size:12px;color:#64748b;line-height:1.35}
.field-hint{display:block;margin-top:7px;color:#64748b;font-size:12px;line-height:1.35}
@media (max-width:760px){.template-quick-create-panel{align-items:stretch;flex-direction:column}.template-quick-create-panel .btn{width:100%;justify-content:center}}

/* Prospect IA v1.5.0f18 — Inbox CTA Deduplication */
body[data-screen="inbox"] .inbox-customize-panel{
  grid-column:1 / -1!important;
  border:1px solid rgba(37,99,235,.16)!important;
  background:#fff!important;
  border-radius:18px!important;
  overflow:hidden!important;
}
body[data-screen="inbox"] .inbox-customize-panel > summary{
  min-height:48px!important;
  padding:0 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
  color:#2563eb!important;
  font-weight:950!important;
  list-style:none!important;
}
body[data-screen="inbox"] .inbox-customize-panel > summary::-webkit-details-marker{display:none!important}
body[data-screen="inbox"] .inbox-customize-panel[open] > summary{
  justify-content:flex-start!important;
  border-bottom:1px solid rgba(226,232,240,.88)!important;
  background:#f8fbff!important;
}
body[data-screen="inbox"] .inbox-custom-form{
  padding:12px!important;
  display:grid!important;
  gap:10px!important;
}
body[data-screen="inbox"] .inbox-custom-form label{
  margin:0!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:900!important;
}
body[data-screen="inbox"] .inbox-custom-form textarea{
  width:100%!important;
  margin-top:6px!important;
  min-height:112px!important;
  border-radius:16px!important;
  border:1px solid rgba(203,213,225,.95)!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:14px!important;
  line-height:1.45!important;
  padding:11px 12px!important;
  resize:vertical!important;
}
body[data-screen="inbox"] .inbox-custom-form .schedule-mini{
  min-height:auto!important;
}
body[data-screen="inbox"] .inbox-custom-form .speed-primary{
  width:100%!important;
}

/* Prospect IA v1.5.0f19 — Template Card Visual Hierarchy */
body[data-screen="templates"] .template-stage-group{position:relative}
body[data-screen="templates"] .template-stage-group::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:rgba(37,99,235,.34);pointer-events:none}
body[data-screen="templates"] .template-stage-group.stage-followup::before,
body[data-screen="templates"] .template-compact-card.stage-followup{--template-stage-accent:#f59e0b;--template-stage-soft:#fffbeb;--template-stage-border:rgba(245,158,11,.24);--template-stage-text:#92400e}
body[data-screen="templates"] .template-stage-group.stage-interest::before,
body[data-screen="templates"] .template-compact-card.stage-interest{--template-stage-accent:#16a34a;--template-stage-soft:#f0fdf4;--template-stage-border:rgba(22,163,74,.22);--template-stage-text:#166534}
body[data-screen="templates"] .template-stage-group.stage-price::before,
body[data-screen="templates"] .template-compact-card.stage-price{--template-stage-accent:#7c3aed;--template-stage-soft:#f5f3ff;--template-stage-border:rgba(124,58,237,.2);--template-stage-text:#5b21b6}
body[data-screen="templates"] .template-stage-group.stage-objection::before,
body[data-screen="templates"] .template-compact-card.stage-objection{--template-stage-accent:#f97316;--template-stage-soft:#fff7ed;--template-stage-border:rgba(249,115,22,.22);--template-stage-text:#9a3412}
body[data-screen="templates"] .template-stage-group.stage-first::before,
body[data-screen="templates"] .template-stage-group.stage-authorization::before,
body[data-screen="templates"] .template-stage-group.stage-diagnostic::before,
body[data-screen="templates"] .template-stage-group.stage-proposal::before,
body[data-screen="templates"] .template-stage-group.stage-general::before{background:var(--template-stage-accent,#2563eb)}
body[data-screen="templates"] .template-compact-card.stage-first,
body[data-screen="templates"] .template-compact-card.stage-authorization,
body[data-screen="templates"] .template-compact-card.stage-diagnostic,
body[data-screen="templates"] .template-compact-card.stage-proposal,
body[data-screen="templates"] .template-compact-card.stage-general{--template-stage-accent:#2563eb;--template-stage-soft:#eff6ff;--template-stage-border:rgba(37,99,235,.18);--template-stage-text:#1d4ed8}
body[data-screen="templates"] .template-stage-group.stage-followup::before{background:#f59e0b}
body[data-screen="templates"] .template-stage-group.stage-interest::before{background:#16a34a}
body[data-screen="templates"] .template-stage-group.stage-price::before{background:#7c3aed}
body[data-screen="templates"] .template-stage-group.stage-objection::before{background:#f97316}
body[data-screen="templates"] .template-compact-card{border-color:rgba(148,163,184,.18);box-shadow:0 10px 22px rgba(15,23,42,.035);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
body[data-screen="templates"] .template-compact-card[open]{border-color:var(--template-stage-border,rgba(37,99,235,.18));box-shadow:0 16px 32px rgba(15,23,42,.055)}
body[data-screen="templates"] .template-compact-card>summary{background:linear-gradient(180deg,#fff,#fbfdff)}
body[data-screen="templates"] .template-card-title-block b{font-size:13.5px;letter-spacing:-.025em;color:#0f172a}
body[data-screen="templates"] .template-card-title-block small{max-width:780px;color:#64748b}
body[data-screen="templates"] .template-status-pill{font-style:normal;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:1000;text-transform:uppercase;letter-spacing:.035em;white-space:nowrap;border:1px solid #e2e8f0;background:#f8fafc;color:#64748b}
body[data-screen="templates"] .template-status-pill.is-active{background:#dcfce7;color:#15803d;border-color:rgba(22,163,74,.18);box-shadow:0 8px 16px rgba(22,163,74,.08)}
body[data-screen="templates"] .template-status-pill.is-inactive{background:#f1f5f9;color:#64748b;border-color:#e2e8f0}
body[data-screen="templates"] .template-compact-card.is-muted{opacity:.86}
body[data-screen="templates"] .template-compact-card.is-muted .template-message-box{background:#f8fafc}
body[data-screen="templates"] .template-compact-body{display:grid;gap:12px;background:linear-gradient(180deg,#fff,#fbfdff);padding:13px 14px 14px}
body[data-screen="templates"] .template-meta-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
body[data-screen="templates"] .template-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 10px;font-size:10px;line-height:1;font-weight:1000;letter-spacing:.04em;text-transform:uppercase;border:1px solid rgba(148,163,184,.18);background:#f8fafc;color:#475569}
body[data-screen="templates"] .template-chip.chip-stage{background:var(--template-stage-soft,#eff6ff);border-color:var(--template-stage-border,rgba(37,99,235,.18));color:var(--template-stage-text,#1d4ed8)}
body[data-screen="templates"] .template-chip.chip-context{background:#eef2ff;border-color:rgba(99,102,241,.16);color:#3730a3}
body[data-screen="templates"] .template-chip.chip-tone{background:#f8fafc;border-color:#e2e8f0;color:#334155}
body[data-screen="templates"] .template-message-box{border:1px solid rgba(37,99,235,.14);background:linear-gradient(180deg,#f8fbff,#f1f7ff);border-radius:16px;padding:12px 13px;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
body[data-screen="templates"] .template-message-box>span{display:block;margin-bottom:7px;color:#2563eb;text-transform:uppercase;font-size:10px;font-weight:1000;letter-spacing:.08em}
body[data-screen="templates"] .template-message-box p{margin:0;color:#0f172a;font-size:13px;line-height:1.55;font-weight:750}
body[data-screen="templates"] .template-card-actions{padding-top:2px}
body[data-screen="templates"] .template-card-actions .btn{min-height:36px}
body[data-screen="templates"] .btn-danger-soft{background:#fff7f7;color:#be123c;border-color:rgba(225,29,72,.14);box-shadow:none}
body[data-screen="templates"] .btn-danger-soft:hover{background:#ffe4e6;border-color:rgba(225,29,72,.25);color:#9f1239}
@media(max-width:760px){body[data-screen="templates"] .template-status-pill{justify-self:start}body[data-screen="templates"] .template-meta-chips{gap:6px}body[data-screen="templates"] .template-chip{font-size:9px;padding:7px 8px}body[data-screen="templates"] .template-message-box p{font-size:12.5px}}

/* Prospect IA v1.5.0f20 — Inbox Scale & Load More */
body[data-screen="inbox"] .quick-reply-intel{
  display:none!important;
}
body[data-screen="inbox"] .inbox-card.is-load-hidden,
body[data-screen="inbox"] .inbox-card.is-filter-hidden,
body[data-screen="inbox"] .inbox-card.is-done{
  display:none!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next){
  padding:14px 16px!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-card-head-premium{
  margin-bottom:10px!important;
  padding-bottom:8px!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-avatar{
  width:44px!important;
  height:44px!important;
  flex-basis:44px!important;
  border-radius:14px!important;
  font-size:19px!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-card h3,
body[data-screen="inbox"] .inbox-card:not(.is-next) h3{
  font-size:19px!important;
  margin:4px 0 1px!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-card-grid{
  grid-template-columns:minmax(0,1fr) minmax(220px,.42fr)!important;
  gap:10px!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-suggested,
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-customize-panel{
  display:none!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .pending-reason,
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-message{
  margin-bottom:0!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-message p{
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-sla-card{
  padding:10px!important;
  border-radius:17px!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-send-form{
  grid-template-columns:1fr!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .schedule-mini{
  display:none!important;
}
body[data-screen="inbox"] .inbox-load-more-wrap{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:12px!important;
  margin:18px 0 4px!important;
}
body[data-screen="inbox"] .inbox-load-more{
  min-height:42px!important;
  padding:0 18px!important;
  border-radius:999px!important;
  font-weight:1000!important;
}
body[data-screen="inbox"] #inboxLoadMeta{
  color:#64748b!important;
  font-size:12px!important;
  font-weight:850!important;
}
@media(max-width:960px){
  body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-card-grid{
    grid-template-columns:1fr!important;
  }
  body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-card-side{
    display:none!important;
  }
}

/* Prospect IA v1.5.0f21a — Queue Transition UX */
.toast.toast-queue{
  max-width:560px!important;
  border-color:rgba(37,99,235,.18)!important;
  box-shadow:0 22px 55px rgba(15,23,42,.16),0 0 0 1px rgba(37,99,235,.08)!important;
}
.toast.toast-queue b::before{content:"✓ ";color:#16a34a;font-weight:1000}
body[data-screen="inbox"] .inbox-card.is-queue-focus{
  border-color:rgba(37,99,235,.42)!important;
  box-shadow:0 18px 42px rgba(37,99,235,.16),0 0 0 4px rgba(37,99,235,.08)!important;
  animation:queueFocusPulse 1.25s ease-out 1;
}
@keyframes queueFocusPulse{
  0%{transform:translateY(0);box-shadow:0 0 0 rgba(37,99,235,0),0 0 0 0 rgba(37,99,235,.16)}
  38%{transform:translateY(-2px);box-shadow:0 20px 46px rgba(37,99,235,.18),0 0 0 8px rgba(37,99,235,.08)}
  100%{transform:translateY(0)}
}
body[data-screen="inbox"] .inbox-queue-empty{
  border-color:rgba(22,163,74,.18)!important;
  background:linear-gradient(180deg,#f0fdf4,#ffffff)!important;
}
body[data-screen="inbox"] .inbox-queue-empty b{color:#15803d!important}

/* v1.5.0f21c — Home Visual Hierarchy Polish */
body[data-screen="home"] .executive-kpis article:nth-child(2) span{max-width:100%;white-space:normal}
body[data-screen="home"] .priority-panel{
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 48%,#eef6ff 100%)!important;
  border-color:rgba(37,99,235,.16)!important;
  box-shadow:0 18px 46px rgba(37,99,235,.085)!important;
}
body[data-screen="home"] .priority-panel .section-title{align-items:center!important;margin-bottom:18px!important}
body[data-screen="home"] .priority-panel .section-title h2{font-size:30px!important;letter-spacing:-.075em!important}
body[data-screen="home"] .priority-card{
  border-color:rgba(37,99,235,.18)!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 12px 30px rgba(15,23,42,.055)!important;
}
body[data-screen="home"] .priority-card .status-chip{box-shadow:0 8px 18px rgba(15,23,42,.045)}
body[data-screen="home"] .priority-card p strong{color:#0f172a!important}
body[data-screen="home"] .home-recent-row{gap:14px!important}
body[data-screen="home"] .home-recent-copy{display:grid!important;gap:6px!important;min-width:0!important}
body[data-screen="home"] .home-recent-copy b{line-height:1.05!important}
body[data-screen="home"] .home-recent-copy span{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body[data-screen="home"] .home-recent-badge{
  flex:0 0 auto!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  padding:4px 8px!important;border-radius:999px!important;border:1px solid transparent!important;
  font-style:normal!important;font-size:10px!important;font-weight:1000!important;letter-spacing:.055em!important;text-transform:uppercase!important;
}
body[data-screen="home"] .home-recent-badge.recent-replied{background:#e9f9ef!important;color:#15803d!important;border-color:rgba(22,163,74,.15)!important}
body[data-screen="home"] .home-recent-badge.recent-waiting{background:#eff6ff!important;color:#1d4ed8!important;border-color:rgba(37,99,235,.16)!important}
body[data-screen="home"] .home-recent-badge.recent-retake{background:#fff7ed!important;color:#c2410c!important;border-color:rgba(249,115,22,.18)!important}
body[data-screen="home"] .home-recent-badge.recent-hot{background:#fef2f2!important;color:#b91c1c!important;border-color:rgba(239,68,68,.18)!important}
body[data-screen="home"] .home-recent-badge.recent-new{background:#f8fafc!important;color:#475569!important;border-color:rgba(148,163,184,.22)!important}
@media(max-width:640px){
  body[data-screen="home"] .priority-panel .section-title h2{font-size:26px!important}
  body[data-screen="home"] .home-recent-copy span{align-items:flex-start!important;white-space:normal!important;line-height:1.35!important}
}

/* v1.5.0f23 — SLA Engine + Time Pressure UX */
.sla-mini{
  display:inline-flex!important;
  align-items:center!important;
  min-height:24px!important;
  padding:0 9px!important;
  border-radius:999px!important;
  font-size:10px!important;
  font-weight:1000!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
  border:1px solid transparent!important;
  white-space:nowrap!important;
}
.sla-mini.sla-ok{background:#ecfdf5!important;border-color:#bbf7d0!important;color:#047857!important}
.sla-mini.sla-warning{background:#fffbeb!important;border-color:#fde68a!important;color:#b45309!important}
.sla-mini.sla-overdue{background:#fef2f2!important;border-color:#fecaca!important;color:#b91c1c!important}
.home-task-badges{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:7px!important;
}
.home-sla-hint{
  display:inline-flex!important;
  align-items:center!important;
  width:max-content!important;
  max-width:100%!important;
  margin:0 0 12px!important;
  padding:8px 10px!important;
  border-radius:14px!important;
  font-size:12px!important;
  font-weight:950!important;
  border:1px solid transparent!important;
}
.home-sla-hint.sla-ok{background:#f0fdf4!important;border-color:#bbf7d0!important;color:#047857!important}
.home-sla-hint.sla-warning{background:#fffbeb!important;border-color:#fde68a!important;color:#b45309!important}
.home-sla-hint.sla-overdue{background:#fef2f2!important;border-color:#fecaca!important;color:#b91c1c!important}
body[data-screen="inbox"] .inbox-sla-card small{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
}
body[data-screen="inbox"] .inbox-sla-card small em{
  font-style:normal!important;
  padding:3px 7px!important;
  border-radius:999px!important;
  font-size:9px!important;
  letter-spacing:.04em!important;
  background:rgba(15,23,42,.06)!important;
  color:inherit!important;
}
body[data-screen="inbox"] .inbox-sla-card.sla-ok{
  background:linear-gradient(135deg,#f0fdf4,#fff)!important;
  border-color:#bbf7d0!important;
}
body[data-screen="inbox"] .inbox-sla-card.sla-ok small{color:#047857!important}
body[data-screen="inbox"] .inbox-sla-card.sla-warning{
  background:linear-gradient(135deg,#fffbeb,#fff)!important;
  border-color:#fde68a!important;
}
body[data-screen="inbox"] .inbox-sla-card.sla-warning small{color:#b45309!important}
body[data-screen="inbox"] .inbox-sla-card.sla-overdue{
  background:linear-gradient(135deg,#fef2f2,#fff)!important;
  border-color:#fecaca!important;
}
body[data-screen="inbox"] .inbox-sla-card.sla-overdue small{color:#b91c1c!important}
body[data-screen="inbox"] .inbox-card.sla-overdue,
body[data-screen="inbox"] .inbox-card:has(.inbox-sla-card.sla-overdue){
  border-color:rgba(239,68,68,.28)!important;
}

/* v1.5.0f24 — Learning Engine 2.0 */
body[data-screen="learning"] .learning-v2{display:grid;gap:16px}
.learning-brief-v2{margin-bottom:0}
.learning-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.learning-kpi-grid article{padding:16px 17px;border-radius:22px;background:#fff;border:1px solid rgba(226,232,240,.95);box-shadow:0 10px 26px rgba(15,23,42,.05);position:relative;overflow:hidden}
.learning-kpi-grid article:after{content:"";position:absolute;right:-18px;top:-20px;width:70px;height:70px;border-radius:999px;background:rgba(37,99,235,.06)}
.learning-kpi-grid strong{display:block;font-size:30px;line-height:.95;letter-spacing:-.06em;color:#0f172a}
.learning-kpi-grid span{display:block;margin-top:6px;color:#64748b;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.learning-insight-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:14px;align-items:start}
.learning-insight-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.learning-panel{padding:16px;border-radius:24px;background:#fff;border:1px solid rgba(226,232,240,.95);box-shadow:0 14px 34px rgba(15,23,42,.055)}
.learning-panel-primary{background:linear-gradient(135deg,#fff,#f5f9ff);border-color:rgba(37,99,235,.16)}
.learning-panel-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
.learning-panel-head h3{margin:0;font-size:1rem;letter-spacing:-.035em;color:#0f172a}
.learning-panel-head span{font-size:.73rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em;color:#64748b;white-space:nowrap}
.learning-recommendations{display:grid;gap:10px}
.learning-recommendations div{padding:13px 14px;border-radius:18px;background:rgba(255,255,255,.84);border:1px solid rgba(203,213,225,.75)}
.learning-recommendations b{display:block;color:#2563eb;font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;margin-bottom:5px}
.learning-recommendations p{margin:0;color:#1e293b;line-height:1.42;font-weight:750}
.learning-rank-row,.learning-signal,.learning-template-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid rgba(226,232,240,.82)}
.learning-rank-row:first-of-type,.learning-signal:first-of-type,.learning-template-row:first-of-type{border-top:0;padding-top:0}
.learning-rank-row b,.learning-signal span,.learning-template-row b{color:#0f172a;font-weight:900;font-size:.9rem;line-height:1.25}
.learning-rank-row span,.learning-signal b{flex:0 0 auto;min-width:34px;text-align:center;border-radius:999px;padding:5px 9px;background:#eef6ff;color:#2563eb;font-size:.78rem;font-weight:950}
.learning-template-row{display:block}
.learning-template-row span{display:block;margin-top:4px;color:#64748b;font-size:.78rem;font-weight:800;line-height:1.35}
.learning-muted{margin:0;color:#64748b;font-weight:750;line-height:1.4}
.learning-project-panel{margin-top:0}
.learning-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.learning-project-card{padding:13px;border-radius:18px;background:#f8fafc;border:1px solid rgba(226,232,240,.92)}
.learning-project-card b{display:block;color:#0f172a;font-weight:950;letter-spacing:-.02em}.learning-project-card span,.learning-project-card small{display:block;margin-top:4px;color:#64748b;font-size:.78rem;font-weight:850;line-height:1.32}
@media(max-width:900px){.learning-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-insight-grid,.learning-insight-grid.three{grid-template-columns:1fr}.learning-project-grid{grid-template-columns:1fr}}
@media(max-width:520px){.learning-kpi-grid{grid-template-columns:1fr}.learning-panel-head{display:block}.learning-panel-head span{display:block;margin-top:4px}.learning-kpi-grid strong{font-size:26px}}
/* v1.5.0f25 — Funnel Intelligence */
.funnel-panel-primary{margin:16px 0;background:linear-gradient(135deg,#ffffff 0%,#f7fbff 58%,#eef6ff 100%);border-color:rgba(37,99,235,.18)}
.funnel-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:stretch;margin-top:10px}
.funnel-flow>i{display:none}.funnel-step{position:relative;min-height:118px;padding:16px;border-radius:22px;background:rgba(255,255,255,.88);border:1px solid rgba(203,213,225,.86);box-shadow:0 10px 26px rgba(15,23,42,.045);overflow:hidden}.funnel-step:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,#2563eb,#38bdf8);opacity:.85}.funnel-step-win:before{background:linear-gradient(90deg,#16a34a,#86efac)}.funnel-step b{display:block;font-size:31px;line-height:1;font-weight:950;letter-spacing:-.055em;color:#0f172a}.funnel-step span{display:block;margin-top:9px;color:#0f172a;font-weight:950;font-size:.92rem}.funnel-step small{display:block;margin-top:5px;color:#64748b;font-weight:800;font-size:.78rem;line-height:1.3}.funnel-bottleneck{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;margin-top:12px;padding:13px 14px;border-radius:18px;background:#fff7ed;border:1px solid rgba(251,146,60,.26);color:#7c2d12}.funnel-bottleneck strong{font-size:.76rem;text-transform:uppercase;letter-spacing:.08em;font-weight:950}.funnel-bottleneck span{font-weight:900;color:#7c2d12}.funnel-bottleneck em{font-style:normal;font-weight:950;padding:6px 10px;border-radius:999px;background:#fed7aa;color:#7c2d12;font-size:.76rem}.funnel-grid{margin-top:14px}.learning-rank-row small{display:block;grid-column:1/-1;color:#64748b;font-weight:800;font-size:.77rem;margin-top:3px}.funnel-project-panel{margin-top:14px}.funnel-project-list{display:grid;gap:10px}.funnel-project-row{display:grid;grid-template-columns:minmax(180px,.42fr) 1fr;gap:14px;padding:14px;border-radius:20px;background:#f8fafc;border:1px solid rgba(226,232,240,.92)}.funnel-project-title b{display:block;color:#0f172a;font-weight:950;letter-spacing:-.02em}.funnel-project-title span{display:block;margin-top:5px;color:#64748b;font-weight:800;font-size:.8rem;line-height:1.35}.funnel-mini-bars{display:grid;gap:8px}.funnel-mini-bars label{display:grid;grid-template-columns:82px 1fr 44px;gap:8px;align-items:center;margin:0}.funnel-mini-bars span{font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em;color:#64748b}.funnel-mini-bars i{height:9px;border-radius:999px;background:#e2e8f0;overflow:hidden}.funnel-mini-bars em{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#38bdf8);min-width:3px}.funnel-mini-bars b{text-align:right;font-size:.78rem;color:#0f172a;font-weight:950}@media(max-width:980px){.funnel-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.funnel-project-row{grid-template-columns:1fr}.funnel-bottleneck{grid-template-columns:1fr}.funnel-bottleneck em{justify-self:start}}@media(max-width:560px){.funnel-flow{grid-template-columns:1fr}.funnel-mini-bars label{grid-template-columns:72px 1fr 38px}.funnel-step{min-height:auto}}

/* v1.5.0f26 — Auto Optimization Suggestions */
.optimization-panel{background:linear-gradient(135deg,#fff,#f8fbff 58%,#eef6ff);border-color:rgba(37,99,235,.18)}
.optimization-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.optimization-card{position:relative;padding:15px 15px 14px;border-radius:20px;background:#fff;border:1px solid rgba(203,213,225,.84);box-shadow:0 12px 28px rgba(15,23,42,.055);overflow:hidden}
.optimization-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:#94a3b8}.optimization-high:before{background:#ef4444}.optimization-medium:before{background:#f59e0b}.optimization-low:before{background:#2563eb}.optimization-info:before{background:#64748b}
.optimization-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}.optimization-card-head b{display:block;color:#0f172a;font-size:.96rem;font-weight:950;letter-spacing:-.025em;line-height:1.2}.optimization-card-head span{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#eef6ff;color:#2563eb;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}
.optimization-high .optimization-card-head span{background:#fef2f2;color:#b91c1c}.optimization-medium .optimization-card-head span{background:#fffbeb;color:#b45309}.optimization-info .optimization-card-head span{background:#f1f5f9;color:#475569}
.optimization-card p{margin:0;color:#475569;font-weight:750;line-height:1.38;font-size:.88rem}.optimization-card strong{display:block;margin-top:10px;color:#0f172a;font-weight:950;line-height:1.35;font-size:.9rem}
@media(max-width:760px){.optimization-grid{grid-template-columns:1fr}.optimization-card-head{display:block}.optimization-card-head span{display:inline-flex;margin-top:7px}}

/* v1.5.0f27 — AI Copilot 3.0 Strategy Layer */
.copilot-strategy-panel{margin:16px 0;background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 48%,#2563eb 100%);border:1px solid rgba(147,197,253,.34);color:#fff;box-shadow:0 22px 55px rgba(37,99,235,.22);overflow:hidden;position:relative}
.copilot-strategy-panel:before{content:"";position:absolute;right:-90px;top:-120px;width:260px;height:260px;border-radius:999px;background:rgba(255,255,255,.12)}
.copilot-strategy-hero{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.copilot-eyebrow{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);font-size:.7rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em;color:#dbeafe}
.copilot-strategy-hero h3{margin:10px 0 6px;font-size:1.42rem;line-height:1.08;letter-spacing:-.045em;color:#fff;font-weight:950}
.copilot-strategy-hero p{margin:0;color:#dbeafe;font-weight:750;line-height:1.42;max-width:760px}
.copilot-strategy-hero>strong{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:999px;background:#fff;color:#1d4ed8;font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.07em;box-shadow:0 10px 24px rgba(15,23,42,.18)}
.copilot-kpi-row{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.copilot-kpi-row span{padding:12px 13px;border-radius:18px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);color:#dbeafe;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.055em}.copilot-kpi-row b{display:block;color:#fff;font-size:1.45rem;line-height:1;font-weight:950;letter-spacing:-.045em;margin-bottom:4px}
.copilot-strategy-grid{position:relative;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:13px;margin-top:12px}.copilot-strategy-grid section,.copilot-experiment-strip{padding:14px;border-radius:22px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.15);backdrop-filter:blur(8px)}
.copilot-strategy-grid h4,.copilot-experiment-strip h4{margin:0 0 10px;color:#fff;font-size:.82rem;font-weight:950;text-transform:uppercase;letter-spacing:.075em}.copilot-action-list{display:grid;gap:9px}.copilot-action-item{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;padding:11px;border-radius:18px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.13)}.copilot-action-item i{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#fff;color:#1d4ed8;font-style:normal;font-weight:950}.copilot-action-item b{display:block;color:#fff;font-weight:950;line-height:1.2}.copilot-action-item span{display:block;margin-top:3px;color:#dbeafe;font-size:.82rem;font-weight:750;line-height:1.3}.copilot-action-item em{font-style:normal;padding:7px 9px;border-radius:999px;background:rgba(255,255,255,.18);color:#fff;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}
.copilot-focus-card{padding:12px;border-radius:18px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.13);margin-bottom:12px}.copilot-focus-card b{display:block;color:#fff;font-weight:950;font-size:1rem}.copilot-focus-card span{display:block;margin-top:5px;color:#dbeafe;font-weight:750;line-height:1.35}.copilot-focus-card small{display:inline-flex;margin-top:9px;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.18);color:#fff;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.copilot-guardrails{margin:0;padding:0;display:grid;gap:8px}.copilot-guardrails li{list-style:none;padding:10px 11px;border-radius:15px;background:rgba(15,23,42,.20);color:#e0f2fe;font-weight:780;line-height:1.35}
.copilot-experiment-strip{position:relative;margin-top:13px}.copilot-experiment-strip>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.copilot-experiment-strip article{padding:12px;border-radius:17px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.13)}.copilot-experiment-strip span{display:inline-flex;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.18);color:#dbeafe;font-size:.67rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.copilot-experiment-strip b{display:block;margin-top:8px;color:#fff;font-weight:950;line-height:1.2}.copilot-experiment-strip p{margin:5px 0 0;color:#dbeafe;font-size:.82rem;font-weight:750;line-height:1.35}
@media(max-width:980px){.copilot-strategy-hero{display:block}.copilot-strategy-hero>strong{margin-top:10px}.copilot-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}.copilot-strategy-grid{grid-template-columns:1fr}.copilot-experiment-strip>div{grid-template-columns:1fr}}
@media(max-width:520px){.copilot-kpi-row{grid-template-columns:1fr}.copilot-action-item{grid-template-columns:30px 1fr}.copilot-action-item em{grid-column:2;justify-self:start}.copilot-strategy-hero h3{font-size:1.18rem}}

/* v1.5.0f28 — Strategy Action Wiring */
a.copilot-action-item{color:inherit;text-decoration:none;transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease}
a.copilot-action-item:hover{transform:translateY(-1px);background:rgba(255,255,255,.19);border-color:rgba(255,255,255,.32);box-shadow:0 14px 30px rgba(15,23,42,.16)}
a.copilot-action-item:focus-visible{outline:3px solid rgba(255,255,255,.74);outline-offset:3px}
.copilot-action-item.is-clickable em{background:#fff;color:#1d4ed8;box-shadow:0 8px 18px rgba(15,23,42,.14)}
.copilot-experiment-card{display:block;color:inherit;text-decoration:none;transition:transform .16s ease,border-color .16s ease,background .16s ease}
a.copilot-experiment-card:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.32);background:rgba(255,255,255,.16)}
.copilot-experiment-card em{display:inline-flex;margin-top:8px;font-style:normal;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em;color:#eff6ff}

/* v1.5.0f29 — Command Center Final Polish */
body[data-screen="home"] .command-center{
  margin:16px 0 16px!important;
  padding:14px!important;
  border-radius:30px!important;
  background:linear-gradient(135deg,#0f172a 0%,#1d4ed8 52%,#14b8a6 100%)!important;
  box-shadow:0 24px 60px rgba(15,23,42,.18)!important;
  color:#fff!important;
  overflow:hidden!important;
  position:relative!important;
}
body[data-screen="home"] .command-center:before{
  content:"";position:absolute;inset:-80px -120px auto auto;width:280px;height:280px;border-radius:999px;background:rgba(255,255,255,.13);filter:blur(2px);pointer-events:none;
}
body[data-screen="home"] .command-center-main{
  position:relative;z-index:1;display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(220px,.8fr) minmax(220px,.8fr)!important;gap:12px!important;
}
body[data-screen="home"] .command-tile{
  min-width:0!important;padding:18px!important;border-radius:24px!important;background:rgba(255,255,255,.13)!important;border:1px solid rgba(255,255,255,.22)!important;backdrop-filter:blur(14px)!important;
}
body[data-screen="home"] .command-focus{background:rgba(255,255,255,.18)!important}
body[data-screen="home"] .command-eyebrow{display:block!important;margin-bottom:8px!important;font-size:10px!important;font-weight:1000!important;letter-spacing:.12em!important;text-transform:uppercase!important;color:rgba(255,255,255,.74)!important}
body[data-screen="home"] .command-tile h2,body[data-screen="home"] .command-tile h3{margin:0!important;color:#fff!important;letter-spacing:-.055em!important;line-height:1.02!important}
body[data-screen="home"] .command-tile h2{font-size:28px!important;max-width:18ch!important}
body[data-screen="home"] .command-tile h3{font-size:20px!important}
body[data-screen="home"] .command-tile p{margin:10px 0 0!important;color:rgba(255,255,255,.82)!important;line-height:1.38!important;font-size:13px!important}
body[data-screen="home"] .command-badge{display:inline-flex!important;margin-top:14px!important;border-radius:999px!important;padding:7px 10px!important;font-style:normal!important;font-size:10px!important;font-weight:1000!important;letter-spacing:.08em!important;text-transform:uppercase!important;background:rgba(255,255,255,.18)!important;border:1px solid rgba(255,255,255,.24)!important;color:#fff!important}
body[data-screen="home"] .command-link{display:inline-flex!important;margin-top:13px!important;color:#fff!important;font-weight:950!important;font-size:12px!important;text-decoration:none!important;border-bottom:1px solid rgba(255,255,255,.5)!important}
body[data-screen="home"] .command-action .btn{margin-top:14px!important;width:100%!important;justify-content:center!important;background:#fff!important;color:#1d4ed8!important;border-color:#fff!important;box-shadow:0 12px 30px rgba(15,23,42,.18)!important}
body[data-screen="home"] .command-quick-actions{position:relative;z-index:1;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin-top:12px!important}
body[data-screen="home"] .command-quick-actions a{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:44px!important;padding:0 14px!important;border-radius:18px!important;background:rgba(255,255,255,.94)!important;border:1px solid rgba(255,255,255,.55)!important;color:#0f172a!important;text-decoration:none!important;font-size:12px!important;font-weight:950!important;box-shadow:0 10px 28px rgba(15,23,42,.10)!important}
body[data-screen="home"] .command-quick-actions b{display:inline-grid!important;place-items:center!important;min-width:24px!important;height:24px!important;border-radius:999px!important;background:#eff6ff!important;color:#1d4ed8!important;font-size:11px!important}
body[data-screen="home"] .dashboard-hero{margin-bottom:0!important}
body[data-screen="home"] .executive-kpis{margin-top:0!important}
@media(max-width:980px){
  body[data-screen="home"] .command-center-main{grid-template-columns:1fr!important}
  body[data-screen="home"] .command-quick-actions{grid-template-columns:1fr 1fr!important}
  body[data-screen="home"] .command-tile h2{font-size:24px!important;max-width:none!important}
}
@media(max-width:560px){
  body[data-screen="home"] .command-center{padding:12px!important;border-radius:26px!important}
  body[data-screen="home"] .command-quick-actions{grid-template-columns:1fr!important}
}

/* v1.5.0f29a — Home Dedup + Balance Polish */
body[data-screen="home"] .command-center{
  padding:12px!important;
  border-radius:28px!important;
  background:linear-gradient(135deg,#eef6ff 0%,#f8fbff 48%,#ecfeff 100%)!important;
  border:1px solid #dbeafe!important;
  box-shadow:0 16px 42px rgba(15,23,42,.09)!important;
  color:#0f172a!important;
}
body[data-screen="home"] .command-center:before{
  background:rgba(37,99,235,.08)!important;
}
body[data-screen="home"] .command-center-main{
  gap:10px!important;
}
body[data-screen="home"] .command-tile{
  padding:14px!important;
  border-radius:22px!important;
  background:rgba(255,255,255,.74)!important;
  border:1px solid #dbeafe!important;
  backdrop-filter:none!important;
}
body[data-screen="home"] .command-focus{
  background:linear-gradient(135deg,#ffffff 0%,#eff6ff 100%)!important;
  border-color:#bfdbfe!important;
}
body[data-screen="home"] .command-eyebrow{
  color:#2563eb!important;
  margin-bottom:6px!important;
}
body[data-screen="home"] .command-tile h2,
body[data-screen="home"] .command-tile h3{
  color:#0f172a!important;
  letter-spacing:-.04em!important;
}
body[data-screen="home"] .command-tile h2{
  font-size:22px!important;
}
body[data-screen="home"] .command-tile h3{
  font-size:17px!important;
}
body[data-screen="home"] .command-tile p{
  color:#475569!important;
  font-size:12px!important;
  margin-top:7px!important;
}
body[data-screen="home"] .command-badge{
  margin-top:10px!important;
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
  color:#1d4ed8!important;
}
body[data-screen="home"] .command-link{
  color:#1d4ed8!important;
  border-bottom-color:#93c5fd!important;
}
body[data-screen="home"] .command-action .btn{
  margin-top:10px!important;
  background:#2563eb!important;
  color:#fff!important;
  border-color:#2563eb!important;
  box-shadow:0 10px 24px rgba(37,99,235,.20)!important;
}
body[data-screen="home"] .command-quick-actions{
  margin-top:10px!important;
}
body[data-screen="home"] .command-quick-actions a{
  min-height:40px!important;
  border:1px solid #dbeafe!important;
  background:#fff!important;
  box-shadow:none!important;
}
body[data-screen="home"] .priority-panel{
  border:1px solid #bfdbfe!important;
  box-shadow:0 20px 46px rgba(37,99,235,.10)!important;
}
body[data-screen="home"] .priority-card{
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;
}
body[data-screen="home"] .home-next-message span{
  display:block!important;
  margin-top:4px!important;
  line-height:1.45!important;
  max-height:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
}
body[data-screen="home"] .executive-preview .preview-row span{
  max-width:100%!important;
}

/* v1.5.0f30 — MVP Freeze + Deep QA */
.system-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.system-freeze-card{border-color:#bfdbfe;background:linear-gradient(135deg,#ffffff,#eff6ff)}.system-freeze-card strong{display:block;font-size:18px;margin-bottom:8px;color:#0f172a}.system-freeze-card p{color:#475569;margin:0 0 14px}@media(max-width:760px){.system-grid{grid-template-columns:1fr}}

/* v1.5.0f31 — Design System Foundation / Desktop Balance */
:root{
  --ds-page-max:1240px;
  --ds-page-pad-mobile:14px;
  --ds-page-pad-tablet:22px;
  --ds-page-pad-desktop:36px;
  --ds-space-1:4px;
  --ds-space-2:8px;
  --ds-space-3:12px;
  --ds-space-4:16px;
  --ds-space-5:20px;
  --ds-space-6:24px;
  --ds-space-8:32px;
  --ds-radius-xs:12px;
  --ds-radius-sm:16px;
  --ds-radius-md:20px;
  --ds-radius-lg:24px;
  --ds-radius-xl:30px;
  --ds-shadow-card:0 14px 34px rgba(15,23,42,.065);
  --ds-shadow-card-soft:0 8px 22px rgba(15,23,42,.045);
  --ds-font-h1:clamp(28px,3.2vw,42px);
  --ds-font-h2:clamp(22px,2vw,30px);
  --ds-font-h3:18px;
  --ds-font-body:14px;
  --ds-font-caption:12px;
}

/* Base page rhythm */
.content{
  width:100%;
  padding-inline:var(--ds-page-pad-mobile);
}
@media(min-width:720px){
  .content{padding-inline:var(--ds-page-pad-tablet)}
}
@media(min-width:980px){
  .app-topbar{left:var(--sidebar-w);right:0;width:auto;margin-left:0!important;min-height:74px}
  .content{
    max-width:var(--ds-page-max);
    padding-inline:var(--ds-page-pad-desktop);
    margin-left:calc(var(--sidebar-w) + max(18px, calc((100vw - var(--sidebar-w) - var(--ds-page-max))/2)))!important;
    margin-right:auto;
  }
}

/* Typography system */
.hero-card h1,
.section-title h2,
body[data-screen="inbox"] .section-title h2,
body[data-screen="home"] .section-title h2{
  letter-spacing:-.065em;
  line-height:1.02;
}
.hero-card h1{font-size:var(--ds-font-h1)!important}
.section-title h2{font-size:var(--ds-font-h2)!important}
.section-title span,
.eyebrow,
.command-eyebrow,
.status-chip,
.sla-mini,
.home-recent-badge{
  letter-spacing:.075em;
}

/* Button system — primary / secondary / ghost / link */
.btn,
a.btn,
button.btn,
.card-actions .btn,
.hero-actions .btn,
.compact-actions .btn{
  min-height:44px;
  padding:0 18px;
  border-radius:18px!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:14px;
  font-weight:900;
  line-height:1;
  text-decoration:none!important;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.btn-primary{
  background:linear-gradient(135deg,#1495f5 0%,#255fe8 100%)!important;
  color:#fff!important;
  border:1px solid rgba(37,99,235,.18)!important;
  box-shadow:0 14px 26px rgba(37,99,235,.18)!important;
}
.btn-secondary{
  background:rgba(255,255,255,.94)!important;
  color:#0f172a!important;
  border:1px solid rgba(203,213,225,.9)!important;
  box-shadow:0 8px 18px rgba(15,23,42,.045)!important;
}
.btn-ghost,
button.btn-ghost,
a.btn-ghost{
  background:rgba(248,250,252,.88)!important;
  color:#1e3a8a!important;
  border:1px solid rgba(203,213,225,.72)!important;
  box-shadow:none!important;
}
.btn-link,
a.btn-link,
button.btn-link{
  min-height:auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--primary)!important;
  box-shadow:none!important;
  font-weight:900;
}
.btn:hover,.btn:focus-visible{transform:translateY(-1px)}

/* Card system */
.hero-card,
.screen-section,
.screen-section-lite,
.form-panel,
.inbox-card,
.priority-card,
.preview-row,
.command-center,
.kpi-grid article{
  border-color:rgba(203,213,225,.78)!important;
}
.hero-card,
.screen-section-lite,
.form-panel,
.inbox-card,
.priority-card,
.command-center{
  box-shadow:var(--ds-shadow-card-soft)!important;
}
.screen-section,
.screen-section-lite{
  border-radius:var(--ds-radius-xl)!important;
}
.kpi-grid{gap:var(--ds-space-4)!important}
.kpi-grid article{
  border-radius:var(--ds-radius-lg)!important;
  padding:var(--ds-space-5)!important;
}
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:var(--ds-space-4);
  margin-bottom:var(--ds-space-4)!important;
}

/* Topbar system */
.app-topbar{
  gap:14px;
}
.app-topbar strong{
  font-size:20px!important;
  line-height:1;
}
.app-topbar small{
  font-size:12px!important;
  color:#64748b!important;
}
.topbar-logo-mark{
  width:48px!important;
  height:48px!important;
  flex-basis:48px!important;
}
@media(max-width:520px){
  .app-topbar{min-height:64px;padding-bottom:8px}
  .topbar-logo-mark{width:42px!important;height:42px!important;flex-basis:42px!important}
  .app-topbar strong{font-size:17px!important}
}

/* Desktop layout foundation: keep mobile-first but stop stretching mobile cards on desktop */
@media(min-width:1200px){
  body[data-screen="home"] .content{--ds-page-max:1180px}
  body[data-screen="home"] .app-home-screen{max-width:1100px;margin:0 auto;display:block}
  body[data-screen="home"] .home-dashboard.executive-dashboard{
    display:grid!important;
    grid-template-columns:minmax(0,1.45fr) minmax(300px,.85fr);
    gap:18px;
    align-items:start;
  }
  body[data-screen="home"] .home-dashboard.executive-dashboard > .dashboard-main-grid{
    grid-column:1;
    grid-row:1 / span 2;
  }
  body[data-screen="home"] .home-dashboard.executive-dashboard > .screen-section-lite{
    grid-column:2;
    margin-top:0!important;
  }
  body[data-screen="home"] .hero-card,
  body[data-screen="home"] .command-center,
  body[data-screen="home"] .executive-kpis{
    max-width:100%;
  }
}
@media(max-width:1199px){
  body[data-screen="home"] .home-dashboard.executive-dashboard{display:block!important}
  body[data-screen="home"] .home-dashboard.executive-dashboard > .screen-section-lite{margin-top:18px!important}
}

/* Command Center balance */
.command-center{
  border-radius:var(--ds-radius-xl)!important;
  padding:var(--ds-space-4)!important;
}
.command-center-main{gap:var(--ds-space-3)!important}
.command-tile{
  border-radius:22px!important;
  padding:var(--ds-space-5)!important;
}
.command-quick-actions a{
  min-height:42px;
  border-radius:16px!important;
}

/* Alert / status language */
.toast{
  border-radius:20px!important;
  box-shadow:0 18px 40px rgba(15,23,42,.16)!important;
}
.status-chip,.sla-mini,.home-recent-badge{
  border-radius:999px!important;
  font-size:10px!important;
  font-weight:1000!important;
  text-transform:uppercase;
}

/* Form consistency */
input,select,textarea{
  border-radius:16px;
  border:1px solid rgba(203,213,225,.9);
  background:#fff;
}
input:focus,select:focus,textarea:focus{
  outline:3px solid rgba(37,99,235,.10);
  border-color:rgba(37,99,235,.44);
}

/* Mobile preservation */
@media(max-width:640px){
  .btn,a.btn,button.btn{min-height:44px;padding-inline:14px}
  .hero-card,.screen-section,.screen-section-lite,.command-center{border-radius:24px!important}
  .command-center{padding:12px!important}
  .command-tile{padding:14px!important}
  .section-title{align-items:flex-start;gap:8px}
}


/* Prospect IA v1.5.0f32 — Desktop Width System
   Expande o workspace no desktop sem alterar o comportamento mobile-first. */
:root{
  --pi-desktop-max: 1440px;
  --pi-desktop-gutter: 32px;
}
@media(min-width:1200px){
  main.content,
  .content{
    width: calc(100vw - var(--sidebar-w,292px) - (var(--pi-desktop-gutter) * 2)) !important;
    max-width: var(--pi-desktop-max) !important;
    margin-left: calc(var(--sidebar-w,292px) + var(--pi-desktop-gutter)) !important;
    margin-right: var(--pi-desktop-gutter) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body[data-screen="home"] main.content > [data-screen-section="home"],
  body[data-screen="home"] .app-home-screen{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
  }
  body[data-screen="home"] .dashboard-hero,
  body[data-screen="home"] .command-center,
  body[data-screen="home"] .executive-kpis,
  body[data-screen="home"] .home-dashboard.executive-dashboard{
    width:100% !important;
    max-width:none !important;
  }
  body[data-screen="home"] .dashboard-hero{
    grid-template-columns:minmax(0,1fr) 136px !important;
  }
  body[data-screen="home"] .command-center-main{
    display:grid !important;
    grid-template-columns:minmax(0,1.15fr) minmax(0,.95fr) minmax(300px,.85fr) !important;
    gap:16px !important;
  }
  body[data-screen="home"] .command-quick-actions{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:12px !important;
  }
  body[data-screen="home"] .executive-kpis{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:18px !important;
  }
  body[data-screen="home"] .home-dashboard.executive-dashboard{
    display:grid !important;
    grid-template-columns:minmax(0,1.65fr) minmax(340px,.75fr) !important;
    gap:22px !important;
    align-items:start !important;
  }
  body[data-screen="home"] .home-dashboard.executive-dashboard > .dashboard-main-grid{
    grid-column:1 !important;
    grid-row:1 / span 2 !important;
  }
  body[data-screen="home"] .home-dashboard.executive-dashboard > .screen-section-lite{
    grid-column:2 !important;
    margin-top:0 !important;
  }
  body[data-screen="home"] .priority-card{
    padding:22px !important;
  }
  body[data-screen="home"] .priority-card .home-next-message span{
    display:block !important;
    max-width:100% !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
}
@media(min-width:1540px){
  :root{--pi-desktop-max: 1540px; --pi-desktop-gutter: 40px;}
  body[data-screen="home"] .home-dashboard.executive-dashboard{
    grid-template-columns:minmax(0,1.8fr) minmax(380px,.75fr) !important;
  }
}
@media(min-width:980px) and (max-width:1199px){
  main.content,
  .content{
    max-width: calc(100vw - var(--sidebar-w,292px) - 48px) !important;
    margin-left: calc(var(--sidebar-w,292px) + 24px) !important;
    margin-right:24px !important;
  }
}


/* Prospect IA v1.5.0f33 — Home Visual QA (redo)
   Ajuste fino da Home após largura desktop: topbar menos duplicada,
   hero mais compacto, próxima ação mais forte e coluna lateral mais legível. */
@media(min-width:980px){
  .app-topbar{
    min-height:58px!important;
    padding:8px 28px!important;
    background:rgba(255,255,255,.72)!important;
    box-shadow:none!important;
  }
  .app-topbar .topbar-logo-mark{
    width:38px!important;height:38px!important;flex-basis:38px!important;
  }
  .app-topbar strong{font-size:16px!important;letter-spacing:-.035em!important;line-height:1.05!important}
  .app-topbar small{font-size:11px!important;opacity:.72!important;max-width:280px!important}
  main.content,.content{padding-top:82px!important}
}

@media(min-width:1200px){
  body[data-screen="home"] .dashboard-hero{
    min-height:138px!important;
    padding:18px 24px!important;
    grid-template-columns:minmax(0,1fr) 112px!important;
    gap:20px!important;
    margin-bottom:16px!important;
  }
  body[data-screen="home"] .dashboard-hero h1{font-size:28px!important;margin-bottom:6px!important}
  body[data-screen="home"] .dashboard-hero p{font-size:14px!important;max-width:38ch!important}
  body[data-screen="home"] .hero-actions{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    margin-top:14px!important;
  }
  body[data-screen="home"] .hero-actions .btn{
    width:auto!important;
    min-width:190px!important;
    min-height:40px!important;
    border-radius:16px!important;
    font-size:13.5px!important;
  }
  body[data-screen="home"] .hero-status-orb{
    width:92px!important;height:92px!important;flex-basis:92px!important;border-radius:30px!important;
  }
  body[data-screen="home"] .hero-status-orb b{font-size:30px!important}

  body[data-screen="home"] .command-center{
    padding:14px!important;
    border-radius:28px!important;
    box-shadow:0 14px 34px rgba(37,99,235,.075)!important;
  }
  body[data-screen="home"] .command-center-main{
    grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr) minmax(280px,.82fr)!important;
    gap:12px!important;
  }
  body[data-screen="home"] .command-tile{
    padding:16px!important;
    border-radius:22px!important;
    min-height:128px!important;
  }
  body[data-screen="home"] .command-tile h2,
  body[data-screen="home"] .command-tile h3{
    font-size:20px!important;
    line-height:1.05!important;
    letter-spacing:-.045em!important;
    margin:5px 0 8px!important;
  }
  body[data-screen="home"] .command-tile p{font-size:12.5px!important;line-height:1.35!important}
  body[data-screen="home"] .command-quick-actions{gap:10px!important;margin-top:10px!important}
  body[data-screen="home"] .command-quick-actions a{min-height:38px!important;font-size:12.5px!important}

  body[data-screen="home"] .executive-kpis{
    gap:14px!important;
    margin:14px 0 16px!important;
  }
  body[data-screen="home"] .executive-kpis article{
    min-height:68px!important;
    padding:14px 16px!important;
  }
  body[data-screen="home"] .executive-kpis strong{font-size:28px!important}

  body[data-screen="home"] .home-dashboard.executive-dashboard{
    grid-template-columns:minmax(0,1.95fr) minmax(360px,.72fr)!important;
    gap:24px!important;
  }
  body[data-screen="home"] .priority-panel{
    padding:24px!important;
    border-radius:30px!important;
    border-color:#bfdbfe!important;
    box-shadow:0 24px 54px rgba(37,99,235,.12)!important;
  }
  body[data-screen="home"] .priority-panel .section-title h2{
    font-size:30px!important;
  }
  body[data-screen="home"] .priority-card{
    padding:20px!important;
    border-radius:24px!important;
  }
  body[data-screen="home"] .priority-card p{font-size:14px!important;line-height:1.5!important}
  body[data-screen="home"] .home-next-message span{
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  body[data-screen="home"] .card-actions.compact-actions .btn{min-height:42px!important}

  body[data-screen="home"] .home-dashboard.executive-dashboard > .screen-section-lite{
    padding:20px!important;
    border-radius:28px!important;
  }
  body[data-screen="home"] .home-dashboard.executive-dashboard > .screen-section-lite .section-title h2{
    font-size:24px!important;
    line-height:1.02!important;
  }
  body[data-screen="home"] .preview-row{
    padding:12px!important;
    border-radius:18px!important;
  }
  body[data-screen="home"] .preview-row a.btn,
  body[data-screen="home"] .preview-row a:not(.btn){
    min-width:82px!important;
  }
  body[data-screen="home"] .home-recent-copy span{
    white-space:normal!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
    line-height:1.32!important;
  }
}

@media(min-width:1540px){
  body[data-screen="home"] .home-dashboard.executive-dashboard{
    grid-template-columns:minmax(0,2.05fr) minmax(400px,.78fr)!important;
  }
}

@media(max-width:640px){
  body[data-screen="home"] .home-next-message span{
    display:-webkit-box!important;
    -webkit-line-clamp:3!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
}

/* Prospect IA v1.5.0f34 — Inbox Visual System */
body[data-screen="inbox"] main.content{
  align-items:stretch!important;
}
body[data-screen="inbox"] main.content > [data-screen-section="inbox"]{
  width:100%!important;
  max-width:min(1280px, calc(100vw - 340px))!important;
  margin-inline:auto!important;
}
body[data-screen="inbox"] .section-title.inbox-page-title{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:16px!important;
  margin-bottom:14px!important;
}
body[data-screen="inbox"] .section-title.inbox-page-title h2{
  font-size:clamp(30px,2.3vw,42px)!important;
  letter-spacing:-.085em!important;
}
body[data-screen="inbox"] .section-title.inbox-page-title p{
  margin:8px 0 0!important;
  color:var(--muted)!important;
  font-size:14px!important;
  font-weight:650!important;
  line-height:1.35!important;
  letter-spacing:0!important;
}
body[data-screen="inbox"] .section-title.inbox-page-title > span{
  min-height:36px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 14px!important;
  border-radius:999px!important;
  border:1px solid rgba(37,99,235,.14)!important;
  background:#eef6ff!important;
  color:#1d4ed8!important;
  font-weight:1000!important;
  white-space:nowrap!important;
}
body[data-screen="inbox"] .inbox-batch-strip{
  margin:0 0 12px!important;
  padding:10px 12px!important;
  border:1px solid rgba(203,213,225,.72)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.78)!important;
}
body[data-screen="inbox"] .inbox-filter-bar{
  position:sticky!important;
  top:74px!important;
  z-index:20!important;
  margin-bottom:16px!important;
  padding:10px!important;
  border-radius:24px!important;
  backdrop-filter:blur(14px)!important;
}
body[data-screen="inbox"] .inbox-filter{
  min-height:38px!important;
  padding-inline:14px!important;
  font-size:12.5px!important;
}
body[data-screen="inbox"] .inbox-list{
  gap:16px!important;
}
body[data-screen="inbox"] .inbox-card{
  padding:18px!important;
  border-radius:30px!important;
  border-color:rgba(203,213,225,.8)!important;
  box-shadow:0 18px 44px rgba(15,23,42,.06)!important;
}
body[data-screen="inbox"] .inbox-card.is-next:not(.is-done){
  border-color:rgba(37,99,235,.24)!important;
  box-shadow:0 22px 58px rgba(37,99,235,.12)!important;
}
body[data-screen="inbox"] .inbox-card.is-next:not(.is-done)::after{
  content:"Próximo da fila"!important;
  top:16px!important;
  right:16px!important;
  min-height:28px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 10px!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  border:1px solid rgba(37,99,235,.16)!important;
  color:#1d4ed8!important;
  font-size:10px!important;
  font-weight:1000!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
body[data-screen="inbox"] .inbox-card-head-premium{
  padding-bottom:14px!important;
  margin-bottom:14px!important;
  border-bottom:1px solid rgba(226,232,240,.88)!important;
}
body[data-screen="inbox"] .inbox-lead-identity{
  gap:14px!important;
}
body[data-screen="inbox"] .inbox-avatar{
  width:54px!important;
  height:54px!important;
  flex-basis:54px!important;
  border-radius:18px!important;
}
body[data-screen="inbox"] .inbox-top-row em{
  min-height:28px!important;
  padding-inline:10px!important;
}
body[data-screen="inbox"] .inbox-position,
body[data-screen="inbox"] .sla-mini{
  min-height:26px!important;
  padding:0 9px!important;
  display:inline-flex!important;
  align-items:center!important;
}
body[data-screen="inbox"] .inbox-card-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.6fr) minmax(300px,.74fr)!important;
  gap:16px!important;
  align-items:start!important;
}
body[data-screen="inbox"] .inbox-card-main,
body[data-screen="inbox"] .inbox-card-side{
  min-width:0!important;
}
body[data-screen="inbox"] .pending-reason{
  margin-bottom:10px!important;
  background:rgba(248,250,252,.92)!important;
}
body[data-screen="inbox"] .inbox-message,
body[data-screen="inbox"] .inbox-suggested{
  padding:15px!important;
  border-radius:22px!important;
}
body[data-screen="inbox"] .inbox-message p,
body[data-screen="inbox"] .inbox-suggested p{
  max-width:86ch!important;
}
body[data-screen="inbox"] .inbox-ready-message{
  background:linear-gradient(135deg,#eef6ff,#f8fbff)!important;
  border:1px solid rgba(37,99,235,.12)!important;
}
body[data-screen="inbox"] .inbox-card-side{
  display:grid!important;
  gap:10px!important;
}
body[data-screen="inbox"] .inbox-sla-card{
  margin:0!important;
  min-height:88px!important;
  border-radius:22px!important;
}
body[data-screen="inbox"] .speed-actions.inbox-speed-actions{
  grid-template-columns:1fr!important;
  gap:10px!important;
  margin:0!important;
}
body[data-screen="inbox"] .inbox-send-form{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
}
body[data-screen="inbox"] .speed-primary,
body[data-screen="inbox"] .speed-btn.speed-primary{
  min-height:48px!important;
  border-radius:18px!important;
}
body[data-screen="inbox"] .schedule-mini{
  border-radius:18px!important;
}
body[data-screen="inbox"] .inbox-customize-panel{
  border:1px solid rgba(203,213,225,.78)!important;
  background:#fff!important;
  border-radius:18px!important;
  overflow:hidden!important;
}
body[data-screen="inbox"] .inbox-customize-panel summary{
  min-height:44px!important;
  padding:0 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
  color:#2563eb!important;
  font-weight:950!important;
}
body[data-screen="inbox"] .inbox-custom-form{
  display:grid!important;
  gap:10px!important;
  padding:12px!important;
  border-top:1px solid rgba(226,232,240,.8)!important;
}
body[data-screen="inbox"] .inbox-custom-form textarea{
  width:100%!important;
  min-height:104px!important;
  border-radius:16px!important;
  border:1px solid rgba(203,213,225,.9)!important;
  padding:12px!important;
  resize:vertical!important;
}
body[data-screen="inbox"] .inbox-open-link{
  margin:0!important;
  min-height:44px!important;
  border-radius:18px!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next){
  padding:14px 16px!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-card-grid{
  grid-template-columns:minmax(0,1fr) minmax(220px,280px)!important;
  gap:12px!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-suggested,
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-customize-panel{
  display:none!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-message{
  margin-bottom:0!important;
  padding:11px 12px!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-message p{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-sla-card{
  min-height:auto!important;
  padding:12px!important;
}
body[data-screen="inbox"] .inbox-load-more-wrap{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:12px!important;
  margin-top:18px!important;
}
body[data-screen="inbox"] .inbox-load-more-wrap small{
  color:var(--muted)!important;
  font-size:12px!important;
  font-weight:850!important;
}
@media(max-width:980px){
  body[data-screen="inbox"] main.content > [data-screen-section="inbox"]{max-width:none!important}
  body[data-screen="inbox"] .inbox-filter-bar{position:static!important;top:auto!important}
  body[data-screen="inbox"] .section-title.inbox-page-title{grid-template-columns:1fr!important;align-items:start!important}
  body[data-screen="inbox"] .section-title.inbox-page-title > span{justify-self:start!important}
  body[data-screen="inbox"] .inbox-card-grid,
  body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-card-grid{grid-template-columns:1fr!important}
  body[data-screen="inbox"] .inbox-card:not(.is-next) .inbox-sla-card{display:none!important}
}
@media(max-width:640px){
  body[data-screen="inbox"] .inbox-card{padding:14px!important;border-radius:24px!important}
  body[data-screen="inbox"] .inbox-card.is-next:not(.is-done)::after{position:static!important;margin:10px 0 0!important;width:max-content!important}
  body[data-screen="inbox"] .inbox-card-head-premium{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  body[data-screen="inbox"] .inbox-lead-identity{align-items:start!important}
  body[data-screen="inbox"] .inbox-avatar{width:46px!important;height:46px!important;flex-basis:46px!important;border-radius:15px!important}
  body[data-screen="inbox"] .inbox-card h3{font-size:20px!important}
  body[data-screen="inbox"] .inbox-filter{flex:1 1 auto!important}
}

/* v1.5.0f35 — Leads Visual System
   Padroniza Leads com o Design System aplicado na Home/Inbox:
   - hero/topbar de página consistente;
   - filtros em card premium amplo;
   - lista master/detail no desktop;
   - cards mais legíveis, com chips e hierarquia clara;
   - mobile-first preservado. */
body[data-screen="leads"] main.content{
  background:
    radial-gradient(circle at 78% 10%, rgba(37,99,235,.055), transparent 30%),
    linear-gradient(180deg,#fbfdff 0%,#f7fbff 44%,#f9fbff 100%)!important;
}
body[data-screen="leads"] .leads-clean-hero.ds-page-hero{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(203,213,225,.82)!important;
  background:linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.76))!important;
  box-shadow:0 18px 48px rgba(15,23,42,.055)!important;
  border-radius:30px!important;
  padding:22px 22px!important;
  margin-bottom:16px!important;
}
body[data-screen="leads"] .leads-clean-hero.ds-page-hero:after{
  content:"";
  position:absolute;
  inset:auto -34px -52px auto;
  width:170px;
  height:170px;
  border-radius:44px;
  transform:rotate(12deg);
  background:linear-gradient(135deg,rgba(37,99,235,.09),rgba(6,182,212,.08));
  pointer-events:none;
}
body[data-screen="leads"] .lead-hero-actions{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
body[data-screen="leads"] .lead-hero-count{
  min-width:92px;
  min-height:54px;
  display:grid;
  place-items:center;
  gap:0;
  padding:9px 14px;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(203,213,225,.84);
  box-shadow:0 12px 30px rgba(15,23,42,.045);
  color:var(--text);
}
body[data-screen="leads"] .lead-hero-count b{
  font-size:24px;
  line-height:1;
  letter-spacing:-.06em;
}
body[data-screen="leads"] .lead-hero-count small{
  color:#64748b;
  font-size:10px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.08em;
}
body[data-screen="leads"] .lead-create-pill.btn{
  min-height:48px!important;
  border-radius:18px!important;
  padding:0 22px!important;
}
body[data-screen="leads"] .lead-filter-card{
  border-radius:26px!important;
  background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(203,213,225,.82)!important;
  box-shadow:0 16px 42px rgba(15,23,42,.045)!important;
}
body[data-screen="leads"] .lead-filter-card input[type="search"],
body[data-screen="leads"] .lead-filter-card select{
  border-radius:17px!important;
  background:linear-gradient(180deg,#fff,#fbfdff)!important;
  border-color:rgba(203,213,225,.92)!important;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body[data-screen="leads"] .lead-filter-card input[type="search"]:focus,
body[data-screen="leads"] .lead-filter-card select:focus{
  border-color:rgba(37,99,235,.42)!important;
  box-shadow:0 0 0 4px rgba(37,99,235,.09)!important;
}
body[data-screen="leads"] .lead-filter-meta{
  padding:0 2px;
}
body[data-screen="leads"] .lead-filter-meta span{
  display:inline-flex!important;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(37,99,235,.07);
  color:#2563eb;
  font-size:10px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
body[data-screen="leads"] .lead-card-clean{
  border-radius:24px!important;
  background:rgba(255,255,255,.96)!important;
  border:1px solid rgba(203,213,225,.78)!important;
  box-shadow:0 14px 38px rgba(15,23,42,.045)!important;
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
body[data-screen="leads"] .lead-card-clean:not([open]):hover{
  transform:translateY(-1px);
  border-color:rgba(37,99,235,.28)!important;
  box-shadow:0 18px 48px rgba(37,99,235,.08)!important;
}
body[data-screen="leads"] .lead-card-clean>summary{
  border-radius:inherit;
}
body[data-screen="leads"] .lead-card-clean[open]{
  border-color:rgba(37,99,235,.28)!important;
  background:linear-gradient(180deg,#fff,#f8fbff)!important;
}
body[data-screen="leads"] .lead-summary-main b{
  letter-spacing:-.05em!important;
}
body[data-screen="leads"] .lead-next-clean{
  background:rgba(37,99,235,.07)!important;
  border:1px solid rgba(37,99,235,.12)!important;
  color:#1d4ed8!important;
}
body[data-screen="leads"] .lead-status-clean{
  min-height:30px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
body[data-screen="leads"] .lead-open-body{
  gap:10px!important;
}
body[data-screen="leads"] .lead-info-box,
body[data-screen="leads"] .lead-nested-panel,
body[data-screen="leads"] .lead-history-panel{
  border-radius:20px!important;
  border-color:rgba(203,213,225,.74)!important;
  background:rgba(255,255,255,.95)!important;
}
body[data-screen="leads"] .lead-last-sent-card{
  padding:12px 14px!important;
}
body[data-screen="leads"] .lead-recommendation-strip{
  padding:14px 16px!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,rgba(239,246,255,.96),rgba(255,255,255,.98))!important;
  border-color:rgba(37,99,235,.20)!important;
}
body[data-screen="leads"] .lead-template-source{
  width:max-content;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  font-size:9px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.07em;
  text-transform:uppercase;
}
body[data-screen="leads"] .lead-template-source.is-library{
  color:#1d4ed8;
  background:rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.14);
}
body[data-screen="leads"] .lead-template-source.is-missing{
  color:#b45309;
  background:#fff7ed;
  border:1px solid rgba(245,158,11,.18);
}
body[data-screen="leads"] .lead-ai-panel{
  padding:14px!important;
  border-radius:22px!important;
}
body[data-screen="leads"] .lead-ai-grid span{
  border-radius:17px!important;
}
body[data-screen="leads"] .lead-ai-objective,
body[data-screen="leads"] .lead-ai-state-box{
  border-radius:18px!important;
}
body[data-screen="leads"] .lead-nested-panel>summary,
body[data-screen="leads"] .lead-history-panel>summary{
  min-height:44px!important;
}
body[data-screen="leads"] .lead-nested-panel>summary:after,
body[data-screen="leads"] .lead-history-panel>summary:after{
  content:'+';
  color:#2563eb;
  font-weight:1000;
}
body[data-screen="leads"] .lead-nested-panel[open]>summary:after,
body[data-screen="leads"] .lead-history-panel[open]>summary:after{
  content:'−';
}
body[data-screen="leads"] .lead-send-secondary{
  background:#fff!important;
  color:#1d4ed8!important;
  border:1px solid rgba(37,99,235,.16)!important;
  box-shadow:none!important;
}

@media(min-width:1180px){
  body[data-screen="leads"] main.content > [data-screen-section="leads"].leads-clean-screen{
    max-width:min(1360px, 100%)!important;
  }
  body[data-screen="leads"] .leads-clean-hero,
  body[data-screen="leads"] .lead-filter-card,
  body[data-screen="leads"] .lead-list-clean{
    max-width:1360px!important;
  }
  body[data-screen="leads"] .leads-clean-hero.ds-page-hero{
    grid-template-columns:minmax(0,1fr) auto!important;
    padding:24px 28px!important;
  }
  body[data-screen="leads"] .lead-filter-card{
    grid-template-columns:minmax(360px,2fr) minmax(360px,1.35fr) auto!important;
    align-items:end!important;
    gap:14px!important;
  }
  body[data-screen="leads"] .lead-search-label{grid-column:auto!important;}
  body[data-screen="leads"] .lead-filter-row{grid-template-columns:1fr 1fr!important;}
  body[data-screen="leads"] .lead-filter-meta{
    min-width:130px;
    justify-content:flex-end!important;
    align-self:end!important;
    padding-bottom:6px!important;
  }
  body[data-screen="leads"] .lead-list-clean:not(.has-open){
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body[data-screen="leads"] .lead-list-clean.has-open{
    grid-template-columns:minmax(300px,360px) minmax(0,1fr)!important;
    gap:18px!important;
  }
  body[data-screen="leads"] .lead-list-clean.has-open .lead-card-clean[open]{
    border-radius:30px!important;
  }
  body[data-screen="leads"] .lead-list-clean.has-open .lead-open-body{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(300px,.72fr)!important;
    align-items:start!important;
    gap:14px!important;
  }
  body[data-screen="leads"] .lead-list-clean.has-open .lead-last-sent-card,
  body[data-screen="leads"] .lead-list-clean.has-open .lead-recommendation-strip,
  body[data-screen="leads"] .lead-list-clean.has-open .lead-action-form,
  body[data-screen="leads"] .lead-list-clean.has-open .lead-nested-panel,
  body[data-screen="leads"] .lead-list-clean.has-open .lead-history-panel{
    grid-column:1!important;
  }
  body[data-screen="leads"] .lead-list-clean.has-open .lead-ai-panel{
    grid-column:2!important;
    grid-row:1 / span 5!important;
    position:sticky;
    top:calc(var(--pi-topbar-h,72px) + 18px);
  }
  body[data-screen="leads"] .lead-list-clean.has-open .lead-ai-grid{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:720px){
  body[data-screen="leads"] .leads-clean-hero.ds-page-hero{
    display:grid!important;
    padding:18px!important;
  }
  body[data-screen="leads"] .lead-hero-actions{
    justify-content:stretch;
  }
  body[data-screen="leads"] .lead-hero-count{
    flex:1;
    min-width:0;
  }
  body[data-screen="leads"] .lead-create-pill.btn{
    flex:2;
  }
  body[data-screen="leads"] .lead-filter-meta span{
    display:none!important;
  }
}


/* v1.5.0f35a — Unified Header Component
   Single source of truth for page-level headers across screens. */
.ds-page-header{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  width:100%;
  margin:0 0 18px;
  padding:22px 24px;
  border:1px solid rgba(203,213,225,.82);
  border-radius:30px;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(239,246,255,.72));
  box-shadow:0 18px 48px rgba(15,23,42,.055);
}
.ds-page-header:after{
  content:"";
  position:absolute;
  inset:auto -42px -64px auto;
  width:180px;
  height:180px;
  border-radius:46px;
  transform:rotate(12deg);
  background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(6,182,212,.07));
  pointer-events:none;
}
.ds-page-header__copy,
.ds-page-header__aside{
  position:relative;
  z-index:1;
}
.ds-page-header__copy{
  min-width:0;
}
.ds-page-header__eyebrow{
  margin:0 0 6px;
  color:#2563eb;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.ds-page-header h1{
  margin:0;
  color:var(--text);
  font-size:clamp(26px,2.15vw,38px);
  line-height:1.02;
  letter-spacing:-.055em;
}
.ds-page-header__subtitle{
  max-width:720px;
  margin:8px 0 0;
  color:#64748b;
  font-size:14px;
  line-height:1.55;
  font-weight:650;
}
.ds-page-header__aside{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  flex:0 0 auto;
}
.ds-page-header__actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.ds-page-header__meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.ds-count-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(203,213,225,.88);
  color:#334155;
  font-size:12px;
  font-weight:950;
  letter-spacing:-.01em;
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}
.ds-page-header .hero-status-orb{
  margin:0;
}
body[data-screen="home"] .ds-page-header--home{
  padding:20px 22px;
}
body[data-screen="home"] .ds-page-header--home h1{
  font-size:clamp(28px,2.35vw,40px);
}
body[data-screen="inbox"] .ds-page-header--inbox,
body[data-screen="leads"] .ds-page-header--leads,
body[data-screen="templates"] .ds-page-header--templates,
body[data-screen="followups"] .ds-page-header--followups,
body[data-screen="learning"] .ds-page-header--learning,
body[data-screen="reports"] .ds-page-header--reports,
body[data-screen="projects"] .ds-page-header--projects,
body[data-screen="system"] .ds-page-header--system{
  margin-bottom:18px;
}
body[data-screen="leads"] .ds-page-header--leads .lead-hero-count{
  min-width:92px;
  min-height:54px;
}
@media (min-width: 1180px){
  .ds-page-header{
    padding:24px 28px;
  }
  body[data-screen="home"] .ds-page-header--home{
    padding:22px 26px;
  }
}
@media (max-width: 760px){
  .ds-page-header{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
    padding:18px;
    border-radius:24px;
  }
  .ds-page-header__aside,
  .ds-page-header__actions,
  .ds-page-header__meta{
    justify-content:flex-start;
  }
  .ds-page-header__actions .btn{
    flex:1 1 auto;
  }
}

/* v1.5.0f36 — Mensagens Visual System + Component Cleanup */
body[data-screen="templates"] .template-library-shell{
  display:grid;
  gap:14px;
}
body[data-screen="templates"] .ds-template-card{
  border:1px solid rgba(148,163,184,.22);
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  box-shadow:0 10px 24px rgba(15,23,42,.035);
  overflow:hidden;
}
body[data-screen="templates"] .ds-template-card[open]{
  border-color:rgba(37,99,235,.20);
  box-shadow:0 16px 34px rgba(15,23,42,.055);
}
body[data-screen="templates"] .ds-template-card__summary{
  min-height:68px;
  align-items:center;
  gap:12px;
  padding:13px 14px;
}
body[data-screen="templates"] .ds-template-card__title b{
  font-size:14px;
  letter-spacing:-.025em;
  color:#0f172a;
}
body[data-screen="templates"] .ds-template-card__title small{
  max-width:100%;
  margin-top:4px;
  color:#64748b;
  font-size:12px;
  font-weight:750;
}
body[data-screen="templates"] .ds-template-status{
  min-width:82px;
  justify-content:center;
  text-align:center;
}
body[data-screen="templates"] .ds-template-card__body{
  padding:14px;
  background:linear-gradient(180deg,#fff,#f8fbff);
}
body[data-screen="templates"] .ds-template-card__meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
body[data-screen="templates"] .template-chip{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.22);
  background:#fff;
  color:#334155;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.055em;
  text-transform:uppercase;
}
body[data-screen="templates"] .template-chip.chip-context{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:rgba(37,99,235,.15);
}
body[data-screen="templates"] .template-chip.chip-tone{
  background:#f8fafc;
  color:#475569;
}
body[data-screen="templates"] .template-chip.stage-followup,
body[data-screen="templates"] .template-chip.stage-authorization{
  background:#fffbeb;
  color:#b45309;
  border-color:rgba(245,158,11,.20);
}
body[data-screen="templates"] .template-chip.stage-interest{
  background:#ecfdf5;
  color:#047857;
  border-color:rgba(16,185,129,.20);
}
body[data-screen="templates"] .template-chip.stage-price,
body[data-screen="templates"] .template-chip.stage-proposal{
  background:#f5f3ff;
  color:#6d28d9;
  border-color:rgba(124,58,237,.20);
}
body[data-screen="templates"] .template-chip.stage-objection{
  background:#fff7ed;
  color:#c2410c;
  border-color:rgba(249,115,22,.22);
}
body[data-screen="templates"] .template-chip.stage-first,
body[data-screen="templates"] .template-chip.stage-diagnostic{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:rgba(37,99,235,.16);
}
body[data-screen="templates"] .ds-template-message{
  border:1px solid rgba(148,163,184,.18);
  border-radius:18px;
  background:#fff;
  padding:13px 14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
body[data-screen="templates"] .ds-template-message span{
  display:block;
  margin-bottom:7px;
  color:#64748b;
  font-size:10px;
  font-weight:1000;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body[data-screen="templates"] .ds-template-message p{
  margin:0;
  color:#172033;
  font-size:14px;
  line-height:1.55;
  font-weight:650;
}
body[data-screen="templates"] .ds-template-actions{
  justify-content:flex-start;
  gap:9px;
  padding-top:12px;
  margin-top:0;
}
body[data-screen="templates"] .ds-template-actions .btn{
  min-height:38px;
}
@media(min-width:1100px){
  body[data-screen="templates"] .template-project-list{
    display:grid;
    gap:14px;
  }
  body[data-screen="templates"] .template-stage-list{
    display:grid;
    gap:12px;
  }
}
@media(max-width:760px){
  body[data-screen="templates"] .ds-template-card__summary{
    min-height:auto;
    padding:12px;
  }
  body[data-screen="templates"] .ds-template-status{
    min-width:auto;
    justify-self:start;
  }
}


/* v1.5.0f37 — Aprendizados Visual System + Component Cleanup */
.ds-learning-brief{border-radius:var(--ds-radius-lg,20px)}
.ds-learning-card{border-radius:var(--ds-radius-xl,24px)}
.ds-learning-panel-head h3{letter-spacing:-.04em}
.ds-learning-recommendations div{min-height:78px}
.ds-learning-review-list{margin-top:8px}
.ds-learning-review-card .learning-box{background:#f8fafc}

/* v1.5.0f41 — CSS Cleanup / Design System Consolidation
   Camada final de saneamento: remove dependência de width inline direto, cria utilitários
   pequenos e estabiliza barras/legibilidade sem alterar o fluxo mobile-first. */
:root{
  --ds-page-max:1440px;
  --ds-page-pad-desktop:36px;
  --ds-card-border:rgba(203,213,225,.78);
  --ds-card-bg:#ffffff;
  --ds-card-bg-soft:#f8fafc;
  --ds-bar-track:#e2e8f0;
  --ds-bar-fill-start:#2563eb;
  --ds-bar-fill-end:#38bdf8;
}
.ds-stack{display:grid;gap:var(--ds-space-4,16px)}
.ds-stack-sm{display:grid;gap:var(--ds-space-3,12px)}
.ds-surface{background:var(--ds-card-bg);border:1px solid var(--ds-card-border);border-radius:var(--ds-radius-lg,24px);box-shadow:var(--ds-shadow-card-soft,0 8px 22px rgba(15,23,42,.045))}
.ds-muted{color:var(--muted,#64748b)}
.ds-bar{height:9px;border-radius:999px;background:var(--ds-bar-track);overflow:hidden}
.ds-bar > em,
.report-bar-row i > em,
.funnel-mini-bars i > em{width:var(--bar-width,0%)}
.report-bar-row i,
.funnel-mini-bars i{background:var(--ds-bar-track)}
.report-bar-row i > em,
.funnel-mini-bars i > em{background:linear-gradient(90deg,var(--ds-bar-fill-start),var(--ds-bar-fill-end));min-width:3px}
@media(min-width:1200px){
  main.content,.content{max-width:var(--ds-page-max)!important}
}
