body { margin: 0; background: #e3e8e2; color: #24392f; font: 16px/1.5 system-ui, sans-serif; }
.center-shell { width: min(calc(100% - 32px), 720px); margin: 0 auto; padding: 24px 0; }
.center-brand { color: inherit; font-weight: 700; text-decoration: none; }
.center-bar { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.center-card { margin-top: 24px; padding: 24px; border: 1px solid #bbc9be; border-radius: 18px; background: #f8faf7; }
.center-card h1 { margin: 0; font: 400 clamp(28px, 5vw, 40px)/1.15 Georgia, serif; }
.center-card p { margin: 12px 0; }
.center-shell a { color: #24503b; }
.center-shell button { cursor: pointer; border: 0; border-radius: 999px; padding: 8px 16px; background: #24503b; color: #fff; font: inherit; }
.center-chat { height: clamp(420px, 72dvh, 720px); margin-top: 18px; overflow: hidden; border: 1px solid #bbc9be; border-radius: 18px; }
.center-chat .mendy-inline .mendy-log { overflow-y: auto; }
.center-chat .mendy-inline .mendy-banner, .center-chat .mendy-inline .mendy-note { flex-basis: auto; min-height: 20px; font-size: 11px; line-height: 1.5; }

.center-portal { background: #080b13; color: #f6f2ff; font-family: Arial, Helvetica, sans-serif; }
.center-portal .center-shell { padding-block: 26px 44px; }
.center-portal .center-bar { color: #171127; margin-bottom: 32px; }
.center-portal .center-brand { color: #171127; }
.center-portal h1 { color: inherit; font: 500 clamp(30px, 5vw, 48px)/1.05 Arial, Helvetica, sans-serif; letter-spacing: -.045em; }
.center-portal .center-shell > h1 { color: #171127; }
.center-portal .center-card { width: min(100%, 480px); padding: clamp(18px, 5vw, 32px); background: #171525; color: #f6f2ff; border-color: #9682b4; box-shadow: 0 12px 40px #07051040; }
.center-portal .hero:has(.center-card) { height: auto; min-height: 100dvh; }
.center-portal .center-shell:has(> .center-card) {
  width: min(calc(100% - 32px), 480px);
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  padding-block: 26px;
}
.center-portal .center-shell:has(> .center-card) .center-bar { align-self: start; margin-bottom: 0; }
.center-portal .center-card { margin-top: 0; }
.center-portal .center-card p { color: #e6ddf3; }
.center-portal .center-card button { min-height: 44px; background: #c5a4f4; color: #171127; }
.center-portal .center-bar button { min-height: 44px; background: #171127; color: #f6f2ff; }
.center-portal input { max-width: 100%; min-height: 44px; margin: 6px 0; padding: 8px 12px; border: 1px solid #aa97c1; border-radius: 8px; background: #201b30; color: #fff; font: inherit; }
.center-portal .center-card :focus-visible { outline-color: #b5ffdf; }
.center-portal #mendy-card.center-chat { width: 100%; height: clamp(380px, 68dvh, 700px); border: 1px solid #9682b4; }
.center-portal #mendy-card .mendy-log { overflow-y: auto; }

/* Branded sign-in: scoped away from onboarding and assistant chat. */
@font-face { font-family: "RRH Sans"; src: url("/fonts/dm-sans.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
.center-portal:not(.center-portal-chat):has(.center-brand) {
  background: #000; color: #f6f2ff; font-family: "RRH Sans", Arial, sans-serif;
}
.center-portal:not(.center-portal-chat):has(.center-brand) .hero {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 45% 45% at 45% 85%, #081c4a80, transparent),
    linear-gradient(110deg, transparent 50%, #03050960 80%, #030509 100%),
    radial-gradient(ellipse 35% 60% at 7% 7%, #ffdda9 0%, #ffdda9d9 27%, #f3ccbd73 52%, transparent 78%),
    linear-gradient(0deg, #10194ae0 0%, #10194a88 35%, transparent 80%),
    linear-gradient(90deg, #a773ed 0%, #a77be0 28%, #9a71cf 50%, #633e9f 80%, #05080e 100%);
}
.center-portal .center-shell:has(.center-brand) {
  width: min(89%, 1600px);
  padding: max(26px, env(safe-area-inset-top)) 0 max(26px, env(safe-area-inset-bottom));
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.center-portal .center-shell:has(.center-brand) .center-brand { font-size: 15px; letter-spacing: -.4px; }
.center-portal .center-shell:has(.center-brand) .brand-mark { width: 25px; height: 25px; border-radius: 5px; }
.center-portal .center-shell:has(.center-brand) .center-card {
  justify-self: center; width: min(100%, 440px); padding: clamp(24px, 5vw, 36px);
  background: #171525f5; border: 1px solid #bfa5df66; border-radius: 22px;
  box-shadow: 0 24px 70px #07051040;
}
.center-portal .center-shell:has(.center-brand) h1 { font-family: "RRH Sans", Arial, sans-serif; font-size: clamp(32px, 5vw, 42px); }
.center-portal .center-shell:has(.center-brand) .center-card p { font-size: 15px; line-height: 1.6; color: #d5cbe4; }
.center-portal .center-shell:has(.center-brand) label { margin-top: 12px; font-size: 13px; color: #e6ddf3; }
.center-portal .center-shell:has(.center-brand) input { box-sizing: border-box; width: 100%; min-height: 50px; margin-block: 4px; border-radius: 12px; font-size: 16px; background: #211b32; }
.center-portal .center-shell:has(.center-brand) .center-card button { min-height: 48px; padding: 12px 20px; font-size: 15px; }
.center-portal .center-shell:has(.center-brand) .center-email-code button { width: 100%; margin-top: 20px; }
.center-portal .center-shell:has(.center-brand) #notice:empty { display: none; }
@media (max-width: 760px) {
  .center-portal:not(.center-portal-chat):has(.center-brand) .hero {
    background: linear-gradient(to top, #000, transparent 100px), radial-gradient(ellipse 95% 50% at 0 0, #ffdda5, transparent 66%), radial-gradient(ellipse 130% 85% at 20% 0, #b28add, #7046a7 46%, transparent 85%), #090e1b;
  }
  .center-portal .center-shell:has(.center-brand) { width: calc(100% - 40px); }
}

/* Official horizontal brand asset shared with the landing page. */
.center-portal .center-brand .brand-logo { display: block; width: 250px; max-width: 100%; height: auto; }
@media (max-width: 760px) {
  .center-portal .center-brand .brand-logo { width: 220px; }
}

.center-portal .center-brand .brand-logo { transform: translateY(6px); }


/* Light-and-clear branding for client sign-in. */
.center-portal:not(.center-portal-chat):has(.center-brand) { color-scheme: light; background: #f4faff; color: #0b1848; }
.center-portal:not(.center-portal-chat):has(.center-brand) .hero {
  background: radial-gradient(ellipse 70% 70% at 75% 55%, #c4e7ff99, transparent 80%), linear-gradient(115deg, #ffffff, #edf7ff);
}
.center-portal .center-shell:has(.center-brand) .center-card {
  background: #ffffffed; color: #0b1848; border-color: #b6d2eb; box-shadow: 0 24px 70px #184d7b1a;
}
.center-portal .center-shell:has(.center-brand) .center-card p,
.center-portal .center-shell:has(.center-brand) label { color: #354e70; }
.center-portal .center-shell:has(.center-brand) input { background: #f7fbff; color: #0b1848; border-color: #aac7e1; }
.center-portal .center-shell:has(.center-brand) .center-card button { background: #0641d9; color: #ffffff; }
.center-portal .center-shell:has(.center-brand) .center-card button:hover { background: #082dae; }
.center-portal .center-shell:has(.center-brand) :focus-visible { outline-color: #0641d9; }
