/**
 * Shared IUMS-aligned tokens for recruitment module (admin + applicant).
 * Primary: indigo-600 | Neutrals: slate | Semantic OK: emerald | Error: rose
 */
:root {
  --rec-primary: #4f46e5;
  --rec-primary-hover: #4338ca;
  --rec-surface: #f8fafc;
  --rec-sidebar: #0f172a;
}

.rec-link {
  color: #4338ca;
  font-weight: 600;
}
.rec-link:hover {
  text-decoration: underline;
}

.rec-site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.rec-site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 16rem;
  text-decoration: none;
  color: inherit;
}
.rec-site-logo {
  height: 3rem;
  width: auto;
  max-height: 3rem;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  background: #fff;
}
.rec-site-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
}
.rec-site-title-full,
.rec-site-title-short {
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rec-site-title-full {
  display: none;
  font-size: 0.8125rem;
}
.rec-site-title-short {
  display: block;
  font-size: 0.95rem;
}
.rec-site-subtitle {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f46e5;
}
.rec-site-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-left: auto;
}
@media (min-width: 640px) {
  .rec-site-header-inner { flex-wrap: nowrap; }
  .rec-site-title-full { display: block; }
  .rec-site-title-short { display: none; }
}

.rec-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.rec-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rec-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.rec-file-btn:hover {
  background: #e0e7ff;
}
.rec-qty {
  width: 5.5rem;
  max-width: 100%;
}

.rec-repeater-row {
  display: grid;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
}
@media (min-width: 768px) {
  .rec-repeater-row {
    grid-template-columns: 1fr 1fr;
  }
}

.rec-section-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  overflow: visible;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.rec-section-pills li {
  min-width: 0;
}
.rec-section-pills a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.rec-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background: #fff;
}
.rec-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6366f1;
  border-color: #6366f1;
}
.rec-input.rec-qty {
  width: 5.5rem;
}
#rec-education,
#rec-experience,
#rec-publications,
[id^="edu-"],
[id^="fld_"],
.rec-hash-anchor {
  scroll-margin-top: 6rem;
}
.rec-hash-current {
  outline: 2px solid #6366f1;
  box-shadow: 0 0 0 4px #e0e7ff;
}
.rec-yesno {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.rec-yesno label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.rec-yesno input {
  width: 1rem;
  height: 1rem;
  accent-color: #4f46e5;
}

.rec-admin-sidebar .rec-nav-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(30, 41, 59, 0.5);
  flex-shrink: 0;
}
.rec-admin-sidebar a:hover .rec-nav-icon,
.rec-admin-sidebar a[aria-current="page"] .rec-nav-icon {
  background: #4f46e5;
  color: #fff;
}

.rec-portal-stepper {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(6px);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.rec-portal-layout {
  display: grid;
  gap: 1.5rem;
}
.rec-portal-aside {
  min-width: 0;
}
.rec-portal-nav {
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  margin: 0 -0.25rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.rec-portal-nav::after {
  content: '';
  flex: 0 0 0.75rem;
}
.rec-portal-nav-title,
.rec-portal-nav-group {
  display: none;
}
.rec-portal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border: 1px solid transparent;
}
.rec-portal-nav-link span:first-child {
  display: none;
}
.rec-portal-nav-short {
  display: inline;
}
.rec-portal-nav-link.is-active {
  background: #4f46e5;
  color: #fff;
}
.rec-portal-nav-link.is-done:not(.is-active) {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}
.rec-portal-nav-link:hover:not(.is-active) {
  background: #f8fafc;
  border-color: #e2e8f0;
}

@media (min-width: 900px) {
  .rec-portal-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: start;
  }
  .rec-portal-aside {
    position: sticky;
    top: 5.5rem;
  }
  .rec-portal-nav {
    flex-direction: column;
    overflow: visible;
    margin: 0;
    padding: 0.75rem;
    gap: 0.15rem;
  }
  .rec-portal-nav::after {
    display: none;
  }
  .rec-portal-nav-title {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0 0.5rem 0.5rem;
  }
  .rec-portal-nav-group {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0.75rem 0.5rem 0.25rem;
  }
  .rec-portal-nav-link {
    width: 100%;
    justify-content: space-between;
    font-size: 0.8125rem;
    padding: 0.55rem 0.65rem;
  }
  .rec-portal-nav-link span:first-child {
    display: inline;
  }
  .rec-portal-nav-short {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rec-portal-aside { position: static; }
}

.rec-campaign-nav {
  position: sticky;
  top: 5rem;
  z-index: 25;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  padding: 0.25rem;
  background: linear-gradient(to bottom, #f8fafc 70%, rgba(248, 250, 252, 0));
}
.rec-campaign-tab {
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .rec-campaign-nav { position: static; }
  .rec-collapse-summary::before { transition: none; }
}

.rec-collapse-summary span:first-of-type {
  white-space: nowrap;
}
.rec-collapse-summary::-webkit-details-marker { display: none; }
.rec-collapse-summary::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  flex-shrink: 0;
  margin-right: 0.15rem;
  transition: transform 0.15s ease;
}
.rec-collapse[open] > .rec-collapse-summary::before {
  transform: rotate(45deg);
}

/* ——— Public landing (index) ——— */
.rec-landing {
  overflow-x: clip;
}
.rec-hero {
  position: relative;
  padding: 3.25rem 0 3.75rem;
  color: #0f172a;
}
.rec-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(79, 70, 229, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(16, 185, 129, 0.1), transparent 50%),
    linear-gradient(180deg, #eef2ff 0%, #f8fafc 55%, #f8fafc 100%);
  z-index: 0;
}
.rec-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.rec-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  animation: rec-fade-up 0.7s ease both;
}
.rec-hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.rec-hero-logo {
  height: 4rem;
  width: auto;
  max-width: 4.5rem;
  object-fit: contain;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.rec-hero-eyebrow {
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #6366f1;
  max-width: 28rem;
}
.rec-hero-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #334155;
  margin-bottom: 0.85rem;
}
.rec-hero-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #475569;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}
.rec-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.rec-hero-note {
  font-size: 0.8125rem;
  color: #64748b;
}
.rec-hero-helpline {
  margin-top: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}
.rec-hero-helpline a {
  color: #4f46e5;
  text-decoration: none;
  white-space: nowrap;
}
.rec-hero-helpline a:hover {
  text-decoration: underline;
}
.rec-btn-primary,
.rec-btn-secondary,
.rec-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.rec-btn-primary {
  background: #818cf8;
  color: #fff;
  box-shadow: 0 1px 2px rgba(129, 140, 248, 0.28);
}
.rec-btn-primary:hover {
  background: #6366f1;
  color: #fff;
}
.rec-btn-secondary {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.rec-btn-secondary:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}
.rec-btn-ghost {
  background: transparent;
  color: #475569;
  border: 1px solid transparent;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}
.rec-btn-ghost:hover {
  color: #4338ca;
  background: rgba(79, 70, 229, 0.06);
}

.rec-section {
  padding: 3.25rem 0;
}
.rec-section-alt {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.rec-section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}
.rec-section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #334155;
  margin-bottom: 0.4rem;
}
.rec-section-sub {
  font-size: 0.975rem;
  color: #64748b;
  line-height: 1.55;
}
.rec-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  background: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.rec-carousel {
  position: relative;
}
.rec-carousel-viewport {
  border-radius: 1.15rem;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 45%, #ecfdf5 100%);
  color: #334155;
  min-height: 16rem;
  outline: none;
  border: 1px solid #c7d2fe;
  box-shadow: 0 14px 36px -28px rgba(99, 102, 241, 0.45);
}
.rec-carousel-viewport:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #a5b4fc;
}
.rec-carousel-track {
  position: relative;
}
.rec-carousel-slide {
  display: none;
  padding: 1.75rem 1.5rem 1.85rem;
  animation: rec-slide-in 0.45s ease both;
}
.rec-carousel-slide.is-active {
  display: block;
}
.rec-carousel-slide-inner {
  max-width: 44rem;
}
.rec-carousel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.rec-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff;
  color: #6366f1;
  border: 1px solid #c7d2fe;
}
.rec-pill-muted {
  background: rgba(255, 255, 255, 0.7);
  color: #64748b;
  border-color: #e2e8f0;
}
.rec-pill-warn {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.rec-carousel-title {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  color: #1e293b;
}
.rec-carousel-blurb {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 1.25rem;
  max-width: 38rem;
}
.rec-carousel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.rec-carousel-actions .rec-btn-primary {
  background: #818cf8;
  color: #fff;
  box-shadow: none;
}
.rec-carousel-actions .rec-btn-primary:hover {
  background: #6366f1;
  color: #fff;
}
.rec-carousel-actions .rec-btn-secondary {
  background: #fff;
  color: #475569;
  border-color: #c7d2fe;
}
.rec-carousel-actions .rec-btn-secondary:hover {
  background: #eef2ff;
  border-color: #a5b4fc;
  color: #4338ca;
}
.rec-carousel-actions .rec-btn-ghost {
  color: #6366f1;
}
.rec-carousel-actions .rec-btn-ghost:hover {
  color: #4338ca;
  background: rgba(255, 255, 255, 0.65);
}
.rec-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.rec-carousel-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.rec-carousel-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.rec-carousel-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.rec-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.rec-carousel-dot.is-active {
  width: 1.35rem;
  background: #818cf8;
}

.rec-about-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .rec-about-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}
.rec-about-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #334155;
  margin: 0.75rem 0 0.85rem;
}
.rec-about-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #64748b;
}
.rec-about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.rec-about-points li {
  padding: 0.95rem 1.05rem;
  border-left: 3px solid #a5b4fc;
  background: #f8fafc;
  border-radius: 0 0.75rem 0.75rem 0;
}
.rec-about-point-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.25rem;
}
.rec-about-points span:last-child {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #334155;
}

.rec-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .rec-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
  }
}
.rec-step {
  position: relative;
  padding: 0.25rem 0.15rem 0.25rem 0;
  animation: rec-fade-up 0.6s ease both;
}
.rec-step:nth-child(2) { animation-delay: 0.06s; }
.rec-step:nth-child(3) { animation-delay: 0.12s; }
.rec-step:nth-child(4) { animation-delay: 0.18s; }
.rec-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #e0e7ff;
  color: #4f46e5;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}
.rec-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}
.rec-step-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}

.rec-openings-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 768px) {
  .rec-openings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.rec-opening-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  scroll-margin-top: 5.5rem;
}
.rec-opening-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 10px 28px -18px rgba(129, 140, 248, 0.4);
}
.rec-opening-advert {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
}
.rec-opening-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #334155;
  margin-top: 0.25rem;
  line-height: 1.3;
}
.rec-opening-meta {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.45rem;
}
.rec-opening-blurb {
  font-size: 0.875rem;
  color: #475569;
  margin-top: 0.75rem;
  line-height: 1.55;
}

.rec-landing-footer {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: #64748b;
  margin-top: 0;
  border-top: 1px solid #e2e8f0;
}
.rec-footer-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .rec-footer-grid {
    grid-template-columns: 1.3fr 0.7fr 0.9fr 1.1fr;
    gap: 2rem;
  }
}
.rec-footer-brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 0.45rem;
}
.rec-footer-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #818cf8;
  margin-bottom: 0.55rem;
}
.rec-footer-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}
.rec-footer-text a {
  color: #4f46e5;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.rec-footer-text a:hover {
  text-decoration: underline;
}
.rec-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.rec-footer-links a {
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.rec-footer-links a:hover {
  color: #6366f1;
  text-decoration: underline;
}
.rec-footer-copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: #94a3b8;
}

@keyframes rec-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rec-slide-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rec-hero-inner,
  .rec-step,
  .rec-carousel-slide {
    animation: none !important;
  }
  .rec-carousel-dot {
    transition: none;
  }
}

/* ——— Admin form builder ——— */
.rec-fb-bulk {
  position: sticky;
  top: 8.25rem;
  z-index: 30;
}
.rec-fb-section {
  --rec-fb-bg: #f8fafc;
  --rec-fb-border: #e2e8f0;
  --rec-fb-head: #f1f5f9;
  --rec-fb-dot: #94a3b8;
  background: var(--rec-fb-bg);
  border: 1px solid var(--rec-fb-border);
  border-radius: 1rem;
  overflow: hidden;
}
.rec-fb-section--lavender { --rec-fb-bg: #f5f3ff; --rec-fb-border: #ddd6fe; --rec-fb-head: #ede9fe; --rec-fb-dot: #a78bfa; }
.rec-fb-section--mint { --rec-fb-bg: #ecfdf5; --rec-fb-border: #a7f3d0; --rec-fb-head: #d1fae5; --rec-fb-dot: #34d399; }
.rec-fb-section--peach { --rec-fb-bg: #fff7ed; --rec-fb-border: #fed7aa; --rec-fb-head: #ffedd5; --rec-fb-dot: #fb923c; }
.rec-fb-section--sky { --rec-fb-bg: #eff6ff; --rec-fb-border: #bfdbfe; --rec-fb-head: #dbeafe; --rec-fb-dot: #60a5fa; }
.rec-fb-section--rose { --rec-fb-bg: #fff1f2; --rec-fb-border: #fecdd3; --rec-fb-head: #ffe4e6; --rec-fb-dot: #fb7185; }
.rec-fb-section--lemon { --rec-fb-bg: #fefce8; --rec-fb-border: #fde68a; --rec-fb-head: #fef9c3; --rec-fb-dot: #eab308; }
.rec-fb-section--teal { --rec-fb-bg: #f0fdfa; --rec-fb-border: #99f6e4; --rec-fb-head: #ccfbf1; --rec-fb-dot: #14b8a6; }
.rec-fb-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--rec-fb-head);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.rec-fb-section-head::-webkit-details-marker { display: none; }
.rec-fb-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--rec-fb-dot);
  flex-shrink: 0;
}
.rec-fb-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.rec-fb-section-meta {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}
.rec-fb-section-body { padding: 0.9rem 1rem 1rem; }
.rec-fb-fields { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.rec-fb-field {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 0.75rem;
  overflow: hidden;
}
.rec-fb-field.is-open {
  background: #fff;
  border-color: #c7d2fe;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.rec-fb-field-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.55rem 0.35rem 0.75rem;
}
.rec-fb-field-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.25rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 0.5rem;
}
.rec-fb-field-toggle:hover { background: rgba(99, 102, 241, 0.06); }
.rec-fb-field-pick {
  display: flex;
  align-items: center;
  min-width: 0;
}
.rec-fb-field-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; font-weight: 600; color: #0f172a; }
.rec-fb-field-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.rec-fb-field-actions { display: flex; align-items: center; gap: 0.15rem; }
.rec-fb-field-edit {
  padding: 0.75rem;
  border-top: 1px solid #e0e7ff;
  background: #f8fafc;
}
.rec-fb-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 0.8rem;
  line-height: 1;
}
.rec-fb-icon:hover { background: #f8fafc; }
.rec-fb-icon-danger { color: #be123c; }
.rec-fb-empty { padding: 0.75rem; font-size: 0.875rem; color: #64748b; }
.rec-fb-add { background: rgba(255,255,255,0.7) !important; }
@media (max-width: 720px) {
  .rec-fb-field-toggle { grid-template-columns: minmax(0, 1fr); }
  .rec-fb-field-meta { grid-column: 1; }
}
