:root {
  --wine-950: #2c0712;
  --wine-900: #4b1020;
  --wine-800: #68182b;
  --wine-700: #87243b;
  --rose-100: #f9e8e8;
  --gold-600: #b7852a;
  --gold-500: #d09a39;
  --gold-100: #fff3d8;
  --ivory-50: #fffaf2;
  --ivory-100: #f8f0e3;
  --stone-900: #27211f;
  --stone-700: #5d5450;
  --stone-500: #8a807a;
  --stone-300: #d8cec4;
  --stone-200: #e9e0d7;
  --stone-100: #f4eee7;
  --white: #ffffff;
  --green-700: #237653;
  --green-100: #def7ec;
  --red-700: #a43732;
  --red-100: #fde6e3;
  --blue-700: #2c5b8f;
  --blue-100: #e4effb;
  --shadow-sm: 0 12px 30px rgba(61, 32, 23, 0.08);
  --shadow-md: 0 20px 60px rgba(61, 32, 23, 0.16);
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
}


html,
body,
#app {
  min-height: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--ivory-50);
  color: var(--stone-900);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 500px) minmax(0, 1fr);
  background: var(--ivory-50);
}

.login-panel {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff7eb 100%);
  border-right: 1px solid rgba(183, 133, 42, 0.18);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(208, 154, 57, 0.42);
  border-radius: 8px;
  background: radial-gradient(circle at 30% 20%, #fff9ec, #f3d99f 54%, #9f6125 100%);
  color: var(--wine-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.brand-title {
  margin: 0;
  color: var(--wine-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.05;
}

.brand-subtitle {
  margin: 4px 0 0;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 600;
}

.login-card {
  width: min(100%, 390px);
  max-width: calc(100vw - 72px);
  margin: 56px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid rgba(183, 133, 42, 0.26);
  border-radius: 999px;
  background: var(--gold-100);
  color: #7c531c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-card h2 {
  margin: 0;
  color: var(--wine-950);
  font-size: 34px;
  line-height: 1.1;
}

.login-card p {
  margin: 12px 0 28px;
  color: var(--stone-700);
  line-height: 1.6;
}

.field-stack {
  display: grid;
  gap: 16px;
}

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

.field label {
  color: var(--stone-700);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--stone-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--stone-900);
  outline: none;
  padding: 0 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(208, 154, 57, 0.16);
}

.password-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--wine-700);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  padding: 0;
  white-space: nowrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, var(--wine-900), var(--wine-700));
  color: var(--white);
  box-shadow: 0 14px 24px rgba(104, 24, 43, 0.22);
  margin-top: 8px;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
  transform: none;
}

.secondary-button {
  border: 1px solid rgba(135, 36, 59, 0.18);
  background: var(--white);
  color: var(--wine-800);
  padding: 0 16px;
}

.field.needs-verification label {
  color: #9b2f10;
}

.field.needs-verification input,
.field.needs-verification textarea,
.field.needs-verification select {
  border-color: rgba(196, 85, 25, 0.45);
  background: #fff4df;
  color: #7f2a09;
}

.ghost-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--stone-700);
  padding: 0 12px;
}

.icon-button {
  width: 42px;
  min-height: 42px;
  border: 1px solid var(--stone-200);
  background: var(--white);
  color: var(--wine-800);
  padding: 0;
}

.status-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--red-700);
  font-size: 13px;
  font-weight: 700;
}

.login-footer {
  color: var(--stone-500);
  font-size: 12px;
}

.login-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(44, 7, 18, 0.76), rgba(44, 7, 18, 0.12) 50%, rgba(44, 7, 18, 0.38)),
    url("./assets/login-wedding-detail.png") center / cover no-repeat;
}

.visual-content {
  position: absolute;
  right: clamp(24px, 6vw, 76px);
  bottom: clamp(24px, 6vw, 76px);
  max-width: 540px;
  color: var(--white);
}

.visual-content h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
}

.visual-content p {
  max-width: 470px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.7;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 276px minmax(0, 1fr);
  background: var(--stone-100);
  transition: grid-template-columns 180ms ease;
}

.app-shell.candidate-shell {
  transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 86px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid rgba(183, 133, 42, 0.18);
  background: #fffaf4;
  padding: 24px 18px;
}

.sidebar.is-collapsible {
  transition: padding 180ms ease;
}

.sidebar-collapse-button {
  position: absolute;
  top: 22px;
  right: -17px;
  z-index: 25;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(183, 133, 42, 0.26);
  border-radius: 8px;
  background: var(--white);
  color: var(--wine-800);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.sidebar-collapse-button:hover {
  border-color: rgba(135, 36, 59, 0.32);
  background: var(--rose-100);
}

.sidebar .brand-lockup {
  padding: 0 6px 22px;
}

.sidebar .brand-mark {
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.sidebar .brand-title {
  font-size: 20px;
}

.nav-section-title {
  margin: 18px 10px 8px;
  color: var(--stone-500);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 10px;
  border-radius: 8px;
  color: var(--stone-700);
  font-size: 14px;
  font-weight: 800;
  padding: 0 12px;
}

.nav-link:hover,
.nav-link.active {
  background: var(--rose-100);
  color: var(--wine-900);
}

.nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--gold-600);
  font-size: 14px;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--stone-200);
  padding-top: 18px;
}

.admin-chip {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  margin-bottom: 12px;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--wine-900);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.admin-chip strong,
.admin-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-chip strong {
  color: var(--stone-900);
  font-size: 13px;
}

.admin-chip span {
  color: var(--stone-500);
  font-size: 12px;
}

.sidebar-collapsed .sidebar {
  align-items: center;
  padding: 24px 12px;
}

.sidebar-collapsed .sidebar .brand-lockup {
  justify-content: center;
  padding: 0 0 22px;
}

.sidebar-collapsed .sidebar .brand-lockup > div:not(.brand-mark),
.sidebar-collapsed .nav-section-title,
.sidebar-collapsed .nav-link span:not(.nav-icon),
.sidebar-collapsed .admin-chip div:not(.avatar),
.sidebar-collapsed .sidebar-footer .secondary-button {
  display: none;
}

.sidebar-collapsed .nav-link {
  justify-content: center;
  width: 46px;
  padding: 0;
}

.sidebar-collapsed .nav-list {
  justify-items: center;
}

.sidebar-collapsed .sidebar-footer {
  width: 100%;
}

.sidebar-collapsed .admin-chip {
  justify-content: center;
  margin-bottom: 0;
}

.main-area {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--stone-200);
  background: rgba(255, 250, 242, 0.88);
  padding: 0 clamp(18px, 4vw, 36px);
  backdrop-filter: blur(14px);
}

.mobile-menu {
  display: none;
}

.page-heading {
  min-width: 0;
}

.page-heading h1 {
  margin: 0;
  color: var(--wine-950);
  font-size: 24px;
  line-height: 1.2;
}

.page-heading p {
  margin: 4px 0 0;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar.upload-mode {
  gap: 12px;
}

.topbar.upload-mode .page-heading {
  flex: 0 1 260px;
}

.upload-topbar-actions {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
  gap: 8px;
}

.upload-topbar-actions .primary-button,
.upload-topbar-actions .secondary-button {
  width: auto;
  min-height: 38px;
  margin-top: 0;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

body.upload-review-active .upload-topbar-actions > button {
  display: none;
}

.upload-process-indicator {
  display: inline-flex;
  min-width: 188px;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--stone-700);
  padding: 6px 10px;
}

.upload-process-indicator strong,
.upload-process-indicator small {
  display: block;
  line-height: 1.15;
}

.upload-process-indicator strong {
  color: var(--wine-950);
  font-size: 13px;
  font-weight: 900;
}

.upload-process-indicator small {
  margin-top: 3px;
  color: var(--stone-500);
  font-size: 11px;
  font-weight: 800;
}

.process-hourglass {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 22px;
  flex: 0 0 auto;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  color: var(--gold-600);
}

.process-hourglass::before,
.process-hourglass::after {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  content: "";
  transform: translateX(-50%);
}

.process-hourglass::before {
  top: 3px;
  border-top: 7px solid currentColor;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
}

.process-hourglass::after {
  bottom: 3px;
  border-right: 6px solid transparent;
  border-bottom: 7px solid currentColor;
  border-left: 6px solid transparent;
}

.upload-process-indicator.processing {
  border-color: rgba(208, 154, 57, 0.4);
  background: #fff8eb;
}

.upload-process-indicator.processing .process-hourglass {
  animation: hourglass-flip 1.15s ease-in-out infinite;
}

.upload-process-indicator.review {
  border-color: rgba(196, 85, 25, 0.28);
  background: #fff6ea;
}

.upload-process-indicator.complete {
  border-color: rgba(35, 118, 83, 0.28);
  background: var(--green-100);
}

.upload-process-indicator.error {
  border-color: rgba(164, 55, 50, 0.32);
  background: var(--red-100);
}

@keyframes hourglass-flip {
  0%,
  42% {
    transform: rotate(0deg);
  }
  58%,
  100% {
    transform: rotate(180deg);
  }
}

.content {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 36px) 44px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card,
.panel,
.profile-card,
.route-card {
  border: 1px solid rgba(216, 206, 196, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.metric-card {
  min-height: 124px;
  padding: 18px;
}

.metric-card span {
  display: block;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  color: var(--wine-950);
  font-size: 32px;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 12px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.panel {
  min-width: 0;
  padding: 20px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-header h2 {
  margin: 0;
  color: var(--wine-950);
  font-size: 18px;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 700;
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 14px;
  min-height: 42px;
}

.status-row span {
  color: var(--stone-700);
  font-size: 13px;
  font-weight: 800;
}

.status-row strong {
  color: var(--wine-950);
  text-align: right;
}

.bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--stone-200);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wine-700), var(--gold-500));
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--gold-500);
  padding: 4px 0 4px 12px;
}

.activity-item strong {
  color: var(--stone-900);
  font-size: 13px;
}

.activity-item span {
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 700;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.quick-action {
  min-height: 88px;
  border: 1px solid rgba(183, 133, 42, 0.2);
  border-radius: 8px;
  background: #fffaf4;
  color: var(--wine-900);
  padding: 14px;
  text-align: left;
}

.quick-action strong,
.quick-action span {
  display: block;
}

.quick-action strong {
  font-size: 14px;
}

.quick-action span {
  margin-top: 8px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

/* ─── Filter Bar ─── */
.filters-bar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(216, 206, 196, 0.9);
  border-radius: 8px;
  background: #fffaf4;
  padding: 14px;
}

.candidate-filters {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px 12px;
  border: 1px solid rgba(183, 133, 42, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,253,249,0.96) 0%, rgba(255,247,235,0.92) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(61, 32, 23, 0.06), 0 1px 3px rgba(183, 133, 42, 0.08);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.candidate-filters::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wine-900), var(--gold-500), var(--wine-700));
  border-radius: 14px 14px 0 0;
}

.candidate-filters .field label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone-500);
  font-weight: 900;
}

.candidate-filters .filter-search {
  grid-column: span 6;
}

.candidate-filters .filter-type {
  grid-column: span 2;
}

.candidate-filters .filter-status {
  grid-column: span 2;
}

.candidate-filters .filter-actions {
  grid-column: span 2;
  display: flex;
  align-self: end;
  justify-content: flex-end;
  gap: 6px;
}

.candidate-filters .filter-more {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(216, 206, 196, 0.5);
  padding-top: 10px;
}

.candidate-filters .filter-more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 16px;
  border: 1px solid rgba(208, 154, 57, 0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff4dc 0%, #ffe2b8 55%, #ffd2c2 100%);
  color: var(--wine-900);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  list-style: none;
  box-shadow: 0 0 0 0 rgba(208, 154, 57, 0.45);
  animation: filter-more-glow 2.4s ease-in-out infinite;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.candidate-filters .filter-more summary::-webkit-details-marker {
  display: none;
}

.candidate-filters .filter-more summary::after {
  content: "▾";
  font-size: 11px;
  transition: transform 0.2s ease;
}

.candidate-filters .filter-more[open] summary::after {
  transform: rotate(180deg);
}

.candidate-filters .filter-more summary:hover {
  transform: translateY(-1px);
  filter: saturate(1.15);
}

/* Glow only while collapsed, to draw attention without distracting once open */
.candidate-filters .filter-more[open] summary {
  animation: none;
  box-shadow: 0 2px 10px rgba(208, 154, 57, 0.25);
}

.candidate-filters .filter-more-spark {
  display: inline-block;
  color: var(--gold-600, #b7852a);
  animation: filter-more-spark 2.4s ease-in-out infinite;
}

.candidate-filters .filter-more-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--wine-900, #3c0a16);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

@keyframes filter-more-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(208, 154, 57, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(208, 154, 57, 0); }
}

@keyframes filter-more-spark {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .candidate-filters .filter-more summary,
  .candidate-filters .filter-more-spark {
    animation: none;
  }
}

.candidate-filters .filter-more-groups {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.candidate-filters .filter-group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(208, 154, 57, 0.22);
  border-left: 4px solid var(--gold-500, #d09a39);
  border-radius: 12px;
  background: rgba(255, 249, 238, 0.7);
}

.candidate-filters .filter-group:nth-child(2) { border-left-color: var(--wine-700, #87243b); background: rgba(255, 243, 245, 0.7); }
.candidate-filters .filter-group:nth-child(3) { border-left-color: var(--green-700, #237653); background: rgba(240, 250, 244, 0.7); }
.candidate-filters .filter-group:nth-child(4) { border-left-color: var(--blue-700, #2d5b9a); background: rgba(240, 246, 253, 0.7); }

/* Legends don't take part in grid layout, so float it into the first column instead. */
.candidate-filters .filter-group legend {
  float: left;
  padding: 0;
  color: var(--wine-900);
  font-size: 13px;
  font-weight: 900;
}

.candidate-filters .filter-group-grid {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.candidate-filters .filter-group-grid.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.candidate-filters .filter-group-grid > .field {
  grid-column: auto;
}

.candidate-filters .filter-group-grid > .field.is-wide {
  grid-column: 1 / -1;
}

.candidate-filters .filter-group legend small {
  display: block;
  margin-top: 2px;
  color: var(--stone-500);
  font-size: 10px;
  font-weight: 700;
}

/* ── Verification: Education & Career captured during the L1 call ── */
.vfy-career-original,
.vfy-career-form {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
}

.vfy-career-original {
  background: #faf7f3;
  border: 1px dashed #e2d6cb;
}

.vfy-career-form {
  margin-top: 14px;
  background: linear-gradient(135deg, #fffaf0 0%, #fff4ea 100%);
  border: 1px solid rgba(208, 154, 57, 0.35);
  border-left: 4px solid var(--gold-500, #d09a39);
}

.vfy-career-form.is-locked {
  border-left-color: var(--green-700, #237653);
  background: #f3faf6;
}

.vfy-career-heading {
  color: var(--wine-900);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vfy-career-status {
  margin: 0;
  color: var(--stone-600);
  font-size: 12px;
  line-height: 1.5;
}

.vfy-career-status.is-done {
  color: var(--green-700, #237653);
  font-weight: 700;
}

.vfy-career-group {
  display: grid;
  gap: 12px;
  padding: 12px 14px 14px;
  border: 1px solid #eadfd8;
  border-left: 4px solid var(--wine-700, #87243b);
  border-radius: 10px;
  background: #fff;
}

.vfy-career-group.is-career {
  border-left-color: var(--blue-700, #2d5b9a);
}

.vfy-career-group h4 {
  margin: 0;
  color: var(--wine-900);
  font-size: 14px;
  font-weight: 900;
}

.vfy-career-group.is-career h4 {
  color: var(--blue-700, #2d5b9a);
}

/* Multi-select dropdown: chosen values show as tags inside the box */
.vfy-multi {
  position: relative;
}

.vfy-multi-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 6px 32px 6px 10px;
  border: 1px solid #ddd0c5;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.vfy-multi-box::-webkit-details-marker {
  display: none;
}

details.vfy-multi > .vfy-multi-box::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stone-500);
  font-size: 12px;
}

details.vfy-multi[open] > .vfy-multi-box {
  border-color: var(--wine-700, #87243b);
  box-shadow: 0 0 0 3px rgba(135, 36, 59, 0.08);
}

.vfy-multi.is-locked .vfy-multi-box {
  background: #f6f2ee;
  cursor: default;
}

.vfy-multi-placeholder {
  color: var(--stone-400, #a89f99);
  font-size: 13px;
}

.vfy-multi-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--wine-900, #3c0a16);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.vfy-multi-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #ddd0c5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(44, 7, 18, 0.14);
}

.vfy-multi .vfy-multi-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--stone-700, #4a413c);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}

.vfy-multi .vfy-multi-option:hover {
  background: #fbf3ee;
}

/* Reset the general form-field input styling so every option gets the same small tick box. */
.vfy-multi .vfy-multi-option input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 3px;
  box-shadow: none;
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: var(--wine-900, #3c0a16);
  cursor: pointer;
}

.vfy-multi .vfy-multi-option span {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.vfy-multi .vfy-multi-placeholder {
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.vfy-career-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 700;
}

.vfy-career-suggestions:empty {
  display: none;
}

.vfy-suggest-chip {
  padding: 5px 11px;
  border: 1px dashed var(--gold-500, #d09a39);
  border-radius: 999px;
  background: #fff4dc;
  color: var(--wine-900);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.vfy-suggest-chip.is-on {
  border-style: solid;
  background: var(--gold-500, #d09a39);
  color: #fff;
}

.candidate-filters input,
.candidate-filters select {
  border-radius: 10px;
  border: 1px solid rgba(216, 206, 196, 0.7);
  background: rgba(255,255,255,0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.candidate-filters input:focus,
.candidate-filters select:focus {
  border-color: rgba(135, 36, 59, 0.4);
  box-shadow: 0 0 0 3px rgba(135, 36, 59, 0.08);
  background: #fff;
  outline: none;
}

.filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.candidate-filters .filter-actions .primary-button {
  min-height: 44px;
  padding: 0 20px;
  width: auto;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--wine-900) 0%, var(--wine-700) 100%);
  box-shadow: 0 2px 8px rgba(75, 16, 32, 0.25);
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.candidate-filters .filter-actions .primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(75, 16, 32, 0.35);
}

.candidate-filters .filter-actions .ghost-button {
  min-height: 44px;
  padding: 0 18px;
  width: auto;
  border-radius: 10px;
  color: var(--stone-600);
  font-weight: 800;
  transition: color 0.18s ease, background 0.18s ease;
}

.candidate-filters .filter-actions .ghost-button:hover {
  color: var(--wine-900);
  background: rgba(135, 36, 59, 0.06);
}

/* Search input wrapper */
.filter-search-wrapper {
  position: relative;
}

.filter-search-wrapper input {
  padding-left: 38px !important;
}

.filter-search-icon {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: var(--stone-400);
  pointer-events: none;
  transition: color 0.2s ease;
}

.filter-search-wrapper input:focus ~ .filter-search-icon,
.filter-search-wrapper input:focus + .filter-search-icon {
  color: var(--wine-700);
}

.age-range-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.age-range-control input {
  min-width: 0;
}

.profile-open-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
}

.profile-open-control select {
  min-width: 0;
}

.profile-open-button {
  min-height: 44px;
}

.profile-open-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.profile-open-button.is-disabled:hover {
  transform: none;
}

/* ─── Candidate Page Layout ─── */
.candidate-page {
  display: grid;
  gap: 18px;
}

.candidate-browser-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

/* The results panel matches the details card's height and scrolls its own list. */
.candidate-browser-layout .candidate-detail-panel {
  align-self: start;
}

.candidate-browser-layout .candidate-list-panel {
  display: flex;
  flex-direction: column;
}

.candidate-browser-layout .candidate-list {
  flex: 1 1 auto;
  min-height: 260px;
  max-height: none;
  /* Size containment stops the list's own length from stretching the row. */
  contain: size;
  overflow-y: auto;
}

@media (max-width: 1120px) {
  .candidate-browser-layout .candidate-list {
    contain: none;
    max-height: 60vh;
  }
}

/* ─── Landing / Pre-Search State ─── */
.profile-search-start {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.profile-search-card {
  min-width: 0;
  border: 1px solid rgba(216, 206, 196, 0.6);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 32px rgba(61, 32, 23, 0.06);
  padding: 26px;
  transition: box-shadow 0.2s ease;
}

.profile-search-intro {
  display: grid;
  align-content: space-between;
  gap: 22px;
  background: linear-gradient(145deg, #fffdf8 0%, #fff5e6 40%, #fff0da 100%);
  border: 1px solid rgba(183, 133, 42, 0.15);
  position: relative;
  overflow: hidden;
}

.profile-search-intro::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208,154,57,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.profile-search-eyebrow {
  width: fit-content;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff1e0 0%, #ffe8c7 100%);
  color: var(--wine-900);
  font-size: 11px;
  font-weight: 900;
  padding: 7px 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(183, 133, 42, 0.12);
}

.profile-search-card h2 {
  margin: 0;
  color: var(--wine-950);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.profile-search-card p {
  margin: 8px 0 0;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.profile-search-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-search-summary div {
  border-top: 2px solid rgba(183, 133, 42, 0.18);
  padding-top: 14px;
  transition: border-color 0.2s ease;
}

.profile-search-summary div:hover {
  border-top-color: var(--gold-500);
}

.profile-search-summary span {
  display: block;
  color: var(--stone-500);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quick-search-button span {
  display: block;
  color: var(--stone-500);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-search-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--wine-950);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.profile-search-card-header {
  margin-bottom: 16px;
}

.profile-search-card-header h2 {
  font-size: 20px;
}

.profile-search-card-header p {
  margin-top: 4px;
}

.quick-search-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-search-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border: 1px solid rgba(216, 206, 196, 0.7);
  border-left: 3px solid var(--stone-300);
  border-radius: 12px;
  background: linear-gradient(135deg, #fffdf9 0%, #fffaf4 100%);
  color: var(--wine-950);
  cursor: pointer;
  padding: 14px;
  text-align: left;
  transition: all 0.2s ease;
}

.quick-search-button:hover {
  border-color: rgba(135, 36, 59, 0.24);
  border-left-color: var(--wine-700);
  background: linear-gradient(135deg, #fff8fa 0%, #fff5f6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 32, 23, 0.08);
}

.quick-search-button .qs-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff1e0 0%, #ffe8c7 100%);
  color: var(--wine-800);
}

.quick-search-button .qs-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quick-search-button strong {
  font-size: 14px;
  line-height: 1.3;
}

/* ─── Candidate List & Detail Panels ─── */
.candidate-list-panel,
.candidate-detail-panel {
  min-width: 0;
  border: 1px solid rgba(216, 206, 196, 0.6);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px rgba(61, 32, 23, 0.06);
  padding: 20px;
}

.candidate-list-header,
.candidate-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.candidate-list-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(216, 206, 196, 0.5);
}

.candidate-list-header h2,
.candidate-detail-header h2 {
  margin: 0;
  color: var(--wine-950);
  font-size: 18px;
}

.candidate-list-header p,
.candidate-detail-header p {
  margin: 4px 0 0;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

.results-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff1e0 0%, #ffe8c7 100%);
  color: var(--wine-900);
  font-size: 12px;
  font-weight: 900;
  margin-left: 8px;
  vertical-align: middle;
}

.candidate-list {
  display: grid;
  max-height: calc(100vh - 340px);
  min-height: 260px;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

/* Scrollbar styling */
.candidate-list::-webkit-scrollbar {
  width: 5px;
}

.candidate-list::-webkit-scrollbar-track {
  background: transparent;
}

.candidate-list::-webkit-scrollbar-thumb {
  background: rgba(135, 36, 59, 0.15);
  border-radius: 999px;
}

.candidate-list::-webkit-scrollbar-thumb:hover {
  background: rgba(135, 36, 59, 0.3);
}

/* ─── Candidate Row Cards ─── */
.candidate-row {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(216, 206, 196, 0.6);
  border-left: 3px solid transparent;
  border-radius: 12px;
  background: var(--white);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.candidate-row:hover {
  border-color: rgba(135, 36, 59, 0.15);
  border-left-color: rgba(135, 36, 59, 0.3);
  background: #fffcf9;
  box-shadow: 0 4px 16px rgba(61, 32, 23, 0.06);
  transform: translateY(-1px);
}

.candidate-row.active {
  border-color: rgba(135, 36, 59, 0.22);
  border-left-color: var(--wine-700);
  background: linear-gradient(135deg, #fff8fa 0%, #fff5f6 100%);
  box-shadow: 0 6px 24px rgba(135, 36, 59, 0.1);
}

.candidate-row-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

/* ─── Candidate Avatar ─── */
.candidate-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wine-900) 0%, var(--wine-700) 100%);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(75, 16, 32, 0.2);
  letter-spacing: 0.02em;
}

.candidate-avatar.large {
  width: 56px;
  height: 56px;
  font-size: 18px;
  border-radius: 14px;
}

.candidate-row h3 {
  margin: 0;
  color: var(--wine-950);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.candidate-name-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.blue { background: var(--blue-700); }
.status-dot.gold { background: var(--gold-600); }
.status-dot.green { background: var(--green-700); }
.status-dot.red { background: var(--red-700); }

.candidate-row p {
  margin: 3px 0 0;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.candidate-row .candidate-info-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.candidate-info-divider {
  color: var(--stone-300);
  font-weight: 400;
}

.candidate-tags,
.candidate-row-actions,
.candidate-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
}

.candidate-row-actions:empty {
  display: none;
}

.candidate-tags span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  padding: 0 9px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.candidate-tags span:nth-child(1) {
  background: linear-gradient(135deg, #e4effb 0%, #d8e8f8 100%);
  color: var(--blue-700);
}

.candidate-tags span:nth-child(2) {
  background: linear-gradient(135deg, #def7ec 0%, #ccf0de 100%);
  color: var(--green-700);
}

.candidate-tags span:nth-child(3) {
  background: linear-gradient(135deg, #fff3d8 0%, #ffe8b8 100%);
  color: #8b6914;
}

.candidate-tags span:hover {
  transform: translateY(-1px);
}

.candidate-row-actions .secondary-button,
.candidate-detail-actions .secondary-button,
.candidate-detail-actions .primary-button {
  width: auto;
  min-height: 34px;
  margin-top: 0;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
}

/* ─── Detail Preview Panel ─── */
.candidate-detail-panel {
  position: sticky;
  top: 96px;
  border-radius: 14px;
  overflow: hidden;
}

.candidate-detail-header {
  margin: -20px -20px 0;
  padding: 22px 22px 18px;
  background: linear-gradient(135deg, #fffaf4 0%, #fff5ea 50%, #fff0dc 100%);
  border-bottom: 1px solid rgba(183, 133, 42, 0.12);
}

.candidate-detail-header h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.candidate-detail-header p {
  font-size: 12px;
  color: var(--stone-600);
}

.candidate-detail-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(135, 36, 59, 0.2);
  background: var(--white);
  color: var(--wine-900);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.candidate-detail-open-btn.is-publish {
  background: var(--wine-900, #3c0a16);
  border-color: var(--wine-900, #3c0a16);
  color: #fff;
}

/* ── Publish Queue ── */
.publish-queue-list {
  display: grid;
  gap: 10px;
}

.publish-queue-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 206, 196, 0.6);
  border-radius: 12px;
  background: var(--white);
}

.publish-queue-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.publish-queue-copy strong {
  color: var(--wine-950);
  font-size: 15px;
}

.publish-queue-copy span {
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

.publish-queue-copy small {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
}

.publish-queue-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
}

@media (max-width: 640px) {
  .publish-queue-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .publish-queue-actions {
    grid-column: 1 / -1;
  }
}

.candidate-detail-open-btn:hover {
  border-color: var(--wine-700);
  background: rgba(135, 36, 59, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(75, 16, 32, 0.12);
}

.candidate-detail-open-btn.is-publish:hover {
  background: var(--wine-700, #87243b);
  border-color: var(--wine-700, #87243b);
  color: #fff;
}

.candidate-detail-open-btn.is-whatsapp {
  border-color: #1f9d55;
  color: #157a42;
}

.candidate-detail-open-btn.is-whatsapp:hover {
  border-color: #157a42;
  background: #ecfaf2;
}

/* WhatsApp share pop-up */
.share-modal {
  display: grid;
  gap: 8px;
  width: min(520px, 92vw);
  text-align: left;
}

.share-modal-label {
  margin-top: 6px;
  color: #68182b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.share-modal input,
.share-modal textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #dfd2c9;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}

.share-modal textarea {
  resize: vertical;
  line-height: 1.45;
}

.share-modal-error {
  color: #a43732;
  font-size: 12px;
  font-weight: 700;
}

.share-modal-hint {
  color: var(--stone-500);
  font-size: 12px;
}

/* Full profile page: identity header with actions at the top right */
.profile-page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(216, 206, 196, 0.6);
  border-radius: 14px;
  background: linear-gradient(135deg, #fffaf4 0%, #fff5ea 50%, #fff0dc 100%);
  box-shadow: 0 8px 32px rgba(61, 32, 23, 0.06);
}

.profile-page-hero-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profile-page-hero h2 {
  margin: 0;
  color: var(--wine-950);
  font-size: 20px;
}

.profile-page-hero p {
  margin: 4px 0 0;
  color: var(--stone-600);
  font-size: 12px;
  font-weight: 800;
}

.profile-page-hero-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .profile-page-hero {
    flex-direction: column;
    align-items: stretch;
  }
}

.profile-horoscope-charts-container {
  grid-column: 1 / -1;
}

.profile-horoscope-charts-container > div {
  min-width: 0;
  overflow-x: auto;
}

.profile-horoscope-chart-card .upload-si-grid {
  grid-template-rows: repeat(4, 92px);
}

@media (max-width: 900px) {
  .profile-horoscope-charts-container {
    grid-template-columns: 1fr !important;
  }
}

.candidate-detail-actions {
  margin: 16px 0;
}

/* ─── Detail Sections ─── */
.candidate-detail-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(216, 206, 196, 0.5);
  padding-top: 16px;
  margin-top: 16px;
}

.candidate-detail-section h3 {
  margin: 0;
  color: var(--wine-900);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-left: 10px;
  border-left: 3px solid var(--gold-500);
}

.candidate-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.candidate-fact {
  min-width: 0;
  border: 1px solid rgba(216, 206, 196, 0.5);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.8);
  padding: 10px 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.candidate-fact:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(61, 32, 23, 0.06);
  background: #fffdf9;
}

.candidate-fact span,
.candidate-fact strong {
  display: block;
}

.candidate-fact span {
  color: var(--stone-500);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.candidate-fact strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--stone-900);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.candidate-fact.pending {
  background: linear-gradient(135deg, #fff8eb 0%, #fff4df 100%);
  border-color: rgba(183, 133, 42, 0.2);
}

.candidate-fact.pending strong {
  color: #9b2f10;
}

/* Chart availability tag in candidate cards */
.candidate-tag-chart {
  background: linear-gradient(135deg, #f9e8e8 0%, #f3d5d5 100%) !important;
  color: var(--wine-800) !important;
  font-size: 10px !important;
  letter-spacing: 0.02em;
}

/* ─── South Indian Rasi Chart Grid ─── */
.si-chart-wrapper {
  padding: 4px 0;
}

.si-chart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 68px);
  border: 2px solid var(--wine-900);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.si-cell,
.si-center {
  border: 1px solid rgba(75, 16, 32, 0.2);
  padding: 5px 6px;
  overflow: hidden;
  font-size: 12px;
  transition: background 0.2s ease;
}

.si-cell span {
  display: block;
  color: var(--stone-500);
  font-size: 9px;
  font-weight: 900;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.si-cell strong {
  display: block;
  color: var(--wine-950);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.si-cell:hover {
  background: rgba(255, 248, 250, 0.8);
}

.si-cell-highlight {
  background: linear-gradient(135deg, #fff1e0 0%, #ffe8c7 100%);
  border-color: rgba(183, 133, 42, 0.3);
}

.si-cell-highlight span {
  color: var(--wine-800);
}

.si-cell-highlight strong {
  color: var(--wine-900);
}

.si-cell-lagnam {
  background: linear-gradient(135deg, #fff0f0 0%, #ffe4e4 100%);
  border-color: rgba(185, 28, 28, 0.35);
}

.si-cell-rasi {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.si-rasi-en {
  display: block;
  color: var(--stone-500);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.si-rasi-ta {
  font-size: 8px;
  color: var(--stone-400);
  font-style: italic;
}

.si-cell-planets {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  min-height: 18px;
}

.si-chart-type-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(183, 133, 42, 0.15);
  color: var(--wine-800);
  vertical-align: middle;
}

.si-center-lagnam {
  font-size: 9px;
  color: var(--wine-700);
  font-weight: 600;
  margin-top: 2px;
}

.nms-lagnam-cell {
  background: linear-gradient(135deg, #fff0f0 0%, #ffe4e4 100%) !important;
  border-color: rgba(185, 28, 28, 0.3) !important;
}

.si-center {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(135deg, #fffdf8 0%, #fff5e6 100%);
  color: var(--wine-950);
  border-color: rgba(75, 16, 32, 0.25);
}

.si-center strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--wine-950);
  line-height: 1.3;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.si-center span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  color: var(--stone-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Position mapping: Correct South Indian chart layout
   Top row L→R:    12(Meenam)  1(Mesham)    2(Rishabam)  3(Mithunam)
   Right col T→B:  4(Kadagam)  5(Simmam)
   Bottom row R→L: 6(Kanni)    7(Thulam)    8(Viruchigam) 9(Dhanusu)
   Left col B→T:   10(Makaram) 11(Kumbam)
*/
.si-chart-grid .pos-12 { grid-column: 1; grid-row: 1; }
.si-chart-grid .pos-1  { grid-column: 2; grid-row: 1; }
.si-chart-grid .pos-2  { grid-column: 3; grid-row: 1; }
.si-chart-grid .pos-3  { grid-column: 4; grid-row: 1; }
.si-chart-grid .pos-4  { grid-column: 4; grid-row: 2; }
.si-chart-grid .pos-5  { grid-column: 4; grid-row: 3; }
.si-chart-grid .pos-6  { grid-column: 4; grid-row: 4; }
.si-chart-grid .pos-7  { grid-column: 3; grid-row: 4; }
.si-chart-grid .pos-8  { grid-column: 2; grid-row: 4; }
.si-chart-grid .pos-9  { grid-column: 1; grid-row: 4; }
.si-chart-grid .pos-10 { grid-column: 1; grid-row: 3; }
.si-chart-grid .pos-11 { grid-column: 1; grid-row: 2; }

.si-chart-notes {
  margin: 12px 0 0;
  padding: 8px 12px;
  background: #fffbeb;
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-left: 3px solid #d97706;
  border-radius: 6px;
  color: #78350f;
  font-size: 12px;
  line-height: 1.5;
}

.si-chart-notes-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.si-chart-notes-body {
  font-weight: 600;
  color: #451a03;
  word-break: break-word;
}

.full-profile-details {
  position: static;
}

.profile-readonly-layout {
  align-items: start;
}

.profile-readonly-sidebar {
  display: grid;
  gap: 14px;
}

.profile-photo-frame {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: var(--ivory-50);
}

.profile-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-readonly-meta,
.profile-document-list {
  display: grid;
  gap: 10px;
}

.profile-readonly-meta div,
.profile-document-item {
  min-width: 0;
  border: 1px solid rgba(61, 32, 23, 0.08);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
}

.profile-readonly-meta span,
.profile-document-item span {
  display: block;
  color: var(--stone-500);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.profile-readonly-meta strong,
.profile-document-item strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--wine-950);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-document-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.profile-document-item > div {
  min-width: 0;
}

.profile-document-item svg {
  color: var(--wine-700);
}

.profile-document-item.is-empty {
  opacity: 0.72;
}

.profile-horoscope-preview {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(61, 32, 23, 0.08);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
}

.profile-horoscope-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-horoscope-preview-header strong {
  color: var(--wine-950);
  font-size: 13px;
  font-weight: 900;
}

.profile-horoscope-preview-header a,
.profile-horoscope-file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wine-700);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.profile-horoscope-preview-header svg,
.profile-horoscope-file-link svg {
  width: 14px;
  height: 14px;
}

.profile-horoscope-image-link {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: var(--ivory-50);
}

.profile-horoscope-image-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.profile-horoscope-chart-card {
  grid-column: 1 / -1;
}

.profile-horoscope-chart-meta {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-horoscope-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.profile-horoscope-cell {
  min-height: 104px;
  border: 1px solid rgba(61, 32, 23, 0.12);
  border-radius: 8px;
  background: #fffdf9;
  padding: 10px;
}

.profile-horoscope-cell span,
.profile-horoscope-cell small {
  display: block;
  color: var(--stone-500);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.profile-horoscope-cell strong {
  display: block;
  min-height: 36px;
  margin: 8px 0;
  color: var(--wine-950);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-readonly-activity {
  gap: 8px;
}

.profile-readonly-actions {
  display: grid;
  gap: 10px;
}

.profile-readonly-actions .primary-button,
.profile-readonly-actions .secondary-button {
  width: 100%;
  margin-top: 0;
}

.profile-readonly-form .form-card {
  box-shadow: var(--shadow-sm);
}

.profile-readonly-field input,
.profile-readonly-field textarea,
.profile-readonly-field select,
.profile-sibling-card input {
  background: #fffdf9;
  color: var(--stone-900);
  cursor: default;
}

.profile-readonly-field input::placeholder,
.profile-readonly-field textarea::placeholder,
.profile-sibling-card input::placeholder {
  color: var(--stone-500);
  opacity: 0.72;
}

.profile-readonly-two-col,
.profile-readonly-address-block {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
}

.profile-readonly-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-readonly-address-block .family-fields-grid {
  margin-top: 0;
}

.profile-readonly-property-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-readonly-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-readonly-empty {
  border: 1px dashed rgba(135, 36, 59, 0.22);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 800;
  padding: 14px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.route-card {
  min-height: 156px;
  padding: 18px;
}

.route-card h3 {
  margin: 0;
  color: var(--wine-950);
  font-size: 17px;
}

.route-card p {
  margin: 10px 0 16px;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.badge.gold {
  background: var(--gold-100);
  color: #7c531c;
}

.badge.green {
  background: var(--green-100);
  color: var(--green-700);
}

.badge.red {
  background: var(--red-100);
  color: var(--red-700);
}

.badge.blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--stone-200);
  padding: 14px 12px;
  text-align: left;
}

th {
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  color: var(--stone-700);
  font-size: 13px;
  font-weight: 700;
}

.upload-layout,
.verification-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}

.single-upload-layout {
  display: grid;
  max-width: 980px;
  margin: 0 auto;
}

.form-section-break {
  display: grid;
  grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
  align-items: center;
  gap: 12px;
  margin: 8px 0 2px;
  color: var(--wine-900);
}

.form-section-break span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(135, 36, 59, 0.28), transparent);
}

.form-section-break strong {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.drop-zone {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px dashed rgba(135, 36, 59, 0.36);
  border-radius: 8px;
  background: #fffaf4;
  padding: 24px;
  text-align: center;
}

.drop-zone strong {
  display: block;
  color: var(--wine-950);
  font-size: 18px;
}

.drop-zone span {
  display: block;
  margin-top: 8px;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.upload-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.upload-file-field {
  position: relative;
  min-width: 0;
}

.upload-file-card {
  display: grid;
  min-height: 96px;
  align-content: center;
  gap: 6px;
  border: 1px dashed rgba(135, 36, 59, 0.32);
  border-radius: 8px;
  background: #fffaf4;
  color: var(--stone-700);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.upload-file-card:hover {
  border-color: rgba(135, 36, 59, 0.5);
  background: var(--rose-100);
}

.upload-file-card strong {
  color: var(--wine-950);
  font-size: 14px;
}

.upload-file-card span,
.upload-file-card small {
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.upload-file-card small {
  display: block;
  overflow: hidden;
  color: var(--blue-700);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-remove-button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(135, 36, 59, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--stone-500);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.upload-file-field:hover .attachment-remove-button,
.attachment-remove-button:focus-visible {
  opacity: 1;
}

.attachment-remove-button:hover {
  border-color: rgba(135, 36, 59, 0.36);
  background: var(--rose-100);
  color: var(--wine-700);
}

.supporting-documents-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid rgba(61, 32, 23, 0.08);
  border-radius: 8px;
  background: #fffdf9;
  padding: 12px;
}

.supporting-documents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.supporting-documents-header strong {
  color: var(--wine-950);
  font-size: 13px;
  font-weight: 900;
}

.supporting-documents-header span {
  display: block;
  margin-top: 2px;
  color: var(--stone-500);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.supporting-upload-grid .upload-file-card {
  min-height: 88px;
  padding-right: 42px;
}

.upload-asset-preview {
  display: grid;
  gap: 8px;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
  padding: 10px;
}

.upload-preview-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.upload-preview-row.has-media {
  align-items: start;
}

.upload-preview-row strong {
  color: var(--wine-950);
}

.upload-preview-copy {
  min-width: 0;
}

.upload-preview-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview-copy small,
.upload-preview-row > small {
  display: block;
  color: var(--green-700);
}

.upload-preview-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--wine-700);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.upload-preview-open svg {
  width: 14px;
  height: 14px;
}

.upload-preview-thumb {
  display: grid;
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: var(--ivory-50);
}

.upload-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* ══════════════════════════════════════════════════════════════════
   Candidate Photo Card & Cropper (Upload Page)
   ══════════════════════════════════════════════════════════════════ */
.upload-photo-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, #fffdfb 0%, #fff7f2 100%);
  border: 1px solid rgba(183, 133, 42, 0.22);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 14px;
  box-shadow: 0 2px 8px rgba(75, 16, 32, 0.04);
}

.upload-photo-frame {
  width: 100px;
  height: 125px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 2px dashed rgba(183, 133, 42, 0.35);
  background: var(--ivory-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: all 0.2s ease;
}

.upload-photo-frame.has-photo {
  border: 2px solid var(--wine-700);
  box-shadow: 0 3px 10px rgba(75, 16, 32, 0.12);
}

.upload-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--stone-400);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 8px;
}

.upload-photo-placeholder svg {
  stroke: var(--stone-400);
}

.upload-photo-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upload-photo-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.upload-photo-meta-header strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--wine-950);
}

.upload-photo-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--stone-100);
  color: var(--stone-600);
}

.upload-photo-badge.attached {
  background: #def7ec;
  color: #03543f;
  border: 1px solid #bcf0da;
}

.upload-photo-badge.pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.upload-photo-note {
  font-size: 11px;
  color: var(--stone-500);
  line-height: 1.35;
}

.upload-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.photo-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid var(--stone-200);
  background: var(--white);
  color: var(--wine-900);
  text-decoration: none;
}

.photo-action-btn:hover {
  border-color: var(--wine-700);
  background: var(--rose-50);
  color: var(--wine-950);
}

.photo-action-btn.primary {
  background: var(--wine-800);
  color: var(--white);
  border-color: var(--wine-900);
}

.photo-action-btn.primary:hover {
  background: var(--wine-900);
}

.photo-action-btn.crop-action {
  background: linear-gradient(135deg, #fff7eb 0%, #ffedd5 100%);
  border-color: rgba(183, 133, 42, 0.4);
  color: #9a3412;
}

.photo-action-btn.crop-action:hover {
  background: #fed7aa;
  border-color: #f97316;
}

.photo-action-btn.text-red {
  color: #b91c1c;
  border-color: #fecaca;
}

.photo-action-btn.text-red:hover {
  background: #fef2f2;
}

/* Mini avatar in form header */
.upload-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--wine-700);
  overflow: hidden;
  background: var(--stone-100);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.upload-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ══════════════════════════════════════════════════════════════════
   Birth Chart Section in Upload Form (ராசி கட்டம்)
   ══════════════════════════════════════════════════════════════════ */
.upload-chart-card {
  border: 1px solid rgba(183, 133, 42, 0.28);
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdfc 0%, #ffffff 100%);
  box-shadow: 0 2px 10px rgba(75, 16, 32, 0.04);
  overflow: hidden;
  grid-column: 1 / -1;
  margin-top: 14px;
}

.upload-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fff8f4 0%, #fff2e9 100%);
  border-bottom: 1px solid rgba(183, 133, 42, 0.18);
}

.upload-chart-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-chart-title-wrap svg {
  color: var(--wine-800);
}

.upload-chart-title-wrap h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--wine-950);
}

.upload-chart-title-wrap p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--stone-500);
}

.upload-chart-body {
  padding: 16px 18px;
}

.upload-si-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 76px);
  border: 2px solid var(--wine-900);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(75, 16, 32, 0.06);
}

.upload-si-cell {
  border: 1px solid rgba(75, 16, 32, 0.22);
  padding: 6px 7px;
  overflow: hidden;
  font-size: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.upload-si-cell:hover {
  background: #fff8f8;
  border-color: var(--wine-700);
  box-shadow: inset 0 0 0 1px var(--wine-700);
}

.upload-si-cell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1;
}

.upload-si-cell-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--stone-500);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.upload-si-cell-tamil {
  font-size: 9px;
  color: var(--stone-400);
  font-weight: 700;
}

.upload-si-cell-planets {
  /* One line, comma separated, wrapping only when it must. Stacking one graha per line
     overflowed a cell holding three or more and clipped the last one out of sight. */
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 1px 2px;
  margin-top: 2px;
  min-height: 22px;
}

.planet-chip-sep {
  font-size: 10px;
  font-weight: 700;
  color: var(--stone-400);
  margin-right: 1px;
}

/* Lagnam marker: a stroke closing off the TOP-RIGHT corner of the house, the way a
   printed chart marks the Ascendant. Confined to that corner on purpose — spanning the
   full cell width drew the line straight through the rasi name on the left. */
.upload-si-asc {
  position: absolute;
  top: 0;
  right: 0;
  width: 55px;
  max-width: 68%;
  height: 25px;
  pointer-events: none;
  /* Bands in a linear-gradient run perpendicular to its axis, so an up-right axis
     yields the diagonal that closes this corner. The faint fill on the far side of the
     line shades the wedge, making the marker read as a shape rather than a stray rule. */
  background:
    linear-gradient(to top right,
      transparent calc(50% - 0.6px),
      #b91c1c calc(50% - 0.6px),
      #b91c1c calc(50% + 0.6px),
      rgba(185, 28, 28, 0.09) calc(50% + 0.6px));
}

.upload-si-asc-label {
  position: absolute;
  top: 1px;
  right: 3px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #b91c1c;
  text-transform: uppercase;
  line-height: 1;
}

.upload-si-cell.has-asc-mark {
  position: relative;
}

/* Retrograde grahas keep the graha colour and add a quiet inline tag, so a scan of
   the chart still reads as grahas first and annotations second. */
.planet-chip.is-vagram {
  gap: 3px;
  border-style: dashed;
}

.planet-vagram-tag {
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
  opacity: 0.75;
  letter-spacing: 0;
}

/* A graha supplied by a recovery pass rather than read off the chart. Dashed outline plus a
   trailing asterisk: the placement is usable but unconfirmed, and the chart carries a
   matching warning so a 9/9 chart assembled with help never looks cleanly verified. */
.planet-chip.is-recovered {
  border-style: dashed;
  border-width: 1.5px;
}

.planet-recovered-tag {
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  opacity: 0.9;
  margin-left: 1px;
}

/* Maandi is a house marker rather than one of the nine grahas, so it is deliberately NOT
   styled as a planet chip - bracketed and unfilled, so a glance at a cell counts only real
   grahas. Same reasoning as the bracketed vakram annotation above. */
.planet-marker {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.2px;
  padding: 1px 3px;
  border-radius: 4px;
  color: #6b5b3e;
  background: transparent;
  border: 1px dashed rgba(107, 91, 62, 0.45);
  white-space: nowrap;
}

.planet-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  background: #fdf2e9;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

/* ── Text-field extraction trace (Office Notes section) ───────────────────── */
.field-trace-wrap { margin-top: 4px; }

.field-trace {
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  background: #fcfcfb;
  overflow: hidden;
}
.field-trace > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #44403c;
  list-style: none;
}
.field-trace > summary::-webkit-details-marker { display: none; }
.field-trace > summary::before {
  content: "▸";
  margin-right: 6px;
  color: #a8a29e;
  font-size: 10px;
}
.field-trace[open] > summary::before { content: "▾"; }
.field-trace[open] > summary { border-bottom: 1px solid #e7e5e4; }

.field-trace-badge {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f5f5f4;
  color: #57534e;
  border: 1px solid #e7e5e4;
  white-space: nowrap;
}
.field-trace-badge.ai   { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.field-trace-badge.warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.field-trace-badge.bad  { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.field-trace-body { padding: 12px 14px 14px; }
.field-trace-section + .field-trace-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e7e5e4;
}
.field-trace-section h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #78716c;
}

.field-trace-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.field-trace-chip {
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.field-trace-steps {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 11px;
  color: #57534e;
  line-height: 1.6;
}

.field-trace-errors {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  font-size: 11px;
  color: #b91c1c;
}
.field-trace-errors ul { margin: 4px 0 0; padding-left: 18px; }

.field-trace-path { display: grid; gap: 6px; }
.field-trace-step {
  padding: 7px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e7e5e4;
}
.field-trace-stage { font-size: 11px; font-weight: 700; color: #292524; }
.field-trace-step code {
  display: block;
  margin: 3px 0;
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #4338ca;
  word-break: break-word;
}
.field-trace-detail { font-size: 10.5px; color: #78716c; line-height: 1.5; }

.field-trace-notice {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: #57534e;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.field-trace-notice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  background: #fef3c7;
  padding: 1px 4px;
  border-radius: 3px;
}

/* ── Extraction provenance panel ──────────────────────────────────────────
   Shows the admin which engine produced each chart value. Labels are in
   English deliberately: this is an audit surface, not an end-user surface. */
.extraction-provenance {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--stone-200, #e7e5e4);
  border-radius: 10px;
  background: #fcfcfb;
}
.extraction-provenance[hidden] { display: none; }

.extraction-provenance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.extraction-provenance-header strong {
  font-size: 13px;
  letter-spacing: 0.01em;
  /* Pushes the badge and copy button to the right, title stays left-aligned. */
  margin-right: auto;
}

/* Developer diagnostics export. Deliberately low-contrast so it does not compete
   with the admin's normal workflow controls. */
.provenance-copy-btn {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 6px;
  background: #fff;
  color: #57534e;
  border: 1px solid #d6d3d1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.provenance-copy-btn:hover { background: #f5f5f4; color: #1c1917; }
.provenance-copy-btn.copy-ok {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.provenance-engine-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f5f5f4;
  color: #57534e;
  border: 1px solid #e7e5e4;
  white-space: nowrap;
}
.provenance-engine-badge.ai   { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.provenance-engine-badge.warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.provenance-engine-badge.bad  { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.provenance-stack {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}
.provenance-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 10px;
  font-size: 11.5px;
  line-height: 1.5;
}
.provenance-key { color: #78716c; font-weight: 600; }
.provenance-value { color: #292524; word-break: break-word; }

.provenance-cells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
.provenance-cell {
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}
.provenance-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}
.provenance-cell-rasi { font-size: 11px; font-weight: 700; color: #44403c; }
.provenance-cell-final { font-size: 12px; font-weight: 800; color: #1c1917; margin-bottom: 5px; }
.provenance-cell-reads {
  display: grid;
  gap: 2px;
  font-size: 10.5px;
  color: #78716c;
}

.provenance-chip {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.provenance-chip.ok    { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.provenance-chip.ai    { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }
.provenance-chip.warn  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.provenance-chip.bad   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.provenance-chip.muted { background: #f5f5f4; color: #78716c; border: 1px solid #e7e5e4; }

.provenance-empty { font-size: 11.5px; color: #a8a29e; font-style: italic; }

/* Neutral "needs a look" marker shown beside resolved planets when the OCR text
   could not be fully read. The unreadable text itself lives in the tooltip, so the
   chart body stays in one language. */
.planet-review-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  margin-left: 2px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 900;
  cursor: help;
  background: #fffbeb;
  color: #92400e;
  border: 1px dashed #fbbf24;
}

/* Raw OCR text that matched no known graha. Deliberately alarming so a
   verifier never mistakes OCR noise for a real planet placement. */
.planet-tag.planet-unrecognised {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px dashed #f87171;
  font-style: italic;
  font-weight: 700;
}

/* New planet-chip: used for canonical planet codes */
.planet-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: default;
  white-space: nowrap;
}
.planet-chip.planet-sun     { background: #fef9c3; color: #92400e; border-color: #fde047; }
.planet-chip.planet-moon    { background: #ede9fe; color: #4c1d95; border-color: #c4b5fd; }
.planet-chip.planet-mars    { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.planet-chip.planet-mercury { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.planet-chip.planet-jupiter { background: #e0f2fe; color: #0c4a6e; border-color: #7dd3fc; }
.planet-chip.planet-venus   { background: #fce7f3; color: #9d174d; border-color: #f9a8d4; }
.planet-chip.planet-saturn  { background: #f3f4f6; color: #1f2937; border-color: #9ca3af; }
.planet-chip.planet-rahu    { background: #1e293b; color: #cbd5e1; border-color: #475569; }
.planet-chip.planet-ketu    { background: #4a1d96; color: #ede9fe; border-color: #7c3aed; }
.planet-chip.planet-mandi   { background: #f1f5f9; color: #334155; border-color: #94a3b8; }
.planet-chip.planet-lag     { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); color: #fff; border-color: #dc2626; font-size: 11px; }

.planet-raw-text {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  border: 1px dashed rgba(135, 36, 59, 0.32);
  border-radius: 5px;
  background: #fff7ed;
  color: var(--wine-900);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
  padding: 2px 5px;
}

/* Legacy planet-tag variants (keep for compatibility) */
.planet-tag.planet-lag {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
  font-weight: 900;
}
.planet-tag.planet-moon {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #ddd6fe;
}
.planet-tag.planet-sun {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}
.planet-tag.planet-jupiter {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.upload-si-cell-empty {
  font-size: 10px;
  color: var(--stone-300);
  font-style: italic;
}

.upload-si-cell-edit-hint {
  position: absolute;
  top: 4px;
  right: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
  font-size: 9px;
  color: var(--wine-700);
}

.upload-si-cell:hover .upload-si-cell-edit-hint {
  opacity: 1;
}

.upload-si-cell.is-birth-rasi {
  background: linear-gradient(135deg, #fff3e0 0%, #ffebd0 100%);
  border-color: rgba(183, 133, 42, 0.5);
  box-shadow: inset 0 0 0 1px rgba(183, 133, 42, 0.4);
}

.upload-si-cell.is-birth-rasi .upload-si-cell-label {
  color: var(--wine-900);
  font-weight: 900;
}

.upload-si-cell.is-lagnam {
  border-color: rgba(185, 28, 28, 0.5);
}

.chart-debug-panel {
  margin-top: 12px;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  font-size: 12px;
  color: #334155;
}

.chart-debug-panel summary {
  cursor: pointer;
  font-weight: 700;
}

.chart-debug-panel p {
  margin: 8px 0;
}

.chart-debug-rows {
  max-height: 420px;
  overflow-y: auto;
}

.chart-debug-cell {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #e2e8f0;
}

.chart-debug-cell img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid #cbd5e1;
}

.chart-debug-cell div {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.chart-debug-cell small {
  color: #64748b;
}

.upload-si-center {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #fffdf8 0%, #fff7ec 100%);
  color: var(--wine-950);
  border: 1px solid rgba(75, 16, 32, 0.25);
  padding: 8px;
}

.upload-si-center strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--wine-950);
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-si-center .chart-type-pill {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(183, 133, 42, 0.15);
  color: var(--wine-900);
}

.upload-si-center .chart-astro-info {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--stone-600);
}

/* Position mapping for upload grid — same as si-chart-grid */
.upload-si-grid .pos-12 { grid-column: 1; grid-row: 1; }
.upload-si-grid .pos-1  { grid-column: 2; grid-row: 1; }
.upload-si-grid .pos-2  { grid-column: 3; grid-row: 1; }
.upload-si-grid .pos-3  { grid-column: 4; grid-row: 1; }
.upload-si-grid .pos-4  { grid-column: 4; grid-row: 2; }
.upload-si-grid .pos-5  { grid-column: 4; grid-row: 3; }
.upload-si-grid .pos-6  { grid-column: 4; grid-row: 4; }
.upload-si-grid .pos-7  { grid-column: 3; grid-row: 4; }
.upload-si-grid .pos-8  { grid-column: 2; grid-row: 4; }
.upload-si-grid .pos-9  { grid-column: 1; grid-row: 4; }
.upload-si-grid .pos-10 { grid-column: 1; grid-row: 3; }
.upload-si-grid .pos-11 { grid-column: 1; grid-row: 2; }

/* NMS chart grid pos rules — same correct layout */
.nms-chart-grid .pos-12 { grid-column: 1; grid-row: 1; }
.nms-chart-grid .pos-1  { grid-column: 2; grid-row: 1; }
.nms-chart-grid .pos-2  { grid-column: 3; grid-row: 1; }
.nms-chart-grid .pos-3  { grid-column: 4; grid-row: 1; }
.nms-chart-grid .pos-4  { grid-column: 4; grid-row: 2; }
.nms-chart-grid .pos-5  { grid-column: 4; grid-row: 3; }
.nms-chart-grid .pos-6  { grid-column: 4; grid-row: 4; }
.nms-chart-grid .pos-7  { grid-column: 3; grid-row: 4; }
.nms-chart-grid .pos-8  { grid-column: 2; grid-row: 4; }
.nms-chart-grid .pos-9  { grid-column: 1; grid-row: 4; }
.nms-chart-grid .pos-10 { grid-column: 1; grid-row: 3; }
.nms-chart-grid .pos-11 { grid-column: 1; grid-row: 2; }

/* ── Amsa (Navamsam) Kattam styles ────────────────────────────── */
.chart-pair-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 860px) {
  .chart-pair-wrapper { grid-template-columns: 1fr; }
}

.amsa-chart-card {
  background: linear-gradient(135deg, #f0f4ff 0%, #eaf0ff 100%);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  overflow: hidden;
}

.amsa-chart-card .upload-chart-header {
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
}

.amsa-chart-card .upload-chart-title-wrap h3 {
  color: #fff;
}

.amsa-chart-card .upload-chart-title-wrap p {
  color: rgba(255,255,255,0.8);
}

.amsa-chart-card .upload-si-grid {
  border-color: rgba(99, 102, 241, 0.4);
}

.amsa-chart-card .upload-si-cell {
  background: #fafafe;
  border-color: rgba(99, 102, 241, 0.18);
}

.amsa-chart-card .upload-si-cell:hover {
  background: #f0f0ff;
  border-color: rgba(99, 102, 241, 0.45);
}

.amsa-chart-card .upload-si-center {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border-color: rgba(99, 102, 241, 0.3);
}

.amsa-chart-card .chart-type-pill {
  background: rgba(99, 102, 241, 0.15);
  color: #3730a3;
}

.upload-chart-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .upload-chart-cards-row { grid-template-columns: 1fr; }
}

/* ── Horoscope Chart Notes / Dasa Balance in Upload Form ─────────── */
.upload-chart-notes-section {
  margin-top: 10px;
  background: #fffdfa;
  border: 1px solid rgba(183, 133, 42, 0.28);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.upload-chart-notes-section:focus-within {
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.12);
}

.upload-chart-notes-section.has-notes {
  background: #fffbeb;
  border-color: rgba(217, 119, 6, 0.45);
}

.upload-chart-notes-section.amsa-notes-section {
  border-color: rgba(99, 102, 241, 0.25);
  background: #fcfcff;
}

.upload-chart-notes-section.amsa-notes-section:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.upload-chart-notes-section.amsa-notes-section.has-notes {
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.4);
}

.chart-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chart-notes-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.amsa-notes-section .chart-notes-title {
  color: #4338ca;
}

.chart-notes-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.chart-notes-badge.present {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.chart-notes-badge.empty {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
}

/* Staff review: dasa note values that cannot be right (app.js renderUploadNoteWarnings). */
.chart-notes-warnings {
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid #f5d08a;
  border-left: 4px solid #d97706;
  border-radius: 8px;
  background: #fffbeb;
  color: #78350f;
  font-size: 13px;
  line-height: 1.45;
}
.chart-notes-warnings ul { margin: 4px 0 0; padding-left: 18px; }
.chart-notes-warnings[hidden] { display: none; }

.chart-notes-textarea {
  width: 100%;
  border: 1px solid rgba(183, 133, 42, 0.15);
  border-radius: 5px;
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  color: #1f2937;
  resize: vertical;
  min-height: 44px;
  padding: 6px 8px;
  transition: background 0.15s, border-color 0.15s;
  box-sizing: border-box;
}

.chart-notes-textarea:hover {
  border-color: #d97706;
}

.chart-notes-textarea:focus {
  outline: none;
  background: #fff;
  border-color: #d97706;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.amsa-notes-section .chart-notes-textarea {
  border-color: rgba(99, 102, 241, 0.15);
}

.amsa-notes-section .chart-notes-textarea:hover,
.amsa-notes-section .chart-notes-textarea:focus {
  border-color: #6366f1;
}

.chart-notes-textarea::placeholder {
  color: #9ca3af;
  font-style: italic;
  font-size: 11.5px;
}

.upload-chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--stone-500);
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.rasi-dot { background: #f59e0b; }
.legend-dot.lag-dot { background: #ef4444; }

/* ══════════════════════════════════════════════════════════════════
   Photo Cropper Modal
   ══════════════════════════════════════════════════════════════════ */
.cropper-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 6, 9, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cropper-modal {
  background: var(--white);
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--stone-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cropper-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--stone-200);
  background: var(--ivory-50);
}

.cropper-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--wine-950);
}

.cropper-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  max-height: 70vh;
  overflow-y: auto;
}

.cropper-preview-container {
  max-width: 100%;
  position: relative;
  border: 1px solid var(--stone-300);
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  display: flex;
  justify-content: center;
}

.cropper-canvas {
  max-width: 100%;
  max-height: 380px;
  display: block;
}

.cropper-presets {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.cropper-preset-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 6px;
  border: 1px solid var(--stone-300);
  background: var(--white);
  color: var(--stone-700);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cropper-preset-btn.active,
.cropper-preset-btn:hover {
  background: var(--wine-800);
  color: var(--white);
  border-color: var(--wine-900);
}

.cropper-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--stone-200);
  background: var(--ivory-50);
}

.doc-preview {
  display: grid;
  min-height: 300px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(75, 16, 32, 0.82), rgba(183, 133, 42, 0.54)),
    url("./assets/login-wedding-detail.png") center / cover no-repeat;
  color: var(--white);
  padding: 24px;
  text-align: center;
}

.doc-preview strong {
  display: block;
  font-size: 22px;
}

.doc-preview span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.queue-list {
  display: grid;
  max-height: 290px;
  gap: 10px;
  margin-bottom: 16px;
  overflow: auto;
  padding-right: 4px;
}

.queue-card {
  display: grid;
  width: 100%;
  gap: 6px;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--stone-700);
  padding: 12px;
  text-align: left;
}

.queue-card.active,
.queue-card:hover {
  border-color: rgba(135, 36, 59, 0.28);
  background: var(--rose-100);
}

.queue-card strong {
  color: var(--wine-950);
  font-size: 14px;
}

.queue-card span:not(.badge) {
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

/* ── Verification Tabbed UI ── */
.vfy-left {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 16px;
  align-self: start;
  max-height: calc(100vh - 32px);
}
.vfy-left .queue-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  align-content: start;
}
.vfy-main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

/* Hero Card */
.vfy-hero {
  overflow: hidden;
  border: 1px solid #dfd2c9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px -28px rgba(44, 7, 18, 0.5);
}
.vfy-hero-cover {
  height: 56px;
  background: linear-gradient(135deg, #68182b 0%, #87243b 40%, #d09a39 100%);
}
.vfy-hero-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px 16px;
  margin-top: -28px;
}
.vfy-hero-avatar-wrap { flex-shrink: 0; }
.vfy-hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: 0 4px 14px -6px rgba(44, 7, 18, 0.4);
  background: #f3ece7;
}
.vfy-hero-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vfy-hero-avatar-placeholder svg {
  width: 32px;
  height: 32px;
  color: #87243b;
}
.vfy-hero-copy {
  flex: 1;
  min-width: 0;
  padding-top: 28px;
}
.vfy-hero-eyebrow {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #87243b;
}
.vfy-hero-copy h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 850;
  color: #2c0712;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vfy-hero-copy p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #8a807a;
  font-weight: 600;
}
.vfy-hero-status {
  flex-shrink: 0;
  text-align: right;
  padding-top: 28px;
}
.vfy-hero-id {
  display: block;
  margin-top: 4px;
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  color: #87243b;
}

/* Tab Layout (matches portal-profile-workspace) */
.vfy-tab-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

/* Tab Nav (matches portal-profile-nav) */
.vfy-tab-nav {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 3px;
  padding: 6px;
  border: 1px solid #dfd2c9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px -26px rgba(44, 7, 18, 0.55);
}
.vfy-tab-nav-item {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #6e625d;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}
.vfy-tab-nav-item:hover {
  background: #faf5f0;
  color: #68182b;
  transform: translateX(2px);
}
.vfy-tab-nav-item.active {
  border-left-color: #d09a39;
  background: #68182b;
  color: #fff;
  box-shadow: 0 7px 16px -12px rgba(104, 24, 43, 0.9);
}

/* Tab Nav Icon */
.vfy-tab-nav-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 5px;
  background: #f3ece7;
  color: #87243b;
}
.vfy-tab-nav-item.active .vfy-tab-nav-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff3d8;
}
.vfy-tab-nav-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vfy-tab-nav-label { min-width: 0; flex: 1; }

/* Tab Nav State Indicator */
.vfy-tab-nav-state {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border: 1px solid #e2d8d1;
  border-radius: 50%;
  background: #f7f2ee;
  font-size: 9px;
  font-weight: 850;
  color: #6e625d;
}
.vfy-tab-nav-state.is-ok {
  border-color: #b8dfca;
  background: #edf9f2;
  color: #237653;
}
.vfy-tab-nav-state.is-missing {
  border-color: #efc4bd;
  background: #fff0ee;
  color: #a43732;
}
.vfy-tab-nav-state.is-pending {
  border-color: #dfc992;
  background: #fff9e9;
  color: #9a6b15;
  font-size: 15px;
  line-height: 1;
}
.vfy-tab-nav-state.is-partial {
  border-color: #dfd2c9;
  background: #fffcf3;
  color: #b7852a;
}
.vfy-tab-nav-item.active .vfy-tab-nav-state {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Verification levels */
.vfy-levels {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #dfd2c9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px -24px rgba(44, 7, 18, 0.55);
}
.vfy-levels-heading,
.vfy-level-row,
.vfy-level-title {
  display: flex;
  align-items: center;
}
.vfy-levels-heading {
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 9px;
  border-bottom: 1px solid #eee5df;
}
.vfy-levels-heading > div {
  display: grid;
  gap: 1px;
}
.vfy-levels-heading span {
  color: #87243b;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.vfy-levels-heading strong {
  color: #2c0712;
  font-size: 13px;
}
.vfy-levels-heading small {
  color: #8a807a;
  font-size: 10px;
}
.vfy-level-row {
  gap: 11px;
  padding: 10px 2px 0;
}
.vfy-level-index {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid #e3c77c;
  border-radius: 6px;
  background: #fff7df;
  color: #8a5c0b;
  font-size: 12px;
  font-weight: 850;
}
.vfy-level-row.is-verified .vfy-level-index {
  border-color: #a8d9bf;
  background: #edf9f2;
  color: #237653;
}
.vfy-level-copy {
  min-width: 0;
  flex: 1;
}
.vfy-level-title {
  flex-wrap: wrap;
  gap: 7px;
}
.vfy-level-title strong {
  color: #2c0712;
  font-size: 12px;
}
.vfy-level-title span {
  padding: 2px 6px;
  border: 1px solid #e3c77c;
  border-radius: 4px;
  background: #fff9e9;
  color: #8a5c0b;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.vfy-level-row.is-verified .vfy-level-title span {
  border-color: #a8d9bf;
  background: #edf9f2;
  color: #237653;
}
.vfy-level-copy p,
.vfy-level-copy small {
  display: block;
  margin: 2px 0 0;
}
.vfy-level-copy p {
  color: #4d423d;
  font-size: 12px;
  font-weight: 750;
}
.vfy-level-copy small {
  overflow: hidden;
  color: #8a807a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Detail Panel */
.vfy-tab-detail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 260px);
  border: 1px solid #dfd2c9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px -30px rgba(44, 7, 18, 0.55);
  overflow: hidden;
}
.vfy-tab-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #eadfd8;
  background: #fffdfb;
}
.vfy-tab-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
/* Confirm Details are True - Header Tick Mark */
.vfy-confirm-tick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.18s ease-in-out;
  user-select: none;
}
.vfy-confirm-tick-btn.is-unconfirmed {
  background: #fff;
  border: 1.5px solid #dcd3cb;
  color: #5a4f48;
  box-shadow: 0 1px 3px rgba(44, 7, 18, 0.04);
}
.vfy-confirm-tick-btn.is-unconfirmed:hover {
  background: #fdfaf7;
  border-color: #059669;
  color: #065f46;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px -2px rgba(5, 150, 105, 0.2);
}
.vfy-confirm-tick-btn.is-unconfirmed .vfy-tick-check-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1.5px solid #b5a89e;
  border-radius: 4px;
  background: #fff;
  transition: all 0.15s ease-in-out;
}
.vfy-confirm-tick-btn.is-unconfirmed:hover .vfy-tick-check-box {
  border-color: #059669;
}
.vfy-confirm-tick-btn.is-unconfirmed .vfy-tick-check-box svg {
  display: none;
}
.vfy-confirm-tick-btn.is-confirmed {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
  box-shadow: 0 1px 4px rgba(6, 95, 70, 0.12);
}
.vfy-confirm-tick-btn.is-confirmed:hover {
  background: #d1fae5;
  border-color: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(6, 95, 70, 0.18);
}
.vfy-confirm-tick-btn.is-confirmed .vfy-tick-check-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background: #059669;
  border: 1.5px solid #059669;
  color: #fff;
}
.vfy-confirm-tick-btn.is-confirmed .vfy-tick-check-box svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
}
.vfy-tab-heading > div:first-child { min-width: 0; }
.vfy-tab-kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #87243b;
}
.vfy-tab-heading h3 {
  margin: 4px 0 2px;
  color: #2c0712;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
}
.vfy-tab-heading p {
  margin: 0;
  color: #8a807a;
  font-size: 12px;
}
.vfy-tab-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 20px;
  background: #faf8f5;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Fields Card */
.vfy-fields-card {
  border: 1px solid #e9e0d7;
  border-radius: 10px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 8px -4px rgba(44, 7, 18, 0.06);
}
.vfy-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.vfy-fields-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.vfy-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.vfy-form-field.is-full { grid-column: 1 / -1; }
.vfy-form-field label {
  font-size: 11px;
  font-weight: 750;
  color: #68182b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vfy-form-field input,
.vfy-form-field select,
.vfy-form-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #dfd2c9;
  border-radius: 8px;
  background: #fdfbf8;
  color: #2c0712;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.vfy-form-field textarea {
  min-height: 72px;
  resize: vertical;
}
.vfy-form-field input:focus,
.vfy-form-field select:focus,
.vfy-form-field textarea:focus {
  border-color: #87243b;
  box-shadow: 0 0 0 3px rgba(135, 36, 59, 0.08);
  background: #fff;
  outline: none;
}
.vfy-form-field.is-flagged input,
.vfy-form-field.is-flagged textarea {
  border-color: #d09a39;
  background: #fffcf3;
}

/* Frozen / Read-only Fields in Verification Review */
.vfy-form-field.is-frozen input,
.vfy-form-field.is-frozen select,
.vfy-form-field.is-frozen textarea,
.vfy-form-field input.is-frozen,
.vfy-form-field textarea.is-frozen {
  background: #fbf9f6 !important;
  color: #2c0712 !important;
  border: 1px solid #dfd4cb !important;
  cursor: default !important;
  user-select: text;
  font-weight: 700 !important;
  box-shadow: none !important;
  outline: none !important;
}
.vfy-form-field.is-frozen input:focus,
.vfy-form-field.is-frozen select:focus,
.vfy-form-field.is-frozen textarea:focus,
.vfy-form-field input.is-frozen:focus,
.vfy-form-field textarea.is-frozen:focus {
  border-color: #dfd4cb !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Cropped Birth Chart in Verification */
.vfy-birth-chart-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.vfy-chart-crop-card {
  border: 1px solid #dfd2c9;
  border-radius: 10px;
  background: #fff;
  padding: 16px 20px;
  box-shadow: 0 2px 8px -4px rgba(44, 7, 18, 0.08);
}
.vfy-chart-crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0e8e1;
}
.vfy-chart-crop-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5a1426;
  font-size: 13px;
  font-weight: 800;
}
.vfy-chart-crop-title svg {
  color: #87243b;
  flex-shrink: 0;
}
.vfy-chart-crop-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #faf8f5;
  border: 1px solid #e9e0d7;
  border-radius: 8px;
  padding: 18px;
  min-height: 260px;
}
.vfy-chart-crop-img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(44, 7, 18, 0.1);
  background: #fff;
}
.vfy-chart-crop-caption {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: #8a807a;
  text-align: center;
  font-weight: 600;
}

/* Uploaded Profile Document Viewer */
.vfy-uploaded-profile-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vfy-doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #fdfaf6;
  border: 1px solid #ebd9c8;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 10px;
}
.vfy-doc-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4a1525;
}
.vfy-doc-info svg {
  color: #87243b;
  flex-shrink: 0;
}
.vfy-doc-name {
  font-weight: 800;
  font-size: 13.5px;
  color: #2b1d1d;
}
.vfy-doc-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3e5d8;
  color: #732438;
  font-size: 11px;
  font-weight: 700;
}
.vfy-doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vfy-uploaded-viewer {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 680px;
  height: 75vh;
  max-height: 850px;
  background: #474a4d;
  border: 1px solid #d8c7ba;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(44, 7, 18, 0.08);
}
.vfy-pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #474a4d;
}
.vfy-source-image-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: auto;
  padding: 20px;
  height: 100%;
  background: #f6f3ee;
}
.vfy-source-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  background: #fff;
}
.vfy-digital-charts-card {
  border: 1px solid #dfd2c9;
  border-radius: 10px;
  background: #fff;
  padding: 16px 20px;
  box-shadow: 0 2px 8px -4px rgba(44, 7, 18, 0.08);
}

/* Admin Comment Box */
.vfy-admin-comment {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #e9e0d7;
}
.vfy-admin-comment-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #68182b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vfy-admin-comment-header svg {
  width: 15px;
  height: 15px;
  color: #87243b;
  flex-shrink: 0;
}
.vfy-admin-comment textarea {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid #e9e0d7;
  border-radius: 8px;
  background: #fefcf9;
  color: #2c0712;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.vfy-admin-comment textarea:focus {
  border-color: #87243b;
  box-shadow: 0 0 0 3px rgba(135, 36, 59, 0.08);
  outline: none;
}

/* Family Groups */
.vfy-family-group {
  padding: 14px 0;
  border-bottom: 1px solid #f0e8e1;
}
.vfy-family-group:first-child { padding-top: 0; }
.vfy-family-group:last-of-type { border-bottom: none; }
.vfy-family-group-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid rgba(135, 36, 59, 0.12);
  background: linear-gradient(135deg, #fff5f3 0%, #fde8e3 100%);
  color: #68182b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vfy-family-group-title svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Documents Showcase */
.vfy-docs-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.vfy-doc-card {
  border: 1px solid #e9e0d7;
  border-radius: 10px;
  background: #faf8f5;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.vfy-doc-card:hover {
  box-shadow: 0 8px 20px -8px rgba(44, 7, 18, 0.12);
  transform: translateY(-2px);
}
.vfy-doc-card-label {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  color: #68182b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #f0e8e1;
  background: #fffdfb;
}
.vfy-doc-card-preview {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fdfbf8;
}
.vfy-doc-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.vfy-doc-card-preview.is-pdf svg {
  width: 48px;
  height: 48px;
  color: #87243b;
}
.vfy-doc-card-action {
  display: block;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  color: #87243b;
  text-decoration: none;
  border-top: 1px solid #f0e8e1;
  background: #fffdfb;
  transition: background 0.15s;
}
.vfy-doc-card-action:hover { background: #faf5f0; }
.vfy-doc-empty-state {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: #8a807a;
  font-size: 13px;
  font-weight: 600;
}

/* Form Actions — sticky save bar */
.vfy-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-top: 1px solid #eadfd8;
  background: #fffdfb;
  flex-shrink: 0;
}
.vfy-form-actions .primary-button {
  margin: 0;
  min-height: 38px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 800;
}

/* Queue panel collapse */
.vfy-queue-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #dfd2c9;
  border-radius: 6px;
  background: #fff;
  color: #68182b;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, transform 0.2s;
  box-shadow: 0 2px 6px -3px rgba(44, 7, 18, 0.2);
}
.vfy-queue-collapse-btn:hover {
  background: #68182b;
  color: #fff;
}
.vfy-queue-collapse-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s;
}
.verification-layout.queue-collapsed {
  grid-template-columns: 36px 1fr;
}
.verification-layout.queue-collapsed .vfy-left .queue-list,
.verification-layout.queue-collapsed .vfy-left .panel-header p,
.verification-layout.queue-collapsed .vfy-left .panel-header h2 {
  display: none;
}
.verification-layout.queue-collapsed .panel-header {
  flex-direction: column;
  padding: 8px 6px;
  gap: 6px;
}
.verification-layout.queue-collapsed .vfy-queue-collapse-btn svg {
  transform: rotate(180deg);
}


.match-results,
.customer-list {
  display: grid;
  gap: 12px;
}

.match-results {
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.match-card,
.customer-card {
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: var(--white);
}

.match-card {
  padding: 14px;
}

.match-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.match-card h3 {
  margin: 0;
  color: var(--wine-950);
  font-size: 16px;
}

.match-card p {
  margin: 6px 0 0;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

.score-pill {
  display: inline-grid;
  min-width: 54px;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 14px;
  font-weight: 900;
}

.match-meta,
.reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.match-meta span,
.reason-list span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
}

.match-meta span {
  background: var(--ivory-100);
  color: var(--stone-700);
}

.reason-list span {
  background: var(--blue-100);
  color: var(--blue-700);
}

.customer-card {
  display: grid;
  width: 100%;
  gap: 7px;
  color: var(--stone-700);
  padding: 12px;
  text-align: left;
}

.customer-card.active,
.customer-card:hover {
  border-color: rgba(135, 36, 59, 0.28);
  background: var(--rose-100);
}

.customer-card strong {
  color: var(--wine-950);
  font-size: 14px;
}

.customer-card span:not(.badge) {
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

.report-grid {
  align-items: start;
}

.compact-table {
  min-width: 360px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full-span {
  grid-column: 1 / -1;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.action-row .primary-button,
.action-row .secondary-button {
  width: auto;
  margin-top: 0;
  padding: 0 18px;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px dashed var(--stone-300);
  border-radius: 8px;
  color: var(--stone-500);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1120px) {
  .metrics-grid,
  .page-grid,
  .upload-file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters-bar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .candidate-filters {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .candidate-filters .filter-search {
    grid-column: 1 / -1;
  }

  .candidate-filters .filter-type,
  .candidate-filters .filter-status,
  .candidate-filters .filter-actions {
    grid-column: span 4;
  }

  .candidate-filters .filter-group-grid,
  .candidate-filters .filter-group-grid.is-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid,
  .profile-search-start,
  .candidate-browser-layout,
  .upload-layout,
  .verification-layout {
    grid-template-columns: 1fr;
  }

  .vfy-left {
    position: static;
    max-height: none;
  }

  .vfy-left .queue-list {
    max-height: 290px;
  }

  .candidate-detail-panel {
    position: static;
    overflow: visible;
  }

  .candidate-detail-header {
    margin: -20px -20px 0;
  }

  .profile-search-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-panel {
    min-height: 100vh;
    padding: 24px;
  }

  .login-card {
    max-width: calc(100vw - 48px);
  }

  .login-visual {
    display: none;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.candidate-shell,
  .app-shell.candidate-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 10;
    width: min(310px, calc(100vw - 36px));
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .sidebar-collapse-button {
    top: 18px;
    right: 16px;
  }

  .sidebar-collapsed .sidebar {
    align-items: stretch;
    padding: 24px 18px;
  }

  .sidebar-collapsed .sidebar .brand-lockup {
    justify-content: flex-start;
    padding: 0 6px 22px;
  }

  .sidebar-collapsed .sidebar .brand-lockup > div:not(.brand-mark),
  .sidebar-collapsed .nav-section-title,
  .sidebar-collapsed .nav-link span:not(.nav-icon),
  .sidebar-collapsed .admin-chip div:not(.avatar) {
    display: block;
  }

  .sidebar-collapsed .sidebar-footer .secondary-button {
    display: inline-flex;
  }

  .sidebar-collapsed .nav-link {
    justify-content: flex-start;
    width: auto;
    padding: 0 12px;
  }

  .sidebar-collapsed .nav-list {
    justify-items: stretch;
  }

  .sidebar-collapsed .admin-chip {
    justify-content: flex-start;
    margin-bottom: 12px;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-md);
  }

  .mobile-menu {
    display: inline-flex;
  }

  .topbar {
    min-height: 66px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .page-heading h1 {
    font-size: 20px;
  }

  .topbar-actions .secondary-button {
    display: none;
  }

  .upload-topbar-actions {
    flex-basis: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .upload-topbar-actions .secondary-button {
    display: inline-flex;
  }

  .upload-process-indicator {
    min-width: min(100%, 260px);
  }
}

@media (max-width: 620px) {
  .metrics-grid,
  .page-grid,
  .quick-actions,
  .candidate-detail-grid,
  .form-grid,
  .filters-bar,
  .upload-file-grid,
  .upload-preview-row {
    grid-template-columns: 1fr;
  }

  .candidate-filters .filter-search,
  .candidate-filters .filter-type,
  .candidate-filters .filter-age,
  .candidate-filters .filter-rasi,
  .candidate-filters .filter-location,
  .candidate-filters .filter-marriage,
  .candidate-filters .filter-status,
  .candidate-filters .filter-open,
  .candidate-filters .filter-more,
  .candidate-filters .filter-actions {
    grid-column: 1 / -1;
  }

  .candidate-filters .filter-group {
    grid-template-columns: 1fr;
  }

  .candidate-filters .filter-group-grid,
  .candidate-filters .filter-group-grid.is-four {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .candidate-filters .filter-actions {
    justify-content: flex-start;
  }

  .login-card h2 {
    font-size: 28px;
  }

  .status-row {
    grid-template-columns: 1fr 48px;
  }

  .status-row .bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .candidate-row-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .candidate-row-main .badge {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .candidate-row-actions .secondary-button,
  .candidate-detail-actions .secondary-button,
  .candidate-detail-actions .primary-button {
    flex: 1 1 100%;
  }

  .profile-search-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-search-actions {
    grid-template-columns: 1fr;
  }

  .candidate-detail-header {
    margin: -20px -20px 0;
    padding: 18px 18px 14px;
  }

  .quick-search-button .qs-icon {
    display: none;
  }

  .upload-topbar-actions .primary-button,
  .upload-topbar-actions .secondary-button,
  .upload-process-indicator {
    flex: 1 1 100%;
  }

  .attachment-remove-button {
    opacity: 1;
  }
}

/* Beautiful Dynamic Sibling Sections Styling */
.sibling-section-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  margin: 1.8rem 0 1rem;
  gap: 12px;
}

.sibling-section-header .line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500) 0%, var(--wine-700) 50%, transparent 100%);
  border-radius: 2px;
}

.sibling-section-header .line.right {
  background: linear-gradient(270deg, var(--gold-500) 0%, var(--wine-700) 50%, transparent 100%);
}

.sibling-section-header .title {
  padding: 0 10px;
  font-weight: 700;
  color: var(--wine-900);
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sibling-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fffdfb 0%, #fefcf9 100%);
  border: 1px solid rgba(183, 133, 42, 0.2);
  border-left: 4px solid var(--wine-700);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(61, 32, 23, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sibling-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 32, 23, 0.06);
}

.sibling-card-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--wine-950);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sibling-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.sibling-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sibling-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--stone-700);
}

.sibling-field input, .sibling-field select {
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  background: var(--white);
  color: var(--stone-900);
  outline: none;
}

.sibling-field input:focus, .sibling-field select:focus {
  border-color: var(--wine-700);
  box-shadow: 0 0 0 2px rgba(135, 36, 59, 0.1);
}

.sibling-field.checkbox-field {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-bottom: 6px;
}

.sibling-field.checkbox-field label {
  cursor: pointer;
}

.sibling-field.checkbox-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--wine-700);
}

.sibling-card.needs-verification-card {
  border-left: 4px solid #c45519 !important;
  background: #fff9f0 !important;
}

.sibling-card.needs-verification-card label {
  color: #9b2f10;
}

.sibling-card.needs-verification-card input,
.sibling-card.needs-verification-card select {
  border-color: rgba(196, 85, 25, 0.45) !important;
  background: #fff4df !important;
  color: #7f2a09 !important;
}

.needs-verification-input {
  border-color: rgba(196, 85, 25, 0.6) !important;
  background: #fff4df !important;
  color: #7f2a09 !important;
  font-weight: 500 !important;
}

.upload-split-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 30px;
  width: 100%;
  margin: 0;
  align-items: start;
}

.upload-split-left {
  position: sticky;
  top: 22px;
}

.upload-control-panel {
  padding: 18px;
  background: linear-gradient(180deg, #fffefd 0%, #fff8ee 100%);
}

.upload-split-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.upload-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 14px;
}

.upload-progress-steps span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--stone-500);
  font-size: 11px;
  font-weight: 900;
}

.upload-progress-steps span.active {
  border-color: rgba(135, 36, 59, 0.28);
  background: var(--rose-100);
  color: var(--wine-800);
}

.upload-progress-steps span.done {
  border-color: rgba(35, 118, 83, 0.28);
  background: var(--green-100);
  color: var(--green-700);
}

.whatsapp-upload-zone {
  display: grid;
  min-height: 188px;
  place-items: center;
  border: 1.5px dashed rgba(135, 36, 59, 0.32);
  border-radius: 8px;
  background: var(--white);
  padding: 22px 18px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: inset 0 1px 10px rgba(61, 32, 23, 0.03);
}

.whatsapp-upload-zone:hover,
.whatsapp-upload-zone.dragover {
  border-color: var(--wine-700);
  background: #fff8fa;
  box-shadow: 0 8px 24px rgba(135, 36, 59, 0.08);
}

.whatsapp-upload-zone.dragover {
  border-style: solid;
}

.whatsapp-upload-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.whatsapp-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--rose-100);
  color: var(--wine-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-upload-zone:hover .whatsapp-icon-circle {
  transform: scale(1.08);
}

.whatsapp-upload-card .upload-title {
  color: var(--wine-950);
  font-size: 16px;
  font-weight: 800;
}

.whatsapp-upload-card .upload-subtitle {
  color: var(--stone-500);
  font-size: 13px;
  line-height: 1.4;
  max-width: 280px;
}

.whatsapp-upload-card .upload-limits {
  color: var(--stone-500);
  font-size: 11px;
  font-weight: 800;
}

.whatsapp-doc-preview {
  margin-top: 14px;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--stone-100);
  border-bottom: 1px solid var(--stone-200);
}

.preview-filename {
  font-size: 12px;
  font-weight: 700;
  color: var(--stone-700);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-actions {
  display: flex;
  gap: 6px;
}

.preview-btn {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--stone-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.preview-btn:hover {
  background: var(--stone-100);
  border-color: var(--stone-500);
}

.preview-btn.text-red:hover {
  background: var(--red-100);
  color: var(--red-700);
  border-color: var(--red-700);
}

.preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  max-height: 420px;
  background: #fbf9f6;
  overflow: auto;
  padding: 16px;
}

.preview-container img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(61, 32, 23, 0.08);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

.pdf-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--blue-700);
}

.pdf-placeholder span {
  font-weight: 700;
  font-size: 13px;
}

.upload-asset-preview {
  margin-top: 12px;
}

.upload-review-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid rgba(44, 91, 143, 0.16);
  border-radius: 8px;
  background: #f6faff;
  padding: 12px;
}

.review-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-panel-header strong {
  color: var(--wine-950);
  font-size: 14px;
}

.review-panel-header span {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 900;
}

.review-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(44, 91, 143, 0.12);
}

.review-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-700), var(--green-700));
  transition: width 180ms ease;
}

.review-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.review-stat-grid div {
  border: 1px solid rgba(44, 91, 143, 0.12);
  border-radius: 8px;
  background: var(--white);
  padding: 9px;
}

.review-stat-grid span {
  display: block;
  color: var(--wine-950);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.review-stat-grid small {
  display: block;
  margin-top: 6px;
  color: var(--stone-500);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.upload-review-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 2px 4px;
}

.upload-review-header .eyebrow {
  margin-bottom: 10px;
}

.upload-review-header h2 {
  margin: 0;
  color: var(--wine-950);
  font-size: 24px;
  line-height: 1.18;
}

.upload-review-header p {
  margin: 6px 0 0;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 800;
}

.upload-form-container {
  display: grid;
  gap: 16px;
  width: 100%;
}

.upload-parsed-review-banner {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(35, 118, 83, 0.24);
  border-radius: 8px;
  background: #f4fbf7;
  color: var(--green-700);
}

.upload-parsed-review-banner[hidden],
.upload-parsed-action-bar[hidden] {
  display: none;
}

.upload-parsed-review-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #dff4e8;
}

.upload-parsed-review-banner strong,
.upload-parsed-review-banner span {
  display: block;
}

.upload-parsed-review-banner strong {
  color: #164c38;
  font-size: 14px;
}

.upload-parsed-review-banner div > span {
  margin-top: 2px;
  color: #4f6f61;
  font-size: 12px;
}

.upload-parsed-review-status {
  padding: 5px 9px;
  border: 1px solid #e6c684;
  border-radius: 999px;
  background: #fff8df;
  color: #815b16;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 16px;
}

.form-card-title {
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 700;
  color: var(--wine-900);
  margin-top: 0;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--stone-100);
  padding-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-card-title svg {
  color: var(--gold-600);
}

.upload-section-edit-button {
  display: none;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stone-200);
  border-radius: 6px;
  background: var(--white);
  color: var(--wine-700);
  cursor: pointer;
}

.parsed-review-mode .upload-section-edit-button {
  display: inline-flex;
}

.upload-section-edit-button:hover,
.upload-section-edit-button:focus-visible,
.upload-section-edit-button.is-done {
  border-color: rgba(135, 36, 59, 0.42);
  background: var(--rose-100);
  color: var(--wine-900);
  outline: none;
}

.parsed-review-mode .upload-review-section {
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.parsed-review-mode .upload-review-section.is-editing {
  border-color: rgba(135, 36, 59, 0.38);
  box-shadow: 0 0 0 3px rgba(135, 36, 59, 0.08);
}

.parsed-review-mode .upload-review-section:not(.is-editing) input:not([type="checkbox"]),
.parsed-review-mode .upload-review-section:not(.is-editing) textarea,
.parsed-review-mode .upload-review-section:not(.is-editing) select {
  border-color: transparent;
  background: #f8f7f5;
  box-shadow: none;
  color: var(--stone-800);
  cursor: default;
}

.parsed-review-mode .upload-review-section:not(.is-editing) select[data-review-locked="true"] {
  pointer-events: none;
  appearance: none;
  background-image: none;
}

.parsed-review-mode .upload-review-section:not(.is-editing) textarea {
  resize: none;
}

.parsed-review-mode .upload-review-section:not(.is-editing) .needs-verification input,
.parsed-review-mode .upload-review-section:not(.is-editing) .needs-verification textarea,
.parsed-review-mode .upload-review-section:not(.is-editing) .details-missing input,
.parsed-review-mode .upload-review-section:not(.is-editing) .details-missing textarea {
  border-color: rgba(196, 85, 25, 0.34);
  background: #fff9f0;
}

.upload-parsed-action-bar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -5px 18px rgba(49, 37, 32, 0.09);
  backdrop-filter: blur(10px);
}

.upload-parsed-action-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.upload-parsed-action-copy strong,
.upload-parsed-action-copy small {
  display: block;
}

.upload-parsed-action-copy strong {
  color: var(--stone-800);
  font-size: 12px;
}

.upload-parsed-action-copy small {
  margin-top: 2px;
  color: var(--stone-500);
  font-size: 10px;
}

.upload-parsed-action-check {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 900;
}

.upload-parsed-action-buttons {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.upload-parsed-action-buttons .primary-button,
.upload-parsed-action-buttons .secondary-button {
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 0 11px;
  font-size: 11px;
  white-space: nowrap;
}

.family-subsection {
  display: grid;
  gap: 10px;
}

.family-fields-grid,
.sibling-count-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sibling-count-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sibling-section-header.compact {
  margin: 4px 0 0;
}

.upload-status-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--blue-700);
}

.upload-panel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.upload-panel-actions .primary-button,
.upload-panel-actions .secondary-button {
  width: 100%;
  margin-top: 0;
  padding: 0 10px;
}

.upload-panel-actions .primary-button {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .upload-split-layout {
    grid-template-columns: 1fr;
  }

  .upload-split-left {
    position: static;
  }

  .upload-review-header {
    align-items: flex-start;
    flex-direction: column;
  }

	  .form-card,
	  .family-fields-grid,
	  .sibling-count-grid,
	  .profile-readonly-two-col,
	  .profile-readonly-property-grid,
	  .profile-readonly-summary-grid,
	  .profile-horoscope-chart-meta,
	  .profile-horoscope-grid {
	    grid-template-columns: 1fr;
	  }

  .upload-parsed-review-banner {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .upload-parsed-review-status {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 50px;
  }

  .upload-parsed-action-bar,
  .upload-parsed-action-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-parsed-action-buttons {
    width: 100%;
  }

  .upload-parsed-action-buttons .primary-button,
  .upload-parsed-action-buttons .secondary-button {
    width: 100%;
  }

}

.status-message.error-message {
  color: var(--red-700) !important;
}

.needs-verification-input::placeholder {
  color: #7f2a09 !important;
  opacity: 0.55 !important;
}

/* --- Stepper Progress Bar --- */
.stepper-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 0 auto 35px;
  max-width: 700px;
}
.stepper-wrapper::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: #ffe3e3;
  z-index: 1;
}
.stepper-item {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}
.stepper-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffe3e3;
  color: #c92a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto 8px;
  transition: all 0.3s ease;
}
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(43, 138, 62, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(43, 138, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 138, 62, 0); }
}
.stepper-item.active .stepper-circle {
  background: #2b8a3e;
  color: white;
  animation: pulse-green 1.5s infinite;
}
.stepper-item.completed .stepper-circle {
  background: #2b8a3e;
  color: white;
}
.stepper-title {
  font-size: 14px;
  font-weight: 700;
  color: #888;
  white-space: nowrap;
}
.stepper-item.active .stepper-title {
  color: #2b8a3e;
}
.stepper-item.completed .stepper-title {
  color: #2b8a3e;
}

/* Custom Modal Styles */
.custom-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.custom-modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: slideUp 0.2s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.custom-modal h3 {
  margin: 0 0 12px 0;
  color: var(--gray-900);
  font-size: 18px;
}
.custom-modal p {
  margin: 0 0 16px 0;
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.5;
}
.custom-modal input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}
.custom-modal input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(188, 43, 61, 0.1);
}
.custom-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Planet picker chip grid */
.planet-pick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
}
.planet-pick-chip {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.55;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  user-select: none;
}
.planet-pick-chip input[type="checkbox"] {
  display: none;
}
.planet-pick-chip.is-selected {
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.planet-pick-chip:active {
  transform: scale(0.96);
}

/* Floating popover for planet editing */
.planet-popover-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 20000;
  animation: fadeIn 0.15s ease-out;
}
@media (min-width: 480px) {
  .planet-popover-backdrop {
    align-items: center;
  }
}
.planet-popover {
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px 18px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.06);
  animation: popoverSlideUp 0.2s ease-out;
}
@media (min-width: 480px) {
  .planet-popover {
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
    animation: slideUp 0.2s ease-out;
  }
}
@keyframes popoverSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.planet-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.planet-popover-header span {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}
.planet-popover-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
.planet-popover-close:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}
.planet-popover-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CUSTOMER PORTAL — Premium Design
   ═══════════════════════════════════════════════════════════════════════════ */

.portal-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #fffaf2 0%, #f8f0e3 40%, #f4eee7 100%);
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--wine-950, #2c0712) 0%, var(--wine-800, #68182b) 100%);
  box-shadow: 0 4px 20px rgba(44, 7, 18, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.portal-brand { display: flex; align-items: center; gap: 12px; }
.portal-brand-mark {
  background: linear-gradient(135deg, var(--gold-600, #b7852a) 0%, var(--gold-500, #d09a39) 100%);
  color: var(--wine-950, #2c0712);
  font-weight: 900;
  font-size: 15px;
  padding: 7px 11px;
  border-radius: 8px;
  letter-spacing: 1.5px;
  box-shadow: 0 2px 8px rgba(183, 133, 42, 0.3);
}
.portal-brand-title {
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  letter-spacing: 0.3px;
}
.portal-header-right { display: flex; align-items: center; gap: 14px; }
.portal-user-name { font-size: 14px; color: rgba(255,255,255,0.75); }
.portal-logout-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  transition: background 0.15s;
}
.portal-logout-btn:hover { background: rgba(255,255,255,0.2); }

/* ── Navigation ── */
.portal-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.portal-nav::-webkit-scrollbar { display: none; }
.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.portal-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.portal-nav-link.active {
  background: var(--gold-500, #d09a39);
  color: var(--wine-950, #2c0712);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.portal-nav-icon { font-size: 16px; }

/* ── Main Content ── */
.portal-main {
  flex: 1;
  padding: 32px 28px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.portal-page-header {
  margin-bottom: 24px;
  position: relative;
}
.portal-page-header::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-600, #b7852a), var(--gold-500, #d09a39));
  border-radius: 2px;
  margin-top: 10px;
}
.portal-page-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--wine-950, #2c0712);
  margin: 0;
  letter-spacing: -0.3px;
}
.portal-page-header p {
  font-size: 15px;
  color: var(--stone-500, #8a807a);
  margin: 6px 0 0;
}

/* ── Login Page ── */
.portal-login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: #f7e7c8;
  background-image: url("assets/login-wedding-detail.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow-x: hidden;
}
.portal-login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 250, 241, 0.08);
  pointer-events: none;
}

.portal-login-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 10px clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgba(112, 60, 31, 0.14);
  background: rgba(255, 252, 246, 0.83);
  backdrop-filter: blur(12px);
}

.portal-login-lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.portal-login-emblem {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  object-fit: cover;
  border: 1px solid rgba(164, 101, 26, 0.34);
  border-radius: 50%;
  background: #fffaf0;
  box-shadow: 0 5px 16px rgba(83, 42, 22, 0.14);
}

.portal-login-lockup-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.portal-login-lockup-copy strong {
  color: var(--wine-900);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.portal-login-lockup-copy > span {
  color: #836d63;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-login-top-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #346b55;
  font-size: 13px;
  font-weight: 750;
}

.portal-login-top-status svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.portal-login-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex: 1;
  width: 100%;
  padding: clamp(38px, 6vh, 74px) clamp(24px, 6vw, 92px);
}

.portal-login-content {
  width: min(600px, 100%);
}

.portal-login-intro { margin-bottom: 25px; }

.portal-login-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 11px;
  border: 1px solid rgba(130, 70, 34, 0.23);
  border-radius: 999px;
  background: rgba(255, 249, 236, 0.76);
  color: #855017;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-login-intro h1 {
  max-width: 590px;
  margin: 0;
  color: var(--wine-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 0.98;
}

.portal-login-lead {
  max-width: 570px;
  margin: 17px 0 0;
  color: #44383a;
  font-size: 17px;
  line-height: 1.65;
}

.portal-login-tamil {
  margin: 9px 0 0;
  color: #7e243a;
  font-family: "Noto Sans Tamil", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.portal-login-access {
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid rgba(111, 63, 42, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 18px 46px rgba(69, 36, 24, 0.15);
  backdrop-filter: blur(12px);
}

.portal-login-form-heading > span {
  display: block;
  margin-bottom: 5px;
  color: #9a263f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-login-form-heading h2 {
  font-weight: 800;
  margin: 0;
  color: var(--wine-950, #2c0712);
  font-size: 24px;
  line-height: 1.2;
}

.portal-login-form-heading p {
  margin: 5px 0 0;
  color: #786d69;
  font-size: 14px;
}

.portal-login-form {
  display: grid;
  gap: 9px;
  margin-top: 19px;
}

.portal-login-form > label {
  color: #4c3e40;
  font-size: 13px;
  font-weight: 750;
}

.portal-login-phone-control {
  display: grid;
  grid-template-columns: 58px 1fr;
  min-height: 50px;
  overflow: hidden;
  border: 1px solid #d8cac1;
  border-radius: 7px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.portal-login-phone-control:focus-within {
  border-color: #9c2741;
  box-shadow: 0 0 0 3px rgba(135, 36, 59, 0.11);
}

.portal-login-country-code {
  display: grid;
  place-items: center;
  border-right: 1px solid #e2d8d1;
  background: #faf5ef;
  color: #695d59;
  font-size: 14px;
  font-weight: 750;
}

.portal-login-phone-control input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
  color: #2f2527;
  font-size: 16px;
  letter-spacing: 0;
}

.portal-login-phone-control input::placeholder { color: #a49b97; }

.portal-login-field-help {
  color: #8b807c;
  font-size: 11.5px;
}

.portal-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-top: 5px;
  border: 1px solid #6d1429;
  border-radius: 7px;
  background: #71172c;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 9px 18px rgba(105, 21, 42, 0.2);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.portal-login-submit:hover {
  background: #8a2039;
  box-shadow: 0 11px 22px rgba(105, 21, 42, 0.25);
  transform: translateY(-1px);
}

.portal-login-submit:focus-visible {
  outline: 3px solid rgba(183, 133, 42, 0.36);
  outline-offset: 3px;
}

.portal-login-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-login-assurance {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #eadfd7;
  color: #746965;
  font-size: 11.5px;
  line-height: 1.45;
}

.portal-login-assurance > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #2d7658;
  stroke-width: 1.8;
}

.portal-login-assurance strong {
  display: block;
  color: #315d4c;
  font-size: 12px;
}

.portal-login-footer {
  margin-top: 13px;
  color: #857975;
  font-size: 11.5px;
  line-height: 1.45;
}

.portal-login-footer > p { margin: 0; }
.portal-login-footer > p + p { margin-top: 6px; }

.portal-login-message:not(:empty) {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-left: 3px solid #a43732;
  background: #fff0ee;
  color: #8b2926;
  font-weight: 700;
}

.portal-login-demo { margin-top: 8px; color: #74635d; }
.portal-login-demo summary { width: max-content; color: #81243a; font-weight: 750; cursor: pointer; }
.portal-login-demo span { display: block; margin-top: 5px; }

.portal-login-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.portal-login-trust > span {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  color: #776762;
  font-size: 10.5px;
  line-height: 1.35;
}

.portal-login-trust > span > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #95631c;
  stroke-width: 1.8;
}

.portal-login-trust strong {
  display: block;
  color: #493b3d;
  font-size: 11.5px;
}

.portal-login-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(24px, 5vw, 76px);
  border-top: 1px solid rgba(112, 60, 31, 0.13);
  background: rgba(255, 252, 246, 0.76);
  color: #766760;
  font-size: 11px;
  font-weight: 650;
  backdrop-filter: blur(10px);
}

@media (max-height: 820px) and (min-width: 901px) {
  .portal-login-topbar { min-height: 74px; }
  .portal-login-emblem { width: 52px; height: 52px; flex-basis: 52px; }
  .portal-login-stage { padding-top: 24px; padding-bottom: 24px; }
  .portal-login-intro { margin-bottom: 18px; }
  .portal-login-intro h1 { font-size: 52px; }
  .portal-login-lead { margin-top: 11px; font-size: 15px; line-height: 1.5; }
  .portal-login-tamil { margin-top: 6px; }
  .portal-login-access { padding: 20px; }
  .portal-login-form { margin-top: 14px; }
  .portal-login-trust { margin-top: 14px; }
  .portal-login-bottom { padding-top: 10px; padding-bottom: 10px; }
}

@media (max-width: 900px) {
  .portal-login-page { background-position: 70% center; }
  .portal-login-page::before { background: rgba(255, 250, 241, 0.7); }
  .portal-login-topbar { min-height: 76px; padding: 8px 24px; }
  .portal-login-emblem { width: 54px; height: 54px; flex-basis: 54px; }
  .portal-login-lockup-copy strong { font-size: 21px; }
  .portal-login-stage { align-items: flex-start; padding: 42px 24px; }
  .portal-login-content { width: min(560px, 100%); }
  .portal-login-intro h1 { font-size: 50px; }
}

@media (max-width: 600px) {
  .portal-login-page { background-position: 72% center; }
  .portal-login-page::before { background: rgba(255, 250, 241, 0.87); }
  .portal-login-topbar { min-height: 68px; padding: 7px 16px; }
  .portal-login-emblem { width: 48px; height: 48px; flex-basis: 48px; }
  .portal-login-lockup { gap: 9px; }
  .portal-login-lockup-copy strong { font-size: 19px; }
  .portal-login-lockup-copy > span { font-size: 9px; }
  .portal-login-top-status > span { display: none; }
  .portal-login-stage { padding: 28px 16px 34px; }
  .portal-login-eyebrow { margin-bottom: 11px; }
  .portal-login-intro { margin-bottom: 20px; }
  .portal-login-intro h1 { font-size: 40px; line-height: 1; }
  .portal-login-lead { margin-top: 13px; font-size: 15px; line-height: 1.55; }
  .portal-login-tamil { font-size: 12.5px; line-height: 1.5; }
  .portal-login-access { padding: 19px 17px; }
  .portal-login-form-heading h2 { font-size: 22px; }
  .portal-login-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .portal-login-trust > span:last-child { grid-column: 1 / -1; }
  .portal-login-bottom { padding: 11px 16px; }
  .portal-login-bottom span:last-child { display: none; }
}

/* ── Upload Section ── */
.portal-main:has(.portal-registration-page) {
  max-width: 1180px;
  padding-top: 24px;
  padding-bottom: 48px;
}

.portal-upload-section { width: 100%; max-width: 1080px; margin: 0 auto; }
.portal-upload-section.has-review { max-width: none; }

.portal-registration-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 132px;
  padding: 24px 28px;
  border: 1px solid #e6d9cf;
  border-radius: 8px 8px 0 0;
  background: #fffdf9;
  box-shadow: 0 12px 30px rgba(67, 35, 30, 0.055);
}

.portal-registration-hero-copy { max-width: 650px; }

.portal-registration-kicker {
  display: block;
  margin-bottom: 7px;
  color: #9a263f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-registration-hero h2 {
  margin: 0;
  color: #321016;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  line-height: 1.1;
}

.portal-registration-hero p {
  margin: 8px 0 0;
  color: #756a66;
  font-size: 14px;
  line-height: 1.55;
}

.portal-registration-hero-mark {
  display: grid;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #deb96b;
  border-radius: 50%;
  background: #fff9ea;
  box-shadow: 0 7px 18px rgba(103, 49, 26, 0.13);
}

.portal-registration-hero-mark img { width: 100%; height: 100%; object-fit: cover; }

.portal-registration-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0 18px;
  border-right: 1px solid #e6d9cf;
  border-bottom: 1px solid #e6d9cf;
  border-left: 1px solid #e6d9cf;
  background: #fff;
  list-style: none;
}

.portal-registration-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 78px;
  padding: 14px 18px;
  color: #8a7d78;
}

.portal-registration-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 34px;
  background: #eadfd7;
  transform: translateY(-50%);
}

.portal-registration-step-number {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid #d8ccc5;
  border-radius: 50%;
  background: #f8f4f1;
  color: #8b7e7a;
  font-size: 12px;
  font-weight: 850;
}

.portal-registration-steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.portal-registration-steps strong { color: inherit; font-size: 13px; }
.portal-registration-steps small { color: #a09692; font-size: 10.5px; line-height: 1.25; }

.portal-registration-steps li.is-active { color: #7b1930; }
.portal-registration-steps li.is-active .portal-registration-step-number {
  border-color: #7b1930;
  background: #7b1930;
  color: #fff;
  box-shadow: 0 0 0 4px #f8e9ec;
}

.portal-registration-steps li.is-complete { color: #2b7055; }
.portal-registration-steps li.is-complete .portal-registration-step-number {
  border-color: #92cdb3;
  background: #e9f7ef;
  color: #237653;
}

.portal-registration-workspace {
  padding: 22px;
  border-right: 1px solid #e6d9cf;
  border-bottom: 1px solid #e6d9cf;
  border-left: 1px solid #e6d9cf;
  border-radius: 0 0 8px 8px;
  background: #f9f6f3;
}

.portal-registration-panel {
  padding: 24px;
  border: 1px solid #e2d6ce;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(62, 37, 31, 0.045);
}

.portal-registration-panel[hidden],
.portal-registration-workspace[hidden] { display: none !important; }

.portal-registration-panel-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ede3dd;
}

.portal-registration-panel-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 8px;
  background: #f7e9ec;
  color: #8a2039;
}

.portal-registration-panel-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-registration-panel-heading > div { min-width: 0; }
.portal-registration-panel-heading > div > span { color: #9a263f; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.portal-registration-panel-heading h3 { margin: 3px 0 0; color: #37151c; font-size: 20px; }
.portal-registration-panel-heading p { margin: 4px 0 0; color: #8a7e79; font-size: 12px; }
.portal-registration-panel-heading p b { color: #a43732; }

.portal-registration-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portal-registration-field { display: grid; gap: 7px; min-width: 0; }
.portal-registration-field.is-wide,
.portal-registration-form-note.is-wide,
.portal-registration-actions.is-wide { grid-column: 1 / -1; }

.portal-registration-field > span {
  color: #5c4d4f;
  font-size: 12px;
  font-weight: 750;
}

.portal-registration-field > span b { color: #ad3031; }

.portal-registration-field input,
.portal-registration-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9cdc5;
  border-radius: 7px;
  padding: 0 13px;
  outline: 0;
  background: #fff;
  color: #342a2c;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.portal-registration-field input:focus,
.portal-registration-field select:focus {
  border-color: #942840;
  box-shadow: 0 0 0 3px rgba(135, 36, 59, 0.1);
}

.portal-registration-phone {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d9cdc5;
  border-radius: 7px;
  background: #fff;
}

.portal-registration-phone:focus-within {
  border-color: #942840;
  box-shadow: 0 0 0 3px rgba(135, 36, 59, 0.1);
}

.portal-registration-phone > span {
  display: grid;
  place-items: center;
  border-right: 1px solid #e5dbd4;
  background: #faf6f2;
  color: #6b5d59;
  font-size: 13px;
  font-weight: 750;
}

.portal-registration-phone input { border: 0; border-radius: 0; box-shadow: none !important; }
.portal-registration-phone input[readonly] { background: #fcfaf8; color: #625653; cursor: default; }

.portal-registration-form-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-left: 3px solid #2d7658;
  background: #eef8f2;
  color: #65736c;
  font-size: 11.5px;
  line-height: 1.45;
}

.portal-registration-form-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #2d7658;
  stroke-width: 1.8;
}

.portal-registration-form-note strong { display: block; color: #285f49; font-size: 12px; }
.portal-registration-actions { display: flex; justify-content: flex-end; }

.portal-registration-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 210px;
  min-height: 46px;
  border: 1px solid #6d1429;
  border-radius: 7px;
  background: #74182e;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(105, 21, 42, 0.18);
}

.portal-registration-next:hover { background: #8c213a; }
.portal-registration-next svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.portal-registration-edit {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #8a2039;
  font-size: 12px;
  font-weight: 750;
}

.portal-registration-edit:hover { text-decoration: underline; }

.portal-registration-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 18px;
}

.portal-registration-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 4px 9px;
  border: 1px solid #ead9ad;
  border-radius: 999px;
  background: #fff7e5;
  color: #78531d;
}

.portal-registration-summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.portal-registration-summary strong { font-size: 11px; font-weight: 750; }

.portal-upload-section .panel {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
  border: none;
}
.portal-upload-section .panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.portal-upload-section .panel-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--wine-950, #2c0712);
  margin: 0;
}
.portal-upload-section .panel-header p {
  font-size: 13px;
  color: var(--stone-500, #8a807a);
  margin: 0;
}
.portal-drop-zone {
  border: 1.5px dashed #cbbcaf;
  border-radius: 8px;
  padding: 34px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: #fffbf4;
  position: relative;
}
.portal-drop-zone:hover { border-color: var(--wine-700, #87243b); background: #fff7e8; }
.portal-drop-zone.dragover {
  border-color: var(--wine-800, #68182b);
  background: #fff3d8;
}
.portal-drop-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  background: #f4e5e8;
  color: #8a2039;
}
.portal-drop-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-drop-zone p { margin: 4px 0; }
.portal-drop-zone p strong { color: var(--wine-800, #68182b); font-size: 16px; }
.portal-drop-zone p:not(:first-of-type) { color: #837772; font-size: 12px; }
.portal-drop-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 13px;
  padding: 0 17px;
  border: 1px solid #b78a36;
  border-radius: 7px;
  background: #fff;
  color: #744d14;
  font-size: 12px;
  font-weight: 800;
}
.portal-drop-hint {
  font-size: 10.5px !important;
  color: var(--stone-400, #a8a29e);
  margin-top: 9px !important;
}
.portal-fallback-test-btn {
  display: block;
  margin: 13px auto 0;
  padding: 7px 12px;
  border: 0;
  background: transparent;
  color: #887a75;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portal-fallback-test-btn:hover {
  color: var(--wine-700, #87243b);
  background: transparent;
}

@media (max-width: 760px) {
  .portal-main:has(.portal-registration-page) { padding: 18px 14px 36px; }
  .portal-main:has(.portal-registration-page) > .portal-page-header { margin-bottom: 16px; }
  .portal-registration-hero { min-height: 112px; padding: 20px; }
  .portal-registration-hero h2 { font-size: 28px; }
  .portal-registration-hero-mark { width: 66px; height: 66px; flex-basis: 66px; }
  .portal-registration-steps { padding: 0 5px; }
  .portal-registration-steps li { gap: 7px; min-height: 68px; padding: 10px 8px; }
  .portal-registration-step-number { width: 26px; height: 26px; flex-basis: 26px; }
  .portal-registration-steps strong { font-size: 11.5px; }
  .portal-registration-steps small { display: none; }
  .portal-registration-workspace { padding: 12px; }
  .portal-registration-panel { padding: 18px; }
  .portal-registration-form { grid-template-columns: 1fr; gap: 14px; }
  .portal-registration-field.is-wide,
  .portal-registration-form-note.is-wide,
  .portal-registration-actions.is-wide { grid-column: auto; }
  .portal-registration-panel-heading { align-items: flex-start; flex-wrap: wrap; }
  .portal-registration-edit { margin-left: auto; }
  .portal-registration-next { width: 100%; }
}

@media (max-width: 460px) {
  .portal-registration-hero { padding: 18px 16px; }
  .portal-registration-hero h2 { font-size: 25px; }
  .portal-registration-hero p { font-size: 12px; }
  .portal-registration-hero-mark { display: none; }
  .portal-registration-steps li { justify-content: center; }
  .portal-registration-steps li > span:last-child { display: none; }
  .portal-registration-steps li:not(:last-child)::after { height: 24px; }
  .portal-registration-panel { padding: 16px 14px; }
  .portal-registration-panel-heading { gap: 10px; }
  .portal-registration-panel-heading h3 { font-size: 18px; }
  .portal-registration-edit { width: 100%; margin-left: 50px; text-align: left; }
  .portal-drop-zone { padding: 28px 14px; }
  .portal-registration-summary { gap: 6px; }
}

.portal-extraction-status {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--gold-100, #fff3d8) 0%, #fff8eb 100%);
  border-radius: 12px;
  border: 1px solid rgba(208, 154, 57, 0.2);
}
.portal-extraction-status.is-complete {
  background: #edf9f2;
  border-color: rgba(35, 118, 83, 0.24);
  color: var(--green-700, #237653);
}
.portal-extraction-status.is-complete .portal-extraction-spinner {
  width: 22px;
  height: 22px;
  border: 0;
  animation: none;
}
.portal-extraction-status.is-complete .portal-extraction-spinner::before {
  content: "\2713";
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-700, #237653);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.portal-extraction-status.is-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}
.portal-extraction-spinner {
  flex: 0 0 auto;
  margin-top: 2px;
  width: 22px; height: 22px;
  border: 3px solid var(--gold-100, #fff3d8);
  border-top-color: var(--wine-800, #68182b);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.portal-extraction-copy { flex: 1; min-width: 0; }
.portal-extraction-copy > strong { display: block; color: var(--wine-950, #2c0712); font-size: 14px; }
.portal-extraction-copy > p { margin: 3px 0 0; color: var(--stone-600, #5d5450); font-size: 12.5px; line-height: 1.45; }
.portal-extraction-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.portal-extraction-stages li { position: relative; min-width: 0; padding-top: 15px; color: #91837d; font-size: 10px; font-weight: 700; line-height: 1.2; }
.portal-extraction-stages li::before { content: ""; position: absolute; top: 5px; right: 0; left: 12px; height: 2px; background: #e7d8c0; }
.portal-extraction-stages li:last-child::before { display: none; }
.portal-extraction-stages li > span { position: absolute; z-index: 1; top: 1px; left: 0; width: 10px; height: 10px; border: 2px solid #d6c4aa; border-radius: 50%; background: #fff8eb; }
.portal-extraction-stages li.is-active { color: var(--wine-800, #68182b); }
.portal-extraction-stages li.is-active > span { border-color: var(--wine-800, #68182b); box-shadow: 0 0 0 3px rgba(104, 24, 43, 0.1); }
.portal-extraction-stages li.is-done { color: var(--green-700, #237653); }
.portal-extraction-stages li.is-done::before { background: #8ecbb0; }
.portal-extraction-stages li.is-done > span { border-color: var(--green-700, #237653); background: var(--green-700, #237653); }
.portal-extraction-status.is-complete .portal-extraction-copy > strong,
.portal-extraction-status.is-complete .portal-extraction-copy > p { color: var(--green-700, #237653); }
.portal-extraction-status.is-error .portal-extraction-copy > strong,
.portal-extraction-status.is-error .portal-extraction-copy > p { color: #9f1239; }

@media (max-width: 520px) {
  .portal-extraction-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 11px; }
  .portal-extraction-stages li::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-extraction-spinner { animation-duration: 1.6s; }
}

/* ── Floating, tabbed parsed profile review ── */
.portal-review-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(35, 118, 83, 0.24);
  border-radius: 14px;
  background: #edf9f2;
  box-shadow: 0 10px 26px -22px rgba(44, 7, 18, 0.36);
}
.portal-review-launcher div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.portal-review-launcher strong {
  color: var(--green-700, #237653);
  font-size: 14px;
}
.portal-review-launcher span {
  color: var(--stone-600, #5d5450);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.portal-review-launcher .primary-button {
  width: auto;
  margin: 0;
  white-space: nowrap;
}
.portal-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(44, 7, 18, 0.42);
  backdrop-filter: blur(6px);
}
.portal-review-overlay.is-active { display: flex; }
.portal-review-shell {
  display: flex;
  flex-direction: column;
  width: min(1120px, 96%);
  height: min(92vh, 900px);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(216, 206, 196, 0.95);
  border-radius: 20px;
  background: #fbf7f3;
  box-shadow: 0 36px 90px -30px rgba(44, 7, 18, 0.55);
}
.portal-review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 0 0 auto;
  padding: 18px 22px 16px;
  background: #fff;
  border-bottom: 1px solid var(--stone-200, #e9e0d7);
}
.portal-review-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--green-700, #237653);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.portal-review-heading h2 {
  margin: 0;
  color: var(--wine-950, #2c0712);
  font-size: 20px;
  letter-spacing: 0;
}
.portal-review-heading p {
  margin: 5px 0 0;
  color: var(--stone-500, #8a807a);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.portal-review-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.portal-review-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf9f2;
  color: var(--green-700, #237653);
  font-size: 12px;
  font-weight: 800;
}
.portal-review-close {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid var(--stone-300, #d8cec4);
  border-radius: 50%;
  background: #fff;
  color: var(--stone-700, #5d5450);
  cursor: pointer;
}
.portal-review-close:hover,
.portal-review-close:focus-visible {
  border-color: var(--wine-700, #87243b);
  color: var(--wine-800, #68182b);
  outline: none;
}
.portal-review-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.portal-review-tabs {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--stone-200, #e9e0d7);
  background: rgba(255, 253, 249, 0.98);
  scrollbar-width: none;
}
.portal-review-tabs::-webkit-scrollbar { display: none; }
.portal-review-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 7px 12px;
  border: 1px solid #e6d9c8;
  border-radius: 999px;
  background: #fffdf9;
  color: #5c1626;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.portal-review-tab:hover {
  border-color: #d09a39;
  background: #fdf6e9;
  box-shadow: 0 2px 8px rgba(208, 154, 57, 0.18);
}
.portal-review-tab.is-active {
  border-color: #5c1626;
  background: linear-gradient(135deg, #7a1f33 0%, #5c1626 100%);
  color: #fff8ec;
  box-shadow: 0 3px 10px rgba(92, 22, 38, 0.28), inset 0 -2px 0 #d09a39;
}
.portal-review-tab.is-active .portal-review-tab-status.is-missing {
  background: #fff3df;
  color: #8a2a1f;
  box-shadow: none;
}
.portal-review-tab.is-active .portal-review-tab-status.is-complete {
  background: #fff3df;
  color: #237653;
  box-shadow: none;
}
.portal-review-tab-status {
  display: inline-grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}
.portal-review-tab-status.is-missing {
  background: #fff0ee;
  color: #a43732;
  box-shadow: inset 0 0 0 1px #efc4bf;
}
.portal-review-tab-status.is-complete {
  background: #e8f8ef;
  color: #237653;
  box-shadow: inset 0 0 0 1px #b8dfca;
}
.portal-review-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 22px;
  background: #fbf7f3;
}
.portal-review-sections {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}
.portal-review-section {
  padding: 16px 18px 20px;
  background: linear-gradient(180deg, #fffdfb 0%, #fff9f3 100%);
  border: 1px solid #eadbd2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px -20px rgba(75, 16, 32, 0.36);
}
.portal-review-section[hidden] { display: none; }
.portal-review-section.is-editing {
  border-color: var(--gold-600, #b7852a);
  box-shadow: 0 0 0 2px rgba(183, 133, 42, 0.1), 0 8px 20px -20px rgba(75, 16, 32, 0.36);
}
.portal-review-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin-bottom: 12px;
  padding: 0 2px 10px;
  border-bottom: 1px solid #eadbd2;
  background: transparent;
}
.portal-review-section-header h3 {
  margin: 0;
  color: var(--wine-950, #2c0712);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}
.portal-review-guidance {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding: 9px 11px;
  border-left: 3px solid #c8b7ad;
  background: #f8f4f0;
  color: #5d5450;
}
.portal-review-guidance p,
.portal-review-guidance strong {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
.portal-review-guidance strong { font-weight: 750; }
.portal-review-guidance.is-missing {
  border-left-color: #a43732;
  background: #fff4f2;
}
.portal-review-guidance.is-missing strong { color: #8e2c28; }
.portal-review-guidance.is-complete {
  border-left-color: #237653;
  background: #eff9f3;
}
.portal-review-guidance.is-complete strong { color: #237653; }
.portal-required-mark {
  margin-left: 3px;
  color: #b12832;
  font-size: 13px;
  font-weight: 900;
}
.portal-review-edit-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1.5px solid var(--stone-300, #d8cec4);
  border-radius: 8px;
  background: #fff;
  color: var(--wine-800, #68182b);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.portal-review-edit-button:hover,
.portal-review-edit-button:focus-visible {
  border-color: var(--wine-700, #87243b);
  background: #fff3d8;
  color: var(--wine-700, #87243b);
  outline: none;
}
.portal-review-edit-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-review-section.is-editing .portal-review-edit-button {
  border-color: var(--green-700, #237653);
  background: var(--green-700, #237653);
  color: #fff;
}
.portal-review-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 0;
}
.portal-review-field {
  min-width: 0;
  min-height: 62px;
  padding: 10px 13px;
  border: 1px solid #e5d8d0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 14px -13px rgba(75, 16, 32, 0.5);
  transition: border-color 0.15s, background 0.15s;
}
.portal-review-field:hover {
  border-color: #dcc5b8;
  background: #fffdfb;
}
.portal-review-field:nth-child(even) { padding-left: 13px; }
.portal-review-field.is-wide {
  grid-column: 1 / -1;
  padding-left: 13px;
}
.portal-review-field.is-required {
  border-left: 3px solid var(--gold-500, #d09a39);
}
.portal-review-field.is-required.is-empty {
  border-left-color: #c0392b;
  background: #fff8f7;
  animation: portalFieldPulse 2s ease-in-out 1;
}
@keyframes portalFieldPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1); }
}
.portal-review-field-label {
  display: block;
  margin-bottom: 2px;
  color: var(--wine-700, #87243b);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.portal-review-field strong {
  display: block;
  min-height: 19px;
  color: #3d2d29;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.portal-review-control { display: none; }
.portal-review-control input,
.portal-review-control select,
.portal-review-control textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--stone-300, #d8cec4);
  border-radius: 6px;
  background: #fff;
  color: var(--stone-800, #27211f);
  font: inherit;
  font-size: 14px;
}
.portal-review-control textarea {
  min-height: 70px;
  resize: vertical;
}
.portal-review-control input:focus,
.portal-review-control select:focus,
.portal-review-control textarea:focus {
  border-color: var(--wine-700, #87243b);
  box-shadow: 0 0 0 3px rgba(104, 24, 43, 0.08);
  outline: none;
}
.portal-review-section.is-editing .portal-review-field strong { display: none; }
.portal-review-section.is-editing .portal-review-control { display: block; }
.portal-review-section.is-editing .portal-review-field {
  background: #fff;
  border-color: var(--stone-300, #d8cec4);
}
.portal-review-status.is-missing {
  background: #fff0ee;
  color: #a43732;
}

/* Candidate photos */
.portal-photo-manager,
.portal-saved-photos {
  width: min(760px, 100%);
  margin: 0 auto;
}
.portal-photo-stage {
  position: relative;
  display: grid;
  width: min(360px, 100%);
  aspect-ratio: 4 / 5;
  margin: 0 auto 14px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ddcec5;
  border-radius: 8px;
  background: #f6f0eb;
}
.portal-photo-stage > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f2ece7;
}
.portal-photo-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(44, 7, 18, 0.78);
  color: #fff;
  transform: translateY(-50%);
  cursor: pointer;
}
.portal-photo-nav:disabled { display: none; }
.portal-photo-nav.is-prev { left: 10px; }
.portal-photo-nav.is-next { right: 10px; }
.portal-photo-nav svg,
.portal-photo-slot-actions svg,
.portal-photo-slot.is-empty svg,
.portal-source-download svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-photo-source,
.portal-photo-count {
  position: absolute;
  bottom: 9px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(44, 7, 18, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.portal-photo-source { left: 9px; }
.portal-photo-count { right: 9px; }
.portal-photo-empty {
  display: grid;
  max-width: 260px;
  gap: 7px;
  padding: 24px;
  text-align: center;
  color: #5d5450;
}
.portal-photo-empty strong { color: #2c0712; }
.portal-photo-empty span { font-size: 12px; }
.portal-photo-empty .secondary-button { width: auto; margin: 6px auto 0; }
.portal-photo-slots,
.portal-saved-photo-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.portal-photo-slot,
.portal-saved-photo-thumbs > button {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #ddcec5;
  border-radius: 6px;
  background: #fff;
}
.portal-photo-slot.is-active,
.portal-saved-photo-thumbs > button.is-active {
  border-color: #87243b;
  box-shadow: 0 0 0 2px rgba(135, 36, 59, 0.12);
}
.portal-photo-slot.is-empty {
  display: grid;
  min-height: 108px;
  padding: 10px;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-style: dashed;
  color: #87243b;
  cursor: pointer;
}
.portal-photo-slot.is-empty span { font-size: 11px; font-weight: 750; }
.portal-photo-thumb {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.portal-photo-thumb img,
.portal-saved-photo-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-photo-slot-actions {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: flex;
  gap: 4px;
}
.portal-photo-slot-actions button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 5px;
  background: rgba(44, 7, 18, 0.82);
  color: #fff;
  cursor: pointer;
}
.portal-photo-help {
  margin: 9px 0 0;
  color: #8a807a;
  font-size: 11px;
  text-align: center;
}

/* Uploaded source profile */
.portal-source-document { min-width: 0; }
.portal-source-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #e5d8d0;
  border-radius: 8px;
  background: #fff;
}
.portal-source-toolbar > div { display: grid; gap: 2px; min-width: 0; }
.portal-source-toolbar strong,
.portal-source-toolbar span { overflow-wrap: anywhere; }
.portal-source-toolbar strong { color: #2c0712; font-size: 13px; }
.portal-source-toolbar span { color: #8a807a; font-size: 11px; }
.portal-source-download {
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin: 0;
  text-decoration: none;
}
.portal-source-viewer {
  max-height: 66vh;
  overflow: auto;
  border: 1px solid #ddcec5;
  border-radius: 8px;
  background: #efe9e4;
}
.portal-source-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.portal-source-pdf {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
  background: #fff;
}
.portal-source-empty {
  display: grid;
  gap: 5px;
  min-height: 180px;
  padding: 28px;
  place-content: center;
  border: 1px dashed #d8cec4;
  border-radius: 8px;
  background: #faf6f2;
  color: #8a807a;
  text-align: center;
}
.portal-source-empty strong { color: #2c0712; }
.portal-source-empty span { font-size: 12px; }
.portal-review-charts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
  padding: 0;
}
.portal-review-charts-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
}
.portal-review-charts-row > .portal-chart-crop-card {
  flex: 1 1 45%;
  min-width: 0;
}
.portal-review-charts-parsed {
  flex: 1 1 55%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.portal-review-charts-row .portal-review-chart {
  min-width: 0;
}
.portal-review-chart {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #eadfd8;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 5px 14px -13px rgba(75, 16, 32, 0.5);
}
.portal-review-chart h4 {
  margin: 0 0 14px;
  color: var(--wine-800, #68182b);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-100, #fff3d8);
}
.portal-chart-crop-preview {
  margin-bottom: 0;
  background: var(--ivory-50, #fffaf2);
  border: 1px solid var(--stone-200, #e9e0d7);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  position: relative;
}
.portal-chart-crop-label {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--stone-400, #a8a29e);
  background: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--stone-200, #e9e0d7);
}
.portal-chart-crop-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--stone-200, #e9e0d7);
  display: block;
  margin: 0 auto;
}
.portal-chart-crop-card {
  background: var(--ivory-50, #fffaf2) !important;
  display: flex;
  flex-direction: column;
}
.portal-horoscope-notes {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--stone-200, #e9e0d7);
}
.portal-horoscope-notes h5 {
  margin: 0 0 10px;
  color: var(--wine-800, #68182b);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.portal-horoscope-notes ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--stone-700, #514944);
  font-size: 12px;
  line-height: 1.55;
}
.portal-horoscope-notes li::marker {
  color: var(--wine-700, #87243b);
  font-weight: 800;
}
.portal-horoscope-notes p {
  margin: 0;
  color: var(--stone-500, #8a807a);
  font-size: 12px;
  font-style: italic;
}
/* Editable chart cells in portal */
.portal-si-cell-editable {
  cursor: pointer;
  position: relative;
  transition: background 0.15s, box-shadow 0.15s;
}
.portal-si-cell-editable:hover {
  background: var(--gold-100, #fff3d8);
  box-shadow: inset 0 0 0 2px var(--gold-500, #d09a39);
  z-index: 1;
}
.portal-si-cell-editable.needs-review {
  background: rgba(164, 55, 50, 0.06);
}
.portal-si-cell-editable.needs-review:hover {
  background: rgba(164, 55, 50, 0.1);
  box-shadow: inset 0 0 0 2px var(--red-700, #a43732);
}
.portal-si-edit-hint {
  display: none;
  position: absolute;
  bottom: 3px;
  right: 4px;
  font-size: 9px;
  color: var(--gold-600, #b7852a);
  font-weight: 700;
  opacity: 0.7;
}
.portal-si-cell-editable:hover .portal-si-edit-hint { display: block; }
/* Diagnostics bar */
.portal-chart-diag-bar {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
}
.portal-diag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--stone-500, #8a807a);
  border-color: var(--stone-300, #d8cec4);
}
.portal-diag-btn:hover {
  color: var(--wine-800, #68182b);
  border-color: var(--wine-700, #87243b);
}
.portal-review-chart .si-chart-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 52px);
}
.portal-review-chart .si-cell-planets {
  gap: 1px;
  flex-wrap: wrap;
  overflow: visible;
}
.portal-review-chart .si-cell-rasi .si-rasi-en { font-size: 9px; }
.portal-review-chart .si-center div { font-size: 11px; }
.portal-review-charts-row .planet-chip { font-size: 8px; padding: 1px 4px; line-height: 1.2; }
.portal-review-charts-row .portal-si-edit-hint { font-size: 8px; }
.portal-review-subsection {
  margin: 16px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}
.portal-review-subsection:first-child { margin-top: 0; }
.portal-review-subsection-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--wine-700, #87243b);
  margin: 0;
  padding: 0 0 8px;
  background: transparent;
  border-bottom: 1px solid #eadfd8;
}
.portal-review-subsection .portal-review-fields {
  padding: 10px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.portal-review-subsection:last-child { margin-bottom: 20px; }
.portal-review-chart-subsection .portal-review-charts {
  padding: 12px 14px 16px;
}
/* Siblings subsection */
.portal-review-subsection-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 8px;
  border-bottom: 1px solid #eadfd8;
}
.portal-review-subsection-title-row .portal-review-subsection-title {
  padding: 0;
  border: 0;
}
.portal-sibling-add {
  padding: 4px 12px;
  border: 1.5px dashed var(--stone-300, #d8cec4);
  border-radius: 6px;
  background: transparent;
  color: var(--wine-700, #87243b);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: none;
}
.portal-sibling-add:hover { background: #fff3d8; border-color: var(--wine-600, #9b2d3f); }
.portal-review-section.is-editing .portal-sibling-add { display: inline-block; }
.portal-siblings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0 4px;
}
.portal-sibling-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--stone-200, #e9e0d7);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.15s;
}
.portal-sibling-card:hover { border-color: #dcc5b8; }
.portal-sibling-index {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fdf0f3, #fbe4ea);
  color: var(--wine-800, #68182b);
  font-size: 11px;
  font-weight: 800;
}
.portal-sibling-text {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--wine-950, #2c0712);
  overflow-wrap: anywhere;
}
.portal-sibling-edit {
  display: none;
  flex: 1 1 auto;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--stone-300, #d8cec4);
  border-radius: 6px;
  background: #fff;
  color: var(--stone-800, #27211f);
  font: inherit;
  font-size: 13px;
}
.portal-sibling-edit:focus {
  border-color: var(--wine-700, #87243b);
  box-shadow: 0 0 0 3px rgba(104, 24, 43, 0.08);
  outline: none;
}
.portal-sibling-remove {
  display: none;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid #efc4bf;
  border-radius: 6px;
  background: #fff0ee;
  color: #a43732;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.portal-sibling-remove:hover { background: #fdd; border-color: #d88; }
.portal-review-section.is-editing .portal-sibling-text { display: none; }
.portal-review-section.is-editing .portal-sibling-edit { display: block; }
.portal-review-section.is-editing .portal-sibling-remove { display: inline-grid; }
.portal-sibling-empty {
  margin: 0;
  padding: 14px;
  color: var(--stone-400, #a8a29e);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}
/* Marriage history cards */
.portal-marriage-subsection { margin-top: 4px; }
.portal-marriages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 4px;
}
.portal-marriage-card {
  padding: 12px 16px;
  border: 1.5px solid var(--stone-200, #e9e0d7);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
}
.portal-marriage-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.portal-marriage-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.portal-marriage-index {
  font-size: 13px;
  font-weight: 800;
  color: var(--wine-700, #87243b);
}
.portal-marriage-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}
.portal-marriage-field {
  padding: 6px 8px;
  border: 1px solid var(--stone-200, #e9e0d7);
  border-radius: 8px;
  background: #fdfbf8;
}
.portal-marriage-field-label {
  display: block;
  margin-bottom: 2px;
  color: var(--wine-700, #87243b);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.portal-marriage-field-value {
  display: block;
  color: var(--wine-950, #2c0712);
  font-size: 12px;
  font-weight: 600;
}
.portal-marriage-field-input {
  display: none;
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--stone-300, #d8cec4);
  border-radius: 5px;
  background: #fff;
  color: var(--stone-800, #27211f);
  font: inherit;
  font-size: 12px;
}
.portal-marriage-field-input:focus {
  border-color: var(--wine-700, #87243b);
  box-shadow: 0 0 0 2px rgba(104, 24, 43, 0.08);
  outline: none;
}
.portal-marriage-children-inputs {
  display: none;
  flex-direction: column;
  gap: 6px;
}
.portal-marriage-children-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.portal-marriage-child-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.portal-marriage-child-remove {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid #efc4bf;
  border-radius: 5px;
  background: #fff0ee;
  color: #a43732;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.portal-marriage-child-remove:hover { background: #fdd; border-color: #d88; }
.portal-marriage-child-add {
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 10px;
  border: 1.5px dashed var(--stone-300, #d8cec4);
  border-radius: 5px;
  background: transparent;
  color: var(--wine-700, #87243b);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.portal-marriage-child-add:hover { background: #fff3d8; border-color: var(--wine-600, #9b2d3f); }
.portal-marriage-field-children {
  grid-column: span 2;
}
.portal-marriage-field-select {
  flex: 1;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid var(--stone-300, #d8cec4);
  border-radius: 5px;
  background: #fff;
  color: var(--stone-800, #27211f);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  appearance: auto;
}
.portal-marriage-field-select:focus {
  border-color: var(--wine-700, #87243b);
  box-shadow: 0 0 0 2px rgba(104, 24, 43, 0.08);
  outline: none;
}
.portal-review-section.is-editing .portal-marriage-children-inputs { display: flex; }
.portal-review-section.is-editing .portal-marriage-field-children .portal-marriage-field-value { display: none; }
.portal-marriage-duration-auto {
  color: var(--stone-600, #57534e);
  font-size: 12px;
  font-weight: 600;
}
.portal-marriage-remove {
  display: none;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #efc4bf;
  border-radius: 6px;
  background: #fff0ee;
  color: #a43732;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.portal-marriage-remove:hover { background: #fdd; border-color: #d88; }
.portal-marriage-add {
  padding: 4px 12px;
  border: 1.5px dashed var(--stone-300, #d8cec4);
  border-radius: 6px;
  background: transparent;
  color: var(--wine-700, #87243b);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: none;
}
.portal-marriage-add:hover { background: #fff3d8; border-color: var(--wine-600, #9b2d3f); }
.portal-review-section.is-editing .portal-marriage-add { display: inline-block; }
.portal-review-section.is-editing .portal-marriage-field-value { display: none; }
.portal-review-section.is-editing .portal-marriage-field-input { display: block; }
.portal-review-section.is-editing .portal-marriage-remove { display: inline-grid; }
.portal-marriage-empty {
  margin: 0;
  padding: 14px;
  color: var(--stone-400, #a8a29e);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}
.portal-review-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 0 0 auto;
  padding: 13px 20px;
  border-top: 1px solid var(--stone-200, #e9e0d7);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 24px rgba(44, 7, 18, 0.06);
}
.portal-review-submit-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}
.portal-review-submit-actions .primary-button,
.portal-review-submit-actions .secondary-button {
  width: auto;
  min-width: 132px;
  margin: 0;
}

/* ── Tabs ── */
.portal-tabs-header {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--stone-200, #e9e0d7);
  margin-bottom: 20px;
}
.portal-tab {
  padding: 11px 20px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--stone-500, #8a807a);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.portal-tab:hover { color: var(--wine-800, #68182b); }
.portal-tab.active {
  color: var(--wine-800, #68182b);
  border-bottom-color: var(--gold-500, #d09a39);
}
.portal-tab-content {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.portal-profile-tabs .portal-tabs-header {
  overflow-x: auto;
  scrollbar-width: none;
}
.portal-profile-tabs .portal-tabs-header::-webkit-scrollbar { display: none; }
.portal-profile-tabs .portal-tab { flex: 0 0 auto; white-space: nowrap; }
.portal-profile-page {
  width: min(1170px, 100%);
  margin: 0 auto;
}
.portal-main:has(.portal-profile-page) {
  max-width: 1230px;
  padding-left: 30px;
  padding-right: 30px;
}
.portal-profile-hero {
  overflow: hidden;
  border: 1px solid #dfd2c9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px -28px rgba(44, 7, 18, 0.5);
}
.portal-profile-cover {
  position: relative;
  height: 132px;
  background:
    /* Gold zari border top */
    linear-gradient(180deg, rgba(212,175,55,0.18) 0%, transparent 10%),
    /* Gold zari border bottom */
    linear-gradient(0deg, rgba(212,175,55,0.22) 0%, transparent 14%),
    /* Diagonal brocade motifs */
    repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(212,175,55,0.05) 18px, rgba(212,175,55,0.05) 20px),
    repeating-linear-gradient(-45deg, transparent, transparent 18px, rgba(212,175,55,0.05) 18px, rgba(212,175,55,0.05) 20px),
    /* Zari dot motifs */
    radial-gradient(circle 2px at 30px 30px, rgba(212,175,55,0.14) 2px, transparent 2px),
    radial-gradient(circle 2px at 60px 60px, rgba(212,175,55,0.1) 2px, transparent 2px),
    radial-gradient(circle 1.5px at 45px 15px, rgba(212,175,55,0.12) 1.5px, transparent 1.5px),
    /* Woven silk horizontal threads */
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.018) 2px, rgba(255,255,255,0.018) 4px),
    /* Woven silk vertical threads */
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.012) 2px, rgba(255,255,255,0.012) 4px),
    /* Paisley-like elliptical motifs */
    radial-gradient(ellipse 42px 26px at 18% 38%, rgba(212,175,55,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 36px 21px at 52% 62%, rgba(212,175,55,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 46px 28px at 82% 32%, rgba(212,175,55,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 32px 19px at 36% 78%, rgba(212,175,55,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40px 24px at 68% 22%, rgba(212,175,55,0.06) 0%, transparent 70%),
    /* Base deep burgundy gradient */
    linear-gradient(135deg, #3D0F1B 0%, #5A1827 25%, #4A1220 50%, #5A1827 75%, #3D0F1B 100%);
  background-size:
    100% 100%, 100% 100%,
    40px 40px, 40px 40px,
    60px 60px, 60px 60px, 60px 60px,
    4px 4px, 4px 4px,
    100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
    100% 100%;
}
/* Horizontal zari stripes overlay */
.portal-profile-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(212,175,55,0.06) 38px, rgba(212,175,55,0.06) 40px);
  pointer-events: none;
}
/* Gold zari border at bottom edge */
.portal-profile-cover::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #D4AF37 0%, #F4E8C1 15%, #D4AF37 30%, #F4E8C1 45%, #D4AF37 55%, #F4E8C1 70%, #D4AF37 85%, #F4E8C1 100%);
  opacity: 0.5;
}
/* VVIP badge centered on cover */
.portal-cover-vvip-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  animation: vvip-shimmer 4s ease-in-out infinite;
}
.portal-cover-vvip-badge svg {
  width: 15px; height: 15px;
  fill: #D4AF37; stroke: none;
}
.portal-cover-vvip-badge span {
  color: #F4E8C1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@keyframes vvip-shimmer {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
/* Cover camera edit button */
.portal-cover-edit-btn {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.85);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.portal-cover-edit-btn:hover {
  background: rgba(0,0,0,0.65);
  color: #fff;
  transform: scale(1.08);
}
.portal-cover-edit-btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
/* Gold concierge strip */
.portal-profile-concierge-strip {
  display: flex;
  justify-content: flex-end;
  padding: 0;
}
.portal-profile-concierge-strip span {
  display: inline-block;
  padding: 7px 18px;
  border-bottom-left-radius: 10px;
  background: linear-gradient(90deg, #D4AF37 0%, #e6c74a 50%, #D4AF37 100%);
  color: #12080A;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(212,175,55,0.35);
}
/* View Biodata button */
.portal-profile-biodata-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #5A1827 0%, #3D0F1B 100%);
  color: #F4E8C1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px -8px rgba(90,24,39,0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.portal-profile-biodata-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(90,24,39,0.7);
}
.portal-profile-biodata-btn svg {
  width: 16px; height: 16px;
  fill: currentColor; stroke: none;
}
.portal-profile-identity {
  position: relative;
  display: flex;
  min-height: 158px;
  align-items: flex-start;
  padding: 20px 28px 20px 218px;
}
.portal-profile-avatar-wrap {
  position: absolute;
  top: -76px;
  left: 30px;
  width: 158px;
  height: 190px;
}
.portal-profile-avatar {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 8px;
  background: #68182b;
  color: #fff;
  box-shadow: 0 12px 28px -16px rgba(44, 7, 18, 0.75);
  font-size: 30px;
  font-weight: 850;
}
.portal-profile-avatar-edit {
  position: absolute;
  right: -9px;
  bottom: -9px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #d09a39;
  color: #2c0712;
  box-shadow: 0 8px 18px -10px rgba(44, 7, 18, 0.8);
  cursor: pointer;
}
.portal-profile-avatar-edit:hover { background: #efc66d; }
.portal-profile-avatar-edit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-profile-avatar.is-loading {
  background: #e9e0d7;
  box-shadow: none;
}
.portal-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-profile-identity-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}
.portal-profile-eyebrow,
.portal-profile-section-kicker {
  color: #87243b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.portal-profile-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.portal-profile-name-line h2,
.portal-profile-identity-copy > h2 {
  margin: 0;
  color: #2c0712;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: 0;
}
.portal-profile-identity-copy p {
  margin: 0;
  color: #5d5450;
  font-size: 13px;
}
.portal-profile-status {
  padding: 5px 8px;
  border: 1px solid #b8dfca;
  border-radius: 5px;
  background: #edf9f2;
  color: #237653;
  font-size: 10px;
  font-weight: 800;
}
.portal-profile-code {
  width: fit-content;
  margin-top: 3px;
  color: #87243b;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
}
.portal-profile-workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.portal-profile-nav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #dfd2c9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px -26px rgba(44, 7, 18, 0.55);
}
.portal-profile-nav-item {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #6e625d;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}
.portal-profile-nav-item:hover {
  background: #faf5f0;
  color: #68182b;
  transform: translateX(2px);
}
.portal-profile-nav-item.active {
  border-left-color: #d09a39;
  background: #68182b;
  color: #fff;
  box-shadow: 0 7px 16px -12px rgba(104, 24, 43, 0.9);
}
.portal-profile-nav-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 6px;
  background: #f3ece7;
  color: #87243b;
}
.portal-profile-nav-item.active .portal-profile-nav-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff3d8;
}
.portal-profile-nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-profile-nav-label {
  min-width: 0;
  flex: 1;
}
.portal-profile-nav-state {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border: 1px solid #b8dfca;
  border-radius: 50%;
  background: #edf9f2;
  color: #237653;
  font-size: 10px;
  font-weight: 850;
}
.portal-profile-nav-state:empty {
  border-color: #e2d8d1;
  background: #f7f2ee;
}
.portal-profile-nav-state.is-missing {
  border-color: #efc4bd;
  background: #fff0ee;
  color: #a43732;
}
.portal-profile-nav-item.active .portal-profile-nav-state {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.portal-profile-detail-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfd2c9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px -30px rgba(44, 7, 18, 0.55);
}
.portal-profile-section-heading {
  display: flex;
  min-height: 105px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #eadfd8;
  background: #fffdfb;
}
.portal-profile-section-heading > div:first-child { min-width: 0; }
.portal-profile-section-heading h3 {
  margin: 5px 0 3px;
  color: #2c0712;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
}
.portal-profile-section-heading p {
  margin: 0;
  color: #8a807a;
  font-size: 13px;
}
.portal-profile-panel-body {
  min-height: 420px;
  padding: 22px 26px 28px;
  background: #faf8f5;
}
.portal-profile-section-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.portal-profile-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #d8cec4;
  border-radius: 6px;
  background: #fff;
  color: #68182b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.portal-profile-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-profile-action.is-primary {
  border-color: #68182b;
  background: #68182b;
  color: #fff;
}
.portal-profile-action:hover { border-color: #87243b; background: #fff7f2; }
.portal-profile-action.is-primary:hover { background: #87243b; color: #fff; }
.portal-profile-action:disabled { cursor: wait; opacity: 0.65; }
.portal-profile-inline-status {
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1.5px solid #b8dfca;
  border-radius: 10px;
  background: #edf9f2;
  color: #237653;
  font-size: 11px;
  font-weight: 750;
}
.portal-profile-inline-status.is-missing {
  border-color: #efc4bd;
  background: #fff0ee;
  color: #a43732;
}
.portal-my-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 16px 18px;
  border: 1.5px solid var(--stone-200, #e9e0d7);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 18px -4px rgba(75, 16, 32, 0.05);
}
.portal-my-profile-row.is-wide { grid-column: 1 / -1; }
.portal-my-profile-row {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--stone-200, #e9e0d7);
  border-radius: 8px;
  background: #fdfbf8;
  box-shadow: 0 1px 2px rgba(75, 16, 32, 0.02);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.portal-my-profile-row:hover {
  border-color: #D4AF37;
  background: #ffffff;
  box-shadow: 0 4px 12px -2px rgba(75, 16, 32, 0.07);
  transform: translateY(-1px);
}
.portal-my-profile-row span {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  color: var(--wine-700, #87243b);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.portal-my-profile-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px;
  border: 1.5px solid var(--stone-200, #e9e0d7);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 18px -4px rgba(75, 16, 32, 0.05);
}
.portal-my-profile-edit-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}
.portal-my-profile-edit-field.is-wide { grid-column: 1 / -1; }
.portal-my-profile-edit-field > span {
  color: #87243b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.portal-my-profile-edit-field input,
.portal-my-profile-edit-field select,
.portal-my-profile-edit-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d8cec4;
  border-radius: 6px;
  background: #fff;
  color: #3d2d29;
  font: inherit;
  font-size: 13px;
}
.portal-my-profile-edit-field textarea { min-height: 86px; resize: vertical; }
.portal-my-profile-edit-field input:focus,
.portal-my-profile-edit-field select:focus,
.portal-my-profile-edit-field textarea:focus {
  border-color: #87243b;
  box-shadow: 0 0 0 3px rgba(104, 24, 43, 0.08);
  outline: none;
}
.portal-my-profile-subsection + .portal-my-profile-subsection { margin-top: 24px; }
.portal-my-profile-subsection h4 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid rgba(135, 36, 59, 0.14);
  background: linear-gradient(135deg, #fff5f3 0%, #fde8e3 100%);
  color: var(--wine-800, #68182b);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.portal-source-toolbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}
.portal-source-toolbar-actions .secondary-button { width: auto; margin: 0; }
.portal-my-profile-row strong {
  display: block;
  min-width: 0;
  color: var(--wine-950, #2c0712);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.portal-my-profile-row strong.is-empty {
  color: var(--stone-400, #a8a29e);
  font-weight: 500;
  font-style: italic;
}
.portal-profile-link {
  color: var(--wine-700, #87243b);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
  transition: color 0.15s;
}
.portal-profile-link:hover {
  color: var(--wine-900, #4b1020);
  text-decoration: underline;
}
.portal-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
}
.portal-social-links a {
  padding: 7px 10px;
  border: 1px solid #d8cec4;
  border-radius: 6px;
  color: #68182b;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.portal-social-links a:hover { border-color: #87243b; background: #fff7f2; }

/* ── Interests ── */
.portal-interests-list { display: flex; flex-direction: column; gap: 12px; }
.portal-interest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  border-left: 3px solid var(--gold-500, #d09a39);
}

/* ── Status Tracker ── */
.portal-status-tracker { display: flex; gap: 0; align-items: flex-start; padding: 20px 0; }
.portal-status-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding-top: 40px;
}
.portal-status-step::before {
  content: "";
  position: absolute;
  top: 16px; left: 0; right: 0;
  height: 4px;
  background: var(--stone-200, #e9e0d7);
  border-radius: 2px;
}
.portal-status-step:first-child::before { left: 50%; }
.portal-status-step:last-child::before { right: 50%; }
.portal-status-step.done::before { background: linear-gradient(90deg, var(--green-700, #237653), #2e9468); }
.portal-status-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--stone-200, #e9e0d7);
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.portal-status-step.done .portal-status-dot { background: linear-gradient(135deg, var(--green-700, #237653), #2e9468); }
.portal-status-step.current .portal-status-dot {
  background: linear-gradient(135deg, var(--wine-800, #68182b), var(--wine-700, #87243b));
  animation: pulse 1.5s infinite;
  box-shadow: 0 2px 12px rgba(104, 24, 43, 0.3);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(104,24,43,0.3); }
  50% { box-shadow: 0 0 0 10px rgba(104,24,43,0); }
}
.portal-status-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--stone-500, #8a807a);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.portal-status-step.done .portal-status-label { color: var(--green-700, #237653); }
.portal-status-step.current .portal-status-label { color: var(--wine-800, #68182b); }

/* ── Empty State ── */
.portal-empty-state {
  text-align: center;
  padding: 56px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.portal-empty-state h3 { font-size: 20px; color: var(--wine-950, #2c0712); margin: 0 0 8px; font-weight: 700; }
.portal-empty-state p { font-size: 15px; color: var(--stone-500, #8a807a); margin: 0 0 24px; }
.portal-loading {
  text-align: center;
  padding: 40px;
  color: var(--stone-400, #a8a29e);
  font-size: 14px;
}

/* ── Form Grid ── */
.portal-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.portal-form-section { margin-bottom: 22px; }
.portal-form-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--wine-950, #2c0712);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-100, #fff3d8);
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-declaration {
  background: linear-gradient(135deg, var(--gold-100, #fff3d8) 0%, #fff8eb 100%);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(208, 154, 57, 0.15);
}
.portal-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--stone-700, #5d5450);
  line-height: 1.6;
}
.portal-checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  accent-color: var(--wine-800, #68182b);
}
.portal-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
}

/* ── Wizard Popover ── */
.portal-wizard-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44, 7, 18, 0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.15s ease-out;
}
.portal-wizard-popover {
  background: #fff;
  border-radius: 20px;
  padding: 0;
  width: 92%;
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(44,7,18,0.25), 0 0 0 1px rgba(0,0,0,0.05);
  animation: slideUp 0.25s ease-out;
}
.portal-wizard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 24px 0;
}
.portal-wizard-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--wine-950, #2c0712);
  flex: 1;
}
.portal-wizard-step-label {
  font-size: 12px;
  color: var(--stone-400, #a8a29e);
  font-weight: 600;
}
.portal-popover-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--stone-400, #a8a29e);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s;
}
.portal-popover-close:hover { background: var(--stone-100, #f4eee7); color: var(--stone-800, #27211f); }
.portal-wizard-dots {
  display: flex;
  gap: 10px;
  padding: 14px 24px;
  justify-content: center;
}
.portal-wiz-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--stone-200, #e9e0d7);
  color: var(--stone-500, #8a807a);
  transition: all 0.25s;
}
.portal-wiz-dot.done { background: var(--green-700, #237653); color: #fff; box-shadow: 0 2px 6px rgba(35,118,83,0.3); }
.portal-wiz-dot.current { background: linear-gradient(135deg, var(--wine-800, #68182b), var(--wine-700, #87243b)); color: #fff; box-shadow: 0 2px 8px rgba(104,24,43,0.3); }
.portal-wizard-body { padding: 4px 24px 20px; }
.portal-wizard-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px 22px;
  gap: 12px;
}
.portal-wizard-footer .secondary-button,
.portal-wizard-footer .primary-button { min-width: 110px; font-weight: 700; }

/* ── Summary (declaration step) ── */
.portal-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.portal-summary-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: var(--ivory-50, #fffaf2);
  border-radius: 10px;
  border: 1px solid var(--stone-200, #e9e0d7);
}
.portal-summary-row span { font-size: 10px; color: var(--stone-400, #a8a29e); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; }
.portal-summary-row strong { font-size: 14px; color: var(--wine-950, #2c0712); }

/* ── Confirmed Tabbed View ── */
.portal-confirmed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #def7ec 0%, #ecfdf5 100%);
  border-radius: 12px;
  border: 1px solid rgba(35, 118, 83, 0.15);
}
.portal-confirmed-badge {
  background: linear-gradient(135deg, var(--green-700, #237653), #2e9468);
  color: #fff;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(35, 118, 83, 0.25);
}
.portal-confirmed-code {
  font-size: 14px;
  color: var(--stone-600, #5d5450);
  font-family: monospace;
  font-weight: 600;
  background: rgba(0,0,0,0.04);
  padding: 4px 10px;
  border-radius: 6px;
}
.portal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.portal-detail-item {
  padding: 12px 14px;
  background: var(--ivory-50, #fffaf2);
  border-radius: 10px;
  border: 1px solid var(--stone-200, #e9e0d7);
}
.portal-detail-item span {
  display: block;
  font-size: 10px;
  color: var(--stone-400, #a8a29e);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-bottom: 4px;
}
.portal-detail-item strong { font-size: 15px; color: var(--wine-950, #2c0712); }
.portal-confirmed-note {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--stone-500, #8a807a);
}
.portal-confirmed-note a {
  color: var(--wine-800, #68182b);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--gold-500, #d09a39);
  text-underline-offset: 3px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .portal-review-tab {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 7px 14px;
    font-size: 11px;
  }
  .portal-profile-workspace { grid-template-columns: 1fr; }
  .portal-profile-nav {
    position: static;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .portal-profile-nav::-webkit-scrollbar { display: none; }
  .portal-profile-nav-item {
    min-width: max-content;
    border-bottom: 3px solid transparent;
    border-left: 0;
  }
  .portal-profile-nav-item.active {
    border-bottom-color: #d09a39;
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .portal-header { padding: 10px 16px; }
  .portal-brand-title { display: none; }
  .portal-nav { padding: 8px 12px; }
  .portal-nav-link { padding: 7px 14px; font-size: 13px; }
  .portal-main { padding: 20px 16px; }
  .portal-login-card { padding: 32px 24px; }
  .portal-summary-grid, .portal-detail-grid { grid-template-columns: 1fr; }
  .portal-my-profile-grid { grid-template-columns: 1fr; padding: 12px; gap: 8px; }
  .portal-my-profile-row { min-height: auto; padding: 9px 12px; }
  .portal-profile-cover { height: 140px; }
  .portal-profile-identity {
    min-height: 174px;
    padding: 72px 16px 16px;
  }
  .portal-profile-avatar-wrap {
    top: -54px;
    left: 16px;
    width: 104px;
    height: 124px;
  }
  .portal-profile-name-line { align-items: flex-start; flex-direction: column; gap: 5px; }
  .portal-profile-name-line h2,
  .portal-profile-identity-copy > h2 { font-size: 20px; }
  .portal-profile-workspace { gap: 10px; margin-top: 10px; }
  .portal-profile-nav { padding: 6px; }
  .portal-profile-nav-item { min-height: 39px; padding: 6px 8px; }
  .portal-profile-nav-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .portal-profile-section-heading { min-height: 98px; padding: 16px; }
  .portal-profile-section-heading h3 { font-size: 18px; }
  .portal-profile-panel-body { min-height: 360px; padding: 16px; }
  .portal-my-profile-edit-grid { grid-template-columns: 1fr; }
  .portal-profile-section-actions { align-self: flex-start; }
  .portal-profile-action { min-width: 38px; padding: 7px 9px; }
  .portal-wizard-popover { width: 96%; border-radius: 16px; }
  .portal-page-header h1 { font-size: 22px; }
  .portal-review-overlay { padding: 8px; }
  .portal-review-shell {
    width: 100%;
    height: calc(100vh - 16px);
    min-height: 0;
  }
  .portal-review-launcher {
    align-items: stretch;
    flex-direction: column;
  }
  .portal-review-launcher .primary-button { width: 100%; }
  .portal-review-heading,
  .portal-review-submit-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .portal-review-heading { padding: 16px; }
  .portal-review-heading-actions { justify-content: space-between; }
  .portal-review-status { align-self: center; }
  .portal-review-tabs { padding: 8px 10px; gap: 6px; }
  .portal-review-tab { padding: 6px 12px; font-size: 11px; }
  .portal-review-tab::after { right: 10px; left: 10px; }
  .portal-review-body { padding: 10px 8px 16px; }
  .portal-review-section { padding: 12px; border-radius: 10px; }
  .portal-review-section-header { margin-bottom: 10px; }
  .portal-review-fields { grid-template-columns: 1fr; }
  .portal-review-field,
  .portal-review-field:nth-child(even),
  .portal-review-field.is-wide { min-height: 58px; padding: 10px 12px; }
  .portal-review-chart .si-chart-grid { grid-template-rows: repeat(4, 45px); }
  .portal-review-charts-row { flex-direction: column; }
  .portal-review-charts-parsed { flex-direction: column; }
  .portal-review-submit-actions { width: 100%; }
  .portal-review-submit-actions .primary-button,
  .portal-review-submit-actions .secondary-button {
    flex: 1 1 0;
    min-width: 0;
  }
  .portal-photo-stage { width: min(300px, 100%); }
  .portal-photo-slots { gap: 6px; }
  .portal-photo-slot.is-empty { min-height: 84px; }
  .portal-source-toolbar { align-items: stretch; flex-direction: column; }
  .portal-source-download { justify-content: center; }
  .portal-source-pdf { min-height: 480px; }
}

/* ── Portal search ── */
.portal-main:has(.portal-search),
.portal-main:has(.portal-shared-profile) {
  max-width: 1280px;
}

.portal-search { display: flex; flex-direction: column; gap: 20px; }

/* Quick search bar */
.portal-quick-search {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--stone-200, #e9e0d7);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(44, 7, 18, 0.06);
}

.portal-quick-body {
  display: grid;
  grid-template-columns: minmax(200px, 1.15fr) minmax(190px, 1fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.portal-quick-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.portal-quick-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--wine-900);
}

.portal-quick-search input,
.portal-quick-search select,
.portal-refine input:not([type="checkbox"]):not([type="radio"]),
.portal-refine select {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--stone-200, #e9e0d7);
  border-radius: 10px;
  background: var(--ivory-50, #fffaf2);
  font: inherit;
  font-size: 15px;
  color: var(--stone-800, #3a302c);
}

.portal-quick-search input:focus,
.portal-quick-search select:focus,
.portal-refine input:focus,
.portal-refine select:focus {
  outline: none;
  border-color: var(--wine-700);
  box-shadow: 0 0 0 3px rgba(104, 24, 43, 0.1);
}

.portal-quick-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  min-width: 132px;
  margin: 0;
  padding: 0 22px;
  font-size: 16px;
}

.portal-quick-submit svg,
.portal-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.portal-search-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 46px;
  padding: 3px;
  border: 1px solid var(--stone-200, #e9e0d7);
  border-radius: 999px;
  background: var(--ivory-50, #fffaf2);
}

.portal-search-segmented label { display: block; }
.portal-search-segmented input { position: absolute; opacity: 0; pointer-events: none; }

.portal-search-segmented span {
  display: grid;
  place-items: center;
  height: 100%;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--stone-600, #5d5450);
  cursor: pointer;
}

.portal-search-segmented input:checked + span { background: var(--wine-800); color: #fff; }
.portal-search-segmented input:focus-visible + span { outline: 2px solid var(--gold-500); }

.portal-search-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--stone-600, #5d5450);
}

/* Layout below the bar */
.portal-search-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* Refine panel: every change applies straight away, so it has no submit button on desktop. */
.portal-refine {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--stone-200, #e9e0d7);
  border-radius: 16px;
}

.portal-refine-form { display: flex; flex-direction: column; }

.portal-refine-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 12px;
  background: #fff;
  border-bottom: 1px solid var(--stone-200, #e9e0d7);
}

.portal-refine-head h2 { flex: 1; margin: 0; font-size: 17px; color: var(--wine-950); }

.portal-link-button {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--wine-700);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.portal-link-button:hover { text-decoration: underline; }
.portal-refine-close, .portal-refine-footer { display: none; }

.portal-refine-body { display: flex; flex-direction: column; padding: 6px 18px 18px; }

.portal-refine-group { border-bottom: 1px solid var(--stone-200, #e9e0d7); }

.portal-refine-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--wine-900);
  cursor: pointer;
  list-style: none;
}

.portal-refine-group > summary::-webkit-details-marker { display: none; }
.portal-refine-group > summary::after { content: "▾"; color: var(--stone-400, #a8a09a); transition: transform 0.15s; }
.portal-refine-group[open] > summary::after { transform: rotate(180deg); }

.portal-refine-group-body { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; }

.portal-check-list { display: flex; flex-direction: column; gap: 4px; }
.portal-check-list.is-scroll { max-height: 230px; overflow-y: auto; padding: 4px 10px 10px; }

.portal-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  font-size: 15px;
  color: var(--stone-800, #3a302c);
  cursor: pointer;
}

.portal-check input { width: 18px; height: 18px; accent-color: var(--wine-800); flex: none; }
.portal-check.is-disabled { color: var(--stone-400, #a8a09a); cursor: default; }

.portal-search-multi {
  border: 1px solid var(--stone-200, #e9e0d7);
  border-radius: 10px;
  background: var(--ivory-50, #fffaf2);
}

.portal-search-multi summary { padding: 11px 12px; font-size: 15px; cursor: pointer; }

.portal-search-multi summary b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 11px;
  background: var(--wine-800);
  color: #fff;
  font-size: 12px;
}

.portal-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--stone-200, #e9e0d7);
  font-size: 15px;
  font-weight: 700;
  color: var(--wine-900);
  cursor: pointer;
}

.portal-switch input { position: absolute; opacity: 0; pointer-events: none; }

.portal-switch-track {
  position: relative;
  width: 44px;
  height: 26px;
  flex: none;
  border-radius: 13px;
  background: #d9cfc6;
  transition: background 0.15s;
}

.portal-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}

.portal-switch input:checked + .portal-switch-track { background: var(--wine-800); }
.portal-switch input:checked + .portal-switch-track::after { transform: translateX(18px); }
.portal-switch input:focus-visible + .portal-switch-track { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* Toolbar above results */
.portal-search-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.portal-search-filter-toggle { display: none; }

.portal-search-count { flex: 1; font-size: 16px; color: var(--stone-600, #5d5450); }
.portal-search-count strong { color: var(--wine-950); font-size: 20px; }

.portal-shortlist-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--stone-200, #e9e0d7);
  border-radius: 10px;
  background: #fff;
  color: var(--wine-800);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.portal-shortlist-toggle.is-on { background: var(--wine-800); border-color: var(--wine-800); color: #fff; }
.portal-shortlist-toggle.is-on svg { fill: currentColor; }

.portal-search-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--stone-600, #5d5450); }

.portal-search-sort select {
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--stone-200, #e9e0d7);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.portal-view-toggle { display: flex; border: 1px solid var(--stone-200, #e9e0d7); border-radius: 10px; overflow: hidden; }

.portal-view-toggle button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 40px;
  border: 0;
  background: #fff;
  color: var(--stone-600, #5d5450);
  cursor: pointer;
}

.portal-view-toggle button.is-active { background: var(--gold-100); color: var(--wine-800); }

.portal-search-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.portal-search-chips:empty { display: none; }

.portal-search-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(135, 36, 59, 0.25);
  border-radius: 999px;
  background: var(--gold-100);
  color: var(--wine-900);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.portal-search-chip span { font-size: 16px; line-height: 1; }

/* Result cards: wide list by default, tiles in grid view */
.portal-search-results { display: flex; flex-direction: column; gap: 14px; transition: opacity 0.15s; }
.portal-search-results.is-loading { opacity: 0.55; pointer-events: none; }

.portal-match-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 190px;
  gap: 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--stone-200, #e9e0d7);
  border-radius: 16px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.portal-match-card:hover { border-color: var(--gold-500); box-shadow: 0 10px 28px rgba(44, 7, 18, 0.1); }

.portal-match-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #f6ead7, #efe0cc);
  cursor: pointer;
}

.portal-match-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.portal-match-initials { font-size: 42px; font-weight: 700; color: var(--wine-800); opacity: 0.55; }

.portal-match-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.portal-match-title { display: flex; flex-direction: column; gap: 4px; }
.portal-match-title a { cursor: pointer; }

.portal-match-title h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--wine-950);
  overflow-wrap: anywhere;
}

.portal-match-id { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--stone-600, #5d5450); font-weight: 600; }

.portal-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px 2px 6px;
  border-radius: 999px;
  background: #e6f4ec;
  color: #1f7a4d;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.portal-verified svg { width: 15px !important; height: 15px !important; }

.portal-match-lines { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }

.portal-match-lines li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  color: var(--stone-800, #3a302c);
}

.portal-match-lines svg { margin-top: 2px; color: var(--gold-600); }
.portal-match-lines span { min-width: 0; overflow-wrap: anywhere; }

.portal-match-community { margin: 0; font-size: 14px; color: var(--stone-600, #5d5450); }

.portal-match-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.portal-match-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  background: #fbe7c6;
  color: var(--wine-900);
  font-size: 12px;
  font-weight: 600;
}

.portal-match-tags span.is-muted { background: #f2ece6; color: var(--stone-600, #5d5450); }

.portal-match-actions { display: flex; flex-direction: column; justify-content: center; gap: 10px; }

.portal-btn-shortlist,
.portal-btn-interest,
.portal-btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.portal-btn-shortlist { border: 1.5px solid var(--wine-700); background: #fff; color: var(--wine-800); }
.portal-btn-shortlist.is-on { background: #fdecef; }
.portal-btn-shortlist.is-on svg { fill: #c0294a; stroke: #c0294a; }

.portal-btn-interest { border: 1.5px solid var(--gold-500); background: var(--gold-100); color: var(--wine-900); }
.portal-btn-interest.is-sent { border-color: var(--stone-200, #e9e0d7); background: #f4efe9; color: var(--stone-600, #5d5450); cursor: default; }

.portal-btn-view { border: 0; background: linear-gradient(135deg, var(--wine-900), var(--wine-700)); color: #fff; }
.portal-btn-view:hover { filter: brightness(1.08); }

.portal-btn-shortlist:focus-visible,
.portal-btn-interest:focus-visible,
.portal-btn-view:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* Grid view */
.portal-search[data-view="grid"] .portal-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.portal-search[data-view="grid"] .portal-match-card { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
.portal-search[data-view="grid"] .portal-match-actions { flex-direction: row; flex-wrap: wrap; }
.portal-search[data-view="grid"] .portal-match-actions > * { flex: 1 1 calc(50% - 5px); padding: 0 10px; font-size: 14px; }
.portal-search[data-view="grid"] .portal-btn-view { flex-basis: 100%; }

/* Loading placeholders */
.portal-match-card.is-skeleton { pointer-events: none; }
.portal-match-card.is-skeleton .portal-match-photo,
.portal-match-card.is-skeleton .portal-match-body span {
  background: linear-gradient(90deg, #f3ebe2 25%, #faf5ef 50%, #f3ebe2 75%);
  background-size: 200% 100%;
  animation: portal-skeleton 1.3s ease-in-out infinite;
}

.portal-match-card.is-skeleton .portal-match-body span { display: block; height: 14px; margin: 5px 0; border-radius: 7px; }
.portal-match-card.is-skeleton .portal-match-body span:nth-child(1) { width: 60%; height: 20px; }
.portal-match-card.is-skeleton .portal-match-body span:nth-child(4) { width: 40%; }

@keyframes portal-skeleton {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.portal-search-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--stone-200, #e9e0d7);
  border-radius: 16px;
}

.portal-search-empty h3 { margin: 0 0 6px; font-size: 19px; color: var(--wine-950); }
.portal-search-empty p { margin: 0 0 16px; font-size: 15px; color: var(--stone-600, #5d5450); }
.portal-search-empty .primary-button { width: auto; display: inline-block; }

.portal-search-more { display: flex; justify-content: center; margin-top: 22px; }
.portal-search-more .secondary-button { width: auto; min-height: 46px; font-size: 15px; }

/* ── Shared profile view ── */
.portal-back-link {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wine-700);
  cursor: pointer;
}

.portal-shared-hero {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 28px;
  padding: 22px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--stone-200, #e9e0d7);
  border-radius: 16px;
}

.portal-shared-photo {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f6ead7, #efe0cc);
}

.portal-shared-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.portal-shared-thumbs { display: flex; gap: 8px; margin-top: 10px; }

.portal-shared-thumbs button {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}

.portal-shared-thumbs button.is-active { border-color: var(--gold-500); }
.portal-shared-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.portal-shared-summary { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.portal-shared-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.portal-shared-summary h1 { margin: 0; font-size: 28px; color: var(--wine-950); }
.portal-shared-summary p { margin: 0; color: var(--stone-600, #5d5450); }
.portal-shared-facts { font-size: 16px; font-weight: 600; color: var(--wine-900) !important; }

.portal-contact-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff4dc, #fbe7c6);
  border: 1px solid rgba(208, 154, 57, 0.4);
}

.portal-contact-lock strong { display: block; color: var(--wine-950); margin-bottom: 2px; }
.portal-contact-lock span { font-size: 13px; color: var(--stone-600, #5d5450); }
.portal-contact-action { flex: none; text-align: right; }
.portal-contact-action p { margin: 0 0 8px; font-size: 13px; }
.portal-contact-action .primary-button,
.portal-contact-action .secondary-button { width: auto; margin: 0; white-space: nowrap; }
.portal-inline-error { margin: 8px 0 0 !important; color: #a43732 !important; font-size: 12px; }

.portal-shared-section {
  padding: 18px 22px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--stone-200, #e9e0d7);
  border-radius: 14px;
}

.portal-shared-section h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wine-800);
}

.portal-shared-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 22px;
  margin: 0;
}

.portal-shared-grid div { min-width: 0; }
.portal-shared-grid dt { font-size: 12px; color: var(--stone-400, #a8a09a); }
.portal-shared-grid dd { margin: 2px 0 0; font-size: 15px; color: var(--stone-800, #3a302c); overflow-wrap: anywhere; }

.portal-shared-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

/* South Indian chart grid, matching the NMS profile page. */
.portal-shared-charts .nms-chart-card { display: flex; flex-direction: column; gap: 8px; }
.portal-shared-charts .nms-chart-header {
  padding: 7px 10px;
  border-radius: 6px;
  background: #4f2230;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.portal-shared-charts .nms-chart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(64px, auto));
  border: 2px solid #4f403b;
  background: #fff;
}
.portal-shared-charts .nms-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 6px;
  border: 1px solid #4f403b;
  font-size: 11px;
  overflow: hidden;
}
.portal-shared-charts .nms-cell span { color: #745c54; font-size: 11px; font-weight: 700; }
.portal-shared-charts .nms-cell strong { color: #2d1d24; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.portal-shared-charts .nms-cell.nms-lagnam-cell { background: #fff5f2; box-shadow: inset 0 0 0 1.5px #c85028; }
.portal-shared-charts .nms-center {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid #4f403b;
  background: #fbf5ee;
  color: #3a0f1d;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}
.portal-shared-charts .nms-center small { color: #6f5650; font-size: 11px; font-weight: 600; }

.portal-shared-chart-image { display: block; max-width: 100%; margin-top: 16px; border-radius: 10px; }

}

/* Portal search: tablet and phone */
@media (max-width: 1100px) {
  .portal-quick-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-quick-submit { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .portal-search-layout { grid-template-columns: 1fr; }

  .portal-refine {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(380px, 92vw);
    max-height: none;
    border-radius: 0 16px 16px 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .portal-refine.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(44, 7, 18, 0.4); }

  .portal-refine-close {
    display: block;
    border: 0;
    background: none;
    font-size: 30px;
    line-height: 1;
    color: var(--wine-900);
    cursor: pointer;
  }

  .portal-refine-footer {
    display: block;
    position: sticky;
    bottom: 0;
    padding: 12px 18px 16px;
    background: #fff;
    border-top: 1px solid var(--stone-200, #e9e0d7);
  }

  .portal-refine-footer .primary-button { width: 100%; min-height: 50px; margin: 0; font-size: 16px; }

  .portal-search-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: 42px;
    margin: 0;
    font-weight: 700;
  }

  .portal-match-card { grid-template-columns: 140px minmax(0, 1fr); }
  .portal-match-actions { grid-column: 1 / -1; flex-direction: row; }
  .portal-match-actions > * { flex: 1; }

  .portal-shared-hero { grid-template-columns: 1fr; }
  .portal-shared-photo { max-width: 360px; }
}

@media (max-width: 600px) {
  .portal-quick-search { padding: 14px; }
  .portal-quick-body { grid-template-columns: 1fr 1fr; gap: 12px; }
  .portal-quick-gender, .portal-quick-body > .portal-quick-field:nth-child(2) { grid-column: 1 / -1; }
  .portal-quick-body > label.portal-quick-field:last-of-type { grid-column: 1 / -1; }

  .portal-search-count { order: -1; flex-basis: 100%; }
  .portal-search-sort span { display: none; }
  .portal-view-toggle { display: none; }

  .portal-match-card { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .portal-match-title h3 { font-size: 17px; }
  .portal-match-lines li { font-size: 14px; }
  .portal-match-actions { flex-wrap: wrap; gap: 8px; }
  .portal-match-actions > * { flex: 1 1 calc(50% - 4px); padding: 0 10px; font-size: 14px; }
  .portal-btn-view { flex-basis: 100%; }

  .portal-search[data-view="grid"] .portal-search-results { grid-template-columns: 1fr; }
  .portal-contact-lock { flex-direction: column; align-items: stretch; }
  .portal-contact-action { text-align: left; }
  .portal-shared-charts { grid-template-columns: 1fr; }
}

/* Page title row with an optional badge on the right */
.portal-page-header.has-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.portal-page-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fdecef, #fbe7c6);
  border: 1px solid rgba(135, 36, 59, 0.15);
}

.portal-page-badge-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wine-800);
  color: #fff;
  font-weight: 800;
}

.portal-page-badge strong { display: block; font-size: 15px; color: var(--wine-900); }
.portal-page-badge span { font-size: 13px; color: var(--stone-600, #5d5450); }

.portal-main:has(.portal-search) .portal-page-header { margin-bottom: 18px; }

/* Trust strip under the search results */
.portal-trust-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 16px 22px;
  border-radius: 14px;
  background: #fbeef0;
  border: 1px solid rgba(135, 36, 59, 0.12);
  color: var(--wine-900);
  font-size: 15px;
}

.portal-trust-strip > div { display: flex; align-items: center; gap: 8px; }
.portal-trust-strip svg { color: var(--wine-700); width: 20px !important; height: 20px !important; }
.portal-trust-lead { flex: 1 1 320px; font-weight: 600; }

@media (max-width: 900px) {
  .portal-header { flex-wrap: wrap; padding: 10px 16px; row-gap: 8px; }
  .portal-nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .portal-page-badge { flex: 1 1 100%; }
}

@media (max-width: 600px) {
  .portal-trust-strip { flex-direction: column; align-items: flex-start; }
}

/* ── Portal design system ──
   Shared tokens for the customer portal: one font pair (Inter for English, Noto Sans Tamil for
   Tamil), one accent colour, fixed sizes and radii. Later rules here override the earlier,
   page-by-page portal styles. */
.portal-shell {
  --nms-accent: #b3123f;
  --nms-accent-dark: #8a0e31;
  --nms-accent-soft: #fdecf0;
  --nms-ink: #23161a;
  --nms-muted: #6b5d60;
  --nms-line: #ece3dc;
  --nms-surface: #ffffff;
  --nms-radius: 14px;
  font-family: "Inter", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--nms-ink);
  background: linear-gradient(180deg, #fff8f6 0%, #fbf4ef 45%, #f7f1ec 100%);
}

.portal-shell button,
.portal-shell input,
.portal-shell select,
.portal-shell textarea { font-family: inherit; }

.portal-page-header h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nms-ink);
}

.portal-page-header p { color: var(--nms-muted); font-size: 15px; }
.portal-page-header::after { display: none; }

/* Light header: brand, menu with icons and an underline on the current page, user. */
.portal-header {
  padding: 0 28px;
  min-height: 68px;
  background: var(--nms-surface);
  border-bottom: 1px solid var(--nms-line);
  box-shadow: 0 2px 14px rgba(35, 22, 26, 0.06);
}

.portal-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; }

.portal-brand-logo {
  width: 48px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid #e2b45d;
  border-radius: 10px;
  background: #fef9ee;
  box-shadow: 0 3px 10px rgba(96, 36, 34, 0.16);
}

.portal-login-logo {
  width: 112px;
  height: 108px;
  margin: 0 auto 14px;
  border-radius: 16px;
}

.portal-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--nms-accent), #e0526f);
  color: #fff;
  box-shadow: 0 4px 12px rgba(179, 18, 63, 0.3);
}

.portal-brand-mark svg { width: 22px; height: 22px; fill: #fff; stroke: #fff; stroke-width: 1.4; }
.portal-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.portal-brand-title { color: var(--nms-accent-dark); font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.portal-brand-tagline { color: #D4AF37; font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

.portal-nav { align-self: stretch; gap: 2px; }

.portal-nav-link {
  position: relative;
  align-self: stretch;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #3d3236;
  font-size: 15px;
  font-weight: 600;
}

.portal-nav-link:hover { background: none; color: var(--nms-accent); }

.portal-nav-link.active {
  background: none;
  color: var(--nms-accent);
  box-shadow: inset 0 -3px 0 var(--nms-accent);
}

.portal-nav-icon { display: grid; place-items: center; }

.portal-nav-icon svg,
.portal-logout-btn svg,
.portal-refine-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-nav-badge {
  position: absolute;
  top: 12px;
  left: 30px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--nms-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.portal-nav-badge[hidden] { display: none; }

.portal-header-right { gap: 10px; }

.portal-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #efe3f6;
  color: #5b2c7a;
  font-size: 13px;
  font-weight: 800;
}

.portal-user-name { color: var(--nms-ink); font-size: 14px; font-weight: 600; }

.portal-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--nms-line);
  border-radius: 10px;
  background: #fff;
  color: var(--nms-muted);
  font-size: 14px;
  font-weight: 600;
}

.portal-logout-btn:hover { background: var(--nms-accent-soft); color: var(--nms-accent); border-color: transparent; }

/* Accent colour on the search page controls */
.portal-search-segmented input:checked + span { background: var(--nms-accent); }
.portal-quick-submit,
.portal-btn-view { background: linear-gradient(135deg, var(--nms-accent-dark), var(--nms-accent)); }
.portal-btn-shortlist { border-color: var(--nms-accent); color: var(--nms-accent); }
.portal-shortlist-toggle { color: var(--nms-accent); }
.portal-shortlist-toggle.is-on { background: var(--nms-accent); border-color: var(--nms-accent); }
.portal-check input { accent-color: var(--nms-accent); }
.portal-switch input:checked + .portal-switch-track { background: var(--nms-accent); }
.portal-link-button { color: var(--nms-accent); }
.portal-refine-head h2 { font-size: 18px; color: var(--nms-ink); }

/* Refine panel: icon beside every group */
.portal-refine-group > summary { justify-content: flex-start; gap: 10px; color: var(--nms-ink); }
.portal-refine-group > summary > span:last-child { flex: 1; }
.portal-refine-icon { display: grid; place-items: center; color: #4b3f43; }

.portal-check em {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 999px;
  background: #f4eeea;
  color: var(--nms-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.portal-switch { gap: 10px; border-bottom: 0; color: var(--nms-ink); }
.portal-switch > span:nth-child(2) { flex: 1; }

/* Two-handle age slider */
.portal-age-slider { position: relative; height: 28px; margin: 4px 4px 0; }

.portal-age-track {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 2px;
  background: #e6dcd5;
}

.portal-age-fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 2px; background: var(--nms-accent); }

.portal-age-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.portal-age-slider input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--nms-accent);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
}

.portal-age-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--nms-accent);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  pointer-events: auto;
}

.portal-age-slider input[type="range"]::-webkit-slider-runnable-track { background: none; }
.portal-age-slider input[type="range"]::-moz-range-track { background: none; }
.portal-age-slider input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid #f2b8c6; }

.portal-age-readout { margin: 6px 0 0; text-align: right; color: var(--nms-muted); font-size: 14px; font-weight: 600; }

@media (max-width: 900px) {
  .portal-header { padding: 8px 16px 0; min-height: 0; }
  .portal-nav { margin: 0 -16px; padding: 0 8px; border-top: 1px solid var(--nms-line); }
  .portal-nav-link { padding: 12px 14px; }
  .portal-nav-badge { top: 4px; left: 28px; }
  .portal-user-name, .portal-logout-btn span { display: none; }
}

@media (max-width: 600px) {
  .portal-brand-tagline { display: none; }
  .portal-page-header h1 { font-size: 24px; }
  .portal-nav-link { padding: 12px 10px; font-size: 14px; }
}

/* Refine panel, matching the reference: thin chevrons, pink slider track, end labels. */
.portal-refine-group > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-right: 2px solid #8a7d80;
  border-bottom: 2px solid #8a7d80;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s;
}

.portal-refine-group[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }

.portal-age-track { background: #f3c9d3; }

.portal-age-slider input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  background: var(--nms-accent-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.portal-age-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  background: var(--nms-accent-dark);
}

.portal-age-readout {
  display: flex;
  justify-content: space-between;
  margin: 2px 0 0;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
}

.portal-refine .portal-search-range select { padding: 0 10px; font-size: 14px; }

/* Customer discovery and shared profile experience */
.portal-shell {
  --nms-accent: #8f1737;
  --nms-accent-dark: #651126;
  --nms-accent-soft: #fbecf0;
  --nms-gold: #c58b2a;
  --nms-gold-soft: #fff5dc;
  --nms-green: #1e7656;
  --nms-green-soft: #eaf7f1;
  --nms-ink: #27181c;
  --nms-muted: #71656a;
  --nms-line: #e7ddd6;
  --nms-surface: #fffefd;
  background: #f7f7f8;
}

.portal-header {
  min-height: 76px;
  padding: 0 34px;
  border-bottom-color: #e4d8cf;
  box-shadow: 0 4px 20px rgba(55, 31, 35, 0.07);
}

.portal-brand { gap: 12px; }

.portal-brand-logo {
  width: 52px;
  height: 52px;
  border-color: #d9a641;
  border-radius: 50%;
  object-position: center;
  box-shadow: 0 3px 12px rgba(101, 17, 38, 0.16);
}

.portal-brand-title,
.portal-page-header h1,
.portal-quick-search-head h2,
.portal-shared-summary h1,
.portal-profile-action-panel h2 {
  font-family: "Cormorant Garamond", "Noto Sans Tamil", Georgia, serif;
  letter-spacing: 0;
}

.portal-brand-title {
  font-family: "Inter", "Noto Sans Tamil", system-ui, sans-serif;
  color: var(--nms-accent-dark);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.portal-brand-tagline {
  margin-top: 4px;
  color: #84746f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-nav { gap: 4px; }

.portal-nav-link {
  gap: 7px;
  padding: 0 15px;
  color: #4f4246;
  font-size: 14px;
  font-weight: 650;
}

.portal-nav-link::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  background: transparent;
}

.portal-nav-link.active { box-shadow: none; }
.portal-nav-link.active::after { background: linear-gradient(90deg, var(--nms-gold), var(--nms-accent)); }
.portal-nav-icon { color: #9a6975; }
.portal-nav-link.active .portal-nav-icon { color: var(--nms-accent); }

.portal-avatar { background: var(--nms-gold-soft); color: #835913; }
.portal-logout-btn { border-radius: 8px; }

.portal-main:has(.portal-search) {
  max-width: 1460px;
  padding: 30px 36px 42px;
}

.portal-main:has(.portal-shared-profile) {
  max-width: 1340px;
  padding: 24px 36px 48px;
}

.portal-main:has(.portal-shared-profile) > .portal-page-header { display: none; }

.portal-page-header h1 {
  color: var(--nms-accent-dark);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.02;
}

.portal-page-header p { margin-top: 7px; font-size: 14px; }

.portal-main:has(.portal-search) .portal-page-header {
  min-height: 88px;
  margin-bottom: 18px;
  padding: 6px 0 14px;
}

.portal-main:has(.portal-search) .portal-page-header h1 {
  font-family: "Inter", "Noto Sans Tamil", system-ui, sans-serif;
  color: #241b20;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.15;
}

.portal-page-badge {
  max-width: 430px;
  padding: 11px 15px;
  border: 1px solid #d9e9df;
  border-radius: 8px;
  background: #f3faf6;
}

.portal-page-badge-icon { width: 34px; height: 34px; background: var(--nms-green); }
.portal-page-badge strong { color: #225c46; }
.portal-page-badge span { color: #63706a; }

.portal-search { gap: 22px; }

.portal-quick-search {
  padding: 14px 16px 16px;
  border-color: #dfd2ca;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(61, 35, 39, 0.07);
  overflow: hidden;
}

.portal-quick-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid #eee4de;
  background: linear-gradient(90deg, #fffdf9, #fff7ea);
}

.portal-section-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--nms-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-quick-search-head h2 {
  margin: 0;
  color: var(--nms-ink);
  font-size: 25px;
  line-height: 1;
}

.portal-private-search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nms-green);
  font-size: 12px;
  font-weight: 700;
}

.portal-private-search svg { width: 16px; height: 16px; }
.portal-quick-body { padding: 0; }

.portal-quick-label {
  color: #67555b;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-quick-search input,
.portal-quick-search select,
.portal-refine input:not([type="checkbox"]):not([type="radio"]),
.portal-refine select {
  height: 44px;
  border-color: #ded4ce;
  border-radius: 7px;
  background: #fff;
  color: #32252a;
  font-size: 14px;
}

.portal-search-segmented {
  height: 44px;
  border-color: #ded4ce;
  border-radius: 7px;
  background: #fff;
}

.portal-search-segmented input {
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.portal-search-segmented span { border-radius: 5px; font-size: 14px; }
.portal-quick-submit { height: 44px; min-width: 120px; border-radius: 7px; font-size: 14px; }

.portal-search-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }

.portal-refine {
  position: relative;
  top: 0;
  max-height: none;
  overflow: visible;
  border-color: #dfd5cf;
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(61, 35, 39, 0.05);
}

.portal-refine-head { position: static; padding: 16px 17px 13px; }
.portal-refine-head h2 { font-size: 17px; }
.portal-refine-body { padding: 4px 17px 16px; }
.portal-refine-group > summary { min-height: 50px; padding: 12px 0; font-size: 14px; }
.portal-refine-group-body { gap: 8px; padding-bottom: 15px; }
.portal-refine-icon { color: var(--nms-accent); }
.portal-refine-icon svg { width: 18px; height: 18px; }
.portal-check { min-height: 32px; font-size: 14px; }
.portal-check input { width: 17px; height: 17px; accent-color: #bd1749; }
.portal-search-multi { border-radius: 7px; background: #fdfbf8; }
.portal-switch { font-size: 14px; }

.portal-refine .portal-age-slider {
  height: 24px;
  margin: 2px 5px 0;
}

.portal-refine .portal-age-track {
  top: 10px;
  height: 3px;
  border-radius: 2px;
  background: #e9dce0;
}

.portal-refine .portal-age-fill { background: var(--nms-accent); }

.portal-refine .portal-age-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.portal-refine .portal-age-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
}

.portal-refine .portal-age-slider input[type="range"]::-moz-range-track {
  height: 3px;
  background: transparent;
}

.portal-refine .portal-age-slider input[type="range"]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  margin-top: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--nms-accent);
  box-shadow: 0 1px 4px rgba(101, 17, 38, 0.28);
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
}

.portal-refine .portal-age-slider input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--nms-accent);
  box-shadow: 0 1px 4px rgba(101, 17, 38, 0.28);
  cursor: pointer;
  pointer-events: auto;
}

.portal-refine .portal-age-readout {
  margin-top: 1px;
  color: #7b6d71;
  font-size: 12px;
  font-weight: 600;
}

.portal-search-toolbar {
  min-height: 48px;
  margin-bottom: 8px;
  padding: 8px 12px;
  border: 1px solid #e2e2e6;
  border-radius: 8px;
  background: #fff;
}

.portal-search-count { color: #74676b; font-size: 14px; }
.portal-search-count strong { color: var(--nms-accent-dark); font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; }
.portal-shortlist-toggle,
.portal-search-sort select,
.portal-view-toggle { border-radius: 7px; }

.portal-view-toggle button { width: 40px; height: 40px; }
.portal-search-chip { background: #fff7e7; color: #6d4310; }

.portal-search-results { gap: 16px; }

.portal-match-card {
  grid-template-columns: 150px minmax(0, 1fr) 300px;
  gap: 20px;
  min-height: 190px;
  padding: 12px;
  border-color: #ded4ce;
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(50, 28, 32, 0.045);
}

.portal-match-card:hover {
  border-color: #d0a656;
  box-shadow: 0 12px 30px rgba(65, 34, 39, 0.1);
  transform: translateY(-1px);
}

.portal-match-photo {
  min-height: 186px;
  border-radius: 7px;
  background: linear-gradient(145deg, #f7ead9, #f2dfe3);
}

.portal-match-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(90, 50, 50, 0.08);
  pointer-events: none;
}

.portal-photo-verified,
.portal-shared-photo-verified {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(238, 249, 243, 0.95);
  color: var(--nms-green);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(25, 75, 55, 0.16);
}

.portal-photo-verified { right: 8px; bottom: 8px; padding: 6px 8px; }

/* Presence pill on the search card photo: green Online, amber Recently active, grey Offline. */
.portal-photo-presence {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(20, 16, 18, 0.62);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.portal-photo-presence i { width: 8px; height: 8px; border-radius: 50%; background: #a8a29e; box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.portal-photo-presence.is-online i { background: #22c55e; }
.portal-photo-presence.is-recent { color: #fde68a; }
.portal-photo-presence.is-recent i { background: #f59e0b; }
.portal-photo-presence.is-offline { color: #e7e5e4; }
.portal-photo-verified svg,
.portal-shared-photo-verified svg { width: 14px; height: 14px; }

.portal-photo-verified svg,
.portal-shared-photo-verified svg,
.portal-profile-topline svg,
.portal-action-privacy svg,
.portal-profile-assurance svg,
.portal-btn-shortlist svg,
.portal-btn-interest svg,
.portal-contact-action .primary-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-match-body { gap: 7px; padding: 3px 0; }
.portal-match-type { color: var(--nms-accent); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.portal-match-title h3 {
  color: var(--nms-ink);
  font-family: Inter, "Noto Sans Tamil", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.3;
}

.portal-match-title a:hover h3 { color: var(--nms-accent); }
.portal-match-id { font-size: 12px; }
.portal-match-heading-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.portal-verified { background: var(--nms-green-soft); color: var(--nms-green); }
.portal-match-lines { gap: 5px; padding-top: 2px; }
.portal-match-lines li { color: #51454a; font-size: 14px; }
.portal-match-lines svg { color: #ae7825; }
.portal-match-community { font-size: 13px; }
.portal-match-tags span { background: var(--nms-gold-soft); color: #754f17; }
.portal-match-tags span.is-muted { background: #f3eeea; color: #695e61; }

/* Bottom line of the details column: icon + text items split by thin dividers. */
.portal-match-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 6px;
  margin-top: auto;
  min-height: 42px;
  padding-top: 0;
  color: #62575a;
  font-size: 13px;
}

/* Right column: badge and the owner's About Me line at the top, buttons pinned to the bottom
   so they sit on the same line as the tag row in the details column. */
.portal-match-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  justify-content: flex-start;
  gap: 10px;
  padding: 4px 4px 0 18px;
  border-left: 1px solid #f0e9e2;
}
.portal-match-actions .portal-match-action-buttons { margin-top: auto; }
.portal-match-body { align-self: stretch; }

/* "% Match with your expectations" at the top of the right column. */
.portal-match-score {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.portal-match-score svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.portal-match-score small { font-size: 11px; font-weight: 600; opacity: 0.8; }
.portal-match-score.is-high { background: #dcfce7; color: #15803d; }
.portal-match-score.is-mid { background: #fdf3dc; color: #8c6d2d; }
.portal-match-score.is-low { background: #f3eeea; color: #6b5d60; }

.portal-match-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--nms-green-soft, #e8f6ee);
  color: var(--nms-green, #237653);
  font-size: 12px;
  font-weight: 700;
}
.portal-match-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.portal-match-summary {
  margin: 0;
  color: #4b4044;
  font-size: 13.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-match-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 12px;
  border-left: 1px solid #e7ddd6;
  color: #5d5154;
  font-weight: 500;
  line-height: 1.35;
}
.portal-match-meta-item:first-child { padding-left: 0; border-left: 0; }

.portal-match-meta-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: #a06a1d;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-match-action-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--nms-green-soft);
  color: var(--nms-green);
}

.portal-match-action-status svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.portal-match-action-status span { color: #5f7069; font-size: 10px; line-height: 1.35; }
.portal-match-action-status strong { display: block; color: var(--nms-green); font-size: 12px; }

.portal-match-action-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.portal-match-action-buttons .portal-btn-shortlist,
.portal-match-action-buttons .portal-btn-view {
  flex: 1 1 0;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
}

.portal-match-action-buttons .portal-btn-view svg { display: none; }

.portal-btn-shortlist,
.portal-btn-interest,
.portal-btn-view {
  min-height: 42px;
  border-radius: 7px;
  font-size: 13px;
}

.portal-btn-shortlist { border-color: #c8a3ad; color: var(--nms-accent); }
.portal-btn-interest { border-color: #dbbd79; background: var(--nms-gold-soft); color: #6d4611; }
.portal-btn-interest svg { width: 16px; height: 16px; }
.portal-btn-view { background: var(--nms-accent-dark); }
.portal-btn-view svg { width: 15px; height: 15px; }

.portal-search[data-view="grid"] .portal-search-results { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.portal-search[data-view="grid"] .portal-match-card { min-height: 0; padding: 12px; }
.portal-search[data-view="grid"] .portal-match-photo { min-height: 0; }
.portal-search[data-view="grid"] .portal-match-actions { display: grid; gap: 10px; padding: 12px 0 0; border-top: 1px solid #eee5df; border-left: 0; }
.portal-search[data-view="grid"] .portal-match-action-buttons { grid-template-columns: 1fr 1fr; }

.portal-trust-strip {
  gap: 14px 34px;
  padding: 15px 18px;
  border-color: #dce9e1;
  border-radius: 8px;
  background: #f4faf6;
  color: #315b49;
  font-size: 13px;
}

.portal-trust-strip svg { color: var(--nms-green); }

/* Dedicated public profile page */
.portal-shared-profile { min-height: 70vh; }

.portal-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 8px;
  color: #69595e;
  font-size: 13px;
}

.portal-back-link:hover { color: var(--nms-accent); }

.portal-profile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  margin-bottom: 12px;
  padding: 8px 14px;
  border: 1px solid #dce9e1;
  border-radius: 7px;
  background: #f3faf6;
  color: #315f4b;
  font-size: 12px;
  font-weight: 650;
}

.portal-profile-topline > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.portal-profile-topline svg { width: 17px; height: 17px; }
.portal-profile-topline-id { color: #6d625f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.portal-shared-hero {
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 34px;
  min-height: 430px;
  padding: 24px;
  margin-bottom: 20px;
  border-color: #ddd2cb;
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(63, 34, 39, 0.07);
}

.portal-shared-gallery { min-width: 0; }
.portal-shared-photo { position: relative; border-radius: 7px; background: linear-gradient(145deg, #f6ead7, #ecdde2); }
.portal-shared-photo-verified { right: 10px; bottom: 10px; padding: 7px 10px; }
.portal-shared-thumbs { gap: 9px; }
.portal-shared-thumbs button { width: 62px; height: 62px; border-radius: 6px; }
.portal-shared-thumbs button.is-active { border-color: var(--nms-accent); }

.portal-shared-summary { justify-content: center; gap: 10px; padding: 8px 10px 8px 0; }
.portal-shared-code { color: var(--nms-accent); font-size: 11px; letter-spacing: 0.1em; }

.portal-shared-summary h1 {
  color: var(--nms-accent-dark);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.portal-shared-intro { max-width: 650px; color: #6f6266 !important; font-size: 14px; line-height: 1.65; }

.portal-shared-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 8px 0 4px;
  border: 1px solid #eadfd8;
  border-radius: 7px;
  background: #eadfd8;
  overflow: hidden;
}

.portal-shared-highlights div { min-width: 0; padding: 11px 13px; background: #fffdf9; }
.portal-shared-highlights span { display: block; margin-bottom: 2px; color: #8a7b7e; font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.portal-shared-highlights strong { display: block; color: #3e2d32; font-size: 14px; overflow-wrap: anywhere; }

.portal-shared-summary-lines { display: grid; gap: 8px; margin: 3px 0; padding: 0; list-style: none; }
.portal-shared-summary-lines li { display: flex; align-items: center; gap: 10px; color: #9d6a22; }
.portal-shared-summary-lines svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; }
.portal-shared-summary-lines span { min-width: 0; }
.portal-shared-summary-lines small { display: block; color: #8a7c7f; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.portal-shared-summary-lines strong { display: block; color: #45383c; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }

.portal-shared-body-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}

.portal-shared-sections {
  border: 1px solid #ded4ce;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.portal-shared-section {
  margin: 0;
  padding: 24px 26px 26px;
  border: 0;
  border-bottom: 1px solid #ebe2dc;
  border-radius: 0;
  background: #fff;
}

.portal-shared-section:last-child { border-bottom: 0; }

.portal-shared-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}

.portal-shared-section-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--nms-gold-soft);
  color: #9b691e;
}

.portal-shared-section-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; }

.portal-shared-section h2,
.portal-shared-section-head h2 {
  margin: 0;
  color: #3b292f;
  font-family: "Cormorant Garamond", "Noto Sans Tamil", Georgia, serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.portal-shared-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.portal-shared-grid div {
  min-height: 64px;
  padding: 11px 12px;
  border-left: 2px solid #dfbf77;
  background: #fcfaf7;
}

.portal-shared-grid dt { color: #8b7b7e; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.portal-shared-grid dd { margin-top: 4px; color: #392b2f; font-size: 14px; font-weight: 600; }

.portal-shared-aside { position: sticky; top: 92px; display: grid; gap: 14px; }

.portal-profile-action-panel,
.portal-profile-assurance {
  border: 1px solid #ded4ce;
  border-radius: 8px;
  background: #fff;
}

.portal-profile-action-panel { padding: 22px; box-shadow: 0 8px 28px rgba(63, 34, 39, 0.06); }
.portal-profile-action-panel h2 { margin: 0 0 8px; color: var(--nms-accent-dark); font-size: 28px; line-height: 1.05; }
.portal-profile-action-panel > p { margin: 0; color: #74666a; font-size: 13px; line-height: 1.55; }

.portal-contact-action { display: grid; gap: 9px; margin-top: 18px; text-align: left; }
.portal-contact-action .primary-button,
.portal-contact-action .secondary-button,
.portal-contact-action .portal-btn-shortlist { width: 100%; min-height: 44px; margin: 0; }
.portal-contact-action .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.portal-contact-action .primary-button svg { width: 17px; height: 17px; }

.portal-action-privacy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eee5df;
  color: var(--nms-green);
}

.portal-action-privacy svg { width: 18px; height: 18px; flex: none; }
.portal-action-privacy span { color: #756a6c; font-size: 11px; line-height: 1.45; }
.portal-action-privacy strong { display: block; margin-bottom: 2px; color: #315f4b; font-size: 12px; }

.portal-profile-assurance { padding: 17px 18px; background: #f7fbf8; border-color: #dce9e1; }
.portal-profile-assurance h3 { margin: 0 0 12px; color: #315f4b; font-size: 13px; }
.portal-profile-assurance p { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: #5f6d66; font-size: 12px; }
.portal-profile-assurance svg { width: 16px; height: 16px; flex: none; color: var(--nms-green); fill: none; stroke: currentColor; }

.portal-shared-charts { gap: 16px; }
.portal-shared-charts .nms-chart-header { background: var(--nms-accent-dark); }
.portal-shared-chart-image { border: 1px solid #ded4ce; border-radius: 7px; }

@media (max-width: 1180px) {
  .portal-header { padding: 0 20px; }
  .portal-nav-link { padding: 0 10px; }
  .portal-brand-tagline { display: none; }
  .portal-quick-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-quick-submit { grid-column: 1 / -1; }
  .portal-match-card { grid-template-columns: 142px minmax(0, 1fr) 250px; gap: 16px; }
  .portal-match-action-buttons { grid-template-columns: 1fr; }
  .portal-shared-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .portal-header { min-height: 0; padding: 8px 16px 0; }
  .portal-brand-logo { width: 46px; height: 46px; }
  .portal-brand-title { font-size: 21px; }
  .portal-main:has(.portal-search),
  .portal-main:has(.portal-shared-profile) { padding: 24px 18px 38px; }
  .portal-main:has(.portal-search) .portal-page-header { padding-left: 15px; }
  .portal-page-header h1 { font-size: 34px; }
  .portal-page-badge { max-width: none; }
  .portal-search-layout { grid-template-columns: 1fr; }
  .portal-refine {
    position: fixed;
    top: 0;
    max-height: none;
    overflow-y: auto;
  }
  .portal-refine-head { position: sticky; }
  .portal-match-card { grid-template-columns: 150px minmax(0, 1fr); }
  .portal-match-actions { grid-column: 1 / -1; flex-direction: row; padding: 12px 0 0; border-top: 1px solid #eee5df; border-left: 0; }
  .portal-match-badge, .portal-match-summary { display: none; }
  .portal-match-action-status { flex: 1; }
  .portal-match-action-buttons { flex: 1; grid-template-columns: 1fr 1fr; }
  .portal-shared-hero { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; }
  .portal-shared-summary h1 { font-size: 36px; }
  .portal-shared-body-layout { grid-template-columns: 1fr; }
  .portal-shared-aside { position: static; grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr); }
}

@media (max-width: 680px) {
  .portal-header { row-gap: 8px; }
  .portal-brand-title { display: block; font-size: 19px; }
  .portal-brand-tagline { display: none; }
  .portal-nav { padding: 0 4px; }
  .portal-nav-link { padding: 11px 10px; font-size: 12px; }
  .portal-user-name { display: none; }
  .portal-main:has(.portal-search),
  .portal-main:has(.portal-shared-profile) { padding: 18px 12px 32px; }
  .portal-page-header.has-badge { display: block; }
  .portal-page-badge { margin-top: 14px; }
  .portal-page-header h1 { font-size: 30px; }
  .portal-quick-search-head { padding: 13px 14px 11px; }
  .portal-quick-search-head h2 { font-size: 22px; }
  .portal-private-search { font-size: 0; }
  .portal-private-search svg { width: 18px; height: 18px; }
  .portal-quick-body { grid-template-columns: 1fr 1fr; padding: 14px; }
  .portal-match-card { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; min-height: 0; padding: 10px; }
  .portal-match-photo { min-height: 144px; }
  .portal-photo-verified { right: 5px; bottom: 5px; padding: 5px; font-size: 0; }
  .portal-match-title h3 { font-size: 22px; }
  .portal-match-lines li:nth-child(n+3) { display: none; }
  .portal-match-community { display: none; }
  .portal-match-actions { gap: 7px; }
  .portal-match-action-status { display: none; }
  .portal-match-action-buttons { width: 100%; }
  .portal-search[data-view="grid"] .portal-search-results { grid-template-columns: 1fr; }
  .portal-profile-topline { align-items: flex-start; flex-direction: column; gap: 4px; }
  .portal-shared-hero { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
  .portal-shared-photo { max-width: none; }
  .portal-shared-summary { padding: 4px 2px 6px; }
  .portal-shared-summary h1 { font-size: 34px; }
  .portal-shared-highlights { grid-template-columns: 1fr 1fr; }
  .portal-shared-highlights div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .portal-shared-grid { grid-template-columns: 1fr 1fr; }
  .portal-shared-section { padding: 20px 15px 22px; }
  .portal-shared-aside { grid-template-columns: 1fr; }
  .portal-shared-charts { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .portal-brand-logo { width: 42px; height: 42px; }
  .portal-brand-title { font-size: 17px; }
  .portal-nav-link { padding: 10px 8px; }
  .portal-quick-body { grid-template-columns: 1fr; }
  .portal-quick-gender,
  .portal-quick-body > .portal-quick-field:nth-child(2),
  .portal-quick-body > label.portal-quick-field:last-of-type { grid-column: auto; }
  .portal-search-toolbar { align-items: stretch; }
  .portal-search-count { flex-basis: 100%; }
  .portal-shortlist-toggle,
  .portal-search-filter-toggle { flex: 1; justify-content: center; }
  .portal-search-sort { width: 100%; }
  .portal-search-sort select { flex: 1; }
  .portal-match-card { grid-template-columns: 96px minmax(0, 1fr); }
  .portal-match-photo { min-height: 128px; }
  .portal-match-id .portal-verified { display: none; }
  .portal-match-tags { display: none; }
  .portal-shared-grid { grid-template-columns: 1fr; }
}

/* Registration page fits one screen: no page title band, a slimmer hero and step bar. */
.portal-main:has(.portal-registration-page) { padding-top: 16px; padding-bottom: 20px; }
.portal-registration-hero { min-height: 0; padding: 14px 24px; gap: 18px; }
.portal-registration-hero h2 { font-size: 26px; }
.portal-registration-hero p { margin-top: 4px; }
.portal-registration-kicker { margin-bottom: 4px; }
.portal-registration-hero-mark { width: 60px; height: 60px; flex-basis: 60px; }
.portal-registration-steps li { min-height: 58px; padding: 10px 18px; }
.portal-registration-workspace { padding: 16px; }
.portal-registration-panel { padding: 18px 22px; }
.portal-registration-panel-heading { margin-bottom: 14px; padding-bottom: 12px; }

/* ── Welcome celebration after profile submit ── */
/* A full cream page (no blurred view behind), firecracker bursts and confetti, and the welcome
   card. The overlay sits outside .portal-shell, so it carries its own copy of the portal tokens. */
.portal-welcome {
  --nms-accent: #b3123f;
  --nms-accent-dark: #8a0e31;
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 76px 20px 18px;
  overflow-y: auto;
  background: rgba(44, 7, 18, 0.3);
  font-family: "Inter", "Noto Sans Tamil", system-ui, sans-serif;
  animation: portal-welcome-in 0.35s ease-out;
}

.portal-welcome-sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }

/* Firecracker: thin rays shoot out from one point and fade, then the burst relaunches. */
.portal-welcome-burst {
  position: absolute;
  width: 0;
  height: 0;
  transform: scale(var(--s, 1));
  animation: portal-burst 5s ease-out infinite;
}

.portal-welcome-burst::before,
.portal-welcome-burst::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid var(--c);
  border-radius: 50%;
  opacity: 0;
  animation: portal-firework-ring 5s ease-out infinite;
  animation-delay: inherit;
}

.portal-welcome-burst::after {
  inset: -4px;
  animation-delay: inherit;
}

.portal-welcome-burst i {
  position: absolute;
  left: -1px;
  bottom: 0;
  width: 2px;
  height: var(--len);
  border-radius: 2px;
  background: linear-gradient(to top, transparent, var(--c) 35%, #fff4d6);
  transform-origin: 50% 100%;
  transform: rotate(var(--a)) translateY(-14px) scaleY(0);
  animation: inherit;
  animation-name: portal-ray;
}

@keyframes portal-burst {
  0%, 100% { opacity: 1; }
}

@keyframes portal-ray {
  0% { transform: rotate(var(--a)) translateY(-10px) scaleY(0); opacity: 0; }
  6% { opacity: 1; }
  28% { transform: rotate(var(--a)) translateY(-24px) scaleY(1); opacity: 1; }
  55% { transform: rotate(var(--a)) translateY(-40px) scaleY(0.4); opacity: 0; }
  100% { transform: rotate(var(--a)) translateY(-40px) scaleY(0.4); opacity: 0; }
}

@keyframes portal-firework-ring {
  0%, 8% { transform: scale(0.1); opacity: 0; }
  12% { opacity: 0.9; }
  38% { transform: scale(5.5); opacity: 0; }
  100% { transform: scale(5.5); opacity: 0; }
}

.portal-welcome-confetti {
  position: absolute;
  top: -20px;
  width: 7px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.85;
  animation: portal-confetti-fall linear infinite;
}

.portal-welcome-confetti:nth-child(3n) { width: 9px; height: 5px; }
.portal-welcome-confetti:nth-child(4n) { width: 6px; height: 6px; border-radius: 50%; }

.portal-party-popper {
  position: fixed;
  bottom: 22px;
  width: 70px;
  height: 88px;
  transform-origin: 50% 100%;
  animation: portal-popper-bounce 5.6s ease-in-out infinite;
}

.portal-party-popper.is-left { left: 5vw; transform: rotate(-28deg); }
.portal-party-popper.is-right { right: 5vw; transform: rotate(28deg); }

.portal-party-popper b {
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 62px;
  overflow: hidden;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: #c32452;
  box-shadow: 0 6px 12px rgba(80, 21, 38, 0.2);
}

.portal-party-popper b::before,
.portal-party-popper b::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 12px;
  height: 80px;
  background: #f4b63f;
  transform: rotate(22deg);
}

.portal-party-popper b::before { left: 8px; }
.portal-party-popper b::after { right: 7px; background: #f284a3; }

.portal-party-popper i {
  position: absolute;
  left: 50%;
  bottom: 60px;
  width: 7px;
  height: 13px;
  border-radius: 2px;
  opacity: 0;
  animation: portal-party-piece 5.6s linear infinite;
}

.portal-party-popper i:nth-of-type(3n) { width: 10px; height: 5px; }
.portal-party-popper i:nth-of-type(4n) { width: 7px; height: 7px; border-radius: 50%; }

@keyframes portal-party-piece {
  /* Rise and fall take the same time (27% each): slowing to the top, then drifting down gently. */
  0%, 3% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1); }
  7% { opacity: 1; }
  30% { transform: translate3d(var(--pop-x1), var(--pop-y1), 0) rotate(var(--pop-rotate)); opacity: 1; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  48% { opacity: 1; }
  57% { transform: translate3d(var(--pop-x2), var(--pop-y2), 0) rotate(calc(var(--pop-rotate) * 1.6)); opacity: 0; }
  100% { transform: translate3d(var(--pop-x2), var(--pop-y2), 0) rotate(calc(var(--pop-rotate) * 1.6)); opacity: 0; }
}

@keyframes portal-popper-bounce {
  0%, 4%, 14%, 100% { scale: 1; }
  7% { scale: 1.1; }
  10% { scale: 0.96; }
}

.portal-welcome-petal {
  position: absolute;
  top: -28px;
  border-radius: 78% 22% 72% 28%;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.48), 0 2px 4px rgba(86, 24, 41, 0.14);
  opacity: 0.88;
  transform-origin: 50% 25%;
  animation: portal-petal-fall linear infinite;
}

@keyframes portal-confetti-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(24px, 55vh, 0) rotate(360deg); }
  100% { transform: translate3d(-16px, 110vh, 0) rotate(720deg); }
}

@keyframes portal-petal-fall {
  0% { transform: translate3d(0, -30px, 0) rotate(0deg) rotateY(0deg); opacity: 0; }
  8% { opacity: 0.9; }
  35% { transform: translate3d(var(--petal-drift), 34vh, 0) rotate(150deg) rotateY(110deg); }
  70% { transform: translate3d(var(--petal-back), 73vh, 0) rotate(310deg) rotateY(240deg); }
  100% { transform: translate3d(var(--petal-drift), 110vh, 0) rotate(520deg) rotateY(360deg); opacity: 0.72; }
}

@keyframes portal-welcome-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes portal-welcome-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes portal-check-pop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

.portal-welcome-card {
  position: relative;
  width: min(680px, 100%);
  padding: 68px 32px 22px;
  border: 1px solid rgba(232, 178, 58, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(150, 90, 40, 0.16);
  text-align: center;
  animation: portal-welcome-pop 0.45s 0.1s ease-out both;
}

.portal-welcome-card::before,
.portal-welcome-card::after {
  content: "";
  position: absolute;
  right: 22px;
  left: 22px;
  height: 1px;
  background: #e9b650;
}

.portal-welcome-card::before { top: 8px; }
.portal-welcome-card::after { bottom: 8px; }

.portal-welcome-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f4ecea;
  color: #6b5d60;
  cursor: pointer;
}

.portal-welcome-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.portal-welcome-logo {
  position: absolute;
  top: -62px;
  left: 50%;
  width: 124px;
  height: 124px;
  padding: 7px;
  border: 9px solid rgba(218, 167, 92, 0.28);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 24px rgba(86, 45, 32, 0.2);
  transform: translateX(-50%);
  z-index: 2;
}

.portal-welcome-logo > span {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid #d5a43e;
  border-radius: 50%;
  background: #fff9eb;
}

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

.portal-welcome-submitted {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin-bottom: 8px;
  padding: 4px 12px;
  border: 1px solid #bde2cf;
  border-radius: 999px;
  background: #eaf8f0;
  color: #237653;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-welcome-submitted svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.portal-welcome-check {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 11px;
  border-radius: 50%;
  background: var(--nms-accent-dark);
  box-shadow: 0 10px 26px rgba(179, 18, 63, 0.35), 0 0 0 8px rgba(179, 18, 63, 0.08);
  animation: portal-check-pop 0.6s 0.25s ease-out both;
}

.portal-welcome-check svg { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.portal-welcome-card h2 {
  margin: 0;
  color: #6e0f2c;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.05;
}

.portal-welcome-subtitle { margin: 6px 0 0; color: #23161a; font-size: 19px; font-weight: 600; }
.portal-welcome-message {
  display: grid;
  gap: 4px;
  margin: 11px auto 0;
  color: #5b4d51;
  line-height: 1.42;
}

.portal-welcome-message p { margin: 0; font-size: 14px; }
.portal-welcome-message p:first-child { margin-bottom: 2px; color: #321e24; font-size: 16px; }
.portal-welcome-message p:first-child span { margin-right: 5px; color: #75686c; }
.portal-welcome-message p:first-child strong { color: #861f3a; font-size: 18px; }
.portal-welcome-tamil { margin: 6px 0 0; color: #8a0e31; font-size: 15px; font-weight: 600; }

.portal-welcome-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 220px;
  margin: 2px auto -4px;
  opacity: 0.9;
}

.portal-welcome-flourish i { width: 68px; height: 1px; background: #dfa63a; }
.portal-welcome-flourish img { width: 48px; height: 34px; object-fit: contain; }

.portal-welcome-code {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin: 7px 0 2px;
  padding: 8px 22px;
  border: 1.5px dashed #e8b23a;
  border-radius: 7px;
  background: #fffaf0;
}

.portal-welcome-code span { color: #6b5d60; font-size: 12px; font-weight: 600; }
.portal-welcome-code strong { color: #23161a; font-family: Inter, system-ui, sans-serif; font-size: 20px; letter-spacing: 0; }

.portal-welcome-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 10px;
  padding: 0;
  list-style: none;
}

.portal-welcome-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.portal-welcome-steps li > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #f2ebe7;
  color: #6b5d60;
  font-weight: 800;
}

.portal-welcome-steps li.is-done > span { background: #1f7a4d; color: #fff; }
.portal-welcome-steps strong { color: #23161a; font-size: 14px; }
.portal-welcome-steps small { color: #6b5d60; font-size: 12px; }

.portal-welcome-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  color: #66564f;
  font-size: 11.5px;
  text-align: left;
}

.portal-welcome-note > span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #efdfbb;
  border-radius: 7px;
  background: #fff8e9;
  line-height: 1.35;
}

.portal-welcome-note > span > span { min-width: 0; }
.portal-welcome-note strong { display: block; margin-bottom: 1px; color: #745016; font-size: 12px; }
.portal-welcome-note svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #b57c17; stroke-width: 1.8; }

.portal-welcome-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.portal-welcome-actions button { min-height: 48px; border-radius: 7px; font-size: 14px; }
.portal-welcome-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.portal-welcome-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 14px 0 -2px;
  padding: 11px 0 0;
  border-top: 1px solid #f1e4da;
  list-style: none;
}

.portal-welcome-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  color: #3d3236;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.portal-welcome-features li + li { border-left: 1px solid #f1e4da; }

.portal-welcome-features li > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(150, 90, 40, 0.14);
  color: var(--nms-accent);
}

.portal-welcome-features svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.portal-welcome-features strong { color: #3c3034; font-size: 11px; font-weight: 700; }

@media (max-width: 560px) {
  .portal-welcome { padding: 64px 12px 12px; }
  .portal-welcome-card { padding: 57px 16px 16px; }
  .portal-welcome-logo { top: -52px; width: 104px; height: 104px; border-width: 7px; }
  .portal-welcome-card h2 { font-size: 34px; }
  .portal-welcome-subtitle { font-size: 16px; }
  .portal-welcome-message p { font-size: 12.5px; }
  .portal-welcome-message p:first-child { font-size: 14px; }
  .portal-welcome-message p:first-child strong { display: block; font-size: 16px; }
  .portal-welcome-tamil { font-size: 12px; }
  .portal-welcome-flourish { width: 170px; }
  .portal-welcome-flourish i { width: 50px; }
  .portal-welcome-flourish img { width: 42px; height: 30px; }
  .portal-welcome-steps strong { font-size: 12px; }
  .portal-welcome-steps small { font-size: 10px; }
  .portal-welcome-note { grid-template-columns: 1fr; font-size: 11px; }
  .portal-welcome-actions { grid-template-columns: 1fr; }
  .portal-welcome-features { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .portal-welcome-features li:nth-child(3) { border-left: 0; }
  .portal-party-popper { scale: 0.72; }
}

@media (max-height: 680px) {
  .portal-welcome { padding-top: 58px; }
  .portal-welcome-card { padding-top: 50px; }
  .portal-welcome-logo { top: -48px; width: 96px; height: 96px; border-width: 6px; }
  .portal-welcome-submitted { margin-bottom: 5px; }
  .portal-welcome-card h2 { font-size: 34px; }
  .portal-welcome-subtitle { margin-top: 3px; font-size: 16px; }
  .portal-welcome-message { margin-top: 7px; gap: 2px; }
  .portal-welcome-tamil { margin-top: 3px; }
  .portal-welcome-flourish { display: none; }
  .portal-welcome-code { margin-top: 7px; }
  .portal-welcome-steps { margin-top: 8px; margin-bottom: 7px; }
  .portal-welcome-note { margin-bottom: 8px; }
  .portal-welcome-note > span { min-height: 42px; padding: 6px 8px; }
  .portal-welcome-features { margin-top: 9px; padding-top: 8px; }
  .portal-welcome-features li > span { width: 34px; height: 34px; }
  .portal-welcome-features svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-welcome, .portal-welcome-card, .portal-welcome-check { animation: none; }
  .portal-welcome-burst i { animation: none; transform: rotate(var(--a)) translateY(-24px); opacity: 0.6; }
  .portal-welcome-confetti { display: none; }
  .portal-welcome-petal { display: none; }
  .portal-party-popper { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   VVIP Candidate Profile View — Pixel-Precise Luxury Layout
   Tokens: Wine #5A1827, Gold #C5A059, Body #FBF9F5, Card #FFF
   ══════════════════════════════════════════════════════════════ */

/* Container */
.portal-shared-profile { display: flex; flex-direction: column; gap: 0; max-width: 1200px; margin: 0 auto; }
.portal-main:has(.portal-shared-profile) { max-width: 1280px; padding: 0 32px 48px; background: #FBF9F5; }

/* ── Concierge Sub-Banner (dark ribbon) ── */
.vvip-ribbon { background: #3D0C15; margin: -32px -32px 24px; padding: 0; }
.vvip-ribbon-inner { max-width: 1200px; margin: 0 auto; padding: 14px 32px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.vvip-ribbon-nav { display: flex; align-items: center; gap: 8px; width: 100%; }
.vvip-ribbon-back { color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 600; text-decoration: none; }
.vvip-ribbon-back:hover { color: #fff; }

/* ── Hero Dossier Card ── */
.vvip-hero { background: #fff; border: 1px solid #EFEBE4; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.04); margin-bottom: 24px; }
.vvip-hero-grid { display: grid; grid-template-columns: 400px 1fr; }

/* Gallery */
.vvip-gallery { background: #f3ece3; }
.vvip-gallery-main { position: relative; aspect-ratio: 3/4; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #e9e0d7, #d8ccbc); }
.vvip-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.vvip-gallery-initials { font-size: 56px; font-weight: 850; color: rgba(90,24,39,0.12); }
.vvip-gallery-verified { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.92); backdrop-filter: blur(6px); color: #292524; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.vvip-gallery-verified svg { width: 14px; height: 14px; color: #15803d; }
.vvip-gallery-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); color: #fff; font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.vvip-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
.vvip-gallery-thumbs button { aspect-ratio: 1; border-radius: 8px; border: 2px solid transparent; overflow: hidden; padding: 0; cursor: pointer; background: #e0d6ca; }
.vvip-gallery-thumbs button.is-active { border-color: #C5A059; box-shadow: 0 0 0 1px #C5A059; }
.vvip-gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.vvip-thumb-more { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 8px; background: #f5f0e8; border: 1px solid #e0d6ca; color: #78716C; font-size: 11px; font-weight: 700; cursor: pointer; }
.vvip-thumb-more:hover { background: #ece5da; }

/* Snapshot (right side) */
.vvip-snapshot { padding: 28px 32px; display: flex; flex-direction: column; gap: 14px; }
.vvip-snapshot-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vvip-tag-code { font-family: monospace; font-size: 11px; font-weight: 700; color: #8C6D2D; background: #FDF5E0; border: 1px solid #E6CA85; padding: 3px 10px; border-radius: 6px; }
.vvip-tag-lineage { font-size: 10px; font-weight: 700; color: #5A1827; background: rgba(90,24,39,0.06); border: 1px solid rgba(90,24,39,0.12); padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.vvip-tag-lock { font-size: 10px; font-weight: 600; color: #78716C; }
.vvip-snapshot-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; font-weight: 700; color: #1C1917; margin: 0; line-height: 1.15; }
.vvip-snapshot-degree { font-size: 15px; font-weight: 500; color: #57534e; margin: -4px 0 0; }
.vvip-snapshot-meta { font-size: 13px; color: #78716C; margin: 0; }

/* Quick attribute tag ribbon */
.vvip-tag-ribbon { display: flex; flex-wrap: wrap; gap: 8px; }
.vvip-tag-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; background: #FDF5E0; border: 1px solid #E6D7B8; border-radius: 999px; font-size: 13px; font-weight: 600; color: #7C5A1E; }
.vvip-tag-pill svg { width: 15px; height: 15px; fill: none; stroke: #B88E3E; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Stats Row */
.vvip-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #FCFAF7; border: 1px solid #F2EDE4; border-radius: 12px; overflow: hidden; }
.vvip-stat { text-align: center; padding: 16px 14px; }
.vvip-stat + .vvip-stat { border-left: 1px solid #F2EDE4; }
.vvip-stat-lbl { font-size: 9px; font-weight: 750; color: #87243b; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 6px; }
.vvip-stat-val { font-size: 14px; font-weight: 700; color: #1C1917; margin: 0; }

/* Astro Bar */
.vvip-astro-bar { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #E9E1D4; border-radius: 12px; padding: 12px 16px; }
.vvip-astro-badge { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #C5A059, #B88E3E); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.vvip-astro-info { flex: 1; min-width: 0; }
.vvip-astro-main { font-size: 13px; font-weight: 700; color: #1C1917; margin: 0; }
.vvip-astro-detail { font-size: 11px; color: #78716C; margin: 2px 0 0; }
.vvip-astro-link { font-size: 10px; font-weight: 800; color: #5A1827; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; flex-shrink: 0; }
.vvip-astro-link:hover { color: #87243b; }

/* Action Buttons */
.vvip-actions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vvip-actions-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vvip-cta-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; background: #5A1827; color: #fff; font-size: 13px; font-weight: 600; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 4px 14px rgba(90,24,39,0.25); transition: background 0.15s; text-decoration: none; text-align: center; }
.vvip-cta-primary:hover { background: #45101C; }
.vvip-cta-primary svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vvip-cta-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border: 1px solid #d6d3d1; color: #292524; background: #fff; font-size: 13px; font-weight: 600; border-radius: 999px; cursor: pointer; transition: background 0.15s; }
.vvip-cta-outline:hover { background: #fafaf9; }
.vvip-cta-outline svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vvip-cta-concierge { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; background: #FAF5EC; border: 1px solid #E6D7B8; color: #7C5A1E; font-size: 13px; font-weight: 600; border-radius: 999px; cursor: pointer; transition: background 0.15s; }
.vvip-cta-concierge:hover { background: #F3E8D0; }
.vvip-cta-concierge svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vvip-btn-icon { width: 16px !important; height: 16px !important; flex-shrink: 0; fill: none !important; stroke: currentColor !important; stroke-width: 2 !important; stroke-linecap: round; stroke-linejoin: round; }
.vvip-cta-concierge { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; background: #FAF5EC; border: 1px solid #E6D7B8; color: #7C5A1E; font-size: 13px; font-weight: 600; border-radius: 12px; cursor: pointer; transition: background 0.15s; }
.vvip-cta-concierge:hover { background: #F3E8D0; }

/* ── Section Cards 01–09 ── */
.vvip-card { background: #fff; border: 1px solid #EFEBE4; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.04); margin-bottom: 20px; }
.vvip-card-head { display: flex; align-items: center; gap: 12px; padding: 18px 28px; border-bottom: 1px solid #F3EFEA; }
.vvip-pill { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #5A1827, #3D101A); color: #E6CA85; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.vvip-head-icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: #5A1827; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vvip-card-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; font-weight: 700; color: #1C1917; margin: 0; }
.vvip-card-sub { font-size: 12px; color: #8C827A; margin: 2px 0 0; }
.vvip-card-body { padding: 22px 28px; }

/* Field Grid */
.vvip-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vvip-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vvip-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.vvip-field { background: #FCFAF7; border: 1px solid #EFEBE4; border-radius: 10px; padding: 14px 16px; transition: border-color 0.15s; }
.vvip-field:hover { border-color: #C5A059; }
.vvip-field-lbl { font-size: 9px; font-weight: 750; color: #87243b; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 5px; }
.vvip-field-val { font-size: 13px; font-weight: 700; color: #1C1917; margin: 0; line-height: 1.4; }

/* Badges */
.vvip-badge-ok { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 10px; font-weight: 700; color: #15803D; background: #DCFCE7; border: 1px solid #86EFAC; padding: 3px 10px; border-radius: 999px; }
.vvip-badge-ok svg { width: 13px; height: 13px; }
.vvip-badge-lock { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 10px; font-weight: 600; color: #78716C; background: #f5f5f4; border: 1px solid #e7e5e4; padding: 3px 10px; border-radius: 999px; }
.vvip-badge-lock svg { width: 13px; height: 13px; }

/* Prose & Chips */
.vvip-prose { font-size: 14px; color: #57534e; line-height: 1.75; margin: 0; }
.vvip-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.vvip-chip { font-size: 12px; font-weight: 600; color: #5A1827; background: #FAF8F5; border: 1px solid #EFEBE4; padding: 6px 14px; border-radius: 999px; }

/* ── Card 08: Verification Shield Grid ── */
.vvip-shield-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vvip-shield-item { background: #FCFAF7; border: 1px solid #EFEBE4; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.vvip-shield-emoji { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.vvip-shield-item strong { font-size: 13px; font-weight: 700; color: #1C1917; display: block; }
.vvip-shield-item p { font-size: 11px; color: #78716C; line-height: 1.5; margin: 0; }
.vvip-shield-date { font-size: 10px; font-weight: 700; color: #15803D; margin-top: 4px; display: inline-block; }

/* ── Card 09: Contact Privacy Box ── */
.vvip-privacy-box { display: flex; align-items: flex-start; gap: 20px; background: #FCFBF7; border: 2px solid #E5D7B7; border-radius: 16px; padding: 24px; }
.vvip-privacy-lock { width: 52px; height: 52px; border-radius: 50%; background: #5A1827; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #E6CA85; }
.vvip-privacy-lock svg { width: 24px; height: 24px; fill: none; stroke: #E6CA85; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vvip-privacy-copy { flex: 1; min-width: 0; }
.vvip-privacy-title { font-size: 14px; font-weight: 700; color: #1C1917; margin: 0 0 6px; }
.vvip-privacy-text { font-size: 12px; color: #78716C; line-height: 1.6; margin: 0; }
.vvip-privacy-checks { font-size: 11px; font-weight: 600; color: #15803D; margin: 10px 0 0; }
.vvip-privacy-action { flex-shrink: 0; align-self: center; }

/* ── Relationship Manager Desk ── */
.vvip-rm { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #3D101A 0%, #5A1827 100%); border-radius: 16px; padding: 22px 28px; margin-bottom: 32px; box-shadow: 0 8px 24px -10px rgba(61,16,26,0.5); }
.vvip-rm-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #D4AF37, #E8D49A); display: flex; align-items: center; justify-content: center; color: #3D101A; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.vvip-rm-info { flex: 1; min-width: 0; }
.vvip-rm-label { font-size: 9px; font-weight: 700; color: #C5A059; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 3px; }
.vvip-rm-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 17px; font-weight: 700; color: #fff; margin: 0; }
.vvip-rm-role { font-size: 11px; color: rgba(255,255,255,0.55); margin: 2px 0 0; }
.vvip-rm-btn { padding: 10px 20px; border: 1px solid #C5A059; border-radius: 10px; background: rgba(197,160,89,0.12); color: #E8D49A; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s; flex-shrink: 0; }
.vvip-rm-btn:hover { background: rgba(197,160,89,0.25); }

/* ── Card 05: Lifestyle Sub-Boxes ── */
.vvip-lifestyle-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vvip-lifestyle-box { background: #FCFAF7; border: 1px solid #EFEBE4; border-radius: 12px; padding: 18px; }
.vvip-lifestyle-box-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #8C6D2D; }
.vvip-lifestyle-box-head svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vvip-lifestyle-box-head strong { font-size: 14px; font-weight: 700; color: #1C1917; }
.vvip-lifestyle-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vvip-habit-tag { display: inline-block; padding: 5px 12px; border: 1px solid #292524; border-radius: 6px; font-size: 12px; font-weight: 600; color: #292524; }
.vvip-hobby-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.vvip-hobby-list li { font-size: 12px; color: #292524; padding-left: 14px; position: relative; line-height: 1.4; }
.vvip-hobby-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #C5A059; }
.vvip-muted-text { font-size: 12px; color: #8C827A; margin: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .vvip-hero-grid { grid-template-columns: 1fr; }
  .vvip-gallery-main { aspect-ratio: 4/3; }
  .vvip-stats-row { grid-template-columns: 1fr 1fr; }
  .vvip-actions-grid { grid-template-columns: 1fr; }
  .vvip-grid-2, .vvip-grid-3, .vvip-grid-5 { grid-template-columns: 1fr; }
  .vvip-shield-grid { grid-template-columns: 1fr 1fr; }
  .vvip-rm { flex-direction: column; align-items: flex-start; gap: 12px; }
  .vvip-ribbon-inner { align-items: flex-start; }
  .vvip-actions-2x2 { grid-template-columns: 1fr; }
  .vvip-lifestyle-boxes { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   Main menu: six items, Discover and My Profile open dropdowns
   ══════════════════════════════════════════════════════════════ */
/* The older menu bar scrolled sideways (overflow-x: auto), which also clipped anything that
   hangs below it, so the dropdowns opened invisibly. On desktop the bar must not clip. */
.portal-nav { align-items: stretch; overflow: visible; }
.portal-nav-group { position: relative; display: flex; align-self: stretch; }
.portal-nav-group > .portal-nav-link { display: inline-flex; align-items: center; cursor: pointer; font-family: inherit; }
.portal-nav-link { white-space: nowrap; padding: 0 12px; font-size: 14.5px; }
.portal-nav-caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.portal-nav-group.is-open .portal-nav-caret,
.portal-nav-group:hover .portal-nav-caret { transform: rotate(180deg); }

.portal-nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  display: none;
  width: 330px;
  padding: 10px;
  border: 1px solid #eadfd5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px -16px rgba(61, 16, 26, 0.35);
}
.portal-nav-group:last-child .portal-nav-menu { left: auto; right: 0; }
.portal-nav-group.is-open .portal-nav-menu,
.portal-nav-group:hover .portal-nav-menu,
.portal-nav-group:focus-within .portal-nav-menu { display: block; }
.portal-nav-menu-title { margin: 2px 8px 8px; color: #8c6d2d; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.portal-nav-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #2c1a1f;
  cursor: pointer;
}
.portal-nav-menu-item:hover,
.portal-nav-menu-item:focus { background: #faf5ec; outline: none; }
.portal-nav-menu-item.is-current { background: #f9eef0; }
.portal-nav-menu-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; background: #fdf5e0; color: #8c6d2d; }
.portal-nav-menu-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.portal-nav-menu-item strong { display: block; font-size: 13.5px; font-weight: 700; }
.portal-nav-menu-item small { display: block; margin-top: 1px; color: #8a7f7a; font-size: 12px; }

@media (max-width: 900px) {
  .portal-nav { overflow-x: auto; scrollbar-width: none; }
  .portal-nav-menu { position: fixed; top: auto; left: 12px; right: 12px; width: auto; }
}

@media (min-width: 1051px) and (max-width: 1380px) {
  .portal-header { gap: 12px; padding-inline: 22px; }
  .portal-brand-title { font-size: 18px; }
  .portal-brand-tagline,
  .portal-account-name,
  .portal-account-trigger .portal-nav-caret { display: none; }
  .portal-nav-link { gap: 5px; padding-inline: 8px; font-size: 13.5px; }
}

@media (min-width: 901px) and (max-width: 1050px) {
  .portal-header { flex-wrap: wrap; min-height: 0; row-gap: 8px; padding: 8px 16px 0; }
  .portal-brand-tagline,
  .portal-account-name,
  .portal-account-trigger .portal-nav-caret { display: none; }
  .portal-nav { order: 3; flex-basis: 100%; justify-content: flex-start; margin: 0 -16px; padding: 0 8px; overflow-x: auto; border-top: 1px solid var(--nms-line); scrollbar-width: none; }
  .portal-nav-link { min-height: 48px; padding: 0 12px; }
}

/* ── Discover preset pages ── */
.portal-search.is-preset .portal-search-layout { grid-template-columns: minmax(0, 1fr); }
.portal-discover-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
  padding: 22px 26px;
  border: 1px solid #efe6dc;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffdf9 0%, #fbf3e6 100%);
}
.portal-discover-kicker { display: block; color: #8c6d2d; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.portal-discover-head h1,
.portal-notice h1 { margin: 4px 0 4px; color: #3d101a; font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; font-weight: 700; }
.portal-discover-head p { margin: 0; color: #6b5d60; font-size: 14px; }

.portal-id-search { display: flex; gap: 8px; min-width: min(420px, 100%); }
.portal-id-search input { flex: 1; min-height: 44px; padding: 0 14px; border: 1px solid #dccfc3; border-radius: 10px; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.portal-id-search input:focus { border-color: #c5a059; outline: 2px solid rgba(197, 160, 89, 0.25); }
.portal-id-search .primary-button { display: inline-flex; align-items: center; gap: 6px; width: auto; margin: 0; }
.portal-id-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.portal-save-search { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid #e6d7b8; border-radius: 8px; background: #faf5ec; color: #7c5a1e; font-size: 13px; font-weight: 700; cursor: pointer; }
.portal-save-search:hover { background: #f3e8d0; }
.portal-save-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── Why this result ── */
.portal-match-why { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 12px; line-height: 1.4; }
.portal-match-why-label { color: #8a7f7a; font-weight: 700; }
.portal-match-why .is-met { color: #15803d; font-weight: 600; }
.portal-match-why .is-missed { color: #a8a29e; }

/* ── Saved searches ── */
.portal-saved-list { display: grid; gap: 12px; }
.portal-saved-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border: 1px solid #efe6dc; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04); }
.portal-saved-copy h3 { margin: 0 0 8px; color: #2c1a1f; font-size: 16px; }
.portal-saved-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.portal-saved-chips span { padding: 3px 10px; border-radius: 999px; background: #fdf5e0; color: #7c5a1e; font-size: 12px; font-weight: 600; }
.portal-saved-copy small { color: #8a7f7a; font-size: 12px; }
.portal-saved-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.portal-saved-actions .primary-button,
.portal-saved-actions .secondary-button { display: inline-flex; align-items: center; gap: 6px; width: auto; margin: 0; }
.portal-saved-actions svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── Coming-soon notices (Messages, Horoscope Matches) ── */
.portal-notice { max-width: 640px; margin: 40px auto; padding: 40px 36px; border: 1px solid #efe6dc; border-radius: 18px; background: linear-gradient(160deg, #fffdf9, #fbf3e6); text-align: center; box-shadow: 0 10px 30px -18px rgba(61, 16, 26, 0.35); }
.portal-notice-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px; border-radius: 50%; background: #5a1827; color: #e6ca85; }
.portal-notice-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-notice p { margin: 8px auto 22px; max-width: 520px; color: #5d5154; font-size: 15px; line-height: 1.65; }
.portal-notice-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.portal-notice-actions a { display: inline-flex; align-items: center; gap: 7px; width: auto; margin: 0; }
.portal-notice-actions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── My Advisor ── */
.portal-advisor { display: grid; gap: 18px; max-width: 1000px; margin: 0 auto; }
.portal-advisor-card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px 30px; border-radius: 18px; background: linear-gradient(135deg, #3d101a 0%, #5a1827 100%); color: #f4e8c1; box-shadow: 0 14px 34px -16px rgba(61, 16, 26, 0.55); }
.portal-advisor-avatar { display: grid; place-items: center; width: 68px; height: 68px; flex: 0 0 68px; border-radius: 50%; background: linear-gradient(135deg, #d4af37, #e8d49a); color: #3d101a; font-size: 22px; font-weight: 800; }
.portal-advisor-copy { flex: 1; min-width: 220px; }
.portal-advisor-label { color: #c5a059; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.portal-advisor-copy h1 { margin: 4px 0; color: #fff; font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; }
.portal-advisor-copy p { margin: 0; color: rgba(255, 255, 255, 0.65); font-size: 13.5px; }
.portal-advisor-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.portal-advisor-btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 18px; border: 1px solid #c5a059; border-radius: 999px; background: rgba(197, 160, 89, 0.12); color: #e8d49a; font-size: 13.5px; font-weight: 700; }
.portal-advisor-btn.is-gold { background: linear-gradient(135deg, #d4af37, #e8d49a); color: #3d101a; border-color: transparent; }
.portal-advisor-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.portal-advisor-services { padding: 26px 30px; border: 1px solid #efe6dc; border-radius: 18px; background: #fff; }
.portal-advisor-services h2 { margin: 0 0 16px; color: #3d101a; font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; }
.portal-advisor-services ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.portal-advisor-services li { display: flex; gap: 12px; }
.portal-advisor-services li svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: #8c6d2d; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-advisor-services strong { display: block; color: #2c1a1f; font-size: 14px; }
.portal-advisor-services li span { color: #6b5d60; font-size: 13px; line-height: 1.5; }

@media (max-width: 760px) {
  .portal-saved-item { flex-direction: column; align-items: flex-start; }
  .portal-advisor-services ul { grid-template-columns: 1fr; }
}

/* ── Empty results: same elegant card as the coming-soon notices ── */
.portal-search-empty.portal-empty-rich {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  margin: 24px auto;
  padding: 40px 36px;
  border: 1px solid #efe6dc;
  border-radius: 18px;
  background: linear-gradient(160deg, #fffdf9, #fbf3e6);
  text-align: center;
  box-shadow: 0 10px 30px -18px rgba(61, 16, 26, 0.35);
}
.portal-empty-rich h3 { margin: 4px 0 6px; color: #3d101a; font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; font-weight: 700; }
.portal-empty-rich p { margin: 0 auto 22px; max-width: 500px; color: #5d5154; font-size: 15px; line-height: 1.65; }
.portal-empty-rich .portal-notice-actions { margin-top: 0; }

/* Buttons in notices and empty states: size to their label, never clip the text. */
.portal-notice-actions .primary-button,
.portal-notice-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 46px;
  margin: 0;
  padding: 0 22px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  font-size: 14.5px;
}
.portal-notice-actions svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Discover submenu pages and My Matches have no filter sidebar, so they use a narrower,
   centred column (about 70% of the full search width). Search Profiles stays full width. */
.portal-search.is-preset {
  width: min(1020px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* Refine panel additions: specific degree / job box, city + native pair, sub-headings */
.portal-refine-group-body .portal-refine-specific { margin-top: 10px; }
.portal-refine-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.portal-refine-pair input { min-width: 0; }
.portal-refine-sub { margin: 4px 0 6px; color: #8c6d2d; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.portal-refine-sub + .portal-check-list { margin-bottom: 10px; }

/* "Matches you on" line: only what matches, as small soft-green pills */
.portal-match-why { align-items: center; gap: 6px; }
.portal-match-why-label { display: inline-flex; align-items: center; gap: 5px; color: #6b5d60; font-size: 12px; font-weight: 700; }
.portal-match-why-label svg { width: 13px; height: 13px; fill: #b3123f; stroke: none; }
.portal-match-why .is-met { padding: 2px 9px; border-radius: 999px; background: #ecfdf3; color: #15803d; font-size: 12px; font-weight: 600; }

/* ── Candidate view: hero stats icons, horoscope snapshot, actions (v2) ── */
.vvip-stats-row .vvip-stat { display:flex; flex-direction:column; align-items:center; gap:4px; padding:16px 12px; }
.vvip-stat-icon { display:inline-flex; width:34px; height:34px; border-radius:50%; align-items:center; justify-content:center; background:#fff; color:#7a1f2b; border:1px solid #ecdcb8; margin-bottom:4px; }
.vvip-stat-icon .vvip-btn-icon { width:16px; height:16px; }
.vvip-astro-bar { display:grid !important; grid-template-columns:auto 1fr auto; align-items:center; gap:20px; padding:16px 20px; border-radius:18px; border:1px solid #ecdcb8; background:linear-gradient(135deg,#fffaf0,#fdf3e1); }
.vvip-astro-head { display:flex; align-items:center; gap:12px; padding-right:20px; border-right:1px solid #ecdcb8; }
.vvip-astro-badge { width:44px !important; height:44px !important; border-radius:50%; display:inline-flex !important; align-items:center; justify-content:center; background:linear-gradient(135deg,#c9a45c,#a8823a); color:#fff; flex:none; }
.vvip-astro-badge .vvip-btn-icon { width:20px; height:20px; }
.vvip-astro-title { margin:0; font-weight:700; color:#3b1219; font-size:15px; }
.vvip-astro-detail { margin:2px 0 0; font-size:12px; color:#8a7a66; }
.vvip-astro-cells { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.vvip-astro-cell { display:flex; align-items:center; gap:10px; min-width:0; }
.vvip-astro-cell-icon { width:32px; height:32px; flex:none; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; background:#fff; color:#a8823a; border:1px solid #ecdcb8; }
.vvip-astro-cell-icon .vvip-btn-icon { width:16px; height:16px; }
.vvip-astro-cell-lbl { margin:0; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:#7a1f2b; font-weight:700; }
.vvip-astro-cell-val { margin:2px 0 0; font-size:15px; font-weight:700; color:#2a1a12; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vvip-astro-link { border:1px solid #7a1f2b; background:#fff; color:#7a1f2b; border-radius:999px; padding:8px 16px; font-weight:700; font-size:12.5px; cursor:pointer; white-space:nowrap; }
.vvip-astro-link:hover { background:#7a1f2b; color:#fff; }
.vvip-actions-2x2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.vvip-actions-2x2 > * { display:inline-flex !important; align-items:center; justify-content:center; gap:10px; min-height:56px; }
.vvip-cta-outline.is-status { color:#8a6a2a; background:#fffaf0; border-color:#ecdcb8; opacity:1; }
.vvip-cta-shortlist .vvip-btn-icon { color:#c0392b; }
.vvip-cta-shortlist.is-on { border-color:#e8b4ad; background:#fdf1ef; color:#a12c22; }
@media (max-width:900px) {
  .vvip-astro-bar { grid-template-columns:1fr; }
  .vvip-astro-head { border-right:0; padding-right:0; }
  .vvip-astro-cells { grid-template-columns:1fr 1fr; }
}

/* ── Candidate view v3: compact stats, aligned horoscope row ── */
.vvip-stats-row { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)); }
.vvip-stats-row .vvip-stat { flex-direction:row !important; align-items:center; justify-content:flex-start; gap:10px; padding:12px 14px !important; text-align:left; min-width:0; }
.vvip-stat-icon { margin:0 !important; width:30px; height:30px; flex:none; }
.vvip-stat-text { min-width:0; }
.vvip-stats-row .vvip-stat-lbl { margin:0; font-size:10px; letter-spacing:.08em; }
.vvip-stats-row .vvip-stat-val { margin:2px 0 0; font-size:14.5px; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vvip-astro-bar { grid-template-columns:1fr auto !important; padding:12px 16px !important; }
.vvip-astro-cells { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:16px; }
.vvip-astro-cell > div { min-width:0; }
@media print { .portal-nav, .vvip-ribbon, .vvip-actions-2x2, .vvip-astro-link { display:none !important; } }
@media (max-width:900px) { .vvip-stats-row { grid-template-columns:1fr 1fr; } .vvip-astro-bar { grid-template-columns:1fr !important; } }

/* Candidate view: three actions on one line */
.vvip-actions-2x2 { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
.vvip-actions-2x2 > * { white-space:nowrap; padding-left:12px; padding-right:12px; }
@media (max-width:900px) { .vvip-actions-2x2 { grid-template-columns:1fr !important; } }

/* Candidate view: credentials line + 3 stats */
.vvip-credentials { display:flex; flex-wrap:wrap; align-items:center; gap:10px 22px; margin:6px 0 18px; }
.vvip-cred { display:inline-flex; align-items:center; gap:8px; font-size:16px; color:#5a4a3c; }
.vvip-cred .vvip-btn-icon { width:17px; height:17px; color:#a8823a; flex:none; }
.vvip-cred.is-role { font-weight:700; color:#3b1219; font-size:17px; }
.vvip-cred.is-role + .vvip-cred { padding-left:22px; border-left:1px solid #ecdcb8; }
.vvip-stats-row { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
.vvip-stat-note { margin:1px 0 0; font-size:12px; color:#8a7a66; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Candidate view: name + pills row, stacked credentials, astro badge */
.vvip-name-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-bottom:14px; }
.vvip-name-row .vvip-snapshot-name { margin:0; }
.vvip-name-row .vvip-tag-ribbon { margin:0; }
.vvip-credentials { display:flex !important; flex-direction:column; gap:10px; margin:0 0 18px; }
.vvip-cred { display:flex !important; align-items:center; gap:12px; margin:0; padding:0 !important; border:0 !important; font-size:16px; }
.vvip-cred-icon { width:32px; height:32px; flex:none; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; background:#fffaf0; border:1px solid #ecdcb8; color:#a8823a; }
.vvip-cred-icon .vvip-btn-icon { width:16px; height:16px; }
.vvip-cred-lbl { width:92px; flex:none; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; font-weight:700; color:#7a1f2b; }
.vvip-cred-val { font-weight:600; color:#2a1a12; }
.vvip-astro-bar { grid-template-columns:auto 1fr auto !important; }
.vvip-astro-bar .vvip-astro-badge .vvip-btn-icon { fill:#fff; }
.vvip-snapshot-name { margin:0 0 12px !important; }
.vvip-name-row .vvip-tag-pill .vvip-btn-icon { width:16px; height:16px; }
.vvip-cred-val { font-size:16px; }

/* Candidate view: left-align credentials; rounded, readable ribbon */
.vvip-credentials { align-items:stretch !important; text-align:left !important; }
.vvip-cred { justify-content:flex-start !important; width:100%; text-align:left !important; }
.vvip-ribbon { border-radius:22px; overflow:hidden; margin:0 0 18px; }
.vvip-ribbon-back { font-size:17px !important; }
.vvip-ribbon-meta { font-size:15px !important; color:#e9d7c0 !important; }

/* Candidate view: consistent action row for every profile */
.vvip-snapshot { display:flex !important; flex-direction:column; min-height:100%; }
.vvip-actions-2x2 { margin-top:auto !important; padding-top:18px; }
.vvip-actions-2x2 > * { height:56px !important; min-height:56px !important; border-radius:999px !important; box-sizing:border-box; margin:0 !important; font-size:15px !important; }
.vvip-actions-2x2 > * > span { overflow:hidden; text-overflow:ellipsis; }

/* Candidate view: tighter, balanced hero */
@media (min-width:901px) {
  .vvip-hero-grid { grid-template-columns:320px 1fr !important; }
  .vvip-gallery-main { aspect-ratio:auto !important; height:100%; min-height:420px; max-height:480px; }
}
.vvip-snapshot { padding:28px 32px !important; gap:0; }
.vvip-snapshot-name { font-size:30px !important; line-height:1.2; margin:6px 0 10px !important; }
.vvip-name-row { margin-bottom:12px; gap:8px; }
.vvip-name-row .vvip-tag-pill { padding:5px 12px !important; font-size:13.5px !important; }
.vvip-name-row .vvip-tag-pill .vvip-btn-icon, .vvip-name-row .vvip-tag-pill svg { width:14px !important; height:14px !important; }
.vvip-credentials { gap:6px !important; margin-bottom:14px !important; }
.vvip-cred-icon { width:28px; height:28px; border-radius:8px; }
.vvip-cred-icon .vvip-btn-icon { width:14px; height:14px; }
.vvip-cred-val { font-size:15px !important; }
.vvip-stats-row .vvip-stat { padding:10px 14px !important; }
.vvip-stat-icon { width:28px !important; height:28px !important; }
.vvip-stats-row .vvip-stat-val { font-size:14px !important; }
.vvip-stats-row { margin-bottom:12px !important; }
.vvip-astro-bar { padding:10px 14px !important; gap:14px !important; margin-bottom:0 !important; }
.vvip-astro-bar .vvip-astro-badge { width:36px !important; height:36px !important; }
.vvip-astro-cell-icon { width:28px; height:28px; }
.vvip-astro-cell-val { font-size:14px; }
.vvip-astro-link { padding:6px 14px; font-size:12px; }
.vvip-actions-2x2 { padding-top:14px; gap:12px !important; }
.vvip-actions-2x2 > * { height:46px !important; min-height:46px !important; font-size:14px !important; }

/* Candidate view sections: premium headers & fields */
.vvip-card { border-radius:22px !important; border-color:#efe6d6 !important; box-shadow:0 10px 30px rgba(60,20,25,.05) !important; margin-bottom:22px !important; }
.vvip-card-head { gap:16px !important; padding:20px 30px !important; background:linear-gradient(90deg,#fffaf2 0%,#fff 70%); border-bottom:1px solid #f1e8d8 !important; position:relative; }
.vvip-card-head::after { content:""; position:absolute; left:30px; bottom:-1px; width:56px; height:2px; background:linear-gradient(90deg,#c9a45c,#e6ca85); border-radius:2px; }
.vvip-head-tile { width:46px; height:46px; flex:none; border-radius:14px; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#5a1827,#3d101a); box-shadow:0 6px 14px rgba(90,24,39,.22); }
.vvip-head-tile .vvip-head-icon { width:20px !important; height:20px !important; stroke:#e6ca85 !important; }
.vvip-card-eyebrow { margin:0 0 2px; font-size:10.5px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:#b08a3e; }
.vvip-card-title { font-family:inherit !important; font-size:20px !important; font-weight:750 !important; letter-spacing:-.01em; color:#2a1418 !important; line-height:1.25; }
.vvip-card-sub { font-size:13px !important; color:#8a7d70 !important; margin-top:3px !important; }
.vvip-card-body { padding:24px 30px 26px !important; }
.vvip-card-body > p { font-size:15.5px; line-height:1.7; color:#3f342c; }
.vvip-grid-2, .vvip-grid-3, .vvip-grid-5 { gap:14px !important; }
.vvip-field { position:relative; background:#fff !important; border:1px solid #efe6d6 !important; border-radius:14px !important; padding:14px 18px 14px 20px !important; transition:border-color .15s, box-shadow .15s, transform .15s; }
.vvip-field::before { content:""; position:absolute; left:0; top:14px; bottom:14px; width:3px; border-radius:0 3px 3px 0; background:linear-gradient(180deg,#c9a45c,#e6ca85); }
.vvip-field:hover { border-color:#d9bf86 !important; box-shadow:0 6px 18px rgba(176,138,62,.12); transform:translateY(-1px); }
.vvip-field-lbl { font-size:10.5px !important; letter-spacing:.1em !important; color:#8a2a3d !important; margin-bottom:6px !important; }
.vvip-field-val { font-size:15px !important; font-weight:650 !important; color:#1f1612 !important; }
.vvip-card .vvip-chip, .vvip-card-body .vvip-chips > * { font-size:13.5px; }

/* Candidate view: Family details */
.vvip-family-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.vvip-family-item { display:flex; align-items:center; gap:14px; padding:16px 18px; border:1px solid #efe6d6; border-radius:16px; background:linear-gradient(135deg,#fffdf9,#fff); transition:border-color .15s, box-shadow .15s; min-width:0; }
.vvip-family-item:hover { border-color:#d9bf86; box-shadow:0 6px 18px rgba(176,138,62,.12); }
.vvip-family-icon { width:42px; height:42px; flex:none; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; background:#fbf3e3; border:1px solid #ecdcb8; color:#7a1f2b; }
.vvip-family-icon .vvip-btn-icon { width:19px; height:19px; }
.vvip-family-item > div { min-width:0; }
.vvip-family-lbl { margin:0 0 3px; font-size:10.5px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#b08a3e; }
.vvip-family-val { margin:0; font-size:15px; font-weight:650; color:#1f1612; line-height:1.4; }
.vvip-family-item.is-late .vvip-family-val { color:#8a7d70; font-style:italic; font-weight:500; }
.vvip-family-note { display:flex; align-items:center; gap:8px; margin:16px 0 0; font-size:12.5px; color:#8a7d70; }
.vvip-family-note svg { width:14px; height:14px; color:#b08a3e; flex:none; }
@media (max-width:900px) { .vvip-family-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:560px) { .vvip-family-grid { grid-template-columns:1fr; } }

/* Candidate view: Age | Height | Gotram | Residence on one line */
.vvip-stats-row { grid-template-columns:minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.2fr) minmax(0,1.3fr) !important; }
@media (max-width:900px) { .vvip-stats-row { grid-template-columns:1fr 1fr !important; } }
@media (min-width:901px) { .vvip-stats-row { grid-template-columns:none !important; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); } }

/* ── My Matches: tab strip, card badges, Not interested ── */
.portal-matches-tabs { display:flex; gap:8px; overflow-x:auto; padding:4px 2px 14px; margin:0 0 6px; scrollbar-width:thin; }
.portal-matches-tab { display:inline-flex; align-items:center; gap:8px; flex:none; padding:9px 14px; border-radius:999px; border:1px solid #efe6d6; background:#fff; color:#4a3a30; font-size:14px; font-weight:650; text-decoration:none; transition:border-color .15s, background .15s, color .15s; }
.portal-matches-tab svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; color:#b08a3e; }
.portal-matches-tab b { min-width:22px; padding:1px 7px; border-radius:999px; background:#f6efe2; color:#7a1f2b; font-size:12px; text-align:center; }
.portal-matches-tab:hover { border-color:#d9bf86; }
.portal-matches-tab.is-active { background:linear-gradient(135deg,#5a1827,#3d101a); border-color:transparent; color:#fff; box-shadow:0 6px 16px rgba(90,24,39,.22); }
.portal-matches-tab.is-active svg { color:#e6ca85; }
.portal-matches-tab.is-active b { background:rgba(230,202,133,.22); color:#f4dfaa; }

.portal-photo-curated { position:absolute; top:10px; left:10px; display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:999px; background:linear-gradient(135deg,#c9a45c,#a8823a); color:#fff; font-size:11.5px; font-weight:750; box-shadow:0 4px 10px rgba(0,0,0,.18); }
.portal-photo-curated svg { width:12px; height:12px; fill:#fff; stroke:none; }
.portal-match-activity { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 0; }
.portal-match-activity > span { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; background:#f7f3ec; color:#5a4a3c; font-size:12.5px; font-weight:600; }
.portal-match-activity svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.portal-match-activity .is-mutual { background:#e9f6ee; color:#1d6b3c; }
.portal-match-activity .is-viewed-you { background:#fdf1ef; color:#a12c22; }
.portal-match-curated-note { display:flex; gap:8px; align-items:flex-start; margin:8px 0 0; padding:9px 12px; border-radius:12px; background:#fffaf0; border:1px solid #ecdcb8; color:#5a4a3c; font-size:13px; line-height:1.45; }
.portal-match-curated-note svg { width:14px; height:14px; flex:none; margin-top:2px; fill:#b08a3e; stroke:none; }

.portal-btn-hide { display:inline-flex; align-items:center; justify-content:center; gap:6px; flex:0 0 42px; min-height:42px; padding:0; border-radius:10px; border:1.5px solid #e5ddd2; background:#fff; color:#8a7d70; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.portal-btn-hide svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.portal-btn-hide:hover { border-color:#c9b8a3; color:#5a4a3c; }
.portal-match-action-buttons .portal-btn-hide:not(.is-on) span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.portal-match-action-buttons .portal-btn-hide.is-on { flex:1 1 0; padding:0 10px; color:#1d6b3c; border-color:#bfe0cb; background:#f1faf4; }
.portal-btn-hide:disabled { opacity:.55; cursor:wait; }
.portal-match-card { transition:opacity .25s, transform .25s; }
.portal-match-card.is-leaving { opacity:0; transform:scale(.97); }

.vvip-hide-row { display:flex; justify-content:flex-end; margin-top:10px; }
.vvip-hide-link { flex:none; min-height:auto; padding:6px 12px; border:0; background:transparent; color:#8a7d70; font-size:13px; font-weight:600; border-radius:999px; }
.vvip-hide-link:hover { background:#f7f3ec; color:#5a4a3c; }
.vvip-hide-link.is-on { color:#1d6b3c; }

/* Admin: curated matches */
.admin-curated-form { display:grid; gap:8px; margin:10px 0; }
.admin-curated-form input, .admin-curated-form textarea { width:100%; box-sizing:border-box; padding:9px 11px; border:1px solid #e2d8ca; border-radius:10px; font:inherit; font-size:14px; }
.admin-curated-msg { margin:0; min-height:1em; font-size:12.5px; color:#7a1f2b; }
.admin-curated-list { display:grid; gap:8px; }
.admin-curated-item { display:flex; justify-content:space-between; gap:10px; padding:10px 12px; border:1px solid #efe6d6; border-radius:12px; background:#fffdf9; }
.admin-curated-item small { display:block; color:#8a7d70; font-size:12px; margin-top:2px; }
.admin-curated-item p { margin:6px 0 0; font-size:13px; color:#4a3a30; }
.admin-curated-empty { margin:0; font-size:13px; color:#8a7d70; }

/* ── Interests ── */
.portal-interest-tab-text { margin:0 0 14px; color:#7a6d60; font-size:14px; }
.portal-matches-tab.is-urgent:not(.is-active) b { background:#c0294a; color:#fff; }
button.portal-matches-tab { font:inherit; font-size:14px; font-weight:650; cursor:pointer; }
.portal-interest-list { display:grid; gap:14px; }
.portal-interest-card { display:grid; grid-template-columns:96px minmax(0,1fr) auto; gap:18px; align-items:center; padding:16px 18px; border:1px solid #efe6d6; border-radius:18px; background:#fff; box-shadow:0 6px 20px rgba(60,20,25,.04); transition:opacity .25s, transform .25s; }
.portal-interest-card.is-leaving { opacity:.35; transform:scale(.99); }
.portal-interest-card.is-in.is-pending { border-left:4px solid #c9a45c; }
.portal-interest-card.is-accepted { border-left:4px solid #2e8b57; }
.portal-interest-photo { display:flex; align-items:center; justify-content:center; width:96px; height:116px; border-radius:14px; overflow:hidden; background:linear-gradient(145deg,#efe6da,#ddd0bf); text-decoration:none; }
.portal-interest-photo img { width:100%; height:100%; object-fit:cover; }
.portal-interest-body { min-width:0; }
.portal-interest-top { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-bottom:4px; }
.portal-interest-direction { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#b08a3e; }
.portal-interest-direction svg, .portal-interest-facts svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.portal-interest-status { padding:3px 10px; border-radius:999px; font-size:12px; font-weight:700; background:#f7f3ec; color:#6a5a4c; }
.portal-interest-status.is-pending { background:#fff4dc; color:#8a6214; }
.portal-interest-status.is-accepted { background:#e6f5ec; color:#1d6b3c; }
.portal-interest-status.is-declined { background:#fbeaea; color:#a12c22; }
.portal-interest-status.is-withdrawn { background:#f1efec; color:#7a6d60; }
.portal-interest-card h3 { margin:2px 0 6px; font-size:18px; color:#2a1418; }
.portal-interest-card h3 small { font-size:14px; font-weight:600; color:#6a5a4c; margin-left:6px; }
.portal-interest-facts { display:flex; align-items:center; gap:8px; margin:3px 0; font-size:14px; color:#4a3a30; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.portal-interest-facts span { overflow:hidden; text-overflow:ellipsis; }
.portal-interest-facts svg { color:#b08a3e; }
.portal-interest-message { margin:8px 0 0; padding:8px 12px; border-left:3px solid #e6ca85; background:#fffaf0; border-radius:0 10px 10px 0; font-size:13.5px; color:#4a3a30; font-style:italic; }
.portal-match-activity .is-due { background:#fff4dc; color:#8a6214; }
.portal-match-activity .is-match { background:#fdecef; color:#a12c4a; }
.portal-interest-when { margin:8px 0 0; font-size:12.5px; color:#8a7d70; }
.portal-interest-actions { display:flex; flex-direction:column; align-items:stretch; gap:8px; min-width:180px; }
.portal-interest-actions > .primary-button, .portal-interest-actions > .secondary-button, .portal-interest-actions > .portal-btn-view { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; border-radius:10px; font-size:14px; }
.portal-interest-actions svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.portal-interest-actions .portal-btn-view svg { width:14px; height:14px; }
.portal-interest-actions .portal-link-button { justify-content:center; }
.portal-interest-wait { font-size:12.5px; color:#8a7d70; text-align:center; }
@media (max-width:760px) {
  .portal-interest-card { grid-template-columns:80px minmax(0,1fr); }
  .portal-interest-photo { width:80px; height:98px; }
  .portal-interest-actions { grid-column:1 / -1; flex-direction:row; flex-wrap:wrap; min-width:0; }
  .portal-interest-actions > * { flex:1 1 140px; }
}

/* ── Messages ── */
.portal-messages-page { width:min(1240px,100%) !important; }
.portal-messages-layout { display:grid; grid-template-columns:340px minmax(0,1fr); min-height:620px; border:1px solid #efe6d6; border-radius:20px; background:#fff; overflow:hidden; box-shadow:0 10px 30px rgba(60,20,25,.05); }
.portal-messages-layout.is-empty { display:block; border:0; box-shadow:none; background:transparent; }
.portal-messages-layout svg, .portal-chat svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.portal-thread-list { border-right:1px solid #f1e8d8; background:#fffdf9; overflow-y:auto; max-height:760px; padding:10px; display:flex; flex-direction:column; gap:4px; }
.portal-thread-intro { margin:4px 8px 10px; font-size:12.5px; color:#8a7d70; line-height:1.45; }
.portal-thread-none { margin:20px 12px; font-size:14px; color:#7a6d60; text-align:center; }
.portal-thread-row { display:flex; align-items:center; gap:12px; width:100%; padding:10px 12px; border:0; border-radius:14px; background:transparent; text-align:left; font:inherit; cursor:pointer; }
.portal-thread-row:hover { background:#f8f2e8; }
.portal-thread-row.is-active { background:linear-gradient(135deg,#fbf3e3,#fff6ea); box-shadow:inset 3px 0 0 #7a1f2b; }
.portal-thread-avatar { width:46px; height:46px; flex:none; border-radius:50%; overflow:hidden; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#5a1827,#3d101a); color:#e6ca85; font-weight:800; font-size:14px; text-decoration:none; }
.portal-thread-avatar img { width:100%; height:100%; object-fit:cover; }
.portal-thread-avatar.is-icon { background:#fbf3e3; color:#7a1f2b; border:1px solid #ecdcb8; }
.portal-thread-avatar.is-large { width:56px; height:56px; font-size:17px; }
.portal-thread-copy { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.portal-thread-top { display:flex; justify-content:space-between; gap:8px; }
.portal-thread-top strong { font-size:14.5px; color:#2a1418; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.portal-thread-top small { font-size:11.5px; color:#9a8d80; white-space:nowrap; }
.portal-thread-preview { font-size:13px; color:#7a6d60; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.portal-thread-row.is-unread .portal-thread-preview { color:#2a1418; font-weight:650; }
.portal-thread-tags { display:flex; gap:6px; }
.portal-thread-tags i { display:inline-flex; align-items:center; gap:4px; font-style:normal; font-size:11px; font-weight:700; color:#8a6214; background:#fff4dc; padding:1px 7px; border-radius:999px; }
.portal-thread-tags i svg { width:11px; height:11px; }
.portal-thread-unread { min-width:22px; padding:2px 7px; border-radius:999px; background:#c0294a; color:#fff; font-size:12px; text-align:center; }

.portal-chat { display:flex; flex-direction:column; min-width:0; max-height:760px; }
.portal-chat-placeholder { margin:auto; text-align:center; color:#8a7d70; padding:40px; }
.portal-chat-placeholder svg { width:40px !important; height:40px !important; color:#d9bf86; }
.portal-chat-placeholder h3 { margin:10px 0 4px; color:#2a1418; }
.portal-chat-head { display:flex; align-items:center; gap:14px; padding:14px 18px; border-bottom:1px solid #f1e8d8; background:linear-gradient(90deg,#fffaf2,#fff 70%); }
.portal-chat-who { flex:1; min-width:0; }
.portal-chat-who h2 { margin:0; font-size:18px; color:#2a1418; }
.portal-chat-who p { margin:2px 0 4px; font-size:13px; color:#7a6d60; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.portal-chat-contact { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:650; color:#8a7d70; }
.portal-chat-contact.is-open { color:#1d6b3c; }
.portal-chat-tools { display:flex; align-items:center; gap:8px; }
.portal-chat-tools .secondary-button { display:inline-flex; align-items:center; gap:6px; min-height:38px; padding:0 12px; font-size:13px; border-radius:10px; }
.portal-chat-more { position:relative; }
.portal-chat-more summary { list-style:none; cursor:pointer; width:38px; height:38px; border-radius:10px; border:1px solid #e5ddd2; display:flex; align-items:center; justify-content:center; color:#7a6d60; font-weight:800; }
.portal-chat-more summary::-webkit-details-marker { display:none; }
.portal-chat-more > div { position:absolute; right:0; top:44px; z-index:20; min-width:220px; padding:6px; border-radius:12px; background:#fff; border:1px solid #efe6d6; box-shadow:0 14px 30px rgba(0,0,0,.12); display:flex; flex-direction:column; }
.portal-chat-more > div > * { padding:9px 12px; border:0; background:transparent; text-align:left; font:inherit; font-size:14px; color:#2a1418; border-radius:8px; cursor:pointer; text-decoration:none; }
.portal-chat-more > div > *:hover { background:#f8f2e8; }

.portal-chat-stream { flex:1; overflow-y:auto; padding:18px 22px; display:flex; flex-direction:column; gap:8px; background:#fcfaf6; min-height:320px; }
.portal-chat-start { align-self:center; display:flex; align-items:center; gap:8px; max-width:520px; padding:8px 14px; border-radius:999px; background:#fff; border:1px solid #efe6d6; color:#7a6d60; font-size:12.5px; text-align:center; }
.portal-chat-start svg { color:#b08a3e; }
.portal-chat-day { align-self:center; margin:8px 0; font-size:11.5px; font-weight:700; color:#9a8d80; letter-spacing:.06em; text-transform:uppercase; }
.portal-chat-msg { align-self:flex-start; max-width:min(560px,78%); padding:9px 14px 7px; border-radius:16px 16px 16px 4px; background:#fff; border:1px solid #efe6d6; }
.portal-chat-msg.is-mine { align-self:flex-end; border-radius:16px 16px 4px 16px; background:linear-gradient(135deg,#5a1827,#3d101a); border-color:transparent; color:#fff; }
.portal-chat-msg p { margin:0; font-size:14.5px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.portal-chat-role { display:block; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#b08a3e; margin-bottom:2px; }
.portal-chat-msg.is-mine .portal-chat-role { color:#e6ca85; }
.portal-chat-meta { display:flex; align-items:center; justify-content:flex-end; gap:4px; margin-top:3px; font-size:11px; color:#9a8d80; }
.portal-chat-msg.is-mine .portal-chat-meta { color:rgba(255,255,255,.7); }
.portal-chat-meta svg { width:11px !important; height:11px !important; }

.portal-chat-req { align-self:center; width:min(520px,100%); padding:12px 16px; border-radius:16px; background:#fff; border:1px solid #ecdcb8; box-shadow:0 4px 14px rgba(176,138,62,.08); }
.portal-chat-req.is-confirmed, .portal-chat-req.is-accepted { border-color:#bfe0cb; background:#f6fcf8; }
.portal-chat-req.is-declined, .portal-chat-req.is-cancelled, .portal-chat-req.is-rescheduled { opacity:.7; }
.portal-chat-req-head { display:flex; align-items:center; gap:8px; }
.portal-chat-req-head svg { color:#7a1f2b; }
.portal-chat-req-head strong { flex:1; font-size:14px; color:#2a1418; }
.portal-chat-req-head span { font-size:12px; font-weight:700; color:#8a6214; background:#fff4dc; padding:2px 9px; border-radius:999px; }
.portal-chat-req.is-confirmed .portal-chat-req-head span, .portal-chat-req.is-accepted .portal-chat-req-head span { color:#1d6b3c; background:#e6f5ec; }
.portal-chat-req p { display:flex; align-items:center; gap:6px; margin:8px 0 0; font-size:13.5px; color:#4a3a30; }
.portal-chat-req-when { font-weight:700; color:#2a1418 !important; }
.portal-chat-req-note { font-style:italic; }
.portal-chat-req .primary-button { display:inline-flex; align-items:center; gap:6px; margin-top:10px; min-height:38px; border-radius:10px; font-size:13.5px; }
.portal-chat-req .portal-link-button { margin-top:8px; font-size:13px; }
.portal-chat-slots { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.portal-chat-slots button { min-height:38px; border-radius:10px; font-size:13px; }

.portal-chat-panel { padding:14px 18px; border-bottom:1px solid #f1e8d8; background:#fffaf0; }
.portal-chat-form h3 { display:flex; align-items:center; gap:8px; margin:0 0 4px; font-size:16px; color:#2a1418; }
.portal-chat-form > p { margin:0 0 10px; font-size:13px; color:#7a6d60; }
.portal-chat-form-row { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:10px; }
.portal-chat-form-row label { display:flex; flex-direction:column; gap:4px; flex:1 1 180px; font-size:12px; font-weight:700; color:#7a1f2b; text-transform:uppercase; letter-spacing:.06em; }
.portal-chat-form-row label.is-wide { flex:2 1 260px; }
.portal-chat-form input, .portal-chat-form select, .portal-chat-form textarea { padding:9px 11px; border:1px solid #e2d8ca; border-radius:10px; font:inherit; font-size:14px; text-transform:none; letter-spacing:0; color:#2a1418; background:#fff; width:100%; box-sizing:border-box; }
.portal-chat-form-actions { display:flex; align-items:center; gap:12px; }
.portal-chat-form-actions .primary-button { display:inline-flex; align-items:center; gap:6px; min-height:40px; border-radius:10px; }

.portal-chat-compose { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:end; padding:12px 16px; border-top:1px solid #f1e8d8; background:#fff; }
.portal-chat-role-pick { display:flex; flex-direction:column; gap:3px; font-size:11px; font-weight:700; color:#8a7d70; text-transform:uppercase; letter-spacing:.06em; }
.portal-chat-role-pick select { padding:9px 10px; border:1px solid #e2d8ca; border-radius:10px; font:inherit; font-size:14px; text-transform:none; letter-spacing:0; color:#2a1418; background:#fffdf9; }
.portal-chat-compose textarea { min-height:42px; max-height:140px; resize:vertical; padding:10px 12px; border:1px solid #e2d8ca; border-radius:12px; font:inherit; font-size:14.5px; }
.portal-chat-compose .primary-button { display:inline-flex; align-items:center; gap:6px; min-height:42px; border-radius:12px; }
.portal-chat-hint { grid-column:1 / -1; display:flex; align-items:center; gap:6px; margin:0; font-size:12px; color:#8a7d70; }
.portal-chat-hint svg { width:12px !important; height:12px !important; }
.portal-chat-blocked { display:flex; align-items:center; gap:8px; padding:14px 18px; border-top:1px solid #f1e8d8; background:#f7f3ec; color:#6a5a4c; font-size:14px; }

@media (max-width:900px) {
  .portal-messages-layout { grid-template-columns:1fr; }
  .portal-thread-list { border-right:0; border-bottom:1px solid #f1e8d8; max-height:280px; }
  .portal-chat-head { flex-wrap:wrap; }
  .portal-chat-tools { width:100%; }
  .portal-chat-compose { grid-template-columns:1fr auto; }
  .portal-chat-role-pick { grid-column:1 / -1; flex-direction:row; align-items:center; gap:8px; }
}

/* ── Privacy settings ── */
.portal-privacy-form { display:grid; gap:16px; }
.portal-privacy-group { margin:0; padding:18px 22px 20px; border:1px solid #efe6d6; border-radius:20px; background:#fff; box-shadow:0 8px 24px rgba(60,20,25,.04); }
.portal-privacy-group legend { display:flex; align-items:center; gap:12px; padding:0; margin-bottom:12px; float:left; width:100%; }
.portal-privacy-group legend strong { display:block; font-size:17px; color:#2a1418; }
.portal-privacy-group legend small { display:block; font-size:13px; color:#8a7d70; margin-top:2px; }
.portal-privacy-icon { width:42px; height:42px; flex:none; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#5a1827,#3d101a); color:#e6ca85; }
.portal-privacy-icon svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.portal-privacy-options { clear:both; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.portal-privacy-option { position:relative; display:flex; gap:10px; padding:12px 14px; border:1.5px solid #efe6d6; border-radius:14px; cursor:pointer; transition:border-color .15s, background .15s; }
.portal-privacy-option:hover { border-color:#d9bf86; }
.portal-privacy-option:has(input:checked) { border-color:#7a1f2b; background:#fdf6f3; }
.portal-privacy-option input { margin-top:3px; accent-color:#7a1f2b; }
.portal-privacy-option strong { display:block; font-size:14.5px; color:#2a1418; }
.portal-privacy-option small { display:block; margin-top:3px; font-size:12.5px; color:#7a6d60; line-height:1.4; }
.portal-privacy-status { margin:0; min-height:1.2em; font-size:13px; color:#1d6b3c; font-weight:650; }
@media (max-width:820px) { .portal-privacy-options { grid-template-columns:1fr; } }

/* Protected photo placeholder (privacy) */
.portal-photo-protected { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; width:100%; height:100%; padding:10px; box-sizing:border-box; background:repeating-linear-gradient(135deg,#f3ece1 0 10px,#efe6d8 10px 20px); color:#8a6a3a; text-align:center; }
.portal-photo-protected svg { width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.portal-photo-protected small { font-size:11.5px; font-weight:650; line-height:1.35; }
.portal-photo-protected.is-large svg { width:40px; height:40px; }
.portal-photo-protected.is-large small { font-size:14px; max-width:220px; }

/* Messages: advisor & system notes */
.portal-chat-msg.is-advisor { align-self:center; max-width:min(600px,86%); background:linear-gradient(135deg,#fffaf0,#fbf1dc); border:1px solid #e6ca85; border-radius:16px; }
.portal-chat-msg.is-advisor .portal-chat-role { display:flex; align-items:center; gap:5px; color:#8a6214; }
.portal-chat-msg.is-advisor .portal-chat-role svg { width:12px !important; height:12px !important; }
.portal-chat-system { align-self:center; display:flex; align-items:center; gap:6px; max-width:560px; padding:6px 12px; border-radius:999px; background:#f1ede6; color:#6a5a4c; font-size:12.5px; text-align:center; }
.portal-chat-system svg { width:13px !important; height:13px !important; color:#b08a3e; }
.portal-chat-advisor-chip { display:inline-flex; align-items:center; gap:5px; margin-left:10px; padding:2px 9px; border-radius:999px; background:#fff4dc; color:#8a6214; font-size:12px; font-weight:700; }
.portal-thread-tags i.is-advisor { background:#f3ead4; color:#7a5a14; }

/* Admin: conversations */
.admin-conv-layout { display:grid; grid-template-columns:320px minmax(0,1fr); gap:0; min-height:560px; border:1px solid #ece4d8; border-radius:14px; overflow:hidden; background:#fff; }
.admin-conv-list { border-right:1px solid #ece4d8; background:#fcfaf6; overflow-y:auto; max-height:720px; padding:8px; display:flex; flex-direction:column; gap:4px; }
.admin-conv-row { display:flex; flex-direction:column; gap:2px; padding:10px 12px; border:0; border-radius:10px; background:transparent; text-align:left; font:inherit; cursor:pointer; }
.admin-conv-row:hover { background:#f5efe4; }
.admin-conv-row.is-active { background:#f3ead4; }
.admin-conv-row strong { font-size:14px; }
.admin-conv-row span, .admin-conv-row small { font-size:12.5px; color:#6a5a4c; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-conv-tags { display:flex; gap:6px; margin-top:4px; }
.admin-conv-tags i { font-style:normal; font-size:11px; font-weight:700; padding:1px 8px; border-radius:999px; background:#eee8df; color:#6a5a4c; }
.admin-conv-tags i.is-invited { background:#e6f5ec; color:#1d6b3c; }
.admin-conv-tags i.is-due { background:#fff4dc; color:#8a6214; }
.admin-conv-tags i.is-report { background:#fbeaea; color:#a12c22; }
.admin-conv-thread { display:flex; flex-direction:column; min-width:0; max-height:720px; }
.admin-conv-head { padding:14px 18px; border-bottom:1px solid #ece4d8; }
.admin-conv-head h2 { margin:0; font-size:17px; }
.admin-conv-head p { margin:4px 0 0; font-size:13px; color:#6a5a4c; }
.admin-conv-reports { padding:10px 18px; border-bottom:1px solid #ece4d8; background:#fff8f6; display:grid; gap:8px; }
.admin-conv-report { padding:10px 12px; border:1px solid #f0c9c4; border-radius:10px; background:#fff; }
.admin-conv-report.is-reviewed { opacity:.65; border-color:#e4ddd2; }
.admin-conv-report p { margin:6px 0; font-size:13.5px; }
.admin-conv-stream { flex:1; overflow-y:auto; padding:16px 18px; display:flex; flex-direction:column; gap:8px; background:#fcfaf6; }
.admin-conv-msg { max-width:72%; padding:8px 12px; border-radius:12px; background:#fff; border:1px solid #ece4d8; }
.admin-conv-msg.is-left { align-self:flex-start; }
.admin-conv-msg.is-right { align-self:flex-end; background:#f6f1fb; border-color:#e2d8ef; }
.admin-conv-msg.is-advisor { align-self:center; background:#fffaf0; border-color:#e6ca85; }
.admin-conv-msg span { display:block; font-size:11px; font-weight:800; color:#7a1f2b; text-transform:uppercase; letter-spacing:.05em; }
.admin-conv-msg p { margin:3px 0; font-size:14px; white-space:pre-wrap; overflow-wrap:anywhere; }
.admin-conv-msg small { font-size:11px; color:#9a8d80; }
.admin-conv-compose { display:flex; gap:10px; align-items:flex-end; padding:12px 16px; border-top:1px solid #ece4d8; }
.admin-conv-compose textarea { flex:1 1 auto; width:auto; min-width:0; min-height:46px; padding:9px 11px; border:1px solid #e2d8ca; border-radius:10px; font:inherit; font-size:14px; resize:vertical; }
/* The general primary button stretches to full width; here it must sit beside the message box. */
.admin-conv-compose .primary-button { flex:0 0 auto; width:auto; min-width:150px; min-height:46px; margin:0; padding:0 18px; white-space:nowrap; }
@media (max-width:900px) { .admin-conv-layout { grid-template-columns:1fr; } .admin-conv-list { border-right:0; border-bottom:1px solid #ece4d8; max-height:260px; } }

/* ── My Advisor ── */
.portal-advisor-page { width:min(1180px,100%) !important; }
.portal-advisor-page svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.portal-advisor-hero { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:22px; align-items:center; margin:0 0 18px; padding:22px 26px; border-radius:22px; color:#fff; background:radial-gradient(circle at 12% 0%, rgba(230,202,133,.22), transparent 45%), linear-gradient(135deg,#4a1220,#2e0b14); box-shadow:0 16px 36px rgba(60,20,25,.22); }
.portal-advisor-photo { width:92px; height:92px; border-radius:50%; overflow:hidden; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#c9a45c,#a8823a); color:#fff; font-size:28px; font-weight:800; border:3px solid rgba(230,202,133,.6); }
.portal-advisor-photo img { width:100%; height:100%; object-fit:cover; }
.portal-advisor-photo svg { width:38px !important; height:38px !important; }
.portal-advisor-label { font-size:11px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:#e6ca85; }
.portal-advisor-who h2 { margin:4px 0 2px; font-size:26px; color:#fff; }
.portal-advisor-who p { margin:0; color:rgba(255,255,255,.78); font-size:14px; }
.portal-advisor-title { color:#f4dfaa !important; font-weight:650; }
.portal-advisor-facts { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 0; padding:0; list-style:none; }
.portal-advisor-facts li { padding:3px 10px; border-radius:999px; background:rgba(255,255,255,.1); border:1px solid rgba(230,202,133,.3); font-size:12.5px; color:#f7ead0; }
.portal-advisor-cta { display:flex; flex-direction:column; gap:8px; min-width:210px; }
.portal-advisor-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:0 16px; border-radius:12px; border:1px solid rgba(230,202,133,.5); background:rgba(255,255,255,.06); color:#fff; font:inherit; font-size:14px; font-weight:700; cursor:pointer; text-decoration:none; }
.portal-advisor-btn.is-gold { background:linear-gradient(135deg,#e6ca85,#c9a45c); color:#3d101a; border-color:transparent; }
.portal-advisor-link { display:inline-flex; align-items:center; gap:6px; color:#f4dfaa; font-size:13px; text-decoration:none; }
.portal-advisor-hero.is-team .portal-advisor-photo { background:rgba(255,255,255,.1); }

.portal-advisor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.portal-advisor-grid.is-wide-left { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); }
.portal-advisor-panel { padding:20px 22px; border:1px solid #efe6d6; border-radius:20px; background:#fff; box-shadow:0 8px 24px rgba(60,20,25,.04); min-width:0; }
.portal-advisor-panel h3 { display:flex; align-items:center; gap:8px; margin:0 0 10px; font-size:16px; color:#2a1418; }
.portal-advisor-panel h3 svg { color:#b08a3e; }
.portal-advisor-sub { margin-top:18px !important; }
.portal-advisor-panel > p { margin:0 0 8px; font-size:14.5px; line-height:1.6; color:#4a3a30; }
.portal-advisor-muted { color:#8a7d70 !important; font-size:13px !important; }
.portal-advisor-journey { margin:0; padding:0; list-style:none; display:grid; gap:10px; }
.portal-advisor-journey li { display:flex; gap:12px; align-items:flex-start; }
.portal-advisor-step { width:28px; height:28px; flex:none; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#5a1827,#3d101a); color:#e6ca85; font-weight:800; font-size:13px; }
.portal-advisor-journey strong { display:flex; align-items:center; gap:6px; font-size:14.5px; color:#2a1418; }
.portal-advisor-journey small { display:block; margin-top:2px; font-size:13px; color:#7a6d60; }
.portal-advisor-form h3 { margin-top:0; }
.portal-advisor-request { margin:0 0 10px; padding:12px 14px; border:1px solid #efe6d6; border-radius:14px; background:#fffdf9; }
.portal-advisor-request.is-scheduled, .portal-advisor-request.is-accepted { border-color:#bfe0cb; background:#f6fcf8; }
.portal-advisor-request.is-done { opacity:.8; }
.portal-advisor-request.is-cancelled, .portal-advisor-request.is-declined { opacity:.6; }
.portal-advisor-request p { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:6px 0 0; font-size:13.5px; color:#4a3a30; }
.portal-advisor-request .secondary-button { display:inline-flex; align-items:center; gap:6px; margin-top:8px; min-height:36px; border-radius:10px; font-size:13px; }
.portal-advisor-request .portal-link-button { margin-top:6px; margin-left:8px; font-size:13px; }
.portal-advisor-curated { display:grid; gap:14px; }
.portal-advisor-pick { display:grid; grid-template-columns:96px minmax(0,1fr) auto; gap:18px; align-items:start; padding:16px 18px; border:1px solid #efe6d6; border-radius:18px; background:#fff; box-shadow:0 6px 20px rgba(60,20,25,.04); }
.portal-advisor-pick.is-interested { border-left:4px solid #2e8b57; }
.portal-advisor-pick.is-not_for_us { opacity:.75; }
.portal-advisor-pick.is-discuss { border-left:4px solid #c9a45c; }
.portal-advisor-pick-body { min-width:0; }
.portal-advisor-pick h3 { margin:2px 0 6px; font-size:18px; color:#2a1418; }
.portal-advisor-answer { margin:8px 0 0; font-size:13px; color:#5a4a3c; }
.portal-advisor-pick .is-on { border-color:#7a1f2b !important; color:#7a1f2b !important; background:#fdf6f3 !important; }
.portal-advisor-reasons { margin-top:10px; padding:12px 14px; border-radius:14px; background:#fffaf0; border:1px solid #ecdcb8; }
.portal-advisor-reasons p { margin:0 0 8px; font-size:13.5px; font-weight:700; color:#2a1418; }
.portal-advisor-reasons div:first-of-type { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.portal-advisor-reasons label { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px; border:1px solid #e2d8ca; background:#fff; font-size:13px; cursor:pointer; }
.portal-advisor-reasons label:has(input:checked) { border-color:#7a1f2b; background:#fdf6f3; color:#7a1f2b; }
.portal-advisor-reasons input[type=text] { width:100%; box-sizing:border-box; margin-bottom:10px; padding:9px 11px; border:1px solid #e2d8ca; border-radius:10px; font:inherit; font-size:14px; }
.portal-advisor-stars { display:inline-flex; flex-direction:row-reverse; gap:4px; margin:0 0 12px; }
.portal-advisor-stars input { position:absolute; opacity:0; width:1px; height:1px; }
.portal-advisor-stars label { font-size:28px; line-height:1; color:#e5ddd2; cursor:pointer; transition:color .1s; }
.portal-advisor-stars label:hover, .portal-advisor-stars label:hover ~ label, .portal-advisor-stars input:checked ~ label { color:#c9a45c; }
@media (max-width:900px) {
  .portal-advisor-hero { grid-template-columns:auto minmax(0,1fr); }
  .portal-advisor-cta { grid-column:1 / -1; flex-direction:row; flex-wrap:wrap; }
  .portal-advisor-grid, .portal-advisor-grid.is-wide-left { grid-template-columns:1fr; }
  .portal-advisor-pick { grid-template-columns:80px minmax(0,1fr); }
  .portal-advisor-pick .portal-interest-actions { grid-column:1 / -1; flex-direction:row; flex-wrap:wrap; min-width:0; }
}

/* ── Admin: advisor assign + Advisor Desk ── */
.admin-advisor-assign select { width:100%; padding:9px 11px; border:1px solid #e2d8ca; border-radius:10px; font:inherit; font-size:14px; background:#fff; }
.admin-desk-bar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:12px; margin-bottom:16px; }
.admin-desk-tabs { display:flex; gap:6px; }
.admin-desk-tabs button { padding:8px 14px; border-radius:999px; border:1px solid #e2d8ca; background:#fff; font:inherit; font-size:14px; font-weight:650; cursor:pointer; }
.admin-desk-tabs button.is-active { background:#5a1827; color:#fff; border-color:#5a1827; }
.admin-desk-filters { display:flex; gap:10px; align-items:flex-end; }
.admin-desk-filters label, .admin-desk-controls label, .admin-desk-profile label { display:flex; flex-direction:column; gap:4px; font-size:12px; font-weight:700; color:#6a5a4c; }
.admin-desk-filters select, .admin-desk-controls input, .admin-desk-profile input, .admin-desk-profile textarea { padding:8px 10px; border:1px solid #e2d8ca; border-radius:10px; font:inherit; font-size:14px; background:#fff; }
.admin-desk-list { display:grid; gap:10px; }
.admin-desk-item { padding:14px 16px; border:1px solid #ece4d8; border-radius:14px; background:#fff; }
.admin-desk-item.is-requested { border-left:4px solid #c9a45c; }
.admin-desk-item.is-scheduled { border-left:4px solid #2e8b57; }
.admin-desk-item.is-not_for_us { border-left:4px solid #a12c22; }
.admin-desk-item.is-interested { border-left:4px solid #2e8b57; }
.admin-desk-item-head { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.admin-desk-item-head strong { flex:1; font-size:14.5px; }
.admin-desk-item-head span { padding:2px 9px; border-radius:999px; background:#f3ead4; color:#7a5a14; font-size:12px; font-weight:700; }
.admin-desk-item-head span.is-warn { background:#fbeaea; color:#a12c22; }
.admin-desk-item-head small { color:#9a8d80; font-size:12px; }
.admin-desk-item p { margin:6px 0 0; font-size:13.5px; color:#4a3a30; }
.admin-desk-quote { font-style:italic; }
.admin-desk-controls { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; margin-top:10px; padding-top:10px; border-top:1px dashed #ece4d8; }
.admin-desk-controls label.is-wide { flex:1 1 260px; }
.admin-desk-controls .primary-button, .admin-desk-controls .secondary-button { min-height:38px; border-radius:10px; }
.admin-desk-profile { display:grid; gap:12px; max-width:860px; }
.admin-desk-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.admin-desk-hint { margin:0; font-size:13.5px; color:#6a5a4c; }
.admin-desk-actions { display:flex; align-items:center; gap:12px; }
@media (max-width:760px) { .admin-desk-grid { grid-template-columns:1fr; } }

/* ── Account menu (avatar, top right) ── */
.portal-account-menu { position:relative; }
.portal-account-trigger { display:inline-flex; align-items:center; gap:10px; padding:4px 10px 4px 4px; border:1px solid transparent; border-radius:999px; background:transparent; font:inherit; cursor:pointer; color:inherit; }
.portal-account-trigger:hover, .portal-account-menu.is-open .portal-account-trigger, .portal-account-menu.is-current .portal-account-trigger { border-color:#ecdcb8; background:#fffaf2; }
.portal-account-name { max-width:150px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:700; font-size:14px; }
.portal-account-avatar { --done:0; position:relative; width:40px; height:40px; flex:none; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#5a1827,#3d101a); color:#e6ca85; font-weight:800; font-size:14px; }
.portal-account-avatar.has-ring { background:conic-gradient(#c9a45c calc(var(--done) * 1%), #efe6d6 0); padding:3px; box-sizing:border-box; }
.portal-account-avatar.has-ring > span { width:100%; height:100%; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#5a1827,#3d101a); }
.portal-account-avatar.is-large { width:54px; height:54px; font-size:17px; }
.portal-account-dropdown { right:0 !important; left:auto !important; width:330px; padding:8px !important; }
.portal-account-menu.is-open .portal-account-dropdown { display:block; }
.portal-account-head { display:flex; align-items:center; gap:12px; padding:10px 10px 12px; margin-bottom:6px; border-bottom:1px solid #f1e8d8; }
.portal-account-head strong { display:block; font-size:15px; color:#2a1418; }
.portal-account-head small { display:block; font-size:12.5px; color:#8a7d70; }
.portal-account-percent { color:#8a6214 !important; font-weight:700; }
.portal-account-item { display:flex; align-items:center; gap:12px; width:100%; padding:9px 10px; border:0; border-radius:12px; background:transparent; text-align:left; font:inherit; text-decoration:none; color:inherit; cursor:pointer; }
.portal-account-item:hover, .portal-account-item.is-active { background:#f8f2e8; }
.portal-account-item > span:nth-child(2) { flex:1; min-width:0; }
.portal-account-item strong { display:block; font-size:14px; color:#2a1418; }
.portal-account-item small { display:block; font-size:12px; color:#8a7d70; }
.portal-account-item b { padding:2px 8px; border-radius:999px; background:#fff4dc; color:#8a6214; font-size:12px; }
.portal-account-item b.is-plan { background:#e6f5ec; color:#1d6b3c; }
.portal-account-item.is-signout { margin-top:6px; border-top:1px solid #f1e8d8; border-radius:0 0 12px 12px; padding-top:12px; }
.portal-account-item svg, .portal-account-page svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; }
@media (max-width:900px) { .portal-account-name, .portal-account-trigger .portal-nav-caret { display:none; } .portal-account-dropdown { width:min(330px, 92vw); } }

/* ── Account pages ── */
.portal-account-page { width:min(1100px,100%) !important; }
.portal-account-cta { display:inline-flex; align-items:center; gap:8px; margin-top:12px; min-height:42px; border-radius:12px; text-decoration:none; }
.portal-verify-steps { display:flex; gap:0; margin:4px 0 16px; padding:0; list-style:none; }
.portal-verify-steps li { flex:1; position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; font-size:12.5px; color:#9a8d80; }
.portal-verify-steps li::before { content:""; position:absolute; top:15px; left:-50%; width:100%; height:3px; background:#efe6d6; z-index:0; }
.portal-verify-steps li:first-child::before { display:none; }
.portal-verify-steps li.is-done::before, .portal-verify-steps li.is-current::before { background:#c9a45c; }
.portal-verify-steps li > span { position:relative; z-index:1; width:32px; height:32px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:#fff; border:2px solid #efe6d6; font-weight:800; color:#9a8d80; }
.portal-verify-steps li.is-done > span { background:#c9a45c; border-color:#c9a45c; color:#fff; }
.portal-verify-steps li.is-current > span { background:#5a1827; border-color:#5a1827; color:#e6ca85; }
.portal-verify-steps li.is-current strong, .portal-verify-steps li.is-done strong { color:#2a1418; }
.portal-verify-checks { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.portal-verify-checks li { display:flex; gap:12px; align-items:center; padding:10px 12px; border-radius:14px; border:1px solid #efe6d6; background:#fffdf9; }
.portal-verify-checks li.is-ok { border-color:#bfe0cb; background:#f6fcf8; }
.portal-verify-checks li.is-soon { opacity:.7; }
.portal-verify-icon { width:32px; height:32px; flex:none; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:#f3ead4; color:#8a6214; font-weight:800; }
.portal-verify-checks li.is-ok .portal-verify-icon { background:#2e8b57; color:#fff; }
.portal-verify-checks strong { display:block; font-size:14px; color:#2a1418; }
.portal-verify-checks small { display:block; font-size:12.5px; color:#7a6d60; }
.portal-completion-group { padding:10px 0; border-bottom:1px dashed #efe6d6; }
.portal-completion-group:last-child { border-bottom:0; }
.portal-completion-group-head { display:flex; justify-content:space-between; align-items:center; }
.portal-completion-group-head strong { font-size:14.5px; color:#2a1418; }
.portal-completion-group ul { margin:6px 0 0; padding:0; list-style:none; display:grid; gap:4px; }
.portal-completion-group li { display:flex; align-items:center; gap:8px; font-size:13.5px; color:#4a3a30; }
.portal-completion-group li b { padding:1px 8px; border-radius:999px; background:#f3ead4; color:#7a5a14; font-size:11px; }
.portal-completion-group li b.is-required { background:#fbeaea; color:#a12c22; }
.portal-completion-score { text-align:center; }
.portal-completion-ring { --done:0; width:150px; height:150px; margin:6px auto 12px; border-radius:50%; background:conic-gradient(#c9a45c calc(var(--done) * 1%), #efe6d6 0); display:flex; align-items:center; justify-content:center; }
.portal-completion-ring > span { width:118px; height:118px; border-radius:50%; background:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.portal-completion-ring strong { font-size:34px; color:#2a1418; line-height:1; }
.portal-completion-ring small { margin-top:4px; font-size:12.5px; color:#8a6214; font-weight:700; }
.portal-membership-card { background:radial-gradient(circle at 90% 0%, rgba(230,202,133,.25), transparent 50%), linear-gradient(135deg,#fffaf0,#fff); border-color:#e6ca85 !important; }
.portal-membership-card h2 { margin:6px 0 8px; font-size:26px; color:#3d101a; }
.portal-membership-page { display:grid; gap:22px; }
.portal-membership-hero { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:18px; padding:22px 24px; border:1px solid #6f2a39; border-radius:16px; color:#fff; background:linear-gradient(120deg,#3d101a,#681b2c 72%,#4b121f); box-shadow:0 14px 32px rgba(61,16,26,.16); }
.portal-membership-emblem { width:58px; height:58px; display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(230,202,133,.55); border-radius:50%; background:#f5deb0; color:#5a1827; }
.portal-membership-emblem svg { width:27px !important; height:27px !important; }
.portal-membership-hero .portal-advisor-label { color:#f0d792; letter-spacing:0; }
.portal-membership-hero h2 { margin:4px 0 3px; color:#fff; font-size:27px; }
.portal-membership-hero p { margin:0; color:rgba(255,255,255,.78); font-size:13.5px; }
.portal-membership-renewal { display:flex; align-items:center; gap:10px; min-width:220px; padding:11px 13px; border:1px solid rgba(230,202,133,.34); border-radius:10px; background:rgba(255,255,255,.08); }
.portal-membership-renewal > svg { width:20px !important; height:20px !important; color:#f0d792; }
.portal-membership-renewal strong, .portal-membership-renewal small { display:block; }
.portal-membership-renewal strong { font-size:13.5px; color:#fff; }
.portal-membership-renewal small { margin-top:2px; font-size:11.5px; color:rgba(255,255,255,.68); }
.portal-membership-demo { display:flex; align-items:center; gap:12px; margin-top:-10px; padding:11px 14px; border:1px solid #dfc783; border-radius:10px; background:#fff9e9; color:#6f5115; }
.portal-membership-demo > svg { width:22px !important; height:22px !important; }
.portal-membership-demo strong, .portal-membership-demo span { display:block; }
.portal-membership-demo strong { margin-bottom:2px; font-size:13px; }
.portal-membership-demo span { font-size:12.5px; line-height:1.4; }
.portal-plans-section { display:grid; gap:16px; }
.portal-membership-section-head { display:flex; align-items:end; justify-content:space-between; gap:24px; }
.portal-membership-section-head h2 { margin:4px 0 0; color:#2a1418; font-size:23px; }
.portal-membership-section-head > p { max-width:440px; margin:0; color:#7a6d60; font-size:13px; line-height:1.5; text-align:right; }
.portal-plan-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:stretch; }
.portal-plan-card { position:relative; display:flex; flex-direction:column; min-width:0; padding:19px; border:1px solid #e4d9ca; border-radius:12px; background:#fff; box-shadow:0 8px 22px rgba(60,20,25,.045); }
.portal-plan-card.is-featured { border:2px solid #8c273a; padding:18px; box-shadow:0 12px 28px rgba(92,27,43,.12); }
.portal-plan-card.is-current::after { content:""; position:absolute; inset:5px; border:1px solid rgba(201,164,92,.55); border-radius:8px; pointer-events:none; }
.portal-plan-top { position:relative; z-index:1; min-height:28px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.portal-plan-badge, .portal-plan-popular { display:inline-flex; align-items:center; gap:5px; padding:4px 8px; border-radius:999px; font-size:10.5px; font-weight:800; line-height:1.2; }
.portal-membership-page .portal-discover-kicker { letter-spacing:0; }
.portal-plan-badge { background:#f5ecdc; color:#775718; text-transform:uppercase; letter-spacing:0; }
.portal-plan-popular { background:#f8e8ec; color:#8c273a; }
.portal-plan-popular svg { width:12px !important; height:12px !important; fill:currentColor; }
.portal-plan-card h2 { position:relative; z-index:1; margin:12px 0 5px; color:#351018; font-size:22px; }
.portal-plan-description { position:relative; z-index:1; min-height:60px; margin:0; color:#6b5d60; font-size:13px; line-height:1.5; }
.portal-plan-price { position:relative; z-index:1; display:flex; align-items:baseline; gap:7px; margin:14px 0; padding-bottom:13px; border-bottom:1px solid #eee4d6; }
.portal-plan-price strong { color:#351018; font-size:27px; line-height:1; }
.portal-plan-price span { color:#8a7d70; font-size:11.5px; }
.portal-plan-card ul { position:relative; z-index:1; display:grid; gap:9px; margin:0 0 18px; padding:0; list-style:none; flex:1; }
.portal-plan-card li { display:flex; align-items:flex-start; gap:8px; color:#514449; font-size:12.5px; line-height:1.4; }
.portal-plan-card li > span { width:18px; height:18px; flex:none; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#e9f6ee; color:#1d6b3c; font-size:11px; font-weight:900; }
.portal-plan-card > button, .portal-plan-card > a { position:relative; z-index:1; width:100%; min-height:42px; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; border-radius:9px; text-decoration:none; }
.portal-plan-card > button:disabled { opacity:.65; cursor:not-allowed; }
.portal-membership-rollout { margin:0; padding:10px 13px; border-left:3px solid #c9a45c; background:#fffaf1; color:#746757; font-size:12px; line-height:1.5; }
.portal-membership-bottom { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr); gap:14px; align-items:start; }
.portal-membership-history, .portal-membership-help { padding:18px 20px; border:1px solid #e8ded0; border-radius:12px; background:#fff; }
.portal-membership-history .portal-membership-section-head { align-items:center; }
.portal-membership-history .portal-membership-section-head h2 { font-size:18px; }
.portal-membership-history ul { display:grid; gap:8px; margin:14px 0 0; padding:0; list-style:none; }
.portal-membership-history li { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:center; padding:9px 10px; border:1px solid #eee5d8; border-radius:9px; background:#fffdf9; }
.portal-payment-icon { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#e9f6ee; color:#1d6b3c; }
.portal-membership-history li strong, .portal-membership-history li small { display:block; }
.portal-membership-history li strong { color:#2a1418; font-size:13px; }
.portal-membership-history li small { margin-top:2px; color:#8a7d70; font-size:11.5px; }
.portal-membership-history li > b { color:#351018; font-size:13px; }
.portal-membership-help { display:flex; gap:13px; border-color:#e1c77f; background:#fff9e9; }
.portal-membership-help > span { width:40px; height:40px; flex:none; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#5a1827; color:#f0d792; }
.portal-membership-help > span svg { width:19px !important; height:19px !important; }
.portal-membership-help h3 { margin:1px 0 5px; color:#351018; font-size:15px; }
.portal-membership-help p { margin:0 0 8px; color:#6a5b4d; font-size:12.5px; line-height:1.45; }
.portal-membership-help a { color:#7a1f2b; font-size:12.5px; font-weight:800; text-decoration:none; }

.portal-checkout-overlay { position:fixed; inset:0; z-index:10020; display:grid; place-items:center; padding:20px; background:rgba(34,13,18,.68); backdrop-filter:blur(3px); }
.portal-checkout { position:relative; width:min(460px,100%); box-sizing:border-box; padding:26px; border:1px solid #e7d7bb; border-radius:16px; background:#fffdf8; box-shadow:0 24px 70px rgba(30,8,14,.3); }
.portal-checkout-close { position:absolute; top:12px; right:12px; width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #e2d8ca; border-radius:50%; background:#fff; color:#5a1827; font-size:22px; line-height:1; cursor:pointer; }
.portal-checkout-mark { width:48px; height:48px; display:inline-flex; align-items:center; justify-content:center; margin-bottom:13px; border-radius:50%; background:#5a1827; color:#f0d792; }
.portal-checkout-mark svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:2; }
.portal-checkout h2 { margin:4px 0 7px; color:#351018; font-size:25px; }
.portal-checkout > p { margin:0; color:#6b5d60; font-size:13.5px; line-height:1.5; }
.portal-checkout dl { display:grid; gap:0; margin:18px 0 14px; border-top:1px solid #eadfce; border-bottom:1px solid #eadfce; }
.portal-checkout dl div { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:9px 0; }
.portal-checkout dl div + div { border-top:1px dashed #eadfce; }
.portal-checkout dt { color:#7a6d60; font-size:12.5px; }
.portal-checkout dd { margin:0; color:#351018; font-size:13.5px; font-weight:800; text-align:right; }
.portal-checkout-note { display:flex; gap:10px; padding:11px 12px; border:1px solid #c9e0d2; border-radius:9px; background:#f4fbf7; color:#24583a; }
.portal-checkout-note > svg { width:20px; height:20px; flex:none; }
.portal-checkout-note strong, .portal-checkout-note span { display:block; }
.portal-checkout-note strong { margin-bottom:2px; font-size:12.5px; }
.portal-checkout-note span { font-size:11.5px; line-height:1.45; }
.portal-checkout-progress { display:flex; align-items:center; gap:10px; margin-top:14px; padding:10px 12px; border-radius:9px; background:#f7efe3; color:#5a1827; font-size:12.5px; }
.portal-checkout-progress[hidden] { display:none; }
.portal-checkout-spinner { width:17px; height:17px; flex:none; border:2px solid #d9c19a; border-top-color:#7a1f2b; border-radius:50%; animation:portal-checkout-spin .75s linear infinite; }
.portal-checkout-error { min-height:18px; margin-top:8px !important; color:#a12c22 !important; font-size:12px !important; }
.portal-checkout-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:8px; }
.portal-checkout-actions button { min-height:42px; border-radius:9px; }
.portal-action-toast { position:fixed; z-index:10040; right:22px; bottom:22px; max-width:min(390px,calc(100vw - 32px)); display:flex; align-items:center; gap:10px; box-sizing:border-box; padding:12px 15px; border:1px solid #a9d3b8; border-radius:10px; background:#f4fbf7; color:#24583a; box-shadow:0 14px 34px rgba(30,60,40,.16); opacity:0; transform:translateY(12px); transition:opacity .2s ease,transform .2s ease; }
.portal-action-toast.is-visible { opacity:1; transform:none; }
.portal-action-toast svg { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:2; }
.portal-action-toast span { font-size:13px; font-weight:750; }
@keyframes portal-checkout-spin { to { transform:rotate(360deg); } }

.portal-plan-card button:focus-visible, .portal-plan-card a:focus-visible, .portal-checkout button:focus-visible { outline:3px solid rgba(160,95,18,.3); outline-offset:3px; }
@media (max-width:900px) {
  .portal-plan-grid { grid-template-columns:1fr; }
  .portal-plan-description { min-height:0; }
  .portal-membership-bottom { grid-template-columns:1fr; }
}
@media (max-width:680px) {
  .portal-membership-hero { grid-template-columns:auto minmax(0,1fr); padding:18px; }
  .portal-membership-renewal { grid-column:1 / -1; min-width:0; }
  .portal-membership-section-head { display:block; }
  .portal-membership-section-head > p { margin-top:8px; text-align:left; }
  .portal-plan-card { padding:17px; }
  .portal-plan-card.is-featured { padding:16px; }
  .portal-checkout { padding:22px 18px 18px; }
  .portal-checkout-actions { display:grid; grid-template-columns:1fr; }
  .portal-checkout-actions button { width:100%; }
  .portal-action-toast { right:16px; bottom:16px; }
}
@media (prefers-reduced-motion:reduce) {
  .portal-checkout-spinner { animation:none; }
  .portal-action-toast { transition:none; }
}
.portal-account-facts { display:grid; gap:10px; margin:0 0 6px; }
.portal-account-facts div { display:flex; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:12px; background:#fffdf9; border:1px solid #efe6d6; }
.portal-account-facts dt { font-size:13px; color:#8a7d70; }
.portal-account-facts dd { margin:0; font-size:14px; font-weight:700; color:#2a1418; text-align:right; }
.portal-pause-state { display:flex; align-items:center; gap:8px; margin:8px 0 0; padding:10px 12px; border-radius:12px; background:#e9f6ee; color:#1d6b3c; font-size:14px; }
.portal-sms-toggle { display:flex; align-items:center; gap:10px; margin:8px 0 0; font-size:14px; cursor:pointer; }
.portal-sms-toggle input { width:18px; height:18px; accent-color:#7c1832; }
.portal-pause-state.is-paused { background:#fff4dc; color:#8a6214; }
.portal-profile-concierge-strip { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.portal-profile-strip-link { display:inline-flex; align-items:center; gap:6px; padding:4px 12px; border-radius:999px; background:rgba(61,16,26,.12); color:inherit; font-size:12.5px; font-weight:800; text-decoration:none; }
.portal-profile-strip-link svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* Publish Queue: advisor dropdown */
.publish-queue-actions { align-items:center; }
.publish-queue-advisor { display:flex; flex-direction:column; gap:2px; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#8a6214; }
.publish-queue-advisor select { min-width:190px; min-height:42px; padding:0 10px; border:1px solid #e2d8ca; border-radius:12px; background:#fffdf9; font:inherit; font-size:14px; font-weight:600; text-transform:none; letter-spacing:0; color:#2a1418; }

/* Publish Queue: aligned row — photo | details | advisor · open · publish, all one height */
.publish-queue-row { display:grid !important; grid-template-columns:64px minmax(0,1fr) auto !important; align-items:center !important; gap:18px !important; padding:16px 20px !important; }
.publish-queue-row > .candidate-avatar, .publish-queue-row > img, .publish-queue-row > :first-child { width:64px !important; height:64px !important; border-radius:16px !important; overflow:hidden; object-fit:cover; flex:none; }
.publish-queue-row > :first-child img { width:100%; height:100%; object-fit:cover; }
.publish-queue-copy { min-width:0; gap:3px; }
.publish-queue-copy strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.publish-queue-actions { display:grid !important; grid-template-columns:230px 120px 130px; align-items:center !important; gap:10px !important; }
.publish-queue-actions > * { height:44px !important; min-height:44px !important; margin:0 !important; box-sizing:border-box; }
.publish-queue-actions .candidate-detail-open-btn { width:100% !important; padding:0 14px !important; border-radius:12px !important; display:inline-flex !important; align-items:center; justify-content:center; gap:6px; font-size:14px !important; }
.publish-queue-advisor { position:relative; display:flex !important; flex-direction:row !important; align-items:center; gap:0 !important; }
.publish-queue-advisor-icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); display:inline-flex; color:#b08a3e; pointer-events:none; }
.publish-queue-advisor-icon svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.publish-queue-advisor select { width:100%; height:44px !important; min-height:44px !important; min-width:0 !important; padding:0 30px 0 36px !important; border-radius:12px !important; font-size:14px !important; cursor:pointer; }
/* Native selects (Safari, macOS) ignore the left padding, so the text ran under the user icon.
   Drawn without native styling, with our own arrow in the right padding. */
.publish-queue-advisor select { -webkit-appearance:none; appearance:none; text-overflow:ellipsis; white-space:nowrap; overflow:hidden;
  background:#fffdf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b08a3e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.publish-queue-advisor-icon { z-index:1; }
@media (max-width:980px) {
  .publish-queue-row { grid-template-columns:56px minmax(0,1fr) !important; }
  .publish-queue-actions { grid-column:1 / -1; grid-template-columns:minmax(0,1fr) 110px 120px; }
}
@media (max-width:560px) { .publish-queue-actions { grid-template-columns:1fr 1fr; } .publish-queue-advisor { grid-column:1 / -1; } }

/* Advisor Desk: equal-size tabs and aligned, compact filters */
.admin-desk .admin-desk-tabs { display:flex; align-items:center; gap:8px; }
.admin-desk .admin-desk-tabs button,
.admin-desk .admin-desk-tabs button.is-active {
  box-sizing:border-box; height:38px; min-height:38px; padding:0 16px !important; margin:0 !important;
  border:1px solid #e2d8ca !important; border-radius:999px !important;
  font-size:14px !important; font-weight:650 !important; line-height:1 !important;
  transform:none !important; box-shadow:none !important;
}
.admin-desk .admin-desk-tabs button.is-active { background:#5a1827 !important; border-color:#5a1827 !important; color:#fff !important; }
.admin-desk .admin-desk-filters { display:flex; align-items:flex-end; gap:10px; }
.admin-desk .admin-desk-filters label { display:flex; flex-direction:column; gap:4px; margin:0; font-size:11.5px !important; font-weight:700 !important; color:#8a7d70 !important; text-transform:uppercase; letter-spacing:.06em; }
.admin-desk .admin-desk-filters select {
  box-sizing:border-box; height:38px !important; min-height:38px !important; padding:0 32px 0 12px !important;
  border:1px solid #e2d8ca !important; border-radius:10px !important; background-color:#fff;
  font-size:14px !important; font-weight:500 !important; color:#2a1418 !important; text-transform:none; letter-spacing:0;
}
.admin-desk .admin-desk-filters #adminDeskScope { width:220px; }
.admin-desk .admin-desk-filters #adminDeskStatus { width:110px; }
.admin-desk .admin-desk-filters .secondary-button {
  box-sizing:border-box; height:38px !important; min-height:38px !important; padding:0 16px !important; margin:0 !important;
  border-radius:10px !important; font-size:14px !important; font-weight:650 !important; line-height:1 !important;
}

/* ── Staff roles: view-only banner, Team, My Account, My Activity, advisor home ── */
a.admin-chip { text-decoration: none; color: inherit; cursor: pointer; padding: 6px; margin: 0 -6px 8px; border-radius: 10px; transition: background .15s; }
a.admin-chip:hover, a.admin-chip.is-active { background: var(--stone-100); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar { overflow: hidden; }
.avatar.is-sm { width: 34px; height: 34px; min-width: 34px; font-size: 12px; }
.avatar.is-xl { width: 96px; height: 96px; min-width: 96px; font-size: 30px; }

.staff-view-only { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--gold-100); border: 1px solid #ecd6a6; color: #6b4a12; font-size: 13.5px; }
.staff-view-only strong { margin-right: 4px; }
.app-shell[data-role="advisor"] #verificationForm :disabled { background: var(--stone-100); color: var(--stone-900); cursor: default; }

.staff-role-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--stone-100); color: var(--stone-700); white-space: nowrap; }
.staff-role-badge.is-admin { background: var(--rose-100); color: var(--wine-700); }
.staff-role-badge.is-profile_reviewer { background: var(--blue-100); color: var(--blue-700); }
.staff-role-badge.is-advisor { background: var(--green-100); color: var(--green-700); }
.staff-muted { color: var(--stone-500); font-size: 13px; }
.staff-msg { margin: 0; font-size: 13px; color: var(--wine-700); min-height: 1em; }
.staff-inline { display: flex; gap: 8px; align-items: center; }
.staff-inline input { flex: 1; min-width: 0; }
.danger-button { min-height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid #e9b4ae; background: var(--red-100); color: var(--red-700); font: inherit; font-weight: 700; cursor: pointer; }
.danger-button:hover { background: #fbd5d0; }

.staff-team label, .staff-account label, .staff-team-editor label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #6a5a4c; }
.staff-team input, .staff-team select, .staff-account input, .staff-account textarea {
  height: 38px; padding: 0 10px; border: 1px solid #e2d8ca; border-radius: 10px; font: inherit; font-size: 14px; background: #fff; box-sizing: border-box; width: 100%;
}
.staff-account textarea { height: auto; padding: 8px 10px; resize: vertical; }
.staff-team .primary-button, .staff-team .secondary-button, .staff-account .primary-button, .staff-account .secondary-button { min-height: 38px; margin: 0; width: auto; padding: 0 16px; white-space: nowrap; }

.staff-team-add { display: grid; grid-template-columns: 1.1fr 1.4fr 0.9fr 0.9fr 1.5fr auto; gap: 12px; align-items: end; padding: 16px; margin-bottom: 18px; border: 1px solid var(--stone-200); border-radius: 14px; background: var(--ivory-50); }
.staff-team-add .staff-msg { grid-column: 1 / -1; }
.staff-team-table { display: flex; flex-direction: column; border: 1px solid var(--stone-200); border-radius: 14px; overflow: hidden; }
.staff-team-row { display: grid; grid-template-columns: 2.2fr 1.1fr 1fr 0.7fr 1.1fr 0.9fr 0.8fr; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--stone-200); font-size: 14px; }
.staff-team-row:first-child { border-top: 0; }
.staff-team-row.is-head { background: var(--stone-100); font-size: 12px; font-weight: 700; color: var(--stone-500); text-transform: uppercase; letter-spacing: .04em; padding-top: 9px; padding-bottom: 9px; }
.staff-team-row.is-inactive { opacity: .55; }
.staff-team-row > span:last-child { text-align: right; }
.staff-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.staff-person strong, .staff-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-person small { color: var(--stone-500); font-size: 12.5px; }
.staff-status { font-weight: 700; font-size: 13px; }
.staff-status.is-on { color: var(--green-700); }
.staff-status.is-off { color: var(--red-700); }
.staff-team-editor { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr; gap: 16px; padding: 16px; background: var(--ivory-50); border-top: 1px solid var(--stone-200); }
.staff-team-editor > .staff-msg { grid-column: 1 / -1; }
.staff-editor-block { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 14px; background: #fff; border: 1px solid var(--stone-200); border-radius: 12px; }
.staff-editor-block > label, .staff-editor-block > .staff-inline { width: 100%; }
.staff-editor-block h4 { margin: 0; font-size: 14px; color: var(--wine-800); }
.staff-editor-block p { margin: 0; font-size: 13px; color: var(--stone-500); }
.staff-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }

.staff-account { display: flex; flex-direction: column; gap: 16px; max-width: 920px; }
.staff-account .panel { margin: 0; }
.staff-account-head { display: flex; gap: 22px; align-items: center; }
.staff-account-head h2 { margin: 0 0 6px; font-size: 22px; color: var(--wine-900); }
.staff-account-head p { margin: 0 0 6px; }
.staff-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.staff-photo .avatar.is-xl { background: var(--wine-700); color: #fff; display: grid; place-items: center; border-radius: 50%; font-weight: 800; }
.staff-photo-btn { display: inline-flex; align-items: center; cursor: pointer; font-size: 13px; }
.staff-account-form { display: flex; flex-direction: column; gap: 12px; }
.staff-account-form h3 { margin: 6px 0 0; font-size: 15px; font-weight: 700; color: var(--wine-800); letter-spacing: .01em; }
.staff-account-form h3:first-child { margin-top: 0; }
.staff-wide { width: 100%; }
.staff-actions { display: flex; gap: 12px; align-items: center; }

.staff-activity-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.staff-activity-bar h2 { margin: 0; }
.staff-activity-bar p { margin: 4px 0 0; color: var(--stone-500); font-size: 13.5px; }
.staff-activity-day { margin-bottom: 18px; }
.staff-activity-day h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--wine-800); }
.staff-activity-day h4 small { padding: 1px 8px; border-radius: 999px; background: var(--stone-100); color: var(--stone-500); font-size: 11.5px; }
.staff-activity-item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 9px 12px; border-left: 2px solid var(--gold-500); background: var(--ivory-50); border-radius: 0 10px 10px 0; margin-bottom: 6px; font-size: 14px; }
.staff-activity-item time { color: var(--stone-500); font-size: 12.5px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.staff-activity-item a { color: var(--wine-700); font-weight: 600; }

.advisor-home { display: flex; flex-direction: column; gap: 18px; }
.advisor-home .metric-card.is-link { cursor: pointer; }
.advisor-home .metric-card.is-link:hover { box-shadow: var(--shadow-md); }
.advisor-home .metric-card small { display: block; margin-top: 4px; color: var(--stone-500); }
.advisor-home .panel h3 { margin: 0 0 12px; font-size: 16px; color: var(--wine-800); }
.advisor-home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.advisor-home-link { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 16px; border: 1px solid var(--stone-200); border-radius: 12px; background: var(--ivory-50); font: inherit; cursor: pointer; }
.advisor-home-link:hover { border-color: var(--gold-500); background: #fff; }
.advisor-home-link strong { color: var(--wine-800); }
.advisor-home-link span { color: var(--stone-500); font-size: 13px; }
.advisor-report-table { display: flex; flex-direction: column; border: 1px solid var(--stone-200); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.advisor-report-table > div { display: grid; grid-template-columns: 2fr 1fr 1fr; padding: 10px 14px; border-top: 1px solid var(--stone-200); font-size: 14px; }
.advisor-report-table > div:first-child { border-top: 0; }
.advisor-report-table .is-head { background: var(--stone-100); font-size: 12px; font-weight: 700; color: var(--stone-500); text-transform: uppercase; }

@media (max-width: 1100px) {
  .staff-team-add { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-team-row { grid-template-columns: 2fr 1fr 1fr; }
  .staff-team-row > span:nth-child(3), .staff-team-row > span:nth-child(4), .staff-team-row > span:nth-child(5) { display: none; }
  .staff-team-editor, .advisor-home-grid { grid-template-columns: 1fr; }
}

/* Language switch (English / Tamil) */
.language-toggle { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--stone-200); border-radius: 999px; background: var(--white); }
.language-option { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--stone-700); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.language-option:hover { color: var(--wine-700); }
.language-option.is-active { background: var(--wine-800); color: var(--white); }

/* Login details message box */
.staff-dialog-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(44, 7, 18, 0.45); padding: 20px; }
.staff-dialog { width: min(440px, 100%); padding: 24px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-md); }
.staff-dialog h3 { margin: 0 0 6px; font-size: 18px; color: var(--wine-900); }
.staff-dialog p { margin: 0 0 16px; color: var(--stone-700); font-size: 14px; }
.staff-dialog dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 20px; padding: 14px; border-radius: 12px; background: var(--ivory-50); border: 1px solid var(--stone-200); font-size: 14px; }
.staff-dialog dt { color: var(--stone-500); font-weight: 700; }
.staff-dialog dd { margin: 0; word-break: break-all; color: var(--stone-900); }
.staff-dialog code { font-size: 15px; font-weight: 700; color: var(--wine-800); }
.staff-dialog .staff-actions { justify-content: flex-end; }
.staff-dialog .primary-button, .staff-dialog .secondary-button { width: auto; margin: 0; min-height: 38px; padding: 0 18px; }

/* ── Customer landing page ── */
.lp { --lp-wine: #4b1020; --lp-wine-2: #68182b; --lp-gold: #d09a39; --lp-gold-2: #f0c46a; --lp-ink: #2a1d18; background: var(--ivory-50); color: var(--lp-ink); font-family: Inter, system-ui, sans-serif; }
.lp svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp a { color: inherit; }

.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-gold { background: linear-gradient(135deg, var(--lp-gold-2), var(--lp-gold)); color: #3a1608; box-shadow: 0 8px 20px rgba(208, 154, 57, .35); }
.lp-btn-gold:hover { box-shadow: 0 12px 26px rgba(208, 154, 57, .45); }
.lp-btn-wine { background: var(--lp-wine); color: #fff; }
.lp-btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.lp-btn-ghost:hover { background: rgba(255,255,255,.12); }
.lp-btn-ghost-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); color: #fff; }
.lp-btn-block { width: 100%; height: 50px; font-size: 16px; }
.lp-btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Header sits over the hero */
.lp-header { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 24px; padding: 18px clamp(18px, 5vw, 64px); color: #fff; }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-brand img { width: 46px; height: 46px; border-radius: 12px; background: #fff7e6; padding: 3px; }
.lp-brand strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 24px; line-height: 1; letter-spacing: .02em; }
.lp-brand small { display: block; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--lp-gold-2); margin-top: 3px; }
.lp-nav { display: flex; gap: 6px; margin-left: auto; }
.lp-nav button, .lp-footer nav button { border: 0; background: none; color: inherit; font: inherit; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 999px; cursor: pointer; opacity: .9; }
.lp-nav button:hover { background: rgba(255,255,255,.1); opacity: 1; }
.lp-header-actions { display: flex; gap: 10px; }

/* Hero */
.lp-hero { position: relative; color: #fff; padding: 120px clamp(18px, 5vw, 64px) 72px;
  background: linear-gradient(105deg, rgba(44,7,18,.96) 0%, rgba(75,16,32,.92) 45%, rgba(104,24,43,.72) 100%), url("assets/login-wedding-detail.png") center / cover no-repeat; overflow: hidden; }
.lp-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, transparent, var(--lp-gold), transparent); }
.lp-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(240,196,106,.14); border: 1px solid rgba(240,196,106,.35); color: var(--lp-gold-2); font-size: 13px; font-weight: 600; }
.lp-hero h1 { margin: 20px 0 18px; font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -.01em; }
.lp-hero h1 span { color: var(--lp-gold-2); font-style: italic; }
.lp-lead { max-width: 560px; margin: 0 0 12px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.86); }
.lp-tamil { margin: 0 0 26px; font-family: "Noto Sans Tamil", sans-serif; color: var(--lp-gold-2); font-size: 16px; }
.lp-hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.lp-hero-points li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.92); }
.lp-hero-points svg { color: var(--lp-gold-2); }

/* Register card */
.lp-register { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 22px; background: #fffdf8; color: var(--lp-ink); box-shadow: 0 30px 70px rgba(20, 3, 8, .45); border-top: 4px solid var(--lp-gold); }
.lp-register-head h2 { margin: 0; font-size: 24px; font-weight: 800; color: var(--lp-wine); }
.lp-register-head p { margin: 4px 0 0; font-size: 14px; color: var(--stone-500); }
.lp-field { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lp-field[hidden] { display: none; }
.lp-field > span, .lp-field legend { padding: 0; font-size: 13px; font-weight: 700; color: var(--stone-700); }
.lp-field input:not([type=radio]) { height: 46px; padding: 0 14px; border: 1px solid #e3d6c4; border-radius: 12px; font: inherit; font-size: 15px; background: #fff; color: var(--lp-ink); box-sizing: border-box; width: 100%; }
.lp-field input:focus { outline: 2px solid rgba(208,154,57,.45); outline-offset: 1px; border-color: var(--lp-gold); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip input, .lp-segment input { position: absolute; opacity: 0; pointer-events: none; }
.lp-chip span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #e3d6c4; background: #fff; font-size: 14px; font-weight: 600; color: var(--stone-700); cursor: pointer; transition: all .15s; }
.lp-chip input:checked + span { background: var(--lp-wine); border-color: var(--lp-wine); color: #fff; }
.lp-chip input:focus-visible + span, .lp-segment input:focus-visible + span { outline: 2px solid var(--lp-gold); outline-offset: 2px; }
.lp-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-segment span { display: flex; flex-direction: column; justify-content: center; min-height: 50px; padding: 6px 12px; border: 1px solid #e3d6c4; border-radius: 12px; background: #fff; font-size: 14.5px; font-weight: 700; cursor: pointer; text-align: center; }
.lp-segment small { font-size: 11.5px; font-weight: 500; color: var(--stone-500); }
.lp-segment input:checked + span { border-color: var(--lp-wine); background: #fbf1f1; color: var(--lp-wine); box-shadow: inset 0 0 0 1px var(--lp-wine); }
.lp-phone { display: flex; align-items: stretch; border: 1px solid #e3d6c4; border-radius: 12px; overflow: hidden; background: #fff; }
.lp-phone b { display: grid; place-items: center; padding: 0 12px; background: var(--ivory-100); color: var(--stone-700); font-size: 14px; border-right: 1px solid #e3d6c4; }
.lp-field .lp-phone input { border: 0; border-radius: 0; }
.lp-register-msg { margin: -4px 0 0; min-height: 1em; font-size: 13.5px; color: var(--red-700); }
.lp-register-msg a { color: var(--lp-wine); font-weight: 700; }
.lp-register-foot { margin: -6px 0 0; text-align: center; font-size: 14px; color: var(--stone-500); }
.lp-register-foot a { color: var(--lp-wine); font-weight: 700; }

/* Trust strip */
.lp-trust { position: relative; z-index: 2; max-width: 1200px; margin: -34px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 18px; box-shadow: 0 18px 45px rgba(61, 32, 23, .12); overflow: hidden; }
.lp-trust > div { padding: 22px 24px; border-left: 1px solid var(--stone-200); }
.lp-trust > div:first-child { border-left: 0; }
.lp-trust strong { display: block; font-size: 22px; font-weight: 800; color: var(--lp-wine); }
.lp-trust span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--stone-500); line-height: 1.45; }

/* Sections */
.lp-section { padding: 84px clamp(18px, 5vw, 64px); }
.lp-section > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.lp-section-tint { background: linear-gradient(180deg, #fbf3e6, #fffaf2); }
.lp-section-head { text-align: center; margin-bottom: 40px; }
.lp-kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--lp-gold); }
.lp-section-head h2 { margin: 10px 0 0; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; color: var(--lp-wine); letter-spacing: -.01em; }
.lp-section-head p { margin: 10px 0 0; color: var(--stone-500); }

.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; list-style: none; counter-reset: none; }
.lp-step { position: relative; padding: 26px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--stone-200); }
.lp-step-no { position: absolute; top: 18px; right: 20px; font-size: 40px; font-weight: 800; line-height: 1; color: #f3e6d1; }
.lp-step-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fbf1f1; color: var(--lp-wine); }
.lp-step-icon svg { width: 22px; height: 22px; }
.lp-step h3, .lp-service h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 800; color: var(--lp-ink); }
.lp-step p, .lp-service p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--stone-700); }

.lp-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-service { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--stone-200); transition: box-shadow .2s, transform .2s; }
.lp-service:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.lp-service-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--lp-gold-2), var(--lp-gold)); color: #3a1608; }
.lp-service h3 em { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--stone-100); color: var(--stone-500); font-size: 11px; font-style: normal; font-weight: 700; vertical-align: middle; }

.lp-recent { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.lp-card { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--stone-200); }
.lp-card-photo { position: relative; display: grid; place-items: center; height: 170px; color: rgba(255,255,255,.75); }
.lp-card-photo.is-bride { background: linear-gradient(135deg, #e9b7b7, #a8485c); }
.lp-card-photo.is-groom { background: linear-gradient(135deg, #c9a46a, #6c3b1f); }
.lp-card-photo > svg { width: 70px; height: 70px; filter: blur(1.5px); }
.lp-card-photo span { position: absolute; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); }
.lp-card-photo span svg { width: 13px; height: 13px; }
.lp-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.lp-card-body strong { font-size: 16px; color: var(--lp-ink); }
.lp-card-body span, .lp-card-body em { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--stone-700); font-style: normal; }
.lp-card-body svg { width: 15px; height: 15px; color: var(--lp-gold); }
.lp-card-body em { color: var(--green-700); font-weight: 700; }
.lp-card-body em svg { color: var(--green-700); }
.lp-center { text-align: center; }

.lp-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px 40px; margin: 0 clamp(18px, 5vw, 64px) 72px; padding: 40px clamp(24px, 4vw, 56px); border-radius: 24px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(240,196,106,.25), transparent 45%), linear-gradient(120deg, var(--lp-wine), var(--lp-wine-2)); }
.lp-cta h2 { margin: 0 0 6px; font-size: 28px; font-weight: 800; }
.lp-cta p { margin: 0; color: rgba(255,255,255,.82); }
.lp-cta-actions { display: flex; gap: 12px; }
.lp-cta-hours { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--lp-gold-2); }

.lp-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 28px clamp(18px, 5vw, 64px); border-top: 1px solid var(--stone-200); background: #fff; color: var(--stone-500); font-size: 14px; }
.lp-footer-brand { display: flex; align-items: center; gap: 10px; }
.lp-footer-brand img { width: 38px; height: 38px; border-radius: 10px; }
.lp-footer-brand strong { display: block; color: var(--lp-ink); }
.lp-footer-brand small { display: block; font-size: 12px; }
.lp-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.lp-footer nav a, .lp-footer nav span { padding: 8px 12px; text-decoration: none; }
.lp-footer p { flex-basis: 100%; margin: 0; font-size: 13px; }
.lp-staff-link { color: var(--stone-500); font-size: 12.5px; }

@media (max-width: 1000px) {
  .lp-nav { display: none; }
  .lp-header-actions { margin-left: auto; }
  .lp-hero-inner { grid-template-columns: 1fr; }
  .lp-hero { padding-top: 104px; }
  .lp-trust, .lp-steps, .lp-recent { grid-template-columns: repeat(2, 1fr); }
  .lp-trust > div:nth-child(3) { border-left: 0; }
  .lp-trust > div:nth-child(n+3) { border-top: 1px solid var(--stone-200); }
  .lp-services { grid-template-columns: repeat(2, 1fr); }
  .lp-trust { margin: -24px 18px 0; }
}
@media (max-width: 600px) {
  .lp-header { padding: 14px 16px; gap: 10px; }
  .lp-brand strong { font-size: 20px; }
  .lp-brand img { width: 38px; height: 38px; }
  .lp-header-actions .lp-btn { height: 38px; padding: 0 14px; font-size: 14px; }
  .lp-header-actions .lp-btn-ghost { display: none; }
  .lp-hero { padding: 92px 16px 56px; }
  .lp-lead { font-size: 16px; }
  .lp-register { padding: 22px 18px; }
  .lp-trust, .lp-steps, .lp-services, .lp-recent { grid-template-columns: 1fr; }
  .lp-trust > div { border-left: 0; border-top: 1px solid var(--stone-200); }
  .lp-trust > div:first-child { border-top: 0; }
  .lp-section { padding: 60px 16px; }
  .lp-cta { grid-template-columns: 1fr; margin: 0 16px 48px; }
  .lp-cta-actions { flex-wrap: wrap; }
}
.lp-card-body span { min-width: 0; }
.lp-card-body span:not(:has(svg:only-child)) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Landing header buttons (Naukri style) and slide-in login */
.lp-btn-outline { background: rgba(255,255,255,.06); border: 1.5px solid var(--lp-gold-2); color: #fff; }
.lp-btn-outline:hover { background: rgba(240,196,106,.16); }
.lp-header-actions { align-items: center; }
.lp-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--lp-wine); cursor: pointer; text-decoration: none; }
.lp-link:hover { text-decoration: underline; }
.lp-footer nav button[data-action="landing-login-open"] { font-weight: 600; }

.lp-drawer-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: flex-end; background: rgba(28, 4, 11, 0); transition: background .25s; }
.lp-drawer-backdrop[hidden] { display: none; }
.lp-drawer-backdrop.is-open { background: rgba(28, 4, 11, .55); backdrop-filter: blur(2px); }
.lp-drawer { position: relative; width: min(460px, 100%); height: 100%; overflow-y: auto; padding: 72px 28px 28px; box-sizing: border-box;
  background: radial-gradient(circle at 30% 0%, rgba(240,196,106,.18), transparent 50%), linear-gradient(160deg, #4b1020, #2c0712);
  transform: translateX(100%); transition: transform .25s ease; box-shadow: -20px 0 60px rgba(0,0,0,.35); }
.lp-drawer-backdrop.is-open .lp-drawer { transform: translateX(0); }
.lp-drawer-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lp-drawer-close:hover { background: rgba(255,255,255,.18); }
.lp-login { box-shadow: 0 24px 60px rgba(10, 1, 4, .5); }
.lp-login-assure { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--ivory-100); font-size: 13px; color: var(--stone-700); }
.lp-login-assure svg { color: var(--lp-gold); margin-top: 2px; }
.lp-login-assure strong { display: block; color: var(--lp-ink); }
.lp-login-demo { margin: -4px 0 0; text-align: center; font-size: 12.5px; color: var(--stone-500); }
@media (max-width: 600px) {
  .lp-header-actions .lp-btn-outline { display: inline-flex; }
  .lp-drawer { padding: 64px 16px 20px; }
}

/* Hero image in place of the form; forms live in the slide-in panel */
.lp-register[hidden] { display: none; }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.lp-hero-art { position: relative; margin: 0; justify-self: end; width: min(100%, 470px); }
.lp-hero-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 240px 240px 28px 28px; overflow: hidden; border: 3px solid rgba(240,196,106,.75); box-shadow: 0 30px 70px rgba(20,3,8,.5), 0 0 0 10px rgba(240,196,106,.12); background: #3a0c19; }
.lp-hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; display: block; }
.lp-hero-art.has-couple .lp-hero-frame img { object-position: center top; }
.lp-hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(44,7,18,.55)); pointer-events: none; }
.lp-hero-art figcaption { position: absolute; left: -24px; bottom: 34px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; background: #fffdf8; color: var(--lp-ink); box-shadow: 0 16px 40px rgba(20,3,8,.35); }
.lp-hero-art figcaption > span:first-child { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--lp-gold-2), var(--lp-gold)); color: #3a1608; }
.lp-hero-art figcaption strong { display: block; font-size: 15px; color: var(--lp-wine); }
.lp-hero-art figcaption small { display: block; font-size: 12.5px; color: var(--stone-500); }
@media (max-width: 1000px) {
  .lp-hero-art { justify-self: center; width: min(100%, 380px); }
  .lp-hero-art figcaption { left: 12px; }
}
@media (max-width: 600px) {
  .lp-hero-actions .lp-btn { flex: 1; }
  .lp-hero-art { width: min(100%, 300px); }
}

/* ── Public landing page: premium family-first experience ── */
.lp {
  --lp-wine: #65172b;
  --lp-wine-deep: #330914;
  --lp-gold: #d5a649;
  --lp-gold-pale: #f0d79f;
  --lp-emerald: #176b54;
  --lp-ink: #241b18;
  --lp-muted: #6f6661;
  --lp-line: #e4d9cd;
  --lp-paper: #fbf8f3;
  min-height: 100vh;
  overflow: hidden;
  background: var(--lp-paper);
  color: var(--lp-ink);
}
.lp, .lp * { box-sizing: border-box; }
.lp button, .lp input { font-family: inherit; }
.lp-btn {
  min-height: 44px;
  height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 0;
  box-shadow: none;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-gold {
  background: var(--lp-gold);
  color: #26170b;
  box-shadow: 0 10px 28px rgba(213, 166, 73, .24);
}
.lp-btn-gold:hover { background: #e2b85f; box-shadow: 0 12px 32px rgba(213, 166, 73, .3); }
.lp-btn-wine { background: var(--lp-wine); color: #fff; }
.lp-btn-wine:hover { background: #761d34; }
.lp-btn-outline {
  border: 1px solid rgba(255, 255, 255, .62);
  background: rgba(20, 8, 8, .18);
  color: #fff;
  backdrop-filter: blur(8px);
}
.lp-btn-outline:hover { background: rgba(255, 255, 255, .12); }
.lp-btn-ghost-light { border-color: rgba(255,255,255,.52); background: transparent; }
.lp a.lp-btn-wine, .lp a.lp-btn-outline, .lp a.lp-btn-ghost-light { color: #fff; }
.lp a.lp-btn-gold { color: #26170b; }
.lp-btn-lg { min-height: 52px; height: 52px; padding: 0 28px; font-size: 15px; }

.lp-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  min-height: 82px;
  padding: 14px clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background: rgba(27, 8, 10, .12);
  backdrop-filter: blur(8px);
}
.lp-brand { flex: 0 0 auto; gap: 11px; }
.lp-brand img {
  width: 50px;
  height: 50px;
  padding: 2px;
  border: 1px solid rgba(240, 215, 159, .64);
  border-radius: 50%;
  background: #fff8e9;
}
.lp-brand strong { font-size: 25px; font-weight: 700; letter-spacing: 0; }
.lp-brand small { margin-top: 4px; color: var(--lp-gold-pale); font-size: 10px; letter-spacing: .24em; }
.lp-nav { gap: 2px; }
.lp-nav button {
  padding: 10px 11px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
}
.lp-nav button:hover { background: rgba(255,255,255,.09); }
.lp-header-actions { flex: 0 0 auto; }
.lp-header-actions .lp-btn { min-width: 102px; }

.lp-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 790px;
  padding: 120px clamp(24px, 5vw, 76px) 112px;
  isolation: isolate;
  overflow: hidden;
  background: #2a1712;
}
.lp-hero::after { display: none; }
.lp-hero-media {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.lp-hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 8, 7, .94) 0%, rgba(41, 9, 17, .86) 31%, rgba(38, 9, 15, .32) 58%, rgba(15, 5, 3, .08) 100%),
    linear-gradient(0deg, rgba(21, 7, 8, .42) 0%, transparent 42%);
}
.lp-hero-inner {
  width: 100%;
  max-width: 1240px;
  grid-template-columns: minmax(0, 660px) 1fr;
  gap: 0;
}
.lp-hero-copy { max-width: 660px; }
.lp-eyebrow {
  padding: 7px 12px;
  border-radius: 4px;
  border-color: rgba(240, 215, 159, .42);
  background: rgba(62, 21, 19, .46);
  color: var(--lp-gold-pale);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  backdrop-filter: blur(8px);
}
.lp-hero h1 {
  margin: 22px 0 0;
  max-width: 650px;
  font-size: 76px;
  line-height: .95;
  font-weight: 700;
  letter-spacing: 0;
}
.lp-hero h1 span { color: var(--lp-gold-pale); font-style: normal; }
.lp-hero-promise {
  margin: 19px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}
.lp-lead { max-width: 600px; margin: 17px 0 0; font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.86); }
.lp-tamil { margin: 15px 0 0; color: var(--lp-gold-pale); font-size: 15px; }
.lp-hero-actions { margin-top: 28px; gap: 10px; }
.lp-hero-points {
  max-width: 620px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.2);
  gap: 10px 24px;
}
.lp-hero-points li { font-size: 13px; color: rgba(255,255,255,.82); }
.lp-hero-points svg { width: 16px; height: 16px; color: var(--lp-gold-pale); }
.lp-scroll-cue {
  position: absolute;
  right: clamp(24px, 5vw, 76px);
  bottom: 62px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
}
.lp-scroll-cue span { color: var(--lp-gold-pale); font-size: 18px; }

.lp-trust {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: -42px auto 0;
  border: 1px solid var(--lp-line);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(67, 43, 30, .12);
}
.lp-trust > div {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 88px;
  padding: 18px 22px;
}
.lp-trust-icon {
  display: grid !important;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 !important;
  border-radius: 50%;
  background: #f6ead2;
  color: #8a5b13 !important;
}
.lp-trust-icon svg { width: 18px; height: 18px; }
.lp-trust > div > span:last-child { margin: 0; }
.lp-trust strong { font-size: 15px; color: var(--lp-ink); }
.lp-trust small { display: block; margin-top: 3px; color: var(--lp-muted); font-size: 12px; line-height: 1.35; }

.lp-intro { padding: 118px clamp(24px, 5vw, 76px) 105px; background: #fff; }
.lp-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(52px, 7vw, 100px);
  max-width: 1180px;
  margin: 0 auto;
}
.lp-intro-media { position: relative; min-width: 0; margin: 0; }
.lp-intro-media img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 72% center;
  border-radius: 6px;
  box-shadow: 0 24px 52px rgba(58, 36, 25, .16);
}
.lp-intro-media figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 390px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 6px;
  background: rgba(255, 252, 245, .92);
  color: var(--lp-ink);
  backdrop-filter: blur(10px);
}
.lp-intro-media figcaption > svg { color: var(--lp-wine); }
.lp-intro-media figcaption strong, .lp-intro-media figcaption small { display: block; }
.lp-intro-media figcaption strong { font-size: 14px; }
.lp-intro-media figcaption small { margin-top: 2px; color: var(--lp-muted); font-size: 12px; }
.lp-kicker { color: #a27323; font-size: 11px; letter-spacing: .17em; }
.lp-intro-copy h2,
.lp-section-head h2,
.lp-safety h2,
.lp-cta h2 {
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: 0;
}
.lp-intro-copy h2 { max-width: 590px; font-size: 46px; line-height: 1.08; color: var(--lp-wine-deep); }
.lp-intro-copy > p { margin: 20px 0 0; max-width: 610px; color: var(--lp-muted); font-size: 16px; line-height: 1.7; }
.lp-value-list { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--lp-line); }
.lp-value-list li { display: grid; grid-template-columns: 32px 1fr; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--lp-line); }
.lp-value-list li > svg { width: 22px; height: 22px; margin-top: 1px; color: var(--lp-wine); }
.lp-value-list strong, .lp-value-list small { display: block; }
.lp-value-list strong { font-size: 14px; }
.lp-value-list small { margin-top: 3px; color: var(--lp-muted); font-size: 13px; line-height: 1.48; }

.lp-section { padding: 100px clamp(24px, 5vw, 76px); }
.lp-section > * { max-width: 1240px; }
.lp-section-head { max-width: 720px !important; margin-bottom: 52px; }
.lp-section-head h2 { font-size: 44px; line-height: 1.08; color: var(--lp-wine-deep); }
.lp-section-head p { max-width: 620px; margin: 12px auto 0; color: var(--lp-muted); font-size: 15px; line-height: 1.6; }
.lp-process { background: #f6efe5; }
.lp-steps { position: relative; gap: 34px; }
.lp-steps::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: #ccb98e;
}
.lp-step {
  padding: 0 14px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.lp-step-no {
  position: static;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #c4a970;
  border-radius: 50%;
  background: #f6efe5;
  color: var(--lp-wine);
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 700;
}
.lp-step-icon { display: none; }
.lp-step h3 { margin-top: 22px; font-size: 17px; }
.lp-step p { max-width: 250px; color: var(--lp-muted); font-size: 13.5px; }

.lp-section-wine { background: var(--lp-wine-deep); color: #fff; }
.lp-section-wine .lp-section-head h2 { color: #fff; }
.lp-section-wine .lp-section-head p { color: rgba(255,255,255,.65); }
.lp-section-wine .lp-kicker { color: var(--lp-gold-pale); }
.lp-services { grid-template-columns: repeat(2, 1fr); gap: 0 60px; }
.lp-service {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 17px;
  min-height: 150px;
  padding: 26px 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.16);
  border-radius: 0;
  background: transparent;
}
.lp-service:hover { transform: none; box-shadow: none; }
.lp-service-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(240, 215, 159, .4);
  background: rgba(240, 215, 159, .1);
  color: var(--lp-gold-pale);
}
.lp-service h3 { margin: 1px 0 7px; color: #fff; font-size: 17px; }
.lp-service p { max-width: 470px; color: rgba(255,255,255,.66); font-size: 13.5px; line-height: 1.6; }

.lp-safety { padding: 105px clamp(24px, 5vw, 76px); background: #fff; }
.lp-safety-inner {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 8vw, 110px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}
.lp-safety h2 { font-size: 44px; line-height: 1.08; color: var(--lp-wine-deep); }
.lp-safety-copy > p { margin: 20px 0 0; color: var(--lp-muted); font-size: 15px; line-height: 1.7; }
.lp-text-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--lp-wine);
  background: transparent;
  color: var(--lp-wine);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.lp-safety-list { border-top: 1px solid var(--lp-line); }
.lp-safety-list > div { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--lp-line); }
.lp-safety-list > div > svg { width: 22px; height: 22px; color: var(--lp-emerald); }
.lp-safety-list strong, .lp-safety-list small { display: block; }
.lp-safety-list strong { font-size: 15px; }
.lp-safety-list small { margin-top: 4px; color: var(--lp-muted); font-size: 13px; line-height: 1.5; }

.lp-recent { gap: 18px; }
.lp-card { border-color: var(--lp-line); border-radius: 6px; box-shadow: 0 10px 25px rgba(70, 48, 35, .06); }
.lp-card-photo { height: 180px; }
.lp-card-photo.is-bride { background: linear-gradient(135deg, #a94f63, #532032); }
.lp-card-photo.is-groom { background: linear-gradient(135deg, #98723e, #46321e); }
.lp-card-photo span { border-radius: 4px; }
.lp-card-body { padding: 18px; }

.lp-cta {
  max-width: 1240px;
  margin: 0 auto 90px;
  padding: 48px 54px;
  border-radius: 6px;
  background: var(--lp-wine);
}
.lp-cta .lp-kicker { color: var(--lp-gold-pale); }
.lp-cta h2 { font-size: 36px; }
.lp-cta p { margin-top: 8px; max-width: 680px; line-height: 1.55; }

.lp-footer {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 44px 80px;
  padding: 55px clamp(24px, 5vw, 76px) 30px;
  border-top: 0;
  background: #231b18;
  color: rgba(255,255,255,.62);
}
.lp-footer-brand img { width: 48px; height: 48px; border-radius: 50%; background: #fff8e9; }
.lp-footer-brand strong { color: #fff; font-size: 15px; }
.lp-footer-brand small { margin-top: 3px; color: var(--lp-gold-pale); }
.lp-footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.lp-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.lp-footer nav strong { margin-bottom: 8px; color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.lp-footer nav button, .lp-footer nav a, .lp-footer nav span {
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.lp-footer nav button:hover, .lp-footer nav a:hover { color: #fff; background: transparent; }
.lp-footer > p { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.44); }
.lp-staff-link { color: rgba(255,255,255,.5); }

.lp-drawer-backdrop.is-open { background: rgba(24, 10, 11, .66); backdrop-filter: blur(5px); }
.lp-drawer {
  width: min(500px, 100%);
  padding: 30px 34px 36px;
  border-left: 1px solid var(--lp-line);
  background: var(--lp-paper);
  box-shadow: -24px 0 70px rgba(20, 9, 8, .28);
}
.lp-drawer-close {
  top: 22px;
  right: 24px;
  border-color: var(--lp-line);
  background: #fff;
  color: var(--lp-ink);
}
.lp-drawer-close:hover { background: #f4ece1; }
.lp-drawer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; padding-right: 48px; }
.lp-drawer-brand img { width: 48px; height: 48px; border-radius: 50%; background: #fff8e9; }
.lp-drawer-brand strong, .lp-drawer-brand small { display: block; }
.lp-drawer-brand strong { color: var(--lp-wine-deep); font-family: "Cormorant Garamond", serif; font-size: 20px; }
.lp-drawer-brand small { margin-top: 2px; color: var(--lp-muted); font-size: 12px; }
.lp-register {
  gap: 15px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.lp-register-head h2 { font-family: "Cormorant Garamond", serif; font-size: 31px; color: var(--lp-wine-deep); }
.lp-register-head p { margin-top: 5px; line-height: 1.5; }
.lp-access-kicker { display: block; margin-bottom: 7px; color: var(--lp-gold-deep); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lp-field input:not([type=radio]), .lp-phone, .lp-segment span { border-radius: 5px; }
.lp-chip span { height: 34px; border-radius: 4px; font-size: 13px; }
.lp-segment span { min-height: 52px; }
.lp-btn-block { min-height: 50px; height: 50px; }
.lp-register-assure { display: flex; align-items: flex-start; gap: 8px; margin: -2px 0 0; color: var(--lp-muted); font-size: 12px; line-height: 1.45; }
.lp-register-assure svg { width: 15px; height: 15px; margin-top: 1px; color: var(--lp-emerald); }
.lp-login { gap: 19px; padding-top: 12px; box-shadow: none; }
.lp-login .lp-register-head { padding-bottom: 6px; border-bottom: 1px solid var(--lp-line); }
.lp-login-assure { border-radius: 5px; }

@media (max-width: 1120px) {
  .lp-nav { display: none; }
  .lp-header-actions { margin-left: auto; }
  .lp-hero { min-height: 750px; }
  .lp-hero-shade {
    background:
      linear-gradient(90deg, rgba(22, 8, 7, .95) 0%, rgba(42, 10, 17, .82) 50%, rgba(28, 8, 10, .24) 100%),
      linear-gradient(0deg, rgba(21, 7, 8, .44), transparent 44%);
  }
  .lp-hero h1 { font-size: 62px; }
  .lp-trust { margin-left: 24px; margin-right: 24px; }
  .lp-cta { margin-left: 24px; margin-right: 24px; }
}

@media (max-width: 820px) {
  .lp-header { min-height: 72px; padding: 11px 18px; }
  .lp-brand img { width: 44px; height: 44px; }
  .lp-brand strong { font-size: 22px; }
  .lp-hero {
    min-height: 760px;
    align-items: flex-end;
    padding: 110px 24px 92px;
  }
  .lp-hero-media { object-position: 65% center; }
  .lp-hero-shade {
    background:
      linear-gradient(90deg, rgba(22, 8, 7, .88), rgba(31, 8, 12, .47)),
      linear-gradient(0deg, rgba(22, 7, 9, .94) 0%, rgba(28, 7, 12, .73) 53%, rgba(21, 6, 7, .25) 100%);
  }
  .lp-hero-inner { display: block; }
  .lp-hero-copy { max-width: 620px; }
  .lp-hero h1 { font-size: 56px; }
  .lp-hero-promise { font-size: 25px; }
  .lp-scroll-cue { display: none; }
  .lp-trust { grid-template-columns: repeat(2, 1fr); margin-top: -32px; }
  .lp-trust > div:nth-child(3) { border-left: 0; }
  .lp-trust > div:nth-child(n+3) { border-top: 1px solid var(--lp-line); }
  .lp-intro, .lp-section, .lp-safety { padding: 82px 24px; }
  .lp-intro-inner, .lp-safety-inner { grid-template-columns: 1fr; gap: 48px; }
  .lp-intro-copy h2, .lp-section-head h2, .lp-safety h2 { font-size: 39px; }
  .lp-steps { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .lp-steps::before { display: none; }
  .lp-services { gap: 0 34px; }
  .lp-recent { grid-template-columns: repeat(2, 1fr); }
  .lp-footer { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .lp-header { gap: 8px; }
  .lp-brand { gap: 8px; }
  .lp-brand img { width: 39px; height: 39px; }
  .lp-brand strong { font-size: 19px; }
  .lp-brand small { font-size: 8px; }
  .lp-header-actions { gap: 6px; }
  .lp-header-actions .lp-btn { min-width: 0; height: 37px; min-height: 37px; padding: 0 12px; font-size: 12px; }
  .lp-header-actions button.lp-btn-gold { display: none; }
  .lp-hero { min-height: 735px; padding: 98px 18px 68px; }
  .lp-hero-media { object-position: 68% center; }
  .lp-hero h1 { margin-top: 18px; font-size: 44px; line-height: .98; }
  .lp-hero-promise { margin-top: 14px; font-size: 22px; }
  .lp-lead { margin-top: 13px; font-size: 15px; line-height: 1.55; }
  .lp-tamil { font-size: 13px; }
  .lp-eyebrow { max-width: 100%; font-size: 10px; line-height: 1.4; }
  .lp-hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .lp-hero-actions .lp-btn { width: 100%; min-width: 0; padding: 0 12px; font-size: 13px; }
  .lp-hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; padding-top: 14px; }
  .lp-hero-points li:last-child { grid-column: 1 / -1; }
  .lp-trust { margin: -24px 14px 0; }
  .lp-trust > div { min-height: 86px; gap: 9px; padding: 14px 10px; }
  .lp-trust-icon { width: 32px; height: 32px; }
  .lp-trust strong { font-size: 12.5px; }
  .lp-trust small { font-size: 10.5px; }
  .lp-intro, .lp-section, .lp-safety { padding: 66px 18px; }
  .lp-intro-inner { gap: 38px; }
  .lp-intro-media img { aspect-ratio: 4 / 3; }
  .lp-intro-media figcaption { left: 10px; right: 10px; bottom: 10px; padding: 10px; }
  .lp-intro-media figcaption small { display: none; }
  .lp-intro-copy h2, .lp-section-head h2, .lp-safety h2 { font-size: 33px; }
  .lp-intro-copy > p { font-size: 14.5px; }
  .lp-section-head { margin-bottom: 38px; }
  .lp-steps, .lp-services, .lp-recent { grid-template-columns: 1fr; }
  .lp-step { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; }
  .lp-step-no { grid-row: 1 / 3; width: 46px; height: 46px; }
  .lp-step h3 { margin: 1px 0 5px; }
  .lp-step p { max-width: none; }
  .lp-service { min-height: 0; padding: 22px 0; }
  .lp-safety-inner { gap: 36px; }
  .lp-cta { grid-template-columns: 1fr; margin: 0 18px 60px; padding: 34px 24px; }
  .lp-cta h2 { font-size: 30px; }
  .lp-cta-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .lp-cta-actions .lp-btn { width: 100%; }
  .lp-footer { gap: 35px; padding: 44px 20px 26px; }
  .lp-footer-links { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .lp-drawer { padding: 22px 18px 28px; }
  .lp-drawer-close { top: 18px; right: 18px; }
}


/* Wider slide-in panel, and bride / groom tiles with illustrations */
.lp-drawer { width: min(560px, 100%); }
.lp-segment { gap: 10px; }
.lp-segment span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; justify-content: start; padding: 10px 12px; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s; }
.lp-segment span:hover { border-color: var(--lp-gold); }
.lp-segment span b { grid-column: 2; align-self: end; font-size: 15px; font-weight: 700; color: var(--lp-ink); }
.lp-segment span small { grid-column: 2; align-self: start; font-size: 12px; }
.lp-figure { grid-row: 1 / span 2; width: 46px !important; height: 46px !important; padding: 6px; border-radius: 50%; box-sizing: border-box; background: linear-gradient(135deg, #fff3d8, #f3dcb0); color: var(--lp-wine); stroke-width: 1.6 !important; transition: background .15s, color .15s; }
.lp-figure .is-fill { fill: currentColor; stroke: none; }
.lp-segment input:checked + span { background: #fbf1f1; border-color: var(--lp-wine); box-shadow: inset 0 0 0 1px var(--lp-wine); }
.lp-segment input:checked + span .lp-figure { background: var(--lp-wine); color: #f0c46a; }
@media (max-width: 420px) {
  .lp-segment span { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lp-figure { grid-row: auto; }
  .lp-segment span b, .lp-segment span small { grid-column: 1; }
}

/* Slide-in as a floating card: curved corners, double gold border, arched window */
.lp-drawer-backdrop { padding: 14px; box-sizing: border-box; }
.lp-drawer {
  height: 100%; border: 0; border-radius: 30px;
  background: radial-gradient(circle at 100% 0%, rgba(240,196,106,.16), transparent 40%), linear-gradient(180deg, #fffaf1, #fbf3e4);
  box-shadow: 0 0 0 1px rgba(208,154,57,.55), 0 0 0 7px rgba(255,250,241,.9), 0 0 0 8px rgba(208,154,57,.45), -30px 0 80px rgba(20, 3, 8, .45);
  transform: translateX(calc(100% + 40px));
}
.lp-drawer-window { position: relative; height: 150px; margin: -6px 0 22px; border-radius: 160px 160px 18px 18px / 120px 120px 18px 18px; overflow: hidden; border: 2px solid #d4a24c; box-shadow: 0 0 0 5px rgba(212,162,76,.14), 0 14px 30px rgba(75,16,32,.18); }
.lp-drawer-window img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 35%; display: block; }
.lp-drawer-window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(44,7,18,.45)); }
.lp-drawer-window figcaption { position: absolute; z-index: 1; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,250,241,.95); color: #4b1020; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 16px rgba(20,3,8,.25); }
.lp-drawer-window figcaption svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; box-sizing: border-box; background: linear-gradient(135deg, #f0c46a, #d09a39); color: #3a1608; }

.lp-drawer .lp-field input:not([type=radio]), .lp-drawer .lp-phone, .lp-drawer .lp-segment span { border-radius: 14px; }
.lp-drawer .lp-chip span { height: 36px; border-radius: 999px; padding: 0 15px; }
.lp-drawer .lp-btn-block { border-radius: 999px; }

.lp-drawer-moments { margin-top: 26px; }
.lp-drawer-divider { display: flex; align-items: center; gap: 10px; color: #d09a39; margin-bottom: 16px; }
.lp-drawer-divider i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(208,154,57,.6), transparent); }
.lp-drawer-divider svg { width: 16px; height: 16px; }
.lp-drawer-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-drawer-gallery figure { margin: 0; text-align: center; }
.lp-drawer-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; border-radius: 999px 999px 14px 14px; border: 2px solid #e3c487; box-shadow: 0 8px 18px rgba(75,16,32,.16); }
.lp-drawer-gallery figcaption { margin-top: 7px; font-family: "Cormorant Garamond", serif; font-size: 16px; font-weight: 700; color: #4b1020; }
.lp-tamil-note { margin: 14px 0 0; text-align: center; font-family: "Noto Sans Tamil", sans-serif; font-size: 13px; color: #a8742a; }

@media (max-width: 600px) {
  .lp-drawer-backdrop { padding: 8px; }
  .lp-drawer { border-radius: 24px; }
  .lp-drawer-window { height: 120px; }
}

/* Wedding moments: arched mosaic (tall kalasam left, two arches right, wide arch below) */
.lp-drawer-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 14px 12px; }
.lp-drawer-gallery figure { display: flex; flex-direction: column; min-width: 0; }
.lp-drawer-gallery img { aspect-ratio: 4 / 3; border-radius: 120px 120px 14px 14px / 80px 80px 14px 14px; }
.lp-drawer-gallery figure.is-tall { grid-row: span 2; }
.lp-drawer-gallery figure.is-tall img { flex: 1; aspect-ratio: auto; min-height: 0; height: 100%; border-radius: 999px 999px 16px 16px; }
.lp-drawer-gallery figure.is-wide { grid-column: 1 / -1; }
.lp-drawer-gallery figure.is-wide img { aspect-ratio: 16 / 7; border-radius: 220px 220px 16px 16px / 110px 110px 16px 16px; }
.lp-drawer-gallery figcaption { font-size: 15px; }

/* Drawer: more breathing room, centred chip rows, illustrated bride/groom */
.lp-drawer .lp-register { gap: 22px; }
.lp-drawer .lp-register-head p { margin-top: 10px; line-height: 1.6; }
.lp-drawer .lp-field { gap: 10px; }
.lp-drawer .lp-field > span, .lp-drawer .lp-field legend { margin-bottom: 4px; }
.lp-drawer-brand { margin-bottom: 34px; }
.lp-chip-rows { flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.lp-chip-row { display: flex; justify-content: center; gap: 10px; width: 100%; }
.lp-chip-row .lp-chip { flex: 0 1 180px; }
.lp-chip-row .lp-chip span { justify-content: center; width: 100%; box-sizing: border-box; }
.lp-drawer fieldset.lp-field legend { width: 100%; text-align: center; }
.lp-drawer .lp-register-assure, .lp-drawer .lp-login-assure { margin-top: 2px; }
.lp-figure { width: 58px !important; height: 58px !important; padding: 0; background: none; stroke: none !important; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(212,162,76,.55); border-radius: 50%; }
.lp-segment input:checked + span .lp-figure { background: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4b1020; }
.lp-segment span { padding: 14px 16px; }

/* ── My Profile: ribbon, status, completeness, checklist, cropper ── */
/* Ribbon sits on the cover, right side, always visible (the portrait no longer covers it). */
.portal-profile-hero { position: relative; }
.portal-profile-concierge-strip { position: absolute; z-index: 4; top: 86px; right: 18px; display: flex; align-items: center; gap: 10px; padding: 0; justify-content: flex-end; pointer-events: none; }
.portal-profile-concierge-strip > * { pointer-events: auto; }
.portal-profile-concierge-strip span { padding: 7px 16px; border-radius: 999px; font-size: 10.5px; letter-spacing: .1em; white-space: nowrap; }
.portal-profile-strip-link { background: rgba(255,250,241,.92) !important; color: #4b1020 !important; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.portal-profile-strip-link span { padding: 0; background: none; box-shadow: none; letter-spacing: 0; text-transform: none; font-size: 12.5px; }

/* Status badge: soft pulse while under review, tooltip on hover / focus */
.portal-profile-status { position: relative; display: inline-flex; align-items: center; gap: 7px; cursor: help; outline: none; font-size: 11px; }
.portal-profile-status.is-pending { border-color: #ecd29a; background: #fff6e2; color: #8a5a10; animation: portalStatusPulse 2.2s ease-in-out infinite; }
.portal-profile-status.is-alert { border-color: #efc4bd; background: #fff0ee; color: #a43732; }
.portal-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #d09a39; box-shadow: 0 0 0 0 rgba(208,154,57,.6); animation: portalStatusDot 1.4s ease-out infinite; }
@keyframes portalStatusPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(208,154,57,0); } 50% { box-shadow: 0 0 0 5px rgba(208,154,57,.18); } }
@keyframes portalStatusDot { 0% { box-shadow: 0 0 0 0 rgba(208,154,57,.6); opacity: 1; } 70% { box-shadow: 0 0 0 7px rgba(208,154,57,0); opacity: .55; } 100% { opacity: 1; } }
.portal-status-tip { position: absolute; z-index: 20; top: calc(100% + 10px); left: 50%; width: 270px; padding: 11px 13px; border-radius: 12px; background: #2c0712; color: #fbefd9; font-size: 12.5px; font-weight: 500; line-height: 1.5; letter-spacing: 0; text-transform: none; white-space: normal; box-shadow: 0 14px 30px rgba(20,3,8,.3); opacity: 0; visibility: hidden; transform: translate(-50%, -4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.portal-status-tip::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; background: #2c0712; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.portal-profile-status:hover .portal-status-tip, .portal-profile-status:focus .portal-status-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .portal-profile-status.is-pending, .portal-status-dot { animation: none; } }

/* Completeness card in the header */
.portal-profile-identity-copy { flex: 1 1 auto; }
.portal-profile-head-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 3px; }
.portal-profile-head-fact { display: inline-flex; min-width: 0; align-items: center; gap: 6px; color: #594d47; font-size: 12px; font-weight: 650; line-height: 1.35; }
.portal-profile-head-fact svg { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: #b77b20; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-profile-head-fact span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-profile-identity-side { display: grid; flex: 0 1 290px; width: min(290px, 100%); gap: 8px; margin-left: auto; align-self: center; }
.portal-profile-status-card { display: grid; gap: 4px; padding: 9px 12px; border: 1px solid #ecdcc0; border-radius: 8px; background: #fff; box-shadow: 0 5px 15px rgba(75,16,32,.07); }
.portal-profile-status-label { color: #87243b; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.portal-profile-status-value { display: flex; align-items: center; }
.portal-profile-status-card p { margin: 0; color: #6f625a; font-size: 11px; line-height: 1.3; }
.portal-profile-status-card .portal-status-tip { top: 50%; right: calc(100% + 12px); left: auto; transform: translate(4px, -50%); }
.portal-profile-status-card .portal-status-tip::before { right: -5px; left: auto; }
.portal-profile-status-card .portal-profile-status:hover .portal-status-tip,
.portal-profile-status-card .portal-profile-status:focus .portal-status-tip { transform: translate(0, -50%); }
.portal-profile-complete { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid #ecdcc0; border-radius: 16px; background: #fffaf1; color: inherit; text-decoration: none; box-shadow: 0 6px 18px rgba(75,16,32,.08); transition: box-shadow .15s, border-color .15s; }
.portal-profile-complete:hover { border-color: #d09a39; box-shadow: 0 10px 24px rgba(75,16,32,.14); }
.portal-profile-complete-ring { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(#d09a39 var(--deg), #f1e6d3 0); }
.portal-profile-complete-ring b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fffaf1; color: #4b1020; font-size: 13px; font-weight: 800; }
.portal-profile-complete-copy strong { display: block; font-size: 14px; color: #2a1418; }
.portal-profile-complete-copy small { display: block; margin-top: 2px; font-size: 12.5px; color: #a43732; font-weight: 600; }
.portal-profile-complete-go { font-size: 22px; color: #b8862e; line-height: 1; }

/* Section checklist with tick marks */
.portal-section-checklist { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid #f0d9b5; background: #fffaf0; }
.portal-section-checklist.is-done { border-color: #c9e7d4; background: #f2fbf5; }
.portal-section-checklist strong { display: block; margin-bottom: 10px; font-size: 13.5px; color: #8a5a10; }
.portal-section-checklist.is-done strong { color: #237653; }
.portal-section-checklist ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.portal-section-checklist li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #fff; border: 1px solid #ecdcc0; color: #5d4a3c; }
.portal-section-checklist li.is-done { border-color: #c9e7d4; color: #237653; }
.portal-section-checklist li.is-missing { border-color: #f1c9a6; color: #8a4512; background: #fff4e8; }
.portal-check-mark { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 900; }
li.is-done .portal-check-mark { background: #237653; color: #fff; }
li.is-missing .portal-check-mark { border: 1.5px dashed #d08a4a; }
.portal-section-checklist .portal-required-mark { margin-left: -3px; }

/* Photo tools */
.portal-photo-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 6px; }
.portal-photo-tool { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid #e3cfae; border-radius: 999px; background: #fffaf1; color: #4b1020; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.portal-photo-tool:hover { border-color: #d09a39; background: #fff3dc; }
.portal-photo-tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Cropper */
.photo-cropper-backdrop { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; isolation: isolate; padding: 16px; background: rgba(28, 4, 11, .68); backdrop-filter: blur(4px); }
.photo-cropper { position: relative; z-index: 1; width: min(440px, 100%); padding: 22px; border-radius: 22px; background: #fffaf1; box-shadow: 0 30px 70px rgba(20,3,8,.45); }
.photo-cropper-head h3 { margin: 0; font-size: 20px; color: #4b1020; }
.photo-cropper-head p { margin: 4px 0 14px; font-size: 13.5px; color: #7a6a5d; }
.photo-cropper-frame { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 60vh; margin: 0 auto; overflow: hidden; border-radius: 16px; background: #1f0a10; cursor: grab; touch-action: none; user-select: none; }
.photo-cropper-frame.is-dragging { cursor: grabbing; }
.photo-cropper-frame img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.photo-cropper-guide { position: absolute; inset: 0; pointer-events: none; border: 2px solid rgba(240,196,106,.85); border-radius: 16px; background:
  linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)) 33.33% 0 / 1px 100% no-repeat,
  linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)) 66.66% 0 / 1px 100% no-repeat,
  linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)) 0 33.33% / 100% 1px no-repeat,
  linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)) 0 66.66% / 100% 1px no-repeat; }
.photo-cropper-zoom { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: #5d4a3c; }
.photo-cropper-zoom input { flex: 1; accent-color: #4b1020; }
.photo-cropper-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.photo-cropper-actions button { width: auto; margin: 0; min-height: 40px; padding: 0 18px; }

@media (max-width: 760px) {
  .portal-profile-concierge-strip { position: static; justify-content: flex-start; padding: 10px 16px 0; flex-wrap: wrap; }
  .portal-profile-identity { flex-wrap: wrap; }
  .portal-profile-identity-side { flex-basis: 100%; width: 100%; margin: 14px 0 0; }
}
/* The hero clips overflow, so the tooltip opens to the right of the badge. */
.portal-status-tip { top: 50%; left: calc(100% + 12px); transform: translate(-4px, -50%); }
.portal-status-tip::before { top: 50%; left: -5px; transform: translateY(-50%) rotate(45deg); }
.portal-profile-status:hover .portal-status-tip, .portal-profile-status:focus .portal-status-tip { transform: translate(0, -50%); }

/* Status dot sits inline, before the text */
.portal-profile-status .portal-status-dot { position: static; display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; margin: 0; transform: none; }
/* Ribbon: just below the cover, on the right */
.portal-profile-concierge-strip { top: 146px; right: 24px; }
.portal-profile-identity-side { align-self: flex-end; margin-top: 46px; }

/* My Advisor card on the right of the profile header */
.portal-profile-identity-side { align-self: center; margin-top: 0; }
.portal-profile-advisor-card { display: flex; align-items: center; gap: 10px; padding: 8px 13px 8px 8px; border: 1px solid #ecdcc0; border-radius: 8px; background: #fffaf1; color: inherit; text-decoration: none; box-shadow: 0 5px 15px rgba(75,16,32,.07); transition: border-color .15s, box-shadow .15s; }
.portal-profile-advisor-card:hover { border-color: #d09a39; box-shadow: 0 10px 24px rgba(75,16,32,.14); }
.portal-profile-advisor-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #f0c46a, #d09a39); color: #3a1608; }
.portal-profile-advisor-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-profile-advisor-card strong { display: block; font-size: 14px; color: #4b1020; }
.portal-profile-advisor-card small { display: block; margin-top: 1px; font-size: 11.5px; color: #7a6a5d; }
.portal-profile-advisor-go { margin-left: 4px; font-size: 22px; line-height: 1; color: #b8862e; }

/* Compact profile header: shallower cover and a portrait reduced by 10%. */
.portal-profile-cover { height: 112px; }
.portal-profile-avatar-wrap { top: -46px; left: 26px; width: 141px; height: 169px; }
.portal-profile-identity { min-height: 150px; align-items: center; gap: 24px; padding: 14px 28px 14px 192px; }
/* Name block sits a little higher, closer to the cover. */
.portal-profile-identity > .portal-profile-identity-copy { align-self: flex-start; margin-top: 4px; }
@media (max-width: 600px) {
  .portal-profile-cover { height: 112px; }
  .portal-profile-avatar-wrap { top: -38px; left: 14px; width: 93px; height: 110px; }
  .portal-profile-identity { padding-left: 16px; padding-top: 80px; }
  .portal-profile-identity > .portal-profile-identity-copy { margin-top: 0; }
  .portal-profile-head-facts { align-items: flex-start; flex-direction: column; gap: 5px; }
}

/* Header account avatar 20% larger, with the profile photo */
.portal-account-avatar { width: 48px; height: 48px; font-size: 16px; }
.portal-account-avatar.is-large { width: 65px; height: 65px; font-size: 20px; }
.portal-account-avatar > span { overflow: hidden; border-radius: 50%; }
.portal-account-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; display: block; }
.portal-account-avatar:not(.has-ring) > span { width: 100%; height: 100%; display: inline-flex; align-items: center; justify-content: center; }

/* Cropped chart from biodata 15% larger */
.portal-review-charts-row > .portal-chart-crop-card { flex: 1.15 1 52%; }
.portal-review-charts-row > .portal-review-charts-parsed { flex: 1 1 48%; }
.portal-chart-crop-preview { padding: 10px; }
.portal-chart-crop-img { width: 115%; max-width: 100%; }

/* Recommended for You: why this profile was picked */
.portal-recommend-note { padding: 11px 12px; border-radius: 12px; border: 1px solid #ecdcc0; background: linear-gradient(180deg, #fffaf1, #fff6e6); }
.portal-recommend-note strong { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #8a5a10; }
.portal-recommend-note strong svg { width: 14px; height: 14px; color: #d09a39; }
.portal-recommend-note ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.portal-recommend-note li { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 1.4; color: #4a3a30; }
.portal-recommend-note li svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 1px; color: #4b1020; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-recommend-prefs { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; color: #87243b; text-decoration: none; }
.portal-recommend-prefs:hover { text-decoration: underline; }
@media (min-width: 1181px) {
  .portal-match-card { grid-template-columns: 170px minmax(0, 1fr) 250px; }
}
.portal-match-action-buttons { display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); gap: 7px; width: 100%; }
.portal-match-action-buttons .portal-btn-shortlist,
.portal-match-action-buttons .portal-btn-view { width: 100%; min-width: 0; padding: 0 7px; gap: 5px; font-size: 12px; box-sizing: border-box; }
.portal-match-action-buttons .portal-btn-shortlist svg { width: 15px; height: 15px; flex: 0 0 15px; }
.portal-match-action-buttons .portal-btn-hide,
.portal-match-action-buttons .portal-btn-hide.is-on { width: 42px; min-width: 42px; padding: 0; }
.portal-match-action-buttons .portal-btn-hide span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.portal-search[data-view="grid"] .portal-match-action-buttons { grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); }

/* ── Onboarding: Get started and Create my profile ── */
.portal-onboard, .portal-create { max-width: 1080px; margin: 0 auto; padding: 8px 4px 48px; }
.portal-onboard-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff3dc; border: 1px solid #ecd29a; color: #8a5a10; font-size: 13px; font-weight: 700; }
.portal-onboard-kicker svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.portal-onboard-resume { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding: 18px 22px; border-radius: 20px; border: 1px solid #e5c98f; background: linear-gradient(120deg, #fff8ea, #fffdf8); box-shadow: 0 10px 26px rgba(75,16,32,.08); }
.portal-onboard-resume > div:nth-child(2) { flex: 1; min-width: 0; }
.portal-onboard-resume strong { display: block; font-size: 17px; color: #4b1020; }
.portal-onboard-resume span { display: block; margin-top: 4px; font-size: 14px; color: #6d5d50; }
.portal-onboard-resume-ring { flex: 0 0 64px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(#d09a39 var(--deg), #f1e6d3 0); }
.portal-onboard-resume-ring b { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fffaf1; color: #4b1020; font-size: 15px; }
.portal-onboard-resume-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.portal-onboard-resume-actions .primary-button { width: auto; margin: 0; min-height: 46px; padding: 0 24px; font-size: 16px; }

.portal-onboard-hero { text-align: center; padding: 30px 12px 8px; }
.portal-onboard-hero h1 { max-width: 820px; margin: 16px auto 12px; font-family: "Cormorant Garamond", serif; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; color: #4b1020; }
.portal-onboard-hero > p { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.65; color: #5d4a3c; }
.portal-onboard-journey { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 760px; margin: 30px auto 6px; padding: 0; list-style: none; }
.portal-onboard-journey::before { content: ""; position: absolute; top: 21px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, #d8b26a 0 8px, transparent 8px 14px); }
.portal-onboard-journey li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.portal-onboard-journey li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #4b1020; color: #f6d38a; font-weight: 800; font-size: 17px; box-shadow: 0 0 0 5px #fbf3e4; }
.portal-onboard-journey strong { margin-top: 6px; font-size: 15px; color: #2a1418; }
.portal-onboard-journey small { font-size: 13px; color: #7a6a5d; }

.portal-onboard-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.portal-onboard-card { display: flex; flex-direction: column; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid #eadcc6; box-shadow: 0 14px 34px rgba(75,16,32,.07); transition: border-color .15s, box-shadow .15s, transform .15s; }
.portal-onboard-card:hover { border-color: #d09a39; box-shadow: 0 18px 40px rgba(75,16,32,.12); transform: translateY(-2px); }
.portal-onboard-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, #f6d38a, #d09a39); color: #3a1608; }
.portal-onboard-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.portal-onboard-card h2 { margin: 18px 0 8px; font-size: 24px; font-weight: 800; color: #4b1020; }
.portal-onboard-card > p { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: #5d4a3c; }
.portal-onboard-points { display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.portal-onboard-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: #4a3a30; }
.portal-onboard-points svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: #87243b; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-onboard-cta { margin: auto 0 0 !important; width: 100% !important; min-height: 54px; font-size: 17px; justify-content: center; gap: 10px; }
.portal-onboard-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.portal-onboard-later { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin-top: 26px; text-align: center; font-size: 15px; color: #6d5d50; }
.portal-onboard-later strong { color: #2a1418; }

.portal-onboard-card a:focus-visible, .portal-onboard button:focus-visible, .portal-create button:focus-visible { outline: 3px solid #d09a39; outline-offset: 3px; }

/* Create my profile */
.portal-create-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.portal-create-head h1 { margin: 12px 0 6px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; color: #4b1020; }
.portal-create-head p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #5d4a3c; }
.portal-create-head .secondary-button { width: auto; margin: 6px 0 0; white-space: nowrap; }
.portal-create-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.portal-create-steps button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 10px 6px; border: 1px solid #eadcc6; border-radius: 14px; background: #fff; font: inherit; cursor: pointer; color: #5d4a3c; }
.portal-create-step-no { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f4ece1; font-weight: 800; color: #4b1020; }
.portal-create-step-label { font-size: 13px; font-weight: 700; text-align: center; line-height: 1.3; }
.portal-create-steps small { position: absolute; top: 6px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #fff0e4; color: #a4521a; font-size: 11px; font-weight: 800; line-height: 18px; }
.portal-create-steps .is-current button { border-color: #4b1020; background: #4b1020; color: #fff; }
.portal-create-steps .is-current .portal-create-step-no { background: #f6d38a; color: #3a1608; }
.portal-create-steps .is-done .portal-create-step-no { background: #237653; color: #fff; }
.portal-create-body { display: flex; flex-direction: column; gap: 16px; }
.portal-create-body .portal-review-section { display: block; }
.portal-create-summary { padding: 20px; border-radius: 18px; border: 1px solid #ecdcc0; background: #fffaf1; }
.portal-create-summary h3 { margin: 0 0 12px; font-size: 18px; color: #4b1020; }
.portal-create-summary ul { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.portal-create-summary li { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14.5px; color: #5d4a3c; }
.portal-create-foot { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 18px; border-radius: 18px; background: rgba(255,250,241,.96); border: 1px solid #eadcc6; box-shadow: 0 -8px 24px rgba(75,16,32,.08); backdrop-filter: blur(6px); }
.portal-create-foot .primary-button, .portal-create-foot .secondary-button { width: auto; margin: 0; min-height: 48px; padding: 0 26px; font-size: 16px; }
.portal-create-saved { flex: 1; text-align: center; font-size: 13.5px; color: #7a6a5d; }

@media (max-width: 860px) {
  .portal-onboard-choices { grid-template-columns: 1fr; }
  .portal-onboard-resume { flex-wrap: wrap; }
  .portal-onboard-resume-actions { width: 100%; }
  .portal-create-steps { grid-template-columns: repeat(3, 1fr); }
  .portal-create-head { flex-direction: column; }
}
@media (max-width: 520px) {
  .portal-onboard-journey { grid-template-columns: 1fr; gap: 14px; }
  .portal-onboard-journey::before { display: none; }
  .portal-onboard-card { padding: 22px 18px; }
  .portal-create-steps { grid-template-columns: repeat(2, 1fr); }
  .portal-create-saved { display: none; }
  .portal-create-foot { justify-content: space-between; }
}

/* ── Premium profile onboarding ── */
.portal-main:has(.portal-onboarding-page),
.portal-main:has(.portal-biodata-page),
.portal-main:has(.portal-create) {
  max-width: none;
  padding: 26px 28px 56px;
  background: #f8f5f1;
}

.portal-onboard,
.portal-biodata-page,
.portal-create {
  --onb-wine: #68182b;
  --onb-wine-dark: #42101d;
  --onb-rose: #f6e8eb;
  --onb-gold: #c59643;
  --onb-gold-soft: #f5ead2;
  --onb-ivory: #fcfaf6;
  --onb-paper: #ffffff;
  --onb-ink: #2d2223;
  --onb-muted: #716665;
  --onb-line: #e5dcd6;
  --onb-green: #27684f;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 44px;
  color: var(--onb-ink);
}

.portal-onboard a:focus-visible,
.portal-onboard button:focus-visible,
.portal-biodata-page a:focus-visible,
.portal-biodata-page button:focus-visible,
.portal-biodata-page [role="button"]:focus-visible,
.portal-create a:focus-visible,
.portal-create button:focus-visible,
.portal-create input:focus-visible,
.portal-create select:focus-visible,
.portal-create textarea:focus-visible {
  outline: 3px solid rgba(197, 150, 67, .58);
  outline-offset: 3px;
}

.portal-onboard-resume {
  margin: 0 0 18px;
  padding: 16px 20px;
  border: 1px solid #dfca9c;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 8px 22px rgba(66, 16, 29, .06);
}

.portal-onboard-resume-ring { width: 58px; height: 58px; flex-basis: 58px; }
.portal-onboard-resume-ring b { width: 46px; height: 46px; background: #fff; }

.portal-onboard-hero {
  position: relative;
  min-height: 318px;
  overflow: hidden;
  padding: 0;
  border-radius: 8px;
  background: #efe2c9;
  text-align: left;
  isolation: isolate;
  box-shadow: 0 14px 36px rgba(55, 31, 26, .10);
}

.portal-onboard-hero-media,
.portal-onboard-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.portal-onboard-hero-media { z-index: -2; object-fit: cover; object-position: center right; }
.portal-onboard-hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(255, 250, 238, .98) 0%, rgba(255, 250, 238, .92) 46%, rgba(255, 250, 238, .18) 72%, rgba(255, 250, 238, 0) 100%); }
.portal-onboard-hero-copy { max-width: 650px; padding: 46px 52px; }
.portal-onboard-kicker {
  padding: 6px 11px;
  border: 1px solid #ddc28c;
  border-radius: 999px;
  background: rgba(255, 252, 245, .84);
  color: #7b4f0d;
  font-size: 12px;
}
.portal-onboard-hero h1 {
  max-width: 620px;
  margin: 16px 0 12px;
  color: var(--onb-wine-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
}
.portal-onboard-hero-copy > p { max-width: 590px; margin: 0; color: #554847; font-size: 16px; line-height: 1.65; }
.portal-onboard-hero-assurance { display: flex; align-items: flex-start; gap: 10px; max-width: 550px; margin-top: 22px; color: #4c5e55; font-size: 12.5px; line-height: 1.45; }
.portal-onboard-hero-assurance svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--onb-green); fill: none; stroke: currentColor; stroke-width: 1.8; }
.portal-onboard-hero-assurance strong { display: block; color: var(--onb-green); font-size: 13px; }

.portal-onboard-journey {
  max-width: 820px;
  margin: 28px auto 0;
  gap: 12px;
}
.portal-onboard-journey::before { top: 20px; left: 17%; right: 17%; height: 1px; background: #d9c59e; }
.portal-onboard-journey li > span {
  width: 40px;
  height: 40px;
  border: 1px solid #d3b574;
  border-radius: 50%;
  background: #fffaf0;
  color: var(--onb-wine);
  box-shadow: 0 0 0 6px #f8f5f1;
}
.portal-onboard-journey li > span svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.portal-onboard-journey strong { margin-top: 8px; color: var(--onb-ink); font-size: 14px; }
.portal-onboard-journey small { color: var(--onb-muted); font-size: 12px; }

.portal-onboard-choice-heading { margin: 38px 0 18px; text-align: center; }
.portal-onboard-choice-heading > span { display: block; color: var(--onb-wine-dark); font-family: "Cormorant Garamond", Georgia, serif; font-size: 29px; font-weight: 700; }
.portal-onboard-choice-heading p { margin: 4px 0 0; color: var(--onb-muted); font-size: 14px; }
.portal-onboard-choices { gap: 18px; margin-top: 0; }
.portal-onboard-card {
  min-height: 422px;
  padding: 28px;
  border: 1px solid var(--onb-line);
  border-top: 3px solid var(--onb-wine);
  border-radius: 8px;
  background: var(--onb-paper);
  box-shadow: 0 10px 28px rgba(55, 31, 26, .07);
  transform: none;
}
.portal-onboard-card.is-manual { border-top-color: var(--onb-gold); }
.portal-onboard-card:hover { border-color: #d6c5b9; border-top-color: var(--onb-wine); box-shadow: 0 14px 32px rgba(55, 31, 26, .10); transform: none; }
.portal-onboard-card.is-manual:hover { border-top-color: var(--onb-gold); }
.portal-onboard-icon { width: 54px; height: 54px; border-radius: 8px; background: var(--onb-rose); color: var(--onb-wine); }
.portal-onboard-card.is-manual .portal-onboard-icon { background: var(--onb-gold-soft); color: #765116; }
.portal-onboard-icon svg { width: 26px; height: 26px; }
.portal-onboard-card-label { margin-top: 18px; color: #98691e; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portal-onboard-card h2 { margin: 5px 0 9px; color: var(--onb-wine-dark); font-size: 23px; }
.portal-onboard-card > p { min-height: 76px; margin-bottom: 16px; color: var(--onb-muted); font-size: 14.5px; line-height: 1.55; }
.portal-onboard-points { gap: 9px; margin-bottom: 22px; }
.portal-onboard-points li { color: #524746; font-size: 13.5px; }
.portal-onboard-points svg { color: var(--onb-wine); }
.portal-onboard-cta { min-height: 50px; border-radius: 6px !important; background: var(--onb-wine) !important; color: #fff !important; font-size: 15px; box-shadow: 0 8px 18px rgba(104, 24, 43, .16); }
.portal-onboard-cta:hover { background: #7b1c33 !important; }
.portal-onboard-later { margin: 20px auto 0; color: var(--onb-muted); font-size: 13px; }
.portal-onboard-later > svg { width: 17px; height: 17px; color: var(--onb-green); fill: none; stroke: currentColor; }

/* Upload biodata */
.portal-onboarding-subhero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 196px;
  overflow: hidden;
  border: 1px solid var(--onb-line);
  border-radius: 8px 8px 0 0;
  background: #fffaf2;
}
.portal-onboarding-subhero-copy { align-self: center; padding: 28px 34px; }
.portal-onboarding-subhero > img { width: 100%; height: 100%; min-height: 196px; object-fit: cover; }
.portal-onboard-back { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 15px; color: var(--onb-wine); font-size: 12.5px; font-weight: 750; text-decoration: none; }
.portal-onboard-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.portal-onboard-back:hover span { text-decoration: underline; }
.portal-onboarding-subhero h1 { max-width: 700px; margin: 6px 0 7px; color: var(--onb-wine-dark); font-family: "Cormorant Garamond", Georgia, serif; font-size: 35px; line-height: 1.08; letter-spacing: 0; }
.portal-onboarding-subhero p { max-width: 660px; margin: 0; color: var(--onb-muted); font-size: 14px; line-height: 1.55; }

.portal-biodata-page .portal-registration-steps { border-radius: 0 0 8px 8px; }
.portal-biodata-page .portal-registration-steps li { min-height: 66px; padding: 11px 22px; }
.portal-biodata-page .portal-registration-step-number { width: 28px; height: 28px; flex-basis: 28px; }

.portal-upload-workspace { display: grid; grid-template-columns: 315px minmax(0, 1fr); gap: 18px; margin-top: 20px; }
.portal-upload-guidance,
.portal-upload-panel { border: 1px solid var(--onb-line); border-radius: 8px; background: var(--onb-paper); box-shadow: 0 10px 28px rgba(55, 31, 26, .06); }
.portal-upload-guidance { padding: 26px 24px; }
.portal-upload-guidance-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; background: var(--onb-gold-soft); color: #765116; }
.portal-upload-guidance-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.portal-upload-guidance h2 { margin: 17px 0 8px; color: var(--onb-wine-dark); font-size: 21px; }
.portal-upload-guidance > p { margin: 0; color: var(--onb-muted); font-size: 13.5px; line-height: 1.55; }
.portal-upload-guidance ul { display: grid; gap: 15px; margin: 23px 0; padding: 20px 0; border-top: 1px solid var(--onb-line); border-bottom: 1px solid var(--onb-line); list-style: none; }
.portal-upload-guidance li { display: flex; gap: 10px; color: var(--onb-muted); font-size: 12px; line-height: 1.4; }
.portal-upload-guidance li > svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--onb-wine); fill: none; stroke: currentColor; stroke-width: 1.8; }
.portal-upload-guidance li strong { display: block; margin-bottom: 1px; color: var(--onb-ink); font-size: 12.5px; }
.portal-upload-manual-option { display: grid; gap: 6px; font-size: 12.5px; color: var(--onb-muted); }
.portal-upload-manual-option a { display: inline-flex; align-items: center; gap: 4px; color: var(--onb-wine); font-weight: 800; text-decoration: none; }
.portal-upload-manual-option a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

.portal-upload-panel { padding: 28px; }
.portal-upload-panel-head > span { color: #966719; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.portal-upload-panel-head h2 { margin: 4px 0 5px; color: var(--onb-wine-dark); font-size: 23px; }
.portal-upload-panel-head p { margin: 0 0 20px; color: var(--onb-muted); font-size: 13.5px; }
.portal-biodata-page .portal-drop-zone { min-height: 258px; padding: 34px 24px; border: 1.5px dashed #c9aea9; border-radius: 8px; background: #fdfaf5; }
.portal-biodata-page .portal-drop-zone:hover,
.portal-biodata-page .portal-drop-zone:focus-visible,
.portal-biodata-page .portal-drop-zone.dragover { border-color: var(--onb-wine); background: #fff7f4; }
.portal-biodata-page .portal-drop-zone[aria-busy="true"] { cursor: progress; }
.portal-biodata-page .portal-drop-icon { width: 62px; height: 62px; margin-bottom: 14px; border-radius: 8px; background: var(--onb-rose); color: var(--onb-wine); }
.portal-biodata-page .portal-drop-icon svg { width: 28px; height: 28px; }
.portal-biodata-page .portal-drop-zone p strong { color: var(--onb-wine-dark); font-size: 18px; }
.portal-biodata-page .portal-drop-zone p:not(:first-of-type) { color: var(--onb-muted); font-size: 13px; }
.portal-biodata-page .portal-drop-action { min-width: 132px; margin: 14px auto 9px; border: 1px solid var(--onb-wine); border-radius: 6px; background: var(--onb-wine); color: #fff; }
.portal-biodata-page .portal-drop-hint { color: #887d78 !important; font-size: 11.5px !important; }

.portal-selected-file { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 14px; padding: 13px 14px; border: 1px solid var(--onb-line); border-radius: 8px; background: #fff; }
.portal-selected-file[hidden] { display: none; }
.portal-selected-file-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; background: #f4ece9; color: var(--onb-wine); }
.portal-selected-file-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
.portal-selected-file-copy { min-width: 0; }
.portal-selected-file-copy strong,
.portal-selected-file-copy > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-selected-file-copy strong { color: var(--onb-ink); font-size: 13.5px; }
.portal-selected-file-copy > span { margin-top: 2px; color: var(--onb-muted); font-size: 11.5px; }
.portal-selected-file-actions { display: flex; gap: 4px; }
.portal-selected-file-actions button { height: 32px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: var(--onb-wine); font: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer; }
.portal-selected-file-actions button:hover { background: var(--onb-rose); }
.portal-upload-progress { height: 3px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: #ede6e2; }
.portal-upload-progress i { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--onb-gold); transform: translateX(-110%); animation: portal-upload-progress 1.2s ease-in-out infinite; }
.portal-selected-file[data-state="success"] { border-color: #b8d9ca; background: #f4fbf7; }
.portal-selected-file[data-state="success"] .portal-selected-file-icon { background: #e1f4e9; color: var(--onb-green); }
.portal-selected-file[data-state="success"] .portal-upload-progress i { width: 100%; transform: none; animation: none; background: var(--onb-green); }
.portal-selected-file[data-state="error"] { border-color: #e7bab8; background: #fff7f6; }
.portal-selected-file[data-state="error"] .portal-upload-progress i { width: 100%; transform: none; animation: none; background: #a73d39; }
@keyframes portal-upload-progress { 50% { transform: translateX(165%); } 100% { transform: translateX(320%); } }

.portal-biodata-page .portal-extraction-status { margin-top: 12px; border-radius: 8px; font-size: 12.5px; }
.portal-upload-privacy { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 12px 13px; border-left: 3px solid var(--onb-green); background: #f1f8f4; color: #577067; font-size: 11.5px; line-height: 1.45; }
.portal-upload-privacy svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--onb-green); fill: none; stroke: currentColor; }
.portal-upload-privacy strong { display: block; color: var(--onb-green); font-size: 12px; }
.portal-biodata-page .portal-fallback-test-btn { margin: 13px auto 0; border: 0; background: transparent; color: #8a7d78; font-size: 11px; text-decoration: underline; box-shadow: none; }

/* Manual profile creation */
.portal-create { max-width: 1140px; }
.portal-create-head { align-items: flex-end; margin: 0 0 18px; padding: 24px 28px; border: 1px solid var(--onb-line); border-radius: 8px; background: #fffaf2; }
.portal-create-head-copy { max-width: 780px; }
.portal-create-head .portal-onboard-back { margin-bottom: 12px; }
.portal-create-head h1 { margin: 13px 0 6px; color: var(--onb-wine-dark); font-family: "Cormorant Garamond", Georgia, serif; font-size: 35px; font-weight: 700; line-height: 1.08; letter-spacing: 0; }
.portal-create-head p { color: var(--onb-muted); font-size: 14px; }
.portal-create-later { min-height: 42px; border-radius: 6px !important; }
.portal-create-progress { margin-bottom: 10px; padding: 12px 16px; border: 1px solid var(--onb-line); border-radius: 8px; background: #fff; }
.portal-create-progress > div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 7px; color: var(--onb-muted); font-size: 11.5px; }
.portal-create-progress strong { color: var(--onb-wine); }
.portal-create-progress-track { display: block; height: 5px; overflow: hidden; border-radius: 5px; background: #eee7e2; }
.portal-create-progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--onb-wine); transition: width .22s ease; }
.portal-create-steps { position: relative; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 0 0 14px; padding: 0 8px; border: 1px solid var(--onb-line); border-radius: 8px; background: #fff; }
.portal-create-steps::before { content: ""; position: absolute; top: 31px; left: 8%; right: 8%; height: 1px; background: #ded4cd; }
.portal-create-steps button { min-height: 82px; padding: 10px 4px; border: 0; border-radius: 0; background: transparent; color: var(--onb-muted); }
.portal-create-step-no { z-index: 1; width: 36px; height: 36px; border: 1px solid #d8cdc6; background: #fff; color: var(--onb-wine); }
.portal-create-step-no svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.portal-create-step-label { font-size: 11.5px; }
.portal-create-steps .is-current button { background: transparent; color: var(--onb-wine-dark); }
.portal-create-steps .is-current .portal-create-step-no { border-color: var(--onb-wine); background: var(--onb-wine); color: #fff; box-shadow: 0 0 0 4px var(--onb-rose); }
.portal-create-steps .is-done .portal-create-step-no { border-color: var(--onb-green); background: var(--onb-green); color: #fff; }
.portal-create-steps small { top: 7px; right: 13px; background: #fff1ed; color: #9a3d30; }
.portal-create-section-intro { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--onb-line); border-left: 3px solid var(--onb-gold); border-radius: 8px; background: #fffaf2; }
.portal-create-section-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; background: var(--onb-gold-soft); color: #765116; }
.portal-create-section-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.portal-create-section-intro > div > span { color: #98691e; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.portal-create-section-intro h2 { margin: 2px 0 2px; color: var(--onb-wine-dark); font-size: 21px; }
.portal-create-section-intro p { margin: 0; color: var(--onb-muted); font-size: 12.5px; }
.portal-create-missing,
.portal-create-complete { padding: 6px 9px; border-radius: 5px; font-size: 10.5px; white-space: nowrap; }
.portal-create-missing { background: #fff0ed; color: #963c32; }
.portal-create-complete { background: #eaf6ef; color: var(--onb-green); }
.portal-create-body { gap: 14px; }
.portal-create .portal-review-section { border-color: var(--onb-line); border-radius: 8px; box-shadow: 0 8px 22px rgba(55, 31, 26, .05); }
.portal-create .portal-review-guidance { border-radius: 6px; }
.portal-create-summary { border-radius: 8px; background: #fffaf2; }
.portal-create-foot { bottom: 10px; margin-top: 18px; padding: 11px 13px; border-radius: 8px; background: rgba(255, 252, 247, .97); box-shadow: 0 -8px 22px rgba(66, 16, 29, .08); }
.portal-create-foot .primary-button,
.portal-create-foot .secondary-button { min-height: 44px; border-radius: 6px; font-size: 13.5px; }
.portal-create-foot button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.portal-create-foot button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.portal-create-saved { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.portal-create-saved svg { width: 15px; height: 15px; color: var(--onb-green); fill: none; stroke: currentColor; }

@media (max-width: 900px) {
  .portal-main:has(.portal-onboarding-page),
  .portal-main:has(.portal-biodata-page),
  .portal-main:has(.portal-create) { padding: 20px 18px 44px; }
  .portal-onboard-hero-copy { padding: 38px 34px; }
  .portal-onboard-hero h1 { font-size: 40px; }
  .portal-onboard-choices { grid-template-columns: 1fr 1fr; }
  .portal-upload-workspace { grid-template-columns: 270px minmax(0, 1fr); }
  .portal-onboarding-subhero { grid-template-columns: minmax(0, 1fr) 250px; }
  .portal-create-steps { overflow-x: auto; grid-template-columns: repeat(6, 105px); }
  .portal-create-steps::before { display: none; }
}

@media (max-width: 720px) {
  .portal-onboard-hero { min-height: 380px; }
  .portal-onboard-hero-media { object-position: 68% center; }
  .portal-onboard-hero-shade { background: linear-gradient(90deg, rgba(255, 250, 238, .98) 0%, rgba(255, 250, 238, .9) 72%, rgba(255, 250, 238, .42) 100%); }
  .portal-onboard-hero-copy { max-width: 560px; padding: 34px 28px; }
  .portal-onboard-hero h1 { font-size: 37px; }
  .portal-onboard-choices { grid-template-columns: 1fr; }
  .portal-onboard-card { min-height: 0; }
  .portal-onboard-card > p { min-height: 0; }
  .portal-onboarding-subhero { grid-template-columns: 1fr; }
  .portal-onboarding-subhero > img { height: 128px; min-height: 128px; object-position: center 45%; }
  .portal-upload-workspace { grid-template-columns: 1fr; }
  .portal-upload-panel { order: 1; }
  .portal-upload-guidance { order: 2; }
  .portal-biodata-page .portal-registration-steps small { display: none; }
  .portal-create-head { align-items: flex-start; padding: 22px; }
  .portal-create-section-intro { grid-template-columns: 42px minmax(0, 1fr); }
  .portal-create-section-intro > strong { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 520px) {
  .portal-main:has(.portal-onboarding-page),
  .portal-main:has(.portal-biodata-page),
  .portal-main:has(.portal-create) { padding: 14px 12px 34px; }
  .portal-onboard-resume { gap: 12px; padding: 14px; }
  .portal-onboard-resume-ring { width: 52px; height: 52px; flex-basis: 52px; }
  .portal-onboard-resume-ring b { width: 42px; height: 42px; font-size: 12px; }
  .portal-onboard-hero { min-height: 420px; }
  .portal-onboard-hero-media { object-position: 76% center; }
  .portal-onboard-hero-shade { background: rgba(255, 250, 238, .87); }
  .portal-onboard-hero-copy { padding: 30px 20px; }
  .portal-onboard-hero h1 { font-size: 34px; }
  .portal-onboard-hero-copy > p { font-size: 14.5px; }
  .portal-onboard-journey { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .portal-onboard-journey::before { display: block; left: 14%; right: 14%; }
  .portal-onboard-journey li > span { width: 36px; height: 36px; }
  .portal-onboard-journey strong { font-size: 11px; text-align: center; }
  .portal-onboard-journey small { display: none; }
  .portal-onboard-choice-heading > span { font-size: 25px; }
  .portal-onboard-card { padding: 22px 18px; }
  .portal-onboard-later { align-items: flex-start; flex-wrap: nowrap; text-align: left; }
  .portal-onboarding-subhero-copy { padding: 22px 18px; }
  .portal-onboarding-subhero h1 { font-size: 29px; }
  .portal-biodata-page .portal-registration-steps { padding: 0 4px; }
  .portal-biodata-page .portal-registration-steps li { justify-content: center; min-height: 58px; padding: 8px 3px; }
  .portal-biodata-page .portal-registration-steps li > span:last-child { display: none; }
  .portal-biodata-page .portal-registration-steps li:not(:last-child)::after { height: 24px; }
  .portal-upload-panel,
  .portal-upload-guidance { padding: 21px 17px; }
  .portal-biodata-page .portal-drop-zone { min-height: 240px; padding: 28px 14px; }
  .portal-selected-file { grid-template-columns: 38px minmax(0, 1fr); }
  .portal-selected-file-icon { width: 38px; height: 38px; }
  .portal-selected-file-actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid var(--onb-line); padding-top: 5px; }
  .portal-create-head { padding: 19px 17px; }
  .portal-create-head h1 { font-size: 29px; }
  .portal-create-later { width: 100% !important; }
  .portal-create-progress > div { font-size: 10.5px; }
  .portal-create-section-intro { padding: 14px; }
  .portal-create-foot { bottom: 6px; gap: 8px; padding: 9px; }
  .portal-create-foot .primary-button,
  .portal-create-foot .secondary-button { flex: 1; min-width: 0; padding: 0 10px; font-size: 12.5px; }
  .portal-create-saved { display: none; }
  .portal-create .portal-review-fields { grid-template-columns: 1fr; }
  .portal-create .portal-review-field:nth-child(even) { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-onboard-card,
  .portal-create-progress-track i,
  .portal-upload-progress i { transition: none; animation: none; }
  .portal-selected-file[data-state="loading"] .portal-upload-progress i { width: 45%; transform: none; }
}

/* ── Get started v3: compact welcome, choices first, help band ── */
.portal-onboard-hero.is-compact { min-height: 0; }
.portal-onboard-hero.is-compact .portal-onboard-hero-copy { max-width: 700px; padding: 34px 44px 74px; }
.portal-onboard-hero.is-compact h1 { font-size: clamp(32px, 4vw, 44px); margin: 14px 0 10px; }
.portal-onboard-hero.is-compact h1 em { font-style: italic; color: #a5732a; }
.portal-onboard-hero.is-compact p { max-width: 560px; }
.portal-onboard-kicker [lang="ta"] { font-family: "Noto Sans Tamil", sans-serif; }
.portal-onboard-registration { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 0; }
.portal-onboard-registration > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 7px 14px 7px 10px; border-radius: 12px; background: rgba(255,255,255,.8); border: 1px solid #ead8b4; }
.portal-onboard-registration svg { grid-row: span 2; width: 16px; height: 16px; color: #87243b; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-onboard-registration dt { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a7a6b; }
.portal-onboard-registration dd { margin: 0; font-size: 14px; font-weight: 700; color: #2a1418; }

/* Cards lift over the bottom of the hero */
.portal-onboard-choices.is-raised { position: relative; z-index: 2; margin: -48px 22px 0; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.portal-onboard-choices.is-raised .portal-onboard-card { padding: 26px 28px 22px; border-radius: 18px; }
.portal-onboard-card.is-upload { border-top: 4px solid #6b1a2e; box-shadow: 0 22px 50px rgba(75,16,32,.14); }
.portal-onboard-card.is-manual { border-top: 4px solid #c9973f; background: linear-gradient(180deg, #fffdf9, #fbf6ee); }
.portal-onboard-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.portal-onboard-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 6px; background: #f1e9dc; color: #5d4a3c; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.portal-onboard-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.portal-onboard-badge.is-wine { background: #6b1a2e; color: #fff; }
.portal-onboard-badge.is-green { background: #e6f5ec; color: #1d6b3c; text-transform: none; letter-spacing: 0; font-size: 12px; }
.portal-onboard-time { font-size: 12.5px; color: #8a7a6b; }
.portal-onboard-choices.is-raised .portal-onboard-card h2 { margin: 0 0 8px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; line-height: 1.1; }
.portal-onboard-choices.is-raised .portal-onboard-card > p { font-size: 15px; margin-bottom: 16px; }

.portal-onboard-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px; border: 2px dashed #d9c3a0; border-radius: 16px; background: #faf6ef; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.portal-onboard-drop:hover, .portal-onboard-drop.is-over, .portal-onboard-drop:focus-visible { border-color: #87243b; background: #fbf1f1; outline: none; }
.portal-onboard-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.portal-onboard-drop-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(75,16,32,.1); color: #87243b; }
.portal-onboard-drop-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-onboard-drop strong { margin-top: 6px; font-size: 16px; color: #2a1418; }
.portal-onboard-drop strong u { color: #87243b; text-decoration-color: #d09a39; text-underline-offset: 4px; }
.portal-onboard-drop small { font-size: 13px; color: #7a6a5d; }
.portal-onboard-reads { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: #6d5d50; }
.portal-onboard-reads b { color: #4b1020; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; }

.portal-onboard-steps-list { display: flex; flex-direction: column; margin: 0 0 4px; padding: 6px 14px; border-radius: 14px; border: 1px solid #ecdcc4; background: #fff; list-style: none; }
.portal-onboard-steps-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #f2e8da; }
.portal-onboard-steps-list li:first-child { border-top: 0; }
.portal-onboard-steps-list li > span { flex: 0 0 34px; display: grid; place-items: center; height: 30px; border-radius: 8px; background: #f6efe4; color: #8a5a10; font-size: 12.5px; font-weight: 800; }
.portal-onboard-steps-list strong { display: block; font-size: 14.5px; color: #2a1418; }
.portal-onboard-steps-list small { display: block; font-size: 12.5px; color: #8a7a6b; line-height: 1.4; }

.portal-onboard-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 18px; }
.portal-onboard-card-foot > span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #6d5d50; }
.portal-onboard-card-foot > span svg { width: 15px; height: 15px; color: #237653; fill: none; stroke: currentColor; stroke-width: 1.8; }
.portal-onboard-choices.is-raised .portal-onboard-cta { width: auto !important; min-height: 50px; padding: 0 22px; font-size: 15.5px; margin: 0 !important; white-space: nowrap; }
.portal-onboard-cta svg { width: 18px; height: 18px; }
.portal-onboard-cta.is-soft { background: #efe6d8 !important; border-color: #e0d0b6 !important; color: #6b1a2e !important; }
.portal-onboard-cta.is-soft:hover { background: #e7dbc7 !important; }

.portal-onboard-journey { margin-top: 38px; }

.portal-onboard-help { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 34px; padding: 22px 26px; border-radius: 18px; background: linear-gradient(120deg, #f4ede2, #efe5d6); border: 1px solid #e3d3b8; }
.portal-onboard-help-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #6b1a2e; color: #f6d38a; }
.portal-onboard-help-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.portal-onboard-help strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; color: #2a1418; }
.portal-onboard-help span { display: block; margin-top: 2px; font-size: 14.5px; color: #5d4a3c; }
.portal-onboard-help small { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: #6d5d50; }
.portal-onboard-help small svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.portal-onboard-help-actions { display: flex; gap: 10px; }
.portal-onboard-help-actions a { width: auto; margin: 0; min-height: 46px; padding: 0 18px; gap: 8px; white-space: nowrap; }
.portal-onboard-help-actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

@media (max-width: 900px) {
  .portal-onboard-choices.is-raised { grid-template-columns: 1fr; margin: -40px 12px 0; }
  .portal-onboard-help { grid-template-columns: auto 1fr; }
  .portal-onboard-help-actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .portal-onboard-hero.is-compact .portal-onboard-hero-copy { padding: 26px 20px 64px; }
  .portal-onboard-choices.is-raised { margin: -40px 0 0; }
  .portal-onboard-card-foot { flex-direction: column; align-items: stretch; }
  .portal-onboard-choices.is-raised .portal-onboard-cta { width: 100% !important; justify-content: center; }
  .portal-onboard-help-actions { flex-direction: column; }
}


/* ── Get started v4: slim welcome so both choices fit on one screen ── */
.portal-onboard-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin: 4px 0 18px; padding: 0 4px 16px; border-bottom: 1px solid #ecdfca; background: none; }
.portal-onboard-hello { display: inline-block; font-family: "Noto Sans Tamil", sans-serif; font-size: 15px; font-weight: 600; color: #a5732a; }
.portal-onboard-welcome h1 { margin: 2px 0 4px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; line-height: 1.05; color: #42101d; }
.portal-onboard-welcome p { margin: 0; font-size: 15px; color: #716665; }
.portal-onboard-welcome .portal-onboard-registration { margin: 0; }
.portal-onboard-welcome .portal-onboard-registration > div { background: #fff; }

.portal-onboard-choices.is-flat { margin: 0; gap: 18px; }
.portal-onboard-choices.is-flat .portal-onboard-card { padding: 20px 22px 18px; }
.portal-onboard-choices.is-flat .portal-onboard-card-top { margin-bottom: 10px; }
.portal-onboard-choices.is-flat .portal-onboard-card h2 { font-size: 26px; margin-bottom: 4px; }
.portal-onboard-choices.is-flat .portal-onboard-card > p { margin-bottom: 12px; font-size: 14.5px; }
.portal-onboard-choices.is-flat .portal-onboard-drop { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 16px; text-align: left; }
.portal-onboard-choices.is-flat .portal-onboard-drop-icon { grid-row: span 2; width: 48px; height: 48px; }
.portal-onboard-choices.is-flat .portal-onboard-drop strong { margin: 0; font-size: 15px; }
.portal-onboard-choices.is-flat .portal-onboard-reads { margin-top: 10px; font-size: 12.5px; }
.portal-onboard-choices.is-flat .portal-onboard-steps-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0; border: 0; background: none; }
.portal-onboard-choices.is-flat .portal-onboard-steps-list li { gap: 9px; padding: 8px 10px; border: 1px solid #ecdcc4; border-radius: 10px; background: #fff; }
.portal-onboard-choices.is-flat .portal-onboard-steps-list li:first-child { border-top: 1px solid #ecdcc4; }
.portal-onboard-choices.is-flat .portal-onboard-steps-list li > span { flex-basis: 28px; height: 24px; font-size: 11.5px; }
.portal-onboard-choices.is-flat .portal-onboard-steps-list strong { font-size: 13.5px; }
.portal-onboard-choices.is-flat .portal-onboard-card-foot { padding-top: 14px; }
.portal-onboard-choices.is-flat .portal-onboard-cta { min-height: 46px; }
@media (max-width: 560px) {
  .portal-onboard-welcome { align-items: flex-start; }
  .portal-onboard-choices.is-flat .portal-onboard-steps-list { grid-template-columns: 1fr; }
}

/* Get started: soft wedding backdrop behind the page (silk, jasmine and lamp on the right) */
.portal-onboarding-page { position: relative; isolation: isolate; }
.portal-onboarding-page::before {
  /* Full browser width, so wide screens have no plain bands either side of the centred content. */
  content: ""; position: absolute; top: -26px; bottom: -56px; left: calc(50% - 50vw); right: calc(50% - 50vw);
  z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(252,250,246,.97) 0%, rgba(252,250,246,.93) 45%, rgba(252,250,246,.55) 75%, rgba(252,250,246,.35) 100%),
    linear-gradient(180deg, rgba(252,250,246,0) 55%, rgba(252,250,246,.95) 100%),
    url("assets/login-wedding-detail.png") right center / cover no-repeat;
}
.portal-onboarding-page .portal-onboard-card { background-color: rgba(255,255,255,.96); backdrop-filter: blur(2px); }
.portal-onboarding-page .portal-onboard-card.is-manual { background: linear-gradient(180deg, rgba(255,253,249,.97), rgba(251,246,238,.97)); }
.portal-onboarding-page .portal-onboard-welcome { border-bottom-color: rgba(201,151,63,.35); }
@media (max-width: 760px) {
  .portal-onboarding-page::before {
    background:
      linear-gradient(180deg, rgba(252,250,246,.7) 0%, rgba(252,250,246,.96) 40%),
      url("assets/login-wedding-detail.png") 70% top / auto 320px no-repeat;
  }
}

/* Manual card: full numbered list with descriptions (as in the earlier layout) */
.portal-onboard-choices.is-flat .portal-onboard-steps-list { display: flex; flex-direction: column; gap: 0; padding: 4px 14px; border: 1px solid #ecdcc4; border-radius: 14px; background: #fff; }
.portal-onboard-choices.is-flat .portal-onboard-steps-list li { gap: 12px; padding: 8px 0; border: 0; border-top: 1px solid #f2e8da; border-radius: 0; background: none; }
.portal-onboard-choices.is-flat .portal-onboard-steps-list li:first-child { border-top: 0; }
.portal-onboard-choices.is-flat .portal-onboard-steps-list li > span { flex: 0 0 34px; height: 28px; font-size: 12px; }
.portal-onboard-choices.is-flat .portal-onboard-steps-list strong { font-size: 14px; }
.portal-onboard-choices.is-flat .portal-onboard-steps-list small { font-size: 12.5px; }

/* Upload card: stacked drop zone with format chips, and the AI-reading animation */
.portal-onboard-choices .portal-onboard-drop.is-stacked { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 16px 16px; text-align: center; }
.portal-onboard-drop-icon.is-cloud { width: 58px !important; height: 58px !important; border-radius: 16px; background: #f1ebe2; box-shadow: none; color: #7a5a1c; }
.portal-onboard-drop-icon.is-cloud svg { width: 28px; height: 28px; }
.portal-onboard-drop.is-stacked strong { margin-top: 6px !important; font-size: 15.5px !important; }
.portal-onboard-drop.is-stacked strong u { margin-left: 4px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration-thickness: 2px; }
.portal-onboard-formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.portal-onboard-formats > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 6px; background: #fff; border: 1px solid #ecdcc4; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #5d4a3c; }
.portal-onboard-formats i { display: grid; place-items: center; min-width: 30px; height: 20px; padding: 0 4px; border-radius: 4px; font-style: normal; font-size: 9px; font-weight: 900; letter-spacing: .04em; color: #fff; }
.portal-onboard-formats i.is-pdf { background: #b3262f; }
.portal-onboard-formats i.is-img { background: #2f7a55; }

.portal-parse-demo { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; margin-top: 14px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #fbf6ee, #f7efe3); border: 1px solid #efe2cc; }
.portal-parse-page { position: relative; height: 140px; padding: 12px 10px; border-radius: 8px; background: #fff; box-shadow: 0 8px 18px rgba(75,16,32,.1); overflow: hidden; display: flex; flex-direction: column; gap: 7px; }
.portal-parse-photo { align-self: flex-end; width: 26px; height: 32px; border-radius: 4px; background: linear-gradient(135deg, #e7d2b4, #c9a87a); margin-bottom: -26px; }
.portal-parse-page > i { display: block; height: 6px; border-radius: 3px; background: #eee3d3; }
.portal-parse-chart { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 48px; margin-top: 4px; }
.portal-parse-chart b { height: 14px; border: 1px solid #d9c3a0; border-radius: 2px; }
.portal-parse-scan { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(180deg, rgba(208,154,57,0), rgba(208,154,57,.35), rgba(208,154,57,0)); border-bottom: 2px solid #d09a39; animation: portalScan 5.6s ease-in-out infinite; }
@keyframes portalScan { 0% { transform: translateY(-26px); } 55% { transform: translateY(140px); } 100% { transform: translateY(140px); } }
.portal-parse-fields { display: flex; flex-wrap: wrap; gap: 6px; align-content: center; }
.portal-parse-title { flex-basis: 100%; display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a5a10; }
.portal-parse-title svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.portal-parse-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: #fff; border: 1px solid #ecdcc4; font-size: 12.5px; font-weight: 600; color: #4a3a30; opacity: 0; transform: translateY(6px) scale(.96); animation: portalChip 5.6s ease-out infinite; animation-delay: calc(var(--i) * .35s); }
.portal-parse-chip svg { width: 13px; height: 13px; color: #87243b; fill: none; stroke: currentColor; stroke-width: 1.8; }
.portal-parse-chip em { font-style: normal; font-weight: 900; font-size: 11px; color: #237653; }
@keyframes portalChip { 0% { opacity: 0; transform: translateY(6px) scale(.96); } 8%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .portal-parse-scan { animation: none; transform: translateY(60px); }
  .portal-parse-chip { animation: none; opacity: 1; transform: none; }
}
@media (max-width: 560px) { .portal-parse-demo { grid-template-columns: 1fr; } .portal-parse-page { display: none; } }

/* ✨ in "AI reads the details": a twinkling magic-wand sparkle (slow turn, pulse and glow) */
.portal-parse-title svg { width: 16px; height: 16px; color: #d09a39; transform-origin: 50% 50%; filter: drop-shadow(0 0 0 rgba(240,196,106,0)); animation: portalTwinkle 2.4s ease-in-out infinite; }
@keyframes portalTwinkle {
  0%   { transform: rotate(0deg) scale(.85); opacity: .7; filter: drop-shadow(0 0 0 rgba(240,196,106,0)); }
  25%  { transform: rotate(45deg) scale(1.25); opacity: 1; filter: drop-shadow(0 0 6px rgba(240,196,106,.95)); color: #f0c46a; }
  50%  { transform: rotate(90deg) scale(.9); opacity: .8; filter: drop-shadow(0 0 2px rgba(240,196,106,.5)); }
  75%  { transform: rotate(135deg) scale(1.15); opacity: 1; filter: drop-shadow(0 0 5px rgba(240,196,106,.85)); color: #f0c46a; }
  100% { transform: rotate(180deg) scale(.85); opacity: .7; filter: drop-shadow(0 0 0 rgba(240,196,106,0)); }
}
@media (prefers-reduced-motion: reduce) { .portal-parse-title svg { animation: none; } }

/* Get started fixes: cards keep their own height (no empty gaps), registration panel, help band */
.portal-onboard-choices.is-raised { align-items: start; }
.portal-onboard-choices.is-raised .portal-onboard-card { justify-content: flex-start; height: auto; }
.portal-onboard-choices.is-raised .portal-onboard-card > * { flex: 0 0 auto; }
.portal-onboard-choices.is-raised .portal-onboard-card-foot { margin-top: 16px; padding-top: 0; }
.portal-onboard-choices.is-raised .portal-onboard-drop { margin-top: 0; }

.portal-onboard-account { margin-top: 28px; padding: 18px 22px; border-radius: 16px; background: rgba(255,255,255,.95); border: 1px solid #ecdfca; box-shadow: 0 8px 22px rgba(66,16,29,.05); }
.portal-onboard-account > header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #f0e6d6; }
.portal-onboard-account-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #f5ead2; color: #7a5a1c; }
.portal-onboard-account-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.portal-onboard-account > header strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; color: #2a1418; }
.portal-onboard-account > header small { display: block; font-size: 12.5px; color: #8a7a6b; }
.portal-onboard-account .portal-onboard-registration { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.portal-onboard-account .portal-onboard-registration > div { padding: 10px 14px; border-radius: 10px; background: #f8f3eb; border: 0; }
.portal-onboard-account .portal-onboard-registration dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-onboard-account > footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 13.5px; color: #6d5d50; }
.portal-onboard-account > footer .portal-link-button { font-weight: 700; color: #87243b; }
.portal-onboard-later { display: none; }

.portal-onboard-help-icon svg { position: static !important; display: block; margin: 0 !important; transform: none !important; }
.portal-onboard-help-actions .primary-button, .portal-onboard-help-actions .primary-button span { color: #fff !important; }
.portal-onboard-help-actions .primary-button svg { color: #fff; }

@media (max-width: 900px) { .portal-onboard-account .portal-onboard-registration { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .portal-onboard-account .portal-onboard-registration { grid-template-columns: 1fr; } }
/* The help band's text rule must not reach the icon tile or the button labels. */
.portal-onboard-help .portal-onboard-help-icon { display: grid; place-items: center; margin: 0; }
.portal-onboard-help-actions a span { display: inline; margin: 0; font-size: 15px; color: inherit; }
.portal-onboard-help-actions .secondary-button { color: #42101d; }

/* Both choice cards the same height; the description no longer reserves 76px; buttons at the bottom */
.portal-onboard-choices.is-raised { align-items: stretch; }
.portal-onboard-choices.is-raised .portal-onboard-card { height: 100%; }
.portal-onboard-choices.is-raised .portal-onboard-card > p { min-height: 0; margin-bottom: 14px; }
.portal-onboard-choices.is-raised .portal-onboard-card-foot { margin-top: auto; padding-top: 16px; }
.portal-onboard-choices.is-raised .portal-parse-demo { flex: 1 0 auto; align-content: center; }

/* Journey: a bordered box with a heading, like Your registration details */
.portal-onboard-journey-box { margin-top: 28px; padding: 18px 22px 20px; border-radius: 16px; background: rgba(255,255,255,.95); border: 1px solid #ecdfca; box-shadow: 0 8px 22px rgba(66,16,29,.05); }
.portal-onboard-journey-box > header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #f0e6d6; }
.portal-onboard-journey-box > header strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; color: #2a1418; }
.portal-onboard-journey-box > header small { display: block; font-size: 12.5px; color: #8a7a6b; }
.portal-onboard-journey-box .portal-onboard-journey { margin: 0 auto; }
.portal-onboard-journey-box + .portal-onboard-account { margin-top: 16px; }

/* Tagline above "Let's create the profile" */
.portal-onboard-tagline { display: block; margin: 4px 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; font-style: italic; font-weight: 600; color: #a5732a; }

/* Journey now has four steps */
.portal-onboard-journey { grid-template-columns: repeat(4, 1fr) !important; max-width: none; }
.portal-onboard-journey::before { left: 12.5% !important; right: 12.5% !important; }
@media (max-width: 720px) { .portal-onboard-journey { grid-template-columns: 1fr 1fr !important; row-gap: 22px; } .portal-onboard-journey::before { display: none; } }

/* Help band: the phone receiver in light gold so it shows on the wine tile */
.portal-onboard-help .portal-onboard-help-icon { color: #f6d38a; }
.portal-onboard-help .portal-onboard-help-icon svg { width: 26px; height: 26px; color: #f6d38a; stroke: #f6d38a !important; fill: none !important; opacity: 1; }
.portal-onboard-help .portal-onboard-help-icon svg * { stroke: #f6d38a !important; }

/* Create my profile header: "Choose another method" on its own line, kicker below */
.portal-create-head-top { margin-bottom: 12px; }
.portal-create-head-copy .portal-onboard-back { display: inline-flex; align-items: center; gap: 6px; }
.portal-create-head-copy > .portal-onboard-kicker { display: inline-flex; }

/* Step chips: no missing-count badges */
.portal-create-steps small { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   Search result card (refreshed): the whole card opens the profile
   in a new tab; actions are grouped Shortlist + Hide over View Profile.
   ══════════════════════════════════════════════════════════════ */
.portal-search-results .portal-match-card {
  grid-template-columns: 168px minmax(0, 1fr) 236px;
  gap: 22px;
  min-height: 0;
  padding: 14px;
  border: 1px solid #ece3dc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(50, 28, 32, 0.04), 0 6px 20px rgba(50, 28, 32, 0.05);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .25s;
}
.portal-search-results .portal-match-card:hover {
  transform: translateY(-2px);
  border-color: #d9b46a;
  box-shadow: 0 2px 4px rgba(50, 28, 32, 0.05), 0 16px 36px rgba(65, 34, 39, 0.12);
}
.portal-search-results .portal-match-card:focus-within { border-color: #d9b46a; }
.portal-search-results .portal-match-card.is-leaving { opacity: 0; transform: scale(.97); }

/* Photo: portrait frame with a gentle zoom on hover */
.portal-search-results .portal-match-photo {
  aspect-ratio: 4 / 5;
  min-height: 0;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(150deg, #f8ecdc 0%, #f1dde2 100%);
}
.portal-search-results .portal-match-photo img { transition: transform .35s ease; }
.portal-search-results .portal-match-card:hover .portal-match-photo img { transform: scale(1.04); }
.portal-search-results .portal-match-initials { font-size: 46px; font-weight: 800; color: #8a3a4c; opacity: .45; letter-spacing: .02em; }

/* Details */
.portal-search-results .portal-match-body { gap: 10px; padding: 4px 0; }
.portal-search-results .portal-match-title h3 { font-size: 19px; font-weight: 800; letter-spacing: .02em; color: #24161a; }
.portal-search-results .portal-match-card:hover .portal-match-title h3 { color: var(--nms-accent); }
.portal-search-results .portal-match-lines {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 0;
}
.portal-search-results .portal-match-lines li { font-size: 14px; color: #4a3d41; }
.portal-search-results .portal-match-meta { gap: 6px; margin-top: auto; min-height: 0; padding-top: 4px; }
.portal-search-results .portal-match-meta-item,
.portal-search-results .portal-match-meta-item:first-child {
  padding: 4px 10px;
  border: 1px solid #efe5dc;
  border-radius: 999px;
  background: #fbf7f2;
  color: #5a4c50;
  font-size: 12.5px;
}
.portal-search-results .portal-match-meta-item svg { width: 14px; height: 14px; flex-basis: 14px; }

/* Actions column */
.portal-search-results .portal-match-actions {
  justify-content: flex-start;
  gap: 10px;
  padding: 2px 0 0 20px;
  border-left: 1px dashed #eadfd6;
  cursor: default;
}
.portal-search-results .portal-match-action-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}
.portal-search-results .portal-match-action-buttons .portal-btn-shortlist,
.portal-search-results .portal-match-action-buttons .portal-btn-view {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  gap: 6px;
}
.portal-search-results .portal-match-action-buttons .portal-btn-hide,
.portal-search-results .portal-match-action-buttons .portal-btn-hide.is-on { width: 44px; min-width: 44px; min-height: 44px; border-radius: 10px; }
.portal-search-results .portal-match-action-buttons .portal-btn-view {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(135deg, #5a0f24, #8f1737);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(101, 17, 38, 0.22);
}
.portal-search-results .portal-match-action-buttons .portal-btn-view:hover { filter: brightness(1.08); }
.portal-btn-view-arrow { display: inline-block; transition: transform .2s ease; }
.portal-search-results .portal-match-card:hover .portal-btn-view-arrow { transform: translateX(3px); }
.portal-search-results .portal-btn-shortlist { border: 1.5px solid #e2c6cd; background: #fff; color: #8f1737; }
.portal-search-results .portal-btn-shortlist.is-on { border-color: #e8b9c5; background: #fdeef2; }

/* Grid view */
.portal-search[data-view="grid"] .portal-search-results .portal-match-card { grid-template-columns: 1fr; gap: 12px; }
.portal-search[data-view="grid"] .portal-search-results .portal-match-lines { grid-template-columns: 1fr; }
.portal-search[data-view="grid"] .portal-search-results .portal-match-actions { padding: 12px 0 0; border-left: 0; border-top: 1px dashed #eadfd6; }

@media (max-width: 1180px) {
  .portal-search-results .portal-match-card { grid-template-columns: 150px minmax(0, 1fr) 220px; gap: 16px; }
}
@media (max-width: 900px) {
  .portal-search-results .portal-match-card { grid-template-columns: 140px minmax(0, 1fr); }
  .portal-search-results .portal-match-actions { grid-column: 1 / -1; padding: 12px 0 0; border-left: 0; border-top: 1px dashed #eadfd6; }
}
@media (max-width: 680px) {
  .portal-search-results .portal-match-card { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 14px; }
  .portal-search-results .portal-match-lines { grid-template-columns: 1fr; gap: 5px; }
  .portal-search-results .portal-match-title h3 { font-size: 17px; }
  .portal-search-results .portal-match-meta { display: none; }
}

/* Reasons block in the right column of a search result card */
.portal-search-results .portal-match-actions .portal-recommend-note { margin: 0; }
.portal-search-results .portal-match-action-buttons { grid-template-columns: minmax(0, 1fr) 44px; }

/* Search card: match % + partner preferences met + search options chosen */
.portal-match-why-box { display: flex; flex-direction: column; gap: 8px; }
.portal-why-score { display: inline-flex; align-self: flex-start; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid transparent; }
.portal-why-score b { font-size: 13px; font-weight: 800; line-height: 1.3; }
.portal-why-score small { font-size: 11.5px; font-weight: 600; opacity: .8; }
.portal-why-score.is-high { background: #ecfdf3; border-color: #bfe8cf; color: #15803d; }
.portal-why-score.is-mid { background: #fdf6e4; border-color: #efdcae; color: #8c6d2d; }
.portal-why-score.is-low { background: #f6f1ee; border-color: #e7ddd6; color: #6b5d60; }
.portal-why-group strong { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a7a70; }
.portal-why-group ul { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; }
.portal-why-group li { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; line-height: 1.35; color: #2f2427; }
.portal-why-tick { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; }
.portal-why-tick circle { fill: #16a34a; }
.portal-why-tick path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.portal-match-why-box .portal-recommend-prefs { margin: 0; font-size: 12.5px; }

/* ══════════════════════════════════════════════════════════════
   Fix-it guide: Submit with missing details walks through them
   ══════════════════════════════════════════════════════════════ */
.is-fix-missing {
  position: relative;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #f7d3da;
  background-color: #fffafb;
  transition: box-shadow .25s ease, background-color .25s ease;
}
.is-fix-missing .portal-review-field-label { color: #b4485f; }
.is-fix-current {
  box-shadow: 0 0 0 1.5px #f2a5b4, 0 0 0 5px rgba(244, 114, 142, 0.10);
  background-color: #fff6f8;
  animation: portalFixPulse 2.2s ease-out infinite;
}
@keyframes portalFixPulse {
  0% { box-shadow: 0 0 0 1.5px #f2a5b4, 0 0 0 0 rgba(244, 114, 142, 0.22); }
  70% { box-shadow: 0 0 0 1.5px #f2a5b4, 0 0 0 9px rgba(244, 114, 142, 0); }
  100% { box-shadow: 0 0 0 1.5px #f2a5b4, 0 0 0 0 rgba(244, 114, 142, 0); }
}
.is-fix-current input, .is-fix-current select, .is-fix-current textarea { border-color: #f2a5b4; }
.is-fix-current input:focus, .is-fix-current select:focus, .is-fix-current textarea:focus { border-color: #e98aa0; box-shadow: 0 0 0 3px rgba(244, 114, 142, 0.14); }

.portal-fix-tip {
  position: fixed;
  z-index: 1200;
  width: min(330px, calc(100vw - 16px));
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: #2a0d16;
  color: #fff;
  box-shadow: 0 18px 44px rgba(42, 13, 22, 0.35), 0 2px 6px rgba(42, 13, 22, 0.2);
  font-size: 13.5px;
  animation: portalFixIn .22s ease-out;
}
@keyframes portalFixIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.portal-fix-arrow {
  position: absolute;
  top: -7px;
  width: 14px;
  height: 14px;
  background: #2a0d16;
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
}
.portal-fix-tip.is-above .portal-fix-arrow { top: auto; bottom: -7px; border-radius: 0 0 3px 0; }
.portal-fix-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.portal-fix-count {
  display: inline-flex; align-items: baseline; justify-content: center;
  min-width: 38px; padding: 3px 8px; border-radius: 999px;
  background: #e11d48; font-size: 13px; font-weight: 800;
}
.portal-fix-count small { font-size: 10.5px; font-weight: 700; opacity: .8; }
.portal-fix-where { flex: 1; min-width: 0; color: #e6ca85; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-fix-close { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.portal-fix-close:hover { background: rgba(255,255,255,.2); }
.portal-fix-tip h4 { margin: 0 0 4px; font-size: 16px; font-weight: 800; line-height: 1.3; color: #fff; }
.portal-fix-tip p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.45; }
.portal-fix-tip.is-done h4 { color: #86efac; }
.portal-fix-dots { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 10px; }
.portal-fix-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); transition: background .2s, transform .2s; }
.portal-fix-dots i.is-done { background: #22c55e; }
.portal-fix-dots i.is-current { background: #fff; transform: scale(1.3); }
.portal-fix-dots i.is-current.is-done { background: #86efac; }
.portal-fix-actions { display: flex; align-items: center; gap: 8px; }
.portal-fix-left { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6); }
.portal-fix-back, .portal-fix-next {
  min-height: 34px; padding: 0 14px; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.portal-fix-back { border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; }
.portal-fix-back:disabled { opacity: .35; cursor: default; }
.portal-fix-next { border: 0; background: #fff; color: #2a0d16; }
.portal-fix-next.is-go { background: #22c55e; color: #fff; animation: portalFixNudge 1.4s ease-in-out infinite; }
@keyframes portalFixNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
.portal-fix-back:focus-visible, .portal-fix-next:focus-visible, .portal-fix-close:focus-visible { outline: 2px solid #e6ca85; outline-offset: 2px; }

/* Submit with work left: still clickable, with a small badge-like hint */
.primary-button.is-incomplete { opacity: .92; }
@media (prefers-reduced-motion: reduce) {
  .is-fix-current, .portal-fix-next.is-go, .portal-fix-tip { animation: none; }
}

/* My Profile section note: one friendly line, not a chip list */
.portal-section-checklist { display: flex; align-items: center; gap: 12px; }
.portal-section-checklist > div { flex: 1; min-width: 0; }
.portal-section-checklist strong { margin-bottom: 2px; }
.portal-section-checklist p { margin: 0; font-size: 13px; line-height: 1.5; color: #6b5a4c; }
.portal-section-checklist.is-done p { color: #2f6b4d; font-weight: 600; }
.portal-section-check-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fbe7c6; color: #8a5a10; font-size: 13px; font-weight: 800;
}
.portal-section-checklist.is-done .portal-section-check-icon { background: #d8f1e1; color: #237653; }
.portal-section-check-go {
  flex: 0 0 auto; min-height: 34px; padding: 0 14px; border: 1px solid #e8c88f; border-radius: 999px;
  background: #fff; color: #7a4a0a; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.portal-section-check-go:hover { background: #fff3dd; }
@media (max-width: 680px) {
  .portal-section-checklist { flex-wrap: wrap; }
  .portal-section-check-go { width: 100%; }
}

/* Profile header: one even row. Photo, name block and the status / advisor cards share the same
   bottom edge (14px from the card edge) and the name is centred between them. */
.portal-profile-identity { min-height: 150px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.portal-profile-avatar-wrap { top: auto; bottom: 14px; }
.portal-profile-identity > .portal-profile-identity-copy { align-self: center; margin-top: 0; }
.portal-profile-identity-side { align-self: center; margin: 0; gap: 8px; }
.portal-profile-status-card { grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 3px; padding: 8px 12px; }
.portal-profile-status-card .portal-profile-status-value { justify-content: flex-end; }
.portal-profile-status-card p { grid-column: 1 / -1; }
.portal-profile-advisor-card { padding-top: 7px; padding-bottom: 7px; }
.portal-profile-advisor-icon { width: 36px; height: 36px; }
/* Once the cards wrap under the name, keep the photo pinned near the top again. */
@media (max-width: 760px) {
  .portal-profile-avatar-wrap { top: -46px; bottom: auto; }
  .portal-profile-identity-side { margin: 14px 0 0; }
}
@media (max-width: 600px) {
  .portal-profile-avatar-wrap { top: -38px; bottom: auto; }
}

/* Account menu arrow: a soft round chevron button that turns when the menu opens */
.portal-account-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-left: -2px; border-radius: 50%;
  background: #f6ecdc; color: #7a4a0a;
  transition: background .15s, color .15s;
}
.portal-account-caret .portal-nav-caret { width: 16px; height: 16px; stroke-width: 2.4; }
.portal-account-trigger:hover .portal-account-caret { background: #efdcbc; }
.portal-account-menu.is-open .portal-account-caret { background: #6a1630; color: #fff; }
.portal-account-menu.is-open .portal-account-caret .portal-nav-caret { transform: rotate(180deg); }
.portal-account-menu:not(.is-open):hover .portal-account-caret .portal-nav-caret { transform: none; }
@media (max-width: 900px) { .portal-account-caret { display: none; } }

/* Account menu opens on click only (not on hover or focus); it closes on a second click, a click
   outside, or Esc. The main nav menus keep opening on hover. */
.portal-account-menu:not(.is-open):hover .portal-nav-menu,
.portal-account-menu:not(.is-open):focus-within .portal-nav-menu { display: none; }

/* Search card: suggestion (no partner preferences) instead of a match % */
.portal-why-suggest { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; padding: 5px 11px 5px 8px; border-radius: 999px; border: 1px solid #efdcae; background: #fdf6e4; color: #7a5410; }
.portal-why-suggest svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.portal-why-suggest span { display: flex; flex-direction: column; line-height: 1.2; }
.portal-why-suggest b { font-size: 12.5px; font-weight: 800; }
.portal-why-suggest small { font-size: 10.5px; font-weight: 600; opacity: .8; }

/* Get started backdrop spans the viewport; clip so it never adds a sideways scrollbar. */
.portal-main:has(.portal-onboarding-page) { overflow-x: clip; }

/* Profile header, final: about a quarter of the photo (46 of 169px) sits on the cover, the rest in
   the white header. Name centred beside it; status and advisor cards wide enough not to wrap. */
.portal-profile-avatar-wrap { top: -46px; bottom: auto; }
.portal-profile-identity { min-height: 146px; padding-top: 16px; padding-bottom: 16px; align-items: center; }
.portal-profile-identity > .portal-profile-identity-copy { align-self: center; margin-top: 0; }
.portal-profile-identity-side { flex: 0 0 auto; width: auto; min-width: 300px; max-width: 360px; }
.portal-profile-status-label,
.portal-profile-status-value .portal-profile-status,
.portal-profile-advisor-card strong,
.portal-profile-advisor-card small { white-space: nowrap; }
.portal-profile-advisor-card > span:nth-child(2) { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .portal-profile-identity-side { min-width: 0; max-width: none; width: 100%; }
  .portal-profile-advisor-card small { white-space: normal; }
}

/* Status and advisor cards in sync: same width, padding, border, radius and height; the status
   badge sits right next to its label instead of being pushed to the far edge. */
.portal-profile-identity-side { align-items: stretch; }
.portal-profile-status-card,
.portal-profile-advisor-card {
  box-sizing: border-box; width: 100%; min-height: 64px;
  padding: 10px 14px; border: 1px solid #ecdcc0; border-radius: 10px;
  box-shadow: 0 5px 15px rgba(75,16,32,.07);
}
.portal-profile-status-card { grid-template-columns: auto auto; justify-content: start; align-content: center; column-gap: 10px; }
.portal-profile-status-card .portal-profile-status-value { justify-content: flex-start; }
.portal-profile-advisor-card { gap: 12px; }
/* More breathing room between the status line and its note. */
.portal-profile-status-card { row-gap: 8px; }
.portal-profile-status-card p { line-height: 1.45; }

/* Profile ID as a small chip on the cover (top left, above the photo). Header row evened out:
   the photo's bottom lines up with the bottom of the advisor card, and about a fifth of the photo
   stays on the cover. */
.portal-profile-identity { position: relative; min-height: 0; padding-top: 14px; padding-bottom: 14px; }
.portal-profile-id {
  position: absolute; left: 26px; top: -98px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(232, 200, 122, .45); background: rgba(40, 10, 15, .45);
  color: rgba(255,255,255,.78); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.portal-profile-id b { color: #f3d58b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .05em; text-transform: none; }
.portal-profile-status-card { row-gap: 5px; padding-top: 9px; padding-bottom: 9px; }
.portal-profile-advisor-card { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
.portal-profile-avatar-wrap { top: auto; bottom: 14px; }
@media (max-width: 760px) {
  .portal-profile-avatar-wrap { top: -46px; bottom: auto; }
  .portal-profile-identity { min-height: 146px; }
  .portal-profile-id { left: 16px; top: -100px; }
}
/* Profile ID chip on the right of the cover, beside the cover camera button and level with it. */
.portal-profile-id { left: auto; right: 62px; top: -92px; }
@media (max-width: 760px) { .portal-profile-id { left: auto; right: 62px; top: -92px; } }

/* Profile ID, Profile status and My Advisor grouped together in the header's right column, in
   that order. The cover is a little shallower to make room; nothing else changes size. */
.portal-profile-cover { height: 92px; }
.portal-profile-identity-side .portal-profile-id {
  position: static; align-self: flex-end;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid #ecdcc0; background: #fffaf1; backdrop-filter: none; -webkit-backdrop-filter: none;
  color: #8a7a6d; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.portal-profile-identity-side .portal-profile-id b { color: #6a1630; font-size: 12px; }
@media (max-width: 760px) { .portal-profile-identity-side .portal-profile-id { align-self: flex-start; } }
@media (max-width: 600px) { .portal-profile-cover { height: 92px; } }
.portal-profile-identity-side .portal-profile-id { justify-self: end; }
.portal-profile-identity-side { gap: 7px; }
/* With the ID chip in the column the row is taller: anchor the photo from the top so about a
   quarter of it (40 of 169px) stays on the cover. */
.portal-profile-avatar-wrap { top: -40px; bottom: auto; }
.portal-profile-identity { min-height: 150px; }
@media (max-width: 760px) {
  .portal-profile-identity-side .portal-profile-id { justify-self: start; }
  .portal-profile-avatar-wrap { top: -40px; }
}

/* Name block: closer to the gold border, with emoji-led details and room between the lines. */
.portal-profile-identity > .portal-profile-identity-copy { align-self: flex-start; margin-top: 2px; display: flex; flex-direction: column; gap: 9px; }
.portal-profile-identity-copy > .portal-profile-name-line h2 { margin: 0; line-height: 1.15; }
.portal-profile-identity-copy .portal-profile-head-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.portal-profile-identity-copy .portal-profile-head-fact { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; line-height: 1.35; color: #3e2d31; }
.portal-profile-identity-copy .is-summary .portal-profile-head-fact { color: #5d4a4f; font-weight: 600; }
.portal-fact-emoji { flex: 0 0 auto; font-style: normal; font-size: 15px; line-height: 1; }

/* Rasi, Nakshatram and Lagnam as small chips under the Work line */
.portal-profile-astro { display: flex; flex-wrap: wrap; gap: 6px; }
.portal-profile-astro-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 999px;
  border: 1px solid #ecdcc0; background: #fffaf1; color: #4b1020; font-size: 12px; line-height: 1.3;
}
.portal-profile-astro-chip i { font-style: normal; font-size: 12.5px; line-height: 1; }
.portal-profile-astro-chip small { color: #9a8778; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.portal-profile-astro-chip b { font-weight: 700; }
/* Name block fills the row height; the Rasi / Nakshatram / Lagnam chips sit on its bottom edge,
   level with the bottom of the My Advisor card. */
.portal-profile-identity { align-items: stretch; }
.portal-profile-identity > .portal-profile-identity-copy { align-self: stretch; }
.portal-profile-identity-copy > .portal-profile-astro { margin-top: auto; }
.portal-profile-identity-side { align-self: stretch; align-content: end; }
@media (max-width: 760px) { .portal-profile-identity-copy > .portal-profile-astro { margin-top: 0; } }
.portal-profile-astro { flex-direction: column; align-items: flex-start; gap: 6px; }
.portal-profile-astro-row { display: flex; flex-wrap: wrap; gap: 6px; }
/* Single chip line with a small gold dot after marital status */
.portal-profile-astro { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
.portal-profile-astro-sep { width: 5px; height: 5px; margin: 0 4px; border-radius: 50%; background: #c9973f; box-shadow: 0 0 0 3px rgba(201,151,63,.15); }
/* Photo 10% larger, grown evenly on every side (141x169 -> 155x186); name block moved over to keep
   the same gap. */
.portal-profile-avatar-wrap { top: -48px; left: 19px; width: 155px; height: 186px; }
.portal-profile-identity { padding-left: 199px; min-height: 160px; }
@media (max-width: 760px) {
  .portal-profile-avatar-wrap { top: -48px; }
  .portal-profile-identity { min-height: 160px; }
}
@media (max-width: 600px) {
  .portal-profile-avatar-wrap { top: -43px; left: 9px; width: 102px; height: 121px; }
  .portal-profile-identity { padding-left: 16px; padding-top: 86px; min-height: 0; }
}
/* Photo moved down by 10% of its height (19px desktop, 12px phones). */
.portal-profile-avatar-wrap { top: -29px; }
.portal-profile-identity { min-height: 170px; }
@media (max-width: 760px) { .portal-profile-avatar-wrap { top: -29px; } .portal-profile-identity { min-height: 170px; } }
@media (max-width: 600px) {
  .portal-profile-avatar-wrap { top: -31px; }
  .portal-profile-identity { padding-top: 98px; min-height: 0; }
}
/* Match pill stacked like the "Suggested for you" pill: "100% Match" over "Based on your
   preference", so it never runs past the card. Colours unchanged. */
.portal-why-score { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; max-width: 100%; padding: 5px 12px; border-radius: 16px; white-space: normal; }
.portal-why-score b { font-size: 12.5px; line-height: 1.2; white-space: nowrap; }
.portal-why-score small { font-size: 10.5px; line-height: 1.2; }

/* My Profile header: education on one line, profession on the next; every emoji in one gold tone. */
.portal-profile-identity-copy .portal-profile-head-facts:not(.is-summary) { flex-direction: column; flex-wrap: nowrap; gap: 7px; }
.portal-fact-emoji,
.portal-profile-astro-chip i { filter: grayscale(1) sepia(1) saturate(2.6) hue-rotate(-12deg) brightness(.92); }

/* My Profile header: same gold line icons as the search cards (no emoji), details left-aligned. */
.portal-profile-identity-copy .portal-profile-head-facts:not(.is-summary) { align-items: flex-start; }
.portal-fact-emoji, .portal-profile-astro-chip i { filter: none; display: inline-flex; color: #a06a1d; }
.portal-fact-emoji svg { width: 17px; height: 17px; }
.portal-profile-astro-chip i svg { width: 14px; height: 14px; }
.portal-fact-emoji svg, .portal-profile-astro-chip i svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Report a profile: small flag button on search cards, text link on the profile page, dialog */
.portal-btn-report { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:42px; padding:0; border-radius:10px; border:1.5px solid #e5ddd2; background:#fff; color:#a08f7e; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.portal-btn-report svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.portal-btn-report:hover { border-color:#e3b9b3; color:#a12c22; background:#fdf6f5; }
.portal-match-action-buttons .portal-btn-report span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.portal-search-results .portal-match-action-buttons { grid-template-columns: minmax(0, 1fr) 44px 44px; }
.portal-search-results .portal-match-action-buttons .portal-btn-report { width:44px; min-width:44px; min-height:44px; }
.vvip-hide-row { gap:4px; }
.vvip-hide-link.portal-btn-report { min-height:auto; border:0; }
.vvip-hide-link.portal-btn-report:hover { background:#fdf6f5; color:#a12c22; }

.portal-report-dialog { max-width:440px; display:flex; flex-direction:column; gap:12px; }
.portal-report-dialog h3 { display:flex; align-items:center; gap:8px; margin:0; font-size:18px; color:#3a2a1e; }
.portal-report-dialog h3 svg { width:20px; height:20px; fill:none; stroke:#a12c22; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.portal-report-dialog p { margin:0; color:#6b5c4e; font-size:13.5px; line-height:1.5; }
.portal-report-reasons { display:grid; gap:6px; }
.portal-report-reasons label { display:flex; align-items:center; gap:10px; padding:9px 12px; border:1.5px solid #ece4d8; border-radius:10px; font-size:14px; color:#3a2a1e; cursor:pointer; }
.portal-report-reasons label:has(input:checked) { border-color:#d9a79f; background:#fdf6f5; }
.portal-report-reasons input { accent-color:#a12c22; margin:0; }
.portal-report-dialog textarea { width:100%; box-sizing:border-box; padding:10px 12px; border:1.5px solid #e5ddd2; border-radius:10px; font:inherit; font-size:14px; resize:vertical; }
.portal-report-hide { display:flex; align-items:center; gap:8px; font-size:13.5px; color:#5a4a3c; cursor:pointer; }
.portal-report-hide input { accent-color:#a06a1d; margin:0; }
.portal-report-dialog .portal-report-error { color:#a12c22; font-weight:600; min-height:0; }
.portal-report-dialog .portal-report-error:empty { display:none; }
.portal-report-dialog .custom-modal-actions { display:flex; justify-content:flex-end; gap:8px; }

/* Staff: Reported Profiles */
.admin-preports-tabs { display:flex; gap:6px; margin-bottom:14px; flex-wrap:wrap; }
.admin-preports-tabs button { padding:7px 14px; border-radius:999px; border:1px solid #e5ddd2; background:#fff; font:inherit; font-size:13px; font-weight:700; color:#6b5c4e; cursor:pointer; }
.admin-preports-tabs button.is-active { background:#3a2a1e; border-color:#3a2a1e; color:#fff; }
.admin-preport { display:flex; flex-direction:column; gap:6px; padding:14px 16px; border:1px solid #ece4d8; border-left:4px solid #d9a79f; border-radius:12px; background:#fff; margin-bottom:10px; }
.admin-preport.is-reviewed { border-left-color:#c9b8a3; }
.admin-preport.is-actioned { border-left-color:#1d6b3c; }
.admin-preport header { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.admin-preport header i { font-style:normal; font-size:11.5px; font-weight:700; padding:2px 8px; border-radius:999px; background:#f7f3ec; color:#6b5c4e; }
.admin-preport header .admin-preport-count { background:#fdf1ef; color:#a12c22; }
.admin-preport-status { margin-left:auto; font-size:12px; font-weight:700; color:#8a7d70; }
.admin-preport-reason { margin:0; font-size:14px; color:#3a2a1e; line-height:1.5; }
.admin-preport small { color:#8a7d70; font-size:12.5px; }
.admin-preport-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:4px; }
.admin-preport-actions input { flex:1 1 220px; min-width:0; padding:8px 10px; border:1px solid #e5ddd2; border-radius:8px; font:inherit; font-size:13px; }
.admin-preport-actions .admin-preport-archive { background:#a12c22; border-color:#a12c22; }

/* Automatic porutham: card line, profile breakdown, astrologer note */
.portal-porutham-line { display:flex; align-items:center; gap:6px; margin:0; font-size:12.5px; color:#5a4a3c; }
.portal-porutham-line svg { width:14px; height:14px; flex:none; fill:none; stroke:#a06a1d; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.portal-porutham-line b { color:#3a2a1e; }
.portal-porutham-line.is-good b { color:#1d6b3c; }
.portal-porutham-line.is-not_recommended { color:#a12c22; }
.portal-porutham-line.is-not_recommended svg { stroke:#a12c22; }

.portal-porutham { margin-top:22px; padding:16px 18px; border:1px solid #ecdcb8; border-radius:14px; background:#fffaf0; }
.portal-porutham.is-not_recommended { border-color:#efc9c3; background:#fdf6f5; }
.portal-porutham h4 { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 12px; font-size:15px; color:#3a2a1e; }
.portal-porutham h4 svg { width:17px; height:17px; fill:none; stroke:#a06a1d; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.portal-porutham-score { margin-left:auto; padding:3px 10px; border-radius:999px; background:#fff; border:1px solid #ecdcb8; font-size:12.5px; font-weight:800; color:#5a4a3c; }
.portal-porutham.is-good .portal-porutham-score { color:#1d6b3c; border-color:#bfe0cb; background:#f1faf4; }
.portal-porutham.is-not_recommended .portal-porutham-score { color:#a12c22; border-color:#efc9c3; }
.portal-porutham ul { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:6px 18px; }
.portal-porutham li { display:grid; grid-template-columns:18px 112px 1fr; align-items:baseline; gap:6px; font-size:13px; color:#6b5c4e; }
.portal-porutham li i { font-style:normal; font-weight:800; }
.portal-porutham li.is-ok i { color:#1d6b3c; }
.portal-porutham li.is-no i { color:#a12c22; }
.portal-porutham li b { color:#3a2a1e; font-weight:700; }
.portal-porutham-empty { margin:10px 0 0; font-size:13px; color:#6b5c4e; }

.portal-astro-note { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin:12px 0 0; padding:9px 12px; border-radius:10px; background:#fff; border:1px dashed #e0cfa8; font-size:13px; color:#5a4a3c; }
.portal-astro-note svg { width:15px; height:15px; flex:none; fill:none; stroke:#a06a1d; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.portal-astro-note span { flex:1 1 220px; }

/* Staff: L1 call checklist */
.l1-call-dialog { max-width:480px; display:flex; flex-direction:column; gap:12px; }
.l1-call-dialog h3, .l1-call-dialog p { margin:0; }
.l1-call-field { display:flex; align-items:center; gap:10px; font-size:13.5px; font-weight:700; color:#3a2a1e; }
.l1-call-field select { flex:1; padding:8px 10px; border:1px solid #e5ddd2; border-radius:8px; font:inherit; }
.l1-call-items { display:grid; gap:6px; }
.l1-call-items label { display:flex; align-items:center; gap:10px; padding:8px 12px; border:1.5px solid #ece4d8; border-radius:10px; font-size:14px; cursor:pointer; }
.l1-call-items label:has(input:checked) { border-color:#bfe0cb; background:#f1faf4; }
.l1-call-items input { accent-color:#1d6b3c; margin:0; }
.l1-call-dialog textarea { width:100%; box-sizing:border-box; padding:8px 10px; border:1px solid #e5ddd2; border-radius:8px; font:inherit; font-size:13.5px; }
.l1-call-hint { font-size:12.5px; color:#8a7d70; }
.l1-call-dialog .custom-modal-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.l1-call-dialog .l1-call-fail:not(:disabled) { color:#a12c22; border-color:#efc9c3; }
.vfy-level-row.is-failed .vfy-level-title span { color:#a12c22; }

/* Families: Verification & Safety on the profile page */
.portal-verify-l1 { padding:14px 16px; border:1px solid #bfe0cb; border-radius:14px; background:#f1faf4; }
.portal-verify-l1-head { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.portal-verify-badge { padding:4px 12px; border-radius:999px; background:#1d6b3c; color:#fff; font-size:13px; font-weight:800; }
.portal-verify-l1-head small { color:#4a6b55; font-size:13px; }
.portal-verify-l1-items { list-style:none; display:flex; flex-wrap:wrap; gap:6px; margin:12px 0 0; padding:0; }
.portal-verify-l1-items li { padding:4px 10px; border-radius:999px; background:#fff; border:1px solid #bfe0cb; color:#1d6b3c; font-size:12.5px; font-weight:700; }
.portal-verify-l1-note { margin:10px 0 0; font-size:13px; color:#4a6b55; }
.portal-verify-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:10px; margin-top:12px; }
.portal-verify-item { display:flex; gap:10px; padding:12px 14px; border:1px solid #ece4d8; border-radius:12px; background:#fff; }
.portal-verify-tick { flex:none; width:22px; height:22px; border-radius:50%; background:#f1faf4; color:#1d6b3c; display:grid; place-items:center; font-weight:800; font-size:13px; }
.portal-verify-item strong { display:block; font-size:13.5px; color:#3a2a1e; }
.portal-verify-item p { margin:3px 0 0; font-size:12.5px; color:#6b5c4e; line-height:1.45; }

/* Profile page snapshot: verification note on the left, Profile ID on the right, one line */
.vvip-snapshot-tags { display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:12px; }
.vvip-snapshot-tags .vvip-tag-lock { display:inline-flex; align-items:center; gap:6px; min-width:0; font-size:12px; font-weight:600; color:#1d6b3c; line-height:1.35; }
.vvip-snapshot-tags .vvip-tag-lock svg { width:14px; height:14px; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.vvip-snapshot-tags .vvip-tag-code { flex:none; margin-left:auto; }
@media (max-width: 560px) {
  .vvip-snapshot-tags { flex-wrap:wrap-reverse; }
}

/* Profile page gallery: main photo with arrows, thumbnails always fully visible below */
.vvip-gallery { display:flex; flex-direction:column; min-height:0; }
.vvip-gallery-main { flex:1 1 auto; }
@media (min-width:901px) {
  .vvip-gallery-main { height:auto !important; min-height:400px; max-height:460px; }
}
.vvip-gallery-thumbs { flex:none; display:flex !important; gap:8px; padding:10px 12px; }
.vvip-gallery-thumbs button { flex:none; width:64px; height:64px; aspect-ratio:auto; }
.vvip-gallery-arrow { position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; display:grid; place-items:center; padding:0; border:0; border-radius:50%; background:rgba(255,255,255,0.88); box-shadow:0 2px 10px rgba(0,0,0,0.18); color:#3a2a1e; cursor:pointer; opacity:.85; transition:opacity .15s, background .15s; z-index:2; }
.vvip-gallery-arrow svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.vvip-gallery-arrow:hover, .vvip-gallery-arrow:focus-visible { opacity:1; background:#fff; }
.vvip-gallery-arrow.is-prev { left:10px; }
.vvip-gallery-arrow.is-next { right:10px; }

/* Profile page snapshot: verification note and Profile ID grouped on the right */
.vvip-snapshot-tags { justify-content:flex-end !important; flex-wrap:wrap !important; gap:6px 10px !important; }
.vvip-snapshot-tags .vvip-tag-lock { order:1; font-size:12px; }
.vvip-snapshot-tags .vvip-tag-code { order:2; margin-left:0 !important; }
@media (max-width: 560px) {
  .vvip-snapshot-tags { justify-content:flex-start !important; }
}

/* Profile page snapshot: name with the Profile ID on the right, verification note below */
.vvip-snapshot-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.vvip-snapshot-head .vvip-snapshot-name { margin:0 !important; min-width:0; }
.vvip-snapshot-head .vvip-tag-code { flex:none; }
.vvip-snapshot-verified { display:flex; align-items:center; gap:6px; margin:6px 0 12px; font-size:12.5px; font-weight:600; color:#1d6b3c; }
.vvip-snapshot-verified svg { width:14px; height:14px; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* Profile page snapshot: less space above the name, stronger name and Profile ID */
.vvip-snapshot { padding-top:18px !important; }
.vvip-snapshot-head .vvip-snapshot-name { font-family:"Playfair Display", "Cormorant Garamond", Georgia, serif; font-size:32px !important; font-weight:700; letter-spacing:.005em; line-height:1.15; color:#2a1a10; }
.vvip-snapshot-head .vvip-tag-code { font-family:Inter, system-ui, sans-serif; font-size:14px; font-weight:700; letter-spacing:.04em; padding:5px 12px; border-radius:8px; }
.vvip-snapshot-verified { margin:4px 0 12px; }

/* Block a family: profile link, confirm dialog, Blocked families on Privacy Controls */
.vvip-hide-link.portal-btn-block { display:inline-flex; align-items:center; gap:6px; min-height:auto; border:0; }
.portal-btn-block svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.vvip-hide-link.portal-btn-block:hover { background:#fdf6f5; color:#a12c22; }
.portal-block-dialog { max-width:440px; display:flex; flex-direction:column; gap:12px; }
.portal-block-dialog h3 { display:flex; align-items:center; gap:8px; margin:0; font-size:18px; color:#3a2a1e; }
.portal-block-dialog h3 svg { width:20px; height:20px; fill:none; stroke:#a12c22; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.portal-block-dialog ul { margin:0; padding-left:18px; display:grid; gap:4px; color:#5a4a3c; font-size:14px; line-height:1.45; }
.portal-block-dialog p { margin:0; color:#6b5c4e; font-size:13.5px; }
.portal-block-dialog .portal-report-error:empty { display:none; }
.portal-block-dialog .custom-modal-actions { display:flex; justify-content:flex-end; gap:8px; }
.portal-block-dialog .portal-block-confirm { background:#a12c22; border-color:#a12c22; }

.portal-blocked { margin-top:18px; padding:18px 20px; border:1px solid #ece4d8; border-radius:14px; background:#fff; }
.portal-blocked:empty { display:none; }
.portal-blocked h3 { display:flex; align-items:center; gap:8px; margin:0 0 4px; font-size:16px; color:#3a2a1e; }
.portal-blocked h3 svg { width:18px; height:18px; fill:none; stroke:#a12c22; stroke-width:2; stroke-linecap:round; }
.portal-blocked > p { margin:0 0 12px; font-size:13px; color:#6b5c4e; }
.portal-blocked ul { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.portal-blocked li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border:1px solid #f0e9df; border-radius:10px; }
.portal-blocked li strong { display:block; font-size:14px; color:#3a2a1e; }
.portal-blocked li small { font-size:12px; color:#8a7d70; }
.portal-blocked-empty { font-size:13px; color:#8a7d70; }

/* ── Duplicate profiles (staff) ── */
.admin-dup-banner { margin:0 0 14px; padding:12px 16px; border:1px solid #f0c2b8; border-left:4px solid #c2412d; border-radius:12px; background:#fff6f3; }
.admin-dup-banner strong { color:#9a2f1f; font-size:14px; }
.admin-dup-banner p { margin:4px 0 8px; font-size:13px; color:#5a463a; }
.admin-dup-banner ul, .admin-dup-group ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.admin-dup-banner li, .admin-dup-group li { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:13px; }
.admin-dup-banner a, .admin-dup-group a { color:#6b1d2a; font-weight:700; }
.admin-dup-status { font-style:normal; font-size:11px; padding:2px 8px; border-radius:999px; background:#f3ece2; color:#6a5646; }
.admin-dup-reasons { color:#9a2f1f; font-weight:600; }
.admin-dup-dismiss { margin-left:auto; border:1px solid #d8cbbb; background:#fff; border-radius:8px; padding:4px 10px; font-size:12px; cursor:pointer; }
.admin-dup-dismiss:hover { background:#f8f3ec; }
.admin-dups-help { margin:0 0 12px; font-size:13px; color:#5a463a; }
.admin-dups-backfill { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:12px; font-size:13px; }
.admin-dups-backfill:empty { display:none; }
.admin-dup-group { padding:14px 16px; border:1px solid #ece4d8; border-left:4px solid #c2412d; border-radius:12px; background:#fff; margin-bottom:10px; }
.admin-dup-group header { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.admin-dup-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; background:#f8f3ec; font-size:13px; }
.l1-call-dup { margin:10px 0 0; padding:10px 12px; border:1px solid #f0c2b8; border-radius:10px; background:#fff6f3; font-size:13px; }
.l1-call-dup strong { color:#9a2f1f; }
.l1-call-dup ul { margin:6px 0; padding-left:18px; }
.l1-call-dup label { display:flex; gap:8px; align-items:flex-start; font-weight:600; }

.portal-payment-ref { display:block; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:11px; color:#8a7666; margin-top:2px; }

/* ── Membership suggestions ── */
.portal-header-right { display:flex; align-items:center; gap:10px; }
.portal-plan-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border:1px solid #e6d3a8; border-radius:999px; background:#fffaf0; color:#6b4e16; font-size:12.5px; font-weight:600; text-decoration:none; white-space:nowrap; cursor:pointer; }
.portal-plan-chip svg { width:14px; height:14px; color:#b8892b; }
.portal-plan-chip b { color:#7a1f2b; }
.portal-plan-chip:hover, .portal-plan-chip.is-current { background:#fdf1d8; border-color:#d9b866; }
.portal-plan-chip.is-paid { background:#7a1f2b; border-color:#7a1f2b; color:#fff; }
.portal-plan-chip.is-paid svg { color:#f3d48a; }
@media (max-width: 760px) { .portal-plan-chip { display:none; } }

.portal-live-card { display:flex; align-items:center; gap:16px; margin:16px auto 0; max-width:1200px; padding:16px 20px; border:1px solid #e6d3a8; border-radius:16px; background:linear-gradient(120deg, #fffaf0, #fdf1e6); box-shadow:0 6px 18px rgba(122,31,43,.08); }
.portal-live-card-mark { font-size:30px; line-height:1; }
.portal-live-card > div:nth-child(2) { flex:1; min-width:0; }
.portal-live-card strong { display:block; font-size:17px; color:#5a1622; }
.portal-live-card p { margin:4px 0 0; font-size:13.5px; color:#5a463a; }
.portal-live-card-actions { display:flex; gap:8px; flex-shrink:0; }
@media (max-width: 760px) { .portal-live-card { flex-wrap:wrap; } .portal-live-card-actions { width:100%; } .portal-live-card-actions > * { flex:1; } }

.portal-welcome-plans { margin:10px 0 0; font-size:12.5px; color:#8a7666; text-align:center; }

/* ── Membership tiers ── */
.portal-upgrade-prompt { max-width:420px; text-align:center; }
.portal-upgrade-mark { display:inline-grid; place-items:center; width:48px; height:48px; border-radius:50%; background:#fdf1d8; color:#b8892b; margin-bottom:6px; }
.portal-upgrade-mark svg { width:24px; height:24px; }
.portal-upgrade-prompt p { color:#5a463a; font-size:14px; }
.portal-upgrade-prompt .custom-modal-actions { justify-content:center; }
.portal-chat-unlock { border:1px dashed #d9b866; background:#fffaf0; color:#6b4e16; cursor:pointer; font:inherit; }
.portal-chat-unlock:hover { background:#fdf1d8; }
.portal-plan-notice { grid-column:1 / -1; display:flex; align-items:center; gap:10px; padding:10px 14px; border:1px solid #e6d3a8; border-radius:12px; background:#fffaf0; font-size:13px; color:#5a463a; }
.portal-plan-notice svg { width:16px; height:16px; color:#b8892b; flex-shrink:0; }
.portal-plan-notice span { flex:1; }
.portal-refine-gold { display:inline-flex; align-items:center; gap:3px; margin-left:auto; padding:1px 8px; border-radius:999px; background:#fdf1d8; color:#8a6418; font-style:normal; font-size:11px; font-weight:700; }
.portal-refine-gold svg { width:11px; height:11px; }
.portal-locked-list { grid-column:1 / -1; }
.portal-plan-grid { grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)) !important; }
.portal-membership-usage { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:10px; margin:16px 0; }
.portal-membership-usage > div { padding:12px 14px; border:1px solid #ece4d8; border-radius:12px; background:#fff; display:flex; flex-direction:column; gap:2px; }
.portal-membership-usage span { font-size:12px; color:#8a7666; text-transform:uppercase; letter-spacing:.04em; }
.portal-membership-usage strong { font-size:18px; color:#5a1622; }
.portal-membership-usage small { font-size:12px; color:#6a5646; }
.portal-plan-compare { margin-top:24px; }
.portal-plan-compare-scroll { overflow-x:auto; border:1px solid #ece4d8; border-radius:14px; background:#fff; }
.portal-plan-compare table { width:100%; border-collapse:collapse; font-size:13.5px; min-width:640px; }
.portal-plan-compare th, .portal-plan-compare td { padding:10px 14px; border-bottom:1px solid #f1ebe2; text-align:center; }
.portal-plan-compare tbody th { text-align:left; font-weight:600; color:#3a2a1e; }
.portal-plan-compare thead th { font-size:15px; color:#5a1622; }
.portal-plan-compare thead th small { display:block; font-size:12px; color:#8a7666; font-weight:500; }
.portal-plan-compare thead th.is-featured { background:#fdf1d8; }
.portal-compare-yes { color:#1d6b3c; font-weight:800; }
.portal-compare-no { color:#b9ab9c; }
.admin-plan-badge { padding:2px 8px; border-radius:999px; font-size:11px; font-weight:700; background:#eef1f5; color:#3b4a5c; }
.admin-plan-badge.is-gold, .admin-plan-badge.is-premium, .admin-plan-badge.is-elite { background:#fdf1d8; color:#8a6418; }
.admin-plan-badge.is-platinum { background:#7a1f2b; color:#fff; }
.portal-plan-chip.is-trial { background:#fdf1d8; border-color:#d9b866; color:#6b4e16; }

/* "Your profile is live" – one-time card on My Profile */
.portal-live-card { display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr) auto; align-items:center; gap:18px 24px; padding:18px 22px; background:linear-gradient(115deg, #fffaf0 0%, #fdf1e6 60%, #fbe7d6 100%); border:1px solid #e6cf9f; }
.portal-live-card > div:nth-child(2) { flex:none; }
.portal-live-card-main { display:flex; align-items:flex-start; gap:14px; min-width:0; }
.portal-live-card-mark { font-size:34px; line-height:1; }
.portal-live-card strong { font-size:19px; }
.portal-live-card p { font-size:13.5px; line-height:1.5; }
.portal-live-card p b { color:#5a1622; }
.portal-live-card-perks { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:6px 14px; }
.portal-live-card-perks li { display:flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; color:#5a3a22; }
.portal-live-card-perks svg { width:15px; height:15px; color:#b8892b; flex-shrink:0; }
.portal-live-card-actions { display:flex; flex-direction:column; gap:8px; }
.portal-live-card-actions > * { white-space:nowrap; justify-content:center; min-width:136px; }
@media (max-width: 1000px) {
  .portal-live-card { grid-template-columns:1fr; }
  .portal-live-card-actions { flex-direction:row; }
  .portal-live-card-actions > * { flex:1; }
}
.portal-live-card { margin-bottom:22px; }
.portal-live-card-perks { gap:10px 18px; }
.portal-live-card-perks svg { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.portal-live-card-actions .primary-button svg { width:16px; height:16px; }
.portal-live-card-actions .primary-button svg { fill:#f3d48a; stroke:none; }

/* ── Legal pages (/privacy, /terms, /safety, /grievance) ── */
.legal-page { min-height:100vh; background:#faf6f0; color:#3a2a1e; font-family:Inter, system-ui, sans-serif; }
.legal-header { position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:14px clamp(16px, 5vw, 64px); background:#fff; border-bottom:1px solid #ece4d8; }
.legal-header .lp-brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:#5a1622; }
.legal-header .lp-brand img { width:40px; height:40px; }
.legal-header .lp-brand strong { display:block; font-size:17px; }
.legal-header .lp-brand small { font-size:12px; color:#8a7666; }
.legal-header nav { display:flex; gap:6px; flex-wrap:wrap; }
.legal-header nav a { padding:7px 12px; border-radius:999px; font-size:13.5px; font-weight:600; color:#5a463a; text-decoration:none; }
.legal-header nav a:hover { background:#f8f1e6; }
.legal-header nav a.is-active { background:#7a1f2b; color:#fff; }
.legal-main { max-width:820px; margin:0 auto; padding:40px 20px 64px; }
.legal-kicker { font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#a07a2c; }
.legal-main h1 { margin:6px 0 4px; font-family:"Playfair Display", Georgia, serif; font-size:clamp(28px, 4vw, 38px); color:#5a1622; }
.legal-updated { margin:0 0 12px; font-size:13px; color:#8a7666; }
.legal-intro { font-size:16px; line-height:1.65; color:#4a3a2e; }
.legal-main section { margin-top:22px; padding:18px 22px; background:#fff; border:1px solid #ece4d8; border-radius:14px; }
.legal-main h2 { margin:0 0 8px; font-size:18px; color:#5a1622; }
.legal-main p, .legal-main li { font-size:14.5px; line-height:1.65; }
.legal-main ul { margin:0; padding-left:20px; display:flex; flex-direction:column; gap:6px; }
.legal-contact { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:12px 20px; margin:0; }
.legal-contact dt { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:#8a7666; }
.legal-contact dd { margin:2px 0 0; font-size:15px; font-weight:600; }
.legal-contact a, .legal-main a { color:#7a1f2b; }
.legal-footer { padding:20px; text-align:center; font-size:13px; color:#8a7666; border-top:1px solid #ece4d8; background:#fff; }
.legal-footer a { color:#7a1f2b; text-decoration:none; }
.lp-footer-links nav a { display:block; color:inherit; text-decoration:none; padding:3px 0; opacity:.85; }
.lp-footer-links nav a:hover { opacity:1; text-decoration:underline; }
.lp-register-consent { margin:6px 0 0; font-size:12px; color:#8a7666; text-align:center; }
.lp-register-consent a { color:#7a1f2b; }
.portal-account-legal { display:flex; flex-wrap:wrap; gap:4px 12px; padding:8px 14px; border-top:1px solid #f1ebe2; }
.portal-account-legal a { font-size:12px; color:#8a7666; text-decoration:none; }
.portal-account-legal a:hover { color:#7a1f2b; text-decoration:underline; }
.legal-settings-status { font-size:13px; color:#5a463a; margin-left:10px; }
.legal-page.is-embedded { min-height:0; background:transparent; }
.legal-page.is-embedded .legal-main { padding-top:20px; }
.legal-tabs { max-width:820px; margin:0 auto; }
.legal-header nav a.legal-home { border:1px solid #e6d3a8; }

/* Plan tag: gold star, and a glitter sweep for Gold / Platinum / trial */
.portal-plan-chip svg { fill:currentColor; stroke:none; }
.portal-plan-chip { position:relative; overflow:hidden; isolation:isolate; }
.portal-plan-chip.is-trial,
.portal-plan-chip.is-paid {
  background:linear-gradient(110deg, #f6dd9a 0%, #e9c46a 35%, #fff3c4 50%, #e2b54f 65%, #f3d48a 100%);
  border-color:#d4a64a;
  color:#5a3a0e;
  box-shadow:0 1px 6px rgba(184,137,43,.35), inset 0 1px 0 rgba(255,255,255,.6);
}
.portal-plan-chip.is-trial svg,
.portal-plan-chip.is-paid svg { color:#8a5a12; filter:drop-shadow(0 0 2px rgba(255,240,190,.9)); }
.portal-plan-chip.is-trial::after,
.portal-plan-chip.is-paid::after {
  content:""; position:absolute; inset:-2px auto -2px -60%; width:45%; z-index:-1;
  background:linear-gradient(100deg, transparent 0%, rgba(255,255,255,.0) 20%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 80%, transparent 100%);
  transform:skewX(-20deg);
  animation:portalPlanGlitter 2.8s ease-in-out infinite;
}
@keyframes portalPlanGlitter {
  0% { left:-60%; }
  55%, 100% { left:130%; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-plan-chip.is-trial::after, .portal-plan-chip.is-paid::after { animation:none; display:none; }
}

/* Plan tag colours (no animation) */
.portal-plan-chip.is-trial::after, .portal-plan-chip.is-paid::after { content:none; animation:none; }
.portal-plan-chip.is-paid { box-shadow:0 1px 4px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.6); }
.portal-plan-chip.is-paid svg { filter:none; }
.portal-plan-chip.is-gold { background:linear-gradient(135deg, #f8e3a3, #e8c15f 55%, #f3d48a); border-color:#d4a64a; color:#5a3a0e; }
.portal-plan-chip.is-gold svg { color:#8a5a12; }
.portal-plan-chip.is-silver { background:linear-gradient(135deg, #f4f5f7, #d5d9df 55%, #eceef1); border-color:#b9bfc8; color:#3d4550; }
.portal-plan-chip.is-silver svg { color:#6b7480; }
.portal-plan-chip.is-platinum { background:linear-gradient(135deg, #e9edf2, #b8c2cf 50%, #dfe5ec); border-color:#8f9bab; color:#24303f; }
.portal-plan-chip.is-platinum svg { color:#4a5a70; }

/* Original horoscope file on the shared profile */
.portal-horoscope-files { margin-top:18px; padding:14px 16px; border:1px solid #e6d3a8; border-radius:14px; background:#fffaf0; }
.portal-horoscope-files-head, .portal-horoscope-files.is-locked { display:flex; align-items:flex-start; gap:10px; }
.portal-horoscope-files-head { margin-bottom:10px; }
.portal-horoscope-files svg { width:18px; height:18px; flex-shrink:0; color:#b8892b; }
.portal-horoscope-files strong { display:block; font-size:14.5px; color:#5a1622; }
.portal-horoscope-files small { display:block; font-size:12.5px; color:#6a5646; margin-top:2px; }
.portal-horoscope-file { display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px solid #f1e6d2; }
.portal-horoscope-file > span { flex:1; font-size:13px; font-weight:600; color:#5a463a; }
.portal-horoscope-file a { display:inline-flex; align-items:center; gap:6px; text-decoration:none; padding:7px 14px; }
.portal-horoscope-file a svg { width:15px; height:15px; color:currentColor; }
.portal-horoscope-files.is-locked { background:#f8f5f0; border-color:#ece4d8; }

/* Consent before accepting an interest */
.portal-accept-consent { max-width:480px; }
.portal-accept-consent h3 { margin-bottom:6px; }
.portal-accept-consent > p { margin:10px 0 6px; font-size:14px; color:#5a463a; font-weight:600; }
.portal-consent-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.portal-consent-list li { display:flex; align-items:flex-start; gap:8px; padding:8px 10px; border-radius:10px; background:#f8f5f0; font-size:13.5px; color:#3a2a1e; }
.portal-consent-list.is-open li { background:#f1faf4; }
.portal-consent-list li svg { width:15px; height:15px; flex-shrink:0; margin-top:2px; color:#8a7666; }
.portal-consent-list.is-open li::before { content:"✓"; color:#1d6b3c; font-weight:800; }
.portal-consent-note { font-size:12.5px !important; font-weight:400 !important; color:#6a5646 !important; }
.portal-consent-note a { color:#7a1f2b; }
.portal-consent-tick { display:flex; align-items:flex-start; gap:8px; margin:12px 0 4px; padding:10px 12px; border:1px solid #e6d3a8; border-radius:10px; background:#fffaf0; font-size:13.5px; font-weight:600; cursor:pointer; }
.portal-consent-tick input { margin-top:3px; }
.admin-consent-line { margin:4px 0 0; font-size:12.5px; color:#1d6b3c; font-weight:600; }
.admin-consent-line.is-missing { color:#8a7666; font-weight:500; }

/* Horoscope sharing on accepted interest cards */
.portal-interest-horoscope { margin-top:10px; padding:10px 12px; border:1px solid #f0e3c8; border-radius:12px; background:#fffaf0; display:flex; flex-direction:column; gap:6px; }
.portal-interest-horoscope p { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0; font-size:13px; color:#5a463a; }
.portal-interest-horoscope p > span { flex:1; min-width:160px; }
.portal-interest-horoscope svg { width:15px; height:15px; color:#b8892b; flex-shrink:0; }
.portal-interest-horoscope p.is-ask { color:#7a1f2b; }
.portal-interest-horoscope p.is-shared { color:#1d6b3c; font-weight:600; }
.portal-interest-horoscope .primary-button { padding:5px 12px; font-size:12.5px; }
.portal-horoscope-files.is-locked { align-items:center; }
.portal-horoscope-files.is-locked > div { flex:1; }
.portal-horoscope-files.is-locked .primary-button { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }

/* Original horoscope box: text left, compact button right, gold outline icons */
.portal-horoscope-files.is-locked { display:flex; align-items:center; gap:14px; padding:16px 18px; background:linear-gradient(120deg, #fffaf0, #fdf3e3); border:1px solid #ecd9b0; }
.portal-horoscope-files.is-locked > svg { width:22px; height:22px; padding:9px; box-sizing:content-box; border-radius:50%; background:#fff; border:1px solid #ecd9b0; }
.portal-horoscope-files.is-locked > div { flex:1 1 auto; min-width:0; }
.portal-horoscope-files.is-locked strong { font-size:15px; }
.portal-horoscope-files.is-locked small { font-size:13px; line-height:1.45; max-width:520px; }
.portal-horoscope-files.is-locked .primary-button { flex:0 0 auto; width:auto !important; min-width:0; padding:9px 16px; border-radius:999px; font-size:13.5px; }
.portal-horoscope-files svg,
.portal-interest-horoscope svg { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; color:#b8892b; }
.portal-horoscope-files .primary-button svg { color:#f3d48a; width:16px; height:16px; }
.portal-horoscope-file a svg { color:currentColor; }
@media (max-width: 640px) {
  .portal-horoscope-files.is-locked { flex-wrap:wrap; }
  .portal-horoscope-files.is-locked .primary-button { width:100% !important; justify-content:center; }
}
.portal-interest-code { display:block; margin-top:2px; font-size:11.5px; font-weight:500; color:#9a8878; letter-spacing:.02em; }

/* Horoscope request banner on Interests */
.portal-interest-banner { display:flex; align-items:center; gap:14px; margin:14px 0 4px; padding:14px 18px; border:1px solid #e6cf9f; border-radius:14px; background:linear-gradient(115deg, #fffaf0, #fdf1e6); box-shadow:0 4px 14px rgba(122,31,43,.07); }
.portal-interest-banner-icon { font-size:26px; line-height:1; }
.portal-interest-banner > span:nth-child(2) { flex:1; min-width:0; }
.portal-interest-banner strong { display:block; font-size:15px; color:#5a1622; }
.portal-interest-banner small { display:block; font-size:12.5px; color:#6a5646; margin-top:2px; }
.portal-interest-banner .primary-button { flex:0 0 auto; width:auto; padding:8px 18px; border-radius:999px; }
.portal-interest-card.is-highlight { outline:3px solid #e8c15f; outline-offset:2px; transition:outline-color .4s; }
@media (max-width: 640px) { .portal-interest-banner { flex-wrap:wrap; } .portal-interest-banner .primary-button { width:100%; } }

/* Interest card title: serif name with a quiet profile-number tag on the same line */
.portal-interest-title { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 10px; margin:6px 0 6px; line-height:1.15; }
.portal-interest-name { font-family:"Playfair Display", Georgia, serif; font-size:22px; font-weight:700; color:#5a1622; letter-spacing:.005em; }
.portal-interest-title .portal-interest-code { display:inline-block; margin:0; padding:2px 9px; border-radius:999px; background:#f6efe4; border:1px solid #eadfcd; font-family:Inter, system-ui, sans-serif; font-size:11px; font-weight:600; letter-spacing:.06em; color:#8a7666; transform:translateY(-2px); }
.portal-interest-facts { margin:3px 0; font-size:13.5px; color:#4a3a2e; }

/* Profile changes: staff queue and family notes */
.admin-change-table { width:100%; border-collapse:collapse; margin:6px 0 4px; font-size:13px; }
.admin-change-table th, .admin-change-table td { padding:6px 10px; border-bottom:1px solid #f1ebe2; text-align:left; vertical-align:top; }
.admin-change-table thead th { font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; color:#8a7666; }
.admin-change-table tbody th { width:22%; color:#3a2a1e; }
.admin-change-table td.is-new { background:#f1faf4; color:#1d4f2f; font-weight:600; }
.admin-change-empty { color:#b9ab9c; }
.admin-change-hint { margin:4px 0; font-size:13px; color:#6a5646; }
.admin-change-translations { margin:8px 0 4px; display:grid; gap:6px; justify-items:start; }
.admin-change-translations > div { width:100%; font-size:13px; color:#6a5646; }
.admin-change-translations .admin-change-table td { color:#3a2a1e; }
.portal-change-note { display:flex; align-items:flex-start; gap:10px; margin:0 0 14px; padding:12px 14px; border:1px solid #e6d3a8; border-radius:12px; background:#fffaf0; font-size:13.5px; color:#5a463a; }
.portal-change-note svg { width:17px; height:17px; flex-shrink:0; margin-top:1px; fill:none; stroke:currentColor; stroke-width:2; color:#b8892b; }
.portal-change-note strong { color:#5a1622; }
.portal-change-note.is-rejected { background:#fff6f3; border-color:#f0c2b8; }
.portal-change-note.is-rejected svg { color:#9a2f1f; }
.portal-my-profile-row.has-pending { position:relative; }
.portal-pending-change { display:inline-flex; align-items:center; gap:5px; margin-top:4px; padding:2px 9px; border-radius:999px; background:#fdf1d8; color:#8a6418; font-style:normal; font-size:11.5px; font-weight:600; }
.portal-pending-change svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:2; }

/* Account deletion */
.portal-delete-heading { color:#9a2f1f; }
.portal-delete-btn { border-color:#f0c2b8 !important; color:#9a2f1f !important; }
.portal-delete-btn:hover { background:#fff6f3 !important; }
.portal-delete-dialog { max-width:500px; }
.portal-delete-dialog .portal-consent-list { margin:8px 0 12px; }
.portal-delete-field { display:flex; flex-direction:column; gap:5px; margin:10px 0 0; font-size:13.5px; font-weight:600; color:#3a2a1e; }
.portal-delete-field small { font-weight:400; color:#8a7666; }
.portal-delete-field select, .portal-delete-field textarea, .portal-delete-field input { padding:9px 11px; border:1px solid #ddd2c4; border-radius:10px; font:inherit; font-weight:400; }
.portal-delete-error { min-height:18px; margin:8px 0 0; font-size:13px; color:#9a2f1f; }
.portal-delete-confirm { background:#9a2f1f !important; border-color:#9a2f1f !important; }
.portal-photo-presence.is-away i { background:#c9b9a6; }
.portal-photo-presence.is-away { color:#6a5646; }
.admin-inactive.is-notice { border-left-color:#e8c15f; }
.admin-inactive.is-lowered { border-left-color:#d48a3a; }
.admin-inactive.is-hidden { border-left-color:#9a2f1f; }

/* Advisor follow-ups */
.admin-followup-group { display:flex; align-items:center; gap:8px; margin:18px 0 8px; font-size:14px; text-transform:uppercase; letter-spacing:.06em; color:#5a463a; }
.admin-followup-group b { padding:1px 8px; border-radius:999px; background:#f3ece2; font-size:12px; }
.admin-followup-group.is-overdue { color:#9a2f1f; }
.admin-followup-group.is-overdue b { background:#fde4de; }
.admin-followup-group.is-today { color:#a0631a; }
.admin-followup.is-overdue { border-left:4px solid #c2412d; }
.admin-followup.is-today { border-left:4px solid #e0a43a; }
.admin-followup.is-week { border-left:4px solid #e8d7a8; }
.admin-followup-due { font-weight:700; }
.admin-followup.is-overdue .admin-followup-due { color:#9a2f1f; }
.admin-desk-item-actions { display:flex; gap:8px; align-items:center; margin-top:8px; }
.admin-followup-summary { margin:4px 0 0; padding:10px 12px; border-radius:10px; background:#fff6f3; font-size:13px; color:#5a463a; }
.admin-followup-dialog { max-width:480px; }
.admin-followup-current, .admin-followup-last { margin:4px 0; font-size:13px; color:#5a463a; }

/* Photo protection: other families' photos cannot be saved or dragged, and carry a faint mark
   with the viewer's profile number and date (set as --nms-viewer-mark). */
.portal-match-photo img, .vvip-gallery img, .portal-interest-photo img, .portal-thread-avatar img {
  -webkit-user-select:none; user-select:none; -webkit-user-drag:none; -webkit-touch-callout:none; pointer-events:none;
}
.portal-match-photo, .vvip-gallery-main, .portal-interest-photo { position:relative; -webkit-touch-callout:none; }
.portal-match-photo::before, .vvip-gallery-main::before, .portal-interest-photo::before {
  content:var(--nms-viewer-mark, "");
  position:absolute; right:6px; bottom:5px; z-index:2;
  font:600 9.5px/1 Inter, system-ui, sans-serif; letter-spacing:.04em;
  color:rgba(255,255,255,.55); text-shadow:0 0 2px rgba(0,0,0,.35);
  pointer-events:none; white-space:nowrap;
}
.vvip-gallery-main::before { font-size:11px; right:10px; bottom:10px; }
.vvip-gallery-protected { display:flex; align-items:center; gap:6px; margin:8px 2px 0; font-size:11.5px; color:#8a7666; }
.vvip-gallery-protected svg { width:12px; height:12px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:2; }
.vvip-gallery-main::before { right:auto; left:12px; bottom:14px; }

/* Home page: blurred illustrated portraits on the sample cards */
.lp-card-photo { overflow:hidden; }
.lp-card-photo .lp-card-portrait { position:absolute; inset:0; width:100%; height:100%; filter:blur(7px) saturate(1.05); transform:scale(1.12); opacity:.92; }
.lp-card-photo.is-bride.is-tone-0 { background:linear-gradient(160deg, #f3d3c8, #b45467); }
.lp-card-photo.is-bride.is-tone-1 { background:linear-gradient(160deg, #f0dccf, #8f4b6a); }
.lp-card-photo.is-bride.is-tone-2 { background:linear-gradient(160deg, #f6dfc4, #b8634a); }
.lp-card-photo.is-bride.is-tone-3 { background:linear-gradient(160deg, #ecd2c6, #7d3846); }
.lp-card-photo.is-groom.is-tone-0 { background:linear-gradient(160deg, #e6d6bd, #7b5636); }
.lp-card-photo.is-groom.is-tone-1 { background:linear-gradient(160deg, #d9dfe6, #4d5d70); }
.lp-card-photo.is-groom.is-tone-2 { background:linear-gradient(160deg, #eadcc4, #8a6a3e); }
.lp-card-photo.is-groom.is-tone-3 { background:linear-gradient(160deg, #dde3dc, #5a6c5e); }
.lp-card-photo span { z-index:1; }

/* Home page: contact block */
.lp-contact { display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap:10px; margin-top:18px; }
.lp-contact-item { display:flex; align-items:center; gap:10px; padding:10px 14px; border-radius:14px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18); color:inherit; text-decoration:none; transition:background .2s; }
a.lp-contact-item:hover { background:rgba(255,255,255,.18); }
.lp-contact-icon { display:grid; place-items:center; width:36px; height:36px; flex-shrink:0; border-radius:50%; background:#e8c15f; color:#5a1622; }
.lp-contact-icon svg { width:18px; height:18px; }
.lp-contact-item small { display:block; font-size:11.5px; opacity:.8; }
.lp-contact-item strong { display:block; font-size:14.5px; }

/* Home page: floating WhatsApp and call buttons */
.lp-float-wrap { position:fixed; right:18px; bottom:18px; z-index:40; display:flex; flex-direction:column; gap:10px; }
.lp-float { display:inline-flex; align-items:center; gap:8px; padding:11px 16px; border-radius:999px; color:#fff; font-weight:700; font-size:14px; text-decoration:none; box-shadow:0 8px 22px rgba(0,0,0,.22); }
.lp-float svg { width:20px; height:20px; }
.lp-float.is-whatsapp { background:#1fa855; }
.lp-float.is-call { background:#7a1f2b; }
.lp-float.is-call svg { fill:none; stroke:currentColor; stroke-width:2; }
.lp-float:hover { filter:brightness(1.06); }
@media (max-width: 640px) {
  .lp-float span { display:none; }
  .lp-float { padding:13px; }
}
.lp-footer-links nav span { display:block; padding:3px 0; opacity:.85; }
.lp-contact-icon svg { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.lp-contact-icon svg path[fill], .lp-float svg path[fill] { stroke:none; }
/* Real photo, blurred: a 24 px copy scaled up and blurred, so no face can be recognised */
.lp-card-blur { position:absolute; inset:-14px; background-size:cover; background-position:center 30%; filter:blur(14px) saturate(1.1); transform:scale(1.08); }
.lp-card-photo.has-photo::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.35)); }
.lp-card-photo.has-photo span { z-index:2; }

/* My Profile photos: main photo tag and "Set as main" */
.portal-photo-slot { position:relative; }
.portal-photo-main-tag { position:absolute; left:6px; top:6px; display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:999px; background:#7a1f2b; color:#fff; font-size:10.5px; font-weight:700; pointer-events:none; }
.portal-photo-main-tag svg { width:11px; height:11px; color:#f3d48a; fill:currentColor; stroke:none; }
.portal-photo-make-main { display:inline-flex; align-items:center; justify-content:center; gap:4px; margin-top:6px; width:100%; padding:5px 8px; border:1px solid #e6d3a8; border-radius:999px; background:#fffaf0; color:#6b4e16; font-size:11.5px; font-weight:700; cursor:pointer; }
.portal-photo-make-main svg { width:11px; height:11px; color:#b8892b; fill:currentColor; stroke:none; }
.portal-photo-make-main:hover { background:#fdf1d8; }
.portal-photo-slot.is-main .portal-photo-thumb { outline:2px solid #e8c15f; outline-offset:1px; }

/* Languages: family language menu and script fonts */
.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; }
.nms-language-menu { position:relative; display:inline-flex; align-items:center; gap:6px; padding:0 10px; height:36px; border:1px solid rgba(122,31,43,.22); border-radius:999px; background:#fff; color:#5a1622; font-size:13px; font-weight:600; cursor:pointer; }
.nms-language-menu svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; flex:none; }
.nms-language-menu select { appearance:none; -webkit-appearance:none; border:0; background:transparent; color:inherit; font:inherit; padding-right:14px; cursor:pointer; outline:none;
  background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%); background-position:right 4px center,right 0 center; background-size:4px 4px; background-repeat:no-repeat; }
.nms-language-menu:focus-within { box-shadow:0 0 0 3px rgba(201,162,77,.35); }
.lp-header .nms-language-menu { background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.35); color:#fff; }
.lp-header .nms-language-menu option { color:#2a1a1d; }
.nms-language-menu.is-drawer { align-self:flex-start; margin:4px 0 14px; }
.nms-language-menu.is-settings { margin-top:4px; }
.portal-header-right .nms-language-menu { margin-right:10px; }
html[lang="ta"] body { font-family:"Inter","Noto Sans Tamil",system-ui,sans-serif; }
html[lang="te"] body { font-family:"Inter","Noto Sans Telugu",system-ui,sans-serif; }
html[lang="kn"] body { font-family:"Inter","Noto Sans Kannada",system-ui,sans-serif; }
html[lang="ml"] body { font-family:"Inter","Noto Sans Malayalam",system-ui,sans-serif; }
html[lang="hi"] body { font-family:"Inter","Noto Sans Devanagari",system-ui,sans-serif; }
.language-table td, .language-table th { vertical-align:middle; }
.portal-login-top-actions { display:flex; align-items:center; gap:12px; }

/* ── Portal header: hold its shape with longer labels ──
   Two rows in every language: brand and account on top, the menu centred on its own row below. */
.portal-brand { flex: 0 0 auto; min-width: 0; }
.portal-brand-title,
.portal-brand-tagline { white-space: nowrap; }
.portal-header-right { flex: 0 0 auto; }
.portal-plan-chip span { white-space: nowrap; }

.portal-header { flex-wrap: wrap; min-height: 0; row-gap: 0; padding-top: 10px; }
.portal-header-right { margin-left: auto; padding-bottom: 10px; }
.portal-brand { padding-bottom: 10px; }
.portal-nav {
  order: 3;
  flex: 1 1 100%;
  justify-content: center;
  min-height: 50px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--nms-line);
}
html:is([lang="ta"], [lang="kn"], [lang="ml"], [lang="hi"]) .portal-nav-link { padding: 0 14px; font-size: 14.5px; gap: 6px; }

/* The two-row header has room for the tagline and name that older narrow-screen rules hid. */
@media (min-width: 901px) and (max-width: 1380px) {
  .portal-brand-tagline { display: block; }
  .portal-account-name { display: inline; }
  .portal-account-trigger .portal-nav-caret { display: block; }
}

/* Small screens: the menu row scrolls sideways, so start it at the left edge. */
@media (max-width: 900px) {
  .portal-nav { justify-content: flex-start; }
}

/* Tamil / Kannada: slightly smaller toggle and filter heading so the longer words fit. */
html:is([lang="ta"], [lang="kn"], [lang="ml"], [lang="hi"]) .portal-search-segmented { grid-template-columns: repeat(3, auto); gap: 2px; }
html:is([lang="ta"], [lang="kn"], [lang="ml"], [lang="hi"]) .portal-search-segmented span { padding: 0 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
html:is([lang="ta"], [lang="kn"], [lang="ml"], [lang="hi"]) .portal-refine-head h2 { font-size: 15px; line-height: 1.35; }
html:is([lang="ta"], [lang="kn"], [lang="ml"], [lang="hi"]) .portal-refine-head .portal-link-button { font-size: 13px; }

/* Tamil / Kannada desktop search bar: the gender toggle takes its full width; religion and caste
   give up the spare space. Below 1180px the existing 3-column layout takes over. */
@media (min-width: 1181px) {
  html:is([lang="ta"], [lang="kn"], [lang="ml"], [lang="hi"]) .portal-quick-body {
    grid-template-columns: max-content minmax(190px, 1fr) minmax(120px, 0.7fr) minmax(130px, 0.8fr) minmax(170px, 1.1fr) auto;
  }
}

/* Porutham card as a table: rows of  ✓/✗ | porutham | meaning, in two columns on wide screens. */
.portal-porutham ul {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 0 28px;
  margin-bottom: 4px;
}
.portal-porutham li {
  grid-template-columns: 22px 150px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid #f0e4cc;
  line-height: 1.45;
}
.portal-porutham li i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
}
.portal-porutham li.is-ok i { background: #e6f4ea; }
.portal-porutham li.is-no i { background: #fbe9e7; }
.portal-porutham li.is-no b { color: #a12c22; }
.portal-porutham li span { color: #6b5c4e; }

html:is([lang="ta"], [lang="kn"], [lang="ml"], [lang="hi"]) .portal-porutham li { grid-template-columns: 22px 130px minmax(0, 1fr); font-size: 12.5px; }

@media (max-width: 600px) {
  .portal-porutham ul { grid-template-columns: 1fr; }
  .portal-porutham li,
  html:is([lang="ta"], [lang="kn"], [lang="ml"], [lang="hi"]) .portal-porutham li { grid-template-columns: 22px 110px minmax(0, 1fr); }
}

/* Results toolbar on one tidy row: count on the left, every control the same 40px height on the
   right. On narrower screens the controls wrap together, still right-aligned. */
@media (min-width: 901px) {
  .portal-search-toolbar { flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; }
  .portal-search-count { flex: 1 1 auto; min-width: 160px; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
  .portal-save-search,
  .portal-shortlist-toggle { height: 40px; min-height: 40px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
  .portal-search-sort { gap: 8px; white-space: nowrap; font-size: 13px; }
  .portal-search-sort select { height: 40px; width: auto; min-width: 190px; max-width: 240px; font-size: 13px; }
  .portal-view-toggle { height: 40px; }
}

/* The recommendation badge is one short line. */
.portal-why-suggest b { white-space: nowrap; }

/* Keep the results toolbar on one line on desktop. In Tamil / Kannada the "Sort by" label is
   hidden visually (the dropdown says what it sorts by; screen readers still get the label). */
@media (min-width: 901px) {
  .portal-search-toolbar { flex-wrap: nowrap; }
  .portal-search-toolbar > * { flex-shrink: 0; }
  .portal-search-toolbar > .portal-search-count { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  html:is([lang="ta"], [lang="kn"], [lang="ml"], [lang="hi"]) .portal-search-sort > span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  html:is([lang="ta"], [lang="kn"], [lang="ml"], [lang="hi"]) .portal-search-sort select { min-width: 170px; }
}

/* Search-card actions are three icon-only buttons: heart (shortlist), hide, report. The words
   live in the tooltip and the accessible label, so nothing is cut off in any language. A filled
   heart on pink shows a shortlisted profile. */
.portal-search-results .portal-match-action-buttons,
.portal-search[data-view="grid"] .portal-search-results .portal-match-action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.portal-search-results .portal-match-action-buttons .portal-btn-shortlist,
.portal-search-results .portal-match-action-buttons .portal-btn-hide,
.portal-search-results .portal-match-action-buttons .portal-btn-hide.is-on,
.portal-search-results .portal-match-action-buttons .portal-btn-report {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  gap: 0;
  border-radius: 10px;
}
.portal-search-results .portal-match-action-buttons :is(.portal-btn-shortlist, .portal-btn-hide, .portal-btn-report) span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.portal-search-results .portal-match-action-buttons :is(.portal-btn-shortlist, .portal-btn-hide, .portal-btn-report) svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.portal-search-results .portal-match-action-buttons .portal-btn-shortlist svg { fill: none; stroke: currentColor; }
.portal-search-results .portal-match-action-buttons .portal-btn-shortlist.is-on { background: #fdecef; border-color: #e7a9b8; }
.portal-search-results .portal-match-action-buttons .portal-btn-shortlist.is-on svg { fill: #c0294a; stroke: #c0294a; }

/* Staff verification: the biodata's own wording under a field whose English differs. */
.vfy-as-written { display: block; margin-top: 4px; color: #8a7f7a; font-size: 12px; line-height: 1.35; }

/* Staff profile page: translation status per family language. */
.admin-translations-list { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.admin-translation-chip { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f3efe9; color: #5a4a3c; }
.admin-translation-chip.is-machine,
.admin-translation-chip.is-reviewed { background: #f1faf4; color: #1d6b3c; }
.admin-translation-chip.is-out_of_date { background: #fff4e0; color: #8a5a10; }

/* ── Display theme (app.js: Automatic 6 PM to 6 AM, Light, Dark) ──
   Dark mode inverts the whole page and turns the hue back, so the brand's wine and gold stay
   in their family while white panels become dark. Photos, documents, charts drawn as images,
   videos and the logo are inverted a second time so they show as they really are. */
/* Inverted, then softened: charcoal instead of black and off-white instead of white, which is
   easier on the eyes at night. */
html.theme-dark { filter:invert(1) hue-rotate(180deg) contrast(0.86) brightness(1.06); }
html.theme-dark img,
html.theme-dark video,
html.theme-dark canvas,
html.theme-dark iframe,
html.theme-dark picture,
html.theme-dark [style*="background-image"] { filter:invert(1) hue-rotate(180deg); }
/* Wine blocks (dark wine with light text in the day) are already dark, so they are turned back
   and keep the brand wine instead of becoming pink. Generated from the wine backgrounds above. */
html.theme-dark :is(
  .admin-desk .admin-desk-tabs button.is-active,
  .admin-desk-tabs button.is-active,
  .admin-plan-badge.is-platinum,
  .admin-preport-actions .admin-preport-archive,
  .admin-preports-tabs button.is-active,
  .avatar,
  .bar-fill,
  .candidate-avatar,
  .candidate-detail-open-btn.is-publish,
  .candidate-filters .filter-actions .primary-button,
  .candidate-filters .filter-more-count,
  .cropper-preset-btn.active,
  .language-option.is-active,
  .legal-header nav a.is-active,
  .lp-drawer,
  .lp-float.is-call,
  .lp-hero,
  .lp-hero-frame,
  .photo-action-btn.primary,
  .photo-cropper-frame,
  .planet-chip.planet-ketu,
  .portal-account-avatar,
  .portal-account-avatar.has-ring > span,
  .portal-account-menu.is-open .portal-account-caret,
  .portal-advisor-card,
  .portal-advisor-hero,
  .portal-advisor-step,
  .portal-biodata-page .portal-drop-action,
  .portal-block-dialog .portal-block-confirm,
  .portal-btn-view,
  .portal-chat-msg.is-mine,
  .portal-checkout-mark,
  .portal-create-progress-track i,
  .portal-create-steps .is-current .portal-create-step-no,
  .portal-create-steps .is-current button,
  .portal-delete-confirm,
  .portal-fix-arrow,
  .portal-fix-tip,
  .portal-login-submit,
  .portal-matches-tab.is-active,
  .portal-membership-help > span,
  .portal-membership-hero,
  .portal-notice-icon,
  .portal-onboard-badge.is-wine,
  .portal-onboard-cta,
  .portal-onboard-formats i.is-pdf,
  .portal-onboard-help-icon,
  .portal-onboard-journey li > span,
  .portal-page-badge-icon,
  .portal-photo-main-tag,
  .portal-plan-chip.is-paid,
  .portal-privacy-icon,
  .portal-profile-action.is-primary,
  .portal-profile-avatar,
  .portal-profile-biodata-btn,
  .portal-profile-cover,
  .portal-profile-nav-item.active,
  .portal-registration-next,
  .portal-registration-steps li.is-active .portal-registration-step-number,
  .portal-search-multi summary b,
  .portal-search-results .portal-match-action-buttons .portal-btn-view,
  .portal-search-segmented input:checked + span,
  .portal-shared-charts .nms-chart-header,
  .portal-shortlist-toggle.is-on,
  .portal-status-step.current .portal-status-dot,
  .portal-status-tip,
  .portal-switch input:checked + .portal-switch-track,
  .portal-thread-avatar,
  .portal-verify-steps li.is-current > span,
  .portal-wiz-dot.current,
  .primary-button,
  .sibling-section-header .line,
  .sibling-section-header .line.right,
  .staff-photo .avatar.is-xl,
  .upload-si-asc,
  .vfy-multi-tag,
  .vfy-tab-nav-item.active,
  .vvip-cta-primary,
  .vvip-head-tile,
  .vvip-pill,
  .vvip-privacy-lock,
  .vvip-ribbon,
  .vvip-rm
) { filter:invert(1) hue-rotate(180deg); }
/* Inside a turned-back block, images and other wine blocks must not flip a second time. */
html.theme-dark :is(
  .admin-desk .admin-desk-tabs button.is-active,
  .admin-desk-tabs button.is-active,
  .admin-plan-badge.is-platinum,
  .admin-preport-actions .admin-preport-archive,
  .admin-preports-tabs button.is-active,
  .avatar,
  .bar-fill,
  .candidate-avatar,
  .candidate-detail-open-btn.is-publish,
  .candidate-filters .filter-actions .primary-button,
  .candidate-filters .filter-more-count,
  .cropper-preset-btn.active,
  .language-option.is-active,
  .legal-header nav a.is-active,
  .lp-drawer,
  .lp-float.is-call,
  .lp-hero,
  .lp-hero-frame,
  .photo-action-btn.primary,
  .photo-cropper-frame,
  .planet-chip.planet-ketu,
  .portal-account-avatar,
  .portal-account-avatar.has-ring > span,
  .portal-account-menu.is-open .portal-account-caret,
  .portal-advisor-card,
  .portal-advisor-hero,
  .portal-advisor-step,
  .portal-biodata-page .portal-drop-action,
  .portal-block-dialog .portal-block-confirm,
  .portal-btn-view,
  .portal-chat-msg.is-mine,
  .portal-checkout-mark,
  .portal-create-progress-track i,
  .portal-create-steps .is-current .portal-create-step-no,
  .portal-create-steps .is-current button,
  .portal-delete-confirm,
  .portal-fix-arrow,
  .portal-fix-tip,
  .portal-login-submit,
  .portal-matches-tab.is-active,
  .portal-membership-help > span,
  .portal-membership-hero,
  .portal-notice-icon,
  .portal-onboard-badge.is-wine,
  .portal-onboard-cta,
  .portal-onboard-formats i.is-pdf,
  .portal-onboard-help-icon,
  .portal-onboard-journey li > span,
  .portal-page-badge-icon,
  .portal-photo-main-tag,
  .portal-plan-chip.is-paid,
  .portal-privacy-icon,
  .portal-profile-action.is-primary,
  .portal-profile-avatar,
  .portal-profile-biodata-btn,
  .portal-profile-cover,
  .portal-profile-nav-item.active,
  .portal-registration-next,
  .portal-registration-steps li.is-active .portal-registration-step-number,
  .portal-search-multi summary b,
  .portal-search-results .portal-match-action-buttons .portal-btn-view,
  .portal-search-segmented input:checked + span,
  .portal-shared-charts .nms-chart-header,
  .portal-shortlist-toggle.is-on,
  .portal-status-step.current .portal-status-dot,
  .portal-status-tip,
  .portal-switch input:checked + .portal-switch-track,
  .portal-thread-avatar,
  .portal-verify-steps li.is-current > span,
  .portal-wiz-dot.current,
  .primary-button,
  .sibling-section-header .line,
  .sibling-section-header .line.right,
  .staff-photo .avatar.is-xl,
  .upload-si-asc,
  .vfy-multi-tag,
  .vfy-tab-nav-item.active,
  .vvip-cta-primary,
  .vvip-head-tile,
  .vvip-pill,
  .vvip-privacy-lock,
  .vvip-ribbon,
  .vvip-rm
) :is(img, video, canvas, picture, [style*="background-image"],
  .admin-desk .admin-desk-tabs button.is-active,
  .admin-desk-tabs button.is-active,
  .admin-plan-badge.is-platinum,
  .admin-preport-actions .admin-preport-archive,
  .admin-preports-tabs button.is-active,
  .avatar,
  .bar-fill,
  .candidate-avatar,
  .candidate-detail-open-btn.is-publish,
  .candidate-filters .filter-actions .primary-button,
  .candidate-filters .filter-more-count,
  .cropper-preset-btn.active,
  .language-option.is-active,
  .legal-header nav a.is-active,
  .lp-drawer,
  .lp-float.is-call,
  .lp-hero,
  .lp-hero-frame,
  .photo-action-btn.primary,
  .photo-cropper-frame,
  .planet-chip.planet-ketu,
  .portal-account-avatar,
  .portal-account-avatar.has-ring > span,
  .portal-account-menu.is-open .portal-account-caret,
  .portal-advisor-card,
  .portal-advisor-hero,
  .portal-advisor-step,
  .portal-biodata-page .portal-drop-action,
  .portal-block-dialog .portal-block-confirm,
  .portal-btn-view,
  .portal-chat-msg.is-mine,
  .portal-checkout-mark,
  .portal-create-progress-track i,
  .portal-create-steps .is-current .portal-create-step-no,
  .portal-create-steps .is-current button,
  .portal-delete-confirm,
  .portal-fix-arrow,
  .portal-fix-tip,
  .portal-login-submit,
  .portal-matches-tab.is-active,
  .portal-membership-help > span,
  .portal-membership-hero,
  .portal-notice-icon,
  .portal-onboard-badge.is-wine,
  .portal-onboard-cta,
  .portal-onboard-formats i.is-pdf,
  .portal-onboard-help-icon,
  .portal-onboard-journey li > span,
  .portal-page-badge-icon,
  .portal-photo-main-tag,
  .portal-plan-chip.is-paid,
  .portal-privacy-icon,
  .portal-profile-action.is-primary,
  .portal-profile-avatar,
  .portal-profile-biodata-btn,
  .portal-profile-cover,
  .portal-profile-nav-item.active,
  .portal-registration-next,
  .portal-registration-steps li.is-active .portal-registration-step-number,
  .portal-search-multi summary b,
  .portal-search-results .portal-match-action-buttons .portal-btn-view,
  .portal-search-segmented input:checked + span,
  .portal-shared-charts .nms-chart-header,
  .portal-shortlist-toggle.is-on,
  .portal-status-step.current .portal-status-dot,
  .portal-status-tip,
  .portal-switch input:checked + .portal-switch-track,
  .portal-thread-avatar,
  .portal-verify-steps li.is-current > span,
  .portal-wiz-dot.current,
  .primary-button,
  .sibling-section-header .line,
  .sibling-section-header .line.right,
  .staff-photo .avatar.is-xl,
  .upload-si-asc,
  .vfy-multi-tag,
  .vfy-tab-nav-item.active,
  .vvip-cta-primary,
  .vvip-head-tile,
  .vvip-pill,
  .vvip-privacy-lock,
  .vvip-ribbon,
  .vvip-rm
) { filter:none; }
/* Home page wine blocks (they use the --lp-wine colours, so the list above does not catch them). */
html.theme-dark :is(.lp-section-wine, .lp-cta, .lp-btn-wine, .lp-chip input:checked + span, .lp-segment input:checked + span) { filter:invert(1) hue-rotate(180deg); }
html.theme-dark :is(.lp-section-wine, .lp-cta, .lp-btn-wine, .lp-chip input:checked + span, .lp-segment input:checked + span) :is(img, video, canvas, picture, [style*="background-image"]) { filter:none; }
/* An image inside something already turned back would flip twice. */
html.theme-dark [style*="background-image"] img { filter:none; }

.theme-toggle { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border:1px solid #e6d3a8; border-radius:999px; background:#fffaf0; color:#6b4e16; font:inherit; font-size:12.5px; font-weight:600; white-space:nowrap; cursor:pointer; }
.theme-toggle svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; color:#b8892b; }
.theme-toggle:hover { border-color:#d9bf85; background:#fff3dc; }
.theme-toggle.is-staff { flex:none; }
@media (max-width:720px) { .theme-toggle span { display:none; } .theme-toggle { padding:7px; } }

/* Home hero title on two lines in every language: the brand, then "Matrimony" in that language
   (நாச்சியார் / திருமண சேவைகள்). Neither line breaks in the middle; long scripts shrink to fit. */
.lp-hero h1 .lp-hero-brand { display:block; font:inherit; color:inherit; white-space:nowrap; }
.lp-hero h1 .lp-hero-brand + span { display:block; white-space:nowrap; font-size:min(1em, 9.5vw); }

/* Home page profile row: real published profiles (clearer, lightly blurred photo) then labelled
   samples. One row that scrolls sideways, like a carousel. */
.lp-recent { display:grid !important; grid-auto-flow:column; grid-auto-columns:minmax(210px, 1fr); grid-template-columns:none !important;
  overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:10px; scrollbar-width:thin; }
.lp-recent .lp-card { scroll-snap-align:start; }
@media (min-width:1100px) { .lp-recent { grid-auto-columns:calc((100% - 3 * 18px) / 4); } }
/* Light blur: the person is clearly real, the face is not sharp. */
.lp-card-blur { inset:-6px !important; filter:blur(4px) saturate(1.05) !important; transform:scale(1.03) !important; }
.lp-card-body em.is-sample { color:#8a7666; font-style:normal; font-weight:600; }
.lp-card.is-sample .lp-card-photo > span { display:none; }
html.theme-dark .lp-card-blur { filter:invert(1) hue-rotate(180deg) blur(4px) saturate(1.05) !important; }

/* Home page profile row as a carousel: ← / → move one card at a time, no scroll bar. */
#lpRecent { position:relative; }
.lp-recent { scrollbar-width:none; -ms-overflow-style:none; scroll-behavior:smooth; }
.lp-recent::-webkit-scrollbar { display:none; }
/* Arrows inside the row, over the photo area of the first and last visible cards. */
.lp-recent-wrap { position:relative; }
.lp-recent-wrap .lp-recent-arrow { position:absolute; top:69px; z-index:3; box-shadow:0 6px 18px rgba(40,20,20,.18); background:rgba(255,255,255,.94); }
.lp-recent-wrap .lp-recent-arrow.is-prev { left:10px; }
.lp-recent-wrap .lp-recent-arrow.is-next { right:10px; }
.lp-recent-wrap .lp-recent-arrow:disabled { opacity:0; pointer-events:none; }
.lp-recent-arrow { display:inline-grid; place-items:center; width:42px; height:42px; border:1px solid var(--lp-line, #e4d9cd); border-radius:999px; background:#fff; color:#5a1622; cursor:pointer; transition:background .15s, opacity .15s; }
.lp-recent-arrow svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.lp-recent-arrow:hover:not(:disabled) { background:#fbf3e6; }
.lp-recent-arrow:disabled { opacity:.35; cursor:default; }
.lp-card-body b { font-weight:inherit; }
/* AI sample portraits, lightly blurred (about 20%): clearly a person, not a sharp face. */
.lp-card-photo .lp-card-sample-img { position:absolute; inset:-4px; width:calc(100% + 8px); height:calc(100% + 8px); object-fit:cover; object-position:center 20%; filter:blur(3px) saturate(1.05); }
html.theme-dark .lp-card-photo .lp-card-sample-img { filter:invert(1) hue-rotate(180deg) blur(3px) saturate(1.05); }
.lp-card.is-sample .lp-card-photo > span { display:inline-flex; }

/* Real verified cards use an AI-made portrait; the note says so. */
.lp-card-photo .lp-card-photo-note { position:absolute; top:10px; left:10px; z-index:2; padding:3px 8px; border-radius:999px; background:rgba(0,0,0,.42); color:#fff; font-size:10.5px; font-style:normal; font-weight:600; letter-spacing:.02em; }


/* Header buttons: Sign in as a light glass pill with a gold edge; Register free as a gold pill. */
.lp-header-actions { gap:10px; }
.lp-header-actions .lp-btn { height:42px; min-height:42px; border-radius:999px; padding:0 20px; font-weight:700; letter-spacing:.01em; transition:transform .15s, box-shadow .2s, background .2s, border-color .2s; }
.lp-header-actions .lp-btn-outline { border:1px solid rgba(240, 215, 159, .7); background:rgba(255, 255, 255, .08); color:#fff8ea; backdrop-filter:blur(8px); }
.lp-header-actions .lp-btn-outline:hover { background:rgba(240, 215, 159, .16); border-color:#f0d79f; }
.lp-header-actions .lp-btn-gold { border:1px solid rgba(255, 236, 190, .55); background:linear-gradient(135deg, #f3d48a 0%, #d5a649 55%, #b8862e 100%); color:#2a1608; box-shadow:0 8px 22px rgba(213, 166, 73, .35), inset 0 1px 0 rgba(255,255,255,.45); }
.lp-header-actions .lp-btn-gold:hover { box-shadow:0 12px 28px rgba(213, 166, 73, .45), inset 0 1px 0 rgba(255,255,255,.5); transform:translateY(-1px); }

/* Dark mode, home page header: turned back so the name, "Matrimony", menu and buttons keep
   their real colours. Its frosted blur copies the photo behind it and that copy came out pink,
   so in dark mode the header uses a dark wine wash (as in light mode) without the blur. */
html.theme-dark .lp-header { filter:invert(1) hue-rotate(180deg); backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
  background:linear-gradient(90deg, rgba(27, 8, 10, .82), rgba(27, 8, 10, .45) 55%, rgba(27, 8, 10, .3)) !important; }
html.theme-dark .lp-header img { filter:none; }
html.theme-dark .lp-header * { backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }

/* Home page header fixed at the top. Over the hero it keeps its see-through dark wine look;
   after scrolling it turns solid dark wine in the same tone (light and dark mode alike). */
.lp-header { position:fixed !important; transition:background .25s, box-shadow .25s; }
.lp-header.is-scrolled,
html.theme-dark .lp-header.is-scrolled { background:linear-gradient(90deg, #1c080b, #2a0d13 55%, #33101a) !important; box-shadow:0 8px 24px rgba(20, 4, 8, .28); }

/* Sign-in / register panel: a thin gold scroll bar inside the rounded edge, kept clear of the
   curved corners, instead of the grey browser bar running outside the frame. */
.lp-drawer { scrollbar-width:thin; scrollbar-color:rgba(184, 134, 46, .55) transparent; }
.lp-drawer::-webkit-scrollbar { width:10px; }
.lp-drawer::-webkit-scrollbar-track { background:transparent; margin:34px 0; }
.lp-drawer::-webkit-scrollbar-thumb { border:3px solid transparent; border-radius:999px; background:rgba(184, 134, 46, .5) padding-box; }
.lp-drawer::-webkit-scrollbar-thumb:hover { background:rgba(184, 134, 46, .75) padding-box; }

/* Home page header polish: a fine gold line along the bottom, a gold underline on menu hover,
   and a slightly slimmer bar once scrolled. */
.lp-header::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; pointer-events:none;
  background:linear-gradient(90deg, transparent, rgba(240, 196, 106, .55) 20%, rgba(240, 196, 106, .55) 80%, transparent); opacity:0; transition:opacity .25s; }
.lp-header.is-scrolled::after { opacity:1; }
.lp-header.is-scrolled { min-height:70px !important; padding-top:10px !important; padding-bottom:10px !important; border-bottom-color:transparent !important; }
.lp-header .lp-nav button { position:relative; }
.lp-header .lp-nav button::after { content:""; position:absolute; left:12px; right:12px; bottom:4px; height:2px; border-radius:2px; background:#f0c46a; transform:scaleX(0); transition:transform .2s; }
.lp-header .lp-nav button:hover { background:transparent !important; color:#f6dca2; }
.lp-header .lp-nav button:hover::after { transform:scaleX(1); }

/* Sign-in / register panel: the language switch sits on the title line, saving a row. */
.lp-register-title-row { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.lp-register-title-row h2 { margin:0; }
.lp-register-title-row .nms-language-menu { flex:none; margin:0; }

/* Home page header: the Display (Automatic / Light / Dark) button between language and Sign in,
   in the same glass style as the language switch. */
.lp-header .theme-toggle.is-landing { height:38px; border:1px solid rgba(255,255,255,.35); background:rgba(255,255,255,.08); color:#fff; }
.lp-header .theme-toggle.is-landing svg { color:#f0c46a; }
.lp-header .theme-toggle.is-landing:hover { background:rgba(255,255,255,.14); border-color:rgba(240,215,159,.7); }
@media (max-width:1100px) { .lp-header .theme-toggle.is-landing span { display:none; } .lp-header .theme-toggle.is-landing { width:38px; padding:0; justify-content:center; } }

/* Register panel: title and language switch on one line in every language; a long title (Tamil,
   Malayalam…) wraps inside its own space instead of pushing the switch to a new line. */
.lp-register-title-row { flex-wrap:nowrap !important; align-items:flex-start; }
.lp-register-title-row h2 { flex:1 1 auto; min-width:0; }
.lp-register-title-row .nms-language-menu { margin-top:4px !important; }

/* "Creating this profile for" options: compact, evenly spaced chips that size to their words
   (three per row) instead of wide stretched pills; Bride / Groom tiles without the caption. */
.lp-drawer .lp-chip-rows { display:flex; flex-direction:row !important; flex-wrap:wrap; justify-content:center; gap:8px 8px !important; }
.lp-drawer .lp-chip-row { display:contents; }
.lp-drawer .lp-chip-row .lp-chip { flex:0 0 auto; }
.lp-drawer .lp-chip span { height:34px; padding:0 16px; font-size:13.5px; }
.lp-drawer .lp-segment span { min-height:0; padding:10px 14px; grid-template-rows:auto; }
.lp-drawer .lp-segment span b { align-self:center; }
.lp-drawer .lp-register { gap:18px; }

/* "Looking for": just a small round stamp portrait with its label, no box. The chosen one gets a
   wine ring and a bold wine label. */
.lp-drawer .lp-segment.is-stamps { display:flex; justify-content:center; gap:36px; }
.lp-drawer .lp-segment.is-stamps label { cursor:pointer; }
.lp-drawer .lp-segment.is-stamps span { display:flex !important; flex-direction:column; align-items:center; gap:8px; padding:0 !important; border:0 !important; background:none !important; box-shadow:none !important; min-height:0 !important; }
.lp-drawer .lp-segment.is-stamps .lp-stamp { width:64px; height:64px; border-radius:50%; display:block; box-shadow:0 0 0 2px #fff, 0 0 0 3px #e3d6c4; transition:box-shadow .15s, transform .15s; }
.lp-drawer .lp-segment.is-stamps span:hover .lp-stamp { transform:translateY(-2px); box-shadow:0 0 0 2px #fff, 0 0 0 3px #d5a649; }
.lp-drawer .lp-segment.is-stamps b { font-size:14.5px; font-weight:600; color:var(--lp-ink); }
.lp-drawer .lp-segment.is-stamps input:checked + span .lp-stamp { box-shadow:0 0 0 2px #fff, 0 0 0 5px #4b1020; }
.lp-drawer .lp-segment.is-stamps input:checked + span b { color:#4b1020; font-weight:800; }
html.theme-dark .lp-segment.is-stamps input:checked + span { filter:none !important; }

/* Register / sign-in panel: gaps about 5% tighter, and the "Already registered? Sign in" /
   "New to Naachiyaar? Create your profile" line right under its Continue button. */
.lp-drawer .lp-register { gap:17px !important; }
.lp-drawer .lp-field { gap:9.5px !important; }
.lp-drawer .lp-field > span, .lp-drawer .lp-field legend { margin-bottom:3.8px !important; }
.lp-drawer .lp-register-foot.is-under-button { margin:-7px 0 2px; }

/* Under the sign-in link: the status line takes no room until it has a message, and the privacy
   note sits close below (about a quarter of the old gap). */
.lp-drawer .lp-register-msg:empty { display:none; }
.lp-drawer .lp-register-foot.is-under-button + .lp-register-msg:empty + .lp-register-assure,
.lp-drawer .lp-register-foot.is-under-button + .lp-register-msg:empty + .lp-login-assure { margin-top:-5px !important; }

/* Register panel footer: half the gap between the privacy note and the Terms line, and a quarter
   of the space after the Terms line. */
.lp-drawer .lp-register-consent { margin-top:-6px !important; }
.lp-drawer { padding-bottom:7px !important; }
.lp-drawer .lp-register { padding-bottom:0 !important; margin-bottom:0 !important; }

/* Register panel: when "my son / daughter / brother / sister" is chosen, the bride/groom choice is
   not needed; this note shows the matching stamp and what is understood. */
.lp-drawer .lp-gender-note { display:flex; align-items:center; justify-content:center; gap:12px; margin:0; padding:8px 14px; border-radius:999px; background:rgba(213, 166, 73, .1); color:#4b1020; font-size:14px; font-weight:600; }
.lp-drawer .lp-gender-note[hidden] { display:none; }
.lp-drawer .lp-gender-note .lp-stamp { width:40px; height:40px; border-radius:50%; flex:none; box-shadow:0 0 0 2px #fff, 0 0 0 3px #d5a649; }
/* Confirmation note: bigger stamps, own side at the start and the sought side at the end. */
.lp-drawer .lp-gender-note { gap:14px; padding:10px 16px; border-radius:22px; font-size:14.5px; text-align:center; }
.lp-drawer .lp-gender-note .lp-stamp { width:56px; height:56px; }
.lp-drawer .lp-gender-note span { flex:1 1 auto; }

/* The bride/groom portraits carry their own gold ring, so no extra ring is drawn around them;
   the chosen one still gets the wine ring. */
.lp-drawer .lp-segment.is-stamps .lp-stamp,
.lp-drawer .lp-gender-note .lp-stamp { box-shadow:none !important; }
.lp-drawer .lp-segment.is-stamps .lp-stamp { width:72px; height:72px; }
.lp-drawer .lp-segment.is-stamps span:hover .lp-stamp { box-shadow:0 4px 12px rgba(75, 16, 32, .18) !important; }
.lp-drawer .lp-segment.is-stamps input:checked + span .lp-stamp { box-shadow:0 0 0 3px #4b1020 !important; }
/* Confirmation note: bigger stamps; "Creating … profile" on the first line, "Looking for …" below. */
.lp-drawer .lp-gender-note .lp-stamp { width:68px !important; height:68px !important; }
.lp-drawer .lp-gender-note span { display:flex; flex-direction:column; gap:2px; line-height:1.3; }
.lp-drawer .lp-gender-note span b { font-size:14.5px; font-weight:700; color:#4b1020; }
.lp-drawer .lp-gender-note span small { font-size:13px; font-weight:500; color:#8a5a2b; }

/* Home header display mode: a round icon button at the far right, after Register free. The mode
   name is in the tooltip (and read out by screen readers via aria-label). */
.lp-header .theme-toggle.is-landing { width:40px !important; height:40px !important; padding:0 !important; justify-content:center; border-radius:50%; }
.lp-header .theme-toggle.is-landing span { display:none !important; }
.lp-header .theme-toggle.is-landing svg { width:18px; height:18px; }

/* "Creating this profile for": three centred rows (myself / daughter, son, brother, sister /
   relative, friend), chips sized to their words with even gaps. */
.lp-drawer .lp-chip-rows { flex-direction:column !important; align-items:center; gap:8px !important; }
.lp-drawer .lp-chip-row { display:flex !important; flex-wrap:wrap; justify-content:center; gap:8px; width:100%; }

/* Display mode everywhere (home, family portal, staff): a round icon button, always the last item
   on the right. The mode name is in the tooltip. */
.theme-toggle { width:38px; height:38px; padding:0 !important; justify-content:center; border-radius:50% !important; flex:none; order:99; }
.theme-toggle span { display:none !important; }
.theme-toggle svg { width:17px !important; height:17px !important; }
.theme-toggle.is-staff { margin-left:8px; }

/* Review step: the auto-cropped photo must be confirmed before the profile can be submitted. */
.portal-photo-confirm { position:relative; display:flex; flex-direction:column; gap:14px; margin:14px 0; padding:16px 18px 16px 22px; border:1px solid #ecd3a0; border-radius:16px; background:linear-gradient(135deg,#fffaf0 0%,#fdf0d8 100%); color:#5a3a12; font-size:13.5px; box-shadow:0 6px 18px rgba(122,31,51,.08); overflow:hidden; }
.portal-photo-confirm::before { content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background:linear-gradient(180deg,#d09a39,#7a1f33); }
.portal-photo-confirm strong { color:#4b1020; }
.portal-photo-confirm-head { display:flex; align-items:flex-start; gap:12px; }
.portal-photo-confirm-head strong { display:block; font-size:15px; margin-bottom:2px; }
.portal-photo-confirm-head small { display:block; font-size:12.5px; color:#7a5a2e; line-height:1.45; }
.portal-photo-confirm-icon { flex:0 0 36px; width:36px; height:36px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,#7a1f33,#5c1626); color:#f7d58f; box-shadow:0 3px 8px rgba(92,22,38,.25); }
.portal-photo-confirm-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; }
.portal-photo-confirm-yes { align-self:stretch; justify-content:center; }
.portal-photo-confirm-tools { display:flex; flex-direction:column; align-items:center; gap:8px; padding-top:12px; border-top:1px dashed #e3c78f; }
.portal-photo-confirm-tools > span { font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#9a6b1f; }
.portal-photo-confirm-tools .portal-photo-tools { margin:0; }
.portal-photo-confirm-tools .portal-photo-tool { background:#fff; border-color:#e3cfae; box-shadow:0 1px 3px rgba(92,22,38,.06); }
.portal-photo-confirm-tools .portal-photo-tool:hover { border-color:#d09a39; background:#fffaf1; }
.portal-photo-confirm.is-done { flex-direction:row; align-items:center; gap:6px; padding:8px 12px; border-color:#bfe3cc; background:#f1faf4; color:#1d4f2f; font-weight:600; box-shadow:none; }
.portal-photo-confirm.is-done::before { display:none; }
.portal-photo-confirm.is-done svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; }

/* Planet picker — theme tiles (ivory / wine / gold) */
.planet-popover { max-width:440px; padding:0; overflow:hidden; border-radius:18px; background:#fffdf9; }
.planet-popover-header { margin:0; padding:14px 18px; background:linear-gradient(135deg,#7a1f33 0%,#5c1626 100%); border-bottom:2px solid #d09a39; }
.planet-popover-header span { color:#fff8ec; font-size:15px; font-weight:700; letter-spacing:.01em; }
.planet-popover-close { color:#f7d58f; }
.planet-popover-close:hover { background:rgba(255,255,255,.12); color:#fff; }
.planet-pick-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:16px 18px 6px; }
.planet-pick-chip.planet-chip { justify-content:center; gap:6px; min-height:44px; padding:8px 10px; border:1.5px solid #eadcc8; border-radius:12px; background:#fff; color:#5c1626; font-size:13.5px; font-weight:700; opacity:1; transform:none; box-shadow:0 1px 2px rgba(92,22,38,.05); }
.planet-pick-chip.planet-chip:hover { border-color:#d09a39; background:#fffaf1; }
.planet-pick-chip.planet-chip.is-selected { position:relative; border-color:#5c1626; background:linear-gradient(135deg,#7a1f33,#5c1626); color:#fff8ec; transform:none; box-shadow:0 4px 12px rgba(92,22,38,.28); }
.planet-pick-chip.planet-chip.is-selected::after { content:"✓"; position:absolute; top:-7px; right:-7px; width:18px; height:18px; display:grid; place-items:center; border-radius:50%; background:#d09a39; color:#fff; font-size:11px; font-weight:900; box-shadow:0 0 0 2px #fffdf9; }
.planet-pick-chip.planet-chip.planet-lag { grid-column:1 / -1; font-size:14px; border-style:dashed; border-color:#d09a39; background:#fffaf0; color:#8a5a12; }
.planet-pick-chip.planet-chip.planet-lag.is-selected { border-style:solid; background:linear-gradient(135deg,#e2b04f,#c38a2b); border-color:#b67d22; color:#fff; }
.planet-popover-footer { padding:12px 18px 16px; }
.planet-popover-footer .primary-button { width:100%; justify-content:center; }

/* Staff profile page: chart notes sit under the Rasi and Amsa charts. */
.profile-horoscope-chart-meta.is-below-charts { margin-top:16px; }

/* Testing aid: parsing log on the review screen (not shown on the live site). */
.portal-parse-log-btn { height:32px; padding:0 12px; font-size:12.5px; }
.portal-parse-log { max-width:640px; max-height:80vh; overflow:auto; text-align:left; }
.portal-parse-log h4 { margin:14px 0 6px; font-size:13px; color:#4b1020; }
.portal-parse-log-table { width:100%; border-collapse:collapse; font-size:12.5px; }
.portal-parse-log-table th, .portal-parse-log-table td { padding:5px 8px; border-bottom:1px solid #f1ebe2; text-align:left; vertical-align:top; word-break:break-word; }
.portal-parse-log-table th { width:38%; color:#6a5646; font-weight:600; }
.portal-parse-log ul { margin:0; padding-left:18px; font-size:12.5px; word-break:break-word; }
.portal-parse-log ul.is-errors li { color:#9a2f1f; }

/* Get started: a framed window like Review Profile Details (heading bar, body, footer bar). */
.portal-onboard-window { width:min(1120px,100%); margin:8px auto 24px; overflow:hidden; border:1px solid rgba(216,206,196,.95); border-radius:20px; background:#fbf7f3; box-shadow:0 36px 90px -30px rgba(44,7,18,.45); }
.portal-onboard-window-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:18px 22px 16px; background:#fff; border-bottom:1px solid #e9e0d7; }
.portal-onboard-window-head h2 { margin:0; color:#2c0712; font-size:22px; }
.portal-onboard-window-head p { margin:5px 0 0; max-width:720px; color:#8a807a; font-size:13px; line-height:1.5; }
.portal-onboard-window-close { flex:none; display:grid; place-items:center; width:38px; height:38px; border:1px solid #e3d6c6; border-radius:50%; background:#fff; color:#4b1020; }
.portal-onboard-window-close:hover { border-color:#d09a39; background:#fffaf1; }
.portal-onboard-window-close svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.portal-onboard-window-body { display:flex; flex-direction:column; gap:16px; padding:18px 20px 20px; }
.portal-onboard-window-body > section { margin:0; }
.portal-onboard-window-foot { display:flex; align-items:center; gap:10px; padding:14px 22px; background:#fff; border-top:1px solid #e9e0d7; color:#6b5a4e; font-size:13px; }
.portal-onboard-window-foot svg { flex:none; width:16px; height:16px; fill:none; stroke:#7a1f33; stroke-width:2; }
.portal-onboard-window-foot strong { color:#4b1020; }
@media (max-width:600px) {
  .portal-onboard-window { border-radius:14px; }
  .portal-onboard-window-head { padding:14px 16px; }
  .portal-onboard-window-head h2 { font-size:19px; }
  .portal-onboard-window-body { padding:12px; }
}

/* Get started: "AI parsing · Saves time" badge with a twinkling sparkle. */
.portal-onboard-badge.is-ai { display:inline-flex; align-items:center; gap:6px; padding:5px 11px; border:1px solid #e6c47e; border-radius:999px; background:linear-gradient(135deg,#fff7e4,#fbe7bd); color:#7a4e0c; font-size:12px; font-weight:800; letter-spacing:0; text-transform:none; box-shadow:0 2px 8px rgba(208,154,57,.22); }
.portal-onboard-badge.is-ai svg { width:14px; height:14px; color:#c8891d; fill:none; stroke:currentColor; stroke-width:2; animation:portalTwinkle 2.4s ease-in-out infinite; }

/* "AI reads the details": wine panel with a gold scan, cream page and glassy chips. */
.portal-parse-demo { position:relative; overflow:hidden; padding:16px; border:1px solid #5c1626; border-radius:16px; background:radial-gradient(120% 140% at 100% 0%, #8a2a40 0%, #5c1626 55%, #3d0d19 100%); box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px -12px rgba(61,13,25,.6); }
.portal-parse-demo::after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 18% 120%, rgba(208,154,57,.28), transparent 55%); pointer-events:none; }
.portal-parse-page { z-index:1; background:#fffaf1; box-shadow:0 10px 22px rgba(0,0,0,.35); border:1px solid rgba(208,154,57,.55); }
.portal-parse-page > i { background:#ecdcc2; }
.portal-parse-chart b { border-color:#d09a39; }
.portal-parse-scan { background:linear-gradient(180deg, rgba(240,196,106,0), rgba(240,196,106,.45), rgba(240,196,106,0)); border-bottom-color:#f0c46a; box-shadow:0 2px 10px rgba(240,196,106,.6); }
.portal-parse-fields { position:relative; z-index:1; }
.portal-parse-title { color:#f7d58f; }
.portal-parse-title svg { color:#f0c46a; }
.portal-parse-chip { background:rgba(255,248,236,.1); border-color:rgba(240,196,106,.45); color:#fff4e0; backdrop-filter:blur(2px); }
.portal-parse-chip svg { color:#f0c46a; }
.portal-parse-chip em { color:#8fe0b0; }

/* WhatsApp button: brand green with the WhatsApp logo. */
.portal-whatsapp-button { border-color:#1da851 !important; background:linear-gradient(135deg,#25d366,#128c4a) !important; color:#fff !important; box-shadow:0 4px 12px rgba(18,140,74,.3); }
.portal-whatsapp-button:hover { background:linear-gradient(135deg,#2ee073,#0f7a40) !important; }
.portal-whatsapp-button svg { width:18px; height:18px; fill:currentColor; stroke:none; }

/* Get started banner: wine with a gold glow, a lotus watermark and a gold flourish. */
.portal-onboard-window-head { position:relative; overflow:hidden; align-items:center; padding:26px 28px 24px; border-bottom:2px solid #d09a39; background:radial-gradient(90% 160% at 100% 0%, #8a2a40 0%, #5c1626 50%, #3d0d19 100%); }
.portal-onboard-window-head::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 8% 130%, rgba(208,154,57,.35), transparent 50%), repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px); pointer-events:none; }
.portal-onboard-window-lotus { position:absolute; right:70px; top:50%; width:170px; transform:translateY(-50%); opacity:.16; filter:brightness(2.2) sepia(1) saturate(2) hue-rotate(-10deg); pointer-events:none; }
.portal-onboard-window-copy { position:relative; z-index:1; }
.portal-onboard-window-kicker { display:inline-flex; align-items:center; gap:6px; margin-bottom:8px; padding:4px 11px; border:1px solid rgba(240,196,106,.5); border-radius:999px; background:rgba(240,196,106,.12); color:#f7d58f; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.portal-onboard-window-kicker svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; animation:portalTwinkle 2.4s ease-in-out infinite; }
.portal-onboard-window-head h2 { color:#fff8ec; font-family:"Cormorant Garamond", Georgia, serif; font-size:32px; font-weight:700; line-height:1.1; }
.portal-onboard-window-tagline { display:block; margin-top:6px; color:#f0c46a; font-family:"Cormorant Garamond", Georgia, serif; font-size:18px; font-style:italic; }
.portal-onboard-window-head p { margin-top:4px; color:rgba(255,244,224,.82); font-size:13.5px; }
.portal-onboard-window-flourish { display:flex; align-items:center; gap:8px; margin-top:12px; width:180px; color:#d09a39; font-size:11px; }
.portal-onboard-window-flourish i { flex:1; height:1px; background:linear-gradient(90deg, transparent, #d09a39); }
.portal-onboard-window-flourish i:last-child { background:linear-gradient(90deg, #d09a39, transparent); }
.portal-onboard-window-close { position:relative; z-index:1; align-self:flex-start; border-color:rgba(240,196,106,.5); background:rgba(255,255,255,.08); color:#f7d58f; }
.portal-onboard-window-close:hover { background:rgba(255,255,255,.16); border-color:#f0c46a; color:#fff; }
@media (max-width:600px) {
  .portal-onboard-window-head { padding:18px 16px; }
  .portal-onboard-window-head h2 { font-size:25px; }
  .portal-onboard-window-lotus { width:110px; right:20px; }
}

/* Banner lotus: crisp gold SVG with a soft glow, gently breathing. Close: solid gold ring. */
.portal-onboard-window-lotus { right:78px; width:190px; height:auto; opacity:.95; filter:drop-shadow(0 6px 14px rgba(0,0,0,.35)); animation:obLotusBreathe 6s ease-in-out infinite; }
@keyframes obLotusBreathe { 0%,100% { transform:translateY(-50%) scale(1); } 50% { transform:translateY(-52%) scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .portal-onboard-window-lotus { animation:none; } }
.portal-onboard-window-close { width:40px; height:40px; border:1.5px solid #e2b04f; background:linear-gradient(135deg, rgba(255,231,168,.18), rgba(195,138,43,.12)); color:#ffe7a8; box-shadow:0 0 0 4px rgba(226,176,79,.12), 0 4px 12px rgba(0,0,0,.3); transition:transform .15s, background .15s; }
.portal-onboard-window-close:hover { transform:rotate(90deg); background:linear-gradient(135deg,#e2b04f,#c38a2b); border-color:#ffe7a8; color:#3d0d19; }
.portal-onboard-window-close svg { width:15px; height:15px; stroke-width:2.6; }
@media (max-width:760px) { .portal-onboard-window-lotus { width:120px; right:16px; opacity:.45; } }

/* Upload page: the AI progress panel sits on the right; stages open top to bottom. */
.portal-upload-workspace.has-journey { grid-template-columns:minmax(0,1fr) 340px; align-items:start; }
.portal-upload-journey { position:sticky; top:90px; overflow:hidden; border:1px solid #ecdcc4; border-radius:18px; background:#fffdf9; box-shadow:0 14px 34px -18px rgba(61,13,25,.35); }
.portal-upload-journey > header { display:flex; align-items:center; gap:12px; padding:16px 18px; background:radial-gradient(120% 160% at 100% 0%, #8a2a40, #5c1626 55%, #3d0d19); border-bottom:2px solid #d09a39; }
.portal-upload-journey > header strong { display:block; color:#fff8ec; font-size:15px; }
.portal-upload-journey > header small { display:block; margin-top:2px; color:#f0c46a; font-size:12px; }
.portal-upload-journey-icon { flex:none; display:grid; place-items:center; width:36px; height:36px; border:1px solid rgba(240,196,106,.55); border-radius:50%; background:rgba(240,196,106,.14); color:#ffe7a8; }
.portal-upload-journey-icon svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2; animation:portalTwinkle 2.4s ease-in-out infinite; }
.portal-upload-journey ol { position:relative; margin:0; padding:14px 16px 10px; list-style:none; }
.portal-upload-journey ol::before { content:""; position:absolute; left:35px; top:30px; bottom:30px; width:2px; background:#efe4d4; }
.portal-upload-journey li { position:relative; display:flex; gap:12px; padding:9px 8px; border-radius:12px; opacity:.55; transition:opacity .35s, background .35s, transform .35s; }
.portal-upload-journey li strong { display:block; color:#2c0712; font-size:13.5px; }
.portal-upload-journey li small { display:block; margin-top:2px; color:#7a6a5e; font-size:12px; line-height:1.4; }
.portal-upload-journey-num { position:relative; z-index:1; flex:none; display:grid; place-items:center; width:38px; height:30px; border:1px solid #ecdcc4; border-radius:9px; background:#f8efe2; color:#8a5a12; font-size:12px; font-weight:800; transition:all .35s; }
.portal-upload-journey-num i { display:none; font-style:normal; }
.portal-upload-journey[data-state="idle"] li { opacity:1; }
.portal-upload-journey li.is-active { opacity:1; background:linear-gradient(90deg,#fff6e3,#fffdf9); transform:translateX(3px); }
.portal-upload-journey li.is-active .portal-upload-journey-num { border-color:#d09a39; background:#fff; color:#5c1626; box-shadow:0 0 0 4px rgba(208,154,57,.18); animation:portalJourneyPulse 1.2s ease-in-out infinite; }
.portal-upload-journey li.is-done { opacity:1; }
.portal-upload-journey li.is-done .portal-upload-journey-num { border-color:#b67d22; background:linear-gradient(135deg,#e2b04f,#c38a2b); color:#fff; animation:portalJourneyPop .4s ease-out; }
.portal-upload-journey li.is-done .portal-upload-journey-num b { display:none; }
.portal-upload-journey li.is-done .portal-upload-journey-num i { display:block; font-weight:900; }
@keyframes portalJourneyPulse { 50% { box-shadow:0 0 0 7px rgba(208,154,57,.08); } }
@keyframes portalJourneyPop { 0% { transform:scale(.7); } 70% { transform:scale(1.12); } 100% { transform:scale(1); } }
.portal-upload-journey-ready { display:none; align-items:center; gap:10px; margin:0 16px 16px; padding:12px 14px; border:1px solid #bfe3cc; border-radius:12px; background:#f1faf4; color:#1d4f2f; font-size:12.5px; animation:portalJourneyPop .45s ease-out; }
.portal-upload-journey-ready strong { display:block; font-size:14px; }
.portal-upload-journey-ready svg { flex:none; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; }
.portal-upload-journey[data-state="ready"] .portal-upload-journey-ready { display:flex; }
@media (prefers-reduced-motion: reduce) { .portal-upload-journey li, .portal-upload-journey-num, .portal-upload-journey-ready { animation:none !important; transition:none; } }
@media (max-width:900px) { .portal-upload-workspace.has-journey { grid-template-columns:1fr; } .portal-upload-journey { position:static; } }

/* Upload AI panel: round stage badges; the bottom status box only appears for errors. */
.portal-upload-journey-num { width:32px; height:32px; border-radius:50%; font-size:11.5px; }
.portal-upload-journey ol::before { left:39px; }
.portal-upload-workspace.has-journey .portal-extraction-status:not(.is-error) { display:none !important; }

/* After parsing, one message only: the file card says it is ready and carries "Review details".
   The separate success box and the "Parsed profile is ready" strip are not shown. */
.portal-selected-file-review { display:none !important; }
.portal-selected-file[data-state="success"] .portal-selected-file-review { display:inline-flex !important; align-items:center; gap:6px; height:36px; padding:0 16px; }
.portal-selected-file-review svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; }
.portal-selected-file[data-state="success"] .portal-upload-progress { display:none; }
.portal-selected-file-actions { align-items:center; }
.portal-extraction-status.is-complete { display:none !important; }
.portal-biodata-page .portal-review-launcher { display:none !important; }

/* Congratulations: connected steps. Done → green line, then a moving gold dashed path with arrows. */
.portal-welcome-steps { position:relative; gap:0; margin:16px 0 12px; }
.portal-welcome-steps li { position:relative; padding:0 6px; }
.portal-welcome-steps li > span { position:relative; z-index:1; width:36px; height:36px; border:2px solid #e8dcd2; background:#fff; color:#8a7a70; font-size:14px; box-shadow:0 2px 6px rgba(61,13,25,.08); }
.portal-welcome-steps li.is-done > span { border-color:#1f7a4d; background:linear-gradient(135deg,#2f9a64,#1f7a4d); color:#fff; box-shadow:0 0 0 4px rgba(31,122,77,.15); }
.portal-welcome-steps li.is-next > span { border-color:#d09a39; color:#7a1f33; background:#fffaf0; animation:welcomeNextPulse 1.6s ease-in-out infinite; }
@keyframes welcomeNextPulse { 0%,100% { box-shadow:0 0 0 0 rgba(208,154,57,.45); } 50% { box-shadow:0 0 0 8px rgba(208,154,57,0); } }
.portal-welcome-steps li > em { position:absolute; top:-14px; left:50%; transform:translateX(-50%); padding:1px 8px; border-radius:999px; background:#d09a39; color:#fff; font-size:9.5px; font-style:normal; font-weight:800; letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; z-index:2; }
/* connector from this step's circle to the next one */
.portal-welcome-steps li:not(:last-child)::after { content:""; position:absolute; top:17px; left:calc(50% + 24px); right:calc(-50% + 24px); height:2px; background:repeating-linear-gradient(90deg,#d09a39 0 7px,transparent 7px 12px); background-size:24px 2px; animation:welcomeFlow 1s linear infinite; }
.portal-welcome-steps li:not(:last-child)::before { content:""; position:absolute; top:13px; right:calc(-50% + 20px); width:8px; height:8px; border-top:2px solid #d09a39; border-right:2px solid #d09a39; transform:rotate(45deg); z-index:1; }
.portal-welcome-steps li.is-done::after { background:linear-gradient(90deg,#1f7a4d,#d09a39); animation:none; }
.portal-welcome-steps li.is-done::before { border-color:#d09a39; }
@keyframes welcomeFlow { to { background-position:24px 0; } }
.portal-welcome-steps li.is-next strong { color:#7a1f33; }
@media (prefers-reduced-motion: reduce) { .portal-welcome-steps li::after, .portal-welcome-steps li > span { animation:none !important; } }

/* Photo cropper: self-explaining controls. A face oval, a "drag to move" hint on the photo, and a
   zoom bar with − / + magnifiers, a filled slider, a live percentage and Reset. */
.photo-cropper-guide::after { content:""; position:absolute; left:22%; right:22%; top:12%; height:56%; border:2px dashed rgba(255,231,168,.8); border-radius:50%; box-shadow:0 0 0 999px rgba(20,4,8,.18); }
.photo-cropper-drag-hint { position:absolute; left:50%; bottom:16px; transform:translateX(-50%); display:inline-flex; align-items:center; gap:7px; padding:7px 13px; border-radius:999px; background:rgba(20,4,8,.72); color:#fff4e0; font-size:12.5px; font-weight:700; white-space:nowrap; pointer-events:none; transition:opacity .4s; animation:cropHintNudge 1.8s ease-in-out infinite; }
.photo-cropper-drag-hint svg { width:16px; height:16px; fill:none; stroke:#f0c46a; stroke-width:2; stroke-linecap:round; }
.photo-cropper-frame.is-touched .photo-cropper-drag-hint { opacity:0; animation:none; }
@keyframes cropHintNudge { 0%,100% { transform:translateX(-50%); } 30% { transform:translateX(calc(-50% - 6px)); } 60% { transform:translateX(calc(-50% + 6px)); } }
.photo-cropper-zoom { display:block; margin:14px 0 6px; padding:12px 14px; border:1px solid #ecdcc4; border-radius:14px; background:#fffaf1; transition:box-shadow .3s, border-color .3s; }
.photo-cropper-zoom.is-intro { border-color:#d09a39; animation:cropZoomGlow 1.4s ease-in-out 3; }
@keyframes cropZoomGlow { 50% { box-shadow:0 0 0 5px rgba(208,154,57,.22); } }
.photo-cropper-zoom-label { display:flex; align-items:baseline; gap:8px; margin-bottom:8px; }
.photo-cropper-zoom-label strong { color:#4b1020; font-size:13.5px; }
.photo-cropper-zoom-label span { flex:1; color:#8a7a70; font-size:12px; font-weight:500; }
.photo-cropper-zoom-label b { min-width:48px; padding:2px 8px; border-radius:999px; background:#5c1626; color:#fff8ec; font-size:12px; text-align:center; }
.photo-cropper-zoom-row { display:flex; align-items:center; gap:10px; }
.photo-cropper-zoom-btn { flex:none; display:grid; place-items:center; width:38px; height:38px; border:1px solid #e3cfae; border-radius:50%; background:#fff; color:#4b1020; cursor:pointer; transition:all .15s; }
.photo-cropper-zoom-btn:hover { border-color:#d09a39; background:#5c1626; color:#fff; }
.photo-cropper-zoom-btn svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.photo-cropper-zoom input[type=range] { flex:1; height:8px; border-radius:999px; -webkit-appearance:none; appearance:none; background:linear-gradient(90deg,#d09a39 0 var(--fill,0%), #eadfce var(--fill,0%) 100%); cursor:pointer; }
.photo-cropper-zoom input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:22px; height:22px; border:3px solid #fff; border-radius:50%; background:#5c1626; box-shadow:0 2px 6px rgba(61,13,25,.4); }
.photo-cropper-zoom input[type=range]::-moz-range-thumb { width:18px; height:18px; border:3px solid #fff; border-radius:50%; background:#5c1626; box-shadow:0 2px 6px rgba(61,13,25,.4); }
.photo-cropper-zoom-reset { flex:none; height:32px; padding:0 12px; border:1px solid #e3cfae; border-radius:999px; background:#fff; color:#6b5a4e; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.photo-cropper-zoom-reset:hover { border-color:#d09a39; color:#4b1020; }
@media (prefers-reduced-motion: reduce) { .photo-cropper-drag-hint, .photo-cropper-zoom.is-intro { animation:none; } }

/* Siblings: a full form per sibling in edit mode; a tidy summary when viewing. */
.portal-sibling-card { align-items:flex-start; }
.portal-sibling-text { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; }
.portal-sibling-text b { padding:2px 9px; border-radius:999px; background:#5c1626; color:#fff8ec; font-size:11px; font-weight:800; letter-spacing:.02em; }
.portal-sibling-text strong { color:#2c0712; font-size:14px; }
.portal-sibling-chips { display:flex; flex-wrap:wrap; gap:6px; flex-basis:100%; }
.portal-sibling-chips em { padding:2px 9px; border:1px solid #ecdcc4; border-radius:999px; background:#fffaf1; color:#6b5a4e; font-size:12px; font-style:normal; font-weight:600; }
.portal-sibling-form.portal-sibling-edit { padding:0; border:0; background:none; min-height:0; }
.portal-review-section.is-editing .portal-sibling-form.portal-sibling-edit { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 12px; }
.portal-sibling-field { display:flex; flex-direction:column; gap:4px; min-width:0; }
.portal-sibling-field > span { color:#87243b; font-size:10.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.portal-sibling-field input, .portal-sibling-field select { height:36px; padding:0 10px; border:1px solid #d8cec4; border-radius:8px; background:#fff; color:#27211f; font:inherit; font-size:13px; }
.portal-sibling-field input:focus, .portal-sibling-field select:focus { border-color:#87243b; box-shadow:0 0 0 3px rgba(104,24,43,.08); outline:none; }
.portal-sibling-card.is-new { border-color:#d09a39; background:#fffaf0; }
@media (max-width:760px) { .portal-review-section.is-editing .portal-sibling-form.portal-sibling-edit { grid-template-columns:1fr 1fr; } }
@media (max-width:480px) { .portal-review-section.is-editing .portal-sibling-form.portal-sibling-edit { grid-template-columns:1fr; } }

/* Siblings view: six labelled boxes per sibling, matching the other review fields. */
.portal-sibling-details { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 10px; margin:0; }
.portal-sibling-details > div { min-width:0; padding:8px 12px; border:1px solid #ece2d6; border-left:3px solid #d09a39; border-radius:8px; background:#fff; }
.portal-sibling-details > div.is-empty { border-left-color:#e5dbd0; }
.portal-sibling-details dt { color:#87243b; font-size:10.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.portal-sibling-details dd { margin:3px 0 0; color:#2c0712; font-size:13.5px; font-weight:700; overflow-wrap:anywhere; }
.portal-sibling-details > div.is-empty dd { color:#9a8d84; font-weight:600; }
.portal-review-section.is-editing .portal-sibling-details { display:none !important; }
@media (max-width:760px) { .portal-sibling-details { grid-template-columns:1fr 1fr; } }

/* Siblings: one row per sibling — Name, Sibling, Elder/Younger, Marital, Education, Location, Contact. */
.portal-sibling-details,
.portal-review-section.is-editing .portal-sibling-form.portal-sibling-edit { grid-template-columns:1.5fr .85fr .95fr 1fr 1.4fr 1fr 1.15fr !important; gap:8px !important; }
.portal-sibling-details > div { padding:7px 10px; }
.portal-sibling-details dt, .portal-sibling-field > span { font-size:9.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.portal-sibling-details dd { font-size:13px; }
.portal-sibling-field input, .portal-sibling-field select { padding:0 8px; font-size:12.5px; }
@media (max-width:1100px) {
  .portal-sibling-details,
  .portal-review-section.is-editing .portal-sibling-form.portal-sibling-edit { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
}
@media (max-width:640px) {
  .portal-sibling-details,
  .portal-review-section.is-editing .portal-sibling-form.portal-sibling-edit { grid-template-columns:1fr 1fr !important; }
}

/* Siblings edit row: number badge and remove button line up with the input boxes. */
.portal-review-section.is-editing .portal-sibling-card { align-items:flex-end; }
.portal-review-section.is-editing .portal-sibling-index { margin-bottom:6px; }
.portal-review-section.is-editing .portal-sibling-remove { margin-bottom:4px; }
.portal-sibling-field input, .portal-sibling-field select { width:100%; box-sizing:border-box; }
.portal-sibling-card .portal-sibling-index { flex:none; }

/* Crop from biodata: zoom demo caption and the slider thumb highlighted while it plays. */
.photo-cropper-demo-caption { position:absolute; left:50%; top:16px; transform:translateX(-50%); display:none; align-items:center; gap:7px; padding:7px 14px; border-radius:999px; background:linear-gradient(135deg,#e2b04f,#c38a2b); color:#3d0d19; font-size:13px; font-weight:800; box-shadow:0 4px 14px rgba(0,0,0,.35); pointer-events:none; z-index:3; }
.photo-cropper-demo-caption svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; }
.photo-cropper-frame.is-demo .photo-cropper-demo-caption { display:inline-flex; }
.photo-cropper-frame.is-demo.is-zoom-out .photo-cropper-demo-caption svg path { d:path("m20 20-4-4M8 11h6"); }
.photo-cropper-frame.is-demo .photo-cropper-drag-hint { opacity:0; }
.photo-cropper-frame.is-demo ~ .photo-cropper-zoom input[type=range]::-webkit-slider-thumb { box-shadow:0 0 0 6px rgba(208,154,57,.35), 0 2px 6px rgba(61,13,25,.4); }


/* ── Candidate Photos ─────────────────────────────────────────────────────────────────────────
   Three columns sharing one height (--ph): the slot strip | the main photo | the options panel.
   Slots = (height − 2 gaps) / 3 each, all portraits at 4:5, so every edge lines up. */
.portal-photo-manager.is-side-by-side {
  --ph: 372px; --gap: 16px; --slot-h: calc((var(--ph) - 2 * 12px) / 3);
  display:grid; grid-template-columns:calc(var(--slot-h) * .8) calc(var(--ph) * .8) minmax(0,1fr);
  gap:var(--gap); align-items:start; width:100%; max-width:none; margin:0;
}
.portal-photo-manager.is-side-by-side .portal-photo-strip { display:flex; flex-direction:column; gap:12px; height:var(--ph); }
.portal-photo-manager.is-side-by-side .portal-photo-slot { width:100%; height:var(--slot-h); aspect-ratio:auto; min-height:0; margin:0; border-radius:12px; overflow:hidden; box-shadow:0 2px 8px rgba(61,13,25,.08); }
.portal-photo-manager.is-side-by-side .portal-photo-slot .portal-photo-thumb,
.portal-photo-manager.is-side-by-side .portal-photo-slot .portal-photo-thumb img { width:100%; height:100%; object-fit:cover; border-radius:12px; }
.portal-photo-manager.is-side-by-side .portal-photo-slot.is-active { outline:2.5px solid #d09a39; outline-offset:2px; }
.portal-photo-manager.is-side-by-side .portal-photo-slot.is-empty { border:1.5px dashed #dccbb5; background:#fffdf9; box-shadow:none; gap:4px; }
.portal-photo-manager.is-side-by-side .portal-photo-slot.is-empty:hover { border-color:#d09a39; background:#fffaf0; }
.portal-photo-manager.is-side-by-side .portal-photo-slot.is-empty svg { width:18px; height:18px; }
.portal-photo-manager.is-side-by-side .portal-photo-slot.is-empty span { font-size:11px; }
.portal-photo-manager.is-side-by-side .portal-photo-slot-actions { right:6px; bottom:6px; gap:4px; }
.portal-photo-manager.is-side-by-side .portal-photo-slot-actions button { width:24px; height:24px; }
.portal-photo-manager.is-side-by-side .portal-photo-slot-actions svg { width:12px; height:12px; }

.portal-photo-manager.is-side-by-side .portal-photo-main { position:static; }
.portal-photo-manager.is-side-by-side .portal-photo-stage { width:100%; height:var(--ph); aspect-ratio:auto; margin:0; border:1px solid #e3d4c4; border-radius:16px; background:#f6efe6; box-shadow:0 12px 28px -14px rgba(61,13,25,.4); }
.portal-photo-manager.is-side-by-side .portal-photo-stage > img { width:100%; height:100%; object-fit:cover; }

.portal-photo-manager.is-side-by-side .portal-photo-side { display:flex; flex-direction:column; gap:10px; height:var(--ph); min-width:0; padding:0; }
.portal-photo-manager.is-side-by-side .portal-photo-side > .portal-photo-confirm { flex:1 1 auto; margin:0; padding:20px 22px 18px 26px; gap:14px; justify-content:space-between; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-head strong { font-size:15px; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-head small { font-size:12.5px; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-icon { flex-basis:34px; width:34px; height:34px; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-yes { height:42px; font-size:13.5px; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-tools { gap:8px; padding-top:14px; }
.portal-photo-manager.is-side-by-side .portal-photo-tools { display:grid; grid-template-columns:1fr; gap:8px; width:100%; margin:0; }
.portal-photo-manager.is-side-by-side .portal-photo-tool { height:38px; justify-content:center; font-size:13px; }
.portal-photo-manager.is-side-by-side .portal-photo-side > .portal-photo-confirm.is-done { flex:0 0 auto; }
.portal-photo-manager.is-side-by-side .portal-photo-help { margin:0; color:#8a7a70; font-size:11.5px; line-height:1.45; text-align:left; }

@media (max-width:980px) { .portal-photo-manager.is-side-by-side { --ph:320px; } }
@media (max-width:820px) {
  .portal-photo-manager.is-side-by-side { grid-template-columns:1fr; }
  .portal-photo-manager.is-side-by-side .portal-photo-strip { order:2; flex-direction:row; height:auto; }
  .portal-photo-manager.is-side-by-side .portal-photo-slot { width:86px; height:108px; }
  .portal-photo-manager.is-side-by-side .portal-photo-main { order:1; }
  .portal-photo-manager.is-side-by-side .portal-photo-stage { width:min(320px,100%); height:auto; aspect-ratio:4 / 5; margin:0 auto; }
  .portal-photo-manager.is-side-by-side .portal-photo-side { order:3; height:auto; }
}

/* Options panel at half its previous width; the three columns stay together on the left. */
.portal-photo-manager.is-side-by-side { grid-template-columns:calc(var(--slot-h) * .8) calc(var(--ph) * .8) minmax(0,320px); justify-content:start; }
.portal-photo-manager.is-side-by-side .portal-photo-side > .portal-photo-confirm { padding:16px 16px 14px 20px; gap:10px; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-head { gap:10px; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-yes { height:38px; font-size:13px; }
.portal-photo-manager.is-side-by-side .portal-photo-tool { height:34px; font-size:12.5px; }
@media (max-width:820px) { .portal-photo-manager.is-side-by-side { grid-template-columns:1fr; } }

/* Options panel: 30% smaller (320 → 224 px) and pinned to the right edge of the card. */
.portal-photo-manager.is-side-by-side { grid-template-columns:calc(var(--slot-h) * .8) calc(var(--ph) * .8) minmax(0,1fr); justify-content:stretch; }
.portal-photo-manager.is-side-by-side .portal-photo-side { width:224px; justify-self:end; gap:8px; }
.portal-photo-manager.is-side-by-side .portal-photo-side > .portal-photo-confirm { padding:12px 12px 10px 15px; gap:8px; border-radius:12px; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm::before { width:4px; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-head { gap:8px; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-head strong { font-size:12.5px; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-head small { font-size:10.5px; line-height:1.4; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-icon { flex-basis:24px; width:24px; height:24px; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-icon svg { width:13px; height:13px; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-yes { height:30px; padding:0 10px; font-size:11.5px; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-tools { gap:6px; padding-top:9px; }
.portal-photo-manager.is-side-by-side .portal-photo-confirm-tools > span { font-size:9px; }
.portal-photo-manager.is-side-by-side .portal-photo-tools { gap:6px; }
.portal-photo-manager.is-side-by-side .portal-photo-tool { height:27px; gap:6px; padding:0 10px; font-size:11px; }
.portal-photo-manager.is-side-by-side .portal-photo-tool svg { width:12px; height:12px; }
.portal-photo-manager.is-side-by-side .portal-photo-help { font-size:10px; }
@media (max-width:820px) {
  .portal-photo-manager.is-side-by-side { grid-template-columns:1fr; }
  .portal-photo-manager.is-side-by-side .portal-photo-side { width:auto; justify-self:stretch; }
}

/* Main photo centred between the slot strip (left) and the options panel (right edge). */
.portal-photo-manager.is-side-by-side { grid-template-columns:calc(var(--slot-h) * .8) minmax(0,1fr) 224px; }
.portal-photo-manager.is-side-by-side .portal-photo-main { justify-self:center; width:calc(var(--ph) * .8); }
.portal-photo-manager.is-side-by-side .portal-photo-side { justify-self:end; }
@media (max-width:820px) {
  .portal-photo-manager.is-side-by-side { grid-template-columns:1fr; }
  .portal-photo-manager.is-side-by-side .portal-photo-main { width:100%; }
}

/* Slot strip moved 30% closer to the main photo. The free space is split 15% | 35% | 50% around
   the strip and photo, which leaves the photo exactly where it was (strip + half the free space). */
.portal-photo-manager.is-side-by-side { grid-template-columns:minmax(0,.15fr) calc(var(--slot-h) * .8) minmax(0,.35fr) calc(var(--ph) * .8) minmax(0,.5fr) 224px; column-gap:0; }
.portal-photo-manager.is-side-by-side .portal-photo-strip { grid-column:2; }
.portal-photo-manager.is-side-by-side .portal-photo-main { grid-column:4; justify-self:stretch; width:auto; }
.portal-photo-manager.is-side-by-side .portal-photo-side { grid-column:6; }
@media (max-width:820px) {
  .portal-photo-manager.is-side-by-side { grid-template-columns:1fr; row-gap:16px; }
  .portal-photo-manager.is-side-by-side .portal-photo-strip,
  .portal-photo-manager.is-side-by-side .portal-photo-main,
  .portal-photo-manager.is-side-by-side .portal-photo-side { grid-column:1; }
}

/* File card: "Review details" is a solid wine pill; Replace / Remove stay as plain links. */
.portal-selected-file[data-state="success"] .portal-selected-file-actions .portal-selected-file-review { height:34px; padding:0 16px; border:1px solid #5c1626; border-radius:999px; background:linear-gradient(135deg,#7a1f33,#5c1626); color:#fff8ec; font-size:12.5px; font-weight:800; box-shadow:0 3px 10px rgba(92,22,38,.25); }
.portal-selected-file[data-state="success"] .portal-selected-file-actions .portal-selected-file-review:hover { background:linear-gradient(135deg,#8a2a40,#6b1a2d); }
.portal-selected-file[data-state="success"] .portal-selected-file-actions .portal-selected-file-review:focus-visible { outline:2px solid #d09a39; outline-offset:2px; }
.portal-selected-file[data-state="success"] .portal-selected-file-actions .portal-selected-file-review svg { color:#f7d58f; }
.portal-selected-file-actions { gap:6px; }

/* Options: a gap and dashed line between "Upload photo" and the two crop buttons. The whole
   section is a little taller to make room (uses the empty space below it). */
.portal-photo-manager.is-side-by-side { --ph:420px; }
.portal-photo-tools-divider { display:block; height:0; margin:4px 2px; border-top:1px dashed #e3c78f; }
.portal-photo-tools .portal-photo-tools-divider { display:none; }
.portal-photo-manager.is-side-by-side .portal-photo-tools-divider { display:block; width:100%; }
@media (max-width:980px) { .portal-photo-manager.is-side-by-side { --ph:350px; } }

/* Photo options panel when no confirmation is needed: same look as the confirm panel. */
.portal-photo-manager.is-side-by-side .portal-photo-tools .portal-photo-tools-divider { display:block; width:100%; }
.portal-photo-options { position:relative; flex:1 1 auto; display:flex; flex-direction:column; gap:10px; padding:12px 12px 10px 15px; border:1px solid #ecd3a0; border-radius:12px; background:linear-gradient(135deg,#fffaf0 0%,#fdf0d8 100%); box-shadow:0 6px 18px rgba(122,31,51,.08); overflow:hidden; }
.portal-photo-options::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:linear-gradient(180deg,#d09a39,#7a1f33); }
.portal-photo-options-status { display:flex; align-items:center; gap:8px; }
.portal-photo-options-status > svg { flex:none; width:24px; height:24px; padding:5px; border-radius:50%; background:linear-gradient(135deg,#2f9a64,#1f7a4d); color:#fff; fill:none; stroke:currentColor; stroke-width:2.2; box-sizing:border-box; }
.portal-photo-options-status.is-empty > svg { background:linear-gradient(135deg,#7a1f33,#5c1626); color:#f7d58f; }
.portal-photo-options-status strong { display:block; color:#4b1020; font-size:12.5px; }
.portal-photo-options-status small { display:block; color:#7a5a2e; font-size:10.5px; }
.portal-photo-options .portal-photo-confirm-tools { padding-top:9px; border-top:1px dashed #e3c78f; }
.portal-photo-options .portal-photo-help { margin-top:auto; padding-top:8px; border-top:1px dashed #e3c78f; }
.portal-photo-manager.is-side-by-side .portal-photo-side > .portal-photo-confirm.is-done { display:none; }

/* Photo panel: same layout before and after confirming. Only the bottom slot changes —
   the "Yes" button becomes a round green tick with "Photo confirmed". */
.portal-photo-manager.is-side-by-side .portal-photo-side > .portal-photo-panel { display:flex; flex:1 1 auto; flex-direction:column; justify-content:flex-start; }
.portal-photo-panel .portal-photo-help { margin:0; padding-top:8px; border-top:1px dashed #e3c78f; color:#8a7a70; font-size:10px; line-height:1.4; }
.portal-photo-panel-foot { margin-top:auto; padding-top:10px; border-top:1px dashed #e3c78f; min-height:46px; display:flex; align-items:center; }
.portal-photo-panel-foot .portal-photo-confirm-yes { width:100%; }
.portal-photo-confirm-icon.is-empty { background:linear-gradient(135deg,#d09a39,#a8721c); color:#fff; }
.portal-photo-confirmed { display:flex; align-items:center; gap:9px; width:100%; height:36px; padding:0 4px; animation:photoConfirmedIn .45s ease-out; }
.portal-photo-confirmed-tick { flex:none; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,#34a86d,#1f7a4d); box-shadow:0 0 0 4px rgba(31,122,77,.15), 0 3px 8px rgba(31,122,77,.3); }
.portal-photo-confirmed-tick svg { width:16px; height:16px; fill:none; stroke:#fff; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:24; stroke-dashoffset:0; animation:photoTickDraw .5s ease-out .1s backwards; }
.portal-photo-confirmed strong { display:block; color:#1d5a37; font-size:12.5px; }
.portal-photo-confirmed small { display:block; color:#4f7a60; font-size:10.5px; }
@keyframes photoConfirmedIn { from { opacity:0; transform:scale(.92); } to { opacity:1; transform:none; } }
@keyframes photoTickDraw { from { stroke-dashoffset:24; } }
@media (prefers-reduced-motion: reduce) { .portal-photo-confirmed, .portal-photo-confirmed-tick svg { animation:none; } }

/* Photo confirmed: a soft gold shine sweeps across the photo from bottom-left to top-right. */
.portal-photo-stage.is-glint { position:relative; }
.portal-photo-stage.is-glint::after { content:""; position:absolute; inset:-40%; z-index:3; pointer-events:none;
  background:linear-gradient(45deg, transparent 38%, rgba(255,240,200,.0) 42%, rgba(255,240,200,.55) 49%, rgba(255,255,255,.85) 50%, rgba(255,240,200,.55) 51%, rgba(255,240,200,0) 58%, transparent 62%);
  transform:translate(-55%, 55%); animation:photoGlint 1.5s cubic-bezier(.4,0,.2,1) .25s 2 both; mix-blend-mode:screen; }
.portal-photo-stage.is-glint { animation:photoGlintRing 1.6s ease-out .2s 1; }
@keyframes photoGlint { from { transform:translate(-55%, 55%); } to { transform:translate(55%, -55%); } }
@keyframes photoGlintRing { 0% { box-shadow:0 0 0 0 rgba(31,122,77,.45), 0 12px 28px -14px rgba(61,13,25,.4); } 100% { box-shadow:0 0 0 12px rgba(31,122,77,0), 0 12px 28px -14px rgba(61,13,25,.4); } }
@media (prefers-reduced-motion: reduce) { .portal-photo-stage.is-glint::after, .portal-photo-stage.is-glint { animation:none; } .portal-photo-stage.is-glint::after { display:none; } }

/* Confirmation shine: a single pass. */
.portal-photo-stage.is-glint::after { animation:photoGlint 1.6s cubic-bezier(.4,0,.2,1) .25s 1 both; }
/* The tick draws in only right after "Yes"; returning to the tab shows it already complete. */
.portal-photo-confirmed, .portal-photo-confirmed-tick svg { animation:none; }
.portal-photo-confirmed.is-fresh { animation:photoConfirmedIn .45s ease-out; }
.portal-photo-confirmed.is-fresh .portal-photo-confirmed-tick svg { animation:photoTickDraw .5s ease-out .1s backwards; }

/* Congratulations: the four feature items at half height — small icon beside a one-line label. */
.portal-welcome-features { margin:8px 0 -2px; padding:7px 0 0; }
.portal-welcome-features li { flex-direction:row; justify-content:center; gap:5px; padding:0 4px; }
.portal-welcome-features li > span { width:22px; height:22px; flex:none; box-shadow:0 2px 6px rgba(150,90,40,.14); }
.portal-welcome-features svg { width:12px; height:12px; stroke-width:2.2; }
.portal-welcome-features strong { font-size:10px; white-space:nowrap; }
.portal-welcome-features strong br { display:none; }
@media (max-width:520px) { .portal-welcome-features li > span { width:20px; height:20px; } .portal-welcome-features li > span, .portal-welcome-features svg { } .portal-welcome-features svg { width:11px; height:11px; } }

/* Congratulations: 50% more breathing room between the steps, the buttons and the feature row. */
.portal-welcome-steps { margin-top:24px; margin-bottom:18px; }
.portal-welcome-steps li { gap:6px; }
.portal-welcome-actions { margin-top:18px; }
.portal-welcome-features { margin-top:18px; padding-top:12px; }

/* Post-registration success: one calm premium story — confirmation, next steps and actions. */
.portal-welcome {
  --welcome-wine:#7f1532;
  --welcome-wine-dark:#641025;
  --welcome-gold:#cf942d;
  --welcome-gold-soft:#f7eddd;
  --welcome-green:#238052;
  padding:24px;
  background:rgba(37,18,22,.52);
  backdrop-filter:blur(2px);
}
.portal-welcome-card {
  width:min(1080px,100%);
  box-sizing:border-box;
  overflow:hidden;
  padding:26px 46px 30px;
  border:1px solid #d7a33e;
  border-radius:8px;
  background:#fffdf9;
  box-shadow:0 28px 72px rgba(45,14,23,.28);
  isolation:isolate;
}
.portal-welcome-card::before,
.portal-welcome-card::after { right:22px; left:22px; z-index:1; background:#d7a33e; }
.portal-welcome-card > :not(.portal-welcome-glint):not(.portal-welcome-corner-petals) { position:relative; z-index:2; }
.portal-welcome-glint {
  position:absolute;
  inset:-52%;
  z-index:5;
  pointer-events:none;
  opacity:0;
  background:linear-gradient(45deg,transparent 38%,rgba(255,240,200,0) 42%,rgba(255,240,200,.55) 49%,rgba(255,255,255,.85) 50%,rgba(255,240,200,.55) 51%,rgba(255,240,200,0) 58%,transparent 62%);
  transform:translate(-55%,55%);
  mix-blend-mode:screen;
}
.portal-welcome-card.is-glint .portal-welcome-glint { opacity:1; animation:photoGlint 1.6s cubic-bezier(.4,0,.2,1) .3s 1 both; }
.portal-welcome-corner-petals { position:absolute; inset:0; z-index:1; pointer-events:none; }
.portal-welcome-corner-petals i { position:absolute; width:11px; height:5px; border-radius:80% 20% 80% 20%; background:#d6a13e; opacity:.72; transform:rotate(28deg); }
.portal-welcome-corner-petals i:nth-child(1) { top:58px; left:76px; }
.portal-welcome-corner-petals i:nth-child(2) { top:82px; left:105px; transform:rotate(-25deg); }
.portal-welcome-corner-petals i:nth-child(3) { top:68px; left:135px; transform:rotate(42deg); }
.portal-welcome-corner-petals i:nth-child(4) { top:58px; right:76px; transform:rotate(-28deg); }
.portal-welcome-corner-petals i:nth-child(5) { top:82px; right:105px; transform:rotate(25deg); }
.portal-welcome-corner-petals i:nth-child(6) { top:68px; right:135px; transform:rotate(-42deg); }
.portal-welcome-close { position:absolute; top:16px; right:16px; z-index:6 !important; width:42px; height:42px; background:#f6efea; color:#6a5a5c; transition:background .18s,color .18s,transform .18s; }
.portal-welcome-close:hover { background:#efe2da; color:var(--welcome-wine); transform:rotate(90deg); }
.portal-welcome-logo {
  position:relative;
  top:auto;
  left:auto;
  width:88px;
  height:88px;
  margin:0 auto 10px;
  padding:4px;
  border:6px solid #f1dfbd;
  background:#fff;
  box-shadow:0 8px 20px rgba(86,45,32,.15);
  transform:none;
}
.portal-welcome-logo > span { border-color:#d4a13a; }
.portal-welcome-submitted { min-height:29px; margin:0 0 10px; padding:3px 13px; border-color:#acd9c0; background:#edf9f2; color:#237653; }
.portal-welcome-card h2 { color:var(--welcome-wine); font-size:48px; line-height:1; letter-spacing:0; }
.portal-welcome-subtitle { margin-top:11px; color:#27191d; font-size:20px; font-weight:750; }
.portal-welcome-tamil { margin-top:10px; color:var(--welcome-wine); font-size:18px; line-height:1.45; }
.portal-welcome-flourish { width:300px; margin:10px auto 8px; }
.portal-welcome-flourish i { width:auto; flex:1; background:#d4a13a; }
.portal-welcome-flourish img { width:54px; height:38px; }
.portal-welcome-code { display:block; margin:0 auto 24px; padding:0; border:0; background:transparent; }
.portal-welcome-code > span { display:block; margin-bottom:5px; color:#6d6061; font-size:14px; font-weight:650; }
.portal-welcome-code-row { display:flex; align-items:center; justify-content:center; gap:14px; }
.portal-welcome-code-row strong { color:#25171b; font-size:24px; font-weight:850; letter-spacing:0; }
.portal-welcome-code-row button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:0 14px; border:0; border-radius:8px; background:#f4eade; color:var(--welcome-wine); font:inherit; font-size:13px; font-weight:750; cursor:pointer; transition:background .18s,color .18s,transform .18s; }
.portal-welcome-code-row button:hover { background:#ead9c8; transform:translateY(-1px); }
.portal-welcome-code-row button.is-copied { background:#e9f7ef; color:#1f7048; }
.portal-welcome-code-row button:focus-visible { outline:3px solid rgba(207,148,45,.42); outline-offset:2px; }
.portal-welcome-code-row svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.portal-welcome-next-title { margin:0 0 24px; color:var(--welcome-wine); font-family:"Cormorant Garamond",Georgia,serif; font-size:32px; line-height:1.1; }
.portal-welcome-steps { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:0; }
.portal-welcome-steps li { position:relative; min-width:0; gap:8px; padding:0 24px; }
.portal-welcome-steps li > span.portal-welcome-step-icon { position:relative; z-index:2; display:grid; place-items:center; width:62px; height:62px; border:2px solid #d9d0ca; background:#fff; color:#817477; box-shadow:0 3px 10px rgba(61,13,25,.08); }
.portal-welcome-steps li > span.portal-welcome-step-icon svg { width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.portal-welcome-steps li.is-done > span.portal-welcome-step-icon { border-color:#66b48b; background:var(--welcome-green); color:#fff; box-shadow:0 0 0 5px rgba(35,128,82,.12); }
.portal-welcome-steps li.is-next > span.portal-welcome-step-icon { border-color:var(--welcome-gold); background:#fffaf1; color:var(--welcome-wine); animation:welcomeNextPulse 1.8s ease-in-out infinite; }
.portal-welcome-steps li > em { top:-17px; padding:2px 10px; background:var(--welcome-gold); font-size:10px; }
.portal-welcome-steps li:not(:last-child)::after { top:30px; left:calc(50% + 42px); right:calc(-50% + 42px); height:2px; background:#d6a03a; animation:none; }
.portal-welcome-steps li.is-done::after { background:linear-gradient(90deg,var(--welcome-green),#d6a03a); }
.portal-welcome-steps li:not(:last-child)::before { display:none; }
.portal-welcome-steps strong { color:#26191c; font-size:19px; line-height:1.2; }
.portal-welcome-steps li.is-next strong { color:var(--welcome-wine); }
.portal-welcome-steps small { max-width:290px; min-height:64px; color:#64575a; font-size:14px; line-height:1.48; }
.portal-welcome-steps small b { font-weight:650; }
.portal-welcome-strength { margin-top:36px; padding:14px 17px 15px; border-radius:8px; background:#f8f0e3; text-align:left; }
.portal-welcome-strength > div { display:flex; justify-content:space-between; gap:20px; margin-bottom:10px; }
.portal-welcome-strength strong { color:#26191c; font-size:16px; }
.portal-welcome-strength div span { color:#6b5d60; font-size:14px; }
.portal-welcome-strength-track { display:block; height:6px; overflow:hidden; border-radius:6px; background:#e8ddc9; }
.portal-welcome-strength-track i { display:block; width:calc(var(--strength) * 1%); height:100%; border-radius:inherit; background:var(--welcome-gold); }
.portal-welcome-actions { grid-template-columns:1.15fr 1fr; gap:18px; margin-top:40px; }
.portal-welcome-actions button { min-height:58px; box-sizing:border-box; border-radius:7px; font-size:17px; }
.portal-welcome-actions .portal-btn-view { border:2px solid var(--welcome-gold); background:var(--welcome-wine); }
.portal-welcome-actions .portal-btn-shortlist { border:1.5px solid #c78696; background:#fff; color:var(--welcome-wine); }
.portal-welcome-actions svg { width:20px; height:20px; }

@media (max-width:760px) {
  .portal-welcome { align-items:start; padding:14px; }
  .portal-welcome-card { padding:22px 18px 24px; }
  .portal-welcome-corner-petals { display:none; }
  .portal-welcome-close { top:12px; right:12px; width:38px; height:38px; }
  .portal-welcome-logo { width:76px; height:76px; border-width:5px; }
  .portal-welcome-card h2 { padding:0 28px; font-size:36px; line-height:1.08; }
  .portal-welcome-subtitle { font-size:16px; }
  .portal-welcome-tamil { font-size:14px; }
  .portal-welcome-flourish { width:230px; }
  .portal-welcome-code { margin-bottom:22px; }
  .portal-welcome-code-row { gap:10px; }
  .portal-welcome-code-row strong { font-size:20px; }
  .portal-welcome-next-title { margin-bottom:20px; font-size:27px; }
  .portal-welcome-steps { grid-template-columns:1fr; gap:22px; text-align:left; }
  .portal-welcome-steps li { display:grid; grid-template-columns:54px minmax(0,1fr); align-items:start; gap:3px 14px; padding:0 4px; }
  .portal-welcome-steps li > span.portal-welcome-step-icon { grid-row:1 / span 2; width:50px; height:50px; }
  .portal-welcome-steps li > span.portal-welcome-step-icon svg { width:22px; height:22px; }
  .portal-welcome-steps li > em { top:-13px; left:29px; font-size:8px; }
  .portal-welcome-steps li:not(:last-child)::after { top:49px; bottom:-24px; left:28px; right:auto; width:2px; height:auto; }
  .portal-welcome-steps strong { align-self:end; font-size:16px; }
  .portal-welcome-steps small { max-width:none; min-height:0; font-size:12.5px; }
  .portal-welcome-strength { margin-top:30px; padding:13px 14px; }
  .portal-welcome-strength > div { display:grid; gap:3px; margin-bottom:9px; }
  .portal-welcome-strength strong { font-size:14px; }
  .portal-welcome-strength div span { font-size:12px; }
  .portal-welcome-actions { grid-template-columns:1fr; gap:10px; margin-top:30px; }
  .portal-welcome-actions button { min-height:50px; font-size:14px; }
}

@media (prefers-reduced-motion:reduce) {
  .portal-welcome-card.is-glint .portal-welcome-glint { display:none; animation:none; }
  .portal-welcome-close { transition:none; }
}

/* Account menu: Display mode row between Account Settings and the policy links, with a line on
   each side. Three small segments: Auto / Light / Dark. */
.portal-account-theme { display:flex; align-items:center; gap:12px; margin:6px 0 0; padding:12px 10px 10px; border-top:1px solid #efe4d6; }
.portal-account-theme + .portal-account-legal { border-top:1px solid #efe4d6; }
.portal-account-theme-copy { flex:1; min-width:0; }
.portal-account-theme-copy strong { display:block; color:#2c0712; font-size:14px; }
.portal-account-theme-copy small { display:block; color:#7a6a5e; font-size:11.5px; }
.portal-account-theme-options { display:inline-flex; flex:none; padding:3px; border:1px solid #ecdcc4; border-radius:999px; background:#fffaf1; }
.portal-account-theme-options button { display:inline-flex; align-items:center; gap:4px; height:28px; padding:0 9px; border:0; border-radius:999px; background:transparent; color:#6b5a4e; font:inherit; font-size:11.5px; font-weight:700; cursor:pointer; }
.portal-account-theme-options button svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; }
.portal-account-theme-options button:hover { color:#4b1020; }
.portal-account-theme-options button.is-active { background:linear-gradient(135deg,#7a1f33,#5c1626); color:#fff8ec; box-shadow:0 2px 6px rgba(92,22,38,.25); }
.portal-account-theme .portal-nav-menu-icon svg { fill:none; stroke:currentColor; stroke-width:2; }

/* Account menu: Language row right under Display, sharing its line style. */
.portal-account-theme + .portal-account-language { margin-top:0; border-top:1px dashed #efe4d6; }
.portal-account-language-select { position:relative; flex:none; }
.portal-account-language-select select { height:34px; min-width:128px; padding:0 30px 0 12px; border:1px solid #ecdcc4; border-radius:999px; background:#fffaf1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b1020' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; color:#4b1020; font:inherit; font-size:12.5px; font-weight:700; -webkit-appearance:none; appearance:none; cursor:pointer; }
.portal-account-language-select select:focus { outline:2px solid #d09a39; outline-offset:1px; }

/* SMS sign-in code: the field added under the mobile number once a code is sent (familyCodeStep). */
.family-otp-field { display:flex; flex-direction:column; gap:7px; margin:12px 0; }
.family-otp-field > span { font-size:13px; font-weight:700; color:var(--stone-700, #5a4a3f); }
.family-otp-field input { height:46px; padding:0 14px; border:1px solid #ecdcc4; border-radius:12px; background:#fffaf1; font:inherit; font-size:20px; letter-spacing:6px; color:#4b1020; }
.family-otp-field input:focus { outline:2px solid #d09a39; outline-offset:1px; }
