.nfc-page {
  --nfc-good: #345f43;
  --nfc-warn: #8a5d2f;
}

html::before {
  background-image:
    linear-gradient(168deg, rgba(248, 240, 231, 0.08), rgba(218, 192, 170, 0.03)),
    url("../assets/web_bg-optimized.jpg"),
    url("../assets/web_bg.jpg");
}

html.nfc-admin-document::before {
  background-image:
    linear-gradient(135deg, rgba(255, 252, 246, 0.98) 0%, rgba(246, 231, 219, 0.96) 36%, rgba(235, 223, 210, 0.95) 62%, rgba(222, 236, 224, 0.92) 100%),
    linear-gradient(32deg, rgba(119, 86, 68, 0.28) 0%, rgba(119, 86, 68, 0) 48%),
    linear-gradient(216deg, rgba(52, 95, 67, 0.2) 0%, rgba(52, 95, 67, 0) 42%);
}

.nfc-page .hidden {
  display: none !important;
}

.nfc-page.nfc-gift-open {
  overflow: hidden;
}

.nfc-page.nfc-intro-open {
  overflow: hidden;
}

.nfc-intro-trigger {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(122, 78, 57, 0.24);
  border-radius: 999px;
  padding: 0;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(239, 224, 211, 0.44)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 16px rgba(74, 48, 33, 0.08);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.nfc-intro-trigger:hover {
  border-color: rgba(122, 78, 57, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 22px rgba(74, 48, 33, 0.12);
  transform: translateY(-1px);
}

.nfc-intro-trigger img {
  width: 20px;
  height: 20px;
  display: block;
  opacity: 0.72;
}

.nfc-shell {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.nfc-shell > .hero,
.nfc-shell > .surface-card,
.nfc-shell > .nfc-grid {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.nfc-shell > .nfc-grid {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.nfc-page:not(.nfc-admin-document) .nfc-next-steps-head h2,
.nfc-page:not(.nfc-admin-document) .nfc-client-name-row h2,
.nfc-page:not(.nfc-admin-document) .nfc-next-step-card h3,
.nfc-page:not(.nfc-admin-document) .nfc-workbook-hero h2,
.nfc-page:not(.nfc-admin-document) .nfc-workbook-page h2,
.nfc-page:not(.nfc-admin-document) .nfc-gift-modal-copy h2 {
  font-family: var(--font-banner);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.nfc-page.nfc-admin-modal-open {
  overflow: hidden;
}

.nfc-page.nfc-client-search-drawer-open {
  overflow: hidden;
}

.nfc-page.is-portal-locked {
  min-height: 100vh;
  overflow: hidden;
}

.nfc-page.is-portal-locked > nav,
.nfc-page.is-portal-locked #portal-app,
.nfc-page.is-portal-locked > .nfc-footer {
  filter: blur(14px) saturate(112%);
  transform: scale(0.985);
  transform-origin: center top;
  opacity: 0.58;
  pointer-events: none;
  user-select: none;
}

.nfc-page.is-client-access-revoked {
  min-height: 100vh;
  overflow: hidden;
}

.nfc-page.is-client-access-revoked > nav,
.nfc-page.is-client-access-revoked > .nfc-shell,
.nfc-page.is-client-access-revoked > .nfc-footer {
  filter: blur(22px) saturate(110%);
  transform: scale(0.985);
  transform-origin: center top;
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
}

.nfc-access-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background:
    linear-gradient(145deg, rgba(44, 30, 22, 0.24), rgba(246, 236, 226, 0.34)),
    rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(150%) contrast(1.02);
  -webkit-backdrop-filter: blur(18px) saturate(150%) contrast(1.02);
}

.nfc-access-shell {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  width: min(calc(100% - 32px), 460px);
  margin: 0;
  display: grid;
  gap: 12px;
  transform: translate(-50%, -50%);
  --liquid-top: rgba(255, 255, 255, 0.76);
  --liquid-mid: rgba(255, 255, 255, 0.44);
  --liquid-bottom: rgba(232, 214, 198, 0.42);
  --liquid-blur: 24px;
  --liquid-shadow: var(--glass-shadow-strong);
}

.nfc-access-shell h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.nfc-access-shell.is-checking {
  animation: nfc-access-shell-pulse 920ms ease-in-out infinite;
}

.nfc-access-shell.is-checking .nfc-input {
  animation: nfc-access-id-pulse 720ms ease-in-out infinite;
}

.nfc-intro-video-overlay,
.nfc-intro-preference-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 34px);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 245, 230, 0.52), transparent 36%),
    radial-gradient(circle at 82% 82%, rgba(52, 95, 67, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(54, 34, 23, 0.46), rgba(246, 229, 211, 0.3));
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.nfc-intro-video-card {
  width: min(100%, 860px);
  max-height: calc(100vh - 28px);
  display: grid;
  gap: 14px;
  padding: clamp(14px, 2.7vw, 24px);
  overflow: auto;
  --liquid-top: rgba(255, 255, 255, 0.78);
  --liquid-mid: rgba(255, 246, 238, 0.5);
  --liquid-bottom: rgba(226, 205, 187, 0.34);
  --liquid-shadow: 0 30px 90px rgba(52, 31, 19, 0.34);
}

.nfc-intro-video-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.nfc-intro-video-head h2,
.nfc-intro-preference-card h2 {
  margin: 0;
}

.nfc-intro-video-skip {
  flex: 0 0 auto;
  border: 1px solid rgba(122, 78, 57, 0.28);
  border-radius: 999px;
  padding: 0.64rem 1rem;
  color: var(--ink);
  background: rgba(255, 250, 244, 0.72);
  font: inherit;
  cursor: pointer;
}

.nfc-intro-video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(122, 78, 57, 0.2);
  border-radius: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(145deg, rgba(40, 25, 17, 0.96), rgba(83, 54, 38, 0.92)),
    #201712;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 22px 55px rgba(55, 34, 22, 0.22);
}

.nfc-intro-video {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  background: #1d1510;
  object-fit: contain;
}

.nfc-intro-video-audio,
.nfc-intro-video-play {
  position: absolute;
  left: 50%;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 0.78rem 1.1rem;
  color: #fff;
  background: linear-gradient(155deg, rgba(112, 76, 56, 0.95), rgba(66, 42, 30, 0.92));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  font: inherit;
  font-weight: 700;
  transform: translateX(-50%);
  cursor: pointer;
}

.nfc-intro-video-audio {
  bottom: 18px;
}

.nfc-intro-video-play {
  top: 50%;
  transform: translate(-50%, -50%);
}

.nfc-intro-preference-card {
  width: min(100%, 520px);
  display: grid;
  gap: 10px;
  padding: clamp(22px, 4vw, 34px);
  text-align: center;
  --liquid-top: rgba(255, 255, 255, 0.82);
  --liquid-mid: rgba(255, 247, 238, 0.56);
  --liquid-bottom: rgba(228, 209, 191, 0.38);
  --liquid-shadow: 0 26px 72px rgba(52, 31, 19, 0.3);
}

.nfc-intro-preference-card p:not(.nfc-kicker) {
  margin: 0;
  color: var(--ink-soft);
}

.nfc-intro-preference-card .nfc-actions {
  justify-content: center;
  margin-top: 8px;
}

@keyframes nfc-access-shell-pulse {
  0%,
  100% {
    box-shadow: var(--liquid-shadow);
  }
  50% {
    box-shadow:
      0 22px 54px rgba(54, 31, 19, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.44),
      0 0 28px rgba(159, 106, 76, 0.24);
  }
}

@keyframes nfc-access-id-pulse {
  0%,
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
  50% {
    border-color: rgba(122, 78, 57, 0.58);
    box-shadow:
      0 0 0 3px rgba(122, 78, 57, 0.14),
      inset 0 0 16px rgba(255, 255, 255, 0.62);
  }
}

.nfc-page nav .nfc-book-btn {
  color: #fff;
  border-color: rgba(156, 114, 92, 0.58);
  background: linear-gradient(164deg, rgba(125, 85, 64, 0.95), rgba(99, 64, 47, 0.92));
  box-shadow:
    0 8px 18px rgba(61, 36, 23, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(116, 78, 58, 0.28);
}

.nfc-page nav .nfc-book-btn:hover {
  color: #fff;
  border-color: rgba(170, 127, 104, 0.7);
  background: linear-gradient(164deg, rgba(138, 96, 74, 0.97), rgba(113, 74, 56, 0.93));
}

.nfc-gift-btn {
  border: 1px solid rgba(222, 168, 188, 0.72);
  border-radius: 999px;
  padding: 0.62rem 1rem;
  background: linear-gradient(160deg, rgba(255, 234, 242, 0.96), rgba(248, 214, 228, 0.95));
  color: #7c425a;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(110, 63, 82, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.nfc-gift-btn:hover {
  border-color: rgba(214, 145, 171, 0.84);
  background: linear-gradient(160deg, rgba(255, 240, 246, 0.98), rgba(245, 203, 220, 0.98));
  color: #72364f;
}

.nfc-hero {
  margin-top: 8px;
  margin-bottom: 26px;
}

#client-dashboard-title {
  text-transform: none;
}

/* Dashboard hero — title + icon actions in one row */
.nfc-hero-dashboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.nfc-hero-dashboard h1 {
  margin: 0;
  flex: 1 1 auto;
}

.nfc-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nfc-hero-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(122, 81, 63, 0.2);
  background: linear-gradient(135deg, rgba(255, 252, 248, 0.96), rgba(244, 230, 219, 0.88));
  color: #5b3d31;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  box-shadow: 0 4px 12px rgba(85, 60, 45, 0.08);
  padding: 0;
}

.nfc-hero-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.nfc-hero-icon-btn img {
  width: 16px;
  height: 16px;
  display: block;
}

.nfc-hero-text-btn {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.nfc-hero-icon-btn:hover,
.nfc-hero-icon-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(122, 81, 63, 0.35);
  box-shadow: 0 8px 20px rgba(85, 60, 45, 0.14);
}

/* Floating autosave badge — fixed top-right, above everything */
.nfc-autosave-badge {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2d7a4f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(45, 122, 79, 0.35);
  opacity: 0.55;
  transition: opacity 300ms ease, box-shadow 300ms ease, transform 200ms ease;
  cursor: default;
  pointer-events: none;
}

.nfc-autosave-badge svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nfc-autosave-badge.hidden {
  display: none;
}

/* Pulse animation when actively saving */
.nfc-autosave-badge.is-saving {
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(45, 122, 79, 0.25), 0 4px 14px rgba(45, 122, 79, 0.4);
  animation: autosave-pulse 600ms ease forwards;
}

/* Settled state after save — stays visible, slightly dimmed */
.nfc-autosave-badge.is-saved {
  opacity: 0.75;
  box-shadow: 0 4px 14px rgba(45, 122, 79, 0.3);
}

/* Error state */
.nfc-autosave-badge.is-error {
  background: #b94a4a;
  box-shadow: 0 4px 14px rgba(185, 74, 74, 0.4);
  opacity: 1;
}

@keyframes autosave-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  70%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.nfc-admin-action-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  margin: -10px 0 18px;
  position: relative;
  z-index: 2;
}

.nfc-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(122, 81, 63, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 252, 248, 0.96), rgba(244, 230, 219, 0.92)),
    rgba(255, 255, 255, 0.84);
  color: #5b3d31;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 30px rgba(85, 60, 45, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.nfc-admin-pill span:last-child {
  white-space: nowrap;
}

.nfc-admin-pill:hover,
.nfc-admin-pill:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(122, 81, 63, 0.3);
  box-shadow: 0 18px 38px rgba(85, 60, 45, 0.14);
}

.nfc-sync-icon-btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 0;
}

.nfc-sync-icon-btn img {
  width: 18px;
  height: 18px;
  display: block;
}

.nfc-admin-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(122, 81, 63, 0.12);
  color: #6f4d3d;
}

.nfc-admin-pill-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nfc-admin-pill-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.nfc-admin-pill-mail .nfc-admin-pill-icon svg {
  width: 19px;
  height: 19px;
}

.nfc-admin-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  margin-left: 2px;
  border-radius: 999px;
  background: rgba(52, 95, 67, 0.12);
  color: #345f43;
  font-size: 0.82rem;
  font-weight: 900;
}

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

.nfc-grid.full {
  grid-template-columns: 1fr;
}

.nfc-grid > .surface-card {
  --liquid-top: rgba(255, 255, 255, 0.42);
  --liquid-mid: rgba(255, 255, 255, 0.15);
  --liquid-bottom: rgba(233, 216, 198, 0.12);
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.nfc-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nfc-form {
  display: grid;
  gap: 10px;
}

.nfc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nfc-panel-head h2 {
  margin: 0;
}

.nfc-collapsible-body {
  display: grid;
  gap: 10px;
}

.nfc-mobile-toggle {
  display: inline-flex;
  flex: 0 0 auto;
}

#create-client-panel[data-collapsed="true"] .nfc-collapsible-body {
  display: none;
}

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

.nfc-form label {
  display: grid;
  gap: 4px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.nfc-input,
.nfc-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.58rem 0.72rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.86rem;
}

.nfc-input:focus,
.nfc-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(122, 78, 57, 0.16);
}

.nfc-input[readonly],
.nfc-input[disabled] {
  color: rgba(66, 47, 37, 0.8);
  background: rgba(245, 236, 227, 0.72);
}

.nfc-textarea {
  min-height: 86px;
  resize: vertical;
}

.nfc-ai-input-shell {
  position: relative;
}

.nfc-ai-input-shell .nfc-textarea {
  padding-right: 3.3rem;
  padding-bottom: 3rem;
}

.nfc-ai-rewrite-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(145deg, rgba(112, 54, 185, 0.36) 0%, rgba(58, 17, 104, 0.22) 100%);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    0 10px 22px rgba(55, 28, 91, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 18px rgba(128, 83, 201, 0.18);
  display: inline-grid;
  place-items: center;
  overflow: visible;
  z-index: 2;
}

.nfc-ai-rewrite-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 2px);
  width: 24px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(117, 70, 196, 0.34);
  filter: blur(9px);
  opacity: 0.55;
  z-index: -1;
}

.nfc-ai-rewrite-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 12px 24px rgba(55, 28, 91, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 22px rgba(142, 92, 214, 0.22);
}

.nfc-ai-rewrite-btn[data-busy="true"] {
  cursor: progress;
  opacity: 0.76;
}

.nfc-ai-rewrite-btn:focus-visible {
  outline: 2px solid rgba(189, 157, 240, 0.92);
  outline-offset: 3px;
}

.nfc-ai-rewrite-animation {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

.nfc-ai-rewrite-btn[data-animation-fallback="true"]::before {
  content: "AI";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nfc-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.nfc-status {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.nfc-inline-status {
  display: none;
}

.nfc-inline-status:not(:empty) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  min-height: 1.6em;
  width: fit-content;
  max-width: 100%;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(122, 78, 57, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 8px 18px rgba(61, 36, 23, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-soft);
  position: relative;
  z-index: 2;
}

.nfc-inline-status[data-tone="good"] {
  color: #2f5a3d;
  border-color: rgba(66, 121, 82, 0.28);
  background: rgba(241, 250, 242, 0.92);
}

.nfc-inline-status[data-tone="warn"] {
  color: #835528;
  border-color: rgba(166, 122, 69, 0.3);
  background: rgba(255, 247, 235, 0.94);
}

.nfc-status[data-tone="good"] {
  color: var(--nfc-good);
}

.nfc-status[data-tone="warn"] {
  color: var(--nfc-warn);
}

.nfc-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  position: relative;
}

.nfc-list-head .nfc-input {
  flex: 1 1 260px;
}

.nfc-client-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
  align-content: start;
  grid-auto-rows: max-content;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.nfc-client-list-loading {
  display: grid;
  gap: 8px;
}

.nfc-client-list-loading.is-tail {
  margin-top: 2px;
}

.nfc-client-skeleton {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(165, 136, 116, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 241, 234, 0.72));
  overflow: hidden;
  position: relative;
}

.nfc-client-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  animation: nfc-client-skeleton-shimmer 1.3s ease-in-out infinite;
}

.nfc-client-skeleton-line {
  display: block;
  height: 10px;
  width: 100%;
  border-radius: 999px;
  background: rgba(164, 135, 116, 0.22);
}

.nfc-client-skeleton-line.is-title {
  height: 15px;
  width: 58%;
}

.nfc-client-skeleton-line.is-short {
  width: 38%;
}

.nfc-list-loading-text {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: center;
}

.nfc-list-inline-loading {
  align-items: center;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(134, 94, 72, 0.16);
  border-radius: 14px;
  color: #5f4539;
  display: flex;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  justify-content: center;
  padding: 11px 12px;
}

.nfc-list-spinner {
  animation: nfc-list-spinner 760ms linear infinite;
  border: 2px solid rgba(122, 78, 57, 0.2);
  border-top-color: rgba(122, 78, 57, 0.82);
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

@keyframes nfc-client-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes nfc-list-spinner {
  to {
    transform: rotate(360deg);
  }
}

.nfc-client-item {
  display: grid;
  align-self: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.68);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.nfc-client-item.is-active {
  border-color: rgba(122, 78, 57, 0.74);
  border-width: 2px;
  background: rgba(255, 251, 245, 0.9);
  box-shadow:
    0 12px 24px rgba(54, 31, 19, 0.12),
    0 0 0 3px rgba(122, 78, 57, 0.1);
  transform: translateY(-1px);
}

.nfc-client-item button {
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nfc-client-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.nfc-client-item h3 {
  margin: 0;
  font-size: 0.98rem;
}

.nfc-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nfc-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.74);
}

.nfc-badge.live {
  border-color: rgba(69, 112, 76, 0.45);
  color: #336340;
  background: rgba(239, 250, 239, 0.75);
}

.nfc-badge.pending {
  border-color: rgba(166, 122, 69, 0.45);
  color: #7d562a;
  background: rgba(253, 246, 233, 0.75);
}

.nfc-badge-gift {
  border-color: rgba(214, 145, 171, 0.52);
  color: #8d4964;
  background: rgba(255, 236, 244, 0.86);
}

.nfc-badge-revoked {
  border-color: rgba(133, 73, 61, 0.48);
  color: #7c3327;
  background: rgba(255, 236, 232, 0.88);
}

.nfc-badge-quiz {
  border-color: rgba(91, 61, 49, 0.35);
  color: #5b3d31;
  background: rgba(244, 230, 219, 0.7);
}

.nfc-badge-recovery {
  border-color: rgba(45, 122, 79, 0.35);
  color: #2d7a4f;
  background: rgba(45, 122, 79, 0.08);
}

.nfc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nfc-actions .btn {
  margin: 0;
}

.nfc-actions .btn:focus-visible,
.nfc-actions .btn:active,
.nfc-mobile-toggle[aria-expanded="true"] {
  outline: none;
  border-color: rgba(122, 78, 57, 0.82);
  box-shadow:
    0 12px 22px rgba(61, 36, 23, 0.16),
    0 0 0 3px rgba(122, 78, 57, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(116, 78, 58, 0.24);
}

.nfc-actions .btn.primary:focus-visible,
.nfc-actions .btn.primary:active,
.nfc-mobile-toggle[aria-expanded="true"] {
  background: linear-gradient(164deg, rgba(139, 97, 75, 0.98), rgba(110, 71, 53, 0.96));
}

.nfc-actions .btn.secondary:focus-visible,
.nfc-actions .btn.secondary:active {
  background: linear-gradient(164deg, rgba(255, 255, 255, 0.94), rgba(244, 231, 219, 0.86));
  color: #6c4633;
}

.nfc-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 16px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
}

.nfc-service-config,
.nfc-profile-config {
  display: grid;
  width: 100%;
  max-width: none;
  gap: 10px;
  margin: 0;
  border: 1px solid rgba(165, 136, 116, 0.24);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: none;
}

.nfc-gift-voucher-editor {
  display: grid;
  gap: 10px;
}

.nfc-gift-voucher-toggle {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(214, 145, 171, 0.34);
  border-radius: 12px;
  background: rgba(255, 240, 246, 0.72);
  color: var(--ink);
  font-size: 0.9rem;
}

.nfc-gift-voucher-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #d685a5;
}

.nfc-gift-voucher-fields {
  display: grid;
  gap: 10px;
}

.nfc-gift-voucher-promotion-fields {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.nfc-service-config-head {
  display: grid;
  gap: 4px;
}

.nfc-service-config-head h3,
.nfc-next-step-card h3,
.nfc-next-steps-head h2 {
  margin: 0;
}

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

.nfc-service-option {
  display: grid;
  gap: 10px;
  min-height: 100%;
  border: 1px solid rgba(165, 136, 116, 0.24);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.66);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.nfc-service-option.is-selected {
  border-color: rgba(122, 78, 57, 0.38);
  box-shadow: 0 10px 24px rgba(63, 38, 25, 0.08);
}

.nfc-service-option.is-primary {
  border-color: rgba(122, 78, 57, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 249, 244, 0.96), rgba(248, 239, 232, 0.88)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(79, 47, 29, 0.12);
}

.nfc-service-option.is-disabled {
  opacity: 0.6;
}

.nfc-service-option-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.nfc-service-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.nfc-service-choice input,
.nfc-service-primary-toggle input {
  margin-top: 2px;
  accent-color: #7a4e39;
}

.nfc-service-choice-text {
  display: grid;
  gap: 6px;
}

.nfc-service-choice-text strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.3;
}

.nfc-service-option-chip,
.nfc-service-primary-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(152, 113, 92, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.2;
}

.nfc-service-primary-badge {
  border-color: rgba(122, 78, 57, 0.36);
  color: var(--ink);
  background: rgba(249, 239, 231, 0.96);
}

.nfc-service-option-select {
  display: grid;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.nfc-service-primary-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.nfc-guidance-editor,
.nfc-product-editor {
  display: grid;
  gap: 10px;
}

.nfc-guidance-group,
.nfc-product-editor-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(165, 136, 116, 0.24);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.nfc-hair-regen-editor,
.nfc-hair-regen-timeline-card {
  display: grid;
  gap: 12px;
}

.nfc-exo-grow-toggle-card,
.nfc-exo-grow-aftercare-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(52, 95, 67, 0.26);
  border-radius: 16px;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 12%, rgba(222, 236, 224, 0.72), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(239, 246, 237, 0.62));
  box-shadow: 0 14px 34px rgba(52, 95, 67, 0.08);
}

.nfc-exo-grow-toggle-card h4,
.nfc-exo-grow-aftercare-card h3 {
  margin: 0;
}

.nfc-exo-grow-toggle {
  border-color: rgba(52, 95, 67, 0.3);
  background: rgba(244, 252, 243, 0.78);
}

.nfc-exo-grow-preview-link,
.nfc-exo-grow-aftercare-card .btn {
  width: fit-content;
}

.nfc-hair-regen-graph-card,
.nfc-hair-regen-modal-diagram {
  overflow: hidden;
  border: 1px dashed rgba(165, 136, 116, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.nfc-hair-regen-graph-card {
  display: grid;
  gap: 10px;
  padding: 10px 12px 12px;
}

.nfc-hair-regen-graph-card svg,
.nfc-hair-regen-modal-diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.nfc-hair-regen-graph-axis {
  stroke: rgba(165, 136, 116, 0.28);
  stroke-width: 1.2;
}

.nfc-hair-regen-graph-grid {
  stroke: rgba(165, 136, 116, 0.16);
  stroke-width: 1;
}

.nfc-hair-regen-graph-label {
  fill: rgba(91, 65, 48, 0.88);
  font-size: 8px;
  letter-spacing: 0;
}

.nfc-hair-regen-graph-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nfc-hair-regen-graph-point {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.3;
}

.nfc-hair-regen-graph-line.is-pink,
.nfc-hair-regen-graph-point.is-pink {
  color: #db4fbe;
  stroke: #db4fbe;
}

.nfc-hair-regen-graph-point.is-pink {
  fill: #db4fbe;
}

.nfc-hair-regen-graph-line.is-orange,
.nfc-hair-regen-graph-point.is-orange {
  color: #d67b1e;
  stroke: #d67b1e;
}

.nfc-hair-regen-graph-point.is-orange {
  fill: #d67b1e;
}

.nfc-hair-regen-graph-line.is-green,
.nfc-hair-regen-graph-point.is-green {
  color: #2a9c45;
  stroke: #2a9c45;
}

.nfc-hair-regen-graph-point.is-green {
  fill: #2a9c45;
}

.nfc-hair-regen-graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.nfc-hair-regen-graph-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nfc-hair-regen-graph-legend-item.is-pink {
  color: #db4fbe;
}

.nfc-hair-regen-graph-legend-item.is-orange {
  color: #d67b1e;
}

.nfc-hair-regen-graph-legend-item.is-green {
  color: #2a9c45;
}

.nfc-hair-regen-graph-legend-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}

.nfc-hair-regen-diagram-card {
  overflow: hidden;
  border: 1px dashed rgba(165, 136, 116, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.nfc-hair-regen-diagram-card img {
  display: block;
  width: 100%;
  height: auto;
}

.nfc-hair-regen-diagram-trigger {
  width: fit-content;
  display: inline-grid;
  grid-template-columns: 44px auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(128, 95, 75, 0.22);
  border-radius: 999px;
  padding: 7px 14px 7px 7px;
  background: rgba(255, 252, 247, 0.82);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(61, 36, 23, 0.08);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.nfc-hair-regen-diagram-trigger:hover,
.nfc-hair-regen-diagram-trigger:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(128, 95, 75, 0.42);
  box-shadow: 0 14px 30px rgba(61, 36, 23, 0.12);
  outline: none;
}

.nfc-hair-regen-diagram-trigger strong,
.nfc-hair-regen-diagram-trigger small {
  display: block;
}

.nfc-hair-regen-diagram-trigger strong {
  font: inherit;
  font-weight: 700;
}

.nfc-hair-regen-diagram-trigger small {
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.nfc-hair-regen-diagram-thumb {
  width: 44px;
  height: 44px;
  overflow: hidden;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(165, 136, 116, 0.24);
}

.nfc-hair-regen-diagram-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nfc-hair-regen-region-grid,
.nfc-hair-regen-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.nfc-hair-regen-region-card,
.nfc-hair-regen-summary-card,
.nfc-hair-regen-upload-card,
.nfc-hair-regen-timeline-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(165, 136, 116, 0.24);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.nfc-hair-regen-region-card.is-pink,
.nfc-hair-regen-summary-card.is-pink {
  border-color: rgba(226, 112, 199, 0.42);
  background: rgba(255, 244, 253, 0.84);
}

.nfc-hair-regen-region-card.is-orange,
.nfc-hair-regen-summary-card.is-orange {
  border-color: rgba(235, 148, 63, 0.42);
  background: rgba(255, 248, 239, 0.88);
}

.nfc-hair-regen-region-card.is-green,
.nfc-hair-regen-summary-card.is-green {
  border-color: rgba(83, 194, 88, 0.42);
  background: rgba(245, 255, 245, 0.86);
}

.nfc-hair-regen-region-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nfc-hair-regen-region-head h4,
.nfc-hair-regen-timeline-card h3,
.nfc-hair-regen-timeline-card h4 {
  margin: 0;
}

.nfc-hair-regen-region-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.68);
}

.nfc-hair-regen-region-card.is-pink .nfc-hair-regen-region-dot,
.nfc-hair-regen-summary-card.is-pink .nfc-hair-regen-region-label {
  color: #db4fbe;
}

.nfc-hair-regen-region-card.is-orange .nfc-hair-regen-region-dot,
.nfc-hair-regen-summary-card.is-orange .nfc-hair-regen-region-label {
  color: #d67b1e;
}

.nfc-hair-regen-region-card.is-green .nfc-hair-regen-region-dot,
.nfc-hair-regen-summary-card.is-green .nfc-hair-regen-region-label {
  color: #2a9c45;
}

.nfc-hair-regen-summary-card {
  align-content: start;
}

.nfc-hair-regen-region-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nfc-hair-regen-region-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.nfc-hair-regen-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nfc-hair-regen-tab {
  border: 1px solid rgba(122, 78, 57, 0.2);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nfc-hair-regen-tab:hover,
.nfc-hair-regen-tab:focus-visible {
  border-color: rgba(122, 78, 57, 0.42);
  outline: none;
  transform: translateY(-1px);
}

.nfc-hair-regen-tab.is-active {
  border-color: rgba(122, 78, 57, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 248, 240, 0.98), rgba(250, 235, 221, 0.94)),
    rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(68, 44, 30, 0.08);
}

.nfc-hair-regen-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nfc-hair-regen-upload-btn {
  width: fit-content;
}

.nfc-hair-regen-launch-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.nfc-hair-regen-toolbar-note {
  flex: 1 1 260px;
  margin: 0;
}

.nfc-hair-regen-empty {
  margin: 0;
}

.nfc-hair-regen-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.nfc-hair-regen-image-card {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
  border: 1px solid rgba(165, 136, 116, 0.24);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.82);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.nfc-hair-regen-image-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.94), rgba(248, 238, 229, 0.78)),
    rgba(255, 255, 255, 0.86);
}

.nfc-hair-regen-image-card.is-selected {
  border-color: rgba(122, 78, 57, 0.54);
  box-shadow:
    0 14px 26px rgba(54, 31, 19, 0.08),
    0 0 0 2px rgba(122, 78, 57, 0.08);
  transform: translateY(-1px);
}

.nfc-hair-regen-image-card.is-library.is-selected {
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(248, 237, 227, 0.88)),
    rgba(255, 255, 255, 0.92);
}

.nfc-hair-regen-image-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  transition: opacity 180ms ease;
}

.nfc-hair-regen-image-card.is-loading img {
  opacity: 0;
}

.nfc-hair-regen-image-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.nfc-hair-regen-image-loader::before {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(122, 81, 63, 0.16);
  border-top-color: rgba(122, 81, 63, 0.78);
  border-radius: 999px;
  content: "";
  animation: nfc-hair-regen-spin 780ms linear infinite;
}

.nfc-hair-regen-image-card:not(.is-loading) .nfc-hair-regen-image-loader {
  display: none;
}

.nfc-hair-regen-image-card.is-error .nfc-hair-regen-image-frame::after {
  position: absolute;
  inset: auto 10px 10px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: rgba(91, 65, 48, 0.78);
  content: "Image unavailable";
  font-size: 0.68rem;
  text-align: center;
}

@keyframes nfc-hair-regen-spin {
  to {
    transform: rotate(360deg);
  }
}

.nfc-hair-regen-image-card figcaption {
  font-size: 0.76rem;
  color: var(--ink-soft);
  word-break: break-word;
}

.nfc-hair-regen-image-meta {
  min-height: 2.2em;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(91, 65, 48, 0.72);
}

.nfc-hair-regen-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nfc-trash-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(165, 136, 116, 0.28);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(61, 36, 23, 0.08);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.nfc-trash-btn:hover,
.nfc-trash-btn:focus-visible {
  border-color: rgba(122, 78, 57, 0.48);
  background: rgba(255, 255, 255, 0.96);
  outline: none;
  transform: translateY(-1px);
}

.nfc-trash-btn[disabled] {
  opacity: 1;
  cursor: wait;
}

.nfc-trash-btn-animation {
  display: block;
  width: 26px;
  height: 26px;
  line-height: 0;
}

.nfc-trash-btn-animation svg {
  width: 100% !important;
  height: 100% !important;
}

.nfc-hair-regen-remove-image,
.nfc-hair-regen-use-image {
  width: fit-content;
  border: 1px solid rgba(165, 136, 116, 0.24);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.nfc-hair-regen-use-image {
  border-color: rgba(52, 95, 67, 0.28);
  background: rgba(244, 252, 243, 0.92);
  color: #345f43;
}

.nfc-hair-regen-timeline {
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.nfc-hair-regen-timeline-rail {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 26px;
  min-width: max-content;
  padding: 10px 6px 4px;
}

.nfc-hair-regen-timeline-rail::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 44px;
  height: 2px;
  border-radius: 999px;
  background: rgba(165, 136, 116, 0.34);
}

.nfc-hair-regen-timeline-item {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 82px;
}

.nfc-hair-regen-timeline-date {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.nfc-hair-regen-timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #7b5d4f;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.78);
}

.nfc-hair-regen-timeline-dot.is-live {
  width: 42px;
  height: 42px;
  margin: -12px 0 -12px;
  background: transparent;
  box-shadow: none;
}

.nfc-hair-regen-timeline-dot.is-live.is-live-fallback {
  border-radius: 999px;
  background: radial-gradient(circle, rgba(80, 214, 102, 0.95) 0%, rgba(80, 214, 102, 0.18) 68%, rgba(80, 214, 102, 0) 100%);
  animation: nfc-hair-regen-pulse 1.6s ease-in-out infinite;
}

@keyframes nfc-hair-regen-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.nfc-hair-regen-file-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(165, 136, 116, 0.28);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(61, 36, 23, 0.08);
}

.nfc-hair-regen-file-btn img {
  width: 18px;
  height: 18px;
}

.nfc-hair-regen-timeline-delete {
  width: 34px;
  height: 34px;
}

.nfc-hair-regen-timeline-delete .nfc-trash-btn-animation {
  width: 22px;
  height: 22px;
}

.nfc-hair-regen-modal {
  width: min(calc(100% - 32px), 760px);
}

.nfc-hair-regen-modal-diagram {
  margin: 0;
  display: grid;
  gap: 12px;
}

.nfc-hair-regen-modal-diagram figcaption {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.nfc-trichoscope-page {
  background:
    radial-gradient(circle at top left, rgba(248, 236, 224, 0.88), rgba(249, 244, 238, 0.4) 36%, rgba(243, 238, 233, 0.82)),
    linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(243, 235, 227, 0.94));
  color: var(--ink);
}

.nfc-trichoscope-page nav {
  margin-bottom: 0;
}

.nfc-trichoscope-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 56px;
  display: grid;
  gap: 18px;
}

.nfc-trichoscope-hero {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid rgba(165, 136, 116, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 248, 240, 0.98), rgba(249, 238, 228, 0.92)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 48px rgba(55, 31, 18, 0.08);
}

.nfc-trichoscope-hero h1,
.nfc-trichoscope-device-card h2,
.nfc-trichoscope-strip-card h2 {
  margin: 0;
}

.nfc-trichoscope-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.nfc-trichoscope-stage,
.nfc-trichoscope-device-card,
.nfc-trichoscope-strip-card {
  border: 1px solid rgba(165, 136, 116, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(61, 36, 23, 0.08);
}

.nfc-trichoscope-stage {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.nfc-trichoscope-video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at center, rgba(53, 44, 37, 0.44), rgba(15, 13, 12, 0.92)),
    #171312;
  aspect-ratio: 4 / 3;
  min-height: 420px;
}

.nfc-trichoscope-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nfc-trichoscope-video[hidden] {
  display: none;
}

.nfc-trichoscope-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0) 40%, rgba(15, 12, 10, 0.46) 100%);
}

.nfc-trichoscope-frame {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow:
    0 0 0 999px rgba(9, 7, 6, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.nfc-trichoscope-frame::before,
.nfc-trichoscope-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 245, 235, 0.96);
}

.nfc-trichoscope-frame::before {
  top: 18px;
  left: 18px;
  border-right: 0;
  border-bottom: 0;
}

.nfc-trichoscope-frame::after {
  right: 18px;
  bottom: 18px;
  border-left: 0;
  border-top: 0;
}

.nfc-trichoscope-stage-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nfc-trichoscope-capture-btn {
  min-width: 180px;
  justify-content: center;
}

.nfc-trichoscope-device-card,
.nfc-trichoscope-strip-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.nfc-trichoscope-field {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.nfc-trichoscope-control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nfc-trichoscope-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.nfc-trichoscope-thumb {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(165, 136, 116, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.nfc-trichoscope-thumb.is-selected {
  border-color: rgba(122, 78, 57, 0.58);
  box-shadow:
    0 12px 24px rgba(54, 31, 19, 0.08),
    0 0 0 2px rgba(122, 78, 57, 0.08);
}

.nfc-trichoscope-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.nfc-trichoscope-thumb-meta {
  font-size: 0.72rem;
  color: rgba(91, 65, 48, 0.76);
  line-height: 1.45;
}

.nfc-trichoscope-thumb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nfc-trichoscope-thumb-actions .nfc-trash-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.nfc-trichoscope-status {
  margin: 0;
}

.nfc-trichoscope-empty {
  margin: 0;
  color: var(--ink-soft);
}

.nfc-service-config:focus-within,
.nfc-profile-config:focus-within,
.nfc-guidance-group:focus-within,
.nfc-product-editor-card:focus-within {
  border-color: rgba(122, 78, 57, 0.58);
  box-shadow:
    0 12px 28px rgba(54, 31, 19, 0.08),
    0 0 0 3px rgba(122, 78, 57, 0.08);
  background: rgba(255, 252, 247, 0.78);
}

.nfc-service-config[data-collapsed="true"] > :not(.nfc-service-config-head),
.nfc-profile-config[data-collapsed="true"] > :not(.nfc-service-config-head),
.nfc-guidance-group[data-collapsed="true"] > :not(.nfc-collapsible-card-head),
.nfc-product-editor-card[data-collapsed="true"] > :not(.nfc-collapsible-card-head) {
  display: none;
}

.nfc-guidance-group h4,
.nfc-product-editor-card h4 {
  margin: 0;
  font-size: 0.98rem;
}

.nfc-collapsible-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nfc-guidance-field-grid,
.nfc-product-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nfc-guidance-field-grid label,
.nfc-product-field-grid label {
  display: grid;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.nfc-product-catalog-picker {
  grid-column: 1 / -1;
}

.nfc-product-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nfc-config-title-row,
.nfc-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nfc-config-title-row {
  justify-content: flex-start;
}

.nfc-config-title-row .nfc-info-icon-btn {
  margin-left: auto;
}

.nfc-info-icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(122, 78, 57, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  font: 700 0.95rem/1 var(--font-sans);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(68, 44, 30, 0.08);
}

.nfc-info-icon-btn:hover,
.nfc-info-icon-btn:focus-visible {
  border-color: rgba(122, 78, 57, 0.48);
  outline: none;
  transform: translateY(-1px);
}

.nfc-section-collapse-btn {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(122, 78, 57, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  display: inline-grid;
  place-items: center;
  padding: 7px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(68, 44, 30, 0.08);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.nfc-section-collapse-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.nfc-section-collapse-btn:hover,
.nfc-section-collapse-btn:focus-visible {
  border-color: rgba(122, 78, 57, 0.48);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transform: translateY(-1px);
}

[data-collapsed="false"] > .nfc-service-config-head .nfc-section-collapse-btn,
[data-collapsed="false"] > .nfc-collapsible-card-head .nfc-section-collapse-btn {
  border-color: rgba(122, 78, 57, 0.62);
  border-width: 2px;
  background: rgba(255, 250, 245, 0.94);
  box-shadow:
    0 10px 24px rgba(68, 44, 30, 0.1),
    0 0 0 2px rgba(122, 78, 57, 0.08);
}

[data-collapsed="true"] > .nfc-service-config-head .nfc-section-collapse-btn img,
[data-collapsed="true"] > .nfc-collapsible-card-head .nfc-section-collapse-btn img {
  transform: rotate(45deg);
}

.nfc-info-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(32, 23, 18, 0.22);
  backdrop-filter: blur(12px);
}

.nfc-info-popover {
  position: fixed;
  z-index: 90;
  inset: 50% auto auto 50%;
  width: min(560px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  transform: translate(-50%, -50%);
  overflow: auto;
  padding: 20px;
}

.nfc-admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(32, 23, 18, 0.24);
  backdrop-filter: blur(12px);
}

.nfc-admin-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 89;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 32px));
  max-height: min(88vh, calc(100vh - 32px));
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  gap: 14px;
}

.nfc-admin-modal,
.nfc-admin-modal * {
  box-sizing: border-box;
}

.nfc-admin-modal .nfc-form,
.nfc-admin-modal .nfc-form-row,
.nfc-admin-modal .nfc-profile-config,
.nfc-admin-modal label,
.nfc-admin-modal .nfc-input {
  min-width: 0;
}

.nfc-shell > .nfc-admin-modal {
  width: min(720px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  margin-inline: 0;
}

.nfc-admin-modal-wide {
  width: min(920px, calc(100vw - 32px));
}

.nfc-shell > .nfc-admin-modal-wide {
  width: min(920px, calc(100vw - 32px));
}

.nfc-admin-modal-medium {
  width: min(760px, calc(100vw - 32px));
}

.nfc-shell > .nfc-admin-modal-medium {
  width: min(760px, calc(100vw - 32px));
}

.nfc-admin-modal .nfc-panel-head {
  align-items: flex-start;
  gap: 16px;
}

.nfc-admin-modal .nfc-panel-head .nfc-meta {
  margin: 6px 0 0;
}

#bulk-promo-panel {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(246, 239, 232, 0.98)),
    #fffdf9;
  color: #3f2c25;
  isolation: isolate;
}

#bulk-promo-panel > *,
#bulk-promo-panel .nfc-profile-config > *,
#bulk-promo-panel .nfc-email-client-picker > *,
#bulk-promo-panel .nfc-actions,
#bulk-promo-panel .nfc-inline-status {
  position: relative;
  z-index: 4;
}

#bulk-promo-panel::before,
#bulk-promo-panel::after,
#bulk-promo-panel .nfc-profile-config::before,
#bulk-promo-panel .nfc-profile-config::after {
  z-index: 0;
}

#bulk-promo-panel .nfc-panel-head {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(255, 253, 249, 0.94)),
    #fffdf9;
  border-bottom: 1px solid rgba(134, 94, 72, 0.14);
  margin: 0;
  padding: 0 0 12px;
  position: sticky;
  top: 0;
  z-index: 3;
}

#bulk-promo-panel .nfc-panel-head h2,
#bulk-promo-panel .nfc-service-config-head h3 {
  color: #3f2c25;
}

#bulk-promo-panel .nfc-meta,
#bulk-promo-panel label {
  color: #6f574c;
}

#bulk-promo-panel .nfc-profile-config {
  background: rgba(255, 253, 249, 0.96);
  border-color: rgba(134, 94, 72, 0.22);
}

#bulk-promo-panel .nfc-input {
  background: rgba(255, 255, 255, 0.96);
  color: #3f2c25;
}

.nfc-client-search-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 89;
  width: min(420px, calc(100vw - 18px));
  height: 100vh;
  max-height: 100vh;
  border-radius: 24px 0 0 24px;
  border-right: none;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: hidden;
}

.nfc-client-search-drawer .nfc-panel-head,
.nfc-client-search-drawer .nfc-list-head,
.nfc-client-search-drawer .nfc-client-filters {
  padding-left: 20px;
  padding-right: 20px;
}

.nfc-client-search-drawer .nfc-panel-head {
  padding-top: 20px;
}

.nfc-client-search-drawer .nfc-client-list {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding: 0 20px 20px;
}

.nfc-info-popover .nfc-info-icon-btn {
  flex: 0 0 auto;
  font-size: 1.2rem;
}

.nfc-info-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.nfc-info-content {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.nfc-gift-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(245, 236, 226, 0.76), rgba(235, 224, 208, 0.36) 36%, rgba(92, 68, 57, 0.34)),
    rgba(165, 209, 184, 0.26);
  backdrop-filter: blur(16px) saturate(138%);
  -webkit-backdrop-filter: blur(16px) saturate(138%);
}

.nfc-gift-overlay.is-promotion-nile-reed {
  background:
    radial-gradient(circle at 50% 18%, rgba(247, 238, 217, 0.42), transparent 34%),
    radial-gradient(circle at bottom, rgba(47, 27, 20, 0.46), rgba(28, 12, 13, 0.76)),
    rgba(38, 13, 15, 0.58);
}

.nfc-client-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 135;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.34), rgba(231, 220, 210, 0.2) 34%, rgba(54, 37, 29, 0.52)),
    rgba(51, 35, 27, 0.34);
  backdrop-filter: blur(20px) saturate(132%);
  -webkit-backdrop-filter: blur(20px) saturate(132%);
}

.nfc-client-lock-card {
  width: min(calc(100% - 32px), 520px);
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: 28px 24px 24px;
}

.nfc-client-lock-animation {
  width: min(240px, 62vw);
  aspect-ratio: 1;
}

.nfc-client-lock-copy {
  display: grid;
  gap: 6px;
}

.nfc-client-lock-copy h2,
.nfc-client-lock-copy p {
  margin: 0;
}

.nfc-gift-animation-stage {
  position: relative;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  width: 100%;
  min-height: min(88vh, 820px);
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 520ms ease;
}

.nfc-gift-animation-stage.is-fading {
  opacity: 0;
}

.nfc-gift-animation-stage.is-promotion-stage {
  min-height: min(80vh, 700px);
}

.nfc-gift-animation-stack {
  position: relative;
  width: 100%;
  min-height: min(72vh, 620px);
  background: transparent;
}

.nfc-gift-animation {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nfc-gift-animation-birthday {
  z-index: 2;
  width: min(58vw, 380px);
  height: min(34vh, 260px);
  transform: translate(-50%, -38%);
  filter: drop-shadow(0 16px 22px rgba(76, 39, 53, 0.18));
}

.nfc-gift-animation-reward {
  z-index: 1;
  width: min(82vw, 620px);
  height: min(66vh, 620px);
  transform: translate(-50%, -50%) rotate(-7deg) scale(1.05);
  filter: drop-shadow(0 24px 38px rgba(255, 255, 255, 0.24));
}

.nfc-promo-crown-animation {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 4;
  width: min(52vw, 280px);
  height: min(52vw, 280px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  filter: drop-shadow(0 28px 60px rgba(20, 6, 6, 0.42));
  pointer-events: none;
}

.nfc-promo-crown-animation svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nfc-promo-crown-animation.is-active {
  animation: nfcVipCrownIntro 1.15s ease-in-out 2 both;
}

.nfc-gift-modal {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 24px), 560px);
  margin: 0;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(126, 92, 67, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(244, 233, 219, 0.97), rgba(229, 209, 184, 0.95)),
    #e5d1b8;
  box-shadow: 0 30px 80px rgba(48, 24, 14, 0.22);
  --liquid-top: rgba(244, 233, 219, 0.97);
  --liquid-mid: rgba(234, 217, 196, 0.95);
  --liquid-bottom: rgba(229, 209, 184, 0.94);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.nfc-gift-modal.is-promotion {
  border-color: rgba(126, 92, 67, 0.16);
  background:
    linear-gradient(180deg, rgba(244, 233, 219, 0.97), rgba(229, 209, 184, 0.95)),
    #e5d1b8;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(48, 24, 14, 0.22);
  --liquid-top: rgba(244, 233, 219, 0.97);
  --liquid-mid: rgba(234, 217, 196, 0.95);
  --liquid-bottom: rgba(229, 209, 184, 0.94);
}

.nfc-gift-modal.is-promotion-nile-reed {
  border-color: rgba(247, 238, 217, 0.28);
  background:
    linear-gradient(145deg, rgba(82, 12, 23, 0.98), rgba(52, 27, 21, 0.98) 58%, rgba(38, 22, 16, 0.98)),
    #520c17;
  color: #f7eed9;
  box-shadow:
    0 34px 90px rgba(25, 7, 8, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --liquid-top: rgba(82, 12, 23, 0.98);
  --liquid-mid: rgba(52, 27, 21, 0.98);
  --liquid-bottom: rgba(38, 22, 16, 0.98);
}

.nfc-gift-modal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nfc-gift-skip {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}

.nfc-gift-close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: rgba(89, 56, 40, 0.76);
  padding: 0;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.nfc-gift-modal.is-promotion-nile-reed .nfc-gift-close-modal {
  color: rgba(247, 238, 217, 0.76);
}

.nfc-gift-modal-head {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-right: 20px;
}

.nfc-gift-modal-present {
  width: 116px;
  height: 116px;
}

.nfc-gift-modal.is-promotion .nfc-gift-modal-present {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1px solid rgba(126, 92, 67, 0.16);
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 250, 244, 0.62), rgba(229, 209, 184, 0.2) 62%),
    rgba(255, 250, 244, 0.38);
}

.nfc-gift-modal.is-promotion-nile-reed .nfc-gift-modal-present {
  border-color: rgba(247, 238, 217, 0.28);
  background:
    radial-gradient(circle at 50% 32%, rgba(247, 238, 217, 0.2), rgba(247, 238, 217, 0.04) 62%),
    rgba(47, 27, 20, 0.36);
}

.nfc-gift-modal.is-promotion .nfc-gift-modal-present svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nfc-gift-modal-copy {
  display: grid;
  gap: 6px;
  align-content: center;
  justify-items: start;
  text-align: left;
}

.nfc-gift-modal-copy .nfc-kicker,
.nfc-gift-modal-copy h2 {
  margin: 0;
}

.nfc-gift-modal.is-promotion .nfc-kicker,
.nfc-gift-modal.is-promotion .nfc-gift-brand,
.nfc-gift-modal.is-promotion .nfc-gift-detail span {
  color: var(--ink-soft);
}

.nfc-gift-modal.is-promotion h2,
.nfc-gift-modal.is-promotion .nfc-gift-detail strong {
  color: var(--ink);
}

.nfc-gift-modal.is-promotion-nile-reed .nfc-kicker,
.nfc-gift-modal.is-promotion-nile-reed .nfc-gift-brand,
.nfc-gift-modal.is-promotion-nile-reed .nfc-gift-detail span {
  color: rgba(247, 238, 217, 0.76);
}

.nfc-gift-modal.is-promotion-nile-reed h2,
.nfc-gift-modal.is-promotion-nile-reed .nfc-gift-detail strong {
  color: #fff8e8;
}

.nfc-gift-brand {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nfc-gift-details {
  margin: 2px 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.nfc-gift-modal.is-promotion-nile-reed .nfc-gift-details {
  color: rgba(247, 238, 217, 0.84);
}

.nfc-gift-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.nfc-gift-modal.is-promotion .nfc-gift-detail-recipient,
.nfc-gift-modal.is-promotion .nfc-gift-detail-message {
  grid-column: 1 / -1;
}

.nfc-gift-detail {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(154, 117, 89, 0.16);
  border-radius: 14px;
  background: rgba(255, 250, 244, 0.42);
}

.nfc-gift-modal.is-promotion .nfc-gift-detail {
  border-color: rgba(154, 117, 89, 0.16);
  background: rgba(255, 250, 244, 0.42);
}

.nfc-gift-modal.is-promotion-nile-reed .nfc-gift-detail {
  border-color: rgba(247, 238, 217, 0.2);
  background: rgba(47, 27, 20, 0.34);
}

.nfc-gift-detail span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nfc-gift-detail strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.nfc-gift-detail-message strong {
  line-height: 1.42;
}

.nfc-gift-modal.is-promotion .btn.primary {
  background: #4a3023;
  color: #fffaf4;
  border-color: rgba(74, 48, 35, 0.22);
}

.nfc-gift-modal.is-promotion-nile-reed .btn.primary {
  background: #f7eed9;
  color: #3a1d15;
  border-color: rgba(247, 238, 217, 0.44);
}

.nfc-client-name-row {
  position: relative;
}

@keyframes nfcVipCrownIntro {
  0% {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.68) rotate(-4deg);
  }
  28%, 76% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -52%) scale(0.82) rotate(3deg);
  }
}

.nfc-info-example-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(165, 136, 116, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.nfc-info-example-group h3 {
  margin: 0;
  font-size: 0.98rem;
}

.nfc-info-example-group ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.nfc-profile-section {
  display: grid;
  gap: 16px;
}

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

.nfc-guidance-card,
.nfc-product-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  border: 1px solid rgba(165, 136, 116, 0.24);
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 24px rgba(63, 38, 25, 0.05);
}

.nfc-guidance-card h3,
.nfc-product-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.nfc-guidance-line,
.nfc-product-detail {
  display: grid;
  gap: 4px;
}

.nfc-guidance-line span,
.nfc-product-detail span,
.nfc-product-brand {
  color: var(--ink-soft);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nfc-guidance-line p,
.nfc-product-detail p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.nfc-hair-profile-section {
  border-color: rgba(122, 78, 57, 0.24);
}

.nfc-hair-profile-card {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(165, 136, 116, 0.24);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 22px);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.78), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(245, 235, 226, 0.74));
  box-shadow: 0 16px 34px rgba(63, 38, 25, 0.08);
}

.nfc-hair-profile-card.is-compact {
  justify-items: stretch;
  text-align: left;
}

.nfc-hair-profile-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 260px);
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 34px);
  min-height: 184px;
}

.nfc-hair-profile-preview .nfc-actions {
  display: grid;
  gap: 10px;
  margin: 0;
  justify-content: flex-start;
  min-width: 0;
  width: min(100%, 260px);
}

.nfc-hair-profile-preview .nfc-actions .btn {
  justify-content: center;
  text-align: center;
  width: 100%;
  white-space: normal;
  line-height: 1.2;
}

.nfc-hair-profile-summary-note {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(165, 136, 116, 0.22);
  padding-top: 16px;
}

.nfc-hair-profile-summary-note span {
  color: var(--ink-soft);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nfc-hair-profile-summary-note p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.nfc-hair-profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 3vw, 24px);
  align-items: center;
}

.nfc-hair-profile-score-ring {
  --score-color: #b7945e;
  --score-track: rgba(58, 36, 27, 0.12);
  --score-glow: rgba(183, 148, 94, 0.22);
  width: clamp(128px, 18vw, 164px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 251, 244, 0.98) 0 50%, transparent 51%),
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.9), transparent 34%),
    conic-gradient(var(--score-color) var(--score-angle), var(--score-track) 0),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(229, 206, 181, 0.36));
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.84),
    inset 0 -10px 20px rgba(73, 45, 31, 0.08),
    0 18px 42px var(--score-glow),
    0 10px 24px rgba(58, 36, 27, 0.1);
  overflow: hidden;
}

.nfc-hair-profile-score-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.78);
}

.nfc-hair-profile-score-ring::after {
  content: "";
  position: absolute;
  inset: 16px 30px auto;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.nfc-hair-profile-score-ring.is-green {
  --score-color: #5d8d66;
  --score-glow: rgba(93, 141, 102, 0.26);
}

.nfc-hair-profile-score-ring.is-amber {
  --score-color: #bd8b3f;
  --score-glow: rgba(189, 139, 63, 0.28);
}

.nfc-hair-profile-score-ring.is-red {
  --score-color: #a64c42;
  --score-glow: rgba(166, 76, 66, 0.24);
}

.nfc-hair-profile-score-ring > div {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.nfc-hair-profile-score-ring strong {
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 2.55rem);
  font-weight: 500;
  line-height: 1;
}

.nfc-hair-profile-score-ring span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.nfc-hair-profile-copy {
  display: grid;
  gap: 8px;
}

.nfc-hair-profile-copy h3,
.nfc-hair-profile-detail h4 {
  margin: 0;
}

.nfc-hair-profile-copy p,
.nfc-hair-profile-note p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.nfc-hair-profile-insight {
  color: var(--ink) !important;
}

.nfc-hair-profile-detail {
  display: grid;
  gap: 16px;
  border-top: 1px solid rgba(165, 136, 116, 0.22);
  padding-top: 16px;
}

.nfc-hair-profile-detail-grid,
.nfc-hair-profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.nfc-hair-profile-columns > div,
.nfc-hair-profile-note {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(165, 136, 116, 0.22);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.nfc-hair-profile-field {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(165, 136, 116, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.nfc-hair-profile-field span,
.nfc-hair-profile-note span {
  color: var(--ink-soft);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nfc-hair-profile-field strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.4;
}

.nfc-hair-profile-bar {
  display: grid;
  gap: 6px;
}

.nfc-hair-profile-bar div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.nfc-hair-profile-bar strong {
  color: var(--ink);
}

.nfc-hair-profile-bar i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7a513f, #c6a16f);
}

.nfc-product-card {
  overflow: hidden;
  padding: 0;
}

.nfc-product-card > img {
  width: 100%;
  height: clamp(220px, 30vw, 320px);
  object-fit: contain;
  object-position: center;
  padding: 18px;
  background: #fff;
}

.nfc-product-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.nfc-product-brand {
  margin: -4px 0 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.84rem;
}

.nfc-product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nfc-product-priority {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(122, 78, 57, 0.36);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--ink);
  background: rgba(249, 239, 231, 0.96);
  font-size: 0.72rem;
  line-height: 1.2;
}

.nfc-client-card {
  width: 100%;
  max-width: 1160px;
  min-height: 218px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(18px, 3vw, 30px);
  transform-origin: center;
}

.nfc-client-content {
  min-height: 158px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 6px;
  transition:
    filter 360ms ease,
    opacity 360ms ease,
    transform 360ms ease;
}

.nfc-loading .nfc-client-content {
  filter: blur(13px);
  opacity: 0.48;
  pointer-events: none;
  transform: scale(0.985);
  user-select: none;
}

.nfc-client-card.is-loaded .nfc-client-content {
  animation: nfc-container-pop 540ms cubic-bezier(0.2, 1, 0.28, 1) both;
}

.nfc-profile-badge {
  position: static;
  z-index: 2;
  width: 72px;
  height: 72px;
  margin: 0 0 8px;
  justify-self: end;
  align-self: center;
}

.nfc-client-content .nfc-kicker {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.nfc-client-content .nfc-profile-badge {
  grid-column: 2;
  grid-row: 1;
}

.nfc-client-identity {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
}

.nfc-client-name-row {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.nfc-client-card .nfc-client-name-row h2 {
  margin: 0;
}

.nfc-client-content > .nfc-client-identity,
.nfc-client-content > .nfc-meta,
.nfc-client-content > .nfc-status,
.nfc-client-content > .nfc-actions {
  grid-column: 1 / -1;
}

.nfc-completed-by-pill {
  justify-self: end;
  margin: 0;
  max-width: 100%;
}

.nfc-completed-by-pill span {
  color: var(--ink-soft);
}

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

.nfc-section-title-row h2 {
  margin: 0;
}

.nfc-entry-loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.88), rgba(244, 230, 216, 0.68) 46%, rgba(235, 214, 195, 0.46)),
    linear-gradient(160deg, rgba(255, 255, 255, 0.58), rgba(230, 210, 193, 0.28));
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  pointer-events: none;
}

.nfc-entry-loader.is-finishing {
  animation: nfc-loader-panel-out 560ms cubic-bezier(0.48, 0, 0.2, 1) forwards;
}

.nfc-entry-loader.is-finishing .nfc-entry-animation {
  animation: nfc-loader-mark-shrink 560ms cubic-bezier(0.48, 0, 0.2, 1) forwards;
}

.nfc-entry-loader.is-finishing p {
  animation: nfc-loader-text-out 260ms ease forwards;
}

.nfc-entry-animation {
  width: min(152px, 42vw);
  height: min(152px, 42vw);
  position: relative;
  filter: sepia(1) saturate(2.8) hue-rotate(338deg) brightness(0.72) contrast(1.06);
  transform-origin: center;
}

.nfc-entry-animation::before {
  content: "";
  position: absolute;
  inset: 28%;
  border: 2px solid rgba(106, 70, 52, 0.38);
  border-top-color: transparent;
  border-radius: 999px;
  animation: nfc-loader-spin 920ms linear infinite;
}

.nfc-entry-animation.has-lottie::before {
  display: none;
}

.nfc-entry-loader p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nfc-admin-entry-loader {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(calc(100vw - 40px), 380px);
  min-height: 280px;
  z-index: 101;
  border: 1px solid rgba(112, 78, 58, 0.2);
  border-radius: 32px;
  box-shadow: 0 28px 90px rgba(74, 48, 33, 0.24);
  transform: translate(-50%, -50%);
}

.nfc-client-card h2 {
  margin-bottom: 6px;
}

.nfc-client-card .nfc-actions {
  margin-top: 12px;
}

.nfc-client-card.is-no-report {
  max-width: 980px;
  min-height: 0;
}

.nfc-client-card.is-no-report .nfc-client-content {
  min-height: 0;
  align-items: center;
  row-gap: 6px;
}

.nfc-client-card.is-no-report .nfc-client-identity {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding-top: 0;
}

.nfc-client-card.is-no-report .nfc-actions {
  display: none;
}

.nfc-client-card.is-no-report h2 {
  margin-bottom: 0;
}

.nfc-client-card.is-no-report .nfc-status,
.nfc-client-card.is-no-report .nfc-client-name-row {
  margin: 0;
}

.nfc-next-steps {
  width: 100%;
  display: grid;
  gap: 16px;
  margin: 0 auto;
}

.nfc-next-steps.is-loaded {
  animation: nfc-container-pop 580ms cubic-bezier(0.2, 1, 0.28, 1) both;
}

.nfc-next-steps-head {
  display: grid;
  gap: 6px;
}

.nfc-next-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.nfc-next-steps-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nfc-next-steps-grid[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nfc-next-step-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  border: 1px solid rgba(165, 136, 116, 0.24);
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 24px rgba(63, 38, 25, 0.05);
}

.nfc-next-step-card.is-primary {
  border-color: rgba(122, 78, 57, 0.52);
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.98), rgba(247, 236, 227, 0.9)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 32px rgba(74, 44, 28, 0.12);
}

.nfc-next-step-head {
  display: grid;
  gap: 8px;
}

.nfc-next-step-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nfc-next-step-heading-row h3 {
  flex: 1 1 220px;
  font-size: 1.08rem;
}

.nfc-next-step-card .nfc-actions {
  margin-top: auto;
}

.nfc-sip-style-editor {
  display: grid;
  gap: 10px;
}

.nfc-email-campaign-panel {
  margin-bottom: 22px;
  border-color: rgba(134, 94, 72, 0.24);
  background:
    radial-gradient(circle at top left, rgba(237, 191, 135, 0.28), transparent 32rem),
    linear-gradient(135deg, rgba(255, 249, 241, 0.96), rgba(246, 232, 214, 0.9));
}

.nfc-email-page-shell {
  max-width: 1380px;
}

.nfc-email-campaign-page-panel {
  padding: clamp(22px, 3vw, 34px);
}

.nfc-badge-email-safe {
  background: rgba(134, 94, 72, 0.12);
  color: #704c39;
}

.nfc-email-builder-grid,
.nfc-email-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 16px;
  margin-top: 16px;
}

.nfc-email-audience-groups,
.nfc-email-merge-fields,
.nfc-email-audience-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0;
}

.nfc-email-merge-fields {
  align-items: stretch;
  padding: 10px;
  border: 1px solid rgba(134, 94, 72, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 246, 235, 0.58));
}

.nfc-email-group-chip {
  cursor: pointer;
}

.nfc-filter-dropdown-head {
  align-items: flex-start;
}

.nfc-filter-dropdown {
  position: relative;
  flex: 0 0 auto;
  z-index: 6;
}

.nfc-filter-dropdown.is-open {
  z-index: 160;
}

.nfc-filter-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(122, 78, 57, 0.24);
  border-radius: 999px;
  padding: 0;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.84), rgba(244, 232, 222, 0.88)),
    rgba(255, 255, 255, 0.74);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(68, 44, 30, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.nfc-filter-icon-btn:hover,
.nfc-filter-icon-btn:focus-visible,
.nfc-filter-icon-btn[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: rgba(122, 78, 57, 0.42);
  box-shadow:
    0 14px 28px rgba(68, 44, 30, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  outline: none;
}

.nfc-filter-icon-btn img {
  width: 18px;
  height: 18px;
  display: block;
}

.nfc-filter-icon-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #6f4d3d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.nfc-filter-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 161;
  width: min(320px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(122, 78, 57, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf9, #f7efe6);
  box-shadow:
    0 28px 56px rgba(54, 31, 19, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.58) inset;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nfc-filter-dropdown-panel[data-floating="true"] {
  z-index: 1002;
}

.nfc-filter-dropdown-panel-wide {
  width: min(420px, calc(100vw - 32px));
}

.nfc-filter-dropdown-title,
.nfc-filter-dropdown-section h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.nfc-filter-count-text {
  color: #7f6254;
  font-size: 0.78rem;
  font-weight: 800;
}

.nfc-filter-dropdown-section {
  display: grid;
  gap: 10px;
}

.nfc-filter-dropdown-panel .nfc-meta {
  margin-top: -2px;
}

.nfc-client-search-panel,
.nfc-email-filter-card,
.nfc-client-search-drawer {
  overflow: visible;
}

.nfc-client-search-drawer .nfc-client-list,
.nfc-email-filter-card > * {
  position: relative;
  z-index: 1;
}

.nfc-email-service-head {
  margin-top: 18px;
}

.nfc-email-filter-menu {
  align-content: start;
  max-height: min(70vh, 620px);
  overflow: auto;
}

.nfc-dashboard-filter-menu {
  display: grid;
  gap: 14px;
}

.nfc-filter-dropdown-panel.nfc-dashboard-filter-menu {
  max-height: min(74vh, 640px);
  overflow: auto;
}

.nfc-email-dropdown-filter {
  display: grid;
  gap: 8px;
}

.nfc-email-dropdown-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.nfc-email-dropdown-row .btn {
  min-height: 42px;
  padding: 9px 12px;
  white-space: nowrap;
}

.nfc-email-selected-filter-list {
  display: grid;
  gap: 7px;
}

.nfc-email-selected-filter-row {
  align-items: center;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(134, 94, 72, 0.18);
  border-radius: 12px;
  color: #4d352c;
  display: grid;
  font-size: 0.88rem;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  line-height: 1.25;
  padding: 8px 9px 8px 11px;
}

.nfc-email-selected-filter-row span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nfc-email-selected-filter-remove {
  align-items: center;
  background: rgba(122, 78, 57, 0.1);
  border: 1px solid rgba(122, 78, 57, 0.18);
  border-radius: 999px;
  color: #6f4d3d;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  line-height: 1;
  width: 26px;
}

.nfc-email-selected-filter-remove:hover,
.nfc-email-selected-filter-remove:focus-visible {
  background: #6f4d3d;
  color: #fff;
  outline: none;
}

.nfc-email-service-filters {
  max-height: 220px;
  overflow: auto;
  padding: 4px 4px 8px 0;
}

.nfc-email-service-chip {
  max-width: 100%;
}

.nfc-email-service-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nfc-email-client-picker {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  margin: 10px 0 16px;
  padding-right: 4px;
}

.nfc-email-client-picker-summary {
  align-items: center;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(134, 94, 72, 0.2);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.nfc-email-clear-clients {
  padding: 7px 10px;
}

.nfc-email-client-picker-row small {
  white-space: normal;
}

.nfc-bulk-promo-client-picker {
  max-height: 340px;
}

.nfc-bulk-promo-filter-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 2px;
}

.nfc-bulk-promo-filters {
  margin-bottom: 2px;
}

.nfc-bulk-promo-client-picker .nfc-email-recipient-row {
  align-items: flex-start;
  background: rgba(255, 253, 249, 0.96);
}

.nfc-bulk-promo-client-picker .nfc-email-recipient-row input {
  margin-top: 4px;
}

.nfc-bulk-promo-client-picker .nfc-email-recipient-row strong {
  color: #4d352c;
}

.nfc-bulk-promo-client-picker .nfc-email-recipient-row small {
  color: #75594c;
}

.nfc-bulk-promo-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nfc-bulk-promo-summary-actions .btn {
  padding: 7px 10px;
}

.nfc-email-optout-panel {
  border: 1px solid rgba(134, 94, 72, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px 12px;
  margin: 10px 0 16px;
}

.nfc-email-optout-panel summary {
  cursor: pointer;
  font-weight: 700;
  color: #6f4d3d;
}

.nfc-email-optout-panel .nfc-input {
  margin: 10px 0;
}

.nfc-email-optout-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(134, 94, 72, 0.15);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.nfc-email-optout-row span {
  display: grid;
  gap: 2px;
}

.nfc-email-optout-row small,
.nfc-email-optout-row em {
  color: #8d7466;
}

.nfc-email-unsubscribe-toggle {
  margin: 14px 0 4px;
  align-items: flex-start;
}

.nfc-email-toggle-note {
  margin-top: 0;
}

.nfc-email-token-btn {
  display: inline-grid;
  gap: 1px;
  min-width: 118px;
  padding: 10px 13px;
  border: 1px solid rgba(134, 94, 72, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(61, 36, 23, 0.06);
  color: #5d4035;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nfc-email-token-btn:hover,
.nfc-email-token-btn:focus-visible {
  border-color: rgba(134, 94, 72, 0.34);
  background: rgba(255, 250, 244, 0.95);
  outline: none;
  transform: translateY(-1px);
}

.nfc-email-token-btn strong {
  font-size: 0.84rem;
  line-height: 1.1;
}

.nfc-email-token-btn small {
  color: #9a7a69;
  font-size: 0.72rem;
  line-height: 1.1;
}

.nfc-label-text {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.nfc-email-editor-wrap {
  display: grid;
  gap: 10px;
}

.nfc-email-signature-panel {
  display: grid;
  gap: 12px;
}

.nfc-email-format-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(134, 94, 72, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.nfc-email-block-select {
  min-height: 40px;
  border: 1px solid rgba(134, 94, 72, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #5d4035;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0 34px 0 14px;
}

.nfc-email-icon-group {
  align-items: center;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(134, 94, 72, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.nfc-email-icon-tool {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #5d4035;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  transition: background 160ms ease, transform 160ms ease;
  width: 34px;
}

.nfc-email-icon-tool:hover,
.nfc-email-icon-tool:focus-visible {
  background: rgba(134, 94, 72, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.nfc-email-icon-tool img {
  height: 20px;
  opacity: 0.82;
  width: 20px;
}

.nfc-email-hidden-colour {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.nfc-email-colour-tool input {
  border: 0;
  border-radius: 999px;
  height: 30px;
  overflow: hidden;
  padding: 0;
  width: 36px;
}

.nfc-email-body {
  min-height: 192px;
}

.nfc-email-rich-editor {
  border: 1px solid rgba(134, 94, 72, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: #3f2d26;
  line-height: 1.6;
  min-height: 260px;
  padding: 16px;
  outline: none;
  overflow: auto;
}

.nfc-email-rich-editor:focus {
  border-color: rgba(134, 94, 72, 0.42);
  box-shadow: 0 0 0 4px rgba(196, 150, 111, 0.14);
}

.nfc-email-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #9c8578;
}

.nfc-email-rich-editor img {
  max-width: 100%;
}

.nfc-email-signature-editor {
  border: 1px solid rgba(134, 94, 72, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #3f2d26;
  line-height: 1.5;
  min-height: 220px;
  outline: none;
  overflow: auto;
  padding: 16px;
}

.nfc-email-signature-editor:focus {
  border-color: rgba(134, 94, 72, 0.42);
  box-shadow: 0 0 0 4px rgba(196, 150, 111, 0.14);
}

.nfc-hidden-field {
  display: none;
}

.nfc-email-send-btn {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.nfc-email-send-btn img {
  filter: brightness(0) invert(1);
  height: 18px;
  width: 18px;
}

.nfc-email-count {
  border: 1px solid rgba(134, 94, 72, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.58);
  color: #6f5144;
  font-size: 0.9rem;
}

.nfc-email-count.is-good {
  border-color: rgba(78, 139, 83, 0.35);
  background: rgba(225, 246, 225, 0.72);
  color: #315f36;
}

.nfc-email-recipient-preview {
  display: grid;
  gap: 9px;
  max-height: 352px;
  overflow: auto;
  padding-right: 4px;
}

.nfc-email-recipient-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(134, 94, 72, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.nfc-email-recipient-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.nfc-email-recipient-row small {
  color: #8d7466;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nfc-email-message-preview {
  min-height: 256px;
}

.nfc-email-preview-frame {
  padding: 16px;
  border: 1px solid rgba(134, 94, 72, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  max-height: 480px;
  overflow: auto;
}

/* ── Intake & Engine Data section ──────────────────────────── */
.nfc-intake-section {
  border-left: 3px solid rgba(45, 122, 79, 0.35);
  padding-left: 14px;
}

.nfc-intake-head {
  cursor: default;
}

.nfc-intake-admin-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2d7a4f;
  background: rgba(45, 122, 79, 0.1);
  border: 1px solid rgba(45, 122, 79, 0.25);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.nfc-intake-toggle-btn {
  font-size: 1rem;
  transition: transform 160ms ease;
}

.nfc-intake-toggle-btn[aria-expanded="true"] {
  transform: rotate(180deg);
}

.nfc-intake-body {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.nfc-intake-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nfc-intake-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nfc-intake-tag.is-quiz {
  background: rgba(91, 61, 49, 0.1);
  color: #5b3d31;
  border: 1px solid rgba(91, 61, 49, 0.2);
}

.nfc-intake-tag.is-recovery {
  background: rgba(45, 122, 79, 0.1);
  color: #2d7a4f;
  border: 1px solid rgba(45, 122, 79, 0.25);
}

.nfc-intake-content {
  display: grid;
  gap: 14px;
}

.nfc-intake-submission {
  background: rgba(250, 248, 245, 0.7);
  border: 1px solid rgba(122, 81, 63, 0.12);
  border-radius: 10px;
  padding: 14px 16px;
}

.nfc-intake-submission-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.nfc-intake-submission-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #5b3d31;
  margin: 0;
}

.nfc-intake-submission-date {
  font-size: 0.75rem;
  color: #8a7060;
}

.nfc-intake-field {
  margin-bottom: 10px;
}

.nfc-intake-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a7060;
  margin-bottom: 3px;
}

.nfc-intake-field-value {
  font-size: 0.85rem;
  color: #3d2d25;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.nfc-intake-answers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.nfc-intake-answer-chip {
  background: rgba(122, 81, 63, 0.07);
  border: 1px solid rgba(122, 81, 63, 0.14);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: #4a3028;
}

.nfc-intake-answer-chip strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a7060;
  margin-bottom: 2px;
}

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

.nfc-intake-protocol-list li {
  font-size: 0.82rem;
  color: #3d2d25;
  padding: 5px 8px;
  background: rgba(45, 122, 79, 0.06);
  border-radius: 5px;
  border-left: 2px solid rgba(45, 122, 79, 0.3);
}

/* ── end Intake section ──────────────────────────────────────── */

.nfc-communication-editor {
  display: grid;
  gap: 14px;
}

.nfc-communication-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nfc-checkbox-line {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
}

.nfc-communication-history {
  display: grid;
  gap: 10px;
}

.nfc-communication-thread {
  border: 1px solid rgba(134, 94, 72, 0.15);
  border-radius: 18px;
  background: rgba(255, 250, 245, 0.72);
  overflow: hidden;
}

.nfc-communication-thread-summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.nfc-communication-thread-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nfc-communication-thread-title small {
  color: #8d7466;
  font-size: 0.82rem;
  white-space: normal;
}

.nfc-communication-thread-messages {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.nfc-direct-email-composer {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(134, 94, 72, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.92), rgba(247, 232, 219, 0.72)),
    rgba(255, 255, 255, 0.78);
}

.nfc-direct-email-composer .nfc-communication-history-head span {
  color: #8d7466;
  font-size: 0.9rem;
}

.nfc-communication-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nfc-communication-history-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nfc-communication-history-head h4 {
  margin: 0;
}

.nfc-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 0 10px;
  height: 28px;
  border-radius: 999px;
  background: rgba(122, 81, 63, 0.12);
  color: #6f4d3d;
  font-size: 0.85rem;
  font-weight: 700;
}

.nfc-communication-entry {
  border: 1px solid rgba(134, 94, 72, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.nfc-communication-entry summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.nfc-communication-entry summary span {
  color: #8d7466;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nfc-communication-entry summary > span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nfc-communication-entry summary > span:first-child small {
  color: #8d7466;
  font-size: 0.82rem;
  white-space: normal;
}

.nfc-communication-message {
  border-top: 1px solid rgba(134, 94, 72, 0.12);
  padding: 16px;
  color: #4c332a;
}

.nfc-unknown-email-panel {
  margin-bottom: 22px;
}

.nfc-unknown-email-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nfc-unknown-email-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #5d4035;
}

.nfc-unknown-email-panel summary strong {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(122, 81, 63, 0.12);
  color: #6f4d3d;
}

.nfc-unknown-email-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.nfc-unknown-email-card {
  border: 1px solid rgba(134, 94, 72, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.nfc-unknown-email-card.is-blacklisted {
  opacity: 0.62;
}

.nfc-unknown-email-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
}

.nfc-unknown-email-summary span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.nfc-unknown-email-card h4,
.nfc-unknown-email-card p {
  margin: 0;
}

.nfc-unknown-email-stack {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.nfc-unknown-email-items {
  display: grid;
  gap: 10px;
}

.nfc-unknown-email-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(245, 236, 228, 0.72);
  border: 1px solid rgba(134, 94, 72, 0.1);
}

.nfc-unknown-email-item small,
.nfc-unknown-email-item p {
  color: #8d7466;
}

.nfc-unknown-email-card small,
.nfc-unknown-email-card p {
  color: #8d7466;
}

.nfc-sip-style-toggle {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(58, 43, 36, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px 14px;
}

.nfc-sip-style-toggle-row {
  align-items: center;
  display: flex;
  gap: 12px;
}

.nfc-sip-style-toggle-row input {
  height: 18px;
  width: 18px;
}

.nfc-sip-style-toggle span {
  display: grid;
  gap: 3px;
}

.nfc-sip-style-toggle small {
  color: rgba(58, 43, 36, 0.58);
  font-size: 0.76rem;
}

.nfc-sip-style-date {
  display: grid;
  gap: 6px;
}

.nfc-sip-style-date input {
  width: 100%;
}

.nfc-sip-style-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nfc-client-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.nfc-filter-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(58, 43, 36, 0.14);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  padding: 8px 12px;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.nfc-filter-chip input {
  height: 16px;
  width: 16px;
}

.nfc-filter-chip span {
  color: var(--ink);
  font-size: 0.82rem;
}

.nfc-filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(122, 78, 57, 0.34);
}

.nfc-filter-chip:has(input:checked) {
  border-color: rgba(122, 78, 57, 0.7);
  border-width: 2px;
  background: rgba(255, 249, 242, 0.94);
  box-shadow:
    0 10px 20px rgba(54, 31, 19, 0.08),
    0 0 0 2px rgba(122, 78, 57, 0.08);
}

.nfc-sip-style-card {
  border: 1px solid rgba(58, 43, 36, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 16px;
}

.nfc-sip-style-card.is-locked {
  background: rgba(249, 245, 239, 0.72);
  color: rgba(58, 43, 36, 0.62);
}

.nfc-sip-style-card.is-unlocked {
  background: linear-gradient(135deg, rgba(253, 249, 241, 0.98), rgba(235, 245, 238, 0.92));
  border-color: rgba(52, 95, 67, 0.3);
  box-shadow: 0 16px 34px rgba(52, 95, 67, 0.12);
}

.nfc-sip-style-icon {
  align-items: center;
  border: 1px solid rgba(58, 43, 36, 0.16);
  border-radius: 999px;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  letter-spacing: 0;
  overflow: hidden;
  width: 52px;
}

.nfc-sip-style-card.is-unlocked .nfc-sip-style-icon {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(91, 54, 34, 0.18);
}

.nfc-sip-style-icon.is-animation svg {
  height: 100%;
  width: 100%;
}

.nfc-sip-style-icon.is-lock {
  background: rgba(91, 54, 34, 0.08);
}

.nfc-sip-style-icon.is-lock img {
  display: block;
  height: 26px;
  width: 26px;
}

.nfc-sip-style-card h3,
.nfc-workbook-page h2,
.nfc-workbook-page h3,
.nfc-workbook-page h4 {
  margin: 0;
}

.nfc-sip-style-state {
  color: var(--nfc-good);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.nfc-sip-style-card.is-locked .nfc-sip-style-state {
  color: rgba(58, 43, 36, 0.54);
}

.nfc-workbook-page {
  display: grid;
  gap: 16px;
}

.nfc-workbook-hero {
  background:
    linear-gradient(145deg, rgba(238, 220, 194, 0.98) 0%, rgba(216, 191, 157, 0.96) 34%, rgba(84, 44, 25, 0.98) 100%);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(63, 38, 25, 0.16);
  color: #fff;
  padding: clamp(22px, 5vw, 44px);
}

.nfc-workbook-hero .nfc-kicker,
.nfc-workbook-hero p {
  color: rgba(255, 247, 237, 0.9);
}

.nfc-workbook-hero h2 {
  color: #fff;
  font-size: 3.6rem;
  letter-spacing: 0;
  line-height: 0.95;
  max-width: 760px;
}

.nfc-workbook-hero p {
  max-width: 680px;
}

.nfc-sip-style-promo {
  align-items: center;
  background: linear-gradient(145deg, rgba(246, 234, 221, 0.96), rgba(255, 250, 244, 0.9));
  border: 1px solid rgba(151, 109, 78, 0.18);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(63, 38, 25, 0.08);
  display: grid;
  gap: 10px;
  padding: 18px;
}

.nfc-sip-style-promo h3,
.nfc-sip-style-promo p {
  margin: 0;
}

.nfc-sip-style-promo-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.nfc-sip-style-promo-timer {
  display: grid;
  gap: 2px;
}

.nfc-sip-style-promo-timer span,
.nfc-sip-style-promo-timer small {
  color: var(--ink-soft);
}

.nfc-sip-style-promo-timer strong {
  font-size: 1.4rem;
  line-height: 1;
}

.nfc-workbook-visual,
.nfc-workbook-locked {
  align-items: center;
  background: rgba(249, 245, 239, 0.84);
  border: 1px dashed rgba(58, 43, 36, 0.22);
  border-radius: 8px;
  display: flex;
  min-height: 180px;
  padding: 22px;
}

.nfc-workbook-visual.has-image {
  padding: 0;
  overflow: hidden;
}

.nfc-workbook-visual img {
  border-radius: 7px;
  display: block;
  margin: 0;
  max-height: 900px;
  max-width: none;
  width: 100%;
}

.nfc-workbook-visual span {
  color: rgba(58, 43, 36, 0.54);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nfc-workbook-section {
  border: 1px solid rgba(58, 43, 36, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.nfc-workbook-number {
  color: var(--nfc-good);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nfc-workbook-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.nfc-workbook-product-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nfc-workbook-product {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(58, 43, 36, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.nfc-workbook-product img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.nfc-workbook-product p {
  margin: 0;
}

.nfc-workbook-product .btn {
  display: inline-flex;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.nfc-workbook-technique-grid {
  display: grid;
  gap: 12px;
}

.nfc-workbook-technique-card,
.nfc-workbook-technique-diagram {
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(58, 43, 36, 0.22);
  border-radius: 8px;
  overflow: hidden;
}

.nfc-workbook-technique-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.nfc-workbook-technique-card h4 {
  font-size: 1.4rem;
}

.nfc-workbook-technique-subtitle,
.nfc-workbook-technique-bestfor {
  margin: 0;
}

.nfc-workbook-technique-subtitle {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-style: italic;
}

.nfc-workbook-technique-card ul {
  margin: 0;
  padding-left: 20px;
}

.nfc-workbook-technique-bestfor {
  color: var(--ink);
}

.nfc-workbook-technique-diagram {
  padding: 0;
}

.nfc-workbook-technique-diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.nfc-workbook-cta {
  background: rgba(235, 245, 238, 0.72);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.nfc-loading .nfc-next-steps {
  filter: blur(11px);
  opacity: 0.42;
  pointer-events: none;
  transform: scale(0.988);
  user-select: none;
}

.nfc-footer {
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .nfc-admin-action-bar {
    align-items: center;
    margin-top: -6px;
  }

  .nfc-admin-pill {
    justify-content: flex-start;
  }

  .nfc-grid {
    grid-template-columns: 1fr;
  }

  .nfc-email-builder-grid,
  .nfc-email-preview-grid {
    grid-template-columns: 1fr;
  }

  .nfc-grid > .surface-card:first-child {
    order: 2;
  }

  .nfc-grid > .surface-card:last-child {
    order: 1;
  }

  .nfc-next-steps-grid[data-count="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  html::before {
    background-image:
      linear-gradient(168deg, rgba(248, 240, 231, 0.08), rgba(218, 192, 170, 0.03)),
      url("../assets/Mobile_bg-optimized.jpg"),
      url("../assets/Mobile_bg.jpg");
  }
}

@media (max-width: 640px) {
  .nfc-admin-action-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    margin: -4px 0 18px;
  }

  .nfc-admin-pill {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .nfc-admin-pill-search {
    flex: 1 1 auto;
    padding: 0 18px;
  }

  .nfc-client-search-panel {
    display: none !important;
  }

  .nfc-client-search-drawer {
    width: min(100vw, 390px);
  }

  .nfc-client-search-drawer .nfc-filter-dropdown {
    margin-left: auto;
  }

  .nfc-client-search-drawer .nfc-filter-dropdown-panel {
    right: 0;
    width: min(300px, calc(100vw - 42px));
  }

  .nfc-admin-modal,
  .nfc-admin-modal-wide,
  .nfc-admin-modal-medium {
    width: min(100vw - 18px, 100%);
    max-height: calc(100vh - 18px);
    padding: 18px;
  }

  .nfc-unknown-email-modal-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .nfc-client-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .nfc-client-search-drawer .nfc-client-list {
    max-height: calc(100vh - 212px);
    overflow-y: auto;
    padding-bottom: 24px;
  }

  .nfc-form-row {
    grid-template-columns: 1fr;
  }

  .nfc-gift-voucher-toggle {
    align-items: flex-start;
  }

  .nfc-communication-entry summary {
    display: grid;
  }

  .nfc-service-picker,
  .nfc-guidance-field-grid,
  .nfc-product-field-grid,
  .nfc-guidance-card-grid,
  .nfc-product-card-grid,
  .nfc-next-steps-grid,
  .nfc-next-steps-grid[data-count="2"],
  .nfc-next-steps-grid[data-count="3"] {
    grid-template-columns: 1fr;
  }

  .nfc-hair-profile-summary,
  .nfc-hair-profile-detail-grid,
  .nfc-hair-profile-columns {
    grid-template-columns: 1fr;
  }

  .nfc-hair-profile-score-ring {
    justify-self: center;
  }

  .nfc-sip-style-grid,
  .nfc-workbook-product-grid {
    grid-template-columns: 1fr;
  }

  .nfc-workbook-hero h2 {
    font-size: 2.2rem;
  }

  .nfc-workbook-product-grid {
    grid-auto-columns: minmax(220px, calc(50vw - 18px));
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .nfc-workbook-product {
    scroll-snap-align: start;
  }

  .nfc-client-card {
    min-height: 0;
    padding: 18px;
  }

  .nfc-client-content {
    min-height: 0;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 7px;
  }

  .nfc-client-content .nfc-kicker {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .nfc-profile-badge {
    grid-column: 2;
    grid-row: 1;
    width: 60px;
    height: 60px;
    margin-bottom: 0;
  }

  .nfc-client-card h2 {
    margin-top: 10px;
  }

  .nfc-client-identity {
    gap: 3px;
  }

  .nfc-client-card.is-no-report .nfc-client-content {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    row-gap: 8px;
  }

  .nfc-client-card.is-no-report .nfc-client-identity {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding-top: 0;
  }

  .nfc-client-card.is-no-report .nfc-profile-badge {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .nfc-service-option,
  .nfc-next-step-card {
    padding: 14px;
  }

  .nfc-section-title-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nfc-completed-by-pill {
    justify-self: start;
  }

  .nfc-gift-overlay {
    padding: 16px;
  }

  .nfc-gift-animation-stage {
    min-height: 100dvh;
  }

  .nfc-gift-animation-stack {
    min-height: min(46vh, 360px);
  }

  .nfc-gift-animation-birthday {
    width: min(78vw, 280px);
    height: min(22vh, 180px);
    transform: translate(-50%, -42%);
  }

  .nfc-gift-animation-reward {
    width: min(100vw, 420px);
    height: min(44vh, 360px);
  }

  .nfc-gift-modal {
    width: min(calc(100% - 8px), 520px);
    padding: 22px 18px 18px;
  }

  .nfc-gift-modal-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-right: 18px;
  }

  .nfc-gift-modal-present {
    width: 104px;
    height: 104px;
  }

  .nfc-gift-detail-list {
    grid-template-columns: 1fr;
  }

  .nfc-email-dropdown-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .nfc-email-dropdown-row .btn {
    justify-content: center;
    width: 100%;
  }

  .nfc-hair-regen-region-grid,
  .nfc-hair-regen-summary-grid {
    grid-template-columns: 1fr;
  }

  .nfc-hair-regen-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nfc-hair-regen-action-row,
  .nfc-trichoscope-control-row,
  .nfc-trichoscope-stage-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .nfc-trichoscope-shell {
    width: min(100% - 16px, 1180px);
    margin: 20px auto 32px;
  }

  .nfc-trichoscope-layout {
    grid-template-columns: 1fr;
  }

  .nfc-trichoscope-stage,
  .nfc-trichoscope-device-card,
  .nfc-trichoscope-strip-card,
  .nfc-trichoscope-hero {
    padding: 16px;
    border-radius: 20px;
  }

  .nfc-trichoscope-video-wrap {
    min-height: 300px;
  }

  .nfc-trichoscope-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .nfc-hair-profile-preview {
    grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1fr);
    gap: 10px;
    min-height: 142px;
  }

  .nfc-hair-profile-score-ring {
    width: clamp(92px, 29vw, 112px);
  }

  .nfc-hair-profile-preview .nfc-actions .btn {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nfc-entry-animation::before,
  .nfc-entry-loader.is-finishing,
  .nfc-entry-loader.is-finishing .nfc-entry-animation,
  .nfc-entry-loader.is-finishing p,
  .nfc-client-card.is-loaded .nfc-client-content {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }
}

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

@keyframes nfc-loader-mark-shrink {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.02) rotate(8deg);
  }
}

@keyframes nfc-loader-text-out {
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes nfc-loader-panel-out {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes nfc-container-pop {
  0% {
    filter: blur(8px);
    opacity: 0.68;
    transform: scale(0.965);
  }

  58% {
    filter: blur(0);
    opacity: 1;
    transform: scale(1.018);
  }

  100% {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
  }
}
