/* E27-E Customer Portal journey + unified control system. */
.portal-icon-sprite{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
  pointer-events:none;
}
.portal-icon{
  width:1.1rem;
  height:1.1rem;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.portal-v2-skip-link{
  position:fixed;
  inset-inline-start:16px;
  top:12px;
  z-index:2000;
  padding:10px 14px;
  border-radius:12px;
  color:#fff;
  background:#35283a;
  box-shadow:0 12px 32px rgba(37,25,40,.22);
  transform:translateY(-160%);
  transition:transform .16s ease;
}
.portal-v2-skip-link:focus{transform:translateY(0);color:#fff}
#portal-main-content:focus{outline:none}
.portal-v2-nav a,
.portal-v2-nav button,
.portal-v2-mobile-toggle,
.portal-v2-user-chip,
.portal-v2-kpi,
.portal-v2-quick a,
.portal-v2-journey-action{
  min-height:44px;
}
.portal-v2-nav a:focus-visible,
.portal-v2-nav button:focus-visible,
.portal-v2-mobile-toggle:focus-visible,
.portal-v2-user-chip:focus-visible,
.portal-v2-kpi:focus-visible,
.portal-v2-quick a:focus-visible,
.portal-v2-journey-action:focus-visible{
  outline:3px solid rgba(229,190,211,.78);
  outline-offset:3px;
}
.portal-v2-nav a[aria-current="page"]{
  background:rgba(255,255,255,.13);
  color:#fff;
}
.portal-v2-nav .nav-icon{
  font-size:0;
}
.portal-v2-nav .nav-icon .portal-icon{
  width:18px;
  height:18px;
}
.portal-v2-mobile-toggle .portal-icon{
  width:21px;
  height:21px;
}
.portal-v2-mobile-footer{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.12);
}
.portal-v2-mobile-footer form{margin:0}
.portal-v2-journey{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  align-items:center;
  margin:0 0 20px;
  padding:22px 24px;
  border:1px solid rgba(111,73,111,.14);
  border-radius:22px;
  background:
    radial-gradient(circle at 90% 10%,rgba(185,111,134,.12),transparent 16rem),
    linear-gradient(135deg,#fff,#fbf7fb);
  box-shadow:0 12px 38px rgba(55,37,58,.05);
}
.portal-v2-journey-copy{
  display:grid;
  gap:6px;
}
.portal-v2-journey-label{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--portal-primary);
  font-size:.67rem;
  font-weight:900;
}
.portal-v2-journey-label .portal-icon{
  width:16px;
  height:16px;
}
.portal-v2-journey h2{
  margin:0;
  color:var(--portal-ink);
  font-size:1rem;
  font-weight:900;
}
.portal-v2-journey p{
  margin:0;
  max-width:70ch;
  color:var(--portal-muted);
  font-size:.74rem;
  line-height:1.9;
}
.portal-v2-journey-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:150px;
  padding:10px 16px;
  border-radius:14px;
  color:#fff;
  background:linear-gradient(135deg,var(--portal-primary),#4d314f);
  font-size:.72rem;
  font-weight:900;
  box-shadow:0 10px 24px rgba(79,49,80,.14);
}
.portal-v2-journey-action:hover{color:#fff;transform:translateY(-1px)}
.portal-v2-journey-action .portal-icon{width:16px;height:16px}
.portal-v2-kpi-icon{
  font-size:0;
}
.portal-v2-kpi-icon .portal-icon{
  width:19px;
  height:19px;
}
.portal-v2-kpi:hover,
.portal-v2-quick a:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(55,37,58,.07);
}
@media(max-width:700px){
  .portal-v2-journey{
    grid-template-columns:1fr;
    padding:18px;
  }
  .portal-v2-journey-action{
    width:100%;
  }
}
@media(prefers-reduced-motion:reduce){
  .portal-v2-skip-link,
  .portal-v2-kpi,
  .portal-v2-quick a,
  .portal-v2-journey-action{
    transition:none!important;
  }
  .portal-v2-kpi:hover,
  .portal-v2-quick a:hover,
  .portal-v2-journey-action:hover{
    transform:none;
  }
}


/* E27-E portal visual harmony v2. */
:root{
  --portal-bg:#f8f5f6;
  --portal-surface:#fffdfb;
  --portal-soft:#f4e8ee;
  --portal-primary:#654361;
  --portal-primary-2:#876184;
  --portal-ink:#2f2931;
  --portal-muted:#716873;
  --portal-line:#e8dde4;
  --portal-success:#2f7d58;
  --portal-warning:#9b6a2b;
  --portal-danger:#a8445f;
  --portal-shadow:0 16px 46px rgba(51,35,53,.07);
  --portal-editorial-accent:#b58b63;
}
body.portal-v2-auth{
  background:
    radial-gradient(circle at 96% 2%,rgba(184,109,134,.08),transparent 24rem),
    #f8f5f6;
}
.portal-v2-sidebar,
.portal-v2-offcanvas{
  background:
    radial-gradient(circle at 35% 0,rgba(184,109,134,.20),transparent 18rem),
    linear-gradient(180deg,#2f2533 0%,#403043 58%,#4a354b 100%);
}
.portal-v2-topbar{
  background:rgba(255,253,251,.92);
  border-bottom-color:var(--portal-line);
}
.portal-v2-hero{
  border-color:var(--portal-line);
  background:
    radial-gradient(circle at 92% 0,rgba(181,139,99,.10),transparent 16rem),
    linear-gradient(125deg,#fffdfb 10%,#fff7f9 60%,#f0e6ef 100%);
}
.portal-v2-card,
.portal-v2-kpi,
.portal-project-card{
  border-color:var(--portal-line);
  background:var(--portal-surface);
  box-shadow:var(--portal-shadow);
}
.portal-v2-kpi-icon{
  color:var(--portal-primary);
  background:linear-gradient(145deg,var(--portal-soft),#f7efe7);
}
.portal-v2-journey{
  border-color:rgba(101,67,97,.14);
  background:
    radial-gradient(circle at 92% 8%,rgba(181,139,99,.09),transparent 15rem),
    linear-gradient(135deg,#fffdfb,#fbf7fb);
}
.portal-v2-journey-action{
  background:linear-gradient(135deg,var(--portal-primary),#49324a);
  box-shadow:0 12px 28px rgba(73,50,74,.16);
}
.portal-status,
.portal-mini-badge{
  background:var(--portal-soft);
  color:var(--portal-primary);
}
