/* CompHelp Autonomous Network — role portal shell */
:root {
  --portal-sidebar: 17rem;
  --portal-top-banner: 2.25rem;
  --portal-bg: #050816;
  --portal-surface: #0c1428;
  --portal-surface-raised: #111b33;
  --portal-line: rgba(148, 163, 184, 0.16);
  --portal-line-strong: rgba(148, 163, 184, 0.28);
  --portal-text: #edf2fb;
  --portal-muted: #8f9bb2;
  --portal-violet: #7c6cff;
  --portal-blue: #52a8ff;
  --portal-green: #4bd6a1;
  --portal-amber: #f4bd63;
  --portal-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.portal-page {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background: var(--portal-bg);
  color: var(--portal-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.portal-skip-link,
.portal-skip {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #050816;
  font-weight: 800;
}
.portal-skip-link:focus,
.portal-skip:focus { top: 0.75rem; }

.portal-page button:focus-visible,
.portal-page a:focus-visible,
.portal-page input:focus-visible {
  outline: 3px solid rgba(82, 168, 255, 0.76);
  outline-offset: 3px;
}

.portal-page .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.portal-demo-banner {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  min-height: var(--portal-top-banner);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.35rem 1rem;
  border-bottom: 1px solid rgba(145, 133, 255, 0.28);
  background: #11162a;
  color: #aeb8cd;
  font-size: 0.7rem;
}
.portal-demo-banner strong {
  color: #cbc5ff;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.portal-demo-banner a { min-height: 24px; display: inline-flex; align-items: center; color: #f0f2f8; font-weight: 800; }
.portal-demo-banner a:hover { color: #b9b1ff; }
.portal-demo-short { display: none; }

.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--portal-sidebar) minmax(0, 1fr);
  padding-top: var(--portal-top-banner);
}

.portal-sidebar {
  position: fixed;
  top: var(--portal-top-banner);
  left: 0;
  bottom: 0;
  z-index: 100;
  width: var(--portal-sidebar);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  padding: 1.35rem 1rem;
  border-right: 1px solid var(--portal-line);
  background: #070b18;
}
.portal-brand {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline: 0.45rem;
}
.portal-brand > span {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145, 133, 255, 0.48);
  border-radius: 0.75rem;
  background: rgba(124, 108, 255, 0.12);
  color: #c7c1ff;
  font-size: 0.76rem;
  font-weight: 900;
}
.portal-brand div { color: #f5f7fb; font-size: 0.92rem; font-weight: 850; }
.portal-brand small {
  display: block;
  margin-top: 0.15rem;
  color: #707c94;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.portal-role {
  margin-top: 0.65rem;
  padding: 0.75rem 0.45rem;
  display: grid;
  gap: 0.2rem;
  border-top: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
}
.portal-role span { color: #8f86c8; font-size: 0.58rem; font-weight: 900; letter-spacing: 0.09em; }
.portal-role strong { color: #eef1f7; font-size: 0.78rem; }
.portal-role small { color: #8996ad; font-size: 0.62rem; }
.portal-side-nav,
.portal-nav {
  display: grid;
  gap: 0.3rem;
  margin-top: 2rem;
}
.portal-side-nav button,
.portal-nav button {
  min-height: 46px;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  background: transparent;
  color: #8793aa;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 760;
}
.portal-side-nav button span,
.portal-nav button span { color: #606c84; font-size: 1rem; text-align: center; }
.portal-side-nav button:hover,
.portal-nav button:hover { background: rgba(255, 255, 255, 0.025); color: #d7ddeb; }
.portal-side-nav button[aria-current="page"],
.portal-nav button[aria-current="page"] {
  border-color: rgba(145, 133, 255, 0.26);
  background: rgba(124, 108, 255, 0.1);
  color: #eeeaff;
}
.portal-side-nav button[aria-current="page"] span,
.portal-nav button[aria-current="page"] span { color: #a9a0ff; }
.portal-sidebar__status {
  min-height: 4.4rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--portal-line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.018);
}
.portal-sidebar__status strong,
.portal-sidebar__status small { display: block; }
.portal-sidebar__status strong { color: #cdd4e2; font-size: 0.7rem; }
.portal-sidebar__status small { margin-top: 0.2rem; color: #707c93; font-size: 0.64rem; }

.portal-main {
  grid-column: 2;
  min-width: 0;
  padding: 1.5rem clamp(1.25rem, 3vw, 3.25rem) 5rem;
}
.portal-page > .portal-main { margin-left: var(--portal-sidebar); }
.portal-topbar {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--portal-line);
}
.portal-topbar p,
.portal-kicker {
  margin: 0 0 0.4rem;
  color: #8f86c8;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.portal-topbar h1 { margin: 0; color: #f7f8fc; font-size: clamp(1.35rem, 2.5vw, 2rem); letter-spacing: -0.035em; }
.portal-topbar__actions { display: flex; align-items: center; gap: 0.7rem; }
.portal-page .ch-button { min-height: 44px; border-radius: 0.66rem; }
.portal-page .ch-button--primary {
  border-color: var(--portal-violet);
  background: var(--portal-violet);
  color: #fff;
}
.portal-page .ch-button--primary:hover { border-color: #6d5de8; background: #6d5de8; }
.portal-page .ch-button--secondary { border-color: var(--portal-line-strong); background: transparent; color: #dce2ee; }
.portal-page .ch-button--secondary:hover { border-color: rgba(145, 133, 255, 0.55); background: rgba(124, 108, 255, 0.08); }

.portal-view,
.portal-panel { padding-top: 2rem; }
.portal-view.is-active,
.portal-panel.is-active { animation: portal-view-in 360ms ease both; }
@keyframes portal-view-in { from { opacity: 0.7; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.portal-view__heading,
.portal-panel__intro,
.portal-section__heading,
.portal-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.portal-view__heading,
.portal-panel__intro { margin-bottom: 1.5rem; }
.portal-view__heading h2,
.portal-panel__intro h2 { margin: 0; color: #f5f7fb; font-size: clamp(1.8rem, 3.8vw, 3.25rem); line-height: 1.05; letter-spacing: -0.045em; }
.portal-truth-label,
.portal-truth {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  color: #9aa6bb;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.portal-status {
  min-height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--portal-line-strong);
  border-radius: 999px;
  color: #cdd4e2;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.portal-status--warning { border-color: rgba(244,189,99,0.35); background: rgba(244,189,99,0.09); color: #f4c987; }
.portal-status--beta { border-color: rgba(143,134,200,0.4); background: rgba(143,134,200,0.1); color: #c9c1ff; }
.portal-status--blocked { border-color: rgba(239,107,120,0.35); background: rgba(239,107,120,0.09); color: #ff9eaa; }

.portal-project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  overflow: hidden;
  border: 1px solid rgba(145, 133, 255, 0.32);
  border-radius: 0.95rem;
  background: linear-gradient(120deg, rgba(124, 108, 255, 0.13), rgba(12, 20, 40, 0.78) 55%);
  box-shadow: var(--portal-shadow);
}
.portal-project-hero__copy { min-width: 0; padding: clamp(1.35rem, 3vw, 2.4rem); }
.portal-project-hero__meta { display: flex; align-items: center; gap: 0.7rem; color: #8390a7; font-size: 0.7rem; }
.portal-project-hero h3 { max-width: 17ch; margin: 1.25rem 0 0; color: #fff; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -0.055em; }
.portal-project-hero__copy > p { max-width: 46rem; margin: 1.2rem 0 0; color: #a9b4c8; line-height: 1.65; }
.portal-project-hero__action {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--portal-line);
}
.portal-project-hero__action small { color: #79859d; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; }
.portal-project-hero__action strong { color: #dde3ef; font-size: 0.8rem; }
.portal-project-hero__metrics { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--portal-line); background: rgba(4, 8, 19, 0.38); }
.portal-project-hero__metrics div { min-width: 0; padding: 1.25rem; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--portal-line); border-bottom: 1px solid var(--portal-line); }
.portal-project-hero__metrics div:nth-child(even) { border-right: 0; }
.portal-project-hero__metrics div:nth-last-child(-n+2) { border-bottom: 0; }
.portal-project-hero__metrics dt { color: #6f7c94; font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase; }
.portal-project-hero__metrics dd { margin: 0.45rem 0 0; overflow-wrap: anywhere; color: #e7ebf4; font-size: 0.82rem; font-weight: 820; }

.portal-section { margin-top: 2rem; }
.portal-section__heading { margin-bottom: 1rem; align-items: flex-end; }
.portal-section__heading h3,
.portal-card h3 { margin: 0; color: #eef2fa; font-size: 1rem; }
.portal-section__heading > span,
.portal-card__heading > span:not(.portal-truth-label) { color: #717e95; font-size: 0.68rem; }
.portal-tracker {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(5.5rem, 1fr));
  overflow-x: auto;
  border-top: 1px solid var(--portal-line-strong);
  border-left: 1px solid var(--portal-line-strong);
  scrollbar-color: #313b55 transparent;
  list-style: none;
}
.portal-tracker li {
  position: relative;
  min-height: 8.5rem;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--portal-line-strong);
  border-bottom: 1px solid var(--portal-line-strong);
  background: rgba(12, 20, 40, 0.52);
}
.portal-tracker li::after { content: ""; position: absolute; top: 1.1rem; left: 2.4rem; right: 0.6rem; height: 1px; background: var(--portal-line); }
.portal-tracker li span { position: absolute; top: 0.7rem; left: 0.75rem; width: 1.25rem; height: 1.25rem; display: grid; place-items: center; border: 1px solid var(--portal-line-strong); border-radius: 50%; background: #0b1225; color: #6f7b92; font-size: 0.54rem; font-weight: 850; }
.portal-tracker li strong { color: #c8d0df; font-size: 0.72rem; }
.portal-tracker li small { margin-top: 0.25rem; color: #8996ad; font-size: 0.62rem; }
.portal-tracker li.is-complete { background: rgba(75, 214, 161, 0.045); }
.portal-tracker li.is-complete span { border-color: rgba(75, 214, 161, 0.48); color: var(--portal-green); }
.portal-tracker li[aria-current="step"] { background: rgba(124, 108, 255, 0.12); box-shadow: inset 0 3px 0 var(--portal-violet); }
.portal-tracker li[aria-current="step"] span { border-color: #8d81ff; color: #c4bdff; }
.portal-tracker li[aria-current="step"] strong { color: #fff; }

.portal-dashboard-grid { margin-top: 2rem; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1rem; align-items: start; }
.portal-card { min-width: 0; padding: 1.25rem; border: 1px solid var(--portal-line); border-radius: 0.85rem; background: var(--portal-surface); }
.portal-card--concierge { grid-column: 1 / -1; }
.portal-pro-summary { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.8rem; }
.portal-pro-summary > div { min-width: 0; margin-right: auto; }
.portal-pro-summary strong,
.portal-pro-summary small { display: block; }
.portal-pro-summary strong { color: #f1f4fa; font-size: 0.88rem; }
.portal-pro-summary small { margin-top: 0.25rem; color: #808ca3; font-size: 0.7rem; }
.portal-avatar { width: 2.65rem; height: 2.65rem; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(145, 133, 255, 0.38); border-radius: 0.75rem; background: #151d36; color: #bbb4ff; font-size: 0.68rem; font-weight: 900; }
.portal-stats { margin: 1.25rem 0; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--portal-line); }
.portal-stats div { min-width: 0; padding: 0.8rem 0.5rem; border-right: 1px solid var(--portal-line); }
.portal-stats div:last-child { border-right: 0; }
.portal-stats dt { color: #6e7b93; font-size: 0.58rem; letter-spacing: 0.07em; text-transform: uppercase; }
.portal-stats dd { margin: 0.35rem 0 0; overflow-wrap: anywhere; color: #dce2ec; font-size: 0.74rem; font-weight: 800; }
.portal-card--best > p { color: #8490a6; font-size: 0.72rem; line-height: 1.55; }
.portal-card--best .ch-button { margin-top: 0.45rem; }
.portal-activity { margin: 1rem 0 0; padding: 0; list-style: none; }
.portal-activity li { min-height: 3.65rem; display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.72rem 0; border-bottom: 1px solid var(--portal-line); }
.portal-activity li:last-child { border-bottom: 0; }
.portal-activity strong,
.portal-activity small { display: block; }
.portal-activity strong { color: #dce2ec; font-size: 0.75rem; }
.portal-activity small { margin-top: 0.23rem; color: #727f97; font-size: 0.65rem; }
.portal-concierge-log { min-height: 6rem; max-height: 14rem; margin-top: 1rem; padding: 0.85rem; overflow-y: auto; border: 1px solid var(--portal-line); border-radius: 0.7rem; background: #080d1c; }
.portal-message { max-width: 85%; margin: 0 0 0.65rem; padding: 0.65rem 0.75rem; border-radius: 0.65rem; color: #cbd3e2; font-size: 0.73rem; line-height: 1.5; }
.portal-message--assistant { border: 1px solid var(--portal-line); background: #10182c; }
.portal-message--customer { margin-left: auto; background: #6355d8; color: #fff; }
.portal-prompt-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.portal-prompt-row button { min-height: 40px; padding: 0.45rem 0.65rem; border: 1px solid var(--portal-line); border-radius: 999px; background: transparent; color: #9aa6bb; font-size: 0.66rem; }
.portal-prompt-row button:hover { border-color: rgba(145, 133, 255, 0.5); color: #ded9ff; }
.portal-concierge-form { margin-top: 0.7rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.55rem; }
.portal-concierge-form input { min-width: 0; min-height: 44px; padding: 0.7rem 0.8rem; border: 1px solid var(--portal-line-strong); border-radius: 0.65rem; background: #080d1c; color: #edf1f8; }
.portal-disclaimer { margin: 0.65rem 0 0; color: #8996ad; font-size: 0.64rem; line-height: 1.5; }

.portal-alternatives { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--portal-line-strong); border-left: 1px solid var(--portal-line-strong); }
.portal-alternatives article { min-height: 5.4rem; display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem; border-right: 1px solid var(--portal-line-strong); border-bottom: 1px solid var(--portal-line-strong); background: rgba(12, 20, 40, 0.48); }
.portal-alternatives article > div { min-width: 0; margin-right: auto; }
.portal-alternatives strong,
.portal-alternatives small { display: block; }
.portal-alternatives strong { color: #e1e6ef; font-size: 0.76rem; }
.portal-alternatives small { margin-top: 0.24rem; color: #79869d; font-size: 0.66rem; }
.portal-alternatives article > span:last-child { color: #aeb8ca; font-size: 0.7rem; font-weight: 760; }

.portal-empty-state { min-height: 22rem; display: grid; place-items: center; align-content: center; text-align: center; padding: 2rem; border: 1px solid var(--portal-line); border-radius: 0.9rem; background: var(--portal-surface); }
.portal-empty-state h3 { margin: 1rem 0 0; color: #edf1f8; font-size: 1.25rem; }
.portal-empty-state p { max-width: 37rem; margin: 0.75rem auto 1.25rem; color: #8591a7; line-height: 1.65; }
.portal-policy-note { padding: 0.65rem 0.8rem; border: 1px solid var(--portal-line); border-radius: 0.6rem; color: #9ba7bb; font-size: 0.7rem; }
.portal-quote-table { overflow: hidden; border: 1px solid var(--portal-line); border-radius: 0.8rem; background: var(--portal-surface); }
.portal-quote-table [role="row"] { min-height: 4rem; display: grid; grid-template-columns: 1fr 0.7fr 0.7fr; align-items: center; border-bottom: 1px solid var(--portal-line); }
.portal-quote-table [role="row"]:last-child { border-bottom: 0; }
.portal-quote-table span,
.portal-quote-table strong { padding: 0.8rem 1rem; color: #cbd3e1; font-size: 0.74rem; }
.portal-quote-table [role="columnheader"] { color: #8996ad; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }

/* Professional Business Cockpit */
.portal-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--portal-line-strong);
  border-left: 1px solid var(--portal-line-strong);
}
.portal-metric-grid article {
  min-height: 8.2rem;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--portal-line-strong);
  border-bottom: 1px solid var(--portal-line-strong);
  background: rgba(12, 20, 40, 0.54);
}
.portal-metric-grid span { margin-bottom: auto; color: #8996ad; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.portal-metric-grid strong { color: #f5f7fb; font-size: clamp(1.55rem, 3vw, 2.35rem); letter-spacing: -0.04em; }
.portal-metric-grid small { margin-top: 0.3rem; color: #8996ad; font-size: 0.64rem; }

.portal-opportunity-grid { display: grid; grid-template-columns: 1.12fr 0.94fr 0.94fr; gap: 1rem; }
.portal-opportunity { min-width: 0; padding: 1.2rem; display: flex; flex-direction: column; border: 1px solid var(--portal-line); border-radius: 0.85rem; background: var(--portal-surface); }
.portal-opportunity--best { border-color: rgba(145, 133, 255, 0.48); background: linear-gradient(145deg, rgba(124, 108, 255, 0.12), rgba(12, 20, 40, 0.92)); box-shadow: var(--portal-shadow); }
.portal-opportunity__top { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; }
.portal-opportunity__top > strong { color: #bcb5ff; font-size: 0.85rem; }
.portal-opportunity > p { margin: 1.15rem 0 0.25rem; color: #8996ad; font-size: 0.68rem; }
.portal-opportunity h4 { margin: 0; color: #eef2f9; font-size: 1rem; line-height: 1.35; }
.portal-opportunity dl { margin: 1.15rem 0; display: grid; grid-template-columns: 1fr; border-block: 1px solid var(--portal-line); }
.portal-opportunity dl div { min-width: 0; padding: 0.62rem 0; display: flex; justify-content: space-between; gap: 0.75rem; border-bottom: 1px solid var(--portal-line); }
.portal-opportunity dl div:last-child { border-bottom: 0; }
.portal-opportunity dt { color: #8996ad; font-size: 0.63rem; }
.portal-opportunity dd { margin: 0; color: #dce2ed; font-size: 0.7rem; font-weight: 800; text-align: right; }
.portal-opportunity > small { min-height: 3rem; color: #8996ad; font-size: 0.64rem; line-height: 1.5; }
.portal-opportunity .ch-button { width: 100%; margin-top: auto; }

.portal-professional-grid { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
#professionalSchedule,
.portal-card--manager { grid-column: 1 / -1; }
.portal-compact-list { margin-top: 0.85rem; }
.portal-compact-list article { min-height: 4rem; display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px solid var(--portal-line); }
.portal-compact-list article:last-child { border-bottom: 0; }
.portal-compact-list article > div { min-width: 0; margin-right: auto; }
.portal-compact-list strong,
.portal-compact-list small { display: block; }
.portal-compact-list strong { color: #dce2ec; font-size: 0.74rem; }
.portal-compact-list small { margin-top: 0.25rem; color: #8996ad; font-size: 0.64rem; }
.portal-compact-list button { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--portal-line); border-radius: 50%; background: transparent; color: #bbb4ff; }
.portal-job-list { margin-top: 0.85rem; }
.portal-job-list article { min-height: 4.25rem; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--portal-line); }
.portal-job-list article:last-child { border-bottom: 0; }
.portal-job-list article > div { min-width: 0; margin-right: auto; }
.portal-job-list strong,
.portal-job-list small { display: block; }
.portal-job-list strong { color: #dce2ec; font-size: 0.74rem; }
.portal-job-list small { margin-top: 0.25rem; color: #8996ad; font-size: 0.64rem; }
.portal-schedule-strip { margin-top: 1rem; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--portal-line); border-left: 1px solid var(--portal-line); }
.portal-schedule-strip div { min-height: 7.5rem; padding: 0.7rem; display: flex; flex-direction: column; justify-content: flex-end; border-right: 1px solid var(--portal-line); border-bottom: 1px solid var(--portal-line); }
.portal-schedule-strip div.is-active { background: rgba(124, 108, 255, 0.11); box-shadow: inset 0 3px 0 var(--portal-violet); }
.portal-schedule-strip span { margin-bottom: auto; color: #8996ad; font-size: 0.6rem; font-weight: 850; }
.portal-schedule-strip strong { color: #eef1f8; font-size: 1.35rem; }
.portal-schedule-strip small { margin-top: 0.22rem; color: #8996ad; font-size: 0.6rem; }

.portal-revenue-panel { display: grid; grid-template-columns: 0.7fr 1.3fr 0.9fr; min-height: 15rem; overflow: hidden; border: 1px solid var(--portal-line-strong); border-radius: 0.85rem; background: var(--portal-surface); }
.portal-revenue-summary { padding: 1.25rem; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--portal-line); }
.portal-revenue-summary span { color: #8996ad; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.07em; }
.portal-revenue-summary strong { margin-top: 0.65rem; color: #f5f7fb; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.06em; }
.portal-revenue-summary small { margin-top: 0.4rem; color: #8996ad; font-size: 0.64rem; }
.portal-revenue-bars { min-height: 13rem; padding: 1.25rem; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 0.7rem; border-right: 1px solid var(--portal-line); }
.portal-revenue-bars div { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 0.5rem; align-items: end; }
.portal-revenue-bar { width: 100%; height: var(--portal-bar); min-height: 0.4rem; display: block; border-radius: 0.25rem 0.25rem 0 0; background: linear-gradient(180deg, #8172ff, #5143b8); }
.portal-revenue-bars small { color: #8996ad; font-size: 0.6rem; text-align: center; }
.portal-revenue-panel dl { margin: 0; display: grid; }
.portal-revenue-panel dl div { padding: 1rem; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--portal-line); }
.portal-revenue-panel dl div:last-child { border-bottom: 0; }
.portal-revenue-panel dt { color: #8996ad; font-size: 0.61rem; text-transform: uppercase; letter-spacing: 0.06em; }
.portal-revenue-panel dd { margin: 0.35rem 0 0; color: #e0e5ef; font-size: 0.74rem; font-weight: 800; }
.portal-state-legend { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.portal-state-legend span { min-height: 1.8rem; display: inline-flex; align-items: center; padding: 0.3rem 0.55rem; border: 1px solid var(--portal-line); border-radius: 999px; color: #8996ad; font-size: 0.61rem; }
.portal-professional-cta { margin-top: 2.5rem; padding: clamp(1.4rem, 3vw, 2.3rem); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; border: 1px solid rgba(145, 133, 255, 0.36); border-radius: 0.9rem; background: linear-gradient(110deg, rgba(124, 108, 255, 0.12), rgba(12, 20, 40, 0.7)); }
.portal-professional-cta h3 { margin: 0; color: #f6f7fb; font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: -0.045em; }
.portal-professional-cta p:not(.portal-kicker) { max-width: 42rem; margin: 0.7rem 0 0; color: #a3aec1; line-height: 1.6; }
.portal-professional-cta > div:last-child { display: grid; gap: 0.6rem; justify-items: start; }
.portal-professional-cta small { max-width: 21rem; color: #8996ad; font-size: 0.64rem; line-height: 1.5; }
.portal-revenue-panel dl dd { margin: 0.3rem 0 0; color: #f1f3f8; font-weight: 800; }

/* AI Operations Command Center */
.portal-panel__intro--operations { margin-bottom: 1rem; }
.portal-attention { min-height: 5.25rem; padding: 1rem 1.15rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.2rem 1rem; border: 1px solid rgba(255, 183, 77, 0.35); border-radius: 1rem; background: linear-gradient(95deg, rgba(255, 170, 51, 0.12), rgba(13, 21, 41, 0.88) 58%); }
.portal-attention p { margin: 0 0 0.25rem; color: #f4bd75; font-size: 0.65rem; font-weight: 900; letter-spacing: 0.13em; }
.portal-attention h3 { margin: 0; font-size: clamp(1rem, 1.5vw, 1.3rem); }
.portal-attention button { min-height: 2.75rem; padding: 0.65rem 1rem; border: 1px solid rgba(255, 190, 100, 0.42); border-radius: 0.7rem; background: rgba(255,255,255,0.04); color: #fff2df; font-weight: 800; cursor: pointer; }
.portal-attention > span { grid-column: 1 / -1; color: #aeb8cd; font-size: 0.65rem; }
.portal-operations-overview { margin-top: 1rem; display: grid; grid-template-columns: minmax(18rem, 0.85fr) minmax(28rem, 1.45fr); gap: 1rem; align-items: stretch; }
.portal-health-card, .portal-approval-queue { min-height: 22rem; }
.portal-health-layout { min-height: 12.5rem; margin-top: 0.8rem; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem; }
.portal-health-donut { width: min(10.5rem, 100%); aspect-ratio: 1; margin: auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#36c989 0 50%, #f0b55c 50% 71.43%, #8a7cff 71.43% 85.72%, #ef6b78 85.72% 100%); box-shadow: 0 0 0 0.5rem rgba(255,255,255,0.025); }
.portal-health-donut::before { content: ""; width: 62%; aspect-ratio: 1; grid-area: 1 / 1; border-radius: 50%; background: #0c1428; box-shadow: inset 0 0 0 1px var(--portal-line); }
.portal-health-donut div { z-index: 1; grid-area: 1 / 1; display: grid; text-align: center; }
.portal-health-donut strong { color: #fff; font-size: 2rem; line-height: 1; }
.portal-health-donut span { margin-top: 0.25rem; color: #aeb8cd; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.portal-health-legend { margin: 0; padding: 0; display: grid; gap: 0.65rem; list-style: none; }
.portal-health-legend li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.55rem; color: #c8d0df; font-size: 0.72rem; }
.portal-health-legend i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #36c989; }
.portal-health-legend i.is-monitor { background: #f0b55c; }
.portal-health-legend i.is-review { background: #8a7cff; }
.portal-health-legend i.is-blocked { background: #ef6b78; }
.portal-health-legend strong { color: #fff; }
.portal-review-list { margin-top: 0.65rem; }
.portal-review-list article { min-height: 4rem; padding: 0.7rem 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem; border-bottom: 1px solid var(--portal-line); }
.portal-review-list article:last-child { border-bottom: 0; }
.portal-review-list article div { display: grid; gap: 0.2rem; }
.portal-review-list article div strong { color: #f4f5f8; font-size: 0.78rem; }
.portal-review-list article div small { color: #8996ad; font-size: 0.64rem; }
.portal-review-list button { min-width: 4.8rem; min-height: 2.5rem; border: 1px solid var(--portal-line-strong); border-radius: 0.6rem; background: #10192f; color: #dce1ec; font-weight: 800; cursor: pointer; }
.portal-operations-metrics { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--portal-line); border-radius: 1rem; overflow: hidden; background: #0c1428; }
.portal-operations-metrics article { min-height: 6.5rem; padding: 1rem; display: grid; align-content: center; gap: 0.3rem; border-right: 1px solid var(--portal-line); }
.portal-operations-metrics article:last-child { border-right: 0; }
.portal-operations-metrics span, .portal-operations-metrics small { color: #8996ad; font-size: 0.65rem; font-weight: 800; }
.portal-operations-metrics strong { color: #f6f7fb; font-size: 1.65rem; }
.portal-capability-governance { margin-top: 1rem; border-color: rgba(138, 124, 255, 0.32); background: linear-gradient(145deg, rgba(124, 108, 255, 0.07), #0c1428 38%); }
.portal-capability-intro { max-width: 58rem; margin: 0.65rem 0 1rem; color: #9ca8bb; font-size: 0.72rem; line-height: 1.6; }
.portal-capability-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.portal-capability-layout > div { min-width: 0; padding: 0.85rem; border: 1px solid var(--portal-line); border-radius: 0.8rem; background: rgba(5, 10, 24, 0.44); }
.portal-capability-layout h4 { margin: 0 0 0.65rem; color: #edf0f7; font-size: 0.75rem; }
.portal-capability-summary, .portal-policy-summary { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.portal-capability-summary div, .portal-policy-summary div { min-width: 0; padding: 0.55rem; border-left: 1px solid var(--portal-line); }
.portal-capability-summary div:first-child, .portal-policy-summary div:first-child { border-left: 0; }
.portal-capability-summary dt, .portal-policy-summary dt { min-height: 2rem; color: #8996ad; font-size: 0.56rem; font-weight: 800; line-height: 1.35; text-transform: uppercase; }
.portal-capability-summary dd, .portal-policy-summary dd { margin: 0.25rem 0 0; color: #f5f7fb; font-size: 1.1rem; font-weight: 900; }
.portal-capability-highlights { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
.portal-capability-highlights > p { grid-column: 1 / -1; margin: 0; color: #8996ad; font-size: 0.68rem; }
.portal-capability-item { min-width: 0; padding: 0.85rem; display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 0.7rem; border: 1px solid var(--portal-line); border-radius: 0.75rem; background: #0a1224; }
.portal-capability-item strong { color: #edf0f7; font-size: 0.72rem; }
.portal-capability-item code { grid-column: 1 / -1; color: #8996ad; font-size: 0.57rem; overflow-wrap: anywhere; }
.portal-capability-item p { grid-column: 1 / -1; margin: 0.25rem 0 0; color: #9ca8bb; font-size: 0.61rem; line-height: 1.5; }
.portal-capability-state { min-height: 1.5rem; display: inline-flex; align-items: center; padding: 0.2rem 0.45rem; border: 1px solid var(--portal-line-strong); border-radius: 999px; color: #c7cfdf; font-size: 0.54rem; font-weight: 900; text-transform: uppercase; }
.portal-capability-state--production { border-color: rgba(54, 201, 137, 0.38); color: #7ae4b3; }
.portal-capability-state--beta { border-color: rgba(240, 181, 92, 0.38); color: #f4c780; }
.portal-capability-state--prototype { border-color: rgba(138, 124, 255, 0.42); color: #b8afff; }
.portal-capability-state--scaffold { color: #aab5c8; }
.portal-capability-state--blocked { border-color: rgba(239, 107, 120, 0.42); color: #ff9eaa; }
.portal-capability-boundary { margin: 1rem 0 0; padding: 0.85rem 1rem; display: grid; gap: 0.25rem; border-left: 3px solid #8a7cff; background: rgba(138, 124, 255, 0.07); }
.portal-capability-boundary strong { color: #ddd8ff; font-size: 0.69rem; }
.portal-capability-boundary span { color: #9ca8bb; font-size: 0.62rem; line-height: 1.5; }
.portal-operations-grid { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.portal-card--wide { grid-column: 1 / -1; }
.portal-agent-feed { margin-top: 0.75rem; }
.portal-agent-feed article { min-height: 3.7rem; padding: 0.65rem 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.65rem; border-bottom: 1px solid var(--portal-line); }
.portal-agent-feed i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #8a7cff; box-shadow: 0 0 0 0.25rem rgba(138,124,255,0.1); }
.portal-agent-feed article div { display: grid; gap: 0.15rem; }
.portal-agent-feed strong { font-size: 0.75rem; }
.portal-agent-feed small, .portal-agent-feed article > span { color: #8996ad; font-size: 0.62rem; }
.portal-agent-feed article > span { color: #bcb4ff; font-weight: 800; }
.portal-action-bars { margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.7rem; list-style: none; }
.portal-action-bars li { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(4rem, 0.8fr) auto; align-items: center; gap: 0.75rem; }
.portal-action-bars li > span { color: #dce1ec; font-size: 0.68rem; font-weight: 700; }
.portal-action-bars b { margin-right: 0.45rem; color: #8f86c8; }
.portal-action-bars i { height: 0.4rem; display: block; border-radius: 999px; background: linear-gradient(90deg, #7567e8 var(--portal-action), rgba(255,255,255,0.06) var(--portal-action)); }
.portal-action-bars small { color: #8996ad; font-size: 0.59rem; font-weight: 800; text-transform: uppercase; }
.portal-operations-pipeline { margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; }
.portal-operations-pipeline li { min-height: 6rem; padding: 0.75rem; display: grid; place-content: center; gap: 0.35rem; text-align: center; border-right: 1px solid var(--portal-line); background: linear-gradient(180deg, rgba(126,112,240,0.08), transparent); }
.portal-operations-pipeline li:last-child { border-right: 0; }
.portal-operations-pipeline strong { font-size: 1.45rem; }
.portal-operations-pipeline span { color: #8996ad; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.portal-operations-dl { margin: 0.75rem 0 0; display: grid; }
.portal-operations-dl div { min-height: 3.25rem; padding: 0.65rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--portal-line); }
.portal-operations-dl dt { color: #8996ad; font-size: 0.68rem; }
.portal-operations-dl dd { margin: 0; color: #f0f2f7; font-size: 0.72rem; font-weight: 800; text-align: right; }
.portal-risk-list { margin: 0.75rem 0 0; padding: 0; display: grid; list-style: none; }
.portal-risk-list li { min-height: 3.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--portal-line); color: #8996ad; font-size: 0.68rem; }
.portal-risk-list strong { color: #dcd7ff; font-size: 0.7rem; text-align: right; }
.portal-operations-access { margin-top: 1rem; padding: 1.2rem 1.35rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--portal-line); border-radius: 1rem; background: #0b1326; }
.portal-operations-access div { display: grid; gap: 0.25rem; }
.portal-operations-access p { margin: 0; color: #8f86c8; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.11em; }
.portal-operations-access h3 { margin: 0; font-size: 1rem; }
.portal-operations-access span { color: #8996ad; font-size: 0.68rem; }

.portal-mobile-nav { display: none; }

@media (max-width: 72rem) {
  :root { --portal-sidebar: 14.5rem; }
  .portal-project-hero { grid-template-columns: 1fr; }
  .portal-project-hero__metrics { border-top: 1px solid var(--portal-line); border-left: 0; }
  .portal-opportunity-grid { grid-template-columns: 1fr 1fr; }
  .portal-opportunity--best { grid-column: 1 / -1; }
  .portal-revenue-panel { grid-template-columns: 1fr 1fr; }
  .portal-revenue-panel dl { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--portal-line); }
  .portal-revenue-panel dl div { border-right: 1px solid var(--portal-line); border-bottom: 0; }
  .portal-revenue-panel dl div:last-child { border-right: 0; }
  .portal-operations-overview { grid-template-columns: 1fr; }
  .portal-health-card, .portal-approval-queue { min-height: auto; }
  .portal-capability-layout { grid-template-columns: 1fr; }
}

@media (max-width: 52rem) {
  .portal-demo-banner { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .portal-demo-banner a { margin-left: auto; }
  .portal-shell { display: block; }
  .portal-sidebar { display: none; }
  .portal-main { padding: 1rem 0.75rem 6.5rem; }
  .portal-page > .portal-main { margin-left: 0; }
  .portal-topbar { align-items: flex-start; }
  .portal-topbar__actions .ch-badge { display: none; }
  .portal-topbar__actions .ch-button { padding-inline: 0.75rem; font-size: 0.68rem; }
  .portal-view,
  .portal-panel { padding-top: 1.35rem; }
  .portal-view__heading,
  .portal-panel__intro { display: grid; }
  .portal-view__heading h2,
  .portal-panel__intro h2 { font-size: clamp(1.8rem, 9vw, 2.8rem); }
  .portal-project-hero h3 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .portal-project-hero__action { grid-template-columns: 1fr; }
  .portal-project-hero__action .ch-button { width: 100%; }
  .portal-project-hero__metrics { grid-template-columns: 1fr 1fr; }
  .portal-dashboard-grid { grid-template-columns: 1fr; }
  .portal-card--concierge { grid-column: auto; }
  .portal-stats { grid-template-columns: 1fr; }
  .portal-stats div { border-right: 0; border-bottom: 1px solid var(--portal-line); }
  .portal-stats div:last-child { border-bottom: 0; }
  .portal-alternatives { grid-template-columns: 1fr; }
  .portal-concierge-form { grid-template-columns: 1fr; }
  .portal-quote-table [role="row"] { grid-template-columns: 1fr 0.8fr; }
  .portal-quote-table [role="row"] > :last-child { display: none; }
  .portal-metric-grid { grid-template-columns: 1fr 1fr; }
  .portal-opportunity-grid { grid-template-columns: 1fr; }
  .portal-opportunity--best { grid-column: auto; }
  .portal-professional-grid { grid-template-columns: 1fr; }
  #professionalSchedule,
  .portal-card--manager { grid-column: auto; }
  .portal-schedule-strip { grid-template-columns: repeat(5, minmax(5.25rem, 1fr)); overflow-x: auto; }
  .portal-revenue-panel { grid-template-columns: 1fr; }
  .portal-revenue-summary,
  .portal-revenue-bars { border-right: 0; border-bottom: 1px solid var(--portal-line); }
  .portal-revenue-panel dl { grid-column: auto; grid-template-columns: 1fr; border-top: 0; }
  .portal-revenue-panel dl div { border-right: 0; border-bottom: 1px solid var(--portal-line); }
  .portal-revenue-panel dl div:last-child { border-bottom: 0; }
  .portal-professional-cta { grid-template-columns: 1fr; }
  .portal-attention { grid-template-columns: 1fr; }
  .portal-attention button { width: 100%; }
  .portal-operations-overview, .portal-operations-grid { grid-template-columns: 1fr; }
  .portal-card--wide { grid-column: auto; }
  .portal-operations-metrics { grid-template-columns: 1fr 1fr; }
  .portal-operations-metrics article:nth-child(2) { border-right: 0; }
  .portal-operations-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--portal-line); }
  .portal-capability-layout { grid-template-columns: 1fr; }
  .portal-capability-summary, .portal-policy-summary { grid-template-columns: repeat(2, 1fr); }
  .portal-capability-summary div, .portal-policy-summary div { border: 0; border-bottom: 1px solid var(--portal-line); }
  .portal-capability-summary div:nth-last-child(-n+1), .portal-policy-summary div:nth-last-child(-n+1) { border-bottom: 0; }
  .portal-capability-highlights { grid-template-columns: 1fr; }
  .portal-health-layout { grid-template-columns: minmax(8rem, 0.85fr) 1fr; }
  .portal-action-bars li { grid-template-columns: minmax(9rem, 1fr) auto; }
  .portal-action-bars i { grid-column: 1 / -1; grid-row: 2; }
  .portal-operations-pipeline { grid-template-columns: repeat(3, 1fr); }
  .portal-operations-pipeline li:nth-child(3) { border-right: 0; }
  .portal-operations-pipeline li:nth-child(-n+3) { border-bottom: 1px solid var(--portal-line); }
  .portal-operations-access { align-items: stretch; flex-direction: column; }
  .portal-operations-access .ch-button { text-align: center; }
  .portal-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    min-height: 4.75rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 0.4rem max(0.35rem, env(safe-area-inset-right)) calc(0.4rem + env(safe-area-inset-bottom)) max(0.35rem, env(safe-area-inset-left));
    border-top: 1px solid var(--portal-line-strong);
    background: rgba(5, 8, 22, 0.97);
    backdrop-filter: blur(16px);
  }
  .portal-mobile-nav button {
    min-height: 44px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.12rem;
    border: 0;
    background: transparent;
    color: #8490a6;
    font-size: 0.58rem;
    font-weight: 760;
  }
  .portal-mobile-nav button span { font-size: 1rem; }
  .portal-mobile-nav button[aria-current="page"] { color: #c4bdff; }
  .portal-mobile-nav__ai { color: #c4bdff !important; }
}

@media (max-width: 30rem) {
  .portal-demo-banner { gap: 0.5rem; padding-inline: 0.7rem; font-size: 0.6rem; }
  .portal-demo-banner .portal-demo-long { display: none; }
  .portal-demo-banner .portal-demo-short { display: inline; }
  .portal-topbar { display: grid; }
  .portal-topbar__actions { justify-content: space-between; }
  .portal-project-hero__metrics { grid-template-columns: 1fr; }
  .portal-project-hero__metrics div { border-right: 0; }
  .portal-project-hero__metrics div:nth-last-child(-n+2) { border-bottom: 1px solid var(--portal-line); }
  .portal-project-hero__metrics div:last-child { border-bottom: 0; }
  .portal-section__heading { display: grid; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-page *,
  .portal-page *::before,
  .portal-page *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
