/* NSS portal design system — aligned to logo palette */

@font-face {
  font-family: "Samarkan";
  src: url("/static/fonts/samarkan-font/SAMAN___.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --saffron: #ff9933;
  --cream: #fffdf5;
  --paper: #faf8f2;
  --charcoal: #2d2d2d;
  --rose: #fdf0f0;
  --rose-deep: #f5e0e4;
  --teal: #2a6b6b;
  --maroon: #5c2d3a;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(45, 45, 45, 0.06);
  --shadow-md: 0 4px 16px rgba(45, 45, 45, 0.08);
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-brand-initial: "Segoe UI", Helvetica, Arial, sans-serif;
  --font-brand: "Samarkan", Georgia, serif;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-muted: rgba(45, 45, 45, 0.85);
}

html {
  font-size: 100%;
}

body.portal-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  background: var(--cream);
  color: var(--charcoal);
}

.portal-display {
  font-family: var(--font-display);
}

.portal-brand-text {
  /* wrapper for split brand typography */
}

.portal-brand-initial {
  font-family: var(--font-brand-initial);
  font-weight: 600;
  letter-spacing: 0;
}

.portal-brand-body {
  font-family: var(--font-brand);
}

.portal-brand__name .portal-brand-text,
.admin-brand__name .portal-brand-text,
.portal-footer__name .portal-brand-text,
.admin-footer__name .portal-brand-text {
  white-space: nowrap;
}

.portal-prose .portal-brand-text {
  white-space: normal;
}

/* Header */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 45, 45, 0.06);
}

.portal-header__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.portal-brand:hover {
  opacity: 0.92;
}

.portal-brand__logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.portal-brand__name {
  font-size: 1rem;
  line-height: 1.2;
  color: var(--maroon);
}

.portal-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 0.75rem;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

.portal-nav-toggle:hover {
  border-color: var(--saffron);
}

.portal-nav-toggle__bar {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: var(--charcoal);
  border-radius: 1px;
  position: relative;
}

.portal-nav-toggle__bar::before,
.portal-nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  border-radius: 1px;
}

.portal-nav-toggle__bar::before {
  top: -6px;
}

.portal-nav-toggle__bar::after {
  top: 6px;
}

.portal-nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(45, 45, 45, 0.35);
}

.portal-nav-mobile.is-open {
  display: block;
}

.portal-nav-mobile__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(20rem, 88vw);
  height: 100%;
  background: var(--cream);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  overflow-y: auto;
}

.portal-nav-mobile__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--rose);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  margin-left: auto;
  margin-bottom: 1rem;
}

.portal-nav-identity {
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius);
  background: rgba(42, 107, 107, 0.08);
  border: 1px solid rgba(42, 107, 107, 0.12);
}

.portal-nav-identity--admin {
  background: rgba(92, 45, 58, 0.08);
  border-color: rgba(92, 45, 58, 0.14);
}

.portal-nav-identity__label {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.portal-nav-identity__name {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--charcoal);
}

.portal-nav-identity__meta {
  margin: 0.2rem 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.portal-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portal-nav-list a {
  display: block;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  font-size: var(--text-base);
  color: rgba(45, 45, 45, 0.75);
  border-radius: 0.5rem;
}

.portal-nav-list a:hover {
  color: var(--charcoal);
  background: var(--rose);
}

.portal-nav-list a.is-active {
  font-weight: 600;
  color: var(--maroon);
  background: var(--rose-deep);
}

/* Hero */
.portal-hero {
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  margin: -1.5rem -1rem 2rem;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255, 153, 51, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(42, 107, 107, 0.06), transparent 45%),
    linear-gradient(180deg, var(--rose) 0%, var(--cream) 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.portal-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 22rem;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 640px) {
  .portal-hero__visual {
    max-width: 26rem;
  }
}

.portal-hero__badge {
  display: inline-block;
  position: relative;
  z-index: 1;
  margin-bottom: -0.85rem;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--maroon);
  background: var(--cream);
  border: 2px solid rgba(255, 153, 51, 0.55);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.portal-hero__frame {
  margin: 0;
  width: 100%;
  padding: 0.5rem;
  background: var(--white);
  border: 2px solid rgba(255, 153, 51, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.portal-hero__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 0.25rem);
}

.portal-hero__copy {
  margin-top: 1.25rem;
}

.portal-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--maroon);
  line-height: 1.2;
  margin-top: 0;
}

.portal-hero__lede {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--charcoal);
  opacity: 0.88;
}

.portal-cta-strip--hero {
  margin-top: 1.25rem;
}

/* Mission & Guru profile card */
.portal-mission-guru {
  margin-bottom: 2.5rem;
}

.portal-mission-guru__card {
  background: var(--white);
  border: 1px solid rgba(45, 45, 45, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .portal-mission-guru__card {
    padding: 2rem 2.25rem;
  }
}

.portal-mission-guru__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .portal-mission-guru__grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .portal-mission-guru__mission,
  .portal-mission-guru__guru {
    flex: 1;
    min-width: 0;
  }

  .portal-mission-guru__guru {
    padding-left: 2.5rem;
    border-left: 1px solid rgba(45, 45, 45, 0.08);
  }
}

.portal-mission-guru__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 0.75rem;
}

.portal-mission-guru__photo {
  max-width: 14rem;
  margin: 0 auto 1rem;
}

@media (min-width: 768px) {
  .portal-mission-guru__photo {
    max-width: 12.5rem;
    margin: 0 0 1rem;
  }
}

.portal-mission-guru__guru .portal-prose {
  margin-top: 0;
}

.portal-mission-guru__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: rgba(255, 153, 51, 0.5);
  text-underline-offset: 3px;
}

.portal-mission-guru__link:hover {
  color: var(--maroon);
}

/* Page hero (inner pages) */
.portal-page-hero {
  margin-bottom: 2rem;
}

.portal-breadcrumb {
  font-size: 0.75rem;
  color: rgba(45, 45, 45, 0.5);
  margin-bottom: 0.75rem;
}

.portal-breadcrumb a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-underline-offset: 3px;
}

.portal-page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--maroon);
}

.portal-page-hero__intro {
  margin-top: 0.75rem;
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 42rem;
  line-height: 1.65;
}

/* Quotes */
.portal-quote {
  background: var(--white);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.portal-quote__text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--maroon);
}

.portal-quote__attrib {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(45, 45, 45, 0.55);
}

/* Cards */
.portal-card {
  background: var(--white);
  border: 1px solid rgba(45, 45, 45, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.portal-card:hover {
  border-color: rgba(255, 153, 51, 0.35);
  box-shadow: var(--shadow-md);
}

a.portal-card:hover {
  transform: translateY(-2px);
}

.portal-card__icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.portal-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--maroon);
}

.portal-card__body {
  margin-top: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.portal-card__note {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(45, 45, 45, 0.5);
}

/* Section */
.portal-section {
  margin-top: 2.5rem;
}

.portal-section__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 1rem;
}

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

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

@media (min-width: 640px) {
  .portal-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Buttons */
.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, border-color 0.2s;
}

.portal-btn-primary {
  background: var(--saffron);
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
}

.portal-btn-primary:hover {
  opacity: 0.92;
}

.portal-btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid rgba(45, 45, 45, 0.15);
}

.portal-btn-secondary:hover {
  border-color: var(--saffron);
}

.portal-cta-strip {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portal-coming-soon {
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.portal-coming-soon__label {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--maroon);
  line-height: 1.25;
}

.portal-coming-soon .portal-prose {
  margin: 0 0 0.85rem;
}

.portal-coming-soon .portal-cta-strip {
  margin-top: 1.5rem;
}

/* Badges / pills */
.portal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.portal-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--teal);
  background: rgba(42, 107, 107, 0.08);
  border: 1px solid rgba(42, 107, 107, 0.15);
  border-radius: 999px;
}

/* Callout */
.portal-callout {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  border: 1px solid rgba(92, 45, 58, 0.12);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: var(--text-base);
  color: var(--maroon);
}

.portal-callout strong {
  font-weight: 600;
}

/* Reach out card */
.portal-reach-out {
  background: var(--white);
  border: 1px solid rgba(255, 153, 51, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.portal-reach-out__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--maroon);
}

.portal-reach-out__list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: var(--text-base);
}

.portal-reach-out__address {
  white-space: pre-line;
  color: rgba(45, 45, 45, 0.75);
  padding-left: 1.25rem;
  position: relative;
}

.portal-reach-out__address::before {
  content: "📍";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
}

.portal-reach-out a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-underline-offset: 3px;
}

/* Guru layout */
.portal-guru-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .portal-guru-layout {
    grid-template-columns: 280px 1fr;
  }
}

.portal-guru-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--rose);
  border: 1px solid rgba(45, 45, 45, 0.06);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-guru-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-guru-photo__placeholder {
  text-align: center;
  padding: 2rem;
  color: rgba(45, 45, 45, 0.45);
  font-size: 0.8125rem;
}

.portal-guru-photo__placeholder img {
  width: 80px;
  height: 80px;
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.portal-prose {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-muted);
}

.portal-prose p + p {
  margin-top: 1rem;
}

.portal-prose h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--maroon);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Gallery */
.portal-gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(45, 45, 45, 0.06);
  background: var(--rose);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.portal-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(45, 45, 45, 0.4);
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem;
}

/* Contact form */
.portal-form-card {
  background: var(--white);
  border: 1px solid rgba(45, 45, 45, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.portal-form-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 1rem;
}

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

.portal-field + .portal-field {
  margin-top: 1rem;
}

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

.portal-field input,
.portal-field textarea,
.portal-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--text-base);
  background: var(--cream);
}

.portal-field input:focus,
.portal-field textarea:focus,
.portal-field select:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
}

.portal-field-hint {
  font-size: 0.75rem;
  color: rgba(45, 45, 45, 0.5);
}

.portal-field-error {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--maroon);
}

.portal-field-error[hidden] {
  display: none;
}

.portal-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-alert {
  border-radius: var(--radius);
  padding: 1rem;
  font-size: var(--text-base);
  margin-top: 1rem;
}

.portal-alert--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.portal-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Member / gateway flow layouts */
.portal-flow-card {
  background: var(--white);
  border: 1px solid rgba(45, 45, 45, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .portal-flow-card {
    padding: 1.5rem 2rem;
  }
}

.portal-flow-card--wide {
  max-width: 42rem;
}

.portal-flow-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .portal-flow-actions--row {
    flex-direction: row;
  }
}

.gateway-welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.gateway-welcome-actions__secondary {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(45, 45, 45, 0.08);
}

@media (min-width: 640px) {
  .gateway-welcome-actions__secondary {
    flex-direction: row;
  }

  .gateway-welcome-actions__secondary .portal-btn {
    flex: 1;
  }
}

.portal-btn-block {
  width: 100%;
}

.portal-alert--info {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: rgba(45, 45, 45, 0.9);
}

.portal-contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .portal-contact-layout {
    grid-template-columns: 1fr 1.2fr;
  }
}

/* Footer */
.portal-footer {
  border-top: 1px solid rgba(45, 45, 45, 0.06);
  margin-top: auto;
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: var(--text-base);
  color: rgba(45, 45, 45, 0.55);
}

.portal-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.portal-footer__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.portal-footer__name {
  color: var(--maroon);
}

.portal-footer__contact {
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.portal-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.portal-footer__nav a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-underline-offset: 3px;
}

.portal-footer__blessing {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(45, 45, 45, 0.5);
}

.portal-footer--minimal {
  padding: 1rem;
}

.portal-footer--minimal .portal-footer__nav {
  margin-bottom: 0;
}

/* Lightbox */
.portal-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(45, 45, 45, 0.85);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.portal-lightbox.is-open {
  display: flex;
}

.portal-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
}

.portal-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
}

body.portal-nav-open {
  overflow: hidden;
}

/* Story section on home */
.portal-story {
  max-width: 42rem;
  margin: 0 auto;
}

.portal-story__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(45, 45, 45, 0.05);
}

.portal-story__card + .portal-story__card {
  margin-top: 1rem;
}

.portal-explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .portal-explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

a.portal-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Registration: country + phone row */
.portal-phone-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.portal-phone-row__country {
  flex: 0 0 42%;
  max-width: 11rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(45, 45, 45, 0.12);
  background: var(--white);
}

.portal-phone-row__number {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(45, 45, 45, 0.12);
  background: var(--white);
}

/* Registration: class selection cards */
.portal-class-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.portal-field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.portal-class-card {
  display: block;
  cursor: pointer;
}

.portal-class-card__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-class-card__body {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  border: 2px solid rgba(45, 45, 45, 0.1);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-class-card__title {
  display: block;
  font-weight: 600;
  color: var(--charcoal);
}

.portal-class-card__schedule {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.portal-class-card:has(.portal-class-card__input:checked) .portal-class-card__body {
  border-color: var(--saffron);
  box-shadow: 0 0 0 1px rgba(255, 153, 51, 0.35);
}

.portal-class-card:has(.portal-class-card__input:focus-visible) .portal-class-card__body {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* —— Admin shell —— */
.admin-body {
  background: var(--cream);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 245, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 45, 58, 0.1);
  box-shadow: 0 1px 0 rgba(45, 45, 45, 0.04);
}

.admin-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1rem 0.625rem;
}

.admin-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.admin-brand:hover {
  opacity: 0.92;
}

.admin-brand__logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.admin-brand__name {
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--maroon);
}

.admin-brand__meta {
  margin-top: 0.125rem;
}

.admin-brand__badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
  background: rgba(92, 45, 58, 0.1);
  border: 1px solid rgba(92, 45, 58, 0.16);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.admin-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  flex-shrink: 0;
}

.admin-header__user {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--charcoal);
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-header__link {
  font-size: var(--text-sm);
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.admin-header__link:hover {
  color: var(--charcoal);
}

.admin-header__logout {
  display: inline;
  margin: 0;
}

.admin-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 0.75rem;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

.admin-nav-toggle:hover {
  border-color: var(--saffron);
}

.admin-nav-toggle__bar {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: var(--charcoal);
  border-radius: 1px;
  position: relative;
}

.admin-nav-toggle__bar::before,
.admin-nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  border-radius: 1px;
}

.admin-nav-toggle__bar::before {
  top: -6px;
}

.admin-nav-toggle__bar::after {
  top: 6px;
}

.admin-nav-desktop {
  display: none;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(45, 45, 45, 0.06);
}

.admin-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.admin-nav-list--stacked {
  flex-direction: column;
  gap: 0.25rem;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(45, 45, 45, 0.1);
  background: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(45, 45, 45, 0.8);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.admin-tab:hover {
  border-color: var(--saffron);
  background: rgba(255, 153, 51, 0.08);
  color: var(--charcoal);
}

.admin-tab[aria-current="page"] {
  border-color: var(--saffron);
  background: rgba(255, 153, 51, 0.14);
  color: var(--charcoal);
}

.admin-nav-list--stacked .admin-tab {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  padding: 0.625rem 0.875rem;
}

.admin-nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(45, 45, 45, 0.35);
}

.admin-nav-mobile.is-open {
  display: block;
}

.admin-nav-mobile__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(18rem, 85vw);
  height: 100%;
  background: var(--cream);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  overflow-y: auto;
}

.admin-nav-mobile__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: auto;
  margin-bottom: 1rem;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 0.5rem;
  background: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.admin-footer {
  margin-top: auto;
  border-top: 1px solid rgba(45, 45, 45, 0.08);
  background: rgba(255, 253, 245, 0.85);
}

.admin-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1rem 1.25rem;
  text-align: center;
}

.admin-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem 0.5rem;
  font-size: var(--text-sm);
  color: rgba(45, 45, 45, 0.75);
}

.admin-footer__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.admin-footer__name {
  color: var(--maroon);
}

.admin-footer__sep {
  color: rgba(45, 45, 45, 0.35);
}

.admin-footer__link {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-underline-offset: 3px;
}

.admin-footer__blessing {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: rgba(45, 45, 45, 0.5);
  font-style: italic;
}

body.admin-nav-open {
  overflow: hidden;
}

@media (min-width: 640px) {
  .admin-header__user {
    max-width: 14rem;
  }
}

@media (min-width: 768px) {
  .admin-nav-toggle {
    display: none;
  }

  .admin-nav-desktop {
    display: block;
  }

  .admin-nav-mobile {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .admin-header__user {
    display: none;
  }
}

/* Dakshina payment flow */
.portal-step__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.portal-step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: var(--saffron);
  color: var(--charcoal);
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.portal-step__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--maroon);
  margin: 0;
}

.portal-step--highlight {
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.35);
  transition: box-shadow 0.3s ease;
}

.portal-pay-card--primary {
  border-left: 4px solid var(--saffron);
}

.portal-pay-card--secondary {
  border-color: rgba(45, 45, 45, 0.05);
  background: rgba(255, 248, 240, 0.5);
}

.portal-pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 153, 51, 0.18);
  color: var(--charcoal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-pay-other > summary {
  list-style: none;
}

.portal-pay-other > summary::-webkit-details-marker {
  display: none;
}

.portal-mode-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  background: rgba(255, 153, 51, 0.12);
  border: 1px solid rgba(255, 153, 51, 0.25);
  font-size: var(--text-sm);
}

.portal-mode-chip__change {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.portal-success-panel {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.03));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.portal-success-panel__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #065f46;
}

/* Pay-first Dakshina flow */
.portal-payment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.portal-payment-header__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--maroon);
  margin: 0;
}

.portal-payment-header__identity {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
}

.portal-payment-header__class {
  margin: 0.35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.portal-payment-header__class-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.portal-payment-header__class-value {
  font-weight: 600;
  color: var(--charcoal);
}

.portal-payment-header__meta {
  margin-top: 0.35rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.portal-payment-header__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--saffron);
  white-space: nowrap;
}

.portal-payment-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  margin-bottom: 1rem;
}

.portal-payment-status--confirmed {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065f46;
}

.portal-payment-status--pending {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400e;
}

.portal-payment-flow {
  padding-bottom: 7.5rem;
}

.portal-payment-progress {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--maroon);
}

.portal-payment-flow__section {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(45, 45, 45, 0.08);
}

.portal-payment-flow__section--first {
  margin-top: 0.65rem;
  padding-top: 0;
  border-top: 0;
}

.portal-payment-flow__section[hidden] {
  display: none;
}

.portal-payment-flow__heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 0.3rem;
}

.portal-payment-flow__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9999px;
  background: var(--saffron);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.portal-payment-flow__lead {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  color: var(--text-muted);
}

.portal-payment-flow__lead--tight {
  margin-bottom: 0.55rem;
  font-weight: 600;
  color: var(--charcoal);
}

.portal-method-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 153, 51, 0.28);
  background: rgba(255, 153, 51, 0.08);
}

.portal-method-summary__text {
  margin: 0;
  font-size: 1.02rem;
  color: var(--charcoal);
}

.portal-method-summary .portal-info-link {
  margin-top: 0;
}

.portal-pay-tabs,
.portal-report-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 380px) {
  .portal-pay-tabs,
  .portal-report-methods {
    gap: 0.35rem;
  }

  .portal-pay-tab__body,
  .portal-report-method__body {
    min-height: 3.4rem;
    padding: 0.65rem 0.3rem;
  }

  .portal-pay-tab__label {
    font-size: 0.78rem;
  }
}

.portal-pay-tab,
.portal-report-method {
  display: block;
  cursor: pointer;
  min-width: 0;
}

.portal-pay-tab__input,
.portal-report-method__input,
.portal-period-chip__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-pay-tab__body,
.portal-report-method__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.1rem;
  padding: 0.55rem 0.4rem;
  border-radius: var(--radius);
  border: 2px solid rgba(45, 45, 45, 0.1);
  background: var(--white);
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.portal-pay-tab__check,
.portal-report-method__check {
  display: none;
  position: absolute;
  top: 0.3rem;
  right: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 9999px;
  background: var(--saffron);
  color: var(--charcoal);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}

.portal-pay-tab:has(.portal-pay-tab__input:checked) .portal-pay-tab__check,
.portal-report-method:has(.portal-report-method__input:checked) .portal-report-method__check {
  display: block;
}

.portal-pay-tab__label,
.portal-report-method__body {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.25;
}

.portal-pay-tab:has(.portal-pay-tab__input:checked) .portal-pay-tab__body,
.portal-report-method:has(.portal-report-method__input:checked) .portal-report-method__body {
  border-color: var(--saffron);
  background: rgba(255, 153, 51, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 153, 51, 0.35);
}

.portal-pay-tab:has(.portal-pay-tab__input:focus-visible) .portal-pay-tab__body,
.portal-report-method:has(.portal-report-method__input:focus-visible) .portal-report-method__body {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.portal-period-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

@media (min-width: 480px) {
  .portal-period-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.portal-period-chip {
  display: block;
  cursor: pointer;
}

.portal-period-chip__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  min-height: 4.25rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 2px solid rgba(45, 45, 45, 0.12);
  background: var(--white);
  color: var(--charcoal);
  text-align: left;
}

.portal-period-chip__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.portal-period-chip__range {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(45, 45, 45, 0.78);
}

.portal-period-chip:has(.portal-period-chip__input:checked) .portal-period-chip__body {
  border-color: var(--saffron);
  background: rgba(255, 153, 51, 0.12);
}

.portal-period-chip:has(.portal-period-chip__input:checked) .portal-period-chip__range {
  color: var(--charcoal);
}

.portal-period-chip:has(.portal-period-chip__input:focus-visible) .portal-period-chip__body {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.portal-period-summary {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--charcoal);
}

.portal-pay-detail {
  margin-top: 0.25rem;
  padding: 1rem;
}

.portal-pay-detail[hidden] {
  display: none;
}

.portal-pay-detail__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
}

.portal-pay-detail__lead {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.portal-pay-detail__value {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.portal-pay-detail__note-label {
  margin: 0.9rem 0 0.35rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.portal-pay-detail__note-value {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(45, 45, 45, 0.04);
  font-size: var(--text-sm);
  color: var(--charcoal);
  word-break: break-word;
}

.portal-pay-detail__dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.portal-pay-detail__dl dt {
  font-weight: 600;
  color: rgba(45, 45, 45, 0.55);
}

.portal-pay-detail__dl dd {
  margin: 0.1rem 0 0;
  color: var(--charcoal);
}

.portal-pay-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.portal-payment-report {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.portal-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.portal-fieldset__legend {
  display: block;
  margin: 0 0 0.55rem;
  font-weight: 600;
  color: var(--charcoal);
}

.portal-amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.portal-amount-chip {
  appearance: none;
  border: 2px solid rgba(45, 45, 45, 0.1);
  background: var(--white);
  color: var(--charcoal);
  border-radius: 9999px;
  padding: 0.55rem 0.9rem;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.portal-amount-chip.is-selected {
  border-color: var(--saffron);
  background: rgba(255, 153, 51, 0.12);
}

/* Day labels are short, so these fit three-up even on the narrowest phones. */
.portal-day-chips {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-day-chips .portal-period-chip__body {
  min-height: 3.5rem;
  padding: 0.65rem 0.6rem;
}

.portal-day-chips .portal-period-chip__title {
  font-size: 0.98rem;
}

.portal-day-chips .portal-period-chip__range {
  font-size: 0.9rem;
}

.portal-month-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-month-chip {
  appearance: none;
  min-height: 48px;
  border: 2px solid rgba(45, 45, 45, 0.1);
  background: var(--white);
  color: var(--charcoal);
  border-radius: 9999px;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
}

.portal-month-chip.is-selected {
  border-color: var(--saffron);
  background: rgba(255, 153, 51, 0.12);
}

.portal-month-chip:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.portal-dob-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.portal-field .portal-dob-grid select {
  min-height: 48px;
  padding: 0.65rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--white);
  border-width: 2px;
}

.portal-field--amount input {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1rem;
}

.portal-payment-summary {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 153, 51, 0.08);
  border: 1px solid rgba(255, 153, 51, 0.22);
}

.portal-payment-summary__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
}

.portal-payment-summary__list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.portal-payment-summary__list div,
.portal-receipt div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.portal-payment-summary__list dt,
.portal-receipt dt {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.portal-payment-summary__list dd,
.portal-receipt dd {
  margin: 0;
  font-weight: 600;
  color: var(--charcoal);
  text-align: right;
}

.portal-payment-reassure,
.portal-success-panel__note {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.portal-advanced-fields {
  margin-top: 0.55rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(45, 45, 45, 0.08);
}

.portal-advanced-fields[hidden] {
  display: none;
}

.portal-info-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0;
  border: none;
  background: none;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.portal-info-link--inline {
  margin-top: 0.35rem;
  align-self: flex-start;
}

.portal-success-panel--receipt {
  padding: 1.35rem 1.35rem 1.5rem;
}

.portal-success-panel__eyebrow {
  margin: 0 0 0.35rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #065f46;
}

.portal-receipt {
  margin: 1rem 0;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.18);
  display: grid;
  gap: 0.45rem;
}

.portal-success-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

/* Contribution history */
.portal-contrib-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.portal-contrib-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 45, 45, 0.08);
  background: var(--white);
}

.portal-contrib-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.portal-contrib-item__period {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
}

.portal-contrib-item__amount {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--maroon);
  white-space: nowrap;
}

.portal-contrib-item__class {
  margin: 0.35rem 0 0;
  font-weight: 600;
  color: var(--charcoal);
}

.portal-contrib-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.35rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.portal-contrib-item__status {
  display: inline-flex;
  align-items: center;
  margin-top: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
}

.portal-contrib-item__status--confirmed {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
}

.portal-contrib-item__status--pending {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.portal-contrib-item__status--rejected {
  background: rgba(45, 45, 45, 0.06);
  color: rgba(45, 45, 45, 0.7);
}

.portal-contrib-item__note {
  margin-top: 0.4rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.portal-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(255, 253, 245, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(45, 45, 45, 0.08);
  box-shadow: 0 -4px 20px rgba(45, 45, 45, 0.06);
}

.portal-sticky-cta--single {
  justify-content: stretch;
}

.portal-sticky-cta--single .portal-btn {
  width: 100%;
  min-width: 0;
}

.portal-sticky-cta--stack {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.45rem;
}

.portal-sticky-cta--stack .portal-btn {
  width: 100%;
  min-width: 0;
}

.portal-sticky-cta__hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  flex-shrink: 0;
  text-align: center;
  line-height: 1.35;
}

.portal-sticky-cta__hint[hidden] {
  display: none;
}

.portal-sticky-cta__hint strong {
  display: block;
  font-size: var(--text-base);
  color: var(--charcoal);
}

.portal-sticky-cta .portal-btn {
  flex-shrink: 0;
  min-width: 8rem;
}

.portal-bottom-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(45, 45, 45, 0.35);
}

.portal-bottom-sheet.is-open {
  display: block;
}

.portal-bottom-sheet__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--cream);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-md);
  padding: 1.25rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
}

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

.portal-bottom-sheet__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--maroon);
  margin: 0;
}

.portal-bottom-sheet__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--rose);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.portal-bottom-sheet__body {
  font-size: var(--text-base);
  color: var(--text-muted);
}

.portal-bottom-sheet__body p + p {
  margin-top: 0.75rem;
}

body.portal-sheet-open {
  overflow: hidden;
}

/* —— Dakshina admin queue —— */
.dakshina-page {
  --admin-header-offset: 4.5rem;
}

.dakshina-page__title {
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--maroon);
}

/* Status tabs */
.dakshina-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  border-bottom: 1px solid rgba(45, 45, 45, 0.1);
  padding-bottom: 0;
}

.dakshina-tabs__tab {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(45, 45, 45, 0.65);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
}

.dakshina-tabs__tab:hover {
  color: var(--charcoal);
}

.dakshina-tabs__tab--active {
  color: var(--maroon);
  border-bottom-color: var(--saffron);
}

.dakshina-tabs__count {
  font-variant-numeric: tabular-nums;
  color: rgba(45, 45, 45, 0.5);
  font-weight: 700;
}

.dakshina-tabs__tab--active .dakshina-tabs__count {
  color: var(--maroon);
}

/* Filter toolbar */
.dakshina-toolbar {
  position: sticky;
  top: var(--admin-header-offset);
  z-index: 30;
  background: rgba(255, 253, 245, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.625rem 0;
}

.dakshina-toolbar__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid rgba(45, 45, 45, 0.08);
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.dakshina-toolbar__search {
  position: relative;
  flex: 1 1 12rem;
  min-width: 10rem;
}

.dakshina-toolbar__search-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  pointer-events: none;
  opacity: 0.55;
}

.dakshina-toolbar__input {
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 0.625rem;
  font-size: 0.875rem;
  background: var(--white);
  width: 100%;
}

.dakshina-toolbar__input--search {
  padding-left: 1.75rem;
}

.dakshina-toolbar__field {
  flex: 0 1 9rem;
  min-width: 7rem;
}

.dakshina-toolbar__select {
  appearance: auto;
}

.dakshina-toolbar__reset {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  padding: 0 0.5rem;
}

/* Contextual bulk bar */
.dakshina-bulkbar {
  position: sticky;
  top: calc(var(--admin-header-offset) + 3.5rem);
  z-index: 25;
  margin-top: 0.75rem;
  background: #065f46;
  color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.25);
}

.dakshina-bulkbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
}

.dakshina-bulkbar__count {
  font-size: 0.875rem;
  font-weight: 700;
  margin-right: auto;
}

.dakshina-bulkbar .dakshina-btn--confirm {
  background: #fff;
  color: #065f46;
  border-color: #fff;
}

.dakshina-bulkbar .dakshina-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.dakshina-bulkbar__more {
  position: relative;
}

.dakshina-bulkbar__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.375rem);
  width: 16rem;
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 8px 24px rgba(45, 45, 45, 0.12);
  z-index: 40;
}

/* Desktop table */
.dakshina-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid rgba(45, 45, 45, 0.08);
  border-radius: 0.75rem;
}

.dakshina-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.dakshina-table thead th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(45, 45, 45, 0.55);
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);
  white-space: nowrap;
  background: rgba(255, 253, 245, 0.6);
}

.dakshina-table tbody td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid rgba(45, 45, 45, 0.06);
  vertical-align: middle;
}

.dakshina-table tbody tr.dakshina-row:hover td {
  background: rgba(255, 153, 51, 0.05);
}

.dakshina-table__check {
  width: 2.25rem;
  text-align: center;
}

.dakshina-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dakshina-table__sort {
  color: inherit;
  text-decoration: none;
}

.dakshina-table__sort:hover {
  color: var(--teal);
}

th[aria-sort="ascending"] .dakshina-table__sort::after {
  content: " ↑";
  font-size: 0.7em;
}

th[aria-sort="descending"] .dakshina-table__sort::after {
  content: " ↓";
  font-size: 0.7em;
}

.dakshina-row__member {
  min-width: 8rem;
  max-width: 14rem;
}

.dakshina-row__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
  white-space: nowrap;
}

.dakshina-row-reject td {
  border-bottom: 1px solid rgba(45, 45, 45, 0.06);
  background: rgba(239, 68, 68, 0.03);
}

.dakshina-reject-panel {
  margin: 0.5rem 0.75rem 0.75rem;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(254, 242, 242, 0.6);
  border-radius: 0.75rem;
  padding: 0.75rem;
}

/* Overflow menu */
.dakshina-overflow {
  position: relative;
  display: inline-block;
}

.dakshina-overflow__toggle {
  list-style: none;
  cursor: pointer;
  min-width: 2.25rem;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(45, 45, 45, 0.12);
  background: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  color: rgba(45, 45, 45, 0.7);
  letter-spacing: 0.05em;
}

.dakshina-overflow__toggle::-webkit-details-marker {
  display: none;
}

.dakshina-overflow__toggle:hover {
  border-color: rgba(45, 45, 45, 0.25);
}

.dakshina-overflow__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  min-width: 10rem;
  background: var(--white);
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 0.625rem;
  box-shadow: 0 8px 20px rgba(45, 45, 45, 0.12);
  padding: 0.25rem;
  z-index: 20;
}

.dakshina-overflow__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.375rem;
  cursor: pointer;
  color: var(--charcoal);
  font-family: inherit;
}

.dakshina-overflow__item:hover {
  background: rgba(255, 153, 51, 0.1);
}

.dakshina-overflow__item--danger {
  color: #991b1b;
}

/* Mobile compact list */
.dakshina-mobile-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(45, 45, 45, 0.08);
  border-radius: 0.75rem;
  background: var(--white);
  overflow: hidden;
}

.dakshina-mobile-row {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(45, 45, 45, 0.06);
}

.dakshina-mobile-row:last-child {
  border-bottom: none;
}

.dakshina-mobile-row__main {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.dakshina-mobile-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: flex-end;
}

/* Status chips & buttons */
.dakshina-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.dakshina-status-chip__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.dakshina-status-chip--pending {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: #92400e;
}

.dakshina-status-chip--pending .dakshina-status-chip__dot {
  background: #f59e0b;
}

.dakshina-status-chip--confirmed {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #065f46;
}

.dakshina-status-chip--confirmed .dakshina-status-chip__dot {
  background: #10b981;
}

.dakshina-status-chip--rejected {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.22);
  color: #991b1b;
}

.dakshina-status-chip--rejected .dakshina-status-chip__dot {
  background: #ef4444;
}

.dakshina-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.375rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}

.dakshina-btn--sm {
  min-height: 2.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
}

.dakshina-btn--confirm {
  background: #059669;
  color: #fff;
  border-color: #059669;
}

.dakshina-btn--confirm:hover {
  background: #047857;
}

.dakshina-btn--confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dakshina-btn--reject {
  background: var(--white);
  color: rgba(45, 45, 45, 0.85);
  border-color: rgba(45, 45, 45, 0.15);
}

.dakshina-btn--reject:hover {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
}

.dakshina-btn--ghost {
  background: var(--white);
  color: rgba(45, 45, 45, 0.75);
  border-color: rgba(45, 45, 45, 0.12);
}

.dakshina-btn--ghost:hover {
  border-color: rgba(45, 45, 45, 0.25);
}

.dakshina-empty {
  background: var(--white);
  border: 1px solid rgba(45, 45, 45, 0.08);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.dakshina-empty--success {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.06);
}

/* Pagination */
.dakshina-pagination__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid rgba(45, 45, 45, 0.08);
  border-radius: 0.75rem;
}

.dakshina-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.dakshina-pagination__btn,
.dakshina-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  border-radius: 0.375rem;
}

.dakshina-pagination__btn:hover,
.dakshina-pagination__page:hover {
  background: rgba(255, 153, 51, 0.12);
}

.dakshina-pagination__btn--disabled {
  color: rgba(45, 45, 45, 0.3);
  pointer-events: none;
}

.dakshina-pagination__page--current {
  background: rgba(92, 45, 58, 0.1);
  color: var(--maroon);
}

.dakshina-pagination__ellipsis {
  padding: 0 0.25rem;
  color: rgba(45, 45, 45, 0.4);
}

.dakshina-pagination__select {
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  background: var(--white);
}

/* Details drawer */
body.dakshina-drawer-open {
  overflow: hidden;
}

.dakshina-drawer[hidden] {
  display: none !important;
}

.dakshina-drawer:not([hidden]) {
  display: block;
}

.dakshina-drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 45, 45, 0.35);
  z-index: 60;
}

.dakshina-drawer__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(24rem, 100vw);
  background: var(--white);
  z-index: 70;
  box-shadow: -8px 0 32px rgba(45, 45, 45, 0.15);
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.dakshina-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.dakshina-drawer__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--maroon);
}

.dakshina-drawer__close {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 0.5rem;
  background: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(45, 45, 45, 0.7);
  flex-shrink: 0;
}

.dakshina-drawer__body {
  padding: 1rem 1.25rem 1.5rem;
}

.dakshina-drawer__dl {
  display: grid;
  gap: 0.75rem;
}

.dakshina-drawer__dl > div {
  display: grid;
  gap: 0.125rem;
}

.dakshina-drawer__dl dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(45, 45, 45, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dakshina-drawer__dl dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--charcoal);
}

.dakshina-drawer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Flagged admin work queue —— */
.flagged-page {
  --admin-header-offset: 4.5rem;
}

.flagged-page__title {
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--maroon);
}

.flagged-page__subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.flagged-export {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0 0.875rem;
  border: 1px solid rgba(45, 45, 45, 0.15);
  border-radius: 0.625rem;
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}

.flagged-export::before {
  content: "↓";
  opacity: 0.6;
}

.flagged-export:hover {
  border-color: rgba(45, 45, 45, 0.3);
}

/* Collapsible explainer */
.flagged-help {
  display: inline-block;
}

.flagged-help__toggle {
  list-style: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
}

.flagged-help__toggle::-webkit-details-marker {
  display: none;
}

.flagged-help__toggle {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.flagged-help__body {
  margin-top: 0.5rem;
  border: 1px solid rgba(45, 45, 45, 0.1);
  background: rgba(45, 45, 45, 0.02);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
}

.flagged-help__body ul {
  display: grid;
  gap: 0.375rem;
  list-style: disc;
  padding-left: 1rem;
}

/* Toolbar */
.flagged-toolbar {
  position: sticky;
  top: var(--admin-header-offset);
  z-index: 30;
  background: rgba(255, 253, 245, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.625rem 0;
}

.flagged-toolbar__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid rgba(45, 45, 45, 0.08);
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.flagged-toolbar__count {
  font-size: 0.875rem;
  color: rgba(45, 45, 45, 0.7);
  padding: 0 0.375rem;
  white-space: nowrap;
}

.flagged-toolbar__count strong {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--maroon);
  font-variant-numeric: tabular-nums;
}

.flagged-toolbar__search {
  position: relative;
  flex: 1 1 12rem;
  min-width: 10rem;
}

.flagged-toolbar__search-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.875rem;
  height: 0.875rem;
  pointer-events: none;
  color: rgba(45, 45, 45, 0.45);
}

.flagged-toolbar__input {
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 0.625rem;
  font-size: 0.875rem;
  background: var(--white);
  width: 100%;
}

.flagged-toolbar__input--search {
  padding-left: 2rem;
}

.flagged-toolbar__field {
  flex: 0 1 12rem;
  min-width: 9rem;
}

.flagged-toolbar__select {
  appearance: auto;
}

.flagged-toolbar__clear {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  padding: 0 0.5rem;
}

.flagged-toolbar__clear[hidden] {
  display: none;
}

/* Incomplete-meetings warning */
.flagged-warning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  color: #78350f;
}

.flagged-warning__link {
  font-weight: 700;
  color: #92400e;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

/* Group sections */
.flagged-sections {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.flagged-group {
  background: var(--white);
  border: 1px solid rgba(45, 45, 45, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
}

.flagged-group__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  background: rgba(255, 253, 245, 0.7);
}

.flagged-group__summary::-webkit-details-marker {
  display: none;
}

.flagged-group__marker {
  border-left: 0.3rem solid rgba(45, 45, 45, 0.45);
  border-top: 0.25rem solid transparent;
  border-bottom: 0.25rem solid transparent;
  transition: transform 0.15s ease;
}

.flagged-group[open] .flagged-group__marker {
  transform: rotate(90deg);
}

.flagged-group__name {
  font-weight: 600;
  color: var(--maroon);
  min-width: 0;
  flex: 1 1 auto;
}

.flagged-group__count {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(45, 45, 45, 0.6);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.flagged-group__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding: 0 0.875rem 0.625rem;
  background: rgba(255, 253, 245, 0.7);
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);
  font-size: 0.8125rem;
  color: rgba(45, 45, 45, 0.6);
}

.flagged-group__link {
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
}

.flagged-group__link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Desktop table (the mobile list below is the small-screen counterpart) */
.flagged-table-wrap {
  display: none;
  overflow-x: auto;
}

@media (min-width: 768px) {
  .flagged-table-wrap {
    display: block;
  }
}

.flagged-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.flagged-table thead th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(45, 45, 45, 0.5);
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);
  white-space: nowrap;
}

.flagged-table__actions-h {
  text-align: right;
}

.flagged-table tbody td {
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid rgba(45, 45, 45, 0.06);
  vertical-align: middle;
}

.flagged-table tbody tr:last-child td {
  border-bottom: none;
}

.flagged-row:hover td {
  background: rgba(255, 153, 51, 0.05);
}

.flagged-row__name {
  font-weight: 600;
  color: var(--charcoal);
}

.flagged-row__phone {
  margin-left: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: rgba(45, 45, 45, 0.5);
}

.flagged-row__when {
  color: rgba(45, 45, 45, 0.7);
  white-space: nowrap;
}

.flagged-row__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
  white-space: nowrap;
}

/* Mobile rows */
.flagged-mobile-list {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .flagged-mobile-list {
    display: none;
  }
}

.flagged-mobile-row {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid rgba(45, 45, 45, 0.06);
}

.flagged-mobile-row:last-child {
  border-bottom: none;
}

.flagged-mobile-row__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.625rem;
}

.flagged-mobile-row__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--charcoal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flagged-mobile-row__meta {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: rgba(45, 45, 45, 0.6);
}

/* Buttons */
.flagged-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.25rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid rgba(45, 45, 45, 0.15);
  background: var(--white);
  color: var(--charcoal);
}

.flagged-btn--primary:hover {
  border-color: var(--saffron);
  background: rgba(255, 153, 51, 0.1);
}

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

.flagged-btn--block {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.625rem;
}

/* Overflow menu */
.flagged-overflow {
  position: relative;
  display: inline-block;
}

.flagged-overflow__toggle {
  list-style: none;
  cursor: pointer;
  min-width: 2.25rem;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(45, 45, 45, 0.12);
  background: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  color: rgba(45, 45, 45, 0.7);
  letter-spacing: 0.05em;
}

.flagged-overflow__toggle::-webkit-details-marker {
  display: none;
}

.flagged-overflow__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  min-width: 11rem;
  background: var(--white);
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 0.625rem;
  box-shadow: 0 8px 20px rgba(45, 45, 45, 0.12);
  padding: 0.25rem;
  z-index: 20;
}

.flagged-overflow__item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.375rem;
  color: var(--charcoal);
  text-decoration: none;
}

.flagged-overflow__item:hover {
  background: rgba(255, 153, 51, 0.1);
}

.flagged-empty {
  background: var(--white);
  border: 1px solid rgba(45, 45, 45, 0.08);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.flagged-empty__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: 0.625rem;
  background: var(--saffron);
  color: var(--charcoal);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

