:root {
  --paper: #fff8f9;
  --white: #fffdfd;
  --rose: #d92d72;
  --rose-soft: #f8dce6;
  --plum: #33152b;
  --plum-2: #4b203d;
  --muted: #765b6d;
  --line: #ead6dd;
  --coral: #f07a78;
  --mint: #66a88b;
  --amber: #d88a42;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
.specialty-editor{display:block!important;padding:.75rem 0!important}.specialty-editor form{display:grid;grid-template-columns:1fr 1.5fr 70px auto;gap:.5rem;align-items:end}.specialty-editor label{display:flex;flex-direction:column;gap:.2rem;font-size:.55rem;font-weight:750}.specialty-editor input,.availability-control select{min-width:0;width:100%;border:1px solid var(--line);background:white;padding:.5rem}.specialty-state{padding:.5rem;border-left:3px solid var(--mint);background:#eff8f3;font-size:.58rem}.specialty-state.paused{border-color:var(--amber);background:#fff5eb}.specialty-actions{grid-column:1/-1;display:flex;gap:.35rem}.specialty-actions button{min-height:36px;border:1px solid var(--line);background:white;color:var(--rose);font-weight:700}.specialty-actions .danger{margin-left:auto;color:#9a3438}.availability-control{display:flex!important;flex-direction:column!important;gap:.2rem;min-width:100px}.availability-control span{font-size:.52rem;color:var(--muted)}
@media(max-width:760px){.expert-table>.table-head{display:none}.expert-table{overflow:visible}.expert-table>article{display:flex;min-width:0!important;flex-direction:column;align-items:stretch;gap:.75rem;padding:1rem;margin:.75rem 0;border:1px solid var(--line);background:white}.expert-table>article>span{padding:.55rem 0;border-bottom:1px solid #f1e3e8}.expert-actions form{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.expert-actions button{min-height:44px;font-size:.64rem}.availability-control{grid-column:1/-1}.specialty-editor form{grid-template-columns:1fr}.specialty-actions{display:grid;grid-template-columns:1fr 44px 44px}.specialty-actions .danger{margin:0}.expert-admin-grid .panel{padding:1rem}.credential-reveal code{font-size:.78rem}}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--plum);
  font: 14px/1.55 var(--sans);
  background: var(--paper);
}
button,
input,
select {
  font: inherit;
}
.skip-link {
  position: fixed;
  z-index: 500;
  left: 1rem;
  top: -5rem;
  background: var(--plum);
  color: white;
  padding: 0.7rem 1rem;
}
.skip-link:focus {
  top: 1rem;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font: 700 1.08rem var(--serif);
}
.portal-brand em {
  font-weight: 400;
  color: var(--rose);
}
.portal-brand-light {
  color: white;
}
.portal-brand-light em {
  color: #f3a5bc;
}
.portal-brand img {
  display: block;
}
.dashboard-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #2e1227;
  color: #e7d3dc;
  position: fixed;
  z-index: 100;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 1.45rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 40px rgba(51, 21, 43, 0.08);
}
.sidebar > .portal-brand {
  padding: 0 0.65rem 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.58rem;
  font-weight: 800;
  color: #a98599;
  margin: 1.5rem 0.7rem 0.55rem;
}
.sidebar-label-secondary {
  margin-top: 1.35rem;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 39px;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
  color: #dac1ce;
  font-size: 0.75rem;
  font-weight: 600;
  border-left: 2px solid transparent;
  transition: 0.15s;
}
.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.055);
  color: white;
}
.sidebar nav a[aria-current="page"] {
  background: linear-gradient(
    90deg,
    rgba(217, 45, 114, 0.28),
    rgba(217, 45, 114, 0.05)
  );
  border-left-color: #ef77a4;
  color: #fff;
}
.sidebar nav a > span {
  margin-left: auto;
  color: #c67a9b;
}
.nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  position: relative;
  display: block;
  opacity: 0.85;
}
.overview-icon {
  border: 1px solid currentColor;
  box-shadow:
    6px 0 0 -1px #2e1227,
    6px 0 0 0 currentColor,
    0 6px 0 -1px #2e1227,
    0 6px 0 0 currentColor,
    6px 6px 0 -1px #2e1227,
    6px 6px 0 0 currentColor;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  margin-bottom: 5px;
}
.people-icon:before,
.people-icon:after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.people-icon:before {
  width: 6px;
  height: 6px;
  left: 5px;
}
.people-icon:after {
  width: 14px;
  height: 7px;
  left: 1px;
  bottom: 0;
  border-radius: 9px 9px 2px 2px;
}
.conversation-icon {
  border: 1px solid currentColor;
  border-radius: 3px;
  height: 13px;
}
.conversation-icon:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: solid currentColor;
  border-width: 0 0 1px 1px;
  bottom: -4px;
  left: 3px;
  transform: skew(-20deg);
}
.journey-icon:before {
  content: "";
  position: absolute;
  left: 1px;
  top: 2px;
  width: 14px;
  height: 12px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: skew(-28deg);
}
.journey-icon:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  right: 0;
  top: 0;
  background: #2e1227;
}
.referral-icon {
  border: 1px solid currentColor;
  border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
  width: 13px;
  height: 13px;
  margin-left: 2px;
}
.referral-icon:after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.followup-icon {
  border: 1px solid currentColor;
  border-radius: 2px;
}
.followup-icon:before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  border-top: 1px solid;
}
.followup-icon:after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  background: currentColor;
  left: 4px;
  top: 8px;
  box-shadow: 5px 0 currentColor;
}
.quality-icon {
  border: 1px solid currentColor;
  border-radius: 8px 8px 10px 10px;
}
.quality-icon:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  left: 5px;
  top: 2px;
}
.research-icon {
  border: 1px solid currentColor;
  border-radius: 2px 2px 8px 8px;
  height: 13px;
  bottom: -3px;
}
.research-icon:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1px 0 1px;
  left: 4px;
  top: -6px;
}
.consent-icon {
  border: 1px solid currentColor;
  border-radius: 8px 8px 10px 10px;
}
.consent-icon:before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  left: 5px;
  top: 3px;
}
.tenant-icon {
  border: 1px solid currentColor;
}
.tenant-icon:before {
  content: "";
  position: absolute;
  inset: 3px;
  border: solid currentColor;
  border-width: 0 1px;
  box-shadow:
    4px 0 0 -3px currentColor,
    -4px 0 0 -3px currentColor;
}
.system-icon {
  border: 1px dashed currentColor;
  border-radius: 50%;
}
.system-icon:after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem 0.35rem 0;
  display: grid;
  grid-template-columns: 32px 1fr 26px;
  gap: 0.55rem;
  align-items: center;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7e2853;
  color: white;
  display: grid;
  place-items: center;
  font: italic 1rem var(--serif);
}
.sidebar-foot > div:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sidebar-foot strong {
  font-size: 0.68rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-foot span {
  font-size: 0.58rem;
  color: #aa899a;
}
.sidebar-foot form {
  margin: 0;
}
.sidebar-foot button {
  border: 0;
  background: none;
  color: #c59bad;
  cursor: pointer;
}
.sidebar-scrim {
  display: none;
}
.dashboard-main {
  grid-column: 2;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
  min-width: 0;
  background:
    linear-gradient(120deg, rgba(217, 45, 114, 0.025), transparent 35%),
    var(--paper);
}
.dashboard-topbar {
  min-height: 106px;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.page-title {
  margin-right: auto;
}
.page-title p {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose);
  font-size: 0.58rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
}
.page-title h1 {
  font: 400 1.8rem/1.2 var(--serif);
  margin: 0;
}
.page-title > span {
  font-size: 0.68rem;
  color: var(--muted);
}
.filters {
  display: flex;
  align-items: end;
  gap: 0.55rem;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.filters label span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.52rem;
  font-weight: 800;
  color: var(--muted);
}
.filters select {
  height: 37px;
  min-width: 115px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--plum);
  padding: 0 2rem 0 0.7rem;
}
.filters button {
  height: 37px;
  border: 0;
  background: var(--plum);
  color: white;
  padding: 0 1rem;
  font-size: 0.68rem;
  font-weight: 750;
  cursor: pointer;
}
.filters button:hover {
  background: var(--rose);
}
.drawer-button {
  display: none;
}
.scope-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.62rem;
  padding: 1rem 0;
}
.scope-line > span:last-child {
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.52rem;
}
.live-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(102, 168, 139, 0.12);
}
.metric-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  box-shadow: 0 8px 26px rgba(65, 18, 47, 0.04);
}
.metric-ribbon.three {
  grid-template-columns: repeat(3, 1fr);
}
.metric-ribbon article {
  padding: 1.15rem 1.35rem;
  border-right: 1px solid var(--line);
  position: relative;
}
.metric-ribbon article:last-child {
  border: 0;
}
.metric-ribbon p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 750;
}
.metric-ribbon strong {
  font: 400 2.15rem/1.15 var(--serif);
  display: block;
  margin: 0.35rem 0 0.15rem;
}
.metric-ribbon span {
  font-size: 0.61rem;
  color: var(--muted);
}
.metric-ribbon .metric-accent {
  background: #f2f8f5;
}
.metric-ribbon .metric-accent:before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--mint);
}
.metric-ribbon .metric-alert {
  background: #fff2f0;
}
.metric-ribbon .metric-alert:before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--coral);
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.65fr);
  gap: 1rem;
}
.panel,
.attention-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.35rem;
  box-shadow: 0 8px 26px rgba(65, 18, 47, 0.035);
}
.panel header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}
.panel header a {
  font-size: 0.62rem;
  color: var(--rose);
  font-weight: 700;
  text-underline-offset: 0.3rem;
}
.panel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose);
  font-size: 0.54rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
}
.panel h2,
.attention-panel h2 {
  font: 400 1.18rem var(--serif);
  margin: 0;
}
.panel-intro {
  font-size: 0.7rem;
  color: var(--muted);
  max-width: 680px;
}
.journey-panel {
  min-height: 330px;
}
.funnel {
  padding-top: 1.25rem;
}
.funnel > div {
  display: grid;
  grid-template-columns: 125px minmax(40px, 1fr) 45px;
  gap: 0.75rem;
  align-items: center;
  margin: 0.72rem 0;
}
.funnel span {
  font-size: 0.63rem;
  color: var(--muted);
}
.funnel i {
  display: block;
  height: 13px;
  background: #f4dde6;
  position: relative;
}
.funnel i:after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--width);
  background: linear-gradient(90deg, var(--rose), #e65c8e);
}
.funnel b {
  font: 400 0.88rem var(--serif);
  text-align: right;
}
.funnel.large {
  max-width: 900px;
  padding: 2rem 0;
}
.funnel.large > div {
  grid-template-columns: 175px 1fr 65px;
  margin: 1rem 0;
}
.funnel.large i {
  height: 23px;
}
.funnel.large span {
  font-size: 0.74rem;
}
.attention-panel {
  padding: 0;
  background: #36172e;
  color: white;
}
.attention-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.attention-panel .panel-kicker {
  color: #f3a8bd;
  margin: 0;
}
.attention-panel header > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.65rem;
}
.signal-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.5rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}
.signal-list article > b {
  font: italic 1.15rem var(--serif);
  color: #ffaca9;
}
.signal-list h3 {
  font-size: 0.67rem;
  margin: 0;
  color: white;
  text-transform: capitalize;
}
.signal-list p {
  font-size: 0.59rem;
  color: #cdb2c1;
  margin: 0.2rem 0;
}
.signal-watch {
  border-left: 3px solid var(--amber);
}
.signal-urgent {
  border-left: 3px solid var(--coral);
}
.attention-note {
  padding: 0.8rem 1.15rem;
  margin: 0;
  font-size: 0.53rem;
  color: #aa8a9c;
}
.calm-state {
  text-align: center;
  padding: 2.2rem 1.3rem;
}
.calm-state i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  color: #9ed2ba;
  margin: 0 auto;
}
.calm-state h3 {
  font: 400 1rem var(--serif);
  margin: 0.8rem 0 0.2rem;
}
.calm-state p {
  font-size: 0.59rem;
  color: #b99cac;
}
.quality-snapshot {
  grid-column: 1;
}
.score-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 1rem;
}
.score-row article {
  border-right: 1px solid var(--line);
  padding: 0.4rem 1rem;
}
.score-row article:first-child {
  padding-left: 0;
}
.score-row article:last-child {
  border: 0;
}
.score-row strong {
  display: block;
  font: 400 1.7rem var(--serif);
}
.score-row span {
  font-size: 0.58rem;
  color: var(--muted);
}
.score-row.large {
  max-width: 700px;
  padding: 2rem 0;
}
.score-row.large strong {
  font-size: 2.6rem;
}
.service-snapshot {
  grid-column: 2;
}
.service-snapshot > p:last-child {
  font-size: 0.61rem;
  color: var(--muted);
}
.service-rule {
  height: 7px;
  background: #edf0ed;
  margin: 1.3rem 0;
}
.service-rule i {
  display: block;
  width: var(--width);
  height: 100%;
  background: var(--mint);
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.data-grid.two {
  grid-template-columns: 1fr 1fr;
}
.data-grid .panel {
  min-height: 280px;
}
.full-panel {
  min-height: 420px;
}
.breakdown {
  margin-top: 1.5rem;
}
.breakdown > div {
  display: grid;
  grid-template-columns: minmax(95px, 1fr) minmax(40px, 2fr) 40px;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f2e6ea;
}
.breakdown span {
  font-size: 0.68rem;
}
.breakdown i {
  height: 5px;
  background: linear-gradient(90deg, #e98bb0, #f4d3df);
}
.breakdown strong {
  text-align: right;
  font: 400 0.9rem var(--serif);
}
.suppressed {
  font-size: 0.56rem;
  color: var(--muted);
  margin-top: 1rem;
}
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--muted);
}
.empty-state.compact {
  padding: 2rem 1rem;
}
.empty-state h3 {
  font: 400 1.05rem var(--serif);
  color: var(--plum);
  margin: 0.8rem 0 0.25rem;
}
.empty-state p {
  font-size: 0.63rem;
  max-width: 360px;
  margin: auto;
}
.empty-lines {
  display: block;
  width: 50px;
  height: 35px;
  border: 1px solid var(--line);
  margin: auto;
  position: relative;
}
.empty-lines:before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 9px;
  border-top: 1px solid #ddbdc8;
  box-shadow:
    0 7px #ddbdc8,
    0 14px #ddbdc8;
}
.privacy-callout {
  border-left: 3px solid var(--rose);
  background: #fff2f6;
  padding: 1rem;
  font-size: 0.67rem;
  color: var(--muted);
}
.research-empty {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 850px;
  margin: 3.5rem auto;
}
.research-empty > i {
  width: 190px;
  height: 190px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 0 0 25px #fff5f7,
    0 0 0 26px var(--line);
}
.research-empty > i:before,
.research-empty > i:after {
  content: "";
  position: absolute;
  background: var(--rose);
  height: 1px;
  width: 120px;
  left: 34px;
  top: 94px;
  transform: rotate(35deg);
}
.research-empty > i:after {
  transform: rotate(-35deg);
}
.research-empty h2 {
  font-size: 1.9rem;
}
.research-empty > div > p:last-child {
  font-size: 0.75rem;
  color: var(--muted);
}
.consent-table {
  margin-top: 2rem;
}
.consent-table > div {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.3fr;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
}
.consent-table > div:first-child {
  background: #f9edf1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.55rem;
  font-weight: 800;
}
.consent-table div span:last-child {
  display: grid;
  grid-template-columns: 1fr 40px;
  align-items: center;
  gap: 0.6rem;
}
.consent-table i {
  display: block;
  height: 7px;
  background: linear-gradient(
    90deg,
    var(--mint) var(--width),
    #e9eee9 var(--width)
  );
}
.consent-table b {
  font: 400 0.8rem var(--serif);
}
.tenant-table {
  margin-top: 1.6rem;
}
.tenant-table > div {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.6fr 0.6fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.65rem;
}
.tenant-table .table-head {
  background: #f9edf1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.52rem;
  font-weight: 800;
}
.tenant-table strong {
  font-size: 0.68rem;
}
.tenant-table strong small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.status-active,
.status-inactive {
  display: inline-flex !important;
  width: max-content;
  padding: 0.2rem 0.5rem;
  border-left: 2px solid var(--mint);
  background: #eff8f3;
  color: #3b765c;
}
.status-inactive {
  border-color: var(--coral);
  background: #fff0ef;
  color: #9a4341;
}
.dashboard-footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.54rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
  margin-top: 1.2rem;
}
.login-page {
  background: #fff8f9;
  min-height: 100vh;
}
.login-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
}
.login-brand {
  background: #33152b;
  color: #e5cfda;
  padding: clamp(2rem, 5vw, 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-brand:after {
  content: "";
  position: absolute;
  width: 590px;
  height: 590px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  right: -350px;
  bottom: -330px;
  box-shadow:
    0 0 0 75px rgba(255, 255, 255, 0.02),
    0 0 0 150px rgba(255, 255, 255, 0.015);
}
.login-brand > div {
  position: relative;
  z-index: 1;
  max-width: 650px;
}
.overline {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.62rem;
  font-weight: 800;
  color: #efa8be;
}
.login-brand h1 {
  font: 400 clamp(3.2rem, 6vw, 6rem) / 0.96 var(--serif);
  letter-spacing: -0.05em;
  color: white;
  margin: 1rem 0 1.5rem;
}
.login-brand h1 em {
  font-weight: 400;
  color: #f2a1bb;
}
.login-brand > div > p:last-child {
  max-width: 540px;
  color: #cfb4c3;
}
.login-principle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.login-principle span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(102, 168, 139, 0.12);
}
.login-panel {
  padding: clamp(2rem, 6vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.back-link {
  position: absolute;
  top: 2rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.7rem;
}
.login-panel form {
  max-width: 410px;
  width: 100%;
  margin: auto;
}
.overline.rose {
  color: var(--rose);
}
.login-panel h2 {
  font: 400 2.7rem var(--serif);
  margin: 0.4rem 0;
}
.login-help {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 2rem;
}
.login-panel label {
  display: block;
  font-size: 0.65rem;
  font-weight: 750;
  margin: 1.1rem 0 0.35rem;
}
.login-panel input {
  width: 100%;
  height: 49px;
  border: 1px solid var(--line);
  background: white;
  padding: 0 0.9rem;
  color: var(--plum);
}
.login-panel input:focus {
  border-color: var(--rose);
  outline: 3px solid rgba(217, 45, 114, 0.12);
}
.form-alert {
  border-left: 3px solid var(--coral);
  background: #fff0ef;
  padding: 0.6rem 0.9rem;
  color: #8e3638;
  font-size: 0.68rem;
}
.form-alert p {
  margin: 0;
}
.field-error {
  color: #a4353b;
  font-size: 0.62rem;
}
.login-button {
  width: 100%;
  height: 51px;
  border: 0;
  background: var(--rose);
  color: white;
  margin-top: 1.5rem;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 6px 6px 0 rgba(51, 21, 43, 0.12);
}
.login-button:hover {
  background: #b8225f;
}
.login-security {
  text-align: center;
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 1.5rem;
}
.login-security i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 0.35rem;
}
@media (max-width: 1000px) {
  .dashboard-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    width: 220px;
  }
  .metric-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-ribbon article:nth-child(2) {
    border-right: 0;
  }
  .metric-ribbon article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .quality-snapshot,
  .service-snapshot {
    grid-column: auto;
  }
  .data-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    flex-wrap: wrap;
    justify-content: end;
  }
}
@media (max-width: 760px) {
  .dashboard-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-105%);
    transition: transform 0.25s;
    width: 260px;
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar-scrim {
    display: block;
    position: fixed;
    z-index: 90;
    inset: 0;
    background: rgba(37, 12, 30, 0.48);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
  }
  .sidebar.open + .sidebar-scrim {
    opacity: 1;
    visibility: visible;
  }
  .dashboard-main {
    padding: 0 1rem;
  }
  .dashboard-topbar {
    min-height: auto;
    padding: 1rem 0;
    display: grid;
    grid-template-columns: 42px 1fr;
  }
  .drawer-button {
    display: block;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: var(--white);
    padding: 8px;
  }
  .drawer-button i {
    display: block;
    height: 1px;
    background: var(--plum);
    margin: 5px;
  }
  .page-title h1 {
    font-size: 1.4rem;
  }
  .page-title > span {
    display: none;
  }
  .filters {
    grid-column: 1/-1;
    justify-content: stretch;
  }
  .filters label {
    flex: 1;
  }
  .filters select {
    width: 100%;
  }
  .filters button {
    align-self: end;
  }
  .scope-line > span:last-child {
    display: none;
  }
  .metric-ribbon,
  .metric-ribbon.three {
    grid-template-columns: 1fr 1fr;
  }
  .metric-ribbon article {
    padding: 1rem;
  }
  .metric-ribbon strong {
    font-size: 1.75rem;
  }
  .metric-ribbon.three article:nth-child(3) {
    grid-column: 1/-1;
  }
  .overview-grid {
    display: block;
  }
  .overview-grid > * {
    margin-bottom: 1rem;
  }
  .funnel > div,
  .funnel.large > div {
    grid-template-columns: 100px minmax(30px, 1fr) 35px;
  }
  .score-row {
    grid-template-columns: 1fr 1fr;
  }
  .score-row article {
    border-bottom: 1px solid var(--line);
  }
  .data-grid.two {
    grid-template-columns: 1fr;
  }
  .consent-table > div {
    grid-template-columns: 1fr 0.65fr 1fr;
    padding: 0.7rem 0.3rem;
  }
  .tenant-table {
    overflow-x: auto;
  }
  .tenant-table > div {
    min-width: 680px;
  }
  .research-empty {
    display: block;
    text-align: center;
  }
  .research-empty > i {
    display: block;
    margin: 2rem auto;
  }
  .dashboard-footer {
    display: block;
  }
  .dashboard-footer span {
    display: block;
    margin-top: 0.3rem;
  }
  .login-shell {
    display: block;
  }
  .login-brand {
    min-height: 390px;
    padding: 2rem 1.25rem;
  }
  .login-brand h1 {
    font-size: 3.35rem;
  }
  .login-principle {
    margin-top: 3rem;
  }
  .login-panel {
    padding: 5rem 1.25rem 3rem;
  }
  .back-link {
    top: 415px;
  }
  .login-panel form {
    margin: 0 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.portal-alert {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--mint);
  background: #eef8f3;
  font-weight: 650;
}
.credential-reveal {
  margin: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem;
  background: #301329;
  color: white;
  border-left: 5px solid #f08bab;
}
.credential-reveal p {
  margin: 0;
  color: #f1a4bc;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.55rem;
  font-weight: 800;
}
.credential-reveal h2 {
  margin: 0.2rem 0;
  font: 400 1.3rem var(--serif);
}
.credential-reveal span {
  font-size: 0.65rem;
  color: #d5bcca;
}
.credential-reveal code {
  padding: 0.7rem 1rem;
  background: white;
  color: var(--plum);
  font-size: 1rem;
  user-select: all;
}
.expert-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1rem 0;
  background: white;
  border: 1px solid var(--line);
}
.expert-metrics article {
  padding: 1rem 1.2rem;
  border-right: 1px solid var(--line);
}
.expert-metrics strong {
  display: block;
  font: 400 1.8rem var(--serif);
}
.expert-metrics span {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.expert-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.expert-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
.expert-form > label {
  display: flex;
  flex-direction: column;
  font-size: 0.62rem;
  font-weight: 700;
  gap: 0.25rem;
}
.expert-form input,
.expert-form select,
.expert-form textarea {
  border: 1px solid var(--line);
  background: white;
  padding: 0.65rem;
  color: var(--plum);
}
.expert-form fieldset {
  grid-column: 1/-1;
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.expert-form .check {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 600;
}
.admin-primary {
  grid-column: 1/-1;
  border: 0;
  background: var(--rose);
  color: white;
  padding: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}
.specialty-list {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}
.specialty-list article {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.specialty-list i {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  background: var(--rose-soft);
  font-style: normal;
}
.specialty-list div {
  display: flex;
  flex-direction: column;
}
.specialty-list span {
  font-size: 0.58rem;
  color: var(--muted);
}
.specialty-list b {
  font-size: 0.55rem;
  color: var(--mint);
}
.expert-table-panel {
  margin-top: 1rem;
}
.expert-table-panel header > span {
  font-size: 0.6rem;
  color: var(--muted);
  max-width: 270px;
}
.expert-table > .table-head,
.expert-table > article {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1fr 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.62rem;
}
.expert-table > .table-head {
  background: #f9edf1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.52rem;
  font-weight: 800;
}
.expert-person {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.expert-person > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #421a37;
  color: white;
  font: italic 1rem var(--serif);
}
.expert-person strong,
.expert-table article > span {
  display: flex;
  flex-direction: column;
}
.expert-table small {
  color: var(--muted);
  font-size: 0.55rem;
}
.verification-verified {
  color: #287254;
}
.verification-pending {
  color: #9a5a28;
}
.capability {
  display: inline-block;
  width: max-content;
  background: #eef8f3;
  color: #287254;
  padding: 0.15rem 0.35rem;
}
.voice-capability {
  background: #f9e2eb;
  color: #a51f59;
  margin-top: 0.2rem;
}
.expert-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.expert-actions button {
  border: 1px solid var(--line);
  background: white;
  color: var(--rose);
  font-size: 0.55rem;
  padding: 0.3rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .expert-admin-grid {
    grid-template-columns: 1fr;
  }
  .expert-table {
    overflow-x: auto;
  }
  .expert-table > .table-head,
  .expert-table > article {
    min-width: 850px;
  }
}
@media (max-width: 600px) {
  .expert-form {
    grid-template-columns: 1fr;
  }
  .expert-form > * {
    grid-column: 1 !important;
  }
  .credential-reveal {
    display: block;
  }
  .credential-reveal code {
    display: block;
    margin-top: 1rem;
    overflow: auto;
  }
  .expert-metrics {
    grid-template-columns: 1fr;
  }
  .expert-metrics article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .expert-table > .table-head{display:none}.expert-table{overflow:visible}.expert-table > article{display:flex;min-width:0!important;flex-direction:column;align-items:stretch;gap:.75rem;padding:1rem;margin:.75rem 0}.expert-actions form{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.expert-actions button{min-height:44px}.availability-control{grid-column:1/-1}.specialty-editor form{grid-template-columns:1fr}.specialty-actions{display:grid;grid-template-columns:1fr 44px 44px}
}
.knowledge-error,.form-error{display:block!important;color:#9f2438!important;white-space:normal;overflow-wrap:anywhere}.knowledge-table article{align-items:start}.knowledge-table .expert-actions form{display:flex;gap:.45rem;flex-wrap:wrap}
.knowledge-table .verification-pending{color:#735b12;background:#fff4c7}.knowledge-table .verification-processing{color:#245c79;background:#dff3ff}.knowledge-table .verification-ready{color:#1f684d;background:#dff5ea}.knowledge-table .verification-failed{color:#9f2438;background:#ffe3e7}.knowledge-table [class^="verification-"]{display:inline-flex;padding:.35rem .65rem;border-radius:3rem;font-size:.65rem;font-weight:700}.knowledge-table+.empty-state{min-height:180px}
.knowledge-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.expert-metrics article:last-child{border-right:0}@media(max-width:900px){.knowledge-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.knowledge-metrics{grid-template-columns:1fr}.knowledge-metrics article{border-right:0;border-bottom:1px solid var(--line)}}
