/* Crew portal (sign-in and enterprise pages). Builds on site.css: same
   tokens, header, buttons and eyebrow; this file adds forms, cards, tabs,
   the people table, dialogs and toasts. */

[hidden] {
  display: none !important;
}

/* Zero-specificity base for buttons, so site.css and the component rules
   below (weights, sizes) always win over it. */
:where(.portal-page) :where(button) {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}

:where(.portal-page) :where(button:disabled) {
  cursor: not-allowed;
}

/* site.css styles .button for links; buttons also need no border, and a
   disabled state. */
.portal-page button.button {
  border: 0;
}

.portal-page .button:disabled,
.portal-page .button-ghost:disabled,
.portal-page .button-secondary:disabled {
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.portal-page .button .icon,
.portal-page .button-ghost .icon,
.portal-page .button-secondary .icon {
  flex: none;
}

.is-busy {
  opacity: 0.7;
  cursor: progress;
}

/* reCAPTCHA's floating badge is replaced by the notice in the footer. */
.grecaptcha-badge {
  visibility: hidden;
}

/* ------------------------------------------------------------ header */

.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-section {
  pointer-events: none;
}

.site-header .header-action {
  width: auto;
}

/* ------------------------------------------------------------ layout */

.portal-main {
  padding: 40px 0 72px;
}

.portal-loading {
  display: flex;
  justify-content: center;
  padding: 72px 0;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(125, 226, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: portal-spin 0.8s linear infinite;
}

@keyframes portal-spin {
  to {
    transform: rotate(360deg);
  }
}

.portal-head .eyebrow {
  margin-bottom: 14px;
}

.portal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.portal-signed-in {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.icon-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
}

.icon-button:hover:not(:disabled),
.icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.org-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 16px;
  margin-top: 18px;
}

.org-select {
  width: min(360px, 100%);
}

.portal-progress {
  position: relative;
  height: 3px;
  margin: 18px 0 0;
  overflow: hidden;
  border-radius: 999px;
}

.portal-progress.is-loading {
  background: rgba(125, 226, 255, 0.1);
}

.portal-progress.is-loading::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  border-radius: 999px;
  background: var(--accent);
  animation: portal-progress 1.1s ease-in-out infinite;
}

@keyframes portal-progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(300%);
  }
}

.portal-banners {
  display: grid;
  gap: 12px;
  margin: 16px 0 20px;
}

.portal-banners:empty {
  margin: 0 0 20px;
}

.portal-stack {
  display: grid;
  gap: 20px;
}

/* ------------------------------------------------------------ cards */

.portal-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 24, 33, 0.9), rgba(10, 15, 21, 0.96));
  box-shadow: var(--shadow);
}

.portal-card-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.portal-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.portal-center-text {
  text-align: center;
}

.portal-text {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.portal-center .portal-text {
  margin: 0;
}

.narrow {
  max-width: 460px;
}

.portal-note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------ callouts */

.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid;
  border-radius: 16px;
  color: var(--text);
  line-height: 1.45;
  text-align: left;
}

.callout .icon {
  flex: none;
  margin-top: 1px;
}

.callout span {
  flex: 1;
}

.callout.is-danger {
  border-color: rgba(255, 139, 155, 0.35);
  background: rgba(255, 139, 155, 0.09);
}

.callout.is-danger .icon {
  color: var(--danger);
}

.callout.is-info {
  border-color: rgba(125, 226, 255, 0.3);
  background: rgba(125, 226, 255, 0.07);
}

.callout.is-info .icon {
  color: var(--accent);
}

.callout-dismiss {
  display: inline-flex;
  flex: none;
  margin: -4px -6px -4px 0;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
}

/* ------------------------------------------------------------ fields */

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

/* 16px text stops iOS zooming into the field on focus. */
.field-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.024);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.field-input::placeholder {
  color: var(--text-muted);
}

.field-input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(125, 226, 255, 0.12);
}

.field-input:disabled {
  opacity: 0.6;
}

.field-select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bfd0dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}

.field-select option {
  background: #101821;
  color: var(--text);
}

.field-with-action {
  position: relative;
  display: block;
}

.field-with-action .field-input {
  padding-right: 52px;
}

.field-action {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  transform: translateY(-50%);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}

.text-button:disabled {
  color: var(--text-muted);
}

.text-button:hover:not(:disabled),
.text-button:focus-visible {
  color: var(--accent-strong);
}

.button-danger {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--danger);
  color: #2a0b0b;
  font-weight: 700;
}

/* ------------------------------------------------------------ plan */

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.status-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-dot.is-success {
  background: #7ce0a3;
  box-shadow: 0 0 10px rgba(124, 224, 163, 0.5);
}

.status-dot.is-warning {
  background: #ffd27d;
  box-shadow: 0 0 10px rgba(255, 210, 125, 0.5);
}

.status-dot.is-muted {
  background: var(--text-muted);
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 18px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.stepper-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--accent);
}

.stepper-button:disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.stepper-input {
  width: 56px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  appearance: textfield;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.stepper-input:focus {
  outline: none;
}

.stepper-label {
  padding-right: 16px;
  color: var(--text-soft);
  font-weight: 600;
}

.seat-count {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  font-weight: 600;
}

.seat-count strong {
  margin-right: 4px;
  color: var(--text);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.meter {
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.meter-fill.is-accent {
  background: var(--accent);
}

.meter-fill.is-warning {
  background: #ffd27d;
}

.meter-fill.is-danger {
  background: var(--danger);
}

.meter-caption {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.meter-caption.is-danger {
  color: var(--danger);
}

.seat-meter + .callout {
  margin-top: 14px;
}

/* ------------------------------------------------------------ tabs */

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -1px;
  padding: 6px 10px 12px 6px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tab[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.tab-count {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.tab[aria-selected="true"] .tab-count {
  background: rgba(125, 226, 255, 0.14);
  color: var(--accent-strong);
}

.tab-panel {
  padding-top: 22px;
}

/* ------------------------------------------------------------ people */

.people-toolbar {
  display: flex;
  align-items: center;
  gap: 12px 24px;
}

.toolbar-text {
  flex: 1;
  margin: 0;
}

.search-field {
  position: relative;
  flex: 1;
  color: var(--text-muted);
}

.search-field .icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input {
  padding-left: 44px;
}

.hint-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.hint-row .icon {
  flex: none;
  margin-top: 1px;
}

.people-list-host,
.tab-panel > .people-table,
.tab-panel > .empty-state {
  margin-top: 18px;
}

.people-table {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.people-head,
.person-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 3fr) minmax(0, 4fr) 104px;
  align-items: center;
  column-gap: 12px;
}

.people-table.has-added .people-head,
.people-table.has-added .person-row {
  grid-template-columns: 46px minmax(0, 3fr) minmax(0, 4fr) 120px 104px;
}

.people-head {
  padding: 12px 8px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.people-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.person-row {
  min-height: 52px;
  padding: 8px 8px 8px 16px;
}

.person-row + .person-row {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(125, 226, 255, 0.12);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.person-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 700;
}

.person-name-text,
.person-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-email {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.person-added {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.added-prefix {
  display: none;
}

.chip {
  flex: none;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.row-remove {
  justify-self: end;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--danger);
  font-weight: 700;
}

.row-remove:hover:not(:disabled),
.row-remove:focus-visible {
  background: rgba(255, 139, 155, 0.1);
}

.row-remove:disabled {
  color: var(--text-muted);
  opacity: 0.45;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.024);
  color: var(--text-muted);
  text-align: center;
}

.empty-title {
  margin: 10px 0 0;
  color: var(--text);
  font-weight: 700;
}

.empty-state .portal-note {
  margin-top: 4px;
}

/* ------------------------------------------------------------ how-to */

.how-to {
  margin: 0 0 18px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(125, 226, 255, 0.18);
  border-radius: 16px;
  background: rgba(125, 226, 255, 0.047);
}

.how-to-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.how-to-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.how-to-steps li {
  position: relative;
  margin-top: 10px;
  padding-left: 36px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  counter-increment: step;
}

.how-to-steps li::before {
  content: counter(step);
  position: absolute;
  top: -1px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(125, 226, 255, 0.14);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
}

/* ------------------------------------------------------------ dialogs */

.portal-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #101821;
  color: var(--text);
  box-shadow: var(--shadow);
}

.portal-dialog.is-wide {
  width: min(520px, calc(100vw - 32px));
}

.portal-dialog::backdrop {
  background: rgba(2, 4, 6, 0.62);
  backdrop-filter: blur(4px);
}

.portal-dialog form {
  display: grid;
  gap: 14px;
}

.portal-dialog-title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.portal-dialog-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.portal-dialog .how-to {
  margin: 0;
}

.portal-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* ------------------------------------------------------------ toast */

.portal-toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(124, 224, 163, 0.47);
  border-radius: 14px;
  background: #16222d;
  color: var(--text);
  box-shadow: var(--shadow);
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.portal-toast .icon {
  flex: none;
  color: #7ce0a3;
}

.portal-toast.is-error {
  border-color: rgba(255, 139, 155, 0.47);
}

.portal-toast.is-error .icon {
  color: var(--danger);
}

.portal-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------ sign-in */

.signin-layout {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  align-items: start;
  gap: 40px;
}

.signin-intro {
  padding-top: 12px;
}

.signin-lead {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.signin-points {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.signin-points li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
}

.point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(125, 226, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(125, 226, 255, 0.12);
  color: var(--accent-strong);
}

.signin-points strong {
  display: block;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.06rem;
}

.signin-points p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.signin-card {
  padding: 32px;
}

.signin-card-head {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 22px;
  text-align: center;
}

.signin-icon {
  display: inline-flex;
  color: var(--accent);
}

.signin-sub {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.provider-buttons {
  display: grid;
  gap: 10px;
}

.provider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.provider-button:hover,
.provider-button:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.signin-form {
  display: grid;
  gap: 12px;
}

.forgot-row {
  margin-top: -6px;
  text-align: right;
}

.signin-submit {
  width: 100%;
  margin-top: 4px;
}

.signin-toggle {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.support-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.verify-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.verify-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.verify-email {
  margin: 0;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.verify-card .callout {
  width: 100%;
}

.verify-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.verify-card .support-row {
  width: 100%;
}

.recaptcha-note {
  margin: 0 auto;
  padding-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.recaptcha-note a {
  text-decoration: underline;
}

/* ------------------------------------------------------------ phones */

@media (max-width: 760px) {
  .portal-main {
    padding: 28px 0 56px;
  }

  .portal-section {
    display: none;
  }

  /* Icon-only Sign out / Back to Home, as in the site's compact header. */
  .site-header .header-action {
    min-height: 44px;
    padding: 0 14px;
  }

  .site-header .header-action span {
    display: none;
  }

  .portal-card,
  .signin-card {
    padding: 22px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .plan-actions .button,
  .plan-actions .button-ghost {
    width: 100%;
  }

  .people-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-field {
    order: 2;
  }

  .people-head {
    display: none;
  }

  /* Name over email (and date) on phones. */
  .person-row,
  .people-table.has-added .person-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "avatar name remove"
      "avatar email remove"
      "avatar added remove";
    row-gap: 2px;
    padding: 10px 4px 10px 14px;
  }

  .person-row .avatar {
    grid-area: avatar;
  }

  .person-row .person-name {
    grid-area: name;
  }

  /* Full names on phones; only emails are shortened. */
  .person-row .person-name-text {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .person-row .person-email {
    grid-area: email;
    font-size: 0.82rem;
  }

  .person-row .person-added {
    grid-area: added;
    font-size: 0.78rem;
  }

  .added-prefix {
    display: inline;
  }

  .person-row .row-remove {
    grid-area: remove;
  }

  .person-email:empty,
  .person-added:empty {
    display: none;
  }

  /* Sign-in: form first, then a short list instead of the long intro. */
  .signin-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .signin-card {
    order: -1;
  }

  .signin-intro .portal-title,
  .signin-lead {
    display: none;
  }

  .portal-dialog-actions > * {
    flex: 1;
  }
}
