
:root{
  --navy:#062651;
  --navy2:#0c4777;
  --cyan:#04c7d5;
  --blue:#147be8;
  --bg:#f2f7fa;
  --card:#fff;
  --text:#0a2348;
  --muted:#67809b;
  --line:#d8e7ef;
  --danger:#c73535;
  --success:#13825d;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:var(--bg);
}
.hidden{display:none!important}
.loading-screen,.auth-view{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}
.loading-screen{align-content:center;gap:14px;color:var(--muted)}
.spinner{
  width:40px;height:40px;border:4px solid #dbeaf1;border-top-color:var(--cyan);
  border-radius:50%;animation:spin .8s linear infinite
}
@keyframes spin{to{transform:rotate(360deg)}}
.auth-card{
  width:min(430px,100%);
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 18px 55px rgba(6,38,81,.10);
  border-radius:22px;
  padding:36px;
}
.auth-logo{width:170px;height:auto;margin-bottom:28px}
.eyebrow{font-size:12px;font-weight:900;letter-spacing:1.7px;color:#3281d2}
h1,h2,p{margin-top:0}
.auth-card h1{font-size:34px;margin:8px 0 8px}
.muted{color:var(--muted)}
.stack{display:grid;gap:17px;margin-top:28px}
label{display:grid;gap:7px;font-weight:750;font-size:13px}
input,select{
  width:100%;
  border:1px solid #cddde7;
  border-radius:11px;
  padding:13px 14px;
  font:inherit;
  color:var(--text);
  background:#fff;
  outline:none;
}
input:focus,select:focus{border-color:#5ca8e9;box-shadow:0 0 0 3px rgba(20,123,232,.10)}
.btn{
  border:0;
  border-radius:11px;
  min-height:43px;
  padding:0 17px;
  font:inherit;
  font-weight:850;
  cursor:pointer;
}
.btn.primary{
  color:#fff;
  background:linear-gradient(100deg,#00a7dd,#197de9);
  box-shadow:0 8px 18px rgba(25,125,233,.20)
}
.btn.primary:hover{filter:brightness(.98)}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn.ghost{background:#fff;color:var(--text);border:1px solid var(--line)}
.btn.small{min-height:36px;padding:0 13px;font-size:12px}
.form-message{font-size:13px;line-height:1.35;min-height:18px}
.form-message.error{color:var(--danger)}
.form-message.success{color:var(--success)}

.topbar{
  position:sticky;top:0;z-index:20;
  height:74px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 34px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px)
}
.brand{display:flex;align-items:center;gap:18px}
.brand img{width:126px}
.brand div{display:grid;line-height:1.1}
.brand strong{font-size:14px}
.brand span{font-size:11px;color:var(--muted);margin-top:4px}
.topbar-actions{display:flex;align-items:center;gap:15px}
.user-email{font-size:12px;color:var(--muted)}
.shell{max-width:1180px;margin:0 auto;padding:48px 28px 70px}
.hero{
  background:linear-gradient(125deg,#082b5d,#0b477b 68%,#0ba2ae);
  color:#fff;
  padding:34px 36px;
  border-radius:22px;
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:28px;
  box-shadow:0 18px 45px rgba(6,38,81,.12)
}
.hero .eyebrow{color:#78edf2}
.hero h1{font-size:32px;letter-spacing:-.8px;margin:8px 0 12px;max-width:700px}
.hero p{color:#d8edff;line-height:1.55;max-width:760px;margin:0}
.workflow{
  display:flex;flex-wrap:wrap;gap:9px;
  align-content:center;justify-content:flex-end
}
.workflow span{
  font-size:11px;font-weight:800;
  border:1px solid rgba(255,255,255,.22);
  color:#c5d9ee;padding:9px 10px;border-radius:999px
}
.workflow span.active{background:#fff;color:#0c4777}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:24px}
.panel{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:25px;
  box-shadow:0 9px 28px rgba(6,38,81,.05)
}
.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px}
.panel h2{font-size:20px;margin-bottom:6px}
.panel-head p{color:var(--muted);font-size:13px;margin:0}
.status-pill{
  display:grid;place-items:center;
  min-width:40px;height:30px;border-radius:999px;
  background:#e7f9fb;color:#008c99;font-weight:900;font-size:11px
}
.study-form{display:grid;gap:17px}
.form-actions{padding-top:3px}
.form-actions .btn{width:100%}
.studies-list{display:grid;gap:11px;max-height:400px;overflow:auto}
.empty{padding:35px 10px;text-align:center;color:var(--muted);font-size:13px}
.study-row{
  border:1px solid var(--line);
  border-radius:13px;padding:14px 15px;
  display:flex;justify-content:space-between;gap:16px;align-items:center
}
.study-row:hover{border-color:#a9cede;background:#f9fcfd}
.study-title{font-weight:850;font-size:14px}
.study-meta{font-size:11px;color:var(--muted);margin-top:4px}
.study-status{
  font-size:10px;font-weight:900;padding:6px 8px;border-radius:999px;
  background:#e8f8f1;color:#14765a
}
.next-panel{margin-top:22px;display:flex;align-items:center;gap:20px}
.next-panel p{margin:5px 0 0;color:var(--muted);line-height:1.5}
.next-icon{
  flex:0 0 52px;height:52px;display:grid;place-items:center;
  border-radius:15px;background:#e8f9fb;color:#00a1af;font-size:25px;font-weight:900
}
.fatal-error{
  position:fixed;left:20px;right:20px;bottom:20px;
  padding:14px 17px;background:#fff0f0;border:1px solid #efb6b6;
  color:#9f2727;border-radius:12px;z-index:99
}
@media(max-width:850px){
  .grid,.hero{grid-template-columns:1fr}
  .workflow{justify-content:flex-start}
  .topbar{padding:0 18px}
  .user-email{display:none}
  .shell{padding:28px 16px 50px}
  .hero{padding:27px 23px}
}

.study-row{cursor:pointer}
.study-row.selected{border-color:#24a8da;background:#f0fbfe;box-shadow:0 0 0 2px rgba(4,199,213,.08)}
.analysis-panel{margin-top:22px}
.analysis-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}
.analysis-stats>div{border:1px solid var(--line);border-radius:13px;padding:15px;background:#f9fcfd;display:grid;gap:2px}
.analysis-stats strong{font-size:26px;color:var(--navy)}
.analysis-stats span{font-size:11px;color:var(--muted);font-weight:750;text-transform:uppercase;letter-spacing:.7px}
.progress-wrap{margin:4px 0 17px}
.progress-track{height:10px;background:#e4eef3;border-radius:999px;overflow:hidden}
.progress-bar{height:100%;width:0;background:linear-gradient(90deg,#00bfd0,#1f82ef);border-radius:999px;transition:width .35s ease}
.progress-label{font-size:12px;color:var(--muted);margin-top:7px}
.analysis-log{margin-top:17px;max-height:230px;overflow:auto;border-radius:12px;background:#071d39;color:#d9edff;padding:13px 15px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;line-height:1.55;display:none}
.analysis-log.active{display:block}
.log-success{color:#7ee7bb}.log-info{color:#9bdcf7}.log-warn{color:#ffd48a}.log-error{color:#ff9d9d}
.top-prospects{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}
.top-prospects h3{font-size:15px;margin-bottom:11px}
.prospect-row{display:grid;grid-template-columns:36px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf3f6}
.prospect-rank{width:30px;height:30px;border-radius:9px;background:#e9f9fb;color:#008b99;display:grid;place-items:center;font-size:11px;font-weight:900}
.prospect-name{font-weight:850;font-size:13px}
.prospect-domain{font-size:10px;color:var(--muted);margin-top:3px}
.prospect-score{font-size:12px;font-weight:900;color:#0a65bd}
@media(max-width:650px){.analysis-stats{grid-template-columns:1fr}}

.benchmark-panel{margin-top:22px}
.benchmark-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}
.benchmark-stats>div{border:1px solid var(--line);border-radius:13px;padding:15px;background:#f9fcfd;display:grid;gap:2px}
.benchmark-stats strong{font-size:26px;color:var(--navy)}
.benchmark-stats span{font-size:11px;color:var(--muted);font-weight:750;text-transform:uppercase;letter-spacing:.7px}
.benchmark-actions{display:flex;gap:12px;align-items:center}
.benchmark-meta-row{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:22px 0 14px;padding:14px 16px;border:1px solid var(--line);border-radius:13px;background:#f9fcfd}
.benchmark-meta-row>div{display:grid;gap:3px}
.meta-label{font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);font-weight:800}
.benchmark-selection{border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:20px}
.selection-summary{display:flex;justify-content:space-between;gap:16px;padding:13px 15px;background:#f6fbfd;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.selection-summary strong{color:var(--text)}
.selection-list{max-height:360px;overflow:auto}
.selection-row{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(260px,1.5fr) 70px 86px;gap:12px;align-items:center;padding:11px 14px;border-bottom:1px solid #edf3f6;font-size:11px}
.selection-row:last-child{border-bottom:0}
.selection-row>div:first-child{display:grid;gap:3px}
.selection-row>div:first-child strong{font-size:12px}
.selection-row>div:first-child span{color:var(--muted)}
.selection-reason{color:#496581;line-height:1.35}
.selection-score{font-weight:900;color:#0a65bd;text-align:right}
.selection-badge{font-size:9px;font-weight:900;letter-spacing:.4px;text-align:center;padding:6px 8px;border-radius:999px;background:#e8f8f1;color:#14765a}
.selection-row.skipped{opacity:.72;background:#fcfcfd}
.selection-row.skipped .selection-badge{background:#f4eeee;color:#9b4b4b}
.runner-progress-wrap{margin:18px 0}
.runner-progress-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:8px}
.benchmark-runner{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px;border-top:1px solid var(--line);padding-top:20px}
.prompt-sidebar{border:1px solid var(--line);border-radius:14px;background:#fbfdfe;min-height:520px;overflow:hidden}
.sidebar-title{padding:13px 14px;font-size:11px;text-transform:uppercase;letter-spacing:.8px;font-weight:900;color:var(--muted);border-bottom:1px solid var(--line)}
.prompt-checklist{max-height:610px;overflow:auto;padding:7px}
.check-item{width:100%;border:0;background:transparent;border-radius:10px;padding:9px 8px;display:grid;grid-template-columns:29px 1fr;gap:8px;text-align:left;align-items:center;cursor:pointer;color:var(--text)}
.check-item:hover{background:#f0f8fc}
.check-item.active{background:#e8f7fc;box-shadow:inset 0 0 0 1px #b9e2ef}
.check-item.done .check-dot{background:#dff5eb;color:#137253}
.check-dot{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:#edf4f7;color:#5e7892;font-size:10px;font-weight:900}
.check-item span:last-child{display:grid;gap:2px;min-width:0}
.check-item strong{font-size:11px}
.check-item small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prompt-workspace{min-width:0}
.prompt-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-bottom:12px}
.prompt-meta>span:not(.status-pill){padding:6px 9px;border:1px solid var(--line);border-radius:999px;background:#fbfdfe}
.protocol-card{display:grid;gap:4px;padding:12px 14px;border-radius:12px;background:linear-gradient(100deg,#072850,#0b4f7f);color:#fff;margin-bottom:13px}
.protocol-card strong{font-size:11px;color:#68eaf0}
.protocol-card span{font-size:10px;line-height:1.45;color:#dbeeff}
.prompt-box{border:1px solid #bcddeb;background:#f2fbfe;border-radius:14px;padding:15px;margin-bottom:16px}
.prompt-box-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;font-size:10px;text-transform:uppercase;letter-spacing:.7px;font-weight:900;color:#54728d}
.prompt-text{font-size:17px;line-height:1.45;font-weight:850;color:#082953;margin-bottom:11px}
.eligible-line{font-size:10px;color:#5f7890}
.run-form-grid{display:grid;gap:13px}
.run-form-grid textarea{width:100%;resize:vertical;border:1px solid #cddde7;border-radius:11px;padding:13px 14px;font:inherit;font-size:12px;line-height:1.5;color:var(--text);background:#fff;outline:none}
.run-form-grid textarea:focus{border-color:#5ca8e9;box-shadow:0 0 0 3px rgba(20,123,232,.10)}
.run-form-grid small{font-weight:500;color:var(--muted)}
.runner-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:15px;flex-wrap:wrap}
@media(max-width:900px){
  .benchmark-runner{grid-template-columns:1fr}
  .prompt-sidebar{min-height:0}
  .prompt-checklist{max-height:240px}
  .selection-row{grid-template-columns:1fr 70px 80px}
  .selection-reason{grid-column:1/-1;grid-row:2}
}
@media(max-width:650px){
  .benchmark-stats{grid-template-columns:1fr}
  .selection-summary{display:grid}
  .selection-row{grid-template-columns:1fr 68px}
  .selection-badge{grid-column:2}
  .selection-score{grid-column:2}
}

.benchmark-meta-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.auto-protocol-card{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  padding:13px 14px;margin:14px 0;
  border:1px solid #cde7ef;border-radius:13px;background:#f2fbfd
}
.auto-protocol-card>div:first-child{display:grid;margin-right:4px}
.auto-protocol-card strong{font-size:12px;color:#0a3868}
.protocol-chip{
  padding:7px 9px;border-radius:999px;background:#fff;border:1px solid #cde3ed;
  font-size:10px;font-weight:850;color:#245479
}
.auto-run-actions{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin:12px 0 14px}
.auto-run-status{font-size:12px;color:var(--muted);font-weight:750}
.run-result-card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:15px;margin-top:14px}
.run-result-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:11px}
.run-result-head strong{font-size:13px}
.run-result-head span{font-size:10px;color:var(--muted);font-weight:750;text-align:right}
.run-result-text{font-size:12px;line-height:1.55;color:#173c65;white-space:pre-wrap}
.run-sources{display:grid;gap:6px;margin-top:12px}
.run-source{
  display:block;padding:7px 9px;border-radius:9px;background:#f5f9fb;border:1px solid #e0edf2;
  font-size:10px;color:#336589;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.manual-fallback{margin-top:15px;border-top:1px solid #e2edf2;padding-top:12px}
.manual-fallback summary{cursor:pointer;font-size:11px;font-weight:850;color:#5c7790}
.manual-fallback .run-form-grid{margin-top:13px}
@media(max-width:760px){
  .benchmark-meta-actions{width:100%}
  .auto-run-actions .btn{width:100%}
}

.analysis-card{margin-top:18px}
.analysis-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0}
.scoring-method-card{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid #d6e7ef;border-radius:12px;background:#f8fbfd;font-size:11px;line-height:1.45;color:#4b6882}
.scoring-method-card strong{color:#0b3a68;white-space:nowrap}
.ranking-wrap{margin-top:16px}
.ranking-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:9px}
.ranking-head strong{font-size:13px;color:#0b3a68}
.ranking-head span{font-size:10px;color:var(--muted);text-align:right}
.ranking-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}
.ranking-table{width:100%;border-collapse:collapse;min-width:780px;background:#fff}
.ranking-table th,.ranking-table td{padding:10px 11px;border-bottom:1px solid #e8eff3;text-align:left;font-size:10px;white-space:nowrap}
.ranking-table th{font-size:9px;letter-spacing:.05em;text-transform:uppercase;color:#6c879d;background:#f7fafc}
.ranking-table td strong{font-size:11px;color:#173c65}
.ready-badge,.wait-badge{display:inline-flex;padding:5px 7px;border-radius:999px;font-size:9px;font-weight:850}
.ready-badge{background:#eaf8f0;color:#22714c}.wait-badge{background:#f3f6f8;color:#6a7e8f}
@media(max-width:760px){.analysis-actions .btn{width:100%}.ranking-head{display:block}.ranking-head span{display:block;text-align:left;margin-top:4px}}

.reports-card{margin-top:18px}
.report-cards{display:grid;gap:10px;margin-top:12px}
.report-row{
  display:grid;grid-template-columns:minmax(220px,1.5fr) 110px 110px 1fr auto;
  gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line);
  border-radius:12px;background:#fff
}
.report-row strong{font-size:12px;color:#123b68}
.report-row span{font-size:10px;color:var(--muted);font-weight:750}
.report-row .report-status{justify-self:start}
.report-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.report-actions .btn{white-space:nowrap}
@media(max-width:900px){
  .report-row{grid-template-columns:1fr 1fr}
  .report-actions{grid-column:1/-1;justify-content:flex-start}
}

.report-prep-actions{align-items:center;flex-wrap:wrap}
.test-report-note{margin-top:-4px;margin-bottom:12px;font-size:10px;line-height:1.45;color:var(--muted);font-weight:700}
.test-report-note strong{color:#123b68}

/* V7 — publication / tracking */
.report-row-v7{
  grid-template-columns:minmax(220px,1.35fr) 105px 105px minmax(150px,.85fr) minmax(260px,auto);
}
.report-performance{
  margin-top:5px;
  font-size:9px;
  font-weight:800;
  color:#58738d;
}
.report-row-v7 .report-actions{
  flex-wrap:wrap;
}
@media(max-width:1100px){
  .report-row-v7{
    grid-template-columns:1fr 1fr;
  }
  .report-row-v7 .report-actions{
    grid-column:1/-1;
    justify-content:flex-start;
  }
}


/* =========================================================
   V8 — Sales Queue
   ========================================================= */
.sales-card .benchmark-stats{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.sales-queue-wrap{margin-top:14px}
.sales-cards{display:grid;gap:10px;margin-top:10px}
.sales-row{
  border:1px solid #cfe1ec;
  background:#fff;
  border-radius:13px;
  overflow:hidden;
}
.sales-main{
  display:grid;
  grid-template-columns:minmax(220px,1.25fr) minmax(230px,1.25fr) minmax(150px,.8fr) 100px minmax(280px,auto);
  gap:14px;
  align-items:center;
  padding:14px 16px;
}
.sales-company,.sales-contact,.sales-quality,.sales-signals{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.sales-company strong,.sales-contact strong{
  color:#052d5b;
  font-size:11px;
  line-height:1.25;
}
.sales-company span,.sales-contact span,.sales-quality>span:not(.ready-badge):not(.wait-badge),.sales-signals span{
  color:#5f7890;
  font-size:9px;
  line-height:1.3;
}
.sales-email{
  color:#0e5f91!important;
  font-weight:800;
  overflow-wrap:anywhere;
}
.sales-signals strong{
  color:#052d5b;
  font-size:11px;
}
.sales-row-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.sales-detail{
  border-top:1px solid #dceaf2;
  background:#f8fbfd;
  padding:16px;
}
.sales-detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.sales-detail-grid>div,.sales-message-box{
  border:1px solid #dceaf2;
  background:#fff;
  border-radius:10px;
  padding:12px;
}
.sales-detail-label{
  display:block;
  color:#7690a8;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:6px;
}
.sales-detail p{
  margin:0;
  color:#173b60;
  font-size:11px;
  line-height:1.45;
}
.sales-subject{font-weight:900}
.sales-message-box{margin-top:12px}
.sales-message-box pre{
  margin:0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:inherit;
  color:#173b60;
  font-size:11px;
  line-height:1.5;
}
.sales-evidence{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:11px;
  font-size:9px;
  font-weight:800;
}
.sales-evidence a{color:#0b6aa7;text-decoration:none}
.sales-detail-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:12px;
}
.sales-note{
  margin-top:10px;
  padding:9px 11px;
  border-radius:8px;
  background:#fff8dd;
  color:#755a00;
  font-size:9px;
  font-weight:700;
}
.btn.danger{
  border-color:#ffc4c4;
  color:#b52323;
  background:#fff4f4;
}
.btn.danger:hover{background:#ffe8e8}
@media(max-width:1250px){
  .sales-main{
    grid-template-columns:1fr 1fr;
  }
  .sales-row-actions{
    grid-column:1/-1;
    justify-content:flex-start;
  }
  .sales-card .benchmark-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .sales-main,.sales-detail-grid{
    grid-template-columns:1fr;
  }
  .sales-card .benchmark-stats{
    grid-template-columns:1fr 1fr;
  }
}


/* V8.3 — email HTML */
.sales-html-preview-wrap{
  margin-top:12px;
  border:1px solid #dceaf2;
  background:#fff;
  border-radius:10px;
  overflow:hidden;
}
.sales-html-preview-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-bottom:1px solid #edf3f7;
}
.sales-html-preview-head .sales-detail-label{
  margin:0;
}
.sales-html-preview{
  display:block;
  width:100%;
  height:700px;
  border:0;
  background:#fff;
}


/* V9 — Scaling & Campaign Safety */
.study-mode-note{grid-column:1/-1;padding:10px 12px;border:1px solid #d8e8f2;border-radius:10px;background:#f7fbfd;display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:10px;color:#58738d}.study-mode-note strong{color:#06335f}.scaling-panel{border-color:#b9ddef}.scaling-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.scaling-settings-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:14px}.scaling-settings-grid label{display:flex;flex-direction:column;gap:6px}.scaling-settings-grid label>span{font-size:9px;font-weight:800;color:#58738d}.scaling-settings-grid input[type="number"]{width:100%;border:1px solid #cbdde8;border-radius:8px;padding:9px 10px;color:#103a61;background:#fff}.scaling-settings-grid .toggle-line{justify-content:center;align-items:flex-start;background:#f8fbfd;border:1px solid #dbe9f1;border-radius:8px;padding:10px}.scaling-settings-grid .toggle-line input{margin-top:2px}.scaling-actions{margin-top:14px}.sales-status-select{border:1px solid #cbdde8;border-radius:8px;padding:7px 9px;font-size:9px;color:#173b60;background:#fff}.report-status .wait-badge{display:inline-flex}.report-expiry{font-size:8px;color:#728aa0;margin-top:4px}
@media(max-width:1200px){.scaling-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.scaling-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.scaling-settings-grid,.scaling-stats{grid-template-columns:1fr 1fr}}


/* V10 · Inbound Diagnostic */
.inbound-panel{margin-top:24px;border-color:#b9ddef}
.inbound-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.inbound-note{
  display:flex;gap:10px;align-items:flex-start;
  margin-top:14px;padding:12px 14px;border:1px solid #d6e7ef;
  border-radius:12px;background:#f8fbfd;font-size:11px;line-height:1.45;color:#4b6882
}
.inbound-note strong{color:#0b3a68;white-space:nowrap}
.inbound-queue{display:grid;gap:10px;margin-top:14px}
.inbound-row{
  border:1px solid var(--line);border-radius:14px;background:#fff;
  padding:14px 15px
}
.inbound-row-main{
  display:grid;grid-template-columns:1.5fr 1.35fr .9fr .75fr;
  gap:16px;align-items:center
}
.inbound-identity,.inbound-site,.inbound-source,.inbound-state{min-width:0;display:grid;gap:4px}
.inbound-company{font-size:13px;font-weight:900;color:#0b315c}
.inbound-person{font-size:10px;color:#607b94}
.inbound-identity a,.inbound-site a{
  font-size:10px;color:#0b6aa7;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.inbound-site small,.inbound-source small,.inbound-state small{
  font-size:9px;color:#7890a5
}
.inbound-label{
  font-size:8px;text-transform:uppercase;letter-spacing:.8px;font-weight:900;color:#7890a5
}
.inbound-source strong{font-size:10px;color:#183c61}
.inbound-status{
  display:inline-flex;width:max-content;max-width:100%;align-items:center;
  border-radius:999px;padding:6px 9px;font-size:8px;font-weight:900;letter-spacing:.45px
}
.inbound-status.new{background:#e7f9fb;color:#008c99}
.inbound-status.processing{background:#fff4d6;color:#8a6200}
.inbound-status.ready{background:#e7f6ec;color:#14724c}
.inbound-status.sent,.inbound-status.viewed,.inbound-status.clicked{background:#eaf1ff;color:#2459a8}
.inbound-status.replied,.inbound-status.meeting,.inbound-status.won{background:#e7f6ec;color:#14724c}
.inbound-status.lost,.inbound-status.rejected,.inbound-status.error{background:#fdecec;color:#a33434}
.inbound-details{margin-top:10px;border-top:1px solid #edf3f6;padding-top:9px}
.inbound-details summary{cursor:pointer;font-size:9px;font-weight:850;color:#53728e}
.inbound-detail-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 16px;margin-top:10px;font-size:9px;color:#607b94
}
.inbound-detail-grid strong{color:#244a6d}
.inbound-next-step{grid-column:1/-1;padding:9px 10px;border-radius:9px;background:#f8fbfd}
@media (max-width:900px){
  .inbound-row-main{grid-template-columns:1fr 1fr}
  .inbound-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:620px){
  .inbound-row-main,.inbound-detail-grid{grid-template-columns:1fr}
  .inbound-stats{grid-template-columns:1fr 1fr}
}


/* V10 Step 5 · Inbound targeted runner */
.inbound-progress-line{
  margin-top:10px;padding:9px 11px;border-radius:10px;
  background:#f7fafc;border:1px solid #e3edf2;
  font-size:9px;font-weight:700;color:#56738d
}
.inbound-actions{
  display:flex;gap:8px;justify-content:flex-end;align-items:center;margin-top:10px
}
.inbound-error{
  margin-top:8px;padding:9px 11px;border-radius:10px;background:#fff2f2;
  border:1px solid #f2cccc;color:#9a3030;font-size:9px
}
@media (max-width:620px){
  .inbound-actions{justify-content:stretch}
  .inbound-actions .btn{width:100%}
}


/* V10 Step 5c · réglages inbound */
.inbound-settings{
  margin-top:14px;border:1px solid #d6e7ef;border-radius:12px;background:#fbfdfe;padding:10px 12px
}
.inbound-settings summary{
  cursor:pointer;font-size:10px;font-weight:900;color:#0b3a68
}
.inbound-settings-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;margin-top:10px
}
.inbound-settings-grid label{
  display:grid;gap:5px;font-size:8px;font-weight:800;color:#5c7690
}
.inbound-settings-grid input[type="number"]{
  width:100%;border:1px solid #d7e3ea;border-radius:9px;padding:8px 9px;background:#fff;color:#183c61;font-size:10px
}
.inbound-toggle{
  display:flex!important;flex-direction:row;align-items:center;gap:8px!important;padding-top:17px
}
.inbound-toggle input{width:16px;height:16px}
.inbound-settings-help{
  margin-top:8px;font-size:8px;color:#7b91a4
}
@media (max-width:800px){
  .inbound-settings-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:520px){
  .inbound-settings-grid{grid-template-columns:1fr}
}


/* V10 Step 6 · publication + email inbound */
.inbound-report-performance{
  margin-top:8px;font-size:8px;color:#6f879b;text-align:right
}
.inbound-email-preview{
  margin-top:10px;border:1px solid #dbe7ed;border-radius:12px;
  overflow:hidden;background:#fff
}
.inbound-email-preview.hidden{display:none}
.inbound-email-meta{
  padding:10px 12px;background:#f7fafc;border-bottom:1px solid #e7eef2;
  font-size:9px;color:#45647f
}
.inbound-email-preview iframe{
  display:block;width:100%;min-height:430px;border:0;background:#fff
}
@media (max-width:620px){
  .inbound-report-performance{text-align:left}
  .inbound-email-preview iframe{min-height:520px}
}


/* V10.1 · navigation Outbound / Inbound */
.topbar{position:relative}
.mode-switch{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  display:flex;align-items:center;gap:4px;padding:4px;
  border:1px solid #d8e6ee;border-radius:12px;background:#f5f9fb;
  box-shadow:0 2px 10px rgba(6,38,81,.04)
}
.mode-switch-btn{
  appearance:none;border:0;background:transparent;color:#5f7890;
  font:inherit;font-size:11px;font-weight:900;letter-spacing:.15px;
  padding:8px 18px;border-radius:8px;cursor:pointer
}
.mode-switch-btn.active{background:#0c7fcb;color:#fff;box-shadow:0 2px 8px rgba(12,127,203,.18)}
.mode-hidden{display:none!important}
.inbound-mode-section{margin-top:0}
body[data-admin-mode="inbound"] .shell{padding-top:22px}

/* Corbeilles */
.icon-danger,.study-delete-btn{
  border:1px solid #f1d0d0;background:#fff;color:#b94545;cursor:pointer
}
.icon-danger:hover,.study-delete-btn:hover{background:#fff1f1;border-color:#e9abab;color:#982f2f}
.study-row-actions{display:flex;align-items:center;gap:8px}
.study-delete-btn{
  width:30px;height:30px;border-radius:8px;display:grid;place-items:center;
  font-size:13px;line-height:1
}

@media (max-width:800px){
  .topbar{min-height:112px;align-items:flex-start}
  .mode-switch{top:auto;bottom:10px}
  .topbar-actions{margin-left:auto}
}


/* V10.3 · Diagnostic URL */
.diagnostic-url-panel{margin-top:24px;border-color:#b9ddef}
.diagnostic-url-form{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;
  margin-top:14px
}
.diagnostic-url-form label{display:grid;gap:6px}
.diagnostic-url-form label>span{
  font-size:9px;font-weight:900;letter-spacing:.45px;text-transform:uppercase;color:#617e98
}
.diagnostic-url-form input{
  width:100%;border:1px solid #d5e3eb;border-radius:10px;background:#fff;
  padding:11px 12px;font-size:12px;color:#173b60
}
.diagnostic-url-rules{
  margin-top:10px;padding:10px 12px;border-radius:10px;background:#f3f9fc;
  border:1px solid #dcecf3;display:grid;gap:4px;font-size:9px;line-height:1.5;color:#5a748d
}
.diagnostic-url-rules strong{color:#0b3a68}
.diagnostic-url-existing{
  margin-top:12px;padding:12px 14px;border:1px solid #f0d79f;border-radius:12px;
  background:#fff9ea;display:flex;justify-content:space-between;gap:16px;align-items:center
}
.diagnostic-url-existing.hidden{display:none}
.diagnostic-url-existing>div:first-child{display:grid;gap:3px}
.diagnostic-url-existing strong{font-size:11px;color:#6d4a00}
.diagnostic-url-existing span{font-size:9px;color:#846b33}
.diagnostic-url-existing-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.diagnostic-url-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.diagnostic-url-row .inbound-person{font-style:italic}

.mode-switch{gap:6px}
.mode-switch-btn{white-space:nowrap}

@media (max-width:860px){
  .mode-switch{position:static;transform:none;order:3;width:100%;justify-content:center;margin-top:8px}
  .topbar{flex-wrap:wrap}
}
@media (max-width:760px){
  .diagnostic-url-form{grid-template-columns:1fr}
  .diagnostic-url-existing{align-items:flex-start;flex-direction:column}
  .diagnostic-url-existing-actions{justify-content:flex-start}
  .diagnostic-url-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* V11 · Outbound OE — intégration admin isolée */
body[data-admin-mode="outbound-oe"] .shell{padding-top:22px}
.oe-panel{margin-top:0;border-color:#b9ddef}
.oe-run-toolbar{display:flex;gap:14px;align-items:end;margin-bottom:18px}
.oe-run-toolbar label{flex:1;min-width:0}
.oe-run-toolbar label>span,.oe-label{font-size:9px;font-weight:900;letter-spacing:.55px;text-transform:uppercase;color:#617e98}
.oe-run-meta{display:flex;align-items:center;gap:9px;min-height:43px}
.oe-run-meta small{font-size:9px;color:#7890a5;white-space:nowrap}
.oe-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.oe-benchmark-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) auto;gap:16px;align-items:center;padding:14px 16px;margin:4px 0 12px;border:1px solid #d6e7ef;border-radius:13px;background:#f8fbfd}
.oe-benchmark-card>div{display:grid;gap:4px;min-width:0}
.oe-benchmark-card strong{font-size:11px;color:#173c65;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oe-benchmark-card small{font-size:9px;color:#7890a5}
.oe-benchmark-action{display:flex!important;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap}.oe-benchmark-action small{width:100%;text-align:right}
.oe-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}
.oe-section-title{font-size:10px;text-transform:uppercase;letter-spacing:.7px;font-weight:900;color:#5e7891;margin-bottom:8px}
.oe-candidate-list,.oe-prompt-list{border:1px solid #e0ebf0;border-radius:13px;background:#fff;overflow:hidden;max-height:520px;overflow-y:auto}
.oe-candidate-row{display:grid;grid-template-columns:30px minmax(0,1fr) 46px 92px;gap:10px;align-items:center;padding:11px 12px;border-bottom:1px solid #edf3f6}
.oe-candidate-row:last-child,.oe-prompt-row:last-child{border-bottom:0}
.oe-rank,.oe-prompt-index{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:#e9f9fb;color:#008b99;font-size:9px;font-weight:900}
.oe-candidate-main{display:grid;gap:3px;min-width:0}
.oe-candidate-main strong{font-size:11px;color:#173c65;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oe-candidate-main span{font-size:8px;color:#7890a5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oe-score{font-size:12px;font-weight:900;color:#0a65bd;text-align:right}
.oe-prompt-row{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;padding:11px 12px;border-bottom:1px solid #edf3f6;align-items:start}
.oe-prompt-row>div:last-child{display:grid;gap:5px;min-width:0}
.oe-prompt-row strong{font-size:10px;line-height:1.45;color:#173c65}
.oe-prompt-row span{font-size:8px;color:#7890a5}
.oe-safety-note{margin-top:18px;padding:11px 13px;border:1px solid #d8e8ef;border-radius:11px;background:#f5fafc;display:grid;gap:4px;font-size:9px;line-height:1.5;color:#5c7690}
.oe-safety-note strong{color:#0b3a68}
@media(max-width:900px){.oe-grid{grid-template-columns:1fr}.oe-benchmark-card{grid-template-columns:1fr 1fr}.oe-benchmark-action{grid-column:1/-1;justify-content:flex-start!important}.oe-benchmark-action small{text-align:left}.oe-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.oe-run-toolbar{align-items:stretch;flex-direction:column}.oe-run-meta{min-height:0}.oe-stats{grid-template-columns:1fr 1fr}.oe-benchmark-card{grid-template-columns:1fr}.oe-benchmark-action{grid-column:auto}.oe-benchmark-action .btn{width:100%}.oe-candidate-row{grid-template-columns:28px minmax(0,1fr) 42px}.oe-candidate-row .inbound-status{grid-column:2/-1;width:max-content}.mode-switch-btn{padding-left:12px;padding-right:12px}}

/* V11 Step 7B — production OE via moteur Diagnostic URL */
.oe-production-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:16px;margin:4px 0 10px;border:1px solid #bfe3db;border-radius:13px;background:#f4fbf8}.oe-production-card>div{display:grid;gap:4px;min-width:0}.oe-production-card strong{font-size:12px;color:#0b4c45}.oe-production-card small{font-size:9px;line-height:1.45;color:#68879a}.oe-diagnostic-list{border:1px solid #d8e9e4;border-radius:13px;background:#fff;overflow:hidden;margin-bottom:12px}.oe-diagnostic-row{display:grid;grid-template-columns:30px minmax(0,1fr) 104px;gap:10px;align-items:center;padding:11px 12px;border-bottom:1px solid #edf3f1}.oe-diagnostic-row:last-child{border-bottom:0}.oe-diagnostic-row small{font-size:8px;color:#8aa0ae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.oe-pilot-audit{margin:12px 0 4px;border:1px dashed #d7e3e9;border-radius:11px;background:#fafcfd}.oe-pilot-audit>summary{cursor:pointer;padding:10px 12px;font-size:9px;font-weight:900;letter-spacing:.45px;text-transform:uppercase;color:#7890a5}.oe-pilot-audit .oe-benchmark-card{margin:0 10px 10px;background:#fff}.oe-hidden-count{font-size:8px;color:#8ba0ae}.oe-hidden-count strong{font-size:8px;color:inherit}.oe-pilot-audit .btn{opacity:.65}
@media(max-width:700px){.oe-production-card{grid-template-columns:1fr}.oe-production-card .oe-benchmark-action{justify-content:flex-start!important}.oe-production-card .oe-benchmark-action small{text-align:left}.oe-diagnostic-row{grid-template-columns:28px minmax(0,1fr)}.oe-diagnostic-row .inbound-status{grid-column:2/-1;width:max-content}}


/* V11.1 Step 8B — census GEO strict, lecture seule */
.oe-census-card{margin:14px 0 12px;padding:15px 16px;border:1px solid #cfe5ef;border-radius:13px;background:#f7fbfd}
.oe-census-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end}
.oe-census-head>div:first-child{display:grid;gap:4px}.oe-census-head strong{font-size:12px;color:#123d67}.oe-census-head small{font-size:9px;color:#6e879a;line-height:1.45}
.oe-census-controls{display:flex;align-items:end;gap:10px}.oe-census-controls label{display:grid;gap:5px}.oe-census-controls label>span{font-size:8px;font-weight:900;letter-spacing:.4px;text-transform:uppercase;color:#6a8499}.oe-census-controls input{width:105px;border:1px solid #d4e3eb;border-radius:9px;background:#fff;padding:9px 10px;color:#173c65;font-size:10px}
.oe-census-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.oe-census-summary.hidden,.oe-census-details.hidden{display:none}.oe-census-summary>div{padding:11px 12px;border:1px solid #dceaf0;border-radius:11px;background:#fff;display:grid;gap:3px}.oe-census-summary span{font-size:8px;font-weight:900;letter-spacing:.45px;text-transform:uppercase;color:#6b8398}.oe-census-summary strong{font-size:20px;color:#0c335d}.oe-census-summary small{font-size:8px;color:#7c91a3}
.oe-census-details{margin-top:12px;border-top:1px solid #dfeaf0;padding-top:10px}.oe-census-details>summary{cursor:pointer;font-size:9px;font-weight:900;color:#496d8c}.oe-census-list{margin-top:10px;border:1px solid #dfeaf0;border-radius:12px;background:#fff;overflow:hidden;max-height:620px;overflow-y:auto}.oe-census-row{display:grid;grid-template-columns:30px minmax(0,1fr) 50px;gap:10px;align-items:start;padding:11px 12px;border-bottom:1px solid #edf3f6}.oe-census-row:last-child{border-bottom:0}.oe-census-company{display:grid;gap:4px;min-width:0}.oe-census-company-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.oe-census-company strong{font-size:10px;color:#173c65}.oe-census-company>span{font-size:8px;color:#7890a5}.oe-census-company>small{font-size:8px;line-height:1.45;color:#496b86}.oe-census-signal{font-size:7px;font-weight:900;letter-spacing:.35px;padding:3px 6px;border-radius:999px}.oe-census-signal.strong{background:#e6f8ee;color:#1d7a4a}.oe-census-signal.contextual{background:#fff3d6;color:#946900}.oe-census-breakdown{font-size:7.5px;color:#7a91a4}.oe-census-score{font-size:15px;font-weight:900;color:#0a65bd;text-align:right;padding-top:2px}.oe-census-query-stats{margin-top:12px}.oe-census-query-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.oe-census-query-grid>div{display:flex;justify-content:space-between;gap:12px;padding:7px 9px;border:1px solid #e3edf2;border-radius:9px;background:#fff}.oe-census-query-grid strong{font-size:8px;color:#214b70}.oe-census-query-grid span{font-size:8px;color:#7890a5;text-align:right}
@media(max-width:780px){.oe-census-head{grid-template-columns:1fr}.oe-census-controls{justify-content:flex-start;flex-wrap:wrap}.oe-census-summary{grid-template-columns:1fr 1fr}.oe-census-query-grid{grid-template-columns:1fr}}
@media(max-width:520px){.oe-census-summary{grid-template-columns:1fr}.oe-census-controls{align-items:stretch;flex-direction:column}.oe-census-controls input{width:100%}}


/* V11.1 Step 9C — file persistante Outbound OE */
.oe-queue-card{margin:14px 0 16px;padding:16px;border:1px solid #bfe3db;border-radius:14px;background:#f6fbf9}
.oe-queue-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end}
.oe-queue-head>div:first-child{display:grid;gap:4px}.oe-queue-head strong{font-size:13px;color:#0b4c45}.oe-queue-head small{font-size:9px;line-height:1.45;color:#68879a;max-width:760px}
.oe-queue-controls{display:flex;align-items:end;gap:9px;flex-wrap:wrap;justify-content:flex-end}.oe-queue-controls label{display:grid;gap:5px}.oe-queue-controls label>span{font-size:8px;font-weight:900;letter-spacing:.4px;text-transform:uppercase;color:#6a8499}.oe-queue-controls input{width:105px;border:1px solid #cfe3df;border-radius:9px;background:#fff;padding:9px 10px;color:#173c65;font-size:10px}
.oe-queue-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.oe-queue-summary>div{padding:11px 12px;border:1px solid #d7e9e4;border-radius:11px;background:#fff;display:grid;gap:3px}.oe-queue-summary span{font-size:8px;font-weight:900;letter-spacing:.45px;text-transform:uppercase;color:#6b8398}.oe-queue-summary strong{font-size:20px;color:#0c335d}.oe-queue-summary small{font-size:8px;color:#7c91a3}
.oe-queue-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:12px;padding:9px 10px;border:1px solid #dcebe7;border-radius:10px;background:#fff}.oe-queue-toolbar>div:first-child{display:grid;gap:2px;min-width:0}.oe-queue-toolbar strong{font-size:9px;color:#214b70}.oe-queue-toolbar span{font-size:8px;color:#7890a5}.oe-queue-toolbar-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.oe-queue-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(320px,.82fr);gap:12px;margin-top:12px;align-items:start}.oe-queue-list{border:1px solid #dcebe7;border-radius:12px;background:#fff;overflow:hidden;max-height:620px;overflow-y:auto}.oe-queue-row{display:grid;grid-template-columns:24px minmax(0,1fr) 112px 48px;gap:10px;align-items:center;padding:10px 11px;border-bottom:1px solid #edf3f1;transition:background .15s,border-color .15s}.oe-queue-row:last-child{border-bottom:0}.oe-queue-row:hover,.oe-queue-row.active{background:#f4faf8}.oe-queue-row.selected{box-shadow:inset 3px 0 0 #16a085}.oe-queue-checkbox{width:15px;height:15px;accent-color:#0b8f84}.oe-queue-company-button{appearance:none;border:0;background:none;padding:0;margin:0;text-align:left;cursor:pointer;min-width:0}.oe-queue-company-button strong{display:block;font-size:10.5px;color:#173c65;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.oe-queue-score{font-size:14px;font-weight:900;color:#0a65bd;text-align:right}.oe-census-signal.secondary{background:#edf3f8;color:#55718a}
.oe-queue-detail{border:1px solid #dcebe7;border-radius:12px;background:#fff;min-height:180px;padding:13px;position:sticky;top:12px}.oe-queue-detail-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.oe-queue-detail-head>div:first-child{display:grid;gap:3px;min-width:0}.oe-queue-detail-head strong{font-size:12px;color:#173c65}.oe-queue-detail-score{display:flex;justify-content:space-between;align-items:end;margin-top:12px;padding:10px 11px;border-radius:10px;background:#f5f9fb}.oe-queue-detail-score span{font-size:8px;text-transform:uppercase;font-weight:900;letter-spacing:.4px;color:#6b8398}.oe-queue-detail-score strong{font-size:24px;color:#0a65bd}.oe-queue-score-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}.oe-queue-score-grid>div{display:flex;justify-content:space-between;gap:8px;padding:7px 8px;border:1px solid #e5eef1;border-radius:8px}.oe-queue-score-grid span{font-size:8px;color:#70889a}.oe-queue-score-grid strong{font-size:9px;color:#214b70}.oe-queue-detail-block{display:grid;gap:5px;margin-top:12px;padding-top:11px;border-top:1px solid #edf2f4}.oe-queue-detail-block>strong{font-size:10px;color:#173c65}.oe-queue-detail-block small,.oe-queue-detail-block p{font-size:8.5px;line-height:1.5;color:#627f93;margin:0}.oe-queue-detail-block a{font-size:8.5px;color:#0877c9;text-decoration:none;font-weight:800}.oe-queue-tags{display:flex;gap:5px;flex-wrap:wrap}.oe-queue-tags span{padding:3px 6px;border-radius:999px;background:#eff6f8;color:#4b6f87;font-size:7.5px;font-weight:800}.oe-queue-detail-meta{display:grid;gap:4px;margin-top:12px;padding:9px 10px;border-radius:9px;background:#f8fbfc}.oe-queue-detail-meta span{font-size:8px;color:#6f8799}.oe-queue-detail-meta strong{color:#385e78}.oe-queue-note{margin-top:10px;display:flex;gap:7px;align-items:flex-start;font-size:8.5px;line-height:1.45;color:#68879a}.oe-queue-note strong{color:#0b4c45;white-space:nowrap}
@media(max-width:980px){.oe-queue-head{grid-template-columns:1fr}.oe-queue-controls{justify-content:flex-start}.oe-queue-layout{grid-template-columns:1fr}.oe-queue-detail{position:static}.oe-queue-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.oe-queue-row{grid-template-columns:22px minmax(0,1fr) 92px 42px;gap:7px}.oe-queue-summary{grid-template-columns:1fr 1fr}.oe-queue-toolbar{align-items:flex-start;flex-direction:column}.oe-queue-toolbar-actions{justify-content:flex-start}.oe-queue-controls{align-items:stretch;flex-direction:column}.oe-queue-controls input{width:100%}}

/* V11.1 Step 9E — lot manuel + identification */
.oe-queue-batch-status{margin-top:9px;padding:8px 10px;border:1px solid #d6e8e4;border-radius:9px;background:#fff;font-size:8.5px;line-height:1.45;color:#627f93}.oe-queue-batch-status strong{color:#0b4c45}.oe-queue-toolbar-actions .btn.primary.small{white-space:nowrap}

/* V11.1 Step 10C — file active + réserve */
.oe-queue-summary-six{grid-template-columns:repeat(6,minmax(0,1fr))}
.oe-census-signal.seo-strong{background:#eaf0ff;color:#3559a8}
.oe-census-signal.seo-contextual{background:#f2f4ff;color:#6874a8}
.oe-census-signal.digital-strong{background:#f4ebff;color:#7650a7}
.oe-census-signal.digital-contextual{background:#f7f2fb;color:#806b94}
@media(max-width:1180px){.oe-queue-summary-six{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.oe-queue-summary-six{grid-template-columns:1fr 1fr}}

/* =========================================================
   V11.1 Step 11R — Admin production cleanup / harmonisation
   ========================================================= */
.production-hero{
  grid-template-columns:1fr;
  padding:24px 28px;
  margin-bottom:22px;
}
.production-hero h1{font-size:27px;margin-bottom:8px}
.production-hero p{max-width:860px}
.production-panel{margin-top:22px}
.production-card{box-shadow:none}
.production-details{
  margin-top:14px;
  border:1px solid #d9e8ef;
  border-radius:12px;
  background:#fbfdfe;
  overflow:hidden;
}
.production-details>summary{
  cursor:pointer;
  padding:11px 13px;
  color:#244f72;
  font-size:10px;
  font-weight:900;
  letter-spacing:.02em;
}
.production-details[open]>summary{border-bottom:1px solid #e4edf2;background:#f7fafc}
.production-details>.scaling-settings-grid,
.production-details>.scaling-actions,
.production-details>.analysis-log{margin-left:12px;margin-right:12px}
.production-details>.scaling-settings-grid{margin-top:12px}
.production-details>.scaling-actions{margin-bottom:12px}
.benchmark-details #benchmarkRunner{border-top:0;padding:14px}
.oe-prepared-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.oe-panel>.oe-queue-card:first-of-type{margin-top:4px}
.oe-panel .oe-queue-card{margin-bottom:18px}
.oe-panel .sales-row-actions .btn,
.sales-card .sales-row-actions .btn,
.inbound-actions .btn,
.report-actions .btn{white-space:nowrap}
.inbound-actions{flex-wrap:wrap}
.report-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.sales-main{grid-template-columns:minmax(190px,1.15fr) minmax(210px,1.2fr) minmax(135px,.72fr) 105px minmax(300px,auto)}
.sales-html-preview{width:100%;min-height:520px;border:0;background:#fff}
.scaling-panel .panel-head{margin-bottom:16px}
.scaling-panel .benchmark-stats{margin-bottom:0}
#salesCard .analysis-actions{margin-top:8px}
#salesCard .analysis-actions .btn{min-width:220px}
#benchmarkPanel .benchmark-selection{margin-top:12px}
#benchmarkPanel .manual-fallback.hidden{display:none!important}
#outboundOePanel .analysis-log{margin-top:12px}

/* Keep operational surfaces visually aligned across modes. */
#inboundPanel,#diagnosticUrlPanel,#outboundOePanel{
  border-color:#c9e0ea;
  box-shadow:0 9px 28px rgba(6,38,81,.045);
}
#inboundPanel .panel-head,#diagnosticUrlPanel .panel-head,#outboundOePanel .panel-head{
  margin-bottom:18px;
}
#inboundPanel .benchmark-stats>div,
#diagnosticUrlPanel .benchmark-stats>div,
#outboundOePanel .benchmark-stats>div,
#salesCard .benchmark-stats>div,
#reportsCard .benchmark-stats>div{
  min-height:76px;
}

@media(max-width:1250px){
  .sales-main{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .production-hero{padding:22px 20px}
  .oe-prepared-stats{grid-template-columns:1fr 1fr}
  .report-actions{justify-content:flex-start}
}


/* V11.1 Step 11S — final production harmonisation */
.technical-details, .method-details { margin-top: 12px; }
.technical-details > summary, .method-details > summary { cursor: pointer; font-weight: 700; }
.technical-details .auto-protocol-card, .method-details .scoring-method-card { margin-top: 10px; }
.ranking-table-wrap { max-height: 720px; overflow: auto; overscroll-behavior: contain; }
.ranking-table thead { position: sticky; top: 0; z-index: 2; background: var(--panel, #fff); }
.sales-row-actions { align-content: flex-start; }
.oe-prepared-card .sales-row-actions, #oePreparedList .sales-row-actions { min-width: 250px; }

/* =========================================================
   V11.1 Step 11Z — final UX cohesion before production freeze
   Requested-only changes: mode heroes, GEO city autocomplete,
   GEO spacing/action hierarchy, OE public-link affordance.
   ========================================================= */
.production-mode-hero{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
}
.production-mode-hero .production-hero-main{min-width:0}
.production-hero-actions{display:flex;align-items:center;justify-content:flex-end}
.btn.hero-action{
  color:#fff;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.34);
  box-shadow:none;
}
.btn.hero-action:hover{background:rgba(255,255,255,.20);border-color:rgba(255,255,255,.5)}

/* Restore the same vertical rhythm between the GEO launch/recent cards and campaign settings. */
.outbound-study-grid + .scaling-panel{margin-top:22px}

/* GEO commune autocomplete — suggestions are provided only for France. */
.city-autocomplete-field{position:relative;z-index:6}
.city-autocomplete-wrap{position:relative}
.city-suggestions{
  position:absolute;
  left:0;right:0;top:calc(100% + 6px);
  z-index:60;
  max-height:280px;
  overflow:auto;
  background:#fff;
  border:1px solid #bfd8e7;
  border-radius:12px;
  box-shadow:0 18px 42px rgba(6,38,81,.16);
  padding:6px;
}
.city-suggestion{
  width:100%;
  border:0;
  background:#fff;
  color:var(--text);
  text-align:left;
  padding:10px 11px;
  border-radius:9px;
  cursor:pointer;
  display:grid;
  gap:3px;
}
.city-suggestion:hover,.city-suggestion:focus{background:#f0f8fc;outline:none}
.city-suggestion strong{font-size:13px;color:#0b3159}
.city-suggestion span{font-size:10px;color:#6a8298;line-height:1.35}
.city-selection-hint{display:block;margin-top:6px;font-size:9px;line-height:1.4;color:#6d859a}
.city-selection-hint.is-confirmed{color:#14765a;font-weight:750}
.city-selection-hint.is-warning{color:#9a6714}

/* Make a first GEO analysis visually primary; completed work becomes secondary. */
#analyzeBtn.analysis-primary-cta{
  min-height:50px;
  font-size:14px;
  box-shadow:0 10px 24px rgba(25,125,233,.24);
}
#analyzeBtn.analysis-done-cta{
  background:#f5f9fb;
  color:#54708a;
  border:1px solid #d6e5ed;
  box-shadow:none;
}
#analyzeBtn.analysis-partial-cta{
  min-height:48px;
  box-shadow:0 8px 20px rgba(25,125,233,.18);
}

@media(max-width:760px){
  .production-mode-hero{grid-template-columns:1fr;gap:16px}
  .production-hero-actions{justify-content:flex-start}
  .btn.hero-action{width:100%}
}


/* Step 11AP — cross-mode existing-report decision */
.cross-mode-report-dialog{width:min(620px,calc(100vw - 32px));border:0;border-radius:18px;padding:0;background:transparent;box-shadow:none}
.cross-mode-report-dialog::backdrop{background:rgba(7,24,56,.58);backdrop-filter:blur(2px)}
.cross-mode-report-dialog-card{display:grid;gap:18px;padding:22px;border:1px solid #d8e1ee;border-radius:18px;background:#fff;box-shadow:0 22px 70px rgba(7,24,56,.24)}
.cross-mode-report-dialog-copy{display:grid;gap:6px}
.cross-mode-report-dialog-copy strong{font-size:17px;color:#0b2450}
.cross-mode-report-dialog-copy span{font-size:12px;color:#64748b;line-height:1.45}
.cross-mode-report-dialog-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
@media(max-width:640px){.cross-mode-report-dialog-actions{justify-content:stretch}.cross-mode-report-dialog-actions .btn{flex:1 1 100%}}


/* V11.1 Step 11AQ — website visibility in Outbound GEO / OE report rows */
.report-company-site{
  display:block;
  margin-top:3px;
  max-width:100%;
  color:#0e5f91;
  font-size:10px;
  line-height:1.3;
  font-weight:800;
  overflow-wrap:anywhere;
  text-decoration:none;
}
.report-company-site:hover{text-decoration:underline}
.sales-company .report-company-site{font-size:9px}


/* V11.1 Step 11AS — commercial follow-up actions on report rows */
.commercial-event-btn{
  white-space:nowrap;
}
.commercial-event-btn.is-confirmed{
  color:#116149;
  background:#eaf8f1;
  border-color:#a9dcc9;
  box-shadow:inset 0 0 0 1px rgba(17,97,73,.03);
}
.commercial-event-btn.is-confirmed:hover{
  color:#0b513d;
  background:#def3e9;
  border-color:#89ccb6;
}
.commercial-event-btn.is-confirmed:disabled{
  opacity:1;
  cursor:default;
}

/* V11.1 Step 11AT — global KPI dashboard */
.kpi-open-btn{
  min-width:72px;
  border-color:#b9d8ee!important;
  color:#0b5f9f!important;
  background:#f5fbff!important;
}
.kpi-open-btn:hover{background:#eaf6fe!important;border-color:#8bc5e8!important}
.kpi-dialog{
  width:min(1120px,calc(100vw - 28px));
  max-height:min(860px,calc(100vh - 28px));
  border:0;border-radius:22px;padding:0;background:transparent;box-shadow:none;
}
.kpi-dialog::backdrop{background:rgba(7,24,56,.58);backdrop-filter:blur(3px)}
.kpi-dialog-card{
  display:grid;gap:22px;padding:26px;
  border:1px solid #d7e4ed;border-radius:22px;background:#fff;
  box-shadow:0 26px 90px rgba(7,24,56,.25);
  overflow:auto;max-height:calc(100vh - 28px)
}
.kpi-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.kpi-dialog-head .eyebrow{color:#0c7fcb}
.kpi-dialog-head h2{margin:5px 0 5px;font-size:27px;letter-spacing:-.5px;color:#0b2450}
.kpi-dialog-head p{margin:0;color:#64748b;font-size:13px;line-height:1.5}
.kpi-dialog-head-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.kpi-close-btn{
  width:36px;height:36px;border:1px solid #d8e6ee;border-radius:10px;
  background:#fff;color:#526b80;font-size:24px;line-height:1;cursor:pointer
}
.kpi-close-btn:hover{background:#f5f9fb;color:#0b2450}
.kpi-loading{font-size:12px;color:#64748b}
.kpi-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px}
.kpi-summary-card{
  min-width:0;padding:16px 15px;border:1px solid #dce8f0;border-radius:15px;
  background:linear-gradient(180deg,#fbfdff,#f5faff);display:grid;gap:6px
}
.kpi-summary-card span{font-size:10px;font-weight:900;letter-spacing:.35px;text-transform:uppercase;color:#668197}
.kpi-summary-card strong{font-size:28px;line-height:1;color:#0b4e82;letter-spacing:-.8px}
.kpi-summary-card small{font-size:10px;color:#7b8fa0;line-height:1.35}
.kpi-breakdown{display:grid;gap:12px}
.kpi-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px}
.kpi-section-head strong{font-size:14px;color:#153b5d}
.kpi-section-head span{font-size:10px;color:#71879a;text-align:right}
.kpi-table-wrap{overflow:auto;border:1px solid #dde8ef;border-radius:14px}
.kpi-table{width:100%;border-collapse:collapse;min-width:880px;background:#fff}
.kpi-table th,.kpi-table td{padding:12px 11px;border-bottom:1px solid #e9f0f4;text-align:right;font-size:11px;white-space:nowrap}
.kpi-table th{background:#f6f9fb;color:#617b90;font-size:9px;text-transform:uppercase;letter-spacing:.35px;font-weight:900}
.kpi-table th:first-child,.kpi-table td:first-child{text-align:left}
.kpi-table tbody tr:last-child td{border-bottom:0}
.kpi-table tbody tr:hover{background:#fbfdff}
.kpi-footnote{margin:0;font-size:10px;color:#7a8e9f;line-height:1.45}
@media(max-width:1050px){.kpi-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){
  .kpi-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}
  .kpi-dialog-card{padding:18px;gap:18px;max-height:calc(100vh - 16px);border-radius:18px}
  .kpi-dialog-head{align-items:flex-start}
  .kpi-dialog-head h2{font-size:23px}
  .kpi-dialog-head-actions .btn{display:none}
  .kpi-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpi-section-head{display:grid;gap:4px}
  .kpi-section-head span{text-align:left}
  .topbar-actions{gap:8px}
}

/* ========================================================================== */
/* STEP 11AW-C — séquences de relance + prospect figé                        */
/* ========================================================================== */
.followup-btn{border-color:#b9d9ea;background:#f8fcff}
.followup-email-dialog{width:min(760px,calc(100vw - 32px));max-width:760px;border:0;border-radius:20px;padding:0;background:#fff;box-shadow:0 24px 70px rgba(8,44,87,.24)}
.followup-email-dialog::backdrop{background:rgba(5,25,48,.54);backdrop-filter:blur(2px)}
.followup-dialog-shell{padding:24px}
.followup-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:16px;border-bottom:1px solid #e5edf2}
.followup-dialog-kicker{display:block;margin-bottom:6px;font-size:11px;font-weight:800;letter-spacing:.12em;color:#0b78b7}
.followup-dialog-head h3{margin:0;color:#082c57;font-size:24px;line-height:1.15}
.followup-dialog-head p{margin:7px 0 0;color:#668096;font-size:13px}
.followup-dialog-close{width:34px;height:34px;border:1px solid #d7e4ec;border-radius:10px;background:#fff;color:#58748a;font-size:24px;line-height:1;cursor:pointer}
.followup-dialog-subject{margin:16px 0 12px;padding:12px 14px;border:1px solid #e0eaf0;border-radius:11px;background:#f8fbfd;color:#173b60;font-size:14px}
.followup-dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.followup-dialog-frame{display:block;width:100%;height:min(560px,56vh);border:1px solid #dce7ed;border-radius:12px;background:#fff}
@media(max-width:680px){.followup-dialog-shell{padding:17px}.followup-dialog-head h3{font-size:21px}.followup-dialog-frame{height:52vh}}

/* V11.1 Step 11AX-B — enriched M1/M2/M3 KPI dashboard */
.kpi-dialog{width:min(1240px,calc(100vw - 28px))}
.kpi-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.kpi-step-table{min-width:960px;table-layout:fixed}
.kpi-step-table th,.kpi-step-table td{text-align:center;font-variant-numeric:tabular-nums}
.kpi-step-table th{white-space:normal;line-height:1.25}
.kpi-step-table th:first-child,.kpi-step-table td:first-child{text-align:left}
.kpi-mode-table{min-width:1180px;table-layout:fixed}
.kpi-mode-table th,.kpi-mode-table td{text-align:center;vertical-align:middle;font-variant-numeric:tabular-nums}
.kpi-mode-table th{white-space:normal;line-height:1.25}
.kpi-mode-table th:first-child,.kpi-mode-table td:first-child{text-align:left}
.kpi-step-triplet{display:block;margin-top:4px;font-size:9px;line-height:1.35;color:#748a9c;white-space:nowrap}
.kpi-step-triplet b{color:#315c7c;font-weight:900}
.kpi-cell-meta{display:block;margin-top:3px;font-size:9px;color:#7c91a2}
.kpi-mode-table td strong{color:#153b5d}
.kpi-footnote strong{color:#536f85}
@media(max-width:1050px){.kpi-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.kpi-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V11.1 Step 11BA — indication visuelle de cadence commerciale */
.followup-cadence{
  display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border-radius:999px;
  border:1px solid #d9e5ec;background:#f7fafc;color:#627b90;
  font-size:9px;font-weight:900;line-height:1;white-space:nowrap;letter-spacing:.01em
}
.followup-cadence.is-upcoming{background:#f6f9fb;border-color:#d9e5ec;color:#647b8d}
.followup-cadence.is-due{background:#fff6e8;border-color:#efbd70;color:#9a5a05}
.followup-cadence.is-late{background:#fff0ef;border-color:#edbeb8;color:#a33a31}
.followup-cadence.is-current{background:#eefaf4;border-color:#9ed8bb;color:#247a55}
@media(max-width:620px){
  .inbound-actions .followup-cadence{width:100%;justify-content:center;box-sizing:border-box}
}

/* =========================================================
   Outbound GEO — mailing row UX v2
   One card, stable M1/M2/M3 controls, no nested mail card.
   ========================================================= */
#reportQueue .geo-sales-row{
  position:relative;
}
#reportQueue .geo-card-cadence{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  flex-wrap:wrap;
  padding:10px 16px 0;
}
#reportQueue .geo-card-cadence .followup-cadence{
  min-height:24px;
  padding:0 9px;
  font-size:8px;
}
#reportQueue .geo-sales-main{
  grid-template-columns:minmax(165px,1fr) minmax(190px,1.08fr) minmax(120px,.72fr) 88px minmax(330px,1.5fr);
  gap:12px;
  align-items:center;
  padding:13px 16px;
}
#reportQueue .geo-mail-workflow{
  display:grid;
  gap:7px;
  min-width:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  justify-content:stretch;
}
#reportQueue .geo-mail-sequence-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
  width:100%;
  min-width:0;
}
#reportQueue .geo-mail-sequence-grid .btn{
  width:100%;
  min-width:0;
  min-height:34px;
  padding:0 8px;
  justify-content:center;
  text-align:center;
  white-space:nowrap;
}
#reportQueue .geo-mail-sequence-grid .btn:disabled{
  opacity:1;
  color:#9aa9b5;
  background:#f4f7f9;
  border-color:#e2e9ee;
  box-shadow:none;
  cursor:not-allowed;
}
#reportQueue .geo-commercial-footer{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:14px;
  padding:9px 16px 11px;
  border-top:1px solid #e5eef4;
  background:#fbfdfe;
}
#reportQueue .geo-note-action,
#reportQueue .geo-reset-action,
#reportQueue .geo-freeze-action,
#reportQueue .geo-right-actions{
  display:flex;
  align-items:center;
  min-width:0;
}
#reportQueue .geo-note-action{justify-content:flex-start}
#reportQueue .geo-right-actions{justify-content:flex-end;gap:4px}
#reportQueue .geo-reset-action,
#reportQueue .geo-freeze-action{justify-content:flex-end}
#reportQueue .geo-note-action .btn,
#reportQueue .geo-reset-action .btn,
#reportQueue .geo-freeze-action .btn{
  min-height:30px;
  padding:0 8px;
  border-color:transparent;
  background:transparent;
  color:#8193a2;
  font-size:9px;
  box-shadow:none;
}
#reportQueue .geo-note-button{
  display:inline-flex;
  align-items:center;
  gap:5px;
}
#reportQueue .geo-note-icon-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:14px;
  height:14px;
}
#reportQueue .geo-note-icon{
  font-size:14px;
  line-height:1;
}
#reportQueue .geo-note-dot{
  position:absolute;
  top:-2px;
  right:-4px;
  width:7px;
  height:7px;
  border-radius:999px;
  background:#18a36f;
  border:2px solid #fbfdfe;
  box-sizing:content-box;
}
#reportQueue .geo-note-button:hover,
#reportQueue .geo-note-button.has-note{
  border-color:#d4e5dc;
  background:#f3fbf7;
  color:#406857;
}
#reportQueue .geo-reset-action .btn:hover{
  border-color:#f0caca;
  background:#fff5f5;
  color:#a33a31;
}
#reportQueue .geo-freeze-action .btn:hover,
#reportQueue .geo-freeze-action .btn.is-frozen-toggle{
  border-color:#d7e0e6;
  background:#f3f6f8;
  color:#536b7d;
}
#reportQueue .geo-conversion-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}
#reportQueue .geo-conversion-actions .commercial-event-btn{
  min-height:34px;
  padding:0 14px;
  border-radius:9px;
  font-weight:900;
  box-shadow:none;
}
#reportQueue .geo-conversion-actions [data-commercial-event="MEETING_CONFIRMED"]{
  color:#0b5f9f;
  background:#eef8ff;
  border-color:#99cce9;
}
#reportQueue .geo-conversion-actions [data-commercial-event="MEETING_CONFIRMED"]:hover{
  color:#084f86;
  background:#e2f3ff;
  border-color:#77b9df;
}
#reportQueue .geo-conversion-actions [data-commercial-event="MEETING_CONFIRMED"].is-confirmed{
  color:#fff;
  background:#0b79c9;
  border-color:#0b79c9;
}
#reportQueue .geo-conversion-actions [data-commercial-event="CLIENT_CONFIRMED"]{
  color:#fff;
  background:#14845f;
  border-color:#14845f;
  box-shadow:0 4px 12px rgba(20,132,95,.15);
}
#reportQueue .geo-conversion-actions [data-commercial-event="CLIENT_CONFIRMED"]:hover{
  color:#fff;
  background:#0f7452;
  border-color:#0f7452;
}
#reportQueue .geo-conversion-actions [data-commercial-event="CLIENT_CONFIRMED"].is-confirmed{
  color:#fff;
  background:#0c6949;
  border-color:#0c6949;
  box-shadow:0 4px 12px rgba(12,105,73,.18);
}
#reportQueue .geo-sales-row.is-frozen{
  background:#f1f4f6;
  border-color:#d5dee4;
}
#reportQueue .geo-sales-row.is-frozen .geo-card-cadence,
#reportQueue .geo-sales-row.is-frozen .geo-sales-main,
#reportQueue .geo-sales-row.is-frozen .geo-note-action,
#reportQueue .geo-sales-row.is-frozen .geo-reset-action,
#reportQueue .geo-sales-row.is-frozen .geo-conversion-actions{
  filter:grayscale(1);
  opacity:.55;
}
#reportQueue .geo-sales-row.is-frozen .geo-commercial-footer{
  background:#eef2f4;
}
#reportQueue .geo-sales-row.is-frozen .geo-freeze-action{
  filter:none;
  opacity:1;
}
@media(max-width:980px){
  #reportQueue .geo-sales-main{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  #reportQueue .geo-mail-workflow{
    grid-column:1/-1;
  }
  #reportQueue .geo-mail-sequence-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:760px){
  #reportQueue .geo-sales-main{grid-template-columns:1fr}
  #reportQueue .geo-mail-sequence-grid{grid-template-columns:1fr}
  #reportQueue .geo-commercial-footer{
    grid-template-columns:1fr;
    justify-items:stretch;
  }
  #reportQueue .geo-note-action{order:2;justify-content:center}
  #reportQueue .geo-conversion-actions{order:1}
  #reportQueue .geo-right-actions{order:3;justify-content:center;flex-wrap:wrap}
}




/* =========================================================
   Outbound GEO — unified Reports & Mailing queue
   ========================================================= */
.geo-reports-mailing-card .geo-combined-panel-head{align-items:flex-start}
.geo-combined-status-pills{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.geo-reports-mailing-card .geo-combined-stats{grid-template-columns:repeat(8,minmax(0,1fr))}
.geo-combined-actions{gap:8px;margin-bottom:6px}
.geo-combined-status-texts{display:flex;gap:8px 18px;align-items:center;flex-wrap:wrap;margin:2px 0 10px}
.geo-combined-status-texts .auto-run-status{margin:0}
.geo-combined-queue-head{align-items:center}
.geo-unified-cards{gap:11px}

#reportQueue .geo-unified-row{position:relative}
#reportQueue .geo-unified-main{
  display:grid;
  grid-template-columns:minmax(205px,1.1fr) minmax(145px,.7fr) minmax(220px,1.15fr) minmax(355px,1.65fr);
  column-gap:24px;
  row-gap:14px;
  align-items:center;
  padding:14px 16px;
}
#reportQueue .geo-unified-company,
#reportQueue .geo-unified-report,
#reportQueue .geo-unified-contact,
#reportQueue .geo-unified-actions{
  min-width:0;
}
#reportQueue .geo-unified-company,
#reportQueue .geo-unified-report,
#reportQueue .geo-unified-contact{
  display:flex;
  flex-direction:column;
  gap:4px;
}
#reportQueue .geo-unified-company>strong,
#reportQueue .geo-unified-contact-head>strong{
  color:#052d5b;
  font-size:11px;
  line-height:1.25;
}
#reportQueue .geo-unified-company>span,
#reportQueue .geo-unified-contact>span,
#reportQueue .geo-unified-contact-meta span{
  color:#5f7890;
  font-size:9px;
  line-height:1.35;
}
#reportQueue .geo-unified-company .report-company-site{
  color:#0e5f91;
  font-size:9px;
  font-weight:800;
  line-height:1.3;
  overflow-wrap:anywhere;
  text-decoration:none;
}
#reportQueue .geo-unified-company .report-company-site:hover{text-decoration:underline}
#reportQueue .geo-unified-report{gap:5px}
#reportQueue .geo-unified-scoreline{display:flex;align-items:baseline;gap:5px}
#reportQueue .geo-unified-scoreline strong{font-size:11px;color:#052d5b}
#reportQueue .geo-unified-scoreline span{font-size:8px;color:#6b8398;font-weight:800}
#reportQueue .geo-unified-report-status{margin-top:2px}
#reportQueue .geo-unified-contact-head{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
#reportQueue .geo-unified-contact-head .ready-badge,
#reportQueue .geo-unified-contact-head .wait-badge{padding:4px 6px;font-size:8px}
#reportQueue .geo-unified-contact-meta{display:flex;gap:4px 8px;flex-wrap:wrap}
#reportQueue .geo-contact-linkedin{margin-top:3px;display:flex;align-items:center}
#reportQueue .geo-linkedin-button{
  min-height:28px;
  padding:6px 10px;
  border-color:#cfe1ec;
  background:#f6fafc;
  color:#0b5f8f;
  font-size:9px;
  font-weight:900;
  box-shadow:none;
}
#reportQueue .geo-linkedin-button:hover{
  border-color:#9cc9df;
  background:#eef7fb;
  color:#074c75;
}
#reportQueue .geo-unified-actions{display:grid;gap:8px}
#reportQueue .geo-unified-action-group{display:grid;gap:5px;min-width:0}
#reportQueue .geo-action-group-label{
  color:#6f8799;
  font-size:8px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
#reportQueue .geo-report-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#reportQueue .geo-report-action-row .btn{width:100%;min-width:0;min-height:32px;justify-content:center;white-space:nowrap}
#reportQueue .geo-report-action-row .btn:disabled{
  opacity:1;color:#9aa9b5;background:#f4f7f9;border-color:#e2e9ee;box-shadow:none;cursor:not-allowed
}
#reportQueue .geo-mail-placeholder{
  min-height:42px;
  display:flex;
  align-items:center;
  padding:8px 10px;
  border:1px dashed #d8e5ec;
  border-radius:9px;
  background:#f8fbfd;
  color:#70879a;
  font-size:9px;
  line-height:1.35;
}
#reportQueue .geo-sales-row.is-frozen .geo-unified-main{filter:grayscale(1);opacity:.55}

@media(max-width:1220px){
  .geo-reports-mailing-card .geo-combined-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  #reportQueue .geo-unified-main{grid-template-columns:minmax(180px,1fr) minmax(135px,.65fr) minmax(205px,1fr);column-gap:22px}
  #reportQueue .geo-unified-actions{grid-column:1/-1;grid-template-columns:minmax(210px,.7fr) minmax(420px,1.3fr);align-items:end}
}
@media(max-width:860px){
  .geo-reports-mailing-card .geo-combined-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  #reportQueue .geo-unified-main{grid-template-columns:1fr 1fr}
  #reportQueue .geo-unified-actions{grid-column:1/-1;grid-template-columns:1fr}
}
@media(max-width:620px){
  .geo-combined-status-pills{justify-content:flex-start}
  .geo-reports-mailing-card .geo-combined-stats{grid-template-columns:1fr 1fr}
  #reportQueue .geo-unified-main{grid-template-columns:1fr}
  #reportQueue .geo-unified-actions{grid-column:auto}
  #reportQueue .geo-report-action-row{grid-template-columns:1fr}
}

/* Outbound GEO — note prospect */
.geo-note-dialog{
  width:min(620px,calc(100vw - 32px));
  border:0;
  border-radius:20px;
  padding:0;
  background:#fff;
  box-shadow:0 24px 70px rgba(8,44,87,.24);
}
.geo-note-dialog::backdrop{
  background:rgba(5,25,48,.54);
  backdrop-filter:blur(2px);
}
.geo-note-dialog-shell{padding:24px}
.geo-note-dialog-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:16px;
  border-bottom:1px solid #e5edf2;
}
.geo-note-dialog-kicker{
  display:block;
  margin-bottom:6px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  color:#0b78b7;
}
.geo-note-dialog-head h3{
  margin:0;
  color:#082c57;
  font-size:23px;
  line-height:1.15;
}
.geo-note-dialog-head p{
  margin:7px 0 0;
  color:#668096;
  font-size:13px;
}
.geo-note-dialog-close{
  width:34px;
  height:34px;
  border:1px solid #d7e4ec;
  border-radius:10px;
  background:#fff;
  color:#58748a;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.geo-note-dialog-field{
  display:grid;
  gap:8px;
  margin-top:18px;
}
.geo-note-dialog-field > span{
  color:#173b60;
  font-size:12px;
  font-weight:800;
}
.geo-note-dialog-field textarea{
  width:100%;
  min-height:210px;
  resize:vertical;
  box-sizing:border-box;
  padding:14px 15px;
  border:1px solid #dce7ed;
  border-radius:12px;
  background:#fbfdfe;
  color:#173b60;
  font:inherit;
  font-size:14px;
  line-height:1.55;
  outline:none;
}
.geo-note-dialog-field textarea:focus{
  border-color:#83bfe4;
  box-shadow:0 0 0 3px rgba(11,121,201,.09);
  background:#fff;
}
.geo-note-dialog-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin-top:14px;
}
.geo-note-dialog-status{
  margin-right:auto;
  color:#a33a31;
  font-size:12px;
}
@media(max-width:640px){
  .geo-note-dialog-shell{padding:17px}
  .geo-note-dialog-head h3{font-size:20px}
  .geo-note-dialog-actions{flex-wrap:wrap}
  .geo-note-dialog-status{width:100%;margin-right:0}
}

/* Outbound GEO — cadence intégrée sous l’URL + alerte visuelle de retard */
#reportQueue .geo-company-cadence{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-top:3px;
}
#reportQueue .geo-company-cadence .followup-cadence{
  min-height:24px;
  padding:0 9px;
  font-size:8px;
}
#reportQueue .geo-sales-row.has-overdue-followup{
  border-color:#d84b45;
  box-shadow:0 0 0 1px rgba(216,75,69,.12);
}
#reportQueue .geo-sales-row.has-overdue-followup .followup-cadence.is-late{
  background:#fff0ef;
  border-color:#d84b45;
  color:#a52f2a;
}
#reportQueue .geo-unified-report-overview{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
}
#reportQueue .geo-unified-report-overview .geo-unified-report-status{margin-top:0}
#reportQueue .geo-unified-score-row{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}

/* =========================================================
   UX commerciale harmonisée — Outbound OE / Inbound FORM / Diagnostic URL
   Même structure visuelle que la file unifiée Outbound GEO, sans modifier
   les logiques métier propres à chaque mode.
   ========================================================= */
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-sales-row{
  position:relative;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-main{
  display:grid;
  grid-template-columns:minmax(205px,1.1fr) minmax(145px,.7fr) minmax(220px,1.15fr) minmax(355px,1.65fr);
  column-gap:24px;
  row-gap:14px;
  align-items:center;
  padding:14px 16px;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-company,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-report,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-contact,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-actions{
  min-width:0;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-company,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-report,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-contact{
  display:flex;
  flex-direction:column;
  gap:4px;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-company>strong,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-contact-head>strong{
  color:#052d5b;
  font-size:11px;
  line-height:1.25;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-company>span,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-contact>span,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-contact-meta span{
  color:#5f7890;
  font-size:9px;
  line-height:1.35;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .report-company-site,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .unified-context-link{
  color:#0e5f91;
  font-size:9px;
  font-weight:800;
  line-height:1.3;
  overflow-wrap:anywhere;
  text-decoration:none;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .report-company-site:hover,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .unified-context-link:hover{text-decoration:underline}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-report{gap:5px}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-report-overview{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-score-row{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-scoreline{display:flex;align-items:baseline;gap:5px}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-scoreline strong{font-size:11px;color:#052d5b}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-scoreline span{font-size:8px;color:#6b8398;font-weight:800}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-contact-head{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-contact-head .ready-badge,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-contact-head .wait-badge{padding:4px 6px;font-size:8px}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-contact-meta{display:flex;gap:4px 8px;flex-wrap:wrap}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-contact-linkedin{margin-top:3px;display:flex;align-items:center}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-linkedin-button{
  min-height:28px;
  padding:6px 10px;
  border-color:#cfe1ec;
  background:#f6fafc;
  color:#0b5f8f;
  font-size:9px;
  font-weight:900;
  box-shadow:none;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-linkedin-button:hover{
  border-color:#9cc9df;background:#eef7fb;color:#074c75;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .unified-context-summary{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  color:#6a8194;
  font-size:8px;
  line-height:1.35;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-company-cadence{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-top:3px;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-company-cadence .followup-cadence{
  min-height:24px;
  padding:0 9px;
  font-size:8px;
}
:is(#oePreparedList,#inboundQueue) .geo-sales-row.has-overdue-followup{
  border-color:#d84b45;
  box-shadow:0 0 0 1px rgba(216,75,69,.12);
}
:is(#oePreparedList,#inboundQueue) .geo-sales-row.has-overdue-followup .followup-cadence.is-late{
  background:#fff0ef;border-color:#d84b45;color:#a52f2a;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-actions{display:grid;gap:8px}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-action-group{display:grid;gap:5px;min-width:0}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-action-group-label{
  color:#6f8799;
  font-size:8px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-report-action-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-report-action-row .btn{
  width:100%;min-width:0;min-height:32px;justify-content:center;white-space:nowrap;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-report-action-row .btn:disabled{
  opacity:1;color:#9aa9b5;background:#f4f7f9;border-color:#e2e9ee;box-shadow:none;cursor:not-allowed;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-mail-workflow{
  display:grid;
  gap:7px;
  min-width:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-mail-sequence-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
  width:100%;
  min-width:0;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-mail-sequence-grid .btn{
  width:100%;min-width:0;min-height:34px;padding:0 8px;justify-content:center;text-align:center;white-space:nowrap;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-mail-sequence-grid .btn:disabled{
  opacity:1;color:#9aa9b5;background:#f4f7f9;border-color:#e2e9ee;box-shadow:none;cursor:not-allowed;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .unified-prepare-mail-btn{
  width:100%;
  min-height:34px;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .unified-single-action-row .commercial-event-btn{
  grid-column:1/-1;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-commercial-footer{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:14px;
  padding:9px 16px 11px;
  border-top:1px solid #e5eef4;
  background:#fbfdfe;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-note-action,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-reset-action,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-freeze-action,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-right-actions{
  display:flex;align-items:center;min-width:0;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-note-action{justify-content:flex-start}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-right-actions{justify-content:flex-end;gap:4px}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-reset-action,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-freeze-action{justify-content:flex-end}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-note-action .btn,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-reset-action .btn,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-freeze-action .btn{
  min-height:30px;padding:0 8px;border-color:transparent;background:transparent;color:#8193a2;font-size:9px;box-shadow:none;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-note-button{display:inline-flex;align-items:center;gap:5px}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-note-icon-wrap{
  position:relative;display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-note-icon{font-size:14px;line-height:1}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-note-dot{
  position:absolute;top:-2px;right:-4px;width:7px;height:7px;border-radius:999px;background:#18a36f;border:2px solid #fbfdfe;box-sizing:content-box;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-note-button:hover,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-note-button.has-note{
  border-color:#d4e5dc;background:#f3fbf7;color:#406857;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-reset-action .btn:hover{
  border-color:#f0caca;background:#fff5f5;color:#a33a31;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-freeze-action .btn:hover,
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-freeze-action .btn.is-frozen-toggle{
  border-color:#d7e0e6;background:#f3f6f8;color:#536b7d;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-conversion-actions{
  display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-conversion-actions .commercial-event-btn{
  min-height:34px;padding:0 14px;border-radius:9px;font-weight:900;box-shadow:none;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-conversion-actions [data-commercial-event="MEETING_CONFIRMED"]{
  color:#0b5f9f;background:#eef8ff;border-color:#99cce9;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-conversion-actions [data-commercial-event="MEETING_CONFIRMED"]:hover{
  color:#084f86;background:#e2f3ff;border-color:#77b9df;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-conversion-actions [data-commercial-event="MEETING_CONFIRMED"].is-confirmed{
  color:#fff;background:#0b79c9;border-color:#0b79c9;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-conversion-actions [data-commercial-event="CLIENT_CONFIRMED"]{
  color:#fff;background:#14845f;border-color:#14845f;box-shadow:0 4px 12px rgba(20,132,95,.15);
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-conversion-actions [data-commercial-event="CLIENT_CONFIRMED"]:hover{
  color:#fff;background:#0f7452;border-color:#0f7452;
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-conversion-actions [data-commercial-event="CLIENT_CONFIRMED"].is-confirmed{
  color:#fff;background:#0c6949;border-color:#0c6949;box-shadow:0 4px 12px rgba(12,105,73,.18);
}
:is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .unified-delete-btn{
  min-width:30px;
  min-height:30px;
}
:is(#oePreparedList,#inboundQueue) .geo-sales-row.is-frozen{
  background:#f1f4f6;
  border-color:#d5dee4;
}
:is(#oePreparedList,#inboundQueue) .geo-sales-row.is-frozen .geo-unified-main,
:is(#oePreparedList,#inboundQueue) .geo-sales-row.is-frozen .geo-note-action,
:is(#oePreparedList,#inboundQueue) .geo-sales-row.is-frozen .geo-reset-action,
:is(#oePreparedList,#inboundQueue) .geo-sales-row.is-frozen .geo-conversion-actions,
:is(#oePreparedList,#inboundQueue) .geo-sales-row.is-frozen .unified-delete-btn{
  filter:grayscale(1);
  opacity:.55;
}
:is(#oePreparedList,#inboundQueue) .geo-sales-row.is-frozen .geo-commercial-footer{background:#eef2f4}
:is(#oePreparedList,#inboundQueue) .geo-sales-row.is-frozen .geo-freeze-action{filter:none;opacity:1}

@media(max-width:1220px){
  :is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-main{
    grid-template-columns:minmax(180px,1fr) minmax(135px,.65fr) minmax(205px,1fr);
    column-gap:22px;
  }
  :is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-actions{
    grid-column:1/-1;
    grid-template-columns:minmax(210px,.7fr) minmax(420px,1.3fr);
    align-items:end;
  }
}
@media(max-width:860px){
  :is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-main{grid-template-columns:1fr 1fr}
  :is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-actions{grid-column:1/-1;grid-template-columns:1fr}
}
@media(max-width:760px){
  :is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-commercial-footer{
    grid-template-columns:1fr;
    justify-items:stretch;
  }
  :is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-note-action{order:2;justify-content:center}
  :is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-conversion-actions{order:1}
  :is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-right-actions{order:3;justify-content:center;flex-wrap:wrap}
}
@media(max-width:620px){
  :is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-main{grid-template-columns:1fr}
  :is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-unified-actions{grid-column:auto}
  :is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-report-action-row,
  :is(#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-mail-sequence-grid{grid-template-columns:1fr}
}

/* =========================================================
   Prospect admin actions — cold status, reminders, unified footer
   ========================================================= */
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-note-action{
  gap:6px;
  flex-wrap:wrap;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-reminder-button{
  display:inline-flex;
  align-items:center;
  gap:5px;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-calendar-icon{
  font-size:12px;
  line-height:1;
  width:13px;
  height:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1.5px solid currentColor;
  border-radius:3px;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .prospect-cold-btn{
  min-height:34px;
  padding:0 14px;
  border-radius:9px;
  font-weight:900;
  color:#b43d3d;
  background:#fff5f5;
  border-color:#e6aaaa;
  box-shadow:none;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .prospect-cold-btn:hover{
  color:#9b2f2f;
  background:#ffeaea;
  border-color:#d88787;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .prospect-cold-btn.is-cold{
  color:#fff;
  background:#c84545;
  border-color:#c84545;
  box-shadow:0 4px 12px rgba(200,69,69,.16);
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .admin-reminder-due{
  font-weight:900;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-sales-row.has-overdue-followup{
  border-color:#d94b4b !important;
  box-shadow:0 0 0 1px rgba(217,75,75,.08);
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-sales-row.has-overdue-followup .followup-cadence.is-late{
  color:#a72f2f;
  background:#fff0f0;
  border-color:#e4a0a0;
}

:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-sales-row.has-due-followup{
  border-color:#e59a2f !important;
  box-shadow:0 0 0 1px rgba(229,154,47,.12);
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-sales-row.has-due-followup .followup-cadence.is-due{
  color:#9a5a05;
  background:#fff6e8;
  border-color:#efbd70;
}

/* A prospect marked “Ne plus contacter” locks the whole row except that toggle. */
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-sales-row.is-frozen{
  background:#f1f4f6;
  border-color:#d5dee4 !important;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-sales-row.is-frozen .geo-unified-main,
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-sales-row.is-frozen .geo-note-action,
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-sales-row.is-frozen .geo-reset-action,
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-sales-row.is-frozen .geo-conversion-actions,
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-sales-row.is-frozen .unified-delete-btn{
  filter:grayscale(1);
  opacity:.55;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-sales-row.is-frozen .geo-commercial-footer{
  background:#eef2f4;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-sales-row.is-frozen .geo-freeze-action{
  filter:none;
  opacity:1;
}

/* Calendar / reminder dialog */
.geo-reminder-dialog{
  width:min(640px,calc(100vw - 28px));
  max-width:640px;
  padding:0;
  border:0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 26px 75px rgba(15,45,67,.24);
}
.geo-reminder-dialog::backdrop{background:rgba(15,39,57,.52);backdrop-filter:blur(2px)}
.geo-reminder-dialog-shell{padding:24px}
.geo-reminder-mode-field{display:grid;gap:7px;margin:18px 0 14px;color:#33566f;font-size:12px;font-weight:800}
.geo-reminder-mode-field select{
  min-height:42px;
  border:1px solid #d7e4ec;
  border-radius:10px;
  background:#fff;
  padding:0 12px;
  color:#173c58;
  font:inherit;
}
.geo-reminder-calendar{border:1px solid #dfe9ef;border-radius:14px;background:#fbfdfe;padding:12px}
.geo-reminder-calendar-head{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:8px;margin-bottom:10px;text-align:center;color:#173c58}
.geo-reminder-calendar-head strong{text-transform:capitalize;font-size:14px}
.geo-reminder-nav{width:34px;height:34px;border:1px solid #d7e4ec;border-radius:9px;background:#fff;color:#456a84;font-size:22px;cursor:pointer}
.geo-reminder-nav:hover{background:#f0f7fb;border-color:#bfd4e2}
.geo-reminder-weekdays,.geo-reminder-days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.geo-reminder-weekdays{margin-bottom:5px;color:#8194a3;font-size:10px;font-weight:900;text-align:center;text-transform:uppercase}
.geo-reminder-weekdays span{padding:5px 0}
.geo-reminder-day{aspect-ratio:1;border:1px solid transparent;border-radius:9px;background:transparent;color:#31546c;font-weight:800;cursor:pointer}
.geo-reminder-day:hover{background:#eef7fc;border-color:#cfe1eb}
.geo-reminder-day.is-today{border-color:#8dbbd7}
.geo-reminder-day.is-selected{color:#fff;background:#0b79c9;border-color:#0b79c9}
.geo-reminder-day.is-in-range{background:#dff1fb;border-color:#c5e4f4;color:#145b87}
.geo-reminder-day.is-empty{pointer-events:none}
.geo-reminder-time-row{display:flex;gap:12px;margin-top:14px}
.geo-reminder-time-row label{display:grid;gap:6px;min-width:150px;color:#456a84;font-size:11px;font-weight:900}
.geo-reminder-time-row input{min-height:40px;border:1px solid #d7e4ec;border-radius:9px;padding:0 10px;color:#173c58;background:#fff}
.geo-reminder-selection{margin-top:12px;padding:10px 12px;border-radius:9px;background:#f4f8fa;color:#60798b;font-size:11px;font-weight:700}
.geo-reminder-dialog .hidden{display:none !important}
@media(max-width:620px){
  .geo-reminder-dialog-shell{padding:17px}
  .geo-reminder-time-row{flex-direction:column}
  .geo-reminder-time-row label{min-width:0}
}

/* One extra KPI column for cold prospects. */
.kpi-mode-table{min-width:1300px}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .unified-delete-btn{
  min-width:30px;
  min-height:30px;
  padding:0 7px;
}

/* KPI status attribution + Diagnostic URL simplified row */
.kpi-step-table{min-width:1160px}
.kpi-mode-note{
  display:inline-flex;
  align-items:center;
  margin-top:5px;
  padding:3px 6px;
  border:1px solid #dce7ee;
  border-radius:999px;
  background:#f7fafc;
  color:#71879a;
  font-size:8px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}
.kpi-diagnostic-row td{background:#fbfdfe}
.kpi-na{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  min-height:24px;
  padding:0 7px;
  border:1px solid #e1e9ee;
  border-radius:999px;
  background:#f5f8fa;
  color:#9aabb7;
  font-size:9px;
  font-weight:900;
  cursor:help;
}

/* Unified cards — URL action lives with the company, report preview spans the former two-button width */
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-company-quick-actions{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:4px;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-company-copy-button{
  width:auto;
  max-width:100%;
  justify-content:center;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-report-action-row.is-preview-only{
  grid-template-columns:minmax(0,1fr);
}

/* Notifications commerciales · rouge = en retard, vert = à faire */
.mode-switch-btn{position:relative;overflow:visible}
.mode-attention-badge,
.mode-due-badge,
.study-attention-badge,
.study-due-badge{
  position:absolute;
  z-index:4;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  border:2px solid #fff;
  font-size:9px;
  line-height:1;
  font-weight:950;
  letter-spacing:0;
  pointer-events:none;
}
.mode-attention-badge,
.study-attention-badge{
  background:#dc2626;
  box-shadow:0 2px 7px rgba(145,18,18,.28);
}
.mode-due-badge,
.study-due-badge{
  background:#e59a2f;
  box-shadow:0 2px 7px rgba(166,96,8,.24);
}
.mode-attention-badge{top:-8px;right:-7px}
.mode-due-badge{top:-8px;right:15px}
.study-row-actions{position:relative}
.study-attention-badge{top:-15px;right:-7px}
.study-due-badge{top:-15px;right:15px}


/* Commercial cards — top-left status bubble (green=current, orange=due, red=late) */
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-card-cadence{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  flex-wrap:wrap;
  padding:10px 16px 0;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-card-cadence .followup-cadence{
  min-height:24px;
  padding:0 9px;
  font-size:8px;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-card-cadence .followup-cadence.is-current{
  color:#247a55;
  background:#eefaf4;
  border-color:#9ed8bb;
}
#reportQueue .geo-score-display strong{font-size:8px;color:#6b8398;font-weight:800}
#reportQueue .geo-score-display span{font-size:12px;color:#052d5b;font-weight:900}

/* OUTBOUND OE — simplification des informations prospect / rapport / contact */
#oePreparedList .oe-report-score-stack{
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
}
#oePreparedList .oe-score-display strong{
  font-size:8px;
  color:#6b8398;
  font-weight:800;
}
#oePreparedList .oe-score-display span{
  font-size:12px;
  color:#052d5b;
  font-weight:900;
}
#oePreparedList .oe-contact-links{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
#oePreparedList .oe-contact-links .geo-linkedin-button{
  text-decoration:none;
}

/* Unified report dates — placed above report preview, aligned right */
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-report-date{
  width:100%;
  color:#5f7890;
  font-size:9px;
  line-height:1.35;
  text-align:right;
}

/* Report action header — keep RAPPORT at its original level while date sits right */
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-report-actions-group{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  column-gap:8px;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-report-actions-group > .geo-action-group-label{
  grid-column:1;
  grid-row:1;
  align-self:end;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-report-actions-group > .geo-report-date{
  grid-column:2;
  grid-row:1;
  align-self:end;
  width:auto;
  max-width:100%;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-report-actions-group > .geo-report-action-row{
  grid-column:1 / -1;
  grid-row:2;
}

/* Inbound FORM has two report dates: stack them vertically on the right */
#inboundQueue .geo-report-actions-group > .geo-report-dates{
  grid-column:2;
  grid-row:1;
  align-self:end;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;
  min-width:0;
}
#inboundQueue .geo-report-dates .geo-report-date{
  width:auto;
  max-width:100%;
  text-align:right;
}

/* Prospect list filters — visual-only, shared across all commercial modes. */
.prospect-filter-bar{
  display:flex;
  justify-content:flex-end;
  align-items:flex-end;
  padding:4px 0 6px;
}
.prospect-filter-field{
  display:grid;
  justify-items:end;
  gap:4px;
  width:min(240px,100%);
  min-width:0;
}
.prospect-filter-field>span{
  font-size:8px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#7890a3;
  text-align:right;
}
.prospect-filter-field select{
  width:100%;
  min-height:34px;
  border:1px solid #cfdde7;
  border-radius:9px;
  padding:6px 30px 6px 9px;
  background:#fff;
  color:#183b5d;
  font:inherit;
  font-size:10px;
  font-weight:700;
  outline:none;
  text-align:left;
}
.prospect-filter-field select:focus{border-color:#7ba9cf;box-shadow:0 0 0 3px rgba(20,105,170,.09)}
.prospect-filter-empty{
  padding:18px 14px;
  border:1px dashed #d3e0e9;
  border-radius:12px;
  text-align:center;
  font-size:10px;
  color:#71879a;
  background:#fbfdfe;
}

@media (max-width:620px){
  .prospect-filter-field{width:100%}
}


/* =========================================================
   UX polish — stable modes, aligned heroes, KPI status tones
   ========================================================= */

/* Keep the viewport width stable when switching between modes with different page heights. */
html{scrollbar-gutter:stable}
body{overflow-y:scroll}

/* Inbound FORM and Outbound OE use the same header → hero rhythm as GEO and Diagnostic URL. */
body[data-admin-mode="inbound"] .shell,
body[data-admin-mode="outbound-oe"] .shell{padding-top:48px}

/* KPI commercial outcomes reuse the same semantic colors as prospect actions. */
.kpi-summary-card--meeting{
  background:linear-gradient(180deg,#f5fbff,#eef8ff);
  border-color:#99cce9;
}
.kpi-summary-card--meeting span{color:#0b5f9f}
.kpi-summary-card--meeting strong{color:#0b79c9}

.kpi-summary-card--client{
  background:linear-gradient(180deg,#f3fbf7,#eaf8f1);
  border-color:#9ed6c1;
}
.kpi-summary-card--client span{color:#116149}
.kpi-summary-card--client strong{color:#14845f}

.kpi-summary-card--cold{
  background:linear-gradient(180deg,#fffafa,#fff2f2);
  border-color:#e6aaaa;
}
.kpi-summary-card--cold span{color:#9b2f2f}
.kpi-summary-card--cold strong{color:#c84545}

.kpi-summary-card--optout{
  background:linear-gradient(180deg,#fafbfc,#f1f4f6);
  border-color:#d5dee4;
}
.kpi-summary-card--optout span{color:#536b7d}
.kpi-summary-card--optout strong{color:#536b7d}

@media(max-width:850px){
  body[data-admin-mode="inbound"] .shell,
  body[data-admin-mode="outbound-oe"] .shell{padding-top:28px}
}

/* Harmonisation des métriques des cards prospects — GEO / OE / 4 modes */
#reportQueue .geo-score-display strong,
#reportQueue .geo-score-display span,
#oePreparedList .oe-score-display strong,
#oePreparedList .oe-score-display span{
  font-size:9.5px;
  line-height:1.3;
}
#reportQueue .geo-score-display strong,
#oePreparedList .oe-score-display strong{
  color:#5f7890;
  font-weight:800;
}
#reportQueue .geo-score-display span,
#oePreparedList .oe-score-display span{
  color:#173c65;
  font-weight:900;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .report-performance{
  font-size:9.5px;
  line-height:1.35;
  font-weight:850;
  color:#456783;
}

/* =========================================================
   Recherche globale
   ========================================================= */
.search-open-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.search-open-btn svg{flex:0 0 auto}

.global-search-dialog{
  width:min(1500px,96vw);
  max-width:none;
  max-height:94vh;
  border:0;
  padding:0;
  background:transparent;
  overflow:visible;
}
.global-search-dialog::backdrop{background:rgba(8,26,43,.54);backdrop-filter:blur(2px)}
.global-search-card{
  max-height:92vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#fff;
  border:1px solid #d9e5ed;
  border-radius:20px;
  box-shadow:0 24px 70px rgba(8,31,51,.28);
}
.global-search-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:20px 22px 14px;
  border-bottom:1px solid #e6eef3;
}
.global-search-head h2{margin:2px 0 4px;font-size:24px;color:#153a5d}
.global-search-head p{margin:0;color:#6b8295;font-size:11px}
.global-search-command{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  padding:14px 22px 10px;
}
.global-search-input-wrap{position:relative;min-width:0}
.global-search-input-wrap svg{
  position:absolute;
  left:13px;
  top:50%;
  width:18px;
  height:18px;
  transform:translateY(-50%);
  color:#638199;
  pointer-events:none;
}
.global-search-input-wrap input{
  width:100%;
  min-height:44px;
  padding:10px 14px 10px 42px;
  border:1px solid #cbdbe6;
  border-radius:12px;
  background:#fbfdff;
  color:#173c5e;
  font:inherit;
  font-size:13px;
  outline:none;
}
.global-search-input-wrap input:focus{border-color:#62a0cf;box-shadow:0 0 0 3px rgba(45,126,187,.10);background:#fff}
.global-search-filters{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:8px 12px;
  padding:0 22px 12px;
  border-bottom:1px solid #e8eff4;
}
.global-search-filter-group,
.global-search-filter-field{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:34px;
}
.global-search-filter-group>span,
.global-search-filter-field>span{
  font-size:8px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#6f8799;
  white-space:nowrap;
}
.global-search-filter-group label{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:5px 7px;
  border:1px solid #d9e5ec;
  border-radius:8px;
  background:#fff;
  color:#31536d;
  font-size:9px;
  font-weight:750;
  cursor:pointer;
  white-space:nowrap;
}
.global-search-filter-group label:has(input:checked){border-color:#84b5d8;background:#eef7fd;color:#155d92}
.global-search-filter-group input{margin:0;accent-color:#1c76b4}
.global-search-filter-field{flex-direction:column;align-items:flex-start;gap:3px}
.global-search-filter-field select{
  min-height:31px;
  padding:5px 28px 5px 8px;
  border:1px solid #d2e0e9;
  border-radius:8px;
  background:#fff;
  color:#244862;
  font:inherit;
  font-size:9px;
  font-weight:750;
}
.global-search-reset{margin-left:auto}
.global-search-status-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:8px 22px;
  background:#f8fbfd;
  color:#496a82;
  font-size:9px;
  border-bottom:1px solid #e8eff4;
}
#globalSearchStatus{font-weight:850;color:#244d6a}
#globalSearchStatus.is-error{color:#b33d3d}
.global-search-hint{color:#8295a4}
.global-search-layout{
  min-height:0;
  flex:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(330px,390px);
  overflow:hidden;
}
.global-search-results-pane{
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  border-right:1px solid #e5edf2;
}
.global-search-results{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:12px 14px 18px;
}
.global-search-more{align-self:center;margin:0 0 12px}
.global-search-result{
  display:grid;
  grid-template-columns:minmax(280px,1.6fr) minmax(210px,.8fr) auto;
  gap:14px;
  align-items:center;
  padding:12px 13px;
  border:1px solid #dce8ef;
  border-radius:12px;
  background:#fff;
  margin-bottom:8px;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.global-search-result:hover{border-color:#a9c9df;box-shadow:0 5px 16px rgba(23,67,98,.07);transform:translateY(-1px)}
.global-search-result-main{min-width:0}
.global-search-result-title{display:flex;align-items:baseline;gap:9px;min-width:0}
.global-search-result-title strong{font-size:12px;color:#153c5f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%}
.global-search-result-title a,.global-search-result-title span{font-size:9px;color:#4a7799;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.global-search-result-context{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:6px}
.global-search-mode-pill,.global-search-stage-pill,.global-search-task-pill,.global-search-error-pill{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:3px 6px;
  border-radius:999px;
  font-size:8px;
  font-weight:900;
  letter-spacing:.02em;
  white-space:nowrap;
}
.global-search-mode-pill{background:#edf5fb;color:#27658f;border:1px solid #cfe1ee}
.global-search-stage-pill{background:#f3f6f8;color:#3d5b70;border:1px solid #dbe5eb}
.global-search-task-pill.is-current{background:#edf8f2;color:#18714f;border:1px solid #bfe2cf}
.global-search-task-pill.is-due{background:#fff5e7;color:#9a5b0b;border:1px solid #f0c788}
.global-search-task-pill.is-overdue{background:#fff0f0;color:#a43232;border:1px solid #e8aaaa}
.global-search-error-pill{background:#a73333;color:#fff;border:1px solid #a73333}
.global-search-result-subline{margin-top:6px;font-size:8.5px;color:#72899a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.global-search-result-contact{margin-top:3px;font-size:9px;color:#365a73;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.global-search-result-contact.is-muted{color:#93a3ae}
.global-search-result-metrics{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;color:#648096;font-size:8.5px}
.global-search-result-metrics span{white-space:nowrap}
.global-search-result-metrics b{font-size:10px;color:#234b68}
.global-search-result-actions{display:flex;gap:6px;justify-content:flex-end;white-space:nowrap}
.global-search-detail{
  min-width:0;
  overflow:auto;
  padding:14px 16px 20px;
  background:#f9fbfd;
}
.global-search-detail.hidden{display:none}
.global-search-layout:has(.global-search-detail.hidden){grid-template-columns:1fr}
.global-search-layout:has(.global-search-detail.hidden) .global-search-results-pane{border-right:0}
.global-search-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.global-search-detail-head h3{margin:7px 0 0;font-size:17px;color:#183f60}
.global-search-detail-close{border:0;background:transparent;color:#7890a1;font-size:23px;line-height:1;cursor:pointer;padding:0 3px}
.global-search-detail-actions{display:flex;gap:7px;margin-bottom:12px}
.global-search-detail-section{padding:11px 0;border-top:1px solid #dde8ee}
.global-search-detail-section h4{margin:0 0 7px;color:#42627a;font-size:9px;letter-spacing:.06em;text-transform:uppercase}
.global-search-detail-row{display:grid;grid-template-columns:120px minmax(0,1fr);gap:9px;padding:4px 0;align-items:start}
.global-search-detail-row>span{font-size:8.5px;color:#7890a1}
.global-search-detail-row>strong{font-size:9px;color:#244b67;font-weight:750;overflow-wrap:anywhere}
.global-search-detail-row a{color:#1b6fa9;text-decoration:none}
.global-search-detail-row a:hover{text-decoration:underline}

[data-global-report-id]{scroll-margin-top:120px}
.global-search-target-highlight{animation:globalSearchHighlight 2.6s ease both}
@keyframes globalSearchHighlight{
  0%,100%{box-shadow:inherit}
  12%,72%{box-shadow:0 0 0 4px rgba(35,126,193,.22),0 10px 28px rgba(22,70,105,.15)}
}

@media(max-width:1050px){
  .global-search-layout{grid-template-columns:1fr}
  .global-search-results-pane{border-right:0}
  .global-search-detail{position:absolute;inset:155px 18px 18px auto;width:min(410px,calc(100% - 36px));border:1px solid #d8e5ed;border-radius:14px;box-shadow:0 14px 40px rgba(18,54,79,.22);z-index:3}
  .global-search-result{grid-template-columns:minmax(0,1fr) auto}
  .global-search-result-metrics{grid-column:1/2;justify-content:flex-start}
  .global-search-result-actions{grid-column:2/3;grid-row:1/3}
}
@media(max-width:720px){
  .global-search-dialog{width:98vw;max-height:98vh}
  .global-search-card{max-height:97vh;border-radius:14px}
  .global-search-command{grid-template-columns:1fr}
  .global-search-command>.btn{width:100%}
  .global-search-filter-group{flex-wrap:wrap}
  .global-search-filter-field{flex:1 1 120px}
  .global-search-filter-field select{width:100%}
  .global-search-reset{margin-left:0}
  .global-search-status-row{align-items:flex-start;flex-direction:column;gap:3px}
  .global-search-result{grid-template-columns:1fr;gap:9px}
  .global-search-result-title{align-items:flex-start;flex-direction:column;gap:2px}
  .global-search-result-title strong{max-width:100%}
  .global-search-result-metrics,.global-search-result-actions{grid-column:auto;grid-row:auto;justify-content:flex-start}
  .global-search-detail{inset:120px 8px 8px 8px;width:auto}
}

/* Recherche — affinements UX (07/10/2026) */
.global-search-command{
  grid-template-columns:minmax(0,1fr) 150px 150px;
  align-items:stretch;
}
.global-search-command-btn{
  width:150px;
  min-height:44px;
  justify-content:center;
}
.global-search-filters{
  display:block;
  padding:0 22px 12px;
}
.global-search-filter-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  min-width:0;
}
.global-search-mode-filter{
  flex:1 1 auto;
  flex-wrap:wrap;
}
.global-search-selects{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:10px;
  margin-left:auto;
  flex:0 0 auto;
}
.global-search-selects .global-search-filter-field{
  min-width:125px;
}
.global-search-selects select{
  width:100%;
}
.global-search-attribute-filter{
  margin-top:9px;
  flex-wrap:wrap;
}
.global-search-result-context{
  margin-top:0;
}
.global-search-result-company{
  margin-top:7px;
  font-size:12px;
  line-height:1.25;
  font-weight:850;
  color:#153c5f;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.global-search-result-url{
  margin-top:3px;
  min-width:0;
  font-size:9px;
  color:#4a7799;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.global-search-result-url a{
  color:#4a7799;
  text-decoration:none;
}
.global-search-result-url a:hover{text-decoration:underline}
.global-search-result-ref{
  margin-top:3px;
  font-size:8.5px;
  color:#8295a4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.global-search-detail-actions{
  justify-content:flex-start;
}

@media(max-width:900px){
  .global-search-filter-top{
    align-items:flex-start;
    flex-direction:column;
  }
  .global-search-selects{
    width:100%;
    margin-left:0;
    justify-content:flex-end;
  }
}
@media(max-width:720px){
  .global-search-command{
    grid-template-columns:1fr;
  }
  .global-search-command-btn{
    width:100%;
  }
  .global-search-selects{
    justify-content:stretch;
  }
  .global-search-selects .global-search-filter-field{
    flex:1 1 0;
    min-width:0;
  }
}


/* Recherche — cohérence filtres (07/10/2026) */
.global-search-filter-bottom{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-top:9px;
  min-width:0;
}
.global-search-filter-bottom .global-search-attribute-filter{
  flex:1 1 auto;
  margin-top:0;
  min-width:0;
}
.global-search-filter-bottom .global-search-selects{
  flex:0 0 auto;
  align-self:flex-end;
}
@media(max-width:900px){
  .global-search-filter-bottom{
    align-items:flex-start;
    flex-direction:column;
  }
  .global-search-filter-bottom .global-search-selects{
    width:100%;
    margin-left:0;
    justify-content:flex-end;
  }
}
@media(max-width:720px){
  .global-search-filter-bottom .global-search-selects{
    justify-content:stretch;
  }
}

/* Email manuel admin — ajout/retrait discret dans les cards et Recherche */
.manual-email-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.manual-email-inline .sales-email {
  min-width: 0;
  overflow-wrap: anywhere;
}

.manual-email-toggle {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(23, 59, 96, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #173b60;
  font: 700 15px/1 Arial, sans-serif;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.manual-email-toggle:hover:not(:disabled) {
  border-color: rgba(23, 59, 96, 0.55);
  background: #f3f7fb;
  transform: translateY(-1px);
}

.manual-email-toggle.is-remove {
  color: #a33a32;
  border-color: rgba(163, 58, 50, 0.25);
}

.manual-email-toggle.is-remove:hover:not(:disabled) {
  border-color: rgba(163, 58, 50, 0.55);
  background: #fff7f6;
}

.manual-email-toggle:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.manual-email-dialog-card {
  width: min(520px, calc(100vw - 32px));
}

.manual-email-field {
  display: grid;
  gap: 7px;
  padding: 18px 20px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #173b60;
}

.manual-email-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid rgba(23, 59, 96, 0.22);
  border-radius: 10px;
  background: #fff;
  color: #173b60;
  font: inherit;
  font-weight: 500;
  outline: none;
}

.manual-email-field input:focus {
  border-color: rgba(24, 101, 173, 0.72);
  box-shadow: 0 0 0 3px rgba(24, 101, 173, 0.1);
}

.global-search-detail-row .manual-email-inline {
  justify-content: flex-end;
}


/* Finition — ajout email manuel */
.manual-email-dialog{
  width:min(560px,calc(100vw - 32px));
}
.manual-email-dialog-card{
  width:auto;
  min-width:0;
  box-sizing:border-box;
}
.manual-email-dialog-head{
  align-items:center;
}
.manual-email-dialog-head h3{
  margin:0;
  font-size:21px;
  line-height:1.2;
}
.manual-email-dialog-head .geo-note-dialog-close{
  flex:0 0 34px;
  margin-left:auto;
}
.manual-email-field{
  margin-top:18px;
  padding:0;
  gap:8px;
}
.manual-email-field input{
  min-height:44px;
  padding:11px 13px;
  font-size:14px;
}
.manual-email-dialog-actions{
  margin-top:16px;
  padding:0;
}
@media(max-width:560px){
  .manual-email-dialog{
    width:min(100% - 20px,560px);
  }
  .manual-email-dialog-card{
    padding:18px;
  }
  .manual-email-dialog-head h3{
    font-size:19px;
  }
  .manual-email-dialog-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .manual-email-dialog-actions .geo-note-dialog-status{
    grid-column:1/-1;
    width:100%;
  }
  .manual-email-dialog-actions .btn{
    width:100%;
  }
}

/* Recherche globale — actions du header alignées comme KPIs */
.global-search-head-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
@media(max-width:640px){
  .global-search-head-actions #refreshGlobalSearchBtn{
    display:none;
  }
}


/* Finalisation header — Recherche alignée sur KPIs, Déconnexion en rouge */
.search-open-btn{
  min-width:72px;
  border-color:#b9d8ee!important;
  color:#0b5f9f!important;
  background:#f5fbff!important;
  justify-content:center;
}
.search-open-btn:hover{
  background:#eaf6fe!important;
  border-color:#8bc5e8!important;
}
.logout-btn{
  min-width:92px;
  border-color:#efb9b6!important;
  color:#b42318!important;
  background:#fff7f6!important;
}
.logout-btn:hover{
  background:#fdebea!important;
  border-color:#df8f89!important;
  color:#8f1d14!important;
}

/* Coordonnées contact — email / LinkedIn / offre */
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .geo-contact-linkedin{
  gap:6px;
  flex-wrap:wrap;
}
:is(#reportQueue,#oePreparedList,#inboundQueue,#diagnosticUrlQueue) .contact-copy-email-button:disabled{
  opacity:.45;
  cursor:not-allowed;
  background:#f4f7f9;
  border-color:#dbe5eb;
  color:#92a3af;
}
#oePreparedList .oe-contact-action-stack{
  display:grid;
  gap:6px;
  margin-top:3px;
}
#oePreparedList .oe-contact-action-stack .geo-contact-linkedin{
  margin-top:0;
}

/* Coordonnées manuelles : deux champs bien alignés */
.manual-contact-fields{
  display:grid;
  gap:14px;
  margin-top:18px;
}
.manual-contact-fields .manual-email-field{
  margin-top:0;
}
