/* ── RESET & BASE ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:15px;-webkit-font-smoothing:antialiased}
body{font-family:'Inter',sans-serif;background:#F1EFE8;color:#2C2C2A;min-height:100vh}
a{color:#1D9E75;text-decoration:none}
button{cursor:pointer;font-family:inherit}
input,select,textarea{font-family:inherit;font-size:.933rem}
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:#F1EFE8}
::-webkit-scrollbar-thumb{background:#B4B2A9;border-radius:3px}

/* ── CSS VARIABLES ── */
:root{
  --blue:#1D9E75;--blue-light:#E1F5EE;--blue-dark:#0F6E56;
  --green:#0F6E56;--green-light:#E1F5EE;
  --amber:#BA7517;--amber-light:#FFFBEB;
  --red:#A32D2D;--red-light:#FDF2F2;
  --gray-50:#F1EFE8;--gray-100:#F8F8F6;--gray-200:#D3D1C7;
  --gray-300:#B4B2A9;--gray-400:#888780;--gray-500:#5F5E5A;
  --gray-700:#444441;--gray-800:#2C2C2A;--gray-900:#2C2C2A;
  --white:#FFFFFF;
  --shadow-sm:0 1px 2px rgba(0,0,0,.05);
  --shadow:0 1px 3px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.06);
  --shadow-md:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05);
  --radius:8px;--radius-lg:12px;
}

/* ── UTILITIES ── */
.hidden{display:none!important}
.text-muted{color:var(--gray-500)}
.text-sm{font-size:.8rem}
.text-xs{font-size:.73rem}
.font-semibold{font-weight:600}
.font-medium{font-weight:500}
.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}
.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}
.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}
.flex-wrap{flex-wrap:wrap}
.w-full{width:100%}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ── AUTH SCREEN ── */
#auth-screen{
  display:flex;min-height:100vh;
}
.auth-left{
  flex:1;background:linear-gradient(135deg,#085041 0%,#1D9E75 100%);
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  padding:3rem;color:#fff;
}
.auth-left .logo{margin-bottom:2rem}
.auth-left h1{font-size:2rem;font-weight:700;line-height:1.2;margin-bottom:1rem}
.auth-left p{font-size:.967rem;opacity:.85;line-height:1.6;max-width:360px}
.auth-left .features{margin-top:2rem;display:flex;flex-direction:column;gap:.6rem}
.auth-left .feat-item{display:flex;align-items:center;gap:.6rem;font-size:.867rem;opacity:.9}
.auth-left .feat-item::before{content:'✓';background:rgba(255,255,255,.2);
  width:20px;height:20px;border-radius:50%;display:flex;align-items:center;
  justify-content:center;font-size:.7rem;flex-shrink:0}
.auth-right{
  width:480px;display:flex;align-items:center;justify-content:center;
  background:#fff;padding:2rem;
}
.auth-card{width:100%;max-width:380px}
.auth-card h2{font-size:1.4rem;font-weight:700;margin-bottom:.3rem}
.auth-card .auth-subtitle{color:var(--gray-500);font-size:.867rem;margin-bottom:1.75rem}
.auth-error{
  background:var(--red-light);color:var(--red);border:1px solid #fca5a5;
  border-radius:var(--radius);padding:.6rem .9rem;font-size:.833rem;margin-bottom:1rem;
}
.auth-success{
  background:var(--green-light);color:var(--green);border:1px solid #9FE1CB;
  border-radius:var(--radius);padding:.6rem .9rem;font-size:.833rem;margin-bottom:1rem;
}
.auth-toggle{margin-top:1.25rem;text-align:center;font-size:.867rem;color:var(--gray-500)}
.auth-toggle a{color:var(--blue);font-weight:500;cursor:pointer}
.forgot-link{
  display:block;text-align:right;font-size:.8rem;color:var(--gray-500);
  margin-top:.3rem;cursor:pointer;
}
.forgot-link:hover{color:var(--blue)}
.tos-check-row{display:flex;align-items:flex-start;gap:.5rem;margin-top:.75rem;margin-bottom:.75rem}
.tos-check-row input[type=checkbox]{margin-top:.15rem;flex-shrink:0;accent-color:var(--blue)}
.tos-check-row label{font-size:.833rem;color:var(--gray-700);line-height:1.4;cursor:pointer}
.tos-check-row a{color:var(--blue);cursor:pointer}
.tos-body{max-height:68vh;overflow-y:auto;padding:1rem 1.1rem;border:1px solid var(--gray-200);border-radius:var(--radius);background:var(--gray-50);font-size:.8rem;color:var(--gray-700);line-height:1.6;margin-bottom:1rem}
.tos-body h3{font-size:.867rem;font-weight:700;margin:1rem 0 .3rem;color:var(--gray-900);text-transform:uppercase;letter-spacing:.3px}
.tos-body p{margin-bottom:.6rem}
.tos-body ul{padding-left:1.25rem;margin-bottom:.6rem}
.tos-body ul li{margin-bottom:.25rem}
.settings-section{margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid var(--gray-200)}
.settings-section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.settings-section-title{font-size:.9rem;font-weight:600;color:var(--gray-800);margin-bottom:.75rem}
.settings-feedback{font-size:.833rem;margin-top:.5rem;min-height:1.2rem}
.settings-feedback.ok{color:var(--green)}
.settings-feedback.err{color:var(--red)}
@media(max-width:768px){
  #auth-screen{flex-direction:column}
  .auth-left{padding:2rem;flex:none}
  .auth-right{width:100%;padding:2rem 1.5rem}
}

/* ── FORM ELEMENTS ── */
.form-group{margin-bottom:1rem}
.form-label{display:block;font-size:.8rem;font-weight:500;color:var(--gray-700);margin-bottom:.3rem}
.form-control{
  width:100%;border:1px solid var(--gray-200);border-radius:var(--radius);
  padding:.55rem .75rem;font-size:.9rem;color:var(--gray-900);
  background:#fff;transition:border-color .15s,box-shadow .15s;
  outline:none;
}
.form-control:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(29,158,117,.15)}
.form-control::placeholder{color:var(--gray-400)}
select.form-control{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .7rem center;padding-right:2rem;appearance:none}
textarea.form-control{resize:vertical;min-height:80px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
@media(max-width:600px){.form-row{grid-template-columns:1fr}}
.form-hint{font-size:.75rem;color:var(--gray-400);margin-top:.2rem}

/* ── BUTTONS ── */
.btn{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.5rem 1rem;border-radius:var(--radius);font-size:.867rem;
  font-weight:500;border:none;transition:all .15s;white-space:nowrap;
}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:var(--blue-dark)}
.btn-secondary{background:#fff;color:var(--gray-700);border:1px solid var(--gray-200)}
.btn-secondary:hover{background:var(--gray-50);border-color:var(--gray-300)}
.btn-danger{background:var(--red);color:#fff}
.btn-danger:hover{background:#7B2020}
.btn-ghost{background:transparent;color:var(--gray-500);border:none;padding:.4rem .6rem}
.btn-ghost:hover{background:var(--gray-100);color:var(--gray-700)}
.btn-sm{padding:.35rem .7rem;font-size:.8rem}
.btn-lg{padding:.7rem 1.4rem;font-size:1rem}
.btn-full{width:100%;justify-content:center}
.btn:disabled{opacity:.6;cursor:not-allowed}
.btn-icon{width:32px;height:32px;padding:0;justify-content:center;border-radius:6px}

/* ── APP LAYOUT ── */
#app{display:flex;flex-direction:column;min-height:100vh}
#header{
  background:#fff;border-bottom:1px solid var(--gray-200);
  position:sticky;top:0;z-index:100;box-shadow:var(--shadow-sm);
}
.header-inner{
  max-width:1280px;margin:0 auto;padding:0 1.5rem;
  display:flex;align-items:center;height:56px;gap:1rem;
}
.header-logo{display:flex;align-items:center;white-space:nowrap}
.header-nav{display:flex;gap:.25rem;flex:1;margin-left:1.5rem}
.nav-btn{
  padding:.4rem .85rem;border-radius:6px;border:none;background:transparent;
  font-size:.867rem;font-weight:500;color:var(--gray-500);cursor:pointer;
  transition:all .15s;
}
.nav-btn:hover{background:var(--gray-100);color:var(--gray-800)}
.nav-btn.active{background:var(--blue-light);color:var(--blue)}
.header-right{display:flex;align-items:center;gap:.75rem;margin-left:auto}
.user-email{font-size:.8rem;color:var(--gray-500);max-width:200px;truncate:true;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#main-content{flex:1;max-width:1280px;width:100%;margin:0 auto;padding:1.5rem}
@media(max-width:768px){
  .header-inner{padding:0 1rem}
  .user-email{display:none}
  #main-content{padding:1rem}
}

/* ── METRIC CARDS ── */
.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:1rem;margin-bottom:1.5rem}
.metric-card{
  background:#fff;border-radius:var(--radius-lg);padding:1.25rem 1.5rem;
  box-shadow:var(--shadow);border:1px solid var(--gray-200);
}
.metric-label{font-size:.773rem;font-weight:500;color:var(--gray-500);text-transform:uppercase;letter-spacing:.4px;margin-bottom:.4rem}
.metric-value{font-size:2rem;font-weight:700;color:var(--gray-900);line-height:1}
.metric-sub{font-size:.773rem;color:var(--gray-400);margin-top:.3rem}

/* ── CARDS & SECTIONS ── */
.card{background:#fff;border-radius:var(--radius-lg);padding:1.25rem 1.5rem;box-shadow:var(--shadow);border:1px solid var(--gray-200);margin-bottom:1.25rem}
.card-title{font-size:.933rem;font-weight:600;color:var(--gray-800);margin-bottom:1rem}
.section-title{font-size:1rem;font-weight:600;color:var(--gray-800);margin-bottom:1rem}
.chart-wrap{position:relative;height:220px}
.chart-wrap-sm{position:relative;height:180px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
.three-col{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1.25rem}
@media(max-width:900px){.two-col,.three-col{grid-template-columns:1fr}}

/* ── TABLES ── */
.data-table{width:100%;border-collapse:collapse;font-size:.833rem}
.data-table th{
  text-align:left;padding:.5rem .75rem;font-size:.733rem;font-weight:600;
  color:var(--gray-500);text-transform:uppercase;letter-spacing:.4px;
  border-bottom:2px solid var(--gray-200);background:var(--gray-50);
}
.data-table td{padding:.55rem .75rem;border-bottom:1px solid var(--gray-100);color:var(--gray-700)}
.data-table tr:last-child td{border-bottom:none}
.data-table tr:hover td{background:var(--gray-50)}
/* ── Directory ── */
.dir-toolbar{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-bottom:1rem}
.dir-toolbar .filter-select,.dir-toolbar input{font-size:.8rem}
.dir-search{padding:.45rem .7rem;border:1px solid var(--gray-200);border-radius:8px;min-width:200px}
.dir-slider{display:flex;align-items:center;gap:.4rem;font-size:.78rem;color:var(--gray-500)}
.dir-check{display:flex;align-items:center;gap:.35rem;font-size:.78rem;color:var(--gray-600);cursor:pointer}
.dir-table td{vertical-align:middle;cursor:pointer}
.score-pill{display:inline-block;min-width:34px;text-align:center;font-weight:600;font-size:.78rem;padding:.2rem .45rem;border-radius:6px;color:#fff}
.mini-badge{display:inline-block;font-size:.66rem;font-weight:600;padding:.12rem .4rem;border-radius:999px;background:var(--gray-100);color:var(--gray-600);margin-right:.25rem}
.mini-badge.sba{background:#e0edff;color:#1e50a0}
.mini-badge.ppp{background:#e6f6ec;color:#1a7a43}
.mini-badge.excl{background:#fde8e8;color:#b42318}
.mini-badge.plat{background:#f3e8ff;color:#7e22ce}
.dir-drawer{max-width:640px;width:92vw}
.dir-sub-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:.5rem;margin:.75rem 0}
.dir-sub{background:var(--gray-50);border:1px solid var(--gray-100);border-radius:8px;padding:.5rem;text-align:center}
.dir-sub .v{font-size:1.05rem;font-weight:700;color:var(--gray-800)}
.dir-sub .k{font-size:.63rem;text-transform:uppercase;letter-spacing:.03em;color:var(--gray-400);margin-top:.15rem}
.dir-why{background:var(--gray-50);border-radius:8px;padding:.6rem .8rem;font-size:.78rem;color:var(--gray-600);line-height:1.7}
.dir-why b{color:var(--gray-700)}
.in-pipe{font-size:.73rem;color:var(--green,#1a7a43);font-weight:600}
.dir-foot{font-size:.72rem;color:var(--gray-400);margin-top:1.1rem;line-height:1.7;max-width:920px}
.dir-foot b{color:var(--gray-500)}

/* ── BADGES / PILLS ── */
.badge{
  display:inline-flex;align-items:center;padding:.15rem .55rem;
  border-radius:999px;font-size:.713rem;font-weight:500;white-space:nowrap;
}
.badge-blue{background:var(--blue-light);color:var(--blue)}
.badge-green{background:var(--green-light);color:var(--green)}
.badge-amber{background:var(--amber-light);color:var(--amber)}
.badge-red{background:var(--red-light);color:var(--red)}
.badge-gray{background:var(--gray-100);color:var(--gray-600)}
.badge-purple{background:#F5F3FF;color:#6D28D9}
.status-badge{font-size:.733rem;font-weight:500;padding:.2rem .6rem;border-radius:999px}

/* ── PIPELINE VIEW ── */
.pipeline-toolbar{
  display:flex;align-items:center;gap:.75rem;margin-bottom:1.25rem;flex-wrap:wrap;
}
.pipeline-filters{display:flex;gap:.5rem;flex-wrap:wrap;flex:1}
.filter-select{
  border:1px solid var(--gray-200);border-radius:var(--radius);padding:.38rem .65rem;
  font-size:.8rem;color:var(--gray-700);background:#fff;cursor:pointer;outline:none;
}
.filter-select:focus{border-color:var(--blue)}
.deal-list{display:flex;flex-direction:column;gap:.75rem}
.deal-card{
  background:#fff;border-radius:var(--radius-lg);padding:1rem 1.25rem;
  box-shadow:var(--shadow);border:1px solid var(--gray-200);cursor:pointer;
  transition:box-shadow .15s,border-color .15s;
}
.deal-card:hover{box-shadow:var(--shadow-md);border-color:var(--gray-300)}
.deal-card.stale{border-left:3px solid #F59E0B}
.deal-card-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:.6rem;gap:.5rem}
.deal-card-name{font-size:.967rem;font-weight:600;color:var(--gray-900)}
.deal-card-meta{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.8rem;color:var(--gray-500);margin-bottom:.6rem}
.deal-card-scores{display:flex;gap:1rem;font-size:.8rem}
.score-chip{
  background:var(--gray-50);border:1px solid var(--gray-200);
  border-radius:6px;padding:.2rem .5rem;
  display:flex;align-items:center;gap:.3rem;
}
.score-chip .label{color:var(--gray-500);font-size:.713rem}
.score-chip .val{font-weight:600}
.score-chip .val.green{color:var(--green)}
.score-chip .val.amber{color:var(--amber)}
.score-chip .val.red{color:var(--red)}
.stale-flag{
  font-size:.713rem;color:#92400E;background:#FEF3C7;
  padding:.15rem .45rem;border-radius:4px;display:inline-flex;align-items:center;gap:.2rem;
}
.empty-state{
  text-align:center;padding:4rem 2rem;color:var(--gray-500);
}
.empty-state .empty-icon{font-size:3rem;margin-bottom:1rem}
.empty-state h3{font-size:1.1rem;font-weight:600;color:var(--gray-700);margin-bottom:.5rem}
.empty-state p{font-size:.867rem;margin-bottom:1.5rem}

/* ── DEAL DETAIL ── */
.detail-header{
  display:flex;align-items:center;gap:1rem;margin-bottom:1.25rem;flex-wrap:wrap;
}
.deal-name-input{
  font-size:1.4rem;font-weight:700;color:var(--gray-900);border:none;
  background:transparent;outline:none;flex:1;min-width:200px;
  border-bottom:2px solid transparent;transition:border-color .15s;
  padding:.1rem 0;
}
.deal-name-input:focus{border-bottom-color:var(--blue)}
.tabs{display:flex;gap:.25rem;border-bottom:2px solid var(--gray-200);margin-bottom:1.5rem;overflow-x:auto}
.tab-btn{
  padding:.55rem 1.1rem;border:none;background:transparent;font-size:.867rem;
  font-weight:500;color:var(--gray-500);cursor:pointer;border-bottom:2px solid transparent;
  margin-bottom:-2px;transition:all .15s;white-space:nowrap;
}
.tab-btn:hover{color:var(--gray-800)}
.tab-btn.active{color:var(--blue);border-bottom-color:var(--blue)}
.tab-content{display:none}
.tab-content.active{display:block}

/* ── SCORING ── */
.verdict-banner{
  border-radius:var(--radius);padding:.75rem 1rem;margin-bottom:1.25rem;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;
}
.verdict-banner.green{background:var(--green-light);border:1px solid #9FE1CB}
.verdict-banner.amber{background:var(--amber-light);border:1px solid #fcd34d}
.verdict-banner.red{background:var(--red-light);border:1px solid #fca5a5}
.verdict-banner.gray{background:var(--gray-50);border:1px solid var(--gray-200)}
.verdict-label{font-size:1rem;font-weight:600}
.verdict-label.green{color:var(--green)}
.verdict-label.amber{color:var(--amber)}
.verdict-label.red{color:var(--red)}
.verdict-label.gray{color:var(--gray-500)}
.verdict-meta{font-size:.8rem;color:var(--gray-500)}
.killer-alert{
  background:var(--red-light);border:1px solid #fca5a5;border-radius:var(--radius);
  padding:.65rem 1rem;margin-bottom:1rem;font-size:.833rem;color:var(--red);
}
.killer-alert strong{display:block;margin-bottom:.2rem}
.scoring-section{margin-bottom:2rem}
.scoring-section-title{
  font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;
  color:var(--gray-400);margin-bottom:.75rem;padding-bottom:.35rem;
  border-bottom:1px solid var(--gray-200);
}
.criterion-card{
  background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius);
  padding:1rem;margin-bottom:.75rem;
}
.criterion-card.killer{border-left:3px solid var(--red)}
.criterion-header{display:flex;align-items:flex-start;gap:.5rem;margin-bottom:.75rem}
.criterion-label{font-size:.867rem;font-weight:500;color:var(--gray-800);flex:1}
.killer-badge{
  background:var(--red-light);color:var(--red);font-size:.67rem;font-weight:600;
  padding:.1rem .4rem;border-radius:4px;white-space:nowrap;flex-shrink:0;
}
.hint-toggle{
  font-size:.73rem;color:var(--gray-400);cursor:pointer;display:inline-flex;
  align-items:center;gap:.2rem;margin-bottom:.5rem;user-select:none;
}
.hint-toggle:hover{color:var(--gray-600)}
.hint-text{
  font-size:.8rem;color:var(--gray-500);background:var(--gray-50);
  border-radius:5px;padding:.5rem .7rem;margin-bottom:.75rem;
  border-left:3px solid var(--gray-200);line-height:1.5;
}
.score-btns{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:.65rem}
.score-btn{
  padding:.3rem .7rem;border-radius:6px;border:1.5px solid var(--gray-200);
  background:#fff;font-size:.8rem;font-weight:500;color:var(--gray-600);
  transition:all .15s;min-width:44px;text-align:center;
}
.score-btn:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-light)}
.score-btn.selected-0{background:#FEE2E2;border-color:#EF4444;color:#DC2626}
.score-btn.selected-1{background:#FEF9C3;border-color:#EAB308;color:#A16207}
.score-btn.selected-2{background:#FEF3C7;border-color:#F59E0B;color:#92400E}
.score-btn.selected-3{background:#E1F5EE;border-color:#9FE1CB;color:#0F6E56}
.score-btn.selected-4{background:#E1F5EE;border-color:#1D9E75;color:#0F6E56}
.score-btn-label{font-size:.67rem;display:block;opacity:.8}
.criterion-notes textarea{font-size:.8rem;min-height:56px}

/* ── ACTIVITY LOG ── */
.activity-form{
  background:var(--gray-50);border-radius:var(--radius);padding:1rem;margin-bottom:1.25rem;
  border:1px solid var(--gray-200);
}
.activity-form-row{display:flex;gap:.5rem;margin-bottom:.5rem;flex-wrap:wrap}
.activity-type-select{
  border:1px solid var(--gray-200);border-radius:var(--radius);padding:.4rem .6rem;
  font-size:.8rem;background:#fff;outline:none;
}
.activity-type-select:focus{border-color:var(--blue)}
.activity-entries{display:flex;flex-direction:column;gap:.6rem}
.activity-entry{
  background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius);
  padding:.75rem 1rem;
}
.activity-entry-meta{display:flex;align-items:center;gap:.5rem;margin-bottom:.3rem}
.activity-entry-type{
  font-size:.73rem;font-weight:500;background:var(--blue-light);
  color:var(--blue);padding:.1rem .45rem;border-radius:4px;
}
.activity-entry-time{font-size:.73rem;color:var(--gray-400)}
.activity-entry-body{font-size:.833rem;color:var(--gray-700);line-height:1.5}

/* ── DOCS TAB ── */
.doc-row{display:flex;gap:.5rem;align-items:center;margin-bottom:.5rem}
.doc-row input{flex:1}
.doc-row a{color:var(--blue);font-size:.9rem}

/* ── MODALS ── */
#modal-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,.45);
  display:flex;align-items:center;justify-content:center;z-index:1000;
  padding:1rem;
}
.modal{
  background:#fff;border-radius:var(--radius-lg);padding:1.75rem;
  max-width:480px;width:100%;box-shadow:var(--shadow-lg);
}
.modal h3{font-size:1.1rem;font-weight:600;margin-bottom:.4rem}
.modal p{font-size:.867rem;color:var(--gray-500);margin-bottom:1.25rem;line-height:1.5}
.modal-actions{display:flex;gap:.6rem;justify-content:flex-end;margin-top:1.25rem}

/* ── TOAST ── */
#toast{
  position:fixed;bottom:1.5rem;right:1.5rem;z-index:2000;
  background:var(--gray-900);color:#fff;padding:.65rem 1.1rem;
  border-radius:var(--radius);font-size:.833rem;box-shadow:var(--shadow-lg);
  transform:translateY(20px);opacity:0;transition:all .25s;pointer-events:none;
}
#toast.show{transform:translateY(0);opacity:1}
#toast.success{background:var(--green)}
#toast.error{background:var(--red)}

/* ── SAVING INDICATOR ── */
.saving-dot{
  display:inline-block;width:7px;height:7px;border-radius:50%;
  background:var(--gray-300);margin-left:.4rem;transition:background .3s;
}
.saving-dot.saving{background:#F59E0B}
.saving-dot.saved{background:var(--green)}

/* ── RESPONSIVE ── */
@media(max-width:600px){
  .metric-grid{grid-template-columns:1fr 1fr}
  .deal-card-scores{flex-wrap:wrap;gap:.4rem}
  .score-btns{gap:.3rem}
  .score-btn{min-width:38px;padding:.25rem .4rem;font-size:.73rem}
}
@media(max-width:400px){
  .metric-grid{grid-template-columns:1fr}
}

/* ── PASS REASON CALLOUT ── */
.pass-reason-row{
  display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;
  background:#FFF7ED;border:1px solid #FED7AA;border-radius:var(--radius);
  font-size:.833rem;color:#9A3412;margin-top:.5rem;
}

/* ── DASHBOARD TABLES ── */
.killer-table th:first-child,.killer-table td:first-child{max-width:260px}
.stage-row-zero{color:var(--gray-400);font-style:italic}

/* ── STALE TABLE ── */
.stale-table td:last-child .stale-flag{display:inline-flex}

/* ── MULTIPLE DISPLAY ── */
.multiple-display{
  display:inline-flex;align-items:center;gap:.3rem;
  font-weight:600;color:var(--gray-700);font-size:.9rem;
}
.multiple-display.high{color:var(--red)}
.multiple-display.ok{color:var(--green)}
.multiple-display.mid{color:var(--amber)}

/* ── FUNNEL BARS ── */
.funnel-wrap{padding:.5rem 0}
.funnel-row{margin-bottom:.75rem}
.funnel-label{font-size:.8rem;color:var(--gray-600);margin-bottom:.25rem;display:flex;justify-content:space-between}
.funnel-bar-outer{background:var(--gray-100);border-radius:4px;height:28px;position:relative;overflow:hidden}
.funnel-bar-inner{height:100%;border-radius:4px;background:var(--blue);display:flex;align-items:center;padding-left:.6rem;color:#fff;font-size:.8rem;font-weight:600;transition:width .4s ease;min-width:30px}
.funnel-passed{background:var(--gray-100);border:1px solid var(--gray-200);border-radius:var(--radius);padding:.6rem 1rem;font-size:.833rem;color:var(--gray-500);display:inline-flex;gap:.5rem;align-items:center;margin-top:.5rem}

/* ── SECTION DIVIDER ── */
.section-divider{border:none;border-top:1px solid var(--gray-200);margin:1.5rem 0}

/* ── ODD TAB ── */
.odd-wrapper{padding-bottom:2rem}
.odd-top-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;flex-wrap:wrap;gap:.5rem}
.odd-progress-wrap{display:flex;align-items:center;gap:.75rem}
.odd-progress-label{font-size:.8rem;color:var(--gray-500);white-space:nowrap}
.odd-progress-bar{width:140px;height:6px;background:var(--gray-200);border-radius:999px;overflow:hidden}
.odd-progress-fill{height:100%;background:var(--blue);border-radius:999px;transition:width .3s}
.odd-section-nav{display:flex;gap:.25rem;flex-wrap:wrap;margin-bottom:1.25rem;padding-bottom:.75rem;border-bottom:1px solid var(--gray-200)}
.odd-snav-btn{padding:.3rem .7rem;border-radius:6px;border:none;background:var(--gray-100);font-size:.773rem;font-weight:500;color:var(--gray-600);cursor:pointer;transition:all .15s;white-space:nowrap}
.odd-snav-btn:hover{background:var(--gray-200);color:var(--gray-800)}
.odd-snav-btn.active{background:var(--blue-light);color:var(--blue)}
.odd-section-header{margin-bottom:1rem}
.odd-section-title{font-size:1rem;font-weight:600;color:var(--gray-900);margin-bottom:.2rem}
.odd-section-desc{font-size:.833rem;color:var(--gray-500)}
/* Overview grid */
.odd-overview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.75rem}
.odd-overview-card{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius);padding:.9rem 1rem;cursor:pointer;transition:all .15s;display:flex;align-items:flex-start;gap:.75rem}
.odd-overview-card:hover{border-color:var(--blue);box-shadow:var(--shadow-md)}
.odd-overview-card.has-notes{border-left:3px solid var(--blue)}
.odd-overview-icon{font-size:1.4rem;flex-shrink:0;line-height:1}
.odd-overview-content{flex:1;min-width:0}
.odd-overview-name{font-size:.867rem;font-weight:600;color:var(--gray-800);margin-bottom:.1rem}
.odd-overview-desc{font-size:.773rem;color:var(--gray-500);line-height:1.4}
.odd-overview-progress{font-size:.73rem;color:var(--blue);margin-top:.3rem;font-weight:500}
.odd-noted-dot{color:var(--blue);font-size:.8rem;flex-shrink:0;margin-top:.1rem}
/* Area cards */
.odd-area-card{border:1px solid var(--gray-200);border-radius:var(--radius);margin-bottom:.6rem;background:#fff;overflow:hidden}
.odd-area-card.healthcare{border-left:3px solid var(--blue)}
.odd-area-header{padding:.85rem 1rem;cursor:pointer;display:flex;align-items:flex-start;gap:.75rem;user-select:none;transition:background .1s}
.odd-area-header:hover{background:var(--gray-50)}
.odd-area-header-text{flex:1;min-width:0}
.odd-area-title-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-bottom:.15rem}
.odd-area-name{font-size:.867rem;font-weight:600;color:var(--gray-800)}
.odd-hc-badge{background:var(--blue-light);color:var(--blue);font-size:.67rem;font-weight:600;padding:.1rem .4rem;border-radius:4px;white-space:nowrap}
.odd-area-tagline{font-size:.773rem;color:var(--gray-500);font-style:italic}
.odd-expand-icon{font-size:.7rem;color:var(--gray-400);flex-shrink:0;margin-top:.15rem;transition:transform .15s}
.odd-area-body{padding:0 1rem 1rem 1rem;border-top:1px solid var(--gray-100)}
.odd-subsection-title{font-size:.73rem;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:var(--gray-400);margin:1rem 0 .4rem 0}
.odd-question{font-size:.833rem;color:var(--gray-700);padding:.2rem 0;line-height:1.5}
.odd-flags-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:.25rem}
.odd-flags{border-radius:var(--radius);padding:.6rem .75rem}
.odd-flags.red{background:#FFF5F5;border:1px solid #FED7D7}
.odd-flags.green{background:#E1F5EE;border:1px solid #9FE1CB}
.odd-flags .odd-subsection-title{margin-top:0}
.odd-flags.red .odd-subsection-title{color:#C53030}
.odd-flags.green .odd-subsection-title{color:#0F6E56}
.odd-flag-item{font-size:.8rem;color:var(--gray-700);padding:.15rem 0;line-height:1.4}
.odd-notes-section{margin-top:.5rem}
.odd-notes-field{font-size:.833rem;min-height:72px}
/* Mindset section */
.odd-mindset{display:flex;flex-direction:column;gap:.75rem}
.odd-mindset-card{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius);padding:1rem 1.1rem;display:flex;gap:1rem;align-items:flex-start}
.odd-mindset-num{background:var(--blue);color:#fff;border-radius:50%;width:26px;height:26px;display:flex;align-items:center;justify-content:center;font-size:.773rem;font-weight:700;flex-shrink:0}
.odd-mindset-title{font-size:.9rem;font-weight:600;color:var(--gray-800);margin-bottom:.25rem}
.odd-mindset-body{font-size:.833rem;color:var(--gray-600);line-height:1.55}
@media(max-width:600px){
  .odd-flags-row{grid-template-columns:1fr}
  .odd-overview-grid{grid-template-columns:1fr}
}

/* MPA: nav items are anchors */
.header-nav a.nav-btn{text-decoration:none;display:inline-block}
.header-logo a{display:inline-flex;text-decoration:none}

/* vertical badge */
.mini-badge.vert{background:#eef4ff;color:#2952a3}
