
/* Equity Coffee Polish Release */
:root{--ec-radius:18px;--ec-gap:16px;--ec-font:Inter,Manrope,Outfit,system-ui,-apple-system,Segoe UI,Arial,sans-serif;--ec-espresso:#2f2119;--ec-cream:#fffaf3;--ec-card:#ffffff;--ec-line:rgba(47,33,25,.12);--ec-gold:#c98a35;--ec-green:#3f5f32;--ec-muted:#6f6258}*{box-sizing:border-box}body{font-family:var(--ec-font)}
img[src*="logo.webp"], .logo-image, .brand img, .ec-brand-logo img{object-fit:contain!important}.ec-logo-official{width:46px;height:46px;object-fit:contain;border-radius:0!important;background:transparent!important}.logo .logo-image,.unified-footer-logo .logo-image{content:url('/images/logo.png')!important}
.nav,.ec-top-nav,.top-nav,.app-shell-topbar,.admin-topbar{border-radius:999px!important;border:1px solid var(--ec-line)!important;box-shadow:0 12px 35px rgba(47,33,25,.08)!important}.nav-links{align-items:center;gap:8px}.nav-links a,.ec-v2-dd-btn{border-radius:999px!important;font-weight:800!important}.ec-v2-dd{position:relative;display:inline-flex}.ec-v2-dd-btn{border:1px solid var(--ec-line);background:rgba(255,250,243,.92);padding:10px 12px;color:var(--ec-espresso);cursor:pointer}.ec-v2-dd-panel{display:none;position:absolute;top:100%;left:0;min-width:220px;background:#fff;border:1px solid var(--ec-line);border-radius:18px;padding:8px;box-shadow:0 22px 60px rgba(47,33,25,.16);z-index:999}.ec-v2-dd:hover .ec-v2-dd-panel,.ec-v2-dd:focus-within .ec-v2-dd-panel,.ec-v2-dd.is-open .ec-v2-dd-panel{display:grid;gap:5px}.ec-v2-dd::after{content:"";position:absolute;left:0;right:0;top:100%;height:14px}.ec-v2-dd-panel{margin-top:8px}.ec-v2-stat small{display:inline-flex;margin-bottom:6px;font-size:.72rem;font-weight:900;text-transform:uppercase;color:var(--ec-gold);letter-spacing:.04em}
.ec-v2-dd-panel a{display:flex!important;padding:10px 12px!important;background:#fffaf3!important;color:var(--ec-espresso)!important;text-decoration:none!important}
.ec-v2-hero-title{font-size:clamp(2.4rem,5vw,5.2rem)!important;line-height:.98!important;letter-spacing:-.055em!important}.ec-v2-subtitle{max-width:780px!important;font-size:clamp(1.05rem,1.6vw,1.3rem)!important;color:var(--ec-muted)!important}.ec-v2-platform-stats,.ec-v2-metric-grid,.ec-v2-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--ec-gap);margin:22px 0}.ec-v2-stat,.ec-v2-card,.ec-v2-activity,.ec-v2-workflow-step,.card,.role-card,.split-item,.kpi-item,.process-step,.hero-metric-card{border-radius:var(--ec-radius)!important;border:1px solid var(--ec-line)!important;background:var(--ec-card)!important;box-shadow:0 14px 38px rgba(47,33,25,.07)!important;padding:18px!important}.ec-v2-stat strong{display:block;font-size:clamp(1.7rem,3vw,2.7rem);color:var(--ec-espresso);letter-spacing:-.04em}.ec-v2-stat span,.ec-v2-card p,.ec-v2-activity span{color:var(--ec-muted)}.ec-v2-card h3{margin:0 0 8px;display:flex;gap:8px;align-items:center}.ec-v2-card a,.ec-v2-pill,.ec-v2-status{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:8px 12px;margin-top:8px;text-decoration:none;font-weight:900;border:1px solid var(--ec-line);color:var(--ec-espresso);background:#fffaf3}.ec-v2-pill.primary,.ec-v2-status.public,.ec-v2-status.approved{background:var(--ec-gold);color:#fff;border-color:transparent}.ec-v2-status.private{background:#f3efe8}.ec-v2-status.shared{background:#eaf2ff}.ec-v2-status.pending{background:#fff6df}.ec-v2-section{margin:32px 0}.ec-v2-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px}.ec-v2-section h2{font-size:clamp(1.6rem,3vw,2.5rem);margin:0}.ec-v2-workflow{display:flex;gap:10px;flex-wrap:wrap}.ec-v2-workflow-step{flex:1 1 160px;text-align:center;font-weight:900}.ec-v2-activity-list{display:grid;gap:10px}.ec-v2-activity{display:flex;align-items:center;justify-content:space-between;gap:12px}.ec-v2-footer{margin-top:48px;padding:32px;border-radius:28px 28px 0 0;background:#21170f;color:#fff}.ec-v2-footer a{color:#ffe3ad;text-decoration:none}.ec-v2-footer-grid{display:grid;grid-template-columns:1.5fr repeat(5,1fr);gap:18px}.ec-v2-footer img{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:12px;padding:6px}.ec-v2-dashboard-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px;border:1px solid var(--ec-line);border-radius:24px;background:linear-gradient(135deg,#fffaf3,#fff);box-shadow:0 12px 34px rgba(47,33,25,.06);margin-bottom:18px}.ec-v2-dashboard-header h1{margin:0!important}.sidebar,.side-menu,.role-sidebar,.ec-role-sidebar{max-height:calc(100vh - 85px)!important;overflow-y:auto!important}.dashboard-banner,.hero-banner,.big-banner{max-height:220px;overflow:hidden}
@media(max-width:900px){.nav{top:8px!important;border-radius:22px!important}.nav.active .nav-links,.nav-links.open{overflow-y:auto!important;max-height:calc(100vh - 76px)!important}.ec-v2-platform-stats,.ec-v2-metric-grid,.ec-v2-card-grid{grid-template-columns:1fr 1fr}.ec-v2-footer-grid{grid-template-columns:1fr 1fr}.ec-v2-dd{display:block}.ec-v2-dd-panel{position:static;box-shadow:none;margin-top:6px}.hero,.dashboard-banner{padding-top:18px!important}.hero-card,.dashboard-banner{min-height:0!important}}@media(max-width:560px){.ec-v2-platform-stats,.ec-v2-metric-grid,.ec-v2-card-grid,.ec-v2-footer-grid{grid-template-columns:1fr}.ec-v2-activity{align-items:flex-start;flex-direction:column}.hero-actions .btn{width:100%;justify-content:center}.ec-v2-dashboard-header{padding:14px}.nav-actions .btn span{display:none!important}}


/*  visual correction: readable cards on dark dashboards + balanced brand header */
.ec-v2-card,
.ec-v2-stat,
.ec-v2-activity,
.ec-v2-workflow-step{
  color:var(--ec-espresso)!important;
}
.ec-v2-card h1,.ec-v2-card h2,.ec-v2-card h3,
.ec-v2-stat h1,.ec-v2-stat h2,.ec-v2-stat h3{
  color:var(--ec-espresso)!important;
}
.ec-v2-card p,.ec-v2-stat span,.ec-v2-activity span{
  color:var(--ec-muted)!important;
}
body .ec-v2-dashboard-brand,
body .brand.ec-v2-dashboard-brand{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  padding:18px 22px!important;
  border-radius:24px!important;
  background:linear-gradient(135deg,#fffaf3,#fff)!important;
  border:1px solid var(--ec-line)!important;
  box-shadow:0 14px 38px rgba(47,33,25,.08)!important;
  width:100%!important;
  max-width:720px!important;
}
body .ec-v2-dashboard-brand .ec-logo-official{
  width:58px!important;
  height:58px!important;
  flex:0 0 58px!important;
  padding:6px!important;
  background:#fff!important;
  border:1px solid var(--ec-line)!important;
  border-radius:14px!important;
}
body .ec-v2-dashboard-brand h1{
  color:var(--ec-espresso)!important;
  font-size:clamp(1.45rem,2.4vw,2.2rem)!important;
  line-height:1.05!important;
  letter-spacing:-.03em!important;
}
body .ec-v2-dashboard-brand .mut{
  color:var(--ec-muted)!important;
}
.ec-v2-on-dark .ec-v2-section h2,
.ec-v2-on-dark .ec-v2-section-head h2{
  color:#fffaf3!important;
}
.ec-v2-on-dark .tabs .tab:not(.active){
  background:#eef1f5!important;
  color:#2f2119!important;
  border-color:rgba(47,33,25,.15)!important;
}
.ec-v2-on-dark .section.card,
.ec-v2-on-dark .card{
  color:#2f2119!important;
}
.ec-v2-on-dark .section.card .hd strong,
.ec-v2-on-dark .card h3,
.ec-v2-on-dark .card strong{
  color:#2f2119!important;
}
.ec-v2-on-dark .section.card .mut,
.ec-v2-on-dark .card .mut{
  color:#6f6258!important;
}
@media(max-width:720px){
  body .ec-v2-dashboard-brand{max-width:none!important;padding:14px!important}
  body .ec-v2-dashboard-brand .ec-logo-official{width:48px!important;height:48px!important;flex-basis:48px!important}
}

/* Hotfix: hide old version badges and keep text readable after premium styling */
.ec-v2-pill{display:none!important}
.ec-v2-dashboard-header h1,.ec-v2-dashboard-header p{color:#241813!important}
