:root {
  --portal-bg: #071a18;
  --portal-bg-2: #0b2420;
  --portal-panel: rgba(255, 255, 255, 0.04);
  --portal-border: rgba(214, 188, 130, 0.28);
  --portal-gold: #d6bc82;
  --portal-gold-soft: rgba(214, 188, 130, 0.14);
  --portal-text: #f4f1e8;
  --portal-muted: #a9b7b0;
  --portal-ok: #7fd1a8;
  --portal-radius: 16px;
}

* {
  box-sizing: border-box;
}

/* Ensure the `hidden` attribute always wins over author display rules
   (e.g. .portal-loading/.portal-view use display:flex, which otherwise
   overrides the UA [hidden]{display:none} rule and leaves the spinner
   and inactive views painted on screen). */
[hidden] {
  display: none !important;
}

.portal-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--portal-text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(214, 188, 130, 0.12), transparent 60%),
    linear-gradient(160deg, var(--portal-bg), var(--portal-bg-2));
}

/* Header */
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--portal-text);
  text-decoration: none;
  line-height: 1.1;
}

.portal-logo span {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--portal-gold);
}

.portal-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.portal-badge,
.portal-status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--portal-bg);
  background: var(--portal-gold);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: none;
}

.portal-status-badge--action {
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.portal-status-badge--action:hover,
.portal-status-badge--action:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.portal-owner-entry {
  background: transparent;
  border: 1px solid var(--portal-gold);
  color: var(--portal-gold);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.portal-owner-entry:hover,
.portal-owner-entry:focus-visible {
  background: var(--portal-gold-soft);
  color: var(--portal-text);
}

.portal-signout {
  background: transparent;
  border: 1px solid var(--portal-border);
  color: var(--portal-text);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.portal-signout:hover {
  background: var(--portal-gold-soft);
}

/* Main */
.portal-main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

.portal-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--portal-gold);
  margin: 0 0 0.5rem;
}

/* Loading */
.portal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 5rem 0;
  color: var(--portal-muted);
}

.portal-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(214, 188, 130, 0.25);
  border-top-color: var(--portal-gold);
  animation: portal-spin 0.8s linear infinite;
}

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

/* Auth / guest cards */
.portal-auth,
.portal-guest {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
}

.portal-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--portal-panel);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  padding: 2.25rem;
  backdrop-filter: blur(6px);
}

.portal-auth-card h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.portal-auth-lede {
  color: var(--portal-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.portal-login-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portal-login-form label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--portal-muted);
  margin-top: 0.6rem;
}

.portal-login-form input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  color: var(--portal-text);
  font-size: 0.95rem;
}

.portal-login-form input:focus {
  outline: none;
  border-color: var(--portal-gold);
  box-shadow: 0 0 0 3px var(--portal-gold-soft);
}

.portal-error {
  color: #ffb4a2;
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

.portal-btn {
  display: inline-block;
  text-align: center;
  border-radius: 999px;
  padding: 0.72rem 1.3rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.portal-btn:active {
  transform: translateY(1px);
}

.portal-btn--primary {
  margin-top: 1.1rem;
  background: var(--portal-gold);
  color: var(--portal-bg);
}

.portal-btn--primary:hover {
  box-shadow: 0 8px 24px rgba(214, 188, 130, 0.25);
}

.portal-btn--primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.portal-btn--ghost {
  background: transparent;
  border-color: var(--portal-border);
  color: var(--portal-text);
}

.portal-btn--ghost:hover {
  background: var(--portal-gold-soft);
}

.portal-ip-hint {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.portal-ip-hint p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--portal-muted);
}

.portal-ip-hint code,
.portal-footnote code {
  background: rgba(214, 188, 130, 0.16);
  color: var(--portal-gold);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.82em;
}

.portal-guest-contact {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--portal-muted);
}

.portal-guest-contact a,
.portal-footer a {
  color: var(--portal-gold);
}

/* Dashboard */
.portal-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.portal-welcome h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem;
  margin: 0 0 0.35rem;
}

.portal-welcome-sub {
  color: var(--portal-muted);
  margin: 0;
  font-size: 0.92rem;
}

.portal-access-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.portal-pill {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--portal-border);
  color: var(--portal-text);
}

.portal-pill--ok {
  color: var(--portal-ok);
  border-color: rgba(127, 209, 168, 0.4);
  background: rgba(127, 209, 168, 0.1);
}

.portal-protection-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.portal-protect-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--portal-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.portal-protect-icon {
  font-size: 1.4rem;
}

.portal-protect-card h3 {
  margin: 0 0 0.15rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--portal-muted);
  font-weight: 600;
}

.portal-protect-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--portal-ok);
  font-weight: 600;
}

.portal-section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  margin: 0 0 1.1rem;
}

#portal-dashboard-products {
  scroll-margin-top: 5.5rem;
}

.portal-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}

.portal-product-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  background: var(--portal-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--portal-radius);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.portal-product-card:hover {
  border-color: var(--portal-border);
  transform: translateY(-2px);
}

.portal-product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.portal-product-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--portal-gold);
}

.portal-product-phi {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--portal-bg);
  background: var(--portal-gold);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
}

.portal-product-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.portal-product-card p {
  margin: 0 0 1.15rem;
  color: var(--portal-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  flex: 1;
}

.portal-btn--product {
  background: var(--portal-gold-soft);
  color: var(--portal-gold);
  border-color: var(--portal-border);
  align-self: flex-start;
}

.portal-btn--product:hover {
  background: var(--portal-gold);
  color: var(--portal-bg);
}

.portal-footnote {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--portal-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Landing */
.portal-landing-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.portal-landing-inner h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  margin: 0 0 0.75rem;
}

.portal-landing-lede {
  color: var(--portal-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 0.75rem;
  max-width: 620px;
}

.portal-landing-hint {
  color: var(--portal-gold);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.portal-landing-hint:hover {
  text-decoration: underline;
}

.portal-landing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  text-align: left;
}

.portal-landing-card {
  background: var(--portal-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--portal-radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.portal-landing-card--primary {
  border-color: var(--portal-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.portal-landing-step {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--portal-gold);
  margin-bottom: 0.5rem;
}

.portal-landing-card h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
}

.portal-landing-card p {
  color: var(--portal-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  flex: 1;
}

.portal-landing-card .portal-btn {
  align-self: flex-start;
}

.portal-landing-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.portal-landing-actions .portal-btn--primary {
  margin-top: 0;
}

/* Product table of contents (landing face) — now the hero of the page */
.portal-toc {
  margin-top: 2rem;
}

.portal-toc-head {
  text-align: center;
  margin-bottom: 1.4rem;
}

.portal-toc-head .portal-section-title {
  margin-bottom: 0.35rem;
}

.portal-toc-sub {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.9rem;
}

.portal-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}

.portal-toc-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 1.35rem;
  background: var(--portal-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--portal-radius);
  color: var(--portal-text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-toc-card:hover {
  border-color: var(--portal-border);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.portal-toc-card:focus-visible {
  outline: none;
  border-color: var(--portal-gold);
  box-shadow: 0 0 0 3px var(--portal-gold-soft);
}

.portal-toc-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.portal-toc-card p {
  margin: 0 0 1rem;
  color: var(--portal-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  flex: 1;
}

.portal-toc-cta {
  align-self: flex-start;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--portal-gold);
}

/* Create-account block (moved below the catalog) */
.portal-create {
  margin-top: 3rem;
  padding: 2.25rem 1.75rem;
  text-align: center;
  background: var(--portal-panel);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  scroll-margin-top: 1.5rem;
}

.portal-create-title {
  margin-bottom: 0.5rem;
}

.portal-create-lede {
  color: var(--portal-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 auto 1.6rem;
  max-width: 560px;
}

.portal-trust-row {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

.portal-create .portal-trust-row {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-trust-item {
  font-size: 0.82rem;
  color: var(--portal-muted);
}

/* Wizard */
.portal-signup {
  display: flex;
  justify-content: center;
}

.portal-wizard-card {
  width: 100%;
  max-width: 620px;
  background: var(--portal-panel);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  padding: 2rem;
}

.portal-steps {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  counter-reset: step;
}

.portal-steps li {
  flex: 1;
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--portal-muted);
  padding-top: 1.75rem;
  text-align: center;
}

.portal-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--portal-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-steps li.is-active::before {
  background: var(--portal-gold);
  color: var(--portal-bg);
  border-color: var(--portal-gold);
}

.portal-steps li.is-active {
  color: var(--portal-text);
}

.portal-steps li.is-done::before {
  background: rgba(127, 209, 168, 0.2);
  color: var(--portal-ok);
  border-color: rgba(127, 209, 168, 0.4);
}

.portal-step-panel h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
}

.portal-step-lede {
  color: var(--portal-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1.4rem;
}

.portal-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.portal-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.portal-field label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--portal-muted);
}

.portal-field input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  color: var(--portal-text);
  font-size: 0.92rem;
}

.portal-field input:focus {
  outline: none;
  border-color: var(--portal-gold);
  box-shadow: 0 0 0 3px var(--portal-gold-soft);
}

.portal-baa-scroll {
  max-height: 220px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--portal-muted);
}

.portal-baa-scroll h3 {
  color: var(--portal-text);
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.portal-baa-scroll ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0;
}

.portal-checkline {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--portal-text);
  margin-bottom: 1rem;
}

.portal-checkline input {
  margin-top: 0.2rem;
  accent-color: var(--portal-gold);
}

.portal-note {
  font-size: 0.8rem;
  color: var(--portal-muted);
  line-height: 1.5;
  margin: 0.5rem 0 0;
}

.portal-card-shell {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.15rem;
  margin-bottom: 0.5rem;
}

.portal-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.portal-step-actions--center {
  justify-content: center;
}

.portal-done-badge {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(127, 209, 168, 0.16);
  color: var(--portal-ok);
  border: 1px solid rgba(127, 209, 168, 0.4);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

#portal-step-done {
  text-align: center;
}

.portal-auth-alt {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--portal-muted);
}

.portal-link {
  background: none;
  border: none;
  color: var(--portal-gold);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

.portal-empty {
  color: var(--portal-muted);
  font-size: 0.92rem;
  padding: 1.5rem 0;
}

.portal-stripe-mount {
  min-height: 120px;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
}

.portal-product-card--locked .portal-btn--product {
  opacity: 0.85;
  cursor: default;
  pointer-events: none;
}

.portal-product-price {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--portal-gold);
  margin-bottom: 0.65rem;
}

/* Product hovercard ("At a Glance") */
/* The wrapper is the positioned container; the trigger card and the hovercard
   are siblings inside it so the panel is never trapped inside a <button>. */
.portal-has-hovercard {
  position: relative;
  display: flex;
}

.portal-toc-item > .portal-toc-card,
.portal-product-item > .portal-product-card {
  flex: 1 1 auto;
  width: 100%;
}

.portal-card-hovercard {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(380px, calc(100vw - 1.5rem));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  z-index: 60;
  background: linear-gradient(160deg, var(--portal-bg-2), var(--portal-bg));
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

/* Transparent bridge across the gap between card and panel so moving the
   pointer down into the panel doesn't drop the hover. */
.portal-card-hovercard::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.75rem;
  height: 0.75rem;
}

.portal-has-hovercard:hover .portal-card-hovercard,
.portal-has-hovercard:focus-within .portal-card-hovercard {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.portal-hovercard-inner {
  padding: 1.15rem 1.25rem 1.25rem;
  text-align: left;
}

.portal-hovercard-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0 0 0.15rem;
  color: var(--portal-text);
}

.portal-hovercard-org {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portal-gold);
}

.portal-hovercard-section {
  margin-bottom: 0.9rem;
}

.portal-hovercard-section:last-child {
  margin-bottom: 0;
}

.portal-hovercard-heading {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--portal-gold);
}

.portal-hovercard-list {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
}

.portal-hovercard-list li {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--portal-muted);
}

.portal-hovercard-list li:last-child {
  margin-bottom: 0;
}

.portal-hovercard-section--note {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--portal-border);
}

.portal-hovercard-section--note .portal-hovercard-heading {
  color: var(--portal-muted);
}

.portal-hovercard-section--note .portal-hovercard-list li {
  font-style: italic;
  color: var(--portal-muted);
}

@media (max-width: 560px) {
  .portal-card-hovercard {
    width: calc(100vw - 1.5rem);
  }
}

/* Footer */
.portal-footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--portal-muted);
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .portal-main {
    padding: 1.75rem 1.1rem 3rem;
  }
  .portal-auth-card {
    padding: 1.75rem;
  }
  .portal-wizard-card {
    padding: 1.5rem;
  }
  .portal-field-grid {
    grid-template-columns: 1fr;
  }
  .portal-steps li {
    font-size: 0.62rem;
  }
  .portal-create {
    padding: 1.75rem 1.25rem;
  }
}
